Page 13 of 41

Re: SleepyHead Qt v0.8 alpha

Posted: Sat Jul 30, 2011 2:29 pm
by Otter
nudave wrote:Quick question - I downloaded SleepyHeadQT today, and got it up and running after a couple of crashes. (Deleted the saved directory). Now, when I try to open it again, it'll crash and burn.

Using SleepyHead-0.8-20110721-1.exe as a backup, but now that is crashing as well?

Any suggestions?
0.7 will be less of hassle, but if want to play with the alpha, delete, move, or rename the SleepApp directory. If you're running windows, it will be under "my documents". You'll probably have to re-import everything each time you start 0.8.1 anyway, as the current alpha cant recognize data from earlier sessions. If that's what you meant be deleting the saved directory, try it one more time. If it doesn't work, I say let go. The next version will be a major rewrite anyway, hence 0.8.1 is a lame duck. No point in using what doesn't work for you. No point in testing what's about to be discarded.

Re: SleepyHead Qt v0.8 alpha

Posted: Sat Jul 30, 2011 2:39 pm
by archangle
Delete the SleepApp directory. You may get a crash the first 4 or 5 times you start the program, then it should run. Apparently, once it gets the SleepyHead directory correct, it's happy.

At least that's the way it works for me. YMMV.

One further hint. Occasionally copy the P Series directory from the SD card to your hard disk. Make a directory with todays date and copy the P Series directory from the card. That way, if your SD card ever loses the data or you somehow overwrite it, you will be able to go back and look at your old data. Also, if the next version of SH requires you to erase the SleepApp directory, you can go back and look at your old data. It could also be useful if, for some reason SH stops working with the current data on your SD card.

P Series is the directory used by PRS1 machines. I presume that ResMed S9 machines have a similar directory. Does anyone know what it's called?

Re: SleepyHead Qt v0.8 alpha

Posted: Sat Jul 30, 2011 6:43 pm
by jedimark
You'll be glad to know I've finally fixed that crud in the source code..

Files are now properly versioned, and will automatically offer to cleanup when version numbers change..

Now I've just got to remember to increment the version numbers when I have to change stuff..

I'm very happy with the new event subsystem. I'm going to do some rework to the summary stuff to make it more smart (regarding the way it keeps the min, max, average, 90% calculations etc)

Still a few bugs from the few bits of old code left to iron out..

Re: SleepyHead Qt v0.8 alpha

Posted: Sat Jul 30, 2011 8:48 pm
by Breathe Jimbo
Mark, SleepyHead has made great progress in a very short period of time. Well done!

Re: SleepyHead Qt v0.8 alpha

Posted: Sat Jul 30, 2011 9:14 pm
by mmkof5
I seldom post on here for I have little help to offer anyone...I am still, with the help of a fellow forum member, trying to get my own therapy under control...

However, I couldn't resist posting on this topic.

Mark, you are amazing! I have downloaded your program to my computer and I have Encore Pro, also. Every time I have checked my data with your program - you are "right on the money" or maybe even more so than the Encore Pro program!!!

I just wanted to extend a "THANK YOU" for all the hard work you have put into this program - "THANK YOU" for offering it to the "public" for free!

The world needs more people like you!!!

Re: SleepyHead Qt v0.8 alpha

Posted: Sat Jul 30, 2011 10:14 pm
by jedimark
Thanks guys.. The encouragement I get from you guys & gals here is part of my driving force..
That and I need good CPAP software on Linux, or I'll stay a zombie

I'd would like to say a big thank you to Jimbo.. Who's been tirelessly following GIT source and testing the heck out it on Mac, helping smash bugs flat.. I can't sneak bugs past this guy.. I swear he tests S/H harder than I do

Big thanks also to the Linux guys John & Don.. Sorry it's been so breaky on Linux guys.. I just permanently swapped to Fedora from Ubuntu, and I've been messing too much with the old 32bit Dell notebook.. My big 64bit PC now has an actual decent operating system on it, so it no longer can taunt me with it's shiny 24" screen.

I hope to put up another windows test soon to test out the new framework.. It currently doesn't have overview yet.. Oximetry needs a little more work to get solid.
I'm trying to make things extra solid, and it doesn't help having all the extra features getting in the way of solving crashes.

