High-Flying
Low Power WiFi Module User Manual
Shanghai High-Flying Electronics Technology Co., Ltd
www.hi-flying.com
- 25 -
General “config.txt” file format as following example:
[URL]=”http://10.10.100.100:80/lpb.bin”
[WEB]="http://10.10.100.100:80/web.bin"
[NVR]="http://10.10.100.100:80/nvram.dat"
[CFG]= "http://10.10.100.100:80/cfg.bin"
[URL]= the URL address of Application.
[WEB]=the URL address of Webpage
[NVR]= the URL address of NVRAM data
[CFG]= the URL address of Factory Parameter File
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.8. 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, Reok=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, Reok=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.
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
HF-SH01