Journal of Sensors / 2015 / Article / Alg 2 / Research Article
A Cross-Layer Wireless Sensor Network Energy-Efficient Communication Protocol for Real-Time Monitoring of the Long-Distance Electric Transmission Lines Algorithm 2 Data transmission process of sensor nodes.
Input : Node, Packet; Initialize : Node.Send_Data(Packet); (1) if Node.type SOURCE then (2) Node.Send_Data(Packet); (3) if Node.neighbour has CoordinateNode then (4) Node.previous = CoordinateNode; (5) Transpond(Packet); (6) else (7) Node.previous = SelectNode_From_Routing(); (8) Transpond(Packet); (9) end if (10) else (11) if Node.type == COORDINATE then (12) Node.Receive_Data(Packet); (13) else (14) Node.address = PanNode.address; (15) Transpond(Packet); (16) end if (17) end if