Von English mit KI übersetzt ·
Wir haben letztes Jahr 60 Stellplätze auf einem Parkplatz eines Einkaufszentrums mit schlichtem LoRaWAN ausgestattet, und es läuft problemlos. Für einen Pilotversuch braucht man nichts Besonderes. Das haben wir aufgebaut:
Das Gateway ist ein Basics-Station-Gateway an einem Laternenmast (der alte UDP-Packet-Forwarder wird nicht unterstützt, also prüfen Sie, ob Ihrer Basics Station spricht). Sensoren wurden als OTAA-Geräte hinzugefügt. Wenn Sie 40 anlegen müssen, spart der Kopplungsmodus viel Tipparbeit, benötigt aber einen gemeinsamen AppKey im Profil, den unser Hersteller der Sensor-Pucks nicht herausgeben wollte. Deshalb haben wir alle 60 von Hand als OTAA-Geräte angelegt. Kein Vergnügen, planen Sie einen Nachmittag ein.
Der Hersteller hat nur einen JavaScript-Decoder mitgeliefert. Hermetry führt überhaupt keine Decoder-Skripte aus, Codecs sind JSON-Tabellen. Unserer war ein Layout-Frame auf FPort 2 und dauerte 15 Minuten:
{
"id": "t.bay-puck",
"title": "In-ground parking puck",
"vendor": "Example maker",
"fports": [2],
"kind": "layout",
"frames": [{ "fport": 2, "min_length": 3, "fields": [
{ "at": 0, "field": "occupied", "fmt": "u8" },
{ "at": 1, "field": "battery_mv", "fmt": "u16be" }
]}],
"tests": [{ "name": "car present", "fport": 2, "hex": "010E74", "expect": { "occupied": 1, "battery_mv": 3700 } }]
}
Senden Sie occupied als 0/1, dann können Diagramme es darstellen. Für die Karte haben wir jeden Stellplatz als Asset mit seinen Koordinaten unter einem Standort „Main Street“ angelegt und den Sensor darunter platziert. Danach eine Kartenkachel auf Status unter einem Asset. Die Farbe frei/belegt stammt vom Standortstatus.
Noch eine Sache: eine Regel „Device offline“ im Profil. Bei einem 6-Stunden-Heartbeat verwenden Sie Recent message mit Intervall 21600 und Faktor 2, sonst verstecken sich tote Pucks tagelang.
We did 60 bays for a shopping centre car park last year with plain LoRaWAN and it’s been fine. You don’t need anything special for a pilot. What we built:
Gateway is a Basics Station gateway on a lamp post (the old UDP packet forwarder is not supported, so check yours speaks Basics Station). Sensors added as OTAA devices. If you have 40 to do, pairing mode saves a lot of typing, but it needs a shared AppKey on the profile, which our puck vendor wouldn’t give us, so we added all 60 as OTAA devices by hand. Not fun, budget an afternoon.
The vendor only shipped a JavaScript decoder. Hermetry doesn’t run decoder scripts at all, codecs are JSON tables. Ours was a layout frame on FPort 2 and took 15 minutes:
{
"id": "t.bay-puck",
"title": "In-ground parking puck",
"vendor": "Example maker",
"fports": [2],
"kind": "layout",
"frames": [{ "fport": 2, "min_length": 3, "fields": [
{ "at": 0, "field": "occupied", "fmt": "u8" },
{ "at": 1, "field": "battery_mv", "fmt": "u16be" }
]}],
"tests": [{ "name": "car present", "fport": 2, "hex": "010E74", "expect": { "occupied": 1, "battery_mv": 3700 } }]
}
Send occupied as 0/1, then charts can draw it. For the map we made each bay an asset with its coordinates under a „Main Street“ site and placed the sensor under it, then a map card on Status under an asset. Free/occupied colour comes from the site status.
Last thing: a Device offline rule on the profile. With a 6 hour heartbeat, use Recent message with interval 21600 and factor 2, otherwise dead pucks hide for days.

