Skip to main content
. 2025 Sep 8;25(17):5602. doi: 10.3390/s25175602
Algorithm 1 The detection and timing estimation algorithm for random access sequence X
Input: received signal y, random access sequence X, threshold T, maximum integer CFO ζ
Output: detection indicator d, estimated timing τ^
1: Calculate q1 and q2 using (25), v1 and v2 using (27), and λε using (26).
2: if λε<T then d=0, τ^=
3: else
4:       calculate QVr1,r2 using (37), Zr1,r2 using (41)
5:         if Zr1,r2QVr1,r2= then d=0, τ^=
6:         else
7:                d = 1
8:                for i = 0 to 3 do
9:                      if Zr1,r2iQVr1,r2 then
10:                          identify index n (0nL+1) where QVr1,r2n=Zr1,r2i,
11:                          and calculate τ^ using (42)
12:                          break
13:                    end if
14:              end for
15:       end if
16: end if