REMStar M-Series data format.

General Discussion on any topic relating to CPAP and/or Sleep Apnea.
User avatar
jedimark
Posts: 1300
Joined: Fri Feb 18, 2011 12:45 am
Location: Bundaberg, Australia
Contact:

REMStar M-Series data format.

Post by jedimark » Sat Feb 04, 2012 6:02 am

Rather than create a confusing tech mess thread, I'll just link to the SleepyHead Wiki with my current notes on hacking out the REMStar M-Series data format.

http://sourceforge.net/apps/mediawiki/s ... ata_Format

But the good news is progress is being made with M-Series machine data, and these machines will hopefully be supported in SleepyHead soon.

An external program is needed to extract the smart-card binary data, which so far are only available on windows... unless someone knows how to extract the binary card data with the DT-3500 on Linux/Mac?

Thanks to Phil Gillam for the pointers to get me started..

And thanks very much to DoriC again for the machine

I really need a few more .bin samples to confirm my current theories.. If anyone can generate the 32kb .bin dumps, I'd really like to grab a copy, as I really want this to work with as many different M-series machine types as possible.

_________________
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 :)
Last edited by jedimark on Sat Feb 04, 2012 6:45 am, edited 1 time in total.
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: REMStar M-Series data format.

Post by jedimark » Sat Feb 04, 2012 6:37 am

Found linux drivers here for the Infineer DT-3500 card reader, by Mako technologies.

http://www.linuxnet.com/sourcedrivers.html
Direct Link: http://www.linuxnet.com/drivers/readers ... 0.0.tar.gz

Includes a kernel module.. I'm not sure if I can easily adapt this into a cross-platform userspace USB driver to incorporate into sleepyhead.

At the very least, a bin extractor can be written for Linux using this code, and SleepyHead can call an external application on Win/Linux to dump the card.

As for how Mac users can get at it.. theoretically a IO-Kit driver could be crafted from the Linux code.. but I wouldn't even know where to begin with that
Edit: Here is an open-source example of an OSX userspace USB serial driver.. http://sourceforge.net/projects/osx-pl2303/ - it might give some clues.

_________________
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 :)
Last edited by jedimark on Sat Feb 04, 2012 6:43 am, edited 1 time in total.
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

cflame1
Posts: 3312
Joined: Sat Mar 11, 2006 6:55 am
Location: expat Canadian in Kentucky

Re: REMStar M-Series data format.

Post by cflame1 » Sat Feb 04, 2012 6:38 am

Mark,
I've still got an old card from my legacy Bipap Auto... and the card utility... want to look at that too?

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

Re: REMStar M-Series data format.

Post by jedimark » Sat Feb 04, 2012 6:45 am

cflame1 wrote:Mark,
I've still got an old card from my legacy Bipap Auto... and the card utility... want to look at that too?
I just need to look at the .bin dump of the actual card data.. I think I've got all the card utilities for windoze.

According to Phil the formats are quite different..

_________________
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: REMStar M-Series data format.

Post by jedimark » Sat Feb 04, 2012 6:50 am

Here's an open-source OSX card-reader driver that will help with S8 importer project later on...

http://acsccid.sourceforge.net/

_________________
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