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

Added a new pulse oximeter importer...
#31
RE: Added a new pulse oximeter importer...
I have an Omron BP monitor with a USB connection. Oddly its USB cable works for it, both CMS-50's and my cell phone (both charging and downloads) If you are lucky enough to have an Omron, then you should be set..
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
#32
RE: Added a new pulse oximeter importer...
@spacewrench, you do have a different version (no screen). I wonder if yours does record every 2s? Could you post an Android screenshot of one of the samples sessions you sent me, so that I can confirm duration?

I checked with their support, and they say their PC software only connects via USB, not Bluetooth. Looking at their USB cable, it's a CH340-based serial-to-USB adapter with a very strange connector on the other end: it's not micro-USB, I'm not sure exactly what it is. It looks like it has 19 pins.

Can you post a better picture of the port on your device?

@jtech1 Good thought on iMazing. I keep hoping that it's just their reporting software/download process that's dropping samples to 4s. But given that they're using an insanely cheap USB-serial bridge chip, they probably skimped on memory and went for 256KB instead of 1MB. Maybe they'd be willing to add a setting in firmware to store 1 night at 1s resolution? I'd buy that in a heartbeat (no pun intended)!
Post Reply Post Reply
#33
RE: Added a new pulse oximeter importer...
(01-09-2020, 10:29 PM)sawinglogz Wrote: @spacewrench, you do have a different version (no screen). I wonder if yours does record every 2s? Could you post an Android screenshot of one of the samples sessions you sent me, so that I can confirm duration?
Here's a screenshot from Android, screenshot from Oscar, and the raw data file from my Android (the ".pdf" extension is just to convince the website to let me upload it).  I'll try to get a better picture of the port tomorrow (well, later today, I guess!).  It connects and charges OK with an ordinary Micro-USB cable, but they must be doing something funky, since they power a little pager motor and the SPO2 LED through the same port, plus they read back the phototransistor.


Attached Files Thumbnail(s)
       

.pdf   20200109233658.pdf (Size: 28.47 KB / Downloads: 27)
Post Reply Post Reply
#34
RE: Added a new pulse oximeter importer...
I just did a "git pull" (several things were updated from the master version, I think) and it looks like Viatom data is now being saved properly.  I don't know whether anybody did anything (I haven't modified anything for a while) but I think the Viatom loader is now working right (delta the 2-second/4-second difference).

If somebody can send me a 4-second sample data file, I'll see if I can figure out if there's a value in the header that would allow the file types to be distinguished.

Whoops, no, I'm wrong; something else caused the Viatom data to be saved somehow.  Maybe it's loading a new day of CPAP data?  More investigation necessary. Thinking-about
Post Reply Post Reply
#35
RE: Added a new pulse oximeter importer...
(01-09-2020, 10:29 PM)sawinglogz Wrote: Can you post a better picture of the port on your device?
Here you go.
[attachment=18889][attachment=18888]
Post Reply Post Reply
#36
RE: Added a new pulse oximeter importer...
This plug seems to be a USB Micro B. There are adapters available to change to another USB format.

Here is an image for reference:
[Image: attachment.php?aid=18892]


   
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
#37
RE: Added a new pulse oximeter importer...
It could be that they are using the fifth (id) pin to tell the device whether they are connected to the finger probe or the USB cable. Also the special USB cable may have the serial to USB chip embedded in it, - that's haw the CMS-50D does it. One way to tell is by plugging the cable in without the device. If the computer detects some device, there it is...
Apnea Board Monitors are members who help oversee the smooth functioning of the Board. They are also members of the Advisory Committee which helps shape Apnea Board's rules & policies. Membership in the Advisory Members group does not imply medical expertise or qualification for advising Sleep Apnea patients concerning their treatment.
Post Reply Post Reply
#38
RE: Added a new pulse oximeter importer...
Yes, the USB cable contains the USB-to-serial bridge. That's why your standard USB cable isn't working.

