Nrfutil dfu over ble causes ble device to disconnect

I am using bleak and python to connect to a ble device and then using subprocess to run the dfu. The ble device disconnects when the dfu starts and then I get "Connection Failure - Device not found" error. I am using the nrf52833 board as a connectivity device.

Parents Reply
  • cheeetoo said:
    The endianness definitely isn't the problem because I am using the same address to connect to the device.

    Using nrfutil? If not, it would make sense to spend extra 10 seconds to swap the address manually just to double-check.

    The error "Connection Failure - Device not found" is printed only when a connection failed to be established (see how verify_stable_connection() is implemented and used), so there is some reason the connection is never established. The typical reasons for that are:

    • The specified address (if any) is wrong
    • The specified name (if any) is wrong
    • The device is not advertising / not connectable

    I cannot say much more at this point, but as mentioned, I would think it would be useful to see the device advertising in for instance nRF Connect Bluetooth, as that would give us some key information (first of all that it really is advertising and the address).

Children
No Data
Related