Solved

Signal Strength, Visual Basic.net, Ndis80211ReceivedSignalStrength, WMI, No istances available

Posted on 2004-09-17
15
2,222 Views
Last Modified: 2013-12-09
Hi.
I'm testing the solution "Visual Basic, WMI and WiFi Signal Strength" asked by Jenn3 and solved by Mikal613.

I have an Intel(R) Pro/Wireless LAN PC Card and Windows 2000. The card is working correctly.

Running the solutions, and using a break point to intercept the cycle, I've noted it never stop inside the loop.

It exit the "For .. next" cycle without executing the instructions inside.
No errors are reported.

After this test, I've checked the WMI CIM Studio, and I've noted that "MSNdis80211ReceivedSignalStrength" istance is not available.
To be sure that the PC Card work correctly I've done two test:
1. The intel PROSet II PC Card manager report the signal strength correctly
2. The WMI CIM Studio istances correctly the MSNdisLinkSpeed, it list the right device number and, double-cliccking on the "Intel(R) Pro/Wireless LAN PC Card" link, it correctly shows the speed.

Note that I've installed all the PC Card'drivers including the *.mof files to update WMI.

Thank you.
0
Comment
Question by:LogicaConsulting
  • 7
  • 6
15 Comments
 
LVL 48

Expert Comment

by:Mikal613
ID: 12102548
Whats the question?
0
 

Author Comment

by:LogicaConsulting
ID: 12102632
Excuse me, the question is:
Why it is not avalaible the instance ?
What can I do to activate the instance ?
0
 
LVL 48

Expert Comment

by:Mikal613
ID: 12102715
take a look at this

http://ramp.ucsd.edu/pawn/wrapi/
0
 

Author Comment

by:LogicaConsulting
ID: 12103541
Thank you for all,
this site looks like good but I've some problem to check the suggested solution:
- I work on Windows2000, instead of WindowsXP
- I work using Visual Basic.net instead of Visual C++
- I work using Visual Studio.net instead of Visual Studio 6.0
- My compiler shows messages like:
    "error C3861: 'pQueryOid': identifier not found, even with argument-dependent lookup"
    "error C3861: 'IOCTL_NDISUIO_SET_OID_VALUE': identifier not found, even with argument-dependent lookup"
and so on

So, the solution seems good but not very useful in a short time. I need time to read the source code and adapt it to a VC++.net solution. I have no time.

Don't you know a VB.net solution ?
Instead of a VB solution, a VC++.net is good enough.

Hi.

0
 
LVL 48

Expert Comment

by:Mikal613
ID: 12103619
0
 

Author Comment

by:LogicaConsulting
ID: 12103911
I've exactly started from this code:
   Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        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

        Try
            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 = ""
            MsgBox("Inizio")

            For Each Mo In query.Get
                outp = outp & Mo("Ndis80211ReceivedSignalStrength") & " "
                'ISIPActive = Mo("Active")
                MsgBox(Mo("Ndis80211ReceivedSignalStrength"))
            Next

            MsgBox("Fine")

        Catch ex As Exception
            MsgBox(ex.Message)
        End Try
       
    End Sub
End Class

And it never show me the "Ndis80211ReceivedSignalStrength" MsgBox.

I think that the problem is in the WMI Studio that doesn't permit to me to do any istances of the "MSNdis80211ReceivedSignalStrength" class.
I think that but I don't understand where I miss something.


0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 48

Expert Comment

by:Mikal613
ID: 12103954
you have a WMI provider for this card ?
0
 

Author Comment

by:LogicaConsulting
ID: 12104058
What is WMI provider.
I've downloaded all the WMI tools listed in the Microsoft site.
Is there any other SW to download ? Where is it ?
0
 
LVL 48

Expert Comment

by:Mikal613
ID: 12104136
0
 

Author Comment

by:LogicaConsulting
ID: 12104247
I have to read all the documents you have suggested.

I'm out of the office for the next 3 days, and so I'll tell you something on the next friday.

For the moment I only can say: "thak's a lot".

Best regards.
0
 
LVL 48

Expert Comment

by:Mikal613
ID: 12104317
no problem
0
 

Author Comment

by:LogicaConsulting
ID: 12259983
OK, I red all the documents.
After that, I think that a WMI provider is not necessary. I don't want to develope a driver or a service.

I only want to read the Signal Strength.
Now, I'm trying to read this information using NDIS 5.1, but it's not very simple.
0
 
LVL 48

Accepted Solution

by:
Mikal613 earned 500 total points
ID: 12262150
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Preface: This article is part of a series focused on cross platform mobile app development (specifically Android and iOS) using the Alloy framework and Titanium Studio made by Appcelerator (https://www.appcelerator.com/). This article presumes a wor…
Once again I push the limits of my phone.  An introduction to the Android Google Now Launcher.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now