Skip to main content

Module cam_transmission

Module cam_transmission 

Source
Expand description

CAM Transmission Management — ETSI TS 103 900 V2.3.1 (2026-05), the latest version.

Mirrors CAMTransmissionManagement in flexstack/facilities/ca_basic_service/cam_transmission_management.py.

Key standard-compliance additions:

  • Timer-based (T_CheckCamGen) instead of GPS-callback-reactive (§6.1.2, Annex B).
  • T_GenCam is initialised to T_GenCamMax (not T_GenCamMin) as mandated by §6.1.2.
  • Condition 1 (dynamics: heading/position/speed) and Condition 2 (time) are both evaluated on every T_CheckCamGen tick.
  • A condition-1 CAM sets T_GenCam to the elapsed time; N_GenCam consecutive condition-2 CAMs reset it to T_GenCamMax; the first CAM keeps T_GenCamMax.
  • Low-Frequency, Special-Vehicle, Very-Low-Frequency and Two-Wheeler extension containers are included according to §6.1.2.
  • GN max packet lifetime 950 ms, below 1 s (TS 102 868-2 TP/CAM/MSD/PAR/BV-03; single-hop BTP-B/SHB per §6.1.1 and §5.3.4; V2.2.1 §5.3.4.1 allows at most 1000 ms, V2.3.1 leaves it to the NTL protocol stack).
  • Ingestion into LDM on transmission if LDM adapter is configured.

Structs§

CAMTransmissionManagement
CAM Transmission Management — ETSI TS 103 900 V2.3.1 §6.1.
CooperativeAwarenessMessage
High-level Cooperative Awareness Message builder / container.
InVehicleData
Latest in-vehicle data provided to the CA basic service (ETSI TS 103 900 V2.3.1 clauses 5.2 and 7.1): the next generated CAM carries these values. None keeps the static value of VehicleData (drive direction, exterior lights) or omits the optional field (accelerationControl). The bit arrays are indexed as ACCELERATION_CONTROL_BITS / EXTERIOR_LIGHTS_BITS.
PathEntry
TransmissionState
VehicleData
Static vehicle data used to populate every CAM.

Constants§

ACCELERATION_CONTROL_BITS
AccelerationControl BIT STRING (SIZE(7)) bit names (ETSI TS 102 894-2 CDD).
CAM_PACKET_LIFETIME_S
GN packet lifetime of CAMs [s]: below 1 s (TS 102 868-2 TP/CAM/MSD/PAR/BV-03; TS 103 900 V2.2.1 §5.3.4.1: at most 1000 ms); 950 ms = 19 x 50 ms.
EXTERIOR_LIGHTS_BITS
ExteriorLights BIT STRING (SIZE(8)) bit names (ETSI TS 102 894-2 CDD).
N_GEN_CAM_DEFAULT
N_GenCam: consecutive condition-2 CAMs after which T_GenCam returns to T_GenCamMax (§6.1.2).
TIMESTAMP_TOLERANCE_MS
Tolerance of the elapsed-time comparisons [ms]: the evaluations are at least T_CheckCamGen apart, but millisecond truncation of the timestamps can make the measured interval 1 ms shorter.
TWO_WHEELER_STATION_TYPES
Station types that must include the Two-Wheeler extension container (§6.1.2): cyclist(2), moped(3), motorcycle(4).
T_CHECK_CAM_GEN_MS
T_CheckCamGen [ms]: timer period for condition evaluation (≤ T_GenCamMin).
T_GEN_CAM_DCC_MS
Default T_GenCam_DCC [ms] used until a DCC entity provides a value.
T_GEN_CAM_LF_MS
Low-frequency container minimum interval [ms].
T_GEN_CAM_MAX_MS
T_GenCamMax [ms]: maximum CAM generation interval (1 Hz minimum rate).
T_GEN_CAM_MIN_MS
T_GenCamMin [ms]: minimum CAM generation interval (10 Hz maximum rate).
T_GEN_CAM_SPECIAL_MS
Special-vehicle container minimum interval [ms].
T_GEN_CAM_VLF_MS
Very-low-frequency container minimum interval [ms].
VEHICLE_ROLE_NAMES
VehicleRole enum names indexed by integer value (§6.1.2 / CDD).

Functions§

create_altitude_confidence
Translates the epv TPV value (in metres) to the altitude confidence value.
create_heading_confidence
Translates the epd TPV value (in degrees) to the heading confidence value.
create_position_confidence
Translates the epx and epy TPV values (in metres) to the position confidence ellipse value.
haversine_m
Return the great-circle distance in metres between two WGS-84 points.