ShenZhen HLK 7628N User Manual

ShenZhenHaiLingKeElectronicco.,Ltd
HLK-7628N User Manual
ETHERNET
WIFI
Full function serial network/wifi module
1/49
1 BRIEF INTRODUCTION ............................................................................................................................................ 5
2 SUMMARIZE ................................................................................................................................................................ 5
2.1
TECHNICAL SPECIFICATIONS ..................................................................................................................................... 5
2.2
HARDWARE EXPLANATION ........................................................................................................................................ 6
2.2.1 Mechanical Dimensions ................................................................................................................................... 6
3 QUICK START .............................................................................................................................................................. 7
3.1
FACTORY RESETTING ................................................................................................................................................. 7
3.2
CONFIGURATION NETWORK PARAMETER ................................................................................................................... 7
3.3
CONFIGURATION SERIAL NETWORK PARAMETER ....................................................................................................... 7
4 FUNCTION DESCRIPTION ....................................................................................................................................... 7
4.1
SERIAL TO ETHERNET ............................................................................................................................................... 8
4.2
SERIAL TO WIFI CLIENT ......................................................................................................................................... 8
4.3
SERIAL TO WIFI AP .................................................................................................................................................. 9
4.4
DEFAULT MODE ...................................................................................................................................................... 10
4.5
SERIAL WORK MODE SWITCHING ............................................................................................................................. 10
4.6
SERIAL-NETWORK DATA CONVERSION ..................................................................................................................... 11
4.7
PARAMETER CONFIGURATION DIRECTION ................................................................................................................ 13
5 WEB CONFIGURA TIO N ........................................................................................................................................... 14
5.1
WEB NETWORK CONFIGURATION ........................................................................................................................... 14
5.1.1 Serial to Ethernet- dynamic ip........................................................................................................................ 15
5.1.2 Serial to Ethernet - static ip ........................................................................................................................... 15
5.1.3 Serial to WIFI CLIENT- dynamic ip ............................................................................................................... 15
5.1.4 Serial to WIFI CLIENT- static ip .................................................................................................................... 16
5.1.5 Serial to WIFI AP ........................................................................................................................................... 16
5.2
WEB SERIAL PORT CONFIGURATION ........................................................................................................................ 16
5.3
COMMIT CHANGERS ................................................................................................................................................ 18
6 SERIAL AT COMMAND CONFIGURATION ........................................................................................................ 18
6.1
ENTER AT COMMAND MODE.................................................................................................................................... 18
6.2
AT COMMAND ......................................................................................................................................................... 18
6.2.1 netmode .......................................................................................................................................................... 20
2/49
6.2.2 wifi_conf ......................................................................................................................................................... 20
Channel
6.2.3
6.2.4 dhcpc .............................................................................................................................................................. 21
6.2.5 net_ip .............................................................................................................................................................. 22
6.2.6 net_dns ........................................................................................................................................................... 22
6.2.7 dhcpd .............................................................................................................................................................. 22
6.2.8 dhcpd_ip ......................................................................................................................................................... 22
6.2.9 dhcpd_dns ...................................................................................................................................................... 23
6.2.10 dhcpd_time ................................................................................................................................................... 23
6.2.11 net_c ommit ................................................................................................................................................... 23
6.2.12 out_trans ...................................................................................................................................................... 24
6.2.13 remoteip ........................................................................................................................................................ 24
6.2.14 re moteport .................................................................................................................................................... 24
6.2.15 remotepro ..................................................................................................................................................... 24
6.2.16 timeout .......................................................................................................................................................... 25
6.2.17 mode ............................................................................................................................................................. 25
.......................................................................................................................................................... 21
6.2.18 uart ............................................................................................................................................................... 25
6.2.19 uartpacklen ................................................................................................................................................... 26
6.2.20 uartpacktimeout ............................................................................................................................................ 26
6.2.21
escape
.......................................................................................................................................................... 26
6.2.22
tcp_auto
6.2.23 save ............................................................................................................................................................... 27
6.2.24 reconn ........................................................................................................................................................... 27
6.2.25 ver................................................................................................................................................................. 27
6.2.26 Clport ........................................................................................................................................................... 28
6.2.27 RTS
6.2.28 XON_XOFF.................................................................................................................................................. 28
6.2.29 net_wanip ..................................................................................................................................................... 28
6.2.30 tcp_client_check ........................................................................................................................................... 29
6.2.31 S2N_Stat ....................................................................................................................................................... 29
6.2.32 Get_MAC ..................................................................................................................................................... 29
...................................................................................................................................................... 26
This function has not been implemented yet) ................................................................................ 28
6.2.33 wifi_ConState ............................................................................................................................................... 29
6.2.34 wifi_Scan ...................................................................................................................................................... 30
6.2.35 suspend ......................................................................................................................................................... 30
6.2.36 C2_remoteip ................................................................................................................................................. 30
6.2.37 C2_re m oteport ............................................................................................................................................. 30
3/49
6.2.38 C2_remotepro ............................................................................................................................................... 31
6.2.39 C2_timeout ................................................................................................................................................... 31
6.2.40 C2_mode ...................................................................................................................................................... 31
6.2.41 C2_uart ........................................................................................................................................................ 32
6.2.42 C2_uartpacklen ............................................................................................................................................ 32
6.2.43 C2_uartpacktimeout ..................................................................................................................................... 32
6.2.44 C2_
tcp_auto
............................................................................................................................................... 32
6.2.45 C2_tcp_client_check .................................................................................................................................... 33
6.3
AT COMMAND CONTROL CODE ROUTINE.............................................................................................................................. 33
6.3.1 Configuration information query ................................................................................................................... 33
6.3.2 Serial to Ethernet (dynamic ip addr ess) ......................................................................................................... 34
6.3.3 Serial to Ethernet (static ip address) .............................................................................................................. 35
6.3.4 Serial to wifi client(dynamic ip address) ........................................................................................................ 36
6.3.5 Serial to wifi client(static ip address) ............................................................................................................. 37
6.3.6 Serial to wifi AP ............................................................................................................................................. 38
6.3.7 Factory reset .................................................................................................................................................. 39
7 SERIAL CONFIGURATION TOOL ..................................................................................................................................... 39
7.1
SEARCH MODULE .................................................................................................................................................... 41
7.2
SET PREFERENCES ................................................................................................................................................... 41
7.3
SUBMIT CONFIGURATION ......................................................................................................................................... 42
7.4
USER DATA RETENTION ........................................................................................................................................... 43
INQUIRY CONFIGURATION ........................................................................................................................................ 43
7.5
7.6
ENTER TRANSP ARENT TRANSMISSION ..................................................................................................................... 43
7.7
FACTORY RESET ...................................................................................................................................................... 43
8 SEARCHING DEVICE TOOL .................................................................................................................................. 44
9 FACTORY RESET ...................................................................................................................................................... 45
10 UPGRADE FIRMWARE .......................................................................................................................................... 46
4/49
深圳市海凌科电子有限公司 Shenzhen Hi-Link Electronic Co.,Ltd
A
A
Http://www.hlktech.com Tel:0755-36989385 Fax:0755-83575189
1 Brief Introduction
HLK-7628N is a new low-cost embedded UART - ETH - WIFI module developed bu
shenzhen Hi-Link electronic technology co.,ltd.
This product is an embedded module based on the universal serial interface network standard, built-in TCP/IP protocol stack, enabling the user serial port, Ethernet, wireless network (wifi) interface between the conversions.
Through the HLK-7628N module, the traditional serial devices do not need to change any configuration; Data can be transmitted through the internet network. Provide a quick solution for the user’s serial devices to transfer data via Ethernet.
Serial Com
2 Summarize
2.1 Technical Specifications
Network Standard
Wireless Transmission Rate
Tracks Number Frequency range
Emission power
EthernetWIFIClient/AP
Picture 1.Function Structure
Table 2-1 Technical Specifications
Wireless:IEEE 802.11n、IEEE 802.11g、IEEE 802.11b Wired:IEEE 802.3、IEEE 802.3u
11n:Maximum up to 150Mbps 11g:Maximum up to 54Mbps 11b:Maximum uo to 11Mbps
1-14
2.4-2.4835G 12-15DBM
Interface
ntenna ntenna Type
Functional Parameters
5 Ethernet、2 Serial、1 USB(host/slave)、GPIO
On board antenna /External antenna
5/49
深圳市海凌科电子有限公司 Shenzhen Hi-Link Electronic Co.,Ltd
Http://www.hlktech.com Tel:0755-36989385 Fax:0755-83575189
WIFI Work Mode WDS Function Support WDS wireless bridge connection
Wireless Security
Network Management
Serial to Ethernet
Network Drive/Wireless/Router
Wireless MAC address filtering
Wireless security function switch
64/128/152 bit WEP encryption WPA - PSK/WPA2 - PSKWPA/WPA2 security mechanism Remote Web management
Configuration file import and export
WEB software upgrade
Maximum transmission 500000bps
TCP connection Max connection number>20
UDP connection Max connection number>20
Serial baud rate 1200~500000bps(Support nonstandard bps)
Other parameter Status indicator light Status indicator
Operating temperature:-20-70
Environmental standards
Other performance
Operating humidity:10%-90%RH(non-condensing) Storage temperature:-40-80℃ Storage humidity:5%-90%RH(non-condensing) Frequency bandwidth optional:20MHz、40MHz, automatically
2.2 Hardware Explanation
2.2.1 Mechanical Dimensions
HLK-7628N size is shown below:(L*W)=33.2mm*18.7mm*2.2mm
6/49
深圳市海凌科电子有限公司 Shenzhen Hi-Link Electronic Co.,Ltd
Http://www.hlktech.com Tel:0755-36989385 Fax:0755-83575189
Note
1. I/O port electrical level voltage is 3.3V
3 Quick start
3.1 Factory resetting
In order to ensure that all the configuration process correctly, let module restore factory
settings. In factory mode can skip this step. 5V(350mA) to supply power to the module, wait about 30 seconds after startingthe low WDT/RST pin exceeds Trst, the release of WDT/RST Pinthe system will automatically restart. The system is already in factory mode.
3.2 Configuration network parameter
Set the PC to static IP mode and then connect it with the module via Ethernet or WIFI. The IP
address is set to 192.168.16.100/255.255.255.0, gateway192.168.16.254.wifi default and ssid default password, see this documentopen the browser http://192.168.16.254/enter the web configuration pagedefault user name and password is admin/admin. Modity the network parameter through the web. Now, the module’s IP address is192.168.16.254. Configuration details can be seen in 5.1.
3.3 Configuration serial network parameter
Open the browser http://192.168.16.254/enter the serial to network web configuration page.
Configure the serial to network parameter as needed through a wed page. Configuration details can be seen in 5.2.
4 Function Description
The module can be divided into four modes: default mode, serial to Ethernet, serial to wifi client, and serial to wifi AP.
7/49
深圳市海凌科电子有限公司 Shenzhen Hi-Link Electronic Co.,Ltd
Http://www.hlktech.com Tel:0755-36989385 Fax:0755-83575189
4.1 Serial to Ethernet
HLK-7628NMCU
COM1
DHCP IP /STATIC IP
ETH1
ETHERNET SERIAL
SWITCH /ROUTER
Picture 3.Serial to Ethernet model
In this mode,ETH1 enable,WIFI、ETH2 function close. Through the appropriate settings,data
between COM1 and ETH1 network can achieve mutual conversion.
Ethernet can be configured as dynamic IP address(DHCP),can also configured ad static
addressSTATIC).
4.2 Serial to WIFI CLIENT
HLK-7628NMCU WIFI AP
COM1
SERIAL
DHCP IP /STATIC IP
WIFI Client
Picture 4.Serial to WIFI CLIENT model
In this mode, WIFI enable, module works in the CLIENT mode, ETH1、ETH2function
close.Through the appropriate settings,data between COM1 and ETH1 network can achieve
mutual conversion.
8/49
深圳市海凌科电子有限公司 Shenzhen Hi-Link Electronic Co.,Ltd
Http://www.hlktech.com Tel:0755-36989385 Fax:0755-83575189
WIFI CLIENTcan be configured as dynamic IP address(DHCP),can also configured ad static
addressSTATIC).
WIFI safety: support all encryption methods at present.
4.3 Serial to WIFI AP
SERIAL
HLK-7628NMCU
COM1
DHCP ENABLE
WIFI AP
WIFI CLIENT
(PHONE、pad)
Picture 5.Serial to WIFI AP model
In this mode, WIFI enable, module works in the AP mode, ETH1、 ETH2function
close.Through the appropriate settings,data between COM1 and ETH1 network can achieve
mutual conversion.
WIFI safety: support all encryption methods at present.
In this mode, WIFI device can connect with the module and become the device under WIFI LAN.
9/49
深圳市海凌科电子有限公司 Shenzhen Hi-Link Electronic Co.,Ltd
Http://www.hlktech.com Tel:0755-36989385 Fax:0755-83575189
4.4 Default Mode
SERIAL
HLK-7628NMCU
COM1
DHCP ENABLE
WIFI AP
ETH2
ETH1
LAN
WAN
WIFI CLIENT
(PHONE、pad)
Picture 6.Default mode model
In this mode, WIFI enable, module works in the AP mode, ETH1、ETH2function enable.ETH1
works as WAN,ETH2 works as LAN.Through the appropriate settings,data between COM1
and network can achieve mutual conversion.
WIFI safety: support all encryption methods at present.
In this mode, WIFI device can connect with the module and become the device under WIFI LAN. WAN default IP is dynamic IP address.LANWIFI for the same local area network, enable by default DHCP server.
4.5 Serial work mode switching
Module serial work status is defined as two modes: transparent transmission mode, the AT command mode.
10/49
深圳市海凌科电子有限公司 Shenzhen Hi-Link Electronic Co.,Ltd
Http://www.hlktech.com Tel:0755-36989385 Fax:0755-83575189
Picture7.Serial work mode switching
After power on normally, the module will check whether the current network serial port configuration is normal, if the network connection is normal, the module automatically enters. There are three kinds of methods for transparent mode entering AT command mode:
1.WDT/RST Pin.
In any state, keep WDT/RST pin low time greater than Tes and less than Trst, the module will
immediately enter the AT command mode.
>Tes
WDT/RST
<Trst
t
AT Command
Picture8. WDT/RST Exit transparent transmission mo
4.6 Serial-network data conversion
Serial data conversion divided into 4 modesTCP ServerTCP ClinetUDP Server、UDP Client
TCP Server
11/49
深圳市海凌科电子有限公司 Shenzhen Hi-Link Electronic Co.,Ltd
Http://www.hlktech.com Tel:0755-36989385 Fax:0755-83575189
HLK-7628N
TCP Client
TCP Server
TCP Client
TCP Client
Picture 10.TCP Server
In this mode, the module is listening on the specified port, waiting for TCP client connection, if connected, all TCP data is sent directly to the serial port end, the data of the serial end sent to TCP client end.
TCP Client
HLK-7628N
TCP Client
TCP Server
11.TCP Client
In this mode, the module is connected to the specified domain /IP port. All the data sent from the TCP server-side end will be sent directly to the serial port, the data from the serial end sent to the TCP server-side. abnormal network disconnect will cause the module active reconnect. TCP active reconnect, and otherwise the module will not reconnect.
UDP Server
12/49
深圳市海凌科电子有限公司 Shenzhen Hi-Link Electronic Co.,Ltd
Http://www.hlktech.com Tel:0755-36989385 Fax:0755-83575189
HLK-7628N
UDP Server
UDP Client
12.UDP Server
In this mode, module open the specified local port, once received is sent to the data port, and
record the last connection on remote information. Serial port to receive data will be sent directly to the remote IP,recorded port.
UDP Client
HLK-7628N
UDP Client
UDP Server
13.UDP Client
In this mode, the module directly sends the serial data to the specified ip, port. The serial data
returned from the server will be distributed to serial port.
4.7 Parameter configuration direction
The module provides two ways for the configuration parameter
1.WEB page
2.Serial AT command.
Access to WEB configuration page requires the confirmation of the module’s IP address, as well as the user name and password that authenticated by WEB.
13/49
深圳市海凌科电子有限公司 Shenzhen Hi-Link Electronic Co.,Ltd
Http://www.hlktech.com Tel:0755-36989385 Fax:0755-83575189
Configure parameter through the serial port AT command needs to make the module into the AT command mode first.
Serial configuration HLK-7628N_CONFIG: Configure the module through AT command, provide a easier and convenient configuration process through the configuration combination of each parameter.
5 WEB configuration
Picture 14.WEB configuration page
Through the correct module address (default addresshttp://192.168.16.254/)you can access to the web configuration page, the page can be divided onto 3 areas
1 Network configuration area; 2 Serial function area; 3 Configuration submit area;
5.1 WEB Network configuration
Net mode selection(NetMode):
14/49
深圳市海凌科电子有限公司 Shenzhen Hi-Link Electronic Co.,Ltd
Http://www.hlktech.com Tel:0755-36989385 Fax:0755-83575189
Default – default work mode ETH -SERIAL – Serial to Ethernet WIFI(CLIENT)-SERIAL – Serial to WIFI CLIENT WIFI(AP)-SERIAL) – Serial to WIFI AP
Choose different work mode, the web will show you different page. Mode configuration page is as follows:
5.1.1 Serial to Ethernet- dynamic ip
Picture 15. Serial to Ethernet- dynamic
5.1.2 Serial to Ethernet - static ip
Picture 16. Serial to Ethernet - static
5.1.3 Serial to WIFI CLIENT- dynamic ip
Picture17. Serial to WIFI CLIENT- dynamic
15/49
Loading...
+ 34 hidden pages