🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #3096

Re: 802.11 signal and noise levels, speed and channel number

#3096
From: Miem
Date: Wed, 04 Oct 2006 16:56
44 lines
2703 bytes
If you can convert a VB6 to BCB code (I can't, Can some one offer a
help)  then you may use the following;

Private Sub Timer1_Timer()
    Set nicset =
GetObject("winmgmts:{impersonationLevel=impersonate}!root/wmi").InstancesOf("MSNdis_80211_ReceivedSignalStrength")
    On Error GoTo no80211Error
    For Each nic In nicset
        SignalStrengthValue =
Right(nic.Ndis80211ReceivedSignalStrength,
Len(nic.Ndis80211ReceivedSignalStrength) - 1)
        If SignalStrengthValue <> "" Then
            SendText ("S=NetSignalStrength~" & SignalStrengthValue)
        End If
        Exit For
    Next
    nicset = Nothing
    Exit Sub

no80211Error:
    SendToConsole "No 802.11 network adapters found"
    Timer1.Enabled = False
End Sub


SamishenDoncap wrote:
> Hey,
>
> When I run Windows (sorry) on my notebook, I can monitor the "Signal" and
> "Noise" levels (in dBm) of the build-in wireless network card via its "WLAN
> Card Utility" window.
>
> I want to access the same types of data (signal and noise levels on the
> wireless network adapter) from  a C++ application.
>
> Can anybody tell me how to obtain these data from a C/C++ application ?
> Which brand name, model wireless network adapter, (either in PCCard or USB)
> can provide more accurate signal and noise values?
> Do you know a 802.11 wireless network adapter with external antenna
> connection option and desirably with "high" RF output power?
> 
> Thanks
> 
> Samishen Doncap
Technical Details
Message-ID: <1159980994.113864.232840@c28g2000cwb.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!c28g2000cwb.googlegroups.com!not-for-mail
References: <4523a7be@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,e9f249d68d7812c5
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!c28g2000cwb.googlegroups.com!not-for-mail
From: "Miem" <MiemChan@gmail.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: 802.11 signal and noise levels, speed and channel number
Date: 4 Oct 2006 09:56:34 -0700
Organization: http://groups.google.com
Lines: 45
Message-ID: <1159980994.113864.232840@c28g2000cwb.googlegroups.com>
References: <4523a7be@newsgroups.borland.com>
NNTP-Posting-Host: 220.239.18.90
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1159980999 14138 127.0.0.1 (4 Oct 2006 16:56:39 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 4 Oct 2006 16:56:39 +0000 (UTC)
In-Reply-To: <4523a7be@newsgroups.borland.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7,gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: c28g2000cwb.googlegroups.com; posting-host=220.239.18.90;
   posting-account=GQ76rA0AAADAwLEb8rrvCtivnAIJeV3B