Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DFU process gets stuck after a few retries #498

Open
juliansteenbakker opened this issue Jan 5, 2023 · 0 comments
Open

DFU process gets stuck after a few retries #498

juliansteenbakker opened this issue Jan 5, 2023 · 0 comments
Labels

Comments

@juliansteenbakker
Copy link
Contributor

DFU Bootloader version

  • SDK version: SDK 15.2.0
  • Bonding used: No
  • Library version: 4.13.0 and master

Device information

  • Device: iPad 2019
  • OS: iOS 16.2

Describe the bug
I've created a plugin for Flutter which uses this pod. If a DFU has failed, i retry it up to 10 times. On Android with the android pod, this works without a problem, however on the iOS pod the process gets stuck after 2, 3 or sometimes 4 retries. Below you can see the log. It seems like it gets stuck after D: centralManager.cancelPeripheralConnection(peripheral). I've searched through the code and saw it gets printed here:

self.logger.d("centralManager.cancelPeripheralConnection(peripheral)")

I've tried searching why it hangs on this point after the second time, but i couldn't find the source of the problem. I hope someone else has a clue as to what happens here.

Logs

(first retry)
D: [Callback] Central Manager did update state to: Powered ON
V: Connecting to device...
D: centralManager.connect(peripheral, options: nil)
W: Connection timeout!
D: centralManager.cancelPeripheralConnection(peripheral)
E: [Callback] Central Manager failed to connect to peripheral (timeout)
flutter: PlatformException(201, DFU FAILED: Device failed to connect, Address: (removed), Error type 201, null)
(second retry)
D: [Callback] Central Manager did update state to: Powered ON
V: Connecting to device...
D: centralManager.connect(peripheral, options: nil)
W: Connection timeout!
D: centralManager.cancelPeripheralConnection(peripheral)
(stops working from here)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant