Skip to content

Test Signal Group Alignment Events

Ivan Yourshaw edited this page Aug 20, 2025 · 9 revisions

Signal Group Alignment Event

Note: Signal Group Alignment Events can be configured to enable aggregation using the map.spat.message.assessment.aggregateSignalGroupAlignmentEvents configuration setting, or the ENABLE_AGGREGATE_SIGNAL_GROUP_ALIGNMENT_EVENTS environment variable. If aggregation is enabled, events will be delayed by up to the configured aggregation.interval, which is 60 seconds by default.

1. Should produce events

Inputs

At the same intersection

  • MAPs every 1000 ms with signal goups 2, 4, 6
  • SPATs every 100 ms with signal groups 3, 5, 7

Test Script

SignalGroupAlignment-unaligned.csv

Output Topics

If aggregation is enabled, events are output to:

  • topic.CmSignalGroupAlignmentEventAggregation

If aggregation is disabled, events are output to:

  • topic.CmSignalGroupAlignmentEvents

Without Aggregation

Expected Output

Several Signal Group Alignment Events

Actual Output

Several events similar to:



Topic: topic.CmSignalGroupAlignmentEvents
Key: {"rsuId":"10.11.81.12","intersectionId":12109,"region":-1}
Value: 
{
	"eventGeneratedAt": 1755660420142,
	"eventType": "SignalGroupAlignment",
	"intersectionID": 12109,
	"roadRegulatorID": -1,
	"source": "10.11.81.12",
	"timestamp": 1755660420337,
	"spatSignalGroupIds": [
		3,
		5,
		7
	],
	"mapSignalGroupIds": [
		2,
		4,
		6
	]
}

Comments

With Aggregation

TODO

2. Should not produce events

Inputs

At Same Intersection, with matching signal groups 2, 4, 6:

  • MAP, send interval 1000 ms
  • SPAT, send interval 100 ms

Test Script

SignalGroupAlignment-aligned.csv

With or Without Aggregation

Expected Output

No events

Actual Output

No events

Comments

Clone this wiki locally