Page 137 of 195
AT.s LE Command Set v5.1.1b
Copyright © 2002-2021 BlueRadios, Inc.
200 S. Wilcox St., Unit 158 • Castle Rock, CO 80104 • USA • 303-957-1003 •
Fixed Passkey (ATSPK)
SET PASSKEY
Function:
Sets a fixed passkey to be used for
Low Energy pairing authentication. A fixed passkey can
be used to support authentication on a device without a keypad or display, although it does not provide
the same level of security that a randomly generated passkey would.
For a fixed passkey to be used, Authentication needs to be enabled in ATSPLE and the IO_Capabilities
need to be set to something other than No Input or Output, or the Passkey Entry method of
authentication will not be used and authentication will not occur (see the table in ATSPLE). In most
cases the IO_Capabilities should be set to Display Only (0), which will cause the remote device to have
to enter the fixed passkey. The IO_Capabilities can be set to Keyboard Only (2) if always pairing with a
device with a fixed passkey set to Display Only (0).
Command Format:
ATSPK,<Passkey>
Command Parameter(s):
▪
Passkey:
6 numeric characters. If set to 0, a fixed passkey will not be used. If a fixed passkey is
set, in a case where a PK_REQ would have been sent, instead it will automatically be responded
to using the fixed passkey. In a case where a PK_DIS would have been sent, the fixed passkey
will be used internally instead.
Default: 0 (Fixed passkey disabled)
Example(s):
1. Set a module to use a fixed passkey and set the IO Capabilities to Display Only, which will cause
the remote device to have to enter the fixed passkey, but if the remote device
’s IO_Capabilities
don’t support a Keyboard than the link won’t be authenticated.
COMMAND:
ATSPK,123456
<cr>
RESPONSE:
<cr_lf>
OK
<cr_lf>
COMMAND:
ATSPLE,1,1,0
<cr>
RESPONSE:
<cr_lf>
OK
<cr_lf>
2. Set another module to automatically authenticate with the fixed passkey module in the previous
example. The IO Capabilities are set to Numeric Keyboard Only, which will cause the module to
automatically respond with the fixed passkey when requested during authentication.
COMMAND:
ATSPK,123456
<cr>
RESPONSE:
<cr_lf>
OK
<cr_lf>
COMMAND:
ATSPLE,1,1,2
<cr>
RESPONSE:
<cr_lf>
OK
<cr_lf>