Skip to content

aravindustries/cdma-decoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CDMA Decoding

Step-by-step visuals from filtering and frame sync through Walsh decoding, phase correction, and frequency-offset estimation.


Magnitude of RCOS-filtered, downsampled signal with detected frame start

Figure 1. Magnitude of the RCOS-filtered, 4×-downsampled received signal; red marker indicates the detected frame start using a |rcvd_filt| > 0.95 threshold.

Overlay of pilot frame and best PN sequence

Figure 2. Pilot frame overlaid with the best-matching PN sequence (BPSK-modulated m-sequence) selected via maximum correlation, confirming the transmitter LFSR initial state.

Denoised frames after PN division

Figure 3. Denoised frames after division by the PN sequence; pilot and data structure are visible across full 255-chip frames before cropping.

Cropped denoised frames to 192 chips

Figure 4. Denoised frames cropped to 192 chips (3 × 64-chip characters), removing trailing padding for downstream decoding.

Second frame with character/chip segmentation

Figure 5. Second frame (real part): full 192-chip sequence, first 64-chip character segment, and its first 8-chip row highlighted—setup for Walsh decoding.

Coded 8x8 chip block before Walsh decoding

Figure 6. Magnitude of the coded 8×8 chip block c for one character prior to Walsh despreading.

Walsh-decoded symbols showing pilot and data channel

Figure 7. Walsh-decoded matrix x = c' · H: pilot (column 1) and data channel (column 6) are clearly separated after despreading.

Rotated constellation due to frequency/phase offset

Figure 8. Constellation of decoded symbols before phase correction (“rotated data”); a common phase rotation is evident from residual frequency/phase offset.

Derotated constellation using pilot reference

Figure 9. Constellation after de-rotation using the pilot reference (x / x(:,1)), realigned for BPSK demapping of the data channel.

Unwrapped average phase across frames with linear fit for frequency-offset estimate

Figure 10. Unwrapped average phase across frames with linear fit; the slope/(2π·Tf) provides the estimated constant frequency offset in Hz.

About

This project demonstrates the full decoding pipeline for a spread-spectrum communication system, starting from the raw received waveform and ending with the recovered ASCII message.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages