brendan-w / python-OBD

OBD-II serial module for reading engine data
GNU General Public License v2.0
1.05k stars 368 forks source link

Read from Canbus interface #106

Open GrayBoltWolf opened 6 years ago

GrayBoltWolf commented 6 years ago

Working well with a bluetooth OBD2 adapter, but looking to see if it is able to read from a network can device (http://copperhilltech.com/pican-2-can-interface-for-raspberry-pi-2-3/).

I feel like I'm just missing something since OBD2 bluetooth is just Canbus, should be an easy way to direct obd.OBD() to read from can0.

brendan-w commented 6 years ago

@graycrofford This library currently only has support for the ELM style interfaces, which operate using a somewhat strange modem-like ASCII protocol. While it would certainly be possible to write another backend for SocketCAN, this is a project I probably won't get to for a long while. The protocol abstraction layer should be able to handle this though, and I'd probably use a package like this to build the interface class.