使用 C# 向 USB 连接的 GPRS 调制解调器发送 AT 命令 [英] Sending AT Command to a USB-Connected GPRS Modem in C#
问题描述
谁能给我一个好的方向或指导,告诉我如何访问连接到 USB 端口的 GPRS 调制解调器.我应该为我的程序制作一个 USB 驱动程序来向调制解调器发送 AT 命令吗?或者就像一个路由器,我可以使用IP地址访问它?谢谢
Can anyone give me a good direction or guide on how I can access a GPRS modem that is connected to a Usb Port. Should I make a USB driver for my program to send AT command to the modem? or Is like a router where in i can access it using an IP address? thanks
推荐答案
如果 Windows 将其识别为调制解调器,则所需的驱动程序应自动将其显示为串行端口,就像任何其他调制解调器一样您可以使用其端口名称与它通信System.IO.Ports.SerialPort
.如果您想访问 AT/GSM 命令集,可以使用诸如 GSMComm 之类的库.
If its recognised by windows as a modem then the required drivers should automatically present it as a serial port, just like any other modem & you can communicate with it using its port name & System.IO.Ports.SerialPort
. If you want to access the AT/GSM command set there are libraries like GSMComm.
这篇关于使用 C# 向 USB 连接的 GPRS 调制解调器发送 AT 命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!