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

Show better error descriptions #95

Open
incognitojam opened this issue Feb 3, 2025 · 2 comments
Open

Show better error descriptions #95

incognitojam opened this issue Feb 3, 2025 · 2 comments

Comments

@incognitojam
Copy link
Member

incognitojam commented Feb 3, 2025

Instead of showing "Flash failed" with generic instructions, we might know the cause of a particular error.

Examples:

  • NotFoundError: Failed to execute '*' on 'USBDevice': The device was disconnected.
    • Most likely caused by the device being unplugged/faulty cable
  • NetworkError: Failed to execute '*' on 'USBDevice': A transfer error has occurred.
    • The device has stopped responding or we are unable to communicate with the device. Either an issue with qcserial driver being bound to the device, the device is in a bad state, or the power delivered to the device is not enough.
  • SecurityError: Failed to execute 'open' on 'USBDevice': Access denied.
    • This may be caused by udev rules preventing communication with the device - example rules here
  • NetworkError: Failed to execute 'claimInterface' on 'USBDevice': Unable to claim interface.
    • Likely caused by qcserial driver being bound to the device.
@incognitojam
Copy link
Member Author

With a comma three (serial 696f4917) and single USB cable (no power delivered to OBD-C port) I encountered the A transfer error has occurred. error today. I'm not sure what percentage it reached but it had almost finished flashing system.

Image

I don't have a process for debugging this yet - I wonder whether QDL sent us any error response before we lost connection and whether qdl.js isn't reporting it

@incognitojam
Copy link
Member Author

incognitojam commented Feb 20, 2025

I tried again and got the same error. Trying a third time but with power delivered to the OBD-C port was successful.

Will see if this is still an issue after flashing is fast (no unsparsify)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant