Apnea Board Forum - CPAP | Sleep Apnea
o2 insight pro on linux - 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: o2 insight pro on linux (/Thread-o2-insight-pro-on-linux)

Pages: 1 2


o2 insight pro on linux - Jim Vader - 01-22-2023

Hey there!
I use ubuntu, and I installed o2 insight pro via WINE.
Can't detect the o2 ring, though. Doesn't seem to be recognised as a USB device.
lsusb shows "QinHeng Electronics HID To Serial" which I'm sure is the proprietory usb connector that came with the device, but I don't know what to do with that to make ubuntu use it.
What should I do (aside from 'just use windows')?

thanks


RE: o2 insight pro on linux - Crimson Nape - 01-22-2023

Hi Jim Vader!  -  Welcome

Unfortunately, O2 Insight Pro will not run in Wine.  This app also can not be run in a VM Windows either. The problem is there hasn't been any USB/HID linkage written for virtual devices. Most Linux users use their cell phone.  Wellue/Viatom offer a free app named, ViHealth, for both Android and Apple devices.  This app may be obtained from your device's respective app repository.

- Red


RE: o2 insight pro on linux - Jim Vader - 01-22-2023

I see, thank you sir.


RE: o2 insight pro on linux - Jim Vader - 01-22-2023

On my android phone I have the vihealth directory with PlusbitO2.db, PlusbitO2.db-shm, PlusbitO2.db-wal

Can I copy those over into my WINE O2insightpro installation?

I can't see on the :C drive where they would go.

thanks


RE: o2 insight pro on linux - Crimson Nape - 01-22-2023

No, you would need to extract the individual files out of the database, using an SQL script to do this.  The database's structure has changed over the different ViHealth versions.  However, ViHealth will extract these files when you view the session's data on your device.  

I just checked, and O2 Insight Pro does not use the PulsebitO2.db.  

Since you're using an O2 Ring, the files that you are looking for will be named with the device type and the date and starting time.  This will look like, "O2Ring_230122133526".  These files reside on a Windows system in the following location:
C:\Users\YourUserName\AppData\Local\O2 Insight Pro\DATA

As a "heads-up";  Unfortunately, the data storage directory is prone to being changed or moved with each new version of ViHealth, so expect a surprise if this folder is no longer where you last saw it.

I hope this may help.

- Red


RE: o2 insight pro on linux - Crimson Nape - 01-22-2023

Update:
I found the data in Windows! Along with the binary files, it has the PulsebitO2.db, too.  To find the data location, start O2 Insight Pro and look under the "Options" for the data location.  This is where you would place all the raw data and the database.

- Red


RE: o2 insight pro on linux - famewolf - 01-22-2023

On the latest version of the vihealth app the data files are located in http://ftp.xxx.xxx.x.xx:9999/Android/data/com.viatom.vihealth/files/##/host/   where ## = a random number..in my case 59.  If on the device it would be /sdcard/Android/data/com.viatom.vihealth/files/##/host/       The ftp address comes from enabling the built in ftp server in solid explorer.   The .data files can be directly copied or rsync'd to your linux machine and then imported into OSCAR under the wellup o2 import option.


RE: o2 insight pro on linux - Jim Vader - 01-27-2023

Thank you !
I found the data locations on the linux WINE install, copied .db files from phone to there, but nothing is going in - no graphs.


RE: o2 insight pro on linux - famewolf - 01-27-2023

Depending on which version you are using the data is in one of 3 places....on the latest version it's not in the .db file.  It's in .dat files stored /sdcard/Android/data/com.viatom.vihealth/files/<some number>/host/   That's for android.  No idea where the pc keeps it.


RE: o2 insight pro on linux - Crimson Nape - 01-27-2023

O2 Insight Pro seems to extract the binary data during the device import session. If you aren't importing the binary files from your mobile device, you will need to manually run an SQL script to extract them from the database. If you aren't familiar with SQL, the best bet is to find them on your mobile device. The newer data seems to be stored in a directory named with a number. So far I haven't seen the same number reported by users here, so I can't provide one.

I almost forgot, ViHealth only extracts the data and creates these files for the sessions you view on your device.

- Red