5 router info, 6 sms, Router info – Dovado 4GR User Manual

Page 21

Advertising
background image

T h e M o b i le C h o ic 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

API

21

© 2013 Dovado FZ-LLC

pass [secret_password] (log in with secret_password)
info (prints general information about the router)
services (lists services)

Tellstick:

ts aliases (lists configured aliases)
ts groups (lists configured groups)
ts turn [alias] [on]/[off]
ts dim [alias] [0...100] (Dimming the device to XX%)
ts dims [alias] [0...100] (Turns the device off before dimming to XX%)
ts dimot [alias] [Start level 0...100] [Stop level 0...100] [Duration xx min]

(Dim from start to stop level over XX minutes)

ts add [alias] [protocol] [house] [channel]
ts add_group [alias] [list_of_device_aliases] (the list is a space separated list of devices)
ts remove [alias]
ts remove_group [alias]

examples: ts add MYLAMP WAVEMAN A 3

ts turn MYLAMP on

ts remove MYLAMP

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 s4612345678)

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.5

Router info

To display information about the router, execute the command:
info

It will respond with a list of parameters, for example:

Firmware_Revision:6.1.5
API_version:1.1
PRODUCT_NAME=Dovado 4GR
SIGNAL_STRENGTH=-
TRAFFIC_MODEM_TX=0
TRAFFIC_MODEM_RX=0
TRAFFIC_WAN_TX=0
TRAFFIC_WAN_RX=0
CONNECTION=modem
MODEM_STATUS=DISCONNECTED
EXTERNAL_IP=-
DATE=2010-04-10
TIME=08:11
GPS_TYPE=FIXED
GPS_LAT=59.2222
GPS_LONG=18.1111
SUNRISE=05:48
SUNSET=19:50
SMS_UNREAD=0
SMS_TOTAL=0
CONNECTED_DEVICES=TELLSTICK

4.6

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]

Advertising