HLKWR 02

Download as pdf or txt
Download as pdf or txt
You are on page 1of 34

Shenzhen Hi-Link Electronic Co.

,Ltd
http://www.hlktech.comTel:+86 0755-83575155 Fax+86 0755-83575189

ShenZhen Hi-Link Electronic Technology Co.,Ltd

HLK-WR02 Serial WIFI Router

User Manual

Downloaded from www.Manualslib.com manuals search engine


Shenzhen Hi-Link Electronic Co.,Ltd
http://www.hlktech.comTel:+86 0755-83575155 Fax+86 0755-83575189

CONTENT
1 BRIEF INTRODUCTION......................................................................................................................................4

2 SUMMARIZE .........................................................................................................................................................4

2.1 TECHNICAL SPECIFICATIONS ...............................................................................................................................4

2.2 PRODUCT OUTLINE ..............................................................................................................................................6

2.3 EXTERNAL INTERFACE ........................................................................................................................................6


2.3.1 RS232 ............................................................................................................................................................7

2.3.2 LAN INTERFACE AND WAN INTERFACE ..........................................................................................................7


2.3.3 RST BUTON .....................................................................................................................................................8

2.3.4 5V POWERI NPUT ............................................................................................................................................8


2.3.5 ANTENNA TERMINAL ........................................................................................................................................8

2.3.6 LED INDICATOR LIGHT .....................................................................................................................................9

3 NETWOKING MODE BRIEF INTRODUCTION...............................................................................................9

3.1 STARLIKE NETWORKING STRUCTURE ..................................................................................................................9

3.2 BUS NETWORKING STRUCTURE ........................................................................................................................10


3.3 PEER-TO-PEER NETWORKING STUCTURE .........................................................................................................11

4 QUICK START GUIDE.......................................................................................................................................12

4.1 PREPARATORY WORK ........................................................................................................................................12

4.2 POWER-UP TEST ................................................................................................................................................13

4.3 FUCTION TEST ...................................................................................................................................................13

5 PRODUCT PARAMETER CONFIGURATION AND INSTRUCTION .........................................................14

5.1 SERIAL SERVER LOGON .....................................................................................................................................14

5.2 SERIAL SERVER PARAMETER INQUIRY ...............................................................................................................15

5.3 WEB NETWORK CONFIGURATION .......................................................................................................................17

5.3.1 Serial to ethernet-dynamic ip ..............................................................................................................17


5.3.2 Serial to ethernet-static ip....................................................................................................................17
5.3.3 SERIAL TO WIFI CLIENT-DYNAMIC IP .........................................................................................................18

5.3.4 Serial to wifi client--static ip .................................................................................................................18


5.3.5 Serial to wifi ap......................................................................................................................................19
5.4 WEB SERIAL CONFIGURATION ............................................................................................................................19

Downloaded from www.Manualslib.com manuals search engine


Shenzhen Hi-Link Electronic Co.,Ltd
http://www.hlktech.comTel:+86 0755-83575155 Fax+86 0755-83575189

5.5 SUBMITTING ALTERATION ..................................................................................................................................20

6 FUNCTION DESCRIPTION ..............................................................................................................................20

6.1 SERIAL TO ETHERNET ........................................................................................................................................21

6.2 SERIAL TO WIFI CLIENT- .....................................................................................................................................21

6.3 SERIAL TO WIFI AP .............................................................................................................................................22

6.4 DEFAULT MODE ..................................................................................................................................................23

7 TYPICAL APPLICATION EXAMPLE ..............................................................................................................26

7.1 ACTIVE SERIAL DEVICES CONNECTED TO THE INTERNET..................................................................................26

7.1.1 APPLICATION SCENARIOS .............................................................................................................................26

7.1.2 REFERENCE SETTING (USING ACCESS CONTROL ATTENDANCE MACHINE AS AN EXAMPLE) ........................27

7.1.3 REFERENCE SETTING FIGURE ......................................................................................................................28

7.2 PASSIVE SERIAL DEVICES CONNECTED TO THE INTERNET ...............................................................................29

7.2.1 APPLICATION SCENARIOS .............................................................................................................................29

7.3 EQUIVALENT SERIAL DEVICES CONNECTED TO THE INTERNET .........................................................................31

7.3.1 APPLICATION SCENARIOS .............................................................................................................................31

7.3.2 REFERENCE SETTING ...................................................................................................................................31

8 RESTORE FACTORY VALUE..........................................................................................................................33

9 FIRMWARE UPGRADE......................................................................................................................................33

APPENDIX A DOCUMENT REVISION RECORD ..................................................................................................34

Downloaded from www.Manualslib.com manuals search engine


Shenzhen Hi-Link Electronic Co.,Ltd
http://www.hlktech.comTel:+86 0755-83575155 Fax+86 0755-83575189

1 Brief Introduction

HLK-WR02 is a serial wifi router developed by Shenzhen Hi-Link Electronic Co.,Ltd


This product is 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-WR02 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

Ethernet

Picture1.F-structure

2 Summarize

2.1 Technical Specifications

Table2-1Technical Specifications
wireless:IEEE 802.11n、IEEE 802.11g、IEEE 802.11b
Network standard
wired:IEEE 802.3、IEEE 802.3u

11n: maximum up to 150Mbps


Wireless transmission
11g: maximum up to 54Mbps
rate
11b: maximum up to 11Mbps

4
Downloaded from www.Manualslib.com manuals search engine
Shenzhen Hi-Link Electronic Co.,Ltd
http://www.hlktech.comTel:+86 0755-83575155 Fax+86 0755-83575189

Tracks number 1-14

Frequency range 2.4-2.4835G

Emission power 12-15DBM

Interface WAN LAN, RS232, DC IN,ANTENNA

Antenna

Antenna type External Antenna 6DB

Functional Parameters

WIFI work mode Client/AP/Router

WDS Function Support WDS wireless bridge connection

Wireless MAC address filtering

Wireless security function switch


Wireless security
64/128/152 bit WEP encryption

WPA-PSK/WPA2-PSK、WPA/WPA2 security mechanism

Remote Web management

Network management Configuration file import and export

WEB software upgrade

Serial to Ethernet

Maximum transmission
500000bps
rate

TCP connection Max connection number>20

UDP connection Max connection number>20

Serial baud rate 1200~500000bps

Other Parameters

Status indicator Status indicator

Operating temperature:-20-70℃

Operating humidity:10%-90%RH(noncondensing)
Environmental standard
Storage temperature:-40-80℃

Storage humidity:5%-90%RH(noncondensing)

Additional properties Frequency bandwidth optional:20MHz,40MHz,Automatic

5
Downloaded from www.Manualslib.com manuals search engine
Shenzhen Hi-Link Electronic Co.,Ltd
http://www.hlktech.comTel:+86 0755-83575155 Fax+86 0755-83575189

2.2 Product Outline

The outline of HLK-WR02 serial WIFI serveris as follows. Mechanical Dimensions:


85x85x25 mm,not including the antenna.

Fig 2-1 HLK-WR02 Outline

2.3 External Interface

HLK-WR02 serial wifisever is a serial-wifi-Ethernet device ,its external interface


incuding RS232,DC IN,LAN,WAN,LED,RST. This section will detail the definition of each
interface.

RS232 5V Power input Terminal RST WAN LAN LED Indicator


6
Downloaded from www.Manualslib.com manuals search engine
Shenzhen Hi-Link Electronic Co.,Ltd
http://www.hlktech.comTel:+86 0755-83575155 Fax+86 0755-83575189

Fig 2-2 HLK-WR02Interface

2.3.1 RS232

The following figure shows a schematic diagram of the external interface of RS232.
Interface,the definition is as follows:

Fig 2-3 RS232 PIN

No Function Direction Explaination

1 N/C N/C None


2 RXD Input Data reciving input
3 TXD Output Data sending output
4 N/C N/C None
5 GND Input Ground
6 N/C N/C None
7 N/C N/C None
8 N/C N/C None

2.3.2 LAN Interface and WAN interface

HLK-WR02 serial wifi server provides two network interface, WAN port and LAN port, the
interface is a standard form of RJ-45 interface. RJ-45 interface definition is shown as
below:

