justplainstupid
Posts: 20
Joined: Mon May 11, 2015 7:35 pm

Re: WiFi Issues ? Start here !

Wed May 13, 2015 8:35 am

It's okay folks! I fixed it all by myself!

I bought an Arduino.

:)

MrEngman
Posts: 3853
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: WiFi Issues ? Start here !

Thu May 14, 2015 12:25 am

bluewasabi wrote:Hi again MrEngman,
Thanks a lot for your patience and knowledge. I needed the 8188eu driver for the REALTEK 0bda:0179 device and the mt7601 driver for the RALINK 148f:7601 device. I was able to operate 148f:7601 with the mt7601 driver, but not 0bda:0179 with the 8188eu driver - any idea what could have gone wrong? Furthermore, I got tempted to update and upgrade Raspbian to 3.18.11 #781 and guess what, the wifi stopped working. I tried a couple workarounds, but gave up and reverted to 3.18.7 #755 - any suggestion on what to do when I update/upgrade?
Thanks much,
BW
As these drivers are not build into the image but installed separately when you update the kernel you must download and install a new version of the driver, unless you install the firmware for the built in 8188eu driver then it will not need updating when you update the kernel.

I have compiled a set of drivers that use the kernel version and build in the filename to identify which version of raspbian they can be used with.

For the mt7601 on the Pi 2B the filename is like
mt7601-kernel-v7-build.tar.gz
and for the 8188eu driver the filename is like
8188eu-kernel-v7-build.tar.gz
with the values kernel and build being replaced by the values from the command uname -a.

To find the driver for a particular version of raspbian run command uname -a and note the kernel version and build and use them to get the right file to download. e.g.on my Pi 2B uname -a shows
Linux Pi-B-2 3.18.13-v7+ #784 SMP PREEMPT Sat May 9 15:57:36 BST 2015 armv7l GNU/Linux
so the mt7601 driver I need for that version will be
mt7601-3.18.13-v7-784.tar.gz
and note that for the new Pi 2B the filename includes "-v7"

For your Pi 2B with 3.18.11-v7 #781 (I am assuming you are using a Pi 2B as you mentioned that in an earlier post) the file name would be
mt7601-3.18.11-v7-781.tar.gz
with "-v7" for the Pi 2B. For the 8188eu wifi change mt7601 in the filename to 8188eu. If you want a driver for a version of the Pi before the Pi 2, e.g. Pi 1 B (all versions), Pi A, Pi B+ Pi A+, remove "-v7" from the filename.

So for your current kernel 3.18.7-v7+ #755 to download and install the mt7601 driver use commands
wget https://dl.dropboxusercontent.com/u/802 ... 755.tar.gz
tar xzf mt7601-3.18.7-v7-755.tar.gz
./install.sh
For the 8188eu driver use the same commands except replace mt7601 in the filename with 8188eu. Hope that makes sense in terms of what filename to use for whatever kernel version you are using.

Now, why the 8188eu driver did not work I don't know. Did you download and install my 8188eu driver or install the firmware for the built in driver? Did you try it on a Pi 2B or an earlier version of the Pi? Perhaps you could try again and if it doesn't work use command dmesg to check the log file when the Pi starts up and see if there are any messages to give us a clue to why it did not work. Check it recognises the USB device 0bda:0179 and see if there are any error messages after that mentioning the 8188eu driver. Did you try command ifconfig and see the wifi wlan0 in the output from that command? That command will show if the wifi module is recognised and if it has a connection. Also you can check the output of command lsmod to see if the 8188eu driver is loaded or it shows r8188eu.


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

MHB
Posts: 4
Joined: Thu Sep 20, 2012 7:03 pm
Location: South Africa

Re: WiFi Issues ? Start here !

Fri May 15, 2015 1:12 pm

It seems that I cannot connect to my Wifi network with a hidden SSID. Using a Pi 2 and Raspbian 2015-05-05.

Once I broadcast the SSId, All is well.

EDIT: All is not well, I can connect to my router, but no internet access.
traceroute www.google.com

Code: Select all

connect: Network is unreachable

MrEngman
Posts: 3853
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: WiFi Issues ? Start here !

