UART throughput

Hi Toradex Team,
We are trying to calculate UART throughput with linux-serial-test-app below are the logs - could see some errors/warning wrt setting 232 mode and no data…Is there any other method to calculate throughput?

Linux serial test app

Error setting RS-232 mode: Not a typewriter
/dev/ttyLP1: count for this session: rx=2039296, tx=2041849, rx err=0
/dev/ttyLP1: TIOCGICOUNT: ret=0, rx=6062334, tx=28786829, frame = 0, overrun = 0, parity = 0, brk = 0, buf_overrun = 0
/dev/ttyLP1: count for this session: rx=4439168, tx=4442853, rx err=0
/dev/ttyLP1: TIOCGICOUNT: ret=0, rx=10862078, tx=31186716, frame = 0, overrun = 0, parity = 0, brk = 0, buf_overrun = 0
...........
/dev/ttyLP1: No data received for 5.0s.

Thanks
AMR

Hi @jaski.tx, Created this as you proposed Setup UART clock to get maximum baud rate - Technical Support - Toradex Community

Hi,

Can you please share all details like how you are testing and what exact parameter passing while running test application.

Are you facing same error with other UART port?

Please note we have not done any throughput test.

here below is the output we quickly try testing in loopback with uart2 on Apalis iMX6Q

root@apalis-imx6:~# linux-serial-test -s -e -p /dev/ttymxc1 -b 3000000
Linux serial test app
/dev/ttymxc1: count for this session: rx=1759827, tx=1764945, rx err=0
/dev/ttymxc1: TIOCGICOUNT: ret=0, rx=1760850, tx=1760850, frame = 0, overrun = 0, parity = 0, brk = 0, buf_overrun = 0
/dev/ttymxc1: count for this session: rx=3540128, tx=3542175, rx err=0
/dev/ttymxc1: TIOCGICOUNT: ret=0, rx=3540128, tx=3539104, frame = 0, overrun = 0, parity = 0, brk = 0, buf_overrun = 0
/dev/ttymxc1: count for this session: rx=5320429, tx=5323500, rx err=0
/dev/ttymxc1: TIOCGICOUNT: ret=0, rx=5320429, tx=5320429, frame = 0, overrun = 0, parity = 0, brk = 0, buf_overrun = 0
/dev/ttymxc1: count for this session: rx=7099707, tx=7104825, rx err=0
/dev/ttymxc1: TIOCGICOUNT: ret=0, rx=7100730, tx=7100730, frame = 0, overrun = 0, parity = 0, brk = 0, buf_overrun = 0
/dev/ttymxc1: count for this session: rx=8881032, tx=8882055, rx err=0
/dev/ttymxc1: TIOCGICOUNT: ret=0, rx=8881032, tx=8878984, frame = 0, overrun = 0, parity = 0, brk = 0, buf_overrun = 0
/dev/ttymxc1: count for this session: rx=10662357, tx=10667475, rx err=0
/dev/ttymxc1: TIOCGICOUNT: ret=0, rx=10663380, tx=10663380, frame = 0, overrun = 0, parity = 0, brk = 0, buf_overrun = 0
/dev/ttymxc1: count for this session: rx=12437539, tx=12440610, rx err=0
/dev/ttymxc1: TIOCGICOUNT: ret=0, rx=12437539, tx=12437539, frame = 0, overrun = 0, parity = 0, brk = 0, buf_overrun = 0
/dev/ttymxc1: count for this session: rx=14207603, tx=14209650, rx err=0
/dev/ttymxc1: TIOCGICOUNT: ret=0, rx=14207603, tx=14206579, frame = 0, overrun = 0, parity = 0, brk = 0, buf_overrun = 0
/dev/ttymxc1: count for this session: rx=15977667, tx=15978690, rx err=0
/dev/ttymxc1: TIOCGICOUNT: ret=0, rx=15977667, tx=15975619, frame = 0, overrun = 0, parity = 0, brk = 0, buf_overrun = 0
/dev/ttymxc1: count for this session: rx=17746707, tx=17751825, rx err=0
/dev/ttymxc1: TIOCGICOUNT: ret=0, rx=17747730, tx=17747730, frame = 0, overrun = 0, parity = 0, brk = 0, buf_overrun = 0
/dev/ttymxc1: count for this session: rx=19515747, tx=19516770, rx err=0
/dev/ttymxc1: TIOCGICOUNT: ret=0, rx=19515747, tx=19513699, frame = 0, overrun = 0, parity = 0, brk = 0, buf_overrun = 0
/dev/ttymxc1: count for this session: rx=21280697, tx=21285810, rx err=0
/dev/ttymxc1: TIOCGICOUNT: ret=0, rx=21281715, tx=21281715, frame = 0, overrun = 0, parity = 0, brk = 0, buf_overrun = 0
/dev/ttymxc1: count for this session: rx=23048708, tx=23050755, rx err=0
/dev/ttymxc1: TIOCGICOUNT: ret=0, rx=23048708, tx=23047684, frame = 0, overrun = 0, parity = 0, brk = 0, buf_overrun = 0
/dev/ttymxc1: count for this session: rx=24814677, tx=24819795, rx err=0
/dev/ttymxc1: TIOCGICOUNT: ret=0, rx=24815700, tx=24815700, frame = 0, overrun = 0, parity = 0, brk = 0, buf_overrun = 0

Best Regards

Ritesh Kumar

Hi @jaski.tx, Created this as you proposed Setup UART clock to get maximum baud rate - Technical Support - Toradex Community