Another case of OSMC dongle won't connect at 5G

I’m sorry, but I have no idea how to do this. I have a Pace 5268 gateway/router provided by AT&T. If you can tell me what to check, I’ll do it. I can also fiddle around some more tomorrow.

Again, I was happily, but slowly, connecting to the internet with the onboard wifi and with the wire. All this points to a defective wifi adapter to me. That’s the only thing that’s changed. I recognize I don’t know much about this stuff though.

Again, thank you

Well I understand your point of view. But the fact that you get DNS resolution and more importantly that you can connect from your PC to OSMC via the wifi adapter clearly indicates that Wifi is working.

Oh well. I guess I’ll just start over. I’ll try to load OSMC from scratch, without NOOBS and proceed from there. I tried just now to delete the dtoverlay=sdcard entry and reboot. Now the Pi can’t find any wireless networks at all.

Very frustrating experience.

How do you figure this was solved? I got a new adapter and I can’t connect. My problem is not solved, but maybe another one is?

Not sure who click solved. I removed the flag.

I think a clean OSMC install without NOOBS would be a great starting point.
My main concern is that your LAN connection is working but no internet which is questionable how that could be a OSMC problem

@FrogFan
After I typed this I had one more idea.
If you haven’t reinstalled please post output of route when connected via Wifi.

OK. Well, maybe I accidentally clicked solved. My apologies in that case.

Just to be clear where I am now. I re-enabled the onboard wifi and removed the line in /etc/connman.conf you asked me to add. I’m now back to where I started, with slow onboard wifi that connects to the internet and a fast wired connection.

My next step is to buy a fresh SD card and try to install OSMC from scratch, bypassing NOOBS.

I just saw your latest suggestion too. I might give that a whirl tomorrow. Maybe I’ll try that with the onboard wifi and the USB adapter and see what happens.

This thing is really for hobbyists, for sure. I wanted to try to give it to my wife! No way it’s ready for that. At least not right now.

Yep compare the output of route between the internal and external dongle.
Maybe also check ifconfig output for internal and external

Hello again,

I ran some more tests for your consideration. First, I removed the dtoverlay=sdhost line in /boot/config.txt, enabled wifi, disabled ethernet, and rebooted. When the Pi finished rebooting, I ran route and ifconfig, and got the following results (Apologies for the misaligned results. Is there a way to fix this?):

osmc@RPi3OSMC1:~$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default             gateway            0.0.0.0            UG       0         0        0 wlan0
192.168.1.0     0.0.0.0         255.255.255.0      U         0        0        0 wlan0
gateway           0.0.0.0         255.255.255.255 UH      0        0        0 wlan0
osmc@RPi3OSMC1:~$:

Then I ran iconfig and got the following results:

