3DR Solo Basic MAVLink UDP Communication

I recently purchased a Solo for use in teaching kids coding in a fun way and i am having a bit of trouble getting my initial API working. I prefer to code in Java and i have previously written a Java Mavlink API for communicating with my pixhawk on custom platforms and on the 3dr X8 and everything works fine. now I have a solo and I was thinking the only change i would need to make to my API is to change my serial connection to a UDP connection.

My current process that I use to test that my api is working is to create an ARM message and push the ARM message  byte array over the serial connection and the pixhawk will make the error tone saying it is trying to arm but it cannot because there is no GPS. (if there was GPS it does arm and start the motors)

 

My new process is I connect my computer to the solo controller's Wi-Fi, I create the arm message, I create a UDP packet whose destination is 10.1.1.10, and destination port is 14550, and the content is the arm message byte array. I send the packet… and nothing.

 

Is there something wrong in my logic? Does the solo not communicate using mavlink protocols over UDP, am I sending to the correct IP and Port, Is there something else I am missing? Any help would be appreciated.

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

Join diydrones

Email me when people reply –

Replies

  • Hey John,

    I know this is an old thread but how did you get the mavlink communication up? I am trying to use MAVproxy to connect to solo but can't seem to send any messages.

    What was the port that your found?

  • i have my controls api complete, now i am just trying to figure out the video. Does anyone have any suggestions on where to look for information on streaming the gopro video back to my computer.

    • Developer

      it's all here http://dev.3drobotics.com/

      Though I used gstreamer on the computer (i use linux) as gstreamer lower latency than VLC

      In another terminal window type
      nc 10.1.1.1 5502
        
      then
        
      gst-launch-1.0 -v udpsrc port=5600 caps='application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264' ! rtph264depay ! avdec_h264 ! videoconvert ! ximagesink
  • Developer

    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.

    • Developer

      PS: if you post the code via github or gist.github.com I can also add some pointers. (Please don't paste in a comment as the formatting gets destroyed)

      • Worked great thank you. 

      • Thank you so much, I dont know how i missed that.

This reply was deleted.

Activity

DIY Robocars via Twitter
Sunday
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
DIY Robocars via Twitter
RT @SmallpixelCar: Test my car. RTK GPS worked great. Thanks @emlid for their support. https://t.co/EkQ6qmjmWR
May 8
DIY Drones via Twitter
RT @chr1sa: @kane That's @diydrones circa 2009. Still have a box of those Canon cameras that we used to strap into planes, just like this.…
May 3
DIY Robocars via Twitter
RT @chr1sa: Our next @diyrobocars race is going to be outside at a real RC racetrack in Fremont on May 28. Fully autonomous racing, head-to…
Apr 30
DIY Robocars via Twitter
RT @f1tenth: Our Spring 2022 F1TENTH course @PennEngineers is coming to an end with a head-to-head race as a big finale. So proud of our st…
Apr 26
DIY Robocars via Twitter
RT @DanielChiaJH: I wrote a thing! Throughout the development of my @diyrobocars car I've been using @foxglovedev Studio to visualize and d…
Apr 23
DIY Robocars via Twitter
RT @SmallpixelCar: My new car for high speed. Low body, everything ( @NVIDIAEmbedded Jetson Xavier NX, @emlid RTK GPS, IMC) under the deck…
Apr 23
DIY Robocars via Twitter
Apr 21
DIY Robocars via Twitter
RT @f1tenth: F1TENTH Race training setup @PennEngineers for our upcoming ICRA2022 @ieee_ras_icra competition. @OpenRoboticsOrg @IndyAChalle…
Apr 21
DIY Robocars via Twitter
RT @fatcatFABLAB: Proud to be hosting a restarted DIY Robocars NYC Meetup April 26. Come by if you want to talk about and race self-driving…
Apr 17
More…