flync_4_communication¶
The flync_4_communication module holds the system-wide
configuration shared across all ECUs in the project, including bus
definitions, PDU and frame definitions, SOME/IP service descriptions,
and TCP profiles. To understand the directory structure go to: Communication.
- class FLYNCCommunicationConfig¶
Bases:
FLYNCBaseModelThe top-level configuration object that aggregates all reusable FLYNC settings for the whole system.
Parameters¶
- tcp_profileslist of
TCPOption List of TCP profiles that define the selectable TCP socket options.
- someip_config
SOMEIPConfig Configuration block that holds the global SOME/IP service interface definition, SOME/IP timings, and SD timings profiles used by every ECU in the system.
- channels
FLYNCChannelConfig, optional Channel-level configuration grouping CAN buses, LIN buses, and Ethernet Container PDU definitions. Loaded from the
communication/channels/directory. Each bus or container PDU is stored in its own file under the corresponding sub-folder (can/,lin/,container_pdus/). Absent when thecommunication/channels/directory does not exist.
- tcp_profileslist of
Channel Configuration¶
FLYNCChannelConfig
groups all bus and PDU definitions that are stored under
communication/channels/. See also Communication.
- class FLYNCChannelConfig¶
Bases:
FLYNCBaseModelChannel-level configuration grouping all buses and shared PDU definitions.
Parameters¶
- pduslist of
StandardPDU|MultiplexedPDU, optional Shared PDU definitions that may be referenced from any channel.
- can_buseslist of
CANBus, optional CAN and CAN FD bus configurations.
- lin_buseslist of
LINBus, optional LIN bus configurations.
- ethernet_pdu_containerslist of
ContainerPDU, optional Ethernet Container PDU definitions.
- pduslist of
TCP Options¶
- class TCPOption¶
Bases:
DictInstancesTCP options that can be enabled for a connection.
Parameters¶
- tcp_profile_idint
Unique identifier of the TCP profile.
- naglestrict_bool
Enable or disable Nagle algorithm.
- keepalive_enabledbool
Enable or disable the TCP keep-alive option.
- keepidleint
Seconds the connection must stay idle before the first keep-alive probe is sent.
- keepcountint
Maximum number of keep-alive probes that may be sent before the connection is dropped.
- keepintvlint
Seconds between successive keep-alive probes.
- user_timeoutint
Maximum time in seconds that unacknowledged data may remain before the connection is closed.
- congestion_avoidancestr
Congestion-avoidance algorithm to use (e.g.,
Reno,cubic, orbbr).- tcp_maxsegint
Maximum segment size for outgoing TCP packets.
- tcp_quickackbool
Enable or disable the “quick-ack” feature.
- tcp_syncntint
Number of SYN retransmissions TCP may perform before aborting the connection attempt.
- class UDPOption¶
Bases:
FLYNCBaseModelUDP options that can be enabled for a connection.
Parameters¶
- udp_corkbool
Enables buffering of UDP messages before they are sent.