Download the PHP package andywaite/sim-telemetry-parser without Composer
On this page you can find all versions of the php package andywaite/sim-telemetry-parser. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download andywaite/sim-telemetry-parser
More information about andywaite/sim-telemetry-parser
Files in andywaite/sim-telemetry-parser
Package sim-telemetry-parser
Short Description Library to parse UDP packets from racing sims. Currently supports Codemasters' F1 2020 only.
License GPL-3.0-or-later
Informations about the package sim-telemetry-parser
Library to parse UDP packets from sim racing games
Currently only supports Codemasters F1 2020
See: https://forums.codemasters.com/topic/54423-f1%C2%AE-2020-udp-specification/
Many sim racing games can send telemetry data over the network to a 3rd party app.
The data format varies from game-to-game, but often includes:
- Car data like speed & engine RPM
- Control data like throttle position & steering angle
- Lap data like current lap time and fastest sectors
The data sent in the UDP packets comes through as a raw binary stream. The aim of this library is to take that binary stream and turn it into something we can work with in PHP.
Note that this library does NOT handle receiving the binary stream or display it - merely parsing the raw data and turning it into a friendly model.
How to use
1) Use Composer to install
$ composer install andywaite/sim-telemetry-parser
2) Use it!
For a scrappy demo of it in use, see demo.php
Types of model that can be returned by parse function
AndyWaite\SimTelemetryParser\Game\F12020\PacketCarSetupDataAndyWaite\SimTelemetryParser\Game\F12020\PacketCarStatusDataAndyWaite\SimTelemetryParser\Game\F12020\PacketCarTelemetryDataAndyWaite\SimTelemetryParser\Game\F12020\PacketEventDataAndyWaite\SimTelemetryParser\Game\F12020\PacketFinalClassificationDataAndyWaite\SimTelemetryParser\Game\F12020\PacketHeaderAndyWaite\SimTelemetryParser\Game\F12020\PacketLapDataAndyWaite\SimTelemetryParser\Game\F12020\PacketLobbyInfoDataAndyWaite\SimTelemetryParser\Game\F12020\PacketMotionDataAndyWaite\SimTelemetryParser\Game\F12020\PacketParticipantsDataAndyWaite\SimTelemetryParser\Game\F12020\PacketSessionDataAndyWaite\SimTelemetryParser\Game\F12020\FastestLapAndyWaite\SimTelemetryParser\Game\F12020\PenaltyAndyWaite\SimTelemetryParser\Game\F12020\RaceWinnerAndyWaite\SimTelemetryParser\Game\F12020\RetirementAndyWaite\SimTelemetryParser\Game\F12020\SpeedTrapAndyWaite\SimTelemetryParser\Game\F12020\TeamMateInPits
Future development
I plan to write a much nicer server application & visualiser which will use this library.
For a complete reference of packets & their contents, see: https://forums.codemasters.com/topic/54423-f1%C2%AE-2020-udp-specification/