It's great being actually able to debug code on windows for once.. The Qt SDK from qt.nokia.com is worth the effort to setup if anyone is feeling a little nerdy on windows platform.. It comes with everything you need, including compiler (well, except for a GIT client, TortoiseGIT works enough for this). I really could use the help from someone following GIT source on windows.

By the way, now have a simple way to hide unwanted graphs, which is handy on slower computers. I still need to make it save your choices to do with this.
AntiAliasing now works on my crummy old Dell with intel graphics (it wasn't a broken graphics driver after all)

Re: SleepyHead Qt v0.8 alpha

Posted: Sun Jul 31, 2011 12:04 am
by Breathe Jimbo
An alpha test build for Mac OS X is available at:

http://sourceforge.net/projects/sleepyh ... %20Builds/

This should run on both Snow Leopard and Lion. However, it appears that you need a Mac new enough to run Lion ... at least for now.

We need more people testing this on the Mac. For this alpha test build, you do not need to build the source code. Rather, download the newest zipfile at the link above. Unzip this file and move it to your Applications folder or Desktop. Please report back whether or not you are able to start the unzipped program on your Mac. As I mentioned above, your Mac will need to be new enough to run Lion, but the app should run on either Snow Leopard or Lion. I was able to build it on Lion and run it on Snow Leopard.

If it starts (fingers crossed), click on the big red Import button and go to the folder containing your data. (Or you can import directly from your SD card. It is a good idea to backup your card frequently.) For ResMed S9 machines, that will be the folder containing the Datalog folder and several (5?) other files. The progress bar should indicate when the import is finished.

Next, pound away! Test everything. Look at all the menus and turn things on and off. Try to find things that don't work. Report your findings here, quoting all error messages, so that Mark can fix problems.

There is a know problem with graphs and artifacts flickering when the graphs are scrolled up and down. If you do NOT see this, please report that here. You can reduce or eliminate the need to scroll by unchecking specific graphs on the Graphs pull-down menu.

The Preferences pane is not implemented yet and, therefore, will do nothing when you click on it. For now, you can change various things on the View, Graphs, and Help pull-down menus.

Re: SleepyHead Qt v0.8 alpha

Posted: Sun Jul 31, 2011 1:46 am
by ozij
Hi Mark,
I tried SleepyHead yesterday for my S9 Autoset data. It looks very promising! Kudos!
I liked the notes and extras tab very much - haven't tried them yet, but their the way to go too.

To get the program to read the data from the SD you have to point it at the SD itself - at the drive level - that took some trial and error - once I pointed at the drive, import worked fine.
It also imports great from any backup directory on the hard disk - if I had copied data into a directory called Sunday, I SH Sunday, and it imports just fine - unlike ResScan, which needs the SD itself.

What are all those "fixme" events? Could they refer to flow limitations?

Very intriguing to see a "mask pressure" chart!

My SPO Medical pulse oxymeter creates edf files. Any chance you could integerate those witht the S9 presentation?

Great job
O.

Re: SleepyHead Qt v0.8 alpha

Posted: Sun Jul 31, 2011 3:18 am
by jedimark
ozij wrote:Hi Mark,
I tried SleepyHead yesterday for my S9 Autoset data. It looks very promising! Kudos!
I liked the notes and extras tab very much - haven't tried them yet, but their the way to go too.

To get the program to read the data from the SD you have to point it at the SD itself - at the drive level - that took some trial and error - once I pointed at the drive, import worked fine.
It also imports great from any backup directory on the hard disk - if I had copied data into a directory called Sunday, I SH Sunday, and it imports just fine - unlike ResScan, which needs the SD itself.

What are all those "fixme" events? Could they refer to flow limitations?

Very intriguing to see a "mask pressure" chart!

My SPO Medical pulse oxymeter creates edf files. Any chance you could integerate those witht the S9 presentation?

Great job
O.
The importer is a bit fidgety.. It's more like that so it can support multiple devices. It has to guess what data contains to pick the right loader, so needs all the clues it can get. It's a lot less confusing now it nags when it can't find data (as opposed to doing nothing)

Fixme events are now fixed in the code.. They were just reminders for me to add the unused graph data (duplicate pressure data and stuff) which is done now..
(A lot of stuff in debug menu is just reminders for me.. you can turn it off in the Help menu.. It just helps a lot with finding bugs.. )

Your SPO Medical pulse ox sounds intriguing.. Any chance you could send me some samples of the data? To support it I also need to know the where it stores it's data and the layout of the folders. (A zip of the data folder would come in very handy (unless it's huge of course))

