Send and receive SMS via PC

Asked

Viewed 1,988 times

1

I am making an internal software that needs some data that is received via SMS, the customer sends the SMS with some information and currently I need to manually resend the SMS. I intend to automate the process to become faster, more practical and less susceptible to human failure.

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

I thought maybe buy an Arduino and a GSM board to do such an operation, but I believe that there should already be something much more practical.

I point out 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.

  • I think I was unclear, I will explain the process partially: My employees regularly send me information about the current status of the service they are running so that I inform my system the status of the situation, and it is a very simple situation. He warns: Service: [ID], St: Awaiting release of Gate. Soon I update on the system (which is a website) on the release of Gate, my client follows step by step on the work.

  • Today this process is very manual and the chance of a forgetfulness is great, because sometimes several SMS arrive and time or other is forgotten to launch, which causes a non-conformity. This is what I want to avoid, when receiving the SMS the system will save and ask the user if it can publish the status (or correct possible spelling errors). Understands?

  • As far as I know @Bacco, there is no rule of the operator against automation, but a maximum limit of monthly and daily shipping. No problem using GPRS modems.

1 answer

9


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

Smss are sent and received by AT commands, which are merely strings written and read from the respective serial port (usually virtual, by USB).

Sending example:

  • Items in bold your application sends;
  • in italics is the modem response;
  • \r is the "enter"

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

In the first line we are entering text mode, there we await the OK modem to start an SMS for the number between quotes. When entering the number, the modem returns >, which means that it is waiting for the message. By sending the message and another line break, the modem keeps waiting for more data. To close, just send one control + Z (is equivalent to chr(26) ASCII).

Example of receiving:

AT+CMGL="ALL" \r
+CMGL: 123,"REC READ","+123456789"
I am the message!

This is an explanation to give an initial notion of the process. After deciding which language will be used, it is possible to go into more details of how to implement in practice.

  • this would not be a possible solution for the my problem?

  • 4

    @Jorgeb. HTML and JS usually do not have access to this type of device communication. In your case probably only native code solves.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.