Serial Port Settings

More
01 Jul 2015 21:25 #60308 by racedirector
I just loaded up a new PC to run my machine but this one is having trouble loading modbus via serial. I think it has to do with the port speed which for the life of me cannot get to stick. I installed the machine via the latest Debian iso.

setserial /dev/ttyS0 -a reports the speed at 115200 and I have been trying to get it to either 9600 or 19200 but it just doesn't want to, even setting stty -F /dev/ttyS0 19200 in rc.local. Being a Windows/Mac user I have only been trying this via google.

Am I doing things right or is there another/better way of setting the port permanently to 19200/9600?

Cheers
Bruce

Please Log in or Create an account to join the conversation.

More
01 Jul 2015 22:25 #60311 by ArcEye
Replied by ArcEye on topic Serial Port Settings
Hi

I think the line you want in rc.local is something like
stty -F /dev/ttyS1 19200 raw -echo

Otherwise try setserial to make persistent changes
packages.debian.org/wheezy/setserial

regards

Please Log in or Create an account to join the conversation.

More
02 Jul 2015 14:29 #60331 by racedirector
Replied by racedirector on topic Serial Port Settings
Thanks ArcEye

Will do the rc.local bit and see how it goes.....

Please Log in or Create an account to join the conversation.

Time to create page: 0.128 seconds
Powered by Kunena Forum