Thank you for posting this video. It was a great help. I thing i will mention that caused me some trouble. You can only set the configuration (baud rate, etc) once the port is open.
@@ahmed-mannai You're welcome but i think i was a little premature. i've since been experiencing some trouble getting the baud rate to change. I have to open and close the port a few times, or set the port up in another serial program. I'm using macOS. Have you experienced anything like that?
Brother, if I use an arduino connected to the USB port of my laptop and send the data with SerialPrintln, the data is not sent to my Flutter application, please help me.
Is there anything special that needs to be done when sending/receiving ASCII versus pure binary/hex? Any tips on making the application responsive, even as it is waiting for data from a serial device? For example, I'd like to send a command to a multimeter to get the voltage, but because it often takes a few hundred milliseconds before it returns the data. And could the same code be built for an (Android) device, which uses the classic Bluetooth SPP (Serial Port Profile) to talk to a computer with a Bluetooth USB dongle (also running SPP)?
My next video will showcase how to make a responsive app and how to listen constantly to upcoming data. - The app should work fine on android also because the package supports android - when it comes to using hex over asci mainly because Hex uses less memory and that makes input and outputs operations perform faster
i am using android device latest version, i tried with Linux, it read and write perfectly. but when i run it in android said: SerialPortError: Permission denied, errno = 13 , i tried to give all permission in my androidManifest but no solution. also, give my android device primitive to accept all permission but still same issue. i tried using a chip using Arduino and it send messages but in my android device is note working! pls help
Hello, I have an interesting task, the program works on both Linux and Mac but does not work on Windows, there are no error messages, but I just need to run the ArduinoIDE and run any command in the serial port, my program works until the first restart of the computer, we met Are you in this situation and do you have half an hour to solve it
Hey man, I'm currently writing a program where I ask for the status of a printer connected through the serial port by sending some hex codes and then I send the info so I can print it. And everything's good but I want to ask the printer its status AGAIN after I print the data, and I can't seem to get it to work, do you know how I can use the reader to listen to another message after my listener already listened to 1 message? Thanks in advance.
I cannot see what cause the problem. but you can check for solutions to solving the permission denied problem here 🔗LINK: github.com/jpnurmi/libserialport.dart/issues/3
I am encountering an error related to a permission whenever I use any serial port library with flutter, the error is like: SerialPortError: Permission denied, errno = 13 can you help me, I just want to build the same app that you have built and run it using the mobil's serial port ( USB port).
Yes I think thats a bit of a challenge You need to stay listening for upcoming data and save them in a buffer then print the line if you encounter " " new line character
Thank you for posting this video. It was a great help. I thing i will mention that caused me some trouble. You can only set the configuration (baud rate, etc) once the port is open.
Thank you, buddy, for the information
@@ahmed-mannai You're welcome but i think i was a little premature. i've since been experiencing some trouble getting the baud rate to change. I have to open and close the port a few times, or set the port up in another serial program. I'm using macOS. Have you experienced anything like that?
I am having this problem too, I need to change it to 57600 baud rate but I haven't been able to, did you find a solution for this ?@@damoshelto
Thank You for Sharing Buddy. Saved a lot of my time. Thanks Again.
I find this so interesting, thank you for your efforts and I hope you succeed
Thanks buddy ❤️
Awesome man :) Thank you so much!
Poderia citar as versões das ferramentas utilizadas, como versão do flutter, dart, lib e android. So recebo o erro de permissão negada 13
Thank you so much bro.
keep it up
Great it what I am looking for.
I'm happy to hear that
Reads bytes ok, but keep getting '0' for the written bytes.
Brother, if I use an arduino connected to the USB port of my laptop and send the data with SerialPrintln, the data is not sent to my Flutter application, please help me.
Email me we will fix the problem
pro, do you find a solution of your problem?
if you have i want to talk with you, give me your email please
getting this error ''Unhandled Exception: SerialPortError: The operation completed successfully., errno = 0 ''
This error is thrown when you have written and things went successfully i guess
@@ahmed-mannai SerialPortReader reader = SerialPortReader(port1);
Stream upcommingData = reader.stream.map((data) {
return String.fromCharCodes(data);
});
upcommingData.listen((data) {
print("read data $data");
});
it doesnt print anything...any idea?
any solution for this?
Is there anything special that needs to be done when sending/receiving ASCII versus pure binary/hex?
Any tips on making the application responsive, even as it is waiting for data from a serial device?
For example, I'd like to send a command to a multimeter to get the voltage, but because it often takes a few hundred milliseconds before it returns the data.
And could the same code be built for an (Android) device, which uses the classic Bluetooth SPP (Serial Port Profile) to talk to a computer with a Bluetooth USB dongle (also running SPP)?
My next video will showcase how to make a responsive app and how to listen constantly to upcoming data.
- The app should work fine on android also because the package supports android
- when it comes to using hex over asci mainly because Hex uses less memory and that makes input and outputs operations perform faster
hi i need some help, i have a balance and i need get weight from her, but when i put upcoming.listen((data){
print(data)}
nothing is printed
I want to connect a tablet to a weighter via a COM-USB connection in the usb port of the tablet. Is it possible to accomplish this using this package?
I'm also in need of similar task. Were you able to do that?
grateful my friend 👍
Thanks ❤️
i am using android device latest version, i tried with Linux, it read and write perfectly. but when i run it in android said: SerialPortError: Permission denied, errno = 13 , i tried to give all permission in my androidManifest but no solution. also, give my android device primitive to accept all permission but still same issue. i tried using a chip using Arduino and it send messages but in my android device is note working!
pls help
How to set the baudrate of serial port, I can't see it
how can we use this package to send Hex data through USB port on an Android device?
Do you mean send data from PC to Android? Then yes you can
Is it possible to communicate with Bluetooth and Wi-Fi ?
Tbh I don't know
I haven't tried it
Hello, I have an interesting task, the program works on both Linux and Mac but does not work on Windows, there are no error messages, but I just need to run the ArduinoIDE and run any command in the serial port, my program works until the first restart of the computer, we met Are you in this situation and do you have half an hour to solve it
Hey man, I'm currently writing a program where I ask for the status of a printer connected through the serial port by sending some hex codes and then I send the info so I can print it.
And everything's good but I want to ask the printer its status AGAIN after I print the data, and I can't seem to get it to work, do you know how I can use the reader to listen to another message after my listener already listened to 1 message? Thanks in advance.
i have this error if you have a solution
The following SerialPortError was thrown building Builder:
Permission denied, errno = 13
I cannot see what cause the problem.
but you can check for solutions to solving the permission denied problem here
🔗LINK: github.com/jpnurmi/libserialport.dart/issues/3
Im trying this on android device, its throwing this error
SerialPortError: Permission denied, errno = 13
Any ideas how to solve this?
Take a look at this github.com/jpnurmi/libserialport.dart/issues/3 this Issues is open for now I think soon it will be fixed
can i use this and see the data on the docklight when flutter app running?
I dont understand exactly your case
But I suppose yeah you can
I am encountering an error related to a permission whenever I use any serial port library with flutter, the error is like:
SerialPortError: Permission denied, errno = 13
can you help me, I just want to build the same app that you have built and run it using the mobil's serial port ( USB port).
I'm getting the same error. Did you find a solution?
flutter_libserialport throws error in mac
what is the Error ?
hey there , how I can read entire serial line in this flutter libserial_port ??
Yes I think thats a bit of a challenge
You need to stay listening for upcoming data and save them in a buffer then print the line if you encounter "
" new line character
its run on androind?
Can I use this package for communicating with RS232?
very interesting question, I need to implemet it as well.
I not get any available port
I have respond through email
Same problem. Can I get the solution too. Please
@@godfather5022 what problem you get
same here
how to resolve it??
i am getting permission denied error 13
im not using this video on macos application
You can use this for building a mac os app because the flutter_libserialport package works on macOS, Windows, Linux, and Android devices.
@@ahmed-mannai I have fixed the error. Turns out I didn't install automake libtool
but when read data i get error
[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: SerialPortError: Undefined error: 0, errno = 0
Try closing the port after using it
I think that will fix it
Work for android build ?
Yes I havent tried it but it supposed to work on android also