Install Mercury MW150US WIFI dongle on RPi
The wifi dongle cannot be recognized by command lsusb and lsusb, found the chipset of MW150US is rtl8188eu, not rtl8192cu, it is very important.
My RPi kernel is 3.2.27+, it is need to compile module rtl8188eu with RPi source code.
Procedure as below
1 | apt-get install build-essential |
Get rtl8188eu source code from http://gutspot.com/wp-content/uploads/2013/01/8188eu_USB_linux.zip
unzip the file and go to directory driver# make && make install
In my case, it’s all. The module rtl8188eu has been load into RPi, MW150US WIFI dongle can be recognized.
1 | ifconfig -a |
If it does not work, try the following method,
1 | lsmod |
sudo nano /etc/network/interfaces
1 | auto lo |
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
1 | network={ |
Join WIFI network by running from command prompt with wpa_cli
1 | wpa_cli |
For reference
1 | ssid: your wifi name |
Then run
1 | # /etc/init.d/networking restart |
script for auto-start wifi connection(Optional) /etc/init.d/wifi-connect
1 | #!/bin/sh |
Install hostapd
- unzip wpa_supplicant_hostapd-0.8_rtw_20120803.zip
go to directory hostapd and compilemake && make install
** should not ** start hostapd by/etc/init.d/hostapd start
just run/usr/local/bin/hostapd p2p_hostapd.conf -B
then hostapd started with ssid DIRECT-RT - config IP address
ifconfig wlan0 192.168.0.1 netmask 255.255.255.0 (the segment should be match with udhcp)
sudo apt-get udhcpd
/etc/init.d/udhcp start
Open your mobile’s wifi to search ssid “DIRECT-RT” and pair with it using pasword “12345678”, it will obtain the IP adddress dynamically.
Reference:
http://omer.me/2012/04/setting-up-wireless-networks-under-debian-on-raspberry-pi/
http://tasksofohm.wordpress.com/hardware/connecting-raspberry-to-a-ew-7811un
http://www.ctrl-alt-del.cc/2012/05/raspberry-pi-meets-edimax-ew-7811un-wireless-ada.html
https://guts.me/2013/01/30/set-up-wifi-router-with-raspberry-pi-2-compile-driver-for-8188eu-and-set-up-hostap/
http://blog.elevendroids.com/2012/12/building-tp-link-tl-wn725n-wifi-usb-adapter-driver-for-raspberry-pi/
http://jarhead.blog.163.com/blog/static/175217041201317102236535/
http://alansun.iteye.com/blog/1150893
hostapd
http://www.raspberrypi.org/phpBB3/viewtopic.php?t=19120 http://elinux.org/RPI-Wireless-Hotspot
*** New Version for 3.12.22+ ***
Just install a script to install rtl8188eu.ko as below,
tar -zxvf 8188eu-201xyyzz.tar.gz
<–set data code for driver version above
1 | sudo install -p -m 644 8188eu.ko /lib/modules/$(uname -r)/kernel/drivers/net/wireless |
http://www.raspberrypi.org/forums/viewtopic.php?p=462982#p462982
http://www.fars-robotics.net/