Fri May 15, 2015 2:11 pm

MHB wrote:It seems that I cannot connect to my Wifi network with a hidden SSID. Using a Pi 2 and Raspbian 2015-05-05.

Once I broadcast the SSId, All is well.
How did you configure your wifi. If using /etc/network/interfaces try this format

Code: Select all

auto lo

iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet dhcp
#wpa-scan-ssid 1                    } <-- uncomment to add these two lines for hidden ssid
#wpa-bssid your-AP-MAC-address      } <-- MAC address of access point
wpa-ssid "your-network-name"
wpa-psk "your-network-password"
May even work if you copy the two lines to your current /etc/network/interfaces.

If you are using wpa_supplicant adding the two lines

Code: Select all

scan-ssid 1
bssid your-AP-MAC-address
to the relevant network{...} section in file /etc/wpa_supplicant/wpa_supplicant.conf should get it working, or at least it has worked for me.

However, using a hidden ssid can cause more problems than it solves, if it does solve any. Plenty on the internet decrying using hidden ssids.


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

bluewasabi
Posts: 5
Joined: Thu May 07, 2015 3:23 pm

Re: WiFi Issues ? Start here !

Fri May 15, 2015 8:39 pm

Thanks for the detailed answer. How do I install the firmware for the built in 8188eu driver?
MrEngman wrote:
bluewasabi wrote:Hi again MrEngman,
Thanks a lot for your patience and knowledge. I needed the 8188eu driver for the REALTEK 0bda:0179 device and the mt7601 driver for the RALINK 148f:7601 device. I was able to operate 148f:7601 with the mt7601 driver, but not 0bda:0179 with the 8188eu driver - any idea what could have gone wrong? Furthermore, I got tempted to update and upgrade Raspbian to 3.18.11 #781 and guess what, the wifi stopped working. I tried a couple workarounds, but gave up and reverted to 3.18.7 #755 - any suggestion on what to do when I update/upgrade?
Thanks much,
BW
As these drivers are not build into the image but installed separately when you update the kernel you must download and install a new version of the driver, unless you install the firmware for the built in 8188eu driver then it will not need updating when you update the kernel.

I have compiled a set of drivers that use the kernel version and build in the filename to identify which version of raspbian they can be used with.

For the mt7601 on the Pi 2B the filename is like
mt7601-kernel-v7-build.tar.gz
and for the 8188eu driver the filename is like
8188eu-kernel-v7-build.tar.gz
with the values kernel and build being replaced by the values from the command uname -a.

To find the driver for a particular version of raspbian run command uname -a and note the kernel version and build and use them to get the right file to download. e.g.on my Pi 2B uname -a shows
Linux Pi-B-2 3.18.13-v7+ #784 SMP PREEMPT Sat May 9 15:57:36 BST 2015 armv7l GNU/Linux
so the mt7601 driver I need for that version will be
mt7601-3.18.13-v7-784.tar.gz
and note that for the new Pi 2B the filename includes "-v7"

For your Pi 2B with 3.18.11-v7 #781 (I am assuming you are using a Pi 2B as you mentioned that in an earlier post) the file name would be
mt7601-3.18.11-v7-781.tar.gz
with "-v7" for the Pi 2B. For the 8188eu wifi change mt7601 in the filename to 8188eu. If you want a driver for a version of the Pi before the Pi 2, e.g. Pi 1 B (all versions), Pi A, Pi B+ Pi A+, remove "-v7" from the filename.

So for your current kernel 3.18.7-v7+ #755 to download and install the mt7601 driver use commands
wget https://dl.dropboxusercontent.com/u/802 ... 755.tar.gz
tar xzf mt7601-3.18.7-v7-755.tar.gz
./install.sh
For the 8188eu driver use the same commands except replace mt7601 in the filename with 8188eu. Hope that makes sense in terms of what filename to use for whatever kernel version you are using.

