Skip to main content
. 2021 Jan 2;21(1):250. doi: 10.3390/s21010250
Algorithm 1 Preamble generation scheme
  • Require: 

     

   The sets of available sub-preambles Ss,Sd; location index for the dedicated sub-preamble μ;

  • Ensure: 

     

   A preamble sequence for an RA-attempting device xu1,vsu2,vd(n);

  •   1:

      Randomly select a sub-preamble sequence from Ss as a shared sub-preamble, xus,vs(ns);

  •   2:

      Randomly select a sub-preamble sequence from Sd as a dedicated sub-preamble, xud,vd(nd);

  •   3:

      Randomly select a location index for the dedicated sub-preamble, μ;

  •   4:

      if  μ=1  then

  •   5:

        Generating a preamble according to Equation (7);

  •   6:

    else

  •   7:

        Generating a preamble according to Equation (8);

  •   8:

    end if