用指令切換 Smart 7688 的 AP/Station 模式

開發者必須學會的快速技巧

Danny.Ho
Danny.Ho
Mar 8, 2016 · 2 min read

在一個無線網路(Wifi)環境雜亂的環境底下該怎麼透過UART使用 MTK LinkIt Smart 7688 呢?

以下將介紹有兩種方式可以來達到:

方法一:

輸入指令來打開 Station Mode

# uci set wireless.sta.ssid=MyAP       (AP的SSID)
# uci set wireless.sta.encryption=psk2 (加密模式)
# uci set wireless.sta.key=12345678 (AP密碼)
# uci set wireless.sta.disabled=0 (將stationMode打開)
# uci commit
# wifi

方法二:

其實在 OpenWRT 裡面只需要下簡單的指令就可達成切換至Station Mode。

首先先使用 vim 打開 /etc/config/wireless 這個檔案

輸入您的SSID與密碼與網路加密模式
# uci set wireless.sta.disabled=0
# uci commit
# wifi
# ping 8.8.8.8

然後各位就可以發現已經切換至 StationMode 對外網路通嚕 ^^

Maker Cup

Danny.Ho

Written by

Danny.Ho

Maker Cup

Maker Cup

創客、自造者技術交流

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade