• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Serial read/write in linux

AznMaverick

Platinum Member
I'm currently trying to write a program in Linux (Red Hat to be exact) that will basically poll the keyboard then serial port in a loop. If input should appear at the serial port it will display to screen, if keyboard is hit, it will be diplayed to screen and send it out through the serial port after a '\n' or '\0' is received. i've looked through all the POSIX serial code online and i think i've got the write code that i want however, when i use FNDELAY in the fcntl function nothing will allow me to input to the serial port. Once i take that FNDELAY out of the fcntl function it works fine (exept it will halt until input is received from the serial port). Any sample code i can use from any of you?
 
Back
Top