Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

ULCP: Device Domain

The device domain is everything that belongs to the radio itself: its own node identity, the settings that make it behave the way its operator commissioned it, and the telemetry it can report about its own hardware. None of it is keyed by the attached host, and none of it is disturbed when one host replaces another (see State Classes).

Commissioning a repeater is exactly this: writing device-domain state and saving it. It is also the reason a host that is merely administering a device writes nothing in the host domain—see Two Kinds of Attach.

The Device Identity

The device hosts a node belonging to the device itself, used for in-band management, diagnostics, repeater forwarding (see PROP_MAC_REPEATER_MODE), and (in future revisions) periodic advertisement behavior. Its Ed25519 private key is held by the device and is never readable through this protocol.

On a device with a messaging interface of its own (see The Device’s Own Interface), the device identity is also the messaging identity of whoever carries the device: its conversations are held under it, and its peers address it. Such a device advertises the TXT capability bit (see Capability Bitmap), derives its role as Chat (see PROP_IDENT_ROLE), and advertises itself as mobile by default (see PROP_IDENT_MOBILE).

A device identity always exists. A device advertising CAP_DEV_IDENTITY that finds no stored keypair at power-on MUST generate one from a cryptographic random source and persist it before processing any host command; PROP_DEV_KEY therefore never reports an empty value on a running device. Provisioning an identity is not a commissioning step: a factory-fresh radio is already a node, and PROP_DEV_PRIVATE_KEY exists to install a particular identity—restoring a known repeater onto replacement hardware—not to bring one into being.

The corollary is that a radio holds a throwaway identity from first power-on until a specific one is installed. This is safe because it never reaches the air: PROP_PHY_ENABLED is false post-reset, and a radio with nothing saved boots with the PHY disabled. It is not safe automatically on the restore path—see CMD_RESTORE.

Because the device holds this identity’s private key, it performs its own key agreement and needs only peer public keys (see PROP_DEV_PEERS). That is the opposite of the host identity, for which the device holds no private key and every pairwise key must be provisioned explicitly (see Tethered Host Services).

Lists Held by the Device’s Store

A device with a messaging interface of its own keeps a store for its conversations, and that store MAY also keep the device identity’s lists, PROP_DEV_PEERS and PROP_DEV_GROUP_KEYS: whom its carrier talks with and in which groups belong with the conversations, not with the radio’s configuration.

Lists the store keeps are persisted as they change, as the device identity is, and are outside the saved snapshot (see Saved State):

  • CMD_SAVE does not record them, and CMD_RESTORE leaves them as they are.
  • CMD_RST restores them as last stored.
  • CMD_CLEAR erases them with the rest of the persisted provisioning, and leaves the conversations.

With none stored, PROP_DEV_PEERS is empty and PROP_DEV_GROUP_KEYS holds the groups the messaging interface starts out in, the default groups: the Public group and the EMERGENCY group.

Capabilities

CodeNameRequiresGrants
37CAP_DEV_IDENTITY—The device identity: PROP_DEV_KEY, PROP_DEV_PRIVATE_KEY, PROP_DEV_GROUP_KEYS, PROP_DEV_PEERS
38CAP_DEV_NAME—PROP_DEV_NAME
39CAP_BATTERY—Battery-powered operation and PROP_BATTERY
40CAP_REPEATERCAP_DEV_IDENTITYAutonomous repeater forwarding by the device identity: PROP_MAC_REPEATER_MODE, PROP_MAC_REPEATER_STATE (with CAP_STATS), PROP_MAC_REPEATER_REGIONS, PROP_MAC_REPEATER_DEFAULT_REGION, PROP_MAC_REPEATER_MIN_RSSI, PROP_MAC_REPEATER_MIN_SNR
41CAP_IDENTCAP_DEV_IDENTITYPROP_IDENT, PROP_IDENT_ROLE, PROP_IDENT_MOBILE, PROP_IDENT_LOCATION, PROP_IDENT_ALTITUDE, PROP_IDENT_CONTACT—serving and configuring the device identity’s advertised node identity
42CAP_ALERT—Some means of making the device physically conspicuous on demand, and PROP_ALERT
44CAP_TIME—A wall clock: PROP_TIME, PROP_TZ_RULE, PROP_TIME_24H
45CAP_GNSSCAP_TIMEA GNSS receiver: PROP_GNSS_ENABLED, PROP_GNSS_LOCATION, PROP_GNSS_ALTITUDE, PROP_GNSS_FIX, PROP_GNSS_PRECISION, PROP_GNSS_SATELLITES, PROP_GNSS_IDENT_UPDATE, PROP_GNSS_IDENT_PRECISION, PROP_GNSS_TIME_TRUST
46CAP_ADVERTCAP_DEV_IDENTITYAnnouncing itself: on a schedule of its own (PROP_ADVERT_INTERVAL, PROP_BEACON_INTERVAL, PROP_STARTUP_BEACON) and on demand (CMD_ANNOUNCE)
47CAP_ILLUMINANCE—An ambient light sensor and PROP_ILLUMINANCE
59CAP_DISPLAY_MOTION_WAKE—Orientation-qualified display wake and PROP_DISPLAY_MOTION_WAKE_ENABLED
61CAP_TEMPERATURE—PROP_TEMPERATURES and PROP_TEMPERATURE_NAMES; the inventory may initially be empty
62CAP_MESHCORE_FORWARDERCAP_REPEATERMeshCore forwarding: PROP_MESHCORE_FORWARDING_ENABLED, PROP_MESHCORE_REGION_POLICY, PROP_MESHCORE_REGIONS; with CAP_STATS, the MeshCore counters

CAP_ADVERT requires CAP_DEV_IDENTITY because what an advertisement carries is the device identity, and a beacon’s source address names it.

CAP_TIME states that the device keeps a wall clock and nothing else. It says nothing about where the time comes from, how accurate it is, or how much of a power cycle it survives—a device that has one and does not currently know what time it is is a normal state, reported by the empty PROP_TIME.

CAP_GNSS requires CAP_TIME because a receiver is, among other things, a clock: a device advertising one without the other would be claiming a time source for a clock it does not have.

Commands

CMD 19: (Host -> Device) CMD_ANNOUNCE

 0                   1
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-------------+
|1 0| RES | TID |  CMD_ANNOUNCE |   OPTIONS   |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-------------+

Figure: Structure of CMD_ANNOUNCE

Announce the device now, outside either schedule. What the device sends is an advertisement or a beacon—the same two announcements PROP_ADVERT_INTERVAL and PROP_BEACON_INTERVAL emit unasked—as a broadcast or as multicast in one of the device’s own groups.

OPTIONS is a sequence of entries in the CMD_PROP_MULTI_SET entry form: LENGTH (PUI) | OPTION (PUI) | VALUE. An empty payload is a well-formed request carrying every default.

OptionNameValueDefault
1ANNOUNCE_KINDUINT8: 0 advertisement, 1 beacon0
2ANNOUNCE_FLOOD_HOPSUINT8, 0–150
3ANNOUNCE_FULL_SOURCEBOOL1 for an advertisement, 0 for a beacon
4ANNOUNCE_GROUP16 octets: the short group IDabsent: broadcast
ANNOUNCE_KIND
An advertisement carries the device’s node identity in a signed frame; a beacon carries no payload at all.
ANNOUNCE_FLOOD_HOPS
The flood budget the frame goes out with (FHOPS_REM, see Packet Structure). Zero sends no flood-hop field, reaching only the nodes that hear the device directly. A frame carrying a budget also carries the Trace option, so what arrives at a distant node is a usable path back; a beacon carries it at any budget, a path being what a beacon publishes.
ANNOUNCE_FULL_SOURCE
Whether SRC is the 32-byte public key rather than the 3-byte hint. An advertisement’s frame signature is checkable only against the device’s key, which a listener that has not met the device holds only from a full SRC, hence its default; a beacon has nothing to check and defaults to the hint. A host may override either way.
ANNOUNCE_GROUP
Send as multicast in the device group whose short group ID this is—the form that names a group unambiguously, since two keys can share a 2-byte group hint. It is what PROP_DEV_GROUP_KEYS reports for each key the device holds, so a host names a group with exactly what it read back. Absent, the announcement is a broadcast. A multicast announcement uses the group’s encrypted mode.

An option the device does not recognize, a repeated option, or a value of the wrong length or out of range is STATUS_INVALID_ARGUMENT. A device MUST NOT silently ignore an unknown option: the host asked for something specific, and a broadcast sent in place of an ignored multicast request would be the wrong frame on the air. A malformed entry list is STATUS_PARSE_ERROR.

The device answers with CMD_PROP_IS of PROP_LAST_STATUS carrying the command’s TID:

  • STATUS_OK once the announcement is queued for transmission. This command reports queuing, not airing: channel access and the duty limit decide later whether the frame reaches the air, exactly as for a scheduled announcement.
  • STATUS_BUSY when an announcement is already pending and this one could not be queued behind it.
  • STATUS_GROUP_NOT_FOUND when ANNOUNCE_GROUP names a group the device holds no key for.
  • STATUS_UNIMPLEMENTED on a device without CAP_ADVERT, or one with no node behind the session to announce.

This command is available on devices advertising CAP_ADVERT. It carries no tethered-host state, so an administrator may issue it over the Node Management binding.

Properties

The device domain occupies property identifiers 64–95. Identifiers 70–95 are the device-behavior range: 70–78 are the repeater policy and advertised node identity settings, 79 is the locate alert, 80–87 are what the device announces about itself—80–82 the advertisement schedule, 83–84 the advertised position, 85–87 reserved—88–93 are positioning (88 the receiver switch, 89–93 the fix telemetry), and 94–95 are environmental sensing: 94 illuminance, 95 temperatures.

The advertised position at 83–84 and the fix telemetry at 89–90 are deliberately separate properties. The fix is what the receiver currently sees; the advertised position is what the identity claims, which a device without a receiver still has.

A single-octet identifier is the scarce resource, so the positioning range holds the properties a host reads and the device announces continually. The positioning configuration—which is written during commissioning and rarely again—lives at 4868–4870 in the extended device range, alongside the wall clock at 4866 and 4888–4889.

