Created
February 4, 2019 20:23
-
-
Save craigjperry2/ea3b65090a777eb3a85484601447575e to your computer and use it in GitHub Desktop.
Ultra Basic SunSDR2 Pro Scanner
This file contains hidden or 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 | |
import serial | |
import sys | |
import time | |
def main(): | |
freqs = [145.350, 145.400, 145.500] | |
with serial.Serial('COM6', 19200, timeout=1) as ser: | |
while True: | |
for f in freqs: | |
vfo_a_cat_command = "FA{:011.0f};".format(f * 1000000).encode('ascii') | |
ser.write(vfo_a_cat_command) | |
time.sleep(5) | |
if __name__ == '__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment