apache / mynewt-mcumgr-cli

MCU Manager CLI
https://mynewt.apache.org/
Apache License 2.0
59 stars 37 forks source link

LE Secure BLE Connection #14

Open Niels-Be opened 4 years ago

Niels-Be commented 4 years ago

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?

caco3 commented 4 years ago

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.

Niels-Be commented 4 years ago

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

mrgsts commented 3 years ago

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 commented 3 years ago

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

asousa-zg commented 2 years ago

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

DevinM-RR commented 1 year ago

Having this issue. Any update on this? Thanks!