TPLink WN725N does not work with OSMC

Hi,

I have Raspberry Pi 2 Model B with the wireless dongle TPLink WN725N V2.
The version of OSMC is:
osmc@osmc:~$ grep VERSION_ID /etc/os-release
VERSION_ID=“2016.01-2”

with linux kernel 4.4.1-1-osmc

I experience drop of connection as already reported here:

Initially I start installing some other drivers published by MrEngma on Raspberry forum:
https://www.raspberrypi.org/forums/viewtopic.php?f=91&t=29752&sid=828a2c76de7ddba6867e3a8ad7f3994a&start=225

With the help of MrEngma I was able to recover the original driver in:
/lib/modules/4.4.1-1-osmc/kernel/drivers/staging/rtl8188eu/r8188eu.ko

It worked for few hours then it dropped again.It is very unstable. When I plud the device I see this in dmesg;
[ 1203.375009] usb 1-1.2: Manufacturer: Realtek
[ 1203.375026] usb 1-1.2: SerialNumber: 00E04C0001
[ 1203.492134] r8188eu: module is from the staging directory, the quality is unknown, you have been warned.
[ 1203.500316] Chip Version Info: CHIP_8188E_Normal_Chip_TSMC_D_CUT_1T1R_RomVer(0)
[ 1203.532799] usbcore: registered new interface driver r8188eu
[ 1204.214325] MAC Address = c4:e9:84:11:20:93
[ 1204.217677] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready

Is there any update on this driver? Is there a new version?
If this wireless dongle is so unstable can you suggest me a good wireless dongle that works perfectly with Raspberry and OSMC?
Thanks

Connection just dropped right now. Here what I see in my dmesg:
[ 1341.859464] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 1375.571943] R8188EU: ERROR linked_status_chk(wlan0) disconnect or roaming
[ 1377.699990] R8188EU: ERROR assoc success
[ 1395.562103] R8188EU: ERROR linked_status_chk(wlan0) disconnect or roaming
[ 1398.589820] R8188EU: ERROR assoc success
[ 1423.563154] R8188EU: ERROR linked_status_chk(wlan0) disconnect or roaming
[ 1438.245220] R8188EU: ERROR indicate disassoc

As requested in the other thread after drop of connection I did:
sudo journalctl >journal.log
paste-log journal.log

So you need to provide the resulting URL here.

Thanks for reply. Here the url.
http://paste.osmc.io/vetoxeqite

