Import of Poseidon CCR dive logs

Willem Ferguson willemferguson at zoology.up.ac.za
Mon Oct 20 01:16:00 PDT 2014


Miika,

I refer to the discussions we had about Poseidon dive log imports early 
this year and the problem with developing XSLT transforms without using 
XSLT 2.

Attached are:
1) C code
2) two text files comprising a raw Poseidon log dump.

Would you be prepared to look at the C code and see whether this could 
be of any use at all? This is not meant as a formal patch, more as a 
proof-of-concept. I have commented fairly liberally to try and make the 
code more understandable.

The issues are:
1) Would something like this be useful at all for importing the log data 
into Subsurface? Should one try and stick to XSLT ?
2) Assuming a C-code approach is viable, then one needs to solve the 
issue of automatic recognition of the Poseidon log files by Subsurface 
so that the universal log importer can be used (Import -> Import log 
files). The raw log dump contains 2 files with extensions of .txt and .csv.

I am away from the office at the moment with very erratic Internet 
access. So if I do not respond soon, please excuse me. Will be back next 
week 29th.

Kind regards,
willem


-------------- next part --------------
A non-text attachment was scrubbed...
Name: mk6.c
Type: text/x-csrc
Size: 7609 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20141020/8d881286/attachment-0001.c>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MK6.csv
Type: text/csv
Size: 147658 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20141020/8d881286/attachment-0001.csv>
-------------- next part --------------
MkVI_Config v1.07

 FF FF 00 00 5D DE FB 14 89 07 5F 05 1F 23 12 14 04 00 00 00 01 13 00 63 2C 54 07 54 07 00 00 00 00 4F 5D A2 0F 03 00 03 00 7C 60 CF 41 C6 C1 CC 41 57 7D C9 41 53 F0 C7 41 0A 54 C7 41 D1 05 C7
 41 BE DB C6 41 52 A5 C6 41 A0 8B C6 41 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Dive started at            : 2011-02-26 16:53:01
Starting O2 Pressure(Bar)  : 192.9
Starting Dil Pressure(Bar) : 137.5
Starting PO2 Sensor 1 (Bar): 0.31
Starting PO2 Sensor 2 (Bar): 0.35
Starting PO2 Sensor 1 (mV) : 18
Starting PO2 Sensor 2 (mV) : 20
Starting Depth (m)         : 0.4
Depth offset (m)           : 0.0
Mouthpiece Position        : Closed Circuit (1)
Version number of logger   : 19
Assumed FO2 of oxygen      : 99
Software version           : 44
Battery Serial number      : 0754
Rig Serial number          : 0754
Helium percentage          : 0
Nitrogen percentage        : 79
Battery SoC (%)            : 93
Battery millivoltage       : 4002
Battery cycles             : 3
Cumulative OTUs            : 3
Nitrogen tension 1         : 25.9221
Nitrogen tension 2         : 25.5946
Nitrogen tension 3         : 25.1862
Nitrogen tension 4         : 24.9923
Nitrogen tension 5         : 24.9160
Nitrogen tension 6         : 24.8778
Nitrogen tension 7         : 24.8573
Nitrogen tension 8         : 24.8307
Nitrogen tension 9         : 24.8182
Helium tension 1           : 0.0000
Helium tension 2           : 0.0000
Helium tension 3           : 0.0000
Helium tension 4           : 0.0000
Helium tension 5           : 0.0000
Helium tension 6           : 0.0000
Helium tension 7           : 0.0000
Helium tension 8           : 0.0000
Helium tension 9           : 0.0000


More information about the subsurface mailing list