Page 1 of 1

filter receive message

Posted: Wed 29. Mar 2023, 13:31
by clem69
Hello,
I filter with this function that I call after initialization
res = CANTP_AddFiltering_2016(PCANTP_HANDLE_USBBUS1, 0x16D20097, 0x0x16D20098, false,
PCANTP_CAN_MSGTYPE_EXTENDED);

to read I use this function
res = CANTP_Read_2016(PCANTP_HANDLE_USBBUS1, &rx_msg, NULL, PCANTP_MSGTYPE_NONE);


but the message is not filtered because I receive messages from other identifiers. How to use the filter function?

Thank you

Re: filter receive message

Posted: Wed 29. Mar 2023, 14:02
by F.Vergnaud
Hello,

You need to enable the white-list filtering mechanism with parameter PCANTP_PARAMETER_FILTER_CAN_ID, as described in the documentation it is not enabled by default.