# Setup Modules

Doodle Labs module setup parameters need to be same for both Doodle labs radios (in UAV and wearable).

Those parameters can be setup manually, or by copying and running following script:

<https://github.com/airvolute/airvolute-doodle-setup/blob/main/radio_communication_setup.sh>

If you want to use the script, first copy it into the modules, modify desired parameters and run it.

The script should set `frequency`, `channel`, `bandwidth` and it should restart doodle system services. After running the script, you can power cycle radios to be sure.

Script contains `uci` commands, that can also be used in Doodle Labs terminal manually.

### Setting frequency

To set frequency, you can use command:

```
uci set system.@system[0].submodel=<freq_id>
```

**Example:**

```
uci set system.@system[0].submodel='RM-2455v3-2L-X'
```

To set frequency, you need your **desired frequency value** and **submodel** of the radio. Submodel is presented as suffix in `<freq_id>` string. For example, in string `'RM-2455v3-2L-X'` , which is an example above, suffix (submodel) is `v3-2L-X`.

You can check your submodel by using command `uci show | grep submodel`. Example output:

```
root@smartradio-301a39c846:~# uci show | grep submodel
system.@system[0].submodel='RM-2455v3-1L-X' <<<<
```

The second line is output of the command `uci show | grep submodel` , from where you can extract submodel, which is in this case `v3-1L-X`.

Now you can set freq string by combining your desired value and submodel into one string. Let's say, you want to set the frequency to `2400 MHz` (fictional value) and your submodel is `v3-1L-X`. The final command will look as following:

```
uci set system.@system[0].submodel='RM-2400v3-1L-X'
```

### Setting bandwidth

To set channel bandwidth you can use command:

```
uci set wireless.radio0.chanbw='26'
```

Don't forget to apply changes and restart Doodle system.

### Setting channel

To set channel you can use command:

```
uci set wireless.radio0.channel='51'
```

Don't forget to apply changes and restart Doodle system.

### Applying changes

To **apply changes** use command:

```
uci commit
```

Now **restart Doodle system** services using:

```
wifi
```

You can **evaluate your settings** using:

```
uci show
```

You can filter output using `grep`, for example:

```
uci show | grep submodel
```

will output:

```
system.@system[0].submodel='RM-2455v3-1L-X'
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.airvolute.com/uas-platforms/discovery-stribog/stribog-uas-user-manual/doodle-labs/setup-modules.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
