导图社区 AUTOAR4.2.2CanNm配置容器20230712A
AUTOAR4.2.2CanNm配置容器,This container contains the global configuration parameter of the CanNm.
编辑于2023-08-18 16:31:54 安徽CanNm
CanNmGlobalConfig
This container contains the global configuration parameter of the CanNm. The parameters and the parameters of the sub containers shall be mapped to the C data type CanNm_ConfigType (for parameters where it is possible) which is passed to the CanNm_Init function.
CanNmBusLoadReductionEnabled
Pre-processor switch for enabling busload reduction support. dependency: CanNmBusLoadReductionEnabled = false if CanNmPassiveModeEnabled == true or CanNmPnEnabled == true for at least one CanNm Channel.
EcucBooleanParamDef
CanNmBusSynchronizationEnabled
Pre-processor switch for enabling bus synchronization support. This feature is required for gateway nodes only. dependency: calculationFormula = If (CanNmPassiveModeEnabled == False) then Equal(NmBusSynchronizationEnabled) else Equal(False)
EcucBooleanParamDef
CanNmComControlEnabled
Pre-processor switch for enabling the Communication Control support. 28控制网络管理报文
EcucBooleanParamDef
CanNmComUserDataSupport
Preprocessor switch for enabling Com User Data dependency: If CanNmPassiveModeEnabled == True then CanNmComUserDataSupport = False
EcucBooleanParamDef
CanNmCoordinatorSyncSupport
Enables/disables the coordinator synchronisation support. dependency: CanNmCoordinatorSyncSupport has to be set to FALSE if CanNmPassiveModeEnabled is set to TRUE.
EcucBooleanParamDef
CanNmDevErrorDetect
EcucBooleanParamDef
CanNmImmediateRestartEnabled
Pre-processor switch for enabling the asynchronous transmission of a NM PDU upon bus-communication request in Prepare-Bus-Sleep mode. dependency: Must not be defined if CanNmPassiveModeEnabled is defined.
EcucBooleanParamDef
CanNmImmediateTxconfEnabled
Enable/disable the immediate tx confirmation. dependency: CanNmImmediateTxconfEnabled shall not be enabled if CanNmPasiveModeEnabled is enabled.
EcucBooleanParamDef
CanNmMainFunctionPeriod
Call cycle in seconds of CanNm_MainFunction
CanNmMainFunctionPeriod
CanNmNodeDetectionEnabled
Precompile time switch to enable the node detection feature. dependency: Only valid if CanNmNodeIdEnabled is set to TRUE If CanNmPassiveModeEnabled == True then CanNmNodeDetection = False
EcucBooleanParamDef
CanNmNodeIdEnabled
Pre-processor switch for enabling the source node identifier.
EcucBooleanParamDef
CanNmPassiveModeEnabled
Pre-processor switch for enabling support of the Passive Mode.
EcucBooleanParamDef
CanNmPduRxIndicationEnabled
Pre-processor switch for enabling the PDU Rx Indication.
EcucBooleanParamDef
CanNmPnEiraCalcEnabled(0..1)
Specifies if CanNm calculates the PN request information for internal an external requests. (EIRA) true: PN request are calculated false: PN request are not calculated dependency: only available if CanNmPnEnabled == true for at least one CanNm Channe
EcucBooleanParamDef
CanNmPnResetTime(0..1)
Specifies the runtime of the reset timer in seconds. This reset time is valid for the reset of PN requests in the EIRA and in the ERA. The value shall be the same for every channel. Thus it is a global config parameter. dependency: only available if CanNmPnEnabled == true for at least one CanNm Channel. CanNmPnResetTime > CanNmMsgCycleTime CanNmPnResetTime < CanNmTimeoutTime
EcucFloatParamDef(0.001..65.535)
CanNmRemoteSleepIndEnabled
Pre-processor switch for enabling remote sleep indication support. This feature is required for gateway nodes only. dependency:If (CanNmPassiveModeEnabled == False) then Equal(NmRemoteSleepIndEnabled) else Equal(False)
EcucBooleanParamDef
CanNmRepeatMsgIndEnabled
Enable/disable the notification that a RepeatMessageRequest bit has been received.
EcucBooleanParamDef
CanNmStateChangeIndEnabled
Pre-processor switch for enabling the CAN NM state change notification.
EcucBooleanParamDef
CanNmUserDataEnabled
Pre-processor switch for enabling user data support
EcucBooleanParamDef
CanNmVersionInfoApi
EcucBooleanParamDef
CanNmPnEiraRxNSduRef(0..1)
Reference to a Pdu in the COM-Stack. Only one SduRef is required for CanNm because the EIRA is the aggregation over all Can Channels. dependency: only available if CanNmPnEiraCalcEnabled == true. only valid if CanNmPnEnabled == true for at least one CanNm Channel
Reference to [ Pdu ]
CanNmChannelConfig(1..*)
This container contains the channel specific configuration parameter of the CanNm
CanNmActiveWakeupBitEnabled(0..1)
Enables/Disables the handling of the Active Wakeup Bit in the CanNm module.
EcucBooleanParamDef
CanNmAllNmMessagesKeepAwake(0..1)
Specifies if CanNm drops irrelevant NM PDUs. false: Only NM PDUs with a PNI bit = true and containing a PN request for this ECU triggers the standard RX indication handling true: Every NM PDU triggers the standard RX indication handling dependency: only available if CanNmPnEnabled == true
EcucBooleanParamDef
CanNmBusLoadReductionActive
This parameter defines if bus load reduction for the respective NM channel is active or not. dependency: Shall only be True if CanNmBusLoadReductionEnabled is True.
EcucBooleanParamDef
CanNmCarWakeUpBitPosition(0..1)
Specifies the Bit position of the CWU within the NM PDU. dependency: only available if CanNmCarWakeUpRxEnabled == TRUE
EcucIntegerParamDef(0..7)
CanNmCarWakeUpBytePosition(0..1)
Specifies the Byte position of the CWU within the NM PDU. dependency: only available if CanNmCarWakeUpRxEnabled == TRUE CanNmCarWakeupBytePosition ≥ number of enabled system bytes (CBV, NID)
EcucIntegerParamDef(0..7)
CanNmCarWakeUpFilterEnabled(0..1)
If CWU filtering is supported, only the CWU bit within the NM PDU with source node identifier CanNmCarWakeUpFilterNodeId is considered as CWU request. FALSE - CWU filtering is not supported TRUE - CWU filtering is supported dependency: only available if CanNmCarWakeUpRxEnabled == TRUE
EcucBooleanParamDef
CanNmCarWakeUpFilterNodeId(0..1)
Source node identifier for CWU filtering. If CWU filtering is supported, only the CWU bit within the NM PDU with source node identifier CanNmCarWakeUpFilterNodeId is considered as CWU request. dependency: only available if CanNmCarWakeUpFilterEnabled == TRUE
EcucBooleanParamDef
CanNmCarWakeUpRxEnabled
Enables or disables support of CarWakeUp bit evaluation in received NM PDUs.
EcucBooleanParamDef
CanNmImmediateNmCycleTime
Defines the immediate NM PDU cycle time in seconds which is used for CanNmImmediateNmTransmissions NM PDU transmissions.
EcucFloatParamDef(0.001..65.535)
CanNmImmediateNmTransmissions
Defines the number of immediate NM PDUs which shall be transmitted. If the value is zero no immediate NM PDUs are transmitted. The cycle time of immeditate NM PDUs is defined by CanNmImmediateNmCycleTime. dependency: If CanNmImmediateRestartEnabled = true then CanNmImmediateNmTransmissions = 0 If CanNmPnHandleMultipleNetworkRequests == True" then "CanNmImmediateNmTransmissions > 0
EcucIntegerParamDef
CanNmMsgCycleOffset
Time offset in the periodic transmission node. It determines the start delay of the transmission. Specified in seconds dependency: Parameter value < CanMsgCycleTime This parameter is only valid if CanNmPassiveModeEnabled is False.
EcucFloatParamDef(0...65.535)
CanNmMsgCycleTime
Period of a NM PDU in seconds. It determines the periodic rate in the "periodic transmission mode with bus load reduction" and is the basis for transmit scheduling in the "periodic transmission mode without bus load reduction". dependency: This parameter is only valid if CanNmPassiveModeEnabled is False.
EcucFloatParamDef(0.001..65.535)
CanNmMsgReducedTime
Node specific bus cycle time in the periodic transmission mode with bus load reduction. Specified in seconds. dependency: 0,5 * CanNmMsgCycleTime ≤ CanNmMsgReducedTime < CanNmMsgCycleTime This parameter is only valid if CanNmBusLoadReductionEnabled == True and CanNmBusLoadReductionActive == True and CanNmPassiveModeEnabled == False Otherwise this parameter is notused.
EcucFloatParamDef(0.001..65.535)
CanNmMsgTimeoutTime
Transmission Timeout of NM PDU. If there is no transmission confirmation by the CAN Interface within this timeout, the CANNM module shall give an error notification. dependency: CanNmMsgTimeoutTime < CanNmMsgCycleTime This parameter is only valid if CANNM_PASSIVE_MODE_ENABLED is disabled.
EcucFloatParamDef(0.001..65.535)
CanNmNodeId
EcucIntegerParamDef(0..255)
CanNmPduCbvPosition
Defines the position of the control bit vector within the NM PDU. The value of the parameter represents the location of the Control Bit Vector in the NM PDU (CanNmPduByte0 means byte 0, CanNmPduByte1 means byte 1, CanNmPduOff means source node identifier is not part of the NM PDU) ImplementationType: CanNm_PduPositionType dependency: CanNmPduNidPosition; If CanNmNodeDetectionEnabled == true then CanNmPduCbvPosition != CANNM_PDU_OFF if(CANNM_PDU_CBV_POSITION != CANNM_PDU_OFF && CANNM_PDU_NID_POSITION != CANNM_PDU_OFF) then CANNM_PDU_CBV_POSITION != CANNM_PDU_NID_POSITION if(CANNM_PDU_CBV_POSITION != CANNM_PDU_OFF && CANNM_PDU_NID_POSITION == CANNM_PDU_OFF) then CANNM_PDU_CBV_POSITION = CANNM_PDU_BYTE0
CANNM_PDU_BYTE_0 Byte 0 is used
CANNM_PDU_BYTE_1 Byte 1 is used
CANNM_PDU_OFF Control Bit Vector is not used
CanNmPduNidPosition
dependency: CanNmPduCbvPosition; If CanNmNodeIdEnabled == true then CanNmPduNidPosition != CANNM_PDU_OFF if(CANNM_PDU_NID_POSITION != CANNM_PDU_OFF && CANNM_PDU_CBV_POSITION != CANNM_PDU_OFF) then CANNM_PDU_NID_POSITION != CANNM_PDU_CBV_POSITION if(CANNM_PDU_NID_POSITION != CANNM_PDU_OFF && CANNM_PDU_CBV_POSITION == CANNM_PDU_OFF) then CANNM_PDU_NID_POSITION = CANNM_PDU_BYTE0
CANNM_PDU_BYTE_0 Byte 0 is used
CANNM_PDU_BYTE_1 Byte 1 is used
CANNM_PDU_OFF Control Bit Vector is not used
CanNmPnEnabled(0..1)
Enables or disables support of partial networking. false: Partial networking Range not supported true: Partial networking supported dependency: If CanNmPnEnabled == True AND CanNmPassiveModeEnabled == False then CanNmComUserDataSupport = True
EcucBooleanParamDef
CanNmPnEraCalcEnabled(0..1)
Specifies if CanNm calculates the PN request information for external requests. (ERA) false: PN request are not calculated true: PN request are calculated dependency: only available if CanNmPnEnabled == true
EcucBooleanParamDef
CanNmPnHandleMultipleNetworkRequests(0..1)
Specifies if CanNm performs an additional transition from Network Mode to Repeat Message State (true) or not (false). dependency: only available if CanNmPnEnabled == true
EcucBooleanParamDef
CanNmRemoteSleepIndTime(0..1)
Timeout for Remote Sleep Indication. It defines the time in seconds how long it shall take to recognize that all other nodes are ready to sleep. dependency: CanNmRemoteSleepIndTime ≥ CanNmMsgCycleTime CanNmRemoteSleepIndTime is only required if CanNmRemoteSleepIndEnabled = true
EcucFloatParamDef(0.001..65.535)
CanNmRepeatMessageTime
Timeout for Repeat Message State. It defines the time in seconds how long the NM shall stay in the Repeat Message State.
EcucFloatParamDef(0..65.535)
CanNmRetryFirstMessageRequest(0..1)
Specifies if first message request in CanNm is repeated until accepted by CanIf.
EcucBooleanParamDef
CanNmTimeoutTime
Network Timeout for NM PDUs It denotes the time in seconds how long the NM shall stay in the Ready Sleep State before transition into the Prepare Bus-Sleep Mode is initiated. dependency: CanNmTimeoutTime > CanNmMsgCycleTime It shall be equal for all nodes in the cluster. It shall be greater than CanNmMsgCycleTime.
EcucFloatParamDef(0.002..65.535)
CanNmWaitBusSleepTime
Timeout for bus calm down phase. It denotes the time in seconds how long the NM shall stay in the Prepare Bus-Sleep Mode before transition into Bus-Sleep Mode shall take place. dependency: It shall be equal for all nodes in the cluster. It shall be long enough to make all Tx-buffer empty.
EcucFloatParamDef(0.001..65.535)
CanNmComMNetworkHandleRef
This reference points to the unique channel defined by the ComMChannel and provides access to the unique channel index value in ComMChannelId.
Symbolic name reference to [ ComMChannel ]
CanNmPnEraRxNSduRef(0..1)
Reference to a Pdu in the COM-Stack. The SduRef is required for every CanNm Channel, because ERA is reported per channel. dependency: only available if CanNmPnEnabled == true for at least one CanNm Channel.
Reference to [ Pdu ]
CanNmRxPdu(1..*)
This container is used to configure the Rx PDU properties that are used for the CanNm Channel.
CanNmRxPduId
This parameter defines the Rx PDU ID of the CanIf L-PDU range that is associated with this CanNm channel.
EcucIntegerParamDef (Symbolic Name generated for this parameter)
CanNmRxPduRef
Reference to the global PDU that is used by this CanNm channel.
Reference to [ Pdu ]
CanNmTxPdu(0..1)
This container contains the CanNmTxConfirmationPduId and the CanNmTxPduRef.
CanNmTxConfirmationPduId
Handle Id to be used by the Lower Layer to confirm the transmission of the CanNmTxPdu to the LowerLayer.
EcucIntegerParamDef (Symbolic Name generated for this parameter)
CanNmTxPduRef
Reference to [ Pdu ]
CanNmUserDataTxPdu(0..1)
This optional container is used to configure the UserNm PDU. This container is only available if CanNmComUserDataSupport is enabled. 1)第一步我们需要手动在EcuC添加两条关于NM发送报文的PDU的全局引用NM_xxx_Com2PduR,NM_xxx_PduR2CanNm。 2)在在Com模块配置一个ComIpu配置容器并引用EcuC中的NM_xxx_Com2PduR 3)在PduR模块配置一条从Com到CanNm的路由信息,PduRSrcPdu容器引用NM_xxx_Com2PduR,PduRDestPdu容易引用NM_xxx_PduR2CanNm 4)在CanNm模块的CanNmUserDataTxPdu容器中CanNmTxUserDataPduRef参数引用NM_xxx_PduR2CanNm
CanNmTxUserDataPduId
This parameter defines the Handle ID of the NM User Data I-PDU.
EcucIntegerParamDef (Symbolic Name generated for this parameter)
CanNmTxUserDataPduRef
Reference to the NM User Data I-PDU in the global PDU collection.
CanNmPnInfo(0..1)
PN information configuration
CanNmPnInfoLength
Specifies the length of the PN request information in the NM PDU. dependency: only valid if CanNmPnEnabled == true for at least one CanNm Channel.
EcucIntegerParamDef(1..7)
CanNmPnInfoOffset
Specifies the offset of the PN request information in the NM PDU dependency: only valid if CanNmPnEnabled == true for at least one CanNm Channel.
EcucIntegerParamDef(1..7)
CanNmPnFilterMaskByte(0..7)
PN information configuration
CanNmPnFilterMaskByteIndex
Index of the filter mask byte. Specifies the position within the filter mask byte array. dependency: only valid if CanNmPnEnabled == true for at least one CanNm Channel; CanNmPnFilterMaskByteIndex < CanNmPnInfoLength
EcucIntegerParamDef(0..6)
CanNmPnFilterMaskByteValue
Parameter to configure the filter mask byte dependency: only valid if CanNmPnEnabled == true for at least one CanNm Channel.
EcucIntegerParamDef(0..255)