๐ŸŽฎ

EoSim

Simulation Environment

Full hardware-software simulation environment for the EmbeddedOS ecosystem. Test firmware on virtual hardware before physical deployment.

Development & OperationsC/C++, PythonActive Development

Key Features

Hardware Emulation โ€” CPU, peripherals, sensors
Sensor Simulation โ€” Inject synthetic sensor data
Network Simulation โ€” Virtual network topologies
Fault Injection โ€” Test error handling and recovery
Timeline Recording โ€” Record and replay execution
CI Integration โ€” Headless simulation for testing
EoStudio Integration โ€” Debug with IDE

Architecture

EoStudio IDE Integration
โ”œโ”€โ”€ Simulation Manager
โ”œโ”€โ”€ Virtual Hardware (CPU, Peripherals, Sensors)
โ”œโ”€โ”€ Network Simulation
โ”œโ”€โ”€ Fault Injection Engine
โ””โ”€โ”€ Timeline Recorder

Code Example

python

from eosim import Simulator, VirtualBoard

sim = Simulator()
board = VirtualBoard("nrf52840_custom")

board.load_firmware("build/eHealth365.elf")
board.attach_sensor("ppg", pattern="heartbeat_72bpm")
board.attach_sensor("imu", pattern="walking")

sim.run(duration_seconds=60)
print(sim.get_coverage_report())
print(sim.get_power_profile())

API Highlights

FunctionDescription
Simulator()Create simulation instance
VirtualBoard()Create virtual hardware board
board.load_firmware()Load firmware binary
sim.run()Run simulation