Skip to main content

Speed Violation Monitoring

Monitor and report speed limit violations using the GS command.

Setup

1. Define Speed Limit

# Configure speed limit S00 to trigger over 80 mph
>SGS0010800<

2. Create Events

# Report when speed exceeds threshold
>SED10NA0;S00+<

# Report when speed returns below threshold
>SED11NA0;S00-<

3. Track Over-Speed Time

The built-in CS counter accumulates total time spent over the configured speed limit:

# Set the over-speed threshold to 80 mph
>SXACST0800<

# Query over-speed counter
>QXACSV<

# Expected response example (300 seconds = 5 minutes)
>RXACSV000000300<

Include in reports:

# Add CS extended tag to reports
>SXAEFA;CS<

4. Prevent Report Spam (Optional)

Add a delay if speed fluctuates around the threshold:

# Set 10-second persistence for S00 transitions
>SXASP01S00010010<

Multiple Speed Zones

# Set S00 city speed limit (50 mph)
>SGS0010500<
# Set S01 highway speed limit (80 mph)
>SGS0110800<
# Set S02 absolute maximum speed (100 mph)
>SGS0211000<

# Report over city speed
>SED10NA0;S00+<
# Report over highway speed
>SED11NA0;S01+<
# Report over absolute max speed
>SED12NA0;S02+<

Download Configuration Script

Download this scenario script: speed-violation.tmf