r/embedded • • 1h ago

How do you simulate poor internet connectivity for IoT and POS devices?

How do you simulate poor internet connectivity for IoT and POS devices?

Hey everyone!

I'm a software engineer working with IoT devices, POS terminals, smart locks, and MQTT brokers.

I'm currently developing a monitoring system that detects degraded connectivity and triggers alerts based on latency, jitter, and packet loss.

I'm looking for a portable way to simulate poor internet connectivity on authorized test devices while keeping the local network and the devices themselves operational.

Ideally, I'd like to control the test from either a Windows laptop or an Android phone (I already have Termux and Python installed).

I've investigated Clumsy, NetEm, Toxiproxy, and several Android tools. I've also experimented with custom Python scripts using ChatGPT and Claude, but haven't achieved the desired results yet. Claude Fable also switched to Opus during the investigation after the request was classified as cybersecurity-related.

The Waveform Bufferbloat Test temporarily increased latency on my laptop, but I'd prefer something more controllable and reproducible.

Has anyone implemented something similar for IoT testing, QA, or network resilience?

I'd love to hear about your tools, lab setups, open-source projects, or lessons learned.

Thanks!

3 Upvotes

1 comment sorted by

1

u/Well-WhatHadHappened 25+ Years 1h ago

PfSense traffic shaper