TCPP 1.3.0
tcpp.digital · schema 1.3.0 User manual

MID-011 Viewer (Mock)

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:

WhereHow
Android, Chrome or EdgeMenu ⋮ → Add to Home screen → Install. Chrome may offer Install app on its own in a bar at the bottom.
Android, Samsung InternetMenu ≡ → Add page to → Home screen, or the install icon in the address bar.
Android, FirefoxMenu ⋮ → Add to Home screen.
iPhone and iPadIn 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: ChromeThe install icon at the right end of the address bar, or menu ⋮ → Cast, save and share → Install page as app…
Windows, macOS, Linux: EdgeThe install icon in the address bar, or menu … → Apps → Install this site as an app.
macOS, Safari 17 or laterFile → Add to Dock…
Firefox on a computerDoes 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: a meter icon, the title MID-011 Viewer with Electricity meter, Charging station and Smart energy device, the three-line notice, the two publishers, a Login button and the language switch Deutsch · English.
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

The New account screen: username, password, repeat password and e-mail, then the Person card with salutation, first name, last name and function.
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

The Choose screen with a warning: The app has no TCPP identity yet. Generate the key pair in the TCPP setup before viewing a device. Below it the View button is greyed out.
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 TCPP setup screen, Own identity card: a TCPP ID starting G:, type RDU Remote Display Unit, key method PKA.NISTP384 (ES384), key format HEX.SEC1.COMPRESSED, the public key in hex with a Copy button, its SHA-256 fingerprint and the creation time.
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: View new device with a From ID field and View button, From QR code with a Take button, three chips with the emulated device IDs, Known devices with one charge point, and the buttons Logout, Account, TCPP and Logs.
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.

IDDeviceWhat it shows
E:DE*PID*E*IWS*00100017AC charge pointThe charging session of the main example: energy, power, start and current time, in German and English.
S:1ESY1170046711Electricity meterThe 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*00200004DC charge pointNothing: 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

The View screen for the AC charge point: the device line with ID, type and name; the grey header frame with the device ID, current time, last record with its age 0 s and last error; the region chips de-DE and en-GB with en-GB selected from your setup and the zoom; the green device display showing Charging Park Oberhausen West, EVSE ID, start and actual date and time, 5.04 kWh, 21.7 kW, CHARGING and an End charging button.
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:

  1. 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.
  2. 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.
  3. 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 overMark
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

The Status card with six steps, each with a green tick: Hub reached HUB.OPEN.EMULATOR, Device known to the hub (module_get) Ladeplatz 011, Device reached (participant_set), Measurement configuration MEASUREMENT.CHARGEPOINT.AC, Mask accepted, Values accepted, and the line Beat 5 s, lease 300 s, 1 participant(s).
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

The Values sheet: display_sign DISPLAY.CHARGEPOINT.AC, display_mask_id, display_regions de-DE, en-GB, region in use en-GB from your setup, record_udt, record_pagination, signature valid, schema display_output_request 0 findings, then field I:1001 GENERAL.TITLE OUTPUT.LABEL with its raw values in both regions and what is shown.
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 View screen for the DC charge point: the header frame's last error reads 840 No matching Mask found, the display holds only that text, and in Status the first four steps are ticked, Mask accepted is crossed with the note this device type is planned for a later version and the code 840, and Values accepted is still waiting.
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.

CodeMeaning in the viewer
104A signature does not match the key the hub gave for the device.
215The record carries a record_version the app does not know.
840There is no mask for the display, or the device type is planned for later.
861The mask is not listed in the certificates of the measurement configuration.
863The display's use case does not match the measurement configuration.
872A value is longer than its field.
903The 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:

EntryWhat 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 DEACTIVEThe measurement configuration is deactivated.
Unknown record_version (215)Records carry a version the app does not know.
Gaps in record_paginationNumbers are skipped, which the processing log notes.

Raw data

The Raw data card with the tabs MCR, MSK, DSP, CPR, MOD, ERR, PING, PRT and LOG, DSP selected: signature valid, schema display_output_request 0 findings, the time received, the JWS header with alg ES384, the payload JSON, and the buttons Copy, Copy JWS and Share.
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

The Local log card: the tabs Exchanges, Processing log and Error log, a device filter set to the AC charge point, and entries such as display_output response signed by the app, display_output request signature valid and participant_set response signature valid, each with time, partner and pagination number.
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.

Workflows

A. A first look, in two minutes

  1. Open tcpp.digital/app/viewer/1.3.0/ on a phone, and install it from the browser's menu.
  2. Pick a language, press Login → New account, fill in a username and a password, and Save.
  3. Sign in, press Open TCPP setup → Generate key pair, then Back.
  4. Tap the chip E:DE*PID*E*IWS*00100017 and View. The six steps tick off and the charge point's display appears.
  5. Switch the region between de-DE and en-GB, and watch the age in the header frame reset with each record.

B. Show the error screens

  1. View the DC charge point E:DE*PID*E*IWS*00200004: the mask step fails with 840, no setup needed.
  2. Turn on Developer mode in TCPP setup and open the AC charge point again.
  3. Under Emulator: inject an error, choose Wrong signature on displays (104): the display greys out and the header frame names the error.
  4. Try MCR DEACTIVE and Lease expires after 20 s (903) the same way, then set it back to None.

C. Hand a session to a developer

  1. On the device's View screen, Details → Logs.
  2. Export (JSON Lines) saves the device's entries, including every signed token.
  3. For one record, Raw data → its tab → Copy JWS or Share, to pass on the signed token as it arrived.

Appendix

Glossary

Hub
The TCPP module that knows the devices and their keys, and through which the app reaches them. In the mock, HUB.OPEN.EMULATOR inside the app.
Mask
A screen layout, delivered by the device with mask_output: a grid of characters × lines and the fields on it.
Display
The values for a mask, sent with display_output at the device's beat.
Measurement configuration (MCR)
The device's signed statement of what it measures and which masks are certified for which use case.
Participation
The app's place in a device's session, joined with participant_set for a lease that the app renews.
Region
A language variant of a display's texts, such as de-DE.
RDU
Remote display unit, the module type the app signs as.
Frame, record, peer
As in the node's manual.

About the figures

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.