HF-LPB135 Series Low Power WiFi Module User Manual
Support IEEE802.11b/g/n Wireless Standards
Based on Cortex-M4 SOC, 160MHz CPU, 352KB RAM for 1MB Flash Version, 384KB for
Support UART Data Communication Interface
Support Work As STA/AP/AP+STA Mode
Support SmartLink V8 Function (Provide APP SDK)
Support SmartAPLink Function
Support WeChat Airkiss 2.0
Support Wireless and Remote Firmware Upgrade Function
Support Software SDK for Develop
Support Different Antenna Option
HF-LPB135: Internal PCB or External IPEX
Single +5V Power Supply for HF-LPB135
HF-LPB135
Low Power WiFi Module User Manual
V 1.9
Overview of Characteristic
2MB Flash
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -1-
HF-LPB135 Series Low Power WiFi Module User Manual
HF-LPB135: 41.3mm x 24.1mm x 6mm, 4Pin 2.54mm connectoer
FCC/CE/SRRC/RoHS Certificated
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -2-
HF-LPB135 Series Low Power WiFi Module User Manual
TABLE OF CONTENTS
LIST OF FIGURES.................................................................................................................................................7
LIST OF TABLES
HISTORY................................................................................................................................................................. 9
1. PRODUCT OVERVIEW
1.1. General Description
1.1.1 Key Application
1.1.2 Device Paremeters
1.2. Hardware Introduction
1.2.1. HF-LPB135 Pins Definition
1.2.2. Electrical Characteristics
1.2.3. HF-LPB135 Mechanical Size
1.2.4. External Antenna
1.2.5. Evaluation Kit
1.2.6. Order Information
1.2.7. Hardware Typical Application
2. FUNCTION AL DESCRIPTION.............................................................................................................21
2.1. Wireless Networking......................................................................................................................... 21
2.1.1. Basic Wireless Network Based On AP..................................................................................... 21
2.1.2. Wireless Network Based On STA..............................................................................................21
2.2. Work Mode : Transparent Transmission Mode..........................................................................22
2.3. Encryption............................................................................................................................................22
2.4. Parameters Configuration............................................................................................................... 22
2.5. Firmware Update................................................................................................................................ 23
2.6. SOCKET B Function.......................................................................................................................... 23
2.7. Multi-TCP Link Connection............................................................................................................. 23
..................................................................................................................................................
..........................................................................................................................
..........................................................................................................................
.............................................................................................................................
......................................................................................................................
......................................................................................................................
.........................................................................................................
.............................................................................................................
.....................................................................................................
..........................................................................................................................
................................................................................................................................
.........................................................................................................................
.....................................................................................................
10
10
10
12
13
13
15
16
16
17
18
19
8
3. OPERA TION GUIDEL INE..................................................................................................................... 25
3.1. Configuration...................................................................................................................................... 25
3.1.1. Open Web Management Interface............................................................................................ 25
3.1.2. System Page.................................................................................................................................26
3.1.3. Work Mode Page..........................................................................................................................27
3.1.4. STA Setting Page.........................................................................................................................27
3.1.5. AP Setting Page........................................................................................................................... 29
3.1.6. Other Setting Page...................................................................................................................... 29
3.1.7. Account Management Page....................................................................................................... 30
3.1.8. Upgrade Software Page..............................................................................................................30
3.1.9. Restart Page................................................................................................................................. 30
3.1.10. Restore Page............................................................................................................................ 31
3.1.11. Internal Webpage..................................................................................................................... 31
3.2. Usage Introduction............................................................................................................................ 32
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -3-
HF-LPB135 Series Low Power WiFi Module User Manual
3.2.1. Software Debug Tools................................................................................................................. 32
3.2.2. Network Connection.................................................................................................................... 32
3.2.3. Default Parameter Setting.......................................................................................................... 32
3.2.4. Module Debug.............................................................................................................................. 33
3.3. Typical Application Examples........................................................................................................ 34
3.3.1. Wireless Control Application...................................................................................................... 34
3.3.2. Remote Management Application............................................................................................. 35
3.3.3. Transparent Serial Port Application.......................................................................................... 35
4. AT+INSTRUCTION INTRODU CTIO N
4.1. Configuration Mode
...........................................................................................................................
4.1.1. Switch to Configuration Mode
................................................................................................
....................................................................................................
4.1.2. Send AT Command in Transparent Transmission Mode
4.2. AT+Instruction Set Overview
4.2.1. Instruction Syntax Format
4.2.2. AT+Instruction Set
4.2.2.1. AT+E
..........................................................................................................................................
4.2.2.2. AT+CMDPW
4.2.2.3. AT+WMODE
4.2.2.4. AT+ENTM
4.2.2.5. AT+TMODE
4.2.2.6. AT+MID
4.2.2.7. AT+VER
......................................................................................................................................
.....................................................................................................................................
4.2.2.8. AT+BVER
4.2.2.9. AT+HWVER
4.2.2.10. AT+RELD
4.2.2.11. AT+FCLR
4.2.2.12. AT+Z
4.2.2.13. AT+H
.......................................................................................................................................
......................................................................................................................................
4.2.2.14. AT+CFGTF
4.2.2.15. AT+UART
4.2.2.16. AT+PING
4.2.2.17. AT+NETP
4.2.2.18. AT+MAXSK
4.2.2.19. AT+TCPLK
4.2.2.20. AT+TCPTO
4.2.2.21. AT+TCPDIS
4.2.2.22. AT+SEND
4.2.2.23. AT+RECV
4.2.2.24. AT+SOCKB
4.2.2.25. AT+TCPDISB
4.2.2.26. AT+TCPTOB
4.2.2.27. AT+TCPLKB
4.2.2.28. AT+SNDB
4.2.2.29. AT+RCVB
.......................................................................................................................
..............................................................................................................................
.............................................................................................................................
..................................................................................................................................
...............................................................................................................................
..................................................................................................................................
..............................................................................................................................
..............................................................................................................................
...............................................................................................................................
............................................................................................................................
..............................................................................................................................
...............................................................................................................................
..............................................................................................................................
...........................................................................................................................
............................................................................................................................
............................................................................................................................
..........................................................................................................................
..............................................................................................................................
..............................................................................................................................
...........................................................................................................................
........................................................................................................................
.........................................................................................................................
..........................................................................................................................
..............................................................................................................................
..............................................................................................................................
..........................................................................................................
...........................................................................................................
......................................................
36
36
36
37
37
38
39
40
41
41
41
42
42
42
42
43
43
43
43
43
43
44
44
45
45
45
46
46
47
47
47
48
48
48
48
49
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -4-
HF-LPB135 Series Low Power WiFi Module User Manual
4.2.2.30. AT+UDPLCPT...................................................................................................................... 49
4.2.2.31. AT+WSSSID......................................................................................................................... 49
4.2.2.32. AT+WSKEY...........................................................................................................................50
4.2.2.33. AT+WANN............................................................................................................................. 50
4.2.2.34. AT+WSMAC..........................................................................................................................51
4.2.2.35. AT+WSLK..............................................................................................................................51
4.2.2.36. AT+WSLKO...........................................................................................................................51
4.2.2.37. AT+WSLQ............................................................................................................................. 52
4.2.2.38. AT+WSCAN.......................................................................................................................... 52
4.2.2.39. AT+LANN.............................................................................................................................. 52
4.2.2.40. AT+WAP................................................................................................................................ 52
4.2.2.41. AT+WAKEY...........................................................................................................................53
4.2.2.42. AT+WADHCP....................................................................................................................... 53
4.2.2.43. AT+WALK..............................................................................................................................54
4.2.2.44. AT+WALKIND....................................................................................................................... 54
4.2.2.45. AT+WAPMXSTA.................................................................................................................. 54
4.2.2.46. AT+MDCH............................................................................................................................. 54
4.2.2.47. AT+OTA................................................................................................................................. 55
4.2.2.48. AT+UPURL............................................................................................................................55
4.2.2.49. AT+DISPS............................................................................................................................. 55
4.2.2.50. AT+PLANG............................................................................................................................56
4.2.2.51. AT+WEBU............................................................................................................................. 56
4.2.2.52. AT+WRMID........................................................................................................................... 56
4.2.2.53. AT+ASWD............................................................................................................................. 57
4.2.2.54. AT+SMTLK............................................................................................................................57
4.2.2.55. AT+WPS................................................................................................................................ 57
4.2.2.56. AT+NDBGL........................................................................................................................... 57
4.2.2.57. AT+TYPE...............................................................................................................................58
4.2.2.58. AT+SMEM............................................................................................................................. 58
4.2.2.59. AT+WIFI.................................................................................................................................58
4.2.2.60. AT+SMARTAPCONFIG...................................................................................................... 59
4.2.2.61. AT+SMARTAPSTART.........................................................................................................59
4.2.2.62. AT+BTWAIT.......................................................................................................................... 59
5. PACKA GE INFORMATION
5.1. Recommended Reflow Profile
5.2. Device Handling Instruction (Module IC SMT Preparation)
5.3. HF-LPB130/HF-LPT230 Shipping Information
5.4. HF-LPT130A Shipping Information
..................................................................................................................
........................................................................................................
....................................................
............................................................................
...............................................................................................
61
61
61
62
62
APPENDIX A: HW REFERE NCE DESI GN...............................................................................................63
APPENDIX B: HTTP PROTOCOL TR ANSFE R
B.1. Sending HTTP Raw Data in Throughput Mode
......................................................................................
.............................................................................
64
64
APPENDIX C:REFERE NCES....................................................................................................................... 65
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -5-
HF-LPB135 Series Low Power WiFi Module User Manual
C.1. High-Flying Mass Production Tool
C.2. SmartLink APP V8 Sniffer Config Tool
C.3. SDK
APPENDIX D: CONTACT INFORMA TION
.........................................................................................................................................................
.................................................................................................
..........................................................................................
...............................................................................................
65
65
65
66
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -6-
HF-LPB135 Series Low Power WiFi Module User Manual
LIST OF FIGURES
Figure 1. HF-LPB135-10 Appearance........................................................................................................... 13
Figure 2. HF-LPB135 Pins Map......................................................................................................................13
Figure 3. HF-LPB135 Mechanical Dimension.............................................................................................. 16
Figure 4. HF-LPB130 EVK.............................................................................................................................. 17
Figure 5. HF-LPT230 EVK...............................................................................................................................18
Figure 6. HF-LPB135 Order Information....................................................................................................... 19
Figure 7. HF-LPB135 Hardware Typical Application...................................................................................19
Figure 8. HF-LPB135 Basic Wireless Network Structure........................................................................... 21
Figure 9. HF-LPB135 STA Network Structure..............................................................................................21
Figure 10. Socket B function demo.............................................................................................................. 23
Figure 11. Multi-TCP Link Data Transmition Structure............................................................................. 24
Figure 12. Open Web Management page................................................................................................... 25
Figure 13. 1MB Flash Version webpage..................................................................................................... 26
Figure 14. System Web Page....................................................................................................................... 26
Figure 15. Work Mode Page..........................................................................................................................27
Figure 16. STA Setting Page.........................................................................................................................28
Figure 17. STA Scan Page............................................................................................................................ 28
Figure 18. AP Setting Page........................................................................................................................... 29
Figure 19. Other Setting Page...................................................................................................................... 29
Figure 20. Account Page................................................................................................................................30
Figure 21. Upgrade SW page........................................................................................................................30
Figure 22. Restart Page................................................................................................................................. 31
Figure 23. Restore Page................................................................................................................................ 31
Figure 24. Internal Webpage......................................................................................................................... 32
Figure 25. STA Interface Debug Connection..............................................................................................32
Figure 26. AP Interface Debug Connection................................................................................................ 32
Figure 27. “CommTools” Serial Debug Tools............................................................................................. 33
Figure 28. “TCPUDPDbg” Tools Create Connection.................................................................................33
Figure 29. “TCPUDPDbg” Tools Setting......................................................................................................34
Figure 30. “TCPUDPDbg” Tools Connection.............................................................................................. 34
Figure 31. Wireless Control Application...................................................................................................... 34
Figure 32. Remote Management Application............................................................................................. 35
Figure 33. Transparent Serial Port Application.......................................................................................... 35
Figure 34. HF-LPB135 Default UART Port Parameters............................................................................36
Figure 35. Switch to Configuration Mode.................................................................................................... 36
Figure 36. ”AT+H” Instruction for Help.........................................................................................................38
Figure 37. Reflow Soldering Profile.............................................................................................................. 61
Figure 38. HF-LPB130/HF-LPT230 Shipping Information........................................................................ 62
Figure 39. Shipping Information....................................................................................................................62
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -7-
HF-LPB135 Series Low Power WiFi Module User Manual
LIST OF TABLES
Table1. HF-LPB135 Module Technical Specifications............................................................................. 12
Table2. HF-LPB135 Pins Definition.............................................................................................................13
Table3. Absolute Maximum Ratings:...........................................................................................................15
Table4. Power Supply & Power Consumption:.......................................................................................... 15
Table5. HF-LPB135 External Antenna Parameters.................................................................................. 17
Table6. HF-LPB135 Evaluation Kit Interface Description........................................................................ 18
Table7. HF-LPB135 Web Access Default Setting..................................................................................... 25
Table8. Error Code Describtion....................................................................................................................39
Table9. AT+Instruction Set List.................................................................................................................... 39
Table10. Reflow Soldering Parameter.......................................................................................................... 61
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -8-
HF-LPB135 Series Low Power WiFi Module User Manual
HISTORY
Ed. V0.2 07-25-2017 Internal Version.
Ed. V0.2 08-22-2017 Release Version
Ed. V1.1 13-10-2017 Add HF-LPT130A type module
Ed. V1.2 10-11-2017 Add HF-LPB130 type module
Ed. V1.3 03-01-2018 Update HF-LPT230 Pin, webpage config.
Ed. V1.4 03-01-2018 Add HF-LPT330 type, correct working temperature,voltage.
Ed. V1.5 04-28-2018 Add HF-LPB135 type, add 4.10.14 version software function. Add
AT+TMODE, AT+PING, AT+BVER, AT+HWVER, AT+SMEM and others.
Ed. V1.6 06-15-2018 Delete 4MB version, add HF-LPT230-0 type
Ed. V1.7 08-08-2018 Add HF-LPT230-0 size, add HF-LPT130B type and 4.12.07 firmware new
function(AT+CMDPW,AT+MDCH).
Ed. V1.8 10-10-2018 Add 4.12.14 version AT+SMARTAPCONFIG, AT+SMARTAPSTART,
AT+BTWAIT command
Ed. V1.9 12-11-2018 Add AT+WSLKO command, fix LPB130 size picture error.
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -9-
HF-LPB135 Series Low Power WiFi Module User Manual
Remote equipment monitoring
Asset tracking and telemetry
Industrial sensors and controls
The HF-LPB135 is a fully self-contained small form-factor, single stream, 802.11b/g/n Wi-Fi module,
which provide a wireless interface to any equipment with a Serial interface for data transfer.HF-
LPB135 integrate MAC, baseband processor, RF transceiver with power amplifier in hardware and all
Wi-Fi protocol and configuration functionality and networking stack, in embedded firmware to make a
fully self-contained 802.11b/g/n Wi-Fi solution for a variety of applications.
The HF-LPB135 employs the world's lowest power consumption embedded architecture. It has been
optimized for all kinds of client applications in the home automation, smart grid, handheld device,
personal medical application and industrial control that have lower data rates, and transmit or receive
data on an infrequent basis.
The HF-LPB135 series Wi-Fi modules provide different package with different size called HF-
LPB130/HF-LPT230/HF-LPT130A/B(T means tiny). It is pin to pin compatible for HF-LPB100/HF-
LPB120, HF-LPT200/HF-LPT220, HF-LPT100F/HF-LPT120A modules.
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
10
-
HF-LPB135 Series Low Power WiFi Module User Manual
This device complies with Part 15 of the FCC Rules. Operation is subject to the following two
conditions:
this device may not cause harmful interference, and
this device must accept any interference received, including interference that may cause
undesired operation.
Any changes or modifications not expressly approved by the party responsible for compliance
could void the user’s authority to operate the equipment.
Please notice that if the FCC identification number is not visible when the module is installed
inside another device, then the outside of the device into which the module is installed must also
display a label referring to the enclosed module. This exterior label can use wording such as the
following: “Contains FCC ID:2ACSV-HF-LPB135” any similar wording that expresses the same
meaning may be used.
This equipment complies with FCC radiation exposure limits set forth for an uncontrolled
environment. This equipment should be installed and operated with a minimum distance of 20cm
between the radiator & your body. This transmitter must not be co-located or operating in
conjunction with any other antenna or transmitter.
The module is limited to OEM installation ONLY.
The OEM integrator is responsible for ensuring that the end-user has no manual instruction to
remove or install module.
The module is limited to installation in mobile application.
A separate approval is required for all other operating configurations, including portable
configurations with respect to Part 2.1093 and difference antenna configurations.
There is requirement that the grantee provide guidance to the host manufacturer for compliance
with Part 15B requirements.
The OEM integrator is responsible for ensuring that the end-user has no manual instructions to
remove or install module.
The module is limited to installation in mobile or fixed application.
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
11
-
HF-LPB135 Series Low Power WiFi Module User Manual
Table1. HF-LPB135 Module Technical Specifications
802.11b: +16 +/-2dBm (@11Mbps)
802.11g: +14 +/-2dBm (@54Mbps)
802.11n: +13 +/-2dBm (@HT20, MCS7)
802.11b: -87 dBm (@11Mbps ,CCK)
802.11g: -73 dBm (@54Mbps, OFDM)
802.11n: -71 dBm (@HT20, MCS7)
HF-LPB130:
Internal: PCB antenna
External: IPEX antenna
HF-LPT230:
Internal: PCB antenna
External: IPEX antenna
HF-LPT130A:
Internal: Copper Line antenna
External: IPEX antenna
HF-LPT130B:
Internal: PCB antenna
HF-LPT330:
Internal: PCB antenna
HF-LPB135:
Internal: PCB antenna
External: IPEX antenna
Peak (Continuous TX): 260mA
Average(STA, No data): 25mA
Average(STA, Continuous TX): 32mA
Average(AP): 80mA
-40℃ - 85℃
0℃ - 105℃ (High Temperate Version)
HF-LPB130:
23.1mm x 32.8mm x 3.5mm
HF-LPT230:
22mm x 13.5mm x 3mm
HF-LPT130A:
22mm x 14.3mm x 8mm
HF-LPT130B:
22mm x 15.6mm x 8mm
HF-LPT330:
24 mm x 16mm x 3mm
HF-LPB135:
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
12
-
HF-LPB135 Series Low Power WiFi Module User Manual
Local Wireless, Remote OTA
Support SDK for application develop
IPv4, TCP/UDP/HTTP/TLS(SDK)
AT+instruction set. Android/ iOS
SmartLink APP tools
1.2. Hardware Introduction
Figure 1. HF-LPB135-10 Appearance
1.2.1. HF-LPB135 Pins Definition
Figure 2. HF-LPB135 Pins Map
Table2. HF-LPB135 Pins Definition
5V UART0 Communication Input
GPIO1
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
13
-
HF-LPB135 Series Low Power WiFi Module User Manual
5V UART0 Communication Output
GPIO2
Detailed functions see <Notes>
GPIO25, PWM3
“Low” effective reset input.
There is RC reset circuit
internally. External pull-up
resistor is not allowed.
1. When this pin is set to “low” during module boot up, the module will enter wireless
2. After module is powered up, short press this button (0.2s < “Low” < 1.5s) and loose
3. After module is powered up, long press this button ( “Low” > 4s ) and loose to make
1. OS initial finished indicator. Only after this pin output low, can the UART function be
1. At wireless firmware and config upgrade mode , this LED used to indicate configure
2. At “SmartLink” config mode, this LED is used to indicate APP to finish setting.
3. At normal mode, it’s Wi-Fi link status indicator. Output Low when STA mode connect
<Notes>
I — Input; O — Output
PU—Internal Resistor Pull Up; I/O: Digital I/O; Power—Power Supply
nReload Pin (Button) function:
firmware and config upgrade mode. This mode is used for customer manufacture.
(See Appendix to download software tools for customer batch configuration and
upgrade firmware during mass production)
to make the module go into “SmartLink “ config mode, waiting for APP to set
password and other information. (See Appendix to download SmartLink V8 and
SmartAPLink APP)
the module recover to factory setting.
High-Flying strongly suggest customer fan out this pin to connector or button for
“Manufacture” upgrade or “ SmartLink” application.
nReady Pin (LED) function(Low effective):
used.
nLink Pin (LED) function(Low effective):
and upgrade status.
to router AP or other STA connect to it when in AP mode.
High-Flying strongly suggest customer fan out this pin to LED.
PWM function:
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
14
-
HF-LPB135 Series Low Power WiFi Module User Manual
1. Is used for debug log or firmware program, baud rate 921600.
2. Can be used for communication in SDK.
1.2.2. Electrical Characteristics
Table3. Absolute Maximum Ratings:
Maximum soldering temperature
ESD (Human Body Model HBM)
Table4. Power Supply & Power Consumption:
STA Continuous data transfer
PWM0~PWM3 100ns period(if duty is from 0~255, then the maximum frequenry is
10M/256=39KHz), PWM4 support 800ns period.
Due to PWM pin is internal weak pull-up. So when these pins are used for LED bulb
application, suggest to add strong pull-down resistor to revent the lulb on when boot.
Note: nReload pin is also used for special function, when use this pin for PWM bulb
application and add external pull-down resistor, this will cause the module wait 1 second
when bootup(wait “space” key to etner bootloader). Contact us to provice special
bootloader in order to remove this wait time.
UART1 Debug :
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
15
-
HF-LPB135 Series Low Power WiFi Module User Manual
1.2.3. HF-LPB135 Mechanical Size
Figure 3. HF-LPB135 Mechanical Dimension
1.2.4. External Antenna
HF-LPB135 modules physical size ( Unit: mm) as follows:
HF-LPB135 series module supports external antenna(I-PEX) option for user dedicated application.
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
16
-
HF-LPB135 Series Low Power WiFi Module User Manual
Table5. HF-LPB135 External Antenna Parameters
1.2.5. Evaluation Kit
I-PEX or populate directly
If user select external antenna, HF-LPB135 series Wi-Fi modules must be connected to the 2.4G
antenna according to IEEE 802.11b/g/n standards. We can provide external antenna if needed.
Contact with our salesman.
The antenna parameters required as follows:
High-Flying provides the evaluation kit to promote user to familiar the product and develop the detailed
application. The evaluation kit shown as below, user can connect to HF-LPB135 series module with
the RS-232 UART, USB (Internal USB to UART convetor) or Wireless interface to configure the
parameters, manage the module or do the some functional tests.
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
17
-
HF-LPB135 Series Low Power WiFi Module User Manual
Table6. HF-LPB135 Evaluation Kit Interface Description
1.2.6. Order Information
Main data/command RS-232 interface, this
interface maximum baud rate is 460800. Can not
be used for debug UART log(It need 921600)
USB to UART interface, can be used for debug
UART log
DC jack for power in, 5~ 9V input.
Smartlink and Restore factory default configuration.
See more for PIN Definition
Notes: User need download USB to UART port driver from High-Flying web or contact with technical
support people for more detail.
The external interface description for evaluation kit as follows:
Base on customer detailed requirement, HF-LPB135 series modules provide different variants and
physical type for detailed application.
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
18
-
HF-LPB135 Series Low Power WiFi Module User Manual
Figure 6. HF-LPB135 Order Information
1.2.7. Hardware Typical Application
Figure 7. HF-LPB135 Hardware Typical Application
Notes:
nReset- Module hardware reset signal. Input. Logics “0” effective.
There is pull-up resister internal and no external pull-up required. When module power up or some
issue happened, MCU need assert nRST signal “0” at least 10ms, then set” 1” to keep module fully
reset.
nLink- Module WIFI connection status indication. Output.
(This pin is recommend to connect to LED, indicate status when the module in wireless
upgrade mode)
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
19
-
HF-LPB135 Series Low Power WiFi Module User Manual
When module connects to AP (AP associated), this pin will output “0”. This signal used to judge if
module already at WiFi connection status. Thers is pull-up resister internal and no external pull-up
required. If nLink function not required, can leave this pin open.
nReady- Module boot up ready signal. Output. Logics “0” effective.
The module will output “0” after normal boot up. This signal used to judge if module finish boot up and
ready for application or working at normal mode. If nReady function not required, can leave this pin
open.
nReload- Module restore to factory default configuration.Input. Logics “0” effective.
(This pin is recommend to connect to button, is used to enter wireless upgrade mode)
User can de-assert nReload signal “0” more than 4s through button or MCU pin, then release, module
will restore to factory default configuration and re-start boot up process.. If nReload function not
required, can leave this pin open.
UART0_TXD/RXD - UART port data transmit and receive signal.
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
20
-
HF-LPB135 Series Low Power WiFi Module User Manual
2. FUNCTIONAL DESCRIPTION
2.1.1. Basic Wireless Network Based On AP
Figure 8. HF-LPB135 Basic Wireless Network Structure
2.1.2. Wireless Network Based On STA
Figure 9. HF-LPB135 STA Network Structure
HF-LPB135 module can be configured as both wireless STA and AP base on network type. Logically
there are two interfaces in HF-LPB135. One is for STA, and another is for AP. When HF-LPB135
works as AP, other STA equipments are able to connect to HF-LPB135 module directly. Wireless
Networking with HF-LPB135 is very flexible.
Notes:
AP: that is the wireless Access Point, the founder of a wireless network and the centre 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 device.
Infrastructure: it’s also called basic network. It built by AP and many STAs which join in.
The characters of network of this type are that AP is the centre, and all communication between STAs
is transmitted through the AP. The figure following shows such type of networking.
HF-LPB135 module support STA network mode.
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
21
-
HF-LPB135 Series Low Power WiFi Module User Manual
2.2. Work Mode : Transparent Transmission Mode
Wireless Network Parameters
Wireless Network Name( SSID)
TCP/UDP Linking Parameters
Link Type( Server or Client)
2.4. Parameters Configuration
HF-LPB135 module support serial interface transparent transmission mode. The benefit of this mode
is achieves a plug and play serial data port, and reduces user complexity furthest. In this mode, user
should only configure the necessary parameters. After power on, module can automatically connect to
the default wireless network and server.
As in this mode, the module's serial port always work in the transparent transmission mode, so users
only need to think of it as a virtual serial cable, and send and 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
devices can be easy for wireless data transmission without any changes.
The transparent transmission mode can fully compatible with user’s original software platform and
reduce the software development effort for integrate wireless data transmission.
The parameters which need to configure include:
Encryption is a method of scrambling a message that makes it unreadable to unwanted parties,
adding a degree of secure communications. There are different protocols for providing encryption, and
the HF-LPB135 module supports following:
HF-LPB135 module supports two methods to configuration parameters: AT+instruction set.
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
22
-
HF-LPB135 Series Low Power WiFi Module User Manual
Figure 10. Socket B function demo
2.7. Multi-TCP Link Connection
AT+instruction set configuration means user configure parameters through serial interface command.
Refer to “AT+instruction set” chapter for more detail.
HF-LPB135 module supports multiple upgrade methods:
HF-LPB135 support double socket communication, the socket B function is disabled by default.
When HF-LPB135 module SOCK A configured as TCP Server, it supports Multi-TCP link connection,
and maximum 5 TCP clients permitted to connect to HF-LPB135 module. User can realize multi-TCP
link connection at each work mode.
Multi-TCP link connection will work as following structure:
Upstream: All dates from different TCP connection or client will be transmitted to the serial port as a
sequence.
Downstream: All data from serial port (user) will be replicate and broadcast to every TCP connection
or client.
Detailed multi-TCP link data transmission structure as following figure:
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
23
-
HF-LPB135 Series Low Power WiFi Module User Manual
Figure 11. Multi-TCP Link Data Transmition Structure
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
24
-
HF-LPB135 Series Low Power WiFi Module User Manual
Table7. HF-LPB135 Web Access Default Setting
HF-LPB130
HF-LPT230
HF-LPT130A
HF-LPT130B
HF-LPT330
3.1.1. Open Web Management Interface
Figure 12. Open Web Management page
When first use HF-LPB135 series modules, user may need some configuration. User can connect to
HF-LPB135 module’s wireless interface with following default setting information and configure the
module through laptop.
There is internal webpage and external webpage in modules. The external webpage is for web
management. The internal webpage is only for upgrading. 1MB Flash external webpage is different
from 2MB/4MB Flash version, but the internal webpage is the same.
Step 1: Connect laptop to SSID “HF-LPT230” of HF-LPT230 module via wireless LAN card;
Step 2: After wireless connection OK. Open Wen browser and access “http://10.10.100.254 ”;
Step 3: Then input user name and password in the page as following and click “OK” button.
The 1MB Flash version has the simple config page while the 2MB/4MB Flash version has the full
config page. 1MB Flash version webpage is as following(By default is Chinese language, upgrade via
internal webpage to upgrade English language).
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
25
-
HF-LPB135 Series Low Power WiFi Module User Manual
Figure 13. 1MB Flash Version webpage
3.1.2. System Page
Figure 14. System Web Page
The HF-LPB135 web management page support English and Chinese language. User can select
language environment at the top right corner and click “Apply” button.
The main menu include nine pages: “System”, “Work Mode”, “STA Setting”, “AP Setting”, “Other
Setting”, “Account”, “Upgrade SW”, “Restart”, “Restore”.
At this page, user can check current device’s important information and status such as: device ID
(MID), software version, wireless work mode and related Wi-Fi parameters.
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
26
-
HF-LPB135 Series Low Power WiFi Module User Manual
3.1.3. Work Mode Page
Figure 15. Work Mode Page
3.1.4. STA Setting Page
HF-LPB135 module can works at AP mode to simplify user’s configuration, can also works at STA to
connect remote server through AP router.
User can push “Scan” button to auto search Wi-Fi AP router nearby, and can connect with associate
AP through some settings. Please note the encryption information input here must be fully same with
Wi-Fi AP router’s configration, and then it can link with AP correctly.
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
27
-
HF-LPB135 Series Low Power WiFi Module User Manual
Figure 16. STA Setting Page
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
28
-
HF-LPB135 Series Low Power WiFi Module User Manual
3.1.5. AP Setting Page
Figure 18. AP Setting Page
3.1.6. Other Setting Page
Figure 19. Other Setting Page
When user select module works at AP and AP+STA mode, then need setting this page and provide
wireless and network parameters. Most of the system support DHCP to achieve IP address, so we
suggest to “Enable” DHCP server in most applications.
HF-LPB135 usually works at data transparent transmission mode. At this mode, the user device which
connected with HF-LPB135 will connect and communicate with remote PC or server. At this page,
user need setting serial port communication parameters and defines TCP related protocal parameters.
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
29
-
HF-LPB135 Series Low Power WiFi Module User Manual
3.1.7. Account Management Page
3.1.8. Upgrade Software Page
Figure 21. Upgrade SW page
3.1.9. Restart Page
This page set web server’s user name and password.
User can upgrade new software (firmware) version through Wi-Fi. After upgrade success, need reboot
it manually before new firmware valid.
Most of the settting and configuration can only effective after system restart. User shall restart after
finish all setting.
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
30
-
HF-LPB135 Series Low Power WiFi Module User Manual
After module restore factory default setting, all user configuration profile will lose.
User can access http://10.10.100.254 to set again, and user name and password is “admin”. HF-
LPB135 will restore to AP mode for factory default setting.
After wireless connection is OK. Open Wen browser and access “http://10.10.100.254/iweb.html ”; It
is for upgrading application and external webpage..
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
31
-
HF-LPB135 Series Low Power WiFi Module User Manual
Figure 24. Internal Webpage
3.2.1. Software Debug Tools
Serial Debugging Software: ComTools
Ethernet Debugging Software: TCPUDPDbg
3.2.2. Network Connection
Use HF-LPB135 STA interface. HF-LPB135 and debug PC2 connect to a wireless AP,
Figure 25. STA Interface Debug Connection
Use HF-LPB135 AP interface. Debug PC2 connect to HF-LPB135 through wireless
Figure 26. AP Interface Debug Connection
3.2.3. Default Parameter Setting
Default SSID: HF-LPB135;
High-Flying use two common software tools debugging and applying HF-LPB135 module.
(User can also select other tools used to debug serial port).
User can select two methods to connect HF-LPB135 module base on dedicated application.
another PC1 (or user device) connect to HF-LPB135 module with serial port:
connection, another PC1 (or user device) connect to HF-LPB135 module with serial port.
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
32
-
HF-LPB135 Series Low Power WiFi Module User Manual
Deault security mode: open,none;
User UART parameter setting:115200,8,1,None;
Default network parameter setting:TCP,Server,8899,10.10.100.254;
Module IP address: dhcp,0.0.0.0,0.0.0.0,0.0.0.0;
3.2.4. Module Debug
Figure 27. “CommTools” Serial Debug Tools
Figure 28. “TCPUDPDbg” Tools Create Connection
PC1 open “CommTools” program, setting the same serial port parameters with HF-LPB135 module
and open serial port connection.
PC2 open “TCPUDPDbg” program, and create a new connection. If HF-LPB135 configured as Server
mode, “TCPUDPDbg” Tools shall create “Client “mode connection. Or otherwise, create a “Server”
mode connection.
Then setting the TCP/UDP connection parameters. Default as following:
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
33
-
HF-LPB135 Series Low Power WiFi Module User Manual
Figure 29. “TCPUDPDbg” Tools Setting
Figure 30. “TCPUDPDbg” Tools Connection
3.3. Typical Application Examples
3.3.1. Wireless Control Application
Figure 31. Wireless Control Application
Then, click “Create” button to create a connection.
Now, in transparent transmission mode, data can be transferred from “CommTools” program to
“TCPUDPDbg” program, or in reverse. You can see data in receiver side will keep same as in sender
side.
For this wireless control application, HF-LPB135 works as AP mode. Module’s serial port connects to
user device. So, control agent (Smart phone for this example) can manage and control the user device
through the wireless connection with HF-LPB135 module.
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
34
-
HF-LPB135 Series Low Power WiFi Module User Manual
3.3.2. Remote Management Application
Figure 32. Remote Management Application
3.3.3. Transparent Serial Port Application
Figure 33. Transparent Serial Port Application
For this remote management application, HF-LPB135 works as STA mode and connects to Internet
through wireless AP. Module configured as TCP Client and communicates with remote TCP server at
Internet. Module’s serial port connects to user device.
So, user device’s data or sampling information can send to remote TCP server for storage or
processing. Also remote TCP server can send command to control and manage the user device
through the wireless network.
For this transparent serial port application, two HF-LPB135 modules connect as below figures to build
up a transparent serial port connection. One HF-LPB135 works as AP mode, another HF-LPB135
works as STA mode. Make the STA device connects to AP.
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
35
-
HF-LPB135 Series Low Power WiFi Module User Manual
4. AT+INSTRUCTION INTRODUCTION
Figure 34. HF-LPB135 Default UART Port Parameters
4.1.1. Switch to Configuration Mode
UART input “+++”, after module receive “+++”, and feedback “a” as confirmation.
UART input “a”, after module receive “a” and feedback “+ok” to go into
Figure 35. Switch to Configuration Mode
When HF-LPB135 power up, it will default works as transparent transmission mode, then user can
switch to configuration mode by serial port command. HF-LPB135 UART default parameters setting as
below figure,
In configuration mode, user can setting the module through AT+instruction set, which cover all web
page setting function.
Two steps to finish switching from transparent transmission mode to configuration mode.
AT+instruction set configuration mode.
Notes:
1. When user input “+++” (No “Enter” key required), the UART port will display feedback information
“a”, and not display input information”+++” as above UART display.
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
36
-
HF-LPB135 Series Low Power WiFi Module User Manual
4.1.2. Send AT Command in Transparent Transmission Mode
4.2. AT+Instruction Set Overview
2. Any other input or wrong step to UART port will cause the module still works as original mode
(transparent transmission).
3. “+++” and “a” should be input in a certain period of time to make the module switch to configuration
mode. Like the following sequence.
After set AT+CMDPW command value, the module support response AT command for special data
format as “prefix”+”AT comman”+”\r”, it is very useful for query some status in transparent
transmission mode. It saves the steps of changing to AT command mode.
The following example, we first set AT+CMDPW=HF, then send the following data in transparent
mode, and get the AT command response. This data won’t be sent to socket.
User can input AT+Instruction through hyper terminal or other serial debug terminal, also can program
the AT+Instruction to script. User can also input “AT+H” to list all AT+Instruction and description to
start.
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
37
-
HF-LPB135 Series Low Power WiFi Module User Manual
Figure 36. ”AT+H” Instruction for Help
4.2.1. Instruction Syntax Format
< >: Means the parts must be included
[ ]: Means the optional part
AT+: Prefix of command message;
[op]: Symbol of command operator,
“=” : The command requires parameters input;
“NULL”: Query the current command parameters setting;
[para-n]: Parameters input for setting if required;
<CR>:”Enter” Key, it’s 0x0a or 0x0d in ASCII;
AT+Instruction protocol is based on the instruction of ASCII command style, the description of syntax
format as follow.
AT+<CMD>[op][para-1,para-2,para-3,para-4…]<CR>
Notes: When input AT+Instruction, “AT+<CMD>” character will display capital letter automatic and
other parts will not change as you input.
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
38
-
HF-LPB135 Series Low Power WiFi Module User Manual
+: Prefix of response message;
[para-n]: Parameters if query command or Error code when error happened;
Table8. Error Code Describtion
4.2.2. AT+Instruction Set
Table9. AT+Instruction Set List
Managment Instruction Set
Open/Close show back function
Set/Query Wi-Fi work mode (AP/STA)
Set module into transparent transition mode
Set/Query module data transfer mode
Query module ID information
Query module software version information
Query Wi-Fi chip hardware version
Restore to factory default setting
Configure Parameters Instruction Set
Copy User Parameters to Factory Default Parameters
Set/Query serial port parameters
Network ”Ping” Instruction
Set/Query SOCKA network protocol parameters
Set/Query SOCKA TCP Client connection number
Query if SOCKA TCP link already build-up
+<RSP>[op] [para-1,para-2,para-3,para-4…]<CR><LF><CR><LF>
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
39
-
HF-LPB135 Series Low Power WiFi Module User Manual
Set/Query SOCKA TCP timeout
Open/Close SOCKA TCP link
Send Data at Command Mode
Receive Data at Command Mode
Set/Query SOCKB parameters
Open/Close SOCKB TCP link
Set/Query SOCKB TCP timeout
Query if SOCKB TCP link already build-up
Send data to SOCKB in Command Mode
Receive data from SOCKB in Command Mode
Wi-Fi STA Instruction Set
Set/Query STA security parameters
Set/Query associated AP SSID parameters
Set/Query STA’s network parameters
Set/Query modle MAC address
Query STA Wi-Fi link status
Query STA Wi-Fi signal strength
Set/Query AP’s network parameters
Set/Query AP Wi-Fi parameters
Set/Query AP security parameters
Set/Query AP DHCP Server status
Query MAC address of STA device connecting to module AP
Enable/Disable indication of connection status.
Set/Query max STA devices supported for AP.
Remote Upgrade Instruction Set
Set/Query remote upgrade URL address
Set/Query webpage language
Set/Query webpage login account
Set/Query WiFi configuration code
Set UART debug information
Function: Open/Close show back function;
AT+E=<status><CR>
+ok<CR><LF><CR><LF>
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
40
-
HF-LPB135 Series Low Power WiFi Module User Manual
Function: Set/Query AT command prefix character for sending AT command in
mode: Default is blank for disable t 是 his function. The maximum is 20 chacter
Function: Set/Query Wi-Fi work mode. Setting is valid after reset;
Function: Set module into transparent transmition mode;
When HF-LPB135 module firstly switch from transparent transmission to configuration mode, show
back status is open, input “AT+E” to close show back function, input“AT+E” again to open show back
function, use AT+E=on/off command to save the echo status..
throughput mode. Setting is valid after reset;
AT+CMDPW<CR>
+ok=<data><CR><LF><CR><LF>
AT+CMDPW=<data><CR>
+ok<CR><LF><CR><LF>
length, once has been set, the AT command in transparent transmission mode
function is enabled (AT+H and AT+WSCAN are not supported). Do restore to
factory operation to disable and clear the setting
When set this value to “HF”, then can get response of “+ok=STA”(Hex: 2B 6F 6B 3D 53 54 41) for
send “HFAT+WMODE\r”(Hex: 48 46 41 54 2B 57 4D 4F 44 45 0D, AT command should end with 0D
or 0A).
AT+WMODE<CR>
+ok=<mode><CR><LF><CR><LF>
AT+WMODE=<mode><CR>
+ok<CR><LF><CR><LF>
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
41
-
HF-LPB135 Series Low Power WiFi Module User Manual
Function: Set/Query module data transfer mode. Setting is valid after reset.
tmode: data transfer mode, include:
throughput: throughput mode
Function: Query module ID information;
module_id: Module ID information;
Function: Query module software version information;
ver: Module software version information;
Function: Query Bootloader software version information;
AT+ENTM<CR>
+ok<CR><LF><CR><LF>
When operate this command, module switch from configuration mode to transparent transmission
mode.
AT+TMODE<CR>
+ok=<tmode><CR><LF><CR><LF>
AT+TMODE=<tmode><CR>
+ok<CR><LF><CR><LF>
AT+MID<CR>
+ok=<module_id><CR><LF><CR><LF>
Notes: User can set this parameter through AT+WRMID.
AT+VER<CR>
+ok=<ver><CR><LF><CR><LF>
AT+BVER<CR>
+ok=<ver><CR><LF><CR><LF>
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
42
-
HF-LPB135 Series Low Power WiFi Module User Manual
ver: Ex:1M_U06 V3.0.06, 0xC09F8
Function: Query Bootloader software version information;
Function: module restore to factory default setting;
Function: Erase factory setting;
Function: Re-start module;
command help: command introduction;
Function: Copy User Parameters to Factory Default Parameters;
AT+HWVER<CR>
+ok=<ver><CR><LF><CR><LF>
AT+RELD<CR>
+ok=rebooting…<CR><LF><CR><LF>
When operate this command, module will restore to factory default setting and reboot.
AT+FCLR<CR>
+ok=<status><CR><LF><CR><LF>
AT+Z<CR>
AT+H<CR>
+ok=<command help><CR><LF><CR><LF>
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
43
-
HF-LPB135 Series Low Power WiFi Module User Manual
status: feedback operation status;
Function: Set/Query serial port parameters. Setting is valid after reset.
uart_num: UART Channel, the default is UART0.
1200,1800,2400,4800,9600,19200,38400,57600,115200,230400,
NFC: No hardware flow control
FC: hardware flow control(4.10.11 or above version support)
Function: Network “PING” Instruction.
ip: ip address or domain name.
count: Ping command execute count times. Default is 1.
size: Ping packet size. Default is 32 bytes.
AT+CFGTF<CR>
+ok=<status><CR><LF><CR><LF>
AT+UART[=uart_num]<CR>
+ok=<baudrate,data_bits,stop_bit,parity,flowctrl><CR><LF><CR><LF>
AT+UART=<baudrate,data_bits,stop_bit,parity,flowctrl>[,uart_num]<CR>
+ok<CR><LF><CR><LF>
380400,460800,921600
AT+PING=<ip[,count,size]><CR>
+ok=<sta><CR><LF><CR><LF>
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
44
-
HF-LPB135 Series Low Power WiFi Module User Manual
Function: Set/Query SOCKA network protocol parameters. Setting is valid immediately.
Port: protocol port ID: Decimal digit and less than 65535
IP: Server’s IP address when module set as client
Function:Set/ Query SOCKA TCP Client connection number.
num: TCP Client connection number. Range: 1~5. 5 is the default value it means
Function: Query if SOCKA TCP link already build-up;
AT+NETP<CR>
+ok=<protocol,CS,port,IP><CR><LF><CR><LF>
AT+NETP=<protocol,CS,port,IP><CR>
+ok<CR><LF><CR><LF>
If set as UDP SERVER, the module will save the IP address and port of the latest UDP
packet received. The data will be sent to the saved IP address and port. If the module hasn’t
saved any IP address and port when power up. The data will be sent to the IP address and port
which is set by this command.
If set as UDP,CLIENT, the data will always be sent to the IP address and port set by this
command.
AT+MAXSK<CR>
+ok=<num><CR><LF><CR><LF>
AT+MAXSK=<num><CR>
+ok<CR><LF><CR><LF>
when the module work in TCP server , it accepts max 5 TCP client connect to it.
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
45
-
HF-LPB135 Series Low Power WiFi Module User Manual
sta.: if module already setup TCP link;
off: TCP link not setup;
Function: Set/Query SOCKA TCP timeout; Setting is valid after reset.
time: TCP timeout time.
>=0, (0 means no timeout);
Function:
Open/Close SOCKA TCP link
;
AT+TCPLK<CR>
+ok=<sta><CR><LF><CR><LF>
AT+TCPTO<CR>
+ok=<time><CR><LF><CR><LF>
AT+TCPTO=<time ><CR>
+ok<CR><LF><CR><LF>
Module begin to count time when TCP channel don’t receive any data, clecherar time
counter when TCP channel receive any data. If the time counter reaches the TCPTO, the tcp
channel will be break. If the module work in TCP Client, it will connect the TCP server
instantly and when the module work in TCP Server, the TCP client device should make the
connection itself.
AT+TCPDIS<CR>
+ok=<sta><CR><LF><CR><LF>
AT+TCPDIS =<on/off><CR>
+ok<CR><LF><CR><LF>
When query, sta.: Feedback if TCP Client can be link,
When setting, “off” means close TCP link. After finish this command, module disconnect TCP
link and not connect again. “On” means open TCP link. After finish this command, module re-
connect TCP server right away.
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
46
-
HF-LPB135 Series Low Power WiFi Module User Manual
Function:
Send Data to SOCKA at Command Mode
.
data_lenth: Lenth of send data. Range: 0~1000 Byte
Function: Receive Data from SOCKA at Command Mode.
data_lenth: Lenth of receive data. Range: 0~1000 Byte
data_content: contents of receive data.
Function: Set/Query SOCKB parameters. Setting is valid immediately.
Protocol: Protocol type:
TCP: Only for TCP Client
Port: Protocol Port in decimal, less than 65535
IP: Destination IP address, domain name is support
AT+SEND=<data_lenth><CR>
+ok<CR><LF><CR><LF>
The UART port will wait 3 seconds for input after this command is sent OK. The data received
from UART port is sent to SOCKA. If the interval of two bytes is more than 10ms, the data will be
sent instantly.
AT+RECV=<data_lenth><CR>
+ok=< data_lenth, data_content><CR><LF><CR><LF>
If not receive any data in 3 second, then feedback +ok=0.
AT+SOCKB<CR>
+ok=<protocol,port,IP><CR><LF><CR><LF>
AT+SOCKB=<protocol,port,IP><CR>
+ok<CR><LF><CR><LF>
If set as UDP SERVER, the module will save the IP address and port of the latest UDP
packet received. The data will be sent to the saved IP address and port. If the module hasn’t
saved any IP address and port when power up. The data will be sent to the IP address and
port which is set by this command.
If set as UDP,CLIENT, the data will always be sent to the IP address and port set by this
command.
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
47
-
HF-LPB135 Series Low Power WiFi Module User Manual
Function: Open/Close SOCKB connection
Function: Set/Query Operation SOCKB TCP timeout. Setting is valid after reset.
Function:Query SOCKB connection status
sta.: SOCKB connection status
Function: Send datas to SOCKB at Command Mode
AT+TCPDISB<CR>
+ok=<sta><CR><LF><CR><LF>
AT+TCPDISB =<on/off><CR>
+ok<CR><LF><CR><LF>
When setting, “off” means close TCP link. After finish this command, module disconnect TCP
link and not connect again. “On” means open TCP link. After finish this command, module re-
connect TCP server right away.
AT+TCPTOB<CR>
+ok=<time><CR><LF><CR><LF>
AT+TCPTOB=<time ><CR>
+ok<CR><LF><CR><LF>
If the SOCKB TCP don't receive any data from TCP server for TCP tmeout setting, the
module will break and reconnect the TCP server. If it receive data from server, the timeout
counter will be clear.
AT+TCPLKB<CR>
+ok=<sta><CR><LF><CR><LF>
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
48
-
HF-LPB135 Series Low Power WiFi Module User Manual
data_lenth: Lenth of send data. Range: 0~1000 Byte
Function: Receive datas from SOCKB at Command Mode
data_lenth: Lenth of receive data. Range: 0~1000 Byte
data_content: contents of receive data.
Function: Set/Query UDP local port of Socket A and Socket B..
porta: UDP local port of Socket A, 0: do not fix local UDP port.
porta: UDP local port of Socket B, 0: do not fix local UDP port.
Function: Set/Query Wi-Fi associated AP SSID parameters. Setting is valid after reset.
ap’s ssid: AP’s SSID (Within 32 character);
AT+SNDB=<data_lenth ><CR>
+ok<CR><LF><CR><LF>
The UART port will wait 3 seconds for input after this command is sent OK. The data received
from UART port is sent to SOCKB. If the interval of two bytes is more than 10ms, the data will be
sent instantly.
AT+RCVB=<data_lenth><CR>
+ok=< data_lenth, data_content><CR><LF><CR><LF>
If not receive any data in 3 second, then feedback +ok=0.
AT+UDPLCPT<CR>
+ok=<porta,portb><CR><LF><CR><LF>
AT+UDPLCPT=<porta,portb><CR>
+ok<CR><LF><CR><LF>
AT+WSSSID<CR>
+ok=<ap’s ssid><CR><LF><CR><LF>
AT+WSSSID=<ap’s ssid ><CR>
+ok<CR><LF><CR><LF>
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
49
-
HF-LPB135 Series Low Power WiFi Module User Manual
Function: Set/Query STA security parameters. Setting is valid after reset.
auth: Authentication mode
encry:Encryption algorithm
NONE: When “auth=OPEN”, effective
WEP-H: When “auth=OPEN” or “SHARED”, effective, in HEX format
WEP-A: When “auth=OPEN” or “SHARED”, effective, in ASCII format
TKIP: When ”auth= WPAPSK” or “WPA2PSK”, effective
AES: When “auth= WPAPSK” “WPA2PSK”, effective
key: password. When encry is WEP-H, password is in HEX format, password
Function: Set/Query STA network setting. Setting is valid after reset.
mode: STA’s IP network setting
address: STA IP address;
gateway: STA gateway address;
AT+WSKEY<CR>
+ok=<auth,encry,key><CR><LF><CR><LF>
AT+WSKEY=< auth,encry,key><CR>
+ok<CR><LF><CR><LF>
length is 10 or 26. When encry is WEP-A, password is in ASCII format, password
length is 5 or 13. When encry is TKIP or AES, password is in ASCII code,
password length shall be 8~63.
AT+WANN<CR>
+ok=<mode,address,mask,gateway><CR><LF><CR><LF>
AT+WANN=< mode,address,mask,gateway ><CR>
+ok<CR><LF><CR><LF>
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
50
-
HF-LPB135 Series Low Power WiFi Module User Manual
Function: Set/Query Module STA MAC address parameters. Setting is valid after reset.
Mac_address: module MAC address, such as ACCF23FF1234
key: encryption key. It is not allowed to change, contach us if need to change MAC.
Function: Query STA WiFi link status
”Disconnected”, if no WiFi connection;
”AP’ SSID( AP’s MAC” ) , if WiFi connection available;
Function: Query/Set STA WiFi connection order function.
Order: order scheme. When there is much same name and password SSID, If
Enable: Enable order function.
Disable: Disable order function.
AT+WSMAC<CR>
+ok=<mac_address><CR><LF><CR><LF>
AT+WSMAC=<code,mac_address,key><CR>
+ok<CR><LF><CR><LF>
AT+WSLK<CR>
+ok=<ret><CR><LF><CR><LF>
AT+WSLKO<CR>
+ok=<order><CR><LF><CR><LF>
AT+WSLKO=<order><CR>
+ok<CR><LF><CR><LF>
enable this order function, module will connect to the strongest signal strength. If
disabled, it will connect to the first response AP(may connect to the weakest AP).
Enable this function will cost 2 more seconds more first connect time.
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
51
-
HF-LPB135 Series Low Power WiFi Module User Manual
Function: Query STA WiFi signal strength;
”Disconnected”, if no WiFi connection;
”AP’s WiFi signal strength” , if WiFi connection available;
Function: Scan AP, max show 50 item;
Function: Set/Query AP’s network parameters. Setting is valid after reset.
ipaddress: AP’s IP address;
Function: Set/Query AP Wi-Fi parameters. Support maximum 5 STA connection. Setting
AT+WSLQ<CR>
+ok=<ret><CR><LF><CR><LF>
AT+WSCAN<CR>
+ok=<ap_site><CR><LF><CR><LF>
AT+LANN<CR>
+ok=<ipaddress,mask><CR><LF><CR><LF>
AT+LANN=< ipaddress,mask><CR>
+ok<CR><LF><CR><LF>
is valid after reset.
AT+WAP<CR>
+ok=<wifi_mode,ssid,channel><CR><LF><CR><LF>
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
52
-
HF-LPB135 Series Low Power WiFi Module User Manual
wifi_mode: Wi-Fi mode, include:
ssid:SSID at AP mode, the maximum length is 32.
channel: Wi-Fi channel selection:
Function: Set/Query AP Wi-Fi secruity parameters. Setting is valid after reset.
NONE: When “auth=OPEN” available;
AES: When “auth=WPA2PSK” available;
key: security code, ASCII code, 8~63 bytes.
Function: Set/Query AP DHCP server status; Setting is valid after reset.
status:AP’s DHCP server function status:
AT+WAP =<wifi_mode,ssid,channel><CR>
+ok<CR><LF><CR><LF>
AT+WAKEY<CR>
+ok=<auth,encry,key><CR><LF><CR><LF>
AT+WAKEY=< auth,encry,key><CR>
+ok<CR><LF><CR><LF>
AT+WADHCP<CR>
+ok=<status>,<ip1>,<ip2><CR><LF><CR><LF>
AT+WADHCP=<status>[,ip1,ip2]<CR>
+ok<CR><LF><CR><LF>
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
53
-
HF-LPB135 Series Low Power WiFi Module User Manual
ip1: DHCP allocate IP start value.
ip2: DHCP allocate IP end value.
Function: Query MAC address of STA device connecting to module AP
status: MAC address of STA device connecting to module AP.
No Connection: No STA device connecting to module AP;
Function: Enable/Disable indication of module AP connection status.
status: indication of module AP connection status.
on: Enable nLink indication function. When STA device connecting to module
off: Disable nLink indication function. (default mode) .
Function: Set/Query max STA number supported for AP.
num: max STA number supported for AP.
1~5: Support max 1~5 STA devices connects to module AP. 5 is default
Function: Set Wi-Fi Auto Switch Function. Setting is valid after reset.
AT+WALK<CR>
+ok=<status> <CR><LF><CR><LF>
AT+WALKIND<CR>
+ok=<status> <CR><LF><CR><LF>
AT+WALKIND=<status><CR>
+ok<CR><LF><CR><LF>
AP, nLink output Low, otherwise output High.
AT+WAPMXSTA<CR>
+ok=<num> <CR><LF><CR><LF>
AT+WAPMXSTA=<num><CR>
+ok<CR><LF><CR><LF>
value for max 5 STA device supported.
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
54
-
HF-LPB135 Series Low Power WiFi Module User Manual
mode: Wi-Fi Auto Switch Mode
off: Disable Wi-Fi auto switch. When response with auto, it is the same as off.
on: Enable Wi-Fi auto switch. When the module(STA mode) fail to connect to
Function: Set OTA Upgrade
Function: Set/ Query remote upgrade URL address;
url: the upgrade file url address; the last charter shall be “/” (within 20 characters).
filename: the upgrade file name, it’s optional and not saved parameter. If provide
result: the download operation result.
Download failed: Url is error or file is not valid.
Update success: Need reboot to run new the download new firmware.
Function: Set/Query power save parameters;
AT+MDCH<CR>
+ok=<mode><CR><LF><CR><LF>
AT+MDCH=<mode> <CR><LF><CR><LF>
+ok<CR><LF><CR><LF>
router, it will switch to AP mode itself in one minute.
AT+OTA<CR>
+ok=<CR><LF><CR><LF>
Note: See Appendix C Module Upgrade for detail
AT+UPURL<CR>
+ok=<url><CR><LF><CR><LF>
AT+UPURL=<url,filename><CR>
+ok=<result><CR><LF><CR><LF>
this file name here, the module will start upgrade right away;
AT+DISPS<CR>
+ok=<ret><CR><LF><CR><LF>
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
55
-
HF-LPB135 Series Low Power WiFi Module User Manual
Yes: Disable power save
Auto: Auto power save mode(default), enter power saving mode after receive
Yes: Disable power save
Auto: Auto power save mode(default), enter power saving mode after receive
time: Only valid in auto mode, >=2 integer value, default is 3 seconds. when value
Function: Set/Query webpage language option;
language: webpage’s language
CN: Chinese Version (Default);
Function: Set/ Query webpage user name and password; Setting is valid after reset.
username: User Name, within 15 characters, not support empty.
password: password, within 15 characters, support empty.
Function: Set module ID;
AT+DISPS=<mode[,time]><CR><LF><CR><LF>
or send data in time seconds.
or send data in time seconds.
is 0, the default waiting time is still 3 seconds.
AT+PLANG<CR>
+ok=<language><CR><LF><CR><LF>
AT+PLANG=<language> <CR>
+ok<CR><LF><CR><LF>
AT+WEBU<CR>
+ok=<username,password> <CR><LF><CR><LF>
AT+WEBU=<username,password><CR>
+ok<CR><LF><CR><LF>
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
56
-
HF-LPB135 Series Low Power WiFi Module User Manual
wrmid: set module’s ID (within 20 characters).
Function: Set/Query WiFi Configuration Password;
aswd: WiFi Configuration Password (within 20 characters).
Function: Start SmartLink function
Function: Start WPS function
Function: Enable/Disable UART debug information
AT+WRMID=<wrmid> <CR><LF><CR><LF>
AT+ASWD<CR>
+ok=<aswd> <CR><LF><CR><LF>
AT+ASWD=<aswd><CR><LF><CR><LF>
AT+SMTLK<CR>
SmartLink is a One-Key config function. Config the module connecting to router easily. After start
SmartLink function , the module work in SmartLink status and nLink LED is fast flashing waiting for
APP to push information. See the Appendix for more details.
AT+WPS<CR>
+ok<CR><LF><CR><LF>
Note: The router WPS function must be open first then enable module WPS Scan function.
The module will always in WPS mode if WPS is started. Only with success or reset can the
module recover normal working mode.
AT+NDBGL<CR>
+ok=<debug_level,uart_num> <CR><LF><CR><LF>
AT+NDBGL=<debug_level,uart_num><CR>
+ok<CR><LF><CR><LF>
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
57
-
HF-LPB135 Series Low Power WiFi Module User Manual
debug_level: UART debug level value
0: Disable debug information output
1~XX: Output internal UART debug information which is same or higher then
uart_num: UART debug information output channel
1: UART1, 921600bps, with more system information output.
Function: Set/Query WeChat device type.
type: WeChat device type. Ex: gh_ba0c25259dca.
Function: Query the RAM malloc status.
status: The RAM malloc status. Ex for 1MB:
Function: Enable/Disable Wi-Fi Command
UP(boot default status): Enable Wi-Fi Chip
this set value
AT+TYPE<CR>
+ok=<type> <CR><LF><CR><LF>
AT+TYPE=<type><CR><LF><CR><LF>
AT+SMEM<CR>
+ok=<status><CR><LF><CR><LF>
current_size:47016, max_size:41696, total_size:89984, alloc_cnt:42968, alloc_fail_cnt:0
AT+WIFI<CR>
+ok=<status> <CR><LF><CR><LF>
AT+WIFI =<status><CR>
+ok<CR><LF><CR><LF>
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
58
-
HF-LPB135 Series Low Power WiFi Module User Manual
DOWN: Disable Wi-Fi Chip, it will take several seconds(max 10) to disable
4.2.2.60. AT+SMARTAPCONFIG
Function: Config SmartAPLink function
status: Enable/Disable SmartAPLink function
on: Enable SmartAPLink function, after enabled, use AT+SMARTAPSTART
off: Disable SmartAPLink
. Default.
ap_prefix: module AP SSID prefix, default is hiflying_softap_
ap_key: module AP password, blank for no password, password length 8~63.
4.2.2.61. AT+SMARTAPSTART
Function: Start SmartAPLink function, only valid if SmartAPLink is enabled.
Function: Enable/Disable UART booloader function
the Wi-Fi, if response with +ERR=-5 means disable failed, usually it is
already in disable status.
Note: Some Wi-Fi status change command(AT+WMODE and so on)need to reboot before
valid. But may use this command only to reboot the Wi-Fi Chip to make the corresponding
command valid.This is AT+WIFI=DOWN,AT+WSSSID to set router information and then
AT+WIFI=UP.
AT+SMARTAPCONFIG<CR>
+ok=<status,[ap_prefix,ap_key]><CR>< LF><CR>< LF>
AT+SMARTAPCONFIG=<status,[ap_prefix,ap_key]><CR>
+ok<CR>< LF><CR>< LF>
or nReload to start config.
AT+SMARTAPSTART<CR>
+ok<CR>< LF><CR>< LF>
Note: Reset to quit this config mode.
AT+BTWAIT<CR>
+ok=<status><CR>< LF><CR>< LF>
AT+BTWAIT=<status><CR>
+ok<CR>< LF><CR>< LF>
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
59
-
HF-LPB135 Series Low Power WiFi Module User Manual
status: Enable/Disable UART bootloader, 3.0.8 version bootloader support this
Enable: Enable UART bootloader, default value.
config
For LED application using nReload PIN for PWM output, if disable this UART
Note:
bootloader, it will save about 1 second for bootup make the LED on more quickly.
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
60
-
HF-LPB135 Series Low Power WiFi Module User Manual
5.1. Recommended Reflow Profile
Figure 37. Reflow Soldering Profile
Table10. Reflow Soldering Parameter
5.2. Device Handling Instruction (Module IC SMT Preparation)
1. Shelf life in sealed bag: 12 months, at <30℃ and <60% relative humidity (RH)
2. After bag is opened, devices that will be re-baked required after last baked with window time
3. Recommend to oven bake with N2 supplied
4. Recommend end to reflow oven with N2 supplied
5. Baked required with 24 hours at 125+-5℃ before rework process.
6. Recommend to store at ≦ 10% RH with vacuum packing
7. If SMT process needs twice reflow:
Note: 1. Recommend to supply N2 for reflow oven.
2. N2 atmosphere during reflow (O2<300ppm)
168 hours.
(1) Top side SMT and reflow (2) Bottom side SMT and reflow
Case 1: Wifi module mounted on top side. Need to bake when bottom side process over 168
hours window time, no need to bake within 168 hours
Case 2: Wifi module mounted on bottom side, follow normal bake rule before process
Note: Window time means from last bake end to next reflow start that has 168 hours space.
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
61
-
HF-LPB135 Series Low Power WiFi Module User Manual
5.3. HF-LPB130/HF-LPT230 Shipping Information
Figure 38. HF-LPB130/HF-LPT230 Shipping Information
5.4. HF-LPT130A Shipping Information
Figure 39. Shipping Information
TAPE BOX
Size: 340*340*50 mm Size: 370*370*370 mm
Note:
1 tape = 900pcs
1 box = 5 tapes = 5 * 900 pcs = 4500pcs
TRAY BOX
Size: 350*260*20 mm Size: 370*260*150 mm
Note:
1 tray = 20*6pcs = 120 pcs
LPT130A: 1 box = 4 trays = 4 * 120 pcs = 480pcs
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
62
-
HF-LPB135 Series Low Power WiFi Module User Manual
APPENDIX A: HW REFERENCE DESIGN
Detailed HF-LPB135 Evluation Board design source files, pls access High-Flying web download page
or contact with High-Flying technical support people to acquire.
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
63
-
HF-LPB135 Series Low Power WiFi Module User Manual
APPENDIX B: HTTP PROTOCOL TRANSFER
HF-LPB135 module support http data transfer in throughput mode. If any detailed HTTP protocol,
contact us and we may support customization.
B.1. Sending HTTP Raw Data in Throughput Mode
Step 1、 Configure HTTP server information
Step 2、 Configure module connecting to router AP and reboot.
Step 3、 Sending HTTP raw data via UART, end the data with<CR><LF><CR><LF>
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
64
-
HF-LPB135 Series Low Power WiFi Module User Manual
APPENDIX C:REFERENCES
C.1.High-Flying Mass Production Tool
Download Address: http://www.hi-flying.com/download-center-1/applications-1/download-item-
production-tool
C.2.SmartLink APP V8 Sniffer Config Tool
Download Address : http://www.hi-flying.com/download-center-1/applications-1/download-item-
smartlink-v8
C.3.SDK
Download Address: http://www.hi-flying.com/download-center-1/software-development-kit-
1/download-item-HF-LPB135-hsf-sdk-1mb-2mb
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
65
-
HF-LPB135 Series Low Power WiFi Module User Manual
APPENDIX D: CONTACT INFORMATION
-----------------------------------------------------------------------------------------------------------Address: Room 1002,Building 1,No.3000,Longdong Avenue,Pudong New
Area,Shanghai,China,201203
Web: www.hi-flying.com
Service Online: 400-189-3108/18616078755
Sales Contact: sales@hi-flying.com
-----------------------------------------------------------------------------------------------------------
For more information about High-Flying modules, applications, and solutions, please visit our web site
http://www.hi-flying.com/en/
<END OF DOCUMENT>
© Copyright High-Flying, May, 2011
The information disclosed herein is proprietary to High-Flying and is not to be used by or disclosed to
unauthorized persons without the written consent of High-Flying. The recipient of this document shall respect the
security status of the information.
The master of this document is stored on an electronic database and is “write-protected” and may be altered only
by authorized persons at High-Flying. Viewing of the master document electronically on electronic database
ensures access to the current issue. Any other copies must be regarded as uncontrolled copies.
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) -
66
-