GHI CHÉP 13 · WIRELESS LINK
Correlation
Receiver thường biết trước một pattern nhưng không biết nó xuất hiện ở đâu trong buffer. Correlation biến bài toán “known pattern nằm ở vị trí nào?” thành một metric theo candidate lag, rồi dùng structure của peak để đưa ra timing hoặc detection hypothesis.
CORRELATION NẰM Ở ĐÂU TRONG RECEIVER?
Bài 12 cho thấy multipath làm received buffer chứa delayed copies. Bây giờ giả sử transmitter cố ý gửi một sequence mà receiver đã biết trước. Receiver có thể dùng sequence đó như một template để tìm arrival timing, nhận dạng hypothesis hoặc quan sát channel.
Bài này xây nền tảng chung. Các bài synchronization sau sẽ áp dụng cùng tư duy với sequence, search space và impairments cụ thể hơn.
01 · CORRELATION BẮT ĐẦU TỪ INNER PRODUCT
Nếu hai vectors có cùng pattern, các contribution sau khi nhân có xu hướng cộng cùng hướng thay vì triệt tiêu nhau.
Với ví dụ real-valued đơn giản:
Nếu received segment đúng bằng reference:
thì element-wise products là:
và dot product:
02 · RAW CORRELATION TRỘN “GIỐNG NHAU” VỚI “MẠNH HƠN”
Normalization giúp metric ít phụ thuộc vào amplitude của received segment.
Với một real-valued segment, normalized correlation magnitude có thể viết:
03 · KHÔNG BIẾT TIMING THÌ TRƯỢT TEMPLATE QUA BUFFER
Mỗi candidate lag tạo một inner product khác nhau.
Với complex samples, conjugate là phần tự nhiên của complex inner product. Nếu phase của reference đã biết đúng, contributions ở correct lag cộng coherent.
Nếu sequence thật bắt đầu ở , ideal detector kỳ vọng peak quanh . Nhưng noise, multipath, CFO và competing sequences có thể làm peak shape hoặc peak location phức tạp hơn.
04 · COMPLEX CORRELATION CÒN MANG THÔNG TIN VỀ CHANNEL GAIN
Ở đúng timing, correlation không chỉ nói “có match”; complex phase của output còn phản ánh common complex gain.
Giả sử trong observation window:
Tại đúng lag:
Nếu noise term nhỏ và reference energy là , thì:
05 · TRONG MULTIPATH, CORRELATION PEAK LÀ CHANNEL ĐƯỢC “BLUR” BỞI AUTOCORRELATION
Đây là cầu nối trực tiếp từ Bài 12 sang sequence detection.
Giả sử reference truyền qua discrete multipath channel:
Thay vào sliding correlation:
với:
06 · AUTOCORRELATION VÀ CROSS-CORRELATION QUYẾT ĐỊNH SEQUENCE “DỄ TÌM” TỚI MỨC NÀO
với shifted copy của chính nó
Ta muốn main peak mạnh và off-peak sidelobes nhỏ trong search region quan trọng. Điều đó giảm ambiguity theo timing.
với
Nếu receiver phải phân biệt nhiều candidate sequences, ta muốn wrong-sequence responses đủ nhỏ so với correct hypothesis.
Không có một sequence family “tốt nhất cho mọi mục tiêu”. Length, cyclic shifts, implementation cost, spectral constraints và robustness với channel/CFO đều có thể ảnh hưởng thiết kế.
07 · ARGMAX KHÔNG PHẢI DETECTOR HOÀN CHỈNH
Nếu không có sequence trong buffer, correlation curve vẫn luôn có một maximum.
Candidate also needs acceptable timing/identity consistency.
Can happen when noise, fading, CFO or threshold is too severe.
Lower threshold usually increases sensitivity and false-alarm risk together.
08 · MATCHED FILTER VÀ CORRELATOR LÀ HAI CÁCH NHÌN CÙNG OPERATION
Time-reverse + conjugate reference rồi convolution tạo chính sliding correlation, chỉ khác indexing.
Với reference dài :
thì:
09 · CFO LÀM COHERENT CONTRIBUTIONS XOAY DẦN
Timing có thể đúng nhưng correlation gain vẫn giảm nếu phase drift đáng kể xuyên suốt reference.
Giả sử constant-modulus reference và đúng timing:
Khi correlate với :
Đặt normalized CFO:
normalized coherent gain là:
Với , gain tiến tới 1. Khi phase drift tăng, per-sample vectors fan out và tổng vector ngắn lại. Đây là lý do acquisition thường phải giới hạn hoặc search residual frequency error cùng với timing.
10 · INTERACTIVE LAB
Ba mode để nhìn correlation từ phép nhân từng sample tới detector threshold và CFO loss.
Sliding match cho phép tự kéo candidate lag và nhìn reference, received segment, từng product rồi mới ra normalized metric. Threshold detector có cả signal-present và signal-absent cases để thấy vì sao argmax chưa đủ. CFO coherence vẽ từng contribution phasor và coherent-gain curve.
11 · IMPLEMENTATION: SEARCH SPACE QUYẾT ĐỊNH COMPUTE COST
Correlation không chỉ tốn theo sequence length; receiver còn phải nhân với số timing, frequency và identity hypotheses.
Direct sliding evaluation of a length- sequence over many lags costs roughly one inner product per lag. For long buffers/templates, correlation can also be implemented through convolution and FFT-based methods. SIMD, vectorization, hierarchical search and reuse across hypotheses can matter more than the textbook formula suggests.
12 · CORRELATION LÀ TOOL; SEQUENCE CỤ THỂ SẼ ĐẾN SAU
Bài 13 xây detector mechanics mà không gắn nó vào một standard-specific signal.
Tìm timing candidate từ known sync structure.
So competing templates để nhận dạng sequence hypothesis.
Known reference response tiết lộ delay/complex channel structure.
Preamble search dùng cùng template-matching principle với search assumptions riêng.
Những bài synchronization và reference-signal sau sẽ thêm standard-specific sequence construction, resource mapping, CFO range, timing uncertainty và detection procedure.
13 · NỐI LẠI CÁC Ý
- Inner product: correlation cộng per-sample alignment contributions.
- Normalization: giảm phụ thuộc vào common amplitude scaling và cho một bounded alignment metric.
- Sliding correlation: một metric được tính cho mỗi candidate lag .
- Complex correlation: dùng conjugate reference .
- Correct-lag output: trong simple flat model, .
- Multipath: correlation output là channel taps shaped bởi sequence autocorrelation.
- Sequence design: autocorrelation sidelobes và cross-correlation ảnh hưởng ambiguity/discrimination.
- Detector: argmax proposes a candidate; threshold controls absent/present decision and false-alarm/miss trade-off.
- Matched filter: convolution với conjugate time-reversed template là sliding correlation theo cách nhìn filtering.
- CFO: phase drift làm coherent contributions fan out và giảm correlation gain.
- Implementation: total cost phụ thuộc cả timing, frequency và sequence search dimensions.