User avatar
redhenk
Posts: 41
Joined: Wed Feb 20, 2013 9:35 am
Location: Naaldwijk, The Netherlands

Re: D.Link DWA 131 WLAN/USB Adapter not working

Mon Mar 16, 2015 10:52 am

Mr. Lawson,

Verry many thanks.
Now its working perfectly and I'm going to study in Linux.

Greetings,

Henk
Pi B, Pi 2B, Pi zero, Pi 3B

Ashik
Posts: 1
Joined: Mon Mar 16, 2015 6:49 pm

Re: D.Link DWA 131 WLAN/USB Adapter not working

Mon Mar 16, 2015 6:54 pm

Kindly provide me the link to download the driver for D-link DWA 131 h/w version E1. The Dropbox link provided in the forum is not working.

User avatar
pimail
Posts: 8
Joined: Thu Mar 19, 2015 7:51 am
Location: Berlin
Contact: Website

Re: D.Link DWA 131 WLAN/USB Adapter not working

Thu Mar 19, 2015 9:26 am

jan segers has updated hostapd on Febr.3th, 2015

i wrote a little "HOWTO". It works fine.
https://docs.google.com/document/d/16hJ ... MoJzcQ/pub
:idea:
http://pimail.blogspot.de

shamasis
Posts: 3
Joined: Sat Nov 09, 2013 8:55 am

Re: D.Link DWA 131 WLAN/USB Adapter not working

Sun Mar 22, 2015 7:30 pm

MrEngman wrote: Always useful to know the output of command uname -a to make sure of the actual kernel version. Change the download and install instructions to

Code: Select all

wget https://dl.dropboxusercontent.com/u/80256631/8192eu-3.18.7-v7.tar.gz
tar -xzf 8192eu-3.18.7-v7.tar.gz
sudo install -p -m 644 8192eu.ko /lib/modules/3.18.7-v7+/kernel/drivers/net/wireless
sudo depmod 3.18.7-v7+
MrEngman
Hello @MrEngman

Thanks a lot for helping us out to get things working. I am sure that I too am facing the same problem as above. However, I am unable to find any source of driver for D'Link DWA-131 revE1G. The dropbox link from you seems to have expired. Can you help? :-)

Just in case these information help:

Code: Select all

pi@raspberrypi ~ $ uname -a
Linux raspberrypi 3.18.7+ #755 PREEMPT Thu Feb 12 17:14:31 GMT 2015 armv6l GNU/Linux

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 2001:3319 D-Link Corp. 

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

Re: D.Link DWA 131 WLAN/USB Adapter not working

Sun Mar 22, 2015 11:19 pm

shamasis wrote:
MrEngman wrote: Always useful to know the output of command uname -a to make sure of the actual kernel version. Change the download and install instructions to

Code: Select all

wget https://dl.dropboxusercontent.com/u/80256631/8192eu-3.18.7-v7.tar.gz
tar -xzf 8192eu-3.18.7-v7.tar.gz
sudo install -p -m 644 8192eu.ko /lib/modules/3.18.7-v7+/kernel/drivers/net/wireless
sudo depmod 3.18.7-v7+
MrEngman
Hello @MrEngman

Thanks a lot for helping us out to get things working. I am sure that I too am facing the same problem as above. However, I am unable to find any source of driver for D'Link DWA-131 revE1G. The dropbox link from you seems to have expired. Can you help? :-)

Just in case these information help:

Code: Select all

pi@raspberrypi ~ $ uname -a
Linux raspberrypi 3.18.7+ #755 PREEMPT Thu Feb 12 17:14:31 GMT 2015 armv6l GNU/Linux

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 2001:3319 D-Link Corp. 
Sorry, I changed the filename format. The download filename now includes the build number as I found I had to recompile the driver as the original for earlier builds of 3.18.7+ and 3.18.7-v7+ did not work with later builds of 3.18.7+ and 3.18.7-v7+.

However, looking at the output of your uname -a it shows 3.18.7+, not 3.18.7-v7+, so the 3.18.7-v7+ driver would not have worked anyway. If uname -a includes -v7 in the kernel version this would indicate the Pi is the new Pi B 2 version.

Using the following commands should work

Code: Select all

