This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Sending SMS and CMGS output.

Hello,

I've written a shell cmd on the 9160DK to send an sms. it handles getting the data in the correct  has the following format,

sms <len> <pdu data>

I've used the site http://rednaxela.net/pdu.php to generate the <pdu data>, which with the help of a clip board, I make the output from the web form

AT+CMGS=24
0001000B919127135013F600000CC8329BFD0639DF72727A0C

to be

sms 24 0001000B919127135013F600000CC8329BFD0639DF72727A0C

which does the following..

collar$ sms 24 0001000B919127135013F600000CC8329BFD0639DF72727A0C
Sending: AT+CNMI=3,2,0,1
OK
Sending: AT+CMGF=0
OK
0001000B919127135013F6000016C3B01B941686E7E939685E76934161D0BC3DFF01
+CMGS: 15
OK

So what does +CMGS: 15 mean?  -- the manual suggests it's a Message reference. Is this just a count of messages sent? Why do I never see a <ackpdu> on the CMGS response?

Curious,

Parents
  • Hi!

    The message reference value as an integer between 0 and 255 and is automatically assigned. It is a reference number allocated by the modem, and the value can be used to identify the message.

    <ackpdu> is optional, and only appears when +CSMS <service> value is 1 and the network supports it. And only in some error scenarios where the SMS sending is unsuccessful. If the SMS sending is successful, <ackpdu> is not sent.

    Best regards,

    Heidi

Reply
  • Hi!

    The message reference value as an integer between 0 and 255 and is automatically assigned. It is a reference number allocated by the modem, and the value can be used to identify the message.

    <ackpdu> is optional, and only appears when +CSMS <service> value is 1 and the network supports it. And only in some error scenarios where the SMS sending is unsuccessful. If the SMS sending is successful, <ackpdu> is not sent.

    Best regards,

    Heidi

Children
No Data
Related