DOC

Conftest PL V1.0_GK000713

By Sylvia Myers,2014-09-15 22:27
10 views 0
Conftest PL V1.0_GK000713

    Conformance Test Specificcation dlmsdeviceConformance testing physical languagemessagespecificationlayer

Project: COSEM

Author: Helmut Ratzenhofer

    Version: V1.0

    Status: Released[in work, for review, released] Revision Date: 13.07.2000

    Copyright: ? Copyright 2000 DZG, Enermet, Schlumberger, Siemens Metering

    Classification:

    Filename: Conftest physical layer V1.0_GK000713.doc Replace Doc V0.2

    Comment: Release1.0, sent to tool providers 9

    Compiled:13.07.2000 Helmut Ratzenhofer,

    Responsibility: CTWG - 1/13 en Release: 1.0

     ? Copyright 2000 DZG, Enermet, Schlumberger, Siemens Metering - classification:

     COSEM dlmsConformance testing physical layer COSEM User Association

    Table of Contents 1. Foreword 3

    2. Scope 4

    3. Introduction 5

    3.1 Referenced Documents 5

    3.2 Revision History 5

    4. Testing the physical layer 6

    4.1 General test concept 6

    4.2 Services tested 6

    4.3 Services related to connect/disconnect 6 4.3.1 Connection through Modem link. 7 4.4 Direct connection on serial port 8 4.5 Connection on Optical port 8 4.6 Services related to identification 10 4.6.1 1 byte identification request 10 4.6.2 2 byte identification request 11 4.6.3 3 byte identification request 11 4.6.4 Timeout behaviour 12

    4.6.5 Identification request during the data communication stage 12

Compiled:13.07.2000 Helmut Ratzenhofer,

    Responsibility: CTWG - 2/13 en Release: 1.0

     ? Copyright 2000 DZG, Enermet, Schlumberger, Siemens Metering - classification:

     COSEM dlmsConformance testing physical layer COSEM User Association

    1. Foreword

    Copyright

    ? Copyright 1997-2000 DLMS User Association.

    This document is confidential. It may not be copied, nor handed over to persons outside the standardisation environment.

    The copyright is enforced by national and international law. The "Berne Convention for the Protection of Literary and Artistic Works", which is signed by 121 countries world-wide, and other treaties apply. Compiled:13.07.2000 Helmut Ratzenhofer,

    Responsibility: CTWG - 3/13 en Release: 1.0

     ? Copyright 2000 DZG, Enermet, Schlumberger, Siemens Metering - classification:

     COSEM dlmsConformance testing physical layer COSEM User Association

    2. Scope

    The scope of this document is to define the test coverage for a COSEM Client or Server to obtain a conformance certificate. The definitions are limited to the subset necessary to test the physical layer of the protocol as defined in [1].

    Compiled:13.07.2000 Helmut Ratzenhofer,

    Responsibility: CTWG - 4/13 en Release: 1.0

     ? Copyright 2000 DZG, Enermet, Schlumberger, Siemens Metering - classification:

     COSEM dlmsConformance testing physical layer COSEM User Association

    3. Introduction

    3.1 Referenced Documents

    Ref. Title

    [1] 13/1213/CDV, draft IEC 62056-42 Data exchange for meter reading, tariff and load control;

    Physical layer services and procedures for connection oriented asynchronous data

    exchange

    13/1206/CDV, draft IEC 62056-21, 13/1206/CDV (2000-02), Direct local data exchange (3rd edition [2]

    of IEC 61107)

    3.2 Revision History

    Versions kept within the DLMS-UA WG on Conformance Testing Version Date Author Comment

    1.0 13.07.2000 G. Kmethy Release 1.0. Sent to tool providers

    0.2 22.5.2000 H.Ratzenhofer adding

    0.1 25.4.2000 H.Ratzenhofer initial version

Compiled:13.07.2000 Helmut Ratzenhofer,

    Responsibility: CTWG - 5/13 en Release: 1.0

     ? Copyright 2000 DZG, Enermet, Schlumberger, Siemens Metering - classification:

     COSEM dlmsConformance testing physical layer COSEM User Association

    4. Testing the physical layer

