Problem with changing security level in connection established with BLE Shell

Hi,

I have a problem with unmodified BLE Shell and changing security level to 2(aka just works).

1. I'm connecting from BLE Shell to the device that requires level 2
2. After the connection is succesfully established I'm trying to perform `bt security 2`
3. It fails and outputs some strange communicates

Why it mentions `level 1` when I tried to change it to `2`?

The device works great with Android and iOS phones. It also worked some time ago with previous versions of BLE Shell, but it doesn't work on latest ones.

uart:~$ > bt connect D6:32:F3:DB:E1:DA random
bt connect D6:32:F3:DB:E1:DA random
Connection pending
Connected: D6:32:F3:DB:E1:DA (random)
LE data len updated: TX (len: 27 time: 328) RX (len: 69 time: 664)
Remote LMP version 5.1 (0x0a) subversion 0x0101 manufacturer 0x0059
LE Features: 0x0000000000004125 
LE PHY updated: TX PHY LE 2M, RX PHY LE 2M
LE data len updated: TX (len: 27 time: 328) RX (len: 27 time: 664)
uart:~$ > bt security 2
bt security 2
Security failed: D6:32:F3:DB:E1:DA (random) level 1 reason: Authentication requirements (4)
Pairing failed with D6:32:F3:DB:E1:DA (random) reason: Authentication requirements (4)
uart:~$

Parents
  • Hello,

    Authentication should not be required if both sides only require level 2 security. Which version of the SDK are you currently using and which version were you using earlier when it worked? Also, what security level do you get when pairing with phone instead?

    I was not able to reproduce this using SDK v2.9.1. I connected to the peripheral_uart example.

    Best regards,

    Vidar

Reply
  • Hello,

    Authentication should not be required if both sides only require level 2 security. Which version of the SDK are you currently using and which version were you using earlier when it worked? Also, what security level do you get when pairing with phone instead?

    I was not able to reproduce this using SDK v2.9.1. I connected to the peripheral_uart example.

    Best regards,

    Vidar

Children
Related