Networking Forums

Networking Forums > Computer Networking > Linux Networking > How often "/proc/net/wireless" is updated?

Reply
Thread Tools Display Modes

How often "/proc/net/wireless" is updated?

 
 
Alex
Guest
Posts: n/a

 
      10-12-2005, 01:37 PM
I would like to monitor some wireless parameters (signal & noise level).
I know that I can read this from /proc/net/wireless.
My application has to react in "real time" to changes of these parameters
and I need to know how often the file "/proc/net/wireless" is updated by the
driver? (approximately)

Thank you!


 
Reply With Quote
 
 
 
 
Snowbat
Guest
Posts: n/a

 
      10-12-2005, 09:02 PM
Alex wrote:

> I would like to monitor some wireless parameters (signal & noise level).
> I know that I can read this from /proc/net/wireless.
> My application has to react in "real time" to changes of these parameters
> and I need to know how often the file "/proc/net/wireless" is updated by
> the driver? (approximately)


On my system it seems to be once every 100ms.

Run the following for a few seconds while waving your hand around your
wireless card (or antenna) and then check the contents of test.txt:

while true; do VAR1=`date`; VAR2=`tail -n 1 /proc/net/wireless`; echo >> test.txt $VAR1 $VAR2; done

 
Reply With Quote
 
Unruh
Guest
Posts: n/a

 
      10-12-2005, 09:52 PM
Snowbat <(E-Mail Removed)> writes:

>Alex wrote:


>> I would like to monitor some wireless parameters (signal & noise level).
>> I know that I can read this from /proc/net/wireless.
>> My application has to react in "real time" to changes of these parameters
>> and I need to know how often the file "/proc/net/wireless" is updated by
>> the driver? (approximately)


>On my system it seems to be once every 100ms.


>Run the following for a few seconds while waving your hand around your
>wireless card (or antenna) and then check the contents of test.txt:


>while true; do VAR1=`date`; VAR2=`tail -n 1 /proc/net/wireless`; echo >> test.txt $VAR1 $VAR2; done


The proc filesystem is an entry into the kernel. Ie, when you do
cat /proc/net/wireless, you start a program which collects information from
various variables in the kernel and displays them. Ie, if it has changed in
the kernel, it has changed in this display.
Exactly how often the kernel updates its variables will probably depend on
what they are.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Fwd: SPEWS DOLTS "SneakyP", "Kevin!:?)", "WindsorFox" SPAM braodbandnewsgroup] !:?) Broadband 0 11-30-2005 01:04 AM
Re: SPEWS SLIMES "WindsorFox", "Kevin-!:?)", "Spin Dryer" get the cold shoulder at broadband ng! SneakyP Broadband 0 11-29-2005 10:46 PM
Attention Plus.net Re: SPEWS DOLTS "WindsorFox", "Kevin-!:?)", "SpinDryer" SPAM broadband newsgroup !:?) Broadband 0 11-28-2005 04:28 AM
Attention Plus.Net Re: SPEWS DOLTS "WindsorFox", "Kevin-!:?)", "SpinDryer" SPAM braodband newsgroup !:?) Broadband 0 11-28-2005 03:03 AM
"hotspot" or "hot spot", "wireless" or "wi-fi" or "wi fi" ? Nic O`Neill Wireless Internet 3 02-12-2004 07:42 AM



1 2 3 4 5 6 7 8 9 10 11