R&D department
2018/08/01
IP
32-bit number, commonly known as an Internet Protocol address (xxx.xxx.xxx.xxx).
Port
16-bit number, commonly known as the port number (xxxxx).
Protocol
The principal of communication. There are two available protocols: TCP and UDP.
Example:
pass econnect apn,apnlogin,apnpass,192.168.0.1,7011,TCP
Response example:
Emergency connection data ok
After unsuccessful operation device responds:
Emergency connection data incorrect
1.1.8
Getapn – get APN parameters
SMS message is used to get APN (
APN)
, username (
USER
), password (
PSW
), IPs (
IP1, IP2
), ports (
Port1, Port2
) and
protocol (
TCP/UDP
) settings (described in 3.1.6) from FM device.
Example:
pass getapn
Response example:
APN: banga User: PSW: IP1: 92.62.134.38 Port1: 9021 IP2: 195.14.173.3 Port2: 9000 TCP/UDP: 0
*TCP/UDP: 0 – TCP, 1 – UDP.
1.1.9
Setconnection – change connection configuration
SMS message is used to permanently change FM device configuration settings: APN, APN username, APN
password, protocol, IP1, PORT1, IP2, and PORT2 (parameter description: 3.1.6).
SMS format:
pass setconnection apn,apnlogin,apnpassword,Protocol,IP1,Port1,IP2,Port2
Example:
pass setconnection apn,apnlogin,apnpass,TCP,111.111.111.111,1111,222.222.222.222,2222
Response example:
set connection data ok
If one of the parameters should be preserved, then the specific location for the parameter should be filled with
*old*
. For example, ip1 and port1 should be preserved (old value should remain):
Example:
pass setconnection apn,apnlogin,apnpass,TCP,*old*,*old*,222.222.222.222,2222
Response example:
set connection data ok
If the message is not ending with port2, then those parameters, which are not mentioned in the message should
not be changed. For example ip2 and port2 were not in the message:
Example:
pass
setconnection
apn
,
apnlogin
,
apnpass
,
TCP,111.111.111.111,1111
Response example:
Set connection data ok
If configuration failed to set, when FM device sends response:
Set connection data incorrect
1.1.10
Switchip – switch primary IP and port
SMS message is used to change current primary IP and port (IP1, Port1 or IP2, Port2). This change is temporary
and applies only until device reset. After the reset IP and port configuration will be restored to the previous state.
10