Feb 26 15:34:48 osmc wpa_supplicant[325]: wlan0: Associated with e0:91:f5:d4:cb:82
Feb 26 15:34:48 osmc wpa_supplicant[325]: wlan0: WPA: Key negotiation completed with e0:91:f5:d4:cb:82 [PTK=CCMP GTK=CCMP]
Feb 26 15:34:48 osmc wpa_supplicant[325]: wlan0: CTRL-EVENT-CONNECTED - Connection to e0:91:f5:d4:cb:82 completed [id=0 id_str=]
Feb 26 15:34:48 osmc wpa_supplicant[325]: bgscan simple: Failed to enable signal strength monitoring
Feb 26 15:34:48 osmc connmand[272]: wlan0 {RX} 2 packets 344 bytes
Feb 26 15:34:48 osmc connmand[272]: wlan0 {TX} 2 packets 288 bytes
Feb 26 15:34:48 osmc connmand[272]: wlan0 {update} flags 102467 <UP,RUNNING,LOWER_UP>
Feb 26 15:34:48 osmc connmand[272]: wlan0 {newlink} index 3 address C4:E9:84:11:20:93 mtu 1500
Feb 26 15:34:48 osmc connmand[272]: wlan0 {newlink} index 3 operstate 6 <UP>
Feb 26 15:34:48 osmc avahi-daemon[261]: Joining mDNS multicast group on interface wlan0.IPv4 with address 192.168.0.5.
Feb 26 15:34:48 osmc avahi-daemon[261]: New relevant interface wlan0.IPv4 for mDNS.
Feb 26 15:34:48 osmc avahi-daemon[261]: Registering new address record for 192.168.0.5 on wlan0.IPv4.
Feb 26 15:34:48 osmc connmand[272]: rp_filter set to 2 (loose mode routing), old value was 0
Feb 26 15:34:48 osmc connmand[272]: ipconfig state 3 ipconfig method 1
Feb 26 15:34:48 osmc connmand[272]: wlan0 {add} address 192.168.0.5/24 label wlan0 family 2
Feb 26 15:34:48 osmc connmand[272]: wlan0 {add} route 192.168.0.0 gw 0.0.0.0 scope 253 <LINK>
Feb 26 15:34:48 osmc connmand[272]: wlan0 {add} route 192.168.0.1 gw 0.0.0.0 scope 253 <LINK>
Feb 26 15:34:48 osmc connmand[272]: wlan0 {del} route fe80:: gw :: scope 0 <UNIVERSE>
Feb 26 15:34:49 osmc connmand[272]: wlan0 {add} route 159.253.212.250 gw 192.168.0.1 scope 0 <UNIVERSE>
Feb 26 15:34:49 osmc connmand[272]: wlan0 {del} route 159.253.212.250 gw 192.168.0.1 scope 0 <UNIVERSE>
Feb 26 15:34:50 osmc ntpd[424]: Listen normally on 6 wlan0 192.168.0.5 UDP 123
Feb 26 15:34:50 osmc ntpd[424]: peers refreshed
Feb 26 15:35:03 osmc sshd[587]: Accepted password for osmc from 192.168.0.7 port 49626 ssh2
Feb 26 15:35:03 osmc sshd[587]: pam_unix(sshd:session): session opened for user osmc by (uid=0)
Feb 26 15:35:03 osmc systemd-logind[260]: New session c2 of user osmc.
Feb 26 15:35:22 osmc kernel: R8188EU: ERROR linked_status_chk(wlan0) disconnect or roaming
Feb 26 15:35:24 osmc kernel: R8188EU: ERROR assoc success
Feb 26 15:35:24 osmc wpa_supplicant[325]: wlan0: Associated with e0:91:f5:d4:cb:82
Feb 26 15:35:24 osmc connmand[272]: wlan0 {RX} 82 packets 32574 bytes
Feb 26 15:35:24 osmc connmand[272]: wlan0 {TX} 67 packets 15062 bytes
Feb 26 15:35:24 osmc connmand[272]: wlan0 {update} flags 102403 <UP,LOWER_UP>
Feb 26 15:35:24 osmc connmand[272]: wlan0 {newlink} index 3 address C4:E9:84:11:20:93 mtu 1500
Feb 26 15:35:24 osmc connmand[272]: wlan0 {newlink} index 3 operstate 5 <DORMANT>
Feb 26 15:35:24 osmc connmand[272]: Probably roaming right now! Staying connected...
Feb 26 15:35:24 osmc wpa_supplicant[325]: wlan0: WPA: Key negotiation completed with e0:91:f5:d4:cb:82 [PTK=CCMP GTK=CCMP]
Feb 26 15:35:24 osmc wpa_supplicant[325]: wlan0: CTRL-EVENT-CONNECTED - Connection to e0:91:f5:d4:cb:82 completed [id=0 id_str=]
Feb 26 15:35:24 osmc connmand[272]: wlan0 {RX} 83 packets 32763 bytes
Feb 26 15:35:24 osmc connmand[272]: wlan0 {TX} 69 packets 15350 bytes
Feb 26 15:35:24 osmc connmand[272]: wlan0 {update} flags 102467 <UP,RUNNING,LOWER_UP>
Feb 26 15:35:24 osmc connmand[272]: wlan0 {newlink} index 3 address C4:E9:84:11:20:93 mtu 1500
Feb 26 15:35:24 osmc connmand[272]: wlan0 {newlink} index 3 operstate 6 <UP>
Feb 26 15:35:42 osmc kernel: R8188EU: ERROR linked_status_chk(wlan0) disconnect or roaming
Feb 26 15:35:45 osmc kernel: R8188EU: ERROR assoc success
Feb 26 15:35:45 osmc wpa_supplicant[325]: wlan0: Associated with e0:91:f5:d4:cb:82
Feb 26 15:35:45 osmc connmand[272]: wlan0 {RX} 97 packets 35181 bytes
Feb 26 15:35:45 osmc connmand[272]: wlan0 {TX} 83 packets 17535 bytes
Feb 26 15:35:45 osmc connmand[272]: wlan0 {update} flags 102403 <UP,LOWER_UP>
Feb 26 15:35:45 osmc connmand[272]: wlan0 {newlink} index 3 address C4:E9:84:11:20:93 mtu 1500
Feb 26 15:35:45 osmc connmand[272]: wlan0 {newlink} index 3 operstate 5 <DORMANT>
Feb 26 15:35:45 osmc connmand[272]: Probably roaming right now! Staying connected...
Feb 26 15:35:45 osmc wpa_supplicant[325]: wlan0: WPA: Key negotiation completed with e0:91:f5:d4:cb:82 [PTK=CCMP GTK=CCMP]
Feb 26 15:35:45 osmc wpa_supplicant[325]: wlan0: CTRL-EVENT-CONNECTED - Connection to e0:91:f5:d4:cb:82 completed [id=0 id_str=]
Feb 26 15:35:45 osmc connmand[272]: wlan0 {RX} 98 packets 35370 bytes
Feb 26 15:35:45 osmc connmand[272]: wlan0 {TX} 85 packets 17823 bytes
Feb 26 15:35:45 osmc connmand[272]: wlan0 {update} flags 102467 <UP,RUNNING,LOWER_UP>
Feb 26 15:35:45 osmc connmand[272]: wlan0 {newlink} index 3 address C4:E9:84:11:20:93 mtu 1500
Feb 26 15:35:45 osmc connmand[272]: wlan0 {newlink} index 3 operstate 6 <UP>
Feb 26 15:36:10 osmc kernel: R8188EU: ERROR linked_status_chk(wlan0) disconnect or roaming
Feb 26 15:36:24 osmc connmand[272]: wlan0 {RX} 118 packets 38500 bytes
Feb 26 15:36:24 osmc wpa_supplicant[325]: wlan0: CTRL-EVENT-DISCONNECTED bssid=e0:91:f5:d4:cb:82 reason=0
Feb 26 15:36:24 osmc connmand[272]: wlan0 {TX} 103 packets 20838 bytes
Feb 26 15:36:24 osmc connmand[272]: wlan0 {update} flags 36867 <UP>
Feb 26 15:36:24 osmc kernel: R8188EU: ERROR indicate disassoc

