Debugging Using CANking

From MotoHawk
Jump to navigationJump to search

Kvaser CANKing can be used to test communication with the ECU.

CANKing can be downloaded from the Optional Files page of the downloads section of MotoTron.com.

  1. Open CANKing from the start menu
  2. Select Template
    CANking new project.PNG
  3. Select CAN Kingdom Basic
    CANking template.PNG
  4. In the Select Formatters window click Standard Text Format in the Active Formatters in Order of Execution list and click the Options button
    CANking select formatters.PNG
  5. Select Hexadecimal under Numeric Base
    CANking test formatter options.PNG
  6. In the CAN Controller window, go to the Bus Parameters and choose the proper CAN Channel and Bus Speed
    CANking controller bus parameters.PNG
  7. On the H/W Filters tab choose reject all for Standard messages and choose Use Mask and Code with mask $1FFF0000 and Code $0 for Extended messages. This will filter out non-MotoTune related messages.
    CANking controller filters mototune.PNG
  8. In the Bus Statistics tab click Go On Bus
    CANking controller bus stats.PNG
  9. Open the Univeral CAN mesage window under Messages, Universal, Universal
    CANking message universal menu.PNG
  10. In the CAN Mesage window set CAN Identifier to $0B02x, DLC to $1, and Byte 0 to $55. This is a message with extended ID 0B02 hexadecimal, data length of 1 byte, and first byte set to 55 hexadecimal. 0B indicates the destination is City-ID 0B hex or 11 decimal, also known as PCM-1. If you are using a different City-ID. 02 indicates City-ID 2, the default City-ID used by MotoTune. 55 in byte 0 is basically a ping message, to check if a module is alive. Click the Send button to send the message.
    CANking message universal.PNG
  11. The module should respond with message ID $020Bx and data $AA.
    CANking output window key.PNG
    If no modules are on the bus, the wrong bus speed was select, the wrong bus was select, or the CAN bus was improperly terminated you will get Error Frames indicating this. If you have used the wrong City-ID, even is the module it there, you will get no response.
    CANking output window error frames.PNG