# Drone not connecting in QGroundControl

**URL:** <https://forum.theavr.org/t/drone-not-connecting-in-qgroundcontrol/197>\
**Category:** AVR Drone Software\
**Created:** [September 29, 2022, 9:04pm UTC](https://forum.theavr.org/t/drone-not-connecting-in-qgroundcontrol/197 "2022-09-29T21:04:01Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ag3ntOran6e](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@Ag3ntOran6e](https://forum.theavr.org/u/Ag3ntOran6e)\
**Post date:** [September 29, 2022, 9:04pm UTC](https://forum.theavr.org/t/drone-not-connecting-in-qgroundcontrol/197/1 "2022-09-29T21:04:01Z")

</div>

We have multiple teams and they are all having the same problem.

They connect to the Jetson WiFi. Ssh into the Jetson and start the mqtt server. Then they go to QGroundControl and connect using the IP address. But QGC doesnt seem to connect to the drone. Anyone else having this problem? Did we miss something?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![nathan](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.theavr.org/nathan/32/4_2.png) [@nathan](https://forum.theavr.org/u/nathan)\
**Post date:** [September 29, 2022, 11:11pm UTC](https://forum.theavr.org/t/drone-not-connecting-in-qgroundcontrol/197/2 "2022-09-29T23:11:20Z")

</div>

You say they started the MQTT server. Is the mavp2p server also running? That’s the software that bridges the connection from the Pixhawk telemetry cable, to QGC over WiFi.

A way to be sure, is to explicitly run `./start.py run mavp2p` and then try to connect QGC. You don’t need the MQTT server to connect QGC.

---

<div class="post-metadata">

**Author:** ![Ag3ntOran6e](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@Ag3ntOran6e](https://forum.theavr.org/u/Ag3ntOran6e)\
**Post date:** [September 30, 2022, 1:07am UTC](https://forum.theavr.org/t/drone-not-connecting-in-qgroundcontrol/197/3 "2022-09-30T01:07:37Z")

</div>

Here is the output when we tried that command.

> **[AVR\_Problem092922.HEIC](https://drive.google.com/file/d/13Ki2bgsDxhDH7rmUQhhSGQI0NIrrAHW-/view?usp=sharing)**
>
> Google Drive file.

---

<div class="post-metadata">

**Author:** ![droneblocks](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.theavr.org/droneblocks/32/159_2.png) [@droneblocks](https://forum.theavr.org/u/droneblocks)\
**Post date:** [September 30, 2022, 7:55pm UTC](https://forum.theavr.org/t/drone-not-connecting-in-qgroundcontrol/197/4 "2022-09-30T19:55:34Z")

</div>

Are you connecting to the drone via hotspot or is the drone connected to your school’s network? What do your QGC connection settings look like? Here are mine that I use when connected to the drone’s hotspot:

![avr_qgc_connection](https://canada1.discourse-cdn.com/flex007/uploads/avr/original/1X/fc4045634fca7a97cb5da5f9b8b9dfaab08e1d35.png)

---

<div class="post-metadata">

**Author:** ![Ag3ntOran6e](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@Ag3ntOran6e](https://forum.theavr.org/u/Ag3ntOran6e)\
**Post date:** [September 30, 2022, 8:08pm UTC](https://forum.theavr.org/t/drone-not-connecting-in-qgroundcontrol/197/5 "2022-09-30T20:08:50Z")

</div>

Thanks for the reply!

I am connecting to the drone via its network that it provides. We connect to the network. We ssh into the drone. We start the mqtt server and then go to QGC and try with the same settings you have and it doesnt connect. But as Nathan mentioned above, the mavp2p link seems to not be working correctly? I have the screenshot above with the output when we try the ‘./start.py run mavp2p’ command. Says there are a TON of errors in the output.

---

<div class="post-metadata">

**Author:** ![nathan](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.theavr.org/nathan/32/4_2.png) [@nathan](https://forum.theavr.org/u/nathan)\
**Post date:** [September 30, 2022, 9:16pm UTC](https://forum.theavr.org/t/drone-not-connecting-in-qgroundcontrol/197/6 "2022-09-30T21:16:02Z")

</div>

Hm, I’ve seen that before where it says “X errors in the last 5 seconds”. It’s very rare and we’ve never really been able to nail down what causes it.

Could you also try running `./start.py run mavp2p fcm` as well and giving that a go? I’m wondering if it’s trying to route MAVLink packets to the non-existent `fcm` hostname, and that’s preventing QGC from connecting @droneblocks.

If that doesn’t work, I recommend running `./start.py stop --min` so it stops and cleans up all the existing running modules, reboot the Jetson, and double check that the Pixhawk is getting power.

The good news at least is that don’t really need QGroundControl during flight, since the control GUI should have all relevant information you need, and that works with MQTT.

---

<div class="post-metadata">

**Author:** ![Ag3ntOran6e](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@Ag3ntOran6e](https://forum.theavr.org/u/Ag3ntOran6e)\
**Post date:** [October 1, 2022, 5:16pm UTC](https://forum.theavr.org/t/drone-not-connecting-in-qgroundcontrol/197/7 "2022-10-01T17:16:33Z")

</div>

Ok, here is the output from the last command you asked to run, with the fcm at the end: [mavp2p\_fcm\_output.txt - Google Drive](https://drive.google.com/file/d/1G8Aa0yzFz7M0mUEQY5t6QNJU5Su2xyOn/view?usp=sharing)

Here is the output from rerunning setup: [rerunSetupOutput.txt - Google Drive](https://drive.google.com/file/d/1Q9bK3vUzirtWC1jnh35-dyMlhzjczNEQ/view?usp=sharing)

This is trying the run command AGAIN after rerunning setup for the like 5th time: [startRunMinOutput10122.txt - Google Drive](https://drive.google.com/file/d/1x0kqqUqTBrOZ2bFHCdUPVhYnIXRn_Cbl/view?usp=sharing)

It is just so weird all 3 of our teams are having the same problem here… ANY help/guidance/assistance would be GREATLY appreciated.

---

<div class="post-metadata">

**Author:** ![Ag3ntOran6e](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@Ag3ntOran6e](https://forum.theavr.org/u/Ag3ntOran6e)\
**Post date:** [October 1, 2022, 5:19pm UTC](https://forum.theavr.org/t/drone-not-connecting-in-qgroundcontrol/197/8 "2022-10-01T17:19:28Z")

</div>

Oh I also forgot to mention that our pixhawk does seem to have power and there are 2 solid green lights and 2 blinking blue lights.

---

<div class="post-metadata">

**Author:** ![nathan](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.theavr.org/nathan/32/4_2.png) [@nathan](https://forum.theavr.org/u/nathan)\
**Post date:** [October 2, 2022, 3:01pm UTC](https://forum.theavr.org/t/drone-not-connecting-in-qgroundcontrol/197/9 "2022-10-02T15:01:17Z")

</div>

I’m not as familiar with the Pixhawk 6 this year, my guess with all the `node appeared: chan=serial` messages, there’s something wrong with the serial connection. @droneblocks do you have any advice.

---

<div class="post-metadata">

**Author:** ![droneblocks](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.theavr.org/droneblocks/32/159_2.png) [@droneblocks](https://forum.theavr.org/u/droneblocks)\
**Post date:** [October 2, 2022, 11:11pm UTC](https://forum.theavr.org/t/drone-not-connecting-in-qgroundcontrol/197/10 "2022-10-02T23:11:39Z")

</div>

I think Nathan may be right. It seems like something is not working with your telemetry cable. Here is a simple test you can run. Login to your VMC and obviously make sure your Pixhawk is powered up. Run the following command:

```auto
sudo cat /dev/ttyTHS1

```

You should see a bunch of jibberish printed out to the console. This is the serial port where Pixhawk communicated with the VMC. If you want more details on the how the mavp2p service is configured you can view the line here:

> <https://github.com/bellflight/AVR-2022/blob/c22328e628e0926a1a478f489dd9f94ecec9c452/VMC/start.py#L90>

That data gets forwarded to port 5760, which is how your QGC connection should be configured. But please don’t mess with the configuration line above 🙂 It’s only for reference.

I recommend checking your telemetry cable and connections to your VMC. I speak from experience when saying it’s very easy to get your TX/RX lines flipped which will lead to no communication.

Keep us posted as we’d like to help you get this resolved!

---

<div class="post-metadata">

**Author:** ![Ag3ntOran6e](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@Ag3ntOran6e](https://forum.theavr.org/u/Ag3ntOran6e)\
**Post date:** [October 3, 2022, 10:35pm UTC](https://forum.theavr.org/t/drone-not-connecting-in-qgroundcontrol/197/11 "2022-10-03T22:35:21Z")

</div>

Well, currently 1 of our 3 teams gets the gibberish from running that command. The other two dont. but the one that gets the gibberish still gets the error lines and still doesnt work, has those lines that say XXXX errors in 5 seconds…

---

<div class="post-metadata">

**Author:** ![Ag3ntOran6e](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@Ag3ntOran6e](https://forum.theavr.org/u/Ag3ntOran6e)\
**Post date:** [October 3, 2022, 10:42pm UTC](https://forum.theavr.org/t/drone-not-connecting-in-qgroundcontrol/197/12 "2022-10-03T22:42:42Z")

</div>

Nevermind… it seemed to be a fluke? Isnt working for that team now…

We are trying to remake the telemetry cable right now.

---

<div class="post-metadata">

**Author:** ![Ag3ntOran6e](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@Ag3ntOran6e](https://forum.theavr.org/u/Ag3ntOran6e)\
**Post date:** [October 4, 2022, 12:49pm UTC](https://forum.theavr.org/t/drone-not-connecting-in-qgroundcontrol/197/13 "2022-10-04T12:49:13Z")

</div>

We really need some additional assistance. We have now tried everything you suggested AND MORE. We have tried getting a new sd card and redoing ALL the firmware on the jetson from the ground up. They tried updating the firmware on the pixhawk. They tried making a new telemetry cable. They arent getting the gibberish from the pixhawk. One of the teams did actually get some gibberish but then tried to run ./setup and it wouldnt work still.

We really need some help fixing this issue. We are all very much out of ideas now.

---

<div class="post-metadata">

**Author:** ![droneblocks](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.theavr.org/droneblocks/32/159_2.png) [@droneblocks](https://forum.theavr.org/u/droneblocks)\
**Post date:** [October 4, 2022, 1:43pm UTC](https://forum.theavr.org/t/drone-not-connecting-in-qgroundcontrol/197/14 "2022-10-04T13:43:46Z")

</div>

It sounds like you feel confident in your hardware setup, which is good. Have you tried updating the params from this page?

[https://bellflight.github.io/AVR-2022/software/flight-controller-parameters/](https://bellflight.github.io/AVR-2022/software/flight-controller-parameters/)

That will be necessary to get the telemetry out of Pixhawk.

---

<div class="post-metadata">

**Author:** ![Ag3ntOran6e](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@Ag3ntOran6e](https://forum.theavr.org/u/Ag3ntOran6e)\
**Post date:** [October 4, 2022, 7:29pm UTC](https://forum.theavr.org/t/drone-not-connecting-in-qgroundcontrol/197/15 "2022-10-04T19:29:37Z")

</div>

THAT WAS IT!

We didn’t add the parameters yet… The instructions are out of order. They say to run the software, connect to QGC and THEN do the parameters! So the kids didnt do that yet.

Up and running! Thank you all for your help @droneblocks & @nathan

---

<div class="post-metadata">

**Author:** ![Ag3ntOran6e](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@Ag3ntOran6e](https://forum.theavr.org/u/Ag3ntOran6e)\
**Post date:** [October 4, 2022, 11:19pm UTC](https://forum.theavr.org/t/drone-not-connecting-in-qgroundcontrol/197/16 "2022-10-04T23:19:22Z")

</div>

@droneblocks / @nathan : it seems that it fixed that problem, but we are having yet another problem. We posted it in another thread: [Drone can't take off - Checkpoint 3](http://forum.theavr.org/t/drone-cant-take-off-checkpoint-3/217)

Any help would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![droneblocks](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.theavr.org/droneblocks/32/159_2.png) [@droneblocks](https://forum.theavr.org/u/droneblocks)\
**Post date:** [October 4, 2022, 11:28pm UTC](https://forum.theavr.org/t/drone-not-connecting-in-qgroundcontrol/197/17 "2022-10-04T23:28:48Z")

</div>

Glad to hear that. Let me chat with the team as you do make a good point regarding order of content.

---

<div class="post-metadata">

**Author:** ![Subhorup](https://avatars.discourse-cdn.com/v4/letter/s/7feea3/32.png) [@Subhorup](https://forum.theavr.org/u/Subhorup)\
**Post date:** [February 24, 2023, 5:54pm UTC](https://forum.theavr.org/t/drone-not-connecting-in-qgroundcontrol/197/18 "2023-02-24T17:54:19Z")

</div>

How to participate in this competition. Please anyone help me
