Configuration of, and reading data from dive computers

The use of this section presumes that the dive computer is able to understand UDDF commands! :-)

Configuration of a dive computer

<uddf version="2.2.0">
    <!-- the <generator> section has to appear in every UDDF file -->
    <generator>
        <!-- description of the program generating the UDDF file -->
        <name>Dive Computer Configuration</name>
        <manufacturer>
            <name>Dive Heroes Company</name>
            <address>
                <!-- address data of manufacturer -->
            </address>
            <contact>
                <!-- contact data of manufacturer -->
            </contact>
        </manufacturer>
        <version>2.71828</version>
        <date>
            <year>2006</year><month>5</month><day>14</day>
        </date>
    </generator>
    <divecomputercontrol>
        <setdcdata>
            <!-- set date -->
            <setdcdate>
                <date>
                    <year>2006</year><month>5</month><day>18</day>
                </date>
            </setdcdate>
            <!-- set time -->
            <setdctime>
                <time>
                    <hour>14</hour><minute>21</minute>
                </time>
            </setdctime>
            <!-- settings for an alarm, to be given by the dive computer at 16.30 h -->
            <setdcalarmtime>
                <time>
                    <hour>16</hour>
                    <minute>30</minute>
                </time>
                <dcalarm>
                    <!-- that type of alarm shall be given which is defined as ,,1`` inside the dive computer -->
                    <alarmtype>1</alarmtype>
                    <!-- alarm is to be acknowledged -->
                    <acknowledge/>
                </dcalarm>
            </setdcalarmtime>
            <setdcdivedepthalarm>
                <!-- first depth alarm at 35 m -->
                <dcalarmdepth>35.0</dcalarmdepth>
                <dcalarm>
                    <!-- that type of alarm shall be given which is defined as ,,2`` inside the dive computer -->
                    <alarmtype>2</alarmtype>
                    <!-- alarm is to be given for 5 seconds -->
                    <period>5.0</period>
                </dcalarm>
            </setdcdivedepthalarm>
            <setdcdivedepthalarm>
                <!-- second depth alarm at 40 m -->
                <dcalarmdepth>40.0</dcalarmdepth>
                <dcalarm>
                    <!-- that type of alarm shall be given which is defined as ,,3`` inside the dive computer -->
                    <alarmtype>3</alarmtype>
                    <!-- this alarm, again, is to be acknowledged :-) -->
                    <acknowledge/>
                </dcalarm>
            </setdcdivedepthalarm>
            <!-- when no-decompression time is over, play an acoustic hint -->
            <setdcendndtalarm>
                <dcalarm>
                    <!-- that type of alarm shall be given which is defined as ,,4`` inside the dive computer -->
                    <alarmtype>4</alarmtype>
                    <!-- alarm is to be given for 5 seconds -->
                    <period>5.0</period>
                </dcalarm>
            </setdcendndtalarm>
        </setdcdata>
    </divecomputercontrol>
</uddf>
                

Reading recorded data from a dive computer

<uddf version="2.2.0">
    <!-- the <generator> section has to appear in every UDDF file -->
    <generator>
        <!-- description of the program generating the UDDF file -->
        <name>Dive Computer Configuration</name>
        <manufacturer>
            <name>Dive Heroes Company</name>
            <address>
                <!-- address data of manufacturer -->
            </address>
            <contact>
                <!-- contact data of manufacturer -->
            </contact>
        </manufacturer>
        <version>2.71828</version>
        <date>
            <year>2006</year><month>5</month><day>14</day>
        </date>
    </generator>
    <!-- other sections are meaningless in this context and will be ignored by dive computers -->
    <divecomputercontrol>
        <getdcdata>
            <!-- get all data recorded by the dive computer -->
            <getdcalldata/>
        </getdcdata>
    </divecomputercontrol>
</uddf>
                
<uddf version="2.2.0">
    <!-- the <generator> section has to appear in every UDDF file -->
    <generator>
        <!-- description of the program generating the UDDF file -->
        <name>Dive Computer Configuration</name>
        <manufacturer>
            <name>Dive Heroes Company</name>
            <address>
                <!-- address data of manufacturer -->
            </address>
            <contact>
                <!-- contact data of manufacturer -->
            </contact>
        </manufacturer>
        <version>2.71828</version>
        <date>
            <year>2006</year><month>5</month><day>14</day>
        </date>
    </generator>
    <!-- other sections are meaningless in this context and will be ignored by dive computers -->
    <divecomputercontrol>
        <getdcdata>
            <!-- download only breathing gas definitions, and profile data -->
            <getdcgasdefinitionsdata/>
            <getdcprofiledata/>
        </getdcdata>
    </divecomputercontrol>
</uddf>