Home

Awesome

Termux (Android) LibUSB-1.0 Python 3 adapter (?)

See USB infos in termux wiki;

List connected USB devices and get ID:

termux-usb -l

Run script (test) with selected device:

termux-usb -r -e ./usbtest_rw1.py.sh /dev/bus/usb/001/002

Setup

Working with Python 3.8.

Theoretically only needs PyUSB. Enganced with IPython, PyFtdi (two formatting functions). Style check and formatting with Flake8 and Black.

Create environment:

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Why?

CP210x Serial module

Copyright and License Information

Hopefully my fix can be adopted in the original PyUSB library. Else, free for all. :-)

Copyright (c) 2019 Querela. All rights reserved.

See the file "LICENSE" for information on the history of this software, terms & conditions for usage, and a DISCLAIMER OF ALL WARRANTIES.

All trademarks referenced herein are property of their respective holders.