Hey everyone, this is my first post here and I’m struggling to figure out this problem.
Jetson Nano 2Gb running stock OS
Arduino Mega 2560
logic level converter
I am attempting to connect the Mega to the Jetson Nano using ROS rosserial. I have the Serial1 pins on the Mega (18, 19) connected to the UART pins on the jetson nano (through a ribbon cable breakout on a breadboard). I am using a logic level converter between them to convert from 3.3 to 5V. I made sure they have a common ground as well.
I know the UART connection itself works because using the Serial Passthrough Arduino example I can send strings through and read them on cutecom on the Jetson Nano (/dev/ttyTHS1).
I also know that ROS is working because it works perfectly well through a USB connection on /dev/ttyACM0.
The problem is just when I try to connect rosserial to /dev/ttyTHS1. I get the “Unable to sync with device” error.
I set up ArduinoHardware.h and ros.h as instructed here: http://wiki.ros.org/rosserial_arduino/Tutorials/NodeHandle%20and%20ArduinoHardware. I changed Serial to Serial1. The baud rate is still 57600 and the subscriber and publisher buffers are both 512 bytes. These parameters work over USB.
Unfortunately I cannot share my code, but does anyone have any idea what could be generating this error despite the solutions I have tried?
Edit: I am using ROS melodic on the Jetson nano