wget https://dl.dropboxusercontent.com/u/80256631/8192eu-3.18.7-755.tar.gz
tar -xzf 8192eu-3.18.7-755.tar.gz
sudo install -p -m 644 8192eu.ko /lib/modules/3.18.7+/kernel/drivers/net/wireless
sudo depmod 3.18.7+
MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

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

shamasis
Posts: 3
Joined: Sat Nov 09, 2013 8:55 am

Re: D.Link DWA 131 WLAN/USB Adapter not working

Mon Mar 23, 2015 8:00 am

Thanks a bunch. I am going to try this out tonight. But, wanted to inform that the uname string is same for Pi-1 B as well as Pi-2 B since I am running Pi-1 B.

Update: The compiled drivers work. Thank you.

puddle
Posts: 4
Joined: Mon Mar 30, 2015 1:28 am

Re: D.Link DWA 131 WLAN/USB Adapter not working

Mon Mar 30, 2015 1:57 am

hello
i also have the e1 version i'm trying to use with my pi2 b+. I rolled back from 3.18.10-v7+ to use mr engmans driver but the links are expired. anyone willing to provide a working driver with our device id or possibly a little guide on how to modify/compile it ourselves so to be able to update freely until it is included?
There is a linux driver for this model on the Australian website http://support.dlink.com.au/Download/do ... pe=Drivers
I've tried to install it but it fails on the "make"command. Any advice would be appreciated.
tia

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

Re: D.Link DWA 131 WLAN/USB Adapter not working

Mon Mar 30, 2015 12:39 pm

puddle wrote:hello
i also have the e1 version i'm trying to use with my pi2 b+. I rolled back from 3.18.10-v7+ to use mr engmans driver but the links are expired. anyone willing to provide a working driver with our device id or possibly a little guide on how to modify/compile it ourselves so to be able to update freely until it is included?
There is a linux driver for this model on the Australian website http://support.dlink.com.au/Download/do ... pe=Drivers
I've tried to install it but it fails on the "make"command. Any advice would be appreciated.
tia
I have drivers available for all 3.18 versions of raspbian. The name of the driver is defined using the kernel version and build number. Use command uname -a to check your kernel version and build and the file to download will be 8192eu-kernel-build.tar.gz.

As an example my Pi B 2 uname -a shows
Linux Pi-B-2 3.18.10-v7+ #774 SMP PREEMPT Wed Mar 25 14:10:30 GMT 2015 armv7l GNU/Linux
so the driver to download for my Pi B 2 would be 8192eu-3.18.10-v7-774.tar.gz.

Another example my Pi A uname -a shows
Linux pi-A 3.18.9+ #768 PREEMPT Sun Mar 15 18:59:03 GMT 2015 armv6l GNU/Linux
so the driver to download for my Pi A would be 8192eu-3.18.9-768.tar.gz.

To download and install use the commands
wget https://dl.dropboxusercontent.com/u/80256631/8192eu-kernel-build.tar.gz
tar xzf 8192eu-kernel-build.tar.gz
./install.sh
substituting the kernel and build values from your uname -a command in the filename for the wget and tar commands.

Hopefully this is not too confusing and you can download the driver and get your wifi up and running.


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

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

puddle
Posts: 4
Joined: Mon Mar 30, 2015 1:28 am

Re: D.Link DWA 131 WLAN/USB Adapter not working

Mon Mar 30, 2015 1:58 pm

Thanks so much Mr Engman!
I will update back to 3.18.10-v7+ and use the corresponding link. Wonderful. I'll try in the morning.

:D

puddle
Posts: 4
Joined: Mon Mar 30, 2015 1:28 am

Re: D.Link DWA 131 WLAN/USB Adapter not working

Mon Mar 30, 2015 3:08 pm

hmm... i'm still getting 404

Code: Select all

pi@raspberrypi ~ $ wget https://dl.dropboxusercontent.com/u/80256631/8192eu-3.18.10-v7-744.tar.gz
--2015-03-30 15:03:50--  https://dl.dropboxusercontent.com/u/80256631/8192eu-3.18.10-v7-744.tar.gz
Resolving dl.dropboxusercontent.com (dl.dropboxusercontent.com)... 204.236.226.117, 23.21.60.91, 23.23.237.190, ...
Connecting to dl.dropboxusercontent.com (dl.dropboxusercontent.com)|204.236.226.117|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2015-03-30 15:03:55 ERROR 404: Not Found.

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

