background image

High-Flying

Low Power WiFi Module User Manual

Shanghai High-Flying Electronics Technology Co., Ltd

www.hi-flying.com

- 54 -

AT+ WAKEY=< auth,encry,key><CR>

+ok<CR>< LF ><CR>< LF >

Parameters:

auth: include

OPEN

WPA2PSK

Encry: include

NONE: When “auth=OPEN” available;

AES: When “auth=WPA2PSK” available;

key: security code, ASCII code, smaller than 64bit and bigger than 8 bit;

4.2.2.45. AT+WAMAC

Function: Query AP MAC address parameters;

Format:

Query Operation

AT+WAMAC<CR>
+ok=<mac_address><CR>< LF ><CR>< LF >

Parameters:

mac_address:AP’s MAC address;

Note: Module AP mode’s MAC address is related to STA mode’s MAC address. If user need
changeto others, please contact with high-flying technical people.

4.2.2.46. AT+WADHCP

Function: Set/Query AP DHCP server status;

Format:

Query Operation

AT+WADHCP<CR>
+ok=<status><CR>< LF ><CR>< LF >

Set Operation

AT+ WADHCP=<status><CR>

+ok<CR>< LF ><CR>< LF >

Parameters:

status:AP’s DHCP server function status:

on:DHCP Server Open;

off:DHCP Server Close:

4.2.2.47. AT+WADMN

Function: Set/Query AP webpage domain name;

Format:

Query Operation

AT+WADMN<CR>

+ok=<domain_name><CR>< LF ><CR>< LF >

Set Operation

HF-SH01

Summary of Contents for HF-SH01

Page 1: ...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 provi...

Page 2: ...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 Netwo...

Page 3: ...plication 36 3 3 3 Transparent Serial Port Application 36 4 AT INSTRUCTION INTRODUCTION 37 4 1 Configuration Mode 37 4 1 1 Switch to Configuration Mode 37 4 2 AT Instruction Set Overview 38 4 2 1 Inst...

Page 4: ...C 51 4 2 2 38 AT WSLK 52 4 2 2 39 AT WSLQ 52 4 2 2 40 AT WSCAN 52 4 2 2 41 AT WSDNS 52 4 2 2 42 AT LANN 53 4 2 2 43 AT WAP 53 4 2 2 44 AT WAKEY 53 4 2 2 45 AT WAMAC 54 4 2 2 46 AT WADHCP 54 4 2 2 47 A...

Page 5: ...e IC SMT Preparation 61 5 3 Shipping Information 62 APPENDIX A HW REFERENCE DESIGN 63 APPENDIX B CONTROL GPIO PWM FUNCTION WITH NETWORK COMMANDS 64 B 1 Network Command 64 B 2 Hexadecimal Network Comma...

Page 6: ...ement page 28 Figure 14 System Web Page 29 Figure 15 Work Mode Page 29 Figure 16 STA Setting Page 30 Figure 17 AP Setting Page 30 Figure 18 Other Setting Page 31 Figure 19 Account Page 31 Figure 20 Up...

Page 7: ...le 2 HF LPB100 Pins Definition 11 Table 3 HF LPB100 External Antenna Parameters 15 Table 4 HF LPB100 Evaluation Kit Interface Description 16 Table 6 Standby Mode Status and Wake Up 23 Table 7 HF LPB10...

Page 8: ...d 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 Upd...

Page 9: ...sonal 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 1...

Page 10: ...arameters Data Interface UART SPI PWM GPIO Operating Voltage 2 8 3 6V Operating Current Peak Continuous TX 200mA Normal WiFi ON OFF DTIM 100ms Average 12mA Peak 200mA Standby WiFi Shutdown 200uA Power...

Page 11: ...om 11 1 2 Hardware Introduction Figure 1 HF LPB100 View 1 2 1 Pins Definition Figure 2 HF LPB100 Pins Map Table 2 HF LPB100 Pins Definition Pin Describtion Net Name Signal Type Comments 1 17 32 48 Gro...

