juliansteenbakker / nordic_dfu

Execute a Device Firmware Update (DFU) on your nRF51 or nRF52 chip from Nordic Semiconductor. Fork from flutter_nordic_dfu.
MIT License
28 stars 29 forks source link

DFU Fails on iOS but Succeeds on Android (DFU Error Code : 302) #159

Open Soulddgy opened 1 month ago

Soulddgy commented 1 month ago

I'm experiencing an issue with DFU on iOS. While the DFU process works correctly on Android, it fails on iOS. I am using the same MAC address and UUID for both the bootloader and Bluetooth device, which seems to be causing the problem. On iOS, I receive a "DFU Service not found" error. I suspect this is related to the way iOS handles Bluetooth connections. Any guidance or suggestions would be greatly appreciated.

console :

flutter: remote id for dfu : 6949E5E4-3A02-F8AA-AD92-B9DE3583AE72 flutter: 1-2024-08-08 13:50:56.772355 -- PublishingManager::publish - entered with topic D1 flutter: DFU error: PlatformException(302, DFU FAILED: DFU Service not found, Address: 6949E5E4-3A02-F8AA-AD92-B9DE3583AE72, Error type 302, null)

And this is my startDfu code :

image