Exemplo n.º 1
0
 def test_receive(self):
     rtlsdr_class = RTLSDR(433.92e6, 20, 2e6, device_number=0)
     self.assertEqual(rtlsdr_class.current_recv_index, 0)
     rtlsdr_class.start_rx_mode()
     time.sleep(2)
     rtlsdr_class.stop_rx_mode("Finished")
     index = rtlsdr_class.current_recv_index
     print(rtlsdr_class.current_recv_index)
     self.assertGreater(rtlsdr_class.current_recv_index, 0)
     time.sleep(2)
     self.assertEqual(index, rtlsdr_class.current_recv_index)
     rtlsdr_class.start_rx_mode()
     time.sleep(1)
     self.assertGreater(rtlsdr_class.current_recv_index, index)
Exemplo n.º 2
0
 def test_receive(self):
     rtlsdr_class = RTLSDR(433.92e6, 20, 2e6, device_number=0)
     self.assertEqual(rtlsdr_class.current_recv_index, 0)
     rtlsdr_class.start_rx_mode()
     time.sleep(2)
     rtlsdr_class.stop_rx_mode("Finished")
     index = rtlsdr_class.current_recv_index
     print(rtlsdr_class.current_recv_index)
     self.assertGreater(rtlsdr_class.current_recv_index, 0)
     time.sleep(2)
     self.assertEqual(index, rtlsdr_class.current_recv_index)
     rtlsdr_class.start_rx_mode()
     time.sleep(1)
     self.assertGreater(rtlsdr_class.current_recv_index, index)
Exemplo n.º 3
0

from urh.dev.native.HackRF import HackRF
from urh.dev.native.RTLSDR import RTLSDR

hfc = HackRF(433.92e6, 1e6, 1e6, 20)
hfc.start_rx_mode()

rtlsdr = RTLSDR(433.92e6, 20, 2e6, device_number=0)
rtlsdr.start_rx_mode()