Giter Club home page Giter Club logo

ntcobd's Introduction

#OBD on pocket chip Some scattered notes on working with On Board Diagnostics and PocketCHIP.

The interesting files in this repo:

  • blue.py - processes commands in python and logs them to a text file
  • obd_commands_complete.txt - a list of commands that I discovered on the Prius. You can make your own by messing with blue.py
  • cairo_dial.py - uses cairo graphics to draw the rudiments of a speedometer.
  • cairo_animation.py - example of animating cairo graphics, including speedometer.
  • carsync.sh - beginnings of syncing with a WebDAV folder, ideally music files for a 'playlist for the day's commute'

Besides that, there's some examples and unfinished work.

sudo apt-get install -y screen openssh-server x11vnc bluez-tools rfkill
sudo apt-get install -y samba cifs-utils smbclient
sudo apt-get install -y python-setuptools python-dev build-essential 
sudo easy_install pip 
sudo pip install --upgrade virtualenv 
pip install obd
pip install subprocess

Bluetooth Control in Python in a gist

Connect to ODB II Bluetooth device:

	bluetoothctl

at bluetoothctl prompt, use:

	agent on
	power on
	scan on
	pair <MAC>
	if pin, then 1234
	trust <MAC>
	ctl-D

in bash:

	sudo rfcomm connect hci0 <MAC>

now

	screen /dev/rfcomm0

and follow this guide for basic serial commands

	http://gersic.com/connecting-your-raspberry-pi-to-a-bluetooth-obd-ii-adapter/

We can now proceed to installing pyserial and pyodb to actually do something with this data

We can use https://github.com/brendan-w/python-OBD to provide an interface to the ODB commands.

This has some ui widgets that might be interesting: https://github.com/brendan-w/piHud

Documentation on python and ODB: http://python-obd.readthedocs.io/en/latest/Connections/

ntcobd's People

Contributors

nyboer avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

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