flutter_libserialport
flutter_libserialport copied to clipboard
SerialPortError (SerialPortError: Permission denied, errno = 13)
Hi everyone,
I'm trying to run the example of the flutter_serialport lib, but it doesn't work on the android system, only windows, can anyone help me?
Hi, perhaps the discussion at https://github.com/jpnurmi/libserialport.dart/issues/3 helps
Hellow, I saw this thread but I didn't understand where those directories came from
Someone made it work?
Hello, I have the same problem and so far I haven't seen a solution on the forums. Can you help me?
Anyone with a solution for this?
Hi, perhaps the discussion at jpnurmi/libserialport.dart#3 helps
“ Permission denied, errno = 13 ” Is there a tutorial on how to solve it?
I have the same problem
This lib should be updated to use the new android permissions handling, see https://github.com/altera2015/usbserial/blob/master/android/src/main/java/dev/bessems/usbserial/UsbSerialPlugin.java
That lib, usbserial, could be used instead of this one until it's fixed here I think.
I have the same problem, is it fix yet?
still same problem guys, is it fix yet? Thanks
Hello, still have the same problem, does someone has a solution?
am also having the same problem. any fix?
only my "fix" from above
I make it work using the native implementation of Flutter. in native use this in gradle io.github.xmaihh:serialport:2.1.1
I make it work using the native implementation of Flutter. in native use this in gradle io.github.xmaihh:serialport:2.1.1
is it possible for you to put the steps on how you solved it, unfortunately, I have zero knowledge of the native structure.
you can use MethodChannel to communicate to native here is the sample. You will get the callback in flutter from java or kotlin.
https://medium.com/@iiharish97ii/method-channel-in-flutter-bridging-native-code-and-flutter-with-two-way-communication-788d1e91c8c1
then you write the code in native (java or kotlin) using this library( io.github.xmaihh:serialport:2.1.1) to communicate with serial port.
you can use MethodChannel to communicate to native here is the sample. You will get the callback in flutter from java or kotlin.
https://medium.com/@iiharish97ii/method-channel-in-flutter-bridging-native-code-and-flutter-with-two-way-communication-788d1e91c8c1
then you write the code in native (java or kotlin) using this library( io.github.xmaihh:serialport:2.1.1) to communicate with serial port.
Can you help me with setting it up? it won't be for free. reach me out on [email protected]
Having the same problem while running flutter on Linux.
Using sudo
solved it.
We put permission handling in todo. Activity is tracked in #76 Closed