flync_4_someip¶
SOME/IP Configuration¶
Note
Any SOME/IP related configuration such as service descriptions or timings profiles are placed in the directory 📁 general/someip/.
This is a non-mandatory directory for the FLYNC configuration.
- class SOMEIPConfig¶
Bases:
FLYNCBaseModelBasic configuration of SOME/IP for a target system.
Parameters¶
- version: Literal[ “1.0” ]
The version of this config.
- services: list[
SOMEIPServiceInterface] List of SOME/IP Services.
- sd_config:
SDConfig Configuration of the Service-Discovery.
Service Discovery¶
- class SDConfig¶
Bases:
FLYNCBaseModelallows to configure the SOME/IP Service-Discovery. Represent from the Chapter SD, the Endpoint and SD Endpoint.
Parameters¶
- ip_address
IPvAnyAddress IP on which the service discovery operates.
- portint
Port which the service discovery operates on. Must be greater than 0 and lower than 0xFFFF.
- sd_timingsList[
SDTimings] Timing Configurations for SOME/IP-SD.
- ip_address
- class SDTimings¶
Bases:
DictInstancesConfigurations for SOME/IP-SD Timings.
Parameters¶
- profile_idstr
A unique ID for the SOME/IP-SD timings profile.
- initial_delay_minfloat
Initial delay in milliseconds: This parameter keeps back service offers to pack more entries together. Must be greater or equal to 0 and lower or equal to 10. Defaults to 10.
- initial_delay_maxfloat
Initial delay in milliseconds: This parameter keeps back service offers to pack more entries together. Must be greater or equal to 0 and lower or equal to 10. Defaults to 10.
- repetitions_base_delayfloat
Repetitions Base delay in milliseconds: This parameter helps in fast startup and to make startup more robust.Loss of the first offer results in this delay. Must be greater or equal to 0 and lower or equal to 30. Defaults to 30.
- repetitions_maxfloat
Number of repetitions while doubling delay. Must be greater or equal to 0 and lower or equal to 3. Defaults to 3.
- request_response_delay_minfloat
Request response delay in milliseconds: This parameter keeps back subscribes to pack more entries together. Must be greater or equal to 0 and lower or equal to 10. Defaults to 10.
- request_response_delay_maxfloat = Field(
Request response delay in milliseconds: This parameter keeps back subscribes to pack more entries together.”, Must be greater or equal to 0 and lower or equal to 10. Defaults to 10.
- offer_cyclic_delay: float, optional
Offer cyclic delay in milliseconds: This parameter keeps system alive with cyclic offer. Must be greater or equal to 0 and lower or equal to 1000. Defaults to 1000.
- offer_ttlfloat, optional
Time to live in milliseconds: This parameter determines how fast to age out state. Must be greater or equal to 0 and lower or equal to 3000. Defaults to 3000.
- find_ttlfloat, optional
Offer cyclic delay in milliseconds: This parameter keeps system alive with cyclic offer. Must be greater or equal to 0 and lower or equal to 1000. Defaults to 1000.
- subscribe_ttl: float, optional
Time to live in milliseconds: This parameter determines how fast to age out state. Must be greater or equal to 0 and lower or equal to 3000. Defaults to 3.
Service Interface¶
- class SOMEIPServiceInterface¶
Bases:
DictInstancesClass to create a SOME/IP service interface definition.
Parameters¶
- namestr
Name of the service
description : str, optional
- idint
Unique identifier for the service. Must be greater than 0 and lower or equal than 0xFFFF.
- major_versionint
The major version of this service interface. Must be greater than 0 and lower or equal than 0xFF.
- minor_versionint
The minor version of this service interface. Must be greater than 0 and lower or equal than 0xFFFFFFFF.
- fieldsList[
SOMEIPField] Fields of the service.
- eventsList[
SOMEIPEvent] Events of the service.
- eventgroupsList[
SOMEIPEventgroup] Eventgroups of the service.
- methodsList[
SOMEIPFireAndForgetMethod|SOMEIPRequestResponseMethod] Methods of the service.
- meta
SOMEIPServiceMetadata Metadata for the SOME/IP Service.
Method¶
- class SOMEIPMethod¶
Bases:
FLYNCBaseModelDatastructure to model SOME/IP methods.
Parameters¶
- namestr
Name of the Method.
- descriptionstr, optional
Description of the Method.
- typeLiteral[“request_response”, “fire_and_forget”]
Type of the Method.
- idint
Unique method identifier for the service interface. Must be greater than 0 and lower or equal than 0xFFFF.
- reliablebool
Indicates whether the event is transmitted reliably.
- someip_tp
SOMEIPTP SOME/IP Transport Protocol configuration for this method.
- input_parameterslist[
AllTypes] List of input parameters.
- class SOMEIPFireAndForgetMethod¶
Bases:
SOMEIPMethodAllows to model SOME/IP methods which will not return a response.
- class SOMEIPRequestResponseMethod¶
Bases:
SOMEIPMethodAllows to model SOME/IP methods which will return a response.
Parameters¶
- output_parameterslist[
AllTypes] List of output parameters of the response.
- output_parameterslist[
- class SOMEIPTP¶
Bases:
FLYNCBaseModelSOME/IP Transport Protocol configuration.
Parameters¶
- enabledbool
Indicates whether SOME/IP-TP is enabled or not. Defaults to False.
- max_segment_lengthint
maximum segment length. Defaults to 0.
Eventgroup¶
- class SOMEIPEventgroup¶
Bases:
FLYNCBaseModelMain datastructure to model a SOME/IP Eventgroup.
Parameters¶
- namestr
Name of the Eventgroup.
description : str, optional
- idint
Identifies the Eventgroup. Must be greater than 0 and lower or equal than 0xFFFF.
- multicast_thresholdint, optional
Identifies the multicast threshold. Must be greater than 0. Defaults to 0.
- events: list[
SOMEIPEvent|SOMEIPField] The events and fields this eventgroup contains.
Event¶
- class SOMEIPEvent¶
Bases:
FLYNCBaseModelDefines a SOME/IP event definition.
This model is used to describe a SOME/IP event, including its identifier, reliability settings, optional E2E protection configuration, and the list of parameters that the event transports.
Parameters¶
- namestr
Name of the event.
- descriptionstr, optional
Human-readable description of the event.
- idint
Unique identifier of the event. Must be greater than 0 and lower or equal than 0xFFFF.
- reliablebool
Indicates whether the event is transmitted reliably.
- parameters list[
Parameters] List of parameters.
- class Parameters¶
Bases:
FLYNCBaseModelDefinition of Parameters for SOME-IP Events.
Parameters¶
- namestr
Identifies the parameter.
- type
AllTypes Datatype of the Parameter.
Field¶
- class SOMEIPField¶
Bases:
FLYNCBaseModelBase datastructure to design a SOME/IP Field
Parameters¶
- namestr
Name of the Field.
- parameterslist[
AllTypes] List of Parameters of the Field.
- descriptionstr, optional
Description of the Field.
- notifier_idint, optional
Identifies the Field Notifier. Must be greater than 0 and lower or equal than 0xFFFF. Defaults to 1.
- setter_idint, optional
Identifies the Field Setter. Must be greater than 0 and lower or equal than 0xFFFF.
- getter_idint, optional
Identifies the Field Getter. Must be greater than 0 and lower or equal than 0xFFFF.
Service Deployment¶
Hint
Service Deployments are directly configured in a socket. For further details on the configuration go to: Socket Config.
- class SOMEIPServiceProvider¶
Bases:
SOMEIPServiceDeploymentDefines the provider of a SOME/IP service instance (like offering & sending responses, events).
Parameters¶
deployment_type : Literal[“someip_provider”]
- class SOMEIPServiceConsumer¶
Bases:
SOMEIPServiceDeploymentDefines the consumer of a SOME/IP service instance (like subscribing & calling methods).
Parameters¶
deployment_type : Literal[“someip_consumer”]
consumed_eventgroups : List[str], optional
- class SOMEIPSDDeployment¶
Bases:
FLYNCBaseModelDefines the Service Discovery endpoint of SOME/IP.
Parameters¶
deployment_type: Literal[“someip_sd”]
- multicastOptional[
MulticastSDEndpoint] Multicast configuration for an SD endpoint.
- multicastOptional[
- class Layer4Endpoint¶
Bases:
FLYNCBaseModelLayer4Endpoint Class method for Layer4 endpoint .
Parameters¶
- protocolLiteral[“UDP”, “TCP”]
Protocol of the Layer4Endpoint. Defaults to UDP.
- portint
Layer4 Port. Must be greater than 0 and less or equal to 65535.
- class MulticastEndpoint¶
Bases:
BaseUDPDeploymentMulticastEndpoint for UDP Deployments.
Parameters¶
- ip_addressIPvAnyAddress
IP-Address of the Multicast Endpoint.
- class MulticastSDEndpoint¶
Bases:
MulticastEndpointMulticastSDEndpoint
Parameters¶
- ip_ttlint
IP Time-to-Live. Must be greater or equal to 0 and less or equal to 255.
- class SOMEIPServiceDeployment¶
Bases:
ABC,FLYNCBaseModelSOMEIPServiceDeployment Create a service deployment that will be used for provided service.
Parameters¶
deployment_type : Literal[“someip”]
- serviceint
Identifies the service. Must be greater than 0.
- major_versionint
The major version of this service interface. Must be greater than 0.
- instance_id: int
Id of the Service Instance. Must be greater than 0.
- find_service_multicast:
MulticastEndpoint, optional A multicast endpoint.
- someip_sd_timings_profile: str
The SOME/IP timings profile_id used for the deployment.
- class BaseUDPDeployment¶
Bases:
Layer4EndpointBase class for deploying a SOME/IP service onto a UDP-endpoint.
- class UDPDeployment¶
Bases:
BaseUDPDeploymentAllows deploying a SOME/IP service onto a UDP-endpoint (including multicast).
Parameters¶
- multicast
MulticastEndpoint, optional Multicast configuration for this endpoint.
- multicast
- class TCPDeployment¶
Bases:
Layer4EndpointBase class for deploying a SOME/IP service onto a TCP-endpoint