1/49
ShenZhen HaiLingKe El ect ronic co., Ltd
HLK-7628N User Manual
ETHERNET
WIFI
Full function serial network/wifi module
2/49
Directory
1 BRIEF INTRODU CTION ............................................................................................................................................ 5
2 SUMMARIZE ................................................................................................................................................................ 5
2.1
T ECHNICAL S PECIFICA TIONS ..................................................................................................................................... 5
2.2
H ARDW ARE E XPLANA TION ........................................................................................................................................ 6
2.2.1 Mechanical Dimensions ................................................................................................................................... 6
3 QUICK ST ART .............................................................................................................................................................. 7
3.1
FACTORY RESETTING ................................................................................................................................................. 7
3.2
C ONFIGURA TION NETWORK P ARAMETER ................................................................................................................... 7
3.3
C ONFIGURA TION SERIAL NETWORK P ARAMETER ....................................................................................................... 7
4 FUNCTION DESCRIPTION ....................................................................................................................................... 7
4.1
S ERIAL TO E THERNET ............................................................................................................................................... 8
4.2
S ERIAL TO WIFI CLIENT ......................................................................................................................................... 8
4.3
S ERIAL TO WIFI AP .................................................................................................................................................. 9
4.4
D EFAUL T M ODE ...................................................................................................................................................... 10
4.5
S ERIAL WORK MODE SWITCHING ............................................................................................................................. 10
4.6
S ERIAL - NETWORK DA T A CONVERSION ..................................................................................................................... 11
4.7
PARAMETER CONFIGURA TION DIRECTION ................................................................................................................ 13
5 WEB CONFIGURA TIO N ........................................................................................................................................... 14
5.1
WEB N ETWORK CONFIGURA TION ........................................................................................................................... 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 POR T CONFIGURA TION ........................................................................................................................ 16
5.3
C OMMIT CHANGERS ................................................................................................................................................ 18
6 SERIAL A T COMMAND CONFIG URA TION ........................................................................................................ 18
6.1
E NTER AT COMMAND MODE .................................................................................................................................... 18
6.2
AT COMMAND ......................................................................................................................................................... 18
6.2.1 netmode .......................................................................................................................................................... 20
3/49
6.2.2 wifi_conf ......................................................................................................................................................... 20
6.2.3
Channel
.......................................................................................................................................................... 21
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 re moteip ........................................................................................................................................................ 24
6.2.14 re moteport .................................................................................................................................................... 24
6.2.15 remotepro ..................................................................................................................................................... 24
6.2.16 timeout .......................................................................................................................................................... 25
6.2.17 mode ............................................................................................................................................................. 25
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
...................................................................................................................................................... 26
6.2.23 save ............................................................................................................................................................... 27
6.2.24 rec onn ........................................................................................................................................................... 27
6.2.25 ver................................................................................................................................................................. 27
6.2.26 Clport ........................................................................................................................................................... 28
6.2.27 RTS
(
This function has not been i mplemented yet
)
................................................................................ 28
6.2.28 XON_XOFF.................................................................................................................................................. 28
6.2.29 net_wanip ..................................................................................................................................................... 28
6.2.30 tcp_client_check ........................................................................................................................................... 29
6.2.31 S2N_St at ....................................................................................................................................................... 29
6.2.32 Get_MAC ..................................................................................................................................................... 29
6.2.33 wifi_ConState ............................................................................................................................................... 29
6.2.34 wifi_Scan ...................................................................................................................................................... 30
6.2.35 suspend ......................................................................................................................................................... 30
6.2.36 C2_re moteip ................................................................................................................................................. 30
6.2.37 C2_re m oteport ............................................................................................................................................. 30
4/49
6.2.38 C2_re motepro ............................................................................................................................................... 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 addr ess) .............................................................................................................. 35
6.3.4 Serial to wifi client(dynamic ip addr ess) ........................................................................................................ 36
6.3.5 Serial to wifi client(static ip addre ss) ............................................................................................................. 37
6.3.6 Serial to wifi AP ............................................................................................................................................. 38
6.3.7 Factory r eset .................................................................................................................................................. 39
7 SERIAL CONFIGURATION TOOL ..................................................................................................................................... 39
7.1
S EARCH MODULE .................................................................................................................................................... 41
7.2
S ET PREFERENCES ................................................................................................................................................... 41
7.3
S UBMIT CONFIGURA TION ......................................................................................................................................... 42
7.4
U SER DA T A RETENTION ........................................................................................................................................... 43
7.5
I NQUIRY CONFIGURA TION ........................................................................................................................................ 43
7.6
E NTER TRANSP ARENT TRANSMISSION ..................................................................................................................... 43
7.7
FACTORY RESET ...................................................................................................................................................... 43
8 SEARCHING DEVICE TOOL .................................................................................................................................. 44
9 F ACTOR Y RESET ...................................................................................................................................................... 45
10 UPGRADE FIRMW ARE .......................................................................................................................................... 46
深圳市海凌科电子有限公司 Shenzhen Hi-Link Electronic Co.,Ltd
Http://www.hlktech.com Tel:0755-36989385 Fax:0755-83575189
5/49
1 Brief Introduction
HLK-7628N is a new low-cost embedded UAR T - 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.
Picture 1.Function Structure
2 Summarize
2.1 T echnical Specifications
T able 2-1 T echnical Specifications
Network Standard
Wireless:IEEE 802.11n 、IEEE 802.11g 、IEEE 802.11b
Wired:IEEE 802.3 、IEEE 802.3u
Wireless Transmission
Rate
11n:Maximum up to 150Mbps
11g:Maximum up to 54Mbps
11b:Maximum uo to 11Mbps
Tracks Number
1-14
Frequency range
2.4-2.4835G
Emission power
12-15DBM
Interface
5 Ethernet、2 Serial、1 USB(host/ slave)、GPIO
ntenna
ntenna Type
On board antenna /External antenna
Functional Parameters
EthernetWIFI( Client/AP)
Serial Com
深圳市海凌科电子有限公司 Shenzhen Hi-Link Electronic Co.,Ltd
Http://www.hlktech.com Tel:0755-36989385 Fax:0755-83575189
6/49
WIFI Work Mode
Network Drive/Wireless/Router
WDS Function Support WDS wireless bridge connection
Wireless Security
Wireless MAC address filtering
Wireless security function switch
64/128/152 bit WEP encryption
WPA - PSK/WPA2 - PSK、 WPA/WPA2 security mechanism
Network Management
Remote Web management
Configuration file import and export
WEB software upgrade
Serial to Ethernet
Maximum transmission 50000 0bps
TCP connection Max connection number>2 0
UDP connection Max connection number>2 0
Serial baud rate 1200~500000bps(Support non standard bps)
Other parameter
Status indicator light Status indicator
Environmental standards
Operating temperature:-20-70℃
Operating humidity:10%-90%RH (non-condensing)
Storage temperature:-40-80 ℃
Storage humidity:5%-90%RH (non-condensing)
Other performance
Frequency bandwidth optional:20 MHz 、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
深圳市海凌科电子有限公司 Shenzhen Hi-Link Electronic Co.,Ltd
Http://www.hlktech.com Tel:0755-36989385 Fax:0755-83575189
7/49
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 T rst, the release of WDT/RST
Pin, the system will automatically restart. The sy stem 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 document) open the browser http://192.168.16.254/, enter the web
configuration page, default 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 .
深圳市海凌科电子有限公司 Shenzhen Hi-Link Electronic Co.,Ltd
Http://www.hlktech.com Tel:0755-36989385 Fax:0755-83575189
8/49
4.1 Serial to Ethernet
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
address( ST A TIC).
4.2 Serial to WIFI CLIENT
Picture 4.Serial to WIFI CLIENT model
In this mode, WIFI enable, module works in the CLIENT m ode, ETH1、ETH2function
close.Through the appropriate settings,data between COM1 and ETH1 network can achieve
mutual conversion.
DHCP IP
/ST A TIC IP
SERIAL
HLK-7628NMCU WIFI AP
COM1
WIFI
Client
DHCP IP
/ST A TIC IP
ETHERNET SERIAL
HLK-7628NMCU
SWITCH
/ROUTER
COM1
ETH1
深圳市海凌科电子有限公司 Shenzhen Hi-Link Electronic Co.,Ltd
Http://www.hlktech.com Tel:0755-36989385 Fax:0755-83575189
9/49
WIFI CLIENT can be configured as dynamic IP address(DHCP ) ,can also configured ad static
address( ST A TIC).
WIFI safety: support all encryption methods at present.
4.3 Serial to WIFI AP
Picture 5.Serial to WIFI AP model
In this mode, WIFI enable, module works in the AP m ode, 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.
DHCP ENABLE
SERIAL
HLK-7628NMCU
WIFI CLIENT
(PHONE、pad)
COM1
WIFI
AP
深圳市海凌科电子有限公司 Shenzhen Hi-Link Electronic Co.,Ltd
Http://www.hlktech.com Tel:0755-36989385 Fax:0755-83575189
10/49
4.4 Default Mode
Picture 6.Default mode model
In this mode, WIFI enable, module works in the AP mode, ETH1、ETH2function enable.ETH1
works as W AN,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.
W AN default IP is dynamic IP address.LAN、 WIFI 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 A T
command mode.
DHCP ENABLE
SERIAL
HLK-7628NMCU
WIFI CLIENT
(PHONE、pad)
COM1
WIFI
AP
ETH2
ETH1
LAN
WA N
深圳市海凌科电子有限公司 Shenzhen Hi-Link Electronic Co.,Ltd
Http://www.hlktech.com Tel:0755-36989385 Fax:0755-83575189
11/49
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 A T command mode:
1.WDT/RST Pin.
In any state, keep WDT/RST pin low time greater than T es and less than Trst, the module will
immediately enter the A T command mode.
Picture8. WDT/RST Exit transparent transmission mo
4.6 Serial-network data conversion
Serial data conversion divided into 4 modes: TCP Server、 TCP Clinet、 UDP Server、UDP
Client。
TCP Server
>T es
<Trst
t
A T Command
WDT/RST
深圳市海凌科电子有限公司 Shenzhen Hi-Link Electronic Co.,Ltd
Http://www.hlktech.com Tel:0755-36989385 Fax:0755-83575189
12/49
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
图 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. abnorm al network disconnect will cause the module active reconnect. TCP
active reconnect, and otherwise the module will not reconnect.
UDP Server
HLK-7628N
TCP Client
TCP Server
HLK-7628N
TCP Server
TCP Client
TCP Client
TCP Client
深圳市海凌科电子有限公司 Shenzhen Hi-Link Electronic Co.,Ltd
Http://www.hlktech.com Tel:0755-36989385 Fax:0755-83575189
13/49
图 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
图 13.UDP Client
In this mode, the module directly sends the serial data to the spec ified 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 A T 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.
HLK-7628N
UDP Client
UDP Server
HLK-7628N
UDP Server
UDP Client
深圳市海凌科电子有限公司 Shenzhen Hi-Link Electronic Co.,Ltd
Http://www.hlktech.com Tel:0755-36989385 Fax:0755-83575189
14/49
Configure parameter through the serial port A T command needs to make the module into the
A T command mode first.
Serial configuration HLK-7628N_CONFIG: Configure the module through A T 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 ):
深圳市海凌科电子有限公司 Shenzhen Hi-Link Electronic Co.,Ltd
Http://www.hlktech.com Tel:0755-36989385 Fax:0755-83575189
15/49
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