Measurements

Measurements

Current, in milliamps, that each board running Kleidos draws from its own battery. Of the nine boards, I have measured one with the measurement system in the battery wire and two with the board's own power controller, and I print no figure yet for six. How long a charge lasts is my estimate from those figures, not a measurement.

On this page the only unlock times are the LILYGO T-Deck Plus's, timed on a development build with the production key derivation at three vault sizes, from a few dozen entries to a full vault; its card gives two of those times and its own page all of them.

I publish every figure I have measured, the high ones included, because these numbers exist nowhere else: no datasheet tells you what a password manager draws with its screen lit and an access point up.

Updated

Board by board

One card per board, the most-measured first: how long a charge lasts, or why I cannot say yet; how long an unlock takes, where I have timed it; then five states, each figure taken on the board's own battery with no USB power reaching it and labeled with the instrument that took it. A state with no figure says why.

On a board whose screen has no light, normal use, Wi-Fi and Bluetooth are the same screens unlit.

Measurement system: an INA228 in the battery wire, read by an ESP32-S3, with the USB cable left plugged in but its port switched off at the hub, so the cell alone powers the board, wired as the last section shows. Own sensor: the board's own power controller, read on battery in the run further down. Where both measured a state, the card shows the measurement system's figure.

The records behind the measurement system's figures are published as data under GPL-3.0-or-later. They are the measurement store's own records with two changes: while the repository is private, a path into it reads “[private repository]”; and the flag that says the shunt's nominal value was entered reads “shunt_nominal_declared”, beside a “shunt_resistance_measured” that is false, because I have never measured that resistance. There is one table for each board measured:

What it draws asleep: I have measured one of the nine boards

I have measured the LILYGO T-Deck Plus asleep, on its own cell with the measurement system in the battery wire: 3.93 mA in the sleep it ships with. On the 2,000 mAh cell I measured it with, a charge at that draw lasts about 21 days in a drawer, my estimate. I have not measured eight of the nine asleep, and I publish no sleep figure I have not measured.

The LILYGO T-Deck Plus's figure is the median of three runs of its production sleep that agree with one another, on a development build, with a microSD card in the slot. I do not know yet where most of it goes.

I took them with the USB cable left plugged in but its port switched off at the hub, so no power reached the board through it. A plugged cable can still change what a board draws: when this board's sleep drew more, I measured it both ways and the two agreed, and I have not repeated the comparison at the present figure.

A board cannot measure its own sleep for me. By my estimate, the drop in a cell's voltage after three days asleep would still only resolve 12.5 to 56 microamps on a stick, whose cell holds 120 to 250 mAh, and 41 to 486 microamps on the boards with a bigger cell. Until the measurement system has been on each of them, I publish no number for them.

Of the nine, six have no current sensor on the battery rail either, and the three that do read it in steps of 0.5 mA, too coarse to see anything but a leak, so the measurement system is the only way the other eight get a figure.

How a board sleeps decides what can still draw: the two that drop their own power hold cut their supply, which they can afford because a separate clock chip keeps the time; the four that switch off at a power controller leave that controller drawing; and the three that deep-sleep keep the chip powered.

On two of the boards that deep-sleep, the internal clock counts on through the sleep, though it drifts with no clock chip to keep it right, which is what the section on the drifting clock further down is about. The LILYGO T-Deck Plus is the one left: only its reset button or its power switch wakes it, and the reset leaves its clock unset.

How I work out the days

Each session is 15 seconds on the unlock screen, 30 on the vault list and 10 on the Bluetooth typing screen, then the idle timers: 10 seconds lit and 50 dark before the board goes back to sleep, 115 seconds awake in all. I work the days out for four ways of using it, from 0 to 50 sessions a day, with the board asleep for the rest of every day.

The days per charge for the LILYGO T-Deck Plus, by how it is used

What it draws awake, by the board's own sensor

