Post Reply 
Oximetry - Do any of the pulse oximeters work with linux?
Author Message
DocWils Offline

Members-b

Posts: 1,271
Joined: Jul 2012

Machine: Philips Remstar series 60
Mask Type: Nasal pillows
Mask Make & Model: ResMed P10
Humidifier: same as machine
CPAP Pressure: 5-15
CPAP Software: SleepyHead

Other Comments:

Sex: Male
Location: Switzerland

Post: #11
RE: Oximetry - Do any of the pulse oximeters work with linux?
Shastzi

In the medical community, serious work is done on Windoze - most all software is in our business is Windoze based (which is causing endless problems as hospitals try to switch docs over to tablets for data input, and most choose, wrongly, iPads.Apple is even coming out with a larger iPad aimed squarely at this market).
09-21-2015 03:00 AM
Find all posts by this user Post Reply Quote this message in a reply

Donate to Apnea Board
Shastzi Offline

Advisory Members

Posts: 1,174
Joined: Dec 2012

Machine: ResMed S9 Autoset
Mask Type: Full face mask
Mask Make & Model: FitLife Total face mask
Humidifier: F&P HC150 with Hybernite heated hose.
CPAP Pressure: 15cm-20cm H2O (auto)
CPAP Software: SleepyHead Other Software

Other Comments: CMS50-F wearable Oximeter; Software: SPO2 Assistant

Sex: Undisclosed
Location: Florida, USA.

Post: #12
RE: Oximetry - Do any of the pulse oximeters work with linux?
Yes, Doc.
And looking at the quality of the sloppy-haphazard medical record keeping going on and near total lack of
security in the U.S., it is no wonder.

"With ordinary talent and extraordinary perseverance, all things are attainable." - Thomas Foxwell Buxton

Cool
09-21-2015 10:23 AM
Find all posts by this user Post Reply Quote this message in a reply
DocWils Offline

Members-b

Posts: 1,271
Joined: Jul 2012

Machine: Philips Remstar series 60
Mask Type: Nasal pillows
Mask Make & Model: ResMed P10
Humidifier: same as machine
CPAP Pressure: 5-15
CPAP Software: SleepyHead

Other Comments:

Sex: Male
Location: Switzerland

Post: #13
RE: Oximetry - Do any of the pulse oximeters work with linux?
Not everywhere in the world has that problem, and we use M$ here just as in the US, and it works more than well enough.

And most of the sloppy record keeping the US is due to NOT using computers, or not well. Docs still write everything out by hand, in near illegible script. Now no longer allowed in our hospital, and the info is instantly available to every department that needs access to that patient.
09-21-2015 10:47 AM
Find all posts by this user Post Reply Quote this message in a reply

Donate to Apnea Board
archangle Offline
Wiki Editor
Advisory Members

Posts: 3,159
Joined: Feb 2012

Machine: ResMed S9 AutoSet
Mask Type: Nasal pillows
Mask Make & Model: ResMed Swift FX
Humidifier: ResMed S9 H5i
CPAP Pressure: 16-20
CPAP Software: ResScan SleepyHead EncoreBasic

Other Comments: Happy PAPper

Sex: Undisclosed
Location: USA

Post: #14
RE: Oximetry - Do any of the pulse oximeters work with linux?
(09-21-2015 02:58 AM)DocWils Wrote:  should a Linux version of Sleepyhead become available, you will be back in business - go to the Sleepyhead developer's page and appeal for one.

Buildiing SleepyHead on linux isn't that difficult. http://www.apneaboard.com/forums/Thread-Building-SleepyHead-on-Linux

I think it works with oximeters as long as you install the driver mentioned above.

SleepyHead also runs pretty well under Wine. I'm not sure whether it will be able to access the oximeter, though. Accessing hardware is a little more difficult than simply running the program.

Get the free SleepyHead software here.
Useful links.
Click here for information on the main alternative to CPAP.
If it's midnight and a DME tells you it's dark outside, go and check it yourself.
09-21-2015 06:19 PM
Find all posts by this user Post Reply Quote this message in a reply
happydreams Offline

Preferred Members

Posts: 23
Joined: Sep 2015

Machine: Respironics System 1 560P
Mask Type: Full face mask
Mask Make & Model: Resmed Airfit F10
Humidifier: Not used
CPAP Pressure: 8 cm
CPAP Software: SleepyHead Other Software

Other Comments:

Sex: Male
Location: NH, USA

