DE10 Advance revC demo: Setup USB Wi-Fi Dongle

From Terasic Wiki

Jump to: navigation, search

This section describes how to setup the Wi-Fi USB dongle under Linux, so Linux user can wirelessly connect to the Wi-Fi AP (Access Point) through the Wi-Fi USB Dongle and finally connect to the internet. The Wi-Fi AP is assumed to have the DHCP server capability and is connected to the internet. You should also make sure you know the SSID and Password of the Wi-Fi AP.

System Diagram

Figure 3-6 shows the block diagram of this demonstration. The Wi-Fi AP assumes you have the DHCP server capability and is connected to the LAN (Local Area Network) or the internet. The USB Wi-Fi Dongle connects to the Wi-Fi AP and gets an address IP from the Wi-Fi AP. Through the Wi-Fi AP, the USB-Dongle will be able to communicate with the devices connected to the LAN or the internet.

System diagram of USB Wi-Fi dongle.jpg
Figure 3-6 System diagram of USB Wi-Fi dongle

Wi-Fi Setup Procedure

  • Connect a USB cable to the USB-to-UART connector (J27) on the DE10-Advanced board and the host PC.
  • Connedt the USB Wi-Fi Dongle into the USB port on the DE10-Advanced with USB Transfer Cable.
  • Power on the DE10-Advanced board.
  • Launch Putty to establish the connection between the UART port of the DE10-Advanced board and the host PC. Type "root" and then press "Enter." By pressing "Enter," you can login to Linux without password.
  • Type "ifconfig wlan0 up" in the UART terminal of Putty to start wlan0 network interface.
  • Type "iwlist wlan0 scan | grep ESSID" in the UART terminal to search nearby Wi-Fi AP. Make sure your Wi-Fi AP is found.
Iwlist wlan0 scan grep ESSID.jpg
  • Type "vim /etc/wpa_supplicant/wpa_supplicant.conf" in the UART terminal to edit Wi-Fi configuration file.
Wpa supplicant.jpg
  • In the configuration file, replace "Your_SSID" and "Your_WPA-Key_ASCII" with the SSID and password for your Wi-Fi AP, in respectively.
Your SSID.jpg
  • Type "ifup wlan0" in the UART terminal to connect to the Wi-Fi AP.
Ifup wlan0.jpg
  • Type "ifconfig wlan0" in the UART terminal to confirm an IP Address is assigned to wlan0 interface.
Ifconfig wlan0.jpg
  • Make sure Wi-Fi AP is connected to the internet. Type "ping -c 4 www.terasic.com" in the UART terminal to check internet connection status. If 0% packet loss is reported, it means the connection is good.
Ping c 4.jpg

Back

Personal tools