Skip to main content
Version: 0.9.0

Managing Devices

This page is the operator's side of onboarding. The device owner's side - the steps to bring a HoloLens, P&C Solutions METALENSE 2, Meta Quest, Android device, or visualizer into a session - is in Onboarding Devices. Read both: onboarding is a two-party act, and each page describes one party.

How pairing codes are minted​

The Hub continuously mints short-lived pairing codes:

  • A fresh code is minted every 8 seconds by default (codeRotationSec in the Launcher Configuration Reference). This is the code the Visualizer shows.
  • Each code is single-use - it is consumed on success and on failure.
  • Each code has a short time-to-live of about 10 seconds.
  • One failed attempt invalidates the code - there is no retry against a spent or failed code.

Security comes from this handling - single-use, short TTL, one-failure-max - not from the length of the code. The code never crosses any transport; it is only ever read by a human and typed into a device.

Requested codes. An onboarded application can also ask the Hub for one-time codes of its own, to onboard several devices at once (see One-time codes). Each is single-use like the shown code, lives 120 seconds by default and at most 600, and never replaces the code the Visualizer shows. They are never shown in the Visualizer: the application hands them to its devices.

The two onboarding paths​

Push (operator-configured). You add a device through the Hub UI, and the Hub sends it an onboarding invite automatically at startup. This is today's default and the standard path for fixed installations - the device does not need anyone to read a code to it.

Pull (code entry). A device's app asks its user for the code currently shown by the Hub and onboards itself. This is the path integrated applications use through the C API. It requires that someone can read the Hub's current code (see Reading this Hub's code).

Listing connected peers​

The runtime tracks which peers are connected. The visualizer surfaces the connected peers so you can see who is currently in the session.

Forgetting and blacklisting a device​

Two related operations remove a device:

  • Forget wipes the device's persisted identity slot (certificate and session state) so its next connection requires a fresh pairing. A device cannot be forgotten while its session is still active - have it leave first, then forget.
  • Blacklist (revoke) stops the Hub from renewing or re-issuing the device's certificate and tells the rest of the session about it. A blacklisted device can only return through a fresh, human-approved pairing - and completing that fresh pairing clears the blacklist entry for it.

What a blacklisted device can still do​

A revoked certificate is not invalid everywhere at once. What happens depends on whether a peer has heard of the revocation:

WhoHas heard of the revocationWhat happens to the device
The Hub's certificate authorityAlwaysRefuses to renew or re-issue its certificate
A peer that has received the Hub's revocation listYesDrops the device and refuses it. A launcher stops streaming to it at once and does not start streaming to it again
A peer that has not received the listNoKeeps accepting the device until its certificate expires
  • The Hub publishes the list the moment you blacklist a device, and keeps it stored, so a peer that joins later still receives it. Peers connected to the Hub normally hear of it within about a second.
  • A peer that cannot reach the Hub's stored data keeps accepting the device. It never refuses everyone just because the list is missing.
  • Worst case: up to 24 hours. That is the longest a certificate lives. When it expires, every peer drops the connection and the device cannot renew.
  • A peer that refuses the device stops serving it (no pipeline, no video), but the network connection itself is not closed.

Reading this Hub's code​

The Visualizer shows this Hub's current code: in the Connection panel, use Onboard a Device (steps in Connection Panel). It shows the code together with this Hub's hostname, and as a QR code for a device that can scan one. The display follows the Hub's rotation, so read out the code shown at that moment.

  • Push onboarding needs no code at all.
  • Pull onboarding: relay the shown code to the device owner within its short lifetime. A failed attempt uses it up; take the next one.
  • Several devices at once: have an onboarded application request one-time codes (see Requested codes) instead of racing the rotation.