USB GSM Modem to send SMS and GPRS transfer

Shred

Expert Member
Company Rep
Joined
Jul 12, 2006
Messages
1,736
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?
 

VG008

Senior Member
Joined
Dec 9, 2010
Messages
797
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);
}
}
}
 

Other Pineapple Smurf

Honorary Master
Joined
Jun 21, 2008
Messages
14,593
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