Skip to content
Basic

Glossary

Each term of the book has one short entry here. A term marked in a page shows its entry when you point at it, and links here; "More" leads to the chapter that explains it.

allocation unit: The stretch of an SD card that the card erases and rewrites as one, often 4 MiB; a segment matches it. More

API bundle: The WireWeaver description of the device's API, stored once in the meta area so that a PC decodes every track's items. More

binding: The ring file's place on its card, kept in the superblock, so that a mount refuses a ring copied or moved elsewhere. More

block: The unit logring writes: 512 bytes, of which 504 hold payload and 8 the trailer. More

CAN (Controller Area Network): The vehicle bus whose frames the drive's track can0 records, about a thousand per second. More

card check: The test a format runs on a new SD card: that it holds what it claims, and which flush size it writes fastest. More

CRC (cyclic redundancy check): A checksum over a block or a structure, so that a reader detects bytes that a power cut or the card damaged. More

data ring: The segments after the meta area that hold the tracks' records, reused in order once the ring goes round. More

drive: The book's running example: a motor controller board that keeps its log, mode, CAN frames and battery voltage on an SD card. More

durability: A track's choice of when its records reach the card: with the next flush (Normal) or at once (Immediate). More

exFAT: The file system of SD cards over 32 GB; logring keeps its ring as one preallocated file of it. More

flush: What the writer puts on the card in one go: a head, the records since the last flush, and padding to the end of a block. More

flush head: The start of a flush: the device time and the positions the flush's records count from, for all tracks or for the busy ones. More

item: One value of a track, encoded with shrink_wrap: a log line, a CAN frame, a voltage. More

marker: A labelled point in time in the system track, such as a button press, written at once. More

MCAP: A container format for robotics logs that Foxglove reads; the logring tool exports tracks into it. More

meta area: The segments after the superblock that hold sessions, recordings and the API bundle, a ring of its own. More

MF4 (Measurement Data Format version 4): The ASAM file format of measurement tools; the logring tool exports numeric tracks and CAN frames into it. More

mount: What the firmware does at every boot: find the end of the log, recover the tracks' positions and open a new session. More

position: The number of a record within its track, counting up across sessions, so that a reader asks for records by it. More

record: One item on the card with its track, its position and its device time. More

recording: A stretch of the log that the firmware started and stopped, such as one test run, kept in a table for a reader to select. More

ring: A preallocated store that writes its newest data over its oldest, so that it never grows and always holds the latest days. More

ring file: The ring as one preallocated file on an exFAT card, logring.wlr, written in place without the file system. More

SD (Secure Digital): The memory card the drive logs to, written in blocks of 512 bytes and erased by allocation unit. More

segment: A run of blocks, the size of the card's allocation unit, that holds one session's flushes and starts with the track table. More

segment seq: A segment's number for the life of the log; the segment with seq s sits in slot s mod n of its ring. More

session: Everything one mount writes, from a boot to the next; a new session always starts a new segment. More

stage buffer: The RAM in which the writer builds a flush before it goes to the card. More

superblock: The block at the start of the ring with the layout and counters, written in two slots in turn so that a power cut keeps one. More

system track: Track 0, which logring writes itself: session starts, recordings and markers. More

torn block: A block whose tag is the ring's but whose CRC fails: the write a power cut interrupted, or a block the card damaged. More

track: One stream of items in the ring, such as the drive's can0, named by its path in the device's API. More

track key: A hash of the API root and a track's path, the same across sessions and firmware updates, so that a reader joins a track's records. More

track table: The list of a session's tracks at the start of every segment, so that any segment decodes on its own. More

trailer: The last 8 bytes of a block: a tag that says the block is the ring's, the distance to its flush's start, and a CRC. More