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
124
CONN-GUIDE-BT740_v0.2
Event Packet
Offset
Field
Value
Comments
3
FLOW_OUT
??
Runtime value
4..9
BDADDR[6]
Nap[0,1]:Uap[2]:Lap[3,4,5]
Bluetooth address of pairing device
10
action
0..3
See description below
11..14
actionval
4 bytes
See description below
The host reacts to this event based on the value of the ‘action’ byte in offset 10 as follows:
Action :: 0
This informs the host that a simple pairing procedure has just been completed and ‘actionval’ is 00000001
for success and 00000000 for fail. The host shall NOT react to this event with the
CNF_SIMPLE_PAIRING packet.
Action :: 1
This informs the host that a simple pairing procedure is in progress and all it will do is display the
passcode in ‘actionval’ as a six digital decimal number WITH leading zeroes. The host shall NOT react to
this event with the CNF_SIMPLE_PAIRING packet.
Action :: 2
This informs the host that a simple pairing procedure is in progress and it displays the passcode in
‘actionval’ as a 6 digital decimal number WITH leading zeros. The host reacts to this event with the
CNF_SIMPLE_PAIRING packet with a 00000000 value for No and a non-00000000 value for Yes. The
former value, if the host deems that the passcode is not acceptable, and the latter if acceptable.
Action :: 3
This informs the host that a simple pairing procedure is in progress and the module is expecting a
passcode from the host embedded in a CNF_SIMPLE_PAIRING packet. The host shall react to this event
with the CNF_SIMPLE_PAIRING packet with a passcode value. The passcode in the
CNF_SIMPLE_PAIRING is either obtained by reading the display on the peer device, or if the peer device
is also a keyboard only, then the same random 6 digit value (with leading 0s) that is entered at both ends.
9.4.5 Local Friendly Name
This event sends a fragment of the local friendly name to the host. The maximum length of the fragment
is 10, so at least 3 of these events are required to convey a local friendly name, if it has the maximum
length of 30.
Event Packet
Offset
Field
Value
Comments
0
LENGTH
16
1
CHANNEL
0
2
EVENT
[EVT_LCL_FNAME]
3
FLOW_OUT
??
Runtime value
4
INDEX
0..29
Start index into the string
5
LEN
1..10
Number of valid characters in the NAME[] field that
follows