From 8e42ca09787ab7698a068df71e37f388ca1b2e9f Mon Sep 17 00:00:00 2001 From: jaseg Date: Mon, 2 Oct 2023 14:50:03 +0200 Subject: Transmission works including sync and whitening --- center_fw/match_test.ipynb | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'center_fw/match_test.ipynb') 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": { -- cgit