因為 Arduino Yun 真的比 Linkit 7688 慢很多
回復AP模式或出廠值
1. 使用 WLAN 按鈕
按5秒,wifi 回AP模式 SSID=Arduino-Yun-XXXXXXXXXXXX, IP=192.168.240.1
按30秒,linux 環境回復出廠值,清除板上的 Flash 記憶體
2. 登入作業系統,使用命令
wifi-reset-and-reboot
reset-to-factory-anyway
wifi-reset-and-reboot 中加入下一行,才能正確回復AP模式
$UCI "delete" "wireless.@wifi-iface[1]"
dhcp, network, wireless, firewall
使用網頁 (Arduino Luci)設定,新增 Wi-Fi Station 網路
Network/Wifi/Scan
Join Network
取消勾選 An additional network will be created if you leave this unchecked.
Join Network
取消勾選 An additional network will be created if you leave this unchecked.
沒有取消勾選,會導致 AP 網路被取消掉
uci set wireless.@wifi-iface[1].ssid='DigiChance'
uci set wireless.@wifi-iface[1].key='xxxxx'
uci set wireless.@wifi-iface[1].encryption='psk2'
uci set wireless.@wifi-iface[1].bssid='B8:55:10:56:05:20'
uci commit wireless
uci set network.wwan.proto='static'
uci set network.wwan.ipaddr='192.168.1.60'
uci set network.wwan.netmask='255.255.255.0'
uci set network.wwan.gateway='192.168.1.1'
uci set network.wwan.dns='192.168.1.1'
uci commit network
修改完執行
/etc/init.d/network restart
相關命令
wifi up
wifi down
wifi status
ifconfig
ifconfig eth1 up
ifconfig eth1 down
ifconfig eth1 192.168.1.61 netmask 255.255.255.0
相關命令
wifi up
wifi down
wifi status
ifconfig
ifconfig eth1 up
ifconfig eth1 down
ifconfig eth1 192.168.1.61 netmask 255.255.255.0
ifup EWAN // 參考 /etc/config/network
ifdown EWAN // 參考 /etc/config/network
同時啟動 ap+sta 模式,網路不用密碼,使用 MAC filter,會出問題,一直找不到如何解決
1. 不用密碼命令
uci set wireless.@wifi-iface[1].encryption='none'
2. MAC filter 似乎會檢查 BSSID
uci set wireless.@wifi-iface[1].bssid='B8:55:10:56:05:20'
3. 切開不同的網段,似乎能解決問題,但不同網段
uci set network.wwan.ipaddr='192.168.3.60'
若開機時沒接上有線網路,會導致無線網路開不起來
停止網路
uci set network.EWAN.auto='0'
開機後(無線網路啟動後)再啟動有線網路
編輯 /etc/rc.local
加入
ifconfig eth1 192.168.1.61 netmask 255.255.255.0
或
ifup wan
ifup EWAN
uci add wireless wifi-iface
uci set wireless.@wifi-iface[1].network='wwan'
uci set wireless.@wifi-iface[1].device='radio0'
uci set wireless.@wifi-iface[1].mode='sta'
uci set wireless.@wifi-iface[1].ssid='DigiChance'
uci set wireless.@wifi-iface[1].key='22463458'
uci set wireless.@wifi-iface[1].encryption='psk2'
uci set wireless.@wifi-iface[1].bssid='B8:55:10:56:05:20'
uci commit wireless
uci delete network.wwan
uci add network interface
uci rename network.@interface[-1]='wwan'
uci set network.wwan._orig_ifname='wlan0-1'
uci set network.wwan._orig_bridge='false'
uci set network.wwan.proto='static'
uci set network.wwan.ipaddr='192.168.1.60'
uci set network.wwan.netmask='255.255.255.0'
uci set network.wwan.gateway='192.168.1.1'
uci set network.wwan.dns='192.168.1.1'
uci commit network
uci delete network.ewan
uci add network interface
uci rename network.@interface[-1]='ewan'
uci set network.ewan.ifname='eth1'
uci set network.ewan._orig_ifname='eth1-1'
uci set network.ewan.proto='static'
uci set network.ewan.ipaddr='192.168.1.61'
uci set network.ewan.netmask='255.255.255.0'
uci set network.ewan.gateway='192.168.1.1'
uci set network.ewan.dns='192.168.1.1'
uci commit network
wifi-reset-and-reboot 中加入
$UCI "delete" "wireless.@wifi-iface[1]"
沒有留言:
張貼留言