I am using Kodi/OSMC version 17.6 (Krypton) on a Raspberry Pi 3, and am quite addicted to it these days. One fine day, my kodi remote app stopped detecting any Kodi servers running on my home network.
Fast forward 5 hours, the problem seemed to be with the wifi channel. Kodi worked fine when home wifi had channel number < 11, but did’nt when channel number(freq) went beyond to something like 12 or 13. Took me a number of router restarts to figure this out.
Read more about WLAN channels here – WLAN Channel list
Next finding – the WLAN configuration can be updated to work for different country codes(specified in standard ISO 3166-1) to support channels that are disabled otherwise.
So here is the fix for Kodi on Raspberry Pi 3 –
- SSH into the Kodi (well, this means get a favourable wifi channel for connecting)
- Install iw(iw documentation) , wireless-regdb(wireless-regdb documentation) and CRDA(Central Regulatory Domain Agent documentation) :
$ sudo apt-get update $ sudo apt-get upgrade $ sudo apt-get install wireless-regdb iw crda
- Get the list of channels currently supported (the list shows channel 12, 13, 14 disabled)
(Hank Rearden – the system is named after a character from Ayn Rand’s classic “Atlas Shrugged”)
- Check the current set region for WLAN (the country was set to 00 for me)
- Set region ( IN – India for me, get your country code from the ISO3166-1 list )
- Check the supported channels list now
So channel 12 and 13 are available for my device now. Channel 14 is accessible if I set region to value like JP (Japan) but better stick to the standards and access freq band allowed for the particular country.
Please comment if this worked/didnt work for you.