Hi,
I may have a setup, that is quite close to the one described above.
I am using the Onboard CAN-Bus Interface of the X20BB57/X20CP0483 and also have a use-case, where I have to read both - 11bit and 29bit CAN messages.
I tried the above solution, calling ArCanReceive twice, but I don’t see the extended messages arriving.
Before calling ArCanRecieve - I set the CANReceiver.Format to arCAN_29BIT or arCAN_11BIT;
I only get Frames, when the format is in arCAN_11BIT.
Any ideas?
Best regards
Thomas
Moderator: Moved this new question to a separate post.
“above” refers to the post here: CAN extended messages
Hello,
are you sure that the bus offers 11 and 29 bit identifiers ? Or in other words did you check with a CAN analyzer ?
Hi Oliver,
I am very sure, but I will verify with a CAN-Analyzer next time I am on that system.
The B&R setup is supposed to just monitor and visualize traffic on the CAN-Bus only .
There are 2 other applications on the same CAN-Network, that actually exchange that data.
I wanted to be sure, my Application with the ARCanReceiver was setup correctly.
I do not have a filter active in the FB (IDMask = arCAN_RECEIVE_ALL, and ID set to 0) ,
Just set the Format as default to arCAN_11BIT - which is working fine for CAN-Frames with IDs < 2047
I hoped to see a Status like Invalid ID, when the FB is set to 11BIT, and 29BIT frames arrive,
Just calling ARCanReceive twice seemed to be a bit odd - I thought the CAN-Frame is taken from FIFO,
and potentially lost with the second call of ARCanReceive.
Best
Thomas
The frames will not be lost … I tried and it works calling the FBK twice
1 Like