找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 4909|回复: 6

利用500u的Ses按钮控制无线开关

[复制链接]
起因:我的500u不知道是固件原因或者别的原因,在DD里边设置了用Ses按钮控制无线开关不是十分好用。表现为按下去不知道哪次会开启或者关闭无线。而且即使无线关闭了,那个Air灯依然是亮的。不知道各位的是否和我的一样?考虑到辐射和节能(当然很小了),在晚上bt的时候还是把无线关了比较好。

功能:使无线网络没有客户端连接的情况下3分钟后自动关闭。如果需要打开,按下Ses键再连接就可以了。使用了PWD灯作为无线开关的指示。

1. 脚本:
root@DD-WRT:/jffs/etc/config# ls -la
drwxr-xr-x    1 root     root            0 Mar 10 09:08 .
drwxr-xr-x    1 root     root            0 Mar  9 23:13 ..
-rwxr-xr-x    1 root     root           27 Mar 10 09:35 .sesbutton
-rwxr-xr-x    1 root     root          398 Mar 10 09:33 radio_ctl
root@DD-WRT:/jffs/etc/config# cat .sesbutton
wl radio on
gpio disable 0
root@DD-WRT:/jffs/etc/config# cat radio_ctl
Radio_on="0x0000"
LED="0" #enable: off, disable: on, 0: PWD LED

if [ "`/usr/sbin/wl radio`" = $Radio_on ]; then
        gpio disable $LED
        if [ "`/usr/sbin/wl assoclist`" = "" ]; then
                sleep 180
                if [ "`/usr/sbin/wl assoclist`" = "" ]; then
                        wl radio off
                        gpio enable $LED
                fi;
        fi;
        else
                gpio enable $LED
fi;
root@DD-WRT:/jffs/etc/config#

2. 计划任务: Administration-Management-Cron:
*/5 * * * * root /jffs/etc/config/radio_ctl


3. 在service里边禁用SES / AOSS / EZ-SETUP / WPS Button
我的恩山、我的无线 The best wifi forum is right here.
请问华硕520GU也能用吗?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

这个应该能用在500GP V2上
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
我这个是团购的dualwan wl-500u, 基本跟500gp v2硬件一样。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

虽然看不懂.但这种贴子一定要顶!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

本帖最后由 phantom-gy 于 2010-3-12 21:37 编辑

gpio0=power_led
gpio1=wlan_led
gpio2=reset
gpio3=ses_buttom
gpio4=
gpio5=
gpio6=
gpio7=
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
已经在dualwan找到无线灯的解决方法。楼上引用的是linksys的灯的定义,不适合500u。

nvram set wl0gpio1=0x88
nvram commit
reboot
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-27 14:23

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表