Knowledge Hub

Factora Academy

Knowledge Hub · Courses · IoT.Factora · Technology · 18 min

Factora IoT Infrastructure Guide

Plain-language map of the platform, plus the downloadable infrastructure guide.

Introduction

What this covers

A plain-language map of the four layers of the platform, and where to download the full infrastructure guide.

Why it matters on the floor

Sales and plant staff who mix up the gateway, the server, and the app promise fixes in the wrong place.

By the end you can

  • Describe the sensor, gateway, cloud server, and web app layers in one sentence each
  • Trace how one cold-room reading reaches the dashboard
  • Know which lessons to read next before connecting a factory

About 18 minutes. Prerequisites: None. This is the starting point for the technology track.

Factora IoT Infrastructure Guide

This lesson is the short version of the Factora IoT Infrastructure Guide. The full document is a PDF you can keep:

Download the Factora IoT Infrastructure Guide (PDF)

The guide explains each piece the same way: what it is, why we use it, and how it is set up. It does not contain passwords. Hardware is not named, because no gateway or sensor brand has been chosen.

Engineers who will connect a factory should continue with Factora IoT technology setup and How to set up a new factory.

Four layers

  1. A sensor on the factory floor measures something and sends a short radio message.
  2. A gateway at the factory hears that message and forwards it over the internet.
  3. The cloud server checks, decodes, and stores the message.
  4. The web app shows dashboards and raises alerts.

The journey of one reading

A reading such as a cold-room temperature is meant to reach the database in a few seconds.

  1. The sensor wakes, measures, encrypts the payload, and transmits on the EU868 LoRaWAN band.
  2. Any gateway in range adds the time, signal strength, and signal quality. It cannot read the encrypted payload.
  3. The gateway keeps one outbound TLS connection open to wss://lns.factoraiot.com:3001 using LoRa Basics Station. The factory does not open an inbound port.
  4. The gateway bridge checks the gateway and publishes the packet to Mosquitto.
  5. ChirpStack v4 (EU868 only) checks the message, drops duplicates and replays, decrypts it, and runs the codec for that device profile.
  6. ChirpStack publishes JSON on application/<application id>/device/<DevEUI>/event/up.
  7. The Factora worker MQTT connector subscribes to that factory's application topic, maps the message to a device, and writes a Reading row in PostgreSQL.
  8. Alert rules run on that reading. Dashboards read the database.

Steps 1 to 6 run in the LoRaWAN stack. Steps 7 and 8 run in the Factora worker (src/lib/connector-runtime.ts) and the web app. The first live factory connector is still a setup task: the code is ready, and no production gateway is registered yet.

Meters that are already on the internet can skip LoRaWAN. They can use the HTTP ingest API, or the built-in MQTT broker, which listens only on the server loopback address, port 1883.

The parts

PartJobWhere it runs
SensorsMeasure and transmit by radioFactory floor
LoRaWAN gatewayRelay radio packetsFactory
Basics Station bridgeReceive gateways on port 3001LoRaWAN project
ChirpStack v4Join, check, decrypt, decodeLoRaWAN project
MosquittoMQTT broker between those parts and FactoraLoRaWAN project, internal only
Factora workerSubscribe, store readings, check alertsFactora project
PostgreSQLFactories, devices, readings, alerts, usersTwo separate databases
Next.js appDashboards, alerts, settings, ops consoleFactora project
CaddyHTTPS, host routing, admin allowlistsFactora project

Web addresses:

AddressWho it is for
iot.factoraerp.comFactory staff, with a login
admin.factoraiot.comOps console. Password and authenticator code (MFA)
lns.factoraiot.comChirpStack admin screens. Office network. Gateways use port 3001, not the web screen
factoraacademy.factoraerp.comThis academy

Other products can share the same machine. They use their own databases.

How a factory is kept separate

One ChirpStack tenant, one Mosquitto user, and one Factora company belong to the same factory. Every Factora row that matters carries that company's id. A plant user can see only that factory. Platform staff use the ops console.

What is already running, and what is still ahead

The Factora app, the worker, PostgreSQL, and Caddy are live. ChirpStack, the Basics Station bridge, Mosquitto, and the EU868 region are installed. No production gateway or sensor is registered yet, and the first factory's MQTT connector in Factora has not been created. Backups of the Factora database run on a schedule. The ChirpStack database is not in that nightly job yet.

The rest of this academy stays on the tasks a person does in the product. The PDF is the place for server layout, backups, and capacity.

Create a free account or log in to save this lesson on your progress.

Check understanding

Progress is stored in this browser until you log in. Passing is 70%.

1. Where does a factory gateway open its Basics Station connection?
2. After ChirpStack decodes an uplink, which MQTT topic carries it?
3. The infrastructure guide names the sensor brand to buy.