Re: D.Link DWA 131 WLAN/USB Adapter not working

Mon Mar 30, 2015 3:19 pm

puddle wrote:hmm... i'm still getting 404

Code: Select all

pi@raspberrypi ~ $ wget https://dl.dropboxusercontent.com/u/80256631/8192eu-3.18.10-v7-744.tar.gz
--2015-03-30 15:03:50--  https://dl.dropboxusercontent.com/u/80256631/8192eu-3.18.10-v7-744.tar.gz
Resolving dl.dropboxusercontent.com (dl.dropboxusercontent.com)... 204.236.226.117, 23.21.60.91, 23.23.237.190, ...
Connecting to dl.dropboxusercontent.com (dl.dropboxusercontent.com)|204.236.226.117|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2015-03-30 15:03:55 ERROR 404: Not Found.
Are you sure the filename is correct? I think it should be 8192eu-3.18.10-v7-774.tar.gz.


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

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

puddle
Posts: 4
Joined: Mon Mar 30, 2015 1:28 am

Re: D.Link DWA 131 WLAN/USB Adapter not working

Mon Mar 30, 2015 4:28 pm

thanks for catching that... :oops:
it's late here... should be in bed but had to try this.

so far so good. wifi up and running!
thanks again Mr Engman!! greatly appreciated.

puddle

mountain-lion
Posts: 1
Joined: Fri Mar 27, 2015 6:40 am

Re: D.Link DWA 131 WLAN/USB Adapter not working

Mon Mar 30, 2015 7:34 pm

I used the compiled driver from MrEngman and ran the install.sh inside. The driver successfully installed and the module got added. However, after reboot I am getting Wlan started at wlan0 but in Wicd GUI there is no Wireless Network. From dmesg logs it seems the driver and/or device crashed/stopped/hibernated for some kind of power management. Here is my dmesg |grep RTL871X

Code: Select all

