Coder Social home page Coder Social logo

talk-to-your-car's Introduction

talk-to-your-car

An example of sending and receiving CAN messages using python-can library

virtual_bus.py

It uses the python-can built-in virtual bus to simulate the sending and receiving. It doesn't require any CAN hardware. It will send random data with ID 0x7E0 on the virtual bus in a thread every 0.5 second, and the receiver nofitier will print the received messages to the console and write them to the asc log file using built-in can.Logger notifier

neovi_bus.py

It basically does the same thing as virtual_bus.py, except It requires a real CAN hardware (which is an Intrepid device, probably valueCAN3, or other) . It will send random data on the real bus, so the CAN hardware needs to connect to somewhere (which is another CAN hardware). It will also receive the messages from outside device and save them to asc file

In order to use this file, additional library(python) and drivers(CAN hardward) need to be installed. The guide on how to install can be found on python-ics

other CAN hardware

python-can supports lots of CAN hardware including Vector, Kvaser, PCAN, etc. details can be found in Its doc.

talk-to-your-car's People

Contributors

pythonlibrary 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.