Multiple CAN Rx - MBDT

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Multiple CAN Rx - MBDT

跳至解决方案
1,614 次查看
C_Zuercher_APR
Contributor III

Hi,

I'm trying to recieve multiple CAN Messages and then retransmit them over the CAN Bus (to make sure the data is being correctly recieved.

I'm trying to do this with messages at similar intervals, i.e: I'm trying to read 2 CAN Messages, each one sent at 2ms intervals, if that makes sense?

Unfortunately, I'm running into some fundamental issues:

- With the attached model, the only message being transmitted is 0x400, regardless of the ID of the message being recieved; message 1D8 or 1D7

- When both messages are being transmitted from my PCAN-USB, message 0x400 then doesn't contain the contents of message 0x1D8 and instead appears to fairly sporadically transmit the contents of 0x1D7, only at really strange intervals.

I've tried with Rx FIFO enabled and RX FIFO disabled but I still can't get it to work.

I suspect I've got some fundamentally incorrect settings however I've no clue what they are.

Any help is greatly appreciated.

Thanks,

Crispin

0 项奖励
回复
1 解答
1,590 次查看
C_Zuercher_APR
Contributor III

Hi,

I Found what I believe to be the solution; if I move the CAN Tx blocks to their own timed subsystems (see attached .zip file), the CAN Tx messages appear to behave as they should, according to the PCAN-VIEW anyway.

Thanks,

Crispin

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,591 次查看
C_Zuercher_APR
Contributor III

Hi,

I Found what I believe to be the solution; if I move the CAN Tx blocks to their own timed subsystems (see attached .zip file), the CAN Tx messages appear to behave as they should, according to the PCAN-VIEW anyway.

Thanks,

Crispin

0 项奖励
回复
238 次查看
MReza
Contributor II
Hi there, I was facing the same issue while trying to receive multiple can messages and split the data bytes accordingly. Could you guide me on this

https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Multiple-CAN-receive-issue-MBDT/m-p/210...

Ive explained the issue in the above community post
0 项奖励
回复