Issue about using CAN_Read API in PCAN-CCP

A free API for the Communication with Control Units based on the CAN Calibration Protocol (CCP) by ASAM for Windows®
Locked
Francredy
Posts: 3
Joined: Thu 5. Sep 2019, 13:36

Issue about using CAN_Read API in PCAN-CCP

Post by Francredy » Thu 5. Sep 2019, 14:01

i'm trying to using CAN_Read API to receive other CAN ID message periodically,but it happens that not every frame of other CAN ID messages can be received.

Does the CCP message receive mechanism had influence on CAN_Read API?

Is any workaround to fix this issue?

K.Wagner
Software Development
Software Development
Posts: 1080
Joined: Wed 22. Sep 2010, 13:36

Re: Issue about using CAN_Read API in PCAN-CCP

Post by K.Wagner » Thu 5. Sep 2019, 15:22

Hello,
Francredy wrote:Does the CCP message receive mechanism had influence on CAN_Read API?
YES. PCAN-CCP, as all other high layer protocols from PEAK-System, uses PCAN-Basic as transport protocol. If you use calls to PCAN-Basic API and PCAN-CCP API simultaneously using the same channel, then you are accessing the same reception queue, what turns in a concurrence between the APIs. In this way, a message read by one API is no more available for the other.
Francredy wrote:Is any workaround to fix this issue?
Yes, you have to use a PCAN channel per protocol, both connected to the same CAN network. In this way, each API has its own reception queue and receives the same amount of CAN messages.
Best regards,
Keneth

Locked