Hello Guest, Welcome to Apnea Board !
As a guest, you are limited to certain areas of the board and there are some features you can't use.
To post a message, you must create a free account using a valid email address.

or Create an Account


New Posts   Today's Posts

Oximetry - Do any of the pulse oximeters work with linux?
#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).
Post Reply Post Reply
#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
Post Reply Post Reply
#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.
Post Reply Post Reply
#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-...d-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 OSCAR CPAP 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.
Post Reply Post Reply
#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.
Post Reply Post Reply
#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
Post Reply Post Reply
#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.
Post Reply Post Reply
#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!
Post Reply Post Reply
#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.
Post Reply Post Reply
#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,cp210x

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?
Post Reply Post Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Is there a solution to read out the newer versions of the Contect CMS50F under Linux? Mast04 10 818 03-25-2024, 08:46 PM
Last Post: Pierelly
  Questions about the Oximetry Preferences setting.... Lucky7 4 164 03-23-2024, 04:35 PM
Last Post: croc297
  OSCAR v1.5.2 - Linux Versions Crimson Nape 3 136 03-17-2024, 02:35 PM
Last Post: Crimson Nape
  Importing Oximetry data billmelk 1 139 03-10-2024, 02:27 PM
Last Post: Crimson Nape
  python file converter for EMAY sleep pulse oximeter joeblough 1 618 03-04-2024, 10:26 PM
Last Post: ElectricalPaul
Sad Oscar 1.5.1 Doesn't work on Somoma 14.3.1 biyahero 9 391 02-28-2024, 02:00 AM
Last Post: biyahero
Question Is there a way of formatting a 64gb SD card to work with the AirCurve 10? niurefine 4 610 01-09-2024, 05:28 PM
Last Post: Crimson Nape


New Posts   Today's Posts


About Apnea Board

Apnea Board is an educational web site designed to empower Sleep Apnea patients.