hardbyte / hardbyte/python-can

Assigning Can Filters for mcp2515 CAN bus module on python

Open
#1,190 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.6k
Forks
697
PR merge metrics
No merged PRs in 30d

Description

so I am using the following method to filter messages between 2 controllers,but the issue with this method is that I can only filter up to 5
can_ids, so I was wondering if there is a better method to do that, knowing I am quite new to this and to python even.
bus.set_filters([{"can_id": 0x591, "can_mask": 0xFFFFFFF, "extended": False},\
{"can_id": 0x592"can_mask": 0xFFFFFFF, "extended": False},\
{"can_id": 0x593, "can_mask": 0xFFFFFFF, "extended": False},\
{"can_id": 0x594, "can_mask": 0xFFFFFFF, "extended": False},\
{"can_id": 0x595, "can_mask": 0xFFFFFFF, "extended": False}])

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.