And the newer devices are not using a micro-USB port, but something else: they have pins on both sides of the socket, it looks like 9 on one side, 10 on the other. (Yours does look like micro-USB, and obviously you were able to charge it with your own micro-USB cable.

Also it looks like bytes 0xD to 0xE in the header indicate the total number of seconds in the session (could be a 32-bit int, actually, but those are the low 16 bits). If I look at your 2-second-per-sample data, that corresponds to the 3h14m in your screenshot (and the amount of data in your file corresponds to 2s/sample given that). In the 4-second-per-sample data I've seen, the timestamp also indicates the number of seconds, but the amount of data corresponds to 4s/sample given that. I don't see another obvious place the interval might be recorded.
Post Reply Post Reply
#39
RE: Added a new pulse oximeter importer...
Any idea why spacewrench's bytes @ 0x28 are ffff ff00 00ff ffff on the 2 sec file? 4 of mine don't have that for my 02Ring. I just want to make sure that is not a way to distinguish the data and wanted to make sure the reading was not shifted by a couple readings. 

FYI: I was able to compile the code on my windows pc and change the 2000s to 4000s in the viatom_loader.cpp and everything seemed to look ok. I did not check if the data was clipped in the code.

Code:
Spacewrench header @ 2 seconds:

00000000: 0300 e307 0b19 1720 299d 7100 00c4 5a00  ....... ).q...Z.
00000010: 0060 5c02 0000 0000 0063 0000 0000 0000  .`\......c......
00000020: 0000 0000 0000 0000 ffff ff00 00ff ffff  ................
00000030: 0000 613a 0000 0061 3a00 0000 613a 0008  ..a:...a:...a:..
00000040: 0061 3a00 0800 613a 0001 0061 3a00 0100  .a:...a:...a:...
00000050: 613c 0000 0061 3c00 0000 613b 0001 0061  a<...a<...a;...a

Example of 4 file headers using ViATOM O2Ring @ 4 seconds:

00000000: 0300 e307 0c01 0438 24ff 3200 00ac 2800  .......8$.2...(.
00000010: 0061 5e03 0000 0000 0063 0000 0000 0000  .a^......c......
00000020: 0000 0000 0000 0000 6249 0000 0062 4900  ........bI...bI.
00000030: 0000 6249 0000 0062 4400 0100 6243 0002  ..bI...bD...bC..
00000040: 0062 4300 0100 6243 0000 0063 4300 0000  .bC...bC...cC...
00000050: 6343 0000 0062 4300 0000 6243 0000 0062  cC...bC...bC...b

00000000: 0300 e407 010d 1608 1cb1 8a00 00d4 6e00  ..............n.
00000010: 0062 5f00 0000 0000 0064 0000 0000 0000  .b_......d......
00000020: 0000 0000 0000 0000 603e 0000 0060 3e00  ........`>...`>.
00000030: 0400 6141 0002 0060 4400 0000 6045 000a  ..aA...`D...`E..
00000040: 0060 4500 1500 6248 0000 0062 4600 0000  .`E...bH...bF...
00000050: 6243 0000 0062 4100 0000 623e 0000 0062  bC...bA...b>...b

00000000: 0300 e407 010e 160a 0619 8c00 00f4 6f00  ..............o.
00000010: 0062 5b03 0200 0000 0063 0000 0000 0000  .b[......c......
00000020: 0000 0000 0000 0000 6354 0000 0063 5400  ........cT...cT.
00000030: 0000 6355 0000 0063 5500 0000 6356 0000  ..cU...cU...cV..
00000040: 0063 5600 1300 6356 0001 0063 5a00 0100  .cV...cV...cZ...
00000050: 6357 0001 0063 5600 0100 6352 0001 0063  cW...cV...cR...c

00000000: 0300 e407 010f 1610 3405 9100 00e4 7300  ........4.....s.
00000010: 0062 5e02 0000 0000 0063 0000 0000 0000  .b^......c......
00000020: 0000 0000 0000 0000 6347 0000 0063 4700  ........cG...cG.
00000030: 0000 6348 000e 0063 4800 1e00 6348 007a  ..cH...cH...cH.z
00000040: 0063 4800 1600 6348 003a 0063 4800 4800  .cH...cH.:.cH.H.
00000050: 6348 0080 0063 4800 0d00 6348 000c 0063  cH...cH...cH...c
Post Reply Post Reply
#40
RE: Added a new pulse oximeter importer...
Looks like you have two more live samples than I do.  (I seem to recall my initial recorders having a some extra FF bytes -- heart rate 255, SPO2 255%, etc.  I probably just skipped over samples that didn't make sense.)
Post Reply Post Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  csv-converter for like nx-8462 oximeter capman 1 199 03-15-2024, 04:45 AM
Last Post: capman
  thumbdrive-oximeter-format-analysis capman 6 277 03-15-2024, 04:29 AM
Last Post: capman
  CMS50F Oximeter Device not Recognized. ThinMountainAir 20 2,558 03-07-2024, 05:13 PM
Last Post: capman
  csv-format for generic oximeter imports into oscar capman 2 207 03-07-2024, 07:06 AM
Last Post: capman
  python file converter for EMAY sleep pulse oximeter joeblough 1 670 03-04-2024, 10:26 PM
Last Post: ElectricalPaul
  Need Computer drivers for Contec CMS50D+ Oximeter TomElgin 3 282 03-02-2024, 05:27 PM
Last Post: Crimson Nape
  OSCAR Reports do not appear to have O2 and Pulse Data SKPC 5 576 12-31-2023, 11:05 PM
Last Post: Crimson Nape


New Posts   Today's Posts


About Apnea Board

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