High Flying Electronics Technology HF-DTU-H100 HF-DTU-H100 User Manual GPON SFU System Design

High-Flying Electronics Technology Co., Ltd. HF-DTU-H100 GPON SFU System Design

User Manual

Download: High Flying Electronics Technology HF-DTU-H100 HF-DTU-H100 User Manual GPON SFU System Design
Mirror Download [FCC.gov]High Flying Electronics Technology HF-DTU-H100 HF-DTU-H100 User Manual GPON SFU System Design
Document ID3050761
Application IDWZI+fIFtrYdyQRCRx9QQQQ==
Document DescriptionUser Manual
Short Term ConfidentialNo
Permanent ConfidentialNo
SupercedeNo
Document TypeUser Manual
Display FormatAdobe Acrobat PDF - pdf
Filesize169.09kB (2113681 bits)
Date Submitted2016-07-05 00:00:00
Date Available2016-07-05 00:00:00
Creation Date2016-06-03 07:51:25
Producing SoftwareMicrosoft® Office Word 2007
Document Lastmod2016-06-03 07:51:25
Document TitleGPON SFU System Design
Document CreatorMicrosoft® Office Word 2007
Document Author: Kevin Qiu

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.11b/g/n Wireless standards

Support TCP/UDP/HTTP Network Protocols

Support SSL Encryption

Support Telnet Communication

Support RS232/RS485/Ethernet Data Interface

RS232 RS485 automatic switching

Support Work As STA/AP/AP+STA Mode

Support Router/Bridge Mode Networking

Support AT+ Instruction Set for Configuration

Support Friendly Web Configuration Page

Single 5~18V DC Power Supply

Size: 84 x 84 x 25mm

