How to monitor the connection? (english)
Hello, First, sorry for posting in English, but my German is rather flaky (at best). Would it be possible to have an userland tool monitoring the status of wireless reception without polling? I'm thinking along the lines of: the wireless driver (or something else) to signal "I've lost reception from AP X!" and an application to be capable to intercept the signal (something like this is present in windows - although it might be accomplished via polling)... I'm not very familiar with wireless internals, but I'd assume that the driver would have a status update (in /proc/net/wireless or via devfs).. I'm thinking to use such mechanism as alternative to scripts like wlandetect. This would allow easy(ier), automatic wireless configuration (eliminate the need of loading profiles just to change the wireless config).. Thank you, Laur ps: Reply in German is ok :) -- Laur Ivan Tel : +353-1-6674336 Software Design Engineer eMail: laur.ivan@corvil.com Corvil Ltd. ------------ CONFIDENTIAL COMMUNICATION This e-mail and any attachments are confidential. If you have received this e-mail and any attachment in error, please delete it from your systems without copying or forwarding it, and notify Corvil by telephone at +353-1-677 4336 or by e-mail to info@corvil.com Accessing or opening this email and any attachments is at your own risk.
On Sun, Jun 13, 2004 at 01:35:23PM +0100, Laur Ivan wrote:
Hello,
First, sorry for posting in English, but my German is rather flaky (at best).
Would it be possible to have an userland tool monitoring the status of wireless reception without polling? I'm thinking along the lines of: the wireless driver (or something else) to signal "I've lost reception from AP X!" and an application to be capable to intercept the signal (something like
ifplugd.
I'm thinking to use such mechanism as alternative to scripts like wlandetect. This would allow easy(ier), automatic wireless configuration (eliminate the need of loading profiles just to change the wireless config)..
I am using ifplugd to detect my cable LAN link and disable WLAN in this case. ifplugd is also able to detect association with an AP on a wireless link.
CONFIDENTIAL COMMUNICATION This e-mail and any attachments are confidential. If you have received this e-mail and any attachment in error
Hm, have i?
please delete it from your systems without copying or forwarding it, and notify Corvil by telephone
No way. -- Stefan Seyfried
On Monday 14 June 2004 00:41, Stefan Seyfried wrote: ...
I am using ifplugd to detect my cable LAN link and disable WLAN in this case. ifplugd is also able to detect association with an AP on a wireless link.
cool! thanks a mill. I'll have a look. Btw, if anyone is interested in python bindings to iwlib.. I wrote some (with swig, of course :))
CONFIDENTIAL COMMUNICATION This e-mail and any attachments are confidential. If you have received this e-mail and any attachment in error
Hm, have i?
please delete it from your systems without copying or forwarding it, and notify Corvil by telephone
No way.
:)))))))
-- Stefan Seyfried
Cheers, Laur
Hallo Liste, nachdem ich auf meiner USB-Festplatte ReiserFS-Partitionen angelegt hatte ließen die sich zwar noch mounten (jedenfalls sagt mount das), darauf zugreifen klappte aber nicht mehr. Nach einigem Herumprobieren hab ich die Partitionen neu mit EXT3 angelegt und die Sache lief. Das ganze nochmal, wieder ging ReiserFS nicht, EXT3 aber schon. Kennt jemand das Prob ? (Kann natürlich auch mit EXT3 leben) Gruß, Jens
Hallo Jens, hallo Leute, Am Montag, 21. Juni 2004 22:23 schrieb jc.keil@gmx.net: ^^^^^^^^^^^^^^^ Könntest Du bitte Deinen Namen im Absender eintragen? Sieht in der Mailübericht irgendwie netter aus ;-)
nachdem ich auf meiner USB-Festplatte ReiserFS-Partitionen angelegt hatte ließen die sich zwar noch mounten (jedenfalls sagt mount das), darauf zugreifen klappte aber nicht mehr. Nach einigem Herumprobieren hab ich die Partitionen neu mit EXT3 angelegt und die Sache lief. Das ganze nochmal, wieder ging ReiserFS nicht, EXT3 aber schon. Kennt jemand das Prob ? (Kann natürlich auch mit EXT3 leben)
Hmm, seltsam. Findet sich in /var/log/messages irgendwas interessantes zum Thema? Gruß Christian Boltz PS: Ich bevorzuge auch ext3, nachdem ich in suse-linux schon des öfteren von ReiserFS-Problemen, aber sehr selten von Schwierigkeiten mit ext3 gelesen habe. Klar, oft ist auch die Hardware schuld (Plattenfehler) und ReiserFS ist da wohl empfindlicher, aber das nützt mir im Zweifelsfall auch nix ;-) -- Ich verlas mich. Die Dokumentation ist devel und nicht unstable, daher kann wohl nur ein kyrillischer Zeichensatz oder gar ein inhaltlicher Fehler vorkommen. Obwohl... Man könnte sie unter Windows 95 lesen, damit sie abstürzt. Das wäre aber OT. [Ferdinand Ihringer in suse-linux]
Hallo Christian, hallo Liste Nachtrag zu dem Prob mit ReiserFS. Hier der Auszug aus /var/log/messages für die ReiserFS-Partitionen Jun 21 14:53:05 bayes kernel: FAT: bogus number of reserved sectors Jun 21 14:53:05 bayes kernel: VFS: Can't find a valid FAT filesystem on dev sda1. Jun 21 14:53:05 bayes kernel: VFS: Can't find ext2 filesystem on dev sda1. Jun 21 14:53:05 bayes submountd: mount failure, Invalid argument (Nebenbei, die Filesysteme waren ok. fsck ...) Aber hab mich vielleicht zu früh gefreut. Zwar scheinen alle EXT3 Partitionen bisher gut zu funktionieren, allerdings tauchen in meinen /var/log/messages folgende Mitteilungen auf, sobald ich ein Verzeichnis geöffnet habe Jun 22 16:22:27 bayes kernel: EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended Jun 22 16:22:32 bayes kernel: FAT: bogus number of reserved sectors Jun 22 16:22:32 bayes kernel: VFS: Can't find a valid FAT filesystem on dev sda1. Jun 22 16:22:32 bayes kernel: EXT2-fs warning (device sda1): ext2_fill_super: mounting ext3 filesystem as ext2 Das ganze läuft also nur deshalb, weil die Partitionen ext2-gemountet werden ? Hat submount ein Problem mit Journaling Filesystemen ? Hatte vorher nur EXT2-Partitionen auf der USB-Platte und die funktionierten. Gruß, Jens
Hallo Jens, hallo Leute, Am Dienstag, 22. Juni 2004 18:07 schrieb jc: ^^ Vom Regen in die Traufe? *g*
Nachtrag zu dem Prob mit ReiserFS. Hier der Auszug aus /var/log/messages für die ReiserFS-Partitionen
Jun 21 14:53:05 bayes kernel: FAT: bogus number of reserved sectors Jun 21 14:53:05 bayes kernel: VFS: Can't find a valid FAT filesystem on dev sda1. Jun 21 14:53:05 bayes kernel: VFS: Can't find ext2 filesystem on dev sda1. Jun 21 14:53:05 bayes submountd: mount failure, Invalid argument
Da werden munter mehrere Dateisysteme durchprobiert. FAT, ext2 und vielleicht noch weitere, die oberhalb dieser Meldungen stehen. Allerdings scheint ReiserFS nicht dabei zu sein, was das Problem erklärt.
Aber hab mich vielleicht zu früh gefreut. Zwar scheinen alle EXT3 Partitionen bisher gut zu funktionieren, allerdings tauchen in meinen /var/log/messages folgende Mitteilungen auf, sobald ich ein Verzeichnis geöffnet habe
Jun 22 16:22:27 bayes kernel: EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended Jun 22 16:22:32 bayes kernel: FAT: bogus number of reserved sectors Jun 22 16:22:32 bayes kernel: VFS: Can't find a valid FAT filesystem on dev sda1.
Es wird also kein FAT-Dateisystem auf sda1 gefunden, was auch nicht wirklich überrascht, weil...
Jun 22 16:22:32 bayes kernel: EXT2-fs warning (device sda1): ext2_fill_super: mounting ext3 filesystem as ext2
... es gerade als ext2 gemountet wurde. So langsam misfällt mir submount...
Das ganze läuft also nur deshalb, weil die Partitionen ext2-gemountet werden ? Hat submount ein Problem mit Journaling Filesystemen ? Hatte vorher nur EXT2-Partitionen auf der USB-Platte und die funktionierten.
Submount scheint noch mehr durcheinander zu werfen. Mounte mal ganz normal: mount -t ext3 /dev/sda1 /mnt Wenn das klappt, solltest Du das Abschalten von submount in Erwägung ziehen - siehe SDB-Artikel "revert_from_subfs" (oder so ähnlich) Gruß Christian Boltz -- "Microsoft spel chekar worgs grate!"
On Wed, 23 Jun 2004 00:18:04 +0200
Christian Boltz
Nachtrag zu dem Prob mit ReiserFS. Hier der Auszug aus /var/log/messages für die ReiserFS-Partitionen
Jun 21 14:53:05 bayes kernel: FAT: bogus number of reserved sectors Jun 21 14:53:05 bayes kernel: VFS: Can't find a valid FAT filesystem on dev sda1. Jun 21 14:53:05 bayes kernel: VFS: Can't find ext2 filesystem on dev sda1. Jun 21 14:53:05 bayes submountd: mount failure, Invalid argument
Da werden munter mehrere Dateisysteme durchprobiert. FAT, ext2 und vielleicht noch weitere, die oberhalb dieser Meldungen stehen.
Allerdings scheint ReiserFS nicht dabei zu sein, was das Problem erklärt.
hatte das selbe problem. submount kann nichts dafuer, es versucht die hd gemäss /etc/hotplug/hotplug.subfs.functions zu mounten mit dem dateisystem fs=floppyfss. d.h. es werden vfat and ext2 probiert (http://submount.sourceforge.net/) . nach folgender aenderung in /etc/hotplug/hotplug.subfs.functions funktioniert es mit auch mit reiserfs und anderen: desktop=`get_type $device` fstype=fs\=floppyfss, fsoptions=sync,noexec case $desktop in cdrom|cdwriter|dvd) fstype=fs\=cdfss, fsoptions=ro,exec ;; floppy|hdd_camera) # zeile 93: hdd_usb entfernt #everything is fine ;; *) fstype=fs\=auto, # zeile 97: filesystemtype auto desktop=hdd fsoptions=sync,noexec ;; esac danach hotplug mit killall -SIGHUP hotplug neu starten et voila! gruss jonas
hallo jonas, hallo liste dein hinweis hat das prob mit reiserfs behoben. nochmal danke. das ganze lag wirklich am hotplug-skript. die usb-platte wird jetzt korrekt mit reiserfs gemountet. allerdings wird die festplatte jetzt alle 5 sec aufgeweckt und im syslog tauchen die folgenden meldungen auf Jun 24 16:52:13 bayes kernel: ReiserFS: sda1: found reiserfs format "3.6" with standard journal Jun 24 16:52:13 bayes kernel: ReiserFS: sda1: using ordered data mode Jun 24 16:52:13 bayes kernel: reiserfs: using flush barriers Jun 24 16:52:13 bayes kernel: ReiserFS: sda1: journal params: device sda1, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30 Jun 24 16:52:13 bayes kernel: ReiserFS: sda1: checking transaction log (sda1) Jun 24 16:52:13 bayes kernel: reiserfs: disabling flush barriers on sda1 Jun 24 16:52:13 bayes kernel: ReiserFS: sda1: Using r5 hash to sort names commiting intervall von reiserfs ? merkwürdigerweise hört dieses verhalten nach einem umount nicht auf. was passiert hier ? gruß, jens
On Monday 14 June 2004 00:41, Stefan Seyfried wrote:
ifplugd.
I'm thinking to use such mechanism as alternative to scripts like wlandetect. This would allow easy(ier), automatic wireless configuration (eliminate the need of loading profiles just to change the wireless config)..
I am using ifplugd to detect my cable LAN link and disable WLAN in this case. ifplugd is also able to detect association with an AP on a wireless link.
.. I had a look at ifplugd. It does not mention the possibility of reconfiguring the wireless on AP change. but waproamd does at some extent. Still, I'm looking rather for a tool capable of reconfiguring the wireless connection if I go out of an AP's range (and within another's..) :) Cheers, Laur
On Mon, Jun 14, 2004 at 03:08:46PM +0100, Laur Ivan wrote:
On Monday 14 June 2004 00:41, Stefan Seyfried wrote:
I am using ifplugd to detect my cable LAN link and disable WLAN in this case. ifplugd is also able to detect association with an AP on a wireless link.
.. I had a look at ifplugd. It does not mention the possibility of reconfiguring the wireless on AP change. but waproamd does at some extent. Still, I'm looking rather for a tool capable of reconfiguring the wireless connection if I go out of an AP's range (and within another's..) :)
ok, ifplugd is not the right tool for this. I have not tried waproamd but thought (from what i have heard / read) that it could achieve this. Sorry, i don't have a solution right now, but would be interested if you find one :-) good luck -- Stefan Seyfried
On Wednesday 16 June 2004 07:44, Stefan Seyfried wrote:
On Mon, Jun 14, 2004 at 03:08:46PM +0100, Laur Ivan wrote:
On Monday 14 June 2004 00:41, Stefan Seyfried wrote:
I am using ifplugd to detect my cable LAN link and disable WLAN in this case. ifplugd is also able to detect association with an AP on a wireless link.
.. I had a look at ifplugd. It does not mention the possibility of reconfiguring the wireless on AP change. but waproamd does at some extent. Still, I'm looking rather for a tool capable of reconfiguring the wireless connection if I go out of an AP's range (and within another's..) :)
ok, ifplugd is not the right tool for this. I have not tried waproamd but thought (from what i have heard / read) that it could achieve this. Sorry, i don't have a solution right now, but would be interested if you find one :-)
Got a reply from Jean T. and he suggested something based on iwevent :). This looks easy enough and I'll try to do a python prototype this week :) Cheers, Laur
participants (6)
-
Christian Boltz
-
jc
-
jc.keil@gmx.net
-
Jonas Meier
-
Laur Ivan
-
Stefan Seyfried