did you mean you had data loss occasionally?
please check similar discussion thread, Topic 1063027.
you might execute getty running at background to ensure data transferred properly,
for example,
$ sudo /sbin/getty -a ubuntu -L 115200 ttyTHS<port> &
Depending on speed, you may find that using two stop bits instead of one stop bit helps. In some cases CTS/RTS flow control will help (but requires two more wires).
If you are trying to communicate directly with a device, you do not want to have a serial console running. You will need to stop the getty service. Here’s an article:
I have the same purpose to you. Let arduino control Step Motor and commute UART with Jetson Nano. But i dont know how to do. Can you show me ? Thanks a lot.