Apnea Board Forum - CPAP | Sleep Apnea
Ring spO2 data format - 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: Software Support Forum (https://www.apneaboard.com/forums/Forum-Software-Support-Forum)
+--- Thread: Ring spO2 data format (/Thread-Ring-spO2-data-format)



Ring spO2 data format - Perickson - 03-15-2022

OK, my CMSD50+ fell off *again* last night. So I'm wondering about the the various 'ring' devices. My question however is that I wish to use both OSCAR (or other tools) in addition to  my own custom analysis program. Therefore I need to be able to get the time series data into a file with a documented (known) format. I think .EDF files would be the most obvious, but any format including CSV and binary is ok as long as well documented. I see a couple of rings that appear to be readily available and a few not yet in US but haven't been able to find out any information on file import and file format. Prefer MacOS, but windows 10 is available and in a pinch I can do linux as well. Would be nice to get the OSCAR EDF and spO2 sd EDF all in one place for a given session...


RE: Ring spO2 data format - Crimson Nape - 03-15-2022

The main supplier of an oximeter ring is Wellue/Viatom.  In the U.S. it is Wellue.  They are Supplier #40, currently the last one on the list.  You will use either a PC based program (Windows or macOS) or an Android or iOS app to download its data.  These apps will create a binary file that is very easy to read.  These files are issued a file name constructed using the session's starting date and time.

I'm trying to remember the file's layout from memory, so please don't hold me to its accuracy.   It should get the idea across anyway.  Each file written in little-endian format and has a 40 byte header, then each Record is 5 bytes in length. SpO2,  pulse, validity_flag, motion, and vibration are the entry order.  Each entry represents a 4-second interval.  Wellue states that it samples every second but records only every 4-seconds.  They used to claim a 2-second record entry, but it was a duplicate of the previous value.  Wellue has a higher-end oximeter now that is claiming a 2-second entry, but I've not seen its file for verification.

Since your question deals with software, I'm moving your thread to the Software Forum.


- Red


RE: Ring spO2 data format - kappa - 03-15-2022

The O2 Insight Pro app also allows export of data as CSV, which might be an easy starting point and also allow cross checking with any binary extract you might do. For example (^@ below being NUL):
Time,SpO2(%),Pulse Rate(bpm),Motion,Vibration,
"10:05:38PM Mar 13, 2022",255,65535,1,^@,
"10:05:42PM Mar 13, 2022",99,81,2,^@,