Skip to content

LEDS

Pigeon RB100 has five LEDs (including two built-in Ethernet socket). Three of them are visible through the front panel:

  • PWR (green) - power status,
  • ACT (red) - GPIO47,
  • USR (yellow) - GPIO45.

The PWR LED is under hardware control and indicates the presence of correct supply voltage.

USR and ACT LEDs can be controlled by the user.

LEDs built into the Ethernet socket:

  • green - LINK - LED is on when a valid link is detected. LED blinks when transmit or receive activity is detected.

  • yellow - SPEED - LED is on when the Ethernet operating speed is 100Mbs, or during auto-negotiation. The LED is off during 10 Mbps operation or when the line is isolated.

Bash Configuration and LED Control

The default trigger for the ACT LED is 'heartbeat':

$ cat /sys/class/leds/ACT/trigger

none mmc0 timer oneshot [heartbeat] backlight gpio cpu0 default-on input 

You can change the trigger:

$ echo mmc0 | sudo tee /sys/class/leds/ACT/trigger 

or deactivate the trigger:

$ echo none | sudo tee /sys/class/leds/ACT/trigger 

The LED can be turned on and off using the 'brightness' file:

$ echo '0' | sudo tee /sys/class/leds/ACT/brightness  # ACT LED turn off 
$ echo '1' | sudo tee /sys/class/leds/ACT/brightness  # ACT LED turn on 
$ echo '0' | sudo tee /sys/class/leds/USR/brightness  # USR LED turn off 
$ echo '1' | sudo tee /sys/class/leds/USR/brightness  # USR LED turn on 

Notice for users of older operating system versions: In older versions, the LEDs were named led0 (ACT) and led1 (USR).