Low power WIFI module user manual
Jinan USR IOT Technology Limited
Page 23/72
2.7.
GPIO/PWM Function
USR-WIFI232-T module can provide many GPIOs, which include max
3 PWM
control pins. User devices can read/write GPIO/PWM pins status.
Table 7
USR-WIFI232-T 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
USR-WIFI232-T 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