Post: #15
RE: Oximetry - Do any of the pulse oximeters work with linux?
OP, here. I built SH 0.9.8-1 on my machine. It runs quite well - thanks to the amazing work of JediMark and the great tutorials in this site. My question really was more of: can I use any of the Contec devices and import data into SH all in linux. I use MS at work, (because it is required) but linux at home. I have an old laptop at home that runs xp - but I'd rather not use it for computer security reasons.

It looks like PBriggs has a search string I can check out. Thanks.

I originally wanted to know if spending $ on an oximeter would be a waste of money. It looks like it may be worth acquiring, based on your responses.

As for MS/MAC/Linux bashing, ehh, that belongs on a different forum.

Thanks for sharing your collective wisdom.
09-24-2015 08:51 PM
Find all posts by this user Post Reply Quote this message in a reply

Donate to Apnea Board
pholynyk Offline

Advisory Members

Posts: 306
Joined: Mar 2015

Machine: ResMed AirSense 10 APAP
Mask Type: Full face mask
Mask Make & Model: Amara View
Humidifier: included
CPAP Pressure: 11-17
CPAP Software: SleepyHead

Other Comments:

Sex: Male
Location: Ontario, Canada

Post: #16
RE: Oximetry - Do any of the pulse oximeters work with linux?
If you built SleepyHead yourself, you have the source code Smile Dig down a few directory levels through sleepyhead and SleepLib to loader_plugins, and you will find several files named cms... for the various models. I don't have an oximeter yet so I'm not sure of the procedures to use for Linux, but I think I saw some forum threads on the topic.

Sleep-well
09-24-2015 10:18 PM
Find all posts by this user Post Reply Quote this message in a reply
happydreams Offline

Preferred Members

Posts: 23
Joined: Sep 2015

Machine: Respironics System 1 560P
Mask Type: Full face mask
Mask Make & Model: Resmed Airfit F10
Humidifier: Not used
CPAP Pressure: 8 cm
CPAP Software: SleepyHead Other Software

Other Comments:

Sex: Male
Location: NH, USA

Post: #17
RE: Oximetry - Do any of the pulse oximeters work with linux?
Keeping the linux thread alive...

I now have a CMS50F. V3.8. Can't seem to import data into SH.
$ uname -r
4.2.0-18-generic

This should have the driver mentioned already built in. The previous link shows only a 3.x driver and mentions it is now being maintained at kernel.org.

When the CMS50F is plugged in I get:

$ lsusb
Bus 001 Device 003: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x UART Bridge / myAVR mySmartUSB light

$ dmesg shows
[ 2443.073710] usb 1-2: new full-speed USB device number 5 using xhci_hcd
[ 2443.203682] usb 1-2: New USB device found, idVendor=10c4, idProduct=ea60
[ 2443.203690] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2443.203694] usb 1-2: Product: CP2102 USB to UART Bridge Controller
[ 2443.203697] usb 1-2: Manufacturer: Silicon Labs
[ 2443.203699] usb 1-2: SerialNumber: 0001
[ 2443.204848] cp210x 1-2:1.0: cp210x converter detected
[ 2443.205164] usb 1-2: cp210x converter now attached to ttyUSB0

SH cannot find the oximeter. "Could not detect any connected oximeter devices."
No boxes checked in Oximetry Wizard.

Any simple things I may have overlooked? Or things to look for? I chose the 3.7+ version to import.

Thanks for any and all help.
11-28-2015 10:34 AM
Find all posts by this user Post Reply Quote this message in a reply

Donate to Apnea Board
pholynyk Offline

Advisory Members

Posts: 306
Joined: Mar 2015

Machine: ResMed AirSense 10 APAP
Mask Type: Full face mask
Mask Make & Model: Amara View
Humidifier: included
CPAP Pressure: 11-17
CPAP Software: SleepyHead

Other Comments:

Sex: Male
Location: Ontario, Canada

Post: #18
RE: Oximetry - Do any of the pulse oximeters work with linux?
I finally managed to order a CMS-50F from Supplier #19, so I will be looking into this and working on a solution for Linux data import to SleepyHead.

Wish me perseverance!
11-28-2015 02:05 PM
Find all posts by this user Post Reply Quote this message in a reply
Weird Tolkienish Figure Offline

Advisory Members

Posts: 117
Joined: Sep 2015

Machine: Respironics Dream Station Auto
Mask Type: Full face mask
Mask Make & Model: F&P Simplus FFM Medium
Humidifier: Respironics Dream Station Humidifier
CPAP Pressure: 15?
CPAP Software: Other Software

Other Comments:

Sex: Male
Location: Massachusetts

Post: #19
RE: Oximetry - Do any of the pulse oximeters work with linux?
I'm a System Administrator for a mixed *nix (Linux, Solaris, HP-UX) and Windows environment. We do a lot of serious work on Windows, we're a multi-million dollar CRO that runs statistical simulations for Pharmaceutical clients. Contracts worth millions for pharmaceutical drugs worth billions.

No disrespect to Linux though.
11-29-2015 03:43 PM
Find all posts by this user Post Reply Quote this message in a reply

Donate to Apnea Board
GregLawson Offline

Members

Posts: 15
Joined: Nov 2015

Machine: PRS1 REMStar 560PBT
Mask Type: Nasal pillows
Mask Make & Model: PRS1 GoLife for Men Nasal pillow
Humidifier: PRS1 Series 60 Heated Hose
CPAP Pressure: 10 to 13
CPAP Software: SleepyHead Other Software

Other Comments: Engineer / programmer / exploratory data analyst / Independent irresponsible consultant

Sex: Male
Location: Los Angeles

Post: #20
Thumbsup RE: Oximetry - Do any of the pulse oximeters work with linux?
(11-28-2015 10:34 AM)happydreams Wrote:  Keeping the linux thread alive...
Yay.
(11-28-2015 10:34 AM)happydreams Wrote:  I now have a CMS50F. V3.8. Can't seem to import data into SH.
I got a Veridian 11-50DP (on sale at Costco online) which except for the case color, looks like a clone of the CMS-50D.
Supplier # 19's website says the Windows software is called SPO2 Review. The Veridian software is called SPO2 Review or SPO2 Assistant Review. The software copies the recorded data over USB to a csv file with two comma separated values: SPO2 and Pulse. The csv file is good for importing into other tools (e.g. Excel), while SH needs the spoR file. The SPO2 Review software interface is so odd, that I returned an almost identical model to Amazon a couple of years ago assuming that downloading had quit working. The software apparently only downloads if the device is showing the recording sub-menu.
I think there is a good chance that all of these oximeters use the same protocol / data format, so fixing SleepyHead for one oximeter will fix it for all. Though my Veridian reports Ver4.6 at power on.
Windows users shouldn't get too complacent, since the Veridian customer service person said the software doesn't support Windows 8 or 64 bit processors (my Windows 8, 32/64 bit hybrid tablet works OK, though. YMMV). The Windows software may be turning into a zombie, something nearly impossible for open source software that enough people are willing to support (this forum seems like enough people).
(11-28-2015 10:34 AM)happydreams Wrote:  $ uname -r
4.2.0-18-generic
3.2.0-4-amd64
Also available: 4.0.0-2-amd64 and 4.2.0-1-amd64.
(11-28-2015 10:34 AM)happydreams Wrote:  This should have the driver mentioned already built in. The previous link shows only a 3.x driver and mentions it is now being maintained at kernel.org.
$ /sbin/modinfo cp210x -F version
v0.09
But there isn't any version tag for the kernel on disk:
$ /sbin/modinfo cp210x -k 4.2.0-1-amd64

If I enter:
$ lsmod | grep cp210x
cp210x 21155 0
usbserial 32061 2 ftdi_sio,cp210x
usbcore 128741 12 xhci_hcd,ehci_hcd,usb_storage,usbhid,btusb,ath3k,uvcvideo,usbserial,ftdi_sio,cp2​10x

So it looks like the cp210x driver module is loaded and attached to usbserial.

(11-28-2015 10:34 AM)happydreams Wrote:  When the CMS50F is plugged in I get:

