Technical Support: h.usriot.com USR-G786-G User Manual Document version: V1.0.2 1 www.usr.
USR-G786-G User Manual Technical Support: h.usriot.com USR-G786-G User Manual................................................................................................................................................. 1 1. Introduction..................................................................................................................................................................... 5 1.1. Overview.........................................................................................
USR-G786-G User Manual Technical Support: h.usriot.com 7.1.1. Serial AT Command................................................................................................................................... 43 7.1.2. Network AT Command.............................................................................................................................. 45 7.1.3. SMS AT Command........................................................................................................................
USR-G786-G User Manual Jinan USR IOT Technology Limited 4 Technical Support: h.usriot.com www.usriot.
USR-G786-G User Manual 1. Introduction Technical Support: h.usriot.com 1.1. Overview USR-G786-G is the cellular product launched in 2020, high speed low latency and global band . It has perfect functions and covers most common application scenarios. It can realize bidirectional data transparent transmission between serial port and network by simple settings.
USR-G786-G User Manual Technical Support: h.usriot.com 1.2. Features Supports global bands. Supports 2 sockets, TCP Server, TCP Client and UDP Client. Hardware watchdog. Each socket supports buffering 5 packets of serial port data, each packet is up to 1000byte . Supports identity package and heartbeat package. Supports setting parameters by serial / SMS / network. Supports Modbus RTU to Modbus TCP. Supports base station positioning.
Technical Support: h.usriot.com USR-G786-G User Manual 2. Get Started 2.1.
Work mode USR-G786-G User Manual Setting command Network protocol Software parameters Maximum TCP connection number User configuration Customer application software Domain name resolution DNS Transparent mode, HTTPD mode, SMS mode AT+Command TCP/UDP/DNS/HTTP/FTP 2 Serial AT command,Net AT command,SMS AT command Support customized application software Support Modbus protocol Support Simple transmission Support TCP Client/TCP Server/UDP Client HTTP transmission Support conversion Software fu
USR-G786-G User Manual Technical Support: h.usriot.com 2.2.1.Dimensions Jinan USR IOT Technology Limited 9 www.usriot.
Technical Support: h.usriot.com USR-G786-G User Manual 2.2.2.Interface 2.2.3.Indicators There are four indicators on USR-G786-G, PWR,WORK,NET,LINKA. Indicator Function Status WORK System operation indicator. Flashing after system running LINKA Socket A indicator POWER NET Power indicator Network status indicator Jinan USR IOT Technology Limited Always on when power supply working normally Always on after registering the network Always on after socket A is connected 10 www.usriot.
Technical Support: h.usriot.com USR-G786-G User Manual 2.3. Connecting Hardware 2.3.1.Hardware Preparation If you have purchased, there will be the following accessories: USR-G786-G Sucker antenna Power adapter Conversion cable Required additional equipment: RS232 serial to USB cable PC Jinan USR IOT Technology Limited 11 www.usriot.
USR-G786-G User Manual Technical Support: h.usriot.com 2.3.2.Installing SIM card and antenna Press the yellow button and the SIM card slot will pop up. Then Install the antenna. 2.3.3.Serial Connecting RS232: When connecting to a RS232 serial device, connect TX pin of RS232 interface of G786-G to RX pin of the serial device, RX pin of G786-G to TX pin of the serial device, GND to GND.
USR-G786-G User Manual 3. Utility Configuration Technical Support: h.usriot.com 3.1. Download the Utility Please download the utility in this link: https://www.usriot.com/products/rs485-electrical-isolation-protection-4g-ip-cellular-mo dem.html 3.2. Starting the Configuration Utility USR-G786-G Software is shown as following: Jinan USR IOT Technology Limited 13 www.usriot.
USR-G786-G User Manual Technical Support: h.usriot.com Description: 1. 2. 3. 4. 5. 6. 7. 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. Working mode selection area, select the work mode of DTU. In the parameter setting area of characteristic functions, set parameters related to DTU's featured functions Modern parameter area, setup DTU basic global parameters.
Technical Support: h.usriot.com USR-G786-G User Manual 4. Serial Port 4.1. Basic Parameters Serial parameters of USR-G786-G must be consistent with the parameters of the serial device. Serial port parameters setting here are divided into two parts: serial port basic parameter and serial port framing parameter.
USR-G786-G User Manual ODD Technical Support: h.usriot.com 4.2. Frame forming mechanism 4.2.1.Time Trigger When G786-G 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.
Technical Support: h.usriot.com USR-G786-G User Manual 4.2.3.Network Data Output Port We need to set the output serial port of the USR-G786-G network data. Setting commands and parameters as follows: Figure 3 Network data output serial port setting instructions Command Descriptions AT+CMDPT=RS232 Data sent from network is output on 232 serial port. AT+CMDPT=RS485 Data sent from network is output on 485 serial port. AT+CMDPT=RSALL Data sent from network is output on 232 and 485 port.
USR-G786-G User Manual Technical Support: h.usriot.com In this mode, user's serial device can directly send data to the specified network server through G786-G. Module can also receive data from the server and directly forward to the serial device. In this mode, users do not need to pay attention to the data conversion process between serial port and network data packets. They only need to set simple parameters to realize the transparent transmission of data between serial devices and network servers.
USR-G786-G User Manual Technical Support: h.usriot.com 1. Open the setup software. Set the Serial port parameters according to the serial device and click "Open PC Serial". 2. Click "Enter Serial AT command mode" and wait for the device to enter AT command mode. 3. Click "Query all parameters" and wait for obtaining all current parameters. 4. In "Choose Work Mode" , select "Transparent Mode". 5. Set "IP&Port" to test.usr.cn and 2317, link type to TCPC(TCP Client). 6. Check "More".
USR-G786-G User Manual 2 1. 2. 3. 4. 5. Technical Support: h.usriot.com Set by AT command: Set the work mode to net transparent transmission: AT+WKMOD=NET Enable socket A: AT+SOCKAEN=ON Set socket A to TCP Client: AT+SOCKA=TCPC,test.usr.cn,2317 Set APN. E.
USR-G786-G User Manual Technical Support: h.usriot.com 5.1.2.TCP Server Mode TCP Server function needs to be test through an APN dedicated network card. 1 Set parameters by setup software: Device works as TCP Server, and need to be filled in the IP and port of itself in"IP & Port". 1. 2. 3. 4. 5.
USR-G786-G User Manual Technical Support: h.usriot.com 5.1.3.UDP Client Mode 1 Set parameters by software: Set the link type to UDPC, fill in the IP and port of UDC server. Set by AT command: Set the work mode to net transparent mode: AT+WKMOD=NET Enable socket A: AT+SOCKAEN=ON 2 1. 2. 3. 4. 5. Set socket A as UDP Client, port 2317: AT+SOCKA=UDPC,test.usr.cn,2317 Set APN. E.
USR-G786-G User Manual Technical Support: h.usriot.com 5.2. HTTPD Client Mode In this mode, user’s terminal device can send request data to the specified HTTP server through this module, then the module receives data from HTTP server, parses and sends data to the serial device. User does not need to pay attention to the data conversion process between the serial data and the network Jinan USR IOT Technology Limited 23 www.usriot.
USR-G786-G User Manual Technical Support: h.usriot.com data packet, and can achieve the data request from the serial device to the HTTP server through simple parameter settings. The module will filter out the received HTTP protocol header data by default, only output user data to the serial port. Customers can choose whether to filter HTTPD header data by AT command. 1 Set parameters by software: 1. Open the setup software.
USR-G786-G User Manual 2. 3. 4. 5. 6. 7. 8. AT+WKMOD=HTTPD Set the request type: AT+HTPTP=GET Set HTTP URL: AT+HTPURL=/1.php[3F] Set the HTTP server address: AT+HTPSV=test.usr.cn,80 Set HTTP request header: AT+HTPHD=Connection: close[0D][0A] Set HTTP over time: AT+HTPTO=10 Whether to filter HTTP header: AT+HTPFLT=ON Reboot AT+Z Technical Support: h.usriot.com Test After the NET light is on, send the data in the format of "data =". After the data is sent successfully, server will return the data.
USR-G786-G User Manual Technical Support: h.usriot.com 5.3. SMS Mode In this mode, user's serial device can send SMS to the specified mobile phone and receive SMS from any mobile phone. User can decide whether to transmit the data of the specified mobile phone to the serial device through settings. Users do not need to pay attention to the data conversion process between serial port data and SMS.
USR-G786-G User Manual 1. 2. 3. 4. 5. 6. 7. 8. Technical Support: h.usriot.com Open the setup software. Setting the serial port parameters according to the serial device and click "Open PC Serial". Click "Enter Serial AT command mode" and wait for the device to enter AT command mode. Click "Query all parameters" and waiting for obtaining all current parameters. In "choose work Mode" , select "SMS Mode". Set the destination phone number to "10086".
USR-G786-G User Manual Technical Support: h.usriot.com 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 Test When the NET light is on, we can send and receive data in both directions via SMS with destination phone number. Jinan USR IOT Technology Limited 28 www.usriot.
USR-G786-G User Manual 6. General Function Technical Support: h.usriot.com 6.1. Identity Package In network transparent mode, user can set the device to send identity package to the server. Identity 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.
USR-G786-G User Manual Technical Support: h.usriot.com 1. Open the setup software.Set the Serial port parameters according to the actual serial device and click "Open PC Serial". 2. Click "Enter Serial AT command mode" and wait for the device to enter AT command mode. 3. Click "Query all parameters" and wait for obtaining all current parameters. 4. In "Choose Work Mode", select "Transparent Mode". 5. Set the parameter of SocketA. 6. Enable identity package and set various parameters. 7. Click “More”. 8.
USR-G786-G User Manual 2 Set by AT command: Command AT+REGEN AT+REGTP AT+REGDT AT+REGSND 1. 2. 3. 4. 5. Function Technical Support: h.usriot.
USR-G786-G User Manual Technical Support: h.usriot.com 6.2. Heartbeat Package In network transparent mode, user can send the heartbeat package from the module to meet specific requirements. Heartbeat package can be sent to the network or serial port device . The main purpose of sending to the network is to keep the connection stable and reliable, to ensure the normal connection of the module, and at the same time, to let the server know the online status of the module.
USR-G786-G User Manual Technical Support: h.usriot.com click "Open PC Serial". 2. Click "Enter Serial AT command mode" and wait for the device to enter AT command mode. 3. Click "Query all parameters" and wait for obtaining all current parameters. 4. In "Choose Work Mode", select "Transparent Mode". 5. Set the parameters of Socket A. 6. Enable heartbeat package function and set various parameters. 7. Click “More”. 8. Set APN parameters. 9. Click "Save current parameters" to set and save all parameters.
USR-G786-G User Manual Technical Support: h.usriot.com 6.3. Base Station Position USR-G786-G supports LBS base station positioning function, and can obtain general location of the device through the operator's network. Base station positioning information is obtained through AT command, which can be used flexibly with serial AT and SMS AT command.
USR-G786-G User Manual Technical Support: h.usriot.com Click the query to get the converted location information 6.4. Modbus In network transparent mode, if the terminal device transmits data through Modbus RTU protocol and the server communicates through Modbus TCP protocol, user can enable Modbus function.
USR-G786-G User Manual Technical Support: h.usriot.com 1. Open the dedicated setup software. Set the serial port parameters according to the serial device and click "Open PC Serial". 2. Click “Enter Serial AT command mode”. 3. Click "Query all parameters", waiting to get all current parameters. 4. In "Choose Work Mode" , check "Transparent Mode" 5. Set the parameters of Socket A. 6. Click “More”. 7. Check "MODBUS Change". 8. Set the APN parameters. 9.
2. Enable Socket A: USR-G786-G User Manual Technical Support: h.usriot.com AT+SOCKAEN=ON 3. Set socket A to TCP Client: AT+SOCKA=TCP,test.usr.cn,2317 4. Enable Modbus protocol conversion: AT+MODBUSEN=ON 5. Restart the module: AT+Z Test Connect the serial port of USR-G786-G to the computer via a serial to USB cable, Modbus RTU data sent by the serial port is converted into MODBUS TCP data by G786-G and then sent to the network side.
USR-G786-G User Manual Technical Support: h.usriot.com G786-G supports FTP upgrade protocol, user's device can request files on FTP server by special protocol through serial port. The file of the server can be split into small packets with a maximum size of 256 bytes for transmission, which is convenient for customer device to upgrade or download large files remotely. For details, please refer to "USR FTP Upgrade protocol". 6.6.
USR-G786-G User Manual Technical Support: h.usriot.com serial ports. As follows: (1) Set baud rate to 115200, no check bit, data bit 8, stop bit 1, open serial port, click “Load Fw”, and select the firmware to be upgraded. (2) Follow the prompts and wait for the device to be upgraded. Jinan USR IOT Technology Limited 39 www.usriot.
USR-G786-G User Manual Technical Support: h.usriot.com (3) Now the firmware is being downloaded, waiting for the upgrade to complete. Jinan USR IOT Technology Limited 40 www.usriot.
USR-G786-G User Manual Technical Support: h.usriot.com (4) Firmware update is completed and the device is restarted. Jinan USR IOT Technology Limited 41 www.usriot.
USR-G786-G User Manual Technical Support: h.usriot.com 6.7.2.Remote Upgrade G786-G queries by polling, request the server once every 30 minutes by default to get whether there is an upgrade demand. If the upgrade is needed, the firmware data will be downloaded from the server for the upgrade; if not, the system will sleep and wait for the next round.The polling time of Fota upgrade can be set through “AT+FOTATIME” with a range of 10~65535s. Set to 0 to close the upgrade request. 7. AT Command Set 7.1.
USR-G786-G User Manual Diagram 1 Technical Support: h.usriot.com Toggles the timing of command Toggles the timing of command mode: In the figure above, the horizontal axis is time, data above the time axis is sent by the serial device to G786-G, data below the time axis is sent by G786-G to the serial port.
USR-G786-G User Manual Diagram 2 Technical Support: h.usriot.com Software schematic diagram Query current password , query/setting command: AT+CMDPW We can check the current command password by setup software is: www.usr.cn# After the setting is completed, restart the module, and send www.usr.cn#AT+VER (Note: there is an Carriage Return at the end of the string) from the serial port to the module. After receiving the string, module will return the response information.
USR-G786-G User Manual Technical Support: h.usriot.com 7.1.2.Network AT Command Network AT command refers to set and query parameters by sending “password + AT command” through the network when working in transparent mode. Network AT command is similar to serial AT command. The difference is that network AT command is issued through the network, which is used for remote inquiry or parameter modification by customer's server.
USR-G786-G User Manual Technical Support: h.usriot.com 7.1.3.SMS AT Command SMS AT command means that we can use SMS to query and configure the parameters of G786-G. SMS AT command is generally used when customers need to query or modify parameters temporarily. We can query and modify parameters as long as know the phone number of the device, which is very convenient for equipment management in remote areas. Take the query of firmware version as an example, send AT command. Send "www.usr.
Technical Support: h.usriot.com USR-G786-G User Manual Carriage Return in ASCII, 0X0D in hex CR Line Feed in ASCII, 0X0A in hex LF 7.1.4.
OK Operate successfully CR LF Response command type description: Figure 13 Type 0 1 Technical Support: h.usriot.com USR-G786-G User Manual No Carriage Return Line Feed Yes Yes The description of string format String Format Description <+CMD:> 7.1.4.
AT H Z E ENTM WKMOD CMDPW STMSG RSTIM CSQ SYSINFO UCPIN RELD CLEAR CFGTF VER SN ICCID IMEI CIP LBS CCLK PING USR-G786-G User Manual Test Command Technical Support: h.usriot.
MODBUSEN REGEN REGTP REGDT REGSND USR-G786-G User Manual Technical Support: h.usriot.
Format AT+Z{CR} {CR}{LF}OK{CR}{LF} USR-G786-G User Manual Technical Support: h.usriot.com 7.2.4.AT+E Function:Query/set the echo status of AT commands. Format: Query current parameter: AT+E{CR} or AT+E?{CR} {CR}{LF}+E:status{CR}{LF} Setting: AT+E=status{CR} {CR}{LF}OK{CR}{LF} Parameter: status:echo status,including: ON:open OFF:close Command echo default is on. E.g:AT+E=ON 7.2.5.AT+ENTM Function: set the device to return to the previous working mode.
USR-G786-G User Manual Technical Support: h.usriot.com 7.2.7.AT+CMDPW Function:Query/Setting command password Format: Query current parameter: AT+CMDPW{CR} or AT+CMDPW?{CR} {CR}{LF}+CMDPW:password{CR}{LF} Setting: AT+CMDPW=password{CR} {CR}{LF}OK{CR}{LF} Parameter: password:Command password,1~11 bytes ASCII code, default is www.usr.cn#. E.g:AT+CMDPW=www.usr.cn# 7.2.8.AT+STMSG Function:Query/Setting module’s welcome message.
Technical Support: h.usriot.com USR-G786-G User Manual Format: Query current parameter AT+CSQ{CR} or AT+CSQ?{CR} {CR}{LF}+CSQ: rssi {CR}{LF} Parameter: rssi: Received signal strength information. Figure 2 Mapping relation Number Less than -113 dBm 0 1 7.2.11. Implication -111 dBm 2....31 99 -109...
1 USR-G786-G User Manual 2 CDMA mode 3 GSM mode 4 HDR mode 5 WCDMA mode 6 GPS mode 7 GSM/WCDMA mode 8 CDMA/HDR mixed mode 9 LTE mode 10 GSM/WCDMA/LTE mode 11 sim_state:UIM state. TDS mode Figure 6 UIM status list Number Implication 0 UIM card status is invalid 3 UIM is invalid under PS 1 UIM card status is effective UIM card status is invalid under CS 2 UIM is invalid under PS+CS 4 ROMUIM version 240 7.2.12. AMPS mode Technical Support: h.usriot.
USR-G786-G User Manual 7.2.14. AT+VER Function:Query module’s firmware version. Format: Query current parameter: AT+VER{CR} or AT+VER?{CR} {CR}{LF}+VER:version{CR}{LF} Parameters: version:Firmware version. 7.2.17. AT+CFGTF Function:Save current parameter to default parameter. Format: Execute specified function: AT+CFGTF{CR} {CR}{LF}OK{CR}{LF} 7.2.16. AT+CLEAR Function:Reload the default settings, device will restart.
USR-G786-G User Manual Format: Query current parameter: AT+IMEI{CR} or AT+IMEI?{CR} {CR}{LF}+IMEI:code{CR}{LF} Parameters: code:IMEI code. 7.2.20. 3G/4G (1~268435455) AT+CCLK Function: Query current time. Format: Query: AT+CCLK{CR} {CR}{LF}+CCLK : ,{CR}{LF} Parameters: :Data information
USR-G786-G User Manual AT+PING=“ip_address”{CR} {CR}{LF}+PING: ,, ,
USR-G786-G User Manual Tel: 86-531-88826739/86-531-55507297 Technical Support: h.usriot.com 9. Disclaimer This document provides the information of USR-G786-G 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.
FCC STATEMENT : This device complies with Part 15 of the FCC Rules. Operation is subject to the following two conditions: (1) This device may not cause harmful interference, and (2) This device must accept any interference received, including interference that may cause undesired operation. Warning: Changes or modifications not expressly approved by the party responsible for compliance could void the user's authority to operate the equipment.