After updating legato to version 19.11.5 my application stopped reading the serial port, following code used:
const char *serialPort = "/dev/ttyHS0";
int port = le_tty_Open(serialPort, O_RDWR |O_NOCTTY);
le_tty_SetBaudRate(port, LE_TTY_SPEED_9600);
le_tty_SetRaw(port, 1, 2);
//le_tty_SetFlowControl(port, LE_TTY_FLOW_CONTROL_NONE);
char *parity = "N";
le_tty_SetFraming(port, *parity, 8, 1);
do {
char buffer[1024];
int readSerial;
readSerial = read(port, buffer, sizeof(buffer)); // this line is stuck
Port permission is configured:
device:
{
// read and write acess to the UART2 port.
[rw] /dev/ttyHS0 /dev/ttyHS0
}
Does not generate any error in the log, it just gets stuck!
Has anyone experienced this problem?