Westermo GS-01 User Manual Page 37

  • Download
  • Add to my manuals
  • Print
  • Page
    / 56
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 36
376195-2201
If the command is correct, the following indication message is sent:
+CPMS: <used1>,<total1>,<used2>,<total2>
When <mem1> is selected, all following +CMGL, +CMGR and +CMGD commands are
related to the type of SMS stored in this memory.
Application to GSM AT+CPMS=? Possible message storages
GSM to application +CPMS: ((”SM”,”BM”), Read, list, delete: SMS or
(”SM”)) CBM. Write,send: SMS
OK
Application to GSM AT+CPMS? Read it
GSM to application +CPMS: ”SM”, Read, write…SMS from/to
3, 10,”SM”,3,10 SIM 3 SMS are stored in
OK SIM. 10 is the total available
SIM memory.
Application to GSM AT+CPMS=”AM” Select false message storage
GSM to application +CMS ERROR: 302
Application to GSM AT+CPMS=”BM” Select CBM message storage
GSM to application +CPMS: 2, 20,3,10 Read, list,delete CBM from
OK RAM. 2 CBM are stored in
RAM
Application to GSM AT+CPMS? Read it
GSM to application +CPMS: ”BM”, 2, 20, Read, list,delete CBM from
”SM”,3,10 RAM. Write SMS to SIM.
OK
+CMGF – Preferred Message Format
The formats implemented are the text mode and the PDU mode.
In PDU mode, a complete SMS Message including all header information is passed as a
binary string (in hexadecimal format, so only this set of characters is allowed:
{‘0’,’1’,’2’,’3’,’4’,’5’,’6’,’7’,’8’,’9’, ‘A’, ‘B’,’C’,’D’,’E’,’F’}).
Each pair or characters is converted to a byte (ex: ‘41’ is converted to the ASCII
character ‘A’, which ASCII code is 0x41 or 65).
In Text mode, every commands and responses are in ASCII characters.
The chosen format is stored in EEPROM by the command +CSAS.
Application to GSM AT+CMGF? Current message format
GSM to application +CMGF: 1 Text mode
OK
Application to GSM AT+CMGF=? Possible message format
GSM to application +CMGF: (0-1) Text or PDU modes are available
OK
Example to send a SMS Message in PDU mode:
Page view 36
1 2 ... 32 33 34 35 36 37 38 39 40 41 42 ... 55 56

Comments to this Manuals

No comments