Apnea Board Forum - CPAP | Sleep Apnea
Any program out there to decrypt the files of a ResMed AirSense 10 Elite? - Printable Version

+- Apnea Board Forum - CPAP | Sleep Apnea (https://www.apneaboard.com/forums)
+-- Forum: Public Area (https://www.apneaboard.com/forums/Forum-Public-Area)
+--- Forum: Main Apnea Board Forum (https://www.apneaboard.com/forums/Forum-Main-Apnea-Board-Forum)
+--- Thread: Any program out there to decrypt the files of a ResMed AirSense 10 Elite? (/Thread-Any-program-out-there-to-decrypt-the-files-of-a-ResMed-AirSense-10-Elite)

Pages: 1 2


Any program out there to decrypt the files of a ResMed AirSense 10 Elite? - Darkmatter - 05-14-2018

Hi, I'm trying to re-add data to my SD Card that was deleted to fix a problem with the date on my CPAP machine. I've managed to reconstruct both the files and the folder structure but even if I put these folders back in the correct spot the CPAP doesn't see them. I think one of the encrypted files in the Settings folder probably has a table of contents that tells the CPAP which folder names to look for. Unfortunately most of these files are encrypted.

Anyone know of a program or a way to decrypt them? (I guess I'd need to re-encrypt them later too.)

Thanks.


RE: Any program out there to decrypt the files of a ResMed AirSense 10 Elite? - Fats Drywaller - 05-14-2018

https://gitlab.com/sleepyhead/sleepyhead-code/raw/master/sleepyhead/SleepLib/loader_plugins/resmed_loader.cpp

Not encryption; just a proprietary binary file format that (like most such) takes some tedious reverse engineering, which jedimark & friends have done for you.

Have fun. Smile


RE: Any program out there to decrypt the files of a ResMed AirSense 10 Elite? - PaulaO2 - 05-14-2018

Have you tried to use SleepyHead or Resmed's software?

If you put the card back into the machine, it may rewrite it. Copy everything off your card onto your computer. Then delete everything on the card. Put it in the machine and wait. There's a light on the side for when the card is being written. You may want to wait until the next day after you have used it to pull the card and see what is there.

If the machine itself was reset, I don't believe the card will put it back onto the machine.


RE: Any program out there to decrypt the files of a ResMed AirSense 10 Elite? - Fats Drywaller - 05-14-2018

(05-14-2018, 09:15 PM)PaulaO2 Wrote: Have you tried to use SleepyHead or Resmed's software?

He wants to re-write (to the card) data files that he had already copied from the card to his computer, after which the card was erased, but he wants to do that without deleting the data gathered since then (a merge operation). It's certainly possible, just a small matter of programming (SMOP). Resscan is useless because it's not open-source. Sleepyhead is very useful for figuring out what's what, but the problem is that it only translates in one direction: from the SD-card files to SH's internal data structures. Someone would have to write a module to go in the other direction, because both are necessary in this case.

Of course, from the DME's shocked & appalled point of view, what he wants to do is a big no-no. Bad boy! Mustn't do that!

And for all I know (I haven't read the resmed_loader.cpp code; I just know that it exists), Resmed might have put some scheme in place to try to prevent such tampering, thus making the data effectively read-only. I don't know one way or the other.


RE: Any program out there to decrypt the files of a ResMed AirSense 10 Elite? - PaulaO2 - 05-14-2018

It sounds like then the card is missing the key files, not the data files. He can get them from putting the card back in again. Are the
identification.crc
indentifcation.tgt
STR.edf
files on the computer?

I've taken date from my card, erased it, and put it back on several times. As long as the data is on the computer, it should be put-able on the card.

If the OP uses sleepyhead, the backup is there, all files.


RE: Any program out there to decrypt the files of a ResMed AirSense 10 Elite? - jaswilliams - 05-15-2018

You cannot merge the files for the machine. What is the end game ?


RE: Any program out there to decrypt the files of a ResMed AirSense 10 Elite? - Fats Drywaller - 05-15-2018

I didn't know about this one (open-source) until now.  I haven't tried it yet.

EDF Browser


RE: Any program out there to decrypt the files of a ResMed AirSense 10 Elite? - Fats Drywaller - 05-15-2018

also this one

"S9 Data Format" at the Sleepyhead wiki

and, thanks to xxyzx,

https://en.wikipedia.org/wiki/European_Data_Format
http://www.edfplus.info/downloads/
http://www.edfplus.info/specs/


RE: Any program out there to decrypt the files of a ResMed AirSense 10 Elite? - Darkmatter - 05-15-2018

First, thanks for all the info. So, my end game. I wanted to be able to restore the data that was lost when my resp therapist wiped my sd card so he could set the correct time/date. I recovered the files later using a file/partition recovery program. The first 2 links are to images of a couple days of data that my CPAP recorded after the wipe and the last 2 show the files in 2 folders from the old data.

https://ibb.co/nbzd5d
https://ibb.co/keTudy
https://ibb.co/e33hWJ
https://ibb.co/m7eNWJ

The folders in the Datalog folder are just the days date as a string of numbers. I've noticed in MOST but not all situations the first and second file that represents the start of a new folder have CSL at the end of the file name (not the extension.) The one exception to this that I've found is in the 3rd image where there is a second set of CSL files just a few files down from the top. I'm not sure why this is, but that was how the file/folder structure was when I recovered it. I also recovered the Settings folder and the two Identification files and the STR file but when I tried copying the SD card (with only the data from AFTER the wipe) onto my computer and tried deleting the new data and pasting the old data back onto the card the CPAP couldn't see the information even though Sleepyhead eventually did. I also tried adding the folders from after the wipe but in that case the CPAP could only see the new data.

I'm not really sure why the old data isn't visible to the CPAP. That's mainly what I'm trying to figure out.

I'll try some of the programs that you guys linked for me.

Thanks.

Edit: I should add that I only found Sleepyhead after the wipe. All the old data I have was retrieved using a file recovery program.


RE: Any program out there to decrypt the files of a ResMed AirSense 10 Elite? - PaulaO2 - 05-15-2018

You may be able to input those files into SleepyHead. Point it to the directory where you put the saved files. For example, the image you shared of the files with the folder called datalog? Put all those files and folders, as they appear, in another folder. Let's call it DATALOST and you put it on your desktop. Open sleepyhead, tell it to download, tell it to go where you tell it. Tell it to go to Desktop>DATALOST. Not the contents in the folder, but that folder directly. See if it works.

You can also ask the DME for your files back, although I doubt they thought to make a copy. Idiots.