mynewt-mcumgr-cli icon indicating copy to clipboard operation
mynewt-mcumgr-cli copied to clipboard

LE Secure BLE Connection

Open Niels-Be opened this issue 5 years ago • 6 comments

Zephyr by default (since v2.2.0) requires authenticated connections to access mcumgrs GATT service. However I have not found a way to instruct mcumgr-cli to pair the device before use. Even if I pair my host (running bluez 4.48) to the device before using mcumgr I still get:

Error: Insufficient authentication

Is there any support for authenticated connection / is it planed?

Niels-Be avatar Jul 27 '20 14:07 Niels-Be

Are you using it with Zephyr?

If so, you could try to set CONFIG_MCUMGR_SMP_BT_AUTHEN=n in your service. I was told to do this to remove the BLE authentication requirement from the mcumgr SMP characteristic.

How ever it was for another issue, so I don't know if it helps.

caco3 avatar Aug 03 '20 18:08 caco3

Yes disabling security works. However this is not an option for our use case and it is not what I was asking for.

Niels-Be avatar Aug 04 '20 08:08 Niels-Be

I have hit the same problem, seems that mcumgr reset the connection and all of the pairing information is lost Peek 25-10-2020 15-07

mrgsts avatar Oct 25 '20 14:10 mrgsts

Yes disabling security works. However this is not an option for our use case and it is not what I was asking for.

Just discover that you can use the DFU upgrade utility of the android/ios nrf Connect app, and upload images to zephyr mcuboot, but is slow Screenshot_2020-10-28-17-23-41-702_no nordicsemi android mcp

mrgsts avatar Oct 28 '20 16:10 mrgsts

Hi,

I have the same problem. If using nordic App Device Manager, everything works. I am able to pair device with the phone and then I am able to send all the commands using the App. If using mcumgr-cli, I can pair the device using bluetoothctl and every command using mcumgr-cli have the same error:

Error: insufficient authentication

Do you know If mcumgr-cli supports authenticated connections?

Thanks

asousa-zg avatar Dec 17 '21 15:12 asousa-zg

Having this issue. Any update on this? Thanks!

DevinM-RR avatar Aug 23 '23 20:08 DevinM-RR