Project

General

Profile

Actions

Support Request #12847

closed

Hardwaretime Vector Device

Added by hidden over 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Customer:
AUDI
Department:
Requester's Priority:
Normal
Support Level:
2nd Level
Resolution:
No Customer Feedback
Product Issue Numbers:
Affected Products:
Platform:
Topic:
DeviceTB::Common
FAQ Links:

Description

Supportanfrage

in den Vector Device Receivern gibt es das Property „add_hardwaretime_info“. Leider finde ich keine Doku dazu. Wie kann ich auf diesen Zeitstempel der Vectordevices zugreifen?

Lösung

das Feature wird unterstützt und beinhaltet die Hardwarezeit, die aus der Vector-Box gelesen wird.

Mit

tTimeStamp tmHardwareTime = -1;
object_ptr<const ISampleInfo> pSampleInfo;
if (IS_OK(pReadSample->GetSampleInfo(pSampleInfo)))
{
   const cVariant oDefHWTime((tTimeStamp)0);
   tmHardwareTime = get_hash_value(*pSampleInfo, ISampleInfo::SAI_DeviceOriginalTime, oDefHWTime).GetInt64();
}

kann diese ausgelesen werden.

Derzeitig gibt es das Feature aber nur für CAN und CANFD.

Actions #1

Updated by hidden over 3 years ago

  • Author changed from hidden to hidden
Actions #2

Updated by hidden over 3 years ago

  • Status changed from New to In Progress
  • Topic set to DeviceTB::Common
Actions #3

Updated by hidden over 3 years ago

Hallo Johannes,

laut internen Kommentaren:
"If true, the device hardware time of a message will be put to the MediaSampleInfo!"

@fn ist das Feature noch unterstützt?

Actions #5

Updated by hidden over 3 years ago

  • Status changed from In Progress to Customer Feedback Required

Hallo Johannes,

ja, das Feature wird unterstützt und beinhaltet die Hardwarezeit, die aus der Vector-Box gelesen wird.

Mit

tTimeStamp tmHardwareTime = -1;
object_ptr<const ISampleInfo> pSampleInfo;
if (IS_OK(pReadSample->GetSampleInfo(pSampleInfo)))
{
   const cVariant oDefHWTime((tTimeStamp)0);
   tmHardwareTime = get_hash_value(*pSampleInfo, ISampleInfo::SAI_DeviceOriginalTime, oDefHWTime).GetInt64();
}

kann diese ausgelesen werden.

Derzeitig gibt es das Feature aber nur für CAN und CANFD.

Gruß
Frank

Actions #7

Updated by hidden over 3 years ago

  • Project changed from Public Support to 11
Actions #8

Updated by hidden over 3 years ago

  • Project changed from 11 to Public Support
  • Description updated (diff)
  • Status changed from Customer Feedback Required to To Be Closed
  • Private changed from Yes to No
  • Resolution set to No Customer Feedback
Actions #9

Updated by hidden about 3 years ago

Hallo Frank,

vielen Dank für die Info.

VG,
Johannes

Actions #11

Updated by hidden over 2 years ago

  • Status changed from To Be Closed to Closed
Actions

Also available in: Atom PDF