Freeform CAN message to variable

Comments

4 comments

  • Avatar
    Mario Verschuren

    Hi Tyler,

    If you click on Hex in the toolbar in CANCapture the data changes to hexadecimal formatting. Use the 8 digit number you see and type that in the free form frame ID. This needs to be in hex and 8 digits long.

    Mario

    1
    Comment actions Permalink
  • Avatar
    Tyler Robb

    Hi Mario,

    Thank-you for recognizing that I had the wrong PID and that it needed to be in Hex. That’s the first step to getting useful data on a freeform message.

     I then mapped the four variables that are being transmitted in this packet according to the start position and length. So if I understand this correctly for example the “Aftertreatment 1 SCR Catalyst intake gas temperature” has a start position of 3.1 which would be the first bit of the third byte. With a length of 5 bits this would map across bits 16-20. When I replay the engine recording I get the expected value displaying on my PV380 screen. Below are screen shots for reference.

    I ran into issues with the “Aftertreatment 1 SCR Catalyst Outlet gas temperature” and “Aftertreatment 1 SCR Intake gas temperature” which are both 2 bytes in length.

    In the engine playback the temp goes from about 31-150C but the screen is immediately displaying the maximum value of 2000C that I set in the variable. I have tried different Data types, units of measure, tested the Big Endian Ryte Order, reduced the bit mapping to 1 byte which gives me numbers between 9-52 but then act like a data rollover.

    Could I still be having issues due to a resolution or offset value? I have been searching the net for any reference of the PID to see if I can answer this question but have yet to find anything.

    Once again any guidance is greatly appreciated.

    Regards,

    Tyler

    0
    Comment actions Permalink
  • Avatar
    Tyler Robb

    Problem Solved ! Turned out to be a resolution and offset issue.

    I found a good list of PGN's with setting breakdowns in an excel format.

    https://www.schneider-electric.com/library/SCHNEIDER_ELECTRIC/SE_LOCAL/APS/205363_1726/sae_j_1939_spreadsheet_supported_by_TwidoExtreme.xls 

    Regards,

    Tyler

    1
    Comment actions Permalink
  • Avatar
    Mario Verschuren

    Glad it worked out!

    0
    Comment actions Permalink

Please sign in to leave a comment.