SavvyCAN icon indicating copy to clipboard operation
SavvyCAN copied to clipboard

ISOTP-Decoder values incorrect

Open mickeyl opened this issue 3 years ago • 2 comments

On macOS 11 w/ QT 5.15, I found a problem in the values of a capture UDS communication, where the values of p2max and p2*max are much too high (512ms and 51200ms shown). After setting a breakpoint in uds_handler.cpp:380, it looked like a problem with

    const unsigned char *data = reinterpret_cast<const unsigned char *>(msg.payload().constData());

For some reason this leads to data pointing to 0x8002001400c800 instead of the expected 0x02001400c800 – which then makes the computation

                int p2 = data[1] * 256 + data[2];

take the wrong values. Any idea what could cause this offset?

mickeyl avatar Apr 07 '21 09:04 mickeyl