Page 12: ...C No connect 25 Power Control Switch PWR_SW I PU 0 Power Down Mode Lowest Power Consumption 1 Normal mode 26 N C No connect 27 SPI Interface SPI_MISO I GPIO27 No connect if not use 28 SPI Interface SP...

Page 13: ...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 L...

Page 14: ...PB100 Module PCB symbol size mm as follows Figure 4 HF LPB100 PCB Symbol Size 1 2 4 On board Chip Antenna HF LPB100 module support internal on board chip antenna option When customer select internal a...

Page 15: ...antenna and external antenna 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...

Page 16: ...tion 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 inte...

Page 17: ...iFi 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 Sleep_ON Sleep_ON Module asleep or awake In...

Page 18: ...s 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...

Page 19: ...is pin open Sleep_RQ Module Pin Sleep Control Input The user should de assert this pin low 0 after 3 s assert to high 1 to put the module to sleep status Also at the deep sleep standby mode user can d...

Page 20: ...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...

Page 21: ...nsparent 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 A...

Page 22: ...User can also set this interval to fast 10ms through AT command But user have to consider if user MCU can send UART data with 10ms interval or the UART data may be divide as fragment Through AT comma...

Page 23: ...module associating with the access point every time when it wakes up The intent of this option is to allow for longer sleep times Standby mode can through AT MSLP command or trigger Sleep_RQ pin to go...

Page 24: ...le 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...

Page 25: ...IOs 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...

Page 26: ...off to close connection Send command AT TCPLKB to inqure TCP connection Figure 11 Socket B function demo 2 10 Multi TCP Link Connection When HF LPB100 module configured as TCP Server it supports Mult...

Page 27: ...H i g h F l y i n g Low Power WiFi Module User Manual Shanghai High Flying Electronics Technology Co Ltd www hi flying com 27 Figure 12 Multi TCP Link Data Transmition Structure HF SH01...

Page 28: ...Management Interface Step 1 Connect laptop to SSID HF LPB100 of HF LPB100 module via wireless LAN card Step 2 After wireless connection OK Open Wen browser and access http 10 10 100 254 Step 3 Then in...

Page 29: ...t STA to connect remote server through AP router Also it can configure at AP STA mode which provide very flexible application for customers Figure 15 Work Mode Page 3 1 4 STA Setting Page User can pus...

Page 30: ...30 Figure 16 STA Setting Page 3 1 5 AP 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 supp...

Page 31: ...arent transmission mode At this mode the user device which connected with HF LPB100 will connect and communicate with remote PC or server At this page user need setting serial port communication param...

Page 32: ...an upgrade new software firmware version through Wi Fi Figure 20 Upgrade SW page 3 1 9 Restart Page Most of the settting and configuration can only effective after system restart User shall restart af...

Page 33: ...g HF LPB100 module User can also select other tools used to debug serial port Serial Debugging Software ComTools Ethernet Debugging Software TCPUDPDbg 3 2 2 Network Connection User can select two meth...

Page 34: ...rameter 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 PC1 open CommTools program setting the same serial port parameters with HF LPB100 module...

Page 35: ...UDPDbg Tools Setting Then click Create button to create a connection Figure 28 TCPUDPDbg Tools Connection Now in transparent transmission mode data can be transferred from CommTools program to TCPUDPD...

Page 36: ...LPB100 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 S...

Page 37: ...le through AT instruction set which cover all web page setting function 4 1 1 Switch to Configuration Mode Two steps to finish switching from transparent transmission mode to configuration mode UART i...

Page 38: ...AT H Instruction for Help 4 2 1 Instruction Syntax Format AT Instruction protocol is based on the instruction of ASCII command style the description of syntax format as follow Format Description Means...

