xseignard / cordovarduino

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

Crashes the application on serial.open and no device found on request.permission #125

Open xacegod opened 3 years ago

xacegod commented 3 years ago

Application has stopped working error once I call the function to connect to serial. Was working 2 months ago, now it simply crashes. On request permission I get no device found, on any driver or any setting. I tried everything I could for past few days...

To Reproduce Please share the following:

  1. Version of cordovarduino (latest) / cordova 10.0.0
  2. No idea, it is fiscal printer, I use the plugin to send and receive hex values.
  3. I use tablet 5.0.1, tablet 8.0, Razor phone 2 9.0, Tesla smartphone 8.1, and some other devices.

Expected behavior Connect to device via usb and send/receive hex strings.

mvaljento commented 3 years ago

Hi @xacegod, did you find any solution? I'm facing the same problem with an rfid reader device. I get permissions on request but then the app crashes.

EDIT: It turns out I was using the wrong driver. The CdcAcmSerialDriver crashed the whole app, while others simply gave error messages. FtdiSerialDriver was the one I'm now using.