Problems after update to PEAK-ISO-API v3.1.1.227
Posted: Wed 31. Mar 2021, 09:46
We have a c# project using PEAK-ISO-API v2.2.2.125 and Peak drivers v4.2.0.
We upgraded the dlls to v3.1.227 without touching the code. Looking at the .cs files, there seem to be no important updates as long as only ISO 15762-2, revision 2004 is used.
With the new dlls we are facing some issues. An update of the driver to the current version did not help.
Usually we use Can and CanFD with usual mapping, this works fine with both dll versions.
However, at some point we are also reading Can/CanFD messages with various CanIDs using the parameter PCANTP_CAN_UNSEGMENTED_ON. Here we face different behaviour of the two dll-versions. In the returned TPCANTPMsg, we see:
- Message length LEN has an offset of -4 with the new version (in the example: 8 instead of 12, larger values than 8 have been observed for other messages, so the value is not fixed to 8).
- Data array DATA shows the complete data, however the upper nibble of the CanID seems to be missing with the new version (in the example 0x09 instead of 0x49).
I could imagine that our problem is due to incorrect initialization/usage and was somehow working up to now. Can you suggest a solution?
Thanks,
Jonathan
We upgraded the dlls to v3.1.227 without touching the code. Looking at the .cs files, there seem to be no important updates as long as only ISO 15762-2, revision 2004 is used.
With the new dlls we are facing some issues. An update of the driver to the current version did not help.
Usually we use Can and CanFD with usual mapping, this works fine with both dll versions.
However, at some point we are also reading Can/CanFD messages with various CanIDs using the parameter PCANTP_CAN_UNSEGMENTED_ON. Here we face different behaviour of the two dll-versions. In the returned TPCANTPMsg, we see:
- Message length LEN has an offset of -4 with the new version (in the example: 8 instead of 12, larger values than 8 have been observed for other messages, so the value is not fixed to 8).
- Data array DATA shows the complete data, however the upper nibble of the CanID seems to be missing with the new version (in the example 0x09 instead of 0x49).
I could imagine that our problem is due to incorrect initialization/usage and was somehow working up to now. Can you suggest a solution?
Thanks,
Jonathan