Can't connect to Wifi with OSMC dongle (5 GHz type)

Hi,
it’s just arrived the envelope with the OSMC branded wifi dongle (5 Ghz) and the PSU.

I can’t get it work: myOSMC–>Network–>Wireless page is empty (see image below)!

The wifi dongle works under Windows 7 64 bit (no plug & play: I had to download Mediatek drivers but it doesn’t care).

To provide the logs, I used my old USB wifi dongle, enabled the logging in Kodi, did a shutdown and then disconnected the PSU. I swapped the USB dongle with the OSMC and then powered the Raspberry pi 2.

Here are my logs: paste.osmc.io/abuqacovih

What’s happening?!?

Thanks for the help :slight_smile:

Kranz

Normally this means you have a Pi 3 and need to disable the internal adapter

Make sure you are on the latest version of OSMC. Sometimes the GUI does not correctly show all networks. I can help you connect via the command line.

Does the blue LED illuminate when you connect the stick to the Pi?

Edit: it’s hard to see if the adapter is enabled (we will improve this) in your screenshot. Try toggling it

Sam

Hi Sam

I’m pretty sure I have a Raspberry Pi 2 :slight_smile: and I’m on the latest OSMC version; the blue led is on when I connect the OSMC USB stick. If I reboot and use my old Wifi stick it works without problems. In MyOSMC -->Network–>Wifi the rectangle on the right is simply empty!!

I’m using three USB ports: one for my 2.5 USB HDD, another for a Logitech USB adapter (wireless keyboard KT400) and the last one for the USB Wifi adapter. usb max current is set in config.txt (as you can see in the logs).

I’m sure you can help me to get it work via CLI but it was preferable to have it working PnP, it isn’t?

Hope it helps.

Kranz

Of course! Let’s get you up and running first though.

Can you remove everything aside from the WiFi dongle to see if it’s power related?

Can you login via SSH, and type

sudo connmanctl
agent on
scan wifi

You will then see a list of services. Try:

```connect …````

If you have a Pi 3 you will see it on the silk screen on the front of the board

Cheers

Sam

Hi Sam, I’ve removed everyting from the USB bus except your USB stick and then I connected the Rpi2 via ethernet to gain SSH access.

Output:

osmc@osmc:~$ sudo connmanctl
Error getting VPN connections: The name net.connman.vpn was not provided by any connmanctl> agent on
Agent registered
connmanctl> scan wifi
Scan completed for wifi
connmanctl>

So it doesn’t work: I can’see any wifi network :frowning:

I made an error: you need to type services after scan wifi I think

How far are you from the router? Was the PC you tested on in the same room?

Hi Sam,
services in connman environment gives:

connmanctl> services
*AO Wired ethernet_b827eb87cc86_cable

So no wifi network detected,

I checked if the appropriate kernel module was loaded with lsmod:

osmc@osmc:~$ lsmod
Module Size Used by
8021q 22147 0
garp 7622 1 8021q
stp 2430 1 garp
llc 6031 2 stp,garp
evdev 13192 1
uinput 9818 1
mt7610u_sta 1070085 0
cfg80211 565548 1 mt7610u_sta
rfkill 22502 3 cfg80211
snd_bcm2835 24938 0
snd_pcm 115812 1 snd_bcm2835
snd_timer 26094 1 snd_pcm
bcm2835_thermal 2541 0
snd 78512 3 snd_bcm2835,snd_timer,snd_pcm
bcm2835_gpiomem 4026 0
bcm2835_wdt 4081 0
uio_pdrv_genirq 3885 0
uio 10428 1 uio_pdrv_genirq
lirc_rpi 9342 3
lirc_dev 11576 1 lirc_rpi
rc_core 25745 1 lirc_dev
fuse 108681 1
ipv6 448018 48

and seems to be loaded.

The USB wifi stick is recognized because lsusb says:
Bus 001 Device 004: ID 0e8d:7610 MediaTek Inc.
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

The wifi router, the PC and the Rpi2 are in the same room and there are no channel interference or signal stenght problems (the old wifi dongle works fine. My disconnections with that stick were genereted by a botnet that someone installed via ssh remotely. Did a fresh OSMC install, btw) .

Hi

I had a customer recently (same dongle) with the same issue and it turned out to be PSU related. We sent him a replacement but when it didn’t work either we worked out what the issue is.

My understanding is that the dongle is working correctly on your computer. I’ve tested here with one on the latest update and it is working as expected, so something is not quite right with the Pi. The new dongle will be more power hungry if you were using one of those nano-like 802.11n dongles before.

I’m not mobile now so I was able to evaluate your log:

[    8.520073] mt76x0_read_tx_alc_info_from_eeprom: EEPROM_MT76x0_TEMPERATURE_OFFSET (0xD1) = 0xfb
[    8.520089] mt76x0_read_tx_alc_info_from_eeprom: TemperatureOffset = 0xfffffffb
[    8.520097] Temperature Tx ALC not enabled
[    8.538011] 3. Phy Mode = 17
[    8.538040] AntCfgInit: primary/secondary ant 0/1
[    8.543281] RTMPSetPhyMode: channel is out of range, use first channel=36 
[    8.544695] MCS Set = ff 00 00 00 01
[    8.555825] <==== rt28xx_init, Status=0
[    8.555843] 80211> re-init bands...
[    8.556049] 80211> re-init bands...
[    8.556062] 80211> RFICType = 3
[    8.556070] 80211> Number of channel = 44
[    8.556077] 80211> Number of rate = 12
[    8.556083] 80211> CurTxPower = 0 dBm
[    8.556098] 80211> TxStream = 1
[    8.556106] crda> CFG80211_RegRuleApply ==>
[    8.556115] crda> reset chan/power for 2.4GHz
[    8.556126] crda> reset chan/power for 5GHz
[    8.556137] Chan 036:	power 0 dBm, DFS 0, DFS Type 0
[    8.556148] Chan 038:	power 0 dBm, DFS 0, DFS Type 0
[    8.556158] Chan 040:	power 0 dBm, DFS 0, DFS Type 0
[    8.556166] Chan 044:	power 0 dBm, DFS 0, DFS Type 0
[    8.556175] Chan 046:	power 0 dBm, DFS 0, DFS Type 0
[    8.556184] Chan 048:	power 0 dBm, DFS 0, DFS Type 0
[    8.556193] Chan 052:	power 0 dBm, DFS 1, DFS Type 0
[    8.556201] Chan 054:	power 0 dBm, DFS 1, DFS Type 0
[    8.556210] Chan 056:	power 0 dBm, DFS 1, DFS Type 0
[    8.556218] Chan 060:	power 0 dBm, DFS 1, DFS Type 0
[    8.556227] Chan 062:	power 0 dBm, DFS 1, DFS Type 0
[    8.556236] Chan 064:	power 0 dBm, DFS 1, DFS Type 0
[    8.556245] Chan 100:	power 0 dBm, DFS 1, DFS Type 0
[    8.556254] Chan 104:	power 0 dBm, DFS 1, DFS Type 0
[    8.556262] Chan 108:	power 0 dBm, DFS 1, DFS Type 0
[    8.556271] Chan 112:	power 0 dBm, DFS 1, DFS Type 0
[    8.556280] Chan 116:	power 0 dBm, DFS 1, DFS Type 0
[    8.556289] Chan 118:	power 0 dBm, DFS 1, DFS Type 0
[    8.556298] Chan 120:	power 0 dBm, DFS 1, DFS Type 0
[    8.556306] Chan 124:	power 0 dBm, DFS 1, DFS Type 0
[    8.556315] Chan 126:	power 0 dBm, DFS 1, DFS Type 0
[    8.556324] Chan 128:	power 0 dBm, DFS 1, DFS Type 0
[    8.556333] Chan 132:	power 0 dBm, DFS 1, DFS Type 0
[    8.556342] Chan 134:	power 0 dBm, DFS 1, DFS Type 0
[    8.556352] Chan 136:	power 0 dBm, DFS 1, DFS Type 0
[    8.556360] Chan 140:	power 0 dBm, DFS 1, DFS Type 0
[    8.556369] Chan 149:	power 0 dBm, DFS 0, DFS Type 0
[    8.556377] Chan 151:	power 0 dBm, DFS 0, DFS Type 0
[    8.556386] Chan 153:	power 0 dBm, DFS 0, DFS Type 0
[    8.556395] Chan 157:	power 0 dBm, DFS 0, DFS Type 0
[    8.556404] Chan 159:	power 0 dBm, DFS 0, DFS Type 0
[    8.556412] Chan 161:	power 0 dBm, DFS 0, DFS Type 0
[    8.556422] Chan 165:	power 0 dBm, DFS 0, DFS Type 0
[    8.556430] Chan 167 (frq 5835):	not allowed!
[    8.556438] Chan 169 (frq 5845):	not allowed!
[    8.556445] Chan 171 (frq 5855):	not allowed!
[    8.556452] Chan 173 (frq 5865):	not allowed!
[    8.556472] Chan 184 (frq 4920):	not allowed!
[    8.556480] Chan 188 (frq 4940):	not allowed!
[    8.556488] Chan 192 (frq 4960):	not allowed!
[    8.556496] Chan 196 (frq 4980):	not allowed!
[    8.556503] Chan 208 (frq 6040):	not allowed!
[    8.556511] Chan 212 (frq 6060):	not allowed!
[    8.556518] Chan 216 (frq 6080):	not allowed!
[    8.556528] crda> Number of channels = 33

Interesting.

Where are you? And what channel is your 802.11ac network on?

Sam

Also, while looking through the log (as an aside)

/dev/sda1       1.9T  1.8T   30G  99% /media/Elements

Talk about living dangerously… You should probably address that.

Sam,
there is no 5 GHz network up, as you can see in the logs but only a 2.4 GHz network.

Anyway, your USB stick is well capable to connect to my 2.4 GHz network (tested inserting the stick in my PC) and my PSU is (now) your 5V - 2.5 A OSMC branded adapter (sorry to say, the PSU produces a lot of audible coil noise but that’s another story).

The Rpi2 is not faulty at all. It works as expected with my previous Wifi stick.

Also, while looking through the log (as an aside)
/dev/sda1 1.9T 1.8T 30G 99% /media/Elements
Talk about living dangerously… You should probably address that.

Yes, but 30 GB of space left on the HDD is acceptable :slight_smile: Maybe I’ll upgrade with a 4 TB for xmas :wink:

I’ll look in to this for you tomorrow morning. Knowing the issue is with 2.4Ghz is very useful.

Doesn’t sound right at all (no pun intended)

We can get that swapped out for you immediately. Email me your order # and I’ll take care of it for you.

Cheers

Sam

Hi there,
just got my brand new Wifi Dongle from the OSMC store ad I’ve got the same problem :frowning:

I’ve got mine because the old one (Edimax EW-7811Un) is only enabled for 2.4ghz and I thought it was related to the dropping wifi issue.
I plugged the new wifi Dongle but it doesn’t see the wifi net.

I’m in the same HW situation of this thread: Raspberry 2, OSMC latest version, original Raspberry PSU.
I’ve have 11gb available (so is not a space problem) and the trouble shooting from the command line is the same. I will update a log to this thread as soon as possible.

Are you trying to connect to a 5Ghz or 2.4Ghz network? You may need to change some settings depending on your region.

Sam

I’ve only just had a chance to look at this (busy day). Setting up this dongle is not completely automatic, as the world regulatory domain has to be manually set sometimes. I will improve this in the future.

You may need to edit /lib/firmware/mt7610u_sta.dat. You may want to change ‘WirelessMode’ and ‘CountryCode’.

0: use 36, 40, 44, 48, 52, 56, 60, 64, 149, 153, 157, 161, 165 Channel
1: use 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140 Channel
2: use 36, 40, 44, 48, 52, 56, 60, 64 Channel
3: use 52, 56, 60, 64, 149, 153, 157, 161 Channel
4: use 149, 153, 157, 161, 165 Channel
5: use 149, 153, 157, 161 Channel
6: use 36, 40, 44, 48 Channel
7: use 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140, 149, 153, 157,
8: use 52, 56, 60, 64 Channel
9: use 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 132, 136, 140, 149, 153, 157, 161, 165 Channel
10: use 36, 40, 44, 48, 149, 153, 157, 161, 165 Channel
11: use 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 149, 153, 157, 161 Channel

Alternatively, you can try the automatic setup code. You can try

mv /lib/firmware/mt7610u_sta.dat /lib/firmware/mt7610u_sta.dat.bak

and rebooting. When I did this, 5Ghz and 2.4Ghz networks worked for me in the UK using a Netgear R7000.

connmanctl> scan wifi
connmanctl> services
*AO Wired                ethernet_b827eb41d4a4_cable
    samtesting                wifi_000000000000_416c706861_managed_psk
    samtesting-5G             wifi_000000000000_416c7068612d3547_managed_psk
    VM132290-2G          wifi_000000000000_564d3133323239302d3247_managed_psk

Sam

Hi Sam,
thanks for the prompt support.

This is the log with Edimax dongle: http://paste.osmc.io/puqezikopu.coffee
This is the log with OSMC store card: http://paste.osmc.io/kamojaveda.coffee

I’m trying to connect to a Vodafone station router, with both 2.4Ghz and 5Ghz network enabled.

I’d like to understand if the dongle works with my MacBook air but I cannot figure out how to configure it on a Mac :frowning:

On the Raspberry, a blue led is on.

Did you follow the above instructions? Do they help?

Sam

Sorry,
I get the notification right now.

Moved the file as you suggested and the wifi connection is up and running!

Hope it’ll be more stable compared to the old one :slight_smile: I’ll keep you posted.

Regards,
Fabio

1 Like

Good to hear. It looks like we can have more faith in our autoconfiguration capabilities after all. I may make this the default behaviour in the next update.

The world regulatory domain is then set by evaluating the networks in the area.

Sam

Hi @sam_nazarko,
unfortunately this morning the Raspberry wasn’t connected to the wifi network :frowning:
I didn’t have time to investigate. I will upload logs later this afternoon.

UPDATED: Here the logs

Fabio

@sam_nazarko

Hi Sam,
>mv /lib/firmware/mt7610u_sta.dat /lib/firmware/mt7610u_sta.dat.bak

did the trick :slight_smile:

Now the OSMC Wifi dongle works out of the box as expected.
Thank you for the hint.

Now the bad news: I’m testing the OSMC Wifi stick for performance and I noticed that the speed (file copy via Samba shares PC <-> OSMC, both PC and Rpi2 are wireless connected. No other devices are connected) is about 1/3 the speed of my old USB Wifi dongle (TP-LINK TL-WN 823N) and the file copy operation interrupts many times (due to network errors, I think). I’ll post the logs when I have some spare time.

About the noisy OSMC PSU: I’m going to do some burn in (=use of the OSMC PSU for 4-5 days h24) to see if the noise vanishes. If not, I’ll mail you for a replacement.

Bye, Kranz