Research Article
Adaptive Transmission Power Control for Reliable Data Forwarding in Sensor Based Networks
Algorithm 1
Adaptive transmitting power algorithm.
(1) for to 1: | (2) for to : | (3) node in broadcast its (aggregated) information () times sequentially | (4) if node receives the packet then | (5) node does IA function aggregation and updates its information. | (6) end if | (7) if node , calculate self-energy-consumption and add it to its information. | (8) end for | (9) end for | (10) Sink node receive data from node | (11) Sink node select max energy consumption value from data received, broadcast it to all node | (12) for to : | (13) for to : | (14) node in receives the max energy consumption value | (15) node in calculates and adjusts transmitting power according to max energy consumption value | (16) node in calculates the new | (17) end for | (18) end for |
|