This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software:
HI Ti:
I'm having some trouble with the rfPacketTX routine for the cc2340r5.Here is the code I modified
This is my device:
Here's the current I measured:
The 4-minute average current is now 33.98uA as shown in the last graph
Now I have two questions:
1:Is it necessary to close the rf and then open it when switching channels, i.e. call RCL_close() and then RCL_open()? This may consume more time increasing power consumption.
2:As the current waveform shows, I am using a voltage of 3.3 V. The total energy used to send 3 channels in a row is 3.3 V * 3.4 mA * 3.23 ms = 36.2406。But only counting the energy consumption when sending, as shown in the penultimate 2, 3 and 4 graphs: the energy consumption is
3.3V*4.6mA*0.4667mS = 7.08
3.3V*4.6mA*0.4833mS = 7.3
3.3V*4.7mA*0.4667mS = 7.2
Total 21.58
So the effective energy share is 21.58/36.2406 = 0.595 = 59.5%.
Can there be a way to increase this percentage?
thanks!!
Regards,
Yi
Hello Yi,
Your code is matching pretty closely to the rfPacketTx example, so it is pretty close to the minimal current consumption for the given radio configuration, assuming all other HW peripherals (e.g. UART, SPI) are not used in this test.
1:Is it necessary to close the rf and then open it when switching channels, i.e. call RCL_close() and then RCL_open()? This may consume more time increasing power consumption.
No, it is not necessary to call RCL_open/close. The RCL will only be active if there is a current command being handled.
Can there be a way to increase this percentage?
I assume you want to minimize overall energy consumption. Since voltage typically stays constant, you can just look at current consumption.
Also, to reduce percent of energy_tx/energy_tot, either reduce energy_tx or increase energy_tot. Increasing energy_tot is trivial (just keep the device in active), but also consumes more current... I assume the main goal is to reduce overall current consumption (which reduces overall energy consumption).
To reduce current consumption, based on info provided, some of my suggestions are:
Thanks,
Toby
Hi Toby,
For the first point, I would like to know why you say it is possible to do without calling RCL_close and RCL_open?Don't I need to modify PBE_GENERIC_RAM.WHITEINIT after I change the frequency? Then call RCL_open in order to pass in the value of PBE_GENERIC_RAM.WHITEINIT.I changed the frequency and PBE_GENERIC_RAM.WHITEINIT but without calling RCL_close and RCL_open and then using wireless sniffer, I can't receive data from the changed channel.
2、3、5:Our request is that txpower and txpacket not be lowered any further.The frequency of transmission cannot be reduced either。
4:I tried to reduce the code before RCL_Command_submit (no more updating the data, sending the same data for each channel), but that doesn't seem to help either!
Then I tried other methods and created three rclHandles corresponding to three different channels and PBE_GENERIC_RAM.WHITEINIT. as in Figure 1
Then, I noticed that the time interval between sending the two channels did become shorter, as shown in Figure 2,But the startup time before sending the first channel becomes more. As in Figure 3, then the total time to send does not change.as in Figure 4
The following figure shows the measurements of the very first code
Hello Yi,
Understood there are application requirements of what techniques can be used to lower overall energy consumption.
Can you share the code for switch_white?
It may be that this is changing something in the radio at a level requiring a re-load, which is expected to take more time.
Thanks,
Toby
There is also a problem that when using this program, when the chip is near a conductor (e.g., a small magnet, a hand, an iron cabinet) an abnormal current waveform occurs, resulting in increased power consumption.figure below,This anomalous waveform has a frequency of 50 Hz。
It looks like this when it's not near normal
This abnormal current waveform is caused by the fact that the voltage source we are powering the chip with is not grounded.
Does this go away if the voltage source is grounded?
This is to modify the PBE_GENERIC_RAM.WHITEINIT in the configuration.And then loaded in via RCL_open
Ok, in this case then it is normal to have more time spent in the the RCL_open, because the registers would have to be re-loaded. (This will happen even if you only call RCL_close then RCL_open).
Note that LRF_commonRegConfig is meant to be constant... meaning that RCL expects this value to not change. But if you do change it, then yes, a RCL_close and open is required.