Replies: 3 comments 5 replies
-
Your circuit is like this? In any case, the 2nd current trace looks like the Wifi receiver is almost continuously active. Modem sleep means the CPU is always running (~20mA), just the Wifi receiver sleeps and wakes up periodically to receive beacons. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
More testing, proposed or inspired by comments from @dbeinder TEST 1: What happens when Power saving is turned OFF? TEST 2: Does the same happen if device is powered off/on (not just using RESET button)?
These are from the same measurement plot, I just use the marker on two different regions: TEST 3: Set Power saving to Maximum TEST 4: Could this be "something with the AP"? Set up a mobile hotspot as AP - and see what happens. Power saving Maximum (I see no difference): Conclusion (?) My Wifi system is TP-link Deco M9 Plus: a mesh system with 3 nodes. The node closest to my workbench is not the main node (i.e. not the node connected directly to internet). This node is less than 2 meters from the amsreader device, which gives very strong signal, around -43 dBm. Comments and opinions are welcome! |
Beta Was this translation helpful? Give feedback.
-
I am by this reaching out to persons with ESP32 competence in our community to discuss a phenomena that we are struggling to understand. Maybe one of you have seen this before, or heard rumors that could help figuring out what is going on here?
Note:
This discussion is maybe a bit premature, as we have not yet gotten around to investigating it with firmware v2.2.22 or newer. But since we indicated the issue yesterday in #627, it could anyway be the right time.
One very interesting functionality that was introduced in v2.2.22 was the ability to disable "802.11b legacy rates" (it is by default enabled). By disabling it, my Pow-K has now not yet done a "power-down reboot" since I upgraded 3 days ago. Voltage logging of the input voltage to the board while running v2.2.21 showed significant voltage drops lasting for several seconds 2-3 times per day. Until v2.2.22 my hypothesis was that the power supply in the Kamstrup struggled (maybe linked to power being used to transmit information to the grid company). But the change of behavior after disabling 802.11b legacy rates kind of killed that hypothesis.
This is an example (probably one of the "worst", i.e. longest lasting) voltage drop.
The voltage that is logged here is the input voltage to the board, which is nominally 4,15V. This voltage is regulated down on the board to 3,3V, using a low-dropout linear voltage regulator (LDO). Logging interval i 1 second, corresponding to each red dot.
To ensure we avoid brownout, this board has a voltage supervisor that resets the board if the operating voltage drops below 3.08V. The LDO has a dropout voltage specified to 130 mV at 100 mA (and we are operating it at lower current, so in our application the dropout voltage is lower; maybe around 100 mV. This means that if the input voltage drops below around 3.2V, the board reboots.
I have not gotten around to repeating this logging after switching to v2.2.22 (disabling 802.11b legacy rate), as I want to see if the reboots are really gone before I pull the board out of the meter.
Now, this interesting change serves as background for the issue I wanted to discuss:
Two distinctly different current draw patterns on ESP32-S2 boards when running firmware v2.2.21
Measurements are done using a Nordic Power Profiler Kit II.
Current measured while powering boards from USB (5V), before the LDO. But since this is a linear regulator, and there is no consumer on 5V, the current draw we measure on 5V is virtually identical to the 3,3V current draw.
This is what we see. The plot starts right after I pressed the reset button, then there are four more reset button presses done with around 20 second interval.
This is typically what we see:
In "Mode 1" we measure an average consumption of around 45 mA after the device has stabilized:
In "Mode 2" we measure an average consumption of around 80 mA after the device has stabilized:
As you can see, the current draw pattern is distinctly different.
In Mode 2, it looks like the ESP does not fall to "auto modem sleep" current consumption (which it should).
I would say the "toggle" pattern is almost 100% repeatable: Each time I reboot it using the Reset button (which actuates the EN pin of the ESP module), it toggles to the other mode. I have seen cases where it stays in the same mode - but that is rare.
We do not know if this applies to other ESP32 variants. I have tried some random older code versions - and see the same thing. We have tried (based on rumors) rebuilding the code for 240 MHz - and see the same thing.
I will report back here when I have done the same test with firmware v2.2.22 (802.11b legacy rate disabled).
In the mean time:
Any ideas, anyone?
Beta Was this translation helpful? Give feedback.
All reactions