Entering http://arduino.local or ip address of ethernet or WiFi in your browser you will able to configure the WiFi network


Yun network setting:

wlan (WIFI) 

mode:sta for managed (client) mode

dhcp client get ip from router ip pool 


eth1 (ethernet)

dhcp client get ip from router ip pool


backup system wide setting:

uci export > /root/sta.conf

whenever you need restore it:

uci import </root/sta.conf

for UCI API:

/sbin/uci set wireless.radio0=wifi-device
/sbin/uci set wireless.radio0.type=mac80211
/sbin/uci set wireless.radio0.hwmode=11ng
/sbin/uci set wireless.radio0.path=platform/ar933x_wmac
/sbin/uci set wireless.radio0.htmode=HT20
/sbin/uci set wireless.radio0.ht_capab=SHORT-GI-20 SHORT-GI-40 RX-STBC1 DSSS_CCK-40
/sbin/uci set wireless.radio0.disabled=0
/sbin/uci set wireless.radio0.channel=auto
/sbin/uci set wireless.radio0.country=00
/sbin/uci set wireless.@wifi-iface[0]=wifi-iface
/sbin/uci set wireless.@wifi-iface[0].device=radio0
/sbin/uci set wireless.@wifi-iface[0].network=lan
/sbin/uci set wireless.@wifi-iface[0].mode=sta
/sbin/uci set wireless.@wifi-iface[0].ssid="Wifi Router SSID"
/sbin/uci set wireless.@wifi-iface[0].encryption=psk2
/sbin/uci set wireless.@wifi-iface[0].key=password
/sbin/uci commit wireless
wifi down; wifi up
/etc/init.d/network  restart



Comments powered by CComment