Multiple CAN Rx - MBDT

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Multiple CAN Rx - MBDT

Jump to solution
1,608 Views
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 Kudos
Reply
1 Solution
1,584 Views
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

View solution in original post

0 Kudos
Reply
2 Replies
1,585 Views
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 Kudos
Reply
232 Views
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 Kudos
Reply