C# – Accessing GSM Modem in C#

cgsm

I have a GSM modem which has a specific command set associated with it. I want to invoke those commands using my c# code. Is it possible to do this?

GSM modem model: MOD 9001 BENQ GSM/GPRS Modem

I dont have any library to interact with this modem

Best Answer

Without knowing any details for the specific modem you mention, the general approach to communicating with modems is to open a serial port connection and talk to the modem in plain text. Generally using some variant of the Hayes command set. For .NET, you might want to refer to System.IO.Ports.SerialPort (see MSDN). The connection parameters (baud rate, data bits, stop bits, parity, flow control) depends on the modem but a good start is to try 57600, 8 databits, 1 stop bit, no parity and hardware flow control; those are typical parameters. The name of the port is highly dependent on how its connected to your system, but a good place to look if you don't know is the Windows Device Manager under COM ports.

Related Topic