linux-serial-test
linux-serial-test copied to clipboard
Linux Serial Test Application
Hi, In function `process_write_data`, repeat condition may lead to `while(1)`. Suppose that user does not specify _--tx-bytes_: `int repeat = (_cl_tx_bytes == 0);` so the repeat condition will be 1...
Allows for users to print the serial stats both before and after a test so the difference can be determined.
Hello, i would like to use this to test connection between two serial ports (instead of just using loopback). can you please add such functionality? Usecase: i have two rs485...
Hi, I need to send some custom data like "\x00\x13\x00" over UART using this code, Can you please help me how to send some custom data? Thanks, Karthik
From the options available, I see "-q" to enable the RS485 direction control. But I don't understand what other parameters can be passed to validate the working of RS485 driver...
I compiled the src with gcc -o linux-serial-test linux-serial-test.c I have a null modem cable from ttyS0 to ttyS4. Both tty are real rs-232 serial ports. In shell1 I ran:...
6000000 and 12000000 baud rates have issues with linux-serial-test, but work fine in tio/picocom. Lower ones work fine in linux-serial-test ``` linux-serial-test -b 6000000 -p /dev/ttyUSB0 -s -e Linux serial...
Use the modern way to set the baudrate using an integer and not a macro. ``` struct termios2 tio; ioctl(fd, TCGETS2, &tio); tio.c_cflag &= ~CBAUD; tio.c_cflag |= BOTHER; tio.c_ispeed =...
Previously it was possible to be stuck in an infinite loop when using full duplex transmission. The read side previously required 1024 bytes before it would continue. This can lead...