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
86
CONN-GUIDE-BT740_v0.2
This informs the module the response to a passcode query. In this case the ‘actionvalconveys the
passcode value.
Note: A successful connection to an unpaired 2.1 and newer device requires this confirmation packet
because the MP protocol does not process new commands unless the previous command was
completed by sending an appropriate response packet.
The packet processor in the module queues all commands until a response sends, but processes
confirmation packets as they come.
8.15.4 PinCode (Command)
This command sends a pincode in response to an EVT_PINCODE_REQUEST message and results in a
RSP_PINCODE from the module to the host.
This command can also register a pincode for all subsequent incoming legacy pairings from BT2.0 and
older devices. In that case the BDADDR[] field MUST be set to all zeros.
Command Packet
Offset
Field
Value
Comments
0
LENGTH
28
Fixed
1
CHANNEL
0
Fixed
2
COMMAND
[CMD_PINCODE]
3
FLOW_IN
??
Runtime value
4
TIMEOUT
5..120
Pairing timeout in seconds
5..10
BDADDR[]
Nap[0,1]:Uap[2]:Lap[3,4,5]
Bluetooth address of device requesting the
pairing. Or all zeros to register a pincode for
incoming pairings
11..27
PIN[]
17 byte string array
Null Terminated Pin code String. Maximum pin
code length is 16.
Response Packet
Offset
Field
Value
Comments
0
LENGTH
5
Fixed
1
CHANNEL
0
Fixed
2
COMMAND
[CMD_PINCODE]
3
FLOW_OUT
??
Runtime value
4
STATUS
As appropriate
If pairing is successful the event message EVT_LINK_KEY or EVT_LINK_KEY_EX sends to the host
after the response. The latter event sends if S Register 47 is set to 1.