filter receive message
Posted: Wed 29. Mar 2023, 13:31
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
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