7
Downloaded from www.Manualslib.com manuals search engine
Shenzhen Hi-Link Electronic Co.,Ltd
http://www.hlktech.comTel:+86 0755-83575155 Fax+86 0755-83575189

The following table shows the pin definitions of RJ-45 :

No function direction explain

1 TX+ Output Transmit Data+


2 TX- Output Transmit Data-
3 RX+ Input Receive Data +
4 N/C N/C none
5 N/C N/C none
6 RX- Input Receive Data -
7 N/C N/C None
8 N/C N/C None

2.3.3 RST Button

RST button is used to reset HLK-WR02 Server to the factory settings.


METHODS:When the HLK-WR02 have startup complete,then using sharp object to
press the RST button for at least 10 seconds, all parameters of the server can be set to the
default value.

2.3.4 5V Power Input

Voltage range: 4.5 ~ 5.5V. The default configuration of HLK-WR02 for the power
adapter is 5V/1A DC power supply. Power interface: the inner core is positive.

2.3.5 Antenna Terminal

Standard SMA interface within the outer spiral needle, the interface can be equipped

8
Downloaded from www.Manualslib.com manuals search engine
Shenzhen Hi-Link Electronic Co.,Ltd
http://www.hlktech.comTel:+86 0755-83575155 Fax+86 0755-83575189

with 2.4G SMA antenna inside the screw hole standard.

2.3.6 LED Indicator light

Status indicatiing:
LED light blink:wifi is ok
LED light off :wifi is not ok

3 Netwoking mode Brief Introduction


This section focuses on describing application of the HLK-WR02. To introduce sorts of
related networking scenarios.

3.1 Starlike Networking Structure

The most basic network structures of HLK - WR02 serial server is the star network
topology. This kind of network topology are also common in the local area network (LAN),
a network topology. Its main characteristic is through a network of each workstation
nodes in the network equipment concentration equipment (such as a hub or switch)
together, are distributed in each node stellate. This kind of network structure is more
convenient in the equipment increase or decrease.
The folloing figure describes the Starlike Networking structure:

9
Downloaded from www.Manualslib.com manuals search engine
Shenzhen Hi-Link Electronic Co.,Ltd
http://www.hlktech.comTel:+86 0755-83575155 Fax+86 0755-83575189

Router

Hub

Serial device Serial device Serial device

Fig 2-6 Starlike Networking

In this network structure, each terminal work as an independent node to connect to


the server. The server can commune with each terminal by way of TCP or UDP. To
achieve all of the serial port terminal is connected to the Internet.

3.2 Bus Networking structure

The character of Bus networking structure is that all the devices are directly

connected to one bus, which is a set of network with low cost. However, all the devices

in the network share the bandwidth of the bus, therefore, the network transmission rate

will decline along with the increase in user. RS - 485 bus structure is typical sample of

this structure. The bus structure diagram is as follows:

10
Downloaded from www.Manualslib.com manuals search engine
Shenzhen Hi-Link Electronic Co.,Ltd
http://www.hlktech.comTel:+86 0755-83575155 Fax+86 0755-83575189

Router

Hub

Serial device Serial device

Serial device Serial device Serial device

Fig 2-7Bus Networking structure

In such a network structure, all the equipment through the same cable connect to the

server. Network maintenance and extension of relatively is easier, the response speed of

the equipment and network transmission rate is less than star bus structure.

3.3 Peer-to-peer Networking stucture

Using the HLK - WR02, original serial device can be connected to peer-to-peer

network structure. The characteristic of this structure is that all the devices in the network

status are equal. For user’s equipment , there does not exist master-slave relationship

or a managed device. All user terminals can be equivalent to send and receive data. The

structure diagram is as follows:

11
Downloaded from www.Manualslib.com manuals search engine
Shenzhen Hi-Link Electronic Co.,Ltd
http://www.hlktech.comTel:+86 0755-83575155 Fax+86 0755-83575189

Serial device Serial device

Using HLK - WR02 serial server, user’s serial devices can be equivalent to connected to
the Ethernet. Thus, to achieve peer-to-peer communications through Ethernet.

