-
Notifications
You must be signed in to change notification settings - Fork 7
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
What is the point of org.fmi-standard.fmi-ls-xcp.ListenIpAddress? #20
Comments
I think the idea behind the structural parameters is to influence the port/address that the built-in XCP slave of an FMU should listen on, i.e. the FMU importer can tune the port (and potentially the address) that the XCP slave inside the FMU will bind to (hence the parameter needs to be structural, to allow changes prior to actual FMU/simulation startup). The address part of that makes sense to restrict the addresses the slave listens to (i.e. only localhost connections when listening on 127.0.0.1 vs. outside connections when listening to one of the actual IP addresses of the host). Now I think this must be made optional, both for FMI 2.0 support (which does not have structural parameters) as well as for the use cases where the FMU has no control over the XCP slave (e.g. we have FMU remoting, where the XCP slave runs on the system the actual FMU runs on, but the simulator uses a client FMU; here the client FMU will not control the XCP slave, and it will never run on the local machine; there are other such use cases). I also think that protocol information (i.e. to support XCP via UDP as well as XCP via TCP) would be needed, and potentially the IP address parameter should be an array, to allow for listening on multiple interfaces. But at least this is my understanding of this feature. Given that there seems questions over it, I think it needs to be described more specifically, and also some of the assumptions that the XCP slave lives inside the FMU should probably be dropped... |
I learn a bit more on the subject. My proposal then is:
The port TCP or UDP selection is covered in #19 |
We should add a non-normative sentence about what proper start value can be used for ListenIpAddress (localhost or 0.0.0.0). There should be no normative text about it. |
What configuration options should the ListenIpAddress parameter provide? Op 1: 6 |
fmi-ls-xcp says there must be a structural paramere for IP Address where to listen for XCP commands. But the connection is the other way around. The MDC tool needs to know the IP Address of the XCP service to connect to.
The XCP Service is listening on the specified port and protocol type (obs. protocol missing in current fmi-ls-xcp). The XCP service does not need an IP Address to listen from.
Is there a case I do not see where it make sense the org.fmi-standard.fmi-ls-xcp.ListenIpAddress?
The text was updated successfully, but these errors were encountered: