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

Setting up Message Transmission

Hummingbird: Building Flutter for the Web

That’s how we post

Difference between I2C and SPI (I2C VS SPI)

CS 371p Fall 2020: Final Entry

Looking back to 3 years Agile software delivery

How Enterprise Leaders Perceive DevOps in 2021

Day 27 Training at Ryaz : Designing Radio and checkboxes.

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

Pixar Rewatch: “Toy Story 2” | “Monsters Inc.”

Nothing you think is real — An Interview With Magic Self and Spirit — Digital Tulpas Clip

CS371p Spring 2022 Blog #3: Lilia Li

elisaHuman ReverseTri-iodothyronine,rT3 ELISA Kit