Hi-Link HLK-WIIF-M04 User manual

深圳市海凌科电子有限公司 Shenzhen Hi-Link ElectronicTechnology co.,Ltd
Http://www.hlktech.com Tel: +86-0755-83575155 Fax: +86-0755-83575189
Characteristic
Interface
RS232(DB9 Male)
The range of baud rate: 1200~
115200bps
single 5V power supply
Wireless
support IEEE802.11b/g wireless
standards
support the range of frequency:
2.412~2.484 GHz
support two types of wireless
networks:
Ad hoc and Infrastructure
support multiple security authenti-
cation mechanisms:
WEP64/WEP128/ TKIP/CCMP(AES)
WEP/WPA-PSK/WPA2-PSK
support quick networking
support wireless roam
Others
support multiple network protocols:
TCP/UDP/ICMP/DHCP/DNS/HTTP
support two types of work modes:
auto and command
Support transparent transmission
mode
support AT+ instruction set
summarize
HLK-WIIF-M04 is the new third-generation
embedded Uart-Wifi modules studied by
Shenzhen Hi-Link ElectronicTechnology
co.,Ltd
Uart-Wifi is an embedded module based
on the Uart serial,according with the WiFi
wireless WLAN standards, It accords with
IEEE802.11 protocol stack and TCP / IP
protocol stack,and it enables the data
conversion between the user serial and the
wireless network module. through the
Uart-Wifi module, the traditional serial
devices can easily access to the wireless
network.
HLK-WIIF-M04 does a comprehensive
hardware and software upgrades based on
the products of the first two generations,now
it’s more functional and more Convenient to
use,its main features include,
Support transparent transmission of
serial completely,and achieve a plug
and play serial.
Support new AT+instruction set,

深圳市海凌科电子有限公司 Shenzhen Hi-Link ElectronicTechnology co.,Ltd
Http://www.hlktech.com Tel: +86-0755-83575155 Fax: +86-0755-83575189
Which is all based on ASCII format,
it’s simple to use and pellucid.
Support more perfect TCP/IP
protocol tack, support DHCP
protocol for dynamicassignation of
IP address and DNS domain name
parsing.
Embed WEB server, and achieve
the long-range parameters configur
-ation through wireless network with
IE browser.
Support more prefect transmission
performance,the maximum sending
rate can reach to 11KB/s.
support a variety of parameters
configuration methods:
serial/WEB server/wireless conn-
ection
Application
intelligent bus network, such as
wireless credit card machine
small financial payment network,
such as wireless POS machine
industrial equipment networking,
such as wireless sensor
things

10B0B0B0BIntroduction
HLK-WIFI-M04 is the TCP/UDP to RS232 by Shenzhen Hi-Link ElectronicTechnology
co.,Ltd (here in after referred to as hi-link). Uart-Wifi is an embedded module based on the
Uart serial,according with the WiFi wireless WLAN standards, It accords with IEEE802.11
protocol stack and TCP / IP protocol stack,and it enables the data conversion between the
user serial and the wireless network module. through the Uart-Wifi module, the traditional
serial devices can easily access to the wireless network.
HLK-WIFI-M04 does a comprehensive hardware and software upgrades based on
the products of the first two generations,now it’s more functional and more Convenient to
use,its main features include:
Interface:
RS232(DB9 Male)
The range of baud rate: 1200~ 115200bps
single 5V power supply
Wireless
support IEEE802.11b / g wireless standards
support the range of frequency: 2.412~2.484 GHz
support two types of wireless networks:
Ad hoc and Infrastructure
support multiple security authentication mechanisms:
WEP64/WEP128/ TKIP/CCMP(AES)
WEP/WPA-PSK/WPA2-PSK
support quick networking
support wireless roam
Others
support multiple network protocols
TCP/UDP/ICMP/DHCP/DNS/HTTP
support two types of work modes:
auto and command
Support the transparent transmission mode
support AT+ instruction set
support a variety of parameters configuration methods:

