Pdog
Posts: 9
Joined: Sun Jan 18, 2015 4:22 pm

USB WIFI dongle was working and now isn't (EDIMAX EW-7811UT

Sun Jan 18, 2015 5:21 pm

Hi Peeps,

Looking for some advice. I purchased A Pi B+ Starter Kit which came with a NOOBS SD card. I successfully installed OpenELEC. My USB wifi dongle (Edimax EW-7811UTC) worked out of the box without any configuration.

Unfortunately it has now stopped working and in the PI only. The dongle definitely works in my PC. I have tried all USB ports and it simple not detected.

I have tried Rasplex and Raspbian, and they also cannot see the USB dongle.

I know the USB ports work because the keyboard and mice work. Can anyone offer me any advice on what I can do?

Unfortunately I have overwritten the original NOOBS SD card and can't find the NOOBS SD Card image with the openelec on it. If anyone can point me to this I would be grateful.

I have been pulling my hair out all afternoon with this.

Cheers

Pdog
Posts: 9
Joined: Sun Jan 18, 2015 4:22 pm

Re: USB WIFI dongle was working and now isn't (EDIMAX EW-78

Sun Jan 18, 2015 6:09 pm

I have seen some
Posts regarding using the terminal to perhaps force the wifi. But that is not possible if I am
Booting straight to rasplex or openelec?

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: USB WIFI dongle was working and now isn't (EDIMAX EW-78

Sun Jan 18, 2015 7:17 pm

Connect your B+ to your router with a cat5 cable.
Login and run sudo apt-get update && sudo apt-get dist-upgrade
Reboot then try again with the WiFi dongle.

If it still doesn't work post the output from the following commands
ifconfig -a
lsusb # that's ell, ess, you, ess, bee.
cat /etc/network/interfaces
sudo cat /etc/wpa_supplicant/wpa_supplicant.conf # you may want to redact the passwords in there.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Pdog
Posts: 9
Joined: Sun Jan 18, 2015 4:22 pm

Re: USB WIFI dongle was working and now isn't (EDIMAX EW-78

Sun Jan 18, 2015 7:34 pm

Thanks for the reply. I'll
Give this ago.

Stupid question. I can plug it in. :)

So I need to SSH into the device and run the commands with the USB wifi dongle plugged in.

I'll post back the results.

Cheers

ThreePointOneDour
Posts: 23
Joined: Sat Jan 17, 2015 8:43 pm

Re: USB WIFI dongle was working and now isn't (EDIMAX EW-78

Sun Jan 18, 2015 8:22 pm

I'm having very similar problems with my Netgear dongle. My dongle is always causing me problems.

User avatar
Onira
Posts: 233
Joined: Tue Oct 02, 2012 6:24 pm
Location: Poland

Re: USB WIFI dongle was working and now isn't (EDIMAX EW-78

Sun Jan 18, 2015 8:39 pm

guys, show your /etc/network/interfaces file
Cogito ergo sum

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: USB WIFI dongle was working and now isn't (EDIMAX EW-78

Sun Jan 18, 2015 9:58 pm

