PLC-505 User Manual
63
1)
Special AT command for sending short messages with ASCII encoding via
serial port
:
AT+SMSA=<target number>,<data length>,<data>\r
DTU will send the following reply:
\r\nOK\r\n
Or:
\r\nERROR\r\n
Target Number: Phone number to receive the short message
Data Length: The actual data length behind
Data: The data to be sent, MUST with ASCII encoding.
Examples:
Send “1234” with ASCII encoding to 13812345678:
AT+SMSA=13812345678,4,1234\r
Below is the command shown in hexadecimal:
41 54 2B 53 4D 53 41 3D 31 33 38 31 32 33 34 35 36 37 38 2C 34 2C 31
32 33 34 0D
2)
General AT command for sending short messages via serial port
:
AT+SMS=<target number>,<encoding format>,<data length>,<data>\r
DTU will send the following reply:
\r\nOK\r\n
Or:
\r\nERROR\r\n
Target Number:Phone number to receive the short message
Encoding Format: 1:ASCII encoding, 2:8bit encoding, 3:Unicode encoding
Data Length: The actual data length behind
Data: The data to be sent, each byte should be formatted to a 2-byte
hexadecimal number, for instance “1234” should be written as“31323334”.
Examples:
Send “1234” with ASCII encoding to 13812345678:
AT+SMS=13812345678,1,4,31323334\r
Below is the command shown in hexadecimal:
41 54 2B 53 4D 53 3D 31 33 38 31 32 33 34 35 36 37 38 2C 31 2C 34 2C
33 31 33 32 33 33 33 34 0D
Use 8bit encoding to send “1234”to 13812345678:
AT+SMS=13812345678,2,4,31323334\r
Below is the command shown in hexadecimal:
41 54 2B 53 4D 53 3D 31 33 38 31 32 33 34 35 36 37 38 2C 32 2C 34 2C
33 31 33 32 33 33 33 34 0D
Use Unicode encoding to send “
你好
” to 13812345678:
AT+SMS=13812345678,3,4,4F60597D\r
Below is the command shown in hexadecimal:
41 54 2B 53 4D 53 3D 31 33 38 31 32 33 34 35 36 37 38 2C 33 2C 34 2C
34 46 36 30 35 39 37 44 0D
Содержание PLC-505
Страница 7: ...PLC 505 User Manual 7 Figure 1 4 WIFI antenna Figure 1 5 GPS antenna ...
Страница 9: ...PLC 505 User Manual 9 1 4 Dimension Figure 1 7 PLC 505 dimension Figure 1 8 Installation effect ...
Страница 16: ...PLC 505 User Manual 16 Figure 1 13 Use PLC 505 to access LAN remotely via VPN ...
Страница 18: ...PLC 505 User Manual 18 ...
Страница 22: ...PLC 505 User Manual 22 Figure 2 4 Configure serial functionality ...
Страница 36: ...PLC 505 User Manual 36 Figure Appendix 1 9 Add device ...
Страница 44: ...PLC 505 User Manual 44 Figure Appendix 2 7 Configure Vircom and choose mServer Figure Appendix 2 8 Add device ...