资源简介

Energy Harvesting wireless sensor network(EH-WSN) is a kind of WSN that uses rechargeable power supply instead of using traditional battery. In traditional WSN, the energy sources is limited. When the power source of node nish, it can not continue to work unless it is recharged again

资源截图

代码片段和文件信息

function Net = energyharvesting (Net  i  type  value )

BatteryCapacity = 1.476 ; % Joules (0.1mAh3600 s 4.1V)
B = 8*8; % lenght of beacon Bits
L = 16*8; % lenght of data Bits
R = 500*1024; %Kbps
Ptx = 0.0538 ; % Watt
Prx = 0.0425 ; % Watt



 switch type
 case ‘ harvest ‘
 HarvestEnergy = (Net . Node ( i ).HR/1000)*value ;
 Net.Node ( i ).AE = min( 1 Net . Node ( i ).AE + HarvestEnergy /BatteryCapacity) ;


 case ‘ beacon ‘
 BeaconCost = (B/R)*Ptx + (L/R)*Prx ;%Energy consume to
transmit beacon and wait for data
 Net . Node ( i ) .AE = Net . Node ( i ) .AE - BeaconCost /BatteryCapacity ;
 case ‘ data ‘
 IdleListeningCost = value*Prx ;% Energy consumption waiting for beacon
 TransmissionCost = (L/R)*Ptx ;% Energy consumption in transmittingdata
 Net . Node ( i ) .AE = Net . Node ( i ) .AE - (IdleListeningCost + TransmissionCost ) /BatteryCapacity ;
 end


 if Net . Node ( i ) .AE < 0
 Net . DeadNode = i ;
 end
 end

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        965  2013-06-19 02:12  energyharvesting.m

----------- ---------  ---------- -----  ----

                  965                    1


评论

共有 条评论