Search code examples
autosar

AUTOSAR CanTpAddress and ISO 15765 CAN N_PDU relation


CanTpAddress in AUTOSAR is indirectly mapped to which field of ISO 15765 Specification for Functional Addressing purpose? Shown below some snippets for reference Some meaningful implementation related information related to CanTpAddress field will help me a lot. I am assuming it is applicable only for Functional Diagnostic Request type purpose. enter image description here

enter image description here

enter image description here

enter image description here


Solution

  • The CanTpAddress is for both FUNCTIONAL and PHYSICAL addressing.

    They correlate to ISO-15765

    • N_SA SourceAddress -> CanTpAddress.tpAddress of CanTpNode referenced by CanTpConnection.transmitter
    • N_TA TargetAddress -> CanTpAddress.tpAddress of CanTpNode referenced by CanTpConnection.receivers of physical or directly in CanTpConnection.multicast for functional
    • N_AE AddressExtension (Extended/Mied Addressing) -> CanTpAddress.tpAddressExtensionValue
    • N_TAtype functional req vs physical req/res CanTpConnection.taType