Fritz!Box HowTos: LEDs per Script steuern

Zebradem AVM Wiki >> Fritzbox Tipps & Tricks >> Fritz!Box HowTos: LEDs per Script steuern | Magyar, Nederlands, Italiano, English |
Community | Modelle | Freetz | Fritzbox Tipps & Tricks |
Hardware-Tipps | System-Tipps | Netzwerk-Tipps | Telefonie-Tipps | Software-Tipps | Sonstige Tipps |
Fritz!Box HowTos: LEDs per Script steuern
Die LEDs der Fritz!Boxen können per Script (oder auch direkt per telnet/ssh von der Kommandozeile aus) nach eigenem Bedarf gesteuert werden. Nicht jede Box hat alle LEDs. Getestet mit einer FBF WLAN 7170 (die hat keine DSL-LED und LAN-LED, daher sind diese Werte nicht verifiziert) und Firmware 04.15.
Zuordnung Box zu LEDs
Legende: x LED vorhanden, - LED nicht vorhanden, ? unbekannt
^ Box ^ Power ^ DSL ^ LAN ^ WLAN ^ USB ^ Info ^ Festnetz ^ Internet ^ | FRITZ!Box | ? | ? | ? | ? | ? | ? | ? | ? | | FRITZ!Box 2030 | ? | ? | ? | ? | ? | ? | ? | ? | | FRITZ!Box 2070 | ? | ? | ? | ? | ? | ? | ? | ? | | FRITZ!Box SL | x | - | x | - | x | x | - | - | | FRITZ!Box SL WLAN | x | x | x | - | ? | ? | - | - | | FRITZ!Box WLAN 3030 | x | x | x | x | ? | x | - | - | | FRITZ!Box WLAN 3050 | ? | ? | ? | ? | ? | ? | ? | ? | | FRITZ!Box WLAN 3070 | ? | ? | ? | ? | ? | ? | ? | ? | | FRITZ!Box WLAN 3130 | x | x | x | x | ? | x | - | - | | FRITZ!Box WLAN 3170 | x | x | x | x | - | x | - | - | | FRITZ!Box Fon | x | x | ? | ? | ? | x | x | x | | FRITZ!Box Fon ATA | ? | ? | ? | ? | ? | ? | ? | ? | | FRITZ!Box Fon 5010 | x | x | x | - | ? | x | x | x | | FRITZ!Box Fon 5012 | x | x | - | - | ? | x | x | x | | FRITZ!Box Fon 5050 | x | x | - | - | ? | x | x | x | | FRITZ!Box Fon WLAN | x | x | - | x | ? | x | x | x | | FRITZ!Box Fon WLAN 7050 | x | x | - | - | ? | x | x | x | | FRITZ!Box Fon WLAN 7141 | x | - | - | x | ? | x | x | x | | FRITZ!Box Fon WLAN 7170 | x | - | - | x | ? | x | x | x | | FRITZ!Box Fon WLAN 7500V | ? | ? | ? | ? | ? | ? | ? | ? |
Power-LED (Nr. 1)
echo 1,1 >/var/led immer aus echo 1,2 >/var/led blinkt langsam echo 1,3 >/var/led blinkt dreimal langsam (nach kurzer Pause wiederholt) echo 1,4 >/var/led immer an
7141 (getestet mit FW 40.04.30): echo 1,1 >/dev/new_led immer aus echo 1,2 >/dev/new_led blinkt schnell echo 1,3 >/dev/new_led blinkt dreimal schnell (nach kurzer Pause wiederholt) echo 1,4 >/dev/new_led immer an
DSL-LED (Nr. 2)
echo 2,1 >/var/led immer aus echo 2,2 >/var/led immer an echo 2,3 >/var/led blinkt schnell
LAN-LED (Nr. 3)
echo 3,1 >/var/led immer aus echo 3,2 >/var/led immer an
WLAN-LED (Nr. 4)
echo 4,1 >/var/led immer aus echo 4,2 >/var/led immer an echo 4,3 >/var/led blinkt langsam echo 4,4 >/var/led blinkt schnell
7141 (getestet mit FW 40.04.30): echo 4,1 >/dev/new_led immer aus echo 4,2 >/dev/new_led immer an echo 4,3 >/dev/new_led blinkt schnell echo 4,4 >/dev/new_led blinkt langsam
USB-LED (Nr. 5)
FB-SL (getestet mit FW 10.03.94): echo 5,1 >/var/led immer aus echo 5,2 >/var/led immer an echo 5,3 >/var/led kurzzeitig aus
Info-LED (Nr. 7)
echo 7,1 >/var/led immer aus echo 7,2 >/var/led immer an echo 7,3 >/var/led blinken (analog zu Firmware-Updates)
7141 (getestet mit FW 40.04.30): echo 7,1 >/dev/new_led immer aus echo 7,2 >/dev/new_led immer an echo 7,3 >/dev/new_led blinkt schnell echo 7,4 >/dev/new_led blinkt schnell
Festnetz-LED (Nr. 13)
echo 13,1 >/var/led immer aus echo 13,2 >/var/led immer an echo 13,3 >/var/led blinkt langsam echo 13,4 >/var/led blinkt schnell
7141 (getestet mit FW 40.04.30): echo 13,1 >/dev/new_led immer aus echo 13,2 >/dev/new_led immer an echo 13,3 >/dev/new_led blinkt schnell echo 13,4 >/dev/new_led blinkt langsam
Internet-LED (Nr. 14)
echo 14,1 >/var/led immer aus echo 14,2 >/var/led immer an echo 14,3 >/var/led blinkt langsam echo 14,4 >/var/led blinkt schnell
7141 (getestet mit FW 40.04.30): echo 14,1 >/dev/new_led immer aus echo 14,2 >/dev/new_led immer an echo 14,3 >/dev/new_led blinkt schnell echo 14,4 >/dev/new_led blinkt langsam
Befehle für neuen LED Treiber
- Befehl**
//echo "SET ARG1,ARG2 = ARG3" > /dev/new_led//
- Beispiel**
//echo "SET wlan,0 = 19" > /dev/new_led// lässt die WLAN-LED schnell blinken.
^ ARG1 ^ LED ^ | power | PowerLED | | internet | Internet-Telefonie-LED | | ab | Festnetz-Telefonie-LED | | wlan | WLAN-LED | | info | INFO-LED | | error | Alle LEDs |
- ARG2 - Slots**
Standard = 0 (Aussnahme: bei Festnetz-Telefonie-LED ist Standard = 1) Man kann eine LED mehrfach einschalten indem man einen anderen Slot verwendet, um sie wieder auszuschalten müssen ALLE Slots ausgeschaltet werden.
Verfügbare Slots pro LED: ^ ARG1 ^ verfügbare Slots ^ | error | 0 | | power | 0,1 | | internet | 0,1 | | wlan | 0 | | ab | 1,2,3 | | info | 0,1,2,3,4 |
Man kann auch neue Slots hinzufügen, was aber ein wenig komplizierter ist, da schaut man am Besten in die LED-Config:
//cat /etc/*led.conf//
Beispiel:// echo "DEF power,2 = 0,7,0,power" > /dev/new_led// fügt der LED Power einen neuen Slot hinzu (Slot 2)
^ ARG3 ^ Funktion ^ | 0 | aus | | 1,2 | an | | 3-7 | aus | | 8-11 | kurzes blinken dann aus, je größer die Zahl desto schneller | | 12-15 | wie 8-11 nur umgekehrt (LED ist immer an, nur am Anfang kurzes "aus"-blinken) | | 16-19 | dauerhaftes blinken, je größer die Zahl desto schneller | | ab 20 | aus |
Befehle für 7270 LED Ansteuerung (getestet mit Firmware 54.04.67)
# /bin/led-ctrl Options: EVENT[=PARAM] ... Trigger each led EVENT in list with value PARAM (default=1) -l List all available events for the current configuration
AVAILABLE EVENTS: hardware_error update_no_action update_running update_error ata_disable ata_enable pppoe_off pppoe_on pppoe_auth_failed pppoe_isp_error pppoe_mac_address_error budget_notreached budget_reached voip_srtp_active voip_srtp_inactive voip_mwi_no_message voip_mwi_speech_msg voip_mwi_mail voip_mwi_mail_and_speech_msg voip_info_freecall_start voip_info_freecall_end gsm_off gsm_on gsm_auth_failed gsm_isp_error gsm_syncing gsm_sync_failed internet_abgebaut internet_aufgebaut festnetz_abgebaut festnetz_aufgebaut festnetz_mwi_set festnetz_mwi_reset fon_info_tam_set_mwi fon_info_tam_reset_mwi fon_info_fax_set_mwi fon_info_fax_reset_mwi fon_info_klingelsperre_aktiv fon_info_klingelsperre_inaktiv fon_info_missed_call_set fon_info_missed_call_reset dect_abgeschaltet dect_aktiv dect_stick_and_surf_start dect_stick_and_surf_error dect_stick_and_surf_success dect_stick_and_surf_done wlan_off wlan_on wlan_starting wlan_stopping wlan_configuring wlan_wds_repeater_enable wlan_wds_repeater_disable wps_start wps_error wps_timeout wps_success wps_done wireless_stick_and_surf_start wireless_stick_and_surf_error wireless_stick_and_surf_timeout wireless_stick_and_surf_success wireless_stick_and_surf_done usb_host_stick_and_surf_start usb_host_stick_and_surf_error usb_host_stick_and_surf_done usb_host_stick_and_surf_success usb_host_connected usb_host_disconnected usb_host_error usb_client_connected usb_client_disconnected usb_client_error filesystem_mount_failure filesystem_done update_led1 dsl_verbunden dsl_training dsl_nicht_verbunden power_on power_off lan1_active lan1_inactive lan2_active lan2_inactive lan3_active lan3_inactive lan4_active lan4_inactive switch_info_to_tam_mwi switch_info_to_fax_mwi switch_info_to_klingelsperre_aktiv switch_info_to_missed_call switch_info_to_tam_fax_missed_call switch_info_to_voip_free switch_info_to_voip_srtp switch_info_to_dect switch_info_to_lan switch_info_to_wlan_active switch_info_to_online switch_info_to_usb_host switch_info_to_usb_client switch_info_to_budget
Eine Liste der möglichen Effekte wurde im Forum beschrieben siehe:
[[1]]