ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
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'm writting a programm to transfer data via serial port. I'd like to test it on my computer first, so i connected serial ports and wrote a simple program just to check the connection. I write one character into ttyS0 and want to read it from ttyS1. Writing works OK (numb_send = 1) but there is some problem with reading (numb_rec = -1). I think, port settings are OK.