Now, why the 8188eu driver did not work I don't know. Did you download and install my 8188eu driver or install the firmware for the built in driver? Did you try it on a Pi 2B or an earlier version of the Pi? Perhaps you could try again and if it doesn't work use command dmesg to check the log file when the Pi starts up and see if there are any messages to give us a clue to why it did not work. Check it recognises the USB device 0bda:0179 and see if there are any error messages after that mentioning the 8188eu driver. Did you try command ifconfig and see the wifi wlan0 in the output from that command? That command will show if the wifi module is recognised and if it has a connection. Also you can check the output of command lsmod to see if the 8188eu driver is loaded or it shows r8188eu.

MrEngman

MrEngman
Posts: 3853
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: WiFi Issues ? Start here !

Fri May 15, 2015 10:24 pm

bluewasabi wrote:Thanks for the detailed answer. How do I install the firmware for the built in 8188eu driver?
This should be what you need

Code: Select all

sudo wget https://github.com/lwfinger/rtl8188eu/raw/master/rtl8188eufw.bin -O /lib/firmware/rtlwifi/rtl8188eufw.bin
If you have installed my 8188eu driver you will probably need to delete the file /etc/modprobe.d/8188eu.conf using

Code: Select all

sudo rm /etc/modprobe.d/8188eu.conf
as it blacklists the built in driver so it will not load and you may need to delete my driver module as well with

Code: Select all

sudo rm /lib/modules/$(uname -r)/kernel/drivers/net/wireless/8188eu.ko
sudo depmod $(uname -r)
If you've installed it on your current kernel version.


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

MHB
Posts: 4
Joined: Thu Sep 20, 2012 7:03 pm
Location: South Africa

Re: WiFi Issues ? Start here !

Mon May 18, 2015 6:41 am

MrEngman wrote:
MHB wrote:It seems that I cannot connect to my Wifi network with a hidden SSID. Using a Pi 2 and Raspbian 2015-05-05.

Once I broadcast the SSId, All is well.
How did you configure your wifi. If using /etc/network/interfaces try this format

Code: Select all

auto lo

iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet dhcp
#wpa-scan-ssid 1                    } <-- uncomment to add these two lines for hidden ssid
#wpa-bssid your-AP-MAC-address      } <-- MAC address of access point
wpa-ssid "your-network-name"
wpa-psk "your-network-password"
May even work if you copy the two lines to your current /etc/network/interfaces.

If you are using wpa_supplicant adding the two lines

Code: Select all

scan-ssid 1
bssid your-AP-MAC-address
to the relevant network{...} section in file /etc/wpa_supplicant/wpa_supplicant.conf should get it working, or at least it has worked for me.

However, using a hidden ssid can cause more problems than it solves, if it does solve any. Plenty on the internet decrying using hidden ssids.


MrEngman

Hi MrEngman,

I can connect to my network with the SSID set to broadcast. I'll leave it like this for now.
It is the internet access that does not seem to be working.

Connecting to the router admin page works fine and the Pi receives an IP address.
This leads me to believe it might be the DNS settings that are not correct. I'm trying to search for ways to change it to the router IP address but I cannot find the correct place to do this.

I'll try editing those files to match the format you suggested. (I am using the official Wi-Pi dongle on my Pi2 Raspbian 2015-05-05 to connect to a mobile 3G router if that makes any difference.)

Nataraja
Posts: 1
Joined: Mon May 18, 2015 12:37 pm

Re: WiFi Issues ? Start here !

Mon May 18, 2015 12:50 pm

Hi MrEngman, Hi All..

So, new here as I'm a new raspberry pi 2 owner..
Trying like you all to have my USB wifi dongle working..

It's a Realtek 8188 ETV chipset...
My rasp does see it but is unable to scan..
About the driver files, I'm on 3.18.13-v7+ #781 !!
I can't find the right file to use ?
The only one with #781 is this one:
3.18.11+ #780, #781 - 8188eu-20150406.tar.gz
But it is under the PI files and not under the PI 2 files..

So, how to sort that out ? Is there anything to do?
Many thanks for any time and help..

Cheers from Switzerland...

MrEngman
Posts: 3853
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: WiFi Issues ? Start here !

Mon May 18, 2015 11:40 pm

Nataraja wrote:Hi MrEngman, Hi All..

So, new here as I'm a new raspberry pi 2 owner..
Trying like you all to have my USB wifi dongle working..

