felHR85 / UsbSerial

Usb serial controller for Android
MIT License
1.78k stars 582 forks source link

Help debugging #281

Open soreau opened 4 years ago

soreau commented 4 years ago

Hi, I have a bluepill maple device working (when plugged to PC) but when I plug it to android, I cannot see any debug statements I put in the read function. I tried putting the output in a textview from a runnable to run on main thread but it does nothing. I tried to get air-adb working and I can get it to connect via tools->enable adb over wifi but that doesn't work either. I disconnect the phone from usb after doing this and I can no longer communicate with the phone. I can adb connect ip:5555 manually but this does not yield any debug messages in studio logcat. Any help is appreciated.

soreau commented 4 years ago

Actually I can run the app over wifi, it's just I get no debug output in logcat. It says 'no debuggable process' in red in logcat process dropdown.

soreau commented 4 years ago

Actually it shows 'no debuggable process' even if plugged to usb but I get messages when plugged. I get no messages at all over wifi, for my app or otherwise. It only starts outputting when I plug to usb.

soreau commented 4 years ago

Data read handler is being called now after using code from http://nilhcem.com/android-things/usb-communications but I still don't get any messages in logcat connected over wifi.