Skip to content

Instantly share code, notes, and snippets.

@craigjperry2
Created February 4, 2019 20:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save craigjperry2/ea3b65090a777eb3a85484601447575e to your computer and use it in GitHub Desktop.
Save craigjperry2/ea3b65090a777eb3a85484601447575e to your computer and use it in GitHub Desktop.
Ultra Basic SunSDR2 Pro Scanner
#!/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