I am developing a LoRa firmware in RIOT that i will flash to B-L072Z-LRWAN1 board deployed in Saclay site of FIT IoT-LAB. I want to measure energy consumption based on software since i don’t have complete control over the motes. Is there some module like the Energest module in contiki-ng that allows measuring power consumption of nodes in different states (rx, tx, LPM, CPU…) ?
to my knowledge there is no pure software solution to estimating power consumption. It would be possible to track the time spent in certain power modes with few lines of code changed in the pm layered module for all platforms using pm layered. But that would not provide estimation of power consumed by peripherals and external modules (such as external sensors and network interfaces).
If I recall correctly, a number of boards in the FIT IoT-Lab do have hardware to monitor the power consumed by the board. That would be a lot more accurate to monitor the power consumed, as it would be an actual measurement rather than an estimation.
@aabadie will know if such a feature is available.