Results 1 to 3 of 3

Thread: Does anybody know how to read the radiostrength in VB6 or .NET???

  1. #1
    Join Date
    Oct 2004
    Location
    Haarlem
    Posts
    2

    Does anybody know how to read the radiostrength in VB6 or .NET???

    Hi All!

    I'm wondering if anybody can help me...
    Does anybody know how to read the radio-values from my WL-100g?? I have to write a little program that we can use to perform site-surveys on certain points.

    I'm using VB6 or .NET on (sorry) Windows 2000.

    Thanks for the trouble...

  2. #2
    Join Date
    Sep 2004
    Location
    NL
    Posts
    206
    simply search the MSDN libraries:

    http://msdn.microsoft.com/library/de...yFunctions.asp

    and

    http://msdn.microsoft.com/library/de...02_11_RSSI.asp

    or if you don't have Windows CE

    http://msdn.microsoft.com/library/de...f8bc18.xml.asp (Windows DDK)

    Or use WMI solution

    Code:
    Imports System.Management
    
    Public Function GetSignalStrength() As String
    On Error GoTo oops
    
    Dim query As ManagementObjectSearcher
    Dim Qc As ManagementObjectCollection
    Dim Oq As ObjectQuery
    Dim Ms As ManagementScope
    Dim Co As ConnectionOptions
    Dim Mo As ManagementObject
    Dim outp As String
    
    Co = New ConnectionOptions
    Ms = New ManagementScope("root\wmi")
    Oq = New ObjectQuery("SELECT * FROM MSNdis_80211_ReceivedSignalStrength Where active=true")
    query = New ManagementObjectSearcher(Ms, Oq)
    Qc = query.Get
    outp = ""
    
    For Each Mo In query.Get
    outp = outp & Mo("Ndis80211ReceivedSignalStrength") & " "
    ISIPActive = Mo("Active")
    Next
    
    Return Trim(outp)
    Exit Function
    oops:
    Return Err.Description
    End Function

    Why be sorry for W2K?? I really like working with it, should be a bit cheaper though.
    Last edited by brubber; 15-11-2004 at 20:39.
    Brubber

    WL-500g, WL-138g, WL-160g

  3. #3
    Join Date
    Oct 2004
    Location
    Haarlem
    Posts
    2
    Thanks Brubber!

    I'll have a go with this!
    I used to work alot with VB6 and am now checking .NET out. I'm certainly going to give WMI a try!

    Thanks again!

Similar Threads

  1. Replies: 6
    Last Post: 18-05-2005, 18:42
  2. Can't read webmail (hotmail yahoo mail, etc)
    By RossiKwan in forum WL-500g Q&A
    Replies: 8
    Last Post: 12-05-2005, 10:57
  3. ipkg implementation; small read-write partition
    By Veri in forum WL-500g Custom Development
    Replies: 1
    Last Post: 12-06-2004, 13:39
  4. IMPORTANT READ THIS FIRST BEFORE POSTING IN THIS FORUM!!
    By Antiloop in forum WL-500g/WL-500gx Tutorials
    Replies: 0
    Last Post: 02-12-2003, 20:16

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •