Not able to get UDP connection with APMPlanner 2.0

Hi all,

First of all, wish all you happy new year!

I have met some problem with the newly released APMPlanner 2.0. I am writing a program which is able to establish UDP communication with the ground control station. It works fine with both MissionPlanner and QGroundControl. However, I was failed to connect with the APMPlanner 2.0. The error message is shown below:

3691087021?profile=original

Since my program works fine with QGroundControl (APMPlanner 2.0 is developed based on  GroundControl), I really have no idea where am I doing wrong. Can someone give me some ideas on this?Thanks!

Bests,

Sichao

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

Join diydrones

Email me when people reply –

Replies

  • Hi Sichao

    I found this post in a search. I am trying to connect via UDP and don't seem to be able too. Could you electorate on the settings etc and how you got this to work? I have a WiFly module and my Mac is connected to it but I don't know what to do next. APM Planner doesn't connect and relay the Mavlink data. Any details on your set up would be greatly appriciated!!!

    • Developer

      APM Planner 2.0 on startup creates a UDP link that listens on port 14550. If you send UDP packets from the WiFly module to that port, it will work,

      • Developer

        I have some support info here http://www.communistech.com/blog/support/

        I haven't configured the WiFly as UDP for sometime. I'll need to dig up the config file.

        You can add a TCP link, you just need to add it when in Advanced Mode in AP2

        • Here's the wifely settings. I'm not sure about that 14.5.5.0 address I thought that was where APM Planner would listen?? Also see the screen sump of APM Planner connection settings.

          *READY* AP mode as APMNetworks on chan 11

          Listen on 2000 DCHP Server Init wifly-EZX Vewifly-EZX Ver 4.00.1, Apr 19 2013 11:47:16 on RN-171 MAC Addr=00:06:66:55:07:4a *READY* AP mode as APMNetworks on chan 11 \DHCP: 14.5.5.10 lease to Ricks-iMac

          From Clipboard.jpg

        • I did vista your page however I can't seem to get it to work so if you have any suggestions I'm all ears! I just bought a Macbook Air for a ground station so sure hope I can figure it out!! 

      • I'm not clear on why there are two ports?? The host is the wifely the remote is the Mac? They both get set to 14550? Thanks again I know I'm close! 

        set ip remote /b>value> // Set remote port on which host listens

         set ip local /b>value> // Set port number on which module listens

      •  

        This is what I'm doing. Am I on the right track? 

        set wlan ssid <string> // Set the network name

         set wlan phrase <string> // Set the passphrase for WPA and WPA2 modes

         set ip proto 1 // Enable UDP as the protocol

         set ip host <address> // Set the remote host’s IP address

         set ip remote <value> // Set remote port on which host listens

         set ip local <value> // Set port number on which module listens

         save // Save settings in the configuration file

         reboot // Reboot the module

      • Hi Bill

        Would that be 'set ip host 14550' while in command mode on the wifely?

  • Developer
    Please post support requests for AP2 here http://ardupilot.com/forum/viewforum.php?f=82
  • Developer
    I have not tested UDP on windows, but it works for me on OSX using APM Planner 2.0. Have you made sure you are nit running QGC or MP at the same time, which will mean you have them all on the same port address. Try setting a unique one foe AP2 other than 14550
This reply was deleted.

Activity