Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

How to take timestamp from Transmitted CAN frame ?

Hello,

 

Timestamp from Received CAN frame is simply get as...

NCTYPE_CAN_STRUCT *RxFrame 

... RxFrame->Timestamp ...

 

For Transmitted frame I use: 

ncGetAttribute(hCan, NC_ATTR_ABS_TIME, 8, &TxTime);

ncWrite(hCan, sizeof(Transmit), &Transmit);

 

But sometimes timestamp of Rx frame is BEFORE Tx timestamp ?!?!?!

 

Is there any other way to get real Tx frame timestamp  - not by ncGetAttribute(...) ?

 

Thank you in advance

 

Petko G.

0 Kudos
Message 1 of 1
(6,556 Views)