NetStumbler.org Forums

Go Back   NetStumbler.org Forums > NetStumbler Community > Scripts
Register Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old 05-26-2003   #1 (permalink)
jiangjik
Registered Member
 
Join Date: Apr 2003
Location: Australia
Posts: 4
Guide me help.

Hi everyone here,

I'm new here. But i'm actually doing a project regarding wireless LAN. i have used netstumbler to detect the signal strength and SNR. WHat i want to do is to produce a program.. a simple one with conditional codes like "if..this else.. that" i want to use the signal strength, SNR and maybe the no. of mobile host attached to a access point/ traffic situationas the variables to decide my handover process. But i can't even get the basic variable like signal strength and SNR. i have problem interfacing to netstumbler so i though i might develop my own with some examples i can look at. I'm very bad at programming cause i have only done basic C programming a very long time ago, but i'm willing to learn the new language. can anyone suggest which direction should i go into? How can i get examples for the codes to start scan, for the API to carry out the handover from one access point to another.. ok let keep it simple. can can i just detect the signal strength and purely depends on the signal strength to carry out a handover from AP1 to AP2, for example. What i plan is to write the program in C and call the functions to carry out various work. I won't plagiarise i will reference all the names if i'm using their work / function. Hope some one can give me a little hint / help... i'm desperated... because i'm given this project which belongs to telecommuniation side, but i have totally no knowledge of telecommunication because i'm purely from Electrical engineering. Thank you very much!

Help is very much needed. Thanks all.... and pls forgive me if i happen to ask the same stupid questions that have already been asked.

Thanks

Best Regards

Patrick
jiangjik is offline   Reply With Quote
Old 05-27-2003   #2 (permalink)
Madhadder
General "Noob Basher"
 
Madhadder's Avatar
 
Join Date: Apr 2002
Location: Munich, Germany
Posts: 1,620
Here is the Default NS Script
----------------------------------------------------
Default event handler script

'Sub OnEnableScan
' PlaySound "SSROAM.WAV"
'End Sub

'Sub OnDisableScan
' PlaySound "SSROAM.WAV"
'End Sub

'Sub OnScanStart
' PlaySound "Windows XP Balloon.WAV"
'End Sub

'Sub OnScanResult(SSID, BSSID, CapFlags, Signal, Noise, LastSeen) ' NOT YET
' SSID : String : SSID (Network name)
' BSSID : String : BSSID (MAC address)
' CapFlags : Integer : 802.11 capability flags
' Signal : Integer : signal level (dBm)
' Noise : Integer : noise level(dBm)
' LastSeen : Time : When this BSSID was last seen
'End Sub

Sub OnScanComplete(FoundNew, SeenBefore, LostContact, BestSNR) ' NOT YET
' FoundNew : Integer : Count of new BSSIDs
' SeenBefore : Integer : Count of not-new BSSIDs
' LostContact : Integer : Count of BSSIDs missed since last scan
' BestSNR : Integer : SNR of strongest signal (dBm)

' MsgBox "OnScanComplete " & FoundNew & " " & SeenBefore & " " & LostContact & " " & BestSNR
If FoundNew>0 Then
PlaySound "ns-aos-new.WAV"
ElseIf LostContact>0 Then
PlaySound "ns-los.WAV"
ElseIf SeenBefore>0 Then
' Still seeing some
If BestSNR >= 60 Then
PlaySound "ns-signal-6.WAV"
ElseIf BestSNR >= 50 Then
PlaySound "ns-signal-5.WAV"
ElseIf BestSNR >= 40 Then
PlaySound "ns-signal-4.WAV"
ElseIf BestSNR >= 30 Then
PlaySound "ns-signal-3.WAV"
ElseIf BestSNR >= 20 Then
PlaySound "ns-signal-2.WAV"
ElseIf BestSNR >= 10 Then
PlaySound "ns-signal-1.WAV"
Else
PlaySound "ns-signal-0.WAV"
End If
Else
' Nothing seen
' PlaySound "ns-tick.WAV"
End If
End Sub

Dim GPSOk
GPSOk = True

Sub OnGPSTimeout
If GPSOk Then
GPSOk = False
PlaySound "ns-gps-err.WAV"
End If
End Sub

Sub OnGPSNoFix
If GPSOk Then
GPSOk = False
PlaySound "ns-gps-err.WAV"
End If
End Sub

Sub OnGPSPosition (Lat, Lon, Alt)
' Lat : double : Latitude, degrees east
' Lon : double : Longitude, degrees north
' Alt : double : Altitude above sea level, meters
GPSOk = True
End Sub

'Sub OnGPSSpeed (Speed)
' Speed : double : Speed, knots
'End Sub
------------------------------------------------------------------
For more info check the NS FAQ on scripting. There isn't
alot of info, but there should be enough. Write your Script
with any of the following: VB/WSH/JAVA/PERL and maybe
a few others. Whatever language is installed on your PC
can be used.
Madhadder is offline   Reply With Quote
Old 05-31-2003   #3 (permalink)
jiangjik
Registered Member
 
Join Date: Apr 2003
Location: Australia
Posts: 4
So is there ways which i can interface with netstumbler without using the codes? What i need is just to capture the signal strength and SNR as variables in a C Program as part of the decision making process..

Thanks!

Regards

Patrick
jiangjik is offline   Reply With Quote
Old 06-01-2003   #4 (permalink)
Madhadder
General "Noob Basher"
 
Madhadder's Avatar
 
Join Date: Apr 2002
Location: Munich, Germany
Posts: 1,620
No. Using the NS scripting language is the only way.
Madhadder is offline   Reply With Quote
Old 06-01-2003   #5 (permalink)
jiangjik
Registered Member
 
Join Date: Apr 2003
Location: Australia
Posts: 4
hi, given the NS scripting language, how can i capture the variables i want? I want variables like signal strength and SNR. I intend to write a C program for decision making to carry out a handover.. but how can i use the scriptiing? It seems like it not a program to me. Forgive me for being ignorance in the question. But i really have no idea how i can use the scripting with the C program i intend to write.

Please advice me thank you!

Regards

Patrick
jiangjik is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Google
 
Web NetStumbler.org

All times are GMT -7. The time now is 09:31 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 ©2007, Crawlability, Inc.


All messages express the views of the author and are for entertainment purposes only. Netstumbler.org cannot be held responsible for the authenticity of the content or the actions of its members. By using this site and its services, you warrant that you will not post any messages that are discriminating, obscene, hateful, threatening, or otherwise violates any laws and you release Netstumbler.org from any future claims of any kind whatsoever including, but not limited to, addiction and loss of productivity. All forum messages, private messages and any other content are properties of Netstumbler.org. Even if publicly available, personal or copyrighted information are not to be posted without the consent of the owner. Distribution of licensed and copyrighted materials in any way not endorsed by the copyright owner is strictly prohibited. You may not use this site and its resources to spam other sites or individuals or perform any action that violates any law. Items sold or bought in the For Sale forum are sold as is and no warranty or insurance of any kind is provided. Netstumbler.org cannot be held responsible for the outcome of any transactions and no warranty of any kind is provided, either express or implied. Vulgar words are not allowed in the subject lines ; they may be used in the message body in any forum. The Administrator, Super Moderators and Moderators of Netstumbler.org have the right to remove, edit, move or close any thread for any reason and to reveal your identity and other known information in the event of a complaint or legal action arising from any message posted by you.