Commit 932b8e7e authored by berge's avatar berge
Browse files

Fixed decoding issue with timestampIts (/\!\ modified ASN.1 file)....

Fixed decoding issue with timestampIts (/\!\ modified ASN.1 file). Contribution from matthew.banks@cohdawireless.com
parent c8135963
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -412,7 +412,8 @@ SteeringWheelAngleValue ::= INTEGER {straight(0), onePointFiveDegreesToRight(-1)

SteeringWheelAngleConfidence ::= INTEGER {equalOrWithinOnePointFiveDegree (1), outOfRange(126), unavailable(127)} (1..127)

TimestampIts ::= INTEGER {utcStartOf2004(0), oneMillisecAfterUTCStartOf2004(1)} (0..4398046511103)
TimestampIts ::= BIT STRING(SIZE(42))  -- units of milliseconds, 7 byte
--TimestampIts ::= INTEGER {utcStartOf2004(0), oneMillisecAfterUTCStartOf2004(1)} (0..4398046511103)

VehicleRole ::= ENUMERATED {default(0), publicTransport(1), specialTransport(2), dangerousGoods(3), roadWork(4), rescue(5), emergency(6), safetyCar(7), agriculture(8),commercial(9),military(10),roadOperator(11),taxi(12), reserved1(13), reserved2(14), reserved3(15)}

+8 −1
Original line number Diff line number Diff line
@@ -16,8 +16,15 @@ UNALIGNED
DENM

#.FN_BODY TimestampIts
  offset = dissect_per_constrained_integer_64b(tvb, offset, actx, tree, hf_index, 0U, G_GUINT64_CONSTANT(4398046511103), NULL, FALSE);
#  offset = dissect_per_constrained_integer_64b(tvb, offset, actx, tree, hf_index, 0U, 4398046511103ULL, NULL, FALSE);
#.END
#
# Modify ASN.1
#
# TimestampIts ::= BIT STRING(SIZE(42))  -- units of milliseconds, 7 byte
# --TimestampIts ::= INTEGER {utcStartOf2004(0), oneMillisecAfterUTCStartOf2004(1)} (0..4398046511103)
#
#

#.FN_BODY DangerousGoodsExtended/companyName
  offset=dissect_per_octet_string(tvb, offset, actx, tree, hf_index, NO_BOUND, NO_BOUND, FALSE, NULL);