This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
technical:openwrt-meshdesk-file [2022/09/18 20:47] admin [Add a hardware section for our device] |
technical:openwrt-meshdesk-file [2022/09/18 21:17] (current) admin [Review new hardware] |
||
|---|---|---|---|
| Line 33: | Line 33: | ||
| * With this info we can create a hardware section in / | * With this info we can create a hardware section in / | ||
| - | |||
| <code bash> | <code bash> | ||
| config hardware ' | config hardware ' | ||
| Line 40: | Line 39: | ||
| option wifi_led ' | option wifi_led ' | ||
| </ | </ | ||
| - | | + | |
| + | ===== Adjust the settings section accordingly ===== | ||
| + | * There are two important options here to adjust | ||
| + | * **hardware** - have to match the value of a hardware | ||
| + | * **id_if** - have to match the interface specified in the **wan_network** file. | ||
| <code bash> | <code bash> | ||
| config settings ' | config settings ' | ||
| Line 52: | Line 55: | ||
| </ | </ | ||
| * 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? ===== |
| - | * It will typically be **eth0**. | + | |
| - | * On devices like the MT7621 based boards it will typically be **wan**. | + | * Since we want the **yellow LED** to be off when the communication |
| - | * Since we want the **yellow LED** to be off when the comms to the controller is fine we need to check what the current setup is. | + | |
| <code bash> | <code bash> | ||
| vi / | vi / | ||
| #Look for this section | #Look for this section | ||
| if(ok_flag)then | if(ok_flag)then | ||
| - | internetLED(' | + | internetLED(' |
| checkForContollerReboot(' | checkForContollerReboot(' | ||
| else | else | ||
| Line 68: | Line 70: | ||
| </ | </ | ||
| - | | + | ==== Review new hardware ==== |
| + | |||
| + | |||
| + | | ||
| ^ Item ^ Typical value ^ Comment | ^ Item ^ Typical value ^ Comment | ||
| Line 75: | Line 80: | ||
| | settings -> skip_radio_0 | | settings -> skip_radio_0 | ||
| - | === Tweaks For Our Environment === | + | ===== Remember Your Environment ===== |
| + | * Finally you need to adjust some items to match up with your controller and its environment. | ||
| * The following table lists some of the important items with comments | * The following table lists some of the important items with comments | ||
| ^ Item ^ Typical value ^ Comment | ^ Item ^ Typical value ^ Comment | ||
| | internet1 -> disabled | | internet1 -> disabled | ||
| - | | internet1 -> dns | cloud.radiusdesk.com | + | | internet1 -> dns | cloud.radiusdesk.com |
| | internet1 -> protocol | https | Can be http or https | | | internet1 -> protocol | https | Can be http or https | | ||
| | 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 | | ||