Hello everyone,
I am currently working on a school project in which I need to record the energy consumption (mA) of ESP32-H2s over a 190 minute period using the Nordic Power Profiler Kit II (PPK2). The ESP32-H2s operate in deep sleep and send a packet (using OpenThread) once every 30 seconds. As a result, I would like to record their energy consumption only when they are awake and sending a packet.
I don't want to use Data Logger mode, as I measuring them at 100k samples per second, and it would result in very large files that will take a long time to parse into .csv. It will take even longer afterwards too, as I will have to use a Python script to go through the CSV to calculate the average over the whole 190 minute period.
I am using Trigger/Scope mode for the PPK2. However, I cannot seem to get the Trigger/Scope mode to measure continuously for 190 minute period. Rather than recording the energy consumption every time the device wakes up, the PPK2 under Scope mode would instead record a 1 second interval in which the device woke up, sent a packet, and go back to sleep. Then when the device wakes up again, the previous 1 second interval would be overwritten by measurements for the 1 second interval that happens the next time the device wakes up.
As a result like to ask how I can get my PPK2s to record using Trigger/Scope mode for a continuous period time of 190 minutes. Or is it not possible to do this week the PPK2? In addition, I was thinking about using the unofficial PPK2 Python API, but I believe API does not yet support Trigger/Scope mode.
Any guidance, feedback, and advice on how I can use trigger mode to record device wakes for a 190 minute period, at 100k samples per second, would greatly be appreciated.