aboutsummaryrefslogtreecommitdiff
path: root/README_cohpsk.md
blob: aafc71dfc1d6007c6d99df83d6cf1d62507613ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# README_cohpsk.md

## Introduction

## Quickstart

1. BER test in AWGN channel with just less that 2% average bit error rate:

   ```
    $ ./cohpsk_get_test_bits - 5600 | ./cohpsk_mod - - | ./ch - - --No -30 --Fs 7500 | ./cohpsk_demod - - | ./cohpsk_put_test_bits -
    <snip>
    SNR3k(dB):  3.41 C/No: 38.2 PAPR:  8.1 
    BER: 0.017 Nbits: 5264 Nerrors: 92

  ```

2. Plot some of the demod internal states, used to chase down freq offset problemL

   ```
    $ cd build_linux/src
    $ ./cohpsk_get_test_bits - 5600 | ./cohpsk_mod - -  | ./ch - - --No -40 -f -20 --Fs 7500 | ./cohpsk_demod -o cohpsk_demod.txt - - | ./cohpsk_put_test_bits -
    $ cd ../../octave
    $ octave --no-gui
    $ cohpsk_demod_plot("../build_linux/src/cohpsk_demod.txt")    
   ```

3. Run Octave<-> tests

   ```
   $ cd ~/codec2/build_linux/unittest
   $ ./tochpsk
   $ cd ~/codec2/octave
   $ octave --no-gui
   octave> tcohpsk
   ```
   
## References

## C Code

## Octave Scripts