USB GSM Modem to send SMS and GPRS transfer

Shred

Expert Member
Company Rep
Joined
Jul 12, 2006
Messages
1,739
Reaction score
4
Location
Edenvale
Hi all

I am looking for a USB GSM modem that I can easily communicate with. Without having to write thousands of lines of AT code.

We just need to be able to send and receive SMS's from a server.

Any suggestions?
 
I did something similar in .NET. I used an off the shelve USB modem and the libs below:

http://www.scampers.org/steve/sms/libraries.htm
https://github.com/welly87/GSMComm/tree/master/GSMCommServer

Interfacing with the lib is fairly easy.
if (comm.IsConnected())
{
DecodedShortMessage[] Messages = comm.ReadMessages(PhoneMessageStatus.ReceivedUnread, PhoneStorageType.Sim);
DecodedShortMessage[] PhMessages = comm.ReadMessages(PhoneMessageStatus.ReceivedUnread, PhoneStorageType.Phone);

foreach (DecodedShortMessage Message in Messages)
{
if (Message.Data is SmsDeliverPdu)
{
SmsDeliverPdu data = (SmsDeliverPdu)Message.Data;
SaveReceivedSMS(data.OriginatingAddress, data.SCTimestamp.ToString(), data.UserDataText);
comm.DeleteMessage(Message.Index, PhoneStorageType.Sim);
}
}

foreach (DecodedShortMessage Message in PhMessages)
{
if (Message.Data is SmsDeliverPdu)
{
SmsDeliverPdu data = (SmsDeliverPdu)Message.Data;
SaveReceivedSMS(data.OriginatingAddress, data.SCTimestamp.ToString(), data.UserDataText);
comm.DeleteMessage(Message.Index, PhoneStorageType.Phone);
}
}
}
 
Don't waste your time with code, use SMSTools3 . I have sent 20K MTs over the last couple of years with SMSTools and an off the shelf E272 modem (E220 are also awesome).

I use flat files, but you can also use db. Can get DLRs and MO's. I redirect MO's into a db as well.

http://smstools3.kekekasvi.com/
 
Top
Sign up to the MyBroadband newsletter
X