Do you like the script ?
Yes
66%
[ 2 ]
No
33%
[ 1 ]
Total Votes : 3
Author
Message
mojso DD-WRT User Joined: 09 Sep 2007 Posts: 232 Location: Macedonia
Back to top
Sponsor
mojso DD-WRT User Joined: 09 Sep 2007 Posts: 232 Location: Macedonia
Posted: Mon Jul 12, 2010 17:26 Post subject:
no one wants to test the script ?
Back to top
dende DD-WRT Novice Joined: 13 Jul 2010 Posts: 13 Location: Germany
Posted: Tue Jul 13, 2010 15:25 Post subject:
i tested the script on my Buffalo WHR-HP-G54-DD but it seems as it does not work. The diagnosis LED is not blinking at all eventhough the wifi quality is around 50%. :(
edit: Firmware: DD-WRT v24-sp2 - (10/10/09) std Last edited by dende on Tue Jul 13, 2010 15:29; edited 1 time in total
Back to top
mojso DD-WRT User Joined: 09 Sep 2007 Posts: 232 Location: Macedonia
Posted: Tue Jul 13, 2010 15:28 Post subject:
dende wrote: i tested the script on my Buffalo WHR-HP-G54-DD but it seems as it does not work. The diagnosis LED is not blinking at all eventhough the wifi quality is around 50%.
put mac adress if in AP mod
Find this line in the script
S=`wl rssi` #(put mac adress if in AP mod example: S=`wl rssi 00:11:22:33:44:55` )
Back to top
dende DD-WRT Novice Joined: 13 Jul 2010 Posts: 13 Location: Germany
Posted: Tue Jul 13, 2010 15:38 Post subject:
yes, i tried this.
with the mac adress of the router's wifi card and the mac adress of the connected pc's wifi card.
still doesn't work
Back to top
mojso DD-WRT User Joined: 09 Sep 2007 Posts: 232 Location: Macedonia
Posted: Tue Jul 13, 2010 15:43 Post subject:
dende wrote: yes, i tried this.
with the mac adress of the router's wifi card and the mac adress of the connected pc's wifi card.
still doesn't work
wich light is thurn on, if you enter this command in telnet:
Quote:
gpio enable 7
gpio disable 7
and what version of dd-wrt in your router
Back to top
dende DD-WRT Novice Joined: 13 Jul 2010 Posts: 13 Location: Germany
Posted: Tue Jul 13, 2010 16:05 Post subject:
mojso wrote:
gpio enable 7
nothing happens
diagnosis LED turns on for ~1 sec.
Quote: and what version of dd-wrt in your router
its Firmware: DD-WRT v24-sp2 - build 13064 standard package _________________ HW: Buffalo WHR-HP-G54-DD
FW: DD-WRT v24-sp2 (10/10/09) std - build 13064
HW: TP-Link WR841ND v5
FW: Gargoyle 1.5.2
Back to top
LOM DD-WRT Guru Joined: 28 Dec 2008 Posts: 7647
Posted: Tue Jul 13, 2010 16:06 Post subject:
WHR-HP-G54, ses_led = gpio1 according to cfe board_data. _________________ Kernel panic: Aiee, killing interrupt handler!
Back to top
mojso DD-WRT User Joined: 09 Sep 2007 Posts: 232 Location: Macedonia
Posted: Tue Jul 13, 2010 16:22 Post subject:
LOM wrote: WHR-HP-G54, ses_led = gpio1 according to cfe board_data.
test now with gpio 1
Quote:
#!/bin/sh
###############################################
#--------------Created by MOJSO---------------#
###############################################
# SIGNAL STRENGTH
# 0 blink = SNR < 9 No signal or very weak
# 1 blink = SNR 10-19
# 2 blinks = SNR 20-29
# 1 blinks = SNR 30-39
# 4 blinks = SNR 40-49
# 5 blinks = SNR 50-59
# 6 blinks = SNR 60 > Excellent signal
###############################################
while sleep 1; do
BLACK=`gpio enable 1`
S=`wl rssi` #(put mac adress if in AP mod example: S=`wl rssi 00:11:22:11:44:55` )
N=`wl noise`
SC=`expr $S - $N`
RSC=`expr $SC / 10`
if [ $RSC -eq 0 ]; then
gpio enable 1 ;
elif [ $RSC -eq 1 ]; then
gpio disable 1 ;
usleep 500000
gpio enable 1 ;
elif [ $RSC -eq 2 ]; then
gpio disable 1 ;
usleep 500000
gpio enable 1 ;
usleep 500000
gpio disable 1 ;
usleep 500000
gpio enable 1 ;
elif [ $RSC -eq 3 ]; then
gpio disable 1 ;
usleep 250000
gpio enable 1 ;
usleep 250000
gpio disable 1 ;
usleep 250000
gpio enable 1 ;
usleep 250000
gpio disable 1 ;
usleep 250000
gpio enable 1 ;
elif [ $RSC -eq 4 ]; then
gpio disable 1 ;
usleep 250000
gpio enable 1 ;
usleep 250000
gpio disable 1 ;
usleep 250000
gpio enable 1 ;
usleep 250000
gpio disable 1 ;
usleep 250000
gpio enable 1 ;
usleep 250000
gpio disable 1 ;
usleep 250000
gpio enable 1 ;
elif [ $RSC -eq 5 ]; then
gpio disable 1 ;
usleep 250000
gpio enable 1 ;
usleep 250000
gpio disable 1 ;
usleep 250000
gpio enable 1 ;
usleep 250000
gpio disable 1 ;
usleep 250000
gpio enable 1 ;
usleep 250000
gpio disable 1 ;
usleep 250000
gpio enable 1 ;
usleep 250000
gpio disable 1 ;
usleep 250000
gpio enable 1 ;
elif [ $RSC -ge 6 ]; then
gpio disable 1 ;
usleep 250000
gpio enable 1 ;
usleep 250000
gpio disable 1 ;
usleep 250000
gpio enable 1 ;
usleep 250000
gpio disable 1 ;
usleep 250000
gpio enable 1 ;
usleep 250000
gpio disable 1 ;
usleep 250000
gpio enable 1 ;
usleep 250000
gpio disable 1 ;
usleep 250000
gpio enable 1 ;
usleep 250000
gpio disable 1 ;
usleep 250000
gpio enable 1 ;
else gpio enable 1 ;
fi
done
or gpio3 Extra LED between bridge and WLAN
Quote:
#!/bin/sh
###############################################
#--------------Created by MOJSO---------------#
###############################################
# SIGNAL STRENGTH
# 0 blink = SNR < 9 No signal or very weak
# 1 blink = SNR 10-19
# 2 blinks = SNR 20-29
# 3 blinks = SNR 30-39
# 4 blinks = SNR 40-49
# 5 blinks = SNR 50-59
# 6 blinks = SNR 60 > Excellent signal
###############################################
while sleep 3; do
BLACK=`gpio enable 3`
S=`wl rssi` #(put mac adress if in AP mod example: S=`wl rssi 00:11:22:33:44:55` )
N=`wl noise`
SC=`expr $S - $N`
RSC=`expr $SC / 10`
if [ $RSC -eq 0 ]; then
gpio enable 3 ;
elif [ $RSC -eq 1 ]; then
gpio disable 3 ;
usleep 500000
gpio enable 3 ;
elif [ $RSC -eq 2 ]; then
gpio disable 3 ;
usleep 500000
gpio enable 3 ;
usleep 500000
gpio disable 3 ;
usleep 500000
gpio enable 3 ;
elif [ $RSC -eq 3 ]; then
gpio disable 3 ;
usleep 250000
gpio enable 3 ;
usleep 250000
gpio disable 3 ;
usleep 250000
gpio enable 3 ;
usleep 250000
gpio disable 3 ;
usleep 250000
gpio enable 3 ;
elif [ $RSC -eq 4 ]; then
gpio disable 3 ;
usleep 250000
gpio enable 3 ;
usleep 250000
gpio disable 3 ;
usleep 250000
gpio enable 3 ;
usleep 250000
gpio disable 3 ;
usleep 250000
gpio enable 3 ;
usleep 250000
gpio disable 3 ;
usleep 250000
gpio enable 3 ;
elif [ $RSC -eq 5 ]; then
gpio disable 3 ;
usleep 250000
gpio enable 3 ;
usleep 250000
gpio disable 3 ;
usleep 250000
gpio enable 3 ;
usleep 250000
gpio disable 3 ;
usleep 250000
gpio enable 3 ;
usleep 250000
gpio disable 3 ;
usleep 250000
gpio enable 3 ;
usleep 250000
gpio disable 3 ;
usleep 250000
gpio enable 3 ;
elif [ $RSC -ge 6 ]; then
gpio disable 3 ;
usleep 250000
gpio enable 3 ;
usleep 250000
gpio disable 3 ;
usleep 250000
gpio enable 3 ;
usleep 250000
gpio disable 3 ;
usleep 250000
gpio enable 3 ;
usleep 250000
gpio disable 3 ;
usleep 250000
gpio enable 3 ;
usleep 250000
gpio disable 3 ;
usleep 250000
gpio enable 3 ;
usleep 250000
gpio disable 3 ;
usleep 250000
gpio enable 3 ;
else gpio enable 3 ;
fi
done
Last edited by mojso on Tue Jul 13, 2010 16:42; edited 5 times in total
Back to top
dende DD-WRT Novice Joined: 13 Jul 2010 Posts: 13 Location: Germany
Posted: Tue Jul 13, 2010 16:23 Post subject:
LOM wrote: WHR-HP-G54, ses_led = gpio1 according to cfe board_data.
gpio1: not found.
i learnd the following: "gpio disable 1" turns on the bridge light while "gpio enable 1" turns it off. seems wired _________________ HW: Buffalo WHR-HP-G54-DD
FW: DD-WRT v24-sp2 (10/10/09) std - build 13064
HW: TP-Link WR841ND v5
FW: Gargoyle 1.5.2
Back to top
mojso DD-WRT User Joined: 09 Sep 2007 Posts: 232 Location: Macedonia
Posted: Tue Jul 13, 2010 16:31 Post subject:
attempt this command in telnet change mac adress before, and tell me what you get.
result should be from 1 to 9
0 is if the client / ap / wds is not connected to the router
Quote:
#!/bin/sh
S=`wl rssi 00:11:22:33:44:55` #(change mac adress )
N=`wl noise`
SC=`expr $S - $N`
expr $SC / 10
Back to top
dende DD-WRT Novice Joined: 13 Jul 2010 Posts: 13 Location: Germany
Posted: Tue Jul 13, 2010 16:46 Post subject:
thank you so very much for your help, its working now.
the problem was:
while sleep 3; do
BLACK=`gpio enable 7`
S=`wl rssi` #(put mac adress if in AP mod example: S=`wl rssi 00:11:22:33:44:55` )
N=`wl noise`
i didn't insert the mac adress before the " ` " but after it.
thank you for your effort _________________ HW: Buffalo WHR-HP-G54-DD
FW: DD-WRT v24-sp2 (10/10/09) std - build 13064
HW: TP-Link WR841ND v5
FW: Gargoyle 1.5.2
Back to top
mojso DD-WRT User Joined: 09 Sep 2007 Posts: 232 Location: Macedonia
Posted: Tue Jul 13, 2010 16:56 Post subject:
dende wrote: thank you so very much for your help, its working now.
the problem was:
while sleep 3; do
BLACK=`gpio enable 7`
S=`wl rssi` #(put mac adress if in AP mod example: S=`wl rssi 00:11:22:33:44:55` )
N=`wl noise`
i didn't insert the mac adress before the " ` " but after it.
thank you for your effort
I am glad that script works on your router. Attempt the same script with gpio 3, in the previous post
Back to top
dende DD-WRT Novice Joined: 13 Jul 2010 Posts: 13 Location: Germany
Posted: Tue Jul 13, 2010 17:39 Post subject:
mojso wrote:
[...]
Attempt the same script with gpio 3, in the previous post
no led is flashing :(
tried it via telnet, doesnt work _________________ HW: Buffalo WHR-HP-G54-DD
FW: DD-WRT v24-sp2 (10/10/09) std - build 13064
HW: TP-Link WR841ND v5
FW: Gargoyle 1.5.2
Back to top
mojso DD-WRT User Joined: 09 Sep 2007 Posts: 232 Location: Macedonia
Posted: Tue Jul 13, 2010 18:33 Post subject:
dende wrote: mojso wrote:
[...]
Attempt the same script with gpio 3, in the previous post
no led is flashing :(
tried it via telnet, doesnt work
ok thanks, that means working with gpio 7, does not work with gpio 3 in your case
Back to top