IdMnemonicCommandsDescription
64PROP_DEV_KEYGetDevice identity public key
65PROP_DEV_PRIVATE_KEYSetDevice identity private key (write-only)
66PROP_DEV_GROUP_KEYSGet, Set, Insert, RemoveDevice identity group keys
67PROP_DEV_PEERSGet, Set, Insert, RemoveDevice identity peer list
68PROP_DEV_NAMEGet, SetHuman-readable device name
69PROP_BATTERYGet, IsBattery status snapshot
4944PROP_BATTERY_CURRENTGet, IsBattery diagnostics
4945PROP_BATTERY_REMAINING_CAPACITYGet, IsBattery diagnostics
4946PROP_BATTERY_FULL_CAPACITYGet, IsBattery diagnostics
4947PROP_BATTERY_DESIGN_CAPACITYGet, IsBattery diagnostics
4948PROP_BATTERY_EXT_POWER_PRESENTGet, IsBattery diagnostics
4949PROP_BATTERY_PRESENTGet, IsBattery diagnostics
4950PROP_BATTERY_GAUGE_FULLGet, IsBattery diagnostics
4951PROP_BATTERY_GAUGE_INITIALIZEDGet, IsBattery diagnostics
4952PROP_BATTERY_GAUGE_SMOOTHINGGet, IsBattery diagnostics
4953PROP_BATTERY_CHARGE_VOLTAGE_REQUESTGet, IsBattery diagnostics
4954PROP_BATTERY_GAUGE_FORMATGet, IsBattery diagnostics
4955PROP_BATTERY_GAUGE_STATUSGet, IsBattery diagnostics
4956PROP_BATTERY_GAUGE_OPERATION_STATUSGet, IsBattery diagnostics
4957PROP_BATTERY_GAUGE_CONFIGGet, IsOn-demand gauge configuration
4958PROP_BATTERY_GAUGE_TELEMETRYGet, IsLive gauge counters and estimates
70PROP_MAC_REPEATER_MODEGet, SetWhether, and how eagerly, the device forwards
71PROP_IDENTGetSigned node identity of the device identity
72PROP_IDENT_ROLEGet, SetAdvertised node role, or empty to derive it
73PROP_IDENT_MOBILEGet, SetAdvertise the mobile capability bit
74PROP_MAC_REPEATER_REGIONSGet, Set, Insert, RemoveRegion strings the device forwards for
75PROP_MAC_REPEATER_DEFAULT_REGIONGet, SetRegion code inserted into untagged flood packets
76PROP_MAC_REPEATER_MIN_RSSIGet, SetMinimum received RSSI for flood forwarding
77PROP_MAC_REPEATER_MIN_SNRGet, SetMinimum received SNR for flood forwarding
78PROP_DEV_DISCOVERABLEGet, SetWhether the device identity answers Identity Requests
79PROP_ALERTGet, Set, IsLocate alert state
80PROP_ADVERT_INTERVALGet, SetSeconds between unsolicited advertisements
81PROP_BEACON_INTERVALGet, SetSeconds between unsolicited beacons
82PROP_STARTUP_BEACONGet, SetWhether a beacon goes out at bring-up
83PROP_IDENT_LOCATIONGet, SetPosition the advertised node identity carries
84PROP_IDENT_ALTITUDEGet, SetAltitude the advertised node identity carries
85PROP_IDENT_CONTACTGetSigned node identity for keeping as a contact
86PROP_MAC_REPEATER_STATEGetWhat the device’s forwarding is doing now
88PROP_GNSS_ENABLEDGet, SetWhether the GNSS receiver is powered
89PROP_GNSS_LOCATIONGet, IsPosition of the last fix
90PROP_GNSS_ALTITUDEGetAltitude of the last fix
91PROP_GNSS_FIXGet, IsFix quality
92PROP_GNSS_PRECISIONGetEstimated horizontal accuracy of the last fix
93PROP_GNSS_SATELLITESGetSatellites used, and optionally in view
94PROP_ILLUMINANCEGetAmbient illuminance in millilux
95PROP_TEMPERATURESGetOrdered temperature readings in tenths of kelvin
4876PROP_TEMPERATURE_NAMESGetOrdered temperature sensor names
4875PROP_DISPLAY_MOTION_WAKE_ENABLEDGet, Set, IsWhether movement wakes the display
4877PROP_DISPLAY_BRIGHTNESSGet, Set, IsScreen brightness
4890PROP_DISPLAY_TIMEOUTGet, Set, IsHow long the screen stays lit without input
4878PROP_KEYBOARD_LIGHTGet, Set, IsWhether the keyboard is lit while the screen is
4879PROP_KEYBOARD_AIDSGet, Set, IsTyping aids in effect
4904PROP_KEYBOARD_REPEAT_DELAYGet, Set, IsHow long a key is held before it repeats
4905PROP_KEYBOARD_REPEAT_INTERVALGet, Set, IsTime between a held key’s repeats
4891PROP_SOUND_ENABLEDGet, Set, IsWhether optional sounds are played
4892PROP_SOUND_VOLUMEGet, Set, IsHow loud optional sounds are played
4893PROP_SETUP_COMPLETEGet, Set, IsWhether the device has been set up through its own interface
4894PROP_TEST_MESSAGE_ALERTSGet, Set, IsWhether test messages on EMERGENCY call for attention
4906PROP_REFUSE_STRANGERSGet, Set, IsWhether frames from senders not accepted are declined
4895PROP_DIRECTIONS_ENABLEDGet, Set, IsDirections a directional control acts in
4866PROP_TIMEGet, Set, IsWall clock, or empty when unknown
4888PROP_TZ_RULEGet, Set, IsLocal time zone, as a POSIX TZ rule
4889PROP_TIME_24HGet, Set, IsWhether shown clocks use 24-hour time
4868PROP_GNSS_IDENT_UPDATEGet, SetWhether fixes update the advertised node identity
4869PROP_GNSS_IDENT_PRECISIONGet, SetPrecision the advertised location is clamped to
4870PROP_GNSS_TIME_TRUSTGet, Set, IsWhether receiver-derived time may set the clock
4976PROP_MESHCORE_FORWARDING_ENABLEDGet, SetMeshCore forwarding enable
4977PROP_MESHCORE_REGION_POLICYGet, SetHow MeshCore transport codes gate flood forwarding
4978PROP_MESHCORE_REGIONSGet, Set, Insert, RemoveMeshCore region names the device forwards scoped floods for

The RF configuration is also device-domain state, but is specified in Radio Control; so is the transport configuration in ULCP over BLE.

PROP 64: PROP_DEV_KEY

  • Type: Single-Value, Read-Only
  • Asynchronous Updates: No
  • Required: CAP_DEV_IDENTITY
  • Value Type: 32 octets, or empty
  • Post-Reset Value: Persisted

The Ed25519 public key of the device identity (see The Device Identity). The public key is also emitted as the success response when the private key is installed or generated (see PROP_DEV_PRIVATE_KEY).

An empty value means the device has no device identity. A conforming device does not report one in normal operation—an identity is generated at first boot if none is stored—so hosts SHOULD treat an empty value as a fault to surface rather than as an invitation to provision one.

Frames addressed to the device identity are processed by the device itself. They are additionally delivered or queued to the host only if they independently match the host’s receive filtering (see Receive Filtering).

PROP 65: PROP_DEV_PRIVATE_KEY

  • Type: Single-Value, Write-Only
  • Asynchronous Updates: No
  • Required: CAP_DEV_IDENTITY
  • Value Type: 32 octets, or empty
  • Post-Reset Value: Persisted

Installs or generates the device identity private key. An identity always exists already (see The Device Identity), so both forms replace one:

  • Setting a 32-octet value installs it as the device identity’s Ed25519 private key. This is the recovery path—moving a known repeater’s identity onto replacement hardware—not a commissioning step.
  • Setting an empty value commands the device to generate a fresh private key entirely on-device from its cryptographically secure random number generator. On-device generation is RECOMMENDED over installation, since a generated key never exists anywhere but the radio.

In both cases, success is reported by emitting CMD_PROP_IS for PROP_DEV_KEY—carrying the resulting public key—with the command’s TID. The private key itself is never emitted. Success MUST NOT be reported before the new identity is in effect and durably stored. Replacing an existing device identity is permitted; implementations SHOULD treat the device identity’s peer list and group keys as still valid, since they are not derived from the identity key.

This property is write-only: CMD_PROP_GET MUST fail with STATUS_UNIMPLEMENTED and MUST NOT disclose the value or whether an identity is configured (use PROP_DEV_KEY for that).

The device identity is not part of the saved snapshot (see Saved State): it is durably persisted as soon as it is installed or generated, and it is changed only by another set of this property or by CMD_CLEAR. CMD_RESTORE never reverts it—though it does read the identity a snapshot was taken under, and refuses to enable the PHY when it does not match (see CMD_RESTORE).

Replacing the identity takes effect for the property surface immediately and for anything the device built around the old key at the next boot. The old key stops being one the device claims at once, so a device running a device node MUST stop originating traffic under it rather than continue until the reboot.

Installing a private key is subject to the same transport security requirements as all key provisioning (see Provisioning Security).

PROP 66: PROP_DEV_GROUP_KEYS

  • Type: Multiple-Value, Read-Write
  • Has Item Length Prefix: No
  • Asynchronous Updates: No
  • Required: CAP_DEV_IDENTITY
  • Item Form: 32 octets (the group key)
  • Reported Form: 16 octets (the derived short group ID)
  • Remove Selector: the 32-octet group key
  • Post-Reset Value: Empty, or restored from saved state or from the device’s store (see Lists Held by the Device’s Store)

The set of group keys belonging to the device identity—groups the radio’s own node participates in (for example, a site-infrastructure management group). These are independent of the host domain: they survive host replacement and are distinct from PROP_HOST_GROUP_KEYS.

For each key the device derives the short group ID and the group’s K_enc/K_mic (see Multicast Packet Keys). Each entry is reported as its 16-octet short group ID, which is what names one of these groups to a management interface—two keys can derive the same 2-byte group hint, and CMD_ANNOUNCE must not be left to guess which was meant. The key itself is never read back.

Device group keys do not create implicit host receive filters: frames in these groups are consumed by the device node and reach the host only through the host’s own filtering.

PROP 67: PROP_DEV_PEERS

  • Type: Multiple-Value, Read-Write
  • Has Item Length Prefix: No
  • Asynchronous Updates: No
  • Required: CAP_DEV_IDENTITY
  • Item Form: 32 octets (the peer’s Ed25519 public key)
  • Remove Selector: the 32-octet public key
  • Post-Reset Value: Empty, or restored from saved state or from the device’s store (see Lists Held by the Device’s Store)

The device identity’s peer list: the set of peer public keys the device node recognizes and may communicate with securely. Because the device holds the device identity’s private key, it performs its own key agreement (Unicast Key Agreement) for these peers—no symmetric keys are provisioned, and the entries contain no secret material.

A device MAY hold more peers than one value can carry. CMD_PROP_GET on a list too long to return is answered with STATUS_NOMEM, never with some of its items; CMD_PROP_INSERT and CMD_PROP_REMOVE still apply.

How the device node uses this list (management access control, secure diagnostics, and so on) is application behavior outside the scope of this protocol.

PROP 68: PROP_DEV_NAME

  • Type: Single-Value, Read-Write
  • Asynchronous Updates: No
  • Required: CAP_DEV_NAME
  • Value Type: 1–64 octets of UTF-8, without U+0000
  • Post-Reset Value: Implementation-defined default, or restored from saved state

The operator-assigned, human-readable name of the physical device. It is independent of the device and host cryptographic identities and MUST NOT be derived from a bonded host or other host-domain state.

Setting the property changes the live name immediately. Like other ordinary device-domain configuration, it is included in a CMD_SAVE snapshot but is not independently persisted merely by being set. Applications and transports that present the device to a person SHOULD use this value when practical. They MAY shorten it to fit a constrained presentation, but MUST NOT split a UTF-8 code point when doing so.

The name is intentionally public metadata. Operators should assume that any value used in discovery advertisements can be observed by nearby devices.

PROP 69: PROP_BATTERY

  • Type: Single-Value, Read-Only
  • Asynchronous Updates: Yes
  • Required: CAP_BATTERY
  • Value Type: Battery status snapshot (see below), or empty
  • Post-Reset Value: Current measurement, or empty if reporting is unsupported

A device advertising CAP_BATTERY has a battery capable of powering its operation and recognizes this property. The capability does not require the hardware to support reporting any measurement: an implementation that cannot report battery status at all answers CMD_PROP_GET successfully with an empty value.

A non-empty value is a snapshot of the battery measurements the platform supports, taken as one measurement event:

OctetsField
1Field flags
0 or 2Battery voltage, UINT16_LE, millivolts
0 or 1Battery level, UINT8, percent (0–100)
0+Charge state, PUI

Bits 0 (voltage), 1 (level), and 2 (charge state) of the field flags octet indicate which fields are present; present fields follow in the order above. Bits 3–7 are reserved and MUST be zero; a host MUST treat a value with a reserved bit set, or whose length does not match its field flags, as malformed.

Which fields a platform can report is fixed for a given hardware and firmware configuration; an individual snapshot carries those it can currently substantiate. A field is absent either because the implementation never reports that measurement, or because the value is not derivable in the device’s present state—a level estimated from resting terminal voltage is not obtainable while the pack is charging, and a charger that reports no completion signal offers no moment at which to recalibrate one. An implementation MUST NOT report a value it knows to be unreliable in place of omitting the field.

Absence MUST NOT be used to indicate a depleted or disconnected battery, and it is not how a failed measurement is reported: an implementation whose attempt to take a reading fails answers CMD_PROP_GET with STATUS_FAILURE.

A host MUST treat an absent field as unknown at that instant, and MUST NOT carry a value forward from an earlier snapshot in its place.

The value returned by CMD_PROP_GET reflects a measurement performed when the request is serviced, not a previously cached reading; concurrent requests MAY share one measurement. How each field is produced is platform-defined—in particular, the level estimate is not necessarily derived from the voltage measurement, and a platform with a fuel gauge may report a level without reporting a voltage at all.

The fields:

Battery voltage
The measured voltage at the battery terminals, in millivolts. This is the battery voltage, not an external-power input or regulated system voltage; it may therefore reflect the normal voltage elevation that occurs while the battery is charging.
Battery level
The implementation’s estimate of the battery’s state of charge, as an integer percentage from 0 through 100 inclusive. A host MUST NOT derive this value from the voltage field or assume that successive estimates change monotonically.
Charge state
The current battery charge state:
ValueName
0BATTERY_CHARGE_STATE_DISCHARGING
1BATTERY_CHARGE_STATE_CHARGING
2BATTERY_CHARGE_STATE_CHARGED
3BATTERY_CHARGE_STATE_NOT_CHARGING
BATTERY_CHARGE_STATE_DISCHARGING
External power is absent and the battery supplies the device. An absent field never carries that meaning.
BATTERY_CHARGE_STATE_CHARGING
The charging system reports that the battery is actively receiving charge.
BATTERY_CHARGE_STATE_CHARGED
External power is present and the implementation has evidence that charging completed. For a 4.2 V-class single-cell battery, measured voltage below 4.1 V is insufficient evidence of completion. A battery at 100 percent while operating without external power remains in BATTERY_CHARGE_STATE_DISCHARGING.
BATTERY_CHARGE_STATE_NOT_CHARGING
External power is detected, but the charging system does not report active charging and the implementation cannot substantiate charge completion. This state does not imply that the external source alone supplies the device.

The property contains live, read-only state. It is never included in a saved snapshot and is not changed by CMD_RESTORE. A device MAY emit unsolicited CMD_PROP_IS updates when the reported snapshot changes. Such updates SHOULD be coalesced or rate-limited so that measurement noise does not produce excessive ULCP traffic.

Battery diagnostics

Properties 4944–4956 are optional extensions to CAP_BATTERY. No additional capability is allocated. A device may implement any subset, except that raw status properties require PROP_BATTERY_GAUGE_FORMAT. Clients discover support by reading the properties individually or with CMD_PROP_MULTI_GET.

All are single-value, read-only Device Domain properties, with no asynchronous updates. Their values are acquired on request and are excluded from saved state. They do not change the gauge or charger. PROP_BATTERY retains its existing encoding and notification behavior.

PROP 4944: PROP_BATTERY_CURRENT

  • Value Type: Minimal signed LE integer, 1–4 octets, mA, or empty

Signed battery current: positive into the battery, negative out, zero is a valid reading.

PROP 4945: PROP_BATTERY_REMAINING_CAPACITY

  • Value Type: Minimal unsigned LE integer, 1–4 octets, mAh, or empty

Gauge’s current remaining-capacity estimate.

PROP 4946: PROP_BATTERY_FULL_CAPACITY

  • Value Type: Minimal unsigned LE integer, 1–4 octets, mAh, or empty

Gauge’s current estimate of capacity at full charge.

PROP 4947: PROP_BATTERY_DESIGN_CAPACITY

  • Value Type: Minimal unsigned LE integer, 1–4 octets, mAh, or empty

Design capacity configured in the gauge or board profile.

PROP 4948: PROP_BATTERY_EXT_POWER_PRESENT

  • Value Type: BOOL, or empty

External power detected by the platform, such as USB/VBUS, a DC input, or solar input; this does not imply battery charging or identify the source.

PROP 4949: PROP_BATTERY_PRESENT

  • Value Type: BOOL, or empty

Battery detected by hardware.

PROP 4950: PROP_BATTERY_GAUGE_FULL

  • Value Type: BOOL, or empty

Gauge’s full-charge indication, independent of charger completion.

PROP 4951: PROP_BATTERY_GAUGE_INITIALIZED

  • Value Type: BOOL, or empty

Gauge initialization has completed; this does not assert successful capacity learning or calibration.

PROP 4952: PROP_BATTERY_GAUGE_SMOOTHING

  • Value Type: BOOL, or empty

Gauge is currently applying smoothing to its reported capacity.

PROP 4953: PROP_BATTERY_CHARGE_VOLTAGE_REQUEST

  • Value Type: Tagged voltage request, below, or empty

Gauge’s requested charging voltage, distinct from measured voltage and the charger’s configured voltage limit.

PROP 4954: PROP_BATTERY_GAUGE_FORMAT

  • Value Type: PUI, or empty

Identifies the interpretation of the two raw status properties.

PROP 4955: PROP_BATTERY_GAUGE_STATUS

  • Value Type: Minimal unsigned LE integer, 1–4 octets, or empty

Raw gauge battery-status flags, interpreted using the format identifier.

PROP 4956: PROP_BATTERY_GAUGE_OPERATION_STATUS

  • Value Type: Minimal unsigned LE integer, 1–4 octets, or empty

Raw gauge operation-status flags, interpreted using the format identifier.

Compact value encodings

Senders MUST use the fewest octets that represent each diagnostic integer value. The property value’s existing length supplies the width; no additional width prefix or continuation bits are added to these signed or unsigned LE integers. This applies equally to individual reads and entries in a multi-get response.

  • Signed current: little-endian two’s complement, with a signed 32-bit range. Reuse the encoding of PROP_IDENT_ALTITUDE, requiring minimal output here. One octet covers −128 through 127; two cover −32768 through 32767; three cover −8388608 through 8388607. Keep a sign octet when removing it would change the value’s sign.
  • Unsigned capacities, voltage, and raw flags: little-endian with an unsigned 32-bit range. Remove high zero octets, retaining one octet for zero. One octet covers 0–255, two 0–65535, and three 0–16777215. Bit 7 of the last octet is ordinary data, not a sign or continuation bit.
  • Booleans: exactly one octet, 00 or 01.
  • Gauge format and voltage discriminator: retain PUI encoding, using its shortest form. Format 1 and either defined discriminator occupy one octet.

Receivers accept integer widths of one through four octets, sign-extending current and zero-extending unsigned values, including padded representations. Senders must not emit that padding. More than four octets is malformed. An empty property value remains unavailable; numeric zero is 00, never empty. False likewise represents an actual indication, never an unavailable reading.

Examples below show value bytes in hexadecimal, in transmission order:

ValueBytesOctets
Current −100 mA9C1
Current −200 mA38 FF2
Current −128 / −129 mA80 / 7F FF1 / 2
Current 127 / 128 mA7F / 80 001 / 2
Current 0 mA or capacity 0 mAh001
Capacity 200 mAhC81
Capacity 1500 mAhDC 052
Raw operation flags 0x00A6A61

Capacities are charge quantities in mAh, not energy in mWh. No host should replace the reported percentage with a ratio it calculates from capacities; it may display that ratio separately for diagnosis.

The charge-voltage-request value begins with a PUI discriminator:

CodeFollowing bytesMeaning
0Minimal unsigned LE integer, 1–4 octets, mVA specific voltage request.
1NoneRequest the charger’s maximum voltage.

For code 0, all remaining bytes encode the voltage: one through four are required, with the compact unsigned rules above. Code 0 without a voltage or with more than four voltage octets is malformed. Code 1 has no following bytes; any trailing bytes are malformed. A 4200 mV request is 00 68 10 (three octets total), and a maximum-voltage request is 01 (one octet).

An empty property value means unavailable, as below. Unknown discriminators are malformed. This avoids exposing a hardware sentinel as an implausibly large voltage. Reading this property never applies the request to the charger.

Support, availability, and errors

Use existing ULCP status codes with explicit meanings:

ConditionResponse to a diagnostic property read
This hardware/firmware does not implement the propertySTATUS_PROP_NOT_FOUND.
Field implemented, but no meaningful value in the observed stateSuccessful CMD_PROP_IS with an empty value.
Acquisition attempted and failed, including an I2C error or timeoutSTATUS_FAILURE.
A valid measurement or indication existsSuccessful CMD_PROP_IS containing the typed value.

For example, an initializing gauge may report GAUGE_INITIALIZED=false while its capacity estimate is empty. A detected battery removal is BATTERY_PRESENT=false; dependent measurements may then be empty. A missing presence detector is STATUS_PROP_NOT_FOUND, not false. A failed read must not masquerade as battery removal, initialization, or an empty successful measurement.

There is no separate support-discovery table: clients can discover individual support with their first multi-get and omit STATUS_PROP_NOT_FOUND fields from subsequent polls. That result is fixed for a firmware/hardware configuration; rediscover after reconnecting or updating firmware. An empty value or acquisition failure does not mean unsupported and must not cause the client to drop that property from future polls.

Within a multi-get, each result occupies its normal position. A failed gauge read need not suppress a successful external-power reading from the charger. Correlated fields that depend on the failed read all report failure. PROP_BATTERY retains its existing rules, including its own failure behavior; the diagnostic properties do not redefine its empty or omitted-field meanings.

Mutations (SET, INSERT, REMOVE) return STATUS_INVALID_ARGUMENT for implemented properties and STATUS_PROP_NOT_FOUND for unsupported properties. Reads do not unseal, reset, calibrate, configure, or otherwise change the gauge or charger. This restriction applies to the scalar diagnostics (4944–4956); the separate configuration snapshot permits temporary access unlocking.

Shared acquisition within a multi-get

The battery read group contains PROP_BATTERY and properties 4944–4958. A device implementing any diagnostic property follows these rules for the supported members of that group. Unsupported members retain their STATUS_PROP_NOT_FOUND results and require no acquisition:

  1. A single-property read acquires the requested live reading when serviced.
  2. A multi-get containing battery-group properties acquires all requested live battery values in one pass when that group is serviced. All occurrences of those properties, including duplicate keys, use that pass’s results.
  3. Only the requested measurements and their dependencies need to be read. Reading external-power presence alone must not require successful gauge communication.
  4. Semantic flags and raw status words come from the same register reads. The device must not reread a status word separately for each derived flag.
  5. The sample is scoped to that request. It is discarded on completion, cancellation, or session reset; an unrelated later read must not reuse it. Concurrent requests may share an acquisition that is already in flight.

This is a battery-group guarantee, not general multi-get atomicity. Registers are often read sequentially and may update internally during acquisition; one pass does not promise a hardware-latched, simultaneous sample. Board adapters should use available latching or bounded consistency checks where required by their gauge, and report failure if they cannot obtain a usable result.

Metadata such as gauge format may come from the fixed board configuration. Read-only design capacity may be configured or learned inside the gauge; it must not be confused with a writable ULCP setting. Battery values are excluded from saved state, and save/restore does not roll telemetry back.

Over Node Management, a retransmitted battery read is executed again like any other read, and takes a new sample. A read too large for one payload is still one acquisition: its continuations are cut from the retained response.

Raw gauge formats and the Pager mapping

Format 1 is allocated to the TI BQ27220: GAUGE_STATUS contains BatteryStatus (0x0A) and GAUGE_OPERATION_STATUS contains OperationStatus (0x3A), each represented as a compact unsigned integer. A BQ27220 raw word therefore occupies one or two octets, with its high zero octet omitted. Format 0 is reserved; other formats need a documented allocation before a device emits them. Raw-register implementations must also implement GAUGE_FORMAT.

Clients can show unknown format identifiers and raw words as numbers, while continuing to use the generic measurements and flags. They must not decode unknown raw formats as BQ27220 bits. Raw flag bits are opaque protocol data; reserved hardware bits are preserved rather than rejected by the ULCP codec.

The Pager adapter uses current (0x0C), remaining (0x10), full (0x12), design (0x3C), and requested voltage (0x30). BatteryStatus supplies presence (bit 3) and full (bit 9); OperationStatus supplies initialized (bit 5) and smoothing (bit 6). Requested voltage 0xffff maps to request code 1. These mappings follow the BQ27220 technical reference manual, sections 2.7–2.10 and 2.23–2.28.

On the Pager, external-power presence maps to USB/VBUS detection by the BQ25896; charger state also comes from the BQ25896. Preserve the distinction between charger completion, gauge full, and 100% state of charge. Their disagreement is useful diagnostic information.

PROP 4957: PROP_BATTERY_GAUGE_CONFIG

  • Type: Single-Value, Read-Only
  • Asynchronous Updates: No
  • Required: Optional with CAP_BATTERY; no separate capability
  • Value Type: PUI format, PUI schema version, format-specific fields
  • Post-Reset Value: Acquired on demand; never saved