osmc@RPi3OSMC1:~$ ifconfig
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1  (Local Loopback)
        RX packets 64  bytes 8752 (8.5 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 64  bytes 8752 (8.5 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=-28605<UP,BROADCAST,RUNNING,MULTICAST,DYNAMIC>  mtu 1500
        inet 192.168.1.95  netmask 255.255.255.0  broadcast 192.168.1.255
        ether b8:27:eb:d6:27:2b  txqueuelen 1000  (Ethernet)
        RX packets 1956  bytes 1762619 (1.6 MiB)
        RX errors 0  dropped 139  overruns 0  frame 0
        TX packets 1486  bytes 176814 (172.6 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Also note that, for the above case, I had an internet connection. I could select “Weather” and see the forecast.

Next, I added dtoverlay=sdhost to the /boot/config.txt file. This time I edited the file using sudo nano and added the new line above the entry # NOOBS Auto-generated Settings (see above) in case there is some issue with NOOBS that this would avoid. After rebooting, I connected via the OSMC dongle at 2.4G and ran route via SSH. It took a long time to complete; I suspect because the connection was poor. This is what I got:

osmc@RPi3OSMC1:~$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default             0.0.0.0            0.0.0.0                  U        0       0        0 wlan0
192.168.1.0     0.0.0.0         255.255.255.0        U        0       0        0 wlan0

I then ran ifconfig and got the following:

osmc@RPi3OSMC1:~$ ifconfig
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1  (Local Loopback)
        RX packets 224  bytes 25121 (24.5 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 224  bytes 25121 (24.5 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=-28605<UP,BROADCAST,RUNNING,MULTICAST,DYNAMIC>  mtu 1500
        inet 192.168.1.94  netmask 255.255.255.0  broadcast 192.168.1.255
        ether 7c:dd:90:b7:67:5b  txqueuelen 1000  (Ethernet)
        RX packets 13525  bytes 3221080 (3.0 MiB)
        RX errors 6  dropped 496  overruns 0  frame 0
        TX packets 5095  bytes 546830 (534.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

I did not have an internet connection with the OSMC dongle.

I’m not sure if this means anything to anyone, but I thought I’d post it for completion. Any assistance is appreciated. Thanks in advance.

By the way, while I was at it, I tried to connect to my 5G network using the OSMC dongle. At first attempt, OSMC told me I had to disconnect from the 2.4G network before I could connect, so I did that. Then, I tried to connect at 5G, entered a password, and ended up with a connection with no internet, and when I tried to login via SSH, the attempt timed out.

Also note that, with the Pi configuration back to “original”, I can now reach the command line by hitting “esc” at the splash screen after “Exit”.

I’m very frustrated by all this, but I do appreciate your continued assistance. I’m looking forward to getting this working.

I’m now proceeding to try a fresh load of OSMC without NOOBS by downloading the installer from OSMT.tv to my Windows laptop and proceeding according to instructions. I will post results here if they’re relevant.

Again, many thanks for any help.

I’ve edited your last post to make it more readable. You need to select a block of text and use the </> “Preformatted text” button.

Your second route command is missing a “UG”, which is the route to the default gateway.

There is something odd happening when connman adds the default gateway.

For ethernet we (correctly) see:

Mar 01 16:44:33 RPi3OSMC1 connmand[298]: eth0 {add} route 0.0.0.0 gw 192.168.1.254 scope 0 <UNIVERSE>

whereas for wifi we (incorrectly) see:

Mar 01 16:44:35 RPi3OSMC1 connmand[298]: wlan0 {add} route 0.0.0.0 gw 0.0.0.0 scope 253 <LINK>

Are you using DHCP to assign network addresses or have you configured this on the Pi in My OSMC?

Try route add default gw 192.168.1.254

Sam

@dillthedog: I’ll remember to use </> next time. Are you saying I’m missing “UG” because there’s something wrong or that I’ve missed something when I copied my result?

@sam: How to I do what you’re asking? I’m a real Linux lightweight! Please be gentle .

Thanks!

Either, but probably the former. :wink:

Thanks. I forgot to add: I’m using DHCP; and the results I posted are both wifi; i.e., the first one is using the onboard wifi and the second (errant one) is using the OSMC dongle wifi (2.4G)

Again, many thanks for the help.

You need to run it from the command line:

sudo route add default gw 192.168.1.254 dev wlan0

OK. I re-added the line dtoverlay=sdhost to /boot/config.txt, then rebooted and connected using the OSMC dongle to my 2.4G network. I then entered the command above and typed route and ifconfig. This is what I got:

osmc@RPi3OSMC1:~$ sudo route add default gw 192.168.1.254 dev wlan0
osmc@RPi3OSMC1:~$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         gateway         0.0.0.0         UG    0      0        0 wlan0
default         0.0.0.0         0.0.0.0         U     0      0        0 wlan0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 wlan0
osmc@RPi3OSMC1:~$ ifconfig

-bash: fconf: command not found
osmc@RPi3OSMC1:~$ ifconfig
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1  (Local Loopback)
        RX packets 481  bytes 30200 (29.4 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 481  bytes 30200 (29.4 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=-28605<UP,BROADCAST,RUNNING,MULTICAST,DYNAMIC>  mtu 1500
        inet 192.168.1.94  netmask 255.255.255.0  broadcast 192.168.1.255
        ether 7c:dd:90:b7:67:5b  txqueuelen 1000  (Ethernet)
        RX packets 5536  bytes 1115598 (1.0 MiB)
        RX errors 0  dropped 439  overruns 0  frame 0
        TX packets 2166  bytes 220256 (215.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

I’m thinking I need to reboot now and see what happens, but I thought I’d defer to you first.

Thank you!

No harm rebooting. You’re likely to lose the default route but give it a go.

Quick update: I rebooted after these changes and they appeared to have no effect. Then, I decided to manually enter the default gateway on My OSMC > Network > Wireless to 192.168.1.254 (it had been blank, and didn’t realize I could set it.) When I did that, the status changed to “connected” and I had internet with the dongle connected at 2.4G.

Then, heady with enthusiasm, I tried to do the same thing with my 5G network. No joy. Status is “no internet”, and

It is recommended that you set a separate SSID for 2.4 GHz and 5 GHz.