OSTC External Interface Description - latest Version and Question

Legacy OSTC's
Post Reply
Rob
Posts: 362
Joined: Thursday 12. May 2011, 18:12

OSTC External Interface Description - latest Version and Question

Post by Rob »

Hi,

is there a newer External Interface Description than this Version;
"Last Update: 06/12/11 (Valid for 1.91beta and later)"

Im just wondering the doc says at page 5;
"Deco/NDL Status (2 bytes: byte0: =1 if within no deco limit, if in deco mode: depth of 1st stop; byte2: NDL in minutes or length of first stop in minutes)"

As far as i can see in my profiles byte0: =0 if within no deco limit and not 1 as the doc says.

Here's a example out of my dives.

( 6) 0:50 719 | (CF)11001111 (02)00000010 | Byte:3=(04)00000100 Byte:4=(3C)00111100 Byte:5=(00)00000000 Byte:6=(00)00000000 Byte:7=(F0)11110000
Temperature - Pos: 4 Value: 60
DecoNDL - Pos: 6 DECO Stop at: 0 with 240min

(12) 1:50 1360 | (50)01010000 (05)00000101 | Byte:3=(04)00000100 Byte:4=(3B)00111011 Byte:5=(00)00000000 Byte:6=(00)00000000 Byte:7=(39)00111001
Temperature - Pos: 4 Value: 59
DecoNDL - Pos: 6 DECO Stop at: 0 with 57min

(18) 2:50 1920 | (80)10000000 (07)00000111 | Byte:3=(04)00000100 Byte:4=(3A)00111010 Byte:5=(00)00000000 Byte:6=(00)00000000 Byte:7=(18)00011000
Temperature - Pos: 4 Value: 58
DecoNDL - Pos: 6 DECO Stop at: 0 with 24min

(24) 3:50 2616 | (38)00111000 (0A)00001010 | Byte:3=(04)00000100 Byte:4=(38)00111000 Byte:5=(00)00000000 Byte:6=(00)00000000 Byte:7=(0B)00001011
Temperature - Pos: 4 Value: 56
DecoNDL - Pos: 6 DECO Stop at: 0 with 11min

(30) 4:50 3326 | (FE)11111110 (0C)00001100 | Byte:3=(04)00000100 Byte:4=(38)00111000 Byte:5=(00)00000000 Byte:6=(00)00000000 Byte:7=(05)00000101
Temperature - Pos: 4 Value: 56
DecoNDL - Pos: 6 DECO Stop at: 0 with 5min

(36) 5:50 4089 | (F9)11111001 (0F)00001111 | Byte:3=(04)00000100 Byte:4=(36)00110110 Byte:5=(00)00000000 Byte:6=(00)00000000 Byte:7=(03)00000011
Temperature - Pos: 4 Value: 54
DecoNDL - Pos: 6 DECO Stop at: 0 with 3min

(42) 6:50 4669 | (3D)00111101 (12)00010010 | Byte:3=(04)00000100 Byte:4=(36)00110110 Byte:5=(00)00000000 Byte:6=(00)00000000 Byte:7=(01)00000001
Temperature - Pos: 4 Value: 54
DecoNDL - Pos: 6 DECO Stop at: 0 with 1min

> Now the first deco stops

(48) 7:50 5321 | (C9)11001001 (14)00010100 | Byte:3=(04)00000100 Byte:4=(35)00110101 Byte:5=(00)00000000 Byte:6=(0C)00001100 Byte:7=(01)00000001
Temperature - Pos: 4 Value: 53
DecoNDL - Pos: 6 DECO Stop at: 12 with 1min

(54) 8:50 5562 | (BA)10111010 (15)00010101 | Byte:3=(04)00000100 Byte:4=(36)00110110 Byte:5=(00)00000000 Byte:6=(0C)00001100 Byte:7=(01)00000001
Temperature - Pos: 4 Value: 54
DecoNDL - Pos: 6 DECO Stop at: 12 with 1min

