HF-LPC100 Wi-Fi/Bluetooth Module User Manual
Shanghai High-Flying Electronics Technology Co., Ltd
www.hi-flying.com
- 23
-
2.6.
GPIO/PWM Function(TBD)
HF-LPC100 support utmost eight PWM/GPIO pins
(
refer to 1.2.1 pin definition
),
to realize the
application based on GPIO/PWM. User can switch to PWM mode read and write GPIO/PWM pins
status when needed.
Table 8 HF-LPC100 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.. Command as follows:
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.
2.7.
Double SOCKET Communication Function
HF-LPC100 WI-FI module support double socket communication, the Socket B function is disabled
by default.
After the module boot-
up, 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 inquire TCP connection.
GPIO
Configured function
description
default
setting
type
GPIO13
GPIO channel
GPIO13
GPIO13
I/O
GPIO25
GPIO/USB channel
USB_DP
USB_DP
I/O
GPIO26
GPIO/USB channel
USB_DM
USB_DM
I/O
GPIO27
GPIO channel
GPIO27
GPIO27
I/O
GPIO30
GPIO/AD channel
GPIO30
GPIO30
I/O
GPIO35
GPIO/WPS channel
WPS
GPIO35
I/O
GPIO43
GPIO/nLink
nLink
nLink
I/O
GPIO44
GPIO/nReady
nReady
nReady
O
High-Flying