Author Topic: Setting Baud Rate  (Read 2579 times)

marshmn

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
    • http://www.mattmarsh.net/
Setting Baud Rate
« 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
SL-C860 - Cacko 1.22a

http://www.mattmarsh.net/

chrget

  • Full Member
  • ***
  • Posts: 129
    • View Profile
Setting Baud Rate
« Reply #1 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.
SL-5500G running a modified 3.13 Sharp ROM
Extrememory 1GB SD / Netgear MA701 WLAN
Audiovox RTM-8000 GSM/GPRS CF Card

marshmn

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
    • http://www.mattmarsh.net/
Setting Baud Rate
« Reply #2 on: July 24, 2005, 04:19:38 pm »
Ah yes, that did it.

Thanks for the help,
Matt
SL-C860 - Cacko 1.22a

http://www.mattmarsh.net/