serial / WEB server / wireless configuration
Application
intelligent bus network, such as wireless credit card machine
small financial payment network, such as wireless POS machine
industrial equipment networking, such as wireless sensor
Things

21B1B1B1BOverview
2.1 8B9B9B9BTechnical Specification
Table2-1 Technical Specifications
Item Parameters
Wireless standard IEEE802.11b/g
Frequency range 2.412~2.484 GHz
Receiver
sensitivity
802.11b: -86 dBm @ 11Mbps (typical)
802.11g: -71 dBm @ 54Mbps(typical)
Transfer rate 802.11b: 1,2,5.5,11 Mbps
802.11g: 6,9,12,18,24,36,48,54 Mbps
Madulation DSSS, OFDM, DBPSK, DQPSK, CCK,
QAM16/64
Output power 802.11b: 18±2 dBm(typical)
802.11g: 15±1 dBm(typical)
wireless
Antenna Interface SMA
Serial type RS232
Serial rate 1200~115200 bps
Operating voltage 5±0.3 V
Operating current 300mA (typical)
Storage
temperature
-40~+85 ℃
Operating
temperature
-20~75 ℃
Dimensions 83×84×25 ㎜
Hardware
Environmental
certification
RoHS
Network type Infra/Adhoc
Soft
ware
WEP/WPA-PSK/WPA2-PSK

Security WEP64/WEP128/TKIP/CCMP(AES)
Work mode auto/command
Serial command AT+instruction set
Network protocol TCP/UDP/ARP/ICMP/DHCP/DNS/HTTP
Most sockets
to connect
15
TCP connection the most connection:8
the most Client:8
the most Server:3~4
the most client to connect to server built in this
module :4
UDP connection the most connection5~6
The muximum
sending rate
11Kbytes /s(TCP)
2.2 9B10B10B10BHardware introduction
2.2.1 32B37B37B37BMechanical Dimension
The mechanical dimension of HLK-WIFI-M04 is shown as follow,

Figure 2-1 top view
2.2.1.1 65B84B84B84BAntenna interface
This product provides one antenna interface:SMA
2.2.2 33B41B41B41BWireless adapter(optional)
Figure 2-5 Wireless adapter
Wireless adapter can be used to configure paraments of the product through the
wireless connection, which is more useful when the products can’t connect to serial port.In
addition, parameter configuration of a group of products can be achieved by using the
wireless adapter. the method for use is shown in Section 3.2.

2.3 10B11B11B11BMain features
2.3.1 34B42B42B42BWireless Network Connection
2.3.1.1 66B85B85B85BNetwork Topology
Wifi wireless network includes two types of topology: basic network (Infrastructure),
and adhoc networks (Adhoc).to explain the wireless network topology, two basic concepts
are needed to be understood first ,
AP, that is the wireless access point, the founder of a wireless network and the center
of the network nodes. The wireless router we use at home or in office may be an AP.
STA, short for station, each terminal connects to a wireless network(such as laptops,
PDA and other networking devices) can be called with a STA devices.
Basic wireless network based on AP(Infrastructure)
Infrastructure:it’s also called basic network.It’s built by AP and many STAs which join in.
The characters of network of this type is that AP is the center,and all communication is
transmitted through the AP .
figure2-6 Infrastructure topology
wireless network based on ad hoc network (Adhoc)
Adhoc:it’s also called independent basic service set,and it’s built by two or more STAs
without AP, this type of network is a loose structure, all the STAs in the network can
communicate directly.

