Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 14 Nov 2018, 20:27
All times are UTC - 4
 Forum index » House Training » Bugs ( Submit bugs )
SNS and places with over 80-100 wifi signals
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [12 Posts]  
Author Message
Sailor Enceladus

Joined: 22 Feb 2016
Posts: 1547

PostPosted: Sun 24 Jun 2018, 10:51    Post subject:  SNS and places with over 80-100 wifi signals  

I had trouble connecting using SNS at the mall using a recently built Slacko64 with woof-CE, and found out it was because "iwlist $INTERFACE scan" cuts out all the information beyond around the 80-100th signal and then SNS borks because it only has partial information for the last one it's able to store (I think) or can't get crucial information from the bottom, or something like that.

Using frisbee, I was finally able to connect, but it took a long time because frisbee only seems to display the 30 closest of the ~100 connections, and if yours isn't one of those it chooses you're SOL. I edited a line in frisbee func from 6 5 4 3 2 1 to 9 8 7 6 5 4 3 2 1 and it was more successful it seems, or maybe I just got lucky.

In the attached example, SNS finds 108 connections but $SCANRESULT is cut-off midway through Cell 94 (though usually it cuts out the information somewhere between 80-85). Since the information is correct in rc_network_wireless_connections_log and not cut off there, perhaps there's a better way to put that into "$SCANRESULT"?
Screenshot.png
 Description   
 Filesize   22.64 KB
 Viewed   500 Time(s)

Screenshot.png

rc_network_wireless_connection_log.gz
Description  This popular location with 108 wifi signals seems too much for sns
gz

 Download 
Filename  rc_network_wireless_connection_log.gz 
Filesize  24.5 KB 
Downloaded  84 Time(s) 
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 12324
Location: Stratford, Ontario

PostPosted: Sun 24 Jun 2018, 12:09    Post subject:  

Wow. The Rocky Mountain Chocolate Factory at the New Sudbury Centre has free wifi!

It appears that you have Broadcom WiFi and are using the in-kernel b43 driver. And it looks like the adapter might have dropped its connection prematurely during the scan phase.

[Edit] See below.

I wonder if the vendor wl driver might work better.

[Correction] The RMCF access points are all encrypted. I guess that they don't want to enable two addictions at the same time.

Last edited by rcrsn51 on Sun 24 Jun 2018, 13:37; edited 1 time in total
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 12964
Location: Gatineau (Qc), Canada

PostPosted: Sun 24 Jun 2018, 13:03    Post subject:  

Chocolate and wifi. Laughing
_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
s243a

Joined: 02 Sep 2014
Posts: 1268

PostPosted: Sun 24 Jun 2018, 13:24    Post subject:  

I had a similar problem with "Network Wizard" before, where I resolved it by getting it to do more scans. I"m not sure if it is applicable here but it did take code modification.
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 12324
Location: Stratford, Ontario

PostPosted: Sun 24 Jun 2018, 13:35    Post subject:  

SNS runs the "iwlist wlan0 scan" command and dumps the output into a single variable. This may be the source of the problem.

PeasyWiFi has a slightly different approach. It dumps the output into a temporary file.
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 12324
Location: Stratford, Ontario

PostPosted: Wed 27 Jun 2018, 04:48    Post subject:  

Any update on this?
Back to top
View user's profile Send private message 
Sailor Enceladus

Joined: 22 Feb 2016
Posts: 1547

PostPosted: Wed 27 Jun 2018, 11:34    Post subject:  

@rcrsn51: PeasyWiFi v4.2 worked like a charm. I scanned for Open connections, it found 2 and I selected the right one and I was in. I brought an older Pentium M / ipw2200 laptop to the mall today too to see if it would have the same issue in SNS, but SNS always found only around 17 Cell networks using it, while the b43 one sitting right beside it found 112. On occasion, the SNS window with all the cell networks to select from would pop up on the b43 instead of saying "No networks found" and showed maybe 20-30 of them, but never worked when I tried to connect and kept trying to switch to encrypted when I had it set to None. I can only guess that the problem is possibly with b43 only, but hard to tell without having another computer that can find as many connections. Quick solution: use PeasyWiFi for free wifi. Smile
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 12324
Location: Stratford, Ontario

PostPosted: Wed 27 Jun 2018, 11:54    Post subject:  

Excellent. I suspect that the clue here is "Argument list too long".

Because of how SNS dumps the iwlist data into a variable, bash is running out of working memory and fails.

If the b43 adapter is more powerful, it collects more iwlist data and is more likely to fail.

Did you buy any chocolate to celebrate? Wink
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 11257
Location: Charleston S.C. USA

PostPosted: Wed 27 Jun 2018, 16:41    Post subject:  

Wonder if signal strength has anything to do with this.
Just because it sees a wifi signal, does not make it a Strong enough signal, to make a good connection.

There are about 4 in my location, I can pickup in a scan.
Only my WIFI network and the person next door to me, are strong enough signals.

Wonder how many of those signals are someone trying to get access to your computer.
You are in the best place for that kind of security risk.

Wonder why the mall does not have one single WIFI access for everyone in the mall.
The stores pay enough to be in the mall.

_________________
I have found, in trying to help people, that the things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected Shocked
Back to top
View user's profile Send private message 
rerwin


Joined: 24 Aug 2005
Posts: 1908
Location: Maine, USA

PostPosted: Wed 27 Jun 2018, 17:31    Post subject:  

Replaced next...
Last edited by rerwin on Wed 27 Jun 2018, 18:04; edited 1 time in total
Back to top
View user's profile Send private message 
rerwin


Joined: 24 Aug 2005
Posts: 1908
Location: Maine, USA

PostPosted: Wed 27 Jun 2018, 18:03    Post subject:  

Sailor Enceladus, et al,

I have been working on SNS today to try using a temporary file (as in peasywifi) instead of the variable.

I have a version ready for you to try. Please rename the /usr/local/simple_network_setup copies and replace them with these.

Richard
rc.network.gz
Description  SNS Rc.network - replace in /usr/local/simple_network_setup, then click to unzip.
gz

 Download 
Filename  rc.network.gz 
Filesize  5.12 KB 
Downloaded  74 Time(s) 
sns.gz
Description  SNS - replace in /usr/local/simple_network_setup, then click to unzip.
gz

 Download 
Filename  sns.gz 
Filesize  12.53 KB 
Downloaded  71 Time(s) 
Back to top
View user's profile Send private message 
rerwin


Joined: 24 Aug 2005
Posts: 1908
Location: Maine, USA

PostPosted: Sun 08 Jul 2018, 14:55    Post subject:  

Thank you, to those who have tried my modified SNS scripts.

Has anyone been able to test the above test versions of SNS in an environment of over 100 wireless networks? If so, please tell me whether the changes improve the network list.

While waiting, I have worked up a simpler way to resolve the issue, by keeping the use of the variable but filtering the iwlist output to eliminate the many lines that are not used by SNS, thus reducing the size of the variable contents -- attached. Please try them, too.

If neither of these solutions generates a complete network list, we will need to look for other factors that might cause the problem. So, I need some feedback to know how to proceed.
Richard
sns.gz
Description  sns with iwlist output filtered
Rename and replace /usr/local/simple_network_setup/sns.
Click to unzip.
gz

 Download 
Filename  sns.gz 
Filesize  12.55 KB 
Downloaded  60 Time(s) 
rc.network.gz
Description  rc.network with iwlist output filtered
Rename and replace /usr/local/simple_network_setup/rc.network.
Click to unzip.
gz

 Download 
Filename  rc.network.gz 
Filesize  5.16 KB 
Downloaded  55 Time(s) 
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [12 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Bugs ( Submit bugs )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.3205s ][ Queries: 13 (0.0338s) ][ GZIP on ]