I am trying to connect my Jetson TX2 to a Roboteq MDC2460.
So far I am able to run my robot using the USB connection provided on the Roboteq to my Jetson’s USB connection. I used their linux api to control the motors.
However, the company recommends that we use the RS232 connector. I do not have an RS232-ttl adapter. I am trying to connect the rx, tx, and gnd from the motor controller to the Jetson’s J17 serial pins.
I know for a fact that it is receiving data because dmesg |grep tty gives me a ttyS0: 1 input overrun(s) message. So something is coming through but I am unable to access or control the information.
I tried opening up /dev/ttyTHS2 as my port for the linux api. I successfully open the port and initializes it but it cannot read the information coming through.
I would like to be able to programmatically open my serial port and send commands to the motor controller to control my robot through my Jetson TX2.
I would appreciate some example code that can help me at least read the information and give commands to the motor controller. A lot of it is written in c++ but I am willing to take python code as well.
I have scoured the internet for remedies been through a ton of Jetsonhacks tutorials and a lot of this forums fixes and all of github to no avail.