Page 39: ...ibtion Error Code Description 1 Invalid Command Format 2 Invalid Command 3 Invalid Operation Symbol 4 Invalid Parameter 5 Operation Not Permitted 4 2 2 AT Instruction Set Table 10 AT Instruction Set L...

Page 40: ...LKB Query if SOCKB TCP link already build up SNDB Send data to SOCKB in Command Mode RCVB Receive data from SOCKB in Command Mode Wi Fi STA Instruction Set Effective when module works as STA WSKEY Set...

Page 41: ...ry GPIO45 status ASWD Set Query WiFi configuration code MDCH Set Wi Fi Auto Switch Function TXPWR Set Query Wi Fi Transmit Power WIFI Config Tools don t support CFGRD command yet 4 2 2 1 AT E Function...

Page 42: ...on AT TMODE tmode CR ok CR LF CR LF Parameters tmode data transfer mode include throughput cmd pwm 4 2 2 5 AT MID Function Query module ID information Format Query Operation AT MID CR ok module_id CR...

Page 43: ...start module Format AT Z CR 4 2 2 10 AT H Function Help Format Query Operation AT H CR ok command help CR LF CR LF Parameters command help command introduction 4 2 2 11 AT CFGRD Function Batch Read Us...

Page 44: ...ameters to Factory Default Parameters Format Query Operation AT CFGTF CR ok status CR LF CR LF Parameters status feedback operation status 4 2 2 15 AT UART Function Set Query serial port parameters Fo...

Page 45: ...UARTFT Function Set Query UART auto frame trigger time Format Query Operation AT UARTFT CR ok time CR LF CR LF Set Operation AT UARTFT time CR ok CR LF CR LF Parameters time Range 100 10000 Unit ms Au...

Page 46: ...seconds for input after this command is sent OK The data received from UART port is sent to socket If the interval of two bytes is more than 10ms the data will be sent instantly 4 2 2 21 AT RECV Func...

Page 47: ...aved 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 wi...

Page 48: ...TCPDIS Function Open Close TCP link Format Query Opera AT TCPDIS CR ok sta CR LF CR LF Set Operation AT TCPDIS on off CR ok CR LF CR LF Parameters When query sta Feedback if TCP Client can be link On...

Page 49: ...CR LF Parameters 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 TC...

Page 50: ...If the interval of two bytes is more than 10ms the data will be sent instantly 4 2 2 33 AT RCVB Function Receive datas from SOCKB at Command Mode Format AT RCVB data_lenth CR ok data_lenth data_conte...

Page 51: ...WPAPSK WPA2PSK effective key password ASCII code shall less than 64 bit and greater than 8bit 4 2 2 36 AT WANN Function Set Query STA network setting Format Query Operation AT WANN CR ok mode address...

Page 52: ...i connection AP SSID AP s MAC if WiFi connection available RF Off if WiFi OFF 4 2 2 39 AT WSLQ Function Query STA WiFi signal strength Format Query Operation AT WSLQ CR ok ret CR LF CR LF Parameters r...

Page 53: ...k CR ok CR LF CR LF Parameters ipaddress AP s IP address mask AP s net mask 4 2 2 43 AT WAP Function Set Query AP Wi Fi parameters Format Query Operation AT WAP CR ok wifi_mode ssid channel CR LF CR L...

Page 54: ...AT WAMAC CR ok mac_address CR LF CR LF Parameters mac_address AP s MAC address Note Module AP mode s MAC address is related to STA mode s MAC address If user need changeto others please contact with...

Page 55: ...e CN Chinese Version Default EN English Version 4 2 2 49 AT UPURL Function Set Query remote upgrade URL address Format Query Operation AT UPURL CR ok url CR LF CR LF Set Operation AT UPURL url filenam...

Page 56: ...pgrade Format Query Operation AT UPCFG CR ok log CR LF CR LF Parameters log Some status print log from remote upgrade Note After execute this command the HF LPB100 will automatic start upgrade base on...

