Skip to content

Test Signal Group Alignment Events

Ivan Yourshaw edited this page Jan 31, 2025 · 9 revisions

Signal Group Alignment Event

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 Topic

If aggregation is enabled, events are output to:

  • topic.CmSignalGroupAlignmentNotificationAggregation

If aggregation is disabled, events are output to:

  • topic.CmSignalGroupAlignmentEvents

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}
Offset: 152
Timestamp: 1711511009489
Value: 
{
	"eventGeneratedAt":1711511009596,
	"eventType":"SignalGroupAlignment",
	"intersectionID":12109,
	"roadRegulatorID":0,
	"source":"{\"rsuId\":\"10.11.81.12\",\"intersectionId\":12109,\"region\":-1}",
	"timestamp":1711511009482,
	"spatSignalGroupIds":[3,5,7],
	"mapSignalGroupIds":[null,2,4,6]
}

Comments

  • Road Regulator ID property should be -1
  • mapSignalGroupIds has extra "null" in array

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

Expected Output

No Event

Actual Output

Topic: topic.CmSignalGroupAlignmentEvents
Key: {"rsuId":"10.11.81.12","intersectionId":12109,"region":-1}
Offset: 182
Timestamp: 1711511450554
Value: 
{
	"eventGeneratedAt":1711511450678,
	"eventType":"SignalGroupAlignment",
	"intersectionID":12109,
	"roadRegulatorID":0,
	"source":"{\"rsuId\":\"10.11.81.12\",\"intersectionId\":12109,\"region\":-1}",
	"timestamp":1711511450538,
	"spatSignalGroupIds":[2,4,6],
	"mapSignalGroupIds":[null,2,4,6]
}

Comments

  • Unexpected events
  • Map signal group IDs array has extraneous null
  • Road Regulator ID property should be -1

Clone this wiki locally