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

USB to CAN Interface
Post Reply
fsolodovnik
Posts: 8
Joined: Fri 10. Sep 2021, 11:00

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

Post by fsolodovnik » Thu 12. Sep 2024, 19:18

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 10375 times
shared.trc
(18.78 KiB) Downloaded 10375 times
observer.trc
(22.92 KiB) Downloaded 10336 times
observer.trc
(22.92 KiB) Downloaded 10336 times
Best regards, Fedor Solodovnik

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

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

Post by PEAK-Support » Fri 13. Sep 2024, 07:28

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

Post Reply