FCC/CE/TELEC/RoHs Certificated
http://www.iotworkshop.com
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 ......................................................................................................11
1.2.2. RS232 Interface ............................................................................................................12
1.2.3. RS485 Interface ............................................................................................................12
1.2.4. RJ45 Interface ...............................................................................................................12
1.2.5. Button Interface .............................................................................................................13
1.2.6. Mechanical Size ............................................................................................................14
1.2.7. Order Information ..........................................................................................................14
1.2.8. Device Difference ..........................................................................................................15
1.2.9. Package Information ......................................................................................................15
2.
APPLICATION .........................................................................................................................16
2.1. Wireless Networking ..........................................................................................................16
2.1.1. AP Application ...............................................................................................................16
2.1.2. STA Application .............................................................................................................17
2.1.3. AP+STA Applicatioin .....................................................................................................17
2.1.4. One AP One STA Applicatioin .......................................................................................19
2.2. Ethernet Interface Communication ...................................................................................19
2.2.1. Ethernet Interface Networking (As AP, N-Ver) ...............................................................20
2.2.2. Ethernet Interface Networking (As STA, N-Ver) .............................................................20
2.2.3. Ethernet Interface Networking (As STA, Z-Ver) .............................................................21
3.
FUNCTION DESCRIPTION ....................................................................................................22
3.1. User Configuration Process ..............................................................................................22
3.2. Working Mode.....................................................................................................................22
3.2.1. Transparent Transmission Mode ...................................................................................22
3.2.2. Agreement(Serial Command Mode) ..............................................................................23
3.2.3. HTTPD Client Mode ......................................................................................................24
3.3. Wi-Fi Parameter Setting .....................................................................................................25
3.3.1. Auto- Frequency Function .............................................................................................25
3.3.2. Security .........................................................................................................................25
3.3.3. Search Function for STA ...............................................................................................25
3.3.4. Address Binding ............................................................................................................25
3.4. UART Frame Scheme .........................................................................................................25
3.4.1. UART Free-Frame .........................................................................................................25
3.4.2. UART Auto-Frame .........................................................................................................26
3.5. Network Setting ..................................................................................................................26
3.5.1. Socket A ........................................................................................................................26
3.5.2. Socket B ........................................................................................................................27
3.6. TCP Password Authentication ...........................................................................................27
3.7. Upload ID ............................................................................................................................28
3.8. Keepalive(Reserved) ..........................................................................................................28
3.9. Multiple STA Parameters ...................................................................................................28
3.10.
Websocket(Reserved) .....................................................................................................28
3.11.
Parameters Setting .........................................................................................................28
http://www.iotworkshop.com
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 .....................................................................................30
4.1.1. Open Web Management Interface .................................................................................30
4.1.2. Quick Configure .............................................................................................................30
4.1.3. Mode Selection Page ....................................................................................................31
4.1.4. AP Interface Setting Page .............................................................................................32
4.1.5. STA Interface Setting Page ...........................................................................................32
4.1.6. Application Setting Page................................................................................................33
4.1.7. Ethernet Setting .............................................................................................................34
4.1.8. HTTPD Client Mode ......................................................................................................34
4.1.9. Device Management Page ............................................................................................34
4.2. The device Usage Introduction ..........................................................................................35
4.2.1. Software Debug Tools ...................................................................................................35
4.2.2. Network Connection ......................................................................................................35
4.2.3. Device Debug ................................................................................................................36
4.3. Typical Application Examples ...........................................................................................38
4.3.1. Wireless Control Application ..........................................................................................38
4.3.2. Remote Management Application ..................................................................................39
4.3.3. Transparent Serial Port Application ...............................................................................39
4.3.4. Wireless Data Acquisition Card Application ...................................................................40
5.
AT+INSTRUCTION INTRODUCTION ....................................................................................42
5.1. Configuration Mode ............................................................................................................42
5.1.1. Switch to Configuration Mode ........................................................................................42
5.2. AT+ Instruction Set Overview ............................................................................................43
5.2.1. Instruction Syntax Format ..............................................................................................43
5.2.2. AT+ Instruction Set ........................................................................................................44
5.2.2.1. AT+E .........................................................................................................................45
5.2.2.2. AT+ENTM ..................................................................................................................46
5.2.2.3. AT+NETP ..................................................................................................................46
5.2.2.4. AT+UART ..................................................................................................................46
5.2.2.5. AT+ UARTF ...............................................................................................................47
5.2.2.6. AT+ UARTFT .............................................................................................................47
5.2.2.7. AT+ UARTFL .............................................................................................................47
5.2.2.8. AT+TMODE ...............................................................................................................48
5.2.2.9. AT+WMODE ..............................................................................................................48
5.2.2.10.
AT+WSKEY/AT+WSKEYA .....................................................................................48
5.2.2.11.
AT+WSKEYB .........................................................................................................49
5.2.2.12.
AT+WSKEYC .........................................................................................................49
5.2.2.13.
AT+WSSSID/AT+WSSSIDA ...................................................................................50
5.2.2.14.
AT+WSSSIDB ........................................................................................................50
5.2.2.15.
AT+WSSSIDC ........................................................................................................51
5.2.2.16.
AT+MSSID .............................................................................................................51
5.2.2.17.
AT+WSLK ..............................................................................................................51
5.2.2.18.
AT+WEBU ..............................................................................................................52
5.2.2.19.
AT+WAP ................................................................................................................52
5.2.2.20.
AT+WAKEY............................................................................................................53
http://www.iotworkshop.com
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 ........................................................................................................53
AT+MSLP ...............................................................................................................53
AT+WSCAN ...........................................................................................................54
AT+ TCPLK ............................................................................................................54
AT + TCPDIS .........................................................................................................54
AT+ WANN.............................................................................................................55
AT+ LANN ..............................................................................................................55
AT + DHCPDEN .....................................................................................................55
AT+ DHCPGW .......................................................................................................56
AT+ TCPTO ...........................................................................................................56
AT+ MAXSK ...........................................................................................................56
AT+TCPB ...............................................................................................................57
AT+TCPPTB ..........................................................................................................57
AT+TCPADDB........................................................................................................57
AT+TCPTOB ..........................................................................................................58
AT+TCPLKB ...........................................................................................................58
AT+REGEN ............................................................................................................58
AT+REGTCP ..........................................................................................................59
AT+REGID .............................................................................................................59
AT+EPHY ...............................................................................................................59
AT+STTC ...............................................................................................................60
AT+DOMAIN ..........................................................................................................60
AT+FRLDEN ..........................................................................................................60
AT+RELD ...............................................................................................................61
AT+Z ......................................................................................................................61
AT+MID ..................................................................................................................61
AT+WRMID ............................................................................................................61
AT+VER .................................................................................................................61
AT+H ......................................................................................................................61
AT+FVEW ..............................................................................................................62
AT+FVER ...............................................................................................................62
AT+WMAC .............................................................................................................62
AT+PING ................................................................................................................63
AT+HTPSV/AT+HTTPURL .....................................................................................63
AT+HTPTP/AT+HTTPTP........................................................................................63
AT+HTPURL/AT+HTTPPH .....................................................................................64
AT+HTTPCN ..........................................................................................................64
AT+HTTPUA ..........................................................................................................64
AT+HTPMODE .......................................................................................................64
AT+HTPHEAD........................................................................................................65
AT+FASWD............................................................................................................65
APPENDIX A: QUESTIONS AND ANSWERS ..............................................................................66
Q1: How to configure transparent serial port application (TCP protocol) with two DTU
devices? ........................................................................................................................................66
Q2: Where to SetDTU LAN IP and WAN IP through Web Page?...............................................66
Q3: How to configure transparent serial port application (UDP protocol) with two DTUs? .....67
Q4: Where to set DTU network protocol (TCP/UDP)? ................................................................67
Q5: How to configure transparent serial port application: Two DTUs all configured as
STA and connection through AP? ...............................................................................................69
http://www.iotworkshop.com
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. .................................71
APPENDIX B:RECOMMEND TOOLS ...........................................................................................72
B.1.UART Tools ..........................................................................................................................72
B.2.TCPUDP Tools .....................................................................................................................72
B.3.APP Tools ............................................................................................................................72
APPENDIX C: CONTACT INFORMATION ...................................................................................73
http://www.iotworkshop.com
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.
Figure 41.
Figure 42.
Figure 43.
Figure 44.
Figure 45.
Figure 46.
Figure 47.
DTU-H100 Appearance .....................................................................................................11
RS232 Pin Defination(Male/Needle Type) ........................................................................12
RJ45 Pin Defination .........................................................................................................13
DTU-H100 Mechanical Dimension ....................................................................................14
DTU-HXXX Series Order Information ................................................................................14
DTU-H1XX Functional Architecture ...................................................................................16
DTU AP Application ..........................................................................................................16
DTU STA Application ........................................................................................................17
DTU AP+STA Application .................................................................................................18
One AP and One STA Application .................................................................................19
Ethernet Interface Networking (As AP) ..........................................................................20
Ethernet Interface Networking (As STA, N-Ver) .............................................................20
Ethernet Interface Networking (As STA, Z-Ver) .............................................................21
Search Page..................................................................................................................25
Multi-TCP Link Data Transmition Structure ....................................................................27
Dual Socket Working Data Flow ....................................................................................27
Open Web Management page .......................................................................................30
Quick Configure Page ...................................................................................................31
Mode Selection Page ....................................................................................................31
AP Interface Setting Page .............................................................................................32
STA Interface Setting Page ...........................................................................................33
Application Setting Page................................................................................................33
Ethernet Setting Page ...................................................................................................34
HTTPD Client Mode Page .............................................................................................34
Device Management Page ............................................................................................35
STA Interface Debug Connection ..................................................................................36
AP Interface Debug Connection ....................................................................................36
“CommTools" Serial Debug Tools ..................................................................................36
“TCPUDPDbg" Tools Create Connection .......................................................................37
“TCPUDPDbg" Tools Setting .........................................................................................37
“TCPUDPDbg" Tools Connection ..................................................................................38
Wireless Control Application ..........................................................................................38
Remote Management Application ..................................................................................39
Transparent Serial Port Application ...............................................................................40
Wireless Data Acquisition Card Application ...................................................................41
The device Default UART Port Parameters ...................................................................42
Switch to Configuration Mode ........................................................................................42
"AT+H" Instruction for Help ............................................................................................43
Configure Transparent Serial Port Connection (TCP) ....................................................66
DTU LAN IP Setting .......................................................................................................66
DTU WAN IP Setting .....................................................................................................67
Configure Transparent Serial Port Connection (UDP) ....................................................67
DTU Network Protocols: TCP/Server .............................................................................68
DTU Network Protocol: TCP/Client ................................................................................68
DTU Network Protocol: UDP..........................................................................................69
Two DTUs Connection Through AP ...............................................................................70
Wireless Data Acquisition Card Setting..........................................................................71
http://www.iotworkshop.com
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 .............................................................................................11
RS232 Interface ..................................................................................................................12
RJ45 Interface ....................................................................................................................13
Serial Command Mode .......................................................................................................23
The device Web Access Default Setting .............................................................................30
Error Code DescribtionThe device Web Access Default Setting .........................................44
AT+ Instruction Set List ......................................................................................................44
http://www.iotworkshop.com
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.com
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.
NOTE: This equipment has been tested and found to comply with the limits for a Class B digital
device, pursuant to Part 15 of the FCC Rules. These limits are designed to provide reasonable
protection against harmful interference in a residential installation. This equipment generates
uses and can radiate radio frequency energy and, if not installed and used in accordance with the
instructions, may cause harmful interference to radio communications. However, there is no
guarantee that interference will not occur in a particular installation. If this equipment does cause
harmful interference to radio or television reception, which can be determined by turning the
equipment off and on, the user is encouraged to try to correct the interference by one or more of
the following measures:
 Reorient or relocate the receiving antenna.
 Increase the separation between the equipment and receiver.
 Connect the equipment into an outlet on a circuit different from that to which the receiver is
