Hi All,
I’m working with jetson tx2 with carrier board Aetina AN301. The goal was to establish two way UART communication with mavros between tx2 and pixhawk.
Initially I tested the telemetry port of pixhawk by connecting it to my pc using a USB to tty cable and mavros. And the pixhawk works fine.
Then I tried connecting my pixhawk to tx2 and I had no luck with it though I could see some data being transmitted through the port /dev/ttyTHS2 using picocom.
Then I connected my PC with the RS232 in J4, used cutecom to find that the data transmitted from one end is received as some junk value on the other end. I assumed that to be some encoding initially but the data received in both ends is different for the same input. (i.e. when I send “ab” from tx2, I’m receiving “47 a7” and when I send the same input “ab” from PC, I’m receiving “47 27”).
Then I proceeded to use the debug UART port in j4 (/dev/ttyS0). I could receive the exact data sent from the other end using cutecom. (i.e. when I send “abc” from one end, I’m receiving the same in the other end.)
So, I tried connecting my pixhawk with the Debug UART, but couldn’t do it. The output said that the serial port was unavailable. Then I used lsof to find that there was a process running on the port known as “agetty”. I tried to kill the process but every-time I do, the process gets re-initiated with a different PID. But the PPID seems to be the same but I couldn’t kill that.
So, how to change a Debug UART to a normal UART port in tx2 (with the carrier board Aetina AN301) ?