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 Sun 23 Sep 2018, 16:03
All times are UTC - 4
 Forum index » Advanced Topics » Hardware » Networking » Wireless
Wifi-TrayNet and Wifi-Scanner
Post new topic   Reply to topic View previous topic :: View next topic
Page 4 of 7 [91 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7 Next
Author Message
stemsee

Joined: 27 Jun 2013
Posts: 2262
Location: In The Way

PostPosted: Tue 12 Jun 2018, 06:00    Post subject:  

I have implemented a new feature, which I call AP-2-svg. Data identifying the AP from scan results is used to create unique svg image files. In fact I have implemented this for such situations where items can be selected from a list, such as selecting interface to use, profile to use, AP to connect to. This could and should be extended system wide. At least I may undertake to create such a distro built around this feature.

This feature has several advantages:
1) Being an image file with relevant text information and graphics a great deal of information can be represented visually, and enlarged for accessibility.

2) Any file selector or browser can be used to view/select images, and sent to a script, or have a command exectue on it. Every distro has a file manager, doesn't it?

3) It looks very attractive and neat.

4) great for touch screen operations.

Anyway, for now, this is available in Wifi-TrayNet v-2.7, along with other improvements and changes.

File selection for the svg images is done with yad --file-selection --add-preview, but rox or pcmanfm, or even viewnior could be used.

If AP-as-image Selector is activated in the main menu, then it can be used to browse and select/activate an AP found from scan data. Wifi-TrayNet will connect with the chosen AP. Also for Interface-Selection, but needs adding more info!

Wifi-TrayNet now ships with udhcpc default.script (hook script to facility successful and timely connections) and dhcpcd hook scripts in /lib/{dhcpcd,udhcpc}. Also ipinfo script, from woof-ce (modified for geometry recorder).

Iphone libs and docs are removed. Random Mac oui text moved from /opt/local/etc/oui.txt to /usr/share/ranmc/oui.txt .... thus reducing number of directories in root to /lib and /usr .

Hotspot functions have been removed from Wifi-Scanner and Wifi-TrayNet in favour of standalone Wifi-HotSpot script which now has no desktop file.

Wifi-TrayNet menu now displays icon and ssid ... so bssid (mac) has been removed and looks less cluttered/busy, to me at least. More AP information is available, with AP-as-Image Selector function.
2018-06-15-102442_668x417_scrot.png
 Description   
 Filesize   72.93 KB
 Viewed   239 Time(s)

2018-06-15-102442_668x417_scrot.png

xscreenshot-20180612T100718.png
 Description   
 Filesize   49.94 KB
 Viewed   260 Time(s)

xscreenshot-20180612T100718.png

xscreenshot-20180612T100740.png
 Description   
 Filesize   42.31 KB
 Viewed   260 Time(s)

xscreenshot-20180612T100740.png

Back to top
View user's profile Send private message MSN Messenger 
stemsee

Joined: 27 Jun 2013
Posts: 2262
Location: In The Way

PostPosted: Fri 15 Jun 2018, 05:29    Post subject:  

Things have taken a turn for the better!
Last edited by stemsee on Wed 04 Jul 2018, 04:55; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger 
stemsee

Joined: 27 Jun 2013
Posts: 2262
Location: In The Way

PostPosted: Sat 16 Jun 2018, 03:42    Post subject:  

...or have they? Ha ha ....

Wifi-TrayNet starts by checking some deps then getting interfaces and deciding dhcp (udhcpc/dhcpcd). Starts menu, performs scan and presents results, offers to connect to APs with saved profiles, or waits for AP selection from menu;
a) click on menu item 'ssid' at top
b) or Initiate Connection, opens password gui and configurator > changeap > 'ok', reloads with AP data.
c) AP-as-image selector
d) 'Extras Menu' > 'Profiles'

Still not satisfied with the order of operation.
Changed ordering of functions, because I deliberately tried to make Wifi-TrayNet resemble windows 10 wifi app which sits in the tray. What's not to like? Good question! I don't like that Wifi-TrayNet, hence forth WTN, does not provide an

1) accessible menu asap after starting up (fixed)

