91 lines
1.5 KiB
Plaintext
91 lines
1.5 KiB
Plaintext
[[[ BeagleBone Black Wifi ]]]
|
|
|
|
|
|
[[ Config ]]
|
|
|
|
|
|
[ Network Interfaces ]
|
|
/etc/network/interfaces
|
|
USB0: debian@192.168.7.2
|
|
ETH0: debian@192.168.6.1
|
|
|
|
|
|
[ Serial ]
|
|
# /dev/tty.usbmodem-XXXX
|
|
# /dev/tty.usbserial-XXXX
|
|
# /dev/tty.usbserial-AH05JI3A
|
|
|
|
|
|
# connect to serial device, log to a file ("screenlog.0"), name screen "bbb"
|
|
# ls /dev/tty.usb*
|
|
$ screen -L -R bbb /dev/tty.usbserial-AH05JI3A 115200
|
|
|
|
user: root
|
|
|
|
# screen commands
|
|
detach: Ctrl+A Ctrl+d
|
|
exit: Ctrl+A Ctrl+\
|
|
|
|
|
|
|
|
[ WiFi Access Point ]
|
|
SSID: BeagleBone-4F37
|
|
Pass: BeagleBone
|
|
|
|
"tether" interface
|
|
IP: 192.168.0.1
|
|
|
|
|
|
|
|
[[ WiFi Configs ]]
|
|
|
|
|
|
[ Config X ]
|
|
$ connmanctl
|
|
|
|
connmanctl>
|
|
connmanctl> scan wifi
|
|
connmanctl> services
|
|
.. wifi_506583e44f37_2e2e_managed_psk
|
|
connmanctl> agent on
|
|
connmanctl> connect wifi_506583e44f37_2e2e_managed_psk
|
|
Passphrase? 12345Gledhill12345
|
|
Connected wifi_506583e44f37_2e2e_managed_psk
|
|
|
|
|
|
[ Config XX ]
|
|
wpa_supplicant -B -i wlan0 -c < (SSID PASS)
|
|
|
|
|
|
[ Config 1 ]
|
|
$ vim /etc/network/interaces
|
|
auto wlan0
|
|
iface wlan0 inet dhcp
|
|
wpa-ssid {ssid}
|
|
wpa-psk {password}
|
|
|
|
$ sudo dhclient wlan0
|
|
|
|
|
|
[ Config 2 ]
|
|
$ sudo ifconfig wlan0 up
|
|
$ sudo iwlist wlan0 scan
|
|
$ sudo iwconfig wlan0 essid CrystalWifi key s:newsky12
|
|
$ sudo dhclient wlan0
|
|
|
|
[ Turn off]
|
|
$ sudo ifconfig wlan0 down
|
|
|
|
|
|
[ Config Option 3 ]
|
|
$ connmanctl
|
|
#connmanctl> tether wifi disable
|
|
#connmanctl> enable wifi
|
|
#connmanctl> scan wifi
|
|
#connmanctl> services
|
|
#connmanctl> agent on
|
|
#connmanctl> connect wifi_*_managed_psk
|
|
#connmanctl> quit
|
|
|
|
|