flownexus-lwm2m / flownexus

IoT server with LwM2M support
https://flownexus-lwm2m.github.io/flownexus
Apache License 2.0
3 stars 2 forks source link

Simulation: Add endpoint simulation #49

Closed jonas-rem closed 4 months ago

jonas-rem commented 4 months ago

This commit adds the script simulate.py to build and run simulated Zephyr endpoints on a host PC. The endpoints can connect to a cloud or to a locally running flownexus instance.

Preliminary performance measures:

Draft until the following points are implemented:

jonas-rem commented 4 months ago

@Kappuccino111 Just updated the simulation. It now handles the virtual network devices and the Zephyr endpoints in a Container for interoperability.

Check by executing the simulate.py script

python3 simulate.py --help
usage: simulate.py [-h] [-n NUM_CLIENTS] [-v] [-b] [-r] [-d DELAY] [-l]

Zephyr Build and Run Script

options:
  -h, --help      show this help message and exit
  -n NUM_CLIENTS  Number of client instances to start. (1 - 254) (default: 1)
  -v              Enable logging (default: False)
  -b              Build the client (default: False)
  -r              Run the client. (default: False)
  -d DELAY        Client start delay [ms] (default: 0)
  -l              Connect to locally running Leshan server (default: False)