Hi-Link HLK-7628N User manual

1/49
ShenZhenHaiLingKeElectronicco.,Ltd
HLK-7628N User Manual
ETHERNET
WIFI
Full function serial network/wifi module

2/49
Directory
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 WIFIAP.................................................................................................................................................. 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 CONFIGURATION...........................................................................................................................................14
5.1WEB 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.2WEB SERIAL PORT CONFIGURATION........................................................................................................................ 16
5.3 COMMIT CHANGERS ................................................................................................................................................ 18
6 SERIALAT COMMAND CONFIGURATION........................................................................................................ 18
6.1 ENTER AT COMMAND MODE.................................................................................................................................... 18
6.2AT 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_commit................................................................................................................................................... 23
6.2.12 out_trans ...................................................................................................................................................... 24
6.2.13 remoteip........................................................................................................................................................ 24
6.2.14 remoteport.................................................................................................................................................... 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 reconn........................................................................................................................................................... 27
6.2.25 ver................................................................................................................................................................. 27
6.2.26 Clport........................................................................................................................................................... 28
6.2.27 RTS
(
This function has not been implemented 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_Stat....................................................................................................................................................... 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_remoteip................................................................................................................................................. 30
6.2.37 C2_remoteport ............................................................................................................................................. 30

4/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 address)......................................................................................................... 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
7.5 INQUIRY CONFIGURATION........................................................................................................................................ 43
7.6 ENTER TRANSPARENT TRANSMISSION ..................................................................................................................... 43
7.7 FACTORY RESET ...................................................................................................................................................... 43
8 SEARCHING DEVICE TOOL ..................................................................................................................................44
9 FACTORY RESET...................................................................................................................................................... 45
10 UPGRADE FIRMWARE..........................................................................................................................................46

深圳市海凌科电子有限公司 Shenzhen Hi-Link Electronic Co.,Ltd
Http://www.hlktech.com Tel:0755-36989385 Fax:0755-83575189
5/49
1Brief 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.
Picture 1.Function Structure
2Summarize
2.1 Technical Specifications
Table 2-1 Technical 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
A
ntenna
A
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 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
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: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

深圳市海凌科电子有限公司 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
3Quick 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
Pin,the 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 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.
4Function 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(STATIC).
4.2 Serial to 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.
DHCP IP
/STATIC IP
SERIAL
HLK-7628NMCU WIFI AP
COM1 WIFI
Client
DHCP IP
/STATIC IP
ETHERNETSERIAL
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 CLIENTcan be configured as dynamic IP address(DHCP),can also configured ad static
address(STATIC).
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 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.
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 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.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 AT
command mode.
DHCP ENABLE
SERIAL
HLK-7628NMCU WIFI CLIENT
(PHONE、pad)
COM1 WIFI
AP
ETH2
ETH1
LAN
WAN

深圳市海凌科电子有限公司 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 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.
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
>Tes
<Trst
t
AT 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. abnormal 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 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.
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 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.
5WEB 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

深圳市海凌科电子有限公司 Shenzhen Hi-Link Electronic Co.,Ltd
Http://www.hlktech.com Tel:0755-36989385 Fax:0755-83575189
16/49
5.1.4 Serial to WIFI CLIENT- static ip
Picture18. Serial to WIFI CLIENT- static
5.1.5 Serial to WIFI AP
Picture19. Serial to WIFI AP
5.2 WEB serial port configuration
Serial web configuration is as follows:

深圳市海凌科电子有限公司 Shenzhen Hi-Link Electronic Co.,Ltd
Http://www.hlktech.com Tel:0755-36989385 Fax:0755-83575189
17/49
Picture 20. web serial port configuration
Current shows the current configuration,Updated shows the current parameter.
Serial Configure:Serial configuration. The format is as follows:Mbps,data
bits,parity bit and stop bit.
For example:“115200,8,n,1”。
Serial Framing Lenth:The serial frame length
Serial Framing Timeout:The serial frame time
Network Mode:The network mode.Choose Client、Server or none.
Remote Server Domain/IP:The remote server name or IP address.
For example:192.168.11.245 or www.hlktech.com 。
Locale/Remote Port Number:Local or remote port number.Network mode is different
parameters specified remote port number, server is the specified port number.
Network Protocol:The type of network protocol.Used tcp or udp.
Network Timeout:Network timeout. Server network mode, when there is no data
transmission within the timeout period, the connection will be disconnected. 0
specified never disconnected.

