Use Wireless in MarsBoard

From wiki
Jump to: navigation, search


Before start

The MarsBoard provides various ways to connect, wired and wireless. use usb wifi module (RTL8188EU) on board, the module are connect to the cpu via the USB interface.

Using wireless under Android

The wifi works out of the board, check out in the Setting to configure it.

Using wireless under Linux

Command Line

The model number of the module is RTL8188EU. You can see the id of the module with the following command:

   sudo apt-get install usbutils
   marsboard@marsboard-picuntu:~$ lsusb
   Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
   Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
   Bus 002 Device 002: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB
   Bus 002 Device 003: ID 046d:c52e Logitech, Inc. 
   Bus 002 Device 004: ID 0bda:8179 Realtek Semiconductor Corp. 

The 0bda:8179 is the id of RTL8188EU module.

Manually config to connect wireless router

you need to do the following:

   sudo apt-get install wireless-tools
   sudo apt-get install wpasupplicant
   iwconfig # we assume wlan1 here.
   sudo ifconfig wlan1 up

now you should see wlan1 by ifconfig

Now you can view is the wifi module works by scanning the AP nearby

   iwlist wlan1 scan

edit /etc/wpa_supplicant.conf

   	ssid="your ssid name"
   	psk="your wireless password"

and then run

   wpa_supplicant -B -i wlan1 -c /etc/wpa_supplicant.conf 

to connect to the wireless router.

If you want to set the MarsBoard to connect to the wireless router automatically every time it boot up. Add the following to the /etc/network/interfaces

   auto wlan1
   iface wlan1 inet dhcp
   wpa-conf /etc/wpa_supplicant.conf


   sudo apt-get install wicd
   iwconfig # we assume wlan1 here.

Wicd config.jpg

Wicd config2.jpg

Wicd config3.jpg

Personal tools