SleepyHead Qt v0.8 alpha

General Discussion on any topic relating to CPAP and/or Sleep Apnea.
User avatar
archangle
Posts: 9293
Joined: Sun Mar 27, 2011 11:55 am

Re: SleepyHead Qt v0.8 alpha

Post by archangle » Sun Sep 04, 2011 12:47 am

jedimark wrote:By the way, anyone who's tried building with Qt's SDK, and got held up on the 'qwineventnotifier_p.h' file being missing.. This has been fixed in git.

I just included the file with the integrated qextserialport library that needed it.. Why I didn't think of doing that before is totally beyond me.. :-/

I've finally got my windows boxes Qt SDK up to date again.. Just packaging things together and testing now.. Should have a new build up in a bit..
I'll take a stab at the windows build.

_________________
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: Also SleepyHead, PRS1 Auto, Respironics Auto M series, Legacy Auto, and Legacy Plus
Please enter your equipment in your profile so we can help you.
Click here for information on the most common alternative to CPAP.
If it's midnight and a DME tells you it's dark outside, go and check for yourself.

Useful Links.

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

Re: SleepyHead Qt v0.8 alpha

Post by jedimark » Sun Sep 04, 2011 12:50 am

SleepyHead 0.8.4 alpha developer preview

Download Link
http://sourceforge.net/projects/sleepyh ... p/download

Featuring less old bugs, and more new ones..

This is the entire package.. built with a new version of Qt (4.7.4) so has a new set of DLL's..
Unzip to a fresh folder, do not copy over the old one. Binary is just called SleepyHead.exe

Bugs & Annoyances (that I already know about in this version, and don't want to be reminded of just yet! )
Temporary overview bargraphs are in a very annoying spot, and refresh every time a day is selected.. The tooltips over the bargraphs don't go away properly when leaving the graph area..
Changing between main window tabs sometimes lets mr sheep (still not an official logo by the way) show through. This doesn't happen on vertical scrolling anymore though.
Oximetry is still buggy.. Still cleaning up the other stuff first. Serial Import only seems to want to work on the CMS50D+
Enable Multithreading doesn't actually make things run faster yet.. (and may be prone to breakage on certain configurations)
In debug mode (Help -> Debug), it shows how long a frame took to draw.. Can get annoying.. Turns off with the debug info panel down the bottom.
For some dumb reason the PRS1 importer still won't let me select the P-Series on windows platform, have to select the SD root. I'm doing something dumb.. It will strike me as obvious later on..
Prints some silly Fragment Shader error message in the debug messages.. It's not an error.. It's just Qt dumbly reporting it worked as intended.
EDIT: Reset Graph Layout also doesn't work yet.

Have fun,

/Mark

_________________
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
Otter
Posts: 1063
Joined: Sat Mar 19, 2011 5:02 pm

Re: SleepyHead Qt v0.8 alpha

Post by Otter » Sun Sep 04, 2011 1:13 am

jedimark wrote:As for ResMed, that +10second theory sounds very plausible. I guess we will have to try it and see. I'll make this change before I upload the new build today.. We can tweak it later next round if it's not right. Comparing to resscan is the best way to verify..
I agree it's a good thing to check, but ResMed's code is pretty flakey in general, so I wouldn't take disagreement with ResScan to mean you've got it wrong. Unfortunately, I can't install ResScan because the installer is 16 bit, and my OS only runs 32 and 64 bit.

_________________
Mask: Quattro™ FX Full Face CPAP Mask with Headgear
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: Software: SleepyHead 0.9 beta

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

Re: SleepyHead Qt v0.8 alpha

Post by jedimark » Sun Sep 04, 2011 1:28 am

Otter wrote:
jedimark wrote:As for ResMed, that +10second theory sounds very plausible. I guess we will have to try it and see. I'll make this change before I upload the new build today.. We can tweak it later next round if it's not right. Comparing to resscan is the best way to verify..
I agree it's a good thing to check, but ResMed's code is pretty flakey in general, so I wouldn't take disagreement with ResScan to mean you've got it wrong. Unfortunately, I can't install ResScan because the installer is 16 bit, and my OS only runs 32 and 64 bit.

16bit?? That still exists? Last I used that was windows 3.1, and even that had win32 libraries..
Urgk.

I did remember to put these changes in the version I just uploaded.. I didn't really test that change all that well.. Only looked at a handful of them.. Appeared to be correct, further strengthening the case for it..

The selected area used to show the time range selected down in the status bar. I've gotta redo that bit, it was rather handy.. It's not in this newest build.

_________________
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
archangle
Posts: 9293
Joined: Sun Mar 27, 2011 11:55 am

Re: SleepyHead Qt v0.8 alpha

Post by archangle » Sun Sep 04, 2011 1:34 am

jedimark wrote:SleepyHead 0.8.4 alpha developer preview

Download Link
http://sourceforge.net/projects/sleepyh ... p/download
There's a SleepyHeadQT.exe in the zip file. From the date, I presume it's an old version.

_________________
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: Also SleepyHead, PRS1 Auto, Respironics Auto M series, Legacy Auto, and Legacy Plus
Please enter your equipment in your profile so we can help you.
Click here for information on the most common alternative to CPAP.
If it's midnight and a DME tells you it's dark outside, go and check for yourself.

Useful Links.

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

Re: SleepyHead Qt v0.8 alpha

Post by jedimark » Sun Sep 04, 2011 1:36 am

archangle wrote:
jedimark wrote:SleepyHead 0.8.4 alpha developer preview

Download Link
http://sourceforge.net/projects/sleepyh ... p/download
There's a SleepyHeadQT.exe in the zip file. From the date, I presume it's an old version.

o-O

Did I screw it up?

_________________
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: SleepyHead Qt v0.8 alpha

Post by jedimark » Sun Sep 04, 2011 1:40 am

Doh! It appears I left it in by mistake.. I did at least add the right one as well though..

I'm reuploading.

Anyone who's downloaded it already, it's safe to delete the SleepyHeadQt.exe, the correct binary is just SleepyHead.exe

_________________
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
archangle
Posts: 9293
Joined: Sun Mar 27, 2011 11:55 am

Re: SleepyHead Qt v0.8 alpha

Post by archangle » Sun Sep 04, 2011 1:42 am

jedimark wrote:I've finally got my windows boxes Qt SDK up to date again..
Geez, I see what you mean by "finally." I guess I'm not going to try a build tonight.

_________________
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: Also SleepyHead, PRS1 Auto, Respironics Auto M series, Legacy Auto, and Legacy Plus
Please enter your equipment in your profile so we can help you.
Click here for information on the most common alternative to CPAP.
If it's midnight and a DME tells you it's dark outside, go and check for yourself.

Useful Links.

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

Re: SleepyHead Qt v0.8 alpha

Post by jedimark » Sun Sep 04, 2011 2:21 am

archangle wrote:
jedimark wrote:I've finally got my windows boxes Qt SDK up to date again..
Geez, I see what you mean by "finally." I guess I'm not going to try a build tonight.
It doesn't have to be built with the new version.. But worth upgrading I guess.

The Qt guys apparently live in a world of unlimited bandwidth and fast connections..

_________________
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
Otter
Posts: 1063
Joined: Sat Mar 19, 2011 5:02 pm

Re: SleepyHead Qt v0.8 alpha

Post by Otter » Sun Sep 04, 2011 2:43 am

jedimark wrote:16bit?? That still exists? Last I used that was windows 3.1, and even that had win32 libraries..
Urgk.
Yes. Windows 7 comes with a VM to run 16 bit code. I assume this is partly because some developers are too lazy to update their installers. Or maybe they just don't know how. Hard to fathom, isn't it?

_________________
Mask: Quattro™ FX Full Face CPAP Mask with Headgear
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: Software: SleepyHead 0.9 beta

fiberfan
Posts: 262
Joined: Sat Feb 13, 2010 2:50 pm
Location: UT

Re: SleepyHead Qt v0.8 alpha

Post by fiberfan » Sun Sep 04, 2011 7:00 am

Otter wrote:Unfortunately, I can't install ResScan because the installer is 16 bit, and my OS only runs 32 and 64 bit.
Have you tried it in a xp virtual machine? The only way I can get ResScan to install and run with 64 bit Win 7 and security settings I don't control is in an xp virtual machine. To import data I have to tell the virtual machine to use the card reader instead of it being shared between win 7 and the xp virtual machine. I already had the xp virtual machine setup since many of the people who use the software I write are still using xp - I frequently have to test behavior in both versions of windoze.

_________________
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: ResScan 3.14 and SleepyHead software.
So many ideas, so much fiber, so little time - http://fiberfan.blogspot.com/

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

Re: SleepyHead Qt v0.8 alpha

Post by jedimark » Sun Sep 04, 2011 7:04 am

milw wrote:
jedimark wrote:
You appear to not be running the latest version, try another git pull. You may have caught one in the middle with breaky threading..
No Threading option under View menu, and git pull gave me this:

Code: Select all

Dadgars-MacBook:gitroot-sleepyhead-sleepyhead Scott$ git pull
Updating 7e14cb9..eb83b74
error: Your local changes to the following files would be overwritten by merge:
	SleepLib/loader_plugins/cms50_loader.cpp
Please, commit your changes or stash them before you can merge.
Aborting
I don't mind if my local file is overwritten, is there a way to force the pull?
(never mind, I pulled a new clone so will build and run!)

OK, new build from new clone (just 'SleepyHead.app' now, not 'SleepyHeadQT.app' so I had to fix a shortcut!). Same results from serial port debug output, but no crash on quit now (unchecked for Enable Multithreading under View menu)

and speaking of sleepyhead, my new Quattro FX is calling me! Will do a new pull in the am and check serial debug again!
For next time when it does that:

either do a 'git revert head' or a 'git stash' and then do the 'git pull'

---
By the way.. MultiThreading was actually unintentionally disabled in the windows build I just uploaded, so the menu option is a dummy.
For source users, it won't enable if it's on a single core machine.. I don't think it will cause crashes. Wish I knew why it doesn't draw any faster with it on.

_________________
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
milw
Posts: 59
Joined: Thu Jul 21, 2011 7:21 pm
Location: Madison, Wisconsin

Re: SleepyHead Qt v0.8 alpha

Post by milw » Sun Sep 04, 2011 8:22 am

jedimark wrote:
For next time when it does that:

either do a 'git revert head' or a 'git stash' and then do the 'git pull'
OK, thanks- new build with bar chart overviews looks fantastic! Unfortunately still the same debug output for trying to connect to the CMS50E
btw Sleepyhead tells me last night was my best night yet- AHI 2.35 WOOT!

Code: Select all

00000: "SleepyHead v0.8.4" built with Qt 4.8.0 on Sep  4 2011 09:14:24 
00000: Loading  "/Users/Scott/Documents/SleepApp/Profiles/Scott/6a6b6d6c" 
00000: Loading  "/Users/Scott/Documents/SleepApp/Profiles/Scott/3dfc812d" 
00000: Loading  "/Users/Scott/Documents/SleepApp/Profiles/Scott/6a611d9a" 
00000: port name: "/dev/cu.SLAB_USBtoUART" 
00000: phys name: "IOService:/AppleACPIPlatformExpert/PCI0/AppleACPIPCI/UHC4@1A/AppleUSBUHCI/CP2102 USB to UART Bridge Controller@1a200000/CP2102 USB to UART Bridge Controller@0/com_silabs_driver_CP210xVCPDriver/IORS232SerialStreamSync/IOSerialBSDClient" 
00000: friendly name: "" 
00000: enumerator name: "" 
00000: port name: "/dev/cu.SerialPort" 
00000: phys name: "IOService:/IOResources/IOBluetoothSerialManager/IOBluetoothSerialClient/IOBluetoothSerialClientModemStreamSync/IOSerialBSDClient" 
00000: friendly name: "" 
00000: enumerator name: "" 
00000: port name: "/dev/cu.Bluetooth-Modem" 
00000: phys name: "IOService:/IOResources/IOBluetoothSerialManager/IOBluetoothSerialClient/IOBluetoothSerialClientModemStreamSync/IOSerialBSDClient" 
00000: friendly name: "" 
00000: enumerator name: "" 
00000: port name: "/dev/cu.eb500-A7SerialPort-1" 
00000: phys name: "IOService:/IOResources/IOBluetoothSerialManager/IOBluetoothSerialClient/IOBluetoothSerialClientSerialStreamSync/IOSerialBSDClient" 
00000: friendly name: "" 
00000: enumerator name: "" 
00000: port name: "/dev/cu.Bluetooth-PDA-Sync" 
00000: phys name: "IOService:/IOResources/IOBluetoothSerialManager/IOBluetoothSerialClient/IOBluetoothSerialClientSerialStreamSync/IOSerialBSDClient" 
00000: friendly name: "" 
00000: enumerator name: "" 
00000: port name: "/dev/cu.SpO2-DevB" 
00000: phys name: "IOService:/IOResources/IOBluetoothSerialManager/IOBluetoothSerialClient/IOBluetoothSerialClientSerialStreamSync/IOSerialBSDClient" 
00000: friendly name: "" 
00000: enumerator name: "" 
00006: trying to open file "/dev/cu.SLAB_USBtoUART" 
00006: file opened succesfully
00006: check device is turned on 
00006: listening for data on "/dev/cu.SLAB_USBtoUART" 
00014: Warning: Session::set_last() d<=s_first 
00018: trying to open file "/dev/cu.SLAB_USBtoUART" 
00018: file opened succesfully
00019: "0: Bytes 0: " 
00020: "0: Bytes 0: " 
00021: "0: Bytes 0: " 
00022: "0: Bytes 0: " 
00023: "0: Bytes 0: " 
00023: Retrying.. 
00024: "0: Bytes 0: " 
00025: "0: Bytes 0: " 
00026: "0: Bytes 0: " 
00027: "0: Bytes 0: " 
00028: "0: Bytes 0: " 
00028: Retrying.. 
00029: "0: Bytes 0: " 
00030: "0: Bytes 0: " 
00031: "0: Bytes 0: " 
00032: "0: Bytes 0: " 
00033: "0: Bytes 0: " 
00033: Retrying.. 
00034: "0: Bytes 0: " 
00035: "0: Bytes 0: " 
00036: "0: Bytes 0: " 
00037: "0: Bytes 0: " 
00038: "0: Bytes 0: " 
00038: Retrying.. 
00039: "0: Bytes 0: " 
00040: "0: Bytes 0: " 
00041: "0: Bytes 0: " 
00042: "0: Bytes 0: " 
00043: "0: Bytes 0: " 
00043: Retrying.. 
BTW, was arrow navigation in the graphs intentionally dropped? I really liked that- up/down to zoom, right/left to shift along the graph. Now arrows seem to move you in the calendar, right/left from day to day.

_________________
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Additional Comments: Onkor, SleepyHead, CMS 50EW oximeter
Official hosehead since July 22, 2011

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

Re: SleepyHead Qt v0.8 alpha

Post by jedimark » Sun Sep 04, 2011 11:05 am

milw wrote:
jedimark wrote:
For next time when it does that:

either do a 'git revert head' or a 'git stash' and then do the 'git pull'
OK, thanks- new build with bar chart overviews looks fantastic! Unfortunately still the same debug output for trying to connect to the CMS50E
btw Sleepyhead tells me last night was my best night yet- AHI 2.35 WOOT!

BTW, was arrow navigation in the graphs intentionally dropped? I really liked that- up/down to zoom, right/left to shift along the graph. Now arrows seem to move you in the calendar, right/left from day to day.
Congrats on getting your stats down!

Serial import (the import from device button) is currently broken for your model. Serial live view should in theory work, (ie, when you click start.) it can take a few seconds to start up sometimes.
If it doesn't work in live view mode, it indicates a fault in the qextserialport library.

Does the '/dev/cu.SpO2-DevB' device show up in the drop down list?

You may be having a UNIX permissions problem with the serial device.. Do you need to be added to a group for serial port access? Perhaps a mac guru can clarify this stuff.. I'm pretty clueless on most things apple.

As for the key stuff, fear not, it has not been dropped intentionally.. It's just missing because I haven't gotten around to reimplementing it.. it was a total redesign of the graphing system

_________________
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
milw
Posts: 59
Joined: Thu Jul 21, 2011 7:21 pm
Location: Madison, Wisconsin

Re: SleepyHead Qt v0.8 alpha

Post by milw » Sun Sep 04, 2011 12:00 pm

jedimark wrote:
Does the '/dev/cu.SpO2-DevB' device show up in the drop down list?
Yes it shows in the dropdown, but no I can't connect to it, I thought I had posted the debug output from trying back a few posts. Never fear, try try again!

_________________
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Additional Comments: Onkor, SleepyHead, CMS 50EW oximeter
Official hosehead since July 22, 2011