Hello Guest, Welcome to Apnea Board !
As a guest, you are limited to certain areas of the board and there are some features you can't use.
To post a message, you must create a free account using a valid email address.

or Create an Account


New Posts   Today's Posts

AirMini Travel Data Extraction & Teardown
#11
RE: AirMini Travel Data Extraction & Teardown
(02-27-2019, 12:03 AM)JimIve Wrote: The 256KB FRAM contains a FAT12 filesystem, but doesn't contain the sleep data (having some communication errors which need to be knocked down so I haven't seen every "page" on there yet, but it appears to be just settings and a journal file) and some DATALOG files (which don't contain sleep data), and the FRAM would be too small:

Code:
drwxrwxrwx  1 unknown  staff   1024  1 Jan  2012 DATALOG
drwxrwxrwx  1 unknown  staff   1024  1 Jan  2012 ERRORLOG
drwxrwxrwx  1 unknown  staff   1024  1 Jan  2012 SETTINGS
-rwxrwxrwx  1 unknown  staff  16384  1 Jan  2012 journal.jnl

./DATALOG:
total 296
drwxrwxrwx  1 unknown  staff   1024  1 Jan  2012 .
drwxrwxrwx@ 1 unknown  staff  16384 26 Feb 21:55 ..
-rwxrwxrwx  1 unknown  staff   5120  1 Jan  2012 AEE.EVN
-rwxrwxrwx  1 unknown  staff  26880  1 Jan  2012 BAE.EVN
-rwxrwxrwx  1 unknown  staff   3840  1 Jan  2012 BEE.EVN
-rwxrwxrwx  1 unknown  staff   6400  1 Jan  2012 DAE.EVN
-rwxrwxrwx  1 unknown  staff  33280  1 Jan  2012 DAF.EVN
-rwxrwxrwx  1 unknown  staff   5120  1 Jan  2012 ELV.EVN
-rwxrwxrwx  1 unknown  staff   3840  1 Jan  2012 FAE.EVN
-rwxrwxrwx  1 unknown  staff  26880  1 Jan  2012 RAE.EVN
-rwxrwxrwx  1 unknown  staff   6400  1 Jan  2012 REE.EVN
-rwxrwxrwx  1 unknown  staff   5120  1 Jan  2012 SRE.EVN
-rwxrwxrwx  1 unknown  staff   6400  1 Jan  2012 XSE.EVN

./ERRORLOG:
total 34
drwxrwxrwx  1 unknown  staff   1024  1 Jan  2012 .
drwxrwxrwx@ 1 unknown  staff  16384 26 Feb 21:55 ..

./SETTINGS:
total 60
drwxrwxrwx  1 unknown  staff   1024  1 Jan  2012 .
drwxrwxrwx@ 1 unknown  staff  16384 26 Feb 21:55 ..
-rwxrwxrwx  1 unknown  staff     27  6 Aug  2017 AGL.set
-rwxrwxrwx  1 unknown  staff     23  6 Aug  2017 AHL.set
-rwxrwxrwx  1 unknown  staff     80  1 Jan  2012 BGL.set
-rwxrwxrwx  1 unknown  staff    345  1 Jan  2012 BTP.set
-rwxrwxrwx  1 unknown  staff     20  6 Aug  2017 CGL.set
-rwxrwxrwx  1 unknown  staff    325  1 Jan  2012 DID.set
-rwxrwxrwx  1 unknown  staff     28  6 Aug  2017 EGL.set
-rwxrwxrwx  1 unknown  staff   1038  1 Jan  2012 MCF.set
-rwxrwxrwx  1 unknown  staff     28  6 Aug  2017 MGL.set
-rwxrwxrwx  1 unknown  staff     54  1 Jan  2012 MML.set
-rwxrwxrwx  1 unknown  staff     48  6 Aug  2017 PGL.set


The SPI Flash seems to contain the sleep data, but I'm stumped as to the format.  Anyone have a clue how they're storing the sleep data?  They use "FS NOR" repeatedly at the beginning of every page, but I couldn't find a match on the flash file format.  Anyone familiar with SleepyHead have any ideas about this?

I just took a quick look at the SPI NOR data you posted and am trying to make sense of the data. There is a small header and then a bunch of records but no index or table of contents present that I can see. I'm thinking that maybe they're using the FRAM to keep track of this bookkeeping information such as where to write next, etc...

Can you upload the FRAM contents as well? I think the journal might contain some helpful clues.
Post Reply Post Reply
#12
RE: AirMini Travel Data Extraction & Teardown
What I've been able to suss out so far is that the first 32 bytes of the file appears to be some sort of header which is then followed by N records of 368 bytes (0x170) each which appear to consist entirely of signed 16-bit values. I tried to interpret a bunch of the values as some standard time formats but none of them appear to make sense. This pattern does break down partway through the file, so hopefully other sources of information can shed some light on it.

I think the journal file from the FRAM might be helpful in finding timestamps or other metadata for the records stored in the SPI NOR.
Post Reply Post Reply
#13
RE: AirMini Travel Data Extraction & Teardown
This is excellent work @JimIve and others
Post Reply Post Reply
#14
RE: AirMini Travel Data Extraction & Teardown
ResMed has used EDF Plus for it's File formats on the SD cards. The file doesn't look like that format though.

https://www.edfplus.info/
Post Reply Post Reply
#15
RE: AirMini Travel Data Extraction & Teardown
wow this is amazing, good luck and wish that ResMed made at least a microsd for mini. This is one of the main reasons why I decided against the mini and so many proprietary items.
Take control of your machine
pick your weapon (ResScan/ OSCAR)
and be informed guys!
Post Reply Post Reply
#16
RE: AirMini Travel Data Extraction & Teardown
Impressive work!
Post Reply Post Reply
#17
RE: AirMini Travel Data Extraction & Teardown
Hi! Haven't posted in a while. I just bought an AirMini to replace my Respironics FoamStation. I like the little machine, but, like so many others, am incredulous that there is no way to get the data out of it. Looking for a way to do it, I landed here and read the fantastic work described in this thread. One of the two, the work or the thread, seems to have ended abruptly several years ago. Is anyone aware whether this work continued, and whether the code to the file format was ever cracked?? Thanks!
Post Reply Post Reply
#18
RE: AirMini Travel Data Extraction & Teardown
@JimIve - thanks for all the work you’ve put into this. I can’t help but notice you seem to be quite good at electronics and coding.  I’ve been searching for awhile now to try to find a solution that eliminates the need for proprietary chargers. This isn’t such a big deal if I’m at home since my machine is always plugged in and doesn’t move but for traveling, it would be great if I didn’t need to bring my CPAP power supply. 

I haven’t seen this done anywhere but have you ever considered getting rid of the proprietary power connector and replacing it with a USB C female tip so users can leverage the convenience and power delivery of USB C?
Post Reply Post Reply
#19
RE: AirMini Travel Data Extraction & Teardown
Hi MasterW!  -  Welcome

The OP's profile shows he hasn't been back on the board since September 2021.  Since your question deals with a different subject, you may have better luck creating your own thread for your inquiry.  

- Red
Crimson Nape
Apnea Board Moderator
www.ApneaBoard.com
___________________________________
Useful Links -or- When All Else Fails:
The Guide to Understanding OSCAR
OSCAR Chart Organization
Attaching Images and Files on Apnea Board
Apnea Helpful Tips

INFORMATION ON APNEA BOARD FORUMS OR ON APNEABOARD.COM SHOULD NOT BE CONSIDERED AS MEDICAL ADVICE. ALWAYS SEEK THE ADVICE OF A PHYSICIAN BEFORE SEEKING TREATMENT FOR MEDICAL CONDITIONS, INCLUDING SLEEP APNEA. INFORMATION POSTED ON THE APNEA BOARD WEB SITE AND FORUMS ARE PERSONAL OPINION ONLY AND NOT NECESSARILY A STATEMENT OF FACT.
Post Reply Post Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Transcend Micro Travel CPAP Bluetooth Not Connecting Nvbdl 0 60 04-09-2024, 09:32 PM
Last Post: Nvbdl
Question OK TO IMPORT SLEEP DATA FROM OLD SD CARD INTO OSCAR W/O MESSING UP CURRENT DATA? Plmnb 3 240 03-29-2024, 11:02 AM
Last Post: Plmnb
  Viatom/WellUE data is different than OSCAR displayed data GordK 3 329 02-23-2024, 04:48 PM
Last Post: GordK
  Data structure / data definition of AirSense 11 CD, CMSd50+ or OSCAR?hing obvious, … Perickson 4 1,686 02-18-2024, 01:49 PM
Last Post: Perickson
  Changed data directory from OneDrive, Now can't read data Rich66 9 1,082 08-24-2023, 11:32 PM
Last Post: Rich66
  How to clear Z1 travel cpap faults? Motorheadrulz 2 2,203 08-01-2023, 02:30 PM
Last Post: Motorheadrulz
  Format of AirMini data received by clinician via AirView ? Charliegwte 0 931 12-10-2021, 06:01 PM
Last Post: Charliegwte


New Posts   Today's Posts


About Apnea Board

Apnea Board is an educational web site designed to empower Sleep Apnea patients.