A chip-specific inspection of the gauge’s live configuration. Ordinary battery polling does not imply reading this property. Hosts should request it explicitly for diagnosis and omit it from routine monitoring. Unsupported devices return STATUS_PROP_NOT_FOUND; acquisition or access-restoration failures return STATUS_FAILURE, never a partial snapshot. Implemented mutations return STATUS_INVALID_ARGUMENT.

An implementation may temporarily unlock gauge access to read configuration, but MUST restore its original access state before reporting success. It MUST NOT reset the gauge, enter a configuration-update mode, commit parameters, calibrate, or change learned capacity. Cleanup must finish even if the host disconnects or abandons the request. Other drivers must not interleave commands to the same gauge during inspection. Implementations bound hardware waits and validate returned memory addresses and checksums. The BQ27220 requires FULL_ACCESS for these RAM reads; merely unsealing it is insufficient. Entering FULL_ACCESS is distinct from entering CFGUPDATE. Before each security-key sequence, leave the gauge unaddressed for four seconds, including by ordinary telemetry polling, as described in TI’s security-mode timing guidance. Other devices on the same bus can continue operating. This delay also applies to fallback keys and restoration of an originally unsealed state.

The property participates in the battery acquisition group when requested, including duplicate-key reuse. Scalar status words describe their acquisition before temporary unlocking; they must not expose a transient access state as the steady state. Configuration fields are sequential reads, not an atomic hardware snapshot. Reading this property can take longer than scalar telemetry; hosts should allow a thirty-second device processing budget, plus transport time. A successful sealed-gauge inspection normally takes about nine seconds; ordinary scalar polling resumes after inspection and access restoration finish.

Format 1, version 1 describes the BQ27220 RAM parameter area identified by TI as CEDV Profile 1, plus shared configuration and calibration parameters. It does not select a profile. The battery-ID field is reported verbatim. Every field below appears exactly once, in order, without field IDs or lengths. Integer fields use shortest-form PUI. The two F4 fields instead use exactly four little-endian octets holding the chip’s raw calibration bit pattern; hosts must not assume IEEE-754 encoding. These are converted from the gauge’s big-endian memory representation. Unknown formats or versions must not be decoded using this layout. Truncation, extra fields, or values exceeding the indicated hardware width are malformed. Version 1 contains 48 fields and is at most 148 octets, including the two header PUIs.

OrderFieldRAM addressHardware octetsUnits / representation
1battery_id0x929A1bits
2operation_config_a0x92062bits
3operation_config_b0x92082bits
4cedv_config0x929B2bits
5full_capacity0x929D2mAh
6design_capacity0x929F2mAh
7design_voltage0x92A32mV
8termination_voltage_margin0x92A52mV
9charging_voltage0x91FD2mV
10taper_current0x92012mA
11discharge_detection0x92282mA
12charge_detection0x922A2mA
13quit_current0x922C2mA
14battery_low0x925120.01%
15learning_low_temp0x925B1raw
16overload_current0x92642mA
17near_full0x926B2mAh
18reserve_capacity0x926D2mAh
19charge_efficiency0x926F1%
20discharge_efficiency0x92701%
21fixed_edv00x92B42mV
22edv0_hold0x92B61s
23fixed_edv10x92B72mV
24edv1_hold0x92B91s
25fixed_edv20x92BA2mV
26edv2_hold0x92BC1s
27emf0x92A72raw
28c00x92A92raw
29r00x92AB2raw
30t00x92AD2raw
31r10x92AF2raw
32tc0x92B11raw
33c10x92B21raw
34age_factor0x92B31raw
35flag_config_a0x927F2bits
36flag_config_b0x92811bits
37full_set_voltage0x92882mV
38full_clear_voltage0x928A2mV
39full_set_soc0x928C1%
40full_clear_soc0x928D1%
41smoothing_config0x92711bits
42cc_gain0x91844F4 bits
43cc_delta0x91884F4 bits
44current_deadband0x91DE1mA
45cc_deadband0x91DF1294 nV
46voltage_0_dod0x92BD2mV
47voltage_50_dod0x92C72mV
48voltage_100_dod0x92D12mV

Addresses and hardware widths follow TI SLUUBD4A, table 3-2. Bitfields and raw values preserve the chip representation. In particular, the learning-temperature code is left raw; no temperature conversion is implied. Fixed EDV voltages must be interpreted alongside the compensation-enable bits and model coefficients. CEDV bit 8 is FCC_LIMIT, bit 4 selects independent charger learning, and bit 3 enables EDV compensation. Charge-termination voltage is a margin below the charging voltage, not an absolute cutoff.

Qmax and taper-window timing are not included: this schema exposes only the parameters with identified RAM locations in the cited memory map. It does not invent an address or substitute design capacity for an independently read Qmax.

PROP 4958: PROP_BATTERY_GAUGE_TELEMETRY

  • Type: Single-Value, Read-Only
  • Asynchronous Updates: No
  • Required: Optional with CAP_BATTERY; no separate capability
  • Value Type: PUI format, PUI schema version, format-specific readings
  • Post-Reset Value: Acquired on demand; never saved

Live chip-specific readings for monitoring over USB or Node Management. Reading this property does not unlock, configure, calibrate, or reset the gauge. It uses the ordinary battery acquisition timeout and shares the request’s acquisition with other battery properties, including repeated keys. It does not read PROP_BATTERY_GAUGE_CONFIG implicitly. Unsupported devices return STATUS_PROP_NOT_FOUND; a failed register read returns STATUS_FAILURE for this entire property, without suppressing other successful battery properties. Mutations return STATUS_INVALID_ARGUMENT when supported. No saved alias exists.

Format 1, version 1: BQ27220 standard commands

After format and version, a two-octet little-endian width bitmap precedes the 14 readings in the order below. Bit i corresponds to zero-based field i: clear means one value octet, set means two. Bits 14–15 are reserved and zero. Each value uses unsigned little-endian or signed two’s-complement little-endian encoding as specified below. Senders use the shortest width that preserves the value and sign; receivers accept either width. For example, −100 uses 9C, whereas −200 uses 38 FF. The bitmap supplies their lengths without a length octet per field. The complete value occupies 18–32 octets, including format, version, and bitmap. Missing fields, reserved width bits, and trailing data are malformed; unknown formats or versions must not be interpreted using this layout.

IndexFieldRegisterSignedUnit
0raw_coulomb_count0x22YesmAh
1temperature0x06No0.1 K
2internal_temperature0x28No0.1 K
3average_current0x14YesmA
4average_power0x24YesmW
5time_to_empty0x16Nominutes
6time_to_full0x18Nominutes
7standby_current0x1AYesmA
8standby_time_to_empty0x1CNominutes
9max_load_current0x1EYesmA
10max_load_time_to_empty0x20Nominutes
11cycle_count0x2ANocycles
12state_of_health0x2ENo%
13charging_current0x32NomA requested

These are raw standard-command readings, available while sealed. Read presence and initialization flags alongside them before treating them as battery estimates. The wire preserves all register bits, including sentinel values:

  • Time estimates of 65535 mean unavailable in the current charge/discharge state; they are not 65,535 minutes. Requested charging current 65535 means maximum requested current. Other fields retain their full numeric range.
  • RawCoulombCount is a signed 16-bit two’s-complement count: for example, register 0xFFEA means −22 mAh and encodes in one value octet, EA. It counts discharge upward and charge downward; the gauge clears it when it recognizes full charge. It is neither remaining capacity nor a lifetime charge counter. Do not assume continuity across gauge resets or the full-charge event when integrating samples.
  • Temperature is the configured gauging source. InternalTemperature is the IC’s internal sensor, not necessarily cell temperature. Celsius is raw / 10 − 273.15.
  • Current and power are positive during charge and negative during discharge. ChargingCurrent is a request, not measured current or charger configuration.
  • CycleCount uses the gauge’s configured accumulated-discharge threshold. StateOfHealth is its full/design-capacity ratio estimate, not independent evidence of cell condition. Neither resets merely because this property is read.

Register definitions follow TI SLUUBD4A, standard commands. Units in the table are TI’s documented register units, not a promise of calibrated measurement accuracy. The Pager’s observed AveragePower scale disagrees with the stated mW unit; see the hardware qualification notes. umshctl battery --gauge-telemetry --watch --json includes these readings in normal monitoring, retains raw values, labels unavailable estimates, and adds Celsius conversions. umshctl get battery-gauge-telemetry reads this property alone.

PROP 70: PROP_MAC_REPEATER_MODE

  • Type: Single-Value, Read-Write
  • Asynchronous Updates: Yes
  • Required: CAP_REPEATER
  • Value Type: UINT8
  • Post-Reset Value: 0, or restored from saved state

The first of the device-behavior settings (property identifiers 70–78), and the master switch for the repeater policy in PROP_MAC_REPEATER_REGIONS, PROP_MAC_REPEATER_DEFAULT_REGION, PROP_MAC_REPEATER_MIN_RSSI, and PROP_MAC_REPEATER_MIN_SNR, which are configurable while forwarding is off and take effect when it is not.

ValueModeForwarding
0OffNone on any medium: the device identity sends only its own traffic and its attached host’s
1OnAn autonomous mesh repeater
2AdaptiveAn adaptive forwarder: every source-routed hop, and floods where no other forwarder is heard

A device MUST reject any other value with STATUS_INVALID_ARGUMENT.

Unless the mode is off, the device identity’s on-board node forwards the routable UMSH frames it receives—off the air, from an IP multicast group, or over backhaul—according to Repeater Operation and Nodes With a LoRa Radio. While the mode is on it sets the repeater capability bit in its node identity; otherwise the bit is clear.

The capability bit is a statement of fact and MUST track whether the device is a repeater. The advertised role is a separate matter: it is configuration, set through PROP_IDENT_ROLE, and defaults to being derived from this mode rather than being fixed by it. A mobile repeater and a fixed tracker are both expressible.

This property governs only the forwarding behavior of the device identity. It is independent of PROP_MAC_PROMISCUOUS (a session-scoped host-delivery mode) and of the host identity, which never forwards.

The mode is device-domain state: it is part of the saved snapshot, so a CMD_SAVE arms an unattended repeater across power cycles, and it survives a change of host.

Asynchronous because a device MAY offer forwarding as a control the operator can reach—the menu on a device with a screen is where a user decides whether to spend their battery carrying other people’s traffic. A device that changes it locally MUST publish the new value like any other transition the host did not command.

Flood-contention tuning—the forwarding delay window, deferral count, and similar timing parameters—is not exposed; a repeater applies its local defaults.

PROP 71: PROP_IDENT

  • Type: Single-Value, Read-Only
  • Asynchronous Updates: No
  • Required: CAP_IDENT
  • Value Type: Signed node-identity payload

The device identity’s complete signed node identity: the canonical payload encoding—role, capabilities, and the descriptive options the device advertises— followed by its 64-octet detached EdDSA signature over that encoding.

This is the same statement the device makes over the air, in its standalone framing. A device MUST build it from the same values it would advertise in an Identity Request response, so a host reading it locally and a peer hearing it on the mesh cannot disagree about what the device is. It differs from that response in exactly two ways, both structural: it carries no request nonce, and it is authenticated by the signature rather than by an enclosing authenticated unicast.

The contents are nonce-free. They carry the Unix Timestamp when the device knows the time, so each read is signed afresh; reading this property is an operator-scale event.

What the device advertises can include where it is, which is right for a statement heard now and wrong for one kept. An identity meant to be kept— in a QR code, a contact link, a contact exchange—is PROP_IDENT_CONTACT.

PROP 72: PROP_IDENT_ROLE

  • Type: Single-Value, Read-Write
  • Asynchronous Updates: No
  • Required: CAP_IDENT
  • Value Type: UINT8, or empty
  • Post-Reset Value: Empty, or restored from saved state

The ROLE byte the device identity advertises (see Node Primary Role).

An empty value—the factory default—means the device derives the role from what it is actually doing. While PROP_MAC_REPEATER_MODE is on, it derives Bridge if the device node also has a link beyond its radio—PROP_MAC_BACKHAUL is set, or the bridge client is enabled with a host and server key—and Repeater if it does not. Otherwise it derives Tracker, whatever links it has: an adaptive forwarder is not a repeater. On a device whose device identity is a messaging identity (see The Device Identity), it derives Chat whether or not the device forwards. Any other value is advertised verbatim.

Role and forwarding are deliberately separate. Forwarding is a fact, reported through the repeater capability bit; the role is how the device presents itself, which is the operator’s choice. Deriving it by default keeps the common cases right without a configuration step, and setting it explicitly expresses the ones derivation cannot reach—a repeater that is also mobile, a fixed node that is not a repeater.

Tethering does not appear here, or anywhere in a node identity. Whether some host is currently attached over the local control link is a transient local relationship, not a durable characteristic of the node, and the mesh has no business knowing it.

PROP 73: PROP_IDENT_MOBILE

  • Type: Single-Value, Read-Write
  • Asynchronous Updates: No
  • Required: CAP_IDENT
  • Value Type: BOOL
  • Post-Reset Value: 1 (true) on a device whose device identity is a messaging identity, 0 (false) on any other; or restored from saved state

Whether the device identity advertises the mobile capability bit: true for a device that moves, false for one installed in a fixed location. A device with a messaging identity is carried by its person, so it starts out mobile.

Orthogonal to PROP_IDENT_ROLE and to PROP_MAC_REPEATER_MODE, and orthogonal to whether a host is tethered. A hand-carried repeater and a pole-mounted sensor are both ordinary configurations.

PROP 74: PROP_MAC_REPEATER_REGIONS

  • Type: Multiple-Value, Read-Write
  • Has Item Length Prefix: Yes
  • Asynchronous Updates: No
  • Required: CAP_REPEATER
  • Item Form: 1–24 octets of UTF-8 (the region’s string form)
  • Remove Selector: the region string
  • Post-Reset Value: Empty, or restored from saved state

The set of regions the device flood-forwards for, each held in its string form—the short code for a region that has one, the region name otherwise—the same form the Supported Regions identity option carries. From each string the device derives the 2-octet region code; the derived codes are the filter applied at the region-policy step of the forwarding procedure: a flood packet carrying region codes is forwarded only if at least one of them matches. An empty set—the factory default—imposes no regional restriction, so a tagged packet is forwarded whatever its region.

A device MUST reject an item that is empty or longer than 24 octets with STATUS_INVALID_ARGUMENT, and MAY reject a write that exceeds the number of entries it can hold.

Items compare without ASCII case, as their codes derive, so the set holds at most one entry per region. An insert whose item differs from a held one only in case respells that entry in place and reports the item as inserted; an item identical to a held one reports STATUS_ALREADY. The remove selector matches the same way, and a whole-value write keeps the last spelling it carried. Stored items keep the capitalization written.

A device whose mode is on, with a non-empty set, SHOULD advertise the same strings in its node identity, subject to that option’s count and packet-fit limits, so that a peer choosing a route can see what a repeater will carry. A device that is not a repeater makes no such claim and omits the option.

Whether an untagged packet is tagged on the way out is a separate decision, governed by PROP_MAC_REPEATER_DEFAULT_REGION.

PROP 75: PROP_MAC_REPEATER_DEFAULT_REGION

  • Type: Single-Value, Read-Write
  • Asynchronous Updates: No
  • Required: CAP_REPEATER
  • Value Type: One 2-octet region code, or empty
  • Post-Reset Value: Empty, or restored from saved state

The region code the device inserts into a flood packet that carries none, as permitted at the region-policy step of the forwarding procedure. An empty value—the factory default—means the device never tags: untagged packets are forwarded untagged. Any other value MUST be exactly two octets; a device rejects other lengths with STATUS_INVALID_ARGUMENT.

Tagging is opt-in because it is a claim about where the packet is, not merely about where the repeater is willing to forward. A repeater that filters on a region list without asserting one leaves the decision to whoever originated the packet.

The configured code SHOULD be one of the codes in PROP_MAC_REPEATER_REGIONS when that list is non-empty, so that the repeater will itself forward what it tags. A device does not enforce this across the two writes, and the two properties may be set in either order.

Only untagged packets are affected: an already-tagged packet is forwarded with its codes unchanged, and a second code is never added.

PROP 76: PROP_MAC_REPEATER_MIN_RSSI

  • Type: Single-Value, Read-Write
  • Asynchronous Updates: No
  • Required: CAP_REPEATER
  • Value Type: INT16 in dBm, or empty
  • Post-Reset Value: Empty, or restored from saved state

The weakest signal the device will flood-forward, in dBm. An empty value—the factory default—imposes no threshold. Any other value MUST be exactly two octets.

The threshold is the repeater’s half of step 7 of the forwarding procedure: where the packet also carries a minimum, the higher of the two applies. Raising it trades reach for a quieter mesh, which is what a dense deployment wants from a repeater sitting at the edge of everyone’s range.

Applies to flood forwarding only, MeshCore floods included. Source-routed packets are forwarded on the strength of the route, not the link.

PROP 77: PROP_MAC_REPEATER_MIN_SNR

  • Type: Single-Value, Read-Write
  • Asynchronous Updates: No
  • Required: CAP_REPEATER
  • Value Type: INT8 in whole dB, or empty
  • Post-Reset Value: Empty, or restored from saved state

The lowest signal-to-noise ratio the device will flood-forward, in whole dB. An empty value—the factory default—imposes no threshold. Any other value MUST be exactly one octet.

The threshold is the repeater’s half of step 8 of the forwarding procedure, combined with any packet-imposed minimum the same way PROP_MAC_REPEATER_MIN_RSSI is. On spreading factors that decode well below the noise floor, this is the more meaningful of the two thresholds.

Applies to flood forwarding only, MeshCore floods included.

MeshCore forwarding

A device with CAP_MESHCORE_FORWARDER also forwards MeshCore v1 packets, interoperating with MeshCore repeaters and companions as a MeshCore repeater would, with MeshCore repeater firmware v1.17.1 as the compatibility baseline. The two protocols share the radio, the duty ledger, and the link-quality thresholds; their packets are told apart by the version bits of the first octet, so neither is mistaken for the other.

The MeshCore forwarder runs only while all of these hold:

PHY enabled AND MESHCORE_FORWARDING_ENABLED
            AND running identity prefix not reserved

PROP_MAC_REPEATER_MODE governs UMSH forwarding alone; a device may forward either protocol without the other.

The forwarder takes its path entries from the public key of the device identity it was brought up under; it signs and originates nothing. A MeshCore node never runs under a key whose first octet is 0x00 or 0xFF, so a device whose running identity has such a key does not forward MeshCore traffic, whatever its settings. A client can apply the same test to PROP_DEV_KEY.

Whenever the gate is false, the forwarder discards everything it had seen and queued.

MeshCore regions are configured in PROP_MESHCORE_REGIONS. PROP_MAC_REPEATER_REGIONS and PROP_MAC_REPEATER_DEFAULT_REGION apply to UMSH only.

PROP 4976: PROP_MESHCORE_FORWARDING_ENABLED

  • Type: Single-Value, Read-Write
  • Asynchronous Updates: No
  • Required: CAP_MESHCORE_FORWARDER
  • Value Type: BOOL
  • Post-Reset Value: False, or restored from saved state

Whether the device forwards MeshCore traffic. Independent of PROP_MAC_REPEATER_MODE.

Changing it from false to true MUST fail with STATUS_INVALID_STATE while the first octet of PROP_DEV_KEY is 0x00 or 0xFF. Replacing the device identity leaves the value unchanged, and a write that leaves it unchanged succeeds.

PROP 4977: PROP_MESHCORE_REGION_POLICY

  • Type: Single-Value, Read-Write
  • Asynchronous Updates: No
  • Required: CAP_MESHCORE_FORWARDER
  • Value Type: UINT8
  • Post-Reset Value: 0, or restored from saved state

How MeshCore transport codes gate flood forwarding. A scoped flood matches when its first transport code is the one a region in PROP_MESHCORE_REGIONS gives it.

ValuePolicyForwarded floods
0OpenUnscoped floods, and scoped floods that match
1Scoped onlyScoped floods that match
2IgnoreEvery flood, whatever its scope

A device MUST reject any other value with STATUS_INVALID_ARGUMENT. Direct traffic is never gated by region.

PROP 4978: PROP_MESHCORE_REGIONS

  • Type: Multiple-Value, Read-Write
  • Has Item Length Prefix: Yes
  • Asynchronous Updates: No
  • Required: CAP_MESHCORE_FORWARDER
  • Item Form: 1–30 octets of UTF-8 (a MeshCore region name without its #)
  • Remove Selector: the region name
  • Post-Reset Value: Empty, or restored from saved state

The MeshCore public regions whose scoped floods the device forwards. Each region’s transport key is the first 16 octets of SHA-256 over # followed by the item, as MeshCore derives a hashtag region’s key. The derivation is case-sensitive, so items compare octet for octet: us-ca and US-CA are two regions. An insert identical to a held item reports STATUS_ALREADY, and the remove selector matches the same way.

A device MUST reject an item that is empty, longer than 30 octets, not UTF-8, or begins with # or $ with STATUS_INVALID_ARGUMENT, and MAY reject a write that exceeds the number of entries it can hold. A name beginning with $ is a MeshCore private region, whose key does not derive from its name.

PROP 78: PROP_DEV_DISCOVERABLE

  • Type: Single-Value, Read-Write
  • Asynchronous Updates: No
  • Required: CAP_DEV_IDENTITY
  • Value Type: BOOL
  • Post-Reset Value: 1 (true), or restored from saved state

Whether the device identity answers Identity Requests addressed to it, including broadcast solicitations whose filters select it. When false, the device identity ignores every Identity Request.

Discoverability defaults on: a deployed device is infrastructure, and being askable is most of what makes it administrable in the field. The property is the opt-out for deployments where the device should not volunteer its identity to arbitrary nearby askers.

Affects only Identity Request responses. Unsolicited advertisements and beacons are governed by the advertisement policy, and the device’s participation in forwarding by PROP_MAC_REPEATER_MODE; neither is changed by this property. A device that is not discoverable still advertises on its own schedule if it has one—declining to answer strangers and declining to speak are different decisions.

PROP 79: PROP_ALERT

  • Type: Single-Value, Read-Write
  • Asynchronous Updates: Yes
  • Required: CAP_ALERT
  • Value Type: PUI
  • Post-Reset Value: 0 (ALERT_NONE)

What the device is currently doing to draw a person’s attention to where it physically is. A radio that has been set down in the wrong place is found by making it announce itself.

ValueName
0ALERT_NONE
1ALERT_LOCATE
ALERT_NONE
The nominal state. The device draws no attention to itself beyond whatever its ordinary operation involves.
ALERT_LOCATE
The device makes itself as conspicuous as its hardware allows, and keeps doing so until the alert is cleared.

Values other than these are rejected with STATUS_INVALID_ARGUMENT.

The presentation is board-defined. The property carries intent, not presentation: a device with a buzzer sounds it, a device with only an indicator LED flashes it, a device with a display can say so on the screen. CAP_ALERT states that the device has some means of making itself conspicuous and nothing more, so a host MUST NOT assume that an alert is audible, or that two devices alert alike. Because the alert runs unattended on a device that may already be low, it is expected to be intermittent rather than continuous, and it does not defer or inhibit a protective shutdown.

The alert overrides local quiet settings. A device whose buzzer has been silenced, through a local control or PROP_SOUND_ENABLED, still sounds ALERT_LOCATE: locating a misplaced radio is precisely the case that silencing must not defeat. The alert suspends the local setting rather than changing it, so clearing the alert leaves the device as quiet as it was before.

A device returns to ALERT_NONE three ways:

  1. The host writes ALERT_NONE.
  2. Local user input cancels it. A device with any user input at all MUST offer a way to cancel an alert from the device itself— whoever finds the radio is rarely holding the phone that set it off. The input that cancels performs none of its other functions, so that fumbling for a beeping radio cannot change its configuration; a deliberate gesture such as hold-to-power-off MAY remain reachable while an alert is active.
  3. The deadline expires. A device MUST bound how long it will remain in ALERT_LOCATE; a few minutes is RECOMMENDED. Writing ALERT_LOCATE while it is already in effect succeeds and restarts the deadline, which is how a host holds an alert open for a longer search.

PROP 80: PROP_ADVERT_INTERVAL

  • Type: Single-Value, Read-Write
  • Asynchronous Updates: No
  • Required: CAP_ADVERT
  • Value Type: UINT32
  • Post-Reset Value: 14400 (four hours), or restored from saved state

Seconds between unsolicited advertisements—broadcasts carrying the device’s node identity in a signed frame. Zero sends none.

An automatic advertisement is sent with no flood hops and no source route, so it reaches the nodes that can hear the device directly and stops there. It is the largest frame the device originates, and what it carries is a standing statement rather than news; repeating that statement across the whole mesh every interval would spend airtime out of all proportion to what a distant listener learns. A device that wants to be findable further away publishes a path with PROP_BEACON_INTERVAL instead, which costs a fraction as much.

Because the advertisement is a signed broadcast meant for listeners that may not hold the device’s key, it carries its source in full-key form (§Signature Usage).

A device MUST reject a non-zero interval outside 1200 seconds (twenty minutes) to 86400 seconds (twenty-four hours) with STATUS_INVALID_ARGUMENT. Neither bound is an airtime control—the duty limit is that—but the two ends fail differently. Below the floor a device spends the mesh’s airtime restating what it already said; above the ceiling the schedule has stopped being one, and zero says so more plainly.

The interval is a minimum rather than an exact cadence: each period is scattered later by a random fraction of it, never earlier, so the configured value is the shortest gap between two unsolicited announcements.

Scheduled sends are subject to the same duty accounting and channel access as any other transmission: a send the device cannot make when it falls due is skipped, not queued.

The schedule is not the only way an announcement goes out. CMD_ANNOUNCE sends one now, with a reach and a source form the host chooses; the two are independent, and neither disturbs the other’s timing.

PROP 81: PROP_BEACON_INTERVAL

  • Type: Single-Value, Read-Write
  • Asynchronous Updates: No
  • Required: CAP_ADVERT
  • Value Type: UINT32
  • Post-Reset Value: 3600 (one hour), or restored from saved state

Seconds between unsolicited beacons—broadcasts with no payload at all. Zero sends none.

A beacon is sent with a flood budget and the Trace option, so what arrives at a distant node is a usable path back to the device and the signal quality of every hop along it. What it does not carry is any statement of who the device is: that is what an advertisement is for, and a listener that has never met this device learns only that something with a given source hint is reachable.

The two intervals are independent because they announce different things at very different costs. A mesh usually wants the path refreshed often and the identity restated rarely.

The accepted range, the per-period scatter, and the duty accounting are as described for PROP_ADVERT_INTERVAL.

PROP 82: PROP_STARTUP_BEACON

  • Type: Single-Value, Read-Write
  • Asynchronous Updates: No
  • Required: CAP_ADVERT
  • Value Type: BOOL
  • Post-Reset Value: 1 (true), or restored from saved state

Whether the device emits one beacon once it has come up. On by default: a node that has just restarted is exactly the node whose neighbors hold the stalest paths to it, and a single empty broadcast is the cheapest correction available.

The beacon is emitted after the device’s own configuration has been applied, so it reflects the device as it will actually run rather than as it booted. Unlike a scheduled period it is not scattered: devices do not restart in unison, so bring-up is already spread out by whatever staggered it.

PROP 83: PROP_IDENT_LOCATION

  • Type: Single-Value, Read-Write
  • Asynchronous Updates: Yes
  • Required: CAP_IDENT
  • Value Type: 0–7 octets
  • Post-Reset Value: Empty, or restored from saved state while PROP_GNSS_IDENT_UPDATE is clear

The position the device identity carries in its node identity, in the variable-precision location encoding. An empty value means the identity advertises no position.

This property is where the advertised position comes from, whatever put it there. A fix writes it when PROP_GNSS_IDENT_UPDATE is set; a host or administrator writes it when that is clear. There is one advertised position and one place to read it.

While PROP_GNSS_IDENT_UPDATE is set, the device advertises no position its receiver cannot vouch for. The value is empty while PROP_GNSS_ENABLED is clear, and a restore—at boot, by CMD_RST, or by CMD_RESTORE—leaves it empty rather than bringing back where the device was when it was saved. A position written while PROP_GNSS_IDENT_UPDATE is clear is restored like any saved value.

Required by CAP_IDENT rather than CAP_GNSS, because where a node is and whether it can determine that itself are different questions. A fixed repeater on a hilltop has a position worth advertising and no receiver to find it with, and a host placing that node needs somewhere to put the coordinates.

The value’s length is its precision, so a written position needs no separate precision setting: a host that wants to advertise a neighborhood rather than an address writes a shorter value. PROP_GNSS_IDENT_PRECISION governs what the device clamps its own fixes to and does not constrain a written value.

A write is refused with STATUS_INVALID_STATE while PROP_GNSS_IDENT_UPDATE is set. The device is maintaining the value from its own fixes, and a written position would survive only until the next one—a setting that silently reverts is worse than one that refuses. A host that means to place the node clears auto-update first.

Devices SHOULD announce this property when it changes. Unlike PROP_GNSS_LOCATION it moves only when the advertised identity does, which is already rate-limited by the clamping precision, so announcing it costs what it is worth.

PROP 84: PROP_IDENT_ALTITUDE

  • Type: Single-Value, Read-Write
  • Asynchronous Updates: Yes
  • Required: CAP_IDENT
  • Value Type: 1–4 octets, or empty
  • Post-Reset Value: Empty, or restored from saved state while PROP_GNSS_IDENT_UPDATE is clear

The altitude the device identity carries, in meters above the WGS-84 ellipsoid—the same units and reference as the node identity’s altitude option. Writable, refused, and emptied under exactly the conditions described for PROP_IDENT_LOCATION.

The value is a two’s-complement signed integer, little-endian, in the fewest octets that hold it: an altitude of 100 m occupies one octet, 200 m two, and the range extends to four. Most nodes are within a byte of sea level, and this property is read over a link where a byte is worth saving. Negative values are ordinary—a node below the ellipsoid, which much of the world’s dry land is.

A device MUST accept any length from one through four and sign-extend it, so a host that pads to a fixed width is understood. A device SHOULD report the minimal form.

An empty value means no altitude is advertised. A device that advertises no location advertises no altitude either: an altitude alone places nothing.

PROP 85: PROP_IDENT_CONTACT

  • Type: Single-Value, Read-Only
  • Asynchronous Updates: No
  • Required: CAP_IDENT
  • Value Type: Signed node-identity payload

The device identity’s signed node identity as a statement to be kept: in a QR code, a contact link, or a contact exchange. It is built from the same role, capabilities, and options as PROP_IDENT, with these left out:

  • Node Location (option 1) and Altitude in Meters (option 2), when the identity carries the mobile capability bit. A kept position goes stale and travels wherever the contact does; a node that does not move keeps its position, which is worth handing out.
  • Supported Flood Regions (option 4). They are forwarding policy, which changes, not part of who the node is.
  • Nonce (option 5), which no standalone identity carries.

It carries the Unix Timestamp when the device knows the time, which is what lets whoever holds it judge how old it is. Like PROP_IDENT, it is signed afresh on each read.

PROP 86: PROP_MAC_REPEATER_STATE

  • Type: Single-Value, Read-Only
  • Asynchronous Updates: No
  • Required: CAP_REPEATER, CAP_STATS
  • Value Type: UINT8

What the device identity’s forwarding is doing at the moment.

ValueStateMeaning
0OffPROP_MAC_REPEATER_MODE is off
1ForwardingThe mode is on
2StandbyAdaptive, and giving way to the first copy it hears another forwarder send
3EngagedAdaptive, and tolerating as many overheard copies as a repeater: it recently carried a flood for its originator
4WithheldAdaptive, and forwarding nothing: the battery is low

The three adaptive states are those of Adaptive Forwarding. The value is never saved, and a write is refused with STATUS_INVALID_ARGUMENT. A host that wants to follow it reads it again.

PROP 88: PROP_GNSS_ENABLED

  • Type: Single-Value, Read-Write
  • Asynchronous Updates: Yes
  • Required: CAP_GNSS
  • Value Type: BOOL
  • Post-Reset Value: device-defined, conventionally 0 (false), or restored from saved state

Whether the GNSS receiver is powered.

Asynchronous because a device MAY offer the receiver as a control the operator can reach—a button, a menu entry—and a switch someone can flip is a value that moves without the host asking. A device that flips it locally MUST publish the new value like any other transition the host did not command.

False means the lowest power state the board can put the receiver in, not merely an idle one: on a battery-powered node the receiver is typically the largest continuous load there is, and a property that only stopped reporting would be a property that solved nothing.

Clearing it while PROP_GNSS_IDENT_UPDATE is set empties PROP_IDENT_LOCATION and PROP_IDENT_ALTITUDE. The last fix is a place the device may have left, and with the receiver off nothing will replace it; the advertised identity carries no position until the receiver is on again and finds one.

The post-reset value is the device’s to choose, and it SHOULD be false: a device that has never been told to care where it is should not be spending a battery finding out. A device whose purpose is to know where it is—a fixed outdoor node with a panel rather than a pocket tracker on a cell—MAY default it true instead, and SHOULD document that it does. Either way the value is only a starting point: saved state overrides it in both directions, and a host that wants a particular state sets it rather than assuming one.

Disabling the receiver does not clear the wall clock. Time already obtained stays as good as the device’s oscillator keeps it, which is the whole point of having acquired it.

One exception is permitted, and only for boards where the receiver’s own real-time-clock domain is the only clock the board has: that domain MAY remain powered while this property is false, and the device MAY briefly power the receiver at boot to read the time back out of it. That is a clock operation, not a positioning one—position data observed during it is discarded, and it is governed by PROP_GNSS_TIME_TRUST rather than by this property.

PROP 89: PROP_GNSS_LOCATION

  • Type: Single-Value, Read-Only
  • Asynchronous Updates: Yes
  • Required: CAP_GNSS
  • Value Type: 0–7 octets
  • Post-Reset Value: Empty

The position of the most recent fix, in the variable-precision location encoding—the same nibble-interleaved grid code node identities carry, so a host never has to convert between two position formats.

An empty value means no fix has been obtained since the receiver was last powered. The device reports the position it actually has rather than the last one it remembers across a power cycle: a position that was true somewhere else is worse than no position at all.

The length is the device’s own honest precision for that fix and MAY vary between reads. A host MUST NOT read more precision into a value than its length carries; the encoding’s truncation property means a shorter value is a correct lower-precision statement of the same position, never a different one.

A device MUST generally avoid announcing this property, and a host that wants a position MUST be prepared to read one. A receiver produces a fix about once a second, and at fine precision the readings of a receiver standing perfectly still still differ from each other, so a device that published every change would transmit continuously—and wake its host every time—on behalf of a host that may not be looking. No threshold rescues this: the one that would be quiet enough to be worth having is coarse enough that the announcements it does send are too late to be the point.

A host SHOULD nonetheless accept an announcement that arrives. The value carries what a read would have returned, a device may have its own reason to volunteer one, and a host that treats it as a protocol error gains nothing for the strictness.

Read-only. This property reports what the receiver sees, and nothing a host writes could make that true. A position placed by hand belongs to PROP_IDENT_LOCATION, which is what the identity advertises and is writable for exactly that reason.

PROP 90: PROP_GNSS_ALTITUDE

  • Type: Single-Value, Read-Only
  • Asynchronous Updates: No
  • Required: CAP_GNSS
  • Value Type: INT32_LE, or empty
  • Post-Reset Value: Empty

Altitude of the most recent fix, in meters, in the same units and reference as the node identity’s altitude option, so the two are directly interchangeable.

Empty when there is no three-dimensional fix—including while the receiver holds a two-dimensional one, which has a position but no altitude. Read-only for the same reason as PROP_GNSS_LOCATION.

PROP 91: PROP_GNSS_FIX

  • Type: Single-Value, Read-Only
  • Asynchronous Updates: Yes
  • Required: CAP_GNSS
  • Value Type: UINT8
  • Post-Reset Value: 0

The quality of the current position solution.

ValueMeaning
0No fix
1Two-dimensional fix—position without altitude
2Three-dimensional fix

Unlike the three properties that describe a position, this one is never empty: a device that is not fixed knows it is not fixed, so it reports 0. A receiver that is switched off reports 0 for the same reason. This is the distinction the whole positioning surface rests on—zero for the facts the device is sure of, empty for the position it does not have.

This is the positioning property a device SHOULD announce, and the reason it is the exception to PROP_GNSS_LOCATION’s silence is that it is not a measurement. It changes when the receiver acquires or loses a solution, which is a few times in a session rather than a few times a second, and it is what tells a host whether reading a position is worth anything at all.

PROP 92: PROP_GNSS_PRECISION

  • Type: Single-Value, Read-Only
  • Asynchronous Updates: No
  • Required: CAP_GNSS
  • Value Type: UINT16_LE, or empty
  • Post-Reset Value: Empty

Estimated horizontal accuracy of the current fix, in decimeters. Empty when there is no fix.

An estimate, not a measured error bound. Receivers generally report a dilution of precision, which becomes a distance only after multiplying by an assumed range error; a device that has a real accuracy figure SHOULD report that instead. Hosts MUST treat the value as indicative and MUST NOT present it as a guarantee.

Deliberately distinct from the length of PROP_GNSS_LOCATION: that is how precisely the device is willing to say where it is, and this is how precisely it knows. The two move independently.

PROP 93: PROP_GNSS_SATELLITES

  • Type: Single-Value, Read-Only
  • Asynchronous Updates: No
  • Required: CAP_GNSS
  • Value Type: UINT8, optionally followed by a second UINT8
  • Post-Reset Value: 0

The number of satellites contributing to the current solution, optionally followed by the number the receiver can see at all.

A device that cannot distinguish the two reports only the first octet. As with PROP_GNSS_FIX, a receiver that is off or searching reports 0 rather than the empty value.

Chiefly a diagnostic: it is what distinguishes an antenna fault from a sky that is simply obstructed, which is otherwise invisible to anyone not holding the device.

PROP 94: PROP_ILLUMINANCE

  • Type: Single-Value, Read-Only
  • Asynchronous Updates: No
  • Required: CAP_ILLUMINANCE
  • Value Type: UINT32_LE, or empty
  • Post-Reset Value: Not applicable

The ambient illuminance at the device, in millilux.

Millilux rather than lux because the readings that matter are at the dark end: a full moon is around 0.3 lux and starlight two orders of magnitude below that, so a device deciding how bright to make an indicator at night is working entirely inside what whole lux would round to zero. The unsigned 32-bit range still reaches past direct sunlight.

The value is a measurement taken when the property is read, not stored state, so a device samples on each get rather than answering from a cache. It follows that nothing about it is saved or reset: CMD_RST leaves it alone because there is nothing to leave.

An empty value means the device has no reading—the sensor did not answer, or is unavailable for as long as some other part of the device holds the hardware it shares. This is the same “we do not know” that PROP_TIME reports for an unset clock, and is not an error: a host that asked for the light level and got no answer has learned what it needed to.

A sensor that saturates reports its clamped maximum rather than an extrapolation past the point where it stopped responding to light. The alternative—a number derived from a transfer function outside the range it was fitted in—is indistinguishable at the host from a real reading.

Temperature sensors

CAP_TEMPERATURE implements both properties below, with no prerequisite capabilities. They are Single-Value, Read-Only properties whose values are ordered arrays. The multi-value property model describes unordered sets and cannot express their positional correspondence. Both support ordinary gets and multi-get processing, have no unsolicited updates, and have no saved aliases. Supported properties reject Set, Insert, and Remove with STATUS_INVALID_ARGUMENT; devices without the capability return STATUS_PROP_NOT_FOUND.

The environment owns an append-only inventory. Array position identifies a sensor. New sensors append to both arrays; existing entries MUST NOT be renamed, reordered, removed, or reassigned during operation. An unavailable or disconnected sensor retains its name and position. Labels need not be unique and MUST NOT be interpreted as sensor types. They may describe chip die, battery, or external sensors.

Session resets and CMD_RST preserve this inventory. A physical reboot may rebuild it; hosts MUST obtain fresh names rather than persist index associations across connections. Discovery uses CAP_TEMPERATURE, which may be advertised with no sensors registered. No protocol-version change or storage migration is required.

PROP 95: PROP_TEMPERATURES

  • Type: Single-Value, Read-Only
  • Asynchronous Updates: No
  • Required: CAP_TEMPERATURE
  • Value Type: Ordered array of UINT16_LE
  • Post-Reset Value: Fresh acquisition

Each word is a temperature in tenths of a kelvin, with no count or per-reading prefix. The value length determines the count. 0x0000 through 0xFFFE are numeric readings; 0xFFFF means unavailable, invalid, disconnected, or failed acquisition. An empty array means no sensors are registered. Odd-length values are malformed. For example, A5 0B FF FF reports 298.1 K at index 0 and an unknown reading at index 1.

Each fresh get samples all sensors registered when acquisition begins. Sensors appended during acquisition are included in the next get. Sampling need not be simultaneous. Failure of one sensor MUST NOT suppress other readings: each failed slot is 0xFFFF, and an all-failed acquisition returns the full array of unknown values. Transport retransmissions retain their existing retry semantics.

PROP 4876: PROP_TEMPERATURE_NAMES

  • Type: Single-Value, Read-Only
  • Asynchronous Updates: No
  • Required: CAP_TEMPERATURE
  • Value Type: Ordered array of PUI-length-prefixed UTF-8 names
  • Post-Reset Value: Unchanged

Each name is its UTF-8 byte length in PUI form followed by the bytes, without a terminator. Names contain 1–64 bytes and no NUL. An empty array is valid. Hosts validate the complete array before using any name. Reading names does not sample sensors or initiate hardware discovery.

Hosts should request temperatures and names together on the initial read, using multi-get. Once names are known, fetch temperatures and request names again only if a reading lacks a known name. Names may be reused within the connection; index associations must not persist across connections. Additional names represent sensors appended since acquisition began and have not yet been read.

While replacement names are loading, hosts retain known labels. Refused, malformed, or incomplete metadata must not erase known names or valid measurements. Validate the complete names encoding before replacing labels, use numbered labels for unmatched indices, and report metadata problems.

The reference sender supports 16 sensors and 272 encoded name bytes, and rejects capacity overflow with STATUS_NOMEM without truncation or reindexing. These are implementation capacities, not limits imposed on other devices by the wire decoders.

PROP 4866: PROP_TIME

  • Type: Single-Value, Read-Write
  • Asynchronous Updates: Yes
  • Required: CAP_TIME
  • Value Type: UINT32_LE, or empty
  • Post-Reset Value: Unchanged

The device’s wall clock, as seconds since the Unix epoch, UTC.

The count is unsigned, which puts the end of the representable range at 2106-02-07T06:28:15Z rather than at the 2038 rollover of the signed encoding. Nothing in this revision needs to handle a wrap.

An empty value means the device does not know what time it is. This is a normal state, not a fault: a device with no receiver, no battery-backed clock, and no host to ask has genuinely never been told. A device MUST report the empty value rather than an invented one, a zero, or a build timestamp.

A device that does not know the time MUST NOT display a clock, or any other indication of the current time, on any local user interface. A plausible-looking wrong time is worse than a blank space: an operator reads a displayed clock as a fact about the device, and a device with a screen is exactly the device somebody will trust.

Setting the property sets the clock. Setting the empty value returns the device to not knowing—the operator’s way of saying that whatever the device believes is wrong. A host-supplied time outranks every receiver-derived one, including while PROP_GNSS_TIME_TRUST is clear: the operator is the more authoritative source by definition.

The clock is not part of the saved snapshot. An epoch written to flash accumulates unbounded error while the device is off, so a clock is restored from a real time source—a receiver, a battery-backed real-time clock, or a host—or not at all. CMD_RST does not clear it; only an empty write does.

Devices announce this asynchronously. The transition from not knowing to knowing is the one worth announcing; a routine re-synchronization that agrees with the current value is not, and a device SHOULD NOT publish one.

PROP 4888: PROP_TZ_RULE

  • Type: Single-Value, Read-Write
  • Asynchronous Updates: Yes
  • Required: CAP_TIME
  • Value Type: UTF-8, at most 64 octets
  • Post-Reset Value: UTC0, or restored from saved state

The local time zone, as a POSIX TZ rule (IEEE 1003.1 §8.3, with the extensions of RFC 8536 §3.3.1): PST8PDT,M3.2.0,M11.1.0, CET-1CEST,M3.5.0,M10.5.0/3, <+0530>-5:30. Local time at an instant is UTC plus the offset the rule gives for that instant, so the device keeps daylight saving time itself. A zone without daylight saving time is a rule without its daylight part.

Unlike PROP_TIME this always has a value. Where a device is meant to be is configuration and is known from the moment it is commissioned; what time it is is a measurement and may not be. Separating them is what lets a device render a local time the instant it acquires a clock, with no second round trip.

A rule describes a zone’s current practice, not its history. It is what the time zone database records at the end of each zone’s TZif file, which is how a host derives one from a zone identifier.

A value that is not a rule is rejected with STATUS_INVALID_ARGUMENT, as is one with an abbreviation longer than eight characters, or with an offset that is not a whole number of minutes or lies outside −12:00 through +14:00. Outside those, a value is a mistake, and a device that accepted one would display a confidently wrong local time.

Asynchronous because a device with a screen may offer the zone among its own settings (see Changes Made at the Device).

PROP 4889: PROP_TIME_24H

  • Type: Single-Value, Read-Write
  • Asynchronous Updates: Yes
  • Required: CAP_TIME
  • Value Type: BOOL
  • Post-Reset Value: 1 (true), or restored from saved state

Whether a clock the device shows writes hours from 0 to 23. Clear, it writes them from 1 to 12 with AM or PM. A device that shows no time keeps the value and does nothing with it.

Asynchronous for the same reason as PROP_TZ_RULE.

PROP 4868: PROP_GNSS_IDENT_UPDATE

  • Type: Single-Value, Read-Write
  • Asynchronous Updates: Yes
  • Required: CAP_GNSS
  • Value Type: BOOL
  • Post-Reset Value: 0 (false), or restored from saved state

Whether position fixes refresh the location the device identity advertises in its node identity.

Off by default. Broadcasting where you are is a decision, and a device that started doing it because a receiver was switched on would be making that decision on the operator’s behalf.

When on, the device clamps each fix to PROP_GNSS_IDENT_PRECISION before advertising it. A device SHOULD act on a fix only when the clamped position actually changes, rather than on every fix: at a coarse precision a stationary node’s fixes all land in the same cell, and re-advertising each one spends airtime to say nothing.

Asynchronous because a device MAY offer this as a control the operator can reach, alongside the receiver switch it is deliberately separate from. A device that flips it locally MUST publish the new value like any other transition the host did not command.

Switching it off stops the updating and leaves PROP_IDENT_LOCATION and PROP_IDENT_ALTITUDE holding the last position written to them, which becomes an ordinary written value that a host may then change or clear. This is how a fixed node is placed without anyone reading coordinates off a screen: switch the receiver on, let it find where it is, switch auto-update off, and what it found stays, whether or not the receiver is then switched off.

While it is set, a position is advertised only while PROP_GNSS_ENABLED is: switching the receiver off, or switching this on while the receiver is off, empties PROP_IDENT_LOCATION and PROP_IDENT_ALTITUDE. A restore empties them too; the first fix afterward fills them.

The value is therefore a claim the operator is making rather than one the device is maintaining, and a node that moves afterward advertises where it was. Clearing the location is the way to stop advertising a position; a host that wants no stale claim writes an empty value.

Note that the Unix Timestamp option dates the identity payload, not the position—a node that has been stationary for a day still stamps each payload with the moment it was built.

PROP 4869: PROP_GNSS_IDENT_PRECISION

  • Type: Single-Value, Read-Write
  • Asynchronous Updates: No
  • Required: CAP_GNSS
  • Value Type: UINT8
  • Post-Reset Value: 5, or restored from saved state

How many octets of variable-precision location the advertised position is clamped to, 1 (coarsest) through 7 (finest).

The default of 5 is a cell of roughly 38 × 19 m at the equator: fine enough to place a node on a street, coarse enough not to place it in a room. That trade—not the receiver’s accuracy—is what this property exists to control, which is why it is separate from PROP_GNSS_PRECISION.

0 is rejected with STATUS_INVALID_ARGUMENT rather than read as “advertise nothing”: PROP_GNSS_IDENT_UPDATE is how the advertisement is switched off, and a precision that silently meant the opposite of a precision would be a trap. Values above 7 are rejected for the same reason the encoding stops there.

Writable while auto-update is off, so a whole positioning policy can be staged and enabled last.

PROP 4870: PROP_GNSS_TIME_TRUST

  • Type: Single-Value, Read-Write
  • Asynchronous Updates: Yes
  • Required: CAP_GNSS
  • Value Type: BOOL
  • Post-Reset Value: 1 (true), or restored from saved state

Whether time derived from the GNSS receiver may set the wall clock.

On by default: the sky is normally the best clock a device of this class has, and a node that sets itself needs no operator at all.

When clear, no receiver-derived time touches PROP_TIME—not a fix’s time, and not a read of the receiver’s own real-time clock at boot. This is the opt-out for a receiver whose time cannot be trusted: a jammed or spoofed sky can carry a plausible and badly wrong time, and a clock silently reset to it is worse than a clock that has stopped, because everything downstream will believe it.

Position reporting is unaffected. The two are separable, and an operator who distrusts the time may still want to know where the device thinks it is—including in order to notice that it is wrong.

Asynchronous for the same reason as PROP_TZ_RULE.

Every transition to ALERT_NONE that the host did not command MUST be reported with an unsolicited CMD_PROP_IS.

The deadline is the only bound. In particular, the alert is not cleared on detach: the link to the searching host drops as soon as the searcher walks out of range, which is the moment the alert becomes most useful. It is likewise unaffected by CMD_RST, which resets session state and not the physical behavior of the device.

The property is live device-domain state. It is never included in a saved snapshot, is not changed by CMD_RESTORE, and is ALERT_NONE after every reset—a device that loses power mid-alert comes back quiet.

Display motion wake

CAP_DISPLAY_MOTION_WAKE (59) means the device supports waking its display for movement qualified by screen-up orientation. It does not promise that the sensor is currently available. Sensor failures suppress automatic wake; normal device controls remain available.

PROP_DISPLAY_MOTION_WAKE_ENABLED

Property 4875; BOOL; device domain; Get, Set, and unsolicited CMD_PROP_IS notification when changed. Requires CAP_DISPLAY_MOTION_WAKE. The default is true on supported platforms. Unsupported platforms omit the capability and answer Get and Set with STATUS_UNIMPLEMENTED. Malformed values use the normal BOOL validation and return STATUS_INVALID_ARGUMENT.

This property enables the display’s motion policy. It does not control global accelerometer power: another consumer may still need movement detection when this property is false. It is included in CMD_SAVE, restored with the device configuration, and has a platform default of true after clearing saved state. CMD_RST follows the existing saved-state restore rules. A saved snapshot missing the property uses the platform default. A local toggle is saved as Changes Made at the Device describes.

The display wakes only from its fully lapsed state. Movement while active or dim consumes the episode without refreshing the attention timeout. Disabling the property cancels pending motion wakes. Explicit shutdown retains the platform’s existing button wake behavior.

The Pager requires fresh movement followed by at least 200 ms of consistently screen-up acceleration. Its orientation range extends to 45 degrees from horizontal with the keyboard lower than the screen, and 30 degrees sideways or in the opposite direction. Combined tilts share an elliptical angular allowance. Verification uses a bounded one-second window. Rearming requires two seconds of sensor-reported stillness, or an outside orientation interval with exit thresholds of 55 degrees in the reading direction and 40 degrees otherwise, followed by fresh movement and screen-up verification. Sensor reporting latency can make the necessary physical pause longer. Flat, screen-up pocket movement cannot be distinguished from a pickup by orientation alone. This version adds no raw motion telemetry, threshold controls, or GPS automation properties.

To suppress small vibrations, a native movement report must also be supported by a filtered acceleration-vector change of at least 0.12 g sustained for 80 ms within that verification window. The reference comes from its first three valid samples; small oscillations do not accumulate. This check belongs to the display policy and does not suppress native movement observations for other consumers. Exceptionally slow pickups, or pickups completed before verification begins, may not qualify. This does not identify every kind of bed or pocket movement.

Display and Keyboard

A device with a screen and keyboard of its own exposes their settings in the device domain, so they are saved with the rest of its configuration and reachable from wherever it is administered. A device without a screen answers STATUS_PROP_NOT_FOUND for the screen’s, and one without a keyboard for the keyboard’s.

PROP 4877: PROP_DISPLAY_BRIGHTNESS

  • Type: Single-Value, Read-Write
  • Asynchronous Updates: Yes
  • Value Type: UINT8
  • Post-Reset Value: device-defined, or restored from saved state

The screen’s brightness. 255 is the brightest the screen goes, and 0 the dimmest level that is not off: brightness never turns a screen dark. On a screen that is readable unlit, such as e-paper under a front light, 0 turns the light off.

The levels in between are the device’s to map onto its screen, and it reports the value written.

PROP 4890: PROP_DISPLAY_TIMEOUT

  • Type: Single-Value, Read-Write
  • Asynchronous Updates: Yes
  • Value Type: UINT16
  • Post-Reset Value: device-defined, or restored from saved state

How long, in seconds, the screen stays lit after the last input while it is in use, before it goes dark. A device that dims its screen as a warning does so within this time, not after it. On a screen that is readable unlit, such as e-paper under a front light, it is how long until the light goes out and the screen returns to where it rests.

0 is never: no amount of time without input darkens the screen. The device still darkens it when asked to, such as by a control that locks it.

The value governs the screen in use, not a locked one: how long a locked screen stays lit is the device’s to decide, and is never longer than this value when this value is not 0.

A device keeps 0, or a value of 10 or more. A write of 1 to 9 is applied as 10, and answered with the value applied. A device that cannot keep its screen lit as long as a value asks applies the longest it can, and answers with that.

PROP 4878: PROP_KEYBOARD_LIGHT

  • Type: Single-Value, Read-Write
  • Asynchronous Updates: Yes
  • Value Type: BOOL
  • Post-Reset Value: 1 (true), or restored from saved state

Whether the keyboard is lit while the screen is. A dark screen leaves the keyboard dark either way.

PROP 4879: PROP_KEYBOARD_AIDS

  • Type: Single-Value, Read-Write
  • Asynchronous Updates: Yes
  • Value Type: UINT8
  • Post-Reset Value: 3 (every aid), or restored from saved state

The typing aids in effect, as a bitmap:

BitNameAid
0 (0x01)KEYBOARD_AID_CAPITALIZEThe first letter of a sentence is capitalized.
1 (0x02)KEYBOARD_AID_PERIODTwo spaces typed after a word become a period and a space.

The other bits are reserved and MUST be zero. A write that sets one is answered STATUS_INVALID_ARGUMENT.

PROP 4904: PROP_KEYBOARD_REPEAT_DELAY

  • Type: Single-Value, Read-Write
  • Asynchronous Updates: Yes
  • Value Type: UINT16
  • Post-Reset Value: 500, or restored from saved state

How long, in milliseconds, a key is held before it repeats. 0 is never: held keys do not repeat.

Only the key pressed last repeats. Another key going down ends its repeat, and a key still held when the one pressed after it goes up does not repeat until it is pressed again. Modifier keys neither repeat nor end a repeat.

A device with no keyboard whose keys can repeat answers STATUS_PROP_NOT_FOUND for this property and for PROP_KEYBOARD_REPEAT_INTERVAL. A device whose keyboard has a controller of its own answers both even when that controller cannot repeat keys, and keeps both values. When a keyboard that repeats keys first connects after the device starts, the device takes up the keyboard’s values; it passes each later write on to that keyboard, including one made while the keyboard was away.

PROP 4905: PROP_KEYBOARD_REPEAT_INTERVAL

  • Type: Single-Value, Read-Write
  • Asynchronous Updates: Yes
  • Value Type: UINT16
  • Post-Reset Value: 50, or restored from saved state

The time, in milliseconds, between a held key’s repeats. A write of 0 is answered STATUS_INVALID_ARGUMENT.

All of these properties are included in CMD_SAVE, and are asynchronous because the device’s own controls change them (see Changes Made at the Device).

Directional Control

A device with a directional control of its own, such as a trackball, a joystick, or a pad of arrow keys, says which of its directions it acts on. A device without one answers STATUS_PROP_NOT_FOUND.

PROP 4895: PROP_DIRECTIONS_ENABLED

  • Type: Single-Value, Read-Write
  • Asynchronous Updates: Yes
  • Value Type: UINT8
  • Post-Reset Value: 15 (every direction), or restored from saved state

The directions the control acts in, as a bitmap:

BitNameDirection
0 (0x01)DIRECTION_UPUp
1 (0x02)DIRECTION_DOWNDown
2 (0x04)DIRECTION_LEFTLeft
3 (0x08)DIRECTION_RIGHTRight

The device ignores the control in a direction whose bit is clear, as though it had not been moved that way. Whatever else the control does, such as being pressed, is unaffected.

The other bits are reserved and MUST be zero. A write that sets one is answered STATUS_INVALID_ARGUMENT.

The property is included in CMD_SAVE, and is asynchronous because the device’s own controls change it (see Changes Made at the Device).

Sound

A device with a sounder of its own exposes whether it plays optional sounds, and how loud, in the device domain, so the choice is saved with the rest of its configuration and reachable from wherever it is administered. A device without one answers STATUS_PROP_NOT_FOUND.

PROP 4891: PROP_SOUND_ENABLED

  • Type: Single-Value, Read-Write
  • Asynchronous Updates: Yes
  • Value Type: BOOL
  • Post-Reset Value: 1 (true), or restored from saved state

Whether the device plays its optional sounds: the notifications and feedback cues it makes of its own accord. Cleared, the device makes none of them.

It governs sound alone. Haptics and visual indication are unaffected, and a locate alert sounds whatever this property says.

PROP 4892: PROP_SOUND_VOLUME

  • Type: Single-Value, Read-Write
  • Asynchronous Updates: Yes
  • Value Type: UINT8
  • Post-Reset Value: device-defined, or restored from saved state

How loud the device plays its optional sounds. 255 is the loudest it plays them, and 0 the quietest level that is not silent: volume never silences the device, which is PROP_SOUND_ENABLED’s to do.

The levels in between are the device’s to map onto its sounder, and it reports the value written. A locate alert is not governed by this property: it sounds as loud as the device makes it.

Both properties are included in CMD_SAVE, and are asynchronous because the device’s own controls change them (see Changes Made at the Device).

Setup

A device with a messaging interface of its own says whether it has been set up through that interface, so a host can tell a device new from the box, or from a factory reset, from one already in use. A device without one answers STATUS_PROP_NOT_FOUND.

PROP 4893: PROP_SETUP_COMPLETE

  • Type: Single-Value, Read-Write
  • Asynchronous Updates: Yes
  • Value Type: BOOL
  • Post-Reset Value: 0 (false), or restored from saved state

Whether the device has been set up through its own interface. The device sets it when its first-run setup finishes. While it is clear, unlocking the device’s interface opens that setup, so a host that clears it sends whoever holds the device through setup again, and one that sets it skips setup.

The property is included in CMD_SAVE, so CMD_FACTORY_RESET clears it with the rest of the saved state. It is asynchronous because the device sets it itself (see Changes Made at the Device).

PROP 4894: PROP_TEST_MESSAGE_ALERTS

  • Type: Single-Value, Read-Write
  • Asynchronous Updates: Yes
  • Value Type: BOOL
  • Post-Reset Value: 0 (false), or restored from saved state

Whether test messages on EMERGENCY call for attention like any other message. Cleared, a test message earns no receipt cue, and a device with an interface of its own neither alerts for it nor counts it unread. The message is still queued, stored, and shown.

The property is included in CMD_SAVE.

PROP 4906: PROP_REFUSE_STRANGERS

  • Type: Single-Value, Read-Write
  • Asynchronous Updates: Yes
  • Value Type: BOOL
  • Post-Reset Value: 0 (false), or restored from saved state

While set, the device declines acknowledgment-requested frames to its own identity from senders it has not accepted. A declined frame is neither acknowledged nor delivered. Frames that request no acknowledgment are not declined, though a device may discard text messages among them from senders it has not accepted. A device without it answers STATUS_PROP_NOT_FOUND.

The property is included in CMD_SAVE.