androidpythonusbpyserialsl4a

Interfacing android usb port with sl4a python


i am trying to interface an external hardware with my android device by using python through sl4a, can you guys tell me how i can read and write data from and to usb port?

i have tried pyserial module, but what i found is, it needs a usb to rs232 converter and usb host drivers and pl2303 drivers in kernel...i am a bit confused, i am using htc one v android 4.0.3, titanium kiss kernel(very close to stock kernel)

can anyone push me in right direction.

Tell me if pyserial will work for me or it need anything else?


Solution

  • pyserial is not working due to missing drivers in the Android kernel.

    However sl4a has builtin USB Host Serial support with good compatibility (example code here).