# How to edit full-m0052.config file?

Source: https://forum.modalai.com/topic/799/how-to-edit-full-m0052-config-file
Category: Development Drones (https://forum.modalai.com/category/44/development-drones)
Tags: rb5
Posted: 2022-03-11 20:02:33 UTC by Djalma Ribeiro
Replies: 10 · Views: 1877

## Djalma Ribeiro · 2022-03-11 20:02:33 UTC

What do I need to do to edit the **/etc/modalai/full-m0052.config** file?

I have an RB5 here, I made the settings for it to connect to our wifi network (it is connected) but I am not able to connect through the QGC. Simply nothing happens, both on pc and mobile.

I have already disabled the firewall but it had no effect.

## Reply by Djalma Ribeiro · 2022-03-11 20:06:37 UTC

Is this the contents of the file? Is correct?

```
#!/bin/sh
# PX4 commands need the 'px4-' prefix in bash.
# (px4-alias.sh is expected to be in the PATH)
. px4-alias.sh

uorb start
muorb start

# Sleep a little here. A lot happens when the uorb and muorb start
# and we need to make sure that it all completes successfully to avoid
# any possible race conditions.
sleep 1

# IMU (accelerometer / gyroscope)
# Start this first because it gets the high rate interrupts coming in to the
# DSP. Without this the DSP will oversleep and miss critical timeouts.
# TODO: Why is that the case?
qshell icm42688p start -s

sleep 1

# Load in all of the parameters that have been saved in the file
param load
```

## Reply by tom (ModalAI staff) · 2022-03-11 20:08:03 UTC

@Djalma-Ribeiro Can you share what version of software you're running with `rb5-flight-versions`?

## Reply by tom (ModalAI staff) · 2022-03-11 20:09:00 UTC

@Djalma-Ribeiro And have you modified `rb5-net-check` to reflect your network's configuration:

https://docs.modalai.com/Qualcomm-Flight-RB5-user-guide-px4/#system-bootup-behavior

## Reply by Djalma Ribeiro · 2022-03-11 20:13:55 UTC

@tom said in [How to edit full\-m0052\.config file?](/post/3719):
> rb5-flight-versions

Oh my gosh! I went to check the contents of the file and to my surprise it is not as described in the documentation!

```
[Unit]
Description=rb5-net-check
After=sscrpcd.service
Requires=sscrpcd.service

[Service]
Type=oneshot
ExecStart=/usr/bin/rb5-net-check wlan0 10.188
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target
```

I changed it to 192,168 and now it connected!

## Reply by Djalma Ribeiro · 2022-03-11 20:17:03 UTC (in reply to tom)

@tom said in [How to edit full\-m0052\.config file?](/post/3719):
> @Djalma-Ribeiro Can you share what version of software you're running with `rb5-flight-versions`?

I was unable to run this command.

## Reply by Djalma Ribeiro · 2022-03-11 20:19:38 UTC (in reply to tom)

@tom Firmware version 1.2.2alpha from QGC.

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

@Djalma-Ribeiro Glad to hear you got it going! 

`rb5-flight-versions` must not be included in the version of software you're on, all good

## Reply by tom (ModalAI staff) · 2022-03-11 21:04:06 UTC

@Djalma-Ribeiro Could you do an `ls /home` on your RB5 so I can see which software version is installed?

## Reply by Djalma Ribeiro · 2022-03-11 22:06:53 UTC (in reply to tom)

@tom said in [How to edit full\-m0052\.config file?](/post/3725):
> @Djalma-Ribeiro Could you do an `ls /home` on your RB5 so I can see which software version is installed?

```
linaro           rb5-flight-sdk-1.0.5  testsig-util-0.2.tar.gz
mavlink-routerd  rb5-flight-sdk-1.1.3
```

rb5-flight-sdk-1.1.3 = I uploaded the folder yesterday but didn't update.

It's very old? do i need to update?

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

@Djalma-Ribeiro Awesome thank you, just wanted to make sure your RB5 had the SDK loaded properly, which it does.

It's not absolutely necessary to upgrade the SDK, if you do want to you can follow the steps here: https://docs.modalai.com/Qualcomm-Flight-RB5-sdk-installation/#how-to-upgrade

One note, if you try to upgrade the SDK while PX4 is running it will fail. So in order to upgrade the SDK you would have to disable PX4 from starting `systemctl disable rb5-px4-start` and then reboot your drone before upgrading your SDK.
