fengqiangboy / flutter-nordic-dfu

Flutter Nordic dfu
MIT License
109 stars 77 forks source link

"DFU ERROR" on iOS randomly #5

Closed toddwilson closed 5 years ago

toddwilson commented 5 years ago

Often, when attempting a DFU on iOS, the progress gets to 4% and then I'll get the string "DFU FAILED" as the return from FlutterNordicDfu.startDfu(). Is there a way to get more informative error messages from the underlying DFU library?

fengqiangboy commented 5 years ago

I think you can run the native project in iOS folder,and then, set breakpoint in the native code.

toddwilson commented 5 years ago

The issue ended up being the default value for packetReceiptNotificationParameter (12) can be too high on iPhones XS and XR and this will cause packets to invalidate. Setting to 1 resolves the issue. There is a similar issue on the iOS DFU Pods Github.

fengqiangboy commented 5 years ago

NordicSemiconductor/IOS-Pods-DFU-Library#308