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

pyserial on android device #192

Open
harryberlin opened this issue Dec 27, 2016 · 1 comment
Open

pyserial on android device #192

harryberlin opened this issue Dec 27, 2016 · 1 comment

Comments

@harryberlin
Copy link

harryberlin commented Dec 27, 2016

Hello

i tried to use a usb serial silabs on my android tablet on kodi (xbmc). the serial device got the path "/dev/bus/usb/001/002"
for pySerial i needed to download the modul importlib and placed in serial folder.
but pyserial can't open the device.
there are some other access rights required?

to be sure the device is working. i did a small test with the app UDevTerm. result was ok.

@zsquareplusc
Copy link
Member

Android does not come with drivers for USB devices (except some support for HID and mass storage profiles). So there is no serial device provided by the Kernel and pySerial won't work here.

You may be able to write an URL handler that works with the low-level USB API that android provides, but that may also depend on the Python binding you are using, if it exposes that Android API. In any case you need to know how to talk to the USB firmware. There are also USB-Serial libraries for Android, that do this low-level stuff. The App you have used to test most likely uses one of those.

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