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

Can you add usbserial support? #37

Open
kk580kk opened this issue Sep 14, 2022 · 3 comments
Open

Can you add usbserial support? #37

kk580kk opened this issue Sep 14, 2022 · 3 comments

Comments

@kk580kk
Copy link

kk580kk commented Sep 14, 2022

Android device that not support USB serial, so I need a app can create ttyUSB0 file for python app read.

@tejado
Copy link
Owner

tejado commented Nov 8, 2022

I added a serial gadget using ACM function:
7e29b44

It might require a specific Android ROM which has ACM activated. I will look into other functions which could be an alternative to ACM abd are usually part of Android.

@kk580kk
Copy link
Author

kk580kk commented Nov 10, 2022

My device is XIAOMI pad 5, and this rom didn't have usb serial driver lib.

1|nabu:/system/lib # modprobe -d /vendor/lib/modules usbserial vendor=0x1a86 product=0x7523
modprobe: alias lines in modules.alias must have 3 entries, not 5
modprobe: alias lines in modules.alias must have 3 entries, not 4
modprobe: alias lines in modules.alias must have 3 entries, not 4
modprobe: alias lines in modules.alias must have 3 entries, not 4
modprobe: LoadWithAliases was unable to load usbserial
modprobe: Failed to load module usbserial: No such file or directory

Can you add gadget serial support like
https://android.googlesource.com/kernel/common/+/bcmdhd-3.10/Documentation/usb/gadget_serial.txt

@tejado
Copy link
Owner

tejado commented Nov 10, 2022

I did - it is in the commit I pointed out before. It is done over gadget CDC ACM (see your link).
Can you provide me your Device Info in Android USB Gadget tool app on your device?

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