I am trying to use a Waveshare DTOF LiDAR STL27L with a Jetson Nano / OKDO C100 over the GPIO UART. The LiDAR uses UART at 921600 baud, 8N1, no flow control.
I am connecting the LiDAR UART TX to the Jetson UART RX on /dev/ttyTHS1. I configured the port with:
sudo stty -F /dev/ttyTHS1 921600 cs8 -parenb -cstopb -crtscts raw -echo -ixon -ixoff
I also tried:
sudo stty -F /dev/ttyTHS1 921600 cs8 -parenb -cstopb -crtscts -ixon -ixoff raw -echo clocal -hupcl
However, the LiDAR data appears unstable/corrupted. The STL27L protocol should produce fixed binary frames. I connected the lidar data line to UART_2_RX /dev/ttyTHS1, 5v to 5v and the rest to ground. The jetson nano is powered over a lipo battery.
On my Rpi4B the setup is working over uart with the same high baud rate.