Android-DFU-Library icon indicating copy to clipboard operation
Android-DFU-Library copied to clipboard

Packet transfer stop while sending data.

Open tusharSensovium opened this issue 7 years ago • 13 comments

I also face this issue in Redmi 3s prime(xiaomi). some times dfu stopped at 20% - 25% . And same code works on others mobiles like samsung, sony.

Executing data object (Op Code = 4)
Creating Data object (Op Code = 1, Type = 2, Size = 4096) (2/7)
Uploading firmware...
Sending Calculate Checksum command (Op Code = 3)
Checksum received (Offset = 8192, CRC = A0E2CE9D)
Executing data object (Op Code = 4)
Creating Data object (Op Code = 1, Type = 2, Size = 4096) (3/7)
Uploading `firmware..

application stucks here.

tusharSensovium avatar Apr 30 '18 14:04 tusharSensovium

Did you try to enable PRNs in the initiator? The log you have looks correct. Nothing wrong. Please debug where it stacks.

philips77 avatar Apr 30 '18 14:04 philips77

I m using your latest library 1.6.1 so, by default PRNs is 12. Also i tried with manually putting this code service.setPacketsReceiptNotificationsValue(DfuServiceInitiator.DEFAULT_PRN_VALUE);

tusharSensovium avatar Apr 30 '18 14:04 tusharSensovium

It's by default also disabled on Android 6+. You may force enable it with setPRPEnabled(..).

philips77 avatar Apr 30 '18 14:04 philips77

i also tried this. but still not work.

service.setPacketsReceiptNotificationsEnabled(true);

On Mon, Apr 30, 2018 at 7:54 PM, Aleksander Nowakowski < [email protected]> wrote:

It's by default also disabled on Android 6+. You may force enable it with setPRPEnabled(..).

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/NordicSemiconductor/Android-DFU-Library/issues/104#issuecomment-385413551, or mute the thread https://github.com/notifications/unsubscribe-auth/AiXK5mOmv_cSAF7FUaG-TFcbhl37SzxDks5ttx6cgaJpZM4TsoP3 .

--

Thanks.

Tushar JoshiAndroid Developer Sensovium PVT LTD

M: +91 9824206579

ABOUT THIS E-MAIL: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, re-transmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

tusharSensovium avatar Apr 30 '18 14:04 tusharSensovium

Then you have to debug it more on your own. Check whether it stops and why. There may be number of reasons on the device or Android side... I can't conclude from the logs you posted.

philips77 avatar Apr 30 '18 15:04 philips77

But on same on nrfConnect, nrf Toolbox and my other DFU application(with same library and same your code) are working. I m totally confused what happening with this device and code. By the way thanks for quick response. Right now i m not closing this issue. When i solved it then close this one. Again thank you very much for your important time and response.

tusharSensovium avatar Apr 30 '18 17:04 tusharSensovium

Whenever DFU stuck my i got this logs every time

05-03 00:34:38.988 28641-28655/focus.radiance.com.wbdfu D/BluetoothGatt: onClientConnParamsChanged() - Device=C2:57:00:74:D5:45 interval=6 status=0
05-03 00:34:39.218 28641-28663/focus.radiance.com.wbdfu D/BluetoothGatt: onClientConnParamsChanged() - Device=C2:57:00:74:D5:45 interval=23 status=0
05-03 00:34:39.708 28641-28652/focus.radiance.com.wbdfu D/BluetoothGatt: onClientConnParamsChanged() - Device=C2:57:00:74:D5:45 interval=23 status=0

tusharSensovium avatar May 02 '18 19:05 tusharSensovium

Hi, did you manage to solve the issue?

philips77 avatar Oct 24 '18 11:10 philips77

Not yet. I didn't find any solution. Have you any suggestions?

On Wed, Oct 24, 2018 at 4:55 PM Aleksander Nowakowski < [email protected]> wrote:

Hi, did you manage to solve the issue?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/NordicSemiconductor/Android-DFU-Library/issues/104#issuecomment-432617925, or mute the thread https://github.com/notifications/unsubscribe-auth/AiXK5jLJh724sbgaiLxoackWDLq3I_nWks5uoE4ugaJpZM4TsoP3 .

--

Thanks.

Tushar JoshiAndroid Developer Sensovium PVT LTD

M: +91 9824206579

ABOUT THIS E-MAIL: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, re-transmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

tusharSensovium avatar Oct 24 '18 11:10 tusharSensovium

Well.. I would have to see the Bluetooth sniffer logs. The upload for some reason stopped and the lib is waiting for some callback. I can't find the reason based on the logs you gave. We need more info, for example HCI logs, sniffer logs, or be able to reproduce it on our side. How often does the issue happen?

philips77 avatar Oct 24 '18 12:10 philips77

Most frequently

On Wed, Oct 24, 2018 at 5:58 PM Aleksander Nowakowski < [email protected]> wrote:

Well.. I would have to see the Bluetooth sniffer logs. The upload for some reason stopped and the lib is waiting for some callback. I can't find the reason based on the logs you gave. We need more info, for example HCI logs, sniffer logs, or be able to reproduce it on our side. How often does the issue happen?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/NordicSemiconductor/Android-DFU-Library/issues/104#issuecomment-432634843, or mute the thread https://github.com/notifications/unsubscribe-auth/AiXK5o1uOeLNYI_AT6OirYVHw4mMwz5Uks5uoFzhgaJpZM4TsoP3 .

--

Thanks.

Tushar JoshiAndroid Developer Sensovium PVT LTD

M: +91 9824206579

ABOUT THIS E-MAIL: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, re-transmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

tusharSensovium avatar Oct 24 '18 13:10 tusharSensovium

In my case, sometimes firmware already partial uploaded, let's say 25% and app is force closed. Then the next time app will upload firmware from 25% and resume uploading. This can cause a CRC mismatch in my case, so I just disable the resume upload firmware and everything can work normally.

service.disableResume();

jeffhuangtw avatar May 16 '19 02:05 jeffhuangtw

Hi,

I'm facing the same problem. The app just stops uploading. This not happens all the time, but i don't know how to reproduce:

08 01 - 12:40:09 DFUChildFragment -> [DFU] DFU service started
08 01 - 12:40:09 DFUChildFragment -> [DFU] Opening file...
08 01 - 12:40:09 DFUChildFragment -> [DFU] Firmware file opened successfully
08 01 - 12:40:09 DFUChildFragment -> [DFU] Connecting to DFU target...
08 01 - 12:40:09 DFUChildFragment -> [DFU] gatt = device.connectGatt(autoConnect = false)
08 01 - 12:40:09 DFUChildFragment -> [DFU] Connected to E9:13:C9:4E:64:F3
08 01 - 12:40:09 DFUChildFragment -> [DFU] [Broadcast] Action received: android.bluetooth.device.action.ACL_CONNECTED
08 01 - 12:40:09 DFUChildFragment -> [DFU] Discovering services...
08 01 - 12:40:09 DFUChildFragment -> [DFU] gatt.discoverServices()
08 01 - 12:40:10 DFUChildFragment -> [DFU] Services discovered
08 01 - 12:40:10 DFUChildFragment -> DFU Device Connected: E9:13:C9:4E:64:F3
08 01 - 12:40:10 DFUChildFragment -> DFU Proccess Starting: E9:13:C9:4E:64:F3
08 01 - 12:40:10 DFUChildFragment -> [DFU] wait(1000)
08 01 - 12:40:11 DFUChildFragment -> [DFU] Requesting new MTU...
08 01 - 12:40:11 DFUChildFragment -> [DFU] gatt.requestMtu(517)
08 01 - 12:40:11 DFUChildFragment -> [DFU] MTU changed to: 23
08 01 - 12:40:11 DFUChildFragment -> [DFU] Enabling notifications for 8ec90001-f315-4f60-9fb8-838830daea50
08 01 - 12:40:11 DFUChildFragment -> [DFU] gatt.setCharacteristicNotification(8ec90001-f315-4f60-9fb8-838830daea50, true)
08 01 - 12:40:11 DFUChildFragment -> [DFU] gatt.writeDescriptor(00002902-0000-1000-8000-00805f9b34fb, value=0x01-00)
08 01 - 12:40:11 DFUChildFragment -> [DFU] Data written to descr.8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 01-00
08 01 - 12:40:11 DFUChildFragment -> [DFU] Notifications enabled for 8ec90001-f315-4f60-9fb8-838830daea50
08 01 - 12:40:11 DFUChildFragment -> [DFU] Notifications enabled
08 01 - 12:40:11 DFUChildFragment -> [DFU] wait(1000)
08 01 - 12:40:12 DFUChildFragment -> [DFU] Writing to characteristic 8ec90001-f315-4f60-9fb8-838830daea50
08 01 - 12:40:12 DFUChildFragment -> [DFU] gatt.writeCharacteristic(8ec90001-f315-4f60-9fb8-838830daea50)
08 01 - 12:40:12 DFUChildFragment -> [DFU] Data written to 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 06-01
08 01 - 12:40:12 DFUChildFragment -> [DFU] Notification received from 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 60-06-01-00-01-00-00-00-00-00-00-00-00-00-00
08 01 - 12:40:12 DFUChildFragment -> [DFU] Command object info received (Max size = 256, Offset = 0, CRC = 00000000)
08 01 - 12:40:12 DFUChildFragment -> [DFU] Writing to characteristic 8ec90001-f315-4f60-9fb8-838830daea50
08 01 - 12:40:13 DFUChildFragment -> [DFU] gatt.writeCharacteristic(8ec90001-f315-4f60-9fb8-838830daea50)
08 01 - 12:40:13 DFUChildFragment -> [DFU] Data written to 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 02-00-00
08 01 - 12:40:13 DFUChildFragment -> [DFU] Notification received from 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 60-02-01
08 01 - 12:40:13 DFUChildFragment -> [DFU] Packet Receipt Notif disabled (Op Code = 2, Value = 0)
08 01 - 12:40:13 DFUChildFragment -> [DFU] Writing to characteristic 8ec90001-f315-4f60-9fb8-838830daea50
08 01 - 12:40:13 DFUChildFragment -> [DFU] gatt.writeCharacteristic(8ec90001-f315-4f60-9fb8-838830daea50)
08 01 - 12:40:13 DFUChildFragment -> [DFU] Data written to 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 01-01-87-00-00-00
08 01 - 12:40:13 DFUChildFragment -> [DFU] Notification received from 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 60-01-01
08 01 - 12:40:13 DFUChildFragment -> [DFU] Command object created
08 01 - 12:40:13 DFUChildFragment -> [DFU] Writing to characteristic 8ec90002-f315-4f60-9fb8-838830daea50
08 01 - 12:40:13 DFUChildFragment -> [DFU] gatt.writeCharacteristic(8ec90002-f315-4f60-9fb8-838830daea50)
08 01 - 12:40:13 DFUChildFragment -> [DFU] Data written to 8ec90002-f315-4f60-9fb8-838830daea50, value (0x): 12-84-01-0A-3E-08-01-12-3A-08-01-10-34-1A-02-8C-01-20-00-28
08 01 - 12:40:13 DFUChildFragment -> [DFU] Writing to characteristic 8ec90002-f315-4f60-9fb8-838830daea50
08 01 - 12:40:13 DFUChildFragment -> [DFU] gatt.writeCharacteristic(8ec90002-f315-4f60-9fb8-838830daea50)
08 01 - 12:40:13 DFUChildFragment -> [DFU] Data written to 8ec90002-f315-4f60-9fb8-838830daea50, value (0x): 00-30-00-38-C0-BA-0C-42-24-08-03-12-20-70-E3-14-CB-75-01-93
08 01 - 12:40:13 DFUChildFragment -> [DFU] Writing to characteristic 8ec90002-f315-4f60-9fb8-838830daea50
08 01 - 12:40:13 DFUChildFragment -> [DFU] gatt.writeCharacteristic(8ec90002-f315-4f60-9fb8-838830daea50)
08 01 - 12:40:13 DFUChildFragment -> [DFU] Data written to 8ec90002-f315-4f60-9fb8-838830daea50, value (0x): C8-BE-66-50-94-8B-92-A8-B9-62-F3-AF-51-19-81-24-F8-5B-0C-B0
08 01 - 12:40:13 DFUChildFragment -> [DFU] Writing to characteristic 8ec90002-f315-4f60-9fb8-838830daea50
08 01 - 12:40:13 DFUChildFragment -> [DFU] gatt.writeCharacteristic(8ec90002-f315-4f60-9fb8-838830daea50)
08 01 - 12:40:13 DFUChildFragment -> [DFU] Data written to 8ec90002-f315-4f60-9fb8-838830daea50, value (0x): 70-52-1C-12-BD-48-00-10-00-1A-40-6D-E5-C3-58-6C-77-6C-38-01
08 01 - 12:40:13 DFUChildFragment -> [DFU] Writing to characteristic 8ec90002-f315-4f60-9fb8-838830daea50
08 01 - 12:40:13 DFUChildFragment -> [DFU] gatt.writeCharacteristic(8ec90002-f315-4f60-9fb8-838830daea50)
08 01 - 12:40:13 DFUChildFragment -> [DFU] Data written to 8ec90002-f315-4f60-9fb8-838830daea50, value (0x): A2-B5-86-53-5D-D5-A2-4B-7C-34-D9-21-95-82-C6-3F-92-B2-86-64
08 01 - 12:40:13 DFUChildFragment -> [DFU] Writing to characteristic 8ec90002-f315-4f60-9fb8-838830daea50
08 01 - 12:40:13 DFUChildFragment -> [DFU] gatt.writeCharacteristic(8ec90002-f315-4f60-9fb8-838830daea50)
08 01 - 12:40:13 DFUChildFragment -> [DFU] Data written to 8ec90002-f315-4f60-9fb8-838830daea50, value (0x): 1C-FF-B5-D5-2E-77-D8-AD-D2-4C-BD-B1-3D-77-F7-61-2F-C0-0B-79
08 01 - 12:40:13 DFUChildFragment -> [DFU] Writing to characteristic 8ec90002-f315-4f60-9fb8-838830daea50
08 01 - 12:40:13 DFUChildFragment -> [DFU] gatt.writeCharacteristic(8ec90002-f315-4f60-9fb8-838830daea50)
08 01 - 12:40:13 DFUChildFragment -> [DFU] Data written to 8ec90002-f315-4f60-9fb8-838830daea50, value (0x): 2D-AD-0E-FB-9E-9F-65-CD-CF-C2-EA-61-65-9A-E2
08 01 - 12:40:13 DFUChildFragment -> [DFU] Command object sent (CRC = A319AD2F)
08 01 - 12:40:13 DFUChildFragment -> [DFU] Writing to characteristic 8ec90001-f315-4f60-9fb8-838830daea50
08 01 - 12:40:13 DFUChildFragment -> [DFU] gatt.writeCharacteristic(8ec90001-f315-4f60-9fb8-838830daea50)
08 01 - 12:40:13 DFUChildFragment -> [DFU] Notification received from 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 60-03-01-87-00-00-00-2F-AD-19-A3
08 01 - 12:40:13 DFUChildFragment -> [DFU] Data written to 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 60-03-01-87-00-00-00-2F-AD-19-A3
08 01 - 12:40:13 DFUChildFragment -> [DFU] Checksum received (Offset = 135, CRC = A319AD2F)
08 01 - 12:40:13 DFUChildFragment -> [DFU] Writing to characteristic 8ec90001-f315-4f60-9fb8-838830daea50
08 01 - 12:40:13 DFUChildFragment -> [DFU] gatt.writeCharacteristic(8ec90001-f315-4f60-9fb8-838830daea50)
08 01 - 12:40:13 DFUChildFragment -> [DFU] Data written to 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 04
08 01 - 12:40:13 DFUChildFragment -> [DFU] Notification received from 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 60-04-01
08 01 - 12:40:13 DFUChildFragment -> [DFU] Command object executed
08 01 - 12:40:13 DFUChildFragment -> [DFU] Writing to characteristic 8ec90001-f315-4f60-9fb8-838830daea50
08 01 - 12:40:13 DFUChildFragment -> [DFU] gatt.writeCharacteristic(8ec90001-f315-4f60-9fb8-838830daea50)
08 01 - 12:40:13 DFUChildFragment -> [DFU] Data written to 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 02-0C-00
08 01 - 12:40:13 DFUChildFragment -> [DFU] Notification received from 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 60-02-01
08 01 - 12:40:13 DFUChildFragment -> [DFU] Packet Receipt Notif Req (Op Code = 2) sent (Value = 12)
08 01 - 12:40:13 DFUChildFragment -> [DFU] Writing to characteristic 8ec90001-f315-4f60-9fb8-838830daea50
08 01 - 12:40:13 DFUChildFragment -> [DFU] gatt.writeCharacteristic(8ec90001-f315-4f60-9fb8-838830daea50)
08 01 - 12:40:13 DFUChildFragment -> [DFU] Data written to 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 06-02
08 01 - 12:40:13 DFUChildFragment -> [DFU] Notification received from 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 60-06-01-00-10-00-00-00-00-00-00-00-00-00-00
08 01 - 12:40:13 DFUChildFragment -> [DFU] Data object info received (Max size = 4096, Offset = 0, CRC = 00000000)
08 01 - 12:40:13 DFUChildFragment -> DFU Process Started: E9:13:C9:4E:64:F3
08 01 - 12:40:13 DFUChildFragment -> DFU Progress: 0, Speed: 0.0, avgSpeed: 0.0, Current Part: 1, Total Parts: 1, Device: E9:13:C9:4E:64:F3
08 01 - 12:40:13 DFUChildFragment -> [DFU] Writing to characteristic 8ec90001-f315-4f60-9fb8-838830daea50
08 01 - 12:40:13 DFUChildFragment -> [DFU] gatt.writeCharacteristic(8ec90001-f315-4f60-9fb8-838830daea50)
08 01 - 12:40:13 DFUChildFragment -> [DFU] Data written to 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 01-02-00-10-00-00
08 01 - 12:40:13 DFUChildFragment -> [DFU] Notification received from 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 60-01-01
08 01 - 12:40:13 DFUChildFragment -> [DFU] Data object (1/50) created
08 01 - 12:40:13 DFUChildFragment -> [DFU] Uploading firmware...
08 01 - 12:40:13 DFUChildFragment -> [DFU] Sending firmware to characteristic 8ec90002-f315-4f60-9fb8-838830daea50...
08 01 - 12:40:14 DFUChildFragment -> DFU Progress: 1, Speed: 2.1661408, avgSpeed: 2.1661408, Current Part: 1, Total Parts: 1, Device: E9:13:C9:4E:64:F3
08 01 - 12:40:15 DFUChildFragment -> DFU Progress: 2, Speed: 2.1752136, avgSpeed: 2.1706412, Current Part: 1, Total Parts: 1, Device: E9:13:C9:4E:64:F3
08 01 - 12:40:15 DFUChildFragment -> [DFU] Writing to characteristic 8ec90001-f315-4f60-9fb8-838830daea50
08 01 - 12:40:15 DFUChildFragment -> [DFU] gatt.writeCharacteristic(8ec90001-f315-4f60-9fb8-838830daea50)
08 01 - 12:40:15 DFUChildFragment -> [DFU] Data written to 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 03
08 01 - 12:40:15 DFUChildFragment -> [DFU] Notification received from 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 60-03-01-00-10-00-00-FE-8D-66-A5
08 01 - 12:40:15 DFUChildFragment -> [DFU] Checksum received (Offset = 4096, CRC = A5668DFE)
08 01 - 12:40:15 DFUChildFragment -> [DFU] Writing to characteristic 8ec90001-f315-4f60-9fb8-838830daea50
08 01 - 12:40:15 DFUChildFragment -> [DFU] gatt.writeCharacteristic(8ec90001-f315-4f60-9fb8-838830daea50)
08 01 - 12:40:15 DFUChildFragment -> [DFU] Data written to 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 04
08 01 - 12:40:15 DFUChildFragment -> [DFU] Notification received from 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 60-04-01
08 01 - 12:40:15 DFUChildFragment -> [DFU] Data object executed
08 01 - 12:40:15 DFUChildFragment -> [DFU] Writing to characteristic 8ec90001-f315-4f60-9fb8-838830daea50
08 01 - 12:40:15 DFUChildFragment -> [DFU] gatt.writeCharacteristic(8ec90001-f315-4f60-9fb8-838830daea50)
08 01 - 12:40:15 DFUChildFragment -> [DFU] Notification received from 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 60-01-01
08 01 - 12:40:15 DFUChildFragment -> [DFU] Data written to 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 60-01-01
[...]
08 01 - 12:41:36 DFUChildFragment -> [DFU] Data object (41/50) created
08 01 - 12:41:36 DFUChildFragment -> [DFU] Uploading firmware...
08 01 - 12:41:36 DFUChildFragment -> [DFU] Sending firmware to characteristic 8ec90002-f315-4f60-9fb8-838830daea50...
08 01 - 12:41:36 DFUChildFragment -> DFU Progress: 81, Speed: 1.7797203, avgSpeed: 1.9923593, Current Part: 1, Total Parts: 1, Device: E9:13:C9:4E:64:F3
08 01 - 12:41:37 DFUChildFragment -> DFU Progress: 82, Speed: 2.5216317, avgSpeed: 1.9974698, Current Part: 1, Total Parts: 1, Device: E9:13:C9:4E:64:F3
08 01 - 12:41:37 DFUChildFragment -> [DFU] Writing to characteristic 8ec90001-f315-4f60-9fb8-838830daea50
08 01 - 12:41:37 DFUChildFragment -> [DFU] gatt.writeCharacteristic(8ec90001-f315-4f60-9fb8-838830daea50)
08 01 - 12:41:37 DFUChildFragment -> [DFU] Notification received from 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 60-03-01-00-90-02-00-9C-03-38-6C
08 01 - 12:41:37 DFUChildFragment -> [DFU] Data written to 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 60-03-01-00-90-02-00-9C-03-38-6C
08 01 - 12:41:37 DFUChildFragment -> [DFU] Checksum received (Offset = 167936, CRC = 6C38039C)
08 01 - 12:41:37 DFUChildFragment -> [DFU] Writing to characteristic 8ec90001-f315-4f60-9fb8-838830daea50
08 01 - 12:41:37 DFUChildFragment -> [DFU] gatt.writeCharacteristic(8ec90001-f315-4f60-9fb8-838830daea50)
08 01 - 12:41:37 DFUChildFragment -> [DFU] Notification received from 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 60-04-01
08 01 - 12:41:37 DFUChildFragment -> [DFU] Data written to 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 60-04-01
08 01 - 12:41:37 DFUChildFragment -> [DFU] Data object executed
08 01 - 12:41:37 DFUChildFragment -> [DFU] Writing to characteristic 8ec90001-f315-4f60-9fb8-838830daea50
08 01 - 12:41:37 DFUChildFragment -> [DFU] gatt.writeCharacteristic(8ec90001-f315-4f60-9fb8-838830daea50)
08 01 - 12:41:38 DFUChildFragment -> [DFU] Data written to 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 01-02-00-10-00-00
08 01 - 12:41:38 DFUChildFragment -> [DFU] Notification received from 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 60-01-01
08 01 - 12:41:38 DFUChildFragment -> [DFU] Data object (42/50) created
08 01 - 12:41:38 DFUChildFragment -> [DFU] Uploading firmware...
08 01 - 12:41:38 DFUChildFragment -> [DFU] Sending firmware to characteristic 8ec90002-f315-4f60-9fb8-838830daea50...
08 01 - 12:41:38 DFUChildFragment -> DFU Progress: 83, Speed: 1.5139911, avgSpeed: 1.9897585, Current Part: 1, Total Parts: 1, Device: E9:13:C9:4E:64:F3

and then just stops uploading. No disconnects, nothing. Any idea? I'm using sdk version 1.9.0 and a Xiaomi Redmi 4A, OS Level 25

DfuServiceInitiator dfuStarter = new DfuServiceInitiator(mNewDeviceAddress)
                .setDeviceName(ResourceUtils.getString(R.string.dfu_device_name))
                .setForeground(true)
                .setDisableNotification(true)
                .setKeepBond(true)
                .setPacketsReceiptNotificationsEnabled(true);

        if (VersionUtils.isAtLeastO()) {
            DfuServiceInitiator.createDfuNotificationChannel(mActivity);
        }

the DfuServiceController.abort(); does not work in this case.

Thank You!

papfonseca avatar Aug 26 '19 17:08 papfonseca