Luos-io / luos_engine

Open-source and real-time orchestrator for cyber-physical-systems, to easily design, test and deploy embedded applications and digital twins.
https://www.luos.io
MIT License
515 stars 54 forks source link

[BUG] At startup, unwanted pulse on PTP line crashes the network #180

Open JeromeGalan opened 2 years ago

JeromeGalan commented 2 years ago

Describe the bug

salae In the picture above, network haven't crashed thanks to a new detection asked by the user. Without this detection, you're dead...

Network configuration

How to reproduce the bug Power on the STM32 and then hotplug the L0 board.

Additional context Soft should more robust to such events. Maybe you should add a filter on PTP machine state.

nicolas-rabault commented 2 years ago

Normally a good PTP switch should switch only after a reset_detection modifying the detection state to detection running or something. Perhaps we could filter the PTP switch depending on the detection state.