Exemplo n.º 1
0
import time  ## Need to have time stamp
import datetime
import socket
import xlwt  # printing in xls
import xlsxwriter
# Mosquitto sub pub running
import paho.mqtt.client as mqtt  # mqtt running
import paho.mqtt.publish as publish  # mqtt running
np.set_printoptions(threshold=np.inf)  # Needed to print all the array values

sdr = RtlSdr()

# configure device--------------------
sdr.sample_rate = 2.048e6  # Hz
#sdr.center_freq = 70e6     # Hz
sdr.DEFAULT_READ_SIZE = 0.2e6  # Bandwidth in MHz
#sdr.bandwidth = 2e6 Trying new way to set bandwidth
sdr.freq_correction = 60  # PPM
sdr.gain = 'auto'
start = 70e6
end = 75e6
jump = 1e6
samplessent = 0
numberofloops = 0
lat = 28.6005417
lon = -81.1974785

start = int(start)
end = int(end)
jump = int(jump)