Sending SMS through WaveComm GSM/GPRS Modem
By admin on Sep 24, 2007 in .NET, open source, Programming
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 ?
Carlo | Feb 13, 2009 | Reply
i just wont to say thanks. It’s a great library and i can’t wait for v2 🙂
Great work, greetings from croatia 🙂
Richard | Mar 25, 2009 | Reply
hello can u help me, i have also itegno gsm modem 3800, and i have a problem in sending there is always an error,
“Error sending SMS message: Unknown exception in sending command”
please help me..
Thank you
gLin | Apr 6, 2009 | Reply
Can i ask why i run the application there is this error popping out.
The error is the port ‘COM6’ does not exist.
rat86 | Apr 17, 2009 | Reply
i also have same problem.
Javaman | Jun 1, 2009 | Reply
Hi
Im having 2 issues with the ATSMS libary
1. when reciving messages, I have problems with the decoding of the messages containg special charters (æøå), any help om this matter?
MessageStore msgStore = oGsmModem.MessageStore;
oGsmModem.MessageMemory = EnumMessageMemory.PHONE;
msgStore.Refresh(MessageStore.EnumMessageType.ReceivedReadMessages);
for (int i = 0; i < msgStore.Count; i++)
{
SMSMessage sms = msgStore[i];
MessageBox.Show(sms.Text);
}
2. Is there a way to sendt long messages over 150 charters?
tiffany & co jewelry | Nov 26, 2009 | Reply
i also have same problem.
ebisms | Feb 5, 2010 | Reply
USB GSM/GPRS modem India forsale @ lowest Price
We are selling GSM Modems in all of india. The price is very less for the USB GSM/GPRS modem.
SEND unlimited BULK sms. Help provided to set up GSM modem. FREE Bulk SMS Software also provided with Modem.
Call: +91 93911 62671 (Hyderabad)
Why use your mobile phone and ruin its battery life when you have much more professional solution available. Buy our imported Modems
Features:
1. Allows Two-way SMS
2. 160 characters per SMS
3. Faster then Mobile Phone for sending SMS
4. Directly powered by USB Port (No external power supply or battery required)
5. Allows faster surfing on GPRS
6. Best for mobile workforce with Laptops.
FREE SHIPPING IN INDIA. Modem will dispatched via DTDC to track your order.
Contact us:
Tel:- +91-9391162671, +91-40-32962671
Web:- http://www.ebisms.com/modem.htm Email: [email protected]