# RTPS Client-Agent example help

**URL:** <https://discuss.px4.io/t/rtps-client-agent-example-help/4330>\
**Category:** Uncategorized\
**Created:** [September 3, 2017, 10:01am UTC](https://discuss.px4.io/t/rtps-client-agent-example-help/4330 "2017-09-03T10:01:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gpldecha](https://discuss.px4.io/user_avatar/discuss.px4.io/gpldecha/32/3569_2.png) [@gpldecha](https://discuss.px4.io/u/gpldecha)\
**Post date:** [September 3, 2017, 10:01am UTC](https://discuss.px4.io/t/rtps-client-agent-example-help/4330/1 "2017-09-03T10:01:03Z")

</div>

Hi guys,

I have been trying to get the rtps example runnining, but with no success. If any of you have suggestions, I would greatly appreciate them.

Here are the steps I did:

1. pluged usb cable into the pixhawk and accessed it via:

~/src/Firmware/Tools$ ./mavlink\_shell.py /dev/ttyACM0

1. I started the micrortps\_client:

nsh\> micrortps\_client start

UART transport: device: /dev/ttyACM0; baudrate: 460800; sleep: 1ms; poll: 1ms

no flush

1. On my destop (which is connected to to the pixhakw via the usb) I run:

./micrortps\_agent -d /dev/ttyACM0

UART transport: device: /dev/ttyACM0; baudrate: 460800; sleep: 1us; poll: 0ms

UART\_node::init()  
no flush  
sensor\_combined subscriber started  
sensor\_baro publisher started  
while running (↓↓ 19)

Then it will continue to print these messages (↓↓ \_) . Later on the pixhawk the client shuts  
down:

nsh\>  
SENT: 3183 messages in 19983 LOOPS, 105039 bytes in 46.747 seconds - 2.25KB/s  
RECEIVED: 0 messages in 10000 LOOPS, 0 bytes in 46.753 seconds - 0.00KB/s

Close UART  
INFO [micrortps\_client] exiting

Any suggestions ? I would really like to get the Client-Agent protocol working.

---

<div class="post-metadata">

**Author:** ![Lyris](https://discuss.px4.io/letter_avatar_proxy/v4/letter/l/87869e/32.png) [@Lyris](https://discuss.px4.io/u/Lyris)\
**Post date:** [March 20, 2018, 4:29pm UTC](https://discuss.px4.io/t/rtps-client-agent-example-help/4330/2 "2018-03-20T16:29:51Z")

</div>

Got the same issue with this `no flush`

what is that ?

---

<div class="post-metadata">

**Author:** ![jjain](https://discuss.px4.io/letter_avatar_proxy/v4/letter/j/ecc23a/32.png) [@jjain](https://discuss.px4.io/u/jjain)\
**Post date:** [May 30, 2018, 8:10pm UTC](https://discuss.px4.io/t/rtps-client-agent-example-help/4330/3 "2018-05-30T20:10:24Z")

</div>

I am facing similar issues! Were you able to solve this?

---

<div class="post-metadata">

**Author:** ![Lyris](https://discuss.px4.io/letter_avatar_proxy/v4/letter/l/87869e/32.png) [@Lyris](https://discuss.px4.io/u/Lyris)\
**Post date:** [June 6, 2018, 8:43pm UTC](https://discuss.px4.io/t/rtps-client-agent-example-help/4330/4 "2018-06-06T20:43:07Z")

</div>

yeah its because there are some mavlink message send over this serial by default. you have to set rcS file telem 2 to be magic such that there is nothing sent, then you can use rtps
