Skip to content

Test Signal State Conflict Events

John-Wiens edited this page Jun 10, 2024 · 7 revisions

Tests for CmSignalStateConflictEvents

1. Protected Conflict

Inputs

  • A SPAT with protected conflict sent every 100 ms.
    • ProtectedMovementAllowed [2,6]
    • StopAndRemain [4]
  • A MAP at the same intersection sent every 1000 ms.

Test Script

Script-SignalStateConflict-Protected.csv

Output Topic

topic.CmSignalStateConflictEvents

Expected Output

Several State Conflict Events

Actual Output

Several events like

Topic: topic.CmSignalStateConflictEvents
Key: {"rsuId":"10.11.81.12","intersectionId":12109,"region":-1}
Offset: 310
Timestamp: 1711512500907
Value: 
{
	"eventGeneratedAt":1711512501016,
	"eventType":"SignalStateConflict",
	"intersectionID":12109,
	"roadRegulatorID":-1,
	"timestamp":1711512500892,
	"conflictType":"PROTECTED_MOVEMENT_ALLOWED",
	"firstConflictingSignalGroup":2,
	"firstConflictingSignalState":"PROTECTED_MOVEMENT_ALLOWED",
	"secondConflictingSignalGroup":6,
	"secondConflictingSignalState":"PROTECTED_MOVEMENT_ALLOWED",
	"source":"{\"rsuId\":\"10.11.81.12\",\"intersectionId\":12109,\"region\":-1}"
}

Comments

2. Permissive Conflict

Inputs

  • MAP
  • A SPAT with conflicting permissive movements.
    • PermissiveMovementAllowed [2,4,6]

Test Script

Script-SignalStateConflict-Permissive.csv

Expected Output

Signal State Conflict Events for each SPAT sent

Actual Output

No Events

Comments

Negative result