User's Manual

Enhanced Class 1 Bluetooth v2.1 Module
User’s Guide
Americas: +1-800-492-2320 Option 2
Europe: +44-1628-858-940
Hong Kong: +852-2923-0610
www.lairdtech.com/wireless
100
CONN-GUIDE-BT740_v0.2
8.16.8 Set Digital I/O
This command controls the states of up to 16 digital output lines.
Command Packet
Offset
Field
Value
Comments
0
LENGTH
6
Fixed
1
CHANNEL
0
Fixed
2
COMMAND
[CMD_SET_IO_EX]
3
FLOW_IN
??
Runtime value
4
ioId
0
0 = Digital I/o in Module
5..6
mask[2]
0000..FFFF
Only set bits are specify which
bits in ioVal submit to the digital
I/O
See Note 1
7..8
ioVal[2]
0000..FFFF
Only the bits set in mask
update at the output
See Note 1
Response Packet
Offset
Field
Value
Comments
0
LENGTH
Fixed
1
CHANNEL
0
Fixed
2
COMMAND
[CMD_SET_IO]
3
FLOW_OUT
??
Runtime value
4
STATUS
As appropriate
1. Bit 0 corresponds to GPIO0, Bit 1 to GPIO1 etc. Please refer to the module’s data sheet to
check which GPIO pins are available for use.
8.16.9 Reset
This command resets the module.
Command Packet
Offset
Field
Value
Comments
0
LENGTH
7
Fixed
1
CHANNEL
0
Fixed
2
COMMAND
[CMD_RESET]
3
FLOW_IN
??
Runtime value
4..6
RESVD[3]
00 00 00
Reserved for future use, set to
zeros.