Have you enabled max_usb_current in config.txt? Or is dongle connected by powered hub?

Yes I have. Yesterday.
Dongle is connected to Raspberry. I have also an IDC Receiver attached to another USB port. Raspery is powered with a Samsung 5V 2A adapter.
As reported in this other thread, two days ago once I was able to have a wireless connection working correctly I tried to do a step further: add and external HDD.

A friend of mine borrowed me an external HDD 3.0 and I tried to connect it to Raspberry but everything frozen in Kodi. Red led was blinking. So I disconnected HDD and Kodi worked again. So I decided to set max_usb_current=1 in config.txt? But it didn’t work.

Do I have to revome this configuration? If so, why?

You need a powered hub. 2A is likely not enough power to run the pi and all the peripherals you are trying to connect.

1 Like

Can you suggest me a good Power HUB to buy considering that I need to attach IRC, Wireless Dongle and External HDD. Do I need a 3A Power Supply? Can you share me a schema on how to connect cables?
Thanks

The in-tree drivers for 8188eu don’t seem very good. I do have plans to replace them with an out-of-tree driver.

This dongle works well:

https://store.osmc.tv/product/802-11n-wifi-dongle/

This is the official Pi PSU:

https://store.osmc.tv/product/raspberry-pi-power-supply/

You can also get RTL8192CU, RTL8818CUS based 802.11n WiFi dongles and these will work with good driver support.

What about official WIPI
http://www.amazon.it/WiFi-adapter-Official-Raspberry-Pi/dp/B01BJMRVQI/ref=sr_1_sc_1?ie=UTF8&qid=1456504802&sr=8-1-spell&keywords=wipi+wireless+official

is it compatible with OSMC?
Ragarding Power Supply you linked a 2A like the one I have, I expected you suggested me a 3A. Do you think it will work with Raspberry+IRC receiver+HDD+Dongle? What about Power HUB you mentioned above? Which one I should buy and How I have to connect everything?
Thanks

If you have the 2A PSU above, you should not have any problems. Is it an official Pi one?

The WiFi adapter you have linked to is the official Raspberry Pi adapter. It is based on BCM4330 and will work in OSMC out of the box.

Thanks You. You almost answered to all My question. What about power hub? Considerino My need above which one to Buy?

Le me be more specific. I Read everywhere that to run raspberry + hdd I need power hub + power supply of 3A. Above You said The officiata 2A is enough. This confuse me. What I have to Buy to power raspberry +hdd+dongle+irc receiver?

Ps
I do not have official 2A power supply. I have a normal 2A charter from Samsung.

Get a proper charger first. You should get away with one HDD on the USB with a proper 2A 5V PSU

All hdd I saw have only 1 usb port. No power supply entry (ie Wd portable elementi hdd)

The reso I do not want hdd with its own power supply is to reduce The numero of cables

I mean use a better Pi power supply, and you likely won’t need a PSU for your HDD. The Samsung charger is not good enough, it’s not really 5v 2A.

Sam

@sam_nazarko don’t forget he’s trying to power a wifi dongle too! I’m suspicious that even a 3A will support it all… This is why I recommended a powered hub.

I think 2A will do it. Regardless of this, OP still wants to get a better PSU. He could try the new PSU before determining if a hub is necessary

Ok I understand. Can you give me a link to power hub to buy and a brief description on how to Connect PSU, HDD and Raspberry?
I promise This is my last question.

Thanks You. Your support was quick and incredible.

Do not buy a power hub until you replace the PSU

Sam