Search code examples
c++can-busdiagnosticscaplcanoe

How to obtain CAN transmitted data (256 bytes)using Diagnostic functions using CAPL?


256 bytes of data is transmitted to CAN bus as response to a particular DID. It consists of 14 samples of data AND one sample consists of 12 bytes of data (10 different values of 10 different variables packed across 12 bytes). I need to collect these different samples with the help of CAPL using diagnostic functions.


Solution

  • You can use diagGetPrimitiveData or diagGetPrimitiveByte for raw data. Details and example you can find in CANoe help

    For reading parameters defined e.g. in .cdd you can use diagGetParameter