christoph2 / pyxcp

ASAM XCP in Python
http://pyxcp.rtfd.org
GNU Lesser General Public License v3.0
207 stars 64 forks source link

[Question] Retrieve timestamp from frame #141

Closed JavierCorado closed 1 year ago

JavierCorado commented 1 year ago

While looking at the documentation it mentions that after the identification and before the data fields there is a timestamp in the XCP message frame.

Is there a method inside the master that could achieve this? Or would we have to retrieve the raw data to access this value? This would be for DAQ and polling

I noticed that in the base transport layer, there is a timestamp, but is this the same one that I am referring to?

image

christoph2 commented 1 year ago

Well, there's a more or less confusing hierarchy of timestamps:

But the story continues, hardware interfaces may also generate timestamps (these clock-sources are currently NOT provided by pyxcp), for example