I am using the OMAP-L137 board and I am trying to read data from a device connected to the UART1 bus. From the Hardware point of view, I connected:
EXP2_UART1_RXD to the TXD of my device;
EXP2_UART1_TXD to the RXD of my device;
and GND to GND.
I also pulled up the SEL_EXP_UART1 line by enabling the SW5-3.
In the Software I can open the ttyS1 port without errors by :
fd = open("/dev/ttyS1", O_RDWR | O_NOCTTY | O_NDELAY);
and I configure it 9600 8N1.
I use the read(fd, bufferpointer, nbytes) to read data but I do not receive anything.
I do not see what the problem is...I would appreciate very much your help to solve this!