Hello!
I am facing some strange behaviour using nordics dfu update service on android.
Somtimes after starting the dfu upload the app is not able to connect to the dfu target with error 133:
I/DfuBaseService: Connecting to the device...
D/BluetoothGatt: connect() - device: C0:E3:F7:8A:4F:77, auto: false
D/BluetoothGatt: registerApp()
registerApp() - UUID=18abbf4d-9599-4c80-a028-4ef8fb58e83d
D/BluetoothGatt: onClientRegistered() - status=0 clientIf=9
D/BluetoothGatt: onClientConnectionState() - status=133 clientIf=9 device=C0:E3:F7:8A:4F:77
E/DfuBaseService: Connection state change error: 133 newState: 0
I/DfuBaseService: Connection error after: 30027 ms
E/DfuBaseService: Device not reachable. Check if the device with address C0:E3:F7:8A:4F:77 is in range, is advertising and is connectable
I/DfuBaseService: Attempt: 1
W/e.emotionmobil: Accessing hidden method Landroid/bluetooth/BluetoothGatt;->refresh()Z (unsupported, reflection, allowed)
D/BluetoothGatt: refresh() - device: C0:E3:F7:8A:4F:77
I/DfuBaseService: Refreshing result: true
Cleaning up...
D/BluetoothGatt: cancelOpen() - device: C0:E3:F7:8A:4F:77
D/BluetoothGatt: close()
unregisterApp() - mClientIf=9
I/DfuBaseService: Restarting the service
I/DfuBaseService: Starting DFU service in foreground
I/DfuBaseService: Connecting to the device...
When I am starting nrf connect app on the same mobile I suddenly get an connetion and update runs successful.
What does nrf connect at startup to "heal" ble in my app?
Does this question makes sense to anyone?
Thanks!
Andreas