# Power control when packets transmitting

**URL:** <https://www.ruby-forum.com/t/power-control-when-packets-transmitting/136479>\
**Category:** GNU Radio\
**Created:** [May 2, 2008, 2:43pm UTC](https://www.ruby-forum.com/t/power-control-when-packets-transmitting/136479 "2008-05-02T14:43:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![KC\_Huang](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/aeb1de/32.png) [@KC\_Huang](https://www.ruby-forum.com/u/KC_Huang)\
**Post date:** [May 2, 2008, 2:43pm UTC](https://www.ruby-forum.com/t/power-control-when-packets-transmitting/136479/1 "2008-05-02T14:43:32Z")

</div>

Hi:

My recent research project focuses on how to implement CogNet on  
GNUradio platform. As u know, the concept of cognitive radio is that the  
parameters can be adjusted according to different situations. Such as  
controlling power, switching freq and modulation when the packets are  
transmitting. But I am not sure if GNUradio platform can adjust these  
parameters in the middle of tranmission. I searched previous threads and  
found that metadata structure can do that because of pipeline  
transmission. Are there any ways to adjust parameters without using  
mblock format because I don’t think mblock is mature now?

I appreciate any suggestions!  
Thanks!!

KC Huang

---

<div class="post-metadata">

**Author:** ![KC\_Huang](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/aeb1de/32.png) [@KC\_Huang](https://www.ruby-forum.com/u/KC_Huang)\
**Post date:** [May 2, 2008, 4:13pm UTC](https://www.ruby-forum.com/t/power-control-when-packets-transmitting/136479/2 "2008-05-02T16:13:29Z")

</div>

On Fri, May 02, 2008 at 08:42:41AM -0400, KC Huang wrote:

> parameters without using mblock format because I don’t think mblock  
> is mature now?

Yes it can. Just call the exported interfaces for the blocks in  
question. On a related topic, I’ll be adding an mblock-interoperable  
“message receive” method to GNU Radio blocks, so that you’ll be able to  
thread-safely send and receive messages in GNU Radio code. The  
runtime system will ensure that the message receive code is only  
called when you’re NOT in the work method.

Did this answer your question?

> I appreciate any suggestions!  
> Thanks!!
> 
> KC Huang

Eric

---

<div class="post-metadata">

**Author:** ![KC\_Huang](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/aeb1de/32.png) [@KC\_Huang](https://www.ruby-forum.com/u/KC_Huang)\
**Post date:** [May 2, 2008, 7:35pm UTC](https://www.ruby-forum.com/t/power-control-when-packets-transmitting/136479/3 "2008-05-02T19:35:08Z")

</div>

KC Huang wrote:

> using mblock format because I don’t think mblock is mature now?  
> The easiest and quickest way to adjust power is to control the amplitude  
> of the samples you send to the USRP. This can be done in a signal  
> processing block and does not need m-blocks.

Matt
