11. Migration and CompatibilityΒΆ
11.1. Supporting forward compatibilityΒΆ
This section shows requirements for compatibility, so that vehicles can be further enhanced with additional ECUs and functions. These requirements may exist already earlier in this document but are repeated here in order to ease understanding.
FindService entries shall always set the Minor Version to ANY (0xFFFF FFFF), so that changing the Minor Version of a service does not require changes on the peer.
ECUs shall subscribe to Eventgroups independently of the Minor Version of the Service.
Note: Changes that only affect the Minor Version changes are compatible changes.
Implementations shall support receiving longer SOME/IP messages as configured and cut off the bytes on the end that were not configured.
Implementations shall support receiving longer dynamic length elements in SOME/IP messages (e.g. arrays or structs with length field) and cut off the bytes at the end of this element that were not configured.
Implementations shall support setting default values to parameters in order to allow receiving SOME/IP messages that do not carry the new parameters yet or shall support missing parameters by another mean.
Implementations shall support receiving unknown SOME/IP messages (using nPDU or single) and dropping them (e.g. new events in an old eventgroup).
Implementations shall allow every client to access every SOME/IP Service Instance and Eventgroup that is configured on the port.
Note: This means it is forbidden to limit the resources, so that a client can only access the services that are currently configured. If another Eventgroup or Service Instance is available on this socket, the SOME/IP implementation may not limit access to it by means of resources.
11.2. Supporting multiple versions of the same service.ΒΆ
In order to support migrations scenarios ECUs shall support serving as well as using different incompatible versions of the same service.
In order to support a service with more than one version the following is required:
The server shall offer the service instance of this service once per major version.
The client shall find the service instances once per supported major version or shall use the major version as 0xFF (all versions).
The client shall subscribe to events of the service version it needs.
All SOME/IP-SD entries shall use the same Service IDs and Instance IDs but different Major Versions.
The server shall demultiplex messages based on the socket it arrives, the Message ID, and the Major Version.