From a48ec04309e1b8491fcc864ad87eec56d5dcd608 Mon Sep 17 00:00:00 2001 From: schneider Date: Mon, 9 Sep 2024 23:36:18 +0200 Subject: [PATCH 1/3] Revert "remove timestamp from synthetic test data" This reverts commit b695dad0d7f974d26bfea6a0276784a4108a6e90. --- test-data/prbs15-2M-20dB.sigmf-meta | 1 + 1 file changed, 1 insertion(+) diff --git a/test-data/prbs15-2M-20dB.sigmf-meta b/test-data/prbs15-2M-20dB.sigmf-meta index db02a56..9d7eb25 100644 --- a/test-data/prbs15-2M-20dB.sigmf-meta +++ b/test-data/prbs15-2M-20dB.sigmf-meta @@ -7,6 +7,7 @@ }, "captures": [ { + "core:datetime": "2020-09-29T23:14:06Z", "core:frequency": 1622000000, "core:sample_start": 0 } From 2a3a6a89e5ab606edef3961c5f85fbf152fa4a1e Mon Sep 17 00:00:00 2001 From: schneider Date: Mon, 9 Sep 2024 23:48:54 +0200 Subject: [PATCH 2/3] ci: add correct timestamp to sigmf checks --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fc5b3bf..f75cbfe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -71,15 +71,15 @@ jobs: - name: Demod PRBS15 SigMF run: | iridium-extractor test-data/prbs15-2M-20dB.sigmf-meta |grep ^RAW > prbs15-2M-20dB.bits - grep "RAW: prbs15-2M-20dB 0000599.9996 1622000000 N:32.12-80.05 I:00000000000 100% 0.13551 179 0011000000110000111100111000000000000011000000000000101000000000001111000000000010001000000000110011000000001010101000000011111111000000100000001000001100000011000010100000101000111100001111001000100010001011001100110011101010101010100111111111111101000000000000111000000000001001000000000011011000000000101101000000001110111000000010011001000000110101011000001011111101000011100000" prbs15-2M-20dB.bits + grep "RAW: i-1601421246-t1 0000599.9996 1622000000 N:32.12-80.05 I:00000000000 100% 0.13551 179 0011000000110000111100111000000000000011000000000000101000000000001111000000000010001000000000110011000000001010101000000011111111000000100000001000001100000011000010100000101000111100001111001000100010001011001100110011101010101010100111111111111101000000000000111000000000001001000000000011011000000000101101000000001110111000000010011001000000110101011000001011111101000011100000" prbs15-2M-20dB.bits - name: Demod with decimation 4 run: | iridium-extractor -D 4 test-data/prbs15-2M-20dB.sigmf-meta |grep ^RAW > prbs15-2M-20dB-D4.bits - grep "RAW: prbs15-2M-20dB 0000599.9996 1622000000 N:32.12-80.05 I:00000000000 100% 0.13577 179 0011000000110000111100111000000000000011000000000000101000000000001111000000000010001000000000110011000000001010101000000011111111000000100000001000001100000011000010100000101000111100001111001000100010001011001100110011101010101010100111111111111101000000000000111000000000001001000000000011011000000000101101000000001110111000000010011001000000110101011000001011111101000011100000" prbs15-2M-20dB-D4.bits + grep "RAW: i-1601421246-t1 0000599.9996 1622000000 N:32.12-80.05 I:00000000000 100% 0.13577 179 0011000000110000111100111000000000000011000000000000101000000000001111000000000010001000000000110011000000001010101000000011111111000000100000001000001100000011000010100000101000111100001111001000100010001011001100110011101010101010100111111111111101000000000000111000000000001001000000000011011000000000101101000000001110111000000010011001000000110101011000001011111101000011100000" prbs15-2M-20dB-D4.bits - name: Demod with decimation 8 run: | iridium-extractor -D 8 test-data/prbs15-2M-20dB.sigmf-meta |grep ^RAW > prbs15-2M-20dB-D8.bits - grep "RAW: prbs15-2M-20dB 0000599.9996 1622000000 N:32.12-80.05 I:00000000000 100% 0.13643 179 0011000000110000111100111000000000000011000000000000101000000000001111000000000010001000000000110011000000001010101000000011111111000000100000001000001100000011000010100000101000111100001111001000100010001011001100110011101010101010100111111111111101000000000000111000000000001001000000000011011000000000101101000000001110111000000010011001000000110101011000001011111101000011100000" prbs15-2M-20dB-D8.bits + grep "RAW: i-1601421246-t1 0000599.9996 1622000000 N:32.12-80.05 I:00000000000 100% 0.13643 179 0011000000110000111100111000000000000011000000000000101000000000001111000000000010001000000000110011000000001010101000000011111111000000100000001000001100000011000010100000101000111100001111001000100010001011001100110011101010101010100111111111111101000000000000111000000000001001000000000011011000000000101101000000001110111000000010011001000000110101011000001011111101000011100000" prbs15-2M-20dB-D8.bits - name: Test raw samples run: | ln -s prbs15-2M-20dB.sigmf-data test-data/prbs15-2M-20dB.fc32 From 0b2be79f8e65b37a8c214d96d290da6bbb857ff9 Mon Sep 17 00:00:00 2001 From: schneider Date: Mon, 9 Sep 2024 23:59:23 +0200 Subject: [PATCH 3/3] ci: fix timestamp check with raw files --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f75cbfe..1d71f66 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -84,7 +84,7 @@ jobs: run: | ln -s prbs15-2M-20dB.sigmf-data test-data/prbs15-2M-20dB.fc32 iridium-extractor --offline -c 1622000000 -r 2000000 -f float test-data/prbs15-2M-20dB.fc32 |grep ^RAW > prbs15-2M-20dB.bits.raw - cmp prbs15-2M-20dB.bits prbs15-2M-20dB.bits.raw + grep "RAW: prbs15-2M-20dB 0000599.9996 1622000000 N:32.12-80.05 I:00000000000 100% 0.13551 179 0011000000110000111100111000000000000011000000000000101000000000001111000000000010001000000000110011000000001010101000000011111111000000100000001000001100000011000010100000101000111100001111001000100010001011001100110011101010101010100111111111111101000000000000111000000000001001000000000011011000000000101101000000001110111000000010011001000000110101011000001011111101000011100000" prbs15-2M-20dB.bits.raw - name: Test SigMF Archive support run: | tar cf test-data/prbs15-2M-20dB.sigmf test-data/prbs15-2M-20dB.sigmf-*