Reply
Thread Tools
systemcrash's Avatar
Posts: 74 | Thanked: 27 times | Joined on Jun 2010 @ France
#11
That's the feature that was missing! Thanks!

I'll be glad to test it.
 
Posts: 5 | Thanked: 1 time | Joined on Oct 2009
#12
Hi,

I use several wi-fi connections at home and at work.
I will be happy to test this for you.

Regards,
Eduardo
 
Posts: 567 | Thanked: 2,963 times | Joined on Oct 2009
#13
ok, so going through these posts, things I will probably implement:
1.Some sort of minimum signal strength setting, not sure exactly how yet.
2.An optional shell script that will be run for each AP on connect that can do whatever you want such as displaying a notification or running a curl instance.
3.For scanning, I need to find out how wlancond and libicd-network-wlan report signal strength and detect that the network you are on is no longer visible and figure out how I can implement the "detect a higher priority WiFi network and connect to it" feature.
4.Not sure exactly how I can do priority-by-essid easily

Have to figure out the best way to make all this configurable in a way that's easy to use...

Must verify if lower dB means lower signal strength or higher signal strength.

Not going to do anything with /etc/network/if-*.d/ or with 3G either as my project only touches the WiFi plugin and not icd2 itself.

All these feature requests and options and things are making the complex more and more complex which is exactly what my copy of "User Interface Design for Programmers" says NOT to do

As for the offers of testing (and providing useful logs), great, what I need done at this point is this:
1.Grab http://www.cncmods.net/files/icd-wlan-log.zip
2.Rename /usr/lib/libicd_network_wlan.so to libicd_wlan.so
3.Put my libicd_network_wlan.so into /usr/lib (source is included if you want to see what it does)
4.Reboot the phone to get the new logs going
5.Go to an area where there are at least 2 networks you have connected to before
6.Go to a point outside those networks where you are not connected to WiFi but instead to 2G/3G.
7.Open up xterm on the phone and delete /home/user/wlan.log so you start the test with a clean slate.
8.Move into the range of the WiFi networks
9.Wait for it to connect to WiFi.
10.Move such that you can see a different WiFi network. It should stay connected to the one you first connected to
11.Move out of range of the WiFi network you are connected to whilst still being in range of another one you can connect to automatically. It should switch and connect to that one.
12.If you can, move from where you are to an area with an AP that you can switch off (whilst still being in range of another AP) and connect to the one you can switch off. Then turn off that AP and note whether it connects to WiFi or to 3G, then
12.Move from there back to an area with only 3G visible, it should disconnect from WiFi.
13.Having done this, copy /home/user/wlan.log to some other file. Then delete libicd_network_wlan.so, rename libicd_wlan.so back to libicd_network_wlan.so and reboot the phone again. Then I need the wlan.log file you copied.

Any other testing you want to do would also be appreciated, but please make a note of what steps you took in the testing. I am trying to make sure I fully understand the communications between icd2 and libicd-network-wlan in the various possible circumstances so that I can figure out the best way to implement icd-wlan-priority.
 
systemcrash's Avatar
Posts: 74 | Thanked: 27 times | Joined on Jun 2010 @ France
#14
Originally Posted by jonwil View Post
2.Rename /usr/lib/libicd_network_wlan.so to libicd_wlan.so
I have no libicd_network_wlan.so in /usr/lib. I just have libicd_dbus, libicd_log and libicd_settings.

Neither it is on /lib.

Any idea?
 
Posts: 567 | Thanked: 2,963 times | Joined on Oct 2009
#15
oops, that should have been /usr/lib/icd2 and not /usr/lib. So all lib files should go in /usr/lib/icd2
 
nicolai's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#16
 
systemcrash's Avatar
Posts: 74 | Thanked: 27 times | Joined on Jun 2010 @ France
#17
Thanks for your answers jonwil and nicolai.

I made a first try and it is not connecting to any wireless network. Neither automatically nor manually (actually, I don't even get the window with the available networks to pick one).

Neither I have the /home/user/wlan.log file.
 
Posts: 567 | Thanked: 2,963 times | Joined on Oct 2009
#18
you should have /usr/lib/icd2/libicd_network_wlan.so (my file) and /usr/lib/icd2/libicd_wlan.so (the Nokia file).
Try doing lsof in xterm to see that icd2 has loaded both .so files.
 
systemcrash's Avatar
Posts: 74 | Thanked: 27 times | Joined on Jun 2010 @ France
#19
OK. So that's the problem. I renamed Nokia's file to some other name, not exactly what you proposed.

Unluckily my N900 ran out of battery, so I'll have to wait until I can re-charge it again. :-(
 
systemcrash's Avatar
Posts: 74 | Thanked: 27 times | Joined on Jun 2010 @ France
#20
I finally made it work. I sent you the log file in a private message.
 
Reply


 
Forum Jump


All times are GMT. The time now is 13:28.