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

thumbdrive-oximeter-format-analysis
#1
thumbdrive-oximeter-format-analysis
here i'm looking at binary formats, based on 8 bit sequences.
(for reading them manually, one could open the file with a hex-editor
and then look for the 8-bit value for the cursor position).
these are also used by many polysomnography devices.
maybe it could somehow lead to oscar importing more stuff.


the oximeter-file has the following structure:

it starts with 12 * 32
0
1,1,id,1,10
6 * 0
oxigen, pulse, oxigen, pulse, ..
0
1,1,id,1,10
6 * 0
oxigen, pulse, oxigen, pulse, ..
...
0
1,1,id,1,10
6 * 0
oxigen, pulse, oxigen, pulse, ..
end of file


id is a number between 0 and 9.


if the device cant read the value pair
(for instance due to movement),
it writes 127 for oxygen and -1 for pulse.

the device probably starts a new block
(where the id is repeated),
if there are many errors (eg. due to movement).


there are cases in which the device malfunctions
such that between blocks there is only a "0" and a "1".


now my questions:

why this twelve times 32 fileheader ?
why the stuff around id ?
it does not change with oximeter settings.
does anybody have an oximeter with a similar format ?
Post Reply Post Reply
#2
RE: thumbdrive-oximeter-format-analysis
There is no standard for an oximeter's data file, and is proprietary to each manufacturer. The first bytes you describe are probably a header, describing the starting date and time, total recording duration or sampling frequency. Beside the SpO2 and pulse data, you basically need a starting date and time, the length of the recording session or a sampling interval, or a timestamp on each entry.

Good luck!
- Red
Crimson Nape
Apnea Board Moderator
Project Manager for OSCAR - Open Source CPAP Analysis Reporter
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
#3
RE: thumbdrive-oximeter-format-analysis
yes, the blanks might be for extendability.

actually, i had some luck and wrote a csv-converter
for the newgen medicals nx-8462.

it's structured as a toolchain utility, so regarding an oscar importer,
one could be better of starting from scratch.

a reason more for generic csv imports ? ;-)
Post Reply Post Reply
#4
RE: thumbdrive-oximeter-format-analysis
this oximeter-model does not have a rtc.
every 10 heartbeats it records spo2 in % and heartrate in bpm.
for converting it into oscar one would have to manually enter
a starttime for each session. then the timestamps could be calculated.
Post Reply Post Reply
#5
RE: thumbdrive-oximeter-format-analysis
Based on your other posts, I've never heard of the oximeter brand that you are using being sold in the North American market. If it only records a sample every 10 heartbeats, then that would require a complete new loader with logic that I can not begin to fathom as to how to address the time variance. I believe that you have your life's work ahead of you on this project.

Good luck!
- Red
Crimson Nape
Apnea Board Moderator
Project Manager for OSCAR - Open Source CPAP Analysis Reporter
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
#6
RE: thumbdrive-oximeter-format-analysis
sounds like the rest of the oximeter-world
would have a chance of being covered by oscar,
if china sells the format in the us, too.
that could happen ;-)

oscar suggests to sync the oximetry
to the beginning of a cpap session anyway,
so i could try something with the values
(the led pulsing and the displaying speed
indicates them being averages instead of samples).

could you support me with a bare loader,
where i only have to insert my code ?

to avoid confusion about the format i made a sample,
containing the data of another sample.


Attached Files
.zip   EMAY SpO2-20211210-113214_nx.zip (Size: 1.53 KB / Downloads: 2)
Post Reply Post Reply
#7
RE: thumbdrive-oximeter-format-analysis
there is my shellscript, which reads the custom csv-format of my converter
and converts it further into a somnopose-csv.
Post Reply Post Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  EncorePro 2.24 - change date format fredong77 1 192 10-13-2024, 08:53 AM
Last Post: Crimson Nape
  OSCAR and NONIN 3150 oximeter? Polskafriend 30 2,572 10-12-2024, 12:36 PM
Last Post: PHXSleeper
  Format SD Card Vako 0 266 10-11-2024, 07:18 PM
Last Post: Vako
  Discrepancy with desaturation events between Sleepyhead and Oximeter software Asjb 3 2,197 09-28-2024, 03:23 AM
Last Post: THEVGE
  How to get started with Oscar - analysis of data McMartin 0 273 09-26-2024, 02:23 PM
Last Post: McMartin
  Sleep analysis/tracking coldfeet7 0 222 09-19-2024, 11:04 AM
Last Post: coldfeet7
  SP02 analysis gdenton2000 1 298 09-09-2024, 04:40 PM
Last Post: staceyburke


New Posts   Today's Posts


About Apnea Board

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