4 Quick start Guide


This section describes how to manage to use HLK-WP02 as soon as possible, users
can become familiar with the major operations quickly with the serial server, according to
the introduction of this section.

4.1 Preparatory work

 Hardware

 HLK-WR02 serial server and matching power supply

 Ethernet cable

 Derect serial line

 Software

 Serial Debug software,such as serial port Debug assistant,serial master and so


on.

 TCP/UDP Debug software

12
Downloaded from www.Manualslib.com manuals search engine
Shenzhen Hi-Link Electronic Co.,Ltd
http://www.hlktech.comTel:+86 0755-83575155 Fax+86 0755-83575189

4.2 Power-up Test

1.Power up the serial server. The Link light will flick at low frequency after power.

2. Connected the serial server with WIFI or network cable (or you can connect the PC
and the serial server in the same LAN through hub or router ).

3 The IP address of the PC should be set to 192.168.16.X. The default IP address of the
Serial Server is 192.168.16.254

4 Make sure the PC side can ping the serial server.

4.3 Fuction Test

1.Power on the HLK-WR02,Connect the RS232 and the enternet,make sure you PC can
ping 192.168.16.254:

2.Start the serial Debug software,we use Serial&TCP_UDP Tool.exe in this sample;

3.Start a TCP client like the below:

13
Downloaded from www.Manualslib.com manuals search engine
Shenzhen Hi-Link Electronic Co.,Ltd
http://www.hlktech.comTel:+86 0755-83575155 Fax+86 0755-83575189

5 Product parameter configuration and instruction


HLK-WR02 serial server has built-in Web Server, users can configure the parameters of
the serial server via web pages. Also, you can logo in to the website to see the current
serial server parameter settings.

5.1 Serial Server Logoin

When you have enter the websit, you needs to change the password to avoid
non-administrator rewritten it illegally.The default user Name and password of the
HLK-WR02 serial server are admin/admin.Please rewrite the passward after first use.

14
Downloaded from www.Manualslib.com manuals search engine
Shenzhen Hi-Link Electronic Co.,Ltd
http://www.hlktech.comTel:+86 0755-83575155 Fax+86 0755-83575189

图 4-1 用户登录界面

Note:HLK-WR02 serial server only provide user login password setting.Please keep
the rewritten password firmly in mind.

5.2 Serial server Parameter inquiry

After passing the IE browser to log in to the serial server, you can see the screen shown
below. This page shows the main current operating parameters of serial server.

15
Downloaded from www.Manualslib.com manuals search engine
Shenzhen Hi-Link Electronic Co.,Ltd
http://www.hlktech.comTel:+86 0755-83575155 Fax+86 0755-83575189

Fig 5-2 WEB Default Parameter

