This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

BLE DFU update via Android hangs

Hi,

Using SDK12.1 with nrf52. Have SD and bootloader on the device and trying to load application via BLE DFU. It randomly gets stuck. (see attached screenshot)

And if I do it via nRF Connect App i get "[DFU] Invalid response received (response: 0x600408, expected: 0x6004..) ". Below is the full log:

14:37:24.367	[Broadcast] Action received: android.bluetooth.device.action.ACL_DISCONNECTED V	
14:37:24.457	Connecting to DB:CB:A0:27:8C:60... D	
14:37:24.466	gatt = device.connectGatt(autoConnect = false) D	
14:37:24.585	[Server callback] Connection state changed with status: 0 and new state: CONNECTED (2) D	
14:37:24.683	[Callback] Connection state changed with status: 0 and new state: CONNECTED (2) I	
14:37:24.693	[Server] Device with address DB:CB:A0:27:8C:60 connected I	
14:37:24.711	Connected to DB:CB:A0:27:8C:60 D	
14:37:24.792	[Broadcast] Action received: android.bluetooth.device.action.ACL_CONNECTED D 14:37:24.800	wait(600ms) V	
14:37:25.424	Discovering services... D	
14:37:25.511	gatt.discoverServices() D	
14:37:25.526	[Callback] Services discovered with status: 0 I	
14:37:25.552	Services discovered V	14:37:25.662	Generic Access (0x1800) - Device Name [R W] (0x2A00) - Appearance [R] (0x2A01) - Peripheral Preferred Connection Parameters [R] (0x2A04) - Central Address Resolution [R] (0x2AA6) Generic Attribute (0x1801) Secure DFU Service (0xFE59) - DFU Packet [WNR] (8ec90002-f315-4f60-9fb8-838830daea50) - DFU Control Point [N W] (8ec90001-f315-4f60-9fb8-838830daea50)    Client Characteristic Configuration (0x2902) V	
14:37:47.461	Disconnecting... V	
14:37:47.550	[Server] Cancelling server connection... D	
14:37:47.559 server.cancelConnection(device) D	
14:37:47.584	gatt.disconnect() D	
14:37:47.646	[Server callback] Connection state changed with status: 0 and new state: DISCONNECTED (0) D 
14:37:47.669	[Callback] Connection state changed with status: 0 and new state: DISCONNECTED (0) I	
14:37:47.694	[Server] Device disconnected I	
14:37:47.715	Disconnected D 
14:37:47.739	gatt.refresh() (hidden) D	
14:37:47.754	gatt.close() D	
14:37:47.845	[Broadcast] Action received: android.bluetooth.device.action.ACL_DISCONNECTED V	14:37:47.880	[DFU] DFU service started V	14:37:47.893	[DFU] Opening file... I	
14:37:47.902	[DFU] Image file opened (28180 bytes in total) D	
14:37:47.911	[DFU] wait(1000) D	
14:37:48.904	[DFU] wait(1000) V 
14:37:49.899	[DFU] Connecting to DFU target... D	
14:37:49.913	[DFU] gatt = device.connectGatt(autoConnect = false) D	
14:37:50.098	[Server callback] Connection state changed with status: 0 and new state: CONNECTED (2) I	
14:37:50.119	[DFU] Connected to DB:CB:A0:27:8C:60 I	
14:37:50.129	[Server] Device with address DB:CB:A0:27:8C:60 connected V	
14:37:50.136	[DFU] Discovering services... D	
14:37:50.146	[DFU] gatt.discoverServices() D	
14:37:50.156	[Broadcast] Action received: android.bluetooth.device.action.ACL_CONNECTED I	14:37:50.747	[DFU] Services discovered D	
14:37:50.781	[DFU] wait(1000) V	
14:37:51.761	[DFU] Enabling notifications for 8ec90001-f315-4f60-9fb8-838830daea50 D	14:37:51.776	[DFU] gatt.setCharacteristicNotification(8ec90001-f315-4f60-9fb8-838830daea50, true) D	
14:37:51.786	[DFU] gatt.writeDescriptor(00002902-0000-1000-8000-00805f9b34fb, value=0x01-00) I 
14:37:51.796	[DFU] Data written to descr.8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 01-00 V	
14:37:51.806	[DFU] Notifications enabled for 8ec90001-f315-4f60-9fb8-838830daea50 A 14:37:51.816	[DFU] Notifications enabled D	14:37:51.826	[DFU] wait(1000) V	14:37:52.806	[DFU] Writing to characteristic 8ec90001-f315-4f60-9fb8-838830daea50 D	14:37:52.818	[DFU] gatt.writeCharacteristic(8ec90001-f315-4f60-9fb8-838830daea50) I	14:37:52.827	[DFU] Notification received from 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 60-06-01-00-01-00-00-90-00-00-00-51-CD-B6-A6 I	
14:37:52.837	[DFU] Data written to 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 60-06-01-00-01-00-00-90-00-00-00-51-CD-B6-A6 A	
14:37:52.845	[DFU] Command object info received (Max size = 256, Offset = 144, CRC = A6B6CD51) A	
14:37:52.854	[DFU] Received CRC match Init packet V	
14:37:52.863	[DFU] Writing to characteristic 8ec90001-f315-4f60-9fb8-838830daea50 D	
14:37:52.872	[DFU] gatt.writeCharacteristic(8ec90001-f315-4f60-9fb8-838830daea50) I	
14:37:52.882	[DFU] Notification received from 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 60-04-01 I	
14:37:52.891	[DFU] Data written to 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 60-04-01 A	
14:37:52.901	[DFU] Command object executed V	
14:37:52.910	[DFU] Writing to characteristic 8ec90001-f315-4f60-9fb8-838830daea50 D	14:37:52.920	[DFU] gatt.writeCharacteristic(8ec90001-f315-4f60-9fb8-838830daea50) I 14:37:52.931	[DFU] Notification received from 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 60-02-01 I	
14:37:52.943	[DFU] Data written to 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 60-02-01 A	
14:37:52.954	[DFU] Packet Receipt Notif Req (Op Code = 2) sent (Value = 10) D	
14:37:52.969	[Server callback] Connection state changed with status: 0 and new state: DISCONNECTED (0) V	
14:37:52.992	[DFU] Writing to characteristic 8ec90001-f315-4f60-9fb8-838830daea50 I	14:37:53.002	[Server] Device disconnected D	
14:37:53.010	[DFU] gatt.writeCharacteristic(8ec90001-f315-4f60-9fb8-838830daea50) I	
14:37:53.019	[DFU] Notification received from 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 60-06-01-00-10-00-00-00-10-00-00-66-43-46-21 I	
14:37:53.028	[DFU] Data written to 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 60-06-01-00-10-00-00-00-10-00-00-66-43-46-21 A	
14:37:53.037	[DFU] Data object info received (Max size = 4096, Offset = 4096, CRC = 21464366) A	
14:37:53.046	[DFU] 4096 bytes of data sent before, CRC match V	
14:37:53.055	[DFU] Writing to characteristic 8ec90001-f315-4f60-9fb8-838830daea50 D	
14:37:53.063	[DFU] gatt.writeCharacteristic(8ec90001-f315-4f60-9fb8-838830daea50) I	
14:37:53.072	[DFU] Notification received from 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 60-04-08 I	
14:37:53.081	[DFU] Data written to 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 60-04-08 E	
14:37:53.090	[DFU] Invalid response received (response: 0x600408, expected: 0x6004..) V	
14:37:53.100	[DFU] Disconnecting... D	14:37:53.110	[DFU] gatt.disconnect() I	
14:37:53.119	[DFU] Disconnected D	14:37:53.129	[DFU] gatt.refresh() (hidden) D	
14:37:53.139	[DFU] gatt.close() D	14:37:53.148	[DFU] wait(600) D	

Any idea what could be wrong? Thanks!!

Update package

Bootloader secure

Screenshot DFU App Android

Related