MavLink UDP connections

I've written some C# software to listen to the RS-232 telemetry feed from the Taranis RC transmitter, sent by Frsky SmartPort sensors, and decode it on the PC.  For each telemetry value, like battery voltage, GPS location, etc., I update a ViewModel that can be bound to any UI on Windows that supports the INotifyPropertyChanged interface (Winforms, WPF, Windows Store apps). That GitHub project is here:  https://github.com/Swifter/TaranisTelemetry

Now, I want to take that decoded telemetry and produce MavLink packets to send to Mission Planner and QGroundControl via UDP on port 14550.  Every second, I produce a Heartbeat and System Status packet and send that to the Mission Planner UDP port.   On Mission Planner, I select UDP and Port 14550, but nothing ever happens. 

The log says the VerifyConnected() generates a System.Exception: The socket/serialproxy is closed.  I'm not running Mission Planner in a debugger, I'm using the downloaded release edition from the website.

Any immediate insight here?  Next, I'm going to try this with QGroundControl, and then try Mission Planner again, hopefully in the debugger, but I thought I'd ask here first.

Thanks in advance,

Paul

Seattle, WA  USA

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Too late for a reply... but just to record I believe the solution is described here

    "

    You should be listening form messages on port 14550 on your computer. When you get a UDP packet, inspect it to see where it came from (should be 10.1.1.10) and which port. Then send your message to that 'return port', the port wiil not be 14550.
    "

  • Ok, so after a little tweaking of the socket code, I can connect to both QGroundControl and Mission Planner, although the Mission Planner connection eventually times out on getting params.  But, Mavlink does work.

    Now, it's a matter of sending the correct Mavlink packets when the telemetry is updated.  I should have this working shortly.

This reply was deleted.

Activity

DIY Robocars via Twitter
RT @donkey_car: Human-scale Donkey Car! Hope this makes it to a @diyrobocars race https://www.youtube.com/watch?v=ZMaf031U8jg
Saturday
DIY Robocars via Twitter
Saturday
DIY Robocars via Twitter
Jun 16
DIY Robocars via Twitter
RT @GrantEMoe: I won my first @diyrobocars @donkey_car virtual race! Many thanks to @chr1sa @EllerbachMaxime @tawnkramer and everyone who m…
Jun 13
DIY Robocars via Twitter
RT @gclue_akira: JetRacerで自動走行したコースを、InstantNeRFで再構築。データセットは別々に収集 #jetracer #instantNeRT https://t.co/T8zjg3MFyO
Jun 13
DIY Robocars via Twitter
RT @SmallpixelCar: SPC 3.0 Now the motor also works. This car is doable. I just need to design a deck to mount my compute and sensors. http…
Jun 13
DIY Robocars via Twitter
RT @SmallpixelCar: My new car SPC 3.0. https://t.co/CKtkZOxeNQ
Jun 7
DIY Robocars via Twitter
RT @SmallpixelCar: High speed at @diyrobocars thanks @EdwardM26321707 for sharing the video https://t.co/o4317Y2U1S
Jun 7
DIY Robocars via Twitter
RT @SmallpixelCar: Today at @RAMS_RC_Club for @diyrobocars. Used @emlid RTK GPS and @adafruit @BoschGlobal IMU. Lap time 28s https://t.co/R…
May 28
DIY Robocars via Twitter
May 15
DIY Robocars via Twitter
May 14
DIY Robocars via Twitter
May 13
DIY Robocars via Twitter
RT @f1tenth: Say hi to our newest #F1TENTH creation for @ieee_ras_icra next week in Philly. It’s going to be huge! 😎 🔥 @AutowareFdn @PennEn…
May 13
DIY Robocars via Twitter
May 11
DIY Robocars via Twitter
May 8
DIY Robocars via Twitter
RT @SmallpixelCar: Noticed my car zigzagged in last run. It turned out to be the grass stuck in the wheel and made the odometry less accura…
May 8
More…