4.1 General test concept

    The Concept of the test is to verify the behaviour of a Client or Server according to the specifications of COSEM. The verification shall cover both, expectedly successful and expectedly unsuccessful operations. 4.2 Services tested

    Services, available on the physical interface and specified within the physical layer is the Connect, Disconnect, Abort and Identification service.

    Connect, Disconnect, Abort services need to be tested in the environment the product is designed for. Following tests shall be performed

     successful connection to a physical device on the specified interfaces;

     accessibility of the device after disconnect for a new connect;

     accessibility of the device after abort for a new connect.

    The identification service is defined as a 1 or 3 byte request to a Server by a Client and a 4 byte response, if successful, from the Server.

    Following tests shall be performed:

     acceptance / non acceptance of a 1 byte identification request by a Server;

     non acceptance of a 2 byte identification request by a Server;

     acceptance / non acceptance of a 3 byte identification request by a Server;

     non acceptance of a identification request if the service is not declared available;

     timeout behaviour of the service

     non-acceptance of an identification request when the Server is in the data communication stage. 4.3 Services related to connect/disconnect

    Depending on the media the product is designed for, the test shall be made to verify the possibility of connection and disconnection of the physical layer. As the layer will not give a response regarding the connection by itself the next layer response needs to be taken as indication.

    Compiled:13.07.2000 Helmut Ratzenhofer,

    Responsibility: CTWG - 6/13 en Release: 1.0

     ? Copyright 2000 DZG, Enermet, Schlumberger, Siemens Metering - classification:

     COSEM dlmsConformance testing physical layer COSEM User Association

    4.3.1 Connection through Modem link.

    Test Case connect through modem

    .[1]/ chapter 6.3.2 Reference

    Test priority Priority is high as absolutely needed for any kind of modem communication.

    Purpose The test shall verify that a product enters the connected state when the action is

    performed.

    Description The calling product has to place a telephone call to the called product and after the

    necessary steps the called device shall be able to communicate on DLL layer.

    Preconditions Both devices shall be in disconnected state. They shall be connected to a telephone

    modem each, linked by a real telephone network or a network simulation.

    Do The Client shall place a call to the Server and shall monitor that the modem on the

    Client side issues a CONNECT message to the client.

    Check To verify the connection a valid SNRM frame shall be sent and the proper answer

    shall be received.

    Post-conditions The DL connection shall be disconnected and the modem connection shall be

    disconnected

     Remark

Test Case disconnect through modem

    .[1]/ chapter 6.3.5 Reference

    Test priority Priority is high as needed for all kind of modem communication.

    Purpose The test shall verify that a product enters the disconnected state when the action is

    performed.

    Description The calling product has to terminate a telephone call to the called product and after

    the necessary steps the called device shall be able to connect again.

    Preconditions A physical connection shall be established.

    Do The Client closes the modem connection by bringing the Client side modem into

    command mode and hanging up the line.

    Check After performing the steps and (if specified for the product) waiting a recovery period

    a new physical connection shall be possible.

    Post-conditions

    . Remark

Test Case abort modem connection

    .[1]/ chapter 6.3.5 Reference

    Test priority Priority is high

    Purpose The test shall verify that a product enters the disconnected state when the action is

    performed.

    Compiled:13.07.2000 Helmut Ratzenhofer,

    Responsibility: CTWG - 7/13 en Release: 1.0

     ? Copyright 2000 DZG, Enermet, Schlumberger, Siemens Metering - classification:

     COSEM dlmsConformance testing physical layer COSEM User Association

    Description The calling product has to abort a telephone call to the called product and after the

    necessary steps the called device shall be able to connect again.

    Preconditions A physical connection shall be established.

    Do The test system aborts the connection by physically interrupting the line.

    Check After waiting a recovery period (if specified for the product) a new physical

    connection shall be possible.

    Post-conditions

    . Remark

    4.4 Direct connection on serial port

    In this case no physical connection or disconnection is usual, as the line will be permanently connected.

    Test Case break of physical line

    .[1]/ chapter 6.3.5 Reference

    Test priority Priority is medium.

    Purpose The test shall verify that a product enters the disconnected state when the action is

    performed.

    Description After physical break of the line the product shall recover to allow new communication

    after re-connecting the line.

    Preconditions The server shall be online (tested by any kind of communication)

    Do The test system aborts the connection by physically interrupting the connection,

    waiting for the inactivity timeout period.

    Check After a recovery period (if specified for the product) communication shall be possible

    again.

    Post-conditions

    . Remark

    4.5 Connection on Optical port

    Test Case Connection in Mode E

    Reference [2]/ Annex E and F

    Test priority Priority is high.

    Purpose The test shall verify that a product enters the connected state when the action is

    performed.

    Description A sign on according to mode E shall bring the Server in the physical connected

    mode.

    Preconditions The server shall be offline

    Compiled:13.07.2000 Helmut Ratzenhofer,

    Responsibility: CTWG - 8/13 en Release: 1.0

     ? Copyright 2000 DZG, Enermet, Schlumberger, Siemens Metering - classification:

     COSEM dlmsConformance testing physical layer COSEM User Association

    Do The test system sends the sign on dialog according to mode E.

    Check To verify the connection a valid SNRM frame shall be sent and the proper answer

    shall be received.

    Post-conditions

    Remark

Test Case Active disconnection in Mode E

    Reference [2]/ Annex E and F

    Test priority Priority is high.

    Purpose The test shall verify that a product enters the disconnected state when the action is

    performed.

    Description When closing all existing data link layer connections the server shall return to the not

    connected state.

    Preconditions The server shall be online.

    Do The test system sends release all DL connections.

    Check To verify the connection a valid Mode E logon shall be possible.

    Post-conditions

    Remark The disconnection needs to be specified in [2]: after data link layer disconnection on

    the HDLC level rhe server shall immediately fall back to the initial stat waiting for a

    new sign on message at 300 Bd.

Test Case Inactivity disconnection in Mode E

    Reference [2]/ Annex E and F

    Test priority Priority is medium.

    Purpose The test shall verify that a product enters the disconnected state when no action is

    performed.

    Description The inactivity timeout shall reset a Mode E connection.

    Preconditions The server shall be online

    Do The test system sends no data for the duration of the inactivity timeout.

    Check To verify the connection a valid Mode E logon shall be possible.

    Post-conditions

    Remark

Compiled:13.07.2000 Helmut Ratzenhofer,

    Responsibility: CTWG - 9/13 en Release: 1.0

     ? Copyright 2000 DZG, Enermet, Schlumberger, Siemens Metering - classification:

     COSEM dlmsConformance testing physical layer COSEM User Association

    4.6 Services related to identification 4.6.1 1 byte identification request

    Test Case 1 byte Identification request

    Reference [1] 6.3

    Test priority High

    Purpose To verify that the server accepts a valid 1 byte Identification service

    Description The valid 1 byte identification request is a byte with the value 0x20.

    Optionally the 1 byte identification request can be 0x49 (to be declared by the

    manufacturer).

    Preconditions A valid 1 byte identification request to a Server has following frame conditions:

    ; The manufacturer has declared the service available.

    ; A physical connection has been established (this is outside the scope of [1] and

    therefore outside the scope of the conformance test)

    ; The Server is still in the identification stage (no frame longer than 3 byte was

    sent to it after physical connection.

    Do Send a valid 1 byte Identification request to the Server.

    A random set of other request shall be tried. In all cases, if an answer was generated

    by the Server the test has failed.

    Check Success response: a series of 4 bytes 0x00 0x03 0x01 0x00.

    After a correct response to the Identification request, the server shall enter the data

    communication state. This shall be tested by sending an SNRM frame.

    With any other response the test has failed.

    If any answer was generated if the service was not declared by the manufacturer the

    test has failed.

    Post-conditions The server is in the data communications state.

    Remark

Compiled:13.07.2000 Helmut Ratzenhofer,

    Responsibility: CTWG - 10/13 en Release: 1.0

     ? Copyright 2000 DZG, Enermet, Schlumberger, Siemens Metering - classification:

Report this document

For any questions or suggestions please email
cust-service@docsford.com