I have a roboclaw driver board that I want to drive via UART. I have a node written by a third party that takes ros topic /cmd_vel and converts it into signals that drive the roboclaw. This works fine for USB on port ttyACM0.
I now cannot use USB as the roboclaw port is damaged, and so I need to use UART, but I cannot figure out how to set up the TX2 UART to do anything. I attach jumper cables to pins 8 and 10 of the TX2 and attach to the corresponding TX / RX of the roboclaw.
In dmesg I was seeing some “cable state 2” error messages, which appeared to relate to ttyS0, but I have no idea if this is the port it thinks the roboclaw is talking on, or what the error message means. Google is not being my friend and I cannot see any documentation in the tx2 library that comes up with search words UART or GPIO.
Is there some set up that needs to be done on the TX2? I am something of a beginner when it comes to all this, so if you could make the replies somewhat ELI5 it would be really appreciated!
EDIT: I read that I need to use the J17 header, pins 4 and 5, so I have switched to them. I am guessing that the port is dev/ttyTHS2, however I still do not seem to be able to fully connect to the board. Is there a way to check there is communication?