Posted: Wed Aug 17, 2016 15:54 Post subject: More button and LED information
Using the above as a starting point, I have had a play - since the R8500 is just too much like a Christmas tree (idea for xmas script - to be explored).
Here's what I've found. Obviously we have to be careful when switching pins we don't know what they do as we could damage to things within the router.
To set a pins state use either gpio enable <pin> or gpio disable <pin>
GPIO 1 is the front left button marked LED
enable=off, disable=on
GPIO 2,3 are the power LED.
There are actually two LED's (red and white) that are controlled in the following combinations :
2=disable, 3=disable = Pink
2=disable, 3=enable = White
2=enable, 3=disable = Red
2=enable, 3=enable = Off
GPIO 9,8 are the Internet activity LED. (note reversed numbers to match colour states above)
There are actually two LED's (red and white) that are controlled in the following combinations :
9=disable, 8=disable = Pink with Internet activity
9=disable, 8=enable = White with Internet activity
9=enable, 8=disable = Red with Internet activity
9=enable, 8=enable = Off
GPIO 10 is the reset pin, it immediately resets the router and erases the NVRAM, so best to avoid that pin !
disable=reset, enable=don't reset (normal state)
GPIO 11 is the 5GHz-1 LED.
enable=off, disable=on
GPIO 12 is the 5GHz-2 LED.
enable=off, disable=on
GPIO 13 is the 2.4GHz LED.
enable=off, disable=on
GPIO 14 is the button marked WPS on the front
enable=on, disable=off
GPIO 15 is the blue LED's on the aerials
enable=on, disable=off
GPIO 18 is the USB1 LED
enable=off, disable=on
GPIO 17 is the USB2 LED
enable=off, disable=on
GPIO 20 is the button marked Wifi on the front
enable=off, disable=on
I have also found out which inputs relate to the three buttons on the front panel. You can sense these with gpio poll <pin>, then press the button to see the state change. In all cases, a pushed button results in a zero (ie pull-up with switch to 0V)
GPIO 4 is the front middle WPS Button
GPIO 5 is the front left LED button
GPIO 19 is the front right WiFi switch
My configuration to disable the un-necessary LED's is a leds.startup script in /jffs/etc/config so it fires on boot.
Which ones are for the blue led's on the tips of the antennas I think you posted a typo because
gpio disable 15
had no effect on the antenna LED's and they remained on??
On closer observation after entering the command the lights on the antennas go out only to turn themselves back on a fraction of a second later happened so fast I only just noticed it
Which ones are for the blue led's on the tips of the antennas I think you posted a typo because
gpio disable 15
had no effect on the antenna LED's and they remained on??
On closer observation after entering the command the lights on the antennas go out only to turn themselves back on a fraction of a second later happened so fast I only just noticed it
Yeah, with previous builds that command would turn the antenna LEDs off for good, but with 30465M it just flashes them as you describe.
Which ones are for the blue led's on the tips of the antennas I think you posted a typo because
gpio disable 15
had no effect on the antenna LED's and they remained on??
On closer observation after entering the command the lights on the antennas go out only to turn themselves back on a fraction of a second later happened so fast I only just noticed it
Is there a fix for this? I'm on Firmware: DD-WRT v3.0-r44467 (09/24/20), but as mentioned above the lights simply turn back on shortly after issuing the commands (they seem to stay on and blink back off repeatedly at random intervals).