Skip to content

[TST] Test Communication Stability (BT/Wi-Fi) #54

@Hisham4Ahmed

Description

@Hisham4Ahmed

📌 Summary

We need to validate the reliability and stability of communication between the Smart Energy Meter and external devices over Bluetooth and (if available) Wi-Fi .

The goal is to ensure that data transfer (measurements, logs, commands) works consistently under different conditions.


🎯 Goal / Deliverable

  • Verify stable UART-Bluetooth communication with the mobile app.
  • Test packet delivery, ordering, and latency.
  • Check resilience under continuous data streaming (real-time monitoring).
  • Validate reconnection after disconnection or interference.
  • If Wi-Fi is enabled in system extension → ensure same stability tests apply.

🛠️ Steps to Implement

  1. Connect device to Mobile App via Bluetooth.
  2. Perform different tests:
    • Short bursts : Send single-frame commands and responses.
    • Continuous stream : Send measurement updates at fixed interval (e.g., every 1s).
    • Stress test : High-frequency updates (50–100ms).
    • Interference : Disconnect Bluetooth and reconnect.
  3. If Wi-Fi module is integrated, repeat the same tests over Wi-Fi.
  4. Measure:
    • Packet loss rate .
    • Average latency .
    • Reconnection time .

✅ Acceptance Criteria

  • No packet loss in normal update rate (1s interval).
  • ≤5% packet loss under stress test .
  • Average latency ≤200 ms (BT), ≤100 ms (Wi-Fi).
  • System recovers gracefully after disconnection without manual reset.

📐 Definition of Done (DoD)

  • Communication tested for both Bluetooth and Wi-Fi (if present).
  • Logs collected with packet counters to verify loss rate.
  • Reconnection scenarios validated.
  • Test results documented under /docs/testing/phase5/.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions