Skip to main content
. 2021 Jan 2;21(1):250. doi: 10.3390/s21010250
Algorithm 3 Multiple TA value capturing scheme.
  • Require: 

     

  Received shared sub-preamble sequence ys(ns);

  Received dedicated sub-preamble sequence yd(nd);

  The sets of the local sub-preamble sequences Si;

  • Ensure: 

     

  Captured TA value for the kth device τk;

  The shared sub-preamble index for the kth device vsk;

  The dedicated sub-preamble index for the kth device vdk;

  The location index for the kth device μk;

  •   1:

     for all  cs(ns)Ss  do

  •   2:

        Calculate ds(τs) for the received shared sub-preamble ys(ns) according to Equation (9);

  •   3:

        if  ds(τs)rth,s  then

  •   4:

             Record the sub-preamble index vs of cs(ns) in Υs;

  •   5:

             Calculate τ^s1,...,τ^sθ according to Equation (10), and record them in Γs;

  •   6:

        end if

  •   7:

     end for

  •   8:

     for all  μ{1,2}  do

  •   9:

         for all  cd(nd)Sd  do

  •  10:

            Calculate dd(τd) for the received dedicated sub-preamble yd(nd) according to Equation (9);

  •  11:

            if  dd(τd)rth,d  then

  •  12:

                 Record the sub-preamble index vd of cd(nd) in Υd;

  •  13:

                 Calculate τ^d1,..,τ^dσ according to Equation (10), and record them in Γd;

  •  14:

            end if

  •  15:

        end for

  •  16:

     end for

  •  17:

     for all  τ^skΓs do

  •  18:

         for all  τ^dkΓd  do

  •  19:

              if  τ^sk=τ^dk  then

  •  20:

                   Output τk=τ^sk and the corresponding  vsk, vdk and μk;

  •  21:

              end if

  •  22:

          end for

  •  23:

     end for