Skip to content

Split filtering for standard and extended IDs #147

Closed

Description

@christiansandberg

Right now there is no clear distinction between 11- and 29-bit messages for filtering. Seems like most interfaces have support for having different filters but right now they apply the same filter settings for both or have some other non-standard way of specifying which one to apply the filtering on.

Maybe it should be something like [{"can_id_ext": 0x123456, "can_mask_ext": 0xFFFFFF}, {"can_id_std": 0x123, "can_mask_std": 0xFFF}].

If can_id and can_mask is specified, it could be automatically translated to both std and ext variants in can.interface.Bus constructor to be fairly backwards compatible.

Activity

  1. christiansandberg commented on Mar 4, 2017

    @christiansandberg
    CollaboratorAuthor

    On second thought it would be even better to add an "extended" key to the dictionary. Then it would not be necessary to update all interfaces at once.

    [{"can_id": 0x123456, "can_mask": 0xFFFFFF, "extended": True}, {"can_id": 0x123, "can_mask": 0xFFF, "extended": False}]

  2. christiansandberg commented on May 26, 2017

    @christiansandberg
    CollaboratorAuthor

    I'll go ahead and close this since the pull request has been merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions