Skip to main content
. 2015 May 26;15(6):12358–12376. doi: 10.3390/s150612358

Algorithm 2: A new MN wants to connect with the BS.

1. Start:
2. Let Pinewm1={Tiformerm1+Tf,Tiformerm1+Tf+Tpl}
3.  For the network time is synchronized
4. Tinewm=Tjformerm1
5. Update Pinewm1={Tinewm+Tf,Tinewm+Tf+Tpl}
6. If Pinewm1Pm=
7.  Goto Label 1
8. Else
9. Update Tinewm1={Tinewm+Tf,Tinewm+Tf+Tpl+Toinew}
10.  Adjust Toinew by TSU, to satisfy Pinewm1Pm=
11. Label 1:
12. Let Pinewm=Pinewm1
13. Pm=PmPinewm
14. End