I've already written the EDF parser for the S9, so it will I can the same parser to support your pulse ox.. I can only sync them with CPAP data if they record timestamps (meaning the device needs an internal clock, otherwise it will just work like the CMS50 does in record mode).

ResMed S9's oximeter attachment is very easy to access.. The edf data is already parsed and ready to go.. I have just never seen any S9 edf data with one in use to bother to hook the graphs up.. if anyone has a ResMed Oximeter for their S9, I can very easily add this to sleepyhead and it will be able to sync, I just need some data to test it.

I really want to add those, because currently SleepyHead's oximeter support is very CMS50 heavy..

Re: SleepyHead Qt v0.8 alpha

Posted: Sun Jul 31, 2011 5:06 am
by Otter
It's great to hear of your progress, Mark. I'm looking forward to testing the next it.
archangle wrote:One further hint. Occasionally copy the P Series directory from the SD card to your hard disk. Make a directory with todays date and copy the P Series directory from the card. That way, if your SD card ever loses the data or you somehow overwrite it, you will be able to go back and look at your old data. Also, if the next version of SH requires you to erase the SleepApp directory, you can go back and look at your old data. It could also be useful if, for some reason SH stops working with the current data on your SD card.

P Series is the directory used by PRS1 machines. I presume that ResMed S9 machines have a similar directory. Does anyone know what it's called?
The S9 stores detailed data in DATALOG and the summary and compliance data is in the SD root along with the mysterious Journal.dat.

To backup, just copy everything on the SD card, five files and one folder, to your hard disk. Unfortunately, restoring from a backup if something happens to your SD card is a bit tricky because Journal.dat has to be in a specific physical location on the card, but you can import to SleepyHead straight from the backup folder.

Re: SleepyHead Qt v0.8 alpha

Posted: Sun Jul 31, 2011 5:33 am
by glenj
I have only done this once and as yet haven't confirmed it but...

I copied everything off the card to a folder, formatted the card and then copied the files back to the card and yes, the S9 does complain and wants to wipe it all and start again. If you let it do what it wants re-creating the files etc (in the required locations) then copy the files back from your computer to the SD card you can then put the card back into the S9 without any complaints.

Backing up / copying your info from one card to another might work by doing this.

Re: SleepyHead Qt v0.8 alpha

Posted: Sun Jul 31, 2011 6:44 am
by ozij
jedimark wrote:Your SPO Medical pulse ox sounds intriguing.. Any chance you could send me some samples of the data? To support it I also need to know the where it stores it's data and the layout of the folders. (A zip of the data folder would come in very handy (unless it's huge of course))
I'll PM you a dropbox for that

Re: SleepyHead Qt v0.8 alpha

Posted: Sun Jul 31, 2011 6:54 am
by jedimark
Regarding SD card backup for S9: On Unix/Linux/OSX you can use the "dd" command (in a terminal) to copy it to an image of the SD card.. Which can be written back later to another SD card of the same capacity. There will be third party tools to do this on windows.

As mentioned, sleepyhead doesn't care where it's data comes from. It looks up the device serial number stored in each EDF file to know what machine it is from, and it knows if it's already got the file from the filename (which it uses to generate a session number from).. Doesn't matter if you import from 10 different locations. It will only import sessions that aren't already in SleepyHead's database.

Re: SleepyHead Qt v0.8 alpha

Posted: Sun Jul 31, 2011 6:56 am
by nudave
Thanks guys. I just deleted the "SleepApp" directory and imported the data again. All is well and 8.1 is a-ok!

Jedi: If you ever need a website hosted or money for support/donation let me know. You've got a great product here.

Re: SleepyHead Qt v0.8 alpha

Posted: Sun Jul 31, 2011 10:05 am
by theSleeper
Mark, I did a "git pull" today to get the latest. Called the 2 make commands.
It nicely asked me for deleting old data.
Reloaded all data.
However, when I clicked in the daily view, to zoom in, it crashed with a black screen in my Ubuntu 11.04 install. Only option was a powercycle.

One more questions for both the windows and Linux version:
How to get the oximeter data imported ?. I got the CMS50E. I was wondering how to get this data into the program. It looks likes it's reading the life data into program.

Thanks,

theSleeper.