On Thu, Jun 18, 2009 at 12:50 AM, ali siddiqi<chain...@gmail.com> 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 _______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio