# ktm-can: decoding KTM motorcycle CAN messages

> ktm-can documents and parses CAN messages observed on a 2020 KTM 690 Enduro R motorcycle. Its Python decoder maps message IDs to fields including engine speed, throttle, gear, wheel speed and brake pressure; scripts inspect live and captured traffic. The author confirmed the documented data on that motorcycle.

- Type: Case study
- Targets: Protocol
- Category: Independent reconstruction cases
- Relationship: Independent reconstruction project
- Sources reviewed: 2026-11-06
- Added to the catalog: 2026-11-09
- Original resource: <https://github.com/blalor/ktm-can>
- Primary source: <https://github.com/blalor/ktm-can/blob/299b4e080168986ab535b81b81e2a9196f0c8c66/README.md>
- Catalog page: <https://awesomerea.org/resources/ktm-can-case/>
- Record JSON: <https://awesomerea.org/resources/ktm-can-case/record.json>
- Chinese version: [简体中文](https://awesomerea.org/zh/resources/ktm-can-case/index.md)

## Requirements & limits

- **Prerequisites:** Python 3.8 or later; live-bus inspection also requires CAN hardware and python-can.
- **Limits:** The documented data was confirmed on the author's 2020 KTM 690 Enduro R; other models remain unverified.
- **License:** No licence file in the repository.

## Primary sources

1. <https://github.com/blalor/ktm-can/blob/299b4e080168986ab535b81b81e2a9196f0c8c66/README.md>
2. <https://github.com/blalor/ktm-can/blob/299b4e080168986ab535b81b81e2a9196f0c8c66/setup.py>

## More in Protocols

- [Xbox-Smartglass-Core: an Xbox One SmartGlass protocol client](https://awesomerea.org/resources/xbox-smartglass-core-python-case/index.md) · Case study
- [Comet: reconstructing GOG Galaxy's game communication service](https://awesomerea.org/resources/comet-gog-service-case/index.md) · Case study
- [PS3Sharp: reconstructing the PS3 TMAPI debug protocol](https://awesomerea.org/resources/ps3sharp-tmapi-case/index.md) · Case study
- [PFire: reconstructing an XFire server from its messaging protocol](https://awesomerea.org/resources/pfire-case/index.md) · Case study
- [poggadaj: rebuilding Gadu-Gadu backend services](https://awesomerea.org/resources/poggadaj-case/index.md) · Case study
- [volvo_vida_db: reconstructing Volvo D2 ECU communication from VIDA](https://awesomerea.org/resources/volvo-vida-d2-protocol-case/index.md) · Case study

## About this entry

The description was reviewed against primary sources.
Original editorial content: MIT. Linked projects, papers and assets retain their own rights and licenses.
