I recorded an OOK transmission (of a temperature sensor) and I'm trying to reverse engineer the recording to get the binary out with python.
First I searched for the length of a bit. Therefore I search all zones where the value is high and then mean it to get the sample count of one bit. This works well, and I can get a bitlength and a bitrate.
My problem is about the first peak in the preamble. As you see it is much shorter than all other "bits". All other bits have about the same length.
- what could be a reason behind the a short bit at the beginning, which is just about 1/3 of a "regular bit
- How to process: should I treat the shortest peak as default bitlength or should I treat this short bit as a regular bit?