urh 之 “FSK“ 模块发送

from urh.dev.native.HackRF import HackRF
from urh.signalprocessing.Modulator import Modulator
import numpy as np
import time
import array




data = array.array("B", [1,1,1,1])

m = Modulator("fsk")
Modulator.modulation_type = "FSK"
data = m.modulate(data)


hfc = HackRF(433.92e6,1e6,1e6,40,47)
hfc.start_tx_mode(np.array(data))

while not hfc.sending_finished:
    time.sleep(1)

hfc.stop_tx_mode("Send finished")

你可能感兴趣的:(python,学习,urh)