UsbSerial icon indicating copy to clipboard operation
UsbSerial copied to clipboard

Help debugging

Open soreau opened this issue 5 years ago • 3 comments

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 avatar Sep 04 '19 17:09 soreau

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 avatar Sep 04 '19 17:09 soreau

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 avatar Sep 04 '19 17:09 soreau

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.

soreau avatar Sep 04 '19 21:09 soreau