How to send remote commands to a raspberry pi via MAVLink?

2,180 views
Skip to first unread message

Ak21

unread,
Sep 19, 2015, 6:18:37 PM9/19/15
to MAVLink
I saw this wiki page - http://dev.ardupilot.com/wiki/raspberry-pi-via-mavlink/

It opens  MAVProxy on the raspberry pi and helps to control the Pixhawk through MAVLink commands. Right?

How can I control the pixhawk through the raspberry pi by sending commands to the raspberry pi over wi-fi for example? I don't have to then ssh into the raspberry pi and just send the same commands. But then raspberry pi needs to get the data from a wifi-dongle I guess and then send it to the px4. How to do this?

Davide Picchi

unread,
Oct 15, 2015, 4:04:07 PM10/15/15
to MAVLink
I am interested in the same question too.
Anybody who can help us?

Regards

Bill Bonney

unread,
Oct 15, 2015, 4:49:43 PM10/15/15
to mavlink, MAVLink

You can have the RaspBerryPi listen on a ip socket (connected via WiFi) and then proxy that information to the Pixhawk

You can use  a GCS like QGC or APM Planner 2.0 to connect to the Raspberry Pi

ie PHRaspPiGround Control Station

You could even just connected a WiFI dongle to the Pixhawk (see http://www.ebay.com/itm/Wireless-Wifi-Telemetry-Module-with-Antenna-for-Pixhawk-APM-Flight-Control-CC3D/251978180205 for example)

PHGCS 

They are all talking using the MAVLink protocol http://mavlink.org

 

> --
> Sie erhalten diese Nachricht, weil Sie Mitglied der Google Groups-Gruppe "MAVLink" sind.
> Wenn Sie sich von dieser Gruppe abmelden und keine E-Mails mehr von dieser Gruppe erhalten möchten, senden Sie eine E-Mail an mavlink+u...@googlegroups.com.
> Weitere Optionen: https://groups.google.com/d/optout

Thomas Lillis

unread,
Feb 7, 2016, 2:11:38 AM2/7/16
to MAVLink
You could have something like a socat command running on the pi that forwards a UDP connection to the pi to /dev/ttyAMA0
I think something like this could get you started:
socat -d -d UDP-LISTEN:14550 /dev/ttyAMA0,raw,echo=0,crnl
Just have this automatically run on the pi and then anything you send to your pi over the UDP connection will be sent to the serial port and vise versa.
Reply all
Reply to author
Forward
0 new messages