Giter VIP home page Giter VIP logo

Comments (2)

tomasz-grobelny avatar tomasz-grobelny commented on May 30, 2024

Error -7 is LIBUSB_ERROR_TIMEOUT. It is hard to say why that would happen when AAClient is communicating with your mobile device. Some ideas/questions:

  1. Does it work for you if you connect your mobile device to openauto directly? I once had a situation that my mobile device was very slow at establishing AA connection and I had to connect it several times before it actually started to work correctly (after that every connection was successful).
  2. Look into dmesg/system logs.
  3. Check if the USB cable is of good quality.
  4. Use DefaultChannelHandler instead of VideoChannelHandler/InputChannelHandler in both AAServer and AAClient. This potentially provides less opportunities for errors introduced by AACS, but I don't see how this could affect this libusb error.

Please let me know if you find something out.

from aacs.

rahulsangwn avatar rahulsangwn commented on May 30, 2024

First, I looked into the dmesg logs and found out a message usbfs: process 1855 (AAClient) did not claim interface 0 before use . Using below code i got rid of this message

if (libusb_kernel_driver_active(handle, interface)) {
     if (libusb_detach_kernel_driver(handle, interface)) {}
}
libusb_claim_interface(handle, interface)

At this point my problem was still unresolved, Open E: in transfer failed: -7.

Then, I use DefaultChannelHandler instead of other handlers in both AAServer and AAClient, which solved my problem completely.

Thank You for your valuable suggestions.

from aacs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.