Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Communication between PhoneGap, usb external device and Android host mode

I need to communicate with an external device with PhoneGap on Android.

It is working by bluetooth with a PhoneGap plugin. Now I want to communicate by the USB port.

Is is possible with PhoneGap, to have access to an external device, by using the USB host capabilities of an Android device?

Any existing PhoneGap / Cordova plugins?

Any examples?

I'm having a hard time finding something similar to prove my concept...

like image 980
iPeo Avatar asked Sep 18 '13 18:09

iPeo


People also ask

What is host mode and device mode in USB?

When the Android-powered device is in host mode, it acts as the USB host and powers the bus. When the Android-powered device is in USB accessory mode, the connected USB hardware (an Android USB accessory in this case) acts as the host and powers the bus.

What is host in USB?

USB host is the system that connects to multiple USB clients. For example, the PC is a USB host and it can connect to multiple USB clients like mice, keyboards, and mass storage devices. Implementing a USB client is rather simple but implementing a host is far more complicated.


1 Answers

I have developed such plugin, see https://github.com/xseignard/cordovarduino

Maybe it will fit your needs

like image 115
xavier.seignard Avatar answered Oct 11 '22 06:10

xavier.seignard