Hello everyone, have come across a problem when trying to grab modbus frames on the 2nd uart. The problem I am having is that I am unable to grab complete frames going on the uart when using VTIME. I really do not now where to start looking for the problem is it a driver problem or is it the uart IP block which does not work. I have checked with an oscilloscope and with third part hardware that the messages on the line are correct so either it's a hardware problem on my ml505 platform or it's the uartlite driver where timing is broken. Interesting part is that when i change VTIME there is no big difference at all on the data I get, could it be that non-canonical mode isn't implemented in the uartlite driver? Has anyone else used the uarts in non-canonical mode and got it to work? These are my termios settings. bzero(&my_termios, sizeof(my_termios)); my_termios.c_cflag=B9600 | CRTSCTS | CS8 | CLOCAL | CREAD; my_termios.c_lflag = 0; my_termios.c_iflag = IGNPAR; my_termios.c_oflag = 0; my_termios.c_cc[VMIN] = 2; my_termios.c_cc[VTIME] = 20; Best regards Nils Hermansson
<<winmail.dat>>