深圳市海凌科电子有限公司 Shenzhen Hi-Link Electronic Co.,Ltd
Http://www.hlktech.com Tel:0755-36989385 Fax:0755-83575189
18/49
5.3 Commit changers
Click on the Apply configuration of the current page submission. If the network
parameters have been changed, the submission process may require about 25 seconds.
If only modify the serial port function configuration, the submission process will
finished soon.
Click cancel to reload the page, the modified configuration will be lost/
6Serial AT command configuration
6.1 Enter AT command mode
6.2 AT command
In AT mode, the configuration parameters of the system can be done through the
serial port AT instruction. The command as follows:
at+[command]=[value]\r
According to the different command module will return different value.For
example:”at+remoteip=192.168.11.133\r”Set the ipaddress is 192.168.11.133。
Foe example :”at+remoteip=?\r”check the remote ip address.
Command list is as following:
netmode Network model
wifi_conf WiFi configuration
Channel WiFi channel
dhcpc DHCP Client configuration
net_ip Network IP address
net_dns Network DNS address
dhcpd DHCP server configuration
dhcpd_ip DHCP server IP address
dhcpd_dns DHCP server DNS address
dhcpd_time DHCP server allocates time
net_commit Submit network configuration
out_trans Exit transmission
remoteip Remote server domain name or address
remoteport Local or remote port number
remotepro Network protocol type

深圳市海凌科电子有限公司 Shenzhen Hi-Link Electronic Co.,Ltd
Http://www.hlktech.com Tel:0755-36989385 Fax:0755-83575189
19/49
timeout Network timeout
mode Serial network mode
uart Serial configuration
uartpacklen Serial frame length
uartpacktimeout Serial frame time
escape Exit serial transmission
tcp_auto TCP automatic reconnect
save Submit serial port configuration and restart service
reconn Restart service
default Factory reset
reboot Restart module
ver Version
CLport TCP/UDP CLIENT local port
RTS Serial output instructions(485)
XON_XOFF XON/XOFF flow control enable
net_wanip wan ip address
tcp_client_check TCP CLIENT remote state detection
S2N_Stat Serial port function
Get_MAC Get MAC address
wifi_ConState WiFi CLIENT connect status
wifi_Scan WiFi scan
suspend System hang up
C2_uart Serial 2 serial configuration
C2_mode Serial 2 serial network mode
C2_remoteip Serial 2 remote server name or IP address
C2_port Serial 2 local or remote port number
C2_CLport Serial 2 TCP/UDP CLIENT local port
C2_protocol Serial 2 network protocol type
C2_timeout Serial 2 network timeout
C2_uartpacklen Serial 2 serial frame length
C2_uartpacktimeout Serial 2 serial frame time
C2_tcp_auto Serial 2 TCP automatic reconnect
C2_tcp_client_check Serial 2 TCP CLIENT remote state detection

深圳市海凌科电子有限公司 Shenzhen Hi-Link Electronic Co.,Ltd
Http://www.hlktech.com Tel:0755-36989385 Fax:0755-83575189
20/49
6.2.1 netmode
Function:
Network mode setting.
Form:
at+netmode=<netmode>\r
Parameter:
Network mode
value Meaning
0 Default mode
1 Ethernet
2 WiFi client
3 WiFi AP
6.2.2 wifi_conf
Function:
Wireless setting.
Form:
at+wifi_conf=<ssid>,<encrypt type>, <password> \r
Parameter:
ssid:Network SSID
encrypt type: Encryption
Encryption
Table of contents
Other Hi-Link Control Unit manuals

Hi-Link
Hi-Link HLK-LD2410 User manual

Hi-Link
Hi-Link HLK-B10 User manual

Hi-Link
Hi-Link HLK-LD015-5G User manual

Hi-Link
Hi-Link HLK-B20 User manual

Hi-Link
Hi-Link HLK-B36 User manual

Hi-Link
Hi-Link HLK-7628D User manual

Hi-Link
Hi-Link HLK-7688A User manual

Hi-Link
Hi-Link HLK-SW16 User manual

Hi-Link
Hi-Link HLK-LD2410B User manual

Hi-Link
Hi-Link HLK-RM08K User manual