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
70
CONN-GUIDE-BT740_v0.2
Command Packet
Offset
Field
Value
Comments
3
FLOW_IN
??
Runtime value
4
ENABLE
0..1, 0xFF
0 = Disable, 1=Enable
0xFF = Read current mode
5
ACCEPT
Bit mask
Bit 0: Set to auto accept channel
setup
Bit 1..7: Reserved for future use
If bit 0 is set then it overrides SReg
14
otherwise that S Register is
consulted
or incoming connections.
Response Packet
Offset
Field
Value
Comments
0
LENGTH
6
Fixed
1
CHANNEL
0
Fixed
2
COMMAND
[CMD_
CONNECTABLE_MODE]
3
FLOW_OUT
??
Runtime value
4
STATUS
As appropriate
5
CURMODE
0..1
0 = Not connectable
1 = Connectable
8.11.2 Service Incoming Connection
When the module is in connectable mode, incoming connection requests pass to the host via an
EVT_CONNECTION_SETUP message – if and only if autoaccept is not enabled (via command or S
register 14). The host accepts or rejects the remote connection request using this message.
Command Packet
Offset
Field
Value
Comments
0
LENGTH
12
Fixed
1
CHANNEL
0
Fixed
2
COMMAND
[CMD_
CONNECTION_SETUP]
3
FLOW_IN
??
Runtime value
4..9
BDADDR[]
Nap[0,1]:Uap[2]:Lap[3,4,5]
Bluetooth addr
10
HANDLE
0..255
Can be any value the host
wants to set.
This value is echoed by the
module in the response.
11
ACCEPT
0..1
0 = reject. 1..255 = accept
Response Packet
Offset
Field
Value
Comments
0
LENGTH
6
Fixed
1
CHANNEL
0
Fixed
2
COMMAND
[CMD_
CONNECTION_SETUP]
3
FLOW_OUT
??
Runtime value
4
STATUS
As appropriate
5
HANDLE
0..255
Echoed from the command