connected.
 Consult the dealer or an experienced radio/TV technician for help.
FCC Radiation Exposure Statement:
This equipment complies with FCC radiation exposure limits set forth for an uncontrolled
environment. This equipment should be installed and operated with minimum distance 20cm
between the radiator & your body.
http://www.iotworkshop.com
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
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.11b: -89 dBm (@11Mbps, CCK)
802.11g: -81dBm(@54Mbps, OFDM)
802.11n: -71dBm(@HT20, MCS7)
External: 3dBi Antenna
2(1 x RS232, 1x RS485)
RS232: DB9 Pin Type
RS485: 2 wire(A+, B-)
5,6,7,8
1,2
None, Even, Odd, Space, Mark
300 bps ~ 460800bps
RTS / CTS
5~18V DC Input
Avg:170mA Peak:400mA
-40℃~85℃
-45℃- 125℃ / 5 ~ 95% RH
Transmit Power
Receiver Sensitivity
Antenna Option
Port Number
Interface Standard
UART Port
Hardware
Parameters
Software
Parameters
Data Bits
Stop Bit
Check Bit
Baud Rate
Flow Control
Input Voltage
Operating Current
Operating Temp.
Storage Temp.
Dimensions
Certificate
Warranty
Network Type
Security Type
Encryption
Network Protocol
Max. TCP Connection
Configure Interface
Customization
http://www.iotworkshop.com
84 x 84 x25mm
CE/FCC/TELEC/RoHS
2 Years
STA/AP/STA+AP
WEP/WPAPSK/WPA2PSK
WEP64/WEP128/TKIP/ AES
TCP/UDP/ARP/ICMP/DHCP/DNS/HTTP
32
Web Server / AT Command
Support Software Customization
10
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.
(The device need about 7 seconds to boot)
Link
Wi-FIi Connection Indication
On:STA mode Connect to AP or AP mode
other device connect to it.
Off:No Wi-Fi Conectoin
RXD
RS232/RS485 Data Receive
TXD
RS232/RS485 Data Transfer
http://www.iotworkshop.com
11
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. Use cross Cable connected with PC(2-3 cross, 7-8 cross, 5-5 direct,
7-8 no connection), see the following table for pin defination.
Figure 2.
RS232 Pin Defination(Male/Needle Type)
Table 3
RS232 Interface
Pin Number
Name
Description
RXD
Receive Data
TXD
Send Data
GND
GND
RTS
Request to Send
CTS
Clear to Send
Defualt not used. May connect the jumper of
VCC
the DTU main board to make this pin
connected with DTU DC power supply.
1.2.3.
RS485 Interface
RS485 use two wire links, A(DATA+), B(DATA-). Connect A(+) to A(+), B(-) to B(-) for
communication.
1.2.4.
RJ45 Interface
DTU-H100 Ethernet port is 10M/100M adaptive, support AUTO MDI/MDIX which means it
support direct connecting to PC with Ethernet cable. Ethernet function is enabled by default and it
can also be closed for power save via web or AT command.
http://www.iotworkshop.com
12
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
TX+
Description
Transfer Data+
TX-
Transfer Data-
RX+
Receive Data+
PHY-VCC
Transformer Tap Voltage
PHY-VCC
Transformer Tap Voltage
RX-
Receive Data-
N.C.
None Connect
N.C.
None Connect
Button Interface
This Button is used for restore device to factory setting. When device is working(Ready LED on),
Press down this Button for more than 3 seconds and then lose, the device will reboot and restore
to factory setting in 10 seconds(Ready LED will be off when reboot, then it will on for boot OK).
http://www.iotworkshop.com
13
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.com
DTU-HXXX Series Order Information
14
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.com
15
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-H1XX Functional Architecture
Notes:
AP: that is the wireless Access Point, the founder of a wireless network and the centre of the
network nodes. The wireless router we use at home or in office may be an AP.
STA: short for Station, each terminal connects to a wireless network (such as laptops, PDA and
other networking devices) can be called with a STA device.
2.1.1. AP Application
Infrastructure: it‟s also called basic network. It built by AP and many STAs which join in.
The characters of network of this type are that AP is the centre, and all communication between
STAs is transmitted through the AP. The figure following shows such type of networking.
DTU Device AP Mode
RS232/RS485
Phone
Figure 7.
http://www.iotworkshop.com
in
Laptop
ink
iL
i-F
iL
i-F
Wi-F
i Link
PLC Device
Tablet
DTU AP Application
16
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 Con
necti
on
WWW. Network Cloud
Laptop
Phone
Figure 8.
Tablet
DTU STA Application
2.1.3. AP+STA Applicatioin
The DTU support AP+STA network mode, means device support one AP interface and one STA
interface at the same time, as following figure.
http://www.iotworkshop.com
17
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 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. At the same time, device's AP interface is also active and
permit phone/PAD to connect, then phone/PAD can control user device and and setting the
device parameters,
The advantage of AP+STA mode is:
 Users can easily setting and track user device through Phone/PAD and not change the
