nrfdfu icon indicating copy to clipboard operation
nrfdfu copied to clipboard

Unable to connect to NRF device

Open pratapnaidu opened this issue 3 years ago • 4 comments

After compiling, nrfdfu bails out with following error:

./nrfdfu ble  -vv -a  XX:XX:09:F1:54:XX -t public nrfu_DFU_app.zip 
Update contains Application
Updating Application (297696 bytes):
Connecting to XX:XX:09:F1:54:XX (public)...
BLZ: Connect new to XX:XX:09:F1:54:XX (public)
BLZ: Connect new failed: Bluez < 5.49 (with -E flag) doesn't support ConnectDevice

Just wanted some expert opinion about this error, does it mean the target device is expecting lesser bluez version? I tried both bluetoothctl: 5.48 and 5.54

pratapnaidu avatar Mar 23 '22 04:03 pratapnaidu

You need to start bluetoothd with the -E option

br101 avatar Mar 23 '22 10:03 br101

Or try to leave out the -t public option to nrfdfu

br101 avatar Mar 23 '22 10:03 br101

I have the same issue, but using a random address instead of public. My system version of bluetoothctl is 5.55, but the error is identical to the above (which lists version 5.49). Leaving out address type has no effect on the error. I tried to start bluetoothd with -E but the command hangs. Could this be a version discrepancy?

NathalieHilbert avatar Mar 31 '23 17:03 NathalieHilbert

Hello I have workaround for this issue! This error appears because it can't connect to the device without scanning the device. While in the process of connecting Just scan for devices using the command line or the linux Bluetooth app. image

suadsuljic7 avatar May 22 '23 15:05 suadsuljic7