![]() |
|
|
#1 (permalink) |
|
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 |
|
|
|
|
|
#2 (permalink) |
|
General "Noob Basher"
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. |
|
|
|
|
|
#3 (permalink) |
|
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 |
|
|
|
|
|
#5 (permalink) |
|
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 |
|
|
|