High-Flying
HF-LPT100 Low Power WiFi Module User Manual
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com)
- 22 -
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-LPT100 module can provide many GPIOs, which include max 3 PWM control pins. User devices
can read/write GPIO/PWM pins status.
Table 7 HF-LPT100 GPIO/PWM Pin Mapping Table
When module works at PWM mode, PC and other equipts can setup connection (TCP/UDP) through
WiFi, then read/write GPIO/PWM information through command.
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.
2.8.
SOCKET B Function
HF-LPT100 support double socket communication, the socket B function is disabled by
default.
After the module is started, send
command “AT+SOCKB” to set the connection parameter,
send command
“AT+TCPDISB=on” to try to connect with TCP server, the module will stop
connecting after three failures. Send command
“AT+TCPDISB=on” to make connection.
Send command
“AT+TCPDISB=off” to close connection. Send command “AT+TCPLKB” to
inqure TCP connection.
Pin Num
Configured Function
Describtion
Default Setting
Type
5
UART0_RX
UART0_RX
GPIO5
I
6
UART0_TX
UART0_TX
GPIO6
O
8
PWM Channel 3
PWM_3
GPIO18
I/O
9
PWM Channel 2
PWM_2
GPIO12
I/O
10
PWM Channel 1
PWM_1
GPIO11
I/O