Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Question] Will this standard provide some kind of integration with modelica languages? #240

Open
dhombios opened this issue Feb 18, 2025 · 5 comments
Assignees
Labels
question Further information is requested

Comments

@dhombios
Copy link

I'm currently trying to simulate a sensor that sends its measurements through Ethernet in modelica for testing its potential for using HIl simulations for validating the system in which it will be integrated. The idea is to export the model as a FMU that could be integrated in a testbench for that device. As a consequence, we're considering 2 options:

  • Implementing just the physical model of the sensor in modelica and making a wrapper for the FMU that translates its output variables to the messages expected by the device
  • Generating the messages within the FMU, which would require implementing the required basic elements in modelica for simulating a communication network

The second approach could simplify integrating this model with the ones used for validating other subsystems of the device. However, modelica doesn't currently allow to implement variable length arrays (required for dynamically adjusting the buffer size).

I was thinking on solving that by defining a big enough fixed buffer size, but then I found this layered standard.

How will fmi-ls-bus be integrated in modelica environment?

Will a buffer primitive be added to the standard library or to the language itself for allowing to develop these bus fmus using modelica itself? (Buffers are also important for agent based simulations, so that addition could allow using modelica for more types of simulation, which would be interesting)

Will fmus developed using this layered standard require new tools or will it be possible to integrate them in existing ssp environments?

@bmenne-dspace bmenne-dspace added the question Further information is requested label Feb 25, 2025
@bmenne-dspace
Copy link
Contributor

Thank you for your question @dhombios. We are very pleased that you are interested in the FMI-LS-BUS. From my perspective, option 2 looks like a more native implementation from the FMI-LS-BUS perspective. Of course, this varies hardly depending on your specific application and does not make option 1 a bad option. I think the FMI-LS-BUS can be used in both cases.

There is an issue regarding the support of the bus topic in SSP (see modelica/ssp-standard#56). I think @klausschuch and @pmai can help in detail here, because they actively working on the SSP standard.

Unfortunately, I cannot answer questions regarding the Modelica environment itself. Can you perhaps put @dhombios in touch with the relevant people here @chrbertsch?

@chrbertsch
Copy link
Collaborator

@dhombios : Do you want to simulate Ethernet traffic, or connect to a real Ethernet interface?
In the first case FMI-LS-BUS is suitable, in the second case you should look into somthing like https://github.com/modelica-3rdparty/Modelica_DeviceDrivers

How will fmi-ls-bus be integrated in modelica environment?
Generation of FMI-LS-BUS FMUs is to my knowledge not (yet) supported by any Modelica tools.
But as any other FMI 3.0 supporting tools they could simulate Simulation-Setups based on FMI-LS-BUS once they support the necessary FMI3.0 features (such as binary variables for the low cut), especially for high-cut, direct connections and with a bus-simulation FMU, see our presentation "The functional mock-up interface (FMI), layered standards and ASAM standards - Enabling seamless SiL simulation of V-ECUs (Slides)(Video)"

@dhombios
Copy link
Author

We want to simulate ethernet traffic through an FMI interface to use it from a simulator that is normally connected to a real ethernet interface

@dhombios : Do you want to simulate Ethernet traffic, or connect to a real Ethernet interface?
In the first case FMI-LS-BUS is suitable, in the second case you should look into somthing like https://github.com/modelica-3rdparty/Modelica_DeviceDrivers

How will fmi-ls-bus be integrated in modelica environment?
Generation of FMI-LS-BUS FMUs is to my knowledge not (yet) supported by any Modelica tools.
But as any other FMI 3.0 supporting tools they could simulate Simulation-Setups based on FMI-LS-BUS once they support the necessary FMI3.0 features (such as binary variables for the low cut), especially for high-cut, direct connections and with a bus-simulation FMU, see our presentation "The functional mock-up interface (FMI), layered standards and ASAM standards - Enabling seamless SiL simulation of V-ECUs (Slides)(Video)"

@dhombios
Copy link
Author

Thanks @bmenne-dspace and @chrbertsch . FMI-LS-BUS seems a really interesting addition to modelica and SSP environments, so we prefer using it over other alternatives to ensure compatibility of our software with other tools

@bmenne-dspace
Copy link
Contributor

bmenne-dspace commented Feb 27, 2025

@chrbertsch shall we activate the "Discussion tab" for the FMI-LS-BUS repo? So users can use that functionality to ask questions and need not to open issues.

Image

@bmenne-dspace bmenne-dspace self-assigned this Feb 27, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants