I have the xGM210P Wireless Gecko 2.4 GHz +10 dBm Radio Board (SLWRB4308B) which is a +10dBm Tx power module but I can't figure out how to configure it to its maximum power. I changed this line in af-main-soc.c
But I still have Radio TX Power(db): 3 reported by emberGetNetworkParameters.
How can I configure this?
You can use API emberSetRadioPower to set TX power.
/** @brief Sets the radio output power at which a node is to operate for the * current logical network. Ember radios have discrete power settings. For a * list of available power settings, see the technical specification for the RF * communication module in your Developer Kit. * Note that using this API on a running network * will directly impact the established link qualities which the neighboring nodes * have with the node on which it is called. This can lead to disruption of * existing routes and erratic network behavior. * Note that, if the requested power level is not available on a given radio, this * function will use the next higher available power level. * * @param power A desired radio output power, in dBm. * * @return An ::EmberStatus value indicating the success or * failure of the command. Failure indicates that the requested power level * is out of range. */ EmberStatus emberSetRadioPower(int8_t power);
Thanks for helping.
I tried that as:
After the call to emberSetTxPowerMode(EMBER_AF_TX_POWER_MODE) in af-main-soc.c but it didn't work. Then I tried calling it before the call to emberSetTxPowerMode(EMBER_AF_TX_POWER_MODE) in af-main-soc.c and it didn't work either. Is this how I should call it? or should I delete the call to emberSetTxPowerMode?
I have a few questions for you:
1) You mention the various call attempts did not work. Does this mean you received a return value other than EMBER_SUCCESS?
The stack/board should use the most recent value passed to it with emberSetTxPowerMode().
2) In your hal-config.h, what is the value for BSP_PA_VOLTAGE?
Thanks for jumping in.
1) What I mean is that I still get "3" in the radioTxPower element of the EmberNetworkParameters struct instead of 10. I'm reading this value in the emberAfPluginNetworkSteeringCompleteCallback AFTER a connection to the network has been successful. Nevertheless, I'm calling emberSetRadioPower(10); when the chip initializes, this is, BEFORE connecting to the network. I don't know if that has something to do with it. And to clarify, I do get EMBER_SUCCESS in any scenario.
2) The value is 3300
Do I need to call emberSetRadioPower(10); AFTER having connected to the network?
I called emberSetRadioPower(10); AFTER connecting to the network and I got 10 on radioTxPower.
Thanks for helping!