discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Changing frequency dynamically in benchmark_rx.p


From: Tom Rondeau
Subject: Re: [Discuss-gnuradio] Changing frequency dynamically in benchmark_rx.py
Date: Thu, 18 Jun 2009 08:29:03 -0400

On Thu, Jun 18, 2009 at 12:50 AM, ali siddiqi<address@hidden> wrote:
> Hi,
>
> As far as I could understand, rx_callback  function in benchmark_rx.py
> executes only when a packet is received.
> If the tranmitted freq is 460e6 while the reciever is set at 459e6, no
> packet would be received. I want this 'no packet being received for a
> certain amount of time' as an indication to set the frequency of the
> receiver to another value; 460e6 in my case!
> How and where in the code should I put this logic?
>
> Looking for help!
> Ali

The first thing that comes to mind is to use threads and a join with a
timeout or a condition with a wait or a timer object.
See: http://docs.python.org/library/threading.html

You would implement this in benchmark_rx.py.

Tom




reply via email to

[Prev in Thread] Current Thread [Next in Thread]