Onira wrote:guys, show your /etc/network/interfaces file
More important is to show the output from an lsusb command (that's ell, ess, you, ess, bee).
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

ThreePointOneDour
Posts: 23
Joined: Sat Jan 17, 2015 8:43 pm

Re: USB WIFI dongle was working and now isn't (EDIMAX EW-78

Sun Jan 18, 2015 10:49 pm

I edited my file according to this

http://www.raspberrypi.org/forums/viewt ... 35#p651635

auto lo

iface lo inet loopback

allow-hotplug eth0
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet static
address xxx.xxx.x.xxx
netmask xxx.xxx.xxx.x
gateway xxx.xxx.x.x
wpa-ssid...
wpa-psk ...

iface default inet dhcp

I had a longer connection, but has dropped out again.

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: USB WIFI dongle was working and now isn't (EDIMAX EW-78

Sun Jan 18, 2015 11:21 pm

And the output from the lsusb command shows us what?
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

ThreePointOneDour
Posts: 23
Joined: Sat Jan 17, 2015 8:43 pm

Re: USB WIFI dongle was working and now isn't (EDIMAX EW-78

Sun Jan 18, 2015 11:24 pm

DougieLawson wrote:And the output from the lsusb command shows us what?
Shows us that everything is there and recognised.

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: USB WIFI dongle was working and now isn't (EDIMAX EW-78

Sun Jan 18, 2015 11:27 pm

ThreePointOneDour wrote:
DougieLawson wrote:And the output from the lsusb command shows us what?
Shows us that everything is there and recognised.
But it doesn't show that to me! Since I'm not in the room with you.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

ThreePointOneDour
Posts: 23
Joined: Sat Jan 17, 2015 8:43 pm

Re: USB WIFI dongle was working and now isn't (EDIMAX EW-78

Sun Jan 18, 2015 11:40 pm

DougieLawson wrote:
ThreePointOneDour wrote:
DougieLawson wrote:And the output from the lsusb command shows us what?
Shows us that everything is there and recognised.
But it doesn't show that to me! Since I'm not in the room with you.
I did guess that's why you asked.

ThreePointOneDour
Posts: 23
Joined: Sat Jan 17, 2015 8:43 pm

Re: USB WIFI dongle was working and now isn't (EDIMAX EW-78

Sun Jan 18, 2015 11:41 pm

I'm not sure if there's some kind of ip address conflict going on. If I look at my LAN and look at attached devices, it comes and goes, MAC address changes (device name then goes to unkown), then IP address changes, something wild is going on.

User avatar
Onira
Posts: 233
Joined: Tue Oct 02, 2012 6:24 pm
Location: Poland

Re: USB WIFI dongle was working and now isn't (EDIMAX EW-78

Mon Jan 19, 2015 5:32 am

Code: Select all

$ 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 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 1d57:ad02 Xenta
Bus 001 Device 005: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 006: ID 08bb:27c7 Texas Instruments Japan
Bus 001 Device 009: ID 152d:2329 JMicron Technology Corp. / JMicron USA Technology Corp. JM20329 SATA Bridge
Show us your output
There is nothing to be afraid of showing it ;)
Cogito ergo sum

Pdog
Posts: 9
Joined: Sun Jan 18, 2015 4:22 pm

Re: USB WIFI dongle was working and now isn't (EDIMAX EW-78

Mon Jan 19, 2015 8:53 am

wow my post has been slightly hijacked here!

I tried this:

sudo apt-get update && sudo apt-get dist-upgrade

It didn't recognise the command.

I then typed: ifconfig -a
it should the wired ethernet and the loopback. (i'll post the output tomorrow when I back at home) along with the isusb.

Can someone elpalin how I show the: "/etc/network/interfaces" file??

Thanks

User avatar
Onira
Posts: 233
Joined: Tue Oct 02, 2012 6:24 pm
Location: Poland

Re: USB WIFI dongle was working and now isn't (EDIMAX EW-78

Mon Jan 19, 2015 8:58 am

Code: Select all

$ cat /etc/network/interfaces
and as we asked, show us the output of

Code: Select all

$ lsusb
Cogito ergo sum

ThreePointOneDour
Posts: 23
Joined: Sat Jan 17, 2015 8:43 pm

Re: USB WIFI dongle was working and now isn't (EDIMAX EW-78

Mon Jan 19, 2015 8:28 pm

Pdog wrote:wow my post has been slightly hijacked here!
Sorry! :)

Though, if we double up, maybe we can get more info to sort this out? If you'd rather me not, just say and I'll go :P

ThreePointOneDour
Posts: 23
Joined: Sat Jan 17, 2015 8:43 pm

Re: USB WIFI dongle was working and now isn't (EDIMAX EW-78

Mon Jan 19, 2015 8:38 pm

Onira wrote:

Code: Select all

$ 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 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 1d57:ad02 Xenta
Bus 001 Device 005: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 006: ID 08bb:27c7 Texas Instruments Japan
Bus 001 Device 009: ID 152d:2329 JMicron Technology Corp. / JMicron USA Technology Corp. JM20329 SATA Bridge
Show us your output
There is nothing to be afraid of showing it ;)
Ok, I can't keep it secret for much longer.....

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 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 046d:c078 Logitech, Inc.
Bus 001 Device 005: ID 03f0:0024 Hewlett-Packard KU-0316 Keyboard
Bus 001 Device 006: ID 0846:9041 Netgear, Inc. WNA1000M 802.11gnb [Realtek RTL8188CUS]

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: USB WIFI dongle was working and now isn't (EDIMAX EW-78

Mon Jan 19, 2015 10:20 pm

Start with this in /etc/network/interfaces

Code: Select all

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
wireless-power off
iface default inet dhcp
and this in /etc/wpa_supplicant/wpa_supplicant.conf

Code: Select all

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

network={
        ssid="yourWiFiSSIDgoeshere"
        psk="yourWiFipasswordgoeshere"
}
When that is working check your network settings & switch to a static address.

To check settings use route -n which should get something like this

Code: Select all

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.x.ggg   0.0.0.0         UG    0      0        0 wlan0
192.168.x.0     0.0.0.0         255.255.255.0   U     0      0        0 wlan0
You can then use the gateway value and Genmask (aka netmask) to set-up your static address.

Code: Select all

iface default inet static
address 192.168.x.ppp
gateway 192.168.x.ggg
netmask 255.255.255.0
The dongle you've got should work out of the box, no special drivers needed, the drivers are built-in.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Pdog
Posts: 9
Joined: Sun Jan 18, 2015 4:22 pm

Re: USB WIFI dongle was working and now isn't (EDIMAX EW-78

Tue Jan 20, 2015 7:36 pm

ThreePointOneDour wrote:
Pdog wrote:wow my post has been slightly hijacked here!
Sorry! :)

Though, if we double up, maybe we can get more info to sort this out? If you'd rather me not, just say and I'll go :P
No its fine mate. I am just trying to post my information now, in the hope someone can help. I have a new SD card now and fresh install of OPENELEC from NOOBS 1.3.9

Pdog
Posts: 9
Joined: Sun Jan 18, 2015 4:22 pm

Re: USB WIFI dongle was working and now isn't (EDIMAX EW-78

Tue Jan 20, 2015 7:42 pm

I ran the commands as suggested but it would not locate the path /files I also got Permission dened.

Now running Raspbian, I have started off by running the following command:

sudo apt-get update && sudo apt-get dist-upgrade

Its pulling down a lot of packages and installing them.

Rebboted with the wifi dongle still nothing, here is the output as requested:

lsusb:
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 7392:a812 Edimax Technology Co., Ltd
Bus 001 Device 005: ID 045e:0040 Microsoft Corp. Wheel Mouse Optical

So it can see the Edimax device

wpa_gui in the Rasbian OS cannot see any adapter on the dropdown list.

cat /etc/network/interfaces

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

sudo cat /etc/wpa_supplicant/wpa_supplicant.cong

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

EDIT:

I edited the cat /etc/network/interfaces

auto lo

iface lo inet loopback
iface eth0 inet dhcp

auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp

I was watching the console when it rebooted and it stated it didn't know what wlan0 was

It does correctly identify the Edimax device though at boot.

Tried this:

sudo ifconfig wlan0 up

wlan0: ERROR while getting interface flags: No such device


Can anyone help with the above information provided?

Thanks

P
Last edited by Pdog on Tue Jan 20, 2015 9:41 pm, edited 1 time in total.

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: USB WIFI dongle was working and now isn't (EDIMAX EW-78

Tue Jan 20, 2015 9:39 pm

Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Pdog
Posts: 9
Joined: Sun Jan 18, 2015 4:22 pm

Re: USB WIFI dongle was working and now isn't (EDIMAX EW-78

Tue Jan 20, 2015 9:45 pm

Thanks Dougie,

The device was working in the beginning!

Can you see any errors in the outputs above?

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: USB WIFI dongle was working and now isn't (EDIMAX EW-78

Tue Jan 20, 2015 10:27 pm

I'd toss it in the drawer and buy a new one that has a well supported chipset.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Pdog
Posts: 9
Joined: Sun Jan 18, 2015 4:22 pm

Re: USB WIFI dongle was working and now isn't (EDIMAX EW-78

Wed Jan 21, 2015 5:55 pm

Shame it cost £15 and was purchased for the pi.

Could an update to the pi have caused it to stop working, even if I have reimaged the SD card multiple times?

Return to “Troubleshooting”