question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DFU service destroyed

See original GitHub issue

Hi I implemented DFU update library for my android application,I started DFU service and ble device updated but DFU service destroyed did not called after the Cleaning up log. Whats the problem? I share my log and thanks your advice.

V/DfuBaseService: Connecting to the device...
I/DfuBaseService: Connected to GATT server
I/DfuBaseService: Waiting 1600 ms for a possible Service Changed indication...
I/DfuBaseService: Attempting to start service discovery... succeed
I/DfuBaseService: Services discovered
I/DfuImpl: Reading DFU version number...
I/DfuImpl: Version number read: 0.8 -> Bootloader from SDK 9.0 or newer. Signature supported
I/DfuImpl: Reading Service Changed CCCD value...
W/DfuImpl: Legacy DFU bootloader found
I/DfuImpl: Enabling notifications...
I/DfuImpl: Sending Start DFU command (Op Code = 1, Upload Mode = 4)
I/DfuImpl: Sending image size array to DFU Packet (0b, 0b, 94856b)
I/DfuImpl: Sending the Initialize DFU Parameters START (Op Code = 2, Value = 0)
I/DfuImpl: Sending 14 bytes of init packet
Sending init packet (Value = FF-FF-FF-FF-FF-FF-FF-FF-01-00-67-00-A6-71)
I/DfuImpl: Sending the Initialize DFU Parameters COMPLETE (Op Code = 2, Value = 1)
I/DfuImpl: Sending Receive Firmware Image request (Op Code = 3)
I/DfuImpl: Uploading firmware...
I/DfuImpl: Response received (Op Code = 16, Req Op Code = 3, Status = 1)
I/DfuImpl: Transfer of 94856 bytes has taken 49047 ms
Sending Validate request (Op Code = 4)
I/DfuImpl: Response received (Op Code = 16, Req Op Code = 4, Status = 1)
I/DfuImpl: Sending Activate and Reset request (Op Code = 5)
W/DfuBaseService: Target device disconnected with status: 8
DfuBaseService: Cleaning up...
I/DfuBaseService: Action received: android.bluetooth.device.action.ACL_DISCONNECTED
I/DfuBaseService: Action received: android.bluetooth.device.action.ACL_CONNECTED
I/DfuBaseService: Connecting to the device...
I/DfuBaseService: Connected to GATT server
I/DfuBaseService: Waiting 1600 ms for a possible Service Changed indication...
I/DfuBaseService: Attempting to start service discovery... succeed
D/BluetoothGatt: onSearchComplete() = Device=DD:26:80:7F:D3:8B Status=0
I/DfuBaseService: Services discovered
I/DfuImpl: Reading DFU version number...
I/DfuImpl: Version number read: 20.0 -> Unknown version
I/DfuImpl: Reading Service Changed CCCD value...
I/DfuImpl: Enabling indications...
W/DfuImpl: Legacy DFU bootloader found
I/DfuImpl: Enabling notifications...
I/DfuImpl: Sending Start DFU command (Op Code = 1, Upload Mode = 4)
E/DfuImpl: Characteristic write error: 3
E/DfuBaseService: Unable to write Op Code 1 (error 3)
I/DfuBaseService: Disconnecting from the device...
D/BluetoothGatt: cancelOpen() - device: DD:26:80:7F:D3:8B
I/DfuBaseService: Disconnected from GATT server
I/DfuBaseService: Cleaning up...
I/DfuBaseService: DFU service destroyed

DFU service starting twice but I don’t know why?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
enes-sakutcommented, Mar 12, 2019

I found the problem thanks a lot .I am closing the issue

1reaction
enes-sakutcommented, Mar 5, 2019

Yes I am using ZIP file and there is not anything else ,only one dat and bin files.But I used buttonless DFU version and I started only one time.How can I kill DFU Base service manually or something like that?

Read more comments on GitHub >

github_iconTop Results From Across the Web

DFU App Crash - Bad notification for startForeground
I was using Nordic Semi - android DFU Library implementation 'no.nordicsemi. ... I/DfuBaseService: DFU service destroyed
Read more >
Bluetooth in DFU mode: connection always fails for some ...
I finally managed to get it working thanks to philips77. I was using BluetoothLeScanner with a delayed batch report, through ScanSettings .
Read more >
no.nordicsemi.android.dfu.DfuCallback.abort java code examples ...
DfuCallback.abort (Showing top 2 results out of 315) ... mFirmwareInputStream = null; mInitFileInputStream = null; } logi("DFU service destroyed"); }.
Read more >
Ruuvi Firmware 2.3.0-beta - DFU service closed by default?
Surely a user concerned about having their tag hijacked or destroyed is going to write their own firmware. fejesjoco October 5, 2018, 8:10pm...
Read more >
nRF51822-Arduino-Mbed-smart-watch/Lobby - Gitter
In the log, it shows that GATT error and DFU service destroyed. Please let me know, what might be going. Do I need...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found