xseignard / cordovarduino

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

Unknown Driver Error #103

Open raymondbarrot opened 6 years ago

raymondbarrot commented 6 years ago

I already have the vid and pid of the device but when I put the driver which is 'NXP' the code throws "unknown driver" error. Here is the sample code:

this.serial.requestPermission({ vid:'1FC9', pid:'0083', driver: 'NXP'}).then(() => { this.serial.open({ baudRate: 9600, dataBits: 4, stopBits: 1, parity: 0, dtr: true, rts: true, sleepOnPause: false }).then(() => { this.showToast('Serial Port Connected!'); }); }).catch((error: any) => this.showToast(error));

What driver should I use as a parameter to requestPermission method? Thank you.

raymondbarrot commented 6 years ago

Is OTG capability required for the phone to use this? Thank you.