ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to write a piece of software to test a UART driver and chip that I had been playing with. The chip is on a PCI card, and I have a cross over cable between the serial port on the card to the 'COM0' serial port on the motherboard. I'm wanting to test the Hardware Flow Control, whilst having the current setup and so am hoping to be able to set RTS through command line calls using maybe stty?
On Unix I have found that stty has some hardware flow control modes such as [-]rtsxoff and [-]ctsxon... however Linux doesn't look to have these. Is there any equivalent??
I'm using Linux 2.6.10, and a Red Hat distro. Any tips would be much appreciated, even if it means a change of tack.
Originally posted by pappsynz
On Unix I have found that stty has some hardware flow control modes such as [-]rtsxoff and [-]ctsxon... however Linux doesn't look to have these. Is there any equivalent??
GNU/Linux's stty does have these:
`crtscts'
Enable RTS/CTS flow control. Non-POSIX. May be negated.
`ixon'
Enable XON/XOFF flow control (that is, `CTRL-S'/`CTRL-Q'). May be
negated.
Actually I've already got this set, however as far as I can tell this (crtscts) only turns on the hardware flow control, I cant use it to stop and start data flow manually.
As I cannot set up a test network to try and force the hardware flow control to have to toggle RTS etc..., I am hoping to be able to write a few lines of code that will set RTS to 0, pause and then reset RTS to 1 as a way of forcing the driver for the other UART to use its flow control mechanism.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.