Page 1 of 1

PCAN-View timestamp not exact when sharing PCAN-USB adapter

Posted: Thu 12. Sep 2024, 19:18
by fsolodovnik
Dear PCAN team

I have compared timestamps recorded by 2 PCAN-View instances
One PCAN-View shared the adapter with the app that actually sent the messages on CAN bus and
another PCANview instance used another adapter connected to the same bus

The observed timestamp difference is about 500 microseconds

I found the solution - use another adapter for timestamp recording
shared.trc
(18.78 KiB) Downloaded 10397 times
shared.trc
(18.78 KiB) Downloaded 10397 times
observer.trc
(22.92 KiB) Downloaded 10364 times
observer.trc
(22.92 KiB) Downloaded 10364 times
Best regards, Fedor Solodovnik

Re: PCAN-View timestamp not exact when sharing PCAN-USB adapter

Posted: Fri 13. Sep 2024, 07:28
by PEAK-Support
You need to understand that a PCAN-View, connected to the same Hardware that your own application use, receive the CAN messages via the internal CAN Simulation NET.
The API directly push the CAN Frames from your Application into the Software Queue from the PCAN-View.

The real CAN Interface need to receive the CAN Frames from the driver queue, transport via USB to the Firmware of the Device, fill the CAN Controller, send the Frame physically on the BUS.
Here we have Arbitration etc. Then the other real CAN-USB Device must do all the things too.
Receive the CAN Frame from the CAN Bus into his CAN Core, Firmware send via USB to the PC driver, the driver push the CAN Frame into the Application / PCAN-View queue.