Page 57: ...nt some upgrade status when upgrading the log file will be sent to UDP Port after successfully off Close 4 2 2 56 AT LOGPORT Function Set Query remote upgrade UDP port of log file Format Query Operati...

Page 58: ...meters Format Query Operation AT MSLP CR ok ret CR LF CR LF Set Operation AT MSLP mode CR LF CR LF Parameters ret normal normal mode 100ms interval mode normal normal mode 100ms interval standby WiFi...

Page 59: ...0 42 Wed if it shows Not Available means that the time calibration function is not enabled or the module doesn t connect to the internet 4 2 2 63 AT WRMID Function Set module ID Format Set Operation A...

Page 60: ...mode fail to connect to router it will switch to AP mode itself in one minute auto Enable Wi Fi auto detect function The module will reset itself when encounter any abnormal The default time interval...

Page 61: ...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 for two modules one is new module and two is bo...

Page 62: ...s Technology Co Ltd www hi flying com 62 5 3 Shipping Information TRAY BOX Size 420 245 34 mm Size 422 247 72 mm inside CARTON Size 440 260 320 mm inside Figure 36 Shipping Information Note 1 tray 5 2...

Page 63: ...High Flying Electronics Technology Co Ltd www hi flying com 63 APPENDIX A HW REFERENCE DESIGN Detailed HF LPB100 Evluation Board design source files pls access High Flying web download page or contac...

Page 64: ...changed if the module is reset B 1 Network Command B 1 1 GPIO channel OUT value Function Set GPIO Channel value temporarily Parameters channel GPIO Channel number it can be 11 12 15 18 20 23 GPIO Pin...

Page 65: ...hannel number it can be 11 12 15 18 20 23 GPIO Pin number Return Data GPIO OK Command successful GPIO NOK Command failed B 1 4 PWM channel frequency duty Function Set PWM Channel output temporarily Pa...

Page 66: ...Technology Co Ltd www hi flying com 66 B 1 5 PWM channel GET Function Query PWM Channel output Parameters channel PWM Channel number it can be 11 12 18 20 GPIO Pin number Return Data ok frequency dut...

Page 67: ...ommand successful PWM NOK Command failed B 2 Hexadecimal Network Command Send hexadecimal data to fastly read module s port status B 2 1 Read all GPIO Channel Send Data 0a Return Data 8a value value b...

Page 68: ...of PWM Channel 2 GPIO18 frequency value6 Low byte of PWM Channel 2 GPIO18 frequency value7 High byte of PWM Channel 3 GPIO20 frequency value8 Low byte of PWM Channel 3 GPIO20 frequency B 2 4 Write PW...

Page 69: ...M Channel Return Data a2 channel value1 Channel PWM Channel number value1 Duty of PWM Channel B 2 7 Save Present GPIO PWM Setting Send Data 7a Return Data fa B 2 8 Assert All GPIO Channel Low Send Dat...

Page 70: ...P server IP address and Port Number Format Query Operation AT HTTPURL CR ok IP Port CR LF CR LF Set Operation AT HTTPURL IP Port CR ok CR LF CR LF Parameters IP IP address Port Port number C 1 2 AT HT...

Page 71: ...User Agent of HTTP protocol header Format Query Operation AT HTTPUA CR ok Parameter CR LF CR LF Set Operation AT HTTPUA Parameter CR ok CR LF CR LF Parameters Parameter Max length is 20 bytes C 1 6 A...

Page 72: ...cd HTTP 1 1 Connection keep alive User Agent lwip1 3 2 Content Length 0 Host 192 168 0 127 8999 If send AT HTTPDT abcd the data packet will be sent as the following instance POST abcd HTTP 1 1 Connect...

Page 73: ...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...

Page 74: ...ot installed and used in accordance with the instructions may cause harmful interference to radio communications However there is no guarantee that interference will not occur in a particular installa...

Reviews: