-
Notifications
You must be signed in to change notification settings - Fork 1
Setup Wifi Dongle
-
First, install the necessary tools:
sudo apt-get install wireless-tools wpasupplicant
-
Check that the ODROID recognizes the device and loads the proper driver:
dmesg | tail
-
Scan for available networks to check that the device functions properly.
sudo iwlist wlan0 scan
-
Configure the network interfaces. In order to access the file, you need to become root. Type the password when prompted.
sudo -s echo -e "\nauto wlan0 \niface wlan0 inet dhcp \n\twpa-ssid OLIN-ROBOTICS\n\twpa-psk R0B0TS-RULE" >> /etc/network/interfaces
-
Configure the WPA credentials for your network. Enter the password when prompted.
wpa_passphrase OLIN-ROBOTICS >> /etc/wpa_supplicant/wpa_supplicant_OLIN-ROBOTICS.conf
-
Try to connect to network with the given configuration. You should see an output with UP highlighted.
sudo wpa_supplicant -B -D wext -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant_OLIN-ROBOTICS.conf ip link show wlan0 | grep UP
Tip : if you messed up and have multiple processes running wpa_supplicant, get rid of them:
ps -ef | grep "wpa_" sudo kill $(pgrep -f "wpa_supplicant -B")
-
Setup IP with the router.
sudo dhclient -v -r wlan0
-
Restart wlan0.
sudo ifdown wlan0 && sudo ifup wlan0
-
Check network connection status.
iwconfig # CHECKS WIRELESS DEVICE STATUS ifconfig # CHECKS GENERAL NETWORK STATUS
-
Check subnet connectivity. Your computer should be connected to OLIN-ROBOTICS, if you configured your WPA credentials with OLIN-ROBOTICS.
ping <your_computer_ip>
-
Check External Network Connectivity. Disable network sharing via ethernet cable if you had it set up, to verify the connection.
ping www.google.com