Open cernicarlo opened 1 year ago
The communication protocol used on Serial and UDP transport are different and cannot be mixed:
Why do you need to route the serial port to a UDP port?
Thanks for your prompt reply, Antonio.
I need to route because my laptop is connected to the companion computer through an ethernet cable, and the communication between devices connected to the companion computer and my laptop is done through the port provided by the ethernet cable (as explained here). What I am doing aims, in the future, to have the Arduino connected to the Ping sonar (like this) and the companion computer (which will transmit this data to my laptop). I want to do it without touching the companion computer.
What would you recommend me to do?
I need to route because my laptop is connected to the companion computer through an ethernet cable, and the communication between devices connected to the companion computer and my laptop is done through the port provided by the ethernet cable (as explained here).
You can run the Agent directly on the Raspberry Pi 3 side, and the DDS data (Publications, subscriptions, ...) will be shared to your laptop automatically through the Ethernet connection. Is this an option?
Other option is to use the reverse approach on your laptop, and bind the UDP port to a serial device.
Hi everyone,
Premise: I asked the same question on the BlueRobotics forum (here), but unfortunately, I didn't get an answer -> I am doing something wrong on the micro ROS side.
I copy here the content:
Using ROS 2 on my laptop, I want to communicate with an Arduino DUE (with micro ROS running on it) connected to the companion computer of a BlueROV (Raspberry Pi 3 with a Pixhawk running ArduSub).
After setting up micro ROS on my Arduino DUE and testing the serial communication on my laptop (following this tutorial), I confirmed that everything is working ok:
For what it's worth, I also tested the UDP connection in the first application linux tutorial
The next steps were:
But something is wrong:
What were my mistakes?