Send and receive SMS via PC

1

I am doing internal software that needs some data that is received via SMS, the client sends the SMS with some information and currently I need to manually make the SMS re-sent. I plan to automate the process to become faster, more practical and less susceptible to human failure.

Does anyone know of any component that uses a GSM chip so that I can read all the SMS that this chip receives and send SMS with the answers?

I thought about maybe buying an Arduino and a GSM card to do such an operation, but I think there should be something much more practical.

I stress that no matter what programming language you need to know for such an operation, if you need to learn a new one I see no problems.

    
asked by anonymous 07.04.2014 / 20:24

1 answer

9

The essence of GSM modem communication is generally the same as serial modems.

SMSs are sent and received by AT commands, which are just strings written and read from their serial port (usually virtual, via USB).

Sample shipping:

  • The bold items your application sends;
  • The modem response is italicized;
  • \r is the "enter"
  

AT + CMGF = 1 \r OK
AT + CMGS="+ 99999999999"
This is the message \r OK

In the first line we are entering text mode, we wait for the \r of the modem to start an SMS for the number in quotes. When entering the number, the modem returns OK , which means that it is waiting for the message. When sending the message and another line break, the modem continues to wait for more data. To close, just send a control + Z (equivalent to% ASCII%).

Example of receipt:

  CMGL: 123, "REC READ", "+ 123456789"

I am the message!

This is an explanation for giving an early idea of the process. After deciding what the language will be used, you can go into more detail on how to implement it in practice.

    
16.04.2014 / 03:11