Blueprints
A Blueprint is the rule by which a Mioty device's uplinks are read. Without one the telegrams stay raw: received, counted, stored — but with no named values, no units, and therefore nothing an assignment could point at.
Blueprints normally come from the device manufacturer. A Blueprint belongs to a device type, not to a single device: the same document serves every End Point of that type. Which Blueprint applies to a device is what its device type says, chosen at onboarding; a sensor place of a context names the type it expects.
For IO-Link devices the same holds with a different document format — see IODDs.
Both are device descriptions and live in the menu under Device Descriptions, on one screen with two tabs: Blueprints and IODDs. They are alternatives, not two topics — which document applies is decided by the kind of device, and the onboarding form offers exactly one of the two per End Point. Each tab has an address of its own, so a link from elsewhere lands on the one it means.
Shipped Blueprints
Part of the list is already there on the very first start: the shipped Blueprints. The list does not single them out — where a Blueprint came from makes no difference to working with it; Everything else is uploaded by hand.
This holds for a shipped Blueprint:
- It is brought into line with the shipped document on every start, as long as it exists. A row that differs from the document is put back. That is why correcting a Blueprint is a new release of the program and not maintenance work on the database.
- It can be deleted like any other, under the same rules (see Delete). A deleted shipped Blueprint stays deleted: the next start does not create it again, not even when a new release of the program brings a newer revision of the same document.
- It can be restored. The Restore shipped button above the list creates all deleted shipped Blueprints again and says how many came back. Whatever exists is left alone; if a Blueprint of your own already carries the name, it keeps it and the shipped one is not created.
A Blueprint of your own is never touched by this — not even one carrying the same TypeEui.
Not every Blueprint a manufacturer publishes is shipped. A document that does not hold up against the mioty Application Layer Specification is not shipped; the manufacturer is asked about it instead. Rather no value than a confidently wrong one: a device description that reads half a telegram correctly is a thing nobody notices.
What the list says
| Column | Meaning |
|---|---|
| Name | The freely chosen name the Blueprint appears under in the list and in the device type picker. Beneath it, in smaller type, the vendor and device designation from the document. |
| TypeEui | The identifier the document claims for itself. |
| Hardware, Firmware | The hardware and firmware revision the document describes. |
| Format | The revision of the format description, not of the device — see below. |
| End Points | How many devices use this Blueprint. |
| Added | When the row came into being. |
Values a document does not state appear as "—". That is the normal case and not a defect: the specification leaves it to a manufacturer which of them to fill in.
Why it is called Format and not Version
A Blueprint carries a version field at the very top. It names the revision of the format
description (clause 2.2.3) — which edition of the Blueprint format the document is written
against, not which edition of the device it describes. In a column headed "Version" it would be read
exactly wrong. What one means by "version" is in Hardware and Firmware.
Why vendor, device, hardware and firmware are there
According to the specification the TypeEui identifies the Blueprint file, not the device type. Two documents from the same manufacturer can carry the same identifier and still describe different payloads — this happens. Whoever commissions a device then has several candidates for one identifier in front of them, and vendor, device designation, hardware and firmware revision are the only thing that tells them apart.
The vendor's name is taken exactly as the document spells it. Where one file says "sentinum" and the next says "Sentinum", the list shows both. That is deliberate: a silently corrected spelling would be a claim about how a manufacturer writes its own name.
Measuring points
A Blueprint's name says which document applies. It does not say what comes out of it — and that is exactly the question somebody has while picking a device type: does this device deliver the temperature I need, and in which unit?
The row action View measuring points answers it. It is offered everywhere a device description is named: on a Blueprint, on an IODD, on the sensor place of a context, on a node of the topology and in the detail dialog of an End Point.
Per measuring point the table shows:
| Column | Meaning |
|---|---|
| Measuring point | The designation from the document, with the technical name below it — the name the value appears under in an assignment. Where there is no designation, only the technical name stands. |
| Data type | The type the document names, in its own spelling (int, uint, float for a Blueprint, Integer, Float32, Boolean for an IODD). |
| Unit | The unit the document states. |
| Measuring range | The lower and upper bound where the document declares them. Where it declares only one, only that one stands. |
| Special values | Values the document expressly declares to be not a measurement: a sensor fault, a value out of range, a state. The number first, then the text — the number is what travels on the wire. |
| Format | Only where the measuring points shown come from more than one uplink format. |
A column no measuring point on the page shown fills is not drawn. A column full of dashes says nothing and costs the width of one that says something. The table pages and can be searched; another page may therefore show a column that is missing here.
And a Blueprint cannot name special values at all. The mioty Application Layer Specification has no element for one. On a Blueprint a missing special-values column therefore does not mean "this device has none" but "no Blueprint can name any". On an IODD the same absence only says that none of the measuring points shown declares any.
Two marks can stand on a measuring point: Computed — the value is calculated from other values rather than transmitted — and Hidden — the document rates it as not of everyday interest. Both stay selectable; the mark is a classification and not a bar.
Uploading
A Blueprint is a JSON document. The dialog takes it two ways:
- As a file. The file is read, its contents land in the text box, and the file name is adopted as the name. Both can still be changed afterwards.
- As text. Pasted straight into the text box, from a clipboard or a ticket, say.
The name is free and serves only for recognition in the list and in the device type picker. A telling name pays off, because it will later sit in a picker next to twenty others.
Everything else is not entered. TypeEui, format revision, vendor, device designation, hardware and firmware revision are in the document itself, and the server reads them from there. That is why the form has no fields for them: a hand-typed TypeEui contradicting the document would be a mistake nobody notices until the first telegrams stop fitting.
If the document is refused, the message names the reason. The most common are invalid JSON, a missing TypeEui, and a component name handed out twice within the same format.
Versions of the same Blueprint
When a manufacturer issues a new version of its Blueprint, it is uploaded as its own document and entered as the device type of the End Points that are to be read with it, and on the sensor places that expect the old one. A change takes effect from the next uplink; telegrams already received are not re-read retroactively.
Deleting
The End Points column says how many devices have this Blueprint as their device type. While it is the device type of an End Point or expected on a sensor place, deleting is refused — and the refusal names both numbers. That is deliberate: a deleted Blueprint would silently turn every affected device's uplinks raw, and the fact would only surface when values go missing from an evaluation.
The order is therefore the other way round: first give the End Points concerned another device type and enter another expected device type (or none) on the sensor places, then delete. The filter of the Device type column in the End Point list gathers the affected devices quickly.
A shipped Blueprint is deleted the same way; the confirmation says it is not created again on the next start.