-
Notifications
You must be signed in to change notification settings - Fork 110
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
Android support #112
Comments
Yep, that's normal when the manufacturer forget to set correct file permissions. Basically a blind spot of Android |
Hello, |
Does you patch still require root or do you bypass it somehow with the other library? |
Yes you don't need root, it relies on USB Android SDK. It asks user permission upon serial port opening. |
Hello @AurelienBallier I managed to advance the implementation using your PR, however, when using the
Would you have any idea what it could be and how to fix this bug? |
My code: final ports = await SerialPort.availablePorts;
StreamSubscription<Uint8List>? subscription;
try {
final portSerial = SerialPort(ports.first);
final opened = await portSerial.openReadWrite();
if (!opened) {
return null;
}
portSerial.setConfig(SerialPortConfig()
..baudRate = 4800
..bits = config.bits
..stopBits = config.stopBits!.value
..parity = config.parity!.value);
SerialPortReader serialPortReader = SerialPortReader(portSerial);
serialPortReader.stream.listen(
(event) {
print(event);
},
); |
Hello @luciano-cervantes, |
It would be great if you could look at this, I'm in a project that needs this option, but I couldn't identify where the error is. |
Hi @AurelienBallier, i made some changes using your branch as a base, fixing @luciano-cervantes problem, and opened a pull request, please check it out when you can. |
Permission denied, errno = 13
The text was updated successfully, but these errors were encountered: