inspectrum icon indicating copy to clipboard operation
inspectrum copied to clipboard

Create some UI for symbol extraction results

Open miek opened this issue 7 years ago • 2 comments

miek avatar Sep 15 '16 05:09 miek

This would be great. I seem to be getting inconsistent results when I try to extract symbols from an FSK modulated-Manchester encoded signal. The usual low-0 or high-1 works well though.

nihalpasham avatar Sep 22 '18 07:09 nihalpasham

Dropping this here since I stumbled upon this post while thinking on how to figure this out:

Set sample rate at 2x the symbol rate, then just decode every bit pair and look for 10 or 01.

#!/bin/python
import sys

def DangerousGame(bit):
  bits = []
  for i in range(int(len(bit)/2)):
    notpacked = 1
    if bit[i*2:i*2+2] == [1,0]:
      bits.append(1)
      notpacked = 0
    else:
      if bit[i*2:i*2+2] == [0,1]:
        bits.append(0)
        notpacked = 0
    if notpacked:
      print("massive Error at %d"%i)
  return bits

konsgn avatar Jan 20 '22 03:01 konsgn