NordicSemiconductor / Android-DFU-Library

Device Firmware Update library and Android app
http://www.nordicsemi.com/dfu
BSD 3-Clause "New" or "Revised" License
753 stars 263 forks source link

DFU Service Not Disconnecting and Restarting After Unplanned Disconnections #432

Open YassineBerriri opened 5 months ago

YassineBerriri commented 5 months ago

Version

2.2.x

Ask the question

I am encountering a problem with the DFU process in my Android application. Specifically, when I stop scanning for the device or disconnect during the middle of the DFU process, the expected callbacks onError or onAbort in the DFU service listener are not triggered. Consequently, the DFU service fails to disconnect properly. This issue becomes evident when I attempt to rescan for the device and initiate the DFU process again, as it does not start as expected.

The figure below illustrates the issue that interrupts the DFU

Capture d'écran 2024-01-26 130340

The notification displayed in the interface below indicates an ongoing process. However, the notification remains active for an extended period and does not lead to a disconnection as expected.

Screenshot_20240126-124331_AK_Config_dev

Relevant log output

No response