This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

DFU Services discovered error 129 (0x81) and 133 (0x85)

SDK: 12.3

Soft Device: s130

Phone: HUAWEI P9 Lite

Android version: 6.0

I use the Phone(HUAWEI P9 Lite) and Android-nRF-Toolbox app to do Device Firmware Update.
But it always error when the phone connecting devices that are in DFU mode.
nRF connect app log show:
====================================
nRF Connect, 2019-02-27
DfuTarg (ED:AE:B6:19:2E:36)
V 09:32:46.932 Connecting to ED:AE:B6:19:2E:36...
D 09:32:46.933 gatt = device.connectGatt(autoConnect = false, TRANSPORT_LE)
D 09:32:47.119 [Callback] Connection state changed with status: 0 and new state: CONNECTED (2)
I 09:32:47.119 Connected to ED:AE:B6:19:2E:36
D 09:32:47.140 [Broadcast] Action received: android.bluetooth.device.action.ACL_CONNECTED
V 09:32:47.147 Discovering services...
D 09:32:47.147 gatt.discoverServices()
D 09:33:17.630 [Callback] Services discovered with status: 129
E 09:33:17.639 Error 129 (0x81): GATT INTERNAL ERROR
D 09:33:17.645 [Callback] Connection state changed with status: 133 and new state: DISCONNECTED (0)
E 09:33:17.645 Error 133 (0x85): GATT ERROR
I 09:33:17.645 Disconnected
D 09:33:19.648 [Broadcast] Action received: android.bluetooth.device.action.ACL_DISCONNECTED
====================================
nRF Connect, 2019-02-27
DfuTarg (ED:AE:B6:19:2E:36)
V	09:32:46.932	Connecting to ED:AE:B6:19:2E:36...
D	09:32:46.933	gatt = device.connectGatt(autoConnect = false, TRANSPORT_LE)
D	09:32:47.119	[Callback] Connection state changed with status: 0 and new state: CONNECTED (2)
I	09:32:47.119	Connected to ED:AE:B6:19:2E:36
D	09:32:47.140	[Broadcast] Action received: android.bluetooth.device.action.ACL_CONNECTED
V	09:32:47.147	Discovering services...
D	09:32:47.147	gatt.discoverServices()
D	09:33:17.630	[Callback] Services discovered with status: 129
E	09:33:17.639	Error 129 (0x81): GATT INTERNAL ERROR
D	09:33:17.645	[Callback] Connection state changed with status: 133 and new state: DISCONNECTED (0)
E	09:33:17.645	Error 133 (0x85): GATT ERROR
I	09:33:17.645	Disconnected
D	09:33:19.648	[Broadcast] Action received: android.bluetooth.device.action.ACL_DISCONNECTED
nRF Connect, 2019-02-27
HIROIA JIMMY (ED:AE:B6:19:2E:35)
V	09:48:22.994	Connecting to ED:AE:B6:19:2E:35...
D	09:48:22.994	gatt = device.connectGatt(autoConnect = false, TRANSPORT_LE)
D	09:48:23.721	[Callback] Connection state changed with status: 0 and new state: CONNECTED (2)
I	09:48:23.721	Connected to ED:AE:B6:19:2E:35
D	09:48:23.744	[Broadcast] Action received: android.bluetooth.device.action.ACL_CONNECTED
V	09:48:23.767	Discovering services...
D	09:48:23.767	gatt.discoverServices()
D	09:48:25.373	[Callback] Services discovered with status: 0
I	09:48:25.373	Services discovered
V	09:48:25.412	Generic Access (0x1800)
- Device Name [R W] (0x2A00)
- Appearance [R] (0x2A01)
- Peripheral Preferred Connection Parameters [R] (0x2A04)
Generic Attribute (0x1801)
Experimental Buttonless DFU Service (8e400001-f315-4f60-9fb8-838830daea50)
- Experimental Buttonless DFU [N W] (8e400001-f315-4f60-9fb8-838830daea50)
 Client Characteristic Configuration (0x2902)
Unknown Service (06c31822-8682-4744-9211-febc93e3bece)
- Unknown Characteristic [N R] (06c31824-8682-4744-9211-febc93e3bece)
 Client Characteristic Configuration (0x2902)
- Unknown Characteristic [R W] (06c31823-8682-4744-9211-febc93e3bece)
- Unknown Characteristic [R] (06c31825-8682-4744-9211-febc93e3bece)
- Unknown Characteristic [R] (06c31826-8682-4744-9211-febc93e3bece)
- Unknown Characteristic [R] (06c31827-8682-4744-9211-febc93e3bece)
- Unknown Characteristic [R] (06c31828-8682-4744-9211-febc93e3bece)
- Unknown Characteristic [W] (06c31829-8682-4744-9211-febc93e3bece)
- Unknown Characteristic [R] (06c31830-8682-4744-9211-febc93e3bece)
- Unknown Characteristic [I R] (06c31831-8682-4744-9211-febc93e3bece)
 Client Characteristic Configuration (0x2902)
Battery Service (0x180F)
- Battery Level [N R] (0x2A19)
 Client Characteristic Configuration (0x2902)