It's a Realtek 8188 ETV chipset...
Please supply the output of command lsusb so I can check the driver to use.
My rasp does see it but is unable to scan..
About the driver files, I'm on 3.18.13-v7+ #781 !!
That kernel version does not look right. Please supply the output of command uname -a
I can't find the right file to use ?
The only one with #781 is this one:
3.18.11+ #780, #781 - 8188eu-20150406.tar.gz
I have edited the file list and the file for the Pi 2 B is now there as well.
But it is under the PI files and not under the PI 2 files..

So, how to sort that out ? Is there anything to do?
Many thanks for any time and help..

Cheers from Switzerland...
I believe your wifi module will use the 8188eu driver. The output from the commands I have asked you to provide will confirm that, but you need to check your kernel version, with command uname -a, to download the right driver.


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

istvan54
Posts: 3
Joined: Thu May 14, 2015 9:34 pm

Re: WiFi Issues ? Start here !

Tue May 19, 2015 9:59 am

Mr Engman,

first of all I want to thank you for your support efforts. For the very first time I could make my MT7601 dongle work, thanks to your driver.
Now, my next problem is to make it work as master, in order to create an Access Point based on the Raspberry.
Unfortunately, the pieces of code I suppose to be needed for that should be compiled from the 3.0.0.3 sw repository, which I downloaded from the Mediatek site.
This is what I was not able to perform, as I could not even compile the basic driver code.
Maybe I'm too old to start dealing with Linux core compilation, I started in the 70's with Fortran...
Thus, if you perchance have succeeded in compiling the other modules for MT7601 which are needed to activate hostapd, I would greatly appreciate to be allowed to download them.
I am currently on 3.18.13 #784 core.

Best regards

istvan54

steffo
Posts: 25
Joined: Sat Jan 18, 2014 12:43 pm

Re: WiFi Issues ? Start here !

Tue May 19, 2015 3:55 pm

Hello again -
Still I am struggeling with the Wifi issue with my D-link device..
I am adding the printouts that was requested in my earlier post -I have been traveling so I have not been able to respond until now.. I hope I can get some help - getting desperate..
I also tried a powered USB HUB but the raspberry does not recognize the USB WIFI adapter att all in that HUB (The HUB is recognized though) ?!?
I also tried more "power" to feed the raspberry with same bad luck!
Please help ..

Code: Select all

pi@raspberrypi ~ $ dmesg
.......
[  533.584063] usb 1-1.5: new high-speed USB device number 27 using dwc_otg
[  533.685524] usb 1-1.5: New USB device found, idVendor=2001, idProduct=3308
[  533.685541] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  533.685553] usb 1-1.5: Product: 802.11n WLAN Adapter
[  533.685564] usb 1-1.5: Manufacturer: Realtek
[  533.685575] usb 1-1.5: SerialNumber: 00e04c000001
[  534.475451] rtw_cmd_thread: DriverStopped(0) SurpriseRemoved(1) break at line 482
[  534.626909] usb 1-1.5: USB disconnect, device number 27


pi@raspberrypi ~ $ uname -a
Linux raspberrypi 3.18.11-v7+ #781 SMP PREEMPT Tue Apr 21 18:07:59 BST 2015 armv7l GNU/Linux
pi@raspberrypi ~ $ lsmod
Module                  Size  Used by
snd_bcm2835            18649  0
snd_pcm                73475  1 snd_bcm2835
snd_seq                53078  0
snd_seq_device          5628  1 snd_seq
snd_timer              17784  2 snd_pcm,snd_seq
snd                    51038  5 snd_bcm2835,snd_timer,snd_pcm,snd_seq,snd_seq_device
8192cu                528365  0
w1_gpio                 3465  0
wire                   25680  1 w1_gpio
cn                      4636  1 wire
uio_pdrv_genirq         2958  0
uio                     8119  1 uio_pdrv_genirq
pi@raspberrypi ~ $ cat /etc/network/interfaces
auto lo

iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
pi@raspberrypi ~ $ sudo cat /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
Thanks in advance!

steffo
Posts: 25
Joined: Sat Jan 18, 2014 12:43 pm

Re: WiFi Issues ? Start here !

