School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!
Welcome to Dream.In.Code
Become an Expert!

Join 340,125 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 4,056 people online right now. Registration is fast and FREE... Join Now!



How i obtain the WIFI signal strength & SSID & BSSID

Page 1 of 1

How i obtain the WIFI signal strength & SSID & BSSID Wireless Programming Rate Topic: -----

#1 Alias bradly  Icon User is offline

  • New D.I.C Head
  • Pip
  • Group: New Members
  • Posts: 4
  • Joined: 22-November 07


Dream Kudos: 0

Post icon  Posted 22 November 2007 - 10:28 AM

Hi everyone

I have 3 AP and I want design program to get the SSID & signal strength &
BSSID(MAC Adress) for each AP

i found the some functions to obtain the SSID & signal strength for one AP :blink: ,,,


i using timer to update every 2 second


SSID
Public Sub SSID()
Try
Dim query As String = "SELECT * FROM MSNDis_80211_BSSIList WHERE Active= 'True'"

Dim searcher As Management.ManagementObjectSearcher = New Management.ManagementObjectSearcher("root/WMI", query)

Dim moc As Management.ManagementObjectCollection = searcher.Get()

Dim moe As Management.ManagementObjectCollection.ManagementObjectEnumerator = moc.GetEnumerator()
moe.MoveNext()

Dim objarr() As Management.ManagementBaseObject = CType(moe.Current.Properties("Ndis80211BSSIList").Value, Management.ManagementBaseObject())
ListBox1.Items.Clear()


For Each obj As Management.ManagementBaseObject In objarr

Dim ssid() As Char = System.Text.Encoding.ASCII.GetChars(CType(obj("Ndis80211Ssid"), Byte()))
ListBox1.Items.Add(New String(ssid))
Next

Catch ex As Exception
Timer1.Enabled = False

MsgBox(ex.Message, MsgBoxStyle.Exclamation)

End Try
End Sub


Signal Strength
Public Function RetrieveSignalStrength() As Double
ListBox2.Items.Clear()
Dim query As Management.ManagementObjectSearcher
Dim Qc As Management.ManagementObjectCollection
Dim Oq As Management.ObjectQuery
Dim Ms As Management.ManagementScope
Dim Co As Management.ConnectionOptions
Dim Mo As Management.ManagementObject
Dim signalStrength As Double
Try
Co = New Management.ConnectionOptions
Ms = New Management.ManagementScope("root\wmi")
Oq = New Management.ObjectQuery("SELECT * FROM MSNdis_80211_ReceivedSignalStrength Where active=true")
query = New Management.ManagementObjectSearcher(Ms, Oq)
Qc = query.Get
signalStrength = 0

For Each Mo In query.Get

signalStrength = Convert.ToDouble(Mo("Ndis80211ReceivedSignalStrength"))

Next
Catch exp As Exception
' Indicate no signal
signalStrength = -1
End Try
ListBox2.Items.Add(signalStrength)
Return Convert.ToDouble(signalStrength)
End Function


About MAC Address i found Adapter card for the PC ,,, not for AP

finally:

i found the good program in c++ but i don't know how convert to
C# or VB.net

the code ----> http://www.lobortis.com/n/8897240756

**************************************************************

I am trying to solve the problem but ... i cann't

i hope find the solution in this forum

Thanks very much for any help

Was This Post Helpful? 0
  • +
  • -


#2 RodgerB  Icon User is offline

  • D.I.C Lover
  • Icon
  • View blog
  • Group: Expert w/DIC++
  • Posts: 2,244
  • Joined: 21-September 07


Dream Kudos: 2200

Expert In: Dot Net Technologies

Posted 22 November 2007 - 12:08 PM

Hi Alias bradly,

I found your prediciment quite intriging. I found a link, on a google search, hope it helps. :)
http://code.filehung...signal_strength
Was This Post Helpful? 0
  • +
  • -

#3 Alias bradly  Icon User is offline

  • New D.I.C Head
  • Pip
  • Group: New Members
  • Posts: 4
  • Joined: 22-November 07


Dream Kudos: 0

Posted 22 November 2007 - 12:42 PM

Thanks very much RodgerB but i found this before 2 weeks :sleepy:
I say (thanks for any help) :rolleyes:


my problem
How obtain signal strength & SSID & BSSID from many Access points

for example:

SSID----------BSSID----------signal strength
linksys----------00:14-7f----------44
linksys1----------00:14-2f----------70
speedtu----------00:14-ff----------20



thanks again RodgerB :)

Was This Post Helpful? 0
  • +
  • -

#4 no one like me  Icon User is offline

  • New D.I.C Head
  • Pip
  • Group: New Members
  • Posts: 1
  • Joined: 22-November 07


Dream Kudos: 0

Posted 22 November 2007 - 11:56 PM

hiiii how are you every bady

i have the same problem that Alias say and found the same code
any help
thanksssss
Was This Post Helpful? 0
  • +
  • -

#5 Alias bradly  Icon User is offline

  • New D.I.C Head
  • Pip
  • Group: New Members
  • Posts: 4
  • Joined: 22-November 07


Dream Kudos: 0

Posted 23 November 2007 - 05:30 AM

Hello (no one like me) :angry:

ok when i found the solution sure i am not give you :P ....

:rolleyes: ok i tell you :D

Was This Post Helpful? 0
  • +
  • -

#6 de Gan  Icon User is offline

  • New D.I.C Head
  • Pip
  • Group: New Members
  • Posts: 1
  • Joined: 08-January 08


Dream Kudos: 0

Posted 08 January 2008 - 05:36 AM

hi brad...

i have the same problem...

have u found the solution?

thanks
Was This Post Helpful? 0
  • +
  • -

#7 erwim yudha  Icon User is offline

  • New D.I.C Head
  • Pip
  • Group: New Members
  • Posts: 1
  • Joined: 08-August 08


Dream Kudos: 0

Posted 08 August 2008 - 05:12 AM

Here you can find a managed API (works on Vista/XP SP2 with Wireless LAN API): http://www.codeplex.com/managedwifi
Was This Post Helpful? 0
  • +
  • -

#8 bryce_Colin  Icon User is offline

  • New D.I.C Head
  • Pip
  • Group: New Members
  • Posts: 1
  • Joined: 18-May 09


Dream Kudos: 0

Posted 18 May 2009 - 07:46 AM

check the website http://wwww.daedaltech.com they give a dll with which we can find the SSID and mac address
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1


Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month