pi@raspberrypi:~$ dmesg |grep RTL871X
[    4.300017] RTL871X: rtl8192eu driver version=v4.2.2_7585.20130524
[    4.310452] RTL871X: build time: Mar 26 2015 00:00:37
[    4.317867] RTL871X: 
[    4.328075] RTL871X: bLength=7
[    4.332922] RTL871X: bDescriptorType=5
[    4.338620] RTL871X: bEndpointAddress=84
[    4.344268] RTL871X: wMaxPacketSize=512
[    4.352027] RTL871X: bInterval=0
[    4.363946] RTL871X: RT_usb_endpoint_is_bulk_in = 4
[    4.375540] RTL871X: 
[    4.389671] RTL871X: bLength=7
[    4.394555] RTL871X: bDescriptorType=5
[    4.400697] RTL871X: bEndpointAddress=5
[    4.406164] RTL871X: wMaxPacketSize=512
[    4.411688] RTL871X: bInterval=0
[    4.426201] RTL871X: RT_usb_endpoint_is_bulk_out = 5
[    4.449776] RTL871X: 
[    4.460124] RTL871X: bLength=7
[    4.464714] RTL871X: bDescriptorType=5
[    4.485811] RTL871X: bEndpointAddress=6
[    4.491033] RTL871X: wMaxPacketSize=512
[    4.498760] RTL871X: bInterval=0
[    4.503109] RTL871X: RT_usb_endpoint_is_bulk_out = 6
[    4.511771] RTL871X: 
[    4.520012] RTL871X: bLength=7
[    4.524282] RTL871X: bDescriptorType=5
[    4.548010] RTL871X: bEndpointAddress=87
[    4.553995] RTL871X: wMaxPacketSize=64
[    4.559213] RTL871X: bInterval=3
[    4.563454] RTL871X: RT_usb_endpoint_is_int_in = 7, Interval = 3
[    4.576906] RTL871X: 
[    4.585625] RTL871X: bLength=7
[    4.589862] RTL871X: bDescriptorType=5
[    4.594798] RTL871X: bEndpointAddress=8
[    4.600040] RTL871X: wMaxPacketSize=512
[    4.605051] RTL871X: bInterval=0
[    4.609397] RTL871X: RT_usb_endpoint_is_bulk_out = 8
[    4.615406] RTL871X: nr_endpoint=5, in_num=2, out_num=3
[    4.624181] RTL871X: USB_SPEED_HIGH
[    4.628859] RTL871X: CHIP TYPE: RTL8192E
[    4.634095] RTL871X: register rtw_netdev_ops to netdev_ops
[    4.641164] RTL871X: ReadChipVersion192e 0xF0 = 0xc441135 
[    4.648169] RTL871X: Chip Version Info: CHIP_8192E_Normal_Chip_SMIC_B_CUT_2T2R_RomVer(0)
[    4.658751] RTL871X: RF_Type is 2!!
[    4.663561] RTL871X: _ConfigChipOutEP_8192E OutEpQueueSel(0x07), OutEpNumber(3) 
[    4.673624] RTL871X: ====> ReadAdapterInfo8192EU
[    4.679870] RTL871X: Boot from EFUSE, Autoload OK !
[    4.859609] RTL871X: EEPROM ID=0x8129
[    4.864616] RTL871X: VID = 0x2001, PID = 0x3319
[    4.870537] RTL871X: Customer ID: 0x00, SubCustomer ID: 0xCD
[    4.877625] RTL871X: hal_ReadMACAddress_8192EU MAC Address from EFUSE = 54:2a:a2:33:75:6b
[    4.888777] RTL871X: EEPROMRegulatory = 0x1 TxPwrCalibrateRate=0x0
[    4.896547] RTL871X: Board Type: Dongle or WIFI only Module 
[    4.903815] RTL871X: mlmepriv.ChannelPlan = 0x21
[    4.910027] RTL871X: CrystalCap: 0x36
[    4.915249] RTL871X: ThermalMeter = 0x21
[    4.920758] RTL871X: SWAS: bHwAntDiv = 0, TRxAntDivType = 0
[    4.927947] RTL871X: pHalData->PAType_2G is 0x0, pHalData->ExternalPA_2G = 0
[    4.936632] RTL871X: pHalData->LNAType_2G is 0x0, pHalData->ExternalLNA_2G = 0
[    4.945501] RTL871X: ReadAdapterInfo8192EU <====
[    4.951935] RTL871X: init_channel_set ChannelPlan ID 21 Chan num:13  
[    4.960955] RTL871X: rtw_macaddr_cfg MAC Address  = 54:2a:a2:33:75:6b
[    4.969102] RTL871X: bDriverStopped:1, bSurpriseRemoved:0, bup:0, hw_init_completed:0
[    4.983155] RTL871X: _rtw_drv_register_netdev, MAC Address (if1) = 54:2a:a2:33:75:6b
[   11.206399] RTL871X: +871x_drv - drv_open, bup=0
[   11.206427] RTL871X: ==>_InitPowerOn8192EU 
[   11.210089] RTL871X:  ===> FirmwareDownload88E() fw source from Header.
[   11.210116] RTL871X:  ===> Firmware for NIC fw:FirmwareDownload8192E, size: 31990
[   11.210132] RTL871X: FirmwareDownload8192E: fw_ver=4 fw_subver=1 sig=0x92e1
[   11.236733] RTL871X: _FWFreeToGo8192E: Checksum report OK! REG_MCUFWDL:0x00070304
[   11.237574] RTL871X: =====> _8051Reset88E(): 8051 reset success .
[   11.266936] RTL871X: _FWFreeToGo8192E: Polling FW ready success!! REG_MCUFWDL:0x000706c6
[   11.276902] RTL871X: ===> phy_BB8192E_Config_ParaFile() EEPROMRegulatory 1
[   11.662385] RTL871X: PHY_BBConfig8192E ==> CrystalCap:0x36 
[   12.280287] RTL871X: Auto InitLLTTable8192E success 
[   12.304773] RTL871X: pDM_Odm TxPowerTrackControl = 1
[   12.514398] RTL871X: phy_SpurCalibration_8192E =>AFE_PHASE_SEL 
[   12.580646] RTL871X: === PathA=1, PathB=1
[   12.580670] RTL871X: ===FixSpur Pass!
[   12.599812] RTL871X: MAC Address from REG_MACID = 54:2a:a2:33:75:6b
[   12.599831] RTL871X: rtl8192eu_hal_init in 1400ms
[   12.599848] RTL871X: MAC Address = 54:2a:a2:33:75:6b
[   12.615357] RTL871X: -871x_drv - drv_open, bup=1
[   14.614000] RTL871X: ==>rtw_ps_processor .fw_state(0)
[   14.614018] RTL871X: ==>ips_enter cnts:1
[   14.614028] RTL871X: nolinked power save enter
[color=#FF0000][   14.614039] RTL871X: ===> rtw_ips_pwr_down...................[/color]
[   14.614051] RTL871X: ====> rtw_ips_dev_unload...
[   14.640296] RTL871X: usb_read_port_cancel
[color=#FF0000][   14.640335] RTL871X: usb_read_port_complete() RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0) bReadPortCancel(1)
[   14.640402] RTL871X: usb_read_port_complete() RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0) bReadPortCancel(1)
[   14.640449] RTL871X: usb_read_port_complete() RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0) bReadPortCancel(1)
[   14.640491] RTL871X: usb_read_port_complete() RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0) bReadPortCancel(1)[/color]
[   14.640506] RTL871X: usb_write_port_cancel 
[   14.640574] RTL871X: ==> rtl8192eu_hal_deinit 
[   14.641463] RTL871X: bkeepfwalive(0)
[   14.645362] RTL871X: =====> _8051Reset88E(): 8051 reset success .
[color=#FF0000][   14.647103] RTL871X: <=== rtw_ips_pwr_down..................... in 30ms[/color]
[  105.520944] RTL871X: rtw_wx_get_rts, rts_thresh=2347
[  105.520975] RTL871X: rtw_wx_get_frag, frag_len=2346
Here is what I get when I try to see the power management config:

Code: Select all

[color=#FF0000]pi@raspberrypi:~$ cat /sys/module/8192eu/parameters/rtw_power_mgnt
0[/color]
Any help to resolve this last leg of the problem would be greatly appreciated.

Many thanks to MrEngman for making the compiled driver available.

--mountain-lion

---- update on March 31, 2015 ----

Hi All,

I just resolved this problem by allowing wpa_supplicant in /etc/network/interfaces and then connecting to the wi fi network SSID via Wi Fi configuration GUI in Raspbian. I am not deleting this post as the driver log indicated a Power Management issue whereas the problem seemed to be with wpa_supplicant configuration.

Summary: this problem is solved for me but it is worth investigating the dmesg entries from the 8192eu mod.

gauravkmr
Posts: 8
Joined: Sat Apr 04, 2015 3:50 am

Re: D.Link DWA 131 WLAN/USB Adapter not working

Mon Apr 06, 2015 3:57 pm

Uname -a shows
Linux raspberrypi 3.18.7-v7+ #755 SMP PREEMPT Thu Feb 12 17:20:48 GMT 2015 armv7l GNU/Linux

Tried the suggested wget comand above:
wget https://dl.dropboxusercontent.com/u/802 ... -v7.tar.gz
--2015-04-06 15:55:03-- https://dl.dropboxusercontent.com/u/802 ... -v7.tar.gz
Resolving dl.dropboxusercontent.com (dl.dropboxusercontent.com)... 204.236.233.86, 174.129.38.110, 184.72.240.186, ...
Connecting to dl.dropboxusercontent.com (dl.dropboxusercontent.com)|204.236.233.86|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2015-04-06 15:55:08 ERROR 404: Not Found.

Has the dropbox location been changed? Can some one update please ?

gauravkmr
Posts: 8
Joined: Sat Apr 04, 2015 3:50 am

Re: D.Link DWA 131 WLAN/USB Adapter not working

Mon Apr 06, 2015 3:59 pm

And yes, I missed to point out below that am trying to download DWA-131 wlan driver for 8192eu, when I tried to run the wget command from MrEngMan, but get Error 404 not found.

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

Re: D.Link DWA 131 WLAN/USB Adapter not working

Mon Apr 06, 2015 5:51 pm

gauravkmr wrote:Uname -a shows
Linux raspberrypi 3.18.7-v7+ #755 SMP PREEMPT Thu Feb 12 17:20:48 GMT 2015 armv7l GNU/Linux

Tried the suggested wget comand above:
wget https://dl.dropboxusercontent.com/u/802 ... -v7.tar.gz
--2015-04-06 15:55:03-- https://dl.dropboxusercontent.com/u/802 ... -v7.tar.gz
Resolving dl.dropboxusercontent.com (dl.dropboxusercontent.com)... 204.236.233.86, 174.129.38.110, 184.72.240.186, ...
Connecting to dl.dropboxusercontent.com (dl.dropboxusercontent.com)|204.236.233.86|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2015-04-06 15:55:08 ERROR 404: Not Found.

Has the dropbox location been changed? Can some one update please ?
Wrong download link.

To download and install use these commands

Code: Select all

wget https://dl.dropboxusercontent.com/u/80256631/8192eu-3.18.7-v7-755.tar.gz
tar xzf 8192eu-3.18.7-v7-755.tar.gz
./install.sh

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: 4056
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: D.Link DWA 131 WLAN/USB Adapter not working

Mon Apr 06, 2015 6:04 pm

I compile drivers for the dwa-131 e1 but I don't have an adapter to test the driver.

Can someone suggest where I can buy one, preferably in the UK, so I can check it works OK. Searching on the internet I can find dwa-131 but they do not say what the version is.


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

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

gauravkmr
Posts: 8
Joined: Sat Apr 04, 2015 3:50 am

Re: D.Link DWA 131 WLAN/USB Adapter not working

Tue Apr 07, 2015 12:40 am

Many Thanks MrEngMan. It helps and am now connected to wlan0.

Out of curiosity, could you please let me know, how to write drivers for these wlan cards?

Best Wishes

User avatar
redhenk
Posts: 41
Joined: Wed Feb 20, 2013 9:35 am
Location: Naaldwijk, The Netherlands

Re: D.Link DWA 131 WLAN/USB Adapter not working

Sun Apr 26, 2015 9:00 am

On my Pi its still working, but I've a strange effect.
When I startup my Pi the led of the wifi blinks. After a time the led does not blink anymore, but the link is still there.
Sometimes the link is broken, but when I contact again with vncserver or ping the link is still there.
When I execute wificheck manualy the led also does not turn on.
Pi B, Pi 2B, Pi zero, Pi 3B

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

Re: D.Link DWA 131 WLAN/USB Adapter not working

Sun Apr 26, 2015 9:50 am

redhenk wrote:On my Pi its still working, but I've a strange effect.
When I startup my Pi the led of the wifi blinks. After a time the led does not blink anymore, but the link is still there.
Sometimes the link is broken, but when I contact again with vncserver or ping the link is still there.
When I execute wificheck manualy the led also does not turn on.
The wifi adapter I have, APPUSB300NAV2, that uses this driver does not show any LED. I have also tried it on my windows laptop and it does not show any LED. I think my adapter may not have a LED fitted.

Your problem may be due to power management. Do you have the file /etc/modprobe.d/8192eu.conf? If not you can make it with

Code: Select all

sudo nano /etc/modprobe.d/8192eu.conf
and then add the line

Code: Select all

options 8192eu rtw_power_mgnt=0 rtw_enusbss=0
Save the file using keys cntl-x, y, enter.

This should stop the wifi link breaking. You will need to reboot to make the file active.


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

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

User avatar
redhenk
Posts: 41
Joined: Wed Feb 20, 2013 9:35 am
Location: Naaldwijk, The Netherlands

Re: D.Link DWA 131 WLAN/USB Adapter not working

Sun Apr 26, 2015 9:46 pm

Mr. Engman,

I already have a 8192eu.conf file with the option you wrote, so that can't be the solution for my problem.

By the way, my wifistick is an Ourlink WU110EC.

At this time my wifi works, but the led doesn't blink.

Greetings,

Henk
Pi B, Pi 2B, Pi zero, Pi 3B

bobyg26
Posts: 1
Joined: Wed May 20, 2015 11:15 am

Re: D.Link DWA 131 WLAN/USB Adapter not working

Wed May 20, 2015 11:19 am

MrEngman wrote:
puddle wrote:hello
i also have the e1 version i'm trying to use with my pi2 b+. I rolled back from 3.18.10-v7+ to use mr engmans driver but the links are expired. anyone willing to provide a working driver with our device id or possibly a little guide on how to modify/compile it ourselves so to be able to update freely until it is included?
There is a linux driver for this model on the Australian website http://support.dlink.com.au/Download/do ... pe=Drivers
I've tried to install it but it fails on the "make"command. Any advice would be appreciated.
tia
I have drivers available for all 3.18 versions of raspbian. The name of the driver is defined using the kernel version and build number. Use command uname -a to check your kernel version and build and the file to download will be 8192eu-kernel-build.tar.gz.

As an example my Pi B 2 uname -a shows
Linux Pi-B-2 3.18.10-v7+ #774 SMP PREEMPT Wed Mar 25 14:10:30 GMT 2015 armv7l GNU/Linux
so the driver to download for my Pi B 2 would be 8192eu-3.18.10-v7-774.tar.gz.

Another example my Pi A uname -a shows
Linux pi-A 3.18.9+ #768 PREEMPT Sun Mar 15 18:59:03 GMT 2015 armv6l GNU/Linux
so the driver to download for my Pi A would be 8192eu-3.18.9-768.tar.gz.

To download and install use the commands
wget https://dl.dropboxusercontent.com/u/80256631/8192eu-kernel-build.tar.gz
tar xzf 8192eu-kernel-build.tar.gz
./install.sh
substituting the kernel and build values from your uname -a command in the filename for the wget and tar commands.

Hopefully this is not too confusing and you can download the driver and get your wifi up and running.


MrEngman

MrEngman,
I have a PCduino3 unit and I have this USB Wifi device. will this set of commands still work on my machine?

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

Re: D.Link DWA 131 WLAN/USB Adapter not working

Wed May 20, 2015 11:04 pm

bobyg26 wrote: MrEngman,
I have a PCduino3 unit and I have this USB Wifi device. will this set of commands still work on my machine?
No, it will not.


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

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

FPS_Maso
Posts: 1
Joined: Sat May 30, 2015 5:30 am

Re: D.Link DWA 131 WLAN/USB Adapter not working

Sat May 30, 2015 5:43 am

MrEngman wrote: I have drivers available for all 3.18 versions of raspbian. The name of the driver is defined using the kernel version and build number. Use command uname -a to check your kernel version and build and the file to download will be 8192eu-kernel-build.tar.gz.
MrEngman
Hi MrEngman,

I'm having issues still following your steps (forgive my lack of understanding).

Here is my uname info:

Code: Select all

pi@raspberrypi ~ $ uname -a
Linux raspberrypi 3.18.11-v7+ #781 SMP PREEMPT Tue Apr 21 18:07:59 BST 2015 armv7l GNU/Linux
When I download the file and install it says 'Reboot to run the driver':

Code: Select all

[code]pi@raspberrypi ~ $ ./install.sh
sudo cp 8192eu.conf /etc/modprobe.d/.
sudo install -p -m 644 8192eu.ko /lib/modules/3.18.11+/kernel/drivers/net/wireless
sudo depmod 3.18.11+

Reboot to run the driver.

If you have already configured your wifi it should start up and connect to your
wireless network.

If you have not configured your wifi you will need to do that to enable the wifi.
[/code]

The problem is, when I reboot, I'm not seeing any indication that the driver is being ran (it just looks like a normal startup).

Also, when I run a 'ifconfig -a', I'm not seeing the wlan0 showing up:

Code: Select all

pi@raspberrypi ~ $ ./install.sh
sudo cp 8192eu.conf /etc/modprobe.d/.
sudo install -p -m 644 8192eu.ko /lib/modules/3.18.11+/kernel/drivers/net/wireless
sudo depmod 3.18.11+

Reboot to run the driver.

If you have already configured your wifi it should start up and connect to your
wireless network.

If you have not configured your wifi you will need to do that to enable the wifi.
Any chance you could talk me through where i'm going wrong? :D

Thanks in advance!
Maso

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

Re: D.Link DWA 131 WLAN/USB Adapter not working

Sat May 30, 2015 2:37 pm

Hi FPS_Maso,

I think you downloaded the wrong driver file. You say uname -a shows 3.18.11-v7+ #781 but when you run the ./install.sh command it is installing in directory /lib/modules/3.18.11+/kernel/drivers/net/wireless with no "-v7" which indicates you are installing the driver for the earlier versions of the Pi, not the Pi 2B

Try commands

Code: Select all

wget https://dl.dropboxusercontent.com/u/80256631/8192eu-3.18.11-v7-781.tar.gz
tar xzf 8192eu-3.18.11-v7-781.tar.gz
./install.sh
and see what happens.


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

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

Return to “Troubleshooting”