2) it performs first scan on first wifi card found (fixed) now manual iface selection and no auto-first-scan; in case you don't want to advertise your presence, and maybe only want to connect on usb or ethernet (fixed)(fixed) keeping with the style of Wifi-Scanner and, now obsolete, Wifi-Connection the original idea. So interface as .svg image selector opens and text selector opens which can stay open and simply selecting another interface activates it for proceeding operations. It can be left open.

3) I also don't like the error checking which parses the output of the configure and connect password gui! Which auto restarts the gui under certain circumstances, seems reasonable, but I don't like it ... Get it Right or Get Lost ... should be my motto! (not fixed).

4) I don' t like that if the connection is dropped, for instance if the mobile phone hotspot is switched off, there is no auto-polling of the connection to change the tray icon to reflect that change, presently one must manually select 'Test Connection' (for connection interface) or 'Extras Menu' > 'Test Connection' (for all interfaces). I need to use code, as does conky, to poll system ip/per interface. (not fixed). I could implement a loop to poll, but not ideal.

5) I moved around the functions in the script to follow the flow of operation but starting at the end of the script.

I had trouble with all the exported variables so now mostly written to files in tmp.

6) Also previous versions the tmp dir /tmp/Wifi-TrayNet survived after closing (fixed).

7) aploop function which monitors /tmp/WTN/ap file to trigger the pasword gui seems unreliable, hence the need for the menu item 'Initiate Connection', manual invocation of the gui. But I don't want to depend on inotify (bloat).

Last edited by stemsee on Wed 04 Jul 2018, 04:55; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger 
fredx181


Joined: 11 Dec 2013
Posts: 3382
Location: holland

PostPosted: Sat 16 Jun 2018, 12:01    Post subject:  

Hi stemsee,

