Standard CAN broadcast: Difference between revisions
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== Standard CAN broadcast for RaceCapture and PodiumConnect == | == Standard CAN broadcast for RaceCapture and PodiumConnect == | ||
The following describes the standardized broadcast messages for RaceCapture and PodiumConnect devices. | |||
* '''Byte ordering''': Little Endian | |||
== Alert Messages == | == Alert Messages == | ||
Line 5: | Line 8: | ||
Messages are broadcasted in ASCII character format, with a maximum of 16 characters across two CAN messages. | Messages are broadcasted in ASCII character format, with a maximum of 16 characters across two CAN messages. | ||
Alert Messages are broadcast on CAN1. | |||
Message priority is 0 - 2, with 0 = normal priority used for pit-to car alerts, and 1 - 2 reserved for future use. | Message priority is 0 - 2, with 0 = normal priority used for pit-to car alerts, and 1 - 2 reserved for future use. | ||
Line 25: | Line 30: | ||
== Timing and Scoring integration == | == Timing and Scoring integration == | ||
CAN broadcast mapping for timing and scoring integration | CAN broadcast mapping for timing and scoring integration. | ||
This broadcast is enabled with the Lua script provided by the '''Timing and scoring CAN broadcast''' script preset. | |||
'''Base address:''' 0xA200 (41472) | '''Base address:''' 0xA200 (41472) |
Latest revision as of 01:19, 8 September 2020
Standard CAN broadcast for RaceCapture and PodiumConnect
The following describes the standardized broadcast messages for RaceCapture and PodiumConnect devices.
- Byte ordering: Little Endian
Alert Messages
This describes the CAN format for Pit to Car alert messages.
Messages are broadcasted in ASCII character format, with a maximum of 16 characters across two CAN messages.
Alert Messages are broadcast on CAN1.
Message priority is 0 - 2, with 0 = normal priority used for pit-to car alerts, and 1 - 2 reserved for future use.
Base address: 0xA100 (41216)
Address for message is calculated by the base address offset by priority:
- Priority 0 address: 0xA100 (41216) / 0xA101 (41217)
- Priority 1 address: 0xA102 (41218) / 0xA103 (41219)
- Priority 2 address: 0xA104 (41220) / 0xA105 (41221)
CAN ID | Byte 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
---|---|---|---|---|---|---|---|---|
Base Address | message character 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
Base Address + 1 | message character 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
Timing and Scoring integration
CAN broadcast mapping for timing and scoring integration.
This broadcast is enabled with the Lua script provided by the Timing and scoring CAN broadcast script preset.
Base address: 0xA200 (41472)
CAN ID | What | Offset | Length | Formula | Units | Notes |
---|---|---|---|---|---|---|
0xA200 (41472) | Last Timing & Scoring lap time | 0 | 2 | * .001 + 0.0 | min. | Last lap time as reported by timing and scoring system |
0xA200 (41472) | Position Overall | 2 | 1 | * 1 + 0 | ||
0xA200 (41472) | Position in Class | 3 | 1 | * 1 + 0 | ||
0xA200 (41472) | Competitor Number Ahead | 4 | 2 | * 1 + 0 | ||
0xA200 (41472) | Competitor Number Behind | 6 | 2 | * 1 + 0 | ||
0xA201 (41473) | Gap to Competitor Ahead | 0 | 2 | * 0.1 + 0.0 | sec. | Value will be zero if gap is 1 lap or greater |
0xA201 (41473) | Gap to Competitor Behind | 2 | 2 | * 0.1 + 0.0 | sec. | Value will be zero if gap is 1 lap or greater |
0xA201 (41473) | Laps to Competitor Ahead | 4 | 1 | * 1 + 0 | ||
0xA201 (41473) | Laps to Competitor Behind | 5 | 1 | * 1 + 0 | ||
0xA201 (41473) | Full Course Flag state | 6 | 1 | * 1 + 0 | 0=None; 1=Green; 2=Yellow; 3=Red; 4=Finish | |
0xA201 (41473) | Competitor Flag State | 7 | 1 | * 1 + 0 | 0=no flag; 1=Black Flag |