go-can-coder

command module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

README

Can-Coder

This repository contains a can interface which enables to connect to a car's canbus.

Goal is to convert the can frames into a human readable format and forward it in a comon way like via websocket or MQTT.

car's OBD2 female plug
 __________________________________________
 \     __  __  __  __  __  __  __  __     /
  \     1   2   3   4   5   6   7   8    /            Hardware
   \      ________________________      / --------->  CANbus chip e.g. MCP2518FD  -->  Linux driver  -->  Network Interface -
    \  __  __  __  __  __  __  __  __  /                                                                                     |
     \  9  10  11  12  13  14  15  16 /        this go-package                                                               |
      \______________________________/    --------------------------------------------------------------------------------   | (Network Interface/Serial/TCP)
                                         |                       human readable                                           |  |
                                         |   forwarders (MQTT/WS)  <--<struct>-->  cancoder  <--<can.Frame>-->  canbus  <-|--
                                         |             ( /\________________________________________| )                    |
                                          --------------------------------------------------------------------------------

Supported:

  • Network Interface (e.g. can0)
  • Serial (tty)
  • TCP

CAN

Interfacing via Network Interface

For connecting to the CANbus, a device like a MCP2515 is required. see: https://wiki.seeedstudio.com/2-Channel-CAN-BUS-FD-Shield-for-Raspberry-Pi/

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL