Coder Social home page Coder Social logo

canoverhead's Introduction

CAN bus overhead, stuff bits and effective bitrate calculator

The CAN bus is a robust communication bus and protocol used in vehicle, allowing frames with 11 or 29-bit identifiers in the header and payload sizes of up to 8 bytes for classic CAN and up to 64 for the CAN FD variant.

This JavaScript in-browser calculator helps you compute:

  • the overhead of a frame in space: size of header and trailer
  • the stuff bits: these are bits injected after each streak of 5 bits
  • the effective bitrate: compute the transfer speed and time of your data taking into account also the time it takes to transfer the frame overhead.

Usage

Online

Head over to the website of the calculator to use it. Simple as that!

Locally

You can also directly download the page and use it in any modern browser, also offline. Right-click on the website link and choose "Save as..." to download the index.html page. Rename it as you please.

We also make the same file available in the releases on GitHub.

Privacy

The calculator has no backend server, works in your browser locally, no data is transferred anywhere. If you are paranoid, you can also use it after setting your browser to stay offline (in Firefox: File > Work Offline) after loading the page and the calculator still operates

  • completely disconnecting the computer from the internet also works.

Also: it does not use any cookies.

Compilation

The calculator is a set of HTML+CSS+JS files, so it does not need actual compilation to work. You can simply download or clone the repository and open the index.html file in your favourite browser for it to work (except some URLs to license, changelog etc. may be broken).

To minify and merge all HTML, CSS and JS files into a single index.html the Python3 script minify.py must be run. This will generate the compact all-in-one index.html in the minified directory. You will need some dependencies to run the script, so be sure to run the following:

pip install -r requirements.txt

We recommend using a virtual environment.

canoverhead's People

Contributors

thematjaz avatar nik89 avatar

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.