Using CAN FD and CAN 2.0 at the same time

The free CAN Software API (Application Programming Interface) for Windows®
Locked
nhmnn
Posts: 2
Joined: Wed 8. Nov 2023, 14:13

Using CAN FD and CAN 2.0 at the same time

Post by nhmnn » Wed 8. Nov 2023, 15:03

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 !

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

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

Post by PEAK-Support » Wed 8. Nov 2023, 15:07

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.
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

nhmnn
Posts: 2
Joined: Wed 8. Nov 2023, 14:13

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

Post by nhmnn » Wed 8. Nov 2023, 15:59

Thank you very much for your quick response.
Worked :)

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

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

Post by PEAK-Support » Wed 8. Nov 2023, 17:13

** problem solved - Topic closed **
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

Locked