Sending SMS with the GSM/GPRS module
My GSM/GPRS seems to work fine (initializes properly, card is detected by the CPU, SIM takes the pin number and connects to network, everything peachy-rosy) but seems unable to send Short messages. By the way I did not even try to connect to GPRS for now (I save it for later). I just want to send some SMS when an event occurs..
My program instruction goes like this : FEM_ACTN = modem.sendSMS(TCM_NSMS, TCM_DESC);
FEM_ACTN is the result of the "modem.sendSMS" command (returns false every time)
TCM_NSMS is a string : the number of the phone I want to send the message to (I tried +33[7 digits], +33[8 digits], 0033[7 digits], 0033[8 digits], and [8 digits] formats to no avail).
TCM_DESC is the string that I want to send in the SMS, never exceeds 80 characters.
And of course, nothing arrives on the other phone ... Ann, sister ann ...
The SIM card in the module is from one of my phones. It has SMS and data capability, so I don't think this is the issue. The SIM is not blocked.
The CPU is a D21G, a 1.6 version I use for development. I use Mode 1 configuration in the GPRS/GSM module. Nothing is connected to the RS485 port (that will come later too).
Ideas, anyone ?
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Forum
This community is for professionals and enthusiasts of our products and services.Read Guidelines
|Asked: 2/9/18, 8:29 AM|
|Seen: 1716 times|
|Last updated: 2/9/18, 8:30 AM|