You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR enhances pyserial to support serial connections on Android via Chaquopy and usb-serial-for-android. It enables pyserial to work in Android environments, specifically for firmware flashing tools like esptool.py.
Motivation
Android firmware developers need reliable serial connections to flash devices like ESP32/ESP8266 from Android apps. esptool.py, which uses pyserial, faces compatibility issues on Android. This PR integrates usb-serial-for-android to address this.
Description
This PR enhances
pyserial
to support serial connections on Android via Chaquopy and usb-serial-for-android. It enablespyserial
to work in Android environments, specifically for firmware flashing tools likeesptool.py
.Motivation
Android firmware developers need reliable serial connections to flash devices like ESP32/ESP8266 from Android apps.
esptool.py
, which usespyserial
, faces compatibility issues on Android. This PR integratesusb-serial-for-android
to address this.Context
Addresses the following issues: #192, #428, #603, #762
Implementation
Chaquopy enables Python within Android, allowing
pyserial
to run.usb-serial-for-android is integrated to provide Android-compatible serial drivers.
Example Usage: Call
pyserial
-based functions from Android using Kotlin.Python Script: Sample upload_firmware.py for ESP32-S3 flashing via esptool.py.
Testing
Demo App: https://github.com/xCarlost/FirmwareFlasher
This app flashes a test firmware onto an ESP32-S3.
@mcuee, @bdureau
This issue has been cloned from: pyserial#780
The text was updated successfully, but these errors were encountered: