DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual DTU-H100 Wi-Fi/Ethernet to RS232/RS485 Server User Manual V1.1 Overview of Characteristic Embedded UART to Wi-Fi device, hardware flow control (RTS/CTS) RS232 interface Support IEEE802.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual TABLE OF CONTENTS 1. PRODUCT OVERVIEW ...........................................................................................................10 1.1. General Specification .........................................................................................................10 1.2. Hardware Introduction .......................................................................................................11 1.2.1. Interface Description .......
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual 3.12. 3.13. Palmodic Signal ..............................................................................................................28 Firmware Upgrade ..........................................................................................................29 4. OPERATION GUIDELINE .......................................................................................................30 4.1. Configuration via Web Accessing .................
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual 5.2.2.21. 5.2.2.22. 5.2.2.23. 5.2.2.24. 5.2.2.25. 5.2.2.26. 5.2.2.27. 5.2.2.28. 5.2.2.29. 5.2.2.30. 5.2.2.31. 5.2.2.32. 5.2.2.33. 5.2.2.34. 5.2.2.35. 5.2.2.36. 5.2.2.37. 5.2.2.38. 5.2.2.39. 5.2.2.40. 5.2.2.41. 5.2.2.42. 5.2.2.43. 5.2.2.44. 5.2.2.45. 5.2.2.46. 5.2.2.47. 5.2.2.48. 5.2.2.49. 5.2.2.50. 5.2.2.51. 5.2.2.52. 5.2.2.53. 5.2.2.54. 5.2.2.55. 5.2.2.56. 5.2.2.57. 5.2.2.58. 5.2.2.59. 5.2.2.60. 5.2.2.61. AT+HIDESSID ..............................
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual Q6: How to avoid IP address confliction when apply DTU? ......................................................70 Q7: PC works as server, all DTUs works as data acquisition card and connect with PC, how to configure this application? ..............................................................................................70 Q8: DTU works in STA mode, how does the PC get the DTU IP address. .................................
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual LIST OF FIGURES Figure 1. Figure 2. Figure 3. Figure 4. Figure 5. Figure 6. Figure 7. Figure 8. Figure 9. Figure 10. Figure 11. Figure 12. Figure 13. Figure 14. Figure 15. Figure 16. Figure 17. Figure 18. Figure 19. Figure 20. Figure 21. Figure 22. Figure 23. Figure 24. Figure 25. Figure 26. Figure 27. Figure 28. Figure 29. Figure 30. Figure 31. Figure 32. Figure 33. Figure 34. Figure 35. Figure 36. Figure 37. Figure 38. Figure 39. Figure 40.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual Figure 48. UDP Search Function ....................................................................................................71 LIST OF TABLES Table 1 Table 2 Table 3 Table 4 Table 7 Table 5 Table 6 Table 7 DTU-H100 Technical Specifications ...................................................................................10 DTU-H100 External Interface .........................................................................................
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual HISTORY Ed. V0.1 Created on 01-27-2016. Ed. V0.2 Update AT command list and add Q&A. Ed. V1.0 Update GPIO function. Ed. V1.1 Add Telnet functio(firmware version at least 1.8), add TCPB SSL function(firmware version has TLS word support this feature,AT+VER::4.02.11.DTU-1.8-TLS),Add DTU-H101、 DTU-H102 Type. http://www.iotworkshop.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual 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.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual 1. PRODUCT OVERVIEW 1.1. General Specification Table 1 Class Ethernet Port Wi-Fi Port DTU-H100 Technical Specifications Item Parameters Port Number 1 Interface 8-Pin RJ45 PHY Rate 10/100Mbps, MDI/MDIX Network Protocol IP/TCP/UDP/DHCP/DNS/HTTP/ARP/ ICMP/Web socket/Http Client Standard 802.11 b/g/n Network Mode Max Connection STA/AP/STA+AP 32 802.11b: +20 dBm (Max.) 802.11g: +18 dBm (Max.) 802.11n: +15 dBm (Max.) 802.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual 1.2. Hardware Introduction Figure 1. 1.2.1. DTU-H100 Appearance Interface Description Table 2 DTU-H100 External Interface Function Name Description External RJ45 Ethernet 10/100M Ethernet Interface RS232 RS232 Communication RS485 RS485 Communicaton DC5-18V DC Power 5~18V Input Power 3.3V Internal Power Supply Indicator LED Indicator Boot Indicator Ready On: Device boot OK. Off: Waiting For Device boot.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual Function Name Button Description Restore to Factory Setting Button Reload Long Press this button for 3 seconds and loosen, the device will restore to factory setting in 10 seconds. 1.2.2. RS232 Interface Device serial port is male(needle), RS232 voltage level(can connect to PC directly), Pin Order is cosistent with PC COM port.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual Figure 3. Table 4 1.2.5. RJ45 Pin Defination RJ45 Interface Pin Number Name 1 TX+ Description Transfer Data+ 2 TX- Transfer Data- 3 RX+ Receive Data+ 4 PHY-VCC Transformer Tap Voltage 5 PHY-VCC Transformer Tap Voltage 6 RX- Receive Data- 7 N.C. None Connect 8 N.C. None Connect Button Interface This Button is used for restore device to factory setting.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual 1.2.6. Mechanical Size DTU-H100 device physical size as follows: Figure 4. DTU-H100 Mechanical Dimension 1.2.7. Order Information Base on customer detailed requirement, DTU-HXXX series product provide different variants and physical type for detailed application. Figure 5. http://www.iotworkshop.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual 1.2.8. Device Difference Device difference is as following. Type RS232 DTU-H100 √ DTU-H101 √ DTU-H101 1.2.9. RS485 √ √ Ethernet √ Input Voltage 5~18V 5~18V 5~18V Size(mm) 84x84x25 84x84x25 84x84x25 Package Information 1 * DTU-HXXX 1 * 5V/1A Power Adapter 1 * Serial Cable(Only for DTU-H100) 1 * Ethernet Cable(Only for DTU-H100) 1 * 3dBi Antenna http://www.iotworkshop.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual 2. APPLICATION 2.1. Wireless Networking The device can be configured as both wireless STA and AP base on network type. Logically there are two interfaces in the device. One is for STA, and another is for AP. When the device works as AP, other STA equipments are able to connect to wireless LAN via the device. Wireless Networking is very flexible. Following figure shows the functional architecture: Figure 6.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual 2.1.2. STA Application As showing in the figure below, Router works as an AP, DTU and the laptop are STAs connected to AP. Meanwhile, DTU connected to user device via RS232/RS485 interface. in such AP network structure, the whole coverage of a wireless network can be extended easily. DTU Device STA Mode RS232/RS485 Server Server PLC Device Wirele s s Con necti on WWW. Network Cloud Laptop Phone Figure 8. Tablet DTU STA Application 2.1.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual Server Server STA RS232/RS485 DTU Device AP+STA Mode PLC Device Wirele s s Con necti on AP Laptop Phone Figure 9. Tablet DTU AP+STA Application When device enables AP+STA function, device's STA interface can connect with router and connect to TCP server in the network.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual When user enable AP+STA function, the STA port need to keep connected with other router (AP), or STA port will have to scan the AP frequently, which will affect AP port function and may cause some data loss. 2.1.4. One AP One STA Applicatioin AP IP: 10.10.101.254 RS232/RS485 PLC Device AP STA s Con Wirele s AP necti on AP IP: 10.10.100.254 STA IP: 10.10.101.100 Laptop Phone IP: 10.10.100.100 IP: 10.10.100.101 Tablet IP: 10.10.100.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual reset to enable/disable Ethernet. Device need different configuration to support different Ethernet Networking mode (Such as “N-Ver" and “Z-Ver" as following, which need AT+FVER=n to switch to N-Ver or AT+FVER=z to switch to Z-Ver). 2.2.1. Ethernet Interface Networking (As AP, N-Ver) DTU Device AP Mode RJ45 Ethernet AP IP:10.10.100.254 Laptop in k Laptop IP:10.10.100.100 ink iL i-F W iL i-F W Wi-F i Link IP:10.10.100.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual 10.10.100.100).So for above networking, PC1(left laptop) at internal subnet can initiate a connection to PC2 , but PC2 can‟t active initiate a connection to PC1, they are in a different subnetwork. 2.2.3. Ethernet Interface Networking (As STA, Z-Ver) RJ45 Ethernet Wireless Wireless Laptop IP:192.168.1.101 STATIC IP:192.168.1.10 IP:192.168.1.1 Laptop IP:192.168.1.102 Figure 13.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual 3. FUNCTION DESCRIPTION 3.1. User Configuration Process When device power on, it will work as the previous setting parameter. If need to change the default working mode, need to configure the following example.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual 3.2.2. Agreement(Serial Command Mode) In this mode, the user can send the serial data to a different server address, this mode can use UDP or TCP client to send data to server. Customer MCU send packets according to the following format. The device will parse the received serial data and send only the data to ther destination address. When data is received from server, the device will output it directly.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual Data: Sent data, the maximum length is 1000 bytes. Summary: The following example for reference. UART Data: 【0x55 0xaa 0x00 0x0a 0x00 0x00 0x00 0x21 0x00 0x85 0x00 0xA8 0xC0 0x01 0x0f】 Length: 【0x00 0x0a】 Function Byte:【0x00 (UDP;Short connection;IP;cut protocol)】 Destination Port:【0x21 0x00(33)】 Target Address:【0x85 0x00 0xA8 0xC0 (192.168.0.133)】 Data:【0x01(data:1)】 Sum Check:【0x0f (0x00+0x00+0x00+0x21+0x00+0x85+0x00+0xA8+0xC0+0x01=0x0f)】 3.2.3.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual 3.3. Wi-Fi Parameter Setting 3.3.1. Auto- Frequency Function When device works as STA, it will adjust its wireless channel to keep the same channel with associated AP and connect in. When device works as AP and enable Auto-frequency function, then when device boot up, it will select the best wireless channel based on surrounding environment. 3.3.2.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual defined value (50ms default), The device will think it as the end of one frame and transfer this free-frame to WiFi port, or The device will receive UART data untill 4K bytes, then transfer 4KB frame to WiFi port. The device‟s default interval time is 50ms. User can also set this interval to fast (10ms) through AT command. But user have to consider if user MCU can send UART data with 10ms interval ,or the UART data may be divide as fragment.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual Figure 15. Multi-TCP Link Data Transmition Structure 3.5.2. Socket B Socket B has one work mode: TCP Client, please refer to the AT + TCPB command instruction.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual 3.7. Upload ID This function only applies to the the device as a TCP client (Socket A or Socket B), in front of the data when the device connected to the server, it will add with two bytes of ID (ID the range is 0 ~ 65535, the high byte first, and the low byte behind) plus two bytes ID radix-minus-one complement, e.g the default ID is 1111, then the "0x57 0x04 0xfb 0xa8" will be sent to the server.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual Status Two: The device will output “Palmodic Signal" after normal boot up.The palmodic signal is 0.5Hz square wave with dutyfactor 1:1. User can query this signal to judge if deviceis active “live" or need to re-boot. When device switches to command mode, it will output “0", which used to distinguish work mode and command mode. Notes: This function is user selected factory setting and RELD instruction will not effective for this function.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual 4. OPERATION GUIDELINE 4.1. Configuration via Web Accessing When first use device, user may need some configuration. User can connect to device‟s wireless interface with following default setting information and configure the device through laptop. Table 5 The device Web Access Default Setting Parameters SSID Default Setting DTU-H100_XXXX IP Address 10.10.100.254 Subnet Mask 255.255.255.0 User Name admin Password admin 4.1.1.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual Figure 18. Quick Configure Page This page has four configuration options and a restart, the corresponding instructions below: WI-FI Setting: set the working mode of wifi, AP mode or the STA. Ethernet Ports Setting: open/close the Ethernet ports, and set up the corresponding work mode. UART Setting: set serial port parameters, including baud rate, parity bit, 485 functions and so on.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual 4.1.4. AP Interface Setting Page This page use to setting the parameters when device works as AP. Figure 20. AP Interface Setting Page 4.1.5. STA Interface Setting Page This page use to setting the parameters when device works as STA. Such as SSID of AP which device need to connected, and also select the networking type: DHCP or static IP address. http://www.iotworkshop.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual Figure 21. STA Interface Setting Page 4.1.6. Application Setting Page This page use to setting the parameters of serial port communication, such as UART setting and high layer network protocol setting which used support serial communication. Figure 22. Application Setting Page Notes: Generally, Network protocols support three modes: TCP Server, TCP Client, UDP Server and UDP Client. UDP has no server and client requirement according to standard.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual function for UDP Server mode, If set as UDP Server, the device will save the IP address and port of the latest UDP packet received. The data will be sent to the saved IP address and port. If the device hasn‟t saved any IP address and port when power up. The data will be sent to the IP address and port which is set by this command. Besides device working as TCP Server (IP address not required in this mode).
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual Figure 25. Device Management Page Notes: Restart device button: When you setting the parameters of different web pages, you will click “Apply" button to confirm the setting, but the setting take effect only after user click the “Restart" button here, the device will re-boot up and reflash the memory information with new changes. WEB IO and Advances page function is reserved. 4.2. The device Usage Introduction 4.2.1.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual RS232/RS485 Laptop Laptop Figure 26. STA Interface Debug Connection Use The device AP interface Debug PC2 connect to The device through wireless connection, another PC1 (or user device) connect to device with serial port. RS232/RS485 Laptop Laptop Figure 27. AP Interface Debug Connection 4.2.3. Device Debug PC1 open “CommTools" program, setting the same serial port parameters with device and open serial port connection. Figure 28.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual Figure 29. “TCPUDPDbg" Tools Create Connection Then setting the TCP/UDP connection parameters. Default as following: Figure 30. “TCPUDPDbg" Tools Setting Then, click “Create" button to create a connection. http://www.iotworkshop.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual Figure 31. “TCPUDPDbg" Tools Connection Now, in transparent transmission mode (The device default setting), data can be transferred from “CommTools" program to “TCPUDPDbg" program, or in reverse. You can see data in receiver side will keep same as in sender side. 4.3. Typical Application Examples 4.3.1. Wireless Control Application RS232/RS485 PLC Device Figure 32.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual 4.3.2. Remote Management Application DTU Device STA Mode RS232/RS485 Server Server PLC Device WWW. Network Cloud DTU Device STA Mode RS232/RS485 PLC Device Figure 33. Remote Management Application For this remote management application, The device works as STA mode and connects to Internet through wireless AP. Device configured as TCP Client and communicates with remote TCP server at Internet. Device‟s serial port connects to user device.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual AP IP: 10.10.101.254 RS232/RS485 PLC Device AP STA AP IP: 10.10.100.254 STA IP: 10.10.101.100 RS232/RS485 PLC Device Figure 34. Transparent Serial Port Application For up side device, configured as AP mode and use default SSID and IP address changed to 10.10.101.254, network protocol configured as TCP/Server mode, and protocol port ID: 8899.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual LAN IP: 10.10.100.254 Net Prot: TCP Client 10.10.100.100:8899 AP IP: 10.10.100.100 Net Prot: TCP Server 8899 STA STA RS232/RS485 RS232/RS485 LAN IP: 10.10.99.254 WAN IP: 10.10.100.101 Net Prot: TCP Client 10.10.100.100:8899 LAN IP: 10.10.98.254 WAN IP: 10.10.100.102 Net Prot: TCP Client 10.10.100.100:8899 Figure 35.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual 5. AT+INSTRUCTION INTRODUCTION 5.1. Configuration Mode When The device power up, it will default works as transparent transmission mode, then user can switch to configuration mode by serial port command. The device UART default parameters setting as below figure, Figure 36. The device Default UART Port Parameters In configuration mode, user can setting the device through AT+ instruction set, which cover all web page setting function. 5.1.1.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual 1. When user input “+++" (No “Enter" key required), the UART port will display feedback information “a", and not display input information"+++" as above UART display. 2. Any other input or wrong step to UART port will cause the device still works as original mode (transparent transmission). 5.2.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual “NULL": Query the current command parameters setting; [para-n]: Parameters input for setting if required; :"Enter" Key, it‟s 0x0a or 0x0d in ASCII; Notes: When input AT+Instruction, “AT+" character will display capital letter automatic and other parts will not change as you input.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual WSLK WEBU WAP WAKEY HIDESSID MSLP WSCAN TCPLK TCPDIS WANN LANN DHCPDEN DHCPGW TCPTO MAXSK TCPB TCPPTB TCPADDB TCPTOB TCPLKB NTCPBSSLEN EPHY STTC DOMAIN FRLDEN RELD Z MID WRMID VER H FVEW FVER WMAC PING Query WiFi link status as STA Set/Query WEB page login parameters (User Name and Password) Set/Query WIFI parameters as AP Set/Query WIFI security parameters as AP Set/Query hide AP‟s SSID Set devices into power save mode.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual 5.2.2.2. AT+ENTM Function: Set device into transparent transmition mode; Format: AT+ENTM +ok< LF >< LF > When operate this command, device switch from configuration mode to transparent transmission mode. 5.2.2.3.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual data_bits: stop_bits: 1,2 parity: 5,6,7,8 NONE,EVEN,ODD,MARK,SPACE flowctrl:hardware flow control (CTSRTS) NFC: No flow control FC: flow control After device boots up again, the setting will be effective. 5.2.2.5.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual AT+ UARTFL= +ok< LF >< LF > Parameters: len: Range 64 ~4096; Unit: byte. Auto-frame trigger length; 5.2.2.8.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual AT+ WSKEY/AT+WSKEYA=< auth,encry,key> +ok< LF >< LF > Parameters: auth: Authentication mode OPEN SHARED WPAPSK encry:Encryption algorithm NONE: When “auth=OPEN", effective WEP-H: When “auth=OPEN" or “SHARED", effective, HEX format WEP-A: When “auth=OPEN" or “SHARED", effective, ASCII format TKIP: When "auth= WPAPSK", effective AES: When “auth= WPAPSK", effective key: password, ASCII code, shall
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual Query Operation AT+WSKEYC +ok=< LF >< LF > Set Operation AT+WSKEYC=< auth,encry,key> +ok< LF >< LF > Parameters: auth: Authentication mode OPEN SHARED WPAPSK encry:Encryption algorithm NONE: When “auth=OPEN", effective WEP-H: When “auth=OPEN" or “SHARED", effective, HEX format WEP-A: When “auth=OPEN" or “SHARED", effective, ASCII format TKIP: When "auth= WPAPSK", ef
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual AT+ WSSSIDB= +ok< LF >< LF > Parameters: ap‟s ssid: AP‟s SSID This Instruction only effective for The device works as STA. After device boots up again, the setting will be effective. But user can set this command when device configured as AP. The default is DTUH100_AP2. 5.2.2.15. AT+WSSSIDC Function: Set/Query WIFI third target AP SSID parameters as STA.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual +ok=< LF >< LF > Parameters: ret "Disconnected", if no WiFi connection; "AP‟ SSID(AP‟s MAC" ), if WiFi connection available; "RF Off", if WiFi OFF; This Instruction only effective for The device works as STA. After device boots up again, the setting will be effective. But user can set this command when device configured as AP. 5.2.2.18.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual 5.2.2.20.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual Query Operation AT+ MSLP +ok=
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual sta.: set/qurey TCP link status; on: TCP link availabe; When setting “on", device will connect to TCP server right away. off: TCP link not availabe; when setting “off", device will disconnect with TCP server and not connect again. 5.2.2.26.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual AT+DHCPDEN +ok=< LF >< LF > Set Operation AT+ DHCPDEN= +ok< LF >< LF > Parameters: sta. if Enable/Disable LAN DHCP server function; on: Enable LAN DHCP server function. off: Disable LAN DHCP server function. 5.2.2.29.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual AT+ MAXSK = +ok< LF >< LF > Parameters: num: 1~32, default 32. maxima TCP connection; When configure as TCP/Server, The device support maxime 32 TCP connections. If not require so much connection, user can resetting this parameters. 5.2.2.32.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual +ok< LF >< LF > Parameters: add: TCPB server address, can be IP address or url. After device boots up again, the setting will be effective 5.2.2.35.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual AT+REGEN +ok=< LF >< LF > Set Operation AT+REGEN= +ok< LF >< LF > Parameters: mode: Register packet type id: id type mac: mac type off: disable this function, default value. 5.2.2.39. AT+REGTCP Function: Set/Query methods of TCP Client register packet, setting is valid after reboot.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual Set Operation AT+ EPHY= +ok< LF >< LF > Ethenet port function is disabled bydefault. Input this command to enable Ethenet. This command is not saved, this means after the device reset, Ethenet is disabled by default. Input “AT+FEPHY=on" to enable Ethenet forever.. 5.2.2.42.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual On, enable nReload pin function; Off, disable nReload pin function; Notes: AT+FRLDEN is F-Setting, means restore to factory setting will not affect this command. 5.2.2.45. AT+RELD Function: Restore to factory default setting; Format: AT+ RELD +ok=rebooting…< LF >< LF > This command restores the device to factory default setting, and then re-starts the device. 5.2.2.46.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual Format: Query Operation AT+H +ok= Parameters: commod help: command introduction; 5.2.2.51. AT+FVEW Function: Enable/Disable Ethernet WANN mode. It's valid only if restore to factory setting.; Format: Query Operation AT+ FVEW +ok= Set Operation AT+ FVEW= +ok Parameters: status: Enable or Disable Ethernet WANN mode..
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual +ok=
Set Operation AT+ WMAC= +ok Parameters: address: device MAC address in AP mode. The device‟s STA MAC address is AP‟s MAC address plus 1. For example, AP address: ACCF23208888, then STA address: ACCF23208889. 5.2.2.54. AT+PING Function: PING command; Format: Set Operation AT+ PING= +ok= Parameters: address: target IP address.DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual Type: GET/PUT/POST, default GET. 5.2.2.57. AT+HTPURL/AT+HTTPPH Function: Query/Set device http header directory, it is valid only in httpdclient mode, setting is valid after reboot Format: Query Operation AT+HTPURL/AT+HTTPPH +ok=< LF >< LF > Set Operation AT+HTPURL/AT+HTTPPH= +ok< LF >< LF > Parameters: Path: 1~50 length, devault "/abcd". 5.2.2.58.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual Query Operation AT+HTPMODE +ok=< LF >< LF > Set Operation AT+HTPMODE= +ok< LF >< LF > Parameters: type: HTTP format, new: new HTTP format mode.(default mode) old: old HTTP format mode.(Reserved) 5.2.2.61. AT+HTPHEAD Function: Query/Set device new http format header, it is valid only in httpdclient mode, setting is valid after reboot.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual APPENDIX A: QUESTIONS AND ANSWERS Q1: How to configure transparent serial port application (TCP protocol) with two DTU devices? Network structure as below figure: DTU 1# Setting: --See “Mode Selection Page” Works as AP mode; LAN IP address: 10.10.100.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual Wireless WAN IP address setting see “STA Interface Setting Page” as below Figure, User can set WAN connection type to DHCP and STATIC IP. Figure 41. DTU WAN IP Setting Q3: How to configure transparent serial port application (UDP protocol) with two DTUs? Network structure as below figure: DTU 1# Setting: Works as AP mode; --See “Mode Selection Page” LAN IP address: 10.10.100.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual Figure 43. DTU Network Protocols: TCP/Server Protocol: TCP Client Application IP address required: it‟s target TCP server „s IP address; Port ID required: 8899 (Default) Figure 44. DTU Network Protocol: TCP/Client Protocol: UDP No Server/Client selection required; Application IP address required: it‟s target device „s IP address; Port ID required: 8899 (Default) http://www.iotworkshop.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual Figure 45. DTU Network Protocol: UDP Q5: How to configure transparent serial port application: Two DTUs all configured as STA and connection through AP? Network structure as below figure: DTU 1# Setting: Works as AP mode and all default setting; DTU 2# Setting: --See “Mode Selection Page” Works as STA mode; WAN connection type: Static IP: 10.10.100.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual 1# AP, LAN IP:10.10.100.254 TCP, Server 8899 DTU WIFI WIFI 3# 2# MCU UART DTU STA, LAN IP:10.10.99.254 WAN IP: 10.10.100.100 TCP, Server 8899 DTU UART MCU STA, LAN IP:10.10.98.254 WAN IP: 10.10.100.101 TCP, Client 10.10.100.100: 8899 Figure 46.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual PC WIFI 1# IP: 10.10.100.100 TCP, Server 8899 AP, LAN IP:10.10.100.254 TCP, Client 10.10.100.100:8899 UART MCU DTU WIFI WIFI 3# 2# MCU UART DTU STA, LAN IP:10.10.99.254 WAN IP: 10.10.100.101 TCP, Client 10.10.100.100:8899 DTU UART MCU STA, LAN IP:10.10.98.254 WAN IP: 10.10.100.102 TCP, Client 10.10.100.100: 8899 Figure 47. Wireless Data Acquisition Card Setting Q8: DTU works in STA mode, how does the PC get the DTU IP address.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual APPENDIX B:RECOMMEND TOOLST Debug Tools download link : http://pan.baidu.com/s/1i413aUL, include the following tools. B.1.UART Tools SecureCRT Accessport B.2.TCPUDP Tools TCPUDPDbg: B.3.APP Tools Wi-Fi Config Tools: http://www.iotworkshop.
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual APPENDIX C: CONTACT INFORMATION -----------------------------------------------------------------------------------------------------------Web Site: http://www.iotworkshop.com/ Business Contact: business@iotworkshop.com Technical Contact: support@iotworkshop.com After Sale Contact: service@iotworkshop.com ----------------------------------------------------------------------------------------------------------- END OF DOCUMENT http://www.