How to open and install the viewer, set up its account and key, and read what it
shows: the display of a meter or charge point, the app's own header above it, and the
status of the exchange that brought it. The app runs at
tcpp.digital/app/viewer/1.3.0/.
Click any figure to enlarge it.
Parts of this manual have been authored with AI assistance.
A web app
Opened in the browser, installable to the home screen or desktop. No store, nothing to download.
Emulated
Hub and devices run inside the app and sign real TCPP frames. Nothing leaves the device.
A mock
A draft for discussion, not an official application and not a legally relevant display.
What the viewer is
The European MID-011 Viewer shows, on a phone, what the display of a measuring device
shows: the screen of an electricity meter or a charge point, drawn from the
mask_output and display_output records the device signs.
Above that screen the app keeps a frame of its own with the device ID, the phone's
time and the age of the last record, so its own lines can never be taken for the
device's.
This version is a mock: a working draft for PTB-REA-LIS that shows how
such an app could behave, built so that its screens can be tried and discussed. Its hub
(HUB.OPEN.EMULATOR) and its three devices run inside the app. They answer
with real ES384-signed TCPP frames, and the app checks every one of them the way it
would check a real device's: signature, record version, schema, and the certificates
of the measurement configuration. What the app does not do yet is reach a real hub or
device; it says so wherever that matters, with Demo data on every display.
Not a legally relevant display
The start screen says it in three lines, and it holds throughout: the mock is not an
official DE/EU application, and what it shows is demo data, not a measurement.
Everything the app stores — accounts, its key, known devices, logs — stays in the
browser on this device. The app makes no requests to anyone after it has loaded, and
works offline from then on.
Opening and installing it
Opening it
Open https://tcpp.digital/app/viewer/1.3.0/
in a current browser: Chrome, Edge, Safari, Firefox or Samsung Internet, on a phone or a
computer. The app is laid out for a phone; on a wider screen it stays a column in the
middle of the window. The path carries the TCPP version, and
/app/viewer/ lists the versions published.
On the first visit the browser stores every file of the app. From then on it opens
without a connection, in the tab or as an installed app.
Installing it
The viewer is a progressive web app: there is no store and no download. "Installing" it
means telling the browser to keep it as an app, with its own icon on the home screen or
desktop and its own window without the address bar. It is the same app as in the tab,
and every browser does it from its own menu:
Where
How
Android, Chrome or Edge
Menu ⋮ → Add to Home screen → Install. Chrome may offer Install app on its own in a bar at the bottom.
Android, Samsung Internet
Menu ≡ → Add page to → Home screen, or the install icon in the address bar.
Android, Firefox
Menu ⋮ → Add to Home screen.
iPhone and iPad
In Safari, Share(□↑) → Add to Home Screen → Add. Since iOS 16.4 Chrome and Edge offer the same entry in their share menu.
Windows, macOS, Linux: Chrome
The install icon at the right end of the address bar, or menu ⋮ → Cast, save and share → Install page as app…
Windows, macOS, Linux: Edge
The install icon in the address bar, or menu … → Apps → Install this site as an app.
macOS, Safari 17 or later
File → Add to Dock…
Firefox on a computer
Does not install web apps. Use the app in a tab; it works the same there.
Menu names move between browser releases; if an entry is not where the table says, look
for Install or Add to Home screen in the same menu.
Install first on an iPhone
On iOS the home-screen app keeps its data apart from Safari: an account made in a
Safari tab is not there in the installed app, and the other way round. Install the app
first and set it up there. Safari also deletes a site's stored data after seven days
without a visit, and an app on the home screen is exempt from that, which is a second
reason to install it.
On Android and on a computer the installed app and the browser's tab share their data,
as long as they belong to the same browser. Different browsers never share: an account
made in Chrome is not in Firefox.
Updates and removing it
When a new release is published, the app fetches it in the background the next time it
is opened with a connection, and runs it from the start after that. Nothing needs to be
reinstalled. A later TCPP version is a separate app at its own path, with storage of its
own, so it starts empty.
Remove an installed app the way the system removes any app: on Android and iOS hold its
icon and choose to remove it; on a computer, open the app's window menu and choose
Uninstall. Removing the app does not always delete what it
stored. To delete everything, including its key, clear the browser's site data for
tcpp.digital.
Account and key
The start screen. The pill top right always names the screen.
The start screen carries the notice, the publishers, Login and the
language switch. The language chosen here holds until someone signs in; from then on the
account's Region / language decides. The app speaks German and
English (de-DE, en-GB).
A local account
Login → New account.
Accounts exist only on this device; nothing is transmitted. They let several people
share one phone, each with their own key, devices and logs. The password protects one
person's view from the next; it is not protection against someone who can read the
browser's storage. Only a username and a password of six characters or more are
required. Function is a display setting, not a right, and
Region / language sets the app's language and the region a
display is shown in first.
After Save the app returns to the start, and the account signs
in with Login. It stays signed in until
Logout, so the start screen then offers
Continue as … instead.
The app's TCPP identity
Without a key nothing can be viewed.
Every frame the app sends is signed, so before the first device it needs a key of its
own. Open TCPP setup and press
Generate key pair:
The identity: a G: ID, module type RDU, a P-384 key.
The app becomes a TCPP module of type RDU (remote display unit), with a
G: ID of its own. The private key is generated in the browser, marked as
not exportable, and is never shown; there is no backup of it. Pressing the button again
asks for confirmation and then makes a new identity, which hubs and devices that knew the
old one no longer recognise. Each account has its own identity.
The rest of TCPP setup:
Hub shows the hub's address and sign. In this version the hub is the emulator inside the app, and the address is shown, not contacted.
Settings: Developer mode (see Developer mode), Steps kept per device (one step is a request and its response, default 100) and the three Age marks of the header, 10, 30 and 180 seconds.
Trusted certificates is a placeholder: in a web app the browser handles TLS.
Outgoing record_pagination lists, per recipient, the last number the app gave a record it sent. The counters survive deleting the logs.
Choosing a device
The Choose screen, after the first device was viewed.
Choose is the app's home once signed in. A device is named by its
TCPP ID, typed into From ID or read from a QR code; tapping one of
the chips under Emulated devices of the demo hub fills the field. Then
View.
ID
Device
What it shows
E:DE*PID*E*IWS*00100017
AC charge point
The charging session of the main example: energy, power, start and current time, in German and English.
S:1ESY1170046711
Electricity meter
The meter reading, tariff and meter ID. Its display is in German only, so the region falls back to the device's own.
E:DE*PID*E*IWS*00200004
DC charge point
Nothing: DC charge points are planned for a later version, and the device answers 840, no matching mask.
The field takes the ID kinds a person can be given. I: IDs are internal to
one company and are refused, and so are direct addresses (D:,
P:, X:): the real app will contact those itself, the mock
reaches devices only through its hub. Each refusal says why below the field.
Take opens the camera to scan a TCPP QR code. It works only where
the browser offers barcode detection, such as Chrome on Android; elsewhere it reads
Not available in this browser and the ID is typed. A code holds IDs, never links:
the first fills the field, the others are checked against the device's signed records
after connecting. A code older than three minutes is read with a warning.
Every device viewed is saved under Known devices, newest contact
first, with the name you give it and the code of its last error. Tap a row to view it
again.
The View screen
From top to bottom: the device line, the header frame, the display.
The screen is built in layers, each in a frame of its own:
The device line: ID, type and a Name you can
give it. The type comes from the hub's module_get and the measurement
configuration.
The header frame, grey-blue: the app's own lines. The phone's time,
the time of the last record with its age, and the last error with its code and text.
The age counts from when the app received the record, so a wrong phone clock cannot
make every record look stale; a clock that differs from the device's by more than 30
seconds is a separate note.
The display, pale green in a double frame: only what the device sent,
drawn on the mask's character grid. Buttons and input fields of the mask are drawn but
cannot be used yet.
The age of a record
Values arrive at the device's beat, every five seconds in the emulator. When a record
stays the last one for longer, its age is marked:
Age over
Mark
10 s
◔ in amber
30 s
◑ in amber
3 min
●Not current
The three limits are set under Age marks of the header in TCPP setup.
Region and zoom
A display can carry its texts in several regions. The chips above it list those the
device offers; tap one to switch, and the choice is kept for that device. The note beside
them says how the region was chosen, in this order: chosen here, from your
setup (the account's region), device default, en-GB fallback,
first offered. Dates and numbers are formatted by the app from the raw values,
in the region shown. − and + zoom the
display from 60 to 300 percent.
Status
Six steps from the hub to the values.
Below the display, Status follows the exchange that fills it, one
line per step: the hub is reached and returns the device's record
(module_get), the app joins the device's session
(participant_set), fetches its measurement configuration, accepts the mask
and then the values. Each step shows ○ waiting,
… running, ✓ done,
! done with a warning, or
× failed with its error code. The last line gives the
beat, the lease of the participation (renewed before it runs out) and the number of
participants.
A mask is fetched once and then kept in the mask cache; the next visit takes it from
there. Refresh view runs the steps again,
Delete device removes the device and its logs but leaves its mask
in the cache.
Details
Details → Values: each field's raw value beside what is shown.
Details, at the foot of the screen, opens three sheets and the logs:
Device: the hub's record of the device (module_get) and its measurement configuration with its active sign, a Ping, and My notes, kept only on this phone.
Mask: the mask's sign, ID, regions and size, who sent it, whether its signature held, whether the measurement configuration lists it for this use case, and its fields with position and length.
Values: the display record's head, its signature and schema result, and for each field the raw value per region next to the text shown. A value the app could not take as a raw value is marked not raw; one too long for its field is marked 872.
Logs opens the Logs screen filtered to this device.
When a step fails
The DC charge point: the mask step fails with 840.
When a step fails, the steps after it are not taken. The failed step names its reason and
code, the header frame's Last error carries the code with its text
from the specification's error list, and the display shows that text where the screen
would be. The error is also written to the error log.
Some faults do not stop the display but are flagged on it. A display whose signature is
invalid is greyed out and its values are not shown; a device whose measurement
configuration is not ACTIVE is greyed out with a red line saying its values
are not a valid measurement; a mask the measurement configuration does not list, or lists
for another use case, is shown under an amber warning.
Code
Meaning in the viewer
104
A signature does not match the key the hub gave for the device.
215
The record carries a record_version the app does not know.
840
There is no mask for the display, or the device type is planned for later.
861
The mask is not listed in the certificates of the measurement configuration.
863
The display's use case does not match the measurement configuration.
872
A value is longer than its field.
903
The participation expired and was not renewed.
A device that does not answer is retried as often as its record allows, each attempt
shown on the Device reached step, before the step fails.
Developer mode
Switched on under Settings in TCPP setup, developer mode adds two
cards to the foot of the View screen. It is meant for the people who build and test
devices, and for a demonstration of the error screens.
Emulator: inject an error
The emulated hub and devices can be told to misbehave. Choosing an entry restarts the
session with that fault, and None returns to normal:
Entry
What happens
Device does not answer (timeout)
The device stays silent; the join is retried and fails.
Wrong signature on displays (104)
Display records arrive with a broken signature; the display is greyed out.
Mask missing (840)
The device has no mask for its display.
Mask not in certificates (861)
The measurement configuration does not list the mask.
Use case does not match (863)
The mask is listed, for another use case.
Lease expires after 20 s (903)
The participation ends early and cannot be renewed.
MCR DEACTIVE
The measurement configuration is deactivated.
Unknown record_version (215)
Records carry a version the app does not know.
Gaps in record_pagination
Numbers are skipped, which the processing log notes.
Raw data
The raw display record, as received and checked.
One tab per kind of record: the measurement configuration (MCR), mask
(MSK), display (DSP), charge process (CPR, fetched
on demand), the hub's module record (MOD), an error (ERR),
PING, the participation request and response (PRT), and the
device's processing log (LOG). Each shows the result of the signature and
schema checks, the JWS header and the payload. Copy takes the
JSON, Copy JWS the signed token as received, and
Share hands it to the phone's share sheet.
Logs and the data on this device
Every frame in and out, with the result of its signature check.
Logs, from Choose or from a device's details, starts with
Data on this device: how much the exchanges, the processing log and the
error log take, and what is kept when logs are deleted — known devices, the mask cache,
the account and settings.
Exchanges holds every frame sent (→, signed by the app) and received (←, with its signature result). Tap an entry for the token and its payload.
Processing log is the app's account of what it did and why.
Error log holds every failed step with its code.
The device filter narrows all three. Export (JSON Lines) saves
the entries as a .jsonl file, one entry per line, to hand to a developer.
Delete all logs, Delete mask cache,
Delete these entries and Delete this device's
logs each ask first.
Automatically delete all local logs older than 30 days is on by
default and runs whenever the app starts or someone signs in. It never touches the account, the key, known devices,
notes, the mask cache or the pagination counters.
Persistent storage says whether the browser has agreed to keep the app's
data when space runs low. The app asks at sign-in; browsers usually grant it to an
installed app. Without it, a browser short of space may clear the storage, and with it
the key, so Ask again after installing. The
Remote log card, which will fetch a device's own log and its archive,
is planned for a later version.
Every screenshot in this manual was taken from the published build of the app in a
phone-sized browser window, not drawn. A script drives a headless browser through the
steps above, from an empty profile, and is re-run whenever the app changes. The figures
show the English interface; the dates are the day they were taken.