Page 1 of 1
Wifi setup; no connection
Posted: Wed Dec 18, 2013 6:19 pm
by Senka7
Hi, im trying to solve this problem for a long time. I can't get WIFI connection on my Raspberry.
I connected wifi directly to raspberry, it didnt work - so i bought USB HUB and tried with it - still not connecting.
Wifi dongle works perfectly on PC.
I have updated all drivers, tried all ways to config wlan0 and still no connection.
some information:
pi@raspberrypi ~ $ lsusb
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 007: ID 0bda:8179 Realtek Semiconductor Corp.
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 005: ID 05e3:0606 Genesys Logic, Inc. USB 2.0 Hub / D-Link DUB-H4 USB 2.0 Hub
Bus 001 Device 006: ID 05e3:0606 Genesys Logic, Inc. USB 2.0 Hub / D-Link DUB-H4 USB 2.0 Hub
Not sure why 2 HUBS, becouse got 1.
ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 0c:82:68:xx:xx:xx
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Got any suggestions?
Re: Wifi setup; no connection
Posted: Wed Dec 18, 2013 7:29 pm
by MrEngman
Senka7 wrote:Hi, im trying to solve this problem for a long time. I can't get WIFI connection on my Raspberry.
I connected wifi directly to raspberry, it didnt work - so i bought USB HUB and tried with it - still not connecting.
Wifi dongle works perfectly on PC.
I have updated all drivers, tried all ways to config wlan0 and still no connection.
some information:
pi@raspberrypi ~ $ lsusb
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 007: ID 0bda:8179 Realtek Semiconductor Corp.
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 005: ID 05e3:0606 Genesys Logic, Inc. USB 2.0 Hub / D-Link DUB-H4 USB 2.0 Hub
Bus 001 Device 006: ID 05e3:0606 Genesys Logic, Inc. USB 2.0 Hub / D-Link DUB-H4 USB 2.0 Hub
Not sure why 2 HUBS, becouse got 1.
ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 0c:82:68:xx:xx:xx
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Got any suggestions?
Did you install the driver for the wifi? The wifi adaptor (ID 0bda:8179) uses the rtl81888eu driver and this needs installing to get the wifi working as it is currently not included in the standard kernel images. Take a look
here for info on which driver version you need and how to install it and the required firmware.
Re your hub. Maybe it is a 7 port hub made from two 4 port hubs connected together - just a thought.
EDIT: Just realised you did say you installed the driver. Is it the right version? What does your
/etc/network/interfaces file contain? If using wpa_supplicant what does
/etc/wpa_supplicant/wpa_supplicant.conf contain?
MrEngman
Re: Wifi setup; no connection
Posted: Thu Dec 19, 2013 1:43 am
by Lob0426
You have three hubs.
Your model B has a USB hub, the LAN9512chip provides 2 USB and the Ethernet;
Device 002 Linux Foundation 2.0 root hub
Then the other two are because you probably have a 7 port hub;
Device 005 Genesis Logic,
Device 006 Genysis Logic,
4 port or less report only a single hub!
You may need a different driver.
Re: Wifi setup; no connection
Posted: Thu Dec 19, 2013 1:51 am
by Phill Rymer
which operating system
Re: Wifi setup; no connection
Posted: Thu Dec 19, 2013 4:06 pm
by Senka7
MrEngman wrote:Senka7 wrote:Hi, im trying to solve this problem for a long time. I can't get WIFI connection on my Raspberry.
I connected wifi directly to raspberry, it didnt work - so i bought USB HUB and tried with it - still not connecting.
Wifi dongle works perfectly on PC.
I have updated all drivers, tried all ways to config wlan0 and still no connection.
some information:
pi@raspberrypi ~ $ lsusb
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 007: ID 0bda:8179 Realtek Semiconductor Corp.
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 005: ID 05e3:0606 Genesys Logic, Inc. USB 2.0 Hub / D-Link DUB-H4 USB 2.0 Hub
Bus 001 Device 006: ID 05e3:0606 Genesys Logic, Inc. USB 2.0 Hub / D-Link DUB-H4 USB 2.0 Hub
Not sure why 2 HUBS, becouse got 1.
ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 0c:82:68:xx:xx:xx
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Got any suggestions?
Did you install the driver for the wifi? The wifi adaptor (ID 0bda:8179) uses the rtl81888eu driver and this needs installing to get the wifi working as it is currently not included in the standard kernel images. Take a look
here for info on which driver version you need and how to install it and the required firmware.
Re your hub. Maybe it is a 7 port hub made from two 4 port hubs connected together - just a thought.
EDIT: Just realised you did say you installed the driver. Is it the right version? What does your
/etc/network/interfaces file contain? If using wpa_supplicant what does
/etc/wpa_supplicant/wpa_supplicant.conf contain?
MrEngman
Yes its right version, first: I Can scan WIFI networks by using
iwlist wlan0 scan
sudo cat /etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
sudo cat /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="Space"
scan_ssid=1
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk="mypassword"
priority=5
}
Checked GUI and even history show me this:
association request to the driver failed
Re: Wifi setup; no connection
Posted: Thu Dec 19, 2013 4:07 pm
by Senka7
Phill Rymer wrote:which operating system
Raspbian wheezy newest version
Re: Wifi setup; no connection
Posted: Thu Dec 19, 2013 4:08 pm
by Senka7
Lob0426 wrote:You have three hubs.
Your model B has a USB hub, the LAN9512chip provides 2 USB and the Ethernet;
Device 002 Linux Foundation 2.0 root hub
Then the other two are because you probably have a 7 port hub;
Device 005 Genesis Logic,
Device 006 Genysis Logic,
4 port or less report only a single hub!
You may need a different driver.
Thanks for hub information!
Re: Wifi setup; no connection
Posted: Thu Dec 19, 2013 4:44 pm
by MrEngman
I usually only use
/etc/network/interfaces to configure the wifi. Often it is much easier and simpler.
I would usually set
/etc/network/interfaces to something like
Code: Select all
auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-ssid "network name"
wpa-psk "network password"
When using
wpa_supplicant I have
/etc/network/interfaces set to
Code: Select all
auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
without the line
iface default inet dhcp if I set wpa_supplicant.conf by hand.
When using the Wifi Config gui to set up wpa-supplicant.conf I set it like
Code: Select all
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
If you have configured wpa_supplicant.conf by hand then it is possible something is set incorrectly for your network.
To avoid issues it is possible to set wpa_supplicant.conf to a very simple format which avoids some problems by using the following format.
Code: Select all
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="network name"
psk="network password"
}
Security settings will be automatically determined by wpa_supplicant when connecting.
MrEngman
Re: Wifi setup; no connection
Posted: Sat Dec 21, 2013 3:05 pm
by Senka7
MrEngman wrote:I usually only use
/etc/network/interfaces to configure the wifi. Often it is much easier and simpler.
I would usually set
/etc/network/interfaces to something like
Code: Select all
auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-ssid "network name"
wpa-psk "network password"
When using
wpa_supplicant I have
/etc/network/interfaces set to
Code: Select all
auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
without the line
iface default inet dhcp if I set wpa_supplicant.conf by hand.
When using the Wifi Config gui to set up wpa-supplicant.conf I set it like
Code: Select all
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
If you have configured wpa_supplicant.conf by hand then it is possible something is set incorrectly for your network.
To avoid issues it is possible to set wpa_supplicant.conf to a very simple format which avoids some problems by using the following format.
Code: Select all
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="network name"
psk="network password"
}
Security settings will be automatically determined by wpa_supplicant when connecting.
MrEngman
Tried everything, still no connection to Wifi. Using Xperia power supply 5V 850mA
Re: Wifi setup; no connection
Posted: Sat Dec 21, 2013 4:20 pm
by MrEngman
Do you see your network using the command
sudo iwlist wlan0 scan? It works slightly differently to
iwlist scan wlan0 due to the extra
sudo.
If you do and cannot get a connection there must be something pretty fundamental stopping it connecting. The PSU may be a little low on current but I would expect the wifi to work if connected via a hub.
Does your wifi access point transmit it's name? If not set it to transmit it's name or set up the Pi's wifi configuration to use wpa_supplicant.conf and add the line
scan_ssid=1 to the network set up. Best to set the access point to transmit it's ssid as not transmitting it doesn't really do much for security.
Does your access point use MAC address filtering? Only allowing devices with MAC addresses defined in the access point to connect. I got caught out by this one once. I bought a new wifi adaptor and tried to use it on my Pi and it wouldn't connect. I thought it wasn't working and took it back and exchanged it for another one. Tried that and it didn't work as well then it suddenly occurred to me that I had MAC filtering turned on in my access point. Enabled the wifi MAC address and it worked straight away. I felt such an idiot. Doh!
Also don't forget the network-name is usually case sensitive just like the network password. A few people have found their problem is the network-name not being set correctly. And is the password correct as well?
Finally I've assumed your network uses WPA/WPA2 security. If it does not the network-name and network-password settings will need changing.
MrEngman
Re: Wifi setup; no connection
Posted: Sat Dec 28, 2013 1:36 am
by tomislavazzo
I had the same problem with the edimax. Tried everything, but the only thing that resolved it was shutting the router off, which then caused a message to pop up on my laptop - "ip address conflict". The laptop and the raspberry pi are both connected and working now.
Re: Wifi setup; no connection
Posted: Sat Dec 28, 2013 12:11 pm
by DougieLawson
You need to tweak your router settings so that your DHCP range doesn't use the full 192.168.XXX.2 to 192.168.XXX.254 range.
Reserve the bottom 20 addresses for static use assign .21 to .100 for DHCP. Leave .101 to .254 free.
Then you won't get any address conflicts.
Re: Wifi setup; no connection
Posted: Thu Jan 02, 2014 1:06 am
by Senka7
DougieLawson wrote:You need to tweak your router settings so that your DHCP range doesn't use the full 192.168.XXX.2 to 192.168.XXX.254 range.
Reserve the bottom 20 addresses for static use assign .21 to .100 for DHCP. Leave .101 to .254 free.
Then you won't get any address conflicts.
Raspberry has static IP DHCP aadress