diff options
| author | Author Name <[email protected]> | 2023-07-07 12:20:59 +0930 |
|---|---|---|
| committer | David Rowe <[email protected]> | 2023-07-07 12:29:06 +0930 |
| commit | ac7c48b4dee99d4c772f133d70d8d1b38262fcd2 (patch) | |
| tree | a2d0ace57a9c0e2e5b611c4987f6fed1b38b81e7 /unittest/ofdm_fade_dpsk.sh | |
shallow zip-file copy from codec2 e9d726bf20
Diffstat (limited to 'unittest/ofdm_fade_dpsk.sh')
| -rwxr-xr-x | unittest/ofdm_fade_dpsk.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/unittest/ofdm_fade_dpsk.sh b/unittest/ofdm_fade_dpsk.sh new file mode 100755 index 0000000..18e38bb --- /dev/null +++ b/unittest/ofdm_fade_dpsk.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +# +# David Sep 2019 +# Tests 2020 OFDM modem fading channel performance in DPSK mode, using a simulated faster (2Hz) high SNR fading channel + +fading_dir=$1 +results=$(mktemp) + +# Coded BER should be < 1% for this test +ofdm_mod --in /dev/zero --testframes 300 --mode 2020 --ldpc --verbose 1 --dpsk | \ +ch - - --No -40 -f 10 --ssbfilt 1 --mpd --fading_dir $fading_dir --multipath_delay 2 | \ +ofdm_demod --out /dev/null --testframes --mode 2020 --verbose 1 --ldpc --dpsk 2> $results +cat $results +cber=$(cat $results | sed -n "s/^Coded BER.* \([0-9..]*\) Tbits.*/\1/p") +python3 -c "import sys; sys.exit(0) if $cber<=0.05 else sys.exit(1)" |
