Oximeter for SleepyHead on Linux?

General Discussion on any topic relating to CPAP and/or Sleep Apnea.
adolson
Posts: 20
Joined: Wed Feb 14, 2007 8:28 am

Oximeter for SleepyHead on Linux?

Post by adolson » Thu Jul 10, 2014 8:47 am

I have been using SleepyHead with my ResMed S9 Elite and it's been great (except for one night, when I forgot to re-insert the SD card). I don't have a Mac and haven't had a Windows install for 12 years.

Has anyone used an oximeter with SleepyHead on Linux? I read that only a few oximeters work with SleepyHead to begin with, and they have to have a certain firmware version etc. Is there one that will Just Work(tm) for me?

Thanks in advance for any help.

_________________
Mask: Amara Full Face CPAP Mask with Gel & Silicone Cushions
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: SleepyHead on Debian Testing

User avatar
palerider
Posts: 32299
Joined: Wed Dec 16, 2009 5:43 pm
Location: Dallas(ish).

Re: Oximeter for SleepyHead on Linux?

Post by palerider » Thu Jul 10, 2014 9:46 am

adolson wrote:I have been using SleepyHead with my ResMed S9 Elite and it's been great (except for one night, when I forgot to re-insert the SD card). I don't have a Mac and haven't had a Windows install for 12 years.

Has anyone used an oximeter with SleepyHead on Linux? I read that only a few oximeters work with SleepyHead to begin with, and they have to have a certain firmware version etc. Is there one that will Just Work(tm) for me?

Thanks in advance for any help.
I got a cms50d+ to work at least once.... I've since moved on to a cms50i, but it doesn't currently import, though I'm going to try and work with jedimark on that.

_________________
Mask: Bleep DreamPort CPAP Mask Solution
Additional Comments: S9 VPAP Auto
Last edited by palerider on Mon Aug 11, 2014 8:45 pm, edited 1 time in total.
Get OSCAR

Accounts to put on the foe list: dataq1, clownbell, gearchange, lynninnj, mper!?, DreamDiver, Geer1, almostadoctor, sleepgeek, ajack, stom, mogy, D.H., They often post misleading, timewasting stuff.

User avatar
jedimark
Posts: 1300
Joined: Fri Feb 18, 2011 12:45 am
Location: Bundaberg, Australia
Contact:

Re: Oximeter for SleepyHead on Linux?

Post by jedimark » Thu Jul 10, 2014 12:14 pm

The older CMS50D+, E and F models work on Linux.. (pretty darn well with the most recent code fixes I just did the past few days.) On Linux, you have to make sure your in the dial-up group or whatever group protects the serial port.

I'm still need serial port interception logs for the newer 50F's with a firmware greater than 3.7.. (I'm not even sure they are the same baud rate, and the protocols are completely different to older firmware versions)

The .spo2 files are now supported for these newer ones, but not much use on Linux if you have to boot windows to import each time..

The cms50i has a 4 byte data sequence in the .spo2 files, which I'm still trying to figure out why... (Never seen the software to know the difference)

For serial port access for the 50i, I needs the same information as I do for the newer 50F's. (baud rate, some hexadecimal live streaming dumps, plus hexadecimal dumps before to after the upload button is pressed, and the data stream that comes after the header.)

With this information, I can tackle a driver without access to a device..

_________________
Machine: ResMed AirSense™ 10 AutoSet™ CPAP Machine with HumidAir™ Heated Humidifier
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: CMS50D+/F Oximeter, S9 VPAP Auto/Adapt, PRS1 Auto, Intellipap Auto, SleepyHead :)
Author of the free, cross platform, open-source sleep tracking software SleepyHead.
Download http://sleepyhead.jedimark.net
Source Code http://gitlab.com/sleepyhead/sleepyhead-code

User avatar
jedimark
Posts: 1300
Joined: Fri Feb 18, 2011 12:45 am
Location: Bundaberg, Australia
Contact:

Re: Oximeter for SleepyHead on Linux?

Post by jedimark » Thu Jul 10, 2014 1:10 pm

palerider wrote:
adolson wrote:I have been using SleepyHead with my ResMed S9 Elite and it's been great (except for one night, when I forgot to re-insert the SD card). I don't have a Mac and haven't had a Windows install for 12 years.

Has anyone used an oximeter with SleepyHead on Linux? I read that only a few oximeters work with SleepyHead to begin with, and they have to have a certain firmware version etc. Is there one that will Just Work(tm) for me?

Thanks in advance for any help.
I got a cms50d+ (I can't say "the plus is important" anymore, apparently julie has trademarked that term, even though I've been using it for months) to work at least once.... I've since moved on to a cms50i, but it doesn't currently import, though I'm going to try and work with jedimark on that.
This might help get a dump on Linux, although I'm not sure on the baud rate..

First, set the baud rate:
stty 19200 < /dev/cu.SLAB_USBtoUART

Then capture a stream
cat /dev/cu.SLAB_USBtoUART > serial.capture
ctrl-c after a second or two to stop..

to see the result
hexdump serial.capture

If you have any luck with that, I definitely want to see the output!

_________________
Machine: ResMed AirSense™ 10 AutoSet™ CPAP Machine with HumidAir™ Heated Humidifier
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: CMS50D+/F Oximeter, S9 VPAP Auto/Adapt, PRS1 Auto, Intellipap Auto, SleepyHead :)
Author of the free, cross platform, open-source sleep tracking software SleepyHead.
Download http://sleepyhead.jedimark.net
Source Code http://gitlab.com/sleepyhead/sleepyhead-code