This module reads and outputs data from a Contec CMS50E pulse oximeter.
It has only been tested on Mac OS X Yosemite with Python 3.4. Consider this a work in progress.
If you try to upload recorded data from the device, the program will simply discard the data, but continue working.
Planned features:
- Saving of recorded data
- Live recording and saving
- Web based interface to view pulse waveform data
First, this driver must be installed.
Then:
python setup.py develop to install dependencies
python cms50e.py /path/to/usb-device to run the program
On the computer used for testing, the usb device was found at
/dev/cu.SLAB_USBtoUART. The name of the USB device may be different.
Running ls /dev/cu.* should provide some hints.
Make sure the device has the USB setting on, and is connected to the
computer. If the program is not outputting any data, simply running
cat /path/to/usb-device can kickstart it.
The output is updated 20 times per second.
Heartrate: 62
Oxygen saturation: 98
Pulse waveform: 24
Hit Ctrl+C to exit.
Written by Christoffer Torris Olsen
Thanks to Alex Robinson for interface documentation.