How to manage gateways: the gateway home
Wiki: Setup, edge and devices
When to use this
You need telemetry flowing from the floor into Spall, claim a gateway, connect a machine to it, watch its
health, push configuration, and (if you have the access) pin it to a signed release. Gateways (/gateways)
is where you do all of this. Fleet health, assembled configuration, and commissioning checks live on
the list or as tabs on a gateway’s own detail page.
Steps, the gateway list
- Open Gateways (
/gateways), under Setup at the bottom of the sidebar.
- Review every gateway for the tenant at a glance: online/offline count, last-contact, and status. A gateway that has claimed a token but never actually phoned home shows a distinct “registered, never connected” state instead of “offline”, offline means it WAS live and went quiet, a different problem to chase.
- To onboard a brand-new physical device, click Claim a device to mint a short-lived (60-minute) claim
token, then hand that token to the device (its boot-partition provisioning file, or the on-device
:8080setup console) so it enrolls itself. There is no “add a gateway” form, the only way a gateway comes to exist is a device enrolling with a claim token. This step is admin/super_admin only. - Replace device swaps a dead unit’s identity onto a new one without losing its history/config. Delete gateway is permanent and removes everything it owns in one shot, its sources and their tag configuration, broker credentials, command history, and rollout membership. If it heartbeated in roughly the last 10 minutes, delete is blocked with an “this device appears alive” confirm you have to accept explicitly.
- Click a gateway’s name to open its detail page, five tabs: Status, Sources & tags, Config, Network, Lights.
Steps, a gateway’s detail tabs
- Status: reported build/version, last-seen, and (admin+) the controls that matter day to day, Pin a target release via the “Update this gateway…” dropdown (only lists published, signed releases,
never free text, see How to verify signed edge-agent releases),
Fetch diagnostics, Reboot now / schedule a reboot, and set its data budget (MB/day). If a staged
rollout is currently targeting this gateway, an “in rollout: vX stage N” note appears next to the
dropdown and the dropdown grays out, that rollout owns the pin until it finishes or is rolled back, see
How to roll out a gateway update in stages. If the
gateway’s clock has drifted out of sync with real time, an amber “clock unsynced” chip appears here with
how long it’s been that way, a drifting clock mistimes everything the gateway records, so treat
this as worth fixing promptly (check its network connection and time-server settings on the device’s own
setup console). Nothing shows here at all when the clock is fine.
If the cloud refused readings from this gateway, for example because they had no timestamp or a timestamp
before 2000 or more than 24 hours in the future, an amber chip states how many were refused and why. The rest of the batch is stored. Readings
stamped while the clock was unsynced are stored and counted in a second chip. Neither chip shows when there
is nothing to report.
After pinning a release, a quiet “Updating to vX…” chip shows while the gateway is applying it, no
action needed. If the update can’t complete, the chip turns red and states the gateway’s own reason in
plain language, for example a staged file going missing before it could apply, so you know what actually
happened instead of a generic failure message. The gateway retries a failing update a few times on its
own. If it still can’t complete, it stops trying and the chip says it gave up, with the last real error,
so it isn’t burning cycles on an update that can’t stick. Pinning a different release starts a fresh
attempt and clears the old failure. To try the same release again, clear the pinned version first, then
pin it again, that grants the gateway a fresh set of attempts. A disk usage chip appears once a gateway is running low on
storage, amber when it’s getting full, red when it’s nearly full, worth checking before pinning an update,
since a full disk is a common reason one fails partway through.

- Sources & tags: every data source wired to this gateway, and, from here, Connect a machine, the
wizard that adds a new one. Each source shows two separate badges: Enabled/Disabled (whether you’ve
turned it on) and, right next to it, its live poll health, Polling (green, with how long ago the last
successful read was), Failing (red, with the actual connection error, wrong IP, device off, wrong
network cable) or Waiting for first poll (a source you just added, before its first read has happened
yet). A source can be Enabled and Failing at the same time, that combination is exactly what tells you a
configured machine has gone unreachable.
Name the machine and pick its protocol. Each protocol appears once in the list. Then choose where the
machine goes: Attach to an existing location and pick one, or Create a new machine, which uses the
name you typed and asks where in the plant it belongs. Nothing is picked for you, so Next waits until
you choose. Test the connection, then configure its tags one
of four ways: start from a template (pre-filled tag list for a common machine type), import a CSV
(checked row-by-row with a preview before anything is created), add tags manually, or run the opt-in
Discover tags assist, which browses the machine’s own address space. Today that only works for OPC-UA,
every other protocol, including EtherNet/IP and Modbus, shows the option disabled with no browseable
address space to explore. Every tag becomes a measurement on the node you attach the machine to.
After Create machine (and Push config now), Next opens the last step, What are these?: each
tag with its address, latest value, a trace of the last hour and, once it has enough readings, a
Suggested meaning with its reason. Accept a suggestion, Accept all suggested, or pick a meaning
with the buttons or the More… list. Tags that have not reported yet sit under No data yet, and the
list checks for new values every 10 seconds. Below the list, Run signal and Part count show what the
machine now knows, and Go to the machine opens its page with its availability and inputs. A tag
you leave without a meaning waits in the Measurement inbox. See
How to manage measurements for what happens after.
Click into a source to see its tag list. Each row shows the tag’s address, type, scale and health, with
the measurement it feeds under its name. Health says why: Healthy, No recent readings, Stuck
value, Spike or No readings yet, each with a sentence on what the gateway saw. For a number tag
on a PLC or Modbus device, the width the gateway reads sits under the type, for example “16-bit unsigned,
default”. Default means the protocol’s usual width, which the gateway uses until you choose another.
For a Modbus source, the address is the register number on the wire, which counts from 0, and the
gateway reads holding registers. Manuals number registers in different ways. A manual that starts at 1
lists the first holding register as 1, and one that uses the long form lists it as 40001. Both mean
address 0 here, so the register a manual lists as 40002 is address 1. A value that connects but comes
from the neighboring register, or from none at all, is usually this offset. Check the manual’s
numbering before you change the type or the scale.
The arrow at the end of a row opens its other fields: Send, unit, notes and, for protocols that have
them, reading options such as the value’s Width. The width list shows only the widths that protocol
can read. On Allen-Bradley Micro800 and Omron sources, a width you set is checked against the type the
controller reports, and a mismatch shows as an error on the tag. Send sets what the gateway sends
for the tag. Every change sends each new value. Reduced sends a value once it moves more than the
deadband you enter, and at least every 5 minutes. Local only keeps the reading on the gateway for a
calculated measurement that runs there: the gateway reads the tag and feeds every reading to the formula,
but the raw value is not sent or stored, so the tag’s trend stops when you choose it and earlier readings
are kept. Local only can be chosen only while a formula on the same gateway uses the tag, and never for a
machine’s run signal, part count, rejects, cycle time or energy. If a local-only tag later becomes one of
those, the gateway sends its readings again and the row says why. Choosing a different measurement for that
input makes it local only again. The row shows Local only under the
tag and names the formulas that use it. A failed read of a local-only tag still reaches the cloud, so its
measurement shows the bad reading. A gateway on an agent older than 0.2.45 keeps sending every change, and
the row says the setting takes effect after the gateway updates. A tag’s meaning (run / stop signal,
part counter and so on) is set on the measurement, from the Measurements page or the
Measurement inbox.
Next to Enabled the source shows its poll health. When the gateway does not report a poll status for
the source but its tags are sending readings, it shows Receiving data with how many tags are reporting.
Under Advanced on the source page are three settings most machines never change. Report by
exception sends a tag’s value when it changes and at least every 5 minutes. Turn it off only if the
machine needs every reading. Network interface picks which gateway port reaches the machine, for a
gateway with more than one network connection. Push config sends the gateway its saved settings, since
saved changes reach the gateway only when you push.
A CSV Folder Watch source has a Timezone field for files whose times carry no zone. Leave it blank
to read them in the site’s timezone, and a note under the field names the zone in use. Enter a name such
as America/New_York to use a different one, and a name Spall does not recognise is refused when you save.
An MQTT (third-party broker) source has Treat a value as stale after (seconds). Leave it blank
and the last value stays until the broker disconnects. Set it for a machine that publishes on a fixed
schedule, and a value older than that is not recorded. Each of its tags has a Timestamp path for
messages that carry their own time, and blank uses the time the message arrived. Both settings take
effect once the gateway runs agent 0.2.44 or later, and the source page says so while it is older.
To rename a tag, change its name in the Tag column and click Save tags. The measurement it feeds,
its meaning and its recorded history stay as they were. Only the name the gateway reads changes. Push the configuration
afterwards so the gateway starts reporting under the new id. Deleting a tag removes its measurement.
To move a machine to a different gateway, click Move… next to the gateway name on the source page and
pick the new gateway. The source keeps its tags, measurements and history. Push the configuration to both
gateways afterwards so the old one stops polling the machine and the new one starts. Tag health on the new
gateway includes the readings taken before the move. - Config: a read preview of the gateway’s assembled configuration (every source and tag it’s been told to
poll) plus Push to send it live, the UI reflects whether the edge agent actually picked it up. Below
that, Site survey mode lets you (admin/super_admin) temporarily turn on the gateway’s own local survey
console for an expansion survey at an existing site, without touching anything already running in
production. Click Arm survey mode…, pick a duration (24 hours by default, anywhere from 1 to 72),
and confirm, a banner then shows at the top of the gateway’s page on every tab for as long as it stays
armed, stating exactly until when and who armed it, so the capability is never on without a visible sign. Disarm turns
it back off early at any time, or just let the window run out on its own. If the gateway is offline when
you arm it, the banner says so plainly, the request is queued and takes effect once the gateway reconnects,
it is never shown as already active.

- Network: the device’s own self-reported network state, wired (
eth0 · 10.0.0.225 · default) or cellular (LTE ATT ▂▄▆ −71 dBm, shown only when a modem is detected), plus an amber “fallback path” badge if the default route has fallen off wired onto wifi/cellular. Use this tab first when troubleshooting an offline or cellular-failover device, see Troubleshooting: device offline or on cellular.
- Lights: any machine lights (bare relay beacon or a supported USB tower) configured on this gateway, each colored segment (red/amber/green/buzzer for a tower) showing a quiet status chip with its last-reported value and how long ago that was, “Not yet reported” until the gateway’s first check-in after you bind one. Plug in a supported USB tower and this tab offers to set it up on its own port. See How to set up a machine light for wiring one to an asset.
Notes
- Claim tokens are short-lived by design, mint one right before you need it, not in advance.
- Pin/reboot/diagnostics/budget controls are admin/super_admin only. A lower-role user sees them disabled with “Requires admin access, ask your administrator” instead of hidden outright, so the capability is discoverable even if you can’t use it yet.
- The network status line reports on the same heartbeat as the rest of the gateway’s health data, not real-time, expect it to lag a live outage by up to one heartbeat interval.
- A template’s calculated measurements (like a parts-per-hour rate) aren’t wired up by the wizard itself, add them afterward in Measurements via the script editor.
- Pinning a gateway to a specific signed release happens on this page’s own Status tab, not on the Releases (“Software”) page, Releases is where you verify a build is signed, this page is where you apply it to a device.