Table of Contents

Advertisement

4G_2G DTU Products Function
This document applies to the following series of products. Please refer to the
product manual for product hardware instructions.
4G Products
2G Products
http://www.iotworkshop.com
4G_2G DTU
Products Function
V 1.8
- 1 -
HF2411
Elfin-EG40
Elfin-EG41
Gport-G43
HF2111A

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the HF2411 and is the answer not in the manual?

Questions and answers

Summary of Contents for HF HF2411

  • Page 1 4G_2G DTU Products Function 4G_2G DTU Products Function V 1.8 This document applies to the following series of products. Please refer to the product manual for product hardware instructions. HF2411 Elfin-EG40 4G Products Elfin-EG41 Gport-G43 2G Products HF2111A http://www.iotworkshop.com - 1 -...
  • Page 2 4G_2G DTU Products Function Elfin-EG10, Elfin-EG11 Gport-G10、 Gport-G11、 Gport-G12 http://www.iotworkshop.com - 2 -...
  • Page 3: Table Of Contents

    4G_2G DTU Products Function TABLE OF CONTENTS TABLE OF CONTENTS ........................... 3 LIST OF FIGURES ..........................6 LIST OF TABLES ............................ 6 FUNCTION DESCRIPTION ....................8 1.1. Basic Network Protocol ....................8 1.2. Working Mode ........................8 1.2.1. Transparent Throughput Mode .................. 8 1.2.2.
  • Page 4 4G_2G DTU Products Function 2.4.2.8. AT+GVER ......................... 37 2.4.2.9. AT+APPVER ........................37 2.4.2.10. AT+RELD ........................37 2.4.2.11. AT+CFGTF ........................37 2.4.2.12. AT+FCLR ........................37 2.4.2.13. AT+SRST ........................37 2.4.2.14. AT+Z ..........................38 2.4.2.15. AT+UART ........................38 2.4.2.16. AT+UARTTM ........................38 2.4.2.17.
  • Page 5 4G_2G DTU Products Function 2.4.2.52. AT+NDBGL ........................50 2.4.2.53. AT+SCRIPT ........................50 http://www.iotworkshop.com - 5 -...
  • Page 6: List Of Figures

    4G_2G DTU Products Function LIST OF FIGURES Figure 1. Network Application ......................... 8 Figure 2. Transparent Throughput Mode ......................9 Figure 3. AT+NETP Setting Case ........................9 Figure 4. Transparent Data Example ......................10 Figure 5. Transparent Transmission Mode Registration Packet Function Transmission ......10 Figure 6.
  • Page 7 V 1.2 03-22-2018. Add AT+LOCATE commend V 1.3 07-25-2018. Add EG model V 1.4 11-28-2018. Add HF2411, HF2111A type. Add AT+HTPXX series command V 1.5 12-10-2018. Add AT+CMDPW, AT+TCPTO command V 1.6 12-19-2018. Add AT+GOTA, AT+GVER command. Add Gport-G43 Type V 1.7 02-01-2019.
  • Page 8: Function Description

    4G_2G DTU Products Function 1. FUNCTION DESCRIPTION The products to which this document applies have the following characteristics. ➢ Connect the device to a PC or other server by establishing TCP/UDP or Telnet to support up to 3 socket communications. ➢...
  • Page 9: Figure 2. Transparent Throughput Mode

    4G_2G DTU Products Function Figure 2. Transparent Throughput Mode Under this mode, the user's serial device can send data to the specified server on the network through this module. The module can also receive data from the server and forward the information to the serial device.
  • Page 10: Sms Throughput Mode

    4G_2G DTU Products Function 2、Waiting for the network LED shows register to the network. After sending the UART data, the server replies with the IP address, port number and received data, as shown below: Figure 4. Transparent Data Example 1.2.2. SMS Throughput Mode In this mode, the UART data can be sent to and receive from short message.
  • Page 11: Figure 6. Http Mode Transmission

    4G_2G DTU Products Function packet, and the data request of the serial port device to the HTTP server can be realized by simple parameter setting. Figure 6. HTTP Mode Transmission For GET request, the received UART packet AAA will put after the HTTP path (auto add “?” between path and parameters), for POST request, packet is put in the content (auto add Content- Length header information).
  • Page 12: Figure 7. Http Get Request Example

    4G_2G DTU Products Function Figure 7. HTTP GET Request Example Product will send the below data to HTTP Server when UART receive “pppp” data for POST request. POST /1111 HTTP/1.1 Host: 192.168.83.107 Content-Length:4 pppp Product will output “DDDD” when get response from the HTTP server. HTTP/1.1 200 OK Content-Length: 4 Connection: close...
  • Page 13: Figure 8. Http Post Request Example

    4G_2G DTU Products Function Figure 8. HTTP POST Request Example The HTTP header information is configured by IOTService tool as follows. Figure 9. IOTService UART Set HTTP Parameter http://www.iotworkshop.com - 13 -...
  • Page 14: Socka Websocket Mode

    4G_2G DTU Products Function Figure 10. IOTService Remote Set HTTP Parameter 1.2.4. SOCKA WebSocket Mode Device support WebSocket Client send data to WebSocket Server. (Use IOTService or Webpage to config). When in WebSocket Mode, device side will auto add WebSocket protocol header to server when receive UART data.
  • Page 15: Figure 12. Iotservice Tools Uart Config

    4G_2G DTU Products Function Figure 12. IOTService Tools UART Config Figure 13. IOTService Network Config http://www.iotworkshop.com - 15 -...
  • Page 16: Socka Mqtt Mode

    4G_2G DTU Products Function 1.2.5. SOCKA MQTT Mode Device support MQTT Client send data to MQTT Server. (Use IOTService or Webpage to config). More MQTT Case refer to following link. http://www.hi-flying.com/download-center-1/application-notes-1/download-item-industry-products- application-manual-20180415 Figure 14. MQTT Concept Figure 15. IOTService Tools UART Config http://www.iotworkshop.com - 16 -...
  • Page 17: Registration Package Function

    4G_2G DTU Products Function Figure 16. IOTService Tools Network Config 1.3. Registration Package Function Under the transparent transmission mode, the registration package function can be enabled. When the connection is established (TCP only) or the serial port data is received, the content of the registration package is automatically added to the server, and the content of the registration package can be used with the version number, ICCID, IMEI, etc.
  • Page 18: Heartbeat Package Function

    4G_2G DTU Products Function Figure 17. Transparent Transmission Mode Registration Packet Function Transmission The example of registration package function is as follows: The following commands respectively enable the registration function of Socket A, set the content of the registration package to version number + signal strength + ABCD, enable the registration package when establishing connection and sending data.
  • Page 19: Multi-Socket Communication Function

    4G_2G DTU Products Function Figure 19. Transparent Transmission Mode Heartbeat Packet Function Transmission 1.5. Multi-Socket Communication Function The module supports max 3 sockets for simultaneous communication, and each channel can set serial port channels. In the multi- TCP link connection mode, data from TCP will be forwarded one by one to the serial port.
  • Page 20: Serial Frame Scheme

    4G_2G DTU Products Function Figure 21. Specify Socket Channel Communication Transmission 1.7. Serial Frame Scheme When the DTU receives data from the UART, it constantly checks the interval between two adjacent bytes. If the interval is greater than a certain value, then one frame is considered to have ended, otherwise the data is received until the buffer byte (512 bytes).
  • Page 21: Figure 23. Iotservice Serial Port Update

    4G_2G DTU Products Function Figure 23. IOTService Serial Port Update Figure 24. IOTService Network MethodUpgrade http://www.iotworkshop.com - 21 -...
  • Page 22: Iotservice Software

    4G_2G DTU Products Function 1.9. IOTService Software DTU enables the High Flying’s IOTBridge cloud management function by default. Through the IOTBridge cloud platform, the IOTService configuration tool can be configured in a network configuration (this will consume a certain amount of traffic. If it is enabled 24 hours, it can be configured at any time, and the traffic consumption is about 30MB/ Month), you can choose to turn off this feature or set only a specific time period to save to save traffic.
  • Page 23 4G_2G DTU Products Function 2)Open the serial port tool. 3)Open the serial port according to the current device serial port parameters, click to read the parameters, and the sidebar will display the AT command of the reading process. 4)After reading, the interface displays the working status of the current module. If you need to modify the parameters, click Confirm Setting to modify it.
  • Page 24: Iotservice Network Mode Configuration

    4G_2G DTU Products Function 1.9.2 IOTService Network Mode Configuration 1)Logging into the High Flying’s IOTBridge website (http://bridge.iotworkshop.com/) to register for an account, or enter through High Flying's official website. 2)After the registration, you can get the UserId (for the device) and the ServiceId (for the IOTService tool).
  • Page 25 4G_2G DTU Products Function 4)Insert the SIM card, power on the device, and wait until DTU register to the network. 5)Add the module MAC address to the tool for binding (the MAC address can be obtained through AT+WSMAC, usually we use back 12 characters of IMEI). It is recommended to use the AT+IOTUID command to write the UserId obtained on the IOTBridge to the device to prevent the device from being maliciously bound by other accounts.
  • Page 26: Modbus Protocol

    4G_2G DTU Products Function 7)Click Edit to modify the device operating parameters. 1.10. Modbus Protocol DTU supports ModbusRTU to ModbusTCP for easy connection to Modbus slave devices. The Modbus protocol setting is as below: http://www.iotworkshop.com - 26 -...
  • Page 27: Ntp Function

    4G_2G DTU Products Function Figure 26. Serial Port Modbus Function 1.11. NTP Function When the IOTBridge function is enabled, the module can obtain the NTP time. Through the AT+NTIME command, the user device can obtain the real time. 1.12. Virtual Serial Port Function The virtual serial port function requires the device to enable the IOTBridge service, which requires a certain amount of traffic.
  • Page 28: His Script Funciton(Only 4G Product Support)

    1.13. HIS Script Funciton(Only 4G Product Support) Hi-flying I.O.T script(HF IOT Script, short fot HIS). It is used for data transfer of IOT industrial device. When download the script in to the industrial device, the following functions can be achieved.
  • Page 29: Figure 28. Scirpt Funciton

    4G_2G DTU Products Function Scirpt Funciton Figure 28. http://www.iotworkshop.com - 29 -...
  • Page 30: At Instruction Introduction

    4G_2G DTU Products Function 2. AT INSTRUCTION INTRODUCTION 2.1. Working Mode After the product is powered on, it enters the default mode, that is, the transparent transmission mode. The user can switch the working mode to the AT command line mode through the serial port specific data.
  • Page 31: Send At Command In Transparent Transmission Mode

    It saves the steps of changing to AT command mode. The following example, we first set AT+CMDPW=HF, then send the following data in transparent mode, and get the AT command response. This data won’t be sent to socket.
  • Page 32: Sms At Command

    4G_2G DTU Products Function 2.3. SMS AT Command The SMS AT command refers to sending [AT+] by SMS to query and set parameters. 2.4. Overview of the AT Instruction Set The AT+ command can be input directly through a serial port debugger such as a Hyper Terminal, or it can be programmed.
  • Page 33: At Instruction Set

    4G_2G DTU Products Function AT+<CMD>[op][para-1,para-2,para-3,para-4…]<CR> ◼ AT+:Command message prefix ◼ CMD:Instruction string; ◼ [op] :Instruction operator, specified as parameter setting or query ◆ "=" : Indicates parameter setting ◆ "NULL" : Indicates the query ◼ [para-n]: Input when parameter setting, such as query is not required ◼...
  • Page 34 4G_2G DTU Products Function Instruction Description Set / Query Boot Welcome Message HOST Set/Query hostname in the IOTService ENTM Enter Transparent Mode Query Software Version GVER Query GPRS software version(Only 4G product support) APPVER Query Custom Software Version Number RELD Restore User Default Parameters, Automatically Restart CFGTF Save the Current Parameter as the User Default Parameter...
  • Page 35: At+H

    4G_2G DTU Products Function Instruction Description Module Information Query Set ICCID Query Module ICCID Code IMEI Query IMEI Code IMSI Query SIM Card’s IMSI Number Upgrade Instruction Set UPURL Set / Query the URL Address of the Remote Upgrade Other Instruction Set Set/Query APN information.
  • Page 36: At+Wel

    When set this value to “HF”, then can get response of “+ok=STA”(Hex: 2B 6F 6B 3D 53 54 41) for send “HFAT+WMODE\r”(Hex: 48 46 41 54 2B 57 4D 4F 44 45 0D, AT command should end with 0D or 0A).
  • Page 37: At+Ver

    4G_2G DTU Products Function 2.4.2.7. AT+VER ◼ Function: Query software version. ◼ Format: AT+VER<CR> +ok=<ver><CR><LF><CR><LF> ◼ Parameter: ◆ ver: The product software version number: three bytes, the big version number, the small version number, the test version number. 2.4.2.8. AT+GVER ◼...
  • Page 38: At+Z

    4G_2G DTU Products Function 2.4.2.14. AT+Z ◼ Function: Hard restart. ◼ Format: AT+Z<CR> +ok<CR><LF><CR><LF> The IO control state is initialized. 2.4.2.15. AT+UART ◼ Function: Set/query the serial port operation, and the settings will take effect after reset. ◼ Format: ◆ Query Operation: AT+UART=<id><CR>...
  • Page 39: At+Smsid

    4G_2G DTU Products Function ◆ Query Operation: AT+MODBUS=<id><CR> +ok=<id><status><CR><LF><CR><LF> ◆ Set Operation: AT+MODBUS=<id><status><CR> +ok<CR><LF><CR><LF> ◼ Parameter: ◆ id: Serial port number ⚫ 1: Port 1 ⚫ 2: Port 2 (G10, G11, G12 support) ◆ status: Modbus RTU to TCP function ⚫...
  • Page 40: At+Netplk

    4G_2G DTU Products Function  WEBSOCKET: WebSocket mode, only Socket A support this  MQTT: MQTT mode, only Socket A support this ◆ iP: Target IP address, support domain name, max 50 bytes, default 【nat2.iotworkshop.com】 ◆ port: Protocol port number, decimal number, 1 to 65535, default【3006】. ◆...
  • Page 41: At+Netpiden

    4G_2G DTU Products Function ⚫ B: Socket B channel. ⚫ C: Socket C channel. ◆ time: TCP timeout value. ⚫ 0: Turn off this function ⚫ 1~600: Seconds of time out, default【300】 Module begin to count time when TCP channel don’t receive any data, clear time counter when TCP channel receive any data.
  • Page 42: At+Nregen

    4G_2G DTU Products Function ◼ Format: ◆ Query Operation: AT+DATA=<id><CR> +ok=<id,send_num,recv_num><CR><LF><CR><LF> ◼ Parameter: ◆ id: Communication channel number, including the following parameters. ⚫ A: Socket A channel. ⚫ B: Socket B channel. ⚫ C: Socket C channel. ⚫ 1: Port 1 ⚫...
  • Page 43: At+Nregsnd

    %TIME: Hour, minute, and second time. HHMMSS, range : 000000~235959,ASCII format, Ex: 165036  %HOST: Hostname, set by AT+HOST, ASCII format, Ex: Eport-HF2411 There are several ways to match custom data, such as: The contents of the registration package are ASCII code 【ABCDEFG】, AT+NREGDT=A, ABCDEFG The contents of the registration package are hexadecimal 【0x01 0x02 0x03 0x04 0x05】,...
  • Page 44: At+Htptp

    4G_2G DTU Products Function ⚫ 2: Serial port 2 channel. (G10, G11, G12 support) ◆ time: Heartbeat interval, default 【0】seconds, disable heartbeat function, range 1~65535. ◆ data: Custom data, up to 38 bytes, support escape characters, please refer to AT+NREGDT command for details.
  • Page 45: At+Mqtopic

    4G_2G DTU Products Function ◼ Format: ◆ Query Operation: AT+WEBSOCKET<CR> +ok=<ping,path,protocol><CR><LF><CR><LF> ◆ Set Operation: AT+WEBSOCKET=<ping,path,protocol><CR> +ok<CR><LF><CR><LF> ◼ Parameter: ◆ ping: WebSocket ping time, unit: seconds, 0: Disable,depends on Server side to set or disable. ◆ path: WebSocket Path header ◆ protocol: WebSocket protocol, depends on the server requirement.
  • Page 46: At+Locate

    4G_2G DTU Products Function ◆ Query Operation: AT+MQID<CR> +ok=<id><CR><LF><CR><LF> ◆ Set Operation: AT+MQID=<id><CR> +ok<CR><LF><CR><LF> ◼ Parameter: ◆ id: Client ID, must be different for each device, recommend to use IMEI, MAC for this Client ID. 2.4.2.36. AT+LOCATE ◼ Function: Query/set latitude and longitude. ◼...
  • Page 47: At+Getip

    4G_2G DTU Products Function ◼ Parameter: ◆ url: Upgrade url address. AT+GOTA=http://download.iotworkshop.com/iotbridge/firmwares/4GLTE/4G_V1.575_7ed2afca1cf4919f40346f3f23403594.bin There is upgrade status information. 2.4.2.39. AT+GETIP ◼ Function: Query the IP address of the specified domain name. ◼ Format: ◆ Query Operation AT+GETIP<CR> +ok=<”domain_name” ><CR><LF><CR><LF> ◼ Parameter: ◆...
  • Page 48: At+Iccid

    4G_2G DTU Products Function ◆ Query Operation: AT+GSMST<CR> +ok=<status,strength><CR><LF><CR><LF> ◼ Parameter: ◆ status: Module network status. : ⚫ disconnect: Not connect GPRS network. ⚫ connect: Registered to the GPRS network. ⚫ sIM Not Exist: SIM card does not exist. ◆ Strength: Signal strength, range from 0-31.
  • Page 49: At+Ntime

    4G_2G DTU Products Function 2.4.2.47. AT+NTIME ◼ Function: Query NTP real time function. ◼ Format: ◆ Query Operation: AT+NTP<CR> +ok=<second,run_time,time><CR><LF><CR><LF> ◼ Parameter: ◆ second: 0 time zone UTC time stamp, for example: 【1516884584】. ◆ run_time: The current running time, in seconds. 【...
  • Page 50: At+Pcid

    1: UART 1  2: UART 2 When the work is abnormal, please open the debug log information and send it to us for checking the phenomenon. HF2411 input AT+NDBGL=1,0 to enable log output, AT+NDBLG=0,0 disable log. 2.4.2.53. AT+SCRIPT ◼...
  • Page 51 4G_2G DTU Products Function ◼ Parameter: ◆ del: Delete HIS script. http://www.iotworkshop.com - 51 -...

Table of Contents