riebl / artery

OMNeT++ V2X simulation framework for ETSI ITS-G5
GNU General Public License v2.0
202 stars 128 forks source link

Traces in DENM #313

Closed Ambica2022 closed 7 months ago

Ambica2022 commented 7 months ago

Hi,

How to use traces in DENM message?Currently I made the following code based on the code available in caservice.cc ......but not sure how to decode it to be used in indicate method.

auto path_history = vanetza::asn1::allocate(); for (unsigned i = 0; i < 23; ++i) { PathPoint pathPoint = vanetza::asn1::allocate(); pathPoint->pathDeltaTime = vanetza::asn1::allocate(); (pathPoint->pathDeltaTime) = (i + 1) PathDeltaTime_tenMilliSecondsInPast 10; pathPoint->pathPosition.deltaLatitude = DeltaLatitude_unavailable; pathPoint->pathPosition.deltaLongitude = DeltaLongitude_unavailable; pathPoint->pathPosition.deltaAltitude = DeltaAltitude_unavailable; ASN_SEQUENCE_ADD(path_history, pathPoint); } asn_sequence_add(&message->denm.location->traces, path_history);

Is it the way? how to decode traces to be used in indicate method? Any clue? Thanks in advance.

Regards, Ambica