Page 1 of 1

Mageia 8 and Serial Communication issue

PostPosted: Jan 10th, '23, 21:11
by reltek
I downloaded Mageia 8 and installed it. Then, I ran my program that is supposed to communicate through serial port to the peripheral devices non-stop. It does however the serial communication is poor. I am getting timeouts and checksums errors every few seconds. So, then I decided to install previous version of Mageia; v5 just to see if it would make any difference, because the same copy of my program communicated perfectly fine on Mageia 5. It didn't timeout or get any checksum error.

Am I doing something wrong? It is a straight forward installation and setup; Install Mageia and add user to dialout group. Done. Is there a bug in Mageia 8?

Re: Mageia 8 and Serial Communication issue

PostPosted: Jan 10th, '23, 22:36
by doktor5000
It might help if you would mention what device(s) you try to communicat with, and also e.g. what baud rates they are expecting or using under Mageia 5. And what program you run.
Also, the output of
Code: Select all
setserial -av
on the used serial device might shed some light, both for Mageia 5 and 8. Same for
Code: Select all
journalctl -ab  | grep -iE "tty|serial"

Re: Mageia 8 and Serial Communication issue

PostPosted: Jan 11th, '23, 22:33
by reltek
Thank you for your reply.

My program communicates with proprietary devices not anything that is consumer electronics. It sends 5 bytes of data to the device(s) and the device(s) replies back by sending 6 bytes of data. This goes on every 100 milliseconds. Baudrate is at 19200. Again, as far as program goes, it is also proprietary software. You can't find it online or any store... The communication protocol is also proprietary. However, as mentioned above communication is simple and straight forward... 5 bytes going out and 6 bytes sent back in reply at 19200 baudrate.

I will have to try your suggestions and get back to you.

Re: Mageia 8 and Serial Communication issue

PostPosted: Jan 11th, '23, 23:41
by doktor5000
If you know what it sends then you could check e.g. 10.7 "send bytes to the port" of http://www.tldp.org/HOWTO/Serial-HOWTO-10.html