For 2024+ KTM Super Duke R EVO 1390
Most of the information does apply to other KTM models as well.
Amazon sells Euro 5 to OBD2 adapters for around $10.
Indexes are 0 based
D[N] refers to the Nth byte of the data payload
B[N] refers to the Nth bit of the byte
RPM
Throttle position
- B[4]: KillSwitch
- B[0-4]: Gear
- B[5]: Clutch disengaged
B[0] to B[3]: Anti-Wheelie mode
Slip adjuster 9 = 00100100 1 = 00001000
MTC off changes a few parameters in D[0], D[1], D[2], D[3]
- B[3]: Left Turn Signal Pressed
- B[4]: Turn Signal Reset Pressed
- B[5]: Right Turn Signal Pressed
- B[6]: C1 pressed
- B[7]: C2 pressed
- B[0]: cruise control pressed
- B[3]: +res pressed
- B[4]: -set pressed
- B[6]: Horn pressed
- B[7]: High beam pressed (held when toggled)
- B[0]: Right dpad
- B[1]: Left dpad
- B[2]: Up dpad
- B[3]: Down dpad
- B[4]: Center dpad
- B[7]: Always set to 1?
- B[6]: Always set to 1?
Front brake pressure, 0 to 8500+
- B[4]: Front brake pressed
- B[5]: Rear brake pressed
- B[7]: Orange light on dashboard
- B[4]: Coming home long enabled. 0 if disabled
- B[5]: Coming home short enabled. 0 if disabled
- B[0],B[1]: Set when lighting system configured as NOT INSTALLED
- B[6]: Right turn signal on
- B[7]: Left turn signal on
Both are set when Hazards are on
- B[3]: High beam on
- B[7]: DRL on
Suspension profile
- 00000000: Automatic
- 10111011: Rain
- 01100110: Comfort
- 01000100: Street
- 00100010: Sport
- 10011001: Track (any)
- 10101010: Pro (any)
Preload
- 01101000: auto high
- 01011000: auto standard
- 01100000: auto low
- 01010000: 100%
- 11011000: 95%
- 01001000: 90%
- 00001000: 10%
- 10010000: 5%
- 00000000: 0%
- B[6]: Anti dive enabled
Several dumps are available.
They can be imported in SavvyCan or replayed over a virtual CAN bus.
Example:
# Create a virtual CAN bus
sudo modprobe vcan
sudo ip link add dev vcan0 type vcan
sudo ip link set up vcan0
# will play the log file xxx.log on the vcan0 interface forever
canplayer vcan0=can0 -l i -I xxx.log
- Boot sequence with killswitch off
- Boot sequence with more fuel in tank / warmer engine
- Toggling on and off the killswitch
- Starting the engine
- Various buttons pressed
- DRL on/off
- Toggling High Beam
- Toggling Turn Signals
- Changing the Engine Brake
- Front brake pressed
- Rear brake pressed
- Changing ride mode from Performance to Rain
- Changing ride mode from Rain to Sport
- Changing Slip Adjustment from 7 to 9 to 7
- Pulling the clutch lever