Tue May 19, 2015 4:05 pm

Again..
also tried..

Code: Select all

pi@raspberrypi ~ $ cat /etc/modprobe.d/8192cu.conf
options 8192cu rtw_power_mgnt=0 rtw_enusbss=0

pi@raspberrypi ~ $ sudo reboot

MrEngman
Posts: 3853
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: WiFi Issues ? Start here !

Tue May 19, 2015 5:26 pm

steffo wrote:Hello again -
Still I am struggeling with the Wifi issue with my D-link device..
I am adding the printouts that was requested in my earlier post -I have been traveling so I have not been able to respond until now.. I hope I can get some help - getting desperate..
I also tried a powered USB HUB but the raspberry does not recognize the USB WIFI adapter att all in that HUB (The HUB is recognized though) ?!?
I also tried more "power" to feed the raspberry with same bad luck!
Please help ..

Code: Select all

pi@raspberrypi ~ $ dmesg
.......
[  533.584063] usb 1-1.5: new high-speed USB device number 27 using dwc_otg
[  533.685524] usb 1-1.5: New USB device found, idVendor=2001, idProduct=3308
[  533.685541] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  533.685553] usb 1-1.5: Product: 802.11n WLAN Adapter
[  533.685564] usb 1-1.5: Manufacturer: Realtek
[  533.685575] usb 1-1.5: SerialNumber: 00e04c000001
[  534.475451] rtw_cmd_thread: DriverStopped(0) SurpriseRemoved(1) break at line 482
[  534.626909] usb 1-1.5: USB disconnect, device number 27


pi@raspberrypi ~ $ uname -a
Linux raspberrypi 3.18.11-v7+ #781 SMP PREEMPT Tue Apr 21 18:07:59 BST 2015 armv7l GNU/Linux
pi@raspberrypi ~ $ lsmod
Module                  Size  Used by
snd_bcm2835            18649  0
snd_pcm                73475  1 snd_bcm2835
snd_seq                53078  0
snd_seq_device          5628  1 snd_seq
snd_timer              17784  2 snd_pcm,snd_seq
snd                    51038  5 snd_bcm2835,snd_timer,snd_pcm,snd_seq,snd_seq_device
8192cu                528365  0
w1_gpio                 3465  0
wire                   25680  1 w1_gpio
cn                      4636  1 wire
uio_pdrv_genirq         2958  0
uio                     8119  1 uio_pdrv_genirq
pi@raspberrypi ~ $ cat /etc/network/interfaces
auto lo

iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
pi@raspberrypi ~ $ sudo cat /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
Thanks in advance!
For some reason your wifi network is not configured. A little odd if you say you have been using it previously. Have you edited any of the files to configure the wifi? File /etc/network/interfaces is set up to use wpa_supplicant but the file /etc/wpa_supplicant/wpa_supplicant.conf is not correctly set up. You need to set up your wifi. You can do this by editing file /etc/wpa_supplicant/wpa_supplicant.conf. e.g

Code: Select all

sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
and adding your wifi network info to the file e.g.

Code: Select all

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
     ssid="Your-Network-Name"
     psk="Your-Network-Password"
}
You can save the file and exit the editor using keys cntl-x, y, enter.

Another way to set up you wifi if you have a monitor and keyboard/mouse connected to your Pi you can configure your wifi using the GUI, start with command startx, and use the Wifi Config button.


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

MrEngman
Posts: 3853
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: WiFi Issues ? Start here !

Tue May 19, 2015 6:14 pm

istvan54 wrote:Mr Engman,

first of all I want to thank you for your support efforts. For the very first time I could make my MT7601 dongle work, thanks to your driver.
Now, my next problem is to make it work as master, in order to create an Access Point based on the Raspberry.
Unfortunately, the pieces of code I suppose to be needed for that should be compiled from the 3.0.0.3 sw repository, which I downloaded from the Mediatek site.
This is what I was not able to perform, as I could not even compile the basic driver code.
Maybe I'm too old to start dealing with Linux core compilation, I started in the 70's with Fortran...
Thus, if you perchance have succeeded in compiling the other modules for MT7601 which are needed to activate hostapd, I would greatly appreciate to be allowed to download them.
I am currently on 3.18.13 #784 core.

