Research Article
Energy-Efficient Cluster Formation in IoT-Enabled Wireless Body Area Network
(1) | Start | (2) | List to the SYNC | (3) | if (RSSIo ≠ RSSIn) || (LQIo ≠ LQIn) then | (4) | NT = MN | (5) | TMR = T | (6) | T— | (7) | if TMR expires | (8) | x.NT = SN | (9) | Goto Line 1 | (10) | else if x.NT = MN& receive SYNC from BN | (11) | x.NT = SN | (12) | SN sends the HB to BN | (13) | BN assigns TS to SN | (14) | BN Broadcast the SYNCn | (15) | if SYNCn receives to (CHo || SN) | (16) | adopt the TS when SYNCn receives to SN | (17) | delete the TS when SYNCn receives to CHo | (18) | end if | (19) | else ifx.NT = MN& receives SYNC from CH | (20) | x.NT = SN | (21) | SN sends the HB to the CH | (22) | CH assign TS to SN | (23) | Goto Line 14 | (24) | end if | (25) | else | (26) | node type is SN | (27) | end if |
|