Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting baud rate on serial port

Status
Not open for further replies.

unixusr

Technical User
Jun 11, 2001
4
US
Hello. I need to be able to set the baud rate of a serial port. I know "stty 2400" will set the baud rate on the serial port that I am on, but I need to do another port, like tty1a. I need this so I can override that "cat" default of 9600 baud. Thanks, Gary
 
depends on version and serial drivers used if not built-in. For tty1a,2a you could edit /etc/inittab and the other file mentioned when you disable the port and re-enable it. The speed is determined by the gettydefs token in the listing.
Ed Fair
efair@atlnet.com

Any advice I give is my best judgement based on my interpretation of the facts you supply.

Help increase my knowledge by providing some feedback, good or bad, on any advice I have given.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top