WNDR3300 Dome Lights

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware
Author Message
phlegmer
DD-WRT User


Joined: 14 Oct 2006
Posts: 274
Location: Sector 001

PostPosted: Mon May 04, 2009 19:08    Post subject: WNDR3300 Dome Lights Reply with quote
Owners of this device probably already know that there are 8 LEDs in a transparent dome on the top. According to Netgear, each LED is supposed indicate activity on each of the 8 antenna's that are in the device.

With DD-WRT, this indicator is no longer functioning. A quick shout out to Eko asking how those LEDs are run:

Eko wrote:
it's done in kernel ar boot. Netgear uses it as char device.
See e.g. my linux.v24_2/arch/mips/bcm947xx/time.c


That doesn't really mean much to me but perhaps someone on the this forum would have some thoughts on this?

Thanks
Sponsor
sekati
DD-WRT Novice


Joined: 10 Oct 2009
Posts: 2

PostPosted: Sat Oct 10, 2009 2:38    Post subject: Reply with quote
Bump.

I'd like to +1 the request for more info; is there any practical way for the [power] user to leverage these LED's? I enjoy bright lights; especially those I can script as I did for my WRT's of the past.

Thanks!
zetskee
DD-WRT Novice


Joined: 10 Oct 2009
Posts: 1

PostPosted: Sat Oct 10, 2009 3:45    Post subject: Reply with quote
Is there some command that we could run on the router to at least turn the lights on? I would really appreciate if somebody could find a way to enable them.
panthar
DD-WRT Novice


Joined: 10 Sep 2009
Posts: 2

PostPosted: Thu Oct 22, 2009 22:51    Post subject: Reply with quote
If you're a decent C programmer, these 2 snippets might help:

Code:
/* Netgear WNDR3300 wps led control, Eko 26. Nov. 2008 */
#define WNDR3300_REG_EXT_IF_ADDR     0xBB000000
#define WNDR3300_REG_EXT_IF_CONFIG   0x00000011
#define WNDR3300_REG_EXT_IF_WAIT     0x0404142A

static void *led_sbh = NULL;

static int wndr3300_wpsled_control( int pattern )
{
    chipcregs_t *regs;

    if (!(led_sbh = sb_kattach(NULL)))
        return -ENODEV;

    regs = (chipcregs_t *) sb_setcore(led_sbh, SB_CC, 0);

    W_REG(SB_CC, &regs->prog_config, WNDR3300_REG_EXT_IF_CONFIG);
    W_REG(SB_CC, &regs->prog_waitcount, WNDR3300_REG_EXT_IF_WAIT);

    uint16 *extIf = (uint16 *)WNDR3300_REG_EXT_IF_ADDR;
    *extIf = (uint16) ~ pattern;

    return 0;
}
/* end: Netgear WNDR3300 wps led control */


and

Code:
/* router Netgear WNDR3300 - turn wps dome led off */
if ( nvram_match ("boardnum", "01")
&& nvram_match ("boardtype", "0x0472")
&& nvram_match ("boardrev", "0x23") )
{
    wndr3300_wpsled_control( 0 );
}


I don't know valid patterns for the LED, but I'm guessing they would just be bit positions you can try toggling.
oxygenx
DD-WRT Guru


Joined: 11 Nov 2007
Posts: 566

PostPosted: Wed Dec 30, 2009 14:37    Post subject: Reply with quote
i got a wndr3300 today... I'm thinking of coding a small deamon doing some funky stuff with the leds. the snippets should help
jebise101
DD-WRT Guru


Joined: 25 Sep 2009
Posts: 594

PostPosted: Thu Dec 31, 2009 8:10    Post subject: Reply with quote
the lights are bright and annoying, but it might be fun to see cool patterns made witth it
Xaxy
DD-WRT Novice


Joined: 10 Apr 2013
Posts: 1

PostPosted: Wed Apr 10, 2013 9:36    Post subject: Reply with quote
oxygenx wrote:
i got a wndr3300 today... I'm thinking of coding a small deamon doing some funky stuff with the leds. the snippets should help



Hello 'work did you get the lights on?
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum