搜尋此網誌

2019年10月2日 星期三

Beaglebone 的 wifi

緣起:


    我買的那台Beaglebone Green wireless,本身就有附 wifi 跟 bluetooth ,我上網找了一些如何設訂 wifi 的方法,成功是成功了啦,不過,時間久了,就會忘了要怎麼去操作,又要上網去找一次資料,所以,我想直接記錄下來。





指令:


我這裡就直接把輸入跟輸出的內容列出來了 (我輸入的用紅色來標示)。

debian@beaglebone:~$ sudo connmanctl //wifi 跟 bluetooth 是用 connmanctl 來管理的
Error getting VPN connections: The name net.connman.vpn was not provided by any 
connmanctl> enable wifi //啟用wifi
Error wifi: Already enabled //它己經是啟用的了
connmanctl> scan wifi //掃描
connmanctl> services //看看有哪些服務
*AO pony                 wifi_e0e5cf7fb219_706f6e79_managed_psk
    TANetRoaming         wifi_e0e5cf7fb219_54414e6574526f616d696e67_managed_none
    ncyu                 wifi_e0e5cf7fb219_6e637975_managed_none
    802.1x-ncyu          wifi_e0e5cf7fb219_3830322e31782d6e637975_managed_ieee8021x
//上面那一陀,第一個欄位是ssid,啊後面那個...,我就不知是啥了,你在選擇要連哪個wifi時會用到。
connmanctl> agent on //這我就不知是什麼東西了
Agent registered
connmanctl> connect wifi_e0e5cf7fb219_6e637975_managed_none //選擇你要連的wifi
Connected wifi_e0e5cf7fb219_6e637975_managed_none //成功
//如果wifi要密碼的話,你還需要再輸入密碼


    大概就這樣啦。


沒有留言:

張貼留言