Re: Using Socket to read wireless LAN router info page [message #52110 is a reply to message #52071] |
Mon, 08 January 2007 19:36   |
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?
|
|
|