xseignard / cordovarduino

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

What driver is usable with this plugin ? #109

Open emulsion-io opened 6 years ago

emulsion-io commented 6 years ago

The bug

I try to connect 2 board:

1-Arduino UNO : connect TRUE 2-FlightControler for drone (STM32F) : connect FALSE

The developper of firmwear of FC say :

There are basically two classes of USB devices used by all FCs:
Type 1. Using a Silabs CP2103 USB interface chip.
1.1 Needs the Silabs CP210x driver. Used in both BootLoader mode for flashing and normal config mode. Shows up as a "COMx" device in BFC.
http://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers

Type 2. Using the MCU integrated STM32 VCP USB interface.
2.1 Needs WinUSB driver when in BootLoader mode, for flashing. Installed by Zadig or ImpulseRC DF. Shows up as a "DFU" device in BFC.
2.2 Needs STM VCP driver for connection and configuration with BFC Shows up as a "COMx" device in BFC.

What driver is usable with this plugin ?

Thanks

xseignard commented 6 years ago

Hello,

Did you check this part of the documentation: https://github.com/xseignard/cordovarduino/blob/master/README.md#your-device-is-not-yet-known ?

CP210x should be ok, not sure about the STM32 USB interface.

Regards

xseignard commented 6 years ago

?

emulsion-io commented 6 years ago

Thanks for the link i see, i try to set uid but not working,

Impossible to find driver cordova plugin for stm32.

Le sam. 1 déc. 2018 à 15:55, Xavier Seignard notifications@github.com a écrit :

?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/xseignard/cordovarduino/issues/109#issuecomment-443431869, or mute the thread https://github.com/notifications/unsubscribe-auth/ABaEeX_8Qs8fu34lyy5QonMTToTDqvvyks5u0phIgaJpZM4Yxiir .

xseignard commented 6 years ago

Is the following is working?

serial.requestPermission({
        vid: <your_vid>,
        pid: <your_pid>,
        driver: 'Cp21xxSerialDriver',
    },
    function success(),
    function error()
);

If not, I guess you have a type 2 FC. Two options for you then:

Hope this helps