Support Request #12847
closed
Hardwaretime Vector Device
Added by hidden over 3 years ago.
Updated over 2 years ago.
Requester's Priority:
Normal
Resolution:
No Customer Feedback
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.
- Author changed from hidden to hidden
- Status changed from New to In Progress
- Topic set to DeviceTB::Common
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?
- 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
- Project changed from Public Support to 11
- 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
Hallo Frank,
vielen Dank für die Info.
VG,
Johannes
- Status changed from To Be Closed to Closed
Also available in: Atom
PDF