Micro-XRCE-DDS
Micro-XRCE-DDS copied to clipboard
Trying to get serial Ping Example to work
I am struggling to get the PingAgent Serial example to work.
I compiled the example using
gcc main.c -lmicrocdr -lmicroxrcedds_client
I then ran it using the following command:
./a.out /dev/ttyUSB0
where I have my serial device ftdi on running at 57600 baud
On my agent side I ran both
sudo MicroXRCEAgent serial --dev /dev/ttyUSB1
sudo MicroXRCEAgent serial --dev /dev/ttyUSB1 -b 57600
where I gave a baud rate
However I keep on getting "Sorry, no agent available at device '/dev/ttyUSB0'" I know that I have a connection because I can see lights blinking on the TX side of my client and RX side of my Agent during the ping. Am I doing something wrong with the setup of my client and agent? Is there another example I can look at for serial communication?