mik3y / usb-serial-for-android

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

USB for debug and for device communication #542

Closed mpiffari closed 11 months ago

mpiffari commented 11 months ago

Hello folks and @kai-morich , A simple question: do you know a way to use USB connection both for debug and for connection with an external USB device?

Jai-GAY commented 11 months ago

Connect to a device over Wi-Fi, check this out.

Use mobile hotspot if you are using window.

mpiffari commented 11 months ago

Hi @Jai-GAY, is this the only solution available? I've tried this in the past weeks, and it seems so slow (with a Xamarin forms app).

Someone has implemented an hw solution (maybe with particular cable connection)?

Jai-GAY commented 11 months ago

Someone has implemented an hw solution (maybe with particular cable connection)?

Don't think so. Power + video + data, yes . Power + data (host) + data (slave), I haven't seen one yet.

so slow (with a Xamarin forms app)

Then it could be your IDE issue not Wifi debugging. you should feedback to the IDE developer. Reasonable for Android Studio.

kai-morich commented 11 months ago

With external USB device the port is switched to host mode with OTG adapter. When debugging it is in slave mode with regular USB cable. I really doubt that this can be mixed.

mpiffari commented 11 months ago

@kai-morich thanks for your hints. So, how did you approach the problem? Did you use wi-fi debugging?

kai-morich commented 11 months ago

Yes. Use Wi-Fi debugging