Post Reply 
Exporting data from Sleephead
Author Message
AlanE Offline

Advisory Members

Posts: 1,499
Joined: Mar 2015

Machine: ResMed AirSense 10 Autoset
Mask Type: Nasal pillows
Mask Make & Model: P10 & Mirage Liberty backup
Humidifier: Built-in
CPAP Pressure: 10-14
CPAP Software: ResScan SleepyHead

Other Comments: ʕ•ᴥ•ʔ So Long, and Thanks for All the Fish

Sex: Male
Location: Southwest Florida

Post: #11
RE: Exporting data from Sleephead
Signal Plant is another program for reading EDF files.
signalplant.codeplex.com

Its open source (requires registration) also free.



Using FlashAir W-03 SD card in machine. Access through wifi with FlashPAP or Sleep Master utilities.

I wanted to learn Binary so I enrolled in Binary 101. I seemed to have missed the first four courses. Big Grinnie
01-07-2016 03:26 PM
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,163
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: #12
RE: Exporting data from Sleephead
(01-07-2016 03:14 PM)AlanE Wrote:  If the files are of the EDF exntension you can try a script written in Python that supposedly pulls the data out. github.com/rays/pyedf I have not tested it but I might now that I found it. You can read more on the EDF file format here: edfplus.info/specs/index.html

I think ResMed data is in EDF format, and Philips Respironics is a different format, but you might want to double check. I don't know if Respironics data format has any similarities to EDF, or if ResMed format is standards compliant or somewhat proprietary.

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.
01-07-2016 10:19 PM
Find all posts by this user Post Reply Quote this message in a reply
wolson Offline

Preferred Members

Posts: 92
Joined: Dec 2015

Machine: PRS1 C-Flex
Mask Type: Other
Mask Make & Model: Dreamwear
Humidifier: Remstar
CPAP Pressure: 10 cm H20 C-flex x3
CPAP Software: SleepyHead EncoreBasic

Other Comments:

Sex: Male
Location: Red Canyon, Lander, Wyoming

Post: #13
RE: Exporting data from Sleephead
(01-07-2016 10:19 PM)archangle Wrote:  
(01-07-2016 03:14 PM)AlanE Wrote:  If the files are of the EDF exntension you can try a script written in Python that supposedly pulls the data out. github.com/rays/pyedf I have not tested it but I might now that I found it. You can read more on the EDF file format here: edfplus.info/specs/index.html

I think ResMed data is in EDF format, and Philips Respironics is a different format, but you might want to double check. I don't know if Respironics data format has any similarities to EDF, or if ResMed format is standards compliant or somewhat proprietary.

i am using a Philips Respironics System One Series 60 .... I have tried all of the known and readable standard formats using Mathematica without avail. i believe Mathematica has the most complete list of formats that can be read (EDF was one of them.) Apparently, PR is using a User Defined Format which I haven't decoded yet. I haven't yet dug through Sleephead's *.dll's but the answer is probably there (... a hint of which one would be appreciated.) It doesn't look like there is a shortcut other than, "UGH", hard work. I know I am reinventing the wheel here...

QUICK UPDATE: found the PRS1 loader files in the source libraries and am working through them./WWO/

Walter W. Olson, Ph.D., P.E.
Professor Emeritus
(This post was last modified: 01-08-2016 03:23 PM by wolson.)
01-08-2016 01:25 PM
Find all posts by this user Post Reply Quote this message in a reply

Donate to Apnea Board
Sleeprider Online
Wiki Editor
Advisory Members

Posts: 3,400
Joined: Dec 2014

Machine: Resmed Aircurve 10 Vauto
Mask Type: Nasal pillows
Mask Make & Model: Resmed Airfit P10
Humidifier: Resmed Climateline
CPAP Pressure: Auto Bilevel 18/9, PS 3
CPAP Software: ResScan SleepyHead EncoreBasic

Other Comments:

Sex: Male
Location: Where they make Respironics

Post: #14
RE: Exporting data from Sleephead
Walter, if you have a strong programming interest and think you may be able to help with Sleepyhead development, send a PM request to SuperSleeper highlighting your interest and experience, and request admission to the private software development group that works directly with Mark Watkins, and where the biggest collaboration of programming, troubleshooting and user input exists. Once there, you'll have better luck getting these details and actually feeding your contribution into development. I'm sure that if Mark shares the code with you for development purposes, you'll need to agree to some terms of use.

Sounds like you would be a very good addition to the group, but the decision is made through SuperSleeper and Mark.

______________________________________________
Organize your SleepyHead Data
Post your SleepyHead Data from Imgur
Robysue's Beginner's Guide to Sleepyhead
01-08-2016 01:45 PM
Find all posts by this user Post Reply Quote this message in a reply
wolson Offline

Preferred Members

Posts: 92
Joined: Dec 2015

Machine: PRS1 C-Flex
Mask Type: Other
Mask Make & Model: Dreamwear
Humidifier: Remstar
CPAP Pressure: 10 cm H20 C-flex x3
CPAP Software: SleepyHead EncoreBasic

Other Comments:

Sex: Male
Location: Red Canyon, Lander, Wyoming

Post: #15
RE: Exporting data from Sleephead
(01-08-2016 01:45 PM)Sleeprider Wrote:  Walter, if you have a strong programming interest and think you may be able to help with Sleepyhead development, send a PM request to SuperSleeper highlighting your interest and experience, and request admission to the private software development group that works directly with Mark Watkins, and where the biggest collaboration of programming, troubleshooting and user input exists. Once there, you'll have better luck getting these details and actually feeding your contribution into development. I'm sure that if Mark shares the code with you for development purposes, you'll need to agree to some terms of use.

Sounds like you would be a very good addition to the group, but the decision is made through SuperSleeper and Mark.

Thank you, I will do that in the near future.

Walt

Walter W. Olson, Ph.D., P.E.
Professor Emeritus
01-08-2016 03:25 PM
Find all posts by this user Post Reply Quote this message in a reply

Donate to Apnea Board
wolson Offline

Preferred Members

Posts: 92
Joined: Dec 2015

Machine: PRS1 C-Flex
Mask Type: Other
Mask Make & Model: Dreamwear
Humidifier: Remstar
CPAP Pressure: 10 cm H20 C-flex x3
CPAP Software: SleepyHead EncoreBasic

Other Comments:

Sex: Male
Location: Red Canyon, Lander, Wyoming

Post: #16
RE: Exporting data from Sleephead
SUCCESS!!!

http://sourceforge.net/p/sleepyhead/code...Format.odt

Apparently, this document found in the source code for SleepyHead is exactly what I need. I haven't tried it on a file yet but it sure looks like the answer!

Thank you, Mark, for writing it and posting it!

Now I have a bit of programming to do!

Walt

Walter W. Olson, Ph.D., P.E.
Professor Emeritus
(This post was last modified: 01-09-2016 02:49 PM by wolson.)
01-09-2016 02:41 PM
Find all posts by this user Post Reply Quote this message in a reply
wolson Offline

Preferred Members

Posts: 92
Joined: Dec 2015

Machine: PRS1 C-Flex
Mask Type: Other
Mask Make & Model: Dreamwear
Humidifier: Remstar
CPAP Pressure: 10 cm H20 C-flex x3
CPAP Software: SleepyHead EncoreBasic

Other Comments:

Sex: Male
Location: Red Canyon, Lander, Wyoming

Post: #17
RE: Exporting data from Sleephead
An update: I successfully downloaded and extracted my flow data from the SD Card for a PRS1 Series 60. The file by JediMark above was a great help.

You need to be careful, though: he mixes hexadecimal and decimal numbers at times:
the datasize in decimal is = BlockLength - 24 - 3*nsig.

Everything I wanted was in the session.005 file. The block headers are a JediMark described but you need to reverse the byte orders for 16 bit and 32 bit entries. The actual flow data is stored as Signed Integer 8. If you read the data in as Unsigned Integer 8 (as I did to parse out the header) you need to perform a 2's complement to get the actual values. My data was not interleaved so extracting it was very easy, once I understood the format.

Now that I have the data, I still need to do the analysis.

Walt

Walter W. Olson, Ph.D., P.E.
Professor Emeritus
(This post was last modified: 01-12-2016 03:23 PM by wolson.)
01-12-2016 03:22 PM
Find all posts by this user Post Reply Quote this message in a reply

Donate to Apnea Board
AlanE Offline

Advisory Members

Posts: 1,499
Joined: Mar 2015

Machine: ResMed AirSense 10 Autoset
Mask Type: Nasal pillows
Mask Make & Model: P10 & Mirage Liberty backup
Humidifier: Built-in
CPAP Pressure: 10-14
CPAP Software: ResScan SleepyHead

Other Comments: ʕ•ᴥ•ʔ So Long, and Thanks for All the Fish

Sex: Male
Location: Southwest Florida

Post: #18
RE: Exporting data from Sleephead
Nice job. and I understood everything you wrote. scary...



Using FlashAir W-03 SD card in machine. Access through wifi with FlashPAP or Sleep Master utilities.

I wanted to learn Binary so I enrolled in Binary 101. I seemed to have missed the first four courses. Big Grinnie
01-12-2016 06:47 PM
Find all posts by this user Post Reply Quote this message in a reply
pholynyk Offline

Advisory Members

Posts: 308
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: #19
RE: Exporting data from Sleephead
Perhaps we can make you into a programmer yet, Alan. Big Grin

How did you do with Lemmings?
01-13-2016 12:21 AM
Find all posts by this user Post Reply Quote this message in a reply

Donate to Apnea Board
AlanE Offline

Advisory Members

Posts: 1,499
Joined: Mar 2015

Machine: ResMed AirSense 10 Autoset
Mask Type: Nasal pillows
Mask Make & Model: P10 & Mirage Liberty backup
Humidifier: Built-in
CPAP Pressure: 10-14
CPAP Software: ResScan SleepyHead

Other Comments: ʕ•ᴥ•ʔ So Long, and Thanks for All the Fish

Sex: Male
Location: Southwest Florida

Post: #20
RE: Exporting data from Sleephead
(01-13-2016 12:21 AM)pholynyk Wrote:  How did you do with Lemmings?

You just push one off the cliff and sit back, watch the show.



Using FlashAir W-03 SD card in machine. Access through wifi with FlashPAP or Sleep Master utilities.

I wanted to learn Binary so I enrolled in Binary 101. I seemed to have missed the first four courses. Big Grinnie
01-13-2016 08:45 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
  Sleephead Software and Wireless Uploads RESTMD 3 332 10-16-2016 05:13 PM
Last Post: srlevine1
  old version of sleephead download car54 4 424 09-26-2016 01:31 PM
Last Post: Crimson Nape
  Sleephead broken Gl version ? jpoker 2 291 09-25-2016 07:46 PM
Last Post: GoodnightWalter
  Sleephead Help Needed Dreams of Green 1 288 09-07-2016 01:44 AM
Last Post: chill
  Sleephead Tabs Not working PatCurt 4 221 09-02-2016 08:50 PM
Last Post: PatCurt
  Sleephead Tries to write to My SD card cmccarter 5 416 06-05-2016 05:33 PM
Last Post: SaldusMiegas
  Sleephead hangs after log in new installaiton Dan Szewczyk 2 258 04-21-2016 06:09 PM
Last Post: Dan Szewczyk

Forum Jump:

Who's Online (Complete List)