Journal of Sensors / 2015 / Article / Alg 1 / Research Article
A Cross-Layer Wireless Sensor Network Energy-Efficient Communication Protocol for Real-Time Monitoring of the Long-Distance Electric Transmission Lines Algorithm 1 Break-routing establishment.
Input : PanNode, RoutingNode, RREQ, Node; Initialize : RREQ = request_packet(PanNode); RREQ = receive_packet(RoutingNode); RoutingNode.previous = PanNode.address; RoutingNode.Transpond(RREQ); (1) while true do (2) RREQ = request_packet(Node); (3) if RREQ.type PAN then (4) add_neighbour(Node); (5) else (6) if Node.first then (7) Node.type = NORMAL; (8) Node.previous = RREQ.address; (9) Update(RREQ); (10) Transpond(RREQ); (11) else (12) add_neighbour(Node); (13) end if (14) end if (15) end while