Download Print this page

Advertisement

Quick Links

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
Uart-Wifi
module,
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
module.
through
the
traditional
serial
Tel: +86-0755-83575155
Characteristic
Interface
 RS232(DB9 Male)
 The range of baud rate: 1200~
115200bps
 single 5V power supply
Wireless
 support IEEE802.11b/g wireless
standards
 support
2.412~2.484 GHz
 support two types of wireless
networks:
Ad hoc and Infrastructure
 support
cation mechanisms:
WEP64/WEP128/ TKIP/CCMP(AES)
WEP/WPA-PSK/WPA2-PSK
 support quick networking
the
 support wireless roam
O
thers
 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
Fax: +86-0755-83575189
the
range
of
frequency:
multiple
security
authenti-

Advertisement

loading
Need help?

Need help?

Do you have a question about the HLK-WIIF-M04 and is the answer not in the manual?

Questions and answers

Summary of Contents for Hi-Link HLK-WIIF-M04

  • Page 1  The range of baud rate: 1200~ 115200bps  single 5V power supply Wireless summarize  support IEEE802.11b/g wireless standards HLK-WIIF-M04 is the new third-generation  support range frequency: embedded Uart-Wifi modules studied by 2.412~2.484 GHz Shenzhen Hi-Link ElectronicTechnology  support two types of wireless co.,Ltd...
  • Page 2 深圳市海凌科电子有限公司 Shenzhen Hi-Link ElectronicTechnology co.,Ltd Http: //www.hlktech.com Tel: +86-0755-83575155 Fax: +86-0755-83575189  support a variety of parameters Which is all based on ASCII format, it’s simple to use and pellucid. configuration methods:  Support more perfect TCP/IP serial/WEB server/wireless conn- protocol...
  • Page 3 0 B 0 B 0 B 0 B 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...
  • Page 4 serial / WEB server / wireless configuration pplication  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...
  • Page 5: Technical Specification

    O verview 1 B 1 B 1 B 1 B T echnical Specification 8 B 9 B 9 B 9 B Table2-1 Technical Specifications Item Parameters Wireless standard IEEE802.11b/g Frequency range 2.412~2.484 GHz 802.11b: -86 dBm @ 11Mbps (typical) Receiver sensitivity 802.11g: -71 dBm @ 54Mbps(typical)...
  • Page 6: Hardware Introduction

    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 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 11Kbytes /s(TCP)
  • Page 7 Figure 2-1 top view 2.2.1.1 A ntenna interface 6 5 B 8 4 B 8 4 B 8 4 B This product provides one antenna interface:SMA 2.2.2 W ireless adapter(optional) 3 3 B 4 1 B 4 1 B 4 1 B 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...
  • Page 8: Main Features

    M ain features 1 0 B 1 1 B 1 1 B 1 1 B 2.3.1 W ireless Network Connection 3 4 B 4 2 B 4 2 B 4 2 B 2.3.1.1 N etwork Topology 6 6 B 8 5 B 8 5 B 8 5 B 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 ,...
  • Page 9 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 S ecurity 6 7 B 8 6 B 8 6 B 8 6 B The module supports multiple wireless encryption mechanisms,and enables to protect the security of user’s data transmission,the mechanisms include, ...
  • Page 10 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.
  • Page 11 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’...
  • Page 12 /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 ...
  • Page 13  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.
  • Page 14: Setting Parameters

    TCPUDPDbg.exe  TCP/UDP debugging software, such as TCP/UDP test tool ( ) and so S etting parameters T T T T 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、...
  • Page 15 4、 Then,click "search modules", as shown below:...
  • Page 16 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.
  • Page 17 Figure3-3 Modify parameters of UART-WIFI module T esting T T T T 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.
  • Page 18 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.
  • Page 19: Parameter Details

    3 B 3 B 3 P arameter Details 1 2 B 1 5 B 1 5 B 1 5 B 3.4.1 W ireless parameters 4 0 B 5 2 B 5 2 B 5 2 B S SID 3.4.1.1 7 2 B 9 5 B 9 5 B 9 5 B Table 4-1 SSID Parameter name Parameter...
  • Page 20  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...
  • Page 21 When using WPA/WPA2 encryption, directly using PMK of hexadecimal format can eliminate this delay. However, some APs does not provide PMK (which can be directly input) of hexadecimal format in WPA/WPA2 mode,in this case, you can use the WPA key conversion tool ( ) to convert PSK to PMK WPA Key Converter.exe...
  • Page 22 G ateway address 3.4.2.4 T T T T Table4-9 G ateway address T T T T Parameter name Parameter Correlative Command G ateway address Gateway Address AT+NIP T T T T Description Used to specify the gateway address of the local network address, it’s only effective in the case of exiting DHCP.
  • Page 23 C S mode 3.4.3.3 8 3 B 1 0 6 B 1 0 6 B 1 0 6 B Table 4-13 CS mode Parameter name Parameter Correlative Command CS mode CS Mode AT+ATRM Description Used to specify the CS mode of the default connection module creates in the auto-work mode,options include: ...
  • Page 24 Parameter name Parameter Correlative Command Port Number Port Number AT+ATRM Description Used to specify the port number of the default connection module creates in the auto-work mode. 3.4.4 A dvanced wireless parameters 4 3 B 5 5 B 5 5 B 5 5 B 3.4.4.1 N etwork mode 8 7 B 1 1 0 B 1 1 0 B 1 1 0 B...
  • Page 25 BG mode Wireless Standard AT+WBGR Description Used to specify the BG mode of the Wifi network, options include:  B/G fixed mode  B mode The default setting of system is B/G fixed mode, ordinarily user doesn’t need to modify this parameter. 3.4.4.4 T he maximum rate 9 0 B 1 1 3 B 1 1 3 B 1 1 3 B...
  • Page 26 can fix the target AP by modifying this parameter to fix BSSID address. Once the parameter is fixed,the module will never connect to the network without suited BSSID. 3.4.4.6 C hannel 9 2 B 1 1 5 B 1 1 5 B 1 1 5 B Table 4-22 Channel Parameter name Parameter...
  • Page 27 W ireless roam 3.4.4.8 9 4 B 1 1 7 B 1 1 7 B 1 1 7 B Table 4-24 wireless roam Parameter name Parameter Correlative Command Wireless roam Wireless Roam AT+WARM Description Used to specify whether to enable the function of wireless roam or not. The default setting of system is disabled.What should be noted,when the parameter of BSSID is set to fixed,wireless roam will become no effect.
  • Page 28 Baud Rate Baud Rate AT+UART Description Baud rate setting of serial,options include:  1200~115200bps The default setting of system is 115200bps。 D ata Bits 3.4.5.2 9 7 B 1 2 0 B 1 2 0 B 1 2 0 B Table 4-27 Data Bits Parameter name Parameter...
  • Page 29  even parity The default setting of system is no parity. 3.4.6 P arameters of transparent mode 4 5 B 5 7 B 5 7 B 5 7 B 3.4.6.1 A uto framing length 1 0 0 B 1 2 3 B 1 2 3 B 1 2 3 B Table 4-30 Auto framing length Parameter name Parameter...
  • Page 30 state of detecting escape character,and the data receives is three and only three consecutive escape characters, it will exit the transparent transmission mode. The default setting of system is 0x2B, that is characters "+" in ASCII. 3.4.6.4 E scape time 1 0 3 B 1 2 6 B 1 2 6 B 1 2 6 B Table 4-33 Escape time Parameter name...
  • Page 31: Default Setting

    C ommand Mode 3.4.7.3 1 0 6 B 1 2 9 B 1 2 9 B 1 2 9 B Table 4-36 Command Mode Parameter name Parameter Correlative Command Command Mode Command Mode AT+CMDM Description Used to specify the control protocolof the module in command mode,options include: ...
  • Page 32 Work mode setting Auto-work mode Enable Enable the auto-work mode Protocol type Default connection: When it’s set to TCP server,the default CS mode Server timeout is 120second Server address TCP connection timeout Advanced wireless setting Network mode Infra Network mode is Infrastructure Create adhoc when network does not exist...
  • Page 33: T Ypical Application Examples

    Escape time 2000ms The period is 2000ms System setting System "000000 Login password of system is "000000" password " WEB server Enable Enable WEB server,port is 80 Command The system command is AT+Instruction mode GPIO1 mode System The setting of GPIO1is system function T ypical application examples 1 4 B 1 7 B 1 7 B 1 7 B 3.6.1...
  • Page 34 works as a TCP Server, the device connects to the network through wireless AP or router, and works as a TCP Client. 3.6.1.2 R eference Setting 1 0 8 B 1 3 2 B 1 3 2 B 1 3 2 B Wirelss POS machine X ...
  • Page 35 The networking of passive serial device means, all devices in the system are passive to wait for a connecting,only the background server sponsores the networking and does request or data download. Typical applications are such as some wireless sensor network, each sensor terminals always are doing the real-time data collection, and the data collected does not immediately upload, but temporarily stores in the devices.
  • Page 36 figure4-8 The networking with broadcast method of serial device The networking with broadcast type of serial device is a networking mode based on UDP protocol.In the network,the host works in UDP broadcast mode,all devices works in UDP unicast mode.this method creates a passive network essentially. The most typical application is upgrading the wireless network for the traditional network based on the connection of RS422/485 bus.
  • Page 37 R eference setting 3.6.3.2 1 1 2 B 1 3 6 B 1 3 6 B 1 3 6 B Control terminal of device  Wireless setting  SSID,encryption mode,key and so on(refer to the setting of wireless AP or router) ...
  • Page 38 figure4-9 Wireless virtual serial R eference setting 3.6.4.2 1 1 4 B 1 3 8 B 1 3 8 B 1 3 8 B Device 1  Wireless setting  Network mode: adhoc,and enable “Create adhoc when network does not exist” ...
  • Page 39  Network mode: adhoc  SSID: my_adhoc  Encryption mode: open  Others is default  Network setting  IP address: 192.168.0.12  Subnet Mask: 255.255.255.0  Gateway address: 192.168.0.1  DNS address:192.168.0.1  Setting of work mode  Enable auto-work mode ...
  • Page 40 figure4-10 Multi-network connection mode As shown above, it’s the network topology diagram of multi-network connection based on this modules, this system does not be used for a particular application, it is not practical, but only be used to descript the function of this module as an analog system. In the system above the module of device control terminal works in command mode, user inputs to the AT+Instruction to control it create four TCP connections, including 2 Clients and 2 Servers.
  • Page 41  Network setting  IP address: 192.168.0.X  Subnet Mask: 255.255.255.0  Gateway address: 192.168.0.1  DNS address:192.168.0.1  Work mode setting  Disable auto-work mode...
  • Page 42 C onfiguration management manual 3 B 4 B 4 B 4 B C onfiguration through configuration management software 1 5 B 1 8 B 1 8 B 1 8 B 4.1.1 I ntroduction 5 2 B 6 4 B 6 4 B 6 4 B We offer a configuration hypervisor that can manage HLK-WIFI-M04 module expediently,...
  • Page 43 figure5-1 serial connection sketch map 4.1.2.2 M anagement through wireless connection 1 1 8 B 1 4 2 B 1 4 2 B 1 4 2 B Note:Using this function needs to choose correct wireless adapter and install wireless driver correctly.
  • Page 44 5、 Select scan channel from channel list. It will scan all channels from 1 to 14 ,if ‘auto’ is selected; 6、 Click ‘search module’,if channel is selected to ‘auto’,it will expend a long time to search,the completed result is shown as the following sketch map: Figure5-3 sketch map of wireless connection 4.1.3 C onfiguring parameter...
  • Page 45 figure5-4 configure parameters 4.1.3.1 R efresh parameter 1 1 9 B 1 4 3 B 1 4 3 B 1 4 3 B User can refresh the configuration parameter from wireless module and show in the display interface through clicking the ‘refresh parameter’button. S ubmit modification 4.1.3.2 1 2 0 B 1 4 4 B 1 4 4 B 1 4 4 B...
  • Page 46 figure5-5 sketch map of submitting modification R estore to factory setting 4.1.3.3 1 2 1 B 1 4 5 B 1 4 5 B 1 4 5 B User clicks ‘’ button to restore the configuration parameters of the wireless module into factory status.
  • Page 47 figure5-6 sketch map of restoring to factory setting I mport/export parameters 4.1.3.4 1 2 2 B 1 4 6 B 1 4 6 B 1 4 6 B User can save all configuration parameters in display interface to the specified configuration file through clicking the ‘export parameters’...
  • Page 48 figure5-7 sketch map of Importing parameters G roup modification 4.1.3.5 1 2 3 B 1 4 7 B 1 4 7 B 1 4 7 B Group modificatio will be activated when configuration hypervisor has searched for more than one wireless module. If user selects the function, the modified parameters will be applied to all of the wireless modules automatically through clicking ‘modify all’.
  • Page 49 figure5-8 function test page N etwork scanning 4.1.4.1 1 2 4 B 1 4 8 B 1 4 8 B 1 4 8 B User can click ‘scan’ button to scan network as the following sketch map. Scan result will show in the following display frame,such as network type、encryption、network MAC、 channel、signal strongth etc.
  • Page 50 figure5-9 network scanning J oin/Disconnect network 4.1.4.2 1 2 5 B 1 4 9 B 1 4 9 B 1 4 9 B User can click the ‘’ button to join or disconnect the wireless network as the following sketch map, the result will show in the following display frame.
  • Page 51 figure5-10 join/disconnect network 4.1.4.3 Q uery network status 1 2 6 B 1 5 0 B 1 5 0 B 1 5 0 B User can click the ‘state’ button to query network connection status as following sketch map, the result will show in the following display frame.
  • Page 52 figure5-11 query network status 4.1.4.4 C reate socket 1 2 7 B 1 5 1 B 1 5 1 B 1 5 1 B User can click ‘create’ button to create socket as the following sketch map. Click the ‘Yes’ button after hasing configured each parameter.It will return a socket number after creating successfully.
  • Page 53 figure5-13 interface of the result of creating socket 4.1.4.5 c lose socket 1 2 8 B 1 5 2 B 1 5 2 B 1 5 2 B User can delete the socket connection through clicking ‘close’ button and inputing the socket number which is expected to close.
  • Page 54 figure5-14 socket status querying Description, 1、 As shown above, the querying results return from two sockets are different. Because the second socket type is TCP server, which is in monitor state after creating successfully, its result does not only contain itself state, but also includes the connection information of Clients which are connecting to the server(these sockets are created by system automatically),as socket3 and socket4 shown in sketch map.
  • Page 55 figure5-15 send data through socket S ocket receiving 4.1.4.8 1 3 1 B 1 5 5 B 1 5 5 B 1 5 5 B User can receive data through socket by clicking ‘receive’ button and inputing socket number(the socket of TCP server can’t be used to send or receive data directly,what is input should be the socket number of the conection between clients and the server)and data size that expected to receive in pop-up dialog box,the data will show in the receive frame after clicking ‘receive’...
  • Page 56 figure5-16 query the receiver buffer figure5-17 socket receiving...
  • Page 57 4.1.5 S ystem information 5 6 B 6 8 B 6 8 B 6 8 B User can query MAC address、hardware version information and firmware version information of the module in this section, the following sketch map is the show. figure5-18 system information 4.1.6 F irmware upgrade...
  • Page 58: C Onfiguration Through Web Server

    figure5-19 firmware upgrade C onfiguration through WEB server 1 6 B 1 9 B 1 9 B 1 9 B WEB server has been embedded in this product, it can support the function of parameters configuration with IE browser, the method is as follow, Notices, 1、...
  • Page 59 4.2.1 Q uery/set configuration parameter 5 8 B 7 0 B 7 0 B 7 0 B 1、 Open IE browser,connect after inputting IP address(and the port number sometimes) of wireless module in address column,the login interface will appear, input user name ‘admin’...
  • Page 60 4.2.2 F irmware upgrade on line 5 9 B 7 1 B 7 1 B 7 1 B The product supports firmware upgrade online through web page, it’s shown as following sketch map, figure5-21 online upgrade of firmware C onfiguration through super terminal program 1 7 B 2 0 B 2 0 B 2 0 B User can ignore the section if only using the wireless module in auto-work mode.
  • Page 61 figure5-22 the configuration of super terminal 2、 If the wireless module has started configuration mode(see the 4.2.1 section)or the work mode is set to command mode, please jump to step 5 directly, otherwise, it needs to make the module exiting the transparent transmission mode according to following approachs at first(refer to section 4.2.2.4)...
  • Page 62 figure5-23 instruction test...
  • Page 63 A T+Instruction Control Protocal 4 B 5 B 5 B 5 B User can ignore this chapter if only using auto-work mode. S yntax Introduction 1 8 B 2 1 B 2 1 B 2 1 B This module uses AT+Instruction protocol as user control protocol.AT+Instruction protocol is based on the instruction of ascii command style, The description of syntax format and management process is as follow.
  • Page 64 <CR> means enter, it’s 0x0d in ASCII <LF> means newline, it’s 0x0a in ASCII  Data Type String is enveloped with double quotation marks,but its content does not include the quotation mark,such as “this is a string”. Dec means number in decimalist,such as 10. Hex means number in hexadecimal,such as a.
  • Page 65 message,or waits for timeout,then it exits transparent transmission mode, the flow is shown as follow, figure6-2 AT+Instruction special process flow F ormat Examples 5.1.1.2 1 3 3 B 1 5 7 B 1 5 7 B 1 5 7 B Example 1: responsing success message Example 2: responsing failed message AT+WJOIN...
  • Page 66: Instruction Set

    AT+ATPT=? +OK=500 5.1.1.3 E rror Code 1 3 4 B 1 5 8 B 1 5 8 B 1 5 8 B Table 6-1 Error Code Value meanings Ineffective Command Format Non supported Ineffective Operation Symbol Ineffective Parameter Not Permited Memory Lack FLASH Error Join Failed...
  • Page 67 C HL Set or query target wireless channel number H H H H T U T U T U T U U U U U T T T T C HLL Set or query wireless channel list H H H H T U T U T U T U U U U U T T T T C MDM Set or query default command mode of system...
  • Page 68 W PRT Set or query wireless mode H H H H T U T U T U T U U U U U T T T T W SCAN Scan for network H H H H T U T U T U T U U U U U T T T T Reset H H H H T T T T...
  • Page 69 Disconnect the current network。 Format: AT+WLEAV<CR> +OK<CR><LF><CR><LF> Parameter: None A T+WSCAN 5.2.2.3 1 3 7 B 1 6 1 B 1 6 1 B 1 6 1 B Function: Scan and return after finishing. Format: AT+WSCAN<CR> +OK=<bssid>,<type>,<channel>,<b_encry>,<ssid>,<rssi><CR><LF> <bssid>,<type>,<channel>,<b_encry>,<ssid>,<rssi><CR><LF> …… <CR><LF> Parameter:...
  • Page 70 A T+SKCT 5.2.2.5 1 3 9 B 1 6 3 B 1 6 3 B 1 6 3 B Function: Create a socket connection.In client mode,module wait for connection is over(success or failure) to return,and in server mode it return after creating a network. Format:...
  • Page 71 A T+SKSND 5.2.2.6 1 4 0 B 1 6 4 B 1 6 4 B 1 6 4 B Function: Send data through the specified socket and return when it is over.This command send binary data, User should send original data after receiving the response(+OK) of module. Module automatically exits transmition after receiving the data of specified length and send data to the network, the redundant date will be rejected.
  • Page 72 A T+SKSTT 5.2.2.8 1 4 2 B 1 6 6 B 1 6 6 B 1 6 6 B Function: Aquire the state of the specified socket, the first line of return value means the state of the message of the socket,if the socket mode is TCP server,then beginning from the first line, each line shows a socket state of a client which is joined in the server Format:...
  • Page 73 mode in command mode,using this command can send the transparent data from serial port to the destination. Format: AT+SKSDF=<socket><CR> +OK<CR><LF><CR><LF> Parameter: socket means socket number 5.2.3 S ystem control type 6 3 B 7 5 B 7 5 B 7 5 B A T+ 5.2.3.1 1 4 5 B 1 6 9 B 1 6 9 B 1 6 9 B...
  • Page 74 None A T+ENTS 5.2.3.4 1 4 8 B 1 7 2 B 1 7 2 B 1 7 2 B Function: Enable system to enter to sleeping mode. System will be awaked automatically after receiving any at+instruction in sleeping state. Format:...
  • Page 75 Parameters which are saved in the memory are updated to the flash Format: AT+PMTF<CR> +OK<CR><LF><CR><LF> Parameter: None A T+IOC 5.2.3.8 1 5 2 B 1 7 6 B 1 7 6 B 1 7 6 B Function: GPIO input or output control. IO status is allowed to read when GPIO1 is set to input mode( the mode of AT+IOM is 1), IO status is allowed to write when GPIO1 is set to output mode( the mode of AT+IOM is 2) Format:...
  • Page 76 Format: AT+QVER<CR> +OK=<hard,firm><CR><LF><CR><LF> Parameter: hard means hardware version,its format is string,such as" H1.00.00.1029" firm means firmware version, its format is string ,such as " F0.02.02@ 18:25:25 Jul 28 2010" 5.2.4 P arameter Setting Type 6 4 B 7 6 B 7 6 B 7 6 B A T+NIP 5.2.4.1 1 5 5 B 1 7 9 B 1 7 9 B 1 7 9 B...
  • Page 77 mode means work mode Table 6-12 work mode Value Meanings Auto-work mode Command mode A T+ATRM 5.2.4.3 1 5 7 B 1 8 1 B 1 8 1 B 1 8 1 B Function: Set or query the message of the connection the module creates automatically in auto-work mode.
  • Page 78 is second,0 means never,default setting is 120 seconds No meannings port means port number A T+SSID 5.2.4.4 1 5 8 B 1 8 2 B 1 8 2 B 1 8 2 B Function: Set or query wireless network name, namely ssid Format:...
  • Page 79 WPA2-PSK(CCMP/AES) A T+KEY 5.2.4.6 1 6 0 B 1 8 4 B 1 8 4 B 1 8 4 B Function: Set or query network key. What should br noted is that,before using this command to set network key,user must set the encryption mode with the command AT+ENCRY . Format:...
  • Page 80 ) ,for example"11223344dd" lowercase Note2:ASCII character means the numbers (0~9) and characters (a~z and A~Z) in ASCII ,for example character set which is specified by ISO "14u6E" 5.2.4.7 A T+BSSID 1 6 1 B 1 8 5 B 1 8 5 B 1 8 5 B Function:...
  • Page 81 A T+CHLL 5.2.4.9 1 6 3 B 1 8 7 B 1 8 7 B 1 8 7 B Function: Set or query wireless channel list.Wireless channel list is used to prescribe work channel range og module,the channel not included in the channel list will be not scanned, reasonably using this parameter can expedite the speed of scanning and networking of module.
  • Page 82 Parameter enable means the symbol of enabling. Table 6-22 symbol of enabling Value Meanings disabled enabled A T+WARM 5.2.4.12 1 6 6 B 1 9 0 B 1 9 0 B 1 9 0 B Function: Set or query whether to enable the wireless roam. Format: AT+WARM=[!?][enable]<CR>...
  • Page 83 A T+WBGR 5.2.4.14 1 6 8 B 1 9 2 B 1 9 2 B 1 9 2 B Function: Set or query BG mode of the wireless network and the maximum sending rate. Format: AT+WBGR=[!?][bg mode],[max rate]<CR> +OK[=bg mode,max rate]<CR><LF><CR><LF> Parameter: bg mode mean BG mode Table 6-25 BG mode...
  • Page 84 +OK[=baud rate,data bit,stop bit,parity]<CR><LF><CR><LF> Parameter: baud rate means b aud rate, effective range is from 1200 to 115200, T T T T T T T T Table 6-27 baud rate Value Meanings 115200 115200 bps 57600 57600 bps 38400 38400 bps 19200 19200 bps 9600...
  • Page 85 parameter is only effective when serial is in transparent transmission mode. Format: AT+ATPT=[!?][period]<CR> +OK[=period]<CR><LF><CR><LF> Parameter: period means auto framing period, its range is 100 ~ 10000ms, and its units is millisecond, the smallest step is 100ms. A T+ATLT 5.2.4.17 1 7 1 B 1 9 5 B 1 9 5 B 1 9 5 B Function: Set or query the data auto framing length of data.
  • Page 86 +OK[=time]<CR><LF><CR><LF> Parameter: time means escape time,its range is 1 00 ~ 10000ms,its unit is millisecond, the smallest T T T T step is 100ms. 5.2.4.20 A T+WEBS 1 7 4 B 1 9 8 B 1 9 8 B 1 9 8 B Function: Set or query whether to enable the internal WEB server.
  • Page 87 T T T T Input Output 5.2.4.23 A T+CMDM(use this please connect to HI-LINK:info@hlktech.com) 1 7 7 B 2 0 1 B 2 0 1 B 2 0 1 B Function: S et or query default command mode of the system.
  • Page 88 ASCII format when it’s power-on, this process increases about 10 seconds to the starting time.And When using WPA/WPA2 encryption, directly using PMK of hexadecimal format can eliminate this delay. (use this please connect to hi-link:info@hlktech.com)
  • Page 89 Q 4: The module has connected to the network successfully,why can’t it 2 2 B 2 6 B 2 6 B 2 6 B show “Destination host unreachable” or “Request timed out” after doing the operation ping between the module and PC. A: Please check the network setting, check whether the IP address and so on is correct or not.
  • Page 90 Q 7: In auto-work mode,data sent to the module through serial will delay 2 5 B 2 9 B 2 9 B 2 9 B sometime to send to the network,why? A: In auto-work mode,framing and sending data has two trigger qualification:trigger time and trigger length,if the length of data doesn’t reach the trigger length,and it will wait to be framed and sent coercively after trigger time,the specific is refered in Section 4.2.2.2.
  • Page 91 1、 Open the serial debugging software,such as serial master,set the serial parameters to 115200bps/8 bits of data bits/1 bit of stop bits/no parity of parity bit/no flow control. 2、 Input ‘at+’(no contain quotation marks and contain enter) in the sending columnof the software,choose periodic sending,the period is set to 50ms.
  • Page 92 2、 Modify the setting of AP,change the channel far from the current channel,such as those,change the channel from 1 to 6, or from 6 to 13 and so on. 3、 Modify the maximum rate of advanced wireless parameters,reduce it to 11Mbps or even lower.