Research Article

A Novel Anchorless Node Positioning Method for Wireless Sensor Network

Algorithm 2

Ordinary node positioning process.
The steps of ordinary node positioning
Input: Received beacon frames: beacon = {φ,,H,LBS};
Output: Node coordinates:(x,y);
Steps:
1: while(1)
2:  Node in listening state;
3:  recv ← Received data frames;
4:  if(recv is the end frame)
5:   break;
6:  else //Indicates beacon frames
7:   if(recv≥1)
8:    if(recv>1)
9:     ,
10:    endif
11:    
12:    Node polar coordinates: (ρ,φ)
13:    (x,y)←(ρ,φ)
14:   endif
15:  endif
16: endwhile