Giter Club home page Giter Club logo

datalogger_scripts's Introduction

DUEM Datalogger Scripts

A collection of scripts for use on DUSC 2015's Beaglebone Black Datalogger

TODO: Migrate to SQLchemy-based interface, abstraction introduced will make data checking easier. (less hand-coded SQL too, always a good thing!)

Setup

Run setup.sh after making sure it's executeable

chmod +x setup.sh
./setup.sh

This sets up the required packages for the python scripts to run correctly, this is done in a virtual environment so as not to mess up any other python packages on the system. This also installs the spyder IDE into the virtual environment for development purposes.

##Running

Python scripts need virtualenv to be active in order to run correctly source .venv/bin/activate

Scripts can also be run by calling their respective shell scripts, this automatically sets up the virtualenv, which is particularly useful for scripts to be used in cron jobs, on startup, or otherwise called automatically (dmesg trigger?).

CANUSB caveats

The CANUSB from LAWICEL is a wonderful peice of equipment that easily connects to Tritium's awkward-to-find-connectors-for CAN network. It can be used as a SocketCAN interface the same way that the Beaglebone's onboard CAN transciever can.

To set up CANUSB as a CAN interface

slcan_attach -f -o -s8 /dev/<CANUSB tty>
slcand /dev/<CANUSB tty> slcan0
ifconfig slcan0 up

However, voltage spikes and noise can cause the BBB to disconnect from the CANUSB. This seems to be due to a grounding issue or possibly a power draw problem. Minimising this can be done by removing the S99ondemand startup script from the rc2.d folder and adding echo 'on' | tee /sys/bus/usb/devices/usb1/power/control to /etc/rc.local. These keep the beaglebone running at full power and prevent it from turning off USB power respectively. (See https://groups.google.com/forum/#!topic/beagleboard/C6gMT2_FfiM for details)

datalogger_scripts's People

Contributors

qazwsxal avatar

Watchers

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