7 sms, 1 listing the number of sms/pdus, 2 sending sms – Dovado PRO User Manual

Page 26: 1 sending an sms via text, 2 sending an sms via pdu, 3 reading an sms

Advertising
background image

T h e M o b i l e C h o i c e f o r y o u r B r o a d b a n d I n t e r n e t

Reference Manual 7.1.5

26

© 2014 Dovado FZ-LLC

4.7

SMS

The router can handle both SMS´s in cleartext (UTF-8/UCS encoded) and in PDU mode.

To view the clear-text contents of a PDU you need to convert it either on your own or, preferably,
using a third-party software such as SMS Server Tools 3

Below is the API commands available related to SMS

SMS:
sms list (returns number of unread/read messages)
sms send [PDU]
sms sendtxt NUMBER [ENCODING]

NUMBER:international format without the leading +. A leading s indicates short SMS (eg s4612)
ENCODING:ISO|UCS (ISO for ascii < 256). Leave blank for autodetection

sms recv [ID] (returns PDU with ID or all PDUs in the inbox if ID is empty [ID:PDU])
sms recvtxt [ID] (returns cleartext SMS with ID or all cleartext SMS in the inbox if ID is empty)
sms del ID

4.7.1

Listing the number of SMS/PDUs

sms list (returns number of unread/read messages)

You can list the number of SMS/PDUs on your router using: sms list
The first digit of the response shows the current number of unread SMS / PDU’s and the second
digit the total amount in the inbox.

4.7.2

Sending SMS

The API can handle two ways of send SMS, either by receiving a PDU or via UTF-8/UCS encoded
text messages.

4.7.2.1

Sending an SMS via text

sms sendtxt NUMBER [ENCODING]
NUMBER:international format without the leading +. A leading s indicates short SMS (eg s4612)
ENCODING:ISO|UCS (ISO for ascii < 256). Leave blank for autodetection

To send a SMS via text use the command sms sendtxt

Example:
>>sms sendtxt 46791044794 ISO
This is a text message
.

>>

4.7.2.2

Sending an SMS via PDU

sms send [PDU]

To send a SMS, you first have to make a PDU of it. Once you have the PDU, use the following
syntax: sms send <pdu>

Example:
sms send 07910447946400F011000A9270042079330000AA0CC337392C2F83A6CD292804

4.7.3

Reading an SMS

The API can handle two ways of reading SMS, either by showing a PDU or via UTF-8/UCS
encoded text messages.

Advertising