aboutsummaryrefslogtreecommitdiffstats
path: root/notebooks
diff options
context:
space:
mode:
authorNao Pross <np@0hm.ch>2021-11-18 16:11:24 +0100
committerNao Pross <np@0hm.ch>2021-11-18 16:11:24 +0100
commitdd795612f0ca0d84e0a17075f8e56d783937bf10 (patch)
treef13eb51615fa8c26747785de3ed7f5ab345f4315 /notebooks
parentMerge branch 'master' of github.com:NaoPross/Fading (diff)
downloadFading-dd795612f0ca0d84e0a17075f8e56d783937bf10.tar.gz
Fading-dd795612f0ca0d84e0a17075f8e56d783937bf10.zip
Begin frame sync block
Diffstat (limited to 'notebooks')
-rw-r--r--notebooks/FrameSynchronization.ipynb73
1 files changed, 35 insertions, 38 deletions
diff --git a/notebooks/FrameSynchronization.ipynb b/notebooks/FrameSynchronization.ipynb
index 9a7719f..e0187b2 100644
--- a/notebooks/FrameSynchronization.ipynb
+++ b/notebooks/FrameSynchronization.ipynb
@@ -3,7 +3,7 @@
{
"cell_type": "code",
"execution_count": 1,
- "id": "5d5acf43",
+ "id": "57a55a8c",
"metadata": {},
"outputs": [],
"source": [
@@ -16,7 +16,7 @@
},
{
"cell_type": "markdown",
- "id": "4b294887",
+ "id": "dc4b9dfd",
"metadata": {},
"source": [
"# Digital Frame Synchronization\n"
@@ -24,22 +24,21 @@
},
{
"cell_type": "code",
- "execution_count": 14,
- "id": "5bec50ff",
- "metadata": {},
+ "execution_count": 27,
+ "id": "025c6919",
+ "metadata": {
+ "scrolled": false
+ },
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
- "Header sequence (N=16): [1 1 1 1 0 1 1 1 0 1 1 1 1 1 0 1]\n",
- "Cross correlation: [ 3. 3. 4. 4. 4. 4. 3. 6. 7. 7. 3. 6. 6. 8. 7. 6. 7. 11.\n",
- " 8. 7. 7. 10. 8. 8. 10. 8. 10. 7. 8. 8. 8. 10. 8. 11. 12. 9.\n",
- " 8. 10. 8. 11. 9. 10. 9. 16. 10. 10. 10. 12. 10. 14. 9. 10. 9. 13.\n",
- " 11. 9. 11. 8. 9. 11. 9. 9. 8. 8. 7. 9. 12. 5. 7. 9. 7. 10.\n",
- " 12. 6. 6. 9. 8. 6. 8. 5. 5. 8. 7. 5. 5. 4. 3. 4. 3. 3.\n",
- " 3. 3.]\n",
- "Corrlation peak value: 16.0\n"
+ "Header (N=16): [1 0 1 1 1 1 1 0 1 1 1 0 1 1 1 1]\n",
+ "Stream (N=80): [0 0 1 1 0 0 0 0 1 0 1 1 1 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 1 1 1 1 0 1 1 1\n",
+ " 1 1 0 1 1 1 0 1 1 1 1 1 0 1 1 1 0 1 1 0 1 0 1 1 0 0 1 1 1 0 0 1 1 1 1 1 0\n",
+ " 0 1 1 1 0 1]\n",
+ "Correlation peak value: 16 at i=47\n"
]
},
{
@@ -48,13 +47,13 @@
"<StemContainer object of 3 artists>"
]
},
- "execution_count": 14,
+ "execution_count": 27,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
- "image/png": "iVBORw0KGgoAAAANSUhEUgAABZUAAAEvCAYAAAA90y+qAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuNCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8QVMy6AAAACXBIWXMAAAsTAAALEwEAmpwYAAAhc0lEQVR4nO3dbYxe6Vkf8P/VsQMTKDJ0HcCTpBsqGIiatqZuy5IWUUI7vIlYCNREDUopaLdVeS3MEsOHtB8gaQdRqoKQVhBCRGQWLa5BlDJEvDStVLI4GVgn2YxAQMyOE9YIDSD6iHVm736Y8bKOx+szz/t55veTVvbc8xyf677Oee45z1+z51RrLQAAAAAA0MVfm3UBAAAAAAD0h1AZAAAAAIDOhMoAAAAAAHQmVAYAAAAAoDOhMgAAAAAAnQmVAQAAAADo7MQ0d3bfffe1+++/f5q7BAAAAADgiN773vf+cWvt9GHfm2qofP/99+fKlSvT3CUAAAAAAEdUVR++2/fc/gIAAAAAgM6EygAAAAAAdCZUBgAA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5dbaX3nTj348yUfv//2jSf5e37UBw9Bau9xae1dr7ekcXkN8trX2kThPAG/RWvvlJL9UVWv3mz6Q5GfjfAE87FaSb62qd97/PvKBHD7bxbkCOJJqzZ0YjltV/cEc3g9xKcmnWmv/22IrAoagqv7rJP8kyc28ca/UH8jhfZV/LMl7cnjR94dba7+6kCKBwaiqb0vy51tr31FV/0mcJ4C3qKrflcOHer4jyS8k+d4c/iKR8wXwuqr6X5P8D0m+kmQnyR9L8rVxrgCOQKgMAAAAAEBnbn8BAAAAAEBnQmUAAAAAADoTKgMAAAAA0JlQGQAAAACAzoTKAAAAAAB0JlQGAAAAAKAzoTIAAAAAAJ0JlQEAAAAA6Ow/AF/VxqC7bv8qAAAAAElFTkSuQmCC\n",
"text/plain": [
"<Figure size 1800x360 with 1 Axes>"
]
@@ -67,42 +66,40 @@
],
"source": [
"# Create test data\n",
- "seq = np.array([(0xbeef >> i) & 0x1 for i in range(4 * 4)])\n",
- "# seq = np.array([1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 1, 0, 1])\n",
- "\n",
+ "seq = np.unpackbits(np.array([0xbe, 0xef], dtype=np.dtype(\"uint8\")))\n",
"stream = np.concatenate([\n",
- " np.random.randint(low=0, high=2, size=30), seq, np.random.randint(low=0, high=2, size=30)\n",
+ " np.random.randint(low=0, high=2, size=32), seq, np.random.randint(low=0, high=2, size=32)\n",
"])\n",
"\n",
- "print(f\"Header sequence (N={len(seq)}): {seq}\")\n",
- "# print(f\"Data stream: {stream}\")\n",
+ "print(f\"Header (N={len(seq)}): {seq}\")\n",
+ "print(f\"Stream (N={len(stream)}): {stream}\")\n",
"\n",
- "# compute cross correlation\n",
- "def distance(v):\n",
- " return len(seq) - sum(np.logical_xor(v, seq))\n",
- "\n",
- "fifo = RingBuffer(len(seq))\n",
- "xcorr = RingBuffer(len(stream) + len(seq))\n",
+ "# Create buffers for cross correlation\n",
+ "fifo = RingBuffer(len(seq), dtype=np.dtype(\"uint8\"))\n",
+ "xcorr = RingBuffer(len(stream) + len(seq), dtype=np.dtype(\"uint8\"))\n",
"\n",
"## fill FIFO with zeros\n",
"fifo.extend(np.zeros(fifo.maxlen))\n",
"\n",
- "for i in range(len(stream) + len(seq)):\n",
- " #print(np.array(fifo))\n",
- " xcorr.append(distance(np.array(fifo)))\n",
+ "def correlation(v):\n",
+ " n = len(seq)\n",
+ " d = np.logical_xor(v, seq) # or bitwise_xor, no difference in this case\n",
+ " return n - sum(d)\n",
+ " \n",
+ "for i in range(len(stream) + len(seq) + 1):\n",
+ " xcorr.append(correlation(np.array(fifo)))\n",
" \n",
+ " # append stream data\n",
" # if the stream is finished use zeros\n",
- " fifo.pop()\n",
- " if i < len(stream):\n",
- " fifo.appendleft(stream[i])\n",
- " else:\n",
- " fifo.appendleft(0)\n",
+ " fifo.append(stream[i] if i < len(stream) else 0)\n",
"\n",
- "print(f\"Cross correlation: {np.array(xcorr)}\")\n",
- "print(f\"Correlation peak value: {max(np.array(xcorr))}\")\n",
+ "# unwrap values\n",
+ "xc = np.array(xcorr)\n",
+ "# print(f\"Cross correlation: {xc}\")\n",
+ "print(f\"Correlation peak value: {np.amax(xc)} at i={np.argmax(xc)}\")\n",
"\n",
"plt.figure(figsize = (25, 5))\n",
- "plt.stem(np.array(xcorr))"
+ "plt.stem(xc)"
]
}
],