Best regards

istvan54
Tried compiling 3.0.0.3 and it fails to compile for 3.18. What files do you need to get it to work as an AP.


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

istvan54
Posts: 3
Joined: Thu May 14, 2015 9:34 pm

Re: WiFi Issues ? Start here !

Tue May 19, 2015 10:28 pm

Dear MrEngman,

as far as I could understand from another blog, the required files would be mtutil7601Usta.ko and mtnet7601Usta.ko, but I suppose that the same driver mt7601Usta.ko should be compiled from that source.
I tried to compile the standard driver from the 3.0.0.4 folder (patched by porjo on GitHub) but I did not succeed, then I tried the 3.0.0.3 by eywalink on GitHub (patched too, I guess) but no way.
Looks like it is beyond my possibility of experienced neophyte.
Anyway, the eywalink link is:
https://github.com/eywalink/mt7601u.git
in case you would like to try.

Thank you again for the support you give and best regards.

istvan54.

steffo
Posts: 25
Joined: Sat Jan 18, 2014 12:43 pm

Re: WiFi Issues ? Start here !

Wed May 20, 2015 3:30 pm

Hello MasterEngman,

I have re-installed the system and configured the same way!
Put in the USB device, run wicd-curses and from there configure.

Then suddenly after a short disconnection it stop working and the strange message in dmesg poped up.
Now wicd-curses cannot find any device which it could before without any configuration.

The system does not detect the device when I connect it in the powered USB HUB (nothing in dmesg)
and nothing in lsusb.

What can this indicate? - connecting to the powered HUB gives nothing in the dmesg printout..?
(Connecting a keyboard works so the HUB is OK and the wifi device works perfect in a laptop..)

Code: Select all

pi@raspberrypi ~ $ lsusb
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 1a40:0201 Terminus Technology Inc. FE 2.1 7-port Hub
pi@raspberrypi ~ $
Connecting it directly to the USB on the Rpi "sees" it but gives as said

Code: Select all

[84335.601563] usb 1-1.5: new high-speed USB device number 37 using dwc_otg
[84335.703175] usb 1-1.5: New USB device found, idVendor=2001, idProduct=3308
[84335.703201] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[84335.703219] usb 1-1.5: Product: 802.11n WLAN Adapter
[84335.703236] usb 1-1.5: Manufacturer: Realtek
[84335.703252] usb 1-1.5: SerialNumber: 00e04c000001
[84336.532841] rtw_cmd_thread: DriverStopped(0) SurpriseRemoved(1) break at line 482
[84336.647423] usb 1-1.5: USB disconnect, device number 37
I thought it was of no use to try to configure the network if the USB device cannot connect to the Rpi.. Is this a faulty thought?
Btw - it's a D-Link DWA-121

Regards
Steffo

MHB
Posts: 4
Joined: Thu Sep 20, 2012 7:03 pm
Location: South Africa

Re: WiFi Issues ? Start here !

Thu May 21, 2015 11:43 am

MrEngMan,

Thank you sir! Changing my files to match your's got it working.

It appears that all my configuration files defaulted to select manual (man) instead of dhcp as it should be, this is with the Raspbian 2015-5-5 image.

I also removed the wifi SSID/password settings from the network/interfaces file and moved it to the wpa_supplicant file. (Why do all these different files even exist?)

hani
Posts: 18
Joined: Mon May 18, 2015 10:11 am

Re: WiFi Issues ? Start here !

Thu May 21, 2015 1:32 pm

Hi MrEngMan,

Thanks for all the valuable information. I am able to sucessfully configure and use both the eth0 and the wlan0 interfaces (individually and both connections concurrently).

My device is a Ralink Technology, Corp. RT5370 Wireless Adapter. I'm using a a good 2A power supply and running standard raspbian. The only issue that remains is the I get quite frequent wireless dropouts. I've read countless 'fixes' via scripts and whatnot but they're so varied and hit and miss that I'm not sure what to do about this issue.

Do you have a definative solution for this seemingly common issue?

Note:
While the wlan0 inteface is up, I can turn off and on my AP and also unplug and replug in my wifi dongle and the Rpi is able to reconnect to my network everytime. When the dropout occurs, the only way to get it back up is to issue a 'sudo ifup wlan0' command (or reboot pi).

This leads me to believe it's probably not network related or wifi dongle related but there is something wierd happening in the drivers or something. If you have any advice, I'd appreciate it.

Skater
Posts: 4
Joined: Sat May 23, 2015 5:27 am

Re: WiFi Issues ? Start here !

Sat May 23, 2015 5:45 am

I just purchased a Pi from "Vilros"" via Amazon. It was a kit that included all the parts I thought I would need including a "Wireless Wifi Adapter Realtek 8188CU Same Chip used by the Edimax EW-7811Un"

I can plug my very short DSL cable into the unit and have internet however where I plan on using this I only have access to wireless internet.

Without saying, I need to be able to use the wireless adapter.

Problem is.. It doesn't seem to see a signal. The little blue lights on it light up but when I unplug the DSL cable there is no internet connection.

Reading this thread and instructions, well I'm not a programmer, nor computer guru so I don't know where (this is my fist Pi) to type it in at? When I try to copy/paste the commands into "LXTerminal" I get "command not found" so I am apparently putting this in the incorrect place and or method? I am in the GUI mode and am accessing the "LXTerminal" via that method.

Any ideas, without assuming I know what I am doing approach to getting the wireless to work?

Thanks

MrEngman
Posts: 3853
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: WiFi Issues ? Start here !

Sat May 23, 2015 9:21 pm

Skater wrote:I just purchased a Pi from "Vilros"" via Amazon. It was a kit that included all the parts I thought I would need including a "Wireless Wifi Adapter Realtek 8188CU Same Chip used by the Edimax EW-7811Un"

I can plug my very short DSL cable into the unit and have internet however where I plan on using this I only have access to wireless internet.

Without saying, I need to be able to use the wireless adapter.

Problem is.. It doesn't seem to see a signal. The little blue lights on it light up but when I unplug the DSL cable there is no internet connection.

Reading this thread and instructions, well I'm not a programmer, nor computer guru so I don't know where (this is my fist Pi) to type it in at? When I try to copy/paste the commands into "LXTerminal" I get "command not found" so I am apparently putting this in the incorrect place and or method? I am in the GUI mode and am accessing the "LXTerminal" via that method.

Any ideas, without assuming I know what I am doing approach to getting the wireless to work?

Thanks
You should be able to set up your wifi without having to edit any files from the GUI.

Depending on the version you are running there is a button labelled Wifi Config or you need to select a button in the top right menu bar. Open the button and set up your wifi. I don't use the GUI so I am not able to be more precise with the details.

Just a note. If you have changed any of the wifi config files with your attempts to edit them manually then the wifi set up GUI buttons may not work.


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

Skater
Posts: 4
Joined: Sat May 23, 2015 5:27 am

Re: WiFi Issues ? Start here !

Sun May 24, 2015 8:27 am

Well it won't recognize the wireless in the GUI so maybe I should try the command prompt?

Trying the GUI does nothing.

Chris_Thomas
Posts: 1
Joined: Thu Dec 05, 2013 10:25 pm

Re: WiFi Issues ? Start here !

Sun May 24, 2015 4:02 pm

Hi all,

I've recently just installed the newest version of Raspbian (released 2015-05-05) on to my Pi and and have been struggling to connect to the internet (surprise, surprise ;) ).

I have a Realtek RTL8188CUS as my USB wireless adaptor which is working fine and can pick up all the surrounding routers (including my own) which makes me think this issue isn't to do with drivers or anything like that.

When I click to connect to my router in the GUI mode I'm asked to put in my password, which I do. Once I hit 'OK' the dialog box just disappears and the WiFi remains unconnected. I don't even get a dialogue box saying that I've entered in my password wrong which makes me think it could possibly be a bug?

