This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from typing import Iterable, Union, Any | |
# freq: frequency in Hz | |
# zerolen: length of space bit in μs | |
# onelen: length of mark bit in μs | |
# repeats: number of times to repeat sequence | |
# pause: time to wait in μs between sequences | |
# bits: string of ones and zeros to represent sequence |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Filetype: Flipper SubGhz RAW File | |
Version: 1 | |
Frequency: 318000000 | |
Preset: FuriHalSubGhzPresetOok650Async | |
Protocol: RAW | |
RAW_Data: 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 4000 -500 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 4000 -500 4000 -500 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 4000 -500 500 -4000 4000 -500 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 4000 -500 500 -4000 4000 -500 4000 -500 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 4000 -500 4000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Find the raw bitstring from a captured Flipper RAW .sub file. | |
# Must provide the bitlength in ms, and the allowable error which can be tolerated. | |
import re | |
import sys | |
import math | |
filename = sys.argv[1] |