Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SerialPortError (SerialPortError: Permission denied, errno = 13) #26

Closed
workoutand opened this issue Jul 29, 2021 · 19 comments
Closed

SerialPortError (SerialPortError: Permission denied, errno = 13) #26

workoutand opened this issue Jul 29, 2021 · 19 comments

Comments

@workoutand
Copy link

image

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?

@jpnurmi
Copy link
Owner

jpnurmi commented Jul 30, 2021

Hi, perhaps the discussion at jpnurmi/libserialport.dart#3 helps

@workoutand
Copy link
Author

Hellow, I saw this thread but I didn't understand where those directories came from

@laychopy
Copy link

Someone made it work?

@josuemoraisgh
Copy link

Hello, I have the same problem and so far I haven't seen a solution on the forums. Can you help me?

@jeremylcarter
Copy link

Anyone with a solution for this?

@thousmile
Copy link

Hi, perhaps the discussion at jpnurmi/libserialport.dart#3 helps

“ Permission denied, errno = 13 ” Is there a tutorial on how to solve it?

@Fudal
Copy link

Fudal commented Apr 28, 2022

I have the same problem

@augustbering
Copy link

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.

@trapeye
Copy link

trapeye commented Nov 17, 2022

I have the same problem, is it fix yet?

@asrafilll
Copy link

still same problem guys, is it fix yet? Thanks

@algom-gchauvelin
Copy link

Hello, still have the same problem, does someone has a solution?

@eldhosekm
Copy link

am also having the same problem. any fix?

@augustbering
Copy link

only my "fix" from above

@eldhosekm
Copy link

I make it work using the native implementation of Flutter. in native use this in gradle io.github.xmaihh:serialport:2.1.1

@Muaz-fmb
Copy link

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.

@eldhosekm
Copy link

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.

@Muaz-fmb
Copy link

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]

@guyluz11
Copy link

guyluz11 commented Dec 25, 2023

Having the same problem while running flutter on Linux.
Using sudo solved it.

@lucafabbri
Copy link
Collaborator

We put permission handling in todo.
Activity is tracked in #76
Closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests