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
120
CONN-GUIDE-BT740_v0.2
9.3 Connection Events
This group of events are connection related.
9.3.1 Connection Setup
This event informs the host that a remote device is requesting a connection.
The host responds with a CMD_CONNECTION_SETUP with an accept or reject flag.
Event Packet
Offset
Field
Value
Comments
0
LENGTH
12
1
CHANNEL
0
2
EVENT
[EVT_ CONNECTION_SETUP]
3
FLOW_OUT
??
Runtime value
4..9
BDADDR[6]
Nap[0,1]:Uap[2]:Lap[3,4,5]
Bluetooth address of device
requesting connection
10..11
UUID[]
Server profile UUID the peer
wishes to connect to
0x1101 = SPP
0x1124 = HID DEVICE
The UUID field tells the host which server profile the peer wishes to connect to.
9.3.2 Incoming Connection
This event informs the host that an incoming connection established.
Event Packet
Offset
Field
Value
Comments
0
LENGTH
13
1
CHANNEL
0
2
EVENT
[EVT_ CONNECTION_SETUP]
3
FLOW_OUT
??
Runtime value
4
CHANNEL
1..254
Channel ID to be used to
send/receive data, see note 1
for channel number allocation.
5..10
BDADDR[6]
Nap[0,1]:Uap[2]:Lap[3,4,5]
Bluetooth address of device
requesting connection
11..12
UUID[]
Server profile UUID the peer
wishes to connect to
0x1101 = SPP
0x1124 = HID DEVICE
The UUID field tells the host which server profile the peer has connected to.