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
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:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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