CONFIGURATION SERIAL NETWORK PARAMETER ....................................................................................................... 7
4 FUNCTION DESCRIPTION ....................................................................................................................................... 7
4.1
SERIAL TO ETHERNET ............................................................................................................................................... 8
4.2
SERIAL TO WIFICLIENT ......................................................................................................................................... 8
4.3
SERIAL TO WIFIAP .................................................................................................................................................. 9
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.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
6 SERIAL AT COMMAND CONFIGURATION ........................................................................................................ 18
6.1
ENTER AT COMMAND MODE.................................................................................................................................... 18
6.2
AT COMMAND ......................................................................................................................................................... 18
6.2.14 re moteport .................................................................................................................................................... 24
6.2.23 save ............................................................................................................................................................... 27
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
SET PREFERENCES ................................................................................................................................................... 41
USER DATA RETENTION ........................................................................................................................................... 43
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.
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.
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.
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.
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 modes:TCP Server、TCP Clinet、UDP Server、UDP
Client。
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.
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.
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;