Hi

I`m trying to get Mission planner connected to my Pixhawk through RPI using UDP protocol. But somehow it fails. If i`m using APMplanner 2 everything is working and connections is good.


When i hit the connect button in mission planner it`s saying "waiting for connection" and sometimes its starting to count down and sometimes its start`s to receive packages for a couple of seconds, but ends up in "connect failed" error.
I`v been trying several types of UDP server in my RPI with same result.

  1. Python udp script
  2. TTL to Ethernet adapter, running UDP redirect in RPI
  3. Mavlink,

I tested my old APM 2,5 board instead of Pixhawk, and its work like a charm.
What is the different between APM and Pixhawk telemetry packages.

If i`m using Pixhawk and Mavlink, it sometimes connects successfully 1 out of 10 times maybe, but the latency is very high.

With TCP connection there is no problem at all APM & Pixhawk connects perfectly. Everything running smooth..
TCP tested method`s:

  1. Ser2net- Working perfect (Tested without TTL to Eth adapter. TX/RX connected directly to RPI)
  2. Python TCP script -  Working perfect (Tested without TTL to Eth adapter. TX/RX connected directly to RPI) 
  3. Socat comand line ( socat UDP4-RECVFROM:14450,fork UDP4-SENDTO:<DynDns>:14450

So my question is:
Why is UDP working in APMplanner 2 and not MP?
Is there something else i need to considerate when using PixHawk UDP and MP
I will try to use Wireshark to see whats happening to my package, but i could really need some advice on what to look for.

Regards
Bernt Christian Egeland

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

Join diydrones

Email me when people reply –

Replies

  • Hi
    I finally solved my issue..
    If i recycle the power for pixhawk 2 seconds before i press download Firmware, UDP works like i charm..
    I really don't know why this procedure would make any different.

    Have a great summer and enjoy flying. I certainly will.

    Regards
    Bernt Christian Egeland

  • Developer

    can you please try the latest MP beta.

    help > update beta.

     

    and tell me the error you see now. it should be a different error than last time

This reply was deleted.

Activity

DIY Robocars via Twitter
RT @chr1sa: Just a week to go before our next @DIYRobocars race at @circuitlaunch, complete with famous Brazilian BBQ. It's free, fun for k…
Saturday
DIY Robocars via Twitter
How to use the new @donkey_car graphical UI to edit driving data for better training https://www.youtube.com/watch?v=J5-zHNeNebQ
Nov 28
DIY Robocars via Twitter
RT @SmallpixelCar: Wrote a program to find the light positions at @circuitlaunch. Here is the hypothesis of the light locations updating ba…
Nov 26
DIY Robocars via Twitter
RT @SmallpixelCar: Broke my @HokuyoUsa Lidar today. Luckily the non-cone localization, based on @a1k0n LightSLAM idea, works. It will help…
Nov 25
DIY Robocars via Twitter
@gclue_akira CC @NVIDIAEmbedded
Nov 23
DIY Robocars via Twitter
RT @luxonis: OAK-D PoE Autonomous Vehicle (Courtesy of zonyl in our Discord: https://discord.gg/EPsZHkg9Nx) https://t.co/PNDewvJdrb
Nov 23
DIY Robocars via Twitter
RT @f1tenth: It is getting dark and rainy on the F1TENTH racetrack in the @LGSVLSimulator. Testing out the new flood lights for the racetra…
Nov 23
DIY Robocars via Twitter
RT @JoeSpeeds: Live Now! Alex of @IndyAChallenge winning @TU_Muenchen team talking about their racing strategy and open source @OpenRobotic…
Nov 20
DIY Robocars via Twitter
RT @DAVGtech: Live NOW! Alexander Wischnewski of Indy Autonomous Challenge winning TUM team talking racing @diyrobocars @Heavy02011 @Ottawa…
Nov 20
DIY Robocars via Twitter
Incredible training performance with Donkeycar https://www.youtube.com/watch?v=9yy7ASttw04
Nov 9
DIY Robocars via Twitter
RT @JoeSpeeds: Sat Nov 6 Virtual DonkeyCar (and other cars, too) Race. So bring any car? @diyrobocars @IndyAChallenge https://t.co/nZQTff5…
Oct 31
DIY Robocars via Twitter
RT @JoeSpeeds: @chr1sa awesomely scary to see in person as our $1M robot almost clipped the walls as it spun at 140mph. But it was also awe…
Oct 29
DIY Robocars via Twitter
RT @chr1sa: Hey, @a1k0n's amazing "localize by the ceiling lights" @diyrobocars made @hackaday! It's consistently been the fastest in our…
Oct 25
DIY Robocars via Twitter
RT @IMS: It’s only fitting that @BostonDynamics Spot is waving the green flag for today’s @IndyAChallenge! Watch LIVE 👉 https://t.co/NtKnO…
Oct 23
DIY Robocars via Twitter
RT @IndyAChallenge: Congratulations to @TU_Muenchen the winners of the historic @IndyAChallenge and $1M. The first autonomous racecar comp…
Oct 23
DIY Robocars via Twitter
RT @JoeSpeeds: 🏎@TU_Muenchen #ROS 2 @EclipseCyclone #DDS #Zenoh 137mph. Saturday 10am EDT @IndyAChallenge @Twitch http://indyautonomouschallenge.com/stream
Oct 23
More…