OESF Portables Forum

General Forums => General Discussion => Topic started by: marshmn on July 24, 2005, 01:13:47 pm

Title: Setting Baud Rate
Post by: marshmn on July 24, 2005, 01:13:47 pm
Hi,

I'm trying to figure out how to set the baud rate when using a serial cable connected to the IO connector on a C860.

I saw in some docs that I should set it by doing: stty -F /dev/ttyS0 4800

However, that doesn't seem to work. On my Z (running Cacko) it seems that stty doesn't understand the -F switch and seems not to be able to make setting changes to /dev/ttyS0

Am I missing something here? Is there some other command I should be using?

Thanks,
Matt
Title: Setting Baud Rate
Post by: chrget on July 24, 2005, 01:58:44 pm
Quote
I saw in some docs that I should set it by doing: stty -F /dev/ttyS0 4800

However, that doesn't seem to work. On my Z (running Cacko) it seems that stty doesn't understand the -F switch and seems not to be able to make setting changes to /dev/ttyS0

Am I missing something here? Is there some other command I should be using?[div align=\"right\"][a href=\"index.php?act=findpost&pid=89315\"][{POST_SNAPBACK}][/a][/div]
stty is indeed your best bet. How about doing it the 'traditional' way:
Code: [Select]
stty 4800 Hope this helps.

Best regards,
Chris.
Title: Setting Baud Rate
Post by: marshmn on July 24, 2005, 04:19:38 pm
Ah yes, that did it.

Thanks for the help,
Matt