Embedded Systems StudioIoT Programming and ApplicationsExperimentsWorkspaces
PSUT ENGINEERING STUDIO · V21.2
Research and engineering evidence

Advanced engineering co-simulation

Dr. Mohammad Alja’afreh · Princess Sumaya University for Technology

Investigate congestion, retransmissions, battery depletion, sensor uncertainty and digital twin synchronization.

01 · Experimental design

Virtual discrete-event model; not a physical radio or MQTT protocol implementation. A single FIFO server processes packets, with a bounded waiting queue excluding the in-service packet. Radio loss is independently sampled per completed service. Retries use fixed backoff and stop at the sampling boundary. All in-flight messages drain. Sensor noise is uniform within the selected bound. The battery model uses 3.3 V, 0.3 W idle, 0.02 J sensing and 0.15 J per transmission attempt (including rejected queue admission); these are adjustable study assumptions in the engine, not hardware measurements.

02 · System performance

Virtual ESP32 sensors → bounded FIFO gateway → lossy link → timestamp-aware digital twin

Queue utilization and twin coverage

Blue: waiting queue / capacity. Green: fraction of devices with a twin reading. Horizontal axis: 0 to sampling-window end; vertical axis: 0–100%.

DeviceTrue temperature °CTwin °CAge msBattery %

03 · Controlled comparison

Change one parameter, rerun, then compare against the saved baseline. A fixed seed reproduces identical configurations but changing the event sequence may change random draws.

MetricBaselineCurrentDifference

04 · Diagnostics and evidence

Time msEventMessageWaiting queue

Last 150 trace events shown; JSON contains all events, messages, outcomes, source timestamps and snapshots. Timeline samples are taken each virtual second during the sampling window.

05 · Experimental investigations

  1. Baseline: verify generated = delivered + failed and zero loss under low load.
  2. Congestion: compare offered rate N / sampling period with service rate 1000 / service time. Explain queue overflow.
  3. Retransmission: compare no retries versus three retries under 30% loss. Discuss energy and latency tradeoffs.
  4. Sensor uncertainty: increase error bound; compare sensor RMSE with twin RMSE, which includes staleness.
  5. Battery: run the depletion preset; explain why later samples fail.
  6. Synchronization: increase propagation delay; inspect source timestamps and stale updates. Explain age of information.

Continue with Unified connected laboratory, Multi-device engineering twin or Python / Colab notebooks.