-
Notifications
You must be signed in to change notification settings - Fork 605
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trouble Applying Filters to Bus with Vector Interface #1885
Comments
Try this: filters = [{'can_id': 0xfff, 'can_mask': 0xfff, 'extended': False}, {'can_id': 0x18daf9aa, 'can_mask': 0x1fffffff, 'extended': True}] |
Hello,
Unfortunately, I am still experiencing the same issue. Anything else to try? Few follow-up questions.
1. Which attribute, "can_filters" or "receive_own_messages" takes precedence? If "receive_own_messages" is set to True, the bus will receive all of its own messages? Or only its messages that satisfy the filter? For me the filtering is not working for "receive_own_messages" set to either True or False.
2. I am now using can Reader and Notifier with get_message(). The filters should work for both recv() and get_message()?
***@***.***
Sincerely,
Tom Cowden
From: zariiii9003 ***@***.***>
Sent: Saturday, November 2, 2024 7:08 PM
To: hardbyte/python-can ***@***.***>
Cc: Cowden, Thomas ***@***.***>; Author ***@***.***>
Subject: Re: [hardbyte/python-can] Trouble Applying Filters to Bus with Vector Interface (Issue #1885)
You don't often get email from ***@***.******@***.***>. Learn why this is important<https://aka.ms/LearnAboutSenderIdentification>
[EXTERNAL EMAIL - If you suspect the validity of this email, do not click any links and use the Report Phish button to report it. If you do not see the Report Phish button, immediately forward it to ***@***.******@***.***>]
Try this:
filters = [{'can_id': 0xfff, 'can_mask': 0xfff, 'extended': False}, {'can_id': 0x18daf9aa, 'can_mask': 0x1fffffff, 'extended': True}]
-
Reply to this email directly, view it on GitHub<#1885 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BEFDB4US52JAN2FAVQRD74TZ6VSP3AVCNFSM6AAAAABRAXW5KKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJTGIZTENJXHA>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
…________________________________
Disclaimer Confidentiality Notice: This e-mail, and any attachments
and/or documents linked to this email, are intended for the
addressee and may contain information that is privileged,
confidential, proprietary, or otherwise protected by law. Any
dissemination, distribution, or copying is prohibited. This
notice serves as a confidentiality marking for the purpose of
any confidentiality or nondisclosure agreement. If you have
received this communication in error, please contact the
original sender.
|
Currently this is being tested with Vector CAN case 1640A. |
Hi, I add the same issue with an MCP2515 controler, in my case, the filter was applied after the receive buffer so when reading, I was receiving old messages stored in the buffer before the filters were applied. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Attempting to filter bus to receive single PGN with vector interface. Filter is applied but still receiving other IDs when calling recv(). Not sure if issue with filter or bus declaration.
The text was updated successfully, but these errors were encountered: