Research Article
An Adaptive Approach to Discriminate the Persistence of Faults in Wireless Sensor Networks
Algorithm 1
Fault detection.
(1) // Each node executes the algorithm at discrete time | (2) Broadcast the sensor reading . | (3) set timer . | (4) Obtain the sensed data of one-hop neighbors . | (5) if then | (6) Declare unreported nodes as hard faulty and isolate the node. | (7) | (8) Determine , the set of one-hop neighbors report identical sensor measurement . | (9) if ( and ) or ( and ) then | (10) soft faulty. | (11) The node enters to observation state. | (12) else | (13) Fault-free. | (14) | (15) Broadcast the . |
|