You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's a bit hard to trigger, but were able to reproduce this with a custom OSMP sensor based on the OSMPDummySensor example:
FMI/OSMP setup including SensorViewConfigurationRequest
FMI variables are read one-by-one by the simulation environment, so GetInteger is called multiple times.
Code here triggers regeneration of SensorViewConfigurationRequest request for each read
Due to the buffer swapping in 3. (via {refresh,set}_fmi_sensor_view_config_request), the values for SensorViewConfigurationRequest FMI variables (hi, lo and size) might be out of sync. We had the situation that the hi part was different for both buffers, leading to an invalid buffer address being communicated over FMI
Ask your question
Is there a restriction on how OSMP FMI variables have to be read (i.e. do the have to be read by a single call to GetInteger or is it ok to read each one individually)?
Should the need_refresh mechanism be restructured?
Is double-buffering even necessary for the SensorViewConfigurationRequest? According to according to OSMP doc communication of this message is restricted to the initialization mode anyway.
The text was updated successfully, but these errors were encountered:
Describe the problem
It's a bit hard to trigger, but were able to reproduce this with a custom OSMP sensor based on the
OSMPDummySensor
example:SensorViewConfigurationRequest
GetInteger
is called multiple times.SensorViewConfigurationRequest
request for each readAsk your question
GetInteger
or is it ok to read each one individually)?need_refresh
mechanism be restructured?SensorViewConfigurationRequest
? According to according to OSMP doc communication of this message is restricted to the initialization mode anyway.The text was updated successfully, but these errors were encountered: