Linux - NewbieThis forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
I have to write and read from a serial port. Iam able to write
to the port /dev/ttyS1 but not able to read from the same port.
What configuration should I set to enable reading from the port?
How have you tried reading from the serial port? What have you done to verify that serial data is being sent to the port? What do you know about the incoming serial data (baud, parity, data format, etc)? When you say 'not able to read from the same port', what exactly are you doing to try to read the data? Have you made a loopback connection on the port? Are you using some serial communications software such as minicom, or are you writing your own code? If the latter, posting some sample code (use [code] tags to preserve formatting, please) would be helpful.
More information is required.
--- rod.
Hi,
I used to minicom and it worked fine. Iam using the same baud rate.
I tried to do a echo $val > /dev/ttyS1. I was able to recive the same back on read.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.