GithubHelp home page GithubHelp logo

Comments (2)

ebroecker avatar ebroecker commented on July 19, 2024 2

Hi @MatheusFreitas25,

I think you have some mismatsches in the IDs you provide.
But I think what you look for is the 'compound' id.

This 'compound' id is used if you want to store the arbitration ID in one integer, and also store the information 'extended' in the same integer.

It is usually done like this:

mask = 1 << 31
id = 418381865  # id without exended information
print(id | mask)

but than Id 418381865 should be 2565865513 (with coded extended bit)

Even better in hex:
Id 0x18f00029,
compound: 0x98f00029

and the other ID: 2564423920
is 2564423920 (extended, compound bit removed)

in hex: 0x98da00f0
without compound-bit: 0x18da00f0

this compound information seems to be useless, if you have such high arbitration IDs because they are implicite clear to be extended.
But keep in Mind, there are for example two arbitration IDs with the ID 1.
ID 1, extended = false (0x1)
and
ID 1, extended = true (0x80000001)

Hope thats the info you need ...

from canmatrix.

MatheusFreitas25 avatar MatheusFreitas25 commented on July 19, 2024

Thank you very much! This information will certainly be very useful.

from canmatrix.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.