High Flying Electronics Technology HF-LPB100 User Manual

HF-LPB100 Low Power Wi-Fi Module User Manual
HF-LPB100
Low Power Wi-Fi Module User Manual
V 1.9
Overview of Characteristic
Support IEEE802.11b/g/n Wireless Standards
Ultra-Low-Power for Battery Applications with Excellent Power Save Scheme
Support UART/SPI/PWM/GPIO Data Communication Interface
Support Work As STA/AP/AP+STA Mode
Support Smart Link Function (APP program provide)
Support Wireless and Remote Firmware Upgrade Function
Support WPS Function
Support Multi-TCP Link (5 Channel) Apllication
Support Internal/External(I-PEX/SMA) Antenna Option
Single +3.3V Power Supply
Smallest Size: 23.1mm x 32.8mm x (3.45±0.3)mm
FCC/CE/TELEC Certificated
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) - 1 -
HF-LPB100 Low Power Wi-Fi Module User Manual
TABLE OF CONTENTS
LIST OF FIGURES ................................................................................................................................... 6
LIST OF TABLES .................................................................................................................................... 7
HISTORY .................................................................................................................................................. 8
1. PRODUCT OVERVIEW ................................................................................................................ 9
1.1. General Description ................................................................................................................. 9
1.1.1 Device Features .................................................................................................................. 9
1.1.2 Device Paremeters ...........................................................................................................10
1.1.3 Key Application .................................................................................................................10
1.2. Hardware Introduction ...........................................................................................................11
1.2.1. Pins Definition ...................................................................................................................11
1.2.2. Electrical Characteristics ..................................................................................................13
1.2.3. Mechanical Size ................................................................................................................14
1.2.4. On-board PCB Antenna ....................................................................................................15
1.2.5. External Antenna ..............................................................................................................15
1.2.6. Evaluation Kit ....................................................................................................................16
1.2.7. Order Information ..............................................................................................................17
1.3. Typical Application ................................................................................................................18
1.3.1. Hardware Typical Application ...........................................................................................18
2. FUNCTIONAL DESCRIPTION ..................................................................................................20
2.1. Wireless Networking ..............................................................................................................20
2.1.1. Basic Wireless Network Based On AP (Infrastructure) ....................................................20
2.1.2. Wireless Network Based On AP+STA ..............................................................................20
2.2. Work Mode : Transparent Transmission Mode ...................................................................21
2.3. UART Frame Scheme ............................................................................................................22
2.3.1. UART Free-Frame ............................................................................................................22
2.3.2. UART Auto-Frame ............................................................................................................22
2.4. Encryption ..............................................................................................................................23
2.5. Parameters Configuration .....................................................................................................23
2.6. Firmware Update ....................................................................................................................23
2.7. GPIO/PWM Function ..............................................................................................................24
2.8. SOCKET B Function ..............................................................................................................24
2.9. Multi-TCP Link Connection ...................................................................................................25
3. OPERATION GUIDELINE ..........................................................................................................26
3.1. Configuration via Web Accessing ........................................................................................26
3.1.1. Open Web Management Interface ...................................................................................26
3.1.2. System Page.....................................................................................................................27
3.1.3. Work Mode Page ..............................................................................................................27
3.1.4. STA Setting Page .............................................................................................................27
3.1.5. AP Setting Page ...............................................................................................................28
3.1.6. Other Setting Page ...........................................................................................................28
3.1.7. Account Management Page .............................................................................................29
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) - 2 -
HF-LPB100 Low Power Wi-Fi Module User Manual
3.1.8. Upgrade Software Page ...................................................................................................29
3.1.9. Restart Page .....................................................................................................................30
3.1.10. Restore Page ................................................................................................................30
3.1.11. Internal Webpage ..........................................................................................................31
3.2. HF-LPB100 Usage Introduction ............................................................................................31
3.2.1. Software Debug Tools ......................................................................................................31
3.2.2. Network Connection .........................................................................................................32
3.2.3. Default Parameter Setting ................................................................................................32
3.2.4. Module Debug...................................................................................................................32
3.3. Typical Application Examples ..............................................................................................34
3.3.1. Wireless Control Application .............................................................................................34
3.3.2. Remote Management Application.....................................................................................34
3.3.3. Transparent Serial Port Application ..................................................................................35
4. AT+INSTRUCTION INTRODUCTION ......................................................................................36
4.1. Configuration Mode ...............................................................................................................36
4.1.1. Switch to Configuration Mode ...........................................................................................36
4.2. AT+Instruction Set Overview ................................................................................................37
4.2.1. Instruction Syntax Format .................................................................................................37
4.2.2. AT+Instruction Set ............................................................................................................38
4.2.2.1. AT+E .............................................................................................................................40
4.2.2.2. AT+WMODE .................................................................................................................40
4.2.2.3. AT+ENTM .....................................................................................................................41
4.2.2.4. AT+TMODE ...................................................................................................................41
4.2.2.5. AT+MID .........................................................................................................................41
4.2.2.6. AT+VER ........................................................................................................................42
4.2.2.7. AT+LVER ......................................................................................................................42
4.2.2.8. AT+FWSZ .....................................................................................................................42
4.2.2.9. AT+RELD ......................................................................................................................42
4.2.2.10. AT+FCLR ...................................................................................................................42
4.2.2.11. AT+Z ..........................................................................................................................43
4.2.2.12. AT+H .........................................................................................................................43
4.2.2.13. AT+CFGTF ................................................................................................................43
4.2.2.14. AT+UART ..................................................................................................................43
4.2.2.15. AT+UARTF ................................................................................................................44
4.2.2.16. AT+UARTFT ..............................................................................................................44
4.2.2.17. AT+UARTFL ..............................................................................................................44
4.2.2.18. AT+UARTTE ..............................................................................................................44
4.2.2.19. AT+SEND ..................................................................................................................45
4.2.2.20. AT+RECV ..................................................................................................................45
4.2.2.21. AT+PING ...................................................................................................................45
4.2.2.22. AT+NETP ..................................................................................................................46
4.2.2.23. AT+MAXSK ...............................................................................................................46
4.2.2.24. AT+TCPLK ................................................................................................................46
4.2.2.25. AT+TCPTO ................................................................................................................47
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) - 3 -
HF-LPB100 Low Power Wi-Fi Module User Manual
4.2.2.26. AT+TCPDIS ...............................................................................................................47
4.2.2.27. AT+SOCKB ...............................................................................................................47
4.2.2.28. AT+TCPDISB ............................................................................................................48
4.2.2.29. AT+TCPTOB .............................................................................................................48
4.2.2.30. AT+TCPLKB ..............................................................................................................49
4.2.2.31. AT+SNDB ..................................................................................................................49
4.2.2.32. AT+RCVB ..................................................................................................................49
4.2.2.33. AT+WSSSID ..............................................................................................................49
4.2.2.34. AT+WSKEY ...............................................................................................................50
4.2.2.35. AT+WANN .................................................................................................................50
4.2.2.36. AT+WSMAC ..............................................................................................................51
4.2.2.37. AT+WSLK ..................................................................................................................51
4.2.2.38. AT+WSLQ .................................................................................................................51
4.2.2.39. AT+WSCAN ...............................................................................................................51
4.2.2.40. AT+WSDNS ...............................................................................................................52
4.2.2.41. AT+LANN ..................................................................................................................52
4.2.2.42. AT+WAP ....................................................................................................................52
4.2.2.43. AT+WAKEY ...............................................................................................................53
4.2.2.44. AT+WAMAC ..............................................................................................................53
4.2.2.45. AT+WADHCP ............................................................................................................53
4.2.2.46. AT+WADMN ..............................................................................................................54
4.2.2.47. AT+WALK ..................................................................................................................54
4.2.2.48. AT+WALKIND ............................................................................................................54
4.2.2.49. AT+PLANG ................................................................................................................54
4.2.2.50. AT+UPURL ................................................................................................................55
4.2.2.51. AT+UPFILE ...............................................................................................................55
4.2.2.52. AT+LOGSW ...............................................................................................................55
4.2.2.53. AT+LOGPORT ..........................................................................................................56
4.2.2.54. AT+UPST ..................................................................................................................56
4.2.2.55. AT+WEBU .................................................................................................................56
4.2.2.56. AT+MSLP ..................................................................................................................57
4.2.2.57. AT+NTPRF ................................................................................................................57
4.2.2.58. AT+NTPEN ................................................................................................................57
4.2.2.59. AT+NTPTM ................................................................................................................57
4.2.2.60. AT+NTPSER .............................................................................................................58
4.2.2.61. AT+WRMID ...............................................................................................................58
4.2.2.62. AT+RLDEN ................................................................................................................58
4.2.2.63. AT+ASWD .................................................................................................................58
4.2.2.64. AT+MDCH .................................................................................................................59
4.2.2.65. AT+TXPWR ...............................................................................................................59
4.2.2.66. AT+SMTLK ................................................................................................................59
4.2.2.67. AT+SMTLKVER .........................................................................................................60
4.2.2.68. AT+WPS ....................................................................................................................60
4.2.2.69. AT+WPSBTNEN ........................................................................................................60
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) - 4 -
HF-LPB100 Low Power Wi-Fi Module User Manual
4.2.2.70. AT+LPTIO ..................................................................................................................61
4.2.2.71. AT+WIFI ....................................................................................................................61
4.2.2.72. AT+SMEM .................................................................................................................62
5. PACKAGE INFORMATION ........................................................................................................63
5.1. Recommended Reflow Profile ..............................................................................................63
5.2. Device Handling Instruction (Module IC SMT Preparation) ...............................................63
5.3. Shipping Information .............................................................................................................64
APPENDIX A: HW REFERENCE DESIGN ......................................................................................65
APPENDIX B: CONTROL GPIO/PWM FUNCTION WITH NETWORK COMMANDS ...............66
B.1 Network Command ....................................................................................................................66
B.2 Hexadecimal Network Command ............................................................................................69
APPENDIX C: HTTP PROTOCOL TRANSFER ..............................................................................72
C.1. HTTP AT command ...................................................................................................................72
C.1.1. AT+HTTPURL ...................................................................................................................72
C.1.2. AT+HTTPTP .....................................................................................................................72
C.1.3. AT+HTTPPH .....................................................................................................................72
C.1.4. AT+HTTPCN .....................................................................................................................73
C.1.5. AT+HTTPUA .....................................................................................................................73
C.1.6. AT+HTTPDT .....................................................................................................................73
C.2. HTTP Example ...........................................................................................................................73
C.3. Sending HTTP Raw Data in Throughput Mode(Recommend) ..............................................74
C.4. Sending HTTP Request By AT Command ..............................................................................75
APPENDIX D:REFERENCES ............................................................................................................77
D.1High-Flying Mass Production Tool ........................................................................................77
D.2SmartLink APP V3 Config Tool ..............................................................................................77
D.2.1SmartLink APP V4 Config Tool(For LPB100U only) .........................................................77
D.3EVK Quick Start Guide ...........................................................................................................77
D.4SDK Download ........................................................................................................................77
APPENDIX E: CONTACT INFORMATION ......................................................................................78
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) - 5 -
HF-LPB100 Low Power Wi-Fi Module User Manual
LIST OF FIGURES
Figure 1. HF-LPB100 View ..................................................................................................................11
Figure 2. HF-LPB100 Pins Map ...........................................................................................................11
Figure 3. HF-LPB100 Mechanical Dimension .....................................................................................14
Figure 4. HF-LPB100 PCB Symbol Size .............................................................................................14
Figure 5. Suggested Module Placement Region .................................................................................15
Figure 6. HF-LPB100 Evaluation Kit ....................................................................................................16
Figure 7. HF-LPB100 Order Information .............................................................................................17
Figure 8. HF-LPB100 Hardware Typical Application ...........................................................................18
Figure 9. HF-LPB100 Basic Wireless Network Structure ....................................................................20
Figure 10. HF-LPB100 AP+STA Network Structure ..........................................................................21
Figure 11. Socket B function demo ....................................................................................................25
Figure 12. Multi-TCP Link Data Transmition Structure ......................................................................25
Figure 13. Open Web Management page ..........................................................................................26
Figure 14. System Web Page ............................................................................................................27
Figure 15. Work Mode Page ..............................................................................................................27
Figure 16. STA Setting Page .............................................................................................................28
Figure 17. AP Setting Page ...............................................................................................................28
Figure 18. Other Setting Page ...........................................................................................................29
Figure 19. Account Page....................................................................................................................29
Figure 20. Upgrade SW page ............................................................................................................30
Figure 21. Restart Page .....................................................................................................................30
Figure 22. Restore Page ....................................................................................................................31
Figure 23. Internal Webpage .............................................................................................................31
Figure 24. STA Interface Debug Connection .....................................................................................32
Figure 25. AP Interface Debug Connection .......................................................................................32
Figure 26. “CommTools” Serial Debug Tools ....................................................................................32
Figure 27. “TCPUDPDbg” Tools Create Connection .........................................................................33
Figure 28. “TCPUDPDbg” Tools Setting ............................................................................................33
Figure 29. “TCPUDPDbg” Tools Connection .....................................................................................33
Figure 30. Wireless Control Application .............................................................................................34
Figure 31. Remote Management Application.....................................................................................34
Figure 32. Transparent Serial Port Application ..................................................................................35
Figure 33. HF-LPB100 Default UART Port Parameters ....................................................................36
Figure 34. Switch to Configuration Mode ...........................................................................................36
Figure 35. ”AT+H” Instruction for Help ...............................................................................................37
Figure 36. Reflow Soldering Profile ...................................................................................................63
Figure 37. Shipping Information .........................................................................................................64
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) - 6 -
HF-LPB100 Low Power Wi-Fi Module User Manual
LIST OF TABLES
Table 1 HF-LPB100 Module Technical Specifications .......................................................................10
Table 2 HF-LPB100 Pins Definition ....................................................................................................11
Table 3 HF-LPB100 External Antenna Parameters ...........................................................................15
Table 4 HF-LPB100 Evaluation Kit Interface Description ..................................................................16
Table 7 HF-LPB100 GPIO/PWM Pin Mapping Table .........................................................................24
Table 8 HF-LPB100 Web Access Default Setting ..............................................................................26
Table 9 Error Code Describtion ..........................................................................................................38
Table 10 AT+Instruction Set List ........................................................................................................38
Table 11 Reflow Soldering Parameter .................................................................................................63
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) - 7 -
HF-LPB100 Low Power Wi-Fi Module User Manual
HISTORY
Ed. V1.0 08-01-2013 First Version. Ed. V1.1 09-10-2013 Update AT command. Ed. V1.2 10-10-2013 Update AT command. Update PWM/GPIO function. Add HTTP protocol
demo. Add auto-frame function. Ed. V1.3 10-18-2013 Update module view, add nReload Pin wireless upgrade and config
description, add nLink Pin wireless upgrade indication description. Ed. V1.4 12-02-2013 Update AT command, add AT+WALK, AT+WALKIND,
AT+WPS,AT+WPSBTN, AT+FWSZ, add HF-LPB100-SMA type.
Ed. V1.5 01-02-2014. Update AT command, add AT+SMTLKAT+LPTIO. Ed. V1.51 01-22-2014. Update Shipping information. Ed. V1.6 05-10-2014. Update GPIO description. Update SDK download. Add AT+UDPLCPT,
AT+NTPSER command. Update Shipping information.
Ed. V1.7 09-25-2014. Correct module height size. Add AT+WIFI, AT+SMEM command. Modify AT+RECV command. Modify AT+UARTTE, AT+TCPTOB, AT+FWSZ command description. Delete AT+UDPLCPT, AT+CFGWR, AT+CFGFR, AT+CFGRD command. Delete uart baud rate 300,
921600. Ed. V1.8 02-26-2015. Delete 600 baud rate. Correct module peak current. Add HTTP test
example. Correct AT+WADHCPAT+WSKEYAT+NTPTMAT+WAP command description. Add AT+SMTLKVER(LPB100U). Modify company address.
Ed. V1.9 07-20-2015. Delete the reserved function description(PWR pin function description and so on). Modify the module label. Add 3 more PWM Channel.
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) - 8 -
HF-LPB100 Low Power Wi-Fi Module User Manual
1. PRODUCT OVERVIEW
1.1. General Description
The HF-LPB100 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/SPI interface for data transfer.HF­LPB100 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-LPB100 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-LPB100 integrates all Wi-Fi functionality into a low-profile, 23.1x32.8x 2.7mm SMT module package that can be easily mounted on main PCB with application specific circuits. Also, module provides built-in antenna, external antenna option.
1.1.1 Device Features
Single stream Wi-Fi @ 2.4 GHz with support for WEP security mode as well as WPA/WPA2 Based on Self-developed High Cost Performance MCU Ultra-low-power operation with all kinds of power-save modes. Includes all the protocol and configuration functions for Wi-Fi connectivity. Support STA/AP/AP+STA Mode Support Smart Link Function Support Wireless and Remote Firmware Upgrade Function Support Max 8 Channel PWM/GPIO Output Integrated pcb antenna, antenna connector options. Compact surface mount module 23.1mm x 32.8mm x (3.45±0.3)mm. Full IPv4 stack. Low power RTOS and drivers. CE/FCC/TELEC Certified. RoHS compliant. Single supply – 3.3V operation.
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) - 9 -
HF-LPB100 Low Power Wi-Fi Module User Manual
Class
Item
Parameters
Wireless Parameters
Certification
FCC/CE
Wireless standard
802.11 b/g/n
Frequency range
2.412GHz-2.484GHz
Transmit Power
802.11b +17dBm (@11mbps)
802.11g +22dBm (@54mbps)
802.11n +22dBm (@HT20 MCS7)
Receiver Sensitivity
802.11b: -93 dBm (@11Mbps ,CCK)
802.11g: -85 dBm (@54Mbps, OFDM)
802.11n: -82 dBm (@HT20, MCS7)
Antenna Option
External:I-PEX Connector or SMA connector
Internal:On-board PCB antenna
Hardware Parameters
Data Interface UART
SPI, PWM, GPIO
Operating Voltage
2.8~3.6V
Operating Current
Peak [Continuous TX]: ~300mA Normal [WiFi ON/OFF, DTIM=100ms]: Average. ~12mA, Peak: 300mA
Operating Temp.
-40- 85
Storage Temp.
-45- 125
Dimensions and Size
23.1mm×32.8mm×(3.45±0.3)mm
Software Parameters
Network Type
STA /AP/STA+AP
Security Mechanisms
WEP/WPA-PSK/WPA2-PSK
Encryption
WEP64/WEP128/TKIP/AES
Update Firmware
Local Wireless, Remote
Customization
Web Page Upgrade Support SDK for application develop
Network Protocol
IPv4, TCP/UDP/HTTP
User Configuration
AT+instruction set. Android/ iOS Smart Link APP tools
1.1.2 Device Paremeters
Table 1 HF-LPB100 Module Technical Specifications
1.1.3 Key Application
Remote equipment monitoring Asset tracking and telemetry Security Industrial sensors and controls Home automation Medical devices
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) - 10 -
HF-LPB100 Low Power Wi-Fi Module User Manual
Pin
Describtion
Net Name
Signal
Type
Comments
1,17,32,48
Ground
GND
Power
2
Debug Pin
SWCLK
I, PD
Debug functional pin,
No connect if not use.
3 NC
4 NC
5 Debug Pin
SWD
I/O,PU 6
N.C No connect
7
GPIO/AD
Sleep_RQ
I.PU
GPIO7, No connect if not use.
8
GPIO/AD
Sleep_ON
O
GPIO8, No connect if not use.
1.2. Hardware Introduction
Figure 1. HF-LPB100 View
1.2.1. Pins Definition
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) - 11 -
Figure 2. HF-LPB100 Pins Map
Table 2 HF-LPB100 Pins Definition
HF-LPB100 Low Power Wi-Fi Module User Manual
Pin
Describtion
Net Name
Signal
Type
Comments
9
+3.3V Power
DVDD
Power
10 N.C No connect
11
PWM/GPIO/AD
PWM_1
I/O
GPIO11, No connect if not use.
12
PWM/GPIO/AD
PWM_2
I/O
GPIO12, No connect if not use.
13
GPIO
GPIO13
I/O
GPIO13, No connect if not use.
14 N.C No connect
15
WPS/GPIO
GPIO15
I/O
GPIO15, WPS Function Pin.
16 N.C No connect
18
PWM/GPIO
PWM_3
I/O
GPIO18, No connect if not use.
19 N.C No connect
20
PWM/GPIO
PWM_4
I/O
GPIO20, No connect if not use.
21 N.C No connect
22 N.C No connect
23
PWM/GPIO/AD
PWM_5
I/O
GPIO23, No connect if not use.
24 N.C No connect
25
Power Control Switch
PWR_SW
I,PU
Leave it no connect
26 N.C No connect
27
SPI Interface/AD/PWM
SPI_MISO
I
GPIO27, No connect if not use.
28
SPI Interface/PWM
SPI_CLK
I/O
GPIO28, No connect if not use.
29
SPI Interface/AD
SPI_CS
I/O
GPIO29, No connect if not use.
30
SPI Interface/PWM
SPI_MOSI
O
GPIO30, No connect if not use.
31
+3.3V Power
DVDD
Power
33 N.C No connect
34
+3.3 Power
DVDD
Power
35 N.C No connect
36 N.C No connect
37 N.C No connect
38 N.C No connect
39
UART0
UART0_TX
O
GPIO39, No connect if not use.
40
UART0
UART0_RTS
I/O
GPIO40, No connect if not use.
41
UART0
UART0_RX
I
GPIO41, No connect if not use.
42
UART0
UART0_CTS
I/O
GPIO42, No connect if not use.
43
Wi-Fi Status
nLink
O
Detailed functions see
<Notes>
44
Module Boot Up
Indicator
nReady O “0” – Boot-up OK;
“1” – Boot-up No OK;
No connect if not use.;
45
Multi-Function
nReload
I,PU
Detailed functions see
<Notes>
46 N.C No connect
47
Module Reset
EXT_RESETn
I,PU
“Low” effective reset input.
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) - 12 -
HF-LPB100 Low Power Wi-Fi Module User Manual
Parameter
Condition
Min.
Typ.
Max.
Unit
Storage temperature range
-45 125
°C
Maximum soldering temperature
IPC/JEDEC J-STD-020
260
°C
Supply voltage
0 3.8
V
Voltage on any I/O pin
0
3.3
V
ESD (Human Body Model HBM)
TAMB=25°C
2
KV
ESD (Charged Device Model, CDM)
TAMB=25°C
1
KV
Parameter
Condition
Min.
Typ.
Max.
Unit
Operating Supply voltage
2.8
3.3
3.8
V
Supply current, peak
Continuous Tx
300 mA
Supply current, IEEE PS
DTIM=100ms
12 mA
Output high voltage
Sourcing 6mA
2.8 V Output low voltage
Sinking 6mA
0.2
V
Input high voltage
2.2 V Input low voltage
0.8 V GPIO Input pull-up resistor
200
GPIO Input pull-down resistor
200
<Notes>
nReload Pin (Button) function
1. When this pin is set to “low” during module boot up, the module will enter wireless firmware and config upgrade mode. This mode is used for customer manufacture. (See Appendix D to download software tools for customer batch configuration and upgrade firmware during mass production)
2. After module is powered up, short press this button ( “Low” < = 2s ) to make the module go into “Smart Link config mode, waiting for APP to set password and other information. (See Appendix D to download SmartLink APP)
3. After module is powered up, long press this button ( “Low” >= 4s ) to make the module recover to factory setting.
High-Flying strongly suggest customer fan out this pin to connector or button for “Manufacture” and “ Smart Link” application.
nLink Pin (LED) function
1. At wireless firmware and config upgrade mode , this LED used to indicate configure and upgrade status.
2. At “Smart Link “ config mode, this LED used to indicate APP to finish setting.
3. At normal mode, it’s Wi-Fi link status indicator
High-Flying strongly suggest customer fan out this pin to LED.
1.2.2. Electrical Characteristics
Absolute Maximum Ratings:
Power Supply & Power Consumption:
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) - 13 -
HF-LPB100 Low Power Wi-Fi Module User Manual
1.2.3. Mechanical Size
HF-LPB100 modules physical size Unit: mm as follows:
Figure 3. HF-LPB100 Mechanical Dimension
HF-LPB100 Module PCB symbol size (mm) as follows:
Figure 4. HF-LPB100 PCB Symbol Size
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) - 14 -
HF-LPB100 Low Power Wi-Fi Module User Manual
Item
Parameters
Frequency range
2.4~2.5GHz
Impedance
50 Ohm
VSWR
2 (Max)
Return Loss
-10dB (Max)
Connector Type
I-PEX or populate directly
1.2.4. On-board PCB Antenna HF-LPB100 module support internal on-board PCB antenna option. When customer select internal
antenna, you shall comply with following antenna design rules and module location suggestions:
For customer PCB, RED color region (8.3x18.4mm) can‟t put componet or paste GND net; Antenna must away from metal or high components at least 10mm;
Antenna can‟t be shielded by any metal enclosure;
Figure 5. Suggested Module Placement Region
High-Flying suggest HF-LPB100 module better locate in following region at customer board, which to reduce the effect to antenna and wireless signal, and better consult High-Flying technical people when you structure your module placement and PCB layout.
1.2.5. External Antenna
HF-LPB100 module supports internal antenna and external antenna(I-PEX or SMA) option for user dedicated application. If user select external antenna, HF-LPB100 modules must be connected to the 2.4G antenna according to IEEE 802.11b/g/n standards. The antenna parameters required as follows:
Table 3 HF-LPB100 External Antenna Parameters
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) - 15 -
HF-LPB100 Low Power Wi-Fi Module User Manual
Function
Name
Description
External Interface
COM1
Main data/command RS-232 interface
RS485
Main data/command RS-485 interface
JTAG
JTAG data debug interface (Not for user use)
USB2TTL
UART to USB debug interface. (For PC without RS232, need load driver). Can be Power input.
USB DEBUG
USB2.0 data interface.(Reserved)
DC Jack
DC jack for power in, 5~18V input.
DC5-18V
DC jack for power in, 5~18V input.
BAT
2 Li-Battery Power Supply.
EXT PORT
HF-LPB100 GPIO function extend interface connector
1.2.6. Evaluation Kit
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-LPB100 module with the RS­232 UART, RS485, USB (Internal USB to UART convetor) or Wireless port to configure the parameters, manage the module or do the some functional tests.
Figure 6. HF-LPB100 Evaluation Kit
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:
Table 4 HF-LPB100 Evaluation Kit Interface Description
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) - 16 -
HF-LPB100 Low Power Wi-Fi Module User Manual
Function
Name
Description
External Interface
JMP1,JMP2
Reserved, No Jumper required.
JMP3
4Pin USB or RS232 Jumper. Left jump select USB.
JMP6
3Pin RS485 Jumper. No jump selects RS232.
LED
Power
3.3V Power Indicator
nLink
nLink -WiFi LINK Indicator See 1.2.1
nReady
nReady – Module Bootup Ready Indicator
On (“low”)- Module bootup OK; Off (“high”)- Mouule botup failed;
Twinkle- Remote Upgrade Ongoing;
Button
nReset
Used to reset the module.
nReload
Restore factory default configuration after push this pin more than 4s. See 1.2.1
WPS
WPS Button
1.2.7. Order Information Base on customer detailed requirement, HF-LPB100 series modules provide different variants and
physical type for detailed application.
Figure 7. HF-LPB100 Order Information
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) - 17 -
HF-LPB100 Low Power Wi-Fi Module User Manual
1.3. Typical Application
1.3.1. Hardware Typical Application
Figure 8. HF-LPB100 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 “0at 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)
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)
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) - 18 -
HF-LPB100 Low Power Wi-Fi Module User Manual
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) - 19 -
HF-LPB100 Low Power Wi-Fi Module User Manual
2. FUNCTIONAL DESCRIPTION
2.1. Wireless Networking
HF-LPB100 module can be configured as both wireless STA and AP base on network type. Logically there are two interfaces in HF-LPB100. One is for STA, and another is for AP. When HF-LPB100 works as AP, other STA equipments are able to connect to HF-LPB100 module directly. Wireless Networking with HF-LPB100 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.
2.1.1. Basic Wireless Network Based On AP (Infrastructure) 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.
Figure 9. HF-LPB100 Basic Wireless Network Structure
2.1.2. Wireless Network Based On AP+STA HF-LPB100 module support AP+STA network mode, means module support one AP interface and
one STA interface at the same time, as following figure,
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) - 20 -
HF-LPB100 Low Power Wi-Fi Module User Manual
Figure 10. HF-LPB100 AP+STA Network Structure
When module enables AP+STA function, Module‟s STA interface can connect with router and connect
to TCP server in the network. At the same time, module‟s AP interface is also active and permit
phone/PAD to connect through TCPB, then phone/PAD can control user device and and setting the module parameters, The advantage of AP+STA mode is:
Users can easily setting and track user device through Phone/PAD and not change the
orginal network setting.
Users can easily setting module‟s parameters through WiFi when module works as STA
mode.
2.2. Work Mode : Transparent Transmission Mode
HF-LPB100 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:
Wireless Network Parameters
Wireless Network NameSSID Security Mode Encryption Key
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) - 21 -
HF-LPB100 Low Power Wi-Fi Module User Manual
TCP/UDP Linking Parameters
Protocol Type Link TypeServer or Client Target Port ID Number Target Port IP Address
Serial Port Parameters
Baud Rate Data Bit Parity (Check) Bit Stop Bit Hardware Flow Control
2.3. UART Frame Scheme
2.3.1. UART Free-Frame HF-LPB100 support UART free-frame function. If user select open this function, module will check the
intervals between any two bytes when receiving UART data. If this interval time exceeds defined value (50ms default), HF-LPB100 will think it as the end of one frame and transfer this free-frame to WiFi port, or HF-LPB100 will receive UART data until 1000 bytes, then transfer 1000 bytes frame to WiFi port.
HF-LPB100‟s default interval time is 50ms. (If the UART data interval is less than 300ms, the data may be packaged into one fragment ) User can also set this interval to fast through AT command. The UART data may be divided as fragment.
Through AT command: AT+UARTTE=fast/normal, We recommend to use just normal parameter.
2.3.2. UART Auto-Frame HF-LPB100 support UART auto-frame function. If user select open this function and setting auto-
frame trigger length and auto-frame trigger time parameters, then module will auto framing the data which received from UART port and transmitting to the network as pre-defined data structure.
Auto-frame trigger length: The fixed data length that module used to transmitting to the
network.
Auto-frame trigger time: After the trigger time, if UART port received data can‟t reach auto-
frame trigger length, then module will transmitting available data to the network and bypass the auto-frame trigger length condition.
Detailed UART auto-frame function can refer to AT+instruction set “UARTF/UARTFT/UARTFL” introduction.
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) - 22 -
HF-LPB100 Low Power Wi-Fi Module User Manual
2.4. Encryption
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-LPB100 module supports following:
WEP WPA-PSK/TKIP WPA-PSK/AES WPA2-PSK/TKIP WPA2-PSK/AES
2.5. Parameters Configuration
HF-LPB100 module supports two methods to configuration parameters: Web Accessing and AT+instruction set.
Web accessing means users can configure parameters through Web browser. When HF-LPB100 module connected to wireless network, parameters configuration is done on a PC connected to the same wireless network. AT+instruction set configuration means user configure parameters through serial interface command. Refer to “AT+instruction set” chapter for more detail.
2.6. Firmware Update
HF-LPB100 module supports two on-line upgrade methods:
Webpage Wi-Fi Upgrade Remote Upgrade
Webpage based Wi-Fiupgrade,please refer to 3.1.8 firmware upgrade page , user can upload firmware file from PC to HF-LPB100.
HF-LPB100 module also support upgrade from remote HTTP server, keep module connects to AP router before excute remote HTTP upgrade. Remote upgrade have two methods: Direct Download and Upgrade, Configure File Based Upgrade.
Configure File Based Upgrade
AT+UPURL command to set the remote directory which the configuration file located, such as AT+UPURL=http://www.hi-flying.com/!admin/down/ Notes: The last ‟/‟ can‟t be remove
AT+UPFILE command to set the configuration file name, such as AT+UPFILE=config.txt AT+UPST command to start remote Application upgrade. After excuate this command, the module will
firstly download configuration file (“config.txt”), then download the upgrade file base on the URL
address listed in the configure file.
General “config.txt” file format as following example: [URL]=http://10.10.100.100:80/lpb.bin
[URL]= the URL address of Application.
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) - 23 -
HF-LPB100 Low Power Wi-Fi Module User Manual
GPIO
Configured Function
Describtion
Default Setting
Type
GPIO11
PWM/GPIO Channel
PWM_1
GPIO11
I/O
GPIO12
PWM/GPIO Channel
PWM_2
GPIO12
I/O
GPIO15
GPIO Channel
GPIO15
GPIO15
I/O
GPIO18
PWM/GPIO Channel
PWM_3
GPIO18
I/O
GPIO20
PWM/GPIO Channel
PWM_4
GPIO20
I/O
GPIO23
GPIO Channel
PWM_5
GPIO23
I/O
Direct Download and Upgrade
AT+UPURL command to set the remote directory and file name, such as: AT+UPURL=http://www.hi-flying.com/!admin/down/,lpb.bin After excuate this command, the module will directly download the “lpb.bin” file from remote directory and start upgrade Application.
Notes: please contact with high-flying technical people before upgrade firmware, or maybe damage
the module and can‟t work again.
2.7. GPIO/PWM Function
HF-LPB100 module can provide many GPIOs, which include max 6 PWM/GPIO control pins. User devices can read/write GPIO/PWM pins status.
Table 7 HF-LPB100 GPIO/PWM Pin Mapping Table
When module works at PWM mode, PC and other devices can setup connection (TCP/UDP) through WiFi, then read/write GPIO/PWM information through command data.
GPIO n OUT 0, Set GPIOn as output and output „0‟, Response GPIO OK or GPIO NOK; GPIO n OUT 1, Set GPIOn as output and output „1‟, Response GPIO OK or GPIO NOK; GPIO n GET, Read GPIOn pin status, Response +ok=1 or GPIO NOK GPIO n SET, Save GPIOn set, Response GPIO OK or GPIO NOK PWM n frequency duty, Set PWMn Channel output, Response GPIO OK or GPIO NOK PWM n GET, Read PWMn Channel set, Response +ok=frequency duty or PWM NOK PWM n SET, Save PWMn Channel set, Response PWM OK or PWM NOK
Notes: Please refer to Appendix B for details to use GPIO/PWM.
2.8. SOCKET B Function
HF-LPB100 support double socket communication, the socket B function is disabled by default.
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) - 24 -
HF-LPB100 Low Power Wi-Fi Module User Manual
Figure 11. Socket B function demo
2.9. Multi-TCP Link Connection
When HF-LPB100 module SOCK A configured as TCP Server, it supports Multi-TCP link connection, and maximum 5 TCP clients permitted to connect to HF-LPB100 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:
Figure 12. Multi-TCP Link Data Transmition Structure
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com) - 25 -
Loading...
+ 56 hidden pages