Created
February 11, 2021 03:12
-
-
Save notpike/9237c6700615bb5993412a641dcc6d0d to your computer and use it in GitHub Desktop.
RFCat 2fsk Debug Tool
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/python | |
from rflib import * | |
import time | |
def init(freq): | |
d.setFreq(freq) | |
d.setMdmModulation(MOD_FORMAT_2_FSK) | |
d.setMdmDeviatn(4500) | |
d.setMdmDRate(1200) | |
#d.setMdmNumPreamble(0) | |
d.makePktFLEN() # Fixed packet mode... PKTLEN is length of actual packet and is put into the packet structure. | |
d.setMdmSyncMode(1) | |
d.setMdmSyncWord(0xAAAA) | |
#d.setMaxPower() | |
def main(): | |
# freq = 440e6 | |
# init(freq) | |
# d.RFxmit("WU7ANG DOSE THIS WORK YET?", 3) | |
# d.setModeIDLE() | |
#Cheap steper function for debugging | |
freq = 440.02e6 | |
init(freq) | |
while freq > 439.9700e6: | |
#d.RFxmit("\x7C\xD2\x15\xD8", 10) | |
d.RFxmit("\xff"+"WU7ANG FOREVER!") | |
d.setModeIDLE() | |
#time.sleep(0.1) | |
freq -= 0.0005e6 | |
d.setFreq(freq) | |
print("FREQ: " +str(freq)) | |
if __name__ == '__main__': | |
d = RfCat(idx=0) | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment