DIR-300 GPIO Info. Relieved + SES Button problem

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Author Message
guidoa
DD-WRT Novice


Joined: 01 Mar 2009
Posts: 4

PostPosted: Sun Mar 01, 2009 21:04    Post subject: DIR-300 GPIO Info. Relieved + SES Button problem Reply with quote
Hi there!

This is my first post. I recently buyed a D-Link DIR-300 Router and flashed it with DD-WRT v24SP1.

It is working really great.
I just found some issued with de SES Button and some leds, so I relieved all the information I've been able to using "gpio poll" and "gpio enable/disable".

This is the list I made:

1: SES Button Blue led (Enable=ON)
2: WiFi led
3: SES Button Red led (Enable=ON)
4: SES Button (Pressed=01)

6: Reset Button (Pressed=01)
7: Status led (Enable=ON)

I also noted that you cannot use gpio number 1 and 3 to make a third color. It will just enable the last one, so only Blue or Red.

Now, issues I found:

1) WiFi led: It is ON (blinking from time to time) even when WiFi is turned OFF in DD-WRT. I guess it should be OFF if WiFi is turned OFF and ON(blinking) when WiFi is ON(with activity).

2) I enabled "Services>Services>SES Button>Use this button for turning Off radio" and "Administration>Management>Reset button", but the SES button does not work. I tried the button with WiFi turned On or Off from the Web, but it's state won´t change.

One more thing I tried: I wrote a script on /tmp called "test.sesbutton" that would write "testing" on a file in /tmp. I pressed the button, but the script didn't get executed.

I hope you can give me some help on this issue, as the SES button functionality would be very useful for me.

Please, if you need me to make any other teste, just let me know.

Regards,

Guido
Sponsor
Sash
DD-WRT Guru


Joined: 20 Sep 2006
Posts: 17619
Location: Hesse/Germany

PostPosted: Mon Mar 02, 2009 9:55    Post subject: Reply with quote
i'll see if bs will support
_________________
Forum Guidelines...How to get help
&
Forum Rules
&
RTFM/STFW
&
Throw some buzzwords into the WIKI search Exclamation
_________________
I'm NOT rude, just offer pure facts!
_________________
Atheros (TP-Link & Clones, etc ) debrick service in EU
_________________
Guide on HowTo be Safe, Secure and Protect Your Online Anonymity!
guidoa
DD-WRT Novice


Joined: 01 Mar 2009
Posts: 4

PostPosted: Mon Mar 02, 2009 14:28    Post subject: Reply with quote
Hi!

Sorry for my silly question, what do you mean with "bs"?

One more thing: I think the reset button is not working wither. If I press it for a couple of seconds (less than 5 seconds, just for a reboot) the Router continues online, without rebooting.

Regards,

Guido
Rurouni
DD-WRT Novice


Joined: 12 Dec 2008
Posts: 13

PostPosted: Tue Mar 03, 2009 15:23    Post subject: Reply with quote
guidoa wrote:
Hi!

Sorry for my silly question, what do you mean with "bs"?


Yes, it's a silly question Smile
bs = BrainSlayer.... http://dd-wrt.com/dd-wrtv3/dd-wrt/about.html (look at May 2008).
guidoa
DD-WRT Novice


Joined: 01 Mar 2009
Posts: 4

PostPosted: Tue Mar 03, 2009 15:29    Post subject: Reply with quote
Rurouni wrote:
guidoa wrote:
Hi!

Sorry for my silly question, what do you mean with "bs"?


Yes, it's a silly question Smile
bs = BrainSlayer.... http://dd-wrt.com/dd-wrtv3/dd-wrt/about.html (look at May 2008).


Thank you very much Rurouni!

Regards,

Guido
guidoa
DD-WRT Novice


Joined: 01 Mar 2009
Posts: 4

PostPosted: Thu Mar 19, 2009 0:09    Post subject: Reply with quote
Hey Sash, any news on this?

Thanks!

Guido
micro.duke
DD-WRT Novice


Joined: 17 Mar 2009
Posts: 17

PostPosted: Thu Mar 19, 2009 0:58    Post subject: Reply with quote
Yes,I have same question.
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=49045

I use "nvram show |grep ses",so i see ses_script=""

I use this:

Code:

root@DD-WRT:/tmp# nvram set ses_script='#!/bin/sh
> /sbin/gpio enable  1
> sleep 1
> /sbin/gpio disable 1
> /sbin/gpio enable  3
>  sleep 1
> /sbin/gpio disable 3
> '
root@DD-WRT:/tmp# nvram get ses_script
#!/bin/sh
/sbin/gpio enable  1
sleep 1
/sbin/gpio disable 1
/sbin/gpio enable  3
sleep 1
/sbin/gpio disable 3
root@DD-WRT:/tmp#nvram commit
nvram_commit(): end
root@DD-WRT:/tmp#reboot


after it's booted,I press the ses buttom,But it's no effect.

Another Q:
http://192.168.1.1
Administration->Commands->Command Shell,fill it with this:

Code:
sed -ie 's/^root/newuser/g' /tmp/etc/passwd



->Save Startup
reboot,it's effect.
But ssh the router,I no found the script.
where is the script?
barcclay
DD-WRT Novice


Joined: 25 Jun 2009
Posts: 1

PostPosted: Thu Jun 25, 2009 3:59    Post subject: GPIO In and output Reply with quote
Hello,
I'm now working on my own project to connect sensor to my WRT54GL.
It's running DD-WRT.

I already find the way to use the GPIO pins for output, and generate signal, using the GPIO enable/disable pin.

But now I'm trying to listen a signal on a GPIO pin!!!

Can you help me please I'm looking for the way for long time now.

Thx
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC 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 cannot attach files in this forum
You cannot download files in this forum