GithubHelp home page GithubHelp logo

corbolais / cms50dplus Goto Github PK

View Code? Open in Web Editor NEW

This project forked from atbrask/cms50dplus

0.0 1.0 0.0 12 KB

Python code for downloading data from a Contec CMS50D+ pulse oximeter

License: BSD 2-Clause "Simplified" License

Python 100.00%

cms50dplus's Introduction

Contec CMS50D+ Pulse Oximeter Data Downloader
=============================================

This python script can download both live data and recorded data from a Contec 
CMS50D+ pulse oximeter into a standard CSV file for further analysis.

In live data mode the device will sample at 60 Hz. Each sample is saved to CSV 
along with the current wallclock time (in UTC). For recorded data you'll have
to provide a start time as the device doesn't provide any historic timestamps
at all. In this mode we assume a sample rate of 1 Hz.

For more details, see my blog post at http://www.atbrask.dk/?p=244

History
-------
1.0 (2015-03-24) Uploaded initial version to GitHub
1.1 (2015-03-26) Added support for downloading recorded data
1.2 (2015-09-28) Added time column to output CSV for both modes

Syntax
------
usage: cms50dplus.py [-h] [-s STARTTIME] {LIVE,RECORDED} serialport output

cms50dplus.py v1.2 - Contec CMS50D+ Data Downloader (c) 2015 atbrask

positional arguments:
  {LIVE,RECORDED}       Specify LIVE for live data or RECORDED for recorded
                        data.
  serialport            The device's virtual serial port.
  output                Output CSV file.

optional arguments:
  -h, --help            show this help message and exit
  -s STARTTIME, --starttime STARTTIME
                        The start time for RECORDED mode data.


Example
-------
If you have the device connected as /dev/ttyUSB0 and want live data saved as
foo.csv, then the program can be run like this:

./cms50dplus.py LIVE /dev/ttyUSB0 foo.csv

Likewise for recorded data:

./cms50dplus.py RECORDED /dev/ttyUSB0 foo.csv -s "2015-01-01 12:34:56"

cms50dplus's People

Contributors

atbrask avatar faustomilletari avatar bachmann1234 avatar bobronium avatar

Watchers

James Cloos 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.