D T 5 0 - M C O M M A N D R E F E R E N C E G U I D E 1 . 1 P a g e
32 | 38
Response
Description
+UBTSM:<security_mode>,
<security_mode_BT2.0>
OK
Successful read response.
OK
Successful write response.
ERROR
Error response.
Parameter
Description
security_mode
1 (factory default): Security Disabled. Should not be
used in real life application.
- Auto accept (No man-in-the-middle attack
protection, encryption enabled)
2: Security Enabled - Just Works
- Auto accept (no man-in-the-middle attack
protection, encryption enabled). This security mode is
intended for pairing in safe environments. When this
mode is set, pairability (see +UBTPM) is automatically
disabled. In AT mode, use AT+UBTPM to enable
pairing.
3: Security Enabled - Display Only*
- Service level authentication and encryption enabled.
User interaction is required.
This security mode is used when the local device has a
display where the user can see a passkey that can be
entered on the remote device.
4: Security Enabled - Display Yes/No*
- Service level authentication and encryption enabled.
User interaction is required for bonding. This security
mode is used when the device has a display, where
the user can see a passkey that can be verified and
confirmed with the remote device.
5: Security Enabled - Keyboard Only*
- Service level authentication and encryption enabled.
User interaction is required.
This security mode is used when the device has a
keyboard where the user can enter a passkey to verify
the passkey that is presented on the remote device.
* - For the security modes - 3, 4, and 5, the DCE must
be in Command or Extended Data mode to be able to
bond because user interaction might be required.
security_mode_BT2.0
0 (factory default): Disabled, no pairing is allowed
with Bluetooth 2.0 devices.
1: Enabled. Pairing is allowed with Bluetooth 2.0
devices using the fixed_pin. When enabling also, the
parameter fixed_pin must be set.
fixed_pin
The BT 2.0 fixed_pin is a string of one to sixteen
alphanumerical characters.