Tuesday, 19 March 2019

Stimulate wireless sensor nodes in matlab

You can simulate your Wireless Sensor networks using Matlab. As your question regarding implementation is already answered by Professor C.P. Ravikumar. Test-bed implementation (Hardware platform) require different types of sensors for examples BT-Node platform, TelosB sensor node, MICAz 2.4 GHz etc. Each type of sensor has different features and compatible with different platforms. Some of the known implemented platforms used for several projects include:
Accsense
Ambient Systems mesh networks
Atlas
BEAN Project
BTnode
COTS Dust
Fleck
Glacsweb
iSense hardware platform 
Hoarder Board -Open Hardware Design
MeshScape
Mica Mote (Crossbow) 
Newtrax Technologies, Inc
openPICUS - Open Hardware
Particles (Particle Computer) 
PicoCrickets
Redwire Econotag
Sensor Webs
Smart Dust
TIP Mote
Tyndall Motes
Waspmote (Libelium)
Sensor Internet Project
Global Sensor Network
 
 #Simple Example of generating the nodes in MATLAB:
Here is example to create node manually in MATLAB.
BeconX=500;
BeconY=500; axes(handles.axes1);
gca; hold on;
hbecon=plot(BeconX,BeconY,'s') set(hbecon,'color','red','LineWidth',8);
Basic part of code is to randomly place the sensor nodes in the given space then connecting each two nodes if the distance between them less than or equal to the communication radius. Kindly check  following Matlab code .
clear;
noOfNodes = 50;
rand('state', 0);
figure(1);
clf;
hold on;
L = 1000;
R = 200; % maximum range;
netXloc = rand(1,noOfNodes)*L;
netYloc = rand(1,noOfNodes)*L;
for i = 1:noOfNodes
plot(netXloc(i), netYloc(i), '.');
text(netXloc(i), netYloc(i), num2str(i));
for j = 1:noOfNodes
distance = sqrt((netXloc(i) - netXloc(j))^2 + (netYloc(i) - netYloc(j))^2);
if distance <= R
matrix(i, j) = 1; % there is a link;
line([netXloc(i) netXloc(j)], [netYloc(i) netYloc(j)], 'LineStyle', ':');
else
matrix(i, j) = inf;
end;
end;
 If you want to use Matlab for simulation then you can go on following links to download tutorial for Matlab.
 
 

No comments:

Post a Comment