comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Using Socket to read wireless LAN router info page
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Using Socket to read wireless LAN router info page [message #52071] Sun, 31 December 2006 21:09 Go to next message
Andrew Cool is currently offline  Andrew Cool
Messages: 219
Registered: January 1996
Senior Member
Hi Folks,

Happy New Year!! ;-)


Santa was good to me and put in wireless broadband link at home, which
beats
the old 31kb dialup line by the proverbial country mile.

But I'm only getting 40% of the 2Mb bandwidth plan that I signed up
for, so I'm trying to gather the Signal, Noise and SNR values from the
router every minute, and plot some graphs to wave under the noses of
the Techs at my ISP. It would just be much nicer to do the reading and
plotting in IDL.)

I'm using a Linksysy Wireless-G 2.4GHz Broadband router that provides
info on
signal strength and noise on an IP address of 198.168.1.1

Now my Firefox browser can download & display that page of XHTML info,
as can a program that I wrote in Basic that uses Windows API calls to
download a URL page direct to a file.


But, I can't get IDL's Socket command to access that IP :-(

Perhaps it just can't??

I've tried a loop like:-

for port = 1,8080 do begin
socket,lun,'198.168.1.1',port,/get
end

but just can't make contact.

Is there some special syntax or port number that should be used to
contact such a beastie?

Many Thanks,

Andrew Cool
Adelaide, Australia


PS : To anyone who knows about such things, the Signal strength is
consistently about 20-22 dB
above the Noise. Is that good/bad/indifferent for 2.4GHz
wireless broadband?
Re: Using Socket to read wireless LAN router info page [message #52104 is a reply to message #52071] Tue, 09 January 2007 02:43 Go to previous messageGo to next message
Carsten Lechte is currently offline  Carsten Lechte
Messages: 124
Registered: August 2006
Senior Member
Braedley wrote:
> about the signal to noise ratio (SNR), 20dB is either sufficient, or
> more than enough, depending on if it's a voltage ratio or a power
> ratio.

A minor point: dB ratings for a certain process do not depend
on what quantity (amplitude or power) is being measured.
A 20 dB amplifier has an amplification factor of 100 in power
and an amplification factor of 10 in amplitude:

dB = 10 log10( power1/power0) or
dB = 20 log10( amplitude1/amplitude0)

This can be confusing at first.
See http://en.wikipedia.org/wiki/Decibel#Definition


chl
Re: Using Socket to read wireless LAN router info page [message #52110 is a reply to message #52071] Mon, 08 January 2007 19:36 Go to previous messageGo to next message
Braedley is currently offline  Braedley
Messages: 57
Registered: September 2006
Member
No idea wrt your socket problems, (although at first glance, port 80
would seem to be the logical choice,) but concerning your question
about the signal to noise ratio (SNR), 20dB is either sufficient, or
more than enough, depending on if it's a voltage ratio or a power
ratio. If your SNR is given as a voltage ratio, then 20dB corresponds
to a voltage ratio of 10:1 signal:noise, which is enough for digital
systems (it would be very noticeable if the signal was analog audio,
for instance). If it's a power ratio, things only get better as that
corresponds to a voltage ratio of 100:1 signal:noise. According to the
wiki, the instantaneous dynamic range of the human ear is about 30dB
(power), so if this signal were analog audio, the noise would be
detectable, but wouldn't be overly noticeable.
That, ladies and gentlemen, concludes our electrical engineering lesson
for the day.

Braedley

andrew.cool@dsto.defence.gov.au wrote:
> Hi Folks,
>
> Happy New Year!! ;-)
>
>
> Santa was good to me and put in wireless broadband link at home, which
> beats
> the old 31kb dialup line by the proverbial country mile.
>
> But I'm only getting 40% of the 2Mb bandwidth plan that I signed up
> for, so I'm trying to gather the Signal, Noise and SNR values from the
> router every minute, and plot some graphs to wave under the noses of
> the Techs at my ISP. It would just be much nicer to do the reading and
> plotting in IDL.)
>
> I'm using a Linksysy Wireless-G 2.4GHz Broadband router that provides
> info on
> signal strength and noise on an IP address of 198.168.1.1
>
> Now my Firefox browser can download & display that page of XHTML info,
> as can a program that I wrote in Basic that uses Windows API calls to
> download a URL page direct to a file.
>
>
> But, I can't get IDL's Socket command to access that IP :-(
>
> Perhaps it just can't??
>
> I've tried a loop like:-
>
> for port = 1,8080 do begin
> socket,lun,'198.168.1.1',port,/get
> end
>
> but just can't make contact.
>
> Is there some special syntax or port number that should be used to
> contact such a beastie?
>
> Many Thanks,
>
> Andrew Cool
> Adelaide, Australia
>
>
> PS : To anyone who knows about such things, the Signal strength is
> consistently about 20-22 dB
> above the Noise. Is that good/bad/indifferent for 2.4GHz
> wireless broadband?
Re: Using Socket to read wireless LAN router info page [message #52178 is a reply to message #52104] Wed, 17 January 2007 16:12 Go to previous message
Braedley is currently offline  Braedley
Messages: 57
Registered: September 2006
Member
Haha, you're right. I must not have been thinking. Boy do I suddenly
feel stupid.

Braedley

PS: In any case, 20dB should still be good enough for digital
transmissions.

On Jan 9, 6:43 am, Carsten Lechte <c...@toppoint.de> wrote:
> Braedley wrote:
>> about the signal to noise ratio (SNR), 20dB is either sufficient, or
>> more than enough, depending on if it's a voltage ratio or a power
>> ratio. A minor point: dB ratings for a certain process do not depend
> on what quantity (amplitude or power) is being measured.
> A 20 dB amplifier has an amplification factor of 100 in power
> and an amplification factor of 10 in amplitude:
>
> dB = 10 log10( power1/power0) or
> dB = 20 log10( amplitude1/amplitude0)
>
> This can be confusing at first.
> Seehttp://en.wikipedia.org/wiki/Decibel#Definition
>
> chl
Re: Using Socket to read wireless LAN router info page [message #52217 is a reply to message #52071] Thu, 11 January 2007 08:20 Go to previous message
Allan Whiteford is currently offline  Allan Whiteford
Messages: 117
Registered: June 2006
Senior Member
Andrew,

It will be port 80 if your browser can see it unless you're giving an
explicit port number in the URL in your browser.

Something like this will just about work but is a bit sloppy:

socket,lun,'198.168.1.1',80,/get_lun
printf,lun,'GET /'
a=''
while not eof(lun) do begin
readf,lun,a
print,a
end

However, most standard routers use 192.168.1.1 rather than 198.168.1.1,
maybe worth checking. This could be your problem.

Note the key line "printf,lun,'GET /'" is what selects the webpage,
please see RFC2616 for really boring details:

http://www.w3.org/Protocols/rfc2616/rfc2616.html

A more properly formed command might be something like:

GET http://198.168.1.1/directory/file.html HTTP/1.0

but most things will tell you what you want to know via simply "GET /"
or "GET /page.html". HTTP/1.1 seems to be more complicated and I've
never really bothered with it.

Thanks,

Allan

andrew.cool@dsto.defence.gov.au wrote:
> Hi Folks,
>
> Happy New Year!! ;-)
>
>
> Santa was good to me and put in wireless broadband link at home, which
> beats
> the old 31kb dialup line by the proverbial country mile.
>
> But I'm only getting 40% of the 2Mb bandwidth plan that I signed up
> for, so I'm trying to gather the Signal, Noise and SNR values from the
> router every minute, and plot some graphs to wave under the noses of
> the Techs at my ISP. It would just be much nicer to do the reading and
> plotting in IDL.)
>
> I'm using a Linksysy Wireless-G 2.4GHz Broadband router that provides
> info on
> signal strength and noise on an IP address of 198.168.1.1
>
> Now my Firefox browser can download & display that page of XHTML info,
> as can a program that I wrote in Basic that uses Windows API calls to
> download a URL page direct to a file.
>
>
> But, I can't get IDL's Socket command to access that IP :-(
>
> Perhaps it just can't??
>
> I've tried a loop like:-
>
> for port = 1,8080 do begin
> socket,lun,'198.168.1.1',port,/get
> end
>
> but just can't make contact.
>
> Is there some special syntax or port number that should be used to
> contact such a beastie?
>
> Many Thanks,
>
> Andrew Cool
> Adelaide, Australia
>
>
> PS : To anyone who knows about such things, the Signal strength is
> consistently about 20-22 dB
> above the Noise. Is that good/bad/indifferent for 2.4GHz
> wireless broadband?
>
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Who have an electrical book of IDL in English?
Next Topic: NIST DLMF

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:49:03 PDT 2025

Total time taken to generate the page: 0.00722 seconds