Raspberry 4B pixhawk qgc

Hello! I have a problem, and I hope to find a solution here. I am working on a Blue ROV 2 vehicle using Pixhawk and Raspberry Pi 4B. I have successfully connected them and obtained vehicle information on VNC. The problem I’m facing is that the QGroundControl (QGC) software cannot establish a UDP connection with the Raspberry Pi. What is the solution here?

Hi @rabah

Do you mean a Raspberry Pi 3B+ ? Or Raspberry Pi 4?
I’m not familiar with how you’re communicating with the vehicle - what do you mean by VNC?
Can you reach the BlueOS interface @ blueos.local or 192.168.2.2?

If you’re able to connect, checkout Mavlink Endpoints (you’ll need to turn on Pirate mode) and verify everything there looks good.
Best of luck!

After connecting the Pixhawk and Raspberry Pi 4B, I ran MavProxy and the result was positive as follows. As for my next step, I want to link the Raspberry Pi to the program…QGC

image

Hi @rabah -
Are you trying to use a raspberry pi as your ground control station computer? If so, you’ll want to configure the network adapter you’re using to reach the ROV to have the correct IP address and subnet mask (192.168.2.1 / 255.255.255.0).
After that, just launch QGroundControl to connect to the ROV! See their instructions for a few commands you may need to run before launching the program.

thnx anthony …

Can I communicate with the vehicle using the Raspbian operating system? Should I use Ubuntu? Just so you know, I’m using Raspberry Pi 4B, and my program cannot detect the vehicle at all.

Hi @rabah -
I’m a little confused, only because there is no product called a Raspberry Pi 4B! As asked before - Do you mean a Raspberry Pi 3B+ ? Or Raspberry Pi 4?

Either should work as a ground-station to control the ROV, but the pi 4 will likely perform better when streaming the video - you may have to decrease the video resolution to 720p on a pi 3B+.
You can launch the QGround Control .appimage on Raspbian. It or any custom script/program you’d like to access the ROV with will only work if you configure the network connection appropriately. If you don’t want to use the default IP address for your ground control station, you can setup another Mavlink Endpoint (in Pirate Mode) from within BlueOS.
The screenshot you shared indicated you were communicating with a mavlink device over USB? Are you connecting a pixhawk directly to the raspberry pi you are using?
Is your goal to control an ROV? Specifically a BROV2 or maybe something else?

"I have an issue. When I connected the Pixhawk to Raspberry Pi 4, the QGroundControl program couldn’t sense it, even though the connection is established. I’m using an Ethernet cable and working on a project.ROV2 Should I connect to the BLEU OS interface first? I need an answer, and thank you in advance.

Hi @rabah -
To clarify again, the Pxhawk connects to the Pi 4, which connects to a computer running QGroundControl via ethernet / Fathom X tether interface. You will not be able to receive data from the default mavlink connection unless your computer IP address is 192.168.2.1, with subnet mask 255.255.255.0. If you can load the BlueOS webpage (blueos.local) when connected, but not see a connection in QGroundControl, then your IP address is likely set to the wrong value.

Greetings. I want to connect with QGroundControl and control my vehicle by installing blueos using raspbery pi 4 and pixhawk, but I have insufficient knowledge about how to make the QGC connection, can you help me how to make the QGC connection?

Hi @yusufcelalcelik -
The Mavlink Endpoints menu in BlueOS lets you confgure a connection from ArduSub/ArduRover firmware running on the Raspbery Pi4, to your control computer running QGC.
Can you share where you’re getting stuck?

First of all, thank you for responding. I have never used qgc before and I don’t know how to use it with BlueOS with ethernet communication. I didn’t see any place where I need to write an ip address and there is no problem in the mavlink endpoints section, I think there is an extra setting I need to set. But I have to say that there is a problem that I need to solve first. I noticed that the raspbery pi 4 2gb stopped working while I was throwing software to Pixhawk. I have to say that the red and green light is constantly on. The company I bought it from said they would fix the problem soon for repair. I will get back to you when the raspbery pi starts working. I apologize for any typos. I am using a translation service because my English is not good enough.

Hi @yusufcelalcelik -
QGround control will automatically connect to the vehicle when the control computer is connected, and configured to have the correct default IP address of 192.168.2.1. Telemetry is automatically sent to QGC at the expected port number, along with video.

1 Like

Hi! Thank you for your reply. Yesterday I managed to run it with QGC but today it could not connect to QGC. What could be the problem?

Hi @yusufcelalcelik -
Have you verified your tether connection? The FXTI tether adapter shoul dhave both a green power light, as well as a green link light. If the link light is not present, you cannot communicate with the ROV - via the tether at least!

If the link light is not on, you should verify continuity / check resistance of your tether wires, and potentially try another pair, to make sure you don’t have a loose connection or damaged spot.

You should also verify the usb to ethernet adapter is showing up in your network settings, and is still properly configured.