For example:
1- Let's assume you want to directly send a new SMS to the destination address number
+39338123456789. We suppose you already have set up the device for text SMS mode as described
on the previous paragraphs:
command:
AT+CMGS="+39338123456789"
response:
>
now you can insert the message text in IRA format (note that the IRA format and ASCII format
coincide for the alphabet characters but not for the other).
…. here will be inserted the SMS message text to be sent….
conclude text with the character CTRL-Z
response:
+CMGW: 4
OK
In this case, the new SMS was successfully sent to the SC and its network reference number is 4.
Do not confuse message reference with message index position, the first indicates the network
reference for identifying the sent message (the eventually requested status report will have the same
reference) while the second indicates the position where the message has eventually been stored in
memory.