mik3y / usb-serial-for-android

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

Can't get data because the phone detected Arduino as charger #370

Closed lythamhoa closed 3 years ago

lythamhoa commented 3 years ago

I've used mik3y for my app get data from Arduino Leonardo via USB, it's very good but when I reboot my phone, the phone get the power from Arduino USB port as charger instead of the Host. I have reset the Arduino but can't solve the problem. Only one way to solve it's disconnect then reconnect USB cable. Anyway help!

kai-morich commented 3 years ago

reboot behavior is not controllable by this library

lythamhoa commented 3 years ago

Anyway to help? my project will run 12/24 and it'll start at 5:00AM everyday.

On Tue, Jun 29, 2021 at 10:37 PM kai-morich @.***> wrote:

reboot behavior is not controllable by this library

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mik3y/usb-serial-for-android/issues/370#issuecomment-870705988, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOI23ZIT64EBYHQKMP7WRHTTVHSC3ANCNFSM47FVO6JA .

kai-morich commented 3 years ago

reboot behavior documented here: https://github.com/mik3y/usb-serial-for-android/wiki/FAQ#How_to_persist_USB_permission