Power consumption and production testing Qoitech Otii and pytest

Benefits

The test bench

  • Measure power consumption per firmware function (or a set of them), for example measuring the analog channel, LoRaWAN transmission, BLE transmission, LED blink and others
  • Automatically provision device firmware and parameters with a set-up that fully disconnects the programmer to avoid any current leakage
  • Actuate and detect device inputs and outputs, for example, detect an LED blink, create an analog pulse on the input etc.
  • Connect via LoRaWAN or BLE and validate correct operation and settings.
Test setup

The software

Test configuration

  • "from" is the message where measuring begins, matches text
  • "to" is the message where measuring ends, matches text
  • "avg_limit_low" is the lowest amount of energy (in μWh) that can be used up in the specified duration (on average).
  • "avg_limit_high" is the highest amount of energy (in μWh) that can be used up in the specified duration (on average).
  • "timeout" is the highest amount of time (in ms) allowed between messages. If timeout is 0, the limit is infinite.
enum state_e{
INIT,
LORAWAN_INIT,
LORAWAN_JOIN_START,
LORAWAN_JOIN,
GENERAL_INIT,
IDLE,
SETTINGS_SEND,
STATUS_SEND,
RF_SEND,
GPS_START,
GPS_READ,
GPS_SEND,
GPS_LOG_SEND,
LORAWAN_TRANSMIT,
HIBERNATION
};
...
{
"from": "fsm(0",
"to": "fsm(0",
"avg_limit_low": 0,
"avg_limit_high": 0.1,
"timeout": 0
},
{
"from": "fsm(3",
"to": "fsm(4",
"avg_limit_low": 100,
"avg_limit_high": 170,
"timeout": 8
},
...

Test results

  • GPS IC not soldered correctly
  • Short-circuit in step-down converter
  • LoRaWAN RF problem as the transmission failed

--

--

--

We are applying today’s knowledge to create systems for an open future.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Best Project Management Software 2017

nice project

How to root Haier g51

Root LG Phone

Creating Multi-boot USB: For Catalina and Mojave Installer

ONTO x Juggernaut Giveaway: $500 Worth of JGN Up For Grabs!

Improving SEO with code

Get Your Cloud Migration Strategy Right the First Time Around

Common habits that carry over from waterfall to agile

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Institute IRNAS

Institute IRNAS

We are applying today’s knowledge to create systems for an open future.

More from Medium

DECORATOR & GENERATORS

Do Resumes and Snapshots Go Well Together?

God in drag and the power of prayer

My Netflix Review: AUDIBLE (July 2021)