【AUTOSAR-IpduM】-2.1-创建并配置一个发送TX的(Multiplexed-I-PDU)多路复用

该博客详细介绍了如何在AUTOSAR中配置一个发送的Multiplexed-I-PDU多路复用帧,包括在ARXML中创建接收帧、在CFG中导入ARXML文件、ECUC、CANIF、PduR、COM和Ipdum模块的变化,以及测试CAN log的过程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

点击返回「《Autosar_BSW高阶配置》总目录」

案列背景(共27页精讲):
手把手教您在CFG中配置一个接收TX的(Multiplexed-I-PDU)多路复用Frame。并附上配置后的测试CAN log。

在“【ARXML专题】_3_在CANFD或CAN2.0的系统描述ARXML文件中创建Multiplexed多路复用信号https://blog.csdn.net/qfmzhu/article/details/111999715”中,我们已经掌握了使用AUTOSAR System Description Network Explorer工具在ARXML文件中实现Multiplexor多路复用Frame。下面创建一个如下的多路复用Frame :Test_ID_212:

  • 信号Static_Part_Signal_1, Static_Part_Signal_2不随多路复用信号(Multiplexor Signal,简称: Multiplexor)Pack_Number变化;
  • 多路复用信号Pack_Number =0时,发送信号Cell_1_Voltage, Cell_2_Voltage, Cell_3_Voltage;
  • 多路复用信号Pack_Number =1时,发送信号Cell_4_Voltage, Cell_5_Voltage, Cell_6_Voltage;
  • 多路复用信号Pack_Number =2时,发送信号Cell_7_Voltage, Cell_8_Voltage, Cell_9_Voltage;

目录

1 在Arxml中创建一个接收的多路复用Frame

2 CFG导入带多路复用Frame的ARXML

2.1 ECUC模块变化

2.2 CANIF模块变化

### S32K Microcontroller CAN FD External Loopback Mode Configuration and Usage In automotive applications, the Controller Area Network with Flexible Data-rate (CAN FD) allows higher data rates within a single message compared to traditional CAN. For testing purposes, configuring an external loopback mode on the S32K series microcontrollers can be beneficial as it enables sending messages that are immediately received by another channel of the same controller or even different controllers connected externally. To configure the CAN FD interface into external loopback mode: #### Setting Up Hardware Connections Ensure physical connections between two separate CAN transceivers linked via their differential pairs (CAN_H and CAN_L). One end connects to TX pins while the other connects to RX pins ensuring proper termination resistors are present at each node[^1]. #### Software Initialization Steps The following code snippet demonstrates initializing the CAN module for operation in external loopback using the MCAL layer provided by NXP's AutoSAR implementation specific to S32K devices: ```c #include "Can.h" void Can_InitExternalLoopBack(void){ /* Initialize CAN driver */ CanDrv_Init(); /* Configure CAN FD settings including bitrate switch support */ Can_PduType TxPdu; Can_SetControllerMode(CAN_CHANNEL_0, CAN_MODE_CONFIGURATION); /* Set up filter masks/acceptance codes if necessary */ Can_SetFilterMask(0xFF, 0xFF); // Example mask /* Enable External Loop Back Mode */ Can_EnableExternalLoopBack(CAN_CHANNEL_0); /* Start communication after setting all parameters */ Can_StartCommunication(CAN_CHANNEL_0); } ``` This function initializes the CAN peripheral according to requirements such as enabling flexible data rate features which may involve changing bit timing configurations dynamically during transmission based upon whether standard or extended frames are being used[^2]. For actual message transmission/reception under this setup, one would typically send out PDUs through `Can_Write()` API calls targeting PDU IDs associated with transmit buffers configured earlier; meanwhile receiving them back over receive buffer(s). #### Testing Considerations When performing tests in external loopback scenarios, ensure both ends operate synchronously regarding baudrates especially when transitioning from arbitration phase speeds to payload phases where differing rates might apply depending on network design choices made previously. --related questions-- 1. What tools are recommended for analyzing waveforms generated during CAN FD transmissions? 2. How does altering CAN FD bit timings affect overall system performance? 3. Are there any limitations imposed by hardware or software concerning maximum achievable throughput in external loopback setups? 4. In what situations should internal versus external loopbacks be preferred for diagnostic activities?
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

汽车电子助手

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值