Comments (2)
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:
- 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).
- Look into dmesg/system logs.
- Check if the USB cable is of good quality.
- 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.
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)
- anbox build issues HOT 3
- Thank you and intention to implement AA type package for Linux Phones HOT 3
- AAClient wireless connection HOT 3
- Getting newer certs HOT 24
- Minimal demo HOT 16
- exactly what I was looking for!
- May I use AACS in a x86 device?
- Impossible to build ... HOT 1
- Help needed ... HOT 5
- compilation error about including set HOT 1
- compilation error about including backward HOT 1
- anbox not starting HOT 1
- SSL error connecting to vehicle HOT 4
- I am looking at packaging this for debian can you review pull request and accept them
- Passthrough android auto from phone with some extra overlay/different screen size HOT 1
- Interested in This on Orange PI 5 with OpenPilot HOT 1
- Does not get recognized by Car Head Unit HOT 3
- I cannot connect to the Bluetooth of Genesis. HOT 1
- Use this in android apk HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aacs.