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

If your problem doesn't fall into one of the other categories, report it here.

Moderator: Moderators

User avatar
dlogictech
Posts: 118
Joined: Sat Feb 07, 2015 3:50 pm
Location: Unionville, Ontario. Canada.
Contact:

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

Post 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 :)
D-Link DIR-835 Rev. A1 using Gargoyle
1.9.X (Built 20160524-1903 git@004a64c)

TP-Link TL-WR1043ND Ver. 1.6 using Gargoyle
1.9.1

TP-Link TL-WR740N Ver. 1.10 using Gargoyle
1.9.1

Lantis
Moderator
Posts: 6721
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

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

Post by Lantis »

I'll have a poke around. Never played with the LEDs. Can't be too hard though.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

User avatar
dlogictech
Posts: 118
Joined: Sat Feb 07, 2015 3:50 pm
Location: Unionville, Ontario. Canada.
Contact:

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

Post 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. :)
D-Link DIR-835 Rev. A1 using Gargoyle
1.9.X (Built 20160524-1903 git@004a64c)

TP-Link TL-WR1043ND Ver. 1.6 using Gargoyle
1.9.1

TP-Link TL-WR740N Ver. 1.10 using Gargoyle
1.9.1

Lantis
Moderator
Posts: 6721
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

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

Post 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.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

User avatar
dlogictech
Posts: 118
Joined: Sat Feb 07, 2015 3:50 pm
Location: Unionville, Ontario. Canada.
Contact:

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

Post 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?
D-Link DIR-835 Rev. A1 using Gargoyle
1.9.X (Built 20160524-1903 git@004a64c)

TP-Link TL-WR1043ND Ver. 1.6 using Gargoyle
1.9.1

TP-Link TL-WR740N Ver. 1.10 using Gargoyle
1.9.1

Lantis
Moderator
Posts: 6721
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

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

Post 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.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

User avatar
dlogictech
Posts: 118
Joined: Sat Feb 07, 2015 3:50 pm
Location: Unionville, Ontario. Canada.
Contact:

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

Post 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:~#
D-Link DIR-835 Rev. A1 using Gargoyle
1.9.X (Built 20160524-1903 git@004a64c)

TP-Link TL-WR1043ND Ver. 1.6 using Gargoyle
1.9.1

TP-Link TL-WR740N Ver. 1.10 using Gargoyle
1.9.1

Lantis
Moderator
Posts: 6721
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

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

Post 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.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

User avatar
dlogictech
Posts: 118
Joined: Sat Feb 07, 2015 3:50 pm
Location: Unionville, Ontario. Canada.
Contact:

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

Post 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!!!" :)
D-Link DIR-835 Rev. A1 using Gargoyle
1.9.X (Built 20160524-1903 git@004a64c)

TP-Link TL-WR1043ND Ver. 1.6 using Gargoyle
1.9.1

TP-Link TL-WR740N Ver. 1.10 using Gargoyle
1.9.1

Lantis
Moderator
Posts: 6721
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

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

Post 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.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Post Reply