$ lsusb
Bus 001 Device 003: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x UART Bridge / myAVR mySmartUSB light
Bus 003 Device 084: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x UART Bridge / myAVR mySmartUSB light
We match except we plugged into different USB ports.
(11-28-2015 10:34 AM)happydreams Wrote:  $ dmesg shows
[ 2443.073710] usb 1-2: new full-speed USB device number 5 using xhci_hcd
[ 2443.203682] usb 1-2: New USB device found, idVendor=10c4, idProduct=ea60
[ 2443.203690] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2443.203694] usb 1-2: Product: CP2102 USB to UART Bridge Controller
[ 2443.203697] usb 1-2: Manufacturer: Silicon Labs
[ 2443.203699] usb 1-2: SerialNumber: 0001
[ 2443.204848] cp210x 1-2:1.0: cp210x converter detected
[ 2443.205164] usb 1-2: cp210x converter now attached to ttyUSB0
[4064646.536264] usb 3-1.1.3.3: FTDI USB Serial Device converter now attached to ttyUSB0
[4064649.144984] usb 3-1.1.3.3: usbfs: interface 0 claimed by ftdi_sio while 'brltty' sets config #1
[4064649.145745] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0
[4064649.145770] ftdi_sio 3-1.1.3.3:1.0: device disconnected
[4065300.720019] usb 3-1.4.3.4.2: new full-speed USB device number 84 using ehci_hcd
[4065300.811942] usb 3-1.4.3.4.2: New USB device found, idVendor=10c4, idProduct=ea60
[4065300.811948] usb 3-1.4.3.4.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[4065300.811951] usb 3-1.4.3.4.2: Product: CP2102 USB to UART Bridge Controller
[4065300.811954] usb 3-1.4.3.4.2: Manufacturer: Silicon Labs
[4065300.811957] usb 3-1.4.3.4.2: SerialNumber: 0001
[4065301.960024] USB Serial support registered for cp210x
[4065301.960109] cp210x 3-1.4.3.4.2:1.0: cp210x converter detected
[4065302.032160] usb 3-1.4.3.4.2: reset full-speed USB device number 84 using ehci_hcd
[4065302.125178] usb 3-1.4.3.4.2: cp210x converter now attached to ttyUSB0
[4065302.125215] usbcore: registered new interface driver cp210x
[4065302.125217] cp210x: v0.09:Silicon Labs CP210x RS232 serial adaptor driver
[4065306.451733] usb 3-1.4.3.4.2: usbfs: interface 0 claimed by cp210x while 'brltty' sets config #1
[4065306.452356] cp210x ttyUSB0: cp210x converter now disconnected from ttyUSB0
[4065306.452386] cp210x 3-1.4.3.4.2:1.0: device disconnected

We match except for a conflict with the FTDI USB serial driver; I guess I'll have to test without the FTDI device plugged in for now. Maybe there is some hotplug magic to resolve this conflict.
(11-28-2015 10:34 AM)happydreams Wrote:  SH cannot find the oximeter. "Could not detect any connected oximeter devices."
I also got the "Could not detect any connected oximeter devices." message.
I'd expect different code would be needed in Linux to access file /dev/ttyUSB0 rather than a COMM port in Windows.
However I was able to import files generated by running 'SPO2 Assistant Review' under Windows. Getting the oximeter session start time from the cpap session start time didn't work; it used a date in the 'next' (after noon) day in the future. If I manually enterred the cpap session start time the SPO2 and pulse graphs were aligned closely.
(11-28-2015 10:34 AM)happydreams Wrote:  No boxes checked in Oximetry Wizard.
I didn't notice any checkboxes in Oximetry Wizard.
(11-28-2015 10:34 AM)happydreams Wrote:  Any simple things I may have overlooked?
$ /sbin/modinfo cp210x -F version
or
Import spoR data from Windows into SleepyHead
(11-28-2015 10:34 AM)happydreams Wrote:  Or things to look for?
$ screen /dev/ttyUSB0
You may have to change permissions on /dev/ttyUSB0 (e.g. add self to the dialout group) and guess the baud rate (9600 or max?)
Be sure to read 'man screen' for the arcane exit command key sequence.
If it works you'll next want the API for the oximeters or we can start digging through the source code.
(11-28-2015 10:34 AM)happydreams Wrote:  I chose the 3.7+ version to import.
3.7+ version of what software?
12-03-2015 12:38 PM
Find all posts by this user Post Reply Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
Idea SleepyHead and Linux MartinT 3 108 11-29-2016 07:41 AM
Last Post: OpalRose
  SleepyHead on iMac with OS X - importing oximetry data Possum 9 967 11-04-2016 12:28 PM
Last Post: AlanE
  PLEASE PLEASE Help me! [Pulse Oximeter issues] Dagswe21 5 336 10-22-2016 07:42 AM
Last Post: AlanE
  did Linux corrupt my SD card? AirPlease 6 842 09-23-2016 02:06 AM
Last Post: zagam
  Will most any SD card reader work with ResScan 5.6? caffellatte 3 438 09-22-2016 09:47 AM
Last Post: caffellatte
  Can I still get Encore Viewer software to work? Windows 10... ValGal333 7 955 09-05-2016 05:17 AM
Last Post: AUDavidSydney
  SleepyHead and Linux Mint 17.3 (Ubuntu 14.04) necochino 4 270 08-21-2016 07:16 PM
Last Post: pholynyk

Forum Jump:

Who's Online (Complete List)