orginal network setting.
 Users can easily setting device‟s parameters through WiFi when device works as STA
mode.
AP+STA Mode Setting:
AP+STA mode need serial AT command to enable as follows:
 AT+FAPSTA=on, Enable AP+STA mode;
 AT+WMODE=STA, when configure device works as STA mode, it‟s AP interface still
active;
AP+STA Mode Notes:
http://www.iotworkshop.com
18
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
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.102
Figure 10. One AP and One STA Application
Notes:
The AP and STA part of device IP must be set in different subnetwork as the above picture.
2.2. Ethernet Interface Communication
Device provides one 10/100M Ethernet interface. With this Ethernet interface, user can easily
realize the three interface (WiFi, RS232/RS485, and Ethernet) intercommunication and
networking. Device can configured as Bridge Mode or Router Mode base on different
networking technology.
Notes: The Ethernet function is enabled by default. Users may input “AT+FEPHY=on/off" and
http://www.iotworkshop.com
19
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
Laptop
IP:10.10.100.100
ink
iL
i-F
iL
i-F
Wi-F
i Link
IP:10.10.100.2
Phone
Tablet
IP:10.10.100.101
IP:10.10.100.102
Figure 11. Ethernet Interface Networking (As AP)
For above networking, device works as AP and also the centre of this network. All devices‟ IP
address in this network shall use the same network segment with device and they can
intercommunication with this method.
2.2.2.
Ethernet Interface Networking (As STA, N-Ver)
RJ45 Ethernet
Wireless
Wireless
Laptop
Ethernet IP:10.10.100.254
STA IP:192.168.1.100
IP:10.10.100.100
IP:192.168.1.1
Laptop
IP:192.168.1.102
Figure 12. Ethernet Interface Networking (As STA, N-Ver)
For above networking, device works as STA(Firmware is N-Version),and device configured as
router mode. When device connect to AP, it will get wireless port IP address from AP(For
example: 192.168.1.100).At the same time, device also form a subnet(Default 10.10.100.254)
and all devices connected to device Ethernet interface will get assigned IP address(For example:
http://www.iotworkshop.com
20
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. Ethernet Interface Networking (As STA, Z-Ver)
For above networking, device works as STA and device configured as bridge mode(AT+FVER=z).
When device connect to AP, all devices connected to device Ethernet interface will get assigned
IP address from AP (For example: 192.168.1.101).For device works as bridge mode, it can be
treated as a transparent device and PC1, PC2 can communicate without any limit. But in this
networking, device needs assign a static LAN IP address (For example: 192.168.1.10) if device
also needs communication with AP or configuration through web page.
http://www.iotworkshop.com
21
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.

Wireless Network Parameters
 Wireless Network Name(SSID)
 Security Mode
 Encryption Key

TCP/UDP Linking Parameters
 Protocol Type
 Link Type(Server or Client)
 Target Port ID Number
 Target Port IP Address

Serial Port Parameters
 Baud Rate
 Data Bit
 Parity (Check) Bit
 Stop Bit
 Hardware Flow Control

Work Mode Selection
 Transparent/Agreement/HTTPD Client mode(AT+TMODE to set)
The following introduce the work mode in detail.
3.2. Working Mode
3.2.1.
Transparent Transmission Mode
The device support serial interface transparent transmissioin mode. The benefit of this mode is to
achieve a plug, play serial data port, and reduces user complexity. In this mode, user should only
configure the necessary parameters. After power on, the device can automatically connect to the
default wireless network and server. Use AT+NETP and AT+TCPB command to set the
communication parameters.
As in this mode, the device 's serial port always work in the transparent transmission mode, so
users only need to think of it as a virtual serial cable, send and receive data as using a simple
serial. In other words, the serial cable of users'original serial devices are directly replaced by the
DTU device, user devices can be easy for wireless data transmission without any changes.
The transparent transmission mode can fully compatible with user's original software platform and
reduce the software development effort for integrate wireless data transmission.
Notes: Users may also enable the serial port hardware flow control(CTS/RTS) function, so that
we can make the bit error rate to a minimum. If the user doesn't need hardware flow control
function of the serial port, only need to make the CTS/RTS unconnected.
http://www.iotworkshop.com
22
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.
Table 7
Bytes
Frame
Header
Length
2(5+m+n)
Function
Byte
Serial Command Mode
Backup
Data Area
Destination
Port
Target
Address
Data
Check
Sum
Frame Header:
0x55 0xAA (Constant value)
Length:
Start from the function byte to check sum(does not contain the check sum). High byte first.
Function Byte:
Bit0: (0-UDP, 1-TCP),
Bit1: (0-Short Connection, 1-Long Connection), if it is a short connection, it sends data, and
then disconnected; if it is a long connection, it sends data and keep the connection until receive
new data to change the target address. Valid only in TCP communication.
Bit2: (0-IP, 1-Domain Name), Indicate that the target address is IP or domain name. If it is
IP, the target address is 4 bytes. If it is domain name, the target address length includes the
entire domain name string length(the last byte address is '\0', the end of the string).
Backup Data Area:
Byte 1: If it is a short connection, this position is TCP waits for the timeout time (1-255), if
the device do not receive a response data after the data has been sent, then it wait a few
seconds and the close the connection, e.g this byte is set as 5, then the device will wait from 5
seconds to receive data. If it receive data, then the connection is closed right away. If it is a long
connection, this byte should be 0.
Byte 2: Reserved.
Destination Port:
Little endian, low byte first, e.g the destination port is 23, then the data flow should be
【0x17 0x00】
Target Address:
If it is IP, it is 4 bytes, e.g 【192.168.0.7】 should be 【0x07 0x00 0xA8 0xC0】. If it is a
domain, then the address length should include the ending character '\0' .
http://www.iotworkshop.com
23
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.
HTTPD Client Mode
This mode is used to send data to HTTP server. It can be set by AT command or Webpage(Note
that AT+NETP and AT+TCPB channel is no long valid in this mode), it is long connection by
default.
The following shows example to use this.
Step 1:Set HTTP Command
AT+TMODE=Httpdclient
AT+HTPMODE=new
AT+HTPSV=10.10.100.200,80
AT+HTPTP=GET
AT+HTPURL=/abcd
AT+HTPHEAD=Content-type:text/html;charset=utf-8
AT+Z
Step 2:send abcd data and the device will send the following GET request to the HTTP
server.
GET /abcdabcd HTTP/1.1
Content-type:text/html;charset=utf-8
http://www.iotworkshop.com
24
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. Security
The device supports multiple wireless encryption mechanisms, and enables to protect the
security of user‟s data transmission, the mechanisms include:





3.3.3.
WEP
WPA-PSK/TKIP
WPA-PSK/AES
WPA2-PSK/TKIP
WPA2-PSK/AES
Search Function for STA
When using web configuration of STA interface Setting Page, user can click "Search" button to
find the surrounding AP, and select a AP to connect.
Figure 14. Search Page
3.3.4. Address Binding
The device supports the feature of binding the BSSID address of target network.
According to the provisions of 802.11 protocol, different wireless networks can have a same
network name (i.e. SSID / ESSID), but must correspond to a unique BSSID address (i.e. MAC
address). Illegal intruders can create a wireless network with the same SSID / ESSID, it will make
STAs in the network to join to the illegal AP, thereby and then network leakage happen.
Users can prevent STA from joining to illegal network by binding the BSSID address, to improve
wireless network security.
3.4. UART Frame Scheme
3.4.1. UART Free-Frame
The device support UART free-frame function. If user select open this function, device will check
the intervals between any two bytes when reciving UART data. If this interval time exceeds
http://www.iotworkshop.com
25
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.
Through AT command: AT+FUARTTE=fash/normal, user can set the interval time: fast (10ms)
and normal (50ms). This command is factory default setting command and AT+RELD can‟t
change its value.
3.4.2. UART Auto-Frame
The device support UART auto-frame function. If user select open this function and setting autoframe trigger length and auto-frame trigger time parameters, then device will auto framing the
data which received from UART port and transmitting to the network as pre-defined data structure.

Auto-frame trigger length: The fixed data length that device used to transmitting to the
network.

Auto-frame trigger time: After the trigger time, if UART port received data can‟t reach
auto-frame trigger length, then device will transmitting available data to the network and
bypass the auto-frame trigger length condition.
Detailed UART auto-frame function can refer to AT+ instruction set “UARTF/UARTFT/UARTFL"
introduction.
3.5. Network Setting
The device supports TCP/UDP network protocol and the port parameters can be set via web
accessing or AT+instruction set. It has two TCP/UDP Socket: Socket A and Socket B. Serial data
sent to the device, it will be sent to the both Socket A and B simultaneously; TCP/UDP data that it
receives from either Socket A or B, the data will be sent to the serial port.You can achieve a
variety of network communication for setting the dual socket.
3.5.1. Socket A
Socket A has three work mode: TCP Server, TCP Client and UDP. Please refer to the AT+NETP
command instruction for detailed setting.When Socket A configured as TCP Server, it supports
Multi-TCP link connection, and maximum 32 TCP clients are permitted to connect to Socket A.
Multi-TCP link connection will work as following structure:
Upwards data stream: All data from different TCP connection or client will be transmitted to the
serial port as a sequence.
Downwards data stream: All data from serial port (user) will be duplicate and broadcast to every
TCP client.
Detailed multi-TCP link data transmition structure as following figure:
http://www.iotworkshop.com
26
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.





AT+TCPB=on,
Enable TCPB function;
AT+TCPPTB=, Set TCPB port number;
AT+TCPADDB=, Set TCPB‟s server address;
AT+TCPTOB=

Source Exif Data:
File Type                       : PDF
File Type Extension             : pdf
MIME Type                       : application/pdf
PDF Version                     : 1.5
Linearized                      : No
Page Count                      : 73
Language                        : zh-CN
Tagged PDF                      : Yes
Title                           : GPON SFU System Design
Author                          : Kevin Qiu
Subject                         : SDC
Creator                         : Microsoft® Office Word 2007
Create Date                     : 2016:06:03 07:51:25
Modify Date                     : 2016:06:03 07:51:25
Producer                        : Microsoft® Office Word 2007
EXIF Metadata provided by EXIF.tools
FCC ID Filing: 2ACSVHF-DTU-H100

Navigation menu