Skip to main content
. 2020 Jul 31;20(15):4293. doi: 10.3390/s20154293
Algorithm 1: MALS-TSF
Phase I:
1: 1. Initialization
2: Each sensor node ai initializes data: zai = depth, Locai = 0, Dai = 0, Mbj = 0;
3: Each anchor node bj initializes data: deployment is shown in Figure 8.
4: 2. Ordinary Sensor Node Localization
5: If Mbj≥2, then obtain the value of daibj by Equation (12) and record Dai = Dai + 1;
6: End.
7: If Dai≥3, then
8: The estimated location of the sensor node is obtained by Equation (16) and Equation (22)–(25);
9: And the confidence value ηai of the sensor node by Equation (26); the Locai = 1;
10: End.
Phase II:
11: If the confidence value ηai≥λ in Phase I, then
12: the ai node as a new reference node Cai in Phase II;
13: End.
14: If Locai = 0, then send localization request is shown in Figure 5;
15: End.
16: If Mck≥2, then obtain the value of by daick Equation (12), and records Dai = Dai + 1;
17: End.
18: If Dai≥3, then estimate the node position;
19: End.