figure2-7 ad hoc network topology
HLK-WIFI-M04 works as a STA,and supports the two types of wireless networks
above.
2.3.1.2 67B86B86B86BSecurity
The module supports multiple wireless encryption mechanisms,and enables to protect
the security of user’s data transmission,the mechanisms include,
WEP64
WEP128
WPA-PSK/TKIP
WPA-PSK/CCMP
WPA2-PSK/TKIP
WPA2-PSK/CCMP
2.3.1.3 68B87B87B87BQuick networking
The module supports quick networking by specifying channel number. In the usual
course of wireless networking, devices would first scan automatically on the current
channel, in order to search for the network( or Ad hoc) built by the target AP. This module
provides working channel configuration,when the channel of the target network is known,
users can specify the working channel directly, the networking time will be reduced from 2
seconds to about 300 milliseconds,then quick networking is achieved.
2.3.1.4 69B88B88B88BAddress binding
This module supports the feacture of binding the BSSID address of target network.

According to the provisions of 802.11 protocol, different wireless networks can have a
same network name (ie SSID / ESSID), but must correspond to a unique BSSID address.
Illegal intruders can create a wireless network with the same SSID / ESSID, it will make
STAs in the network to join to the illegal AP,thereby and then network leakage happens.
Users can prevent STA from joining to illegal network by binding the BSSID address,to
improve wireless network security.
2.3.1.5 70B89B89B89BWireless Roam
This module supports 802.11 wireless roam. Wireless Roam is that, in order to expand
the coverage of a wireless network, multi-AP co-found the wireless network with a same
SSID/ESSID, each AP is used to cover different area, STA joined in the network can
choose a proximate AP(namely signal is the strongest) to access according to different
location, and mobile STA will switch among the different APs .
When wireless roam is enabled, the module will automatically initiate a scan in every
100 seconds, and according to the current scan result,module selects a recent AP to
access. During the wireless roaming, the network may be a brief interruption, therefore, it is
recommended to close as no need of roam.
What should be noted is that, when BSSID address is binded, wireless roaming is not
effective anymore.
2.3.1.6 71B90B90B90BRegion Setting
The module supports wireless region setting. Users can set the wireless channel list to
determine the channels of scanning range.
2.3.2 35B43B43B43BPlug and Play Serial
The module supports serial transparent transmission and auto-work mode, it really
achieve the serial plug and play,and it does the greatest degree to reduce the use
complexity. In this mode, users only need to pre-set the required network parameters as
follow:
The paraments of wireless network,include:
network name(SSID);
security mode;
Key(if it’s need);
default TCP/UDP paraments, include:
protocol type
connetion type
server address
port number
Since then, after its power is on, module can automatically connect to the default

wireless network and server each time. As in the auto mode, the module's serial always
work in the transparent transfer state, so users only need to think of the module as a virtual
serial cable, and send or receive data as using a simple serial. In other words, the serial
cable of users’ original serial devices is directly replaced with the module, user equipments
can be easy for wireless data transmission without any changes.
In this mode, the module supports the trigger length and trigger time of auto forming a
frame, Trigger length means that the module receives from the serial a specified length of
data,then forms a wireless data frame, and immediately start the network sending process.
Trigger time means, when the data received from the serial is less than the specified length,
the module will force to form a frame with the current data and start to send after the
specified time.
In this mode, the module serial supports hardware flow control, provides normal RTS
/CTS signals, it’s strongly recommended when doing large amounts of data, hardware flow
control should be enabled, so as to fully ensure reliable data transmission. In the
applications which doesn’t need flow control, users can simply leave RTS / CTS pin vacant.
2.3.3 36B44B44B44BCommand Mode of Serial
Module also provides the command mode based on serial control, which is different
from auto-work mode,this mode provides the user with sufficient flexibility, and meet users’
specific needs of different applications.
In this mode, the module works according to user command through the serial, user
can control the module completely with the command, including modifying parameters,
controling networking, controling TCP/IP connection and data transmission. This is a
high-level use, and also the most flexible to use. Users can discretionarily control the
connection and disconnection of the wireless network with command, also can create
several different types of TCP / IP connections at the same time and keep them transfering.
However, this model also requires the user has full understanding of control protocol of the
module's AT+Instruction set, and have a basic use knowledge of wireless network and
TCP/IP network.
This module beds a set of AT+Instruction used for system control and parameter
configuration command (see Article VI), all instructions are based on ASCII code, using
Windows Super Terminal program can directly control module with command, it’s
convenient for debugging and using.
2.3.4 37B45B45B45BTCP/IP Protocol stack
This module contains a complete TCP / IP protocol stack, and it supports the TCP/UDP

