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 @chr1sa: Donkeycar 4.4 released with tons of new features, including path learning (useful with GPS outdoors), better Web and Lidar supp…
Nov 27, 2022
DIY Robocars via Twitter
RT @NXP: We are already biting our nails in anticipation of the #NXPCupEMEA challenge! 😉 Did you know there are great cash prizes to be won…
Nov 24, 2022
DIY Robocars via Twitter
RT @gclue_akira: レースまであと3日。今回のコースは激ムズかも。あと一歩 #jetracer https://t.co/GKcEjImQ3t
Nov 24, 2022
DIY Robocars via Twitter
UC Berkeley's DIY robocar program https://roar.berkeley.edu/
Nov 24, 2022
DIY Robocars via Twitter
RT @chr1sa: The next @DIYRobocars autonomous car race at @circuitlaunch will be on Sat, Dec 10. Thrills, spills and a Brazilian BBQ. Fun…
Nov 24, 2022
DIY Robocars via Twitter
RT @arthiak_tc: Donkey car platform ... Still training uses behavioral cloning #TCXpo #diyrobocar @OttawaAVGroup https://t.co/PHBYwlFlnE
Nov 20, 2022
DIY Robocars via Twitter
RT @emurmur77: Points for style. @donkeycar racing in @diyrobocars at @UCSDJacobs thanks @chr1sa for taking the video. https://t.co/Y2hMyj1…
Nov 20, 2022
DIY Robocars via Twitter
RT @SmallpixelCar: Going to @diyrobocars race at @UCSDJacobs https://t.co/Rrf9vDJ8TJ
Nov 8, 2022
DIY Robocars via Twitter
RT @SmallpixelCar: Race @diyrobocars at @UCSDJacobs thanks @chr1sa for taking the video. https://t.co/kK686Hb9Ej
Nov 8, 2022
DIY Robocars via Twitter
RT @PiWarsRobotics: Presenting: the Hacky Racers Robotic Racing Series in collaboration with #PiWars. Find out more and register your inter…
Oct 23, 2022
DIY Robocars via Twitter
RT @Hacky_Racers: There will be three classes at this event: A4, A2, and Hacky Racer! A4 and A2 are based around UK paper sizing and existi…
Oct 23, 2022
DIY Robocars via Twitter
Oct 23, 2022
DIY Robocars via Twitter
Oct 19, 2022
DIY Robocars via Twitter
Oct 18, 2022
DIY Robocars via Twitter
RT @NeaveEng: Calling all UK based folks interested in @diyrobocars, @f1tenth, @donkey_car, and similar robot racing competitions! @hacky_r…
Oct 13, 2022
DIY Robocars via Twitter
RT @araffin2: 🏎️ After hours of video editing, I'm happy to share a best of my Twitch videos on learning to race with RL. 🏎️ Each part is…
Oct 13, 2022
More…