根据AUTOSAR标准文档 AUTOSAR_SWS_CANTransportLayer.pdf,整理CanTp模块的configuration parameters信息,在另一个文章里包含对应的参数关系图,希望从整体上展示configuration parameters之间的关系。
Name | Parent Container | Description | Type | Default Value | Range |
CanTp | Configuration of the CanTp (CAN Transport Protocol) module | ||||
CanTpConfig | CanTp | This container contains the configuration parameters and sub containers of the AUTOSAR CanTp module. | |||
CanTpMainFunctionPeriod | CanTpConfig | Allow to configure the time for the MainFunction (as float in seconds). The CanTpMainFunctionPeriod should be assigned a value which is optimal regarding all of the timers configured for CanTp in TX and RX data transfer i.e. the differences from the configured timing should be as small as possible. Please note: This period shall be the same as call cycle time of the periodic task were CanTp Main function is called. | EcucFloatParamDef | 0 .. INF | |
CanTpMaxChannelCnt | CanTpConfig | Maximum number of channels. This parameter is needed only in case of post-build loadable implementation using static memory allocation. | EcucIntegerParamDef | 0 .. 18446744073709551615 | |
CanTpGeneral | CanTp | This container contains the general configuration parameters of the CanTp module | |||
CanTpChangeParameterApi | CanTpGeneral | This parameter, if set to true, enables the CanTp_ChangeParameterRequest Api for this Module. | EcucBooleanParamDef | ||
CanTpDevErrorDetect | CanTpGeneral | Switches the development error detection and notification on or off. • true: detection and notification is enabled. • false: detection and notification is disabled. | EcucBooleanParamDef | FALSE | |
CanTpDynIdSupport | CanTpGeneral | Enable support for dynamic ID handling via N-PDU MetaData | EcucBooleanParamDef | FALSE | |
CanTpFlexibleDataRateSupport | CanTpGeneral | Enable support for CAN FD frames | EcucBooleanParamDef | TRUE | |
CanTpGenericConnectionSupport | CanTpGeneral | Enable support for the handling of generic connections using N-SDUs with MetaData. Requires CanTpDynIdSupport. | EcucBooleanParamDef | FALSE | |
CanTpPaddingByte | CanTpGeneral | Used for the initialization of unused bytes with a certain value | EcucIntegerParamDef | 0 .. 255 | |
CanTpReadParameterApi | CanTpGeneral | This parameter, if set to true, enables the CanTp_ReadParameterApi for this module | EcucBooleanParamDef | ||
CanTpVersionInfoApi | CanTpGeneral | The function CanTp_GetVersionInfo is configurable (On/Off) by this configuration parameter. | EcucBooleanParamDef | FALSE | |
CanTpChannel | CanTpConfig | This container contains the configuration parameters of the CanTp channel | |||
CanTpRxNSdu | CanTpChannel | The following parameters needs to be configured for each CAN N-SDU that the CanTp module receives via the CanTpChannel. This N-SDU produces meta data items of type SOURCE_ADDRESS_16, TARGET_ADDRESS_16 and ADDRESS_EXTENSION_8. | |||
CanTpBs | CanTpRxNSdu | Sets the number of N-PDUs the CanTp receiver allows the sender to send, before waiting for an authorization to continue transmission of the following N-PDUs.For further details on this parameter value see ISO 15765-2 specification. | EcucIntegerParamDef | 0 .. 255 | |
CanTpNar | CanTpRxNSdu | Value in seconds of the N_Ar timeout. N_Ar is the time for transmission of a CAN frame (any N_PDU) on the receiver side. | EcucFloatParamDef | 0 .. INF | |
CanTpNbr | CanTpRxNSdu | Value in seconds of the performance requirement for (N_Br + N_Ar). N_Br is the elapsed time between the receiving indication of a FF or CF or the transmit confirmation of a FC, until the transmit request of the next FC. | EcucFloatParamDef | 0 .. INF | |
CanTpNcr | CanTpRxNSdu | Value in seconds of the N_Cr timeout. N_Cr is the time until reception of the next Consecutive Frame N_PDU. | EcucFloatParamDef | 0 .. INF | |
CanTpRxAddressingFormat | CanTpRxNSdu | Declares which communication addressing mode is supported for this RxNSdu. Definition of Enumeration values: CanTpStandard to use normal addressing format. CanTpExtended to use extended addressing format. CanTpMixed to use mixed 11 bit addressing format. CanTpNormalFixed to use normal fixed addressing format. CanTpMixed29Bit to use mixed 29 bit addressing format. | EcucEnumerationParamDef | CANTP_EXTENDED,CANTP_MIXED,CANTP_MIXED29BIT,CANTP_NORMALFIXED,CANTP_STANDARD | |
CanTpRxNSduId | CanTpRxNSdu | Unique identifier user by the upper layer to call CanTp_CancelReceive, CanTp_ChangeParameter and CanTp_ReadParameter. | EcucIntegerParamDef | 0 .. 65535 | |
CanTpRxPaddingActivation | CanTpRxNSdu | Defines if the received frame uses padding or not. This parameter is restricted to 8 bytes N-PDUs. Definition of enumeration values: CanTpOn: The N-PDU received uses padding for SF, FC and the last CF. (N-PDUlength is always >= 8 bytes in case of CAN 2.0) CanTpOff: The N-PDU received does not use padding for SF, FC and the last CF.(N-PDU length is dynamic - any valid DLC value). Note: The mandatory mapping to the next higher valid DLC value for N-PDUs with a length > 8 bytes is not affected by this parameter. | EcucEnumerationParamDef | CANTP_OFF,CANTP_ON | |
CanTpRxTaType | CanTpRxNSdu | Declares the communication type of this Rx N-SDU | EcucEnumerationParamDef | CANTP_FUNCTIONAL,CANTP_PHYSICAL | |
CanTpRxWftMax | CanTpRxNSdu | This parameter indicates how many Flow Control wait N-PDUs can be consecutively transmitted by the receiver. It is local to the node and is not transmitted inside the FC protocol data unit. CanTpRxWftMax is used to avoid sender nodes being potentially hooked-up in case of a temporarily reception inability on the part of the receiver nodes, whereby the sender could be waiting continuously | EcucIntegerParamDef | 0 .. 65535 | |
CanTpSTmin | CanTpRxNSdu | Sets the duration of the minimum time the CanTp sender shall wait between the transmissions of two CF N-PDUs. For further details on this parameter value see ISO 15765-2 specification | EcucFloatParamDef | 0 .. INF | |
CanTpRxNSduRef | CanTpRxNSdu | Reference to a Pdu in the COM-Stack. | Reference to Pdu | ||
CanTpTxFcNPdu | CanTpRxNSdu | Used for grouping of the ID of a PDU and the Reference to a PDU. This N-PDU produces a meta data item of type CAN_ID_32. | |||
CanTpTxFcNPduConfirmationPduId | CanTpTxFcNPdu | Handle Id to be used by the CanIf to confirm the transmission of the CanTpTxFcNPdu to the CanIf module. | EcucIntegerParamDef | 0 .. 65535 | |
CanTpTxFcNPduRef | CanTpTxFcNPdu | Reference to a Pdu in the COM-Stack. | Reference to Pdu | ||
CanTpRxNPdu | CanTpRxNSdu | Used for grouping of the ID of a PDU and the Reference to a PDU. This N-PDU consumes a meta data item of type CAN_ID_32. | |||
CanTpRxNPduId | CanTpRxNPdu | The N-PDU identifier attached to the RxNsdu is identified by CanTpRxNSduId. Each RxNsdu identifier is linked to only one SF/FF/CF N-PDU identifier. Nevertheless, in the case of extended or mixed addressing format, the same N-PDU identifier can be used for several N-SDU identifiers. The distinction is made by the N_TA or N_AE value (first data byte of SF or FF frames). | EcucIntegerParamDef | 0 .. 65535 | |
CanTpRxNPduRef | CanTpRxNPdu | Reference to a Pdu in the COM-Stack. | Reference to Pdu | ||
CanTpTxNSdu | CanTpChannel | The following parameters needs to be configured for each CAN N-SDU that the CanTp module transmits via the CanTpChannel. This N-SDU consumes meta data items of type SOURCE_ADDRESS_16, TARGET_ADDRESS_16 and ADDRESS_EXTENSION_8. | |||
CanTpNas | CanTpTxNSdu | Value in second of the N_As timeout. N_As is the time for transmission of a CAN frame (any N_PDU) on the part of the sender. | EcucFloatParamDef | 0 .. INF | |
CanTpNbs | CanTpTxNSdu | Value in seconds of the N_Bs timeout. N_Bs is the time of transmission until reception of the next Flow Control N_PDU | EcucFloatParamDef | 0 .. INF | |
CanTpNcs | CanTpTxNSdu | Value in seconds of the performance requirements relating to N_Cs. CanTpNcs is the time in which CanTp is allowed to request from PduR the Tx data of a Consecutive Frame N_PDU. | EcucFloatParamDef | 0 .. INF | |
CanTpTc | CanTpTxNSdu | Switch for enabling Transmit Cancellation | EcucBooleanParamDef | ||
CanTpTxAddressingFormat | CanTpTxNSdu | Declares which communication addressing format is supported for this TxNSdu. Definition of Enumeration values: CanTpStandard to use normal addressing format. CanTpExtended to use extended addressing format. CanTpMixed to use mixed 11 bit addressing format. CanTpNormalFixed to use normal fixed addressing format. CanTpMixed29Bit to use mixed 29 bit addressing format. | EcucEnumerationParamDef | CANTP_EXTENDED,CANTP_MIXED,CANTP_MIXED29BIT,CANTP_NORMALFIXED,CANTP_STANDARD | |
CanTpTxNSduId | CanTpTxNSdu | Unique identifier to a structure that contains all useful information to process the transmission of a TxNsdu. | EcucIntegerParamDef | 0 .. 65535 | |
CanTpTxPaddingActivation | CanTpTxNSdu | Defines if the transmit frame use padding or not. This parameter is restricted to 8 byte N-PDUs. Definition of Enumeration values: CanTpOn The transmit N-PDU uses padding for SF, FC and the last CF. (N-PDU lengthis always 8 bytes in case of CAN 2.0) CanTpOff The transmit N-PDU does not use padding for SF, CF and the last CF. (N-PDU length is dynamic - any valid DLC value). Note: The mandatory mapping to the next higher valid DLC value for N-PDUs with a length > 8 bytes is not affected by this parameter. | EcucEnumerationParamDef | CANTP_OFF,CANTP_ON | |
CanTpTxTaType | CanTpTxNSdu | Declares the communication type of this TxNsdu. Enumeration values: CanTpPhysical. Used for 1:1 communication. CanTpFunctional. Used for 1:n communication. | EcucEnumerationParamDef | CANTP_FUNCTIONAL,CANTP_PHYSICAL | |
CanTpTxNSduRef | CanTpTxNSdu | Reference to a Pdu in the COM-Stack. | Reference to Pdu | ||
CanTpTxNPdu | CanTpTxNSdu | Used for grouping of the ID of a PDU and the Reference to a PDU. This N-PDU produces a meta data item of type CAN_ID_32. | |||
CanTpTxNPduConfirmationPduId | CanTpTxNPdu | Handle Id to be used by the CanIf to confirm the transmission of the CanTpTxNPdu to the CanIf module. | EcucIntegerParamDef | 0 .. 65535 | |
CanTpTxNPduRef | CanTpTxNPdu | Reference to a Pdu in the COM-Stack. | Reference to Pdu | ||
CanTpRxFcNPdu | CanTpTxNSdu | Used for grouping of the ID of a PDU and the Reference to a PDU. This N-PDU consumes a meta data item of type CAN_ID_32. | |||
CanTpRxFcNPduId | CanTpRxFcNPdu | N-PDU identifier attached to the FC N-PDU of this TxNsdu identified by CanTpTxNSduId. Each TxNsdu identifier is linked to one Rx FC N-PDU identifier only. However, in the case of extended addressing format, the same FC N-PDU identifier can be used for several N-SDU identifiers. The distinction is made by means of the N_TA value (first data byte of FC frames). | EcucIntegerParamDef | 0 .. 65535 | |
CanTpRxFcNPduRef | CanTpRxFcNPdu | Reference to a Pdu in the COM-Stack. | Reference to Pdu | ||
CanTpNTa | CanTpRxNSdu, CanTpTxNSdu | This container is required for each RxNSdu and TxNSdu with AddressingFormat CANTP_EXTENDED. When DynIdSupport is enabled, this container is also required for each RxNSdu with AddressingFormat CANTP_NORMALFIXED or CANTP_MIXED29BIT. When DynIdSupport is enabled and GenericConnectionSupport is not enabled, this container is also required for each TxNSdu with AddressingFormat CANTP_NORMALFIXED or CANTP_MIXED29BIT. | |||
CanTpNTa | CanTpNTa | This parameter contains the transport protocol target address value. | EcucIntegerParamDef | 0 .. 255 | |
CanTpNSa | CanTpRxNSdu, CanTpTxNSdu | This container is required for each RxNSdu and TxNSdu with RxTaType CANTP_PHYSICAL and CanTpAddressingFormat CANTP_EXTENDED. When DynIdSupport is enabled, this container is also required for each TxNSdu with AddressingFormat CANTP_NORMALFIXED or CANTP_MIXED29BIT. When DynIdSupport is enabled and GenericConnectionSupport is not enabled, this container is also required for each RxNSdu with AddressingFormat CANTP_NORMALFIXED or CANTP_MIXED29BIT. | |||
CanTpNSa | CanTpNSa | This parameter contains the transport protocol source address value. | EcucIntegerParamDef | 0 .. 255 | |
CanTpNAe | CanTpRxNSdu, CanTpTxNSdu | This container is required for each RxNSdu and TxNSdu with AddressingFormat CANTP_MIXED or CANTP_MIXED29BIT. | |||
CanTpNAe | CanTpNAe | This parameter contains the transport protocol address extension value. | EcucIntegerParamDef | 0 .. 255 |