# Can't connect to VRC GUI

**URL:** <https://forum.theavr.org/t/cant-connect-to-vrc-gui/295>\
**Category:** Technical Support (Official)\
**Created:** [October 26, 2022, 9:29pm UTC](https://forum.theavr.org/t/cant-connect-to-vrc-gui/295 "2022-10-26T21:29:06Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![emoons](https://avatars.discourse-cdn.com/v4/letter/e/50afbb/32.png) [@emoons](https://forum.theavr.org/u/emoons)\
**Post date:** [October 26, 2022, 9:29pm UTC](https://forum.theavr.org/t/cant-connect-to-vrc-gui/295/1 "2022-10-26T21:29:06Z")

</div>

Good evening,

My team is currently stuck on the software portion of the instructions. They were unable to connect to the QGC, but since it stated it wasn’t strictly required for anything, I had them skip it. They completed the next section consisting of the flight controller parameters. When they run the AVR GUI, they cannot connect to the MQTT, it just keeps showing failure.

I ran ifconfig to check the ipaddress of the jetson and confirmed it is 10.42.0.1

Everything else, other than the QGC and the AVR GUI has worked up until now. Are these two failures related?

How do we proceed from here?

---

<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 26, 2022, 10:35pm UTC](https://forum.theavr.org/t/cant-connect-to-vrc-gui/295/2 "2022-10-26T22:35:20Z")

</div>

Sounds like you are making progress! Can you confirm if you’re running the AVR software stack as discussed here:

[https://bellflight.github.io/AVR-2022/software/running-vmc-software/#running](https://bellflight.github.io/AVR-2022/software/running-vmc-software/#running)

Otherwise you won’t be able to connect with QGC or the GUI software. For example what happens when you run

```auto
./start.py run --min

```

---

<div class="post-metadata">

**Author:** ![emoons](https://avatars.discourse-cdn.com/v4/letter/e/50afbb/32.png) [@emoons](https://forum.theavr.org/u/emoons)\
**Post date:** [October 27, 2022, 2:31pm UTC](https://forum.theavr.org/t/cant-connect-to-vrc-gui/295/3 "2022-10-27T14:31:38Z")

</div>

Yes, we run ./start.py run

When we run the program, it creates all the modules and the status is done. It then loops through all the modules coninuously. I just made a video of it to pause it. A couple of things that I notice are:

mqtt\_1 New Connection from 172.18.0.6:50055 on port 18830  
mqtt\_1 New client connected from172.18.0.6:50055 as auto-433

“waiting for avr/fusion//geo to be populated”.

“ValueErrot: No I2C device at address: 0x69  
Exiting…  
Cleaning up pins”  
and then back to the loop

I can stop the loops by pressing Control C. I have then run ./start.py stop to delete the modules. When I rerun the python program everything loops the same again.

---

<div class="post-metadata">

**Author:** ![emoons](https://avatars.discourse-cdn.com/v4/letter/e/50afbb/32.png) [@emoons](https://forum.theavr.org/u/emoons)\
**Post date:** [October 27, 2022, 2:41pm UTC](https://forum.theavr.org/t/cant-connect-to-vrc-gui/295/4 "2022-10-27T14:41:02Z")

</div>

For the AVR software, It state that it is connecting to MQTT server at 10.42.0.1:18830  
Then I get ERROR - Connection failed to MQTT server  
At the end, I get: socket.timeout: timed out

setup for the drone:

PCC connected to the Jetson  
PCC has jumper on Featherwing for power  
FC connected to computer  
External monitor, keyboard, mouse

Not sure if anything needs to be changed.

---

<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 27, 2022, 5:07pm UTC](https://forum.theavr.org/t/cant-connect-to-vrc-gui/295/5 "2022-10-27T17:07:23Z")

</div>

Can you share the video you recorded here with the MQTT output? That would be really helpful.

Regarding the QGC issue can you run the following command to see if anything shows up in your terminal.

```auto
sudo cat /dev/ttyTHS1

```

More details can be found here:

> [@Drone not connecting in QGroundControl](http://forum.theavr.org/t/drone-not-connecting-in-qgroundcontrol/197/10):
>
> 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: 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: That data gets forwa…

---

<div class="post-metadata">

**Author:** ![emoons](https://avatars.discourse-cdn.com/v4/letter/e/50afbb/32.png) [@emoons](https://forum.theavr.org/u/emoons)\
**Post date:** [October 27, 2022, 5:54pm UTC](https://forum.theavr.org/t/cant-connect-to-vrc-gui/295/6 "2022-10-27T17:54:37Z")

</div>

I just ran sudo cat /dev/ttyTHS1 and I do get the gibberish/symbols continuously scrolling.

It will not allow me to upload a video. It states it is not an approved file type. Is there somewhere else I can upload this, or an email address to send it to?

---

<div class="post-metadata">

**Author:** ![agarrison-bell](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.theavr.org/agarrison-bell/32/71_2.png) [@agarrison-bell](https://forum.theavr.org/u/agarrison-bell)\
**Post date:** [October 27, 2022, 6:20pm UTC](https://forum.theavr.org/t/cant-connect-to-vrc-gui/295/7 "2022-10-27T18:20:14Z")

</div>

A link to a YouTube video is likely the best way to upload a video to the forum.

---

<div class="post-metadata">

**Author:** ![emoons](https://avatars.discourse-cdn.com/v4/letter/e/50afbb/32.png) [@emoons](https://forum.theavr.org/u/emoons)\
**Post date:** [October 27, 2022, 6:56pm UTC](https://forum.theavr.org/t/cant-connect-to-vrc-gui/295/12 "2022-10-27T18:56:14Z")

</div>

Link to YouTube video for AVR Terminal  
[https://youtu.be/m2OXiqhXvpg](https://youtu.be/m2OXiqhXvpg)

---

<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 27, 2022, 8:37pm UTC](https://forum.theavr.org/t/cant-connect-to-vrc-gui/295/13 "2022-10-27T20:37:43Z")

</div>

Thanks. It looks like this error is related to your thermal camera, which shouldn’t affect communication with the MQTT container. But to simplify things let’s try to isolate the problem. Run this command:

```auto
./start.py run mqtt

```

Here is my screen when running only that container and connecting with the GUI. Can you send us a screenshot of what your terminal looks like? Maybe we’re up against some sort of networking or firewall issue.

 ![bell_avr_gui_connection](https://canada1.discourse-cdn.com/flex007/uploads/avr/original/1X/fc935b81220fec542ef30aaa75dd842d8f16f107.jpeg)

---

<div class="post-metadata">

**Author:** ![emoons](https://avatars.discourse-cdn.com/v4/letter/e/50afbb/32.png) [@emoons](https://forum.theavr.org/u/emoons)\
**Post date:** [November 1, 2022, 3:24pm UTC](https://forum.theavr.org/t/cant-connect-to-vrc-gui/295/14 "2022-11-01T15:24:28Z")

</div>

Once I was able to get it to create the new connection and connect the client. That process repeated over and over. I unplugged all of the cables to have the students practice flying, and all I get now is what is in the attached picture. It just hangs there.

 ![20221031_114759](https://canada1.discourse-cdn.com/flex007/uploads/avr/original/1X/0f7cf3c90695e07f736386996695659b59d11ec1.jpeg)

---

<div class="post-metadata">

**Author:** ![emoons](https://avatars.discourse-cdn.com/v4/letter/e/50afbb/32.png) [@emoons](https://forum.theavr.org/u/emoons)\
**Post date:** [November 2, 2022, 12:26pm UTC](https://forum.theavr.org/t/cant-connect-to-vrc-gui/295/15 "2022-11-02T12:26:58Z")

</div>

I took the drone home with me to connect to my network o see if there may be an issue with network permissions or the firewall, and I was still unable to connect to the AVR GUI or the QGC.

Not really sure how to help these kids out. Competition is this Saturday, and they are unable to finish setting up the software.

---

<div class="post-metadata">

**Author:** ![emoons](https://avatars.discourse-cdn.com/v4/letter/e/50afbb/32.png) [@emoons](https://forum.theavr.org/u/emoons)\
**Post date:** [November 2, 2022, 5:03pm UTC](https://forum.theavr.org/t/cant-connect-to-vrc-gui/295/16 "2022-11-02T17:03:35Z")

</div>

I was finally able to get it to connect to the AVR GUI.
