Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| network:firmware:openwrt-meshdesk-file [2024/02/17 15:10] – created system | network:firmware:openwrt-meshdesk-file [2024/07/13 12:44] (current) – system | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| * [[: | * [[: | ||
| </ | </ | ||
| + | |||
| + | ----- | ||
| ====== meshdesk file ====== | ====== meshdesk file ====== | ||
| - | ===== Background ===== | + | ===== Introduction ===== |
| - | * MESHdesk use the LEDs of the device it is installed | + | |
| - | * During startup | + | * The meshdesk configuration file follows the UCI conventions that are standard for OpenWrt. |
| - | * After startup, if the device is used in a mesh network | + | * It has a couple of named sections. |
| - | * A second LED is used to indicate if the device | + | * The only two sections you will typically tweak is **internet** and **settings**. |
| - | * Finally | + | |
| + | ===== internet section with the name ' | ||
| + | * This section is used to activate or deactivate the central control of the hardware. | ||
| + | * The FQDN and IP address of the RADIUSdesk server and the URLs for certain actions are specified here. | ||
| + | |||
| + | ===== settings section named ' | ||
| + | * This section is the only section which is **unique according to the hardware**. | ||
| + | * It will list the hardware id and the LEDs as well as the interface used for identity. | ||
| + | * It also includes other settings which tweak the behavior of the device when it is centrally managed. | ||
| + | |||
| + | ---------- | ||
| + | ===== Background | ||
| + | * MESHdesk use the LEDs of the device | ||
| + | * **During startup** a LED indicates | ||
| + | * **After startup** when the device is used in a mesh network, this LED indicates | ||
| + | | ||
| + | | ||
| ===== Exploring our hardware ===== | ===== Exploring our hardware ===== | ||
| - | + | | |
| - | | + | |
| <code bash> | <code bash> | ||
| #change directory to where the LEDs are | #change directory to where the LEDs are | ||
| Line 31: | Line 48: | ||
| </ | </ | ||
| - | * We can use the blue LED to signal during startup and neighbor counts. | + | * We can use the blue LED to signal during startup and neighbour counting (**morse_led**). |
| - | * We can also use the yellow LED to light up if communication | + | * We can also use the yellow LED to signal that communication |
| - | * There is however not a third LED so we will not define one for the mesh traffic. | + | * However, since there is no third LED, we will not define one for mesh traffic |
| - | ===== Add a hardware | + | ===== Incorporating this in the settings |
| - | + | | |
| - | | + | * We can thus modify the settings |
| <code bash> | <code bash> | ||
| - | config hardware ' | + | config |
| - | option morse_led '/ | + | option |
| - | option internet_led '/ | + | |
| - | option wifi_led 'led0' | + | |
| + | option internet_led '/ | ||
| + | | ||
| + | | ||
| + | option lan_up_file '/ | ||
| </ | </ | ||
| - | ===== Adjust the settings section accordingly ===== | + | |
| - | * There are two important options here to adjust | + | * **id_if** - must match the interface specified in the **wan_network** file. |
| - | | + | * **internet_led_alarm** - We set it to **1** to use it as an alarm (e.g. turn it on when the Internet is down). |
| - | * **id_if** - have to match the interface specified in the **wan_network** file. | + | |
| - | <code bash> | + | <alert type=" |
| - | config settings ' | + | * Do not make the name of the hardware section |
| - | option hardware ' | + | * For devices |
| - | option id_if ' | + | </alert> |
| - | option lan_up_file '/ | + | |
| - | </code> | + | |
| - | <WRAP center round tip 100%> | + | |
| - | * Don' | + | |
| - | * Devices | + | |
| - | </WRAP> | + | |
| * Later we will also use the value of **xiaomi_4a_100** to define the hardware on the controller. | * Later we will also use the value of **xiaomi_4a_100** to define the hardware on the controller. | ||
| - | ===== Alarm On or Alarm Off? ===== | ||
| - | * We use the yellow LED as an alarm which means it has to light up when communication to the controller is down. | ||
| - | * Since we want the **yellow LED** to be off when the communication to the controller is fine we need to check what the current setup is. | ||
| - | <code bash> | ||
| - | vi / | ||
| - | #Look for this section | ||
| - | if(ok_flag)then | ||
| - | internetLED(' | ||
| - | checkForContollerReboot(' | ||
| - | else | ||
| - | internetLED(' | ||
| - | checkForContollerReboot(' | ||
| - | end | ||
| - | </ | ||
| ==== Review new hardware ==== | ==== Review new hardware ==== | ||
| - | + | | |
| - | + | ||
| - | | + | <panel type=" |
| ^ Item ^ Typical value ^ Comment | ^ Item ^ Typical value ^ Comment | ||
| - | | settings -> hardware | xiaomi_4a_100 | Must match a hw definition | + | | settings -> hardware | xiaomi_4a_100 | Must match the value of a hardware id in RADIUSdesk' |
| | settings -> id_if | eth0 | eg eth0, eth1 or wan - NOT eth0.1 (for those boards its just eth0) | | | settings -> id_if | eth0 | eg eth0, eth1 or wan - NOT eth0.1 (for those boards its just eth0) | | ||
| + | | settings -> morse_led | ||
| + | | settings -> internet_led | ||
| + | | settings -> internet_led_alarm | ||
| + | | settings -> wifi_led | ||
| | settings -> skip_radio_0 | | settings -> skip_radio_0 | ||
| + | </ | ||
| ===== Remember Your Environment ===== | ===== Remember Your Environment ===== | ||
| * Finally you need to adjust some items to match up with your controller and its environment. | * Finally you need to adjust some items to match up with your controller and its environment. | ||
| Line 96: | Line 100: | ||
| | internet1 -> ip | 176.31.15.210 | Fallback when FQDN does not resolve on FQDN not used | | | internet1 -> ip | 176.31.15.210 | Fallback when FQDN does not resolve on FQDN not used | | ||
| </ | </ | ||
| - | * We are nearly done. The last stop is to edit the **captive_config.json** file to fit our specific hardware. | + | * We are almost finished. The last stop is to edit the captive_config.json file to customise it to our specific hardware. |
| - | + | ||