From 722081ae5e916fc0bb718e6cefb9105762428c50 Mon Sep 17 00:00:00 2001 From: Kristian Glass Date: Tue, 10 Jun 2025 17:22:37 +0100 Subject: [PATCH 1/3] Add documentation for `atest -e` (set a Bit Error Rate) --- man/atest.1 | 4 ++++ src/atest.c | 1 + 2 files changed, 5 insertions(+) diff --git a/man/atest.1 b/man/atest.1 index 58c90f64..1aaabe67 100644 --- a/man/atest.1 +++ b/man/atest.1 @@ -72,6 +72,10 @@ Amount of effort to try fixing frames with an invalid CRC. 1 = Try to fix only a single bit. more = Try modifying more bits to get a good CRC. +.TP +.BI "-e " "n" +Artificially introduce a desired Bit Error Rate (BER) for testing. + .TP .BI "-L " Error if Less than this number decoded. diff --git a/src/atest.c b/src/atest.c index c5f4ec50..31aef1fe 100644 --- a/src/atest.c +++ b/src/atest.c @@ -994,6 +994,7 @@ static void usage (void) { dw_printf (" 0 (default) = consider only correct frames. \n"); dw_printf (" 1 = Try to fix only a single bit. \n"); dw_printf (" more = Try modifying more bits to get a good CRC.\n"); + dw_printf (" -e n Artificially introduce a desired Bit Error Rate (BER) for testing.\n"); dw_printf ("\n"); dw_printf (" -d x Debug information for FX.25. Repeat for more detail.\n"); dw_printf ("\n"); From 02b284c9168f2857ce4bd93a6f8dc6f61edfd577 Mon Sep 17 00:00:00 2001 From: Kristian Glass Date: Tue, 10 Jun 2025 17:35:58 +0100 Subject: [PATCH 2/3] Add documentation for `atest -U` (force upsampling rate for G3RUH) --- man/atest.1 | 5 +++++ src/atest.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/man/atest.1 b/man/atest.1 index 1aaabe67..6b715f1f 100644 --- a/man/atest.1 +++ b/man/atest.1 @@ -61,6 +61,11 @@ Force G3RUH modem regardless of data rate. .BI "-D " "n" Divide audio sample rate by n. +.TP +.BI "-U " "n" +Override automatic upsampling rate for G3RUH, +improving performance when sample rate to baud ratio is low. + .TP .BI "-h " Print frame contents as hexadecimal bytes. diff --git a/src/atest.c b/src/atest.c index 31aef1fe..11e5b9a8 100644 --- a/src/atest.c +++ b/src/atest.c @@ -987,6 +987,8 @@ static void usage (void) { dw_printf (" -J 2400 bps QPSK compatible with MFJ-2400.\n"); dw_printf ("\n"); dw_printf (" -D n Divide audio sample rate by n.\n"); + dw_printf (" -U n Override automatic upsampling rate for G3RUH,\n"); + dw_printf (" improving performance when sample rate to baud ratio is low.\n"); dw_printf ("\n"); dw_printf (" -h Print frame contents as hexadecimal bytes.\n"); dw_printf ("\n"); From 0019cdaed80b1b471c56e4b3c444b6e260446a8f Mon Sep 17 00:00:00 2001 From: Kristian Glass Date: Tue, 10 Jun 2025 23:38:08 +0100 Subject: [PATCH 3/3] Remove duplicate "rather" in atest usage message --- src/atest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/atest.c b/src/atest.c index 11e5b9a8..61184f76 100644 --- a/src/atest.c +++ b/src/atest.c @@ -982,7 +982,7 @@ static void usage (void) { dw_printf (" AIS for ship Automatic Identification System.\n"); dw_printf (" EAS for Emergency Alert System (EAS) Specific Area Message Encoding (SAME).\n"); dw_printf ("\n"); - dw_printf (" -g Use G3RUH modem rather rather than default for data rate.\n"); + dw_printf (" -g Use G3RUH modem rather than default for data rate.\n"); dw_printf (" -j 2400 bps QPSK compatible with direwolf <= 1.5.\n"); dw_printf (" -J 2400 bps QPSK compatible with MFJ-2400.\n"); dw_printf ("\n");