A single run on battery with the USB cable unplugged, read by each board's own power controller, on a development build with the logging, the console and the diagnostics running. That build is not the firmware that ships: it had a prototype built in that lets the idle chip drop to a slower clock, which neither board's shipped firmware includes, and it predates the Plus SE's light sleep. I have not checked the power controller's readings against the measurement system. The backlight is at 100 percent except where a row says otherwise.

The same vault list draws 77.4 to 80.9 mA with the screen lit at 100 percent and 24.7 to 25.6 mA with the screen dark.

Two runs of the same phase on one board came out up to 4 mA apart, so a smaller difference between the two columns is not a finding. A comparison inside one run (one board, one charge, minutes apart) is the firm one.

The LILYGO T-Deck Plus with the measurement system, state by state

What the processor's speed costs

The same boards with the panel dark, held at each clock the firmware uses, on the same day and the same build as the figures above. That build had the prototype that lets the idle chip drop to a slower clock, so each clock in the table was a ceiling: a busy core ran at it, while an idle core dropped to the crystal's frequency. The firmware these boards ship does not have it, and I have not measured the clocks without it, where a higher clock may cost more than this table shows.

Processor speed Plus SE (mA) Core2 v1.3 (mA)
80 MHz What every screen runs at 22.025.3
160 MHz What a full-screen repaint is composed and sent at 26.130.2
240 MHz What the unlock's key derivation and the other heavy vault work run at 34.243.1

This table is why every screen runs at the lowest clock the chip's internal multiplier gives, and only the work that needs speed gets a higher one: with the panel dark, the boards drew 22.0 to 25.3 mA at 80 MHz and 34.2 to 43.1 mA at 240 MHz. The firmware raises the clock inside the heavy routines themselves, not in the code that calls them, so anything new that calls them gets the faster clock without asking for it. On the two boards built with the idle floor, the StickS3 and the T-Deck Plus, these clocks are ceilings, and an idle chip drops to the 40 MHz crystal.

The clock that drifts

The three boards with no clock chip keep time through a sleep on an internal oscillator divided by 256. Across 66 sleeps, measured against a host clock held to NTP, this is how far their clocks moved.

The table covers the production deep sleeps begun cold, and in every one of them the device clock fell behind. In sleeps begun hot, after ten minutes of load, two boards ran ahead instead: the StickS3 in one of its two hot sleeps and the Cardputer in both. The T-Deck fell behind in every deep sleep it took. Its own sleep ends only at its reset button, which leaves its clock unset, so its row measures the oscillator through sleeps a debug timer ended, not a clock the board keeps.

The largest errors over the whole run were 6,033 parts per million behind and 2,300 ahead. Each chip carries an offset of its own (the T-Deck about 5,000, the other two about 1,000), and around that offset the die temperature moves the error more than anything else: a sleep begun hot was off by 1,500 to 2,700 parts per million less. A light sleep with the crystal left powered does not keep crystal-class time either.

No correction is applied. None that fits that spread would hold a one-time code inside its one-step tolerance, so on these three boards the codes are off by default, and when switched on they ask for a fresh sync (from a network, from the browser that opened the admin panel, or from a satellite fix) made since the last deep sleep, and light sleep uses it up once it adds up to more than 200 s.

How these were taken

The figures above come from four different methods, and mixing them would be the most misleading thing this project could publish.

How the measurement system is wired
  1. Cell The board's own battery, at whatever charge it has. Nothing else feeds the board while a figure is taken.
  2. 0.100 Ω shunt In the battery's positive wire, so every milliamp the board draws passes through it.
  3. INA228 A current and voltage monitor that reads the drop across the shunt and the cell's voltage.
  4. ESP32-S3 Runs the measurement system's own firmware, which paces the readings and streams them over a 6 Mbit/s serial line.
  5. Computer Records the stream beside the build that ran, and switches the board's USB port off at the hub.

The shunt is marked R100 and nothing more. Its 1 percent tolerance is my assumption, not something I measured, and it is the largest part of the margin on every figure the measurement system takes.