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: uart
FTDI FT232R force flushing FIFO
Is there a way to readout continuously or force-flush the RX fifo of FTDI FT232R. I want to timestamp the received bytes and therefore want to avoid that the received bytes are being sent in chunks. I want to force the chip to sent them via USB as they arrive. Answer FT232R AFAIK, it is impossible for FT232R. One can
What could be the difference between an embedded serial read operation and a Desktop- PC
In an embedded Linux system, I am coding the project which tests serial port in a pyhsically loopback environment. It means I am connecting rx-tx.The peripheral output is RS-232 In order to test the port I am sending 1 byte then I read the sent byte. I repeat this cycle from 0x00 to 0XFF. I am using raw input type
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,