-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add configuration parameters to Bus Terminal definition (low-cut) #221
base: main
Are you sure you want to change the base?
Add configuration parameters to Bus Terminal definition (low-cut) #221
Conversation
FMI-Design Meeting: |
ac0210d
to
94c0665
Compare
---- | ||
|
||
This structural parameter is mandatory for Network FMUs only. | ||
A Bus Simulation (FMU) does not require this structural parameter. | ||
A Bus Simulation FMU might indicate via a variable with memberName=<<low-cut-can-bus-notification-parameter, `BusNotifications`>> in the CAN Bus Terminals whether it sends bus notifications or not. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bmenne-dspace should we make this mandatory, by changing the might to shall?
I think it wouldn't be a big burden for Bus Simulation FMU exporters to always expose such a variable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think optional is fine, because if its missing then its automatically "false". BTW: I think we should add the "to participate in an importer parameter propagation feature." sentence again
@@ -612,21 +611,19 @@ If a Network FMU does not support wake up, this operation can be ignored on the | |||
|==== | |||
|
|||
===== Network Parameters [[low-cut-can-network-parameters]] | |||
By using configuration parameters on Bus Terminal level, Network FMUs can be parameterized by the user or the Bus Simulation (by using e.g. the parameter propagation mechanism). | |||
This chapter specifies the configuration parameters that each CAN-specific Network FMU shall provide. | |||
This chapter defines parameters that Network FMU might provide to configure CAN-specific behavior. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here we should mention that its is the config terminal within a bus terminal context
If the Network FMU shall be configured to handle responses in the form of <<low-cut-can-confirm-operation, `Confirm-`>>, <<low-cut-can-bus-error-operation, `Bus Error-`>> and <<low-cut-can-arbitration-lost-operation, `Arbitration Lost`>> operations, the <<low-cut-can-bus-notification-parameter, `BusNotifications`>> configuration parameter shall be set to `true`. | ||
A Network FMU must always be able to handle the case that the Bus Simulation does not provide <<low-cut-can-confirm-operation, `Confirm-`>>, <<low-cut-can-bus-error-operation, `Bus Error-`>> or <<low-cut-can-arbitration-lost-operation, `Arbitration Lost`>> operations. | ||
Since a Bus Simulation is allowed to provide bus notification regardless of the <<low-cut-can-bus-notification-parameter, `BusNotifications`>> configuration parameter, Network FMUs must silently ignore such notifications if the value of <<low-cut-can-bus-notification-parameter, `BusNotifications`>> is set to `false` or the parameter is omitted. + | ||
Therefore, a parameter with memberName=<<low-cut-can-bus-notification-parameter, `BusNotifications`>> can be added to a CAN Bus Terminal. + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To the "sub" config terminal .... thats why I called it "configuration parameter"
If a Network FMU supports bus notifications, the <<low-cut-can-bus-notification-parameter, `BusNotifications`>> parameter shall be exposed. | ||
The default value of this parameter shall be `false`. + | ||
_[The default value `false` allows a simple integration of Network FMUs to simulation scenarios where <<low-cut-can-confirm-operation, `Confirm-`>>, <<low-cut-can-bus-error-operation, `Bus Error-`>> or <<low-cut-can-arbitration-lost-operation, `Arbitration Lost`>> operations are not used.]_ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"A Network FMU must always be able to handle the case that the Bus Simulation does not provide <<low-cut-can-confirm-operation, Confirm-
>>, <<low-cut-can-bus-error-operation, Bus Error-
>> or <<low-cut-can-arbitration-lost-operation, Arbitration Lost
>> operations." missing
No description provided.