Altera_Forum
Honored Contributor
14 years agoHow to read RS232 ?
Hello all,
I have problem with UART, when i want to read serial data (hex byte message - something like bytes: 02,05,01,02,05 after this 10ms space and 03,05,xx,yy,zz etc.). I have development kit DK-DSP-EP2S60 and when i connect the board, which send me bytes to the NIOS2 design with uart and in uClinux i use: fd = open(S0_232, O_RDWR | O_NDELAY | O_NONBLOCK ); fd = open(S0_232, O_RDONLY | O_NOCTTY | O_NDELAY ); and when the program perform this command, the data from RxD RS232 are sended to the output TxD. I dont understand why ? (why it create loopback on RS232) How is possible to read data from RS232 without loopback ? (how to set RS232 for reading only ?) Thank you very much. Jan Naceradsky, Czech Republic