# M500 will not connect to QGC, but still has shh connection

Source: https://forum.modalai.com/topic/1587/m500-will-not-connect-to-qgc-but-still-has-shh-connection
Category: Development Drones (https://forum.modalai.com/category/44/development-drones)
Tags: m500
Posted: 2022-11-30 22:13:57 UTC by Steve Sager
Replies: 22 · Views: 6057

## Steve Sager · 2022-11-30 22:13:57 UTC

I've been working on a M500 aircraft that I recently got from Modal. While setting up docker I found that my aircraft had stopped connecting to QGC properly on startup. Do you have any idea why this is happening? Here is what the inspect services looks like. I tried double checking the voxl-vision-px4.conf file and the IP address was correct... I redownloaded QGC. I'm at a loss here, should I just try to update firmware?
![MicrosoftTeams-image.png](https://forum.modalai.com/assets/uploads/files/1669846432181-microsoftteams-image.png)

## Reply by Steve Sager · 2022-11-30 22:32:20 UTC

Also it has given me this when I input the voxl-vision-px4 command into the shh connection

Adding manual QGC IP address to udp connection list: xxx.xxx.x.xx
WARNING: invalid qgc_ip, this is fine if you don't want to use it

but I do want to use the GCS so how do I fix the invalid ip address, because that is the correct one.

## Reply by tom (ModalAI staff) · 2022-11-30 22:55:03 UTC

@Steve-Sager Is the qgc_ip address of the form 192.168.X.Y?

## Reply by Steve Sager · 2022-11-30 22:58:20 UTC (in reply to tom)

@tom Yes, thanks for the quick response. the current format is 192.168.x.xx

## Reply by tom (ModalAI staff) · 2022-11-30 23:01:04 UTC

@Steve-Sager That is interesting, if you look at the qgc_ip line in the config file `cat /etc/modalai/voxl-vision-px4.conf | grep qgc_ip` does it show the IP address that you expect?

## Reply by Steve Sager · 2022-11-30 23:05:03 UTC (in reply to tom)

@tom said in [M500 will not connect to QGC, but still has shh connection](/post/7326):
> cat /etc/modalai/voxl-vision-px4.conf | grep qgc_ip

after checking it again I did get an output, and it was the same ip address

## Reply by Steve Sager · 2022-11-30 23:22:40 UTC

![MicrosoftTeams-image (1).png](https://forum.modalai.com/assets/uploads/files/1669850557665-microsoftteams-image-1-resized.png)

## Reply by tom (ModalAI staff) · 2022-12-01 00:55:53 UTC

@Steve-Sager I would update to the latest release, VOXL Platform 0.9, it can be downloaded from https://developer.modalai.com/asset/1

and installed by following the instructions here: https://docs.modalai.com/platform-releases/

We've made a lot of improvements recently so it wouldn't hurt to get you using the latest

## Reply by Steve Sager · 2022-12-01 23:07:52 UTC (in reply to tom)

@tom I tried following the install instructions you sent me but ran into an issue. when I try to use the ./install.sh -f command the reboot into fastboot turns off the adb connection to the voxl and fails. Any suggestions? I tried using the expander & debug kit to boot into fastboot, but that results in the same problem.

here are some images of what is showing up in my Git Bash prompt.![MicrosoftTeams-image (2).png](https://forum.modalai.com/assets/uploads/files/1669936064726-microsoftteams-image-2.png) ![MicrosoftTeams-image (3).png](https://forum.modalai.com/assets/uploads/files/1669936064760-microsoftteams-image-3.png) ![MicrosoftTeams-image (4).png](https://forum.modalai.com/assets/uploads/files/1669936064761-microsoftteams-image-4.png)

## Reply by tom (ModalAI staff) · 2022-12-01 23:14:59 UTC

@Steve-Sager We don't support using Windows for flashing. Do you have an Ubuntu machine you could use to flash? Preferably Ubuntu 18.04.

## Reply by Steve Sager · 2022-12-01 23:16:47 UTC (in reply to tom)

@tom I have a Ubuntu 20.04 machine will that be okay?

## Reply by Steve Sager · 2022-12-01 23:27:16 UTC

looks like the problem was Windows. let me double check and I'll post again what happens but it is loading now...

## Reply by Steve Sager · 2022-12-01 23:52:16 UTC

@tom would you happen to know how to get the ecdsa password for my aircraft?

## Reply by tom (ModalAI staff) · 2022-12-02 00:16:43 UTC

@Steve-Sager If you're referring to the SSH login:

Defaults are as follows
user: root
pass: oelinux123

## Reply by Steve Sager · 2022-12-02 01:11:49 UTC (in reply to tom)

@tom After following all the instructions and successfully flashing the new firmware onto the aircraft. I have connected to the ssh once again and set the QGC IP address to the correct laptop ip but the aircraft still isn't connecting to QGC.

## Reply by tom (ModalAI staff) · 2022-12-02 01:13:36 UTC

@Steve-Sager Here's something else to look at: https://docs.qgroundcontrol.com/master/en/troubleshooting/qgc_setup.html#waiting_for_connection

## Reply by Steve Sager · 2022-12-02 01:23:03 UTC (in reply to tom)

@tom I will be looking to the firewall to make sure it wasn't that, but we have allowed the application past the wall.  Could this be related to to something else?

## Reply by Steve Sager · 2022-12-02 01:27:21 UTC

it looks like the previous command you had me run:
cat /etc/modalai/voxl-vision-px4.conf | grep qgc_ip
is giving me a different ip address than the one we put into voxl-vision-px4. how do I change that one to the correct address?

## Reply by tom (ModalAI staff) · 2022-12-02 01:28:33 UTC

@Steve-Sager That's interesting, you can use `vi` to  modify the file and enter the correct IP in the qgc_ip field, `vi /etc/modalai/voxl-vision-px4.conf`

## Reply by tom (ModalAI staff) · 2022-12-02 01:29:10 UTC

I would also make sure that you're able to ping your PC from your drone.

## Reply by Steve Sager · 2022-12-02 01:38:38 UTC

SUCCESS! we have established connection to the aircraft. everything is working. @tom thanks so much for all your help

The solution was to update the aircraft using a linux system instead of windows. 
Then we had to to use ssh-keygen to reconnect to the aircraft, and used the new aircraft ip address. 
Finally we had to manually set the qgc ip twice. 
We are now back up and running

Cheers!

## Reply by tom (ModalAI staff) · 2022-12-02 01:41:17 UTC

@Steve-Sager Great to hear! Just to confirm you flashed the latest platform release, 0.9? Making a note of your issue. It's very unusual that you would have to manually edit the qgc_ip. Thank you for being patient.

## Reply by Steve Sager · 2023-01-17 20:01:25 UTC (in reply to tom)

@tom Yeah I am on 0.9 platform release