After countless attempts on my own router I tried to connect to a public WiFi service in range called 'BTWifi-with-FON' which connected instantly (obviously this is a paying service but I at least got to BT's home screen). So I know my Pi/operating system/drivers/hardware etc have the capability to connect to WiFi and thus I'm completely puzzled as to why it won't connect to my WiFi?!

If anyone out there can shed some light on this I would be eternally grateful!

Below I've attached the '/etc/networks/interfaces' and '/etc/wpa_supplicant/wpa_supplicant.conf' files if that helps uncover what's going on.

/etc/networks/interfaces

Code: Select all

auto lo
iface lo inet loopback

auto eth0
allow-hotplug eth0
iface eth0 inet manual

auto wlan0
allow-hotplug wlan0
iface wlan0 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

auto wlan1
allow-hotplug wlan1
iface wlan1 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
/etc/wpa_supplicant/wpa_supplicant.conf

Code: Select all

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
        ssid="my ssid"
        psk="mypassword"
        key_mgmt=WPA-PSK
}
Thanks in advance.

Chris

hani
Posts: 18
Joined: Mon May 18, 2015 10:11 am

Re: WiFi Issues ? Start here !

Sun May 24, 2015 4:53 pm

Chris_Thomas wrote:Hi all,

I've recently just installed the newest version of Raspbian (released 2015-05-05) on to my Pi and and have been struggling to connect to the internet (surprise, surprise ;) ).

I have a Realtek RTL8188CUS as my USB wireless adaptor which is working fine and can pick up all the surrounding routers (including my own) which makes me think this issue isn't to do with drivers or anything like that.

When I click to connect to my router in the GUI mode I'm asked to put in my password, which I do. Once I hit 'OK' the dialog box just disappears and the WiFi remains unconnected. I don't even get a dialogue box saying that I've entered in my password wrong which makes me think it could possibly be a bug?

After countless attempts on my own router I tried to connect to a public WiFi service in range called 'BTWifi-with-FON' which connected instantly (obviously this is a paying service but I at least got to BT's home screen). So I know my Pi/operating system/drivers/hardware etc have the capability to connect to WiFi and thus I'm completely puzzled as to why it won't connect to my WiFi?!

If anyone out there can shed some light on this I would be eternally grateful!

Below I've attached the '/etc/networks/interfaces' and '/etc/wpa_supplicant/wpa_supplicant.conf' files if that helps uncover what's going on.

/etc/networks/interfaces

Code: Select all

auto lo
iface lo inet loopback

auto eth0
allow-hotplug eth0
iface eth0 inet manual

auto wlan0
allow-hotplug wlan0
iface wlan0 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

auto wlan1
allow-hotplug wlan1
iface wlan1 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
/etc/wpa_supplicant/wpa_supplicant.conf

Code: Select all

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
        ssid="my ssid"
        psk="mypassword"
        key_mgmt=WPA-PSK
}
Thanks in advance.

Chris
See:
https://www.raspberrypi.org/another-ras ... ce-update/

There was a change to networking with the latest update. I had a related issue to so with connecting via the GUI but installing the network-mods helped resolve that issue.

It may or may not help with your issue but I thought I'd post incase it could.

MrEngman
Posts: 3853
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: WiFi Issues ? Start here !

Sun May 24, 2015 5:01 pm

hani wrote: See:
https://www.raspberrypi.org/another-ras ... ce-update/

There was a change to networking with the latest update. I had a related issue to so with connecting via the GUI but installing the network-mods helped resolve that issue.

It may or may not help with your issue but I thought I'd post incase it could.
Surely this is already installed in 2015-05-05 raspbian.


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

hani
Posts: 18
Joined: Mon May 18, 2015 10:11 am

Re: WiFi Issues ? Start here !

Sun May 24, 2015 5:24 pm

MrEngman wrote:
hani wrote: See:
https://www.raspberrypi.org/another-ras ... ce-update/

There was a change to networking with the latest update. I had a related issue to so with connecting via the GUI but installing the network-mods helped resolve that issue.

It may or may not help with your issue but I thought I'd post incase it could.
Surely this is already installed in 2015-05-05 raspbian.


MrEngman
Fresh install from image/NOOBs yes but not if you if you upgraded via apt-get. Part of it was left out incase people wanted to use old system.

EDIT: Ignore me and previous post. I misread and assumed (for whatever stupid reason) that you upgraded and not freshly installed.

Return to “Troubleshooting”