Sending SMS through WaveComm GSM/GPRS Modem
By admin on Sep 24, 2007 in .NET, Programming, open source
I would like to point out that even though ideally all handsets or GSM modem support AT commands, but implementation may differ across all manufacturers. As such, it is not possible for the library to be used for every mobile phones. As far as I know, Nokia NSeries, e.g. N70, N71, N80, etc do not support quite a lot of AT commands, and there is no way you can use AT commands to send SMS using those models. So be careful, you have to test if your phone model can be used for this purpose.
You can refer to my previous blog Use the .NET SMS Library to Retrieve Phone Setting if you would like to know how to manually connect to your phone to check its capabilities.
I tested retrieving configurations and sending SMS through WaveComm GSM/GPRS modem using the .NET SMS library. It is very straight forward. Below I provided the code snipppet.
oGsmModem = New GSMModemoGsmModem.Port = “COM6″
oGsmModem.BaudRate = 115200
oGsmModem.Parity = Common.EnumParity.None
oGsmModem.StopBits = Common.EnumStopBits.One
oGsmModem.FlowControl = Common.EnumFlowControl.Hardware
oGsmModem.DataBits = 8Try
oGsmModem.Connect()
If oGsmModem.IsConnected Then
MsgBox(oGsmModem.PhoneModel)
MsgBox(oGsmModem.IMEI)
MsgBox(oGsmModem.IMSI)
MsgBox(oGsmModem.SendSMS(”999″, “test msg”))
End If
Catch ex As Exception
MsgBox(ex.Message, MsgBoxStyle.Critical)
End Try
Prashant | Oct 17, 2007 | Reply
Do we require any GSM Modem drivers to run this demo??
admin | Oct 17, 2007 | Reply
You do not need any driver. You only need .NET 2.0 runtime
Hendry | Nov 29, 2007 | Reply
can support with PIN Active ?? Thankyou
Mahmoud | Mar 30, 2008 | Reply
I used N82 and tested everything and everything works fine except for sending SMS.
i couldn’t send the message because of unknown error.
I also tried to send the message from Hyber terminal and it fails but whe i set the text message mode AT+CMGF=1 it sends the message and everything works.
So can you please tell me how to do the using the Open Sourse liberary
bondan | Jun 17, 2008 | Reply
I download the source and run it with visual studio 2008 (framework 3.5), and its need conversion. When converting, it could not convert the “atsms.cd” file. Is there source that comply with framework 3.5? Many thanks.
Meera | Aug 29, 2008 | Reply
I download the source and run it with visual studio 2008 (framework 3.5), and its need conversion. When converting, it could not convert the “atsms.cd” file. Is there source that comply with framework 3.5? .
sams | Sep 4, 2008 | Reply
I am using itegno W3800, for sending and receiving sms is ok, then i try to build webservice for sms_ws with asp.net, i got an error something like this when i try to test the function sendsms: String;
“Object reference not set to an instance of an object.” but it’s not happen when i change the modem with my Nokia 7610.
help please
angeljason | Sep 24, 2008 | Reply
hello sam, I have also itegno gsm modem 3800, but I have no luck in receiving and sending messages..can you teach me how to use the library?
Weder | Oct 28, 2008 | Reply
Exist metod for implement the SMS Library in Borland Delphi ?