Mageia 8 and Serial Communication issue

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

Mageia 8 and Serial Communication issue

Postby reltek » Jan 10th, '23, 21:11

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?
reltek
 
Posts: 20
Joined: Feb 26th, '16, 19:02

Re: Mageia 8 and Serial Communication issue

Postby doktor5000 » Jan 10th, '23, 22:36

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"
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18045
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Mageia 8 and Serial Communication issue

Postby reltek » Jan 11th, '23, 22:33

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.
reltek
 
Posts: 20
Joined: Feb 26th, '16, 19:02

Re: Mageia 8 and Serial Communication issue

Postby doktor5000 » Jan 11th, '23, 23:41

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
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18045
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron