[Hot News] [SOLVED]: Set Up Raspberry Pi With TPLINK WN727N v4 Having 148f:7601 Ralink Technology

[Hot News] [SOLVED]: Set Up Raspberry Pi With TPLINK WN727N v4 Having 148f:7601 Ralink Technology
Di Posting Oleh : Crew Blog
Kategori : FAQ LINUX OS Q&A RASPBERRY PI Solved TUTORIALS WiFi


We have been getting problem reports from users when they are trying to set up their Raspberry Pi to get working with TPLINK WN727N v4 USB WiFi dongle to connect to the WiFi network. If you too are facing a similar problem, this post might help you to get a resolution to get your Raspberry Pi get going with TPLINK WN727N v4 USB WiFi.

To get going, we first checked the USB device id for the TPLINK WN727N v4 USB WiFi that we plan to connect with our Raspberry Pi. TPLINK WN727N v4 USB WiFi happens to have an USB device id of:

148f:7601

You can check the device ID by  following this tutorial

Next, you will need to download the appropriate USB driver module for your TPLINK WN727N v4 USB WiFi dongle. Luckily, a prebuilt Linux TPLINK WN727N v4 USB WiFi driver file package exists already on the internet and shared in the following path which can be obtained using the wget command as follows:

wget https://dl.dropboxusercontent.com/u/67643651/mt7601_3.12.35_730.tar.gz

Next, untar this Linux TPLINK WN727N v4 USB WiFi driver file package file to the root directory using the following command:

sudo tar xf mt7601_3.12.35_730.tar.gz -C /

Now run the depmod command to let the Linux kernel to load all the dependent modules required for this driver module to run:

sudo depmod 3.12.35+

Finally perform a Raspberry Pi device reboot to see that the TPLINK WN727N v4 USB WiFi driver gets automatically loaded by the Linux Kernel:

sudo reboot

In order to verify that the TPLINK WN727N v4 USB WiFi driver has been loaded successfully, issue the following command:

sudo lsmod | grep mt7601Usta

You should now be seeing an entry something like this:

mt7601Usta 601487 1

Now if you run the iwconfig Linux WiFi configuration utility tool, you should see an entry for your TPLINK WN727N v4 USB WiFi module. If this entry happens to be listed as ra0 instead of wlan0, then you will need to rename your TPLINK WN727N v4 USB WiFi Linux kernel module name to wlan0 from ra0.

This can be achieved by updating the following file:

/etc/udev/rules.d/70-persistent-net.rules

In this file, add the following lines that would add a new entry for wlan0:

ACTION=="add", SUBSYSTEM=="net", ATTR{type}=="1", KERNEL=="ra*", NAME = "wlan0"

Now, if you perform your Raspberry Pi system reboot and issue iwconfig command, you should be able to see your wlan0 device listed!

Next, update the file:

sudo nano /etc/network/interfaces

to add all the required information for your WiFi network i.e. its SSID, Password etc. The file should look something like this:

auto lo iface lo inet loopback iface eth0 inet dhcp auto wlan0 allow-hotplug wlan0 iface wlan0 inet static address 7.7.7.50 netmask 255.255.255.0 gateway 7.7.7.1 wpa-ap-scan 1 wpa-scan-ssid 1 wpa-ssid "YOUR-WIFI-SSID" wpa-psk "YOUR-WIFI-PASSWORD"

Now, if you perform a reboot operation on your Raspberry Pi, the Raspberry Pi should reboot and connect automatically to your WiFi network successfully!