Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
AUTOSAR com 堆栈中静态和动态 L-PDUS 的用途,以及何时使用(请提供一个示例),如果我没有配置,我将如何知道它的动态或静态 L-PDU。
静态 L-PDU 用它们的 ID 定义,以后不能更改。动态 L-PDU 可以在运行时更改其 CanId。对于动态 L-PDU,您还需要启用 DynamicTx API,例如CanIf_SetDynamicTxId()并使用它来设置实际的 CanId。
CanIf_SetDynamicTxId()
我建议阅读 AUTOSAR_SWS_CanInterface.pdf 中的第 7.3、7.4 章(以及缩写/首字母缩略词)。此外,CH。10 通常解释配置元素。