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

Gettogm error : libusb: pipe error [code -9] #6

Open
rohitsangwan01 opened this issue Mar 24, 2024 · 4 comments
Open

Gettogm error : libusb: pipe error [code -9] #6

rohitsangwan01 opened this issue Mar 24, 2024 · 4 comments

Comments

@rohitsangwan01
Copy link

Hey, am trying on MacM1 , and getting error

libusb: pipe error [code -9]

when try to send keyboard message, i used the exact same code sample you mentioned in readme

@Tryanks
Copy link
Owner

Tryanks commented Mar 25, 2024

Hi, could you try otg mode of the scrcpy?
Scrcpy is a great project and my code is based on this.
Let me know what Android mobile device you used and how otg mode runs on it.

@rohitsangwan01
Copy link
Author

@Tryanks otg mode works fine for me, i tried in OnePlus Nord and Samsung Galaxy Note20, and same error in both devices
i tried replicating the code from your's and scrcpy section in dart ( a wrapper over libusb ), and strangely i also got the same error message when tried calling SendEvent, seems like something is missing in the implementation

@Tryanks
Copy link
Owner

Tryanks commented Mar 25, 2024

Sorry, but since I don't have an M1 Mac (nor an Intel Mac), I'm not entirely confident in fixing the issue you've encountered here.
The main probrom is that I can't get any clues that might help with the fix from just a pipe error, which work in the very majority of my use cases: Arm/Amd64 | Windows/Linux.
I'll try to check code again later.

@rohitsangwan01
Copy link
Author

@Tryanks ok thanks, i will give it a try on windows

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

2 participants