USR-G786 - E-Software-Manual
USR-G786 - E-Software-Manual
USR-G786 - E-Software-Manual
com
Function
Contents
USR-G786-E User Manual................................................................................................................................................... 1
Function................................................................................................................................................................................. 2
1. Product overview...............................................................................................................................................................6
1.1. Product profile........................................................................................................................................................6
2. Product function................................................................................................................................................................8
2.1. Work mode............................................................................................................................................................. 9
2.1.1. Net transparent transmission mode................................................................................................................... 9
2.1.2. SMS mode..........................................................................................................................................................12
2.2. Serial port............................................................................................................................................................. 13
2.2.1. Basic parameter.................................................................................................................................................13
2.2.2 Serial Port Setting for network data...................................................................................................................14
2.2.2. Frame forming mechanism............................................................................................................................... 14
2.2.2.1 Time trigger..................................................................................................................................14
2.2.2.2 Length trigger.................................................................................................................................. 15
2.3. Characteristic function......................................................................................................................................... 15
2.3.1. Registration package function...........................................................................................................................15
2.3.2. Heartbeat packet...............................................................................................................................................18
2.3.3. USR – Cloud....................................................................................................................................................... 19
2.3.4 Base station positioning..................................................................................................................................... 21
2.3.5 Modbus protocol conversion............................................................................................................................. 23
2.3.6 Indicator status...................................................................................................................................................25
2.3.7 Restore to the factory default settings.............................................................................................................. 25
2.3.8 Firmware upgrade.............................................................................................................................................. 25
2.3.8.1 Upgrade by serial port.................................................................................................................... 25
2.3.8.2 Remote update................................................................................................................................27
3. Parameter setting............................................................................................................................................................ 28
3.1. Setup by serial port.............................................................................................................................................. 28
3.1.1. Setup software.................................................................................................................................................. 28
3.1.2. AT command setting..........................................................................................................................................29
3.1.3. Serial AT command............................................................................................................................................30
3.1.4. Network AT command.......................................................................................................................................31
3.1.5. SMS AT command..............................................................................................................................................32
3.1.6. Command format.............................................................................................................................................. 32
3.1.6.1 Symbol description..........................................................................................................................32
3.1.6.2 The queation format in command..................................................................................................33
3.1.6.3 The answer format in command.....................................................................................................33
3.1.6.4 Special symbols............................................................................................................................... 34
3.1.7. AT commands................................................................................................................................................. 34
3.1.7.1 AT.....................................................................................................................................................36
3.1.7.2 AT+H................................................................................................................................................ 36
3.1.7.3 AT+Z.................................................................................................................................................36
3.1.7.4 AT+E.................................................................................................................................................36
1. Product overview
USR-G786-E is the M2M Industrial Serial Cellular Modem with European band . The software has perfect functions
and covers most common application scenarios. It can realize two-way data transparent transmission from serial port
to network by simple settings. And support SMS mode, custom register packages, heartbeat packages , support 2 way
socket connections, support TCP Server, support access USR cloud , support remote upgrade.
Figure 1 DTU default parameters
2. Product function
This chapter introduces the functions of G786-E, the following diagram is a block diagram the function of the
module.It can help you to have a general understanding of the product.
USR-G786-E module has three working modes: network transmission mode, UDC mode and SMS transmission mode.
Network transmission mode: the data is sent to the network server directly through the serial port of the module
without any processing or modification.
UDC mode: after the data enters the module through the serial port, it is sent to the server after the UDC protocol
encapsulation.
SMS transmission mode: data enters the module through serial port and is processed by the module and sent to the
target mobile phone number.
In this mode, the user's serial device can directly send data to the specified network server through the G786-E
module.The module can also receive data from the server and directly forward the received information to the serial
port device.
In this mode, users do not need to pay attention to the data conversion process between serial port data and network
data packets. They only need to set simple parameters to realize the transparent transmission of data between serial
port devices and network servers.
The module supports 2 socket connections, Socket A and Socket B, which are independent of each other.Only Socket A
supports as TCP Client, TCP Server and UDP Client.Socket B only supports TCP Client and UDP Client .
TCP Server supports 3 ways of Client .Because the conventional operator network can not be accessed through the
external network, so for the Server function need to use a dedicated APN card .
Set G786-E work at TCP client by AT commands:
2. Enable socket A:
AT+SOCKAEN=ON
4. Setup APN. E.g: APN is CMNET, username is empty, password is empty, authentication method is NONE:
AT+APN=CMNET,,,0
5. Reboot:
AT+Z
2. Enable socket A:
AT+SOCKAEN=ON
3. Set socket A as TCP Server, local port 2317, IP has no reference meaning in Server:
AT+SOCKA=TCPS,test.usr.cn,2317
4. Setup APN. E.g: APN:CMNET, username: empty, password: empty, authentication method: NONE:
AT+APN=CMNET,,,0
5. Reboot:
AT+Z
Setup by AT commands:
1. Set work mode to SMS mode:
AT+WKMOD=SMS
2. Set the target mobile phone number to 10086. E.g:10086:
AT+DSTNUM=10086
3. Restart the module:
AT+Z
Note: 1. The target phone number of SMS should be added with the international number;
2. When non-target mobile phone number filtering is enabled, the non-target mobile phone number can still
query or set parameters;
3. When a SMS longer than 140 bytes is sent to the device, the received SMS will be incomplete.
1. Open the setup software. Setting the serial port parameters according to the actual situation and click "Open PC
Serial".
2. Click "Enter Serial AT command mode" and wait for the device to enter AT command configuration mode.
3. Click "Query all parameters" and waiting for obtaining all current parameters.
4. In the "choose work Mode" , select "SMS Mode".
5. Set the target mobile phone number as "10086". E.g: 10086.
6. If you need to filter SMS from other mobile numbers, open "Only receive SMS from source number".
7. Click "Save current parameters" to set and save all parameters.
8. Click "Restart" to restart the module.
Project Parameter
2400,4800,9600,14400,19200, 28800,
Baud rate
33600,38400,57600,115200,230400,460800
Data bit 8
Stop bit 1,2
NONE, EVEN, ODD
Check bit
Command Introduce
Notes: To ensure the efficiency of data output, please choose one sereial port as the network data output according to
the application.
When G786-E receives data from the UART, it continuously checks the interval of two adjacent bytes. If the interval
time is greater or equal to a certain "time threshold", then a frame is considered finished, otherwise the data is
received until greater or equal to the packet length byte set. This frame is sent to the network as a TCP or UDP packet.
The "time threshold" here is the time between packages. The range of settable is 100ms~60000ms.Factory default:
100ms.
This parameter can be set by AT command, AT+UARTFT=<time>.
When G786-E receives data from the UART, it constantly checks the number of bytes received. If the number of bytes
received is equal to a certain "length threshold", a frame is considered to have ended, otherwise the packaging time is
waiting for the end. This frame is sent to the network as a TCP or UDP packet. The "length threshold" here is the
package length. The settable range is 100~1000.Factory default 1000.
(note: when using “command password +AT command” function, the package length must be larger than the
“command password +AT command”, otherwise AT command is invalid)
This parameter can be set by AT command, AT+UARTFL=<length>.
In the network transparent mode, the user can choose to have the module send the registration package to the server.
Registered package is intended to allow the server to identify the data from which device or to use it as a password to
obtain authorization for the server's functions. The registration package can be sent when the module establishes a
connection with the server, or be added at the forefront of each data packet to form a data packet to be sent to the
network. The data of registration package can be ICCID code, IMEI code, USR-cloud registration package, or custom
registration data.
ICCID: Unique SIM identification code, for applications based on SIM card identification.
AT commands setting:
1. Enable register package function:
AT+REGEN=ON
5. Reboot:
AT+Z
Figure 4 AT commands
Command name Command function Default parameter
AT+HEARTEN Query/Setting enable heartbeat packet ON
AT+HEARTDT Query/Setting heartbeat data 7777772E7573722E636E
AT+HEARTSND Query/Setting heartbeat packet send type NET
AT+HEARTTM Query/Setting heartbeat packet interval 30
AT commands setting :
1. Enable heartbeat function:
AT+HEARTEN=ON
4. Reboot:
AT+Z
AT commands setting:
1. Setup the work mode:
AT+WKMOD=NET
2. Enable socket A :
AT+SOCKAEN=ON
4. Set the ID of usr-cloud (ID and password can get from the usr-cloud website):
AT+CLOUD=01234567890123456789,13245678
8. Reboot:
AT+Z
Figure 7 AT command
Command name Command functions Default parameter
AT+MODBUSEN Query/Setting whether to enable Modbus OFF
protocol conversion
2. Enable Socket A:
AT+SOCKAEN=ON
1. Open the dedicated setup software. Set the serial port parameters according to the actual situation and click
"Open PC Serial".
There are four kinds of indicator pins on the USR-G786-E, PWR,WORK,NET,LINKA. The status represented by the
indicator is as follows:
Figure 8 Indicator status
Indicator name Indicator function Status
POWER Power indicator Always on after power work
normally
WORK System operation indicator. Flashing after system running
Always on after registering the
NET Network status indicator
network
LINKA Socket A connection indicator Always on after socket A is
connected
After power on, press the Reload button for 3~15S and release it to restore the device parameters to factory default
parameters.
3. Parameter setting
Description:
1. In PC serial parameter setting area, it is necessary to set parameters consistent with the current serial port of DTU,
otherwise it cannot communicate with DTU.
2. Working mode selection area, select the working mode of DTU.
3. In the parameter setting area of characteristic functions, set parameters related to DTU's featured functions
4. Global parameter area, setup DTU basic global parameters.
5. Common command button, click to send the self-input command.
6. Data receiving and display area, displaying the data sent and received.
7. Data sending area, input the data and click Send.
换个图
Command String:[CR][LF][+CMD][OP][PARA][CR][LF]<CR><LF>[OK]<CR><LF>
Figure 11 Symbol descriptions
Command Implication Necessary or not
CR Enter key No
LF Line break No
+CMD Response header No
OP Operator , for example “:” No
PARA Returned parameter No
CR Enter key No
LF Line break No
CR Enter key Yes
LF Line break Yes
OK Operate successfully No
CR Enter key Yes
3.1.7. AT commands
Figure 16 AT commands
Command Command description
Executive command
AT Test Command
H Help information
Z Module reboot
E Query/set whether to enable command return
3.1.7.1 AT
3.1.7.2 AT+H
Function:Helping command
Format
Query:
AT+H{CR}
{CR}{LF} help message {CR}{LF}{CR}{LF}
Parameter:
help message:command.
3.1.7.3 AT+Z
3.1.7.4 AT+E
3.1.7.5 AT+ENTM
Function: set the device to return to the previous working mode.
Format:
Perform specified function:
AT+ENTM{CR}
{CR}{LF}OK{CR}{LF}
3.1.7.6 AT+WKMOD
Function:Query/Setting module’s work mode
Format:
Query current Parameter:
AT+WKMOD{CR} or AT+WKMOD?{CR}
{CR}{LF}+WKMOD:mode{CR}{LF}{CR}{LF}
Setting:
AT+WKMOD=mode{CR}
{CR}{LF}OK{CR}{LF}
Parameter:
mode:work mode,including:
NET: Network transparent transmission mode
SMS:SMS mode
Default is NET mode:
E.g:AT+WKMOD=NET
3.1.7.7 AT+CMDPW
3.1.7.8 AT+STMSG
3.1.7.9 AT+RSTIM
3.1.7.10 AT+CSQ
3.1.7.11 AT+SYSINFO
sim_state:UIM state.
Figure 6 UIM status list
Number Implication
0 UIM card status is invalid
1 UIM card status is effective
2 UIM card status is not valid under CS
3 UIM is not valid under PS
4 UIM is not valid under PS+CS
240 ROMUIM edition
255 UIM card not exist
3.1.7.12 AT+UCPIN
3.1.7.13 AT+RELD
3.1.7.14 AT+CLEAR
3.1.7.15 AT+CFGTF
3.1.7.16 AT+VER
3.1.7.17 AT+SN
3.1.7.18 AT+ICCID
3.1.7.19 AT+IMEI
3.1.7.20 AT+CIP
3.1.7.21 AT+LBS
3.1.7.22 AT+PING
3.1.7.23 AT+UART
3.1.7.24 AT+CMDPT
Function: Query / set the serial port for network data output
Format:
AT+CMDPT{CR} or AT+CMDPT?{CR}
{CR}{LF}+CMDPT: {CR}{LF}{CR}{LF}
Setting:
AT+CMDPT=port{CR}
{CR}{LF}OK{CR}{LF}
Parameters:
Port
RS232
RS485
RSALL
Default is RSALL.
E.g:AT+CMDPT=RS232
3.1.7.25 AT+UARTFT
3.1.7.26 AT+UARTFL
3.1.7.27 AT+APN
3.1.7.28 AT+SOCKA
3.1.7.29 AT+SOCKB
3.1.7.30 AT+SOCKAEN
3.1.7.31 AT+SOCKBEN
3.1.7.32 AT+SOCKALK
3.1.7.33 AT+SOCKBLK
3.1.7.34 AT+SOCKATO
3.1.7.35 AT+SOCKBTO
3.1.7.36 AT+SOCKRSTIM
Function:Query/Setting the maximum number of re-connections after connection failure, the device will restart after
the maximum number of re-connections.
Format:
Query current Parameter:
AT+SOCKRSTIM{CR} or AT+ SOCKRSTIM?{CR}
{CR}{LF}+ SOCKRSTIM:num{CR}{LF}{CR}{LF}
Parameter:
num:Maximum re-connection times, Setting range is 10~600 times, the default is 60 times.
3.1.7.37 AT+MODBUSEN
3.1.7.38 AT+REGEN
3.1.7.39 AT+REGTP
3.1.7.40 AT+REGDT
3.1.7.41 AT+REGSND
3.1.7.42 AT+CLOUD
3.1.7.43 AT+HEARTEN
3.1.7.44 AT+HEARTDT
3.1.7.45 AT+HEARTSND
3.1.7.46 AT+HEARTTM
3.1.7.47 AT+DSTNUM
Function:Query/Setting the target cell phone number for short message transparent transmissions
Format:
Query:
AT+DSTNUM{CR} or AT+DSTNUM?{CR}
{CR}{LF}+DSTNUM:number{CR}{LF}
Setting:
AT+DSTNUM=number{CR}
{CR}{LF}OK{CR}{LF}
3.1.7.48 AT+SMSFLT
3.1.7.49 AT+CISMSSEND
4. Contact Us
5. Disclaimer
This document provides the information of USR-G781 products, it hasn’t been granted any intellectual property
license by forbidding speak or other ways either explicitly or implicitly. Except the duty declared in sales terms and
conditions, we don’t take any other responsibilities. We don’t warrant the products sales and use explicitly or
implicitly, including particular purpose merchant ability and marketability, the tort liability of any other patent right,
copyright, intellectual property right. We may modify specification and description at any time without prior notice.
6. Update History