Through the correct module address (default address:http://192.168.16.254),you can


access to the WEB configuration page.
The page can be divided into 3 areas:
1 Network configuration area
2 Serial function configuration areas
3 Configuration submit area

16
Downloaded from www.Manualslib.com manuals search engine
Shenzhen Hi-Link Electronic Co.,Ltd
http://www.hlktech.comTel:+86 0755-83575155 Fax+86 0755-83575189

5.3 WEB network configuration

Net mode selection:


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.3.1 Serial to Ethernet-dynamic ip

Fig 5.3.1. Serial to Ethernet-dynamic


5.3.2 Serial to Ethernet-static ip

Fig5.3.2. Serial to Ethernet-static

17
Downloaded from www.Manualslib.com manuals search engine
Shenzhen Hi-Link Electronic Co.,Ltd
http://www.hlktech.comTel:+86 0755-83575155 Fax+86 0755-83575189

5.3.3 Serial to WIFI CLIENT-dynamic ip

Fig 5.3.3 serial to WIFI CLIENT dynamic


5.3.4 Serial to WIFI CLIENT-static ip

Fig 5.3.4. Serial to WIFI CLIENT-static

18
Downloaded from www.Manualslib.com manuals search engine
Shenzhen Hi-Link Electronic Co.,Ltd
http://www.hlktech.comTel:+86 0755-83575155 Fax+86 0755-83575189

5.3.5 Serial to WIFI AP

Chart5.3.5. Serial to WIFI AP

5.4 WEB serial configuration

Serial Web configuration page(Serial2Net.asp)is as follows:

Current shows the current configuration , Updated shows the current revision
parameters。Submit submit the revision.

19
Downloaded from www.Manualslib.com manuals search engine
Shenzhen Hi-Link Electronic Co.,Ltd
http://www.hlktech.comTel:+86 0755-83575155 Fax+86 0755-83575189

Serial Configure:Serial configuration.fomat:Baud rate, data bits, parity bit, stop bit.
For example:“115200,8,n,1”.
Serial Framing Lenth:The Lenth of Serial Framing
Serial Framing Timeout:The time of Serial Framing
Network Mode:choose Client、Server or none。
Remote Server Domain/IP:Remote Server Domain/IP address
For exmpale:192.168.11.245 or www.hlktech.com .
Locale/Remote Port Number:The specified parameter is not the same under the
different network modes. Client specifies the port number on the remote, Server
specified local port number.
Network Protocol:Use tcp or udp Protocol
Network Timeout:Under the server network mode, no data transmission within the
timeout period, the connection will be disconnected. 0 specifies never disconnected.

5.5 Submitting Alteration

Click the button ‘Apply’ to submit the configuration of the current page. If some
parameters of the network have changed, the submission process may take about 25
seconds. If you only modify the serial functional configuration, the submission process
will be completed soon.
Click the button ‘Cancel’ to reload the page, the modified configuration will be lost.

6 Function Description

The module can be divided into four major modes : default mode , serial to
Ethernet,serial to WIFI CLIENT and serial to WIFI AP.

20
Downloaded from www.Manualslib.com manuals search engine
Shenzhen Hi-Link Electronic Co.,Ltd
http://www.hlktech.comTel:+86 0755-83575155 Fax+86 0755-83575189

6.1 Serial to Ethernet

MCU HLK-RM04 SWITCH


COM1 ETH1
/ROUTER
SERIAL ETHERNET

DHCP IP
/STATIC IP

Fig6.1.serial to Ethernet model


(ETH1 works as WAN, ETH2 works as LAN.)
In this mode, ETH1 enable, WIFI, ETH2 function close. Through the appropriate
settings, the data between COM1 and ETH1 network can achieve mutual conversion.
Ethernet can be configured as dynamic IP address (DHCP), can also be configured
as static IP address (STATIC).

6.2 Serial to WIFI CLIENT

MCU HLK-RM04 WIFI AP


WIFI
COM1 Client
SERIAL

DHCP IP
/STATIC IP

Fig6.2..Serial to WIFI CLIENT model


(ETH1 works as WAN, ETH2 works as LAN.)
In this mode, WIFI enable, module works in the client mode, ETH1, ETH2 function
close. Through the appropriate settings, the data between COM1 and WIFI network can
achieve mutual conversion.

21
Downloaded from www.Manualslib.com manuals search engine
Shenzhen Hi-Link Electronic Co.,Ltd
http://www.hlktech.comTel:+86 0755-83575155 Fax+86 0755-83575189

WIFI CLIENT can be configured as dynamic IP address (DHCP), can also be


configured as static IP address (STATIC).
WIFI safety: support all encryption methods at present.

6.3 Serial to WIFI AP

MCU HLK-RM04 WIFI CLIENT


WIFI
COM1 AP (PHONE、pad)
SERIAL

DHCP ENABLE

Fig6.3.. Serial to WIFI AP model


(ETH1 works as WAN, ETH2 works as LAN.)
In this mode, WIFI enable, module works in the AP mode, ETH1, ETH2 function
close. Through the appropriate settings, the data between COM1 and WIFI 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.

22
Downloaded from www.Manualslib.com manuals search engine
Shenzhen Hi-Link Electronic Co.,Ltd
http://www.hlktech.comTel:+86 0755-83575155 Fax+86 0755-83575189

6.4 Default mode

MCU HLK-RM04 WIFI CLIENT


WIFI
COM1 AP (PHONE、pad)
SERIAL
ETH2 LAN

ETH1 WAN

DHCP ENABLE

Fig6.4..Default mode model


In this mode, WIFI enable, module works in the AP mode, ETH1, ETH2 function
enable. ETH1 works as WAN, ETH2 works as LAN. Through the appropriate settings,
the 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,
enabled by default DHCP server.
There are four mode for serial-net conversion:TCP Server、TCP Clinet、UDP
Server、UDP Client。
TCP Server

HLK-RM04 TCP Client

TCP Server
TCP Client

TCP Client

Fig6.4.1.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

23
Downloaded from www.Manualslib.com manuals search engine
Shenzhen Hi-Link Electronic Co.,Ltd
http://www.hlktech.comTel:+86 0755-83575155 Fax+86 0755-83575189

the serial end sent to TCP Clien end


TCP Client

HLK-RM04
TCP Server
TCP Client

Fig6.4.2..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 reconnection function enable, TCP Server initiative
disconnected, the module will immediately take the initiative to reconnect, and otherwise
the module will not reconnect.
UDP Server

HLK-RM04

UDP Server UDP Client

Fig6.4.3.UDP Server
In this mode, the module opens the local designated port, once received the data
sent to the port, the module will send the data to the serial port, and record the remote ip,
port. The module will record only the last information on the remote connection. Serial
received data will be sent directly to the recorded remote ip, port.

24
Downloaded from www.Manualslib.com manuals search engine
Shenzhen Hi-Link Electronic Co.,Ltd
http://www.hlktech.comTel:+86 0755-83575155 Fax+86 0755-83575189

UDP Client

HLK-RM04
UDP Server
UDP Client

Fig6.4.4..UDP Client
In this mode, the module directly sends the serial data to the specified ip, port. The
serial data returned from the server-side will be distributed to serial port.

25
Downloaded from www.Manualslib.com manuals search engine
Shenzhen Hi-Link Electronic Co.,Ltd
http://www.hlktech.comTel:+86 0755-83575155 Fax+86 0755-83575189

7 Typical application example

7.1 Active Serial devices connected to the Internet

7.1.1 Application scenarios

Active serial equipment networking refers to a way which the equipment initiate the

connection and process the data interaction (upload or download) compared with a

backend server. Typical active devices, such as P0S machine, etc., started to connect

after the completion of the backend server as soon as possible in each credit card

transaction, and upload data. Active serial equipment networking topology structure as

shown in the above. Among them, the backend Server work as a TCP Server , the device

access to the network via a serial port Server , also as a TCP Client end.

26
Downloaded from www.Manualslib.com manuals search engine
Shenzhen Hi-Link Electronic Co.,Ltd
http://www.hlktech.comTel:+86 0755-83575155 Fax+86 0755-83575189

7.1.2 Reference setting (Using Access Control Attendance Machine as an example)

 Network Settings

 DHCP enable
 Static IP address is avaliable also
 Operattion mode
 Protocol Type:TCP > C/S Mode: Client
 Server IP Address:backend server IP address, such as 192.168.16.254
 Port Number: backend server port number, such as 8080

27
Downloaded from www.Manualslib.com manuals search engine
Shenzhen Hi-Link Electronic Co.,Ltd
http://www.hlktech.comTel:+86 0755-83575155 Fax+86 0755-83575189

7.1.3 Reference Setting figure

Fig 7.1.3 Reference Config Parameter

28
Downloaded from www.Manualslib.com manuals search engine
Shenzhen Hi-Link Electronic Co.,Ltd
http://www.hlktech.comTel:+86 0755-83575155 Fax+86 0755-83575189

7.2 Passive serial devices connected to the Internet

7.2.1 Application scenarios

图 7-3 被动型串口设备联网
Passive serial device networking refers to a way in which all equipment in the system
has been waiting for connection in a passive state, only the background server initiate to
connect with equipment, and request or download data. Some typical applications, such as
sensor networks, entrance guard controller and so on, each sensor terminal or entrance
guard controller is collecting data all the time in realtime. The data collected did not upload
at once, but temporarily stored in the device. While the backend server periodically connect
the equipment every once in a while actively, and request to upload or download data. At
this time, The backend Server work as a TCP Client , while the equipment is a TCP
Server end.

At this point, if the customer uses virtual uart software, we suggest that the customer can

29
Downloaded from www.Manualslib.com manuals search engine
Shenzhen Hi-Link Electronic Co.,Ltd
http://www.hlktech.comTel:+86 0755-83575155 Fax+86 0755-83575189

set the network to active network model introdunced in section 5.1 , keep the equipment

online for a long time . In case the uart software in the original user on the server side can

real-time inspection to the existence of the uart equipment.

Reference setting (Take sensor as an example)

 Networking Setting
 IP address:192.168.2.X
 Mask:255.255.255.0
 Gateway:192.168.2.1
 DNS:192.168.2.1
 Operation mode setting
 Start Automatic operation mode
 Protocol Type:TCP
 C/S mode:server
 Port No.:60000
 Time Out:120

30
Downloaded from www.Manualslib.com manuals search engine
Shenzhen Hi-Link Electronic Co.,Ltd
http://www.hlktech.comTel:+86 0755-83575155 Fax+86 0755-83575189

7.3 Equivalent serial devices connected to the Internet

7.3.1 Application scenarios

图 7-4 对等串口设备联网

Peer-to-peer networking refers to all the equipment in the system make up a private

network to communicate with each other, instead of a PC as a server. All of the devices are

connected via a serial port or 485 bus. This kind of networking mode all the equipment at

any time are likely to send data. Typical application scenario is the direct connection

between the controller and each control node in the industrial field. This in the network can

use several uart server to connect, the parameter configuration of the equipment.

7.3.2 Reference setting


Device 1
 Network setting

31
Downloaded from www.Manualslib.com manuals search engine
Shenzhen Hi-Link Electronic Co.,Ltd
http://www.hlktech.comTel:+86 0755-83575155 Fax+86 0755-83575189

 IP address:192.168.0.1
 Mask:255.255.255.0
 Gateway:192.168.0.1
 DNS :192.168.0.1
 Operation setting
 Protocol Type:TCP
 C/S mode:server
 Port No.:8080
 Timeout:0
Device 2
 Network Settings
 IP address:192.168.0.2
 Mask:255.255.255.0
 Gateway:192.168.0.1
 DNS address:192.168.0.1
 Operation mode
 Start automatic operation mode
 Protocol type:TCP
 C/S mode:client
 Server address:192.168.0.1
 Port No.:8080
Service 3
 Network settings
 IP address:192.168.0.3
 Mask:255.255.255.0
 Gateway:192.168.0.1
 DNS :192.168.0.1
 Operation mode setting
 Start Automatic operation mode
 Protocol Type:TCP

32
Downloaded from www.Manualslib.com manuals search engine
Shenzhen Hi-Link Electronic Co.,Ltd
http://www.hlktech.comTel:+86 0755-83575155 Fax+86 0755-83575189

 C/S mode:Client
 Server Address:192.168.0.1
 Port No:8080

8 Restore Factory Value

1. Through the Web Page.

LogoIn the web page 192.168.16.254/Serial2Net.asp,Click the ‘load defaut’button


as below,the server can restore to factoty value then.

Fig 8-1Load Default


2. You can also manually restore factory Value.
There is a botton under the antenna of the serial server HLK-WR02, press the button
more than six seconds, until the LED is on, you can reset the value for the factory.

9 Firmware upgrade

1. Restore the factory value.

33
Downloaded from www.Manualslib.com manuals search engine
Shenzhen Hi-Link Electronic Co.,Ltd
http://www.hlktech.comTel:+86 0755-83575155 Fax+86 0755-83575189

2. PC can connect with module through LAN, ip: 192.168.16.123/255.255.255.0.


Browser visits 192.168.16.254. Username / password: admin / admin.
3. Open the following page. Select the appropriate firmware, click apply upgrades.
Wait about 1.5 minutes. Can not cut out the upgrade process, otherwise it may cause
damage to the module.

Fig 9-1. Upgrade the firmware

Appendix A document revision record

Version Revision range Date

1.00 2013-12-17

34
Downloaded from www.Manualslib.com manuals search engine

You might also like