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
RT @knightsautoteam: Hi @diyrobocars, we are Orlando's first Autonomous racing club and would love your support. We are hosting our first K…
18 hours ago
DIY Robocars via Twitter
RT @Heavy02011: #VirtualRaceLeague: @DIYRobocars Race #14 - #ParkingLotNerds join us January 15th for #AutonomousRacing #RoboRace ⁦@DAVGtec…
Monday
DIY Robocars via Twitter
RT @chr1sa: And after that came our races, 50 in all. This battle between these two Russians was the best we've ever seen -- incredible fig…
Monday
DIY Robocars via Twitter
RT @chr1sa: Before our @DIYRobocars virtual race this weekend, we had a presentation from the team that won the Indy Autonomous Challenge i…
Monday
DIY Drones via Twitter
Dec 12, 2021
DIY Robocars via Twitter
Dec 12, 2021
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…
Dec 4, 2021
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, 2021
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, 2021
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, 2021
DIY Robocars via Twitter
@gclue_akira CC @NVIDIAEmbedded
Nov 23, 2021
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, 2021
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, 2021
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, 2021
DIY Robocars via Twitter
RT @DAVGtech: Live NOW! Alexander Wischnewski of Indy Autonomous Challenge winning TUM team talking racing @diyrobocars @Heavy02011 @Ottawa…
Nov 20, 2021
DIY Robocars via Twitter
Incredible training performance with Donkeycar https://www.youtube.com/watch?v=9yy7ASttw04
Nov 9, 2021
More…