• Page:
  • 1
  • 2

TOPIC: Wlan troubleshooting

Wlan troubleshooting 1 year 4 months ago #1

  • pico
  • pico's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Karma: 0
Hi all,

First post here and a new comer to OE and loving it. Looking forward to the new release once Eden comes out.

I'm having trouble with getting the Wifi working however and it would be nice to get it to work. I see that OE uses Connman to manage the network connections which I am not familiar with coming from Ubuntu. So I'm looking for some assistance in trying to figure out what is going on.

My system is an older Intel Core2 duo with a new GT220 graphics card and 2TB HDD. It has onboard GB Ethernet which is currently plugged in as the wireless is not operational. The Wireless card is a draft-N TP-Link WN951N which has had good support under Linux in my experience (linux-wless.passys.nl/query_part.php?brandname=TP-Link). Also the build I am using is the official 1.02 release.

SSH-ing into the box running 'ifconfig' I have interfaces eth0, wlan0 and lo. I would assume this means that all drivers are present and functioning correctly. Normally I would then run 'iwconfig' and manually set all the wireless parameters but that is not present in OE. I read the network init script and see that it creates a profile at '/var/lib/connman/default.profile' which seems to be fine. I've even taken that file and edited out the unneeded information and created an override config at '/storage/.config/connman.profile' but that hasn't worked either.

I'm stuck as to how to diagnose what is going on.

EDIT: messages

pastebin.com/8tS7x5Aj
Last Edit: 1 year 4 months ago by pico. Reason: Insert link to messages log file
The administrator has disabled public write access.

Re: Wlan troubleshooting 1 year 4 months ago #2

  • chewitt
  • chewitt's Avatar
  • OFFLINE
  • Moderator
  • Posts: 2705
  • Thank you received: 418
  • Karma: 130
according to /var/log/messages you have wlan0 and to be honest all looks normal, so head to the OE configuration addon under XBMC settings and set networking to use WLAN, wlan0 and enter your SSID/passphrase details. Then reboot making sure the Ethernet cable is NOT connected - connman has a hardcoded preference for Ethernet so WLAN will never become active if an Ethernet connection is present

www.openelec.tv/forum/12-guides-tips-and...eless-networking-101
The administrator has disabled public write access.

Re: Wlan troubleshooting 1 year 4 months ago #3

  • pico
  • pico's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Karma: 0
Hi Chewitt,

Thanks for the tips. I have tried all sorts of combinations in the OE network settings and always try with the eth0 unplugged as I had heard that connman will default to wired connection if available but I then am forced to connect it after a reboot when the wireless does not work as I don't know how to access console without network access.

The latest messages log is here:
pastebin.com/s4hgvvpX

I'm concerned by the line that says:
openelec user.info kernel: [    6.316785] ADDRCONF(NETDEV_UP): wlan0: link is not ready

As this seems to be the last line with wlan0 in it. It would be good to see more of a debug log from connman to see what problems it is having.

EDIT:

Ok I figured out how to enable a debug console in OE so I can access it without network access. Note that it would be good to include a boolean variable in the OE network settings to start connman with the debug variable on which could be checked in the init script as I found that something keeps respawning connman when you use the kill command from the console! I have an edited debug log from connman here: pastebin.com/XDD5ptWn

This time I notice that when I kill the connman process there is an invalid pointer error.
openelec daemon.err connmand[643]: Wrong wifi pointer
Last Edit: 1 year 4 months ago by pico. Reason: New info
The administrator has disabled public write access.

Re: Wlan troubleshooting 1 year 4 months ago #4

  • chewitt
  • chewitt's Avatar
  • OFFLINE
  • Moderator
  • Posts: 2705
  • Thank you received: 418
  • Karma: 130
The NETDEV_UP message simply means the interface is in an UP state (it's active) but hasn't received an IP yet. The wrong pointer message normally occurs when it cannot find the interface specified. Can you paste the following after waiting 60 seconds from a cold boot:
/var/lib/connman/default.profile
/storage/.xbmc/userdata/addon_data/os.openelec.settings/settings.xml
The administrator has disabled public write access.

Re: Wlan troubleshooting 1 year 4 months ago #5

  • pico
  • pico's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Karma: 0
Sure. See below after cold reboot and no ethernet cable plugged in.

settings.xml:
pastebin.com/pHAtP6yV

default.profile:
pastebin.com/SsHEqDJ9
The administrator has disabled public write access.

Re: Wlan troubleshooting 1 year 4 months ago #6

  • kisho
  • kisho's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
hi all
Glad that I found this site! Thanks in advance for hardworking individuals who support this site.
I have installed OPENELEC and updated the kernal by using beta version of Eden.
Now, when wired, every thing is file.
Still unable to detect the wireless network. I have no issue connecting to wifi from ipad or windows pc. I am on Netgear WGR614v9. This is my settings.xml.
Your help will be greatly appreciated. Thanks again!
<settings>
<setting id="LCD_DRIVER" value="none" />
<setting id="NET2_DNS1" value="" />
<setting id="NET2_DNS2" value="" />
<setting id="NET2_DNS3" value="" />
<setting id="NET2_GATEWAY" value="" />
<setting id="NET2_HIDDEN" value="false" />
<setting id="NET2_IFACE" value="wlan0" />
<setting id="NET2_IPADDRESS" value="" />
<setting id="NET2_NETWORK" value="WLAN" />
<setting id="NET2_PASSPHRASE" value="mypwd" />
<setting id="NET2_PREFIXLEN" value="24" />
<setting id="NET2_SECURITY" value="WPA/WPA2" />
<setting id="NET2_SSID" value="mywifi" />
<setting id="NET_DNS1" value="0.0.0.0" />
<setting id="NET_DNS2" value="" />
<setting id="NET_DNS3" value="" />
<setting id="NET_GATEWAY" value="" />
<setting id="NET_HIDDEN" value="false" />
<setting id="NET_HOSTNAME" value="openelec" />
<setting id="NET_IFACE" value="wlan0" />
<setting id="NET_IPADDRESS" value="0.0.0.0" />
<setting id="NET_NETWORK" value="WLAN" />
<setting id="NET_PASSPHRASE" value="mypwd" />
<setting id="NET_PREFIXLEN" value="24" />
<setting id="NET_SECURITY" value="WPA/WPA2" />
<setting id="NET_SSID" value="mywifi" />
<setting id="SABNZBD_START" value="false" />
<setting id="SAMBA_START" value="true" />
<setting id="TRANSMISSION_AUTH" value="false" />
<setting id="TRANSMISSION_IP" value="" />
<setting id="TRANSMISSION_PWD" value="openelec" />
<setting id="TRANSMISSION_START" value="false" />
<setting id="TRANSMISSION_USER" value="openelec" />
<setting id="TVHEADEND_START" value="false" />
<setting id="UPDATE_AUTO" value="auto" />
<setting id="WAKEUP_MUSICDBUPDATE" value="false" />
<setting id="WAKEUP_VIDEODBUPDATE" value="false" />
<setting id="X11_KEYMAP" value="gb" />
<setting id="X11_KEYMAP2" value="gb" />
</settings>
The administrator has disabled public write access.
  • Page:
  • 1
  • 2

Our Sponsors & Partners

arctic_logo