-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trying to get serial Ping Example to work #177
Comments
I also tried to modify the HelloWorldPublisher to serial, but got "Error at create session." Here is what I was running for my main.c for PublishHwlloWorldSerial: `// Copyright 2017 Proyectos y Sistemas de Mantenimiento SL (eProsima). #include "HelloWorld.h" #include <uxr/client/client.h> #include <stdio.h> //printf #define STREAM_HISTORY 8 int set_baud_rate(int fd, int baud_rate) {
} int main(int args, char** argv) {
} |
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 baudOn 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?
The text was updated successfully, but these errors were encountered: