maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   New project: icd-wlan-priority, testers needed (https://talk.maemo.org/showthread.php?t=80450)

systemcrash 2011-12-01 13:05

Re: New project: icd-wlan-priority, testers needed
 
That's the feature that was missing! Thanks!

I'll be glad to test it.

pardal 2011-12-01 14:31

Re: New project: icd-wlan-priority, testers needed
 
Hi,

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

Regards,
Eduardo

jonwil 2011-12-02 02:55

Re: New project: icd-wlan-priority, testers needed
 
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 2011-12-02 09:35

Re: New project: icd-wlan-priority, testers needed
 
Quote:

Originally Posted by jonwil (Post 1131907)
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?

jonwil 2011-12-02 09:42

Re: New project: icd-wlan-priority, testers needed
 
oops, that should have been /usr/lib/icd2 and not /usr/lib. So all lib files should go in /usr/lib/icd2

nicolai 2011-12-02 09:45

Re: New project: icd-wlan-priority, testers needed
 
/usr/lib/icd2

nicolai

systemcrash 2011-12-02 10:14

Re: New project: icd-wlan-priority, testers needed
 
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.

jonwil 2011-12-02 10:22

Re: New project: icd-wlan-priority, testers needed
 
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 2011-12-02 10:28

Re: New project: icd-wlan-priority, testers needed
 
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 2011-12-02 16:20

Re: New project: icd-wlan-priority, testers needed
 
I finally made it work. I sent you the log file in a private message.


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

vBulletin® Version 3.8.8