Tried your latest .deb in Bionicdog and still cannot make wifi connection.
It seems to me that the profile isn't made correctly, because when I replace what's inside the profile config (in ~/wifi-connect/profiles with what's created by peasywifi it works ok.
(after restarting Wifi-Traynet and quick reconnect)
Profile created by Wifi-Traynet:
Code:
network={
   ssid="UPC44685"
   bssid="UPC44685"
   identity="UPC44685"
   password="MYPASSWD"
   key_mgmt=WPA-EAP
   eap=PEAP
   #ca_cert="/root/.wifi-connect/ca.pem"
   #phase1="peaplabel=0"
   phase2="auth=MSCHAPV2"
}

Profile created by peasywifi:
Code:
network={
ssid="UPC44685"
scan_ssid=1
psk="MYPASSWD"
proto=WPA
key_mgmt=WPA-PSK
pairwise=TKIP
group=TKIP
}

I have wpa, does your program not have an option to set to that? (couldn't find it)

EDIT: Tried also the sfs you attached above, but can't see any networks with that.

Fred

_________________
Dog Linux website
Back to top
View user's profile Send private message 
stemsee

Joined: 27 Jun 2013
Posts: 2262
Location: In The Way

PostPosted: Sun 17 Jun 2018, 17:01    Post subject:  

Hi Fred

Thanks for reporting.

I am going to send you exactly the script I am using on BD.
And from the extras menu, you can preview profiles here are the profiles I have for open network (no password and no id), and wpa2-psk (password and no id, typical mobile phone hotspot), the other supported option is peap (password and id), I personally have never encountered wpa or wep so I considered them obsolete, and with WPA3 just released confirming my observation. Therefore if you enter a password and id the script builds a config for peap two phase authentication, which is what you seem to have done. Maybe I should include wpa or ':RO' id field for wpa2.

Did you also not see any networks with Wifi-Scanner?

This is the actual script i am connecting with on BionicDog to post this
2018-06-17-215246_502x298_scrot.png
 Description   open network
 Filesize   26.36 KB
 Viewed   183 Time(s)

2018-06-17-215246_502x298_scrot.png

2018-06-17-213222_598x205_scrot.png
 Description   wpa2-psk
 Filesize   25.42 KB
 Viewed   183 Time(s)

2018-06-17-213222_598x205_scrot.png


Last edited by stemsee on Wed 04 Jul 2018, 04:56; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger 
stemsee

Joined: 27 Jun 2013
Posts: 2262
Location: In The Way

PostPosted: Mon 18 Jun 2018, 10:57    Post subject:  

I have added rudimentary wep and 'wpa no psk' support along with the wpa2 psk. But I cannot test wep/wpa no psk.

I have also re-written the autocon features, moved autocon from /etc/xdg/Startup to $HOME/Startup ... !

Last edited by stemsee on Wed 04 Jul 2018, 04:56; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger 
fredx181


Joined: 11 Dec 2013
Posts: 3382
Location: holland

PostPosted: Mon 18 Jun 2018, 13:36    Post subject:  

Hi Stemsee,

The wifi-traynet_2.8_i386.deb (you posted in Bionicdog thread) works for me to get connection with wpa, indeed by not filling in the ID (only password)
The 3.2 version you attached above doesnt work for me, also it doesn't show the networks from the tray menu as v2.8 does (I like that better, see pic). (did try Wifi-Scanner from v3.2 though, but could not make wifi connection).
Profile:
Code:
network={
   ssid="UPC44685"
   psk=2d11be1fba88e6509bbe0cffbbed025796b776b3bde9ffd455a9c57e2b079bbd
}


Need to say that v2.8 is not bug free (strange things happening, like dialogs keep coming back, cancel doesn't help) and the timeout dialogs make me nervous Confused
It can become a nice program, but basic functions need to work properly first and then think about extra or advanced functionality (just my opinion.... Wink )

Fred
Wifi-Traynet-menu.png
 Description   Wifi-Traynet menu
 Filesize   94.47 KB
 Viewed   154 Time(s)

Wifi-Traynet-menu.png


_________________
Dog Linux website
Back to top
View user's profile Send private message 
stemsee

Joined: 27 Jun 2013
Posts: 2262
Location: In The Way

PostPosted: Mon 18 Jun 2018, 19:40    Post subject:  

Menu AP items without bssid (mac address) appended ...
Closed AP and open AP scan'n'join, cancel now exits.
Timeout indicators removed except for scan'n'join gui.

changed some stuff.
2018-06-19-004656_303x554_scrot.png
 Description   
 Filesize   49.17 KB
 Viewed   133 Time(s)

2018-06-19-004656_303x554_scrot.png

2018-06-18-231418_598x430_scrot.png
 Description   
 Filesize   53.86 KB
 Viewed   134 Time(s)

2018-06-18-231418_598x430_scrot.png

2018-06-18-232554_598x430_scrot.png
 Description   
 Filesize   55.45 KB
 Viewed   133 Time(s)

2018-06-18-232554_598x430_scrot.png

Back to top
View user's profile Send private message MSN Messenger 
stemsee

Joined: 27 Jun 2013
Posts: 2262
Location: In The Way

PostPosted: Thu 21 Jun 2018, 06:32    Post subject:  

Wifi-Scanner update .... this great multi-card wifi app, now has a function update ... when only one wifi-card is used that gui stays open and scan results are updated in situ! This feature extends so that multiple-instances each with a different card work in this way, whereas multiple interfaces in one gui instance are tabbed.

Wifi-TrayNet for the moment separates into two versions, one for BionicDog, and one for BionicPup (most pups I guess). The differences are small, and both work with udhcpc on either distro.

Last edited by stemsee on Wed 04 Jul 2018, 04:57; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger 
fredx181


Joined: 11 Dec 2013
Posts: 3382
Location: holland

PostPosted: Thu 21 Jun 2018, 12:45    Post subject:  

Hi stemsee,

Tried your newest v3.4 on Bionicdog and it took me a while to find out that I had to left-click on the tray-icon to let the networks appear in the right-click menu.
Then I could get wifi connection by choosing my network, setting up profile and filling in the password (not ID).
The only choice at the profile dialog seems to be wpa2 from dropdown box, maybe add wpa, wep, peap etc... ?
And how about a help text (as menu item maybe ?)
Although I had some criticism earlier, I must say that you did a great job how you made it with the yad menu , the icons showing the strength etc...
Are the dialogs showing "More time" useful ? Can't see why.
The dialog that appears when clicking "Change interface" is placed wrong on my desktop, see attached pic, same btw for when clicking "Disconnect interface"

Hopefully others will test also, I'm just a simple user, can't test e.g. open networks or other different options.

Fred
bionicdog-20180621142704.jpg
 Description   Wrong geometry ?
 Filesize   15.44 KB
 Viewed   97 Time(s)

bionicdog-20180621142704.jpg


_________________
Dog Linux website
Back to top
View user's profile Send private message 
stemsee

Joined: 27 Jun 2013
Posts: 2262
Location: In The Way

PostPosted: Thu 21 Jun 2018, 14:37    Post subject:  

Thanks Fred!

The geometries I included are from my laptop (1920x1080), I thought that items would be at furthest placed in the bottom right corner and not beyond the borders! I should have changed my screen resolution first to 1024x768, or set all geometries to 400x400+0+0 to start with. Simply delete ~/.wifi-connect/geometry dir to start from fresh (I will remove them from next update)! 'More Time' dialogue is the geometry recorder (with invisible timeout) for allowing more time for getting the new geometry the way you want it (the gui borders on BD are thin and difficult for me to grab and resize: JWM has an editor to thicken borders; couldn't find such option for OB; geometry is recorded at the timeout, not during or after! The method used is simple and easy to implement per script and per gui.

(Misko provided a better solution which I didn't use yet, is un-intrusive and always working, but I didn't fully understand how to use it, but probably the better solution for automatic geometry recording when a gui closes.)

Most of informatics are as tooltips when cursor hovers over the tray icon ... from the start it says 'click on tray icon to scan' ... it is probably not clear enough that for feedback it is necessary to return the cursor over the tray icon! But once the user knows how it works, then no need to read all the tooltip notifications, it becomes un-intrusive.

There used to be a helpfile open (actually the script) when clicking on 'About' now changed to 'Wifi-TrayNet infos'. I will provide a help file and or tooltips for the GUIs.

Choosing 'type' is fixed at wpa2, the 'CBE' didn't work ... wep, wpa2, wpa even placing on different lines, or different separators!Maybe should have a button to open another selector ... or buttons for each type ... So user must type in the entry field, wep or wpa, or wpa2 .... Peap is automatic when password and id are used (but 'id' could be ':RO' if I implement reading the scan results line IEEE 802.11 which shows wpa2/wep/wpa/802.11 etc @line 22 of AP details.

The Configuration-&-Connection gui operates with priorities in this order;
1) changeap ... overrides connection settings, config editor can open
2) profiles ... overrides selected 'ssid' and 'password' ie connects with saved profile ... so select empty line to re-create saved profile with different password etc
3) password ... if empty for secure AP causes gui to reopen.
4) selecting eth0/1/2/3 etc and 'wired' driver lets wpa_supplicant connect the ethernet interface without a config file.

So empty fields need not be altered, as backup settings hae already been established at startup!

Also, for selecting interface all interfaces are available because of reports of some usb wifi cards being named usb0 or usb1, or eth1, or some of the other unusual naming conventions ... so this attempts to cover all eventualities, even allowing one to select an ethernet interface, but obviously for experienced users, wont work for wifi!

thanks for testing!

stemsee
Back to top
View user's profile Send private message MSN Messenger 
fredx181


Joined: 11 Dec 2013
Posts: 3382
Location: holland

PostPosted: Thu 21 Jun 2018, 15:54    Post subject:  

Hi stemsee, I can't test now but will try later to remove ~/.wifi-connect/geometry and see how it goes then.
You know that yad supports negative values for geometry ?
Btw, what is the geometry good for ?
Another thing I don't understand what it does is the selection of the .svg, maybe there's good reason but I don't see anything changed when I select different image file.
About the help, maybe good enough to add some help-text at the top of the profile setting dialog ?

Fred

_________________
Dog Linux website
Back to top
View user's profile Send private message 
stemsee

Joined: 27 Jun 2013
Posts: 2262
Location: In The Way

PostPosted: Thu 21 Jun 2018, 20:27    Post subject:  

Hi fred

The geometry is good for organising your desktop, so that any guis that open will always open in the same places and at the size last recorded. Imagine if GUIs only ever opened in the center of the screen or only where the programmer decided, giving the user no choice! What sort of experience would that be? This way you can know that after setting up the geometry of an apps guis, the user can relax knowing they will always open wherever last they recorded the geometry for, such as in the corners, or for example, the profile preview window opens alongside, or underneath the profile manager gui! Instead of forever repeating the same box dragging routine over and over again. Besides, geometry recorder can easily be switched off, then how can it bother the user? Seeing that the windows must open somewhere, might as well be where the user prefers, it is the user's desktop after all ... imho.

As for selecting AP or interface with svg files, the advantages are that an image presents more information in a readily observable image, images are colourful and decorative, they are also resizable, and are accessible by any file manager. Plus it is a nice gimmick, something different, that is also useful. However, if using only one wifi interface then why would there be any noticeable difference? Windows wifi manager in the tray shows APs for all connected cards, this gives users choice, over how they connect and utilise available hardware easily. SVG facilitates ease of use ... of course this is the first implementation I ever heard of, which makes it ground-breaking. Why would anyone object?

BTW the svg selectors only change when OK is clicked, the text box interface selector changes on selection. Again for multi card setups ... probably should only make popup, when two or more wifi interfaces are detected.

Personally I think the help would be much better at the bottom of the profile setting dialog, it makes more natural sense, like climbing a mountain, you start at the bottom, and go up! imo

Anyway, automatic network type is now implemented, 802.1X/EAP/PEAP, WEP. WPA, WPA2.

Also the id field is now greyed out except for when necessary.
2018-06-22-000540_668x351_scrot.png
 Description   
 Filesize   52.84 KB
 Viewed   71 Time(s)

2018-06-22-000540_668x351_scrot.png

2018-06-22-000355_668x351_scrot.png
 Description   
 Filesize   52.65 KB
 Viewed   74 Time(s)

2018-06-22-000355_668x351_scrot.png

2018-06-22-000334_668x351_scrot.png
 Description   
 Filesize   52.02 KB
 Viewed   72 Time(s)

2018-06-22-000334_668x351_scrot.png


Last edited by stemsee on Wed 04 Jul 2018, 04:57; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger 
fredx181


Joined: 11 Dec 2013
Posts: 3382
Location: holland

PostPosted: Fri 22 Jun 2018, 06:45    Post subject:  

Thanks stemsee for the explanations, I understand now about the geometry and the choice for icon if you have more than one card (I have only one).
Shouldn't ~/.wifi-connect/geometry be empty in the package ?
Only if I remove that folder first, the placement on the screen is good, otherwise still the same wrong placed dialogs as before for me.

The change you made now with the RO fields seems good but now no profile is created.
I think this is the part of terminal output where it goes wrong:
Code:
chmod: cannot access '/tmp/Wifi-TrayNet/netsel': No such file or directory
cp: cannot stat '/tmp/Wifi-TrayNet/netsel': No such file or directory
Successfully initialized wpa_supplicant
Failed to open config file '/tmp/qrc', error: No such file or directory
Failed to read or parse configuration '/tmp/qrc'.


Another thing I wanted to mention earlier, but forgot:
Always when starting Wifi-TrayNet for the first time it doesn't run, output:
Code:
root@live:~# '/usr/sbin/Wifi-TrayNet'
bash: cleanfinish: command not found
/tmp/traynetm: line 3: kill: (24205) - No such process
Wifi-TrayNet: no process found

Second try it runs OK.

Fred

_________________
Dog Linux website
Back to top
View user's profile Send private message 
stemsee

Joined: 27 Jun 2013
Posts: 2262
Location: In The Way

PostPosted: Fri 22 Jun 2018, 10:54    Post subject:  

Hi Fred and thanks for the great feedback!

I didn't test with an empty profiles folder, and I forgot to empty the geometry directory again! Seems there are a few things more to straighten out!

1) creating profiles reliably for every network type.
2) start with small screen geometries.
3) one instance only mechanism needs to work with cleanfinish function properly.
4) text interface selector only open when two or more wiphy cards available
5) start with geometry recording off
6) add tooltips for guis (if possible)
7) Comprehensive and accessible helpfile

I do not know about yad negative geometry values, except starting at max res and subtracting from that, but that isn't yad that is math. How does yad do it?

stemsee
Back to top
View user's profile Send private message MSN Messenger 
Display posts from previous:   Sort by:   
Page 4 of 7 [91 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Hardware » Networking » Wireless
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.1257s ][ Queries: 13 (0.0304s) ][ GZIP on ]