/ICMP/ARP/DHCP/DNS/HTTP protocol, in addition, it also supports programming
interfaces of socket based on AT+Instruction set.
supports 8 TCP client connections at most
supports 3 TCP server connections at most, and the most number of clients which
can join in one server is 4
supports 5~6 UDP connections at most
supports UDP broadcasting
supports 8 TCP connections at most
supports DHCP Client
supports DNS Resolver
supports HTTP,built-in WEB server
supports programming interfaces of socket
2.3.5 38B46B46B46BFlexible Parameter Configuration
This module commonly works based on the default parameters, configured parameters
are saved in the flash memory, parameters can be saved when power is down, the user
can use a variety of methods to modify the configuration parameters, they include:
on the basis of wireless connection, using the configuration management program
(recommended)
Use the dedicated wireless adapter and connect it with the module through
wireless connection, and then run the configuration management application we
provide, you can search and configure the parameters of the module, the method of
operation and interface are the same with those when serial connection is used.
Advantages of this approach are: the first is anytime, that means module doesn’t need
to connect to any wireless network, as long as the module is power-on, parameters can
be modified; the second is anywhere, without any physical cable connection, even if
the module has been integrated into the user equipment, parameters can also be
modified; the third is group configuration, it means a group of modules can be
uniformly modified once, which is more useful to do a unified factory configuration to
devices for users,it can greatly improve operation efficiency.
on the basis of serial connection,using the configuration management program
It needs an adapter plate to connect the module to the serial of the PC, and then
run the configuration management application, this approach has the advantage of
intuitive interface and easy operation

on the basis of serial connection,using Windows HyperTerminal program
It needs an adapter plate to connect the module to the serial of the PC,and then
run the Windows HyperTerminal program,and do the paraments configuration with
AT+Instruction set,this approach is the most flexible,but it needs users are familiar with
AT+Instruction set.
on the basis of network connection,using IE browser program
This approach requires the module has connected to a wireless network. On the
PC connected to the same wireless network, use IE browser to connect the WEB
server of the module. This approach has the advantages of simple operation and
intuitive interface.
47B47B
2.3.6 39B48B48B48BFirmware upgrade online
The module supports firmware upgrade online, there are two methods to upgrade the
firmware:
on the basis of serial connection, using the configuration management program
on the basis of network connection, using the IE browser program
32B2B2B2BQuick Start Wizard
3.1 11B12B12B12BPreparation
Hardware
HLK-WIFI-M04
PC
serial cable
Software
UART-WIFI configuration management program
serial debugging software,such as serial debugging assistant, serial master
(
ComMaster.exe
,)and the like.

TCP/UDP debugging software, such as TCP/UDP test tool(
TCPUDPDbg.exe
)and so
on.
3.2 TTTTSetting parameters
1、Run the UART-WIFI configuration management program.
2、Connect HLK-WIFI-M04 with your PC’s serial, and then turn the power on after the
serial caple has been connected, as shown below:
Figure 3-1 connection with your PC’s serial
3、Wait for about 5 second,Then,Click”exit”,after it shown below:

4、Then,click "search modules", as shown below:

Figure 3-2 Search modules successfully
5、According to the wireless router (AP) that you connect to, you can modify the
parameters of wireless settings, including network name, encryption, keys and the IP
address of network settings.
6、Modify the working mode settings, select the "enable auto-work mode" option and set
the parameters according to what you want.
7、After modifying parameters as shown below, click "submit " and select "manually reset
later" in the pop-up dialog box.

