Hi Johannes,
--
Yang
Sent with Sparrow
I think I have faced a similar problem like yours. I intend to implement a dynamic spectrum access system: sensing on the rx side and transmit on tx side.
I solved the problem in a dumb way: I start and stop rx and tx block orderly in a while loop and use some global variables to store parameters that needs to be changed. It works well in most of time, but throw errors like "usrp2::samples() not receiving" in a few times.
I am interested in what you guys are discussing about, though something of it seems pretty abstract and vague to me.
--
Yang
Sent with Sparrow
On 2011年5月27日星期五 at 下午10:25, Johannes Schmitz wrote:
Hi Scott,This works well during testing. Once you get some kind of protocol or some
series of steps that you want to do, you can just test a flag, and whenever
your block finishes set it to true, then reconfigure.
What do you mean with "your block finishes" ? How do you implement this flags?
I am now using a thread to implement the state machine.
I am using member variables in the C++ blocks to implement the flags
or to hand over certain signals/values to the control thread.
Johannes
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
No comments:
Post a Comment