Skip to content
PSUT / IoTEngineering learning studio
WORKSPACE
Offline-first portalDr. Mohammad Alja’afreh
Intelligent Edge StudioMachine Learning and Edge AIExperimentsWorkspaces
ENGINEERING WORKSPACE
Home/Engineering Workspaces/Integrated IoT System Studio
PSUT IoT Engineering StudioPrincess Sumaya University for Technology · Dr. Mohammad Alja’afreh
Integrated IoT engineering
Supporting engineering workspace

Connect. Observe. Diagnose.

Follow telemetry across the complete system, isolate faults and compare independently recorded evidence.

V18.1 · Networked IoT Digital Twin

Build a virtual IoT fleet

Connect up to eight modeled ESP32 devices to a Raspberry Pi gateway, investigate network faults, compare control placement and export repeatable evidence.

Open networked digital twin →
Loading live engineering instrument…

Live investigation · step-by-step

  1. Start with online broker and storage, a 2 s sample interval and a 4 s dashboard refresh. Advance 20 simulated seconds.
  2. Change temperature and humidity while running. Compare current sensor values, last stored record and displayed record; note the refresh lag.
  3. Disable the broker path and then restore it. Record queue overflow and later deliveries; repeat with storage unavailable instead.
  4. Verify generated = stored + dropped + queued at the observation boundary. Compare dashboard age and fan state, export evidence and repeat in the existing connected studio if services are available.

Evidence: retain your prediction, configuration, observations and exported event history; distinguish calculated teaching-model results from physical measurements.

Integrated system · deterministic browser model

Build a system, not just a component

Follow individual greenhouse telemetry samples from modeled ESP32 sensors through a Raspberry Pi gateway, MQTT broker and two independent consumers. Node-RED handles live flow and a teaching fan policy; Telegraf stores mapped fields in InfluxDB, and Grafana queries stored points. The real P43 firmware can publish directly to MQTT; the gateway is an optional integration design in this model, not a claim that P43 already implements it.

Configuration changes to nodes, interval, delay or capacity reset the model. Scenario and fault changes apply to subsequent stages as they execute. No real services are modified. Diagram badges show the last observation at each stage, not continuous health.

Independent consumer branches

Live flow vs stored history

Node-RED · latest fan policy

Policy: temperature strictly above 30°C → FAN_ON. The model holds the last decision if messages stop; this is not a real actuator safety design.

Grafana · last query snapshot

Traceable evidence

Packet lifecycle inspector

Payload and topic

Observed model stages

Engineering notebook · Verification Center
Scientific procedure

Four controlled integration experiments

  1. Baseline. Reset, select two nodes, interval 2, delay 1, capacity 4, normal greenhouse and no fault. Advance 10 ticks. Expected: generated 10, accepted/stored 10, Node-RED delivered 10; Grafana refreshes every third tick, so the last displayed snapshot can lag.
  2. Independent consumers. Continue with Node-RED stopped for 10 ticks. Expected: the live flow count stops increasing; stored count increases. Restore none and advance 10; both increase again.
  3. Storage and stale visualization. Reset to baseline; then choose storage write rejected for 10 ticks. Expected: broker and Node-RED counts increase while stored count stops. Restore none. Next select Grafana query unavailable: storage continues, displayed snapshot stays unchanged. Restore none; after a query refresh the latest stored points appear.
  4. Capacity and recovery. Reset using eight nodes, interval 1, delay 3 and capacity 1. Advance 10 ticks. Expected: queue drops increase. Compare against one node, interval 5, delay 1, capacity 4 after reset. Record generated, accepted, pending and loss counts. Explain the trade-off; do not infer real network throughput.

Every model tick uses the same deterministic rules. Stage failures do not replay lost messages; no MQTT QoS retransmission or persistence is simulated. The dashboard shows a bounded history (60 stored points), not a lifetime delivery counter.

Connected execution · actual observations only

Connect the real Wokwi / WSL pipeline

Use the existing scoped MQTT receiver and the independent InfluxDB read-only preview. These run as separate local helpers. The model above never reads from or controls them.

No live observations requested. Open the live companion at localhost:8760 first.

Independent actual database observation

No database query requested. Open the read-only analytics helper on port 8765.

1 · Prepare Ubuntu

Complete Ubuntu setup, then P42 and P43. In Ubuntu activate the installed environment:

source ~/psut-wsl/activate.sh
cd ~/psut-wsl/labs/python/lab43

Expected: (.venv) prompt and lab43 working directory. Follow P43 to select the local MQTT profile (127.0.0.1:1884), start Telegraf and configure the greenhouse bucket. Never publish private telemetry to a public broker.

2 · Start the receiver before publishing

In Windows, from the extracted portal, run START_LIVE_STUDIO.cmd. Open Live Telemetry on port 8760, choose Local, and start the subscription. Wait for SUBACK before publishing. Do not run two companions on port 8760.

3 · Produce five messages

In the activated P43 terminal with the documented local profile:

MQTT_BROKER=127.0.0.1 MQTT_PORT=1884 STUDENT_ID=lab-local NODE=python-sim MESSAGES=5 PERIOD=2 python device_simulator.py

Expected: five attempted publications; verify five matching fresh received messages independently. Or use the ESP32 project in P43 with its Wokwi private gateway and firmware instructions. Do not treat Wokwi as hardware.

4 · Verify Node-RED and database separately

Follow Node-RED & MQTT for the local flow and dashboard. A fresh received message is not proof of a database write. Follow P43 to query InfluxDB and P44 to verify Grafana's data source and time range.

5 · Read-only history

Use the existing Time-series Studio and its read-only preview helper (port 8765). In Ubuntu, replace the example site path with the actual extracted website directory:

python ~/psut-wsl/tools/analytics_preview.py \
  --site-root /path/to/extracted/portal \
  --session lab-local

Expected: a prompt for the bucket's read-only token, then a local server URL. Open the integrated database observation page in a second tab, or the analytics preview. The local MQTT and history helpers use different origins; each tab can query only its own helper. Select the matching node (python-sim or esp32-01). Do not paste tokens into the website. Compare actual timestamps and values; matching data alone does not prove a specific packet identity.

6 · Document & stop

Export live receiver evidence and query observations separately. Record actual provenance, then stop the subscription and foreground helpers with Ctrl+C in their own terminals. Keep the normal service setup intact. For secure transport follow Ubuntu TLS practice; the default P43 teaching path is plaintext MQTT.