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 @gclue_akira: 柏の葉で走行させてるjetracerの中身 #instantNeRF #jetracer https://t.co/giVvuE4hP7
Jul 4
DIY Robocars via Twitter
Cool web-based self-driving simulator. Click save when the AI does the right thing https://github.com/pncsoares/self-driving-car
Jul 4
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
Jun 25
DIY Robocars via Twitter
Jun 25
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
More…