Mid-Atlantic-Data
asked on
How to run setserial on multiport
I have Red Hat Linux 7.1 running with several Comtrol Rocketport serial boards. I want to find out what baud rate they are running at.
When I type in
setserial -a /dev/ttyR1
it gives message
cannot get serial info: Invalid argument
I have tried setserial -a -multiport /dev/ttyR1 and it says unrecognized command or even will do a kernel panic.
What command do I need to give?
When I type in
setserial -a /dev/ttyR1
it gives message
cannot get serial info: Invalid argument
I have tried setserial -a -multiport /dev/ttyR1 and it says unrecognized command or even will do a kernel panic.
What command do I need to give?
Are you sure your serial boards are /dev/ttyR* and not /dev/ttyS*?
ASKER
/etc/inittab initializes ttyR1 ttyR2 etc.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
The link you posted is a copy of the manual. It tells how to set the baud rate to higher speeds using setrocket, but not how to query the rocket port on what baud rate each port is running.
I am assuming setrocket should have the same command switches as setserial?
ASKER
unfortunately it only has command to set the baud rate, not to query the baud rate.
Then I guess that's it - if it needs a special (non-standard setserial) set of instructions to set the baud rate, most likely it also needs a special set of instructions to read it, and if setrocket doesn't do it, then that's the end of the road - or a good reason to make a call to Comtrol ;)