XCP error message as human readable strings
Posted: Mon 25. Sep 2017, 12:02
Hello,
I am using both the PCAN Basic APIs and the PXCP APIs. I have noticed that PCAN Basic provide a method (CAN_GetErrorText in C++) to which we give a return code and it gives back a human readable message about the error code.
This feature is both useful for the developer (debugging process) and for the end user to see what's wrong when something is.
But I did not see an equivalent method in the PXCP APIs.
Did I miss it or did it just not exist ?
I tried using the PCAN Basic API but it does not return the correct message for a given error code (e.g. XCP_ERR_OK gives "The test of the CAN controller hardware registers failed (no hardware found)").
I am using both the PCAN Basic APIs and the PXCP APIs. I have noticed that PCAN Basic provide a method (CAN_GetErrorText in C++) to which we give a return code and it gives back a human readable message about the error code.
This feature is both useful for the developer (debugging process) and for the end user to see what's wrong when something is.
But I did not see an equivalent method in the PXCP APIs.
Did I miss it or did it just not exist ?
I tried using the PCAN Basic API but it does not return the correct message for a given error code (e.g. XCP_ERR_OK gives "The test of the CAN controller hardware registers failed (no hardware found)").