Skip to content
PSUT / IoTEngineering learning studio
WORKSPACE
Offline-first portalDr. Mohammad Alja’afreh
Intelligent Edge StudioMachine Learning and Edge AIExperimentsWorkspaces
Intelligent experiment design & AI verification →
ENGINEERING WORKSPACE
Home/Engineering Workspaces/Networked IoT Digital Twin
PSUT IoT Engineering StudioPrincess Sumaya University for Technology · Dr. Mohammad Alja’afreh
V18.1 · Virtual hardware and network experiments
Networking and Communication

Networked IoT Digital Twin

V18.1 / NETWORKED VIRTUAL LABORATORY

Connected device workbench

Build a virtual ESP32 fleet, inspect its Raspberry Pi gateway and compare sensing and control under normal operation and network faults.

Offline · deterministic model

Teaching model only. The plant equations are not calibrated physical models; the MQTT-style FIFO/retry abstraction does not implement MQTT wire traffic or QoS handshakes. No real hardware or broker is contacted.

01 · Configure experiment

Configuration changes require a reset. Choose a preset, then edit the parameters and apply.

02 / LIVE SYSTEM

Virtual network topology

Link online

Ready. Each step represents one model second.

Virtual device state

Solid line: physical proxy temperature. Dashed line: last delivered sensor value, held until a newer sample arrives. The latest 120 model seconds are plotted.

03 / NETWORK ANALYSIS

Packet delivery, delay and backlog

Same horizon, device configuration and control placement; baseline removes loss, jitter, outage and sensor bias and uses a 1 s link delay. Capacity and service rate are unchanged.

Queue occupancy (solid) and in-flight messages (dashed) over the latest 120 seconds. PDR = unique received / generated, including pending messages in the denominator. P95 uses nearest rank among received packets.

Most recent packet events (up to 12)
Model timeEventIDDetail

04 / EXPERIMENTAL EVIDENCE

Export reproducible traces

JSON includes configuration, all generated message records, all per-node time-series observations, metrics, recent events and same-horizon baseline. CSVs contain one row per message or per device per second. All outputs are labelled as model-generated; no real measurements are implied.

05 / GUIDED INVESTIGATION

Four experimental challenges

T01 · Baseline and reproducibility

Use defaults, run 120 seconds, export; reset and repeat. Compare the complete packet traces and P95. Explain pending messages separately from terminal drops.

T02 · Capacity and recovery

Use 8 nodes, 1 s period, service 2/s, capacity 8, outage 20 s. Compare with capacity 64 using the same seed and horizon. Explain why increasing capacity cannot fix sustained overload.

T03 · Edge versus gateway control

Run greenhouse twice, with identical fault configuration and edge/gateway control placement. Compare time above threshold and fan activity. Identify the idealized command path and stale-output policy.

T04 · Sensor fault isolation

Set fault node 1, start 20 s, bias +10°C. Compare model state to held telemetry on nodes 1 and 2; check when the biased sample was actually delivered. Describe why a sensor bias can cause poor control even with high PDR.

Related laboratories and guidance

Run the model to receive contextual guidance.

Model contract & limitations

At each integer second, the plant advances using previous actuator states, stale gateway control expires, due packet attempts are resolved, devices sample, then queued messages are dispatched. Temperature follows T′ = clamp(T + 0.035(A−T) + h·load/100 − 0.48·fan, 0, 100). Greenhouse soil moisture follows a bounded drying/irrigation balance. Fan uses a 2°C hysteresis band; greenhouse pump turns on at ≤35% and off at ≥45%. Room humidity and industrial vibration use simplified first-order models. Sensors may report a biased temperature while the plant itself remains unbiased.

Gateway feedback applies only newer received samples within the configured age limit; command transport is idealized and immediate on receipt. Outputs turn off when the accepted sample is older than the stale limit (teaching policy only, not a universal safety recommendation). Edge feedback runs at each sampling instant. Loss is seeded per message and attempt. Retry limit counts additional attempts; requeued messages compete for FIFO capacity. The queue models messages already accepted at the gateway; ESP32-to-Pi local transport is idealized. 1–8 devices, 1–1800 seconds per run. No duplicate deliveries, encryption, MQTT acknowledgements, radio propagation, or electrical emulation.

Advanced models, scientific investigations and research tools
Digital Engineering Research Studio · V22.4

Multi-asset twins, Kalman estimation, dataset calibration and matched-seed experiments.

Open research studio →
V19.0 · Contextual AI workspace

Ask an AI about this workspace

TWIN181 · current context

Ask Dr. Mohammad locally, or prepare an experiment-aware prompt for ChatGPT, Gemini or Claude. The external providers open in their own tabs; nothing is automatically submitted.

Dr. Mohammad · offline
Dr. Mohammad

Offline curriculum-grounded assistance.

Open local tutor
Networked IoT Digital Twin

Public course objective, displayed commands, source excerpts and procedure. Private assessment content is not collected.

Prepare a contextual AI prompt

0 characters

Common secret and email patterns are redacted on preparation; this is not a comprehensive privacy filter. Review the entire editable prompt, including student work and unpublished research, before sharing. The providers apply their own accounts, privacy settings and limits.

Prepare → review → copy & open your selected provider → paste and submit there.

Loading live engineering instrument…

Live investigation · step-by-step

  1. Run the online gateway configuration for 40 simulated seconds. Record physical temperature, biased sensor reading, received report and fan state.
  2. Switch the link offline for 30 seconds without resetting. Observe the queued telemetry, report age and stale-command policy.
  3. Restore connectivity, then switch to edge control and vary the ambient heat load or sensor bias. Compare actuator behavior and report age.
  4. Reset for a controlled second run and change only the controller placement. Export histories and compare generated, received, queued and dropped records.

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

V18.2 · Visual Programming

Build, step and export your IoT program

Compose GPIO, ADC and PWM blocks, inspect three generated source targets, replay twin evidence and export a complete hardware project.

Open visual programming →
Engineering evidence

Keep your experimental records together

Export the original workspace JSON, then import it into the local evidence portfolio. Results are not certified or uploaded automatically.

Open evidence portfolio →

V19.3 · Virtual hardware engineering

Explore logical wiring, ideal instruments, closed-loop programming and packet sequence models.

Open virtual hardware laboratory →