xseignard / cordovarduino

Cordova/Phonegap plugin for USB host serial communication from an Android device.
MIT License
166 stars 112 forks source link

Cannot connect multiple serial devices to Android Soc #92

Open 0x6d7a opened 6 years ago

0x6d7a commented 6 years ago

I am currently working on a project to connect two arduinos with my Android. I wonder how can Cordovarduino work with two arduinos? I cannot open multiple instances for serial communication.

xseignard commented 6 years ago

Hello,

Unfortunately it is impossible, it is a limitation of the underlying tech.

I'm not even sure this is achievable on Android.

Regards

DRSDavidSoft commented 6 years ago

@xseignard This is indeed achievable in Android:

Ctrl+F → driver.getPorts().get(0); (read the comments) https://github.com/mik3y/usb-serial-for-android/blob/master/README.md

xseignard commented 6 years ago

Well, PR are welcome :)