|
From: | Marcin Puchlik |
Subject: | Re: Controlling flowgraph |
Date: | Mon, 6 Jun 2022 10:30:46 +0200 |
So what I'm doing is transmitting with a HackRF One and when I run the flowgraph the transmission starts and frames are sent as bursts and between the bursts, the transmitter stays on and I would like to turn it off at tx_eob and turn on tx at tx_sobBelow is the screenshot of the current flowgraph I'm implementing.On Mon, Jun 6, 2022 at 1:14 PM Marcin Puchlik <m.puchlik@is-wireless.com> wrote:Hi Vamshi,First, what do you mean by turning off/on the transmitter?Marcinpon., 6 cze 2022 o 09:14 Vamshi Sainath Gavani <rafale10574@gmail.com> napisał(a):Hello Folks,Here I'm implementing the transmission of LoRa Frames and I want to be able to stop the flowgraph(Stop Transmitting) between frames say the packet is set to transmit every 3s so at tx_eob turn off tx and tx_sob start tx.Below is my Flow graph code snippet can you let me know how I can turn off/on tx between the frames?def main(top_block_cls=lora_TX, options=None):
tb = top_block_cls()
def sig_handler(sig=None, frame=None):
tb.stop()
tb.wait()
sys.exit(0)
signal.signal(signal.SIGINT, sig_handler)
signal.signal(signal.SIGTERM, sig_handler)
tb.start()
try:
input('Press Enter to quit: ')
except EOFError:
pass
tb.stop()
tb.wait()
if __name__ == '__main__':
main()Thanks and Regards,Sainath Vamshi
[Prev in Thread] | Current Thread | [Next in Thread] |