Python tools to dump CAN bus data from a Tesla vehicle using Enhauto S3XY buttons / The Commander
S3XY Commander can connect to two different CAN buses on a Tesla vehicle. With Wi-Fi enabled, it can forward the raw can data over Wi-Fi using the Panda protocol.
This project has only been tested on Model 3 2022. You should change the DBC file used if you are using a different vehicle. The DBC file is only used as a list of can message IDs to subscribe to.
Candash project was great help for understanding the Panda protocol.
-
Connect the S3XY Commander
-
Enable Wi-Fi in Commander settings in S3XY app
Now you may test the Wi-Fi Panda data using ScanMyTesla app. But make sure to disconnect after testing - only one device can be connected to Wi-Fi at a time
-
Connect your device (for example Raspberry Pi or a laptop) to the Commander's Wi-Fi
-
Check the hardcoded settings in s3xy-candump.py
-
Run the project:
python3 s3xy-candump.py
Currently two output formats are supported and enabled by default, and they should cover importing the data to variety of tools:
- candump - Should match with log exports of candump tool of can-utils
- savvycan - Should match with SavvyCAN / GVRET format.
SavvyCAN format can be used with make_cabana_route to import the dump into Openpilot Cabana
TESLA is a registered trademarks of Tesla Motors, Inc. This project has no affiliation with Tesla Motors, Inc. or Enhance Ltd. The terms Tesla, Enhauto and S3XY Commander are used strictly for identification purposes only. It is not implied that any part of this project is a product of, or approved by, Tesla Motors, Inc. or Enhance Ltd. All trademarks and registered trademarks are the property of their respective owners.