# Pixracer with companion computer

**URL:** <https://discuss.px4.io/t/pixracer-with-companion-computer/10798>\
**Category:** Uncategorized\
**Created:** [May 2, 2019, 3:49pm UTC](https://discuss.px4.io/t/pixracer-with-companion-computer/10798 "2019-05-02T15:49:35Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![webassign](https://discuss.px4.io/letter_avatar_proxy/v4/letter/w/f4b2a3/32.png) [@webassign](https://discuss.px4.io/u/webassign)\
**Post date:** [May 2, 2019, 3:49pm UTC](https://discuss.px4.io/t/pixracer-with-companion-computer/10798/1 "2019-05-02T15:49:35Z")

</div>

Hi, we’ve been working on communication between raspberry pi and the pixracer, anyone has a working configuration? We’ve been hitting on all the walls on this, haven’t got them to communicate at all. Here’re the things we’ve tried:

used firmware 1.8.1/1.8.2/1.9.0/1.6.3  
SYS\_companion set to 921600 (for 1.8.1/1.8.2/1.6.3)

for 1.9.0:  
MAV\_2\_config=telem2  
MAV\_2\_mode=onboard  
MAV\_2\_rate=921600  
MAV\_2\_forward=true  
also tried SER\_TEL2\_BAUD to 921600

they always fail at after executing px4.launch and no data streaming. we are running out of walls to crash into. Anyone has ideas? Thanks in advance.

---

<div class="post-metadata">

**Author:** ![jkflying](https://discuss.px4.io/user_avatar/discuss.px4.io/jkflying/32/6082_2.png) [@jkflying](https://discuss.px4.io/u/jkflying)\
**Post date:** [May 3, 2019, 1:43pm UTC](https://discuss.px4.io/t/pixracer-with-companion-computer/10798/2 "2019-05-03T13:43:21Z")

</div>

We’re successfully using the PixRacer and an Up Core, however for serial on the companion side we are using an FTDI chip ([this one](https://store.mrobotics.io/USB-FTDI-Serial-to-JST-GH-p/mro-ftdi-jstgh01-mr.htm)).

We have:  
MAV\_1\_CONFIG=TELEM 2  
MAV\_1\_FORWARD=Disabled  
MAV\_1\_MODE=Onboard  
MAV\_1\_RATE=80000 B/s  
SER\_TEL2\_BAUD=921600 8N1

Hope this helps!

---

<div class="post-metadata">

**Author:** ![Scott\_Nunan](https://discuss.px4.io/letter_avatar_proxy/v4/letter/s/b9bd4f/32.png) [@Scott\_Nunan](https://discuss.px4.io/u/Scott_Nunan)\
**Post date:** [May 7, 2019, 11:31am UTC](https://discuss.px4.io/t/pixracer-with-companion-computer/10798/3 "2019-05-07T11:31:16Z")

</div>

I have this working but i cannot claim the knowledge. I purchased from gennady…

---

<div class="post-metadata">

**Author:** ![jowaibel](https://discuss.px4.io/letter_avatar_proxy/v4/letter/j/ce73a5/32.png) [@jowaibel](https://discuss.px4.io/u/jowaibel)\
**Post date:** [August 8, 2019, 3:41pm UTC](https://discuss.px4.io/t/pixracer-with-companion-computer/10798/4 "2019-08-08T15:41:59Z")

</div>

Hi! I am using the same FTDI chip and the Pixracer as well as the same MAV settings. Have you done any modifications on the 6-pin cable? When I just connect it it doesn’t work. Using screen /dev/ttyUSB0 921600 8N1 for example, there is absolutely nothing on the port.

---

<div class="post-metadata">

**Author:** ![RogerPaudex](https://discuss.px4.io/user_avatar/discuss.px4.io/rogerpaudex/32/3768_2.png) [@RogerPaudex](https://discuss.px4.io/u/RogerPaudex)\
**Post date:** [November 29, 2019, 1:26pm UTC](https://discuss.px4.io/t/pixracer-with-companion-computer/10798/5 "2019-11-29T13:26:49Z")

</div>

Hello!  
What about using the CAN (and UAVCAN) to dialog to the companion computer instead of UART port?

---

<div class="post-metadata">

**Author:** ![bulutgul](https://discuss.px4.io/user_avatar/discuss.px4.io/bulutgul/32/5370_2.png) [@bulutgul](https://discuss.px4.io/u/bulutgul)\
**Post date:** [January 9, 2020, 7:50am UTC](https://discuss.px4.io/t/pixracer-with-companion-computer/10798/6 "2020-01-09T07:50:38Z")

</div>

Hi,  
Same situation on my test. Did you resolve this issue? I didnt get the heartbeat response. Anyone has solution?

---

<div class="post-metadata">

**Author:** ![jowaibel](https://discuss.px4.io/letter_avatar_proxy/v4/letter/j/ce73a5/32.png) [@jowaibel](https://discuss.px4.io/u/jowaibel)\
**Post date:** [January 9, 2020, 8:22am UTC](https://discuss.px4.io/t/pixracer-with-companion-computer/10798/7 "2020-01-09T08:22:05Z")

</div>

Hi,  
it has been a while since I solved it. You need to cut and solder the TX/RX cables. By default, they are TX-\>TX and RX-\>RX, because it’s just a standard cable which is used differently for other ports. In our case, you need to connect TX-\>RX/RX-\>TX, that is, cross them.

For the Mavlink settings, apart from the default, I’m using this now:

TELEM 1 - Radio telemetry  
MAV\_0\_CONFIG 101 TELEM 1  
MAV\_0\_MODE 0 NORMAL  
MAV\_0\_RATE 1200 Default rate for radio telemetry (not 57600)

**TELEM 2 - Companion computer communication**  
MAV\_1\_CONFIG 102 TELEM 2  
MAV\_1 FORWARD 1   
MAV\_1\_MODE 1 CUSTOM  
MAV\_1\_RATE 1500000 Rate for companion computer communication

Where I chose CUSTOM to only stream the topics I need. The topics to stream can be set here: [https://github.com/PX4/Firmware/blob/5f1121c216c254a6bb7e752999ab1b9d2a0833d9/src/modules/mavlink/mavlink\_main.cpp#L1743](https://github.com/PX4/Firmware/blob/5f1121c216c254a6bb7e752999ab1b9d2a0833d9/src/modules/mavlink/mavlink_main.cpp#L1743)

Don’t get confused by the fact that the MAVROS node always creates ALL topics (_rostopic list_). But it depends on your MAV\_ \_MODE setting, to which topics it actually publishes messages.

---

<div class="post-metadata">

**Author:** ![bulutgul](https://discuss.px4.io/user_avatar/discuss.px4.io/bulutgul/32/5370_2.png) [@bulutgul](https://discuss.px4.io/u/bulutgul)\
**Post date:** [January 9, 2020, 9:07am UTC](https://discuss.px4.io/t/pixracer-with-companion-computer/10798/8 "2020-01-09T09:07:52Z")

</div>

Thanks for quick response. 💫  
I tried your solution but i still didnt get heartbeat response. Which ftdi cable do you use?

---

<div class="post-metadata">

**Author:** ![jowaibel](https://discuss.px4.io/letter_avatar_proxy/v4/letter/j/ce73a5/32.png) [@jowaibel](https://discuss.px4.io/u/jowaibel)\
**Post date:** [January 9, 2020, 10:11am UTC](https://discuss.px4.io/t/pixracer-with-companion-computer/10798/9 "2020-01-09T10:11:25Z")

</div>

I use this FTDI adapter: [https://store.mrobotics.io/USB-FTDI-Serial-to-JST-GH-p/mro-ftdi-jstgh01-mr.htm](https://store.mrobotics.io/USB-FTDI-Serial-to-JST-GH-p/mro-ftdi-jstgh01-mr.htm)  
I’ve also cut the power cable, as mentioned here: [http://dev.px4.io/v1.9.0/en/companion\_computer/pixhawk\_companion.html#hardware-setup](http://dev.px4.io/v1.9.0/en/companion_computer/pixhawk_companion.html#hardware-setup)

How is your pixhawk powered/connected? Is it running (LEDs)? How do you try to connect?

---

<div class="post-metadata">

**Author:** ![bulutgul](https://discuss.px4.io/user_avatar/discuss.px4.io/bulutgul/32/5370_2.png) [@bulutgul](https://discuss.px4.io/u/bulutgul)\
**Post date:** [January 10, 2020, 8:30am UTC](https://discuss.px4.io/t/pixracer-with-companion-computer/10798/10 "2020-01-10T08:30:13Z")

</div>

I connected pixhawk via usb port and it is running. I check the link via qgc.

---

<div class="post-metadata">

**Author:** ![jowaibel](https://discuss.px4.io/letter_avatar_proxy/v4/letter/j/ce73a5/32.png) [@jowaibel](https://discuss.px4.io/u/jowaibel)\
**Post date:** [January 10, 2020, 8:49am UTC](https://discuss.px4.io/t/pixracer-with-companion-computer/10798/11 "2020-01-10T08:49:04Z")

</div>

Do I understand correctly that you power the pixhawk from an external battery? Your FTDI adapter is connected between Pixhawk TELEM… and your computer USB port?

I’m not sure wether QGC would connect automatically via FTDI. Go to QGC settings\>General: Uncheck AutoConnect\>Pixhawk/SiK Radio/…  
Then Comm Links\>Add: Serial, SerialPort -\> Select the device name of your FTDI adapter, Baud Rate 921600.  
Then click the connect button on the same screen.
