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 @TinkerGen_: "The Tinkergen MARK ($199) is my new favorite starter robocar. It’s got everything — computer vision, deep learning, sensor…
Monday
DIY Robocars via Twitter
Monday
DIY Robocars via Twitter
RT @roboton_io: Join our FREE Sumo Competition 🤖🏆 👉 https://roboton.io/ranking/vsc2020 #sumo #robot #edtech #competition #games4ed https://t.co/WOx…
Nov 16
DIY Drones via Twitter
First impressions of Tinkergen MARK robocar https://ift.tt/36IeZHc
Nov 16
DIY Robocars via Twitter
Our review of the @TinkerGen_ MARK robocar, which is the best on the market right now https://diyrobocars.com/2020/11/15/first-impressions-of-tinkergen-mark-robocar/ https://t.co/ENIlU5SfZ2
Nov 15
DIY Robocars via Twitter
RT @Ingmar_Stapel: I have now explained the OpenBot project in great detail on my blog with 12 articles step by step. I hope you enjoy read…
Nov 15
DIY Robocars via Twitter
RT @DAVGtech: This is a must attend. Click the link, follow link to read the story, sign up. #chaos2020 #digitalconnection #digitalworld ht…
Nov 15
DIY Robocars via Twitter
RT @a1k0n: Got a new chassis for outdoor races (hobbyking Quantum Vandal) but I totally didn't expect that it might cause problems for my g…
Nov 11
DIY Drones via Twitter
First impressions of the Intel OpenBot https://ift.tt/36qkVV4
Nov 10
DIY Robocars via Twitter
Nov 9
DIY Robocars via Twitter
Excellent use of cardboard instead of 3D printing! https://twitter.com/Ingmar_Stapel/status/1324960595318333441
Nov 7
DIY Robocars via Twitter
RT @chr1sa: We've got a record 50 teams competing in this month's @DIYRobocars @donkey_car virtual AI car race. Starting today at 10:00am…
Nov 7
DIY Robocars via Twitter
Nov 6
DIY Robocars via Twitter
RT @a1k0n: Car's view, using a fisheye camera. The ceiling light tracking algorithm gave me some ideas to improve ConeSLAM, and having grou…
Nov 5
DIY Robocars via Twitter
RT @a1k0n: To get ground truth I measured the rug, found the pixel coordinates of its corners, calibrated my phone camera with my standard…
Nov 5
DIY Robocars via Twitter
RT @a1k0n: @DIYRobocars is back in December, but outside. Time to reinvestigate ConeSLAM! I rigged up a quick and dirty ground-truth captur…
Nov 5
More…