| Author |
Message |
|
|
Posted: Nov 20, 2009 - 02:26 PM |
|

Joined: Nov 20, 2009
Posts: 28
|
|
I´m Alejandro Fernández and I turn to you to explain exactly what I do to see if you can help me. Forbidden the part of changing any parameter on run time, I´m going to tell you what I do to change the initial value.
Respecting to the stack I use, it is the lattest one from your web, the BitCloud_ZDK_1_6_0. Starting from the WSN Demo in the Sample Applications folder, I open the project with the AVR Studio, and in the Configuration file I change the CS_RF_TX_POWER from 3 to -10 (because the values go from 3 to - 17, don´t they?). Then I save, clean and rebuild all files and I upload the new .hex file to the flash memory. No changes in power consumption (near 26 mA when sending) neither RSSI is detected.
I´ve tried this with different modules and also with a different example: instead the WSN Demo, the Ping Pong one. In this case, as it doesn´t appear the RF_TX_POWER parameter in the Configuration file, I have to add this parameter to the list of the Makefile like this:
CS_PARAMS = \
CS_RF_TX_POWER \
CS_END_DEVICE_SLEEP_PERIOD \
CS_NEIB_TABLE_SIZE \
CS_MAX_CHILDREN_AMOUNT \
CS_MAX_CHILDREN_ROUTER_AMOUNT \
CS_ROUTE_TABLE_SIZE \
CS_ADDRESS_MAP_TABLE_SIZE
....
And then write again CS_RF_TX_POWER = -10 in the Configuration file. The rest of the process is the same as before, and the result too.
Please I thank you very much all you can do to help me with my problems.
Best regards,
Alejandro Fernández |
|
|
| |
|
|
|
|
|
Posted: Nov 20, 2009 - 06:26 PM |
|


Joined: Apr 15, 2009
Posts: 4861
Location: San Jose, CA
|
|
Output power does not affect power consumption that much. In fact even when transmitting RF chip spends most of the time in receive mode.
The only proper way to tell that output power actually reduced would be to measure it. |
|
|
| |
|
|
|
|
|
Posted: Nov 21, 2009 - 03:48 AM |
|

Joined: Dec 18, 2001
Posts: 4708
|
|
| Transmit duty cycle is maybe 1 or 2% in typical use. |
|
|
| |
|
|
|
|
|
Posted: Dec 16, 2009 - 11:31 AM |
|

Joined: Nov 20, 2009
Posts: 28
|
|
You are right, thank you.
Now I´m working changing the output power on runtime, and I achieved this after connecting to the network. I mean, I connect the node to the network, then change the power and see the results.OK.
What I want now is to begin with the minimum power level, and increase it until the node connects to the network. But in this case the status of the ZDO_SetTxPowerConf is always FAIL. Do you know why this happen?
Thank you again.
Alejandro Fernández |
|
|
| |
|
|
|
|
|
Posted: Dec 16, 2009 - 11:39 AM |
|


Joined: Apr 15, 2009
Posts: 4861
Location: San Jose, CA
|
|
|
alejandrofdelhierro wrote:
Do you know why this happen?
ZDO_SetTxPowerReq() sets power value directly to MAC layer. When stack is out of network MAC is not running.
When MAC starts it uses CS_RF_TX_POWER value as default. Change it before network start. |
|
|
| |
|
|
|
|
|
Posted: Dec 16, 2009 - 11:51 AM |
|

Joined: Nov 20, 2009
Posts: 28
|
|
So do you think that changing it with CS_WriteParameter(CS_RF_TX_POWER , &txpower); should work?
Or you can only work with the default value until the node connects? |
|
|
| |
|
|
|
|
|
Posted: Dec 16, 2009 - 12:24 PM |
|


Joined: Apr 15, 2009
Posts: 4861
Location: San Jose, CA
|
|
|
alejandrofdelhierro wrote:
Or you can only work with the default value until the node connects?
CS_WriteParameter(CS_RF_TX_POWER_ID , &txpower) is correct way.
When node connects to network it uses CS_RF_TX_POWER as tx power. Later you may set it to anything you want using ZDO function. |
|
|
| |
|
|
|
|
|
Posted: Dec 17, 2009 - 02:17 PM |
|

Joined: Nov 20, 2009
Posts: 28
|
|
Perfect, it really works as I wanted. Thank you very much! Now I´m going to dedicate to the other topic (you know what I mean), sorry for wasting your time!  |
|
|
| |
|
|
|
|
|
Posted: Jan 13, 2010 - 10:33 AM |
|

Joined: Jan 13, 2010
Posts: 2
|
|
Hi!
I need help!
Is parameter CS_RF_TX_POWER range from -XX to 20 for module MNZB-A24-UFL (with amp) ?
It is interesting to me the maximum value.
...
and where can i get to know this ?
Thanks In Advance |
|
|
| |
|
|
|
|
|
Posted: Jan 13, 2010 - 11:33 AM |
|

Joined: Jan 13, 2010
Posts: 2
|
|
Hi!
I know answer ( thanks to alexru !!!)
The power of chip is range from -17 to 3 (respect -17...3 dBm).
The amplifier (+17dBm) is always on and configurable via HAL_USE_AMPLIFIER.
That's All For Now.... |
|
|
| |
|
|
|
|
|
Posted: Jan 13, 2010 - 08:20 PM |
|

Joined: Dec 18, 2001
Posts: 4708
|
|
|
alejandrofdelhierro wrote:
What I want now is to begin with the minimum power level, and increase it until the node connects to the network.
OK, but wireless 101 says you need lots of margin in received signal strength due to propagation variations over time from fading and mobility. |
|
|
| |
|
|
|
|
|
Posted: Feb 03, 2010 - 02:32 AM |
|

Joined: Feb 03, 2010
Posts: 9
|
|
Sorry to borther you but where I can download this WSN Demo? I tried to find places but no luck...
I much appreciate your help.
Regards |
|
|
| |
|
|
|
|
|
Posted: Feb 03, 2010 - 06:57 AM |
|


Joined: Apr 15, 2009
Posts: 4861
Location: San Jose, CA
|
|
|
Ponyo wrote:
Sorry to borther you but where I can download this WSN Demo?
Look for BitCloud SDK on atmel.com and choose one appropriate to your platform. |
|
|
| |
|
|
|
|
|
Posted: Feb 03, 2010 - 06:30 PM |
|

Joined: Feb 03, 2010
Posts: 9
|
|
| Thanks a million! I found it. |
|
|
| |
|
|
|
|
|