Replies: 1 comment 1 reply
-
Note that it's possible to provide multiple someip deployments with different SomeIpInstanceID's in a single fdepl file:
This will produce proxy and stub which are aware of both instances. Afterwards, your services or clients should then use the corresponding instance when registering the service or building the proxy, respectively, e.g.:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am wondering whether the vsomeip & CommonAPI code can be used to create a service with a dynamic instance ID.
The use case for this is that I want to run the same executable file on several servers and have them offer different instances of the same service, as per SOME/IP's PRS_SOMEIP_00162 requirement.
For example, two servers on my network with IP addresses 192.168.1.1 and 192.168.1.2 should be able to offer the same service 0x1234 but with different instance IDs (0x0101 and 0x0102).
It seems to me that the SomeIpInstanceID will be baked in to the code generated, as it is present in the .fdepl file and raises an error if omitted:
and it seems from experiment that if this instance ID does not match that of one of the services in the proxy's .json file, then the instance is not offered by the routing manager:
(file: CommonAPI-Examples/E01HelloWorld/vsomeip-service.json)
NB: 0x5678 = 22136 decimal
I can manipulate the contents of the .json file before starting the proxy, if required, but I can't recompile the .fdepl file on-target!
Beta Was this translation helpful? Give feedback.
All reactions