Page 1 of 1

Using CAN FD and CAN 2.0 at the same time

Posted: Wed 8. Nov 2023, 15:03
by nhmnn
Hello,

i am currently working on an application for development purposes. Therefore i got a quite unusual requirement on our can node.
Is it possible to receive CAN FD messages while sending CAN 2.0 messages on one channel via a PCAN-USB-FD (IPEH-004022) using the PCAN-Basic API ?
We noticed that the PCAN-View is capable of this. But only one of the protocols can be initialized and used via the API at the same time. Is there maybe a known workaround ?

Thanks !

Re: Using CAN FD and CAN 2.0 at the same time

Posted: Wed 8. Nov 2023, 15:07
by PEAK-Support
Yes, no Problem. When you call CAN-Write(...) you send a CAN Message Structure to the driver.
Simply do NOT set in the MsgType the BRS (Bit Rate Switch) Bit and do not SET the CAN-FD Bit.
Also keep the DLC to max. 8 . Then it is a 100% compatible CAN2.0a/b Frame.

Re: Using CAN FD and CAN 2.0 at the same time

Posted: Wed 8. Nov 2023, 15:59
by nhmnn
Thank you very much for your quick response.
Worked :)

Re: Using CAN FD and CAN 2.0 at the same time

Posted: Wed 8. Nov 2023, 17:13
by PEAK-Support
** problem solved - Topic closed **