diff options
author | jaseg <git@jaseg.de> | 2023-10-02 14:50:03 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2023-10-02 14:50:03 +0200 |
commit | 8e42ca09787ab7698a068df71e37f388ca1b2e9f (patch) | |
tree | 3982eb94858ed6e76d4ead4c50714b732f265a0a /center_fw/match_test.ipynb | |
parent | 72cffd586a7d2cd20bd8256a920b2caac8c7db85 (diff) | |
download | 8seg-8e42ca09787ab7698a068df71e37f388ca1b2e9f.tar.gz 8seg-8e42ca09787ab7698a068df71e37f388ca1b2e9f.tar.bz2 8seg-8e42ca09787ab7698a068df71e37f388ca1b2e9f.zip |
Transmission works including sync and whitening
Diffstat (limited to 'center_fw/match_test.ipynb')
-rw-r--r-- | center_fw/match_test.ipynb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/center_fw/match_test.ipynb b/center_fw/match_test.ipynb index f23d127..9b5d9f2 100644 --- a/center_fw/match_test.ipynb +++ b/center_fw/match_test.ipynb @@ -1569,6 +1569,27 @@ "1100101001 1100101001 1100101001 1100101001 1100101001 1100101001 1100101001 1100101001 1100101001 1100101001 1100101001 1100101001 1100101001 1100101001 1100101001 1100101001 0101001110 0101001110 0101001110 0101001110 0101001110 0101001110 0101001110 0101001110 0110001011 1000111010 0001011110 1000011001 0111001011 0010010111\n", "1100101001 1100101001 1100101001 1100101001 1100101001 1100101001 1100101001 1100101001 1100101001 1100101001 1100101001 1100101001 1100101001 1100101001 1100101001 1100101001 0101001110 0101001110 0101001110 0101001110 0101001110 0101001110 0101001110 0101001110 0110001011 1000111010 0001011110 1000011001 0111001011 1100000110" ] + }, + { + "cell_type": "code", + "execution_count": 221, + "id": "bfd80ba5-b943-4eaa-894c-f87c30ab7735", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\u001b[38;5;1m1\u001b[38;5;1m0\u001b[38;5;1m1\u001b[38;5;1m0\u001b[38;5;1m1\u001b[38;5;1m0\u001b[38;5;2m11\u001b[38;5;3m00 0\u001b[38;5;2m11\u001b[38;5;1m0\u001b[38;5;1m1\u001b[38;5;1m0\u001b[38;5;2m11\u001b[38;5;1m0\u001b[38;5;3m1 11\u001b[38;5;1m0\u001b[38;5;1m1\u001b[38;5;1m0\u001b[38;5;1m1\u001b[38;5;1m0\u001b[38;5;1m1\u001b[38;5;2m00 \u001b[38;5;1m1\u001b[38;5;1m0\u001b[38;5;2m11\u001b[38;5;1m0\u001b[38;5;2m11\u001b[38;5;1m0\u001b[38;5;1m1\u001b[38;5;1m0 \u001b[38;5;1m1\u001b[38;5;1m0\u001b[38;5;1m1\u001b[38;5;3m000\u001b[38;5;4m1111 \u001b[38;5;1m0\u001b[38;5;1m1\u001b[38;5;1m0" + ] + } + ], + "source": [ + "bits = np.fromfile('/tmp/dump_bit.bin', dtype=np.uint8)\n", + "pos, = np.fromfile('/tmp/dump_bit_idx.bin', dtype=np.uint32)\n", + "bits = bits[:pos]\n", + "print_rl(*bits, break_groups={'00000', '11111'}, split_each=10, split_offset=0)" + ] } ], "metadata": { |