
- 117 -
AT$MSGSND
Message Send
<destination>
0 – 5 (possible valid values)
0 = <”data”> is sent out the USB port
1 = <”data”> is sent to all SMS addresses listed in AT$SMSDA command.
2 = <”data”> is sent via UDP API to IP address and port number of the first UDP
server listed in the AT$FRIEND command
3 = <”data”> is sent via PAD to IP address and Port number listed in the
AT$PADDST command
4 = <”data”> is sent via TCP API to IP address and port number of the first TCP
server listed in the AT$FRIEND command
5 = <"data"> is sent out the USB port
<”data”>
a maximum of 50 bytes ASCII characters
Notes
Use the AT$CMDPORT command to select the primary UART serial port and/or
the USB AT command port.
Messages sent to OTA destinations (options 1, 2, 3, and 4) are transmitted
immediately. If network coverage is not available, then the message is silently
discarded. The message is not stored for later transmission when the modem
returns to good network coverage.
AT$MSGSND command can be sent to the device via SMS, UDP-API, or serial
port.
AT$MSGSND=4 checks for TCPAPI usage in the first $FRIEND entry.
AT$MSGSND=2 checks for UDPAPI usage in the first $FRIEND entry. ERROR will
be reported if invalid usage is selected.
AT$MSGSND=4 checks if TCPAPI is enabled (AT$TCPAPI=1) before attempting to
send message. Will report error if not enabled.
A carriage return can be added to a $MSGSND message by inserting "\0D" in to
the text portion of the message
For example:
AT$MSGSND=0,"Hello \0D"
OK
Hello
To add a carriage return to a $STOATEV use the following format:
AT$STOATEV=1,AT$MSGSND=0,"Hello \OD"
Summary of Contents for MT 3060 R
Page 13: ...1 Introduction...
Page 17: ...5 General Commands...
Page 34: ...22 Network Commands...
Page 41: ...29 AT MDSTAT Query Modem Status 6 bad message format 7 connect fail Notes...
Page 62: ...50 ME TA Commands...
Page 69: ...57 SMS Commands...
Page 94: ...82 API Commands...
Page 95: ...83 TCP API Commands...
Page 107: ...95 Message Commands...
Page 138: ...126 Event Commands...
Page 157: ...145 RTC Commands...
Page 164: ...152 FOTA Commands...
Page 171: ...159 FTP Commands...
Page 177: ...165 AT FFS Generic Flash File System Access OK...
Page 188: ...176 IP Router Commands...
Page 192: ...180 GPS Commands...
Page 222: ...210...
Page 223: ...211 Battery Commands...
Page 227: ...215 OBD Commands...
Page 246: ...234...
Page 248: ...236 Miscellaneous Commands...
Page 256: ...244 Accelerometer Commands...
Page 269: ...257 Event Tables...
Page 284: ...272 Bit Field Tables...
Page 313: ...301 Appendix Result Codes...
Page 314: ...302 Appendix A Result Codes...
Page 318: ...306 Appendix Error Codes...
Page 319: ...307 Appendix B Error Codes...