Code Monkey home page Code Monkey logo

can-bus-message-echoer's Introduction

CAN Bus Message Echoer Project

General Information and Acknowledgements

The following project has been created to 'echo' CAN messages from a saved file. Each CAN message is read from a file loaded from the SD card.

The CAN messages must be saved in the format of HCRL's work on their CAN Dataset for intrusion detection (OTIDS). It is formatted in the following way:

Timestamp:          [Time since initialised in milliseconds]        ID: [Arbitration or CAN ID]    [If it is a remote request frame (Set to the value of '100']    DLC: [Length of the data package sent]    [The data package sent]     

How to run

The code in this project was developed to run on the Arduino Uno Rev3 and the CAN-BUS Shield V2.0 (which runs on the MCP2515 Chip), but any Arduino and CAN-BUS shield that supports the required libraries should work too.

The libraries used in this project include:

To run on your Arduino, make sure you have set the:

  • baud
  • SPI_CS pin
  • CAN_INT pin
  • SD_SPI_CS pin

Note that the filename of the read file needs to replace the value of the variable filename. Also, please note that certain Arduino boards might not work with file extensions with more than three characters.

Development Environment

The IDE CLion was used with the plugins PlatformIO for CLion and Serial Port Monitor.

can-bus-message-echoer's People

Contributors

nishantbharali avatar

Watchers

 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.