Is there any software compatible with Android Tablet?

General Discussion on any topic relating to CPAP and/or Sleep Apnea.
User avatar
BasementDwellingGeek
Posts: 262
Joined: Sat Nov 05, 2011 12:54 pm
Location: N Billerica, MA, USA
Contact:

Re: Is there any software compatible with Android Tablet?

Post by BasementDwellingGeek » Sun Aug 12, 2012 10:16 am

A new version has been uploaded. http://basementdwellinggeek.org/CPAP%20 ... r.main.apk should now download the experimental version x.0002. Sample run is displayed below. You must uninstall the previous version before installing this one.
CPAP Viewer - x.0002

P-Series found at /sdcard/P-Series
Expecting a 50 series CPAP machine. Found ModelNumber=450P

Found file 0000000303.001
Found file 0000000304.005
Found file 0000000304.001
Found file 0000000304.002
Found file 0000000305.005
Found file 0000000305.001
Found file 0000000305.002
Found file 0000000306.005
Found file 0000000306.002
Found file 0000000306.001

Found first 002 = 0000000304.002

Started 2012-04-26 22:10:59
Run time was 8.771944444444445 hours

AHI = 1.2539979100034833
OAI = 0.5699990500015832
HI = 0.6839988600018999
CAI = 0.0
ReraI = 1.4819975300041166

Minimum Leak = 13
Maximum Leak = 61

PressureChange = 183
PressurePulse = 27
RespArousal = 13
ObstructApnea = 5
Hypopnea = 6
FlowLimited = 6
VibratorySnore = 36
Unknown_0e = 13
PB = 1
Normal = 236
Summary = 1

0 : PressureChange : 0 : 110
360 : Unknown_0e : 117 : 32 : 1 : 60
480 : PressureChange : 11 : 110
491 : VibratorySnore : 80
571 : PressureChange : 1 : 110
572 : PressureChange : 15 : 120
587 : VibratorySnore : 13
600 : VibratorySnore : 50
650 : PressureChange : 0 : 120
650 : PressureChange : 15 : 130
665 : VibratorySnore : 55
720 : VibratorySnore : 9
729 : PressureChange : 0 : 130
.
.
.
31329 : Hypopnea : 15 : 18
31344 : PressurePulse : 50 : 3
31440 : PressurePulse : 75 : 6
31560 : PressurePulse : 16 : 14
31579 : PressureChange : 0 : 110

Device Info:
OS Version: 2.6.29-00479-g3c7df37(21415)
OS API Level: 4
Device: dream
Model (and Product): T-Mobile G1 (kila)

_________________
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: own home grown SW to make it all work together, SH too.
bdg
(PR System One REMstar Pro CPAP Machine with C-Flex Plus and related humidifier as backup)

There are two types of people in this world. Those that can extrapolate from incomplete data

User avatar
BasementDwellingGeek
Posts: 262
Joined: Sat Nov 05, 2011 12:54 pm
Location: N Billerica, MA, USA
Contact:

Re: Is there any software compatible with Android Tablet?

Post by BasementDwellingGeek » Sat Aug 25, 2012 3:31 pm

A new version has been uploaded. http://basementdwellinggeek.org/CPAP%20 ... r.main.apk should now download the experimental version x.0003. You must uninstall the previous version before installing this one.

It now presents a calendar like interface. Days with data have a green background. Tap the day to see the summary info info for the previous night. It has been smoke tested on G1 phone and ViewBook tablet. Does not yet support multiple sessions per night.

_________________
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: own home grown SW to make it all work together, SH too.
bdg
(PR System One REMstar Pro CPAP Machine with C-Flex Plus and related humidifier as backup)

There are two types of people in this world. Those that can extrapolate from incomplete data

lazer
Posts: 1377
Joined: Fri Apr 20, 2012 1:56 pm
Location: Hermitage, PA
Contact:

Re: Is there any software compatible with Android Tablet?

Post by lazer » Sun Aug 26, 2012 1:44 pm

I get a message about more than one file found, not yet ready to deal with this situation....

Image

_________________
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Additional Comments: SleepyHead & Encore Basic Software & a Zeo
Image.....................................................ImagePress ESC if the animations BUG you!.....................................................Image

User avatar
BasementDwellingGeek
Posts: 262
Joined: Sat Nov 05, 2011 12:54 pm
Location: N Billerica, MA, USA
Contact:

Re: Is there any software compatible with Android Tablet?

Post by BasementDwellingGeek » Sun Aug 26, 2012 5:22 pm

Cool! It didn't do anything too unexpected. The point of this exercise was to test calendar feature. I know that is doesn't fit the page very well. It was actually targeting my G1 phone. It was something I started a long time ago and resurrected and enhanced for this application. A future enhancement will be dynamically sizing itself to the display being used. Right now I'm just trying to get to something that more or less works by bringing up bits and pieces at a time rather trying to create a complete app all at once. I appreciate your patience.

I hope you only have data for the one night on your sdcard and there was more than one session in that night. I would greatly appreciate you copying a few more nights/week/months of data onto the card and running again, especially nights with only one session. You should get a display similar to the earlier ones.

Or do you think there was only one session in that night? Or that there was more than one night of data?

I noticed what I thought a quirky thing when copying data into the emulator. It came down to Android setting the last-modified date to the date the files were copied. There seems to be no semblance of preserving a creation date, or I missed something in the docs... This resulted in the dates of all of my files being set to the date that they were copied. I ended up inserting the sdcard into my PC and the micro-sdcard into a usb type adapter to copy data from the sdcard onto the micro-sdcard to preserve dates when testing with my tablet or phone.

Admittedly a better solution is too peek inside each file to see when it was run. This is will be done once I get the database part of the application working to store the info rather than doing it every time the application is run. In that configuration It will only peek into any files that aren't already in the database.

Also, please tap the menu button and check out "About". Hopefully nothing funky will happen! "Prev" and "Next" do the same thing as the on screen buttons and will probably be removed soon. "Go" doesn't do anything, it too will be deleted soon.

Lazer, thanks for being my guinea pig and giving me the kick the get the ball rolling!

_________________
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: own home grown SW to make it all work together, SH too.
bdg
(PR System One REMstar Pro CPAP Machine with C-Flex Plus and related humidifier as backup)

There are two types of people in this world. Those that can extrapolate from incomplete data

lazer
Posts: 1377
Joined: Fri Apr 20, 2012 1:56 pm
Location: Hermitage, PA
Contact:

Re: Is there any software compatible with Android Tablet?

Post by lazer » Wed Sep 05, 2012 8:37 am

*bump*

Any new progress on this?

Image

_________________
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Additional Comments: SleepyHead & Encore Basic Software & a Zeo
Image.....................................................ImagePress ESC if the animations BUG you!.....................................................Image

User avatar
BasementDwellingGeek
Posts: 262
Joined: Sat Nov 05, 2011 12:54 pm
Location: N Billerica, MA, USA
Contact:

Re: Is there any software compatible with Android Tablet?

Post by BasementDwellingGeek » Wed Sep 05, 2012 10:59 am

I have better date selecting. If there is more than one session on a day, whether a quirk of copying to due to true mulch-sessions, an opportunity to pick a session is presented. It is then decoded pretty much as before. Still no attempt to merge session if only separated by some minimal time span.

I think I have the code to decode the 005 files, the breathing waveforms, ported. I experimented with the GUI a lot and I'm about ready to tackle displaying the waveform, a list of events and and zooming to the event in the waveform.

Since you have shown an interest I just posted the current snapshot. As before you will need to uninstall before reinstalling. The "events" page is still very much a work in process.
http://basementdwellinggeek.org/CPAP%20 ... r.main.apk

EDIT: I forgot to mention that I adopted a SleepyHead approach to indicate data is available on the calendar. Rather than having a green background for days with data I now show the date in bold blue text and regular days as normal black text. I'm thinking at some point in the future the background color might be themed to indicate an average, good or bad session.

_________________
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: own home grown SW to make it all work together, SH too.
bdg
(PR System One REMstar Pro CPAP Machine with C-Flex Plus and related humidifier as backup)

There are two types of people in this world. Those that can extrapolate from incomplete data

User avatar
BasementDwellingGeek
Posts: 262
Joined: Sat Nov 05, 2011 12:54 pm
Location: N Billerica, MA, USA
Contact:

Re: Is there any software compatible with Android Tablet?

Post by BasementDwellingGeek » Thu Sep 06, 2012 2:47 pm

The first waveform on the screen! Many bugs yet to squash... I think the snore discrepancy is related to summing snores and VS2s. Haven't a clue on the PB discrepancy....

Image SleepyHead Capture.

Image My Android App capture. I had to snap a picture with my antique, beat-up G1 phone since the emulator was being obstinate. I'll have to sort that sometime.

Both views show nightly stats and approximately 72 seconds of breathing waveform data. I was shooting for 7200 seconds (2 hours). Much work is still to be done, but this may wet some appetites.

It may be necessary to right click on the image and click "View Image" on the popup menu.

_________________
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: own home grown SW to make it all work together, SH too.
bdg
(PR System One REMstar Pro CPAP Machine with C-Flex Plus and related humidifier as backup)

There are two types of people in this world. Those that can extrapolate from incomplete data

lazer
Posts: 1377
Joined: Fri Apr 20, 2012 1:56 pm
Location: Hermitage, PA
Contact:

Re: Is there any software compatible with Android Tablet?

Post by lazer » Thu Sep 06, 2012 2:59 pm

BasementDwellingGeek wrote:I have better date selecting. If there is more than one session on a day, whether a quirk of copying to due to true mulch-sessions, an opportunity to pick a session is presented. It is then decoded pretty much as before. Still no attempt to merge session if only separated by some minimal time span.

I think I have the code to decode the 005 files, the breathing waveforms, ported. I experimented with the GUI a lot and I'm about ready to tackle displaying the waveform, a list of events and and zooming to the event in the waveform.

Since you have shown an interest I just posted the current snapshot. As before you will need to uninstall before reinstalling. The "events" page is still very much a work in process.
http://basementdwellinggeek.org/CPAP%20 ... r.main.apk

EDIT: I forgot to mention that I adopted a SleepyHead approach to indicate data is available on the calendar. Rather than having a green background for days with data I now show the date in bold blue text and regular days as normal black text. I'm thinking at some point in the future the background color might be themed to indicate an average, good or bad session.
Thanks for this as always! Just uninstalled and installed this latest version but forgot I had wiped my tablet when upgrading to JB the other day, thus I have to re-copy some files back onto it from the SD. I forget which ones to copy or can I just now copy the entire contents and do I name the DIR SDCARD? Will check further when I get home as I'm just leaving work atm.

_________________
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Additional Comments: SleepyHead & Encore Basic Software & a Zeo
Image.....................................................ImagePress ESC if the animations BUG you!.....................................................Image

User avatar
BasementDwellingGeek
Posts: 262
Joined: Sat Nov 05, 2011 12:54 pm
Location: N Billerica, MA, USA
Contact:

Re: Is there any software compatible with Android Tablet?

Post by BasementDwellingGeek » Thu Sep 06, 2012 5:30 pm

On my Android 2.2 tablet there is sdcard in the root of the file system. It contains SD_CARD. It contains the P-Series folder.

_________________
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: own home grown SW to make it all work together, SH too.
bdg
(PR System One REMstar Pro CPAP Machine with C-Flex Plus and related humidifier as backup)

There are two types of people in this world. Those that can extrapolate from incomplete data

lazer
Posts: 1377
Joined: Fri Apr 20, 2012 1:56 pm
Location: Hermitage, PA
Contact:

Re: Is there any software compatible with Android Tablet?

Post by lazer » Thu Sep 06, 2012 9:39 pm

Finally got around to testing latest version. I had to create Sdcard on internal storage on mine. Then I copied entire contents of P-Series folder within. It gives me the calendar with one date highlighted (The 6th) When I press on that, I get a bunch of .002 files to choose from and when I pick one, I sorta just get a summary in text. Does that sound right? I will try to get a screenshot up later.

_________________
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Additional Comments: SleepyHead & Encore Basic Software & a Zeo
Image.....................................................ImagePress ESC if the animations BUG you!.....................................................Image

User avatar
BasementDwellingGeek
Posts: 262
Joined: Sat Nov 05, 2011 12:54 pm
Location: N Billerica, MA, USA
Contact:

Re: Is there any software compatible with Android Tablet?

Post by BasementDwellingGeek » Fri Sep 07, 2012 7:11 am

Yes, that sounds right. I use the the last modified date when building the calendar. When you copy the files they get a last modified date of the date you copied them. I haven't implemented the peek in each file to get the real date yet until you pick an 002 file to open. Then I read it and the associated 005 to get actual run time and duration with the events and breathing/flow wave data.

I think that version should have two buttons on the text summary screen. The first "Summary" doesn't do anything. The other "Events" should open a new screen with a bunch of buttons with the names of the various events. The AHI button will a value associated with. Clicking on any of them will do nothing.

You are now using jelly bean? How does the calendar fit on the screen? The last time I looked in the emulator it was a little fubarred. There was too much space between the days and the prev/next buttons were off screen. This is turning into quite a learning experience!

_________________
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: own home grown SW to make it all work together, SH too.
bdg
(PR System One REMstar Pro CPAP Machine with C-Flex Plus and related humidifier as backup)

There are two types of people in this world. Those that can extrapolate from incomplete data

lazer
Posts: 1377
Joined: Fri Apr 20, 2012 1:56 pm
Location: Hermitage, PA
Contact:

Re: Is there any software compatible with Android Tablet?

Post by lazer » Fri Sep 07, 2012 7:30 am

Here's what I get:

Image

Image

Image

_________________
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Additional Comments: SleepyHead & Encore Basic Software & a Zeo
Image.....................................................ImagePress ESC if the animations BUG you!.....................................................Image

User avatar
BasementDwellingGeek
Posts: 262
Joined: Sat Nov 05, 2011 12:54 pm
Location: N Billerica, MA, USA
Contact:

Re: Is there any software compatible with Android Tablet?

Post by BasementDwellingGeek » Fri Sep 07, 2012 8:07 am

thanks

_________________
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: own home grown SW to make it all work together, SH too.
bdg
(PR System One REMstar Pro CPAP Machine with C-Flex Plus and related humidifier as backup)

There are two types of people in this world. Those that can extrapolate from incomplete data

User avatar
BasementDwellingGeek
Posts: 262
Joined: Sat Nov 05, 2011 12:54 pm
Location: N Billerica, MA, USA
Contact:

Re: Is there any software compatible with Android Tablet?

Post by BasementDwellingGeek » Sat Sep 08, 2012 4:58 pm

I spent way too many hours feeling stupid while trying to make the calender better fit the page. I'm not satisfied yet but figured I would share what I had. It looks OK in landscape mode on the tablet, not so good in portrait mode. Plays better in the emulator now. Tested in viewbook (2.2.1) and in virtual jelly bean. Looks totally crappy but works with limited functionality in my G1 phone.

Added a disclaimer screen so the FDA can't accuse me of practicing medicine.

Fixed bug with snores, I was accessing the wrong element of an array. Fixed bug in PB. It was a DOH! moment. I was calculating an index not a percentage.

Still only shows the first 72 seconds of flow data and no other graphs. See previous posts for instructions on loading. Same bat url.

_________________
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: own home grown SW to make it all work together, SH too.
bdg
(PR System One REMstar Pro CPAP Machine with C-Flex Plus and related humidifier as backup)

There are two types of people in this world. Those that can extrapolate from incomplete data

lazer
Posts: 1377
Joined: Fri Apr 20, 2012 1:56 pm
Location: Hermitage, PA
Contact:

Re: Is there any software compatible with Android Tablet?

Post by lazer » Mon Sep 10, 2012 8:18 am

BasementDwellingGeek wrote:I spent way too many hours feeling stupid while trying to make the calender better fit the page. I'm not satisfied yet but figured I would share what I had. It looks OK in landscape mode on the tablet, not so good in portrait mode. Plays better in the emulator now. Tested in viewbook (2.2.1) and in virtual jelly bean. Looks totally crappy but works with limited functionality in my G1 phone.

Added a disclaimer screen so the FDA can't accuse me of practicing medicine.

Fixed bug with snores, I was accessing the wrong element of an array. Fixed bug in PB. It was a DOH! moment. I was calculating an index not a percentage.

Still only shows the first 72 seconds of flow data and no other graphs. See previous posts for instructions on loading. Same bat url.
Just fired up your latest revision. Looking good!

I'm just a bit confused as to why it only selects one day of events to work with from the month's calendar & then gives a long list of .002 files and have to guess on which one to click on to get the data?

Not trying to be critical in anyway as I very much appreciate your work on this and would like to continue testing. Just the questions / observations is all

Ron

_________________
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Additional Comments: SleepyHead & Encore Basic Software & a Zeo
Image.....................................................ImagePress ESC if the animations BUG you!.....................................................Image