Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revisionLast revisionBoth sides next revision | ||
| docs:user-guide:led_configuration [2017/06/06 15:43] – [Net filter] jamest42 | docs:guide-user:base-system:led_configuration [2022/02/07 22:54] – [LED Configuration] added luci ref palebloodsky | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== |
| - | The Led configuration is located in **system** uci subsystem, and written in the **/// | + | The LED configuration is located in **system** uci subsystem, and written in the **/// |
| - | ===== Leds section ===== | + | Basic led configuration is available via LuCI on the System > LED Configuration page. |
| - | The leds section contains settings that apply to non-default leds\\ | + | |
| - | (default | + | ===== Led section ===== |
| + | The led section contains settings that apply to non-default leds.\\ | ||
| + | Default | ||
| This is an example of leds on a tp-link router with usb port. | This is an example of leds on a tp-link router with usb port. | ||
| Line 34: | Line 36: | ||
| ===== How to add Leds to this section ===== | ===== How to add Leds to this section ===== | ||
| - | All LEDs are represented by entries in the //sys// filesystem. You can check which LEDs are available in the /// | + | All LEDs are represented by entries in the //sys// filesystem. You can check which LEDs are available in the **/// |
| The name of an entry typically consists of the name of the hardware providing the LED (the router model), the color of the LED, and it’s designation (usually the label on the case).\\ | The name of an entry typically consists of the name of the hardware providing the LED (the router model), the color of the LED, and it’s designation (usually the label on the case).\\ | ||
| Some LEDs can show different colors. In this case, you will find one entry per color. | Some LEDs can show different colors. In this case, you will find one entry per color. | ||
| Line 40: | Line 43: | ||
| tp-link: | tp-link: | ||
| tp-link: | tp-link: | ||
| - | </ | + | </ |
| The LED can be controlled by various events in the system, which is selected by the //trigger// option. Depending on the trigger, additional options must be specified. | The LED can be controlled by various events in the system, which is selected by the //trigger// option. Depending on the trigger, additional options must be specified. | ||
| Line 81: | Line 84: | ||
| EOF | EOF | ||
| uci commit | uci commit | ||
| + | | ||
| + | You can confirm the changes by running '' | ||
| + | Basic led configuration is also available via LuCI on the System > LED Configuration page. | ||
| ===== Led triggers ===== | ===== Led triggers ===== | ||
| Now we explain in detail what each trigger does. | Now we explain in detail what each trigger does. | ||
| ==== None ==== | ==== None ==== | ||
| - | The LED is always in default state. Unlisted | + | The LED is always in default state. Unlisted |
| ^Name | ^Name | ||
| Line 93: | Line 99: | ||
| |// | |// | ||
| + | ==== Switch Connectivity ==== | ||
| + | The LED is on if a link on one of the configured switch ports is established. | ||
| + | |||
| + | ^Name | ||
| + | |// | ||
| + | |// | ||
| + | |// | ||
| + | |// | ||
| + | |// | ||
| + | |||
| + | Consider for example a '' | ||
| + | |||
| + | '' | ||
| + | |||
| + | Bit assignments for '' | ||
| + | * [0] 0x01 - Unknown speed or cable/link problem | ||
| + | * [1] 0x02 - 10BASE-T | ||
| + | * [2] 0x04 - 100BASE-T | ||
| + | * [3] 0x08 - 1000BASE-T | ||
| + | * bits 4-7 reserved for future expansion and dont do anything. | ||
| + | |||
| + | For example a '' | ||
| ==== Timer ==== | ==== Timer ==== | ||
| The LED blinks with the configured on/off frequency.\\ | The LED blinks with the configured on/off frequency.\\ | ||
| Line 144: | Line 172: | ||
| |// | |// | ||
| |// | |// | ||
| + | |// | ||
| ==== WiFi Activity triggers ==== | ==== WiFi Activity triggers ==== | ||
| Line 165: | Line 194: | ||
| ^Name ^Type | ^Name ^Type | ||
| - | |// | + | | // |
| - | |// | + | | // |
| - | |// | + | | // |
| - | |// | + | | // |
| - | |// | + | | // |
| - | To find out device name use //logread// to search for it or list /// | + | To find out device name use //logread// to search for it or list /// |
| - | + | Within lets say ///sys/bus/usb/devices/1-1//, you should have a **manufacturer** and **product** files, simply use '' | |
| - | ==== Morse Code ==== | + | |
| - | The LED signals a message using Morse code. | + | |
| - | If not installed already, install it with: | + | |
| - | < | + | |
| - | + | ||
| - | ^Name | + | |
| - | |//default//|integer|no | + | |
| - | |// | + | |
| - | |// | + | |
| - | |// | + | |
| - | |// | + | |
| - | |// | + | |
| ==== GPIO ==== | ==== GPIO ==== | ||