HotLoop Edge
HotLoop IoT plus what a box at the machine needs.
Category: HotLoop
Current release: HotLoop 4.21.1, built for amd64 and arm64. It carries 4.21.0's changes, and the release notes list every version.
HotLoop Edge does everything HotLoop IoT does, and adds two things for a box that sits next to the equipment with an uplink that is allowed to die: an OPC UA server, so a SCADA package or an HMI can read the box's tags, and Sparkplug B edge publishing with store and forward, so readings queue on disk while the uplink is down and go out in order when it returns, up to the queue's limit (see How long an outage it holds).
What it does
- Everything in HotLoop IoT: every HotLoop driver, entities, automations, scripts, the logbook, notifications, MCP, MQTT with discovery, ISA-18.2 alarms and backups.
- Serves the box's tags over OPC UA to anything that reads OPC UA. Clients sign in
with a user name and password of up to 72 bytes, or, from 4.21, with a
certificate an admin attached to a user. The deprecated
Basic128Rsa15andBasic256policies are off unless they are turned on for a legacy client. - Publishes to a Sparkplug B broker and buffers on disk while the link is down, then forwards what it kept.
- Keeps history in TimescaleDB (the default), plain PostgreSQL, or a SQLite file.
- Runs on amd64, arm64 and 32-bit arm.
How long an outage it holds
The disk queue has a limit, so how long an outage it can hold depends on how fast readings arrive. The default is 64 MiB, which holds about 248,000 readings. We measured that on HotLoop Edge 4.21.1 with nine-character tag names, where a reading costs about 240 bytes in the queue. At 2,000 readings a second it filled in about two minutes. The time grows as the rate falls: about four minutes at 1,000 readings a second, and about 41 minutes at 100. Longer tag names make each reading bigger and the time shorter, so size the queue from your own rate.
To hold more, raise the queue limit when you deploy it. Doubling it roughly doubles the time, and the storage behind the queue needs the room, because the queue never grows past the limit. Setting it to unbounded means a long enough outage fills the storage.
Past the limit, Edge drops the oldest readings first and counts every one. The
count is in the Edge's diagnostics under edgePublish, and the log reports it
once a minute while it is happening, so a gap is never silent. A power cut or
crash while the link is still up can cost the readings from about one poll that
the broker had not yet confirmed.
In our lab, EmberRTOS 0.1.6 running HotLoop Edge at 100 readings a second kept every reading through an outage of more than eleven minutes: the local history had no gap, and all 95,000 readings reached the upstream broker in order.
When to use it
Use HotLoop Edge on a machine-side box that has to keep working, and keep reporting, when the link to the site drops. If the box only needs to read and forward, with no database or web interface, the HotLoop Edge Relay is smaller. If it only needs the automation base, use HotLoop IoT. For fleet management, multi-site roll-ups and scheduled reports, use the HotLoop Gateway.
Running on EmberNet
- HotLoop Edge deploys as a single instance per node.
- The OPC UA server and Sparkplug edge publishing are both off by default. Turn them on when you deploy: edge publishing needs the broker address and a Sparkplug group id.
- With the default database, TimescaleDB runs alongside it. Choose SQLite and there is no separate database.
- Device passwords are encrypted at rest with a key generated for your install and kept across upgrades. That key is part of your data: back it up somewhere other than next to your backups.
- Edge publishing needs a broker both ends can reach. Mosquitto is in the App Store if you don't have one.
Licensing
HotLoop Edge is under the EmberNet Source License 1.0, like every HotLoop product. You can copy, modify, and redistribute it, and any non-production use is allowed. Production use is allowed three ways: at home or in a lab, by schools, nonprofits, and government bodies for their own mission, and anything run through EmberNet, business use included, where signing up is free. A systems integrator can run it under its own EmberNet account for a customer and charge for its services, never for the software. Each version becomes available under AGPL-3.0-or-later four years after it's first made public. See the license and Using HotLoop in a business. There's no license key.
Learn more
- HotLoop Edge documentation
- Install Edge
- HotLoop Edge on hotloop.io
- Using HotLoop in a business
- Release notes and the license