I have a Raspberry Pi connected via UART to a microcontroller. The code on the RPI is trying to read incoming non-canonical UART data, but randomly receives POLLHUP. I have been able to recover by closing and reopening the file, but this is less than ideal. Is there a way to disable the disconnect detection behavior of termios in Linux?
Tag: termios
Serial data over UART gets corrupted
I’m developing an application for a development board (Beagle Bone Black) that will send some data over UART peripheral. The developing board runs Linux Kernel (some Debian distribution, 3.8.x Linux Kernel version). For sending and receiving data over UART I use the standard UNIX API: open(), read(), and write() family functions. For setting the communication parameters (baud rate, stop/start bits,
Serial communication on Linux with flow control enabled – bad behaviour
I wrote common functions in order to manage serial ports, based on the following structure: I am calling these functions (see below) in another file in order to test an RS232 serial port. The flow control needs to be enabled. In order to validate the implementation, the pinouts Tx and Rx have been connected together, idem for CTS and RTS.
How do I assign the delete key to another character in Linux with termios?
I’ve working on this problem where I need to assign a character to a become the delete key in Linux with termios. I’ve looked up resources and it seems like everyone is doing it this way but for some reason I cannot get it to work. So I am trying to bind the ‘q’ character to become the new delete