SomeIpSetProperty
Open topic with navigation CAPL Functions » Ethernet » SOME/IP IL » SomeIpSetPropertyTool Availability
Valid for: CANoe DE • CANoe4SW DEFunction Syntax
long SomeIpSetProperty(char propertyName[], int64 value); // form 1long SomeIpSetProperty(dword objHandle, char propertyName[], int64 value); // form 2long SomeIpSetProperty(dword objHandle, char propertyName[], char value); // form 3long SomeIpSetProperty(char propertyName[], byte buffer[]); // form 4long SomeIpSetProperty(char propertyName[], dword bufferLength, byte buffer[]); // form 5long SomeIpSetProperty(dword objHandle, char propertyName[], IP_Enpoint ip_endpoint); // form 6
Description
The behavior of the SOME/IP IL can be configured using properties. Properties can be set for the current bus context as well as on an object-specific basis for services, eventgroups, and events.Parameters
- propertyName: Name of the property to be set.
- objHandle: Handle of a service, eventgroup or event.
- value: New value of the property.
- buffer: A byte buffer containing the new value of the property.
- bufferLength: The size of or the number of bytes to copy from the parameter
buffer. - ip_endpoint: An ip endpoint where you can set ip address, port and transport protocol like UDP/TCP.
Property Details
- ClientId: Default: Random. SomeIP-ClientId. Included in every message.
- MaxUDPMessageLength: Default: 1416. Sets the maximum allowed size of a SOME/IP message. Maximum size: 65519.
- SDMulticastIp: Default: 239.192.255.251. If SD is done per IPv4, SD sends multicasts to this IPv4 destination address.
- SDMulticastPort: Default: 30490. SD sends multicasts to this port and, if necessary, opens a local endpoint with this port.
- SDMulticastIPv6: Default: FF02::1. If SD is done per IPv6, SD sends multicasts to this IPv6 destination address.
- VlanId: This property may be set in
on preStartto select a VLAN which needs to be configured for the current bus context. - UseSD: Default: 1. May be set to zero before service instances and event groups are created which should not be registered to the service discovery.
- SendMagicCookie: Default: 1. Enable sending of magic cookie for TCP connections.
- SDDefaultUnicastOptionIp: Sets the default unicast IP address for the
SD IP Endpoint Optionwithin subscribe messages. - SDDefaultUnicastOptionPort: Sets the default Port Number for the
SD IP Endpoint Optionwithin subscribe messages. - DisableTxCallbackForTP: Default: 0. If set to 1,
OnSomeIpProcessTxMessagecallback will not be called for SOME/IP-TP messages too. - DetermineTCPRoleByConsumerProvider: If true the TCP role is set by the consumer provider.
- VlanPriority: Sets the Vlan priority.
- MaxSDMessageLength: Sets an maximum length for the SOME/IP SD message.
- SignalUpdateDelayInNs: Sets a delay for updating signals.
- MaxTCPRetries: Sets a limit for TCP connection retries.
Return Values
- 0: The function was successfully executed.
- >0: Error code