Page 1 of 2

LED lights on D-Link DIR-835 rev. A1

Posted: Thu Jul 16, 2015 12:02 pm
by dlogictech
Hi,
I would like to report that the physical lights on the front panel of the (D-Link DIR-835 rev. A1) router, does not work.
I am have tested all releases going back to v1.5.11 and I do not recall seeing the LED's ever lighting up.
I currently have all ports used and none are lighting up to indicate that they are active.
I will take a picture and upload it for your viewing pleasure later today :)

Re: LED lights on D-Link DIR-835 rev. A1

Posted: Thu Jul 16, 2015 5:40 pm
by Lantis
I'll have a poke around. Never played with the LEDs. Can't be too hard though.

Re: LED lights on D-Link DIR-835 rev. A1

Posted: Thu Jul 16, 2015 7:28 pm
by dlogictech
Let me know if there is anything you need from my end.
Simply tell me what you need and how to get them from the router. :)

Re: LED lights on D-Link DIR-835 rev. A1

Posted: Fri Jul 17, 2015 5:13 am
by Lantis
so i think i have a few ideas. LEDs are a little more complicated but i think we can work something out.

From a few pictures i am assuming the following. You have 3 LEDs.
1. Power
2. WAN (planet)
3. WPS (possibly hidden on the side?)

I assume currently the only LED that works is your Power LED?

Lets just check that you have no LEDs configured, i am assuming you won't because none (except power?) work, but lets check anyway.
please check /etc/config/system for any entries named "config led 'something'".
If you find any, please post them here.

Also check /etc/config/network for any entries under "config switch_port" that have the "option led 'something'" listed. Again, assuming none will be here (especially because i think your device doesn't have any LEDs for port activity).
If you find any, please post them here.

i need the output of:
"cd /sys/class/leds
ls"
we're just moving into the right directory and then listing what we find. it should be a list of LEDs available on your system. please post back the result.

also out of curiosity, do you have the file /etc/init.d/led ?

And finally, what i propose happens (if i can figure it out):
1. Power LED, stays how it is.
2. WAN (planet) LED, indicates your wan connection, on established, off disconnected
3. WPS LED we might just leave off for now.

Cheers.

Re: LED lights on D-Link DIR-835 rev. A1

Posted: Sat Jul 18, 2015 12:31 am
by dlogictech
Lantis wrote: Lets just check that you have no LEDs configured, i am assuming you won't because none (except power?) work, but lets check anyway.
please check /etc/config/system for any entries named "config led 'something'".
If you find any, please post them here.
There are no config files that I saw. :(
Lantis wrote: Also check /etc/config/network for any entries under "config switch_port" that have the "option led 'something'" listed. Again, assuming none will be here (especially because i think your device doesn't have any LEDs for port activity).
If you find any, please post them here.
This path does not exist that I can find... :(
Lantis wrote: i need the output of:
"cd /sys/class/leds
ls"
we're just moving into the right directory and then listing what we find. it should be a list of LEDs available on your system. please post back the result.
root@Gargoyle:/sys/class/leds# ls
ath9k-phy0 ath9k-phy1 d-link:amber:planet d-link:amber:power d-link:blue:wps d-link:green:planet d-link:green:power
root@Gargoyle:/sys/class/leds#
Lantis wrote: also out of curiosity, do you have the file /etc/init.d/led ?
Yes this file exists... :)
Lantis wrote: And finally, what i propose happens (if i can figure it out):
1. Power LED, stays how it is.
2. WAN (planet) LED, indicates your wan connection, on established, off disconnected
3. WPS LED we might just leave off for now.
Yes I am fine with your proposals 1, 2, and 3.
Question... Are the LAN ports missing in this equation? should there be LAN LED's as well?

Re: LED lights on D-Link DIR-835 rev. A1

Posted: Sat Jul 18, 2015 1:53 am
by Lantis
lets try the following.

Code: Select all

uci set system.wan=led
uci set system.wan.name='WAN'
uci set system.wan.sysfs='d-link:amber:planet'
uci set system.wan.trigger='netdev'
uci set system.wan.dev='eth0.2'
uci set system.wan.mode='link tx rx'
uci commit system
/etc/init.d/led start
i don't know if you need to reboot your router for this to take effect. i think no.

Your planet LED should light up orange if you have a WAN connection. It may blink when traffic flows through it.

Let me know how you go.


As for the LAN port LEDs, my research says that your router doesn't have any, and so does the output of your /sys/class/leds.

Re: LED lights on D-Link DIR-835 rev. A1

Posted: Mon Jul 20, 2015 11:59 am
by dlogictech
Lantis wrote:lets try the following.

Code: Select all

uci set system.wan=led
uci set system.led.wan.name='WAN'
uci set system.led.wan.sysfs='d-link:amber:planet'
uci set system.led.wan.trigger='netdev'
uci set system.led.dev='eth0.2'
uci set system.led.mode='link tx rx'
uci commit system
/etc/init.d/led start
i don't know if you need to reboot your router for this to take effect. i think no.

Your planet LED should light up orange if you have a WAN connection. It may blink when traffic flows through it.

Let me know how you go.


As for the LAN port LEDs, my research says that your router doesn't have any, and so does the output of your /sys/class/leds.

Hi Lantis,

Below is the results:


login as: root
root@xxx.xxx.xxx.xxx's password:


BusyBox v1.22.1 (2015-07-16 23:38:01 EDT) built-in shell (ash)
Enter 'help' for a list of built-in commands.
------------------------------------------------------------------
|----------------------------------------------------------------|
| Gargoyle version 1.7.2 | OpenWrt Barrier Breaker branch |
| Gargoyle revision 855c94f | OpenWrt revision r46287 |
| Built July 16, 2015 | Target ar71xx/usb_large |
------------------------------------------------------------------
root@Gargoyle:~# uci set system.wan=led
root@Gargoyle:~# uci set system.led.wan.name='WAN'
uci: Parse error
root@Gargoyle:~# uci set system.led.wan.sysfs='d-link:amber:planet'
uci: Parse error
root@Gargoyle:~# uci set system.led.wan.trigger='netdev'
uci: Parse error
root@Gargoyle:~# uci set system.led.dev='eth0.2'
uci: Invalid argument
root@Gargoyle:~# uci set system.led.mode='link tx rx'
uci: Invalid argument
root@Gargoyle:~# uci commit system
root@Gargoyle:~# /etc/init.d/led start
root@Gargoyle:~#

Re: LED lights on D-Link DIR-835 rev. A1

Posted: Mon Jul 20, 2015 7:27 pm
by Lantis
Sorry I made a typo. I've amended the commands below.
The first command went through fine so just follow the ones below.
Lantis wrote:

Code: Select all

uci set system.wan.name='WAN'
uci set system.wan.sysfs='d-link:amber:planet'
uci set system.wan.trigger='netdev'
uci set system.wan.dev='eth0.2'
uci set system.wan.mode='link tx rx'
uci commit system
/etc/init.d/led start
i don't know if you need to reboot your router for this to take effect. i think no.

Your planet LED should light up orange if you have a WAN connection. It may blink when traffic flows through it.

Let me know how you go.


As for the LAN port LEDs, my research says that your router doesn't have any, and so does the output of your /sys/class/leds.

Re: LED lights on D-Link DIR-835 rev. A1

Posted: Mon Jul 20, 2015 10:52 pm
by dlogictech
Hello Lantis,
The code works... :)

1. Power ( is ON as before - no change)
2. WAN (planet) (now flashing with traffic going through the router)
3. WPS (not sure if there is an led or not but I have located the button and there is no led light at the moment but I will verify this with the original firmware and report back when I can)

You are "AWESOME!!!" :)

Re: LED lights on D-Link DIR-835 rev. A1

Posted: Mon Jul 20, 2015 10:57 pm
by Lantis
Great to hear :)



What do you think WPS should do?
I am happy to try and come up with something to match your idea.

If it works I'll try and push it to the main code.