mik3y / usb-serial-for-android

Android USB host serial driver library for CDC, FTDI, Arduino and other devices.
MIT License
4.81k stars 1.58k forks source link

Android to Arduino physical device code upload connectivity issue #525

Closed ayushimundra30 closed 11 months ago

ayushimundra30 commented 1 year ago

I went through your repo found useful Android USB host OTG mode enable .

I have query this is just an library to enable the USB host OTG mode in Android latest version for an serial communication . We have to add this library code in existing project with actually do burning code to physical device Arduino using ATmega328 device driver . Link : https://github.com/ksksue/PhysicaloidLibrary Currently using above code I am getting connectivity issue .

Please correct me if my understanding wrong or directly using your code device drivers physical boards inbuild and burn the code ?

Regards Ayushi Mundra

kai-morich commented 1 year ago

You can use both libraries for communication but only the physicaloid or other library for firmware upload. You have to try out if usb-serial-for-android library solves your communication issues.

If your device does long lasting operations and not handle usb data in the main loop you might get data loss or other communication issues.

ayushimundra30 commented 1 year ago

Hi Kai , As per suggestion ,Including the library dependencies and manifest file permission will resolve the connectivity issue cannot open device .

can you please suggest which usb-serial example code reference help me to integrate with firmware library upload to support connectivity

kai-morich commented 1 year ago

firmware upload is functionality on top of this library. please check physicaloid or other resources.