Regards
Rob
Home: http://www.angermayr.eu
email: ostctools@angermayr.eu
Home of OSTC Tools: http://ostctools.angermayr.eu
HWOSConfig for Android: https://play.google.com/store/apps/details?id=eu.angermayr.hwosconfig
Laurie_the_Knot
Posts: 58
Joined: Friday 27. January 2012, 17:46

Re: OSTC External Interface Description - latest Version and Question

Post by Laurie_the_Knot »

The OSTC External Interface Description was last updated on "01/12/08" or 08 Jan 2012. There are two changes in it as far as I can see from the version your refer to and one of them is the one you have identified. The other that I have identified is to the description of the alarm when the event byte bits 0-3 has a value of 2.

You can open it using LibreOffice Writer supplying the path https://bitbucket.org/heinrichsweikamp/ ... iption.odt
Happy diving,
Laurie (OSTC2 #11454)
Laurie_the_Knot
Posts: 58
Joined: Friday 27. January 2012, 17:46

Re: OSTC External Interface Description - latest Version and Question

Post by Laurie_the_Knot »

The changes I referred to in the previous post relate to the changes between the version dated 11/15/11 (Valid for 2.04beta and later) and the version dated 02/02/12 (Valid for 2.20stable and later).

I don't have any copies of earlier versions of the External Interface Specification for the OSTC Mk2/2N).
Happy diving,
Laurie (OSTC2 #11454)
Rob
Posts: 362
Joined: Thursday 12. May 2011, 18:12

Re: OSTC External Interface Description - latest Version and Question

Post by Rob »

Hi Laurie,

but even the "new" doc says;
"Deco/NDL Status (2 bytes: byte0: =1 if within no deco limit, if in deco mode: depth of 1st stop; byte2: NDL in minutes or length of first stop in minutes)"

The examples and the reality say somthing different; byte0=0 when NDL.

So, let's call it a feature and rewrite the documentation.

Ciao
Rob
Home: http://www.angermayr.eu
email: ostctools@angermayr.eu
Home of OSTC Tools: http://ostctools.angermayr.eu
HWOSConfig for Android: https://play.google.com/store/apps/details?id=eu.angermayr.hwosconfig
Laurie_the_Knot
Posts: 58
Joined: Friday 27. January 2012, 17:46

Re: OSTC External Interface Description - latest Version and Question

Post by Laurie_the_Knot »

Sorry Rob, you are correct.

I think it was a case of eyes seeing one thing and the brain(?) reading something else. If you read the whole explanation for Deco/NDL Status think that Matthias has transposed the 0 and 1 so I believe what it should read is byte1:= 0 if... stop; byte2: NDL... because he is referring to bytes 1 and 2 of the 2 byte value although this notation is inconsistent with the notation used in ManualGasSet a few lines above.
Happy diving,
Laurie (OSTC2 #11454)
heinrichsweikamp
Posts: 4378
Joined: Sunday 13. May 2007, 18:07

Re: OSTC External Interface Description - latest Version and Question

Post by heinrichsweikamp »

Yes, this was wrong. I just uploaded the new description. byte1=0 -> Ceiling=0m -> No Deco.

Regards,
Matthias
Rob
Posts: 362
Joined: Thursday 12. May 2011, 18:12

Re: OSTC External Interface Description - latest Version and Question

Post by Rob »

Servus Laurie,

it's not that complicated.
Deco/NDL is a shown in 2 bytes
the first one, byte0 is the depth of the stop if the depth is 0 then the value shows that we are in the non deco mode and byte 1 is the NDL time. If we are in decomode (byte0 > 0 then byte 1 is the time of the decostop.


Ups, Matthias was faster.

Cheers
Rob
Home: http://www.angermayr.eu
email: ostctools@angermayr.eu
Home of OSTC Tools: http://ostctools.angermayr.eu
HWOSConfig for Android: https://play.google.com/store/apps/details?id=eu.angermayr.hwosconfig
Post Reply