D	09:48:25.412	gatt.setCharacteristicNotification(06c31824-8682-4744-9211-febc93e3bece, true)
D	09:48:25.414	gatt.setCharacteristicNotification(06c31831-8682-4744-9211-febc93e3bece, true)
D	09:48:25.417	gatt.setCharacteristicNotification(00002a19-0000-1000-8000-00805f9b34fb, true)
V	09:48:43.288	[DFU] DFU service started
V	09:48:43.288	[DFU] Opening file...
I	09:48:43.315	[DFU] Firmware file opened successfully
V	09:48:43.315	[DFU] Connecting to DFU target...
D	09:48:43.316	[DFU] gatt = device.connectGatt(autoConnect = false)
I	09:48:43.328	[DFU] Connected to ED:AE:B6:19:2E:35
V	09:48:43.329	[DFU] Discovering services...
D	09:48:43.329	[DFU] gatt.discoverServices()
I	09:48:43.339	[DFU] Services discovered
D	09:48:43.361	[DFU] wait(1000)
W	09:48:44.373	[DFU] Application with buttonless update found
V	09:48:44.373	[DFU] Jumping to the DFU Bootloader...
V	09:48:44.373	[DFU] Enabling notifications for 8e400001-f315-4f60-9fb8-838830daea50
D	09:48:44.373	[DFU] gatt.setCharacteristicNotification(8e400001-f315-4f60-9fb8-838830daea50, true)
D	09:48:44.373	[DFU] gatt.writeDescriptor(00002902-0000-1000-8000-00805f9b34fb, value=0x01-00)
I	09:48:44.506	[DFU] Data written to descr.8e400001-f315-4f60-9fb8-838830daea50, value (0x): 01-00
V	09:48:44.506	[DFU] Notifications enabled for 8e400001-f315-4f60-9fb8-838830daea50
A	09:48:44.506	[DFU] Notifications enabled
D	09:48:44.506	[DFU] wait(1000)
V	09:48:45.602	[DFU] Writing to characteristic 8e400001-f315-4f60-9fb8-838830daea50
D	09:48:45.602	[DFU] gatt.writeCharacteristic(8e400001-f315-4f60-9fb8-838830daea50)
I	09:48:45.626	[DFU] Notification received from 8e400001-f315-4f60-9fb8-838830daea50, value (0x): 20-01-01
A	09:48:45.626	[DFU] Enter bootloader sent (Op Code = 1)
A	09:48:45.626	[DFU] Response received (Op Code = 1, Status = 1)
D	09:48:45.703	[Callback] Connection state changed with status: 0 and new state: DISCONNECTED (0)
I	09:48:45.703	Disconnected
D	09:48:45.704	gatt.refresh() (hidden)
I	09:48:45.737	[DFU] Disconnected by the remote device
D	09:48:45.737	[DFU] gatt.refresh() (hidden)
D	09:48:45.737	[DFU] gatt.close()
V	09:48:45.737	[DFU] Scanning for the DFU Bootloader...
D	09:48:45.830	[Broadcast] Action received: android.bluetooth.device.action.ACL_DISCONNECTED
D	09:48:45.843	[DFU] [Broadcast] Action received: android.bluetooth.device.action.ACL_DISCONNECTED
I	09:48:45.921	[DFU] DFU Bootloader found with address ED:AE:B6:19:2E:36
V	09:48:45.939	[DFU] DFU service started
I	09:48:45.939	[DFU] Firmware file opened successfully
D	09:48:45.939	[DFU] wait(1000)
D	09:48:46.939	[DFU] wait(1000)
V	09:48:47.935	[DFU] Connecting to DFU target...
D	09:48:47.987	[DFU] gatt = device.connectGatt(autoConnect = false)
I	09:48:48.279	[DFU] Connected to ED:AE:B6:19:2E:36
V	09:48:48.279	[DFU] Discovering services...
D	09:48:48.279	[DFU] gatt.discoverServices()
D	09:48:48.440	[DFU] [Broadcast] Action received: android.bluetooth.device.action.ACL_CONNECTED
E	09:49:18.670	[DFU] Connection failed (0x81): GATT INTERNAL ERROR
W	09:49:18.671	[DFU] Retrying...
V	09:49:18.671	[DFU] Disconnecting...
D	09:49:18.673	[DFU] gatt.disconnect()
I	09:49:18.702	[DFU] Disconnected
D	09:49:18.703	[DFU] gatt.refresh() (hidden)
D	09:49:18.703	[DFU] gatt.close()
V	09:49:18.714	[DFU] DFU service started
I	09:49:18.714	[DFU] Firmware file opened successfully
D	09:49:18.714	[DFU] wait(1000)
D	09:49:19.757	[DFU] wait(1000)
D	09:49:20.670	[DFU] [Broadcast] Action received: android.bluetooth.device.action.ACL_DISCONNECTED
V	09:49:20.792	[DFU] Connecting to DFU target...
D	09:49:20.793	[DFU] gatt = device.connectGatt(autoConnect = false)
E	09:49:21.068	[DFU] Error 133: Connection timeout
D	09:49:21.069	[DFU] gatt.refresh() (hidden)
D	09:49:21.070	[DFU] gatt.close()
D	09:49:21.073	[DFU] wait(600)
D	09:49:21.675	gatt.close()
D	09:49:21.677	wait(200)
V	09:49:21.879	Connecting to ED:AE:B6:19:2E:35...
D	09:49:21.879	gatt = device.connectGatt(autoConnect = false, TRANSPORT_LE)
D	09:49:51.893	[Callback] Connection state changed with status: 133 and new state: DISCONNECTED (0)
E	09:49:51.893	Error 133 (0x85): GATT ERROR
I	09:49:51.893	Disconnected
How can't I fix the issues?
Parents Reply Children
Related