modelica / dcp-standard

Specification of the Distributed Co-Simulation Protocol (DCP)
https://www.dcp-standard.org
14 stars 3 forks source link

Simulation start in Softrealtime and Hardrealtime Mode #1

Closed dev-gb closed 3 years ago

dev-gb commented 5 years ago

Had some troubles while sending the STC_run pdu to slaves. Since the starting time of master and slaves are not synchronized by the standard the simulation starts at an undefined time.

would be great if the time could be set by the master or read via a PDU. At the moment, the example DcpSlave implementation prohibits the test execution if the master clock is in front of the other. So the simulation can never be started at a specific point in time.

Would be better if the start_time was defined as seconds until the start of the simulation.

debuti commented 5 years ago

"Proper clock synchronization techniques have to be performed before starting the simulation (PTP, NTP, ..)" although applicable to most of the situations where OSs or middlewares are present, this issue is an impediment for barebone systems with no clock management facilities. Moreover, some clock drifts may appear under long simulations and they need to be taken into account.

martinkrammer commented 3 years ago
martinkrammer commented 3 years ago

No change in specification needed, as polled in meeting.