Wifi problem with starting lejos.

This is where you talk about the EV3 software itself, installation issues, and programming talk.

Moderators: roger, gloomyandy, skoehler

Wifi problem with starting lejos.

Postby marcin.kasinski » Sat Nov 16, 2013 11:56 am

I have problem with booting my Ev3.

I've created sd card and it boots fine with no wifi dongle attached to usb.

If I use wifi (edimax) I see "mindstorms starting" message all the time.

My question is how can I read logs from my card to see source of problem ?
Where the log can I find.

The same wifi card works fine with my raspberry Pi so it is not wifi adapter problem.

Aftr mounting LMS2012_EXT to my linyx system LMS2012_EXT/var/log/messages contains only old logs. I can not see new one.
Last edited by marcin.kasinski on Wed Nov 20, 2013 11:54 am, edited 1 time in total.
Regards.
Marcin Kasiński
http://itzone.com.pl
marcin.kasinski
New User
 
Posts: 20
Joined: Sat Jul 14, 2007 9:04 am

Re: Wifi problem with starting lejos.

Postby skoehler » Sat Nov 16, 2013 1:58 pm

I believe that the current startup are very simple (one thing after another), so if the brick hangs then that might mean that the wpa_supplicant can't connect. You might want to check your wpa_supplicant configuration,
skoehler
leJOS Team Member
 
Posts: 1387
Joined: Thu Oct 30, 2008 4:54 pm

Re: Wifi problem with starting lejos.

Postby marcin.kasinski » Sat Nov 16, 2013 3:15 pm

skoehler wrote:I believe that the current startup are very simple (one thing after another), so if the brick hangs then that might mean that the wpa_supplicant can't connect. You might want to check your wpa_supplicant configuration,



How abuot logs ?

Dou you know where are they placed ?
How can I read boot logs ?

I've tested many versions of wpa_supplicant conf file .

Another question.
If I run pure Mndstorm OS (without lejos SD) and I try options tab and WIFI field to connect to WIFI i can not do it. Some error icon is showed.

Is it means my wifi dongle is not supported by LEGO EV3 ? It is Edimax EW-7811Un.

I'm 100 % sure my dongle if working fine because I use it with my Raspberry PI with no problem.

I have 2 Edimax EW-7811Un. WIth both there is LEGO boot problem.
Regards.
Marcin Kasiński
http://itzone.com.pl
marcin.kasinski
New User
 
Posts: 20
Joined: Sat Jul 14, 2007 9:04 am

Re: Wifi problem with starting lejos.

Postby gloomyandy » Sat Nov 16, 2013 3:41 pm

Sounds like you do not have the WiFi setup correct. You can connect via a USB cable using IP address 10.0.1.1 (see other threads for this). The logs are not stored to the SD card. Your dongle is not supported by the standard Lego software, but I think it should be with leJOS...

If you still can't get this working, try changing your access point settings I had problems using AES with WPA2 with the released versions of the SD card.
User avatar
gloomyandy
leJOS Team Member
 
Posts: 3879
Joined: Fri Sep 28, 2007 2:06 pm
Location: UK

Re: Wifi problem with starting lejos.

Postby marcin.kasinski » Sat Nov 16, 2013 4:00 pm

gloomyandy wrote:Sounds like you do not have the WiFi setup correct. You can connect via a USB cable using IP address 10.0.1.1 (see other threads for this). The logs are not stored to the SD card. Your dongle is not supported by the standard Lego software, but I think it should be with leJOS...

If you still can't get this working, try changing your access point settings I had problems using AES with WPA2 with the released versions of the SD card.


To configure wifi I used my working version of wpa_supplicant.conf from my Raspberry PI

Code: Select all
network={
ssid="my SID"
proto=WPA2
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk="my secret password"
}


Do you think it looks OK ?

In your example there is additional ctrl_interface parameter and and proto=RSN
Code: Select all
ctrl_interface=/var/run/wpa_supplicant
# Pers
network={
        ssid="legolan"
        key_mgmt=WPA-PSK
        psk=8e9116c7665b56a95c03e3e23ec707f4cbe18fea82d620d9b85b2f79fe34cfee
        pairwise=CCMP TKIP
        group=CCMP TKIP
        proto=RSN
}


I've tested my configuration with different versions of this conf file.
Regards.
Marcin Kasiński
http://itzone.com.pl
marcin.kasinski
New User
 
Posts: 20
Joined: Sat Jul 14, 2007 9:04 am

Re: Wifi problem with starting lejos.

Postby gloomyandy » Sat Nov 16, 2013 4:33 pm

If it works on the Pi it should work on the Ev3. As I said try using a USB connection to a PC and connect via that (the EV3 is seen as a USB network card), that way you can see the logs or try changing your WiFi access point to avoid AES encryption as I think there may be a problem with that in this version of the EV3 kernel/modules.

Andy
User avatar
gloomyandy
leJOS Team Member
 
Posts: 3879
Joined: Fri Sep 28, 2007 2:06 pm
Location: UK

Re: Wifi problem with starting lejos.

Postby marcin.kasinski » Sat Nov 16, 2013 4:55 pm

gloomyandy wrote:If it works on the Pi it should work on the Ev3. As I said try using a USB connection to a PC and connect via that (the EV3 is seen as a USB network card), that way you can see the logs or try changing your WiFi access point to avoid AES encryption as I think there may be a problem with that in this version of the EV3 kernel/modules.

Andy



Can you give me link to detailed description of using a USB connection to a PC ?
I can not find it with Google ?

After connecting Ev3 to PC i can see additional hardware RNDIS / Ethernet Gadget but with no driver.
Regards.
Marcin Kasiński
http://itzone.com.pl
marcin.kasinski
New User
 
Posts: 20
Joined: Sat Jul 14, 2007 9:04 am

Re: Wifi problem with starting lejos.

Postby gloomyandy » Sat Nov 16, 2013 5:20 pm

What OS are you using? All of the systems I use have a driver for that device. If yours does not then you will need to download one. Search the forum there are a number of other people that have got this working with very little problem. There is not a lot to do, normally you just plug it in and the OS treats it as a network device obtains an IP address for it and you can connect. A similar mechanism is used to connect to a lot of Android phones...
User avatar
gloomyandy
leJOS Team Member
 
Posts: 3879
Joined: Fri Sep 28, 2007 2:06 pm
Location: UK

Re: Wifi problem with starting lejos.

Postby marcin.kasinski » Sat Nov 16, 2013 5:40 pm

gloomyandy wrote:What OS are you using? All of the systems I use have a driver for that device. If yours does not then you will need to download one. Search the forum there are a number of other people that have got this working with very little problem. There is not a lot to do, normally you just plug it in and the OS treats it as a network device obtains an IP address for it and you can connect. A similar mechanism is used to connect to a lot of Android phones...



I use windows 8.1
Regards.
Marcin Kasiński
http://itzone.com.pl
marcin.kasinski
New User
 
Posts: 20
Joined: Sat Jul 14, 2007 9:04 am

Re: Wifi problem with starting lejos.

Postby skoehler » Sat Nov 16, 2013 5:55 pm

skoehler
leJOS Team Member
 
Posts: 1387
Joined: Thu Oct 30, 2008 4:54 pm

Re: Wifi problem with starting lejos.

Postby marcin.kasinski » Sat Nov 16, 2013 6:31 pm



Thanks.

Now I can connect via USB.

Where I can find linux system logs to check source of my wifi problem ?
Regards.
Marcin Kasiński
http://itzone.com.pl
marcin.kasinski
New User
 
Posts: 20
Joined: Sat Jul 14, 2007 9:04 am

Re: Wifi problem with starting lejos.

Postby gloomyandy » Sat Nov 16, 2013 6:45 pm

dmesg...
User avatar
gloomyandy
leJOS Team Member
 
Posts: 3879
Joined: Fri Sep 28, 2007 2:06 pm
Location: UK

Re: Wifi problem with starting lejos.

Postby gloomyandy » Sat Nov 16, 2013 6:45 pm

oh and on my 8.1 system the driver is found no problem...
User avatar
gloomyandy
leJOS Team Member
 
Posts: 3879
Joined: Fri Sep 28, 2007 2:06 pm
Location: UK

Re: Wifi problem with starting lejos.

Postby marcin.kasinski » Sat Nov 16, 2013 6:56 pm

gloomyandy wrote:dmesg...


I can not find /var/log/dmesg .

Can you provide full location ?
Regards.
Marcin Kasiński
http://itzone.com.pl
marcin.kasinski
New User
 
Posts: 20
Joined: Sat Jul 14, 2007 9:04 am

Re: Wifi problem with starting lejos.

Postby gloomyandy » Sat Nov 16, 2013 6:58 pm

Sorry I thought you were a Pi user and familiar with linux. Just type the dmesg command...
User avatar
gloomyandy
leJOS Team Member
 
Posts: 3879
Joined: Fri Sep 28, 2007 2:06 pm
Location: UK

Next

Return to EV3 Software

Who is online

Users browsing this forum: No registered users and 0 guests

cron
more stuff