Пример #1
0
 def test_hackrf_class_recv(self):
     hfc = HackRF(433.92e6, 1e6, 1e6, 20)
     hfc.start_rx_mode()
     i = 0
     TIME_TOTAL = 5
     while i <TIME_TOTAL:
         print("{0}/{1}".format(i+1, TIME_TOTAL))
         time.sleep(1)
         i+=1
     print("{0:,}".format(hfc.current_recv_index))
     hfc.received_data.tofile("/tmp/hackrf.complex")
     print("Wrote Data")
     hfc.stop_rx_mode("Finished test")
Пример #2
0
# import pyximport
#
#
# pyximport.install()

from urh.dev.native.lib import hackrf

from urh.dev.native.HackRF import HackRF
hfc = HackRF(433.92e6, 1e6, 1e6, 20)
hfc.start_rx_mode()
#
# from urh.dev.native.RTLSDR import RTLSDR
# rtlsdr = RTLSDR(433.92e6, 20, 2e6, device_number=0)
# rtlsdr.start_rx_mode()