Skip to content

Trying to get serial Ping Example to work #177

Open
@BoilermakerTobes

Description

@BoilermakerTobes

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions