WiFi RSSI with NDIS protocole

List Wifi devices and retrieve RSSI values of the signal
4.1K Downloads
Updated 11 Jul 2008

View License

Retrieve RSSI signal from an 802.3 adapter (WiFi) for Windows system with NDIS protocol.
It requiered a fresh install of a NDISPROT miniport driver. Tested with Windows XP SP2 only.
Should be adapted for windows XP SP1 (NDISPROT => NDISUIO).

To install NDISPROT miniport driver

1) Open your network properties and choose install->protocol, choose "I have a disk..."
2) Select from "ndisprotminidriver" dir and select ndisprot.inf

Usage
------

y = wifiRSSI([device] , [N] , [tempo]);

Inputs
------

device : String contening WiFi device identifier (default : first adapter taken)

N : Number of RSSI point to retreive (default N = 1);

tempo : Waiting time (ms) between two RSSI values (default tempo = 0);

Output
------

y RSSI vector (1 x N). Return NAN if Device is not open or INF if RSSI below Threshold detection

IMPORTANT
---------

Don't forget to start NDISPROT service by the following command from Matlab :

!net start ndisprot

Don't forget also to shutdown NDISPROT service by the following command from Matlab after usage :

!net stop ndisprot

Compilation
-----------

mex -output wifiRSSI.dll wifiRSSI.c

Example 1
---------

device = wifidevice;

y = wifiRSSI(device{1});

Example 2
---------

y = wifiRSSI([] , 100 , 10);

Cite As

Sebastien PARIS (2024). WiFi RSSI with NDIS protocole (https://www.mathworks.com/matlabcentral/fileexchange/20667-wifi-rssi-with-ndis-protocole), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Simultaneous and Synchronized Operations in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0