Figure3-3 Modify parameters of UART-WIFI module
3.3 TTTTTesting
1、Run TCP / UDP debugging software, create a TCP Server whose detecting port is
60000.
2、Run serial debugging software, such as RealTerm.exe in this case. Modify parameters.

Figure3-5 modify the parameters of ComMaster
3、Repower the serial adapter plate(or press the reset button), and the HLK-WIFI-M03
module will reset and automatically connect to the network and TCP server. Then you
can begin your transmission test between ComMaster and the TCP/UDP test tools.

3B3B3
3.4 12B15B15B15BParameter Details
3.4.1 40B52B52B52BWireless parameters
3.4.1.1 72B95B95B95BSSID Table 4-1 SSID
Parameter name Parameter Correlative Command
SSID SSID AT+SSID
Description
network identity of Wifi network, the length is 1 to 32 ASCII characters
3.4.1.2 73B96B96B96BEncryption mode Table 4-2 Encryption mode
Parameter name Parameter Correlative Command
Encryption mode Encryption AT+ENCRY
Description
encryption types of Wifi network, options include:
OPEN
WEP64
WEP128
WPA-PSK(TKIP)
WPA-PSK(CCMP)
WPA2-PSK(TKIP)
WPA2-PSK(TKIP)
WAPI(not supported)
3.4.1.3 74B97B97B97BKey Format Table 4-3 Key Format
Parameter name Parameter Correlative Command
Key Format Key Format AT+KEY
Description
Key format of WiFi network,options include:

HEX format
ASCII format
For WEP encryption,the difference between HEX and ASCII formats is the
display format of key, such as WEP64 encryption, its key can be 5 ASCII
characters (such as 12345) or 10 hexadecimal numbers (such as 3132333435).
For WPA/WPA2-PSK encryption,HEX and ASCII formats indicate different
meanings,
HEX format: PMK
ASCII format: PSK
3.4.1.4 75B98B98B98BKey Index Table 4-4 Key Index
Parameter name Parameter Correlative Command
Key Index AT+KEY
Description
key index number of WiFi network, this parameter is only effective in WEP
encryption mode, optional range is 1 to 4,it’s no sense in other encryption mode
3.4.1.5 76B99B99B99BKey Table 4-5 Key
Parameter name Parameter Correlative Command
Key Encryption Key AT+KEY
Description
Key string of Wifi network, the keys of different encryption modes and key
formats have different length provisions:
WEP64(HEX):10 characters
WEP64(ASCII):5 characters
WEP128(HEX):26 characters
WEP128(ASCII):13 characters
WPA/WPA2-PSK(HEX):64 characters
WPA/WPA2-PSK(ASCII):8~63 characters
Tips
In WPA/WPA2-PSK (TKIP/CCMP) encryption mode,as the key format is
ASCII, the module must first do the conversion to the key of ASCII format when
it’s power-on, this process increases about 10 seconds to the starting time.And
Table of contents
Other Hi-Link Network Card manuals
Popular Network Card manuals by other brands

2-Wire
2-Wire 802.11g PC Card Wireless Adapter installation guide

Hi-flying
Hi-flying HF-LPB user manual

Dialogic
Dialogic Network Interface Board DNI2410TEPEHMPQ installation guide

Global Sun Tech
Global Sun Tech WL MP 2454 1A3 user manual

Cisco
Cisco WAN Interface Card WIC-1DSU-56K4 Specifications

Asus
Asus USB-N13 user manual

Dialogic
Dialogic Media Board DMV1200BTEP Quick install card

NETGEAR
NETGEAR FA410TX - FA-410 Network Card installation guide

CyberPower
CyberPower CyberPower RMCARD201 Quick install guide

Paradyne
Paradyne Hotwire 8303 installation instructions

Belkin
Belkin F5D6060 user guide

Allied Telesis
Allied Telesis AT-iMG646BD-ON datasheet