KR20110027103A - Apparatus and method for testing performance of slave station applied to dlms/cosem protocol based on ttcn-3 core language - Google Patents

Apparatus and method for testing performance of slave station applied to dlms/cosem protocol based on ttcn-3 core language Download PDF

Info

Publication number
KR20110027103A
KR20110027103A KR1020090085045A KR20090085045A KR20110027103A KR 20110027103 A KR20110027103 A KR 20110027103A KR 1020090085045 A KR1020090085045 A KR 1020090085045A KR 20090085045 A KR20090085045 A KR 20090085045A KR 20110027103 A KR20110027103 A KR 20110027103A
Authority
KR
South Korea
Prior art keywords
test
sub
dlms
module
station
Prior art date
Application number
KR1020090085045A
Other languages
Korean (ko)
Inventor
송병권
정태의
장용기
김진철
Original Assignee
서경대학교 산학협력단
한전케이디엔주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 서경대학교 산학협력단, 한전케이디엔주식회사 filed Critical 서경대학교 산학협력단
Priority to KR1020090085045A priority Critical patent/KR20110027103A/en
Publication of KR20110027103A publication Critical patent/KR20110027103A/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/44Encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

PURPOSE: An apparatus for testing performance of a slave station applied to a DLMS/COSEM(Device Language Message Specification/Companion Specification for Energy Metering) protocol based on a TTCN-3 core language and a method thereof are provided to perform a suitability test for a base station which supports different protocol. CONSTITUTION: A compiler module(110) compiles a source developed by the TTCN-3(Testing & Test Control Notation version 3) core language. A processor module(120) performs a process file which is generated by the compiler module. An encoding module(130) encodes test data in order to be suitable for the DLMS/COSEM protocol. An interface module(140) receives a response data which is transmitted from a slave station(200). A decoding module(150) decodes the response data received through the communication interface module.

Description

DLMS/COSEM 프로토콜을 지원하는 부국의 적합성을 테스트하는 TTCN-3 코어 언어 기반의 테스트 장치 및 이를 이용한 테스트 방법{APPARATUS AND METHOD FOR TESTING PERFORMANCE OF SLAVE STATION APPLIED TO DLMS/COSEM PROTOCOL BASED ON TTCN-3 CORE LANGUAGE}TNC-3 core language-based test apparatus for testing conformity of a country supporting the DLMS / COOSM protocol and a test method using the same {APPARATUS AND METHOD FOR TESTING PERFORMANCE OF SLAVE STATION APPLIED TO DLMS / COSEM PROTOCOL BASED ON TTCN-3 CORE LANGUAGE }

본 발명은 DLMS/COSEM 프로토콜을 지원하는 부국의 적합성을 테스트하는 TTCN-3 코어 언어 기반의 테스트 장치 및 이를 이용한 테스트 방법에 관한 것으로, 특히 TTCN-3 코어 언어를 이용하여 DLMS/COSEM 프로토콜을 지원하는 부국의 적합성을 테스트하는 TTCN-3 코어 언어 기반의 테스트 장치 및 이를 이용한 테스트 방법에 관한 것이다.The present invention relates to a TTCN-3 core language based test apparatus for testing suitability of a sub-station supporting the DLMS / COSEM protocol and a test method using the same. In particular, the present invention relates to a DLMS / COSEM protocol using a TTCN-3 core language. The present invention relates to a test apparatus based on the TTCN-3 core language and a test method using the same.

본 발명은 서울시 및 서울시정개발원 산학연지원센터의 신기술연구개발사업의 일환으로 수행한 연구로부터 도출된 것이다[과제관리번호:NT070064, 과제명: 임베디드 리눅스 기반 배전자동화시스템 게이트웨이 및 상호연동성시험기 개발].The present invention is derived from a study conducted as part of a new technology R & D project of the Seoul Metropolitan Government and the Seoul Development Institute. [Task Management No.:NT070064, Title: Development of Embedded Linux-based Distribution Automation System Gateway and Interoperability Tester].

프로토콜(protocol)은 정보기기, 예컨대 컴퓨터간에 또는 컴퓨터와 단말기간의 정보 교환이 필요한 경우, 이를 원활하게 수행하기 위해 정의한 통신 규칙과 방법에 대한 약속, 즉 통신의 규약을 의미한다.A protocol is a promise of communication rules and methods defined for smoothly performing information exchange between information devices such as computers or between a computer and a terminal, that is, a protocol of communication.

프로토콜은 다양한 산업 분야에서 활용되며, 프로토콜을 사용하여 통신을 수행하기 위해서는 주국(master station)과 부국(slave station)이 특정 프로토콜을 지원해야만 한다.Protocols are used in a variety of industries, and master and slave stations must support specific protocols in order to communicate using them.

도 1은 종래 기술에 따른 주국과 부국간의 통신 시스템을 도시한 블럭도이다.1 is a block diagram showing a communication system between a main station and a sub station according to the prior art.

도 1에 도시된 바와 같이, 주국(10)은 특정 프로토콜을 통해 하나 이상의 부국(20, 30, 40)과 통신을 수행할 수 있다.As shown in FIG. 1, the master station 10 may communicate with one or more sub-stations 20, 30, 40 through a specific protocol.

부국(50)이 특정 프로토콜을 통해 주국(10)과 통신하고자 하는 경우, 부국(50)이 특정 프로토콜을 통해 주국(10)과 통신을 수행할 수 있는지를 판단해야 한다. 즉, 부국의 적합성을 테스트하기 위해서는 특정 프로토콜에 대한 테스트를 수행할 수 있는 테스트 장치를 이용하여 부국이 특정 프로토콜을 지원하는지를 테스트한다.When the sub-station 50 wants to communicate with the main station 10 through a specific protocol, it should be determined whether the sub-station 50 can communicate with the main station 10 through the specific protocol. That is, in order to test the suitability of the sub-station, a test apparatus capable of performing a test on a specific protocol is used to test whether the sub-station supports a specific protocol.

일반적으로 전기·전력 분야에서 사용되는 프로토콜에는 DLMS(Device Language Message Specification)가 있다.In general, there is a DLMS (Device Language Message Specification) as a protocol used in the electric and power fields.

DLMS 프로토콜은 전기 계량기의 원격 검침에 주로 사용되며, 상호 호환성을 확보하기 위하여 계량 기기가 다루는 각종 데이터를 논리적인 객체로 모델링하고, 이를 표준화하여 데이터 메세지를 정의하며, 다양한 전송 매체로 전송 방법을 규정한 원격 검침용 통신 프로토콜의 국제 규격이다.The DLMS protocol is mainly used for remote meter reading of electricity meters. To ensure mutual compatibility, the DLMS protocols model various data handled by the weighing device as logical objects, define data messages by standardizing them, and define the transmission method to various transmission media. Is an international standard for remote metering communication protocols.

구체적으로는, DLMS 프로토콜의 국제 규격은 국제 전기 표준 회의인 IEC (International Electrotechnical Commission) 61170(FLAG) 및 IEC 61334-4- 41(Distribution Line Messaging Specification) 국제 규격으로부터 시작되었으며, 그 사용 범위는 전기 분야뿐만 아니라 전자식 전력량계에도 적용되고 있다.Specifically, the international standard for the DLMS protocol originates from the International Electrotechnical Commission (IEC) 61170 (FLAG) and IEC 61334-4-41 (Distribution Line Messaging Specification) international standards, the scope of which is used in the electrical field. In addition, it is applied to electronic electricity meter.

이러한 DLMS 프로토콜의 국제 규격에 COSEM (Companion Specification for Energy Metering) 인터페이스를 적용한 DLMS/COSEM 프로토콜은 IEC 62056 국제 규격을 기반으로 하는 차세대 전력량계 통신 프로토콜로써, 그 사용이 점차 확대되고 있다.The DLMS / COSEM protocol, which applies the COSEM (Companion Specification for Energy Metering) interface to the international standard of the DLMS protocol, is a next-generation power meter communication protocol based on the IEC 62056 international standard.

그러나, 전력량 계량기와 같은 DLMS/COSEM 프로토콜을 지원하는 부국의 적합성을 테스트하기 위한 테스트 장치는 개발되지 않았다. 따라서, DLMS/COSEM 프로토콜을 지원하는 부국을 테스트하기 위한 테스트 장치의 개발이 시급하다.However, no test apparatus has been developed to test the suitability of a country supporting the DLMS / COSEM protocol, such as a power meter. Therefore, it is urgent to develop a test apparatus for testing a sub-station supporting the DLMS / COSEM protocol.

상기 문제점을 해결하기 위하여, 본 발명은 국제 표준 시험 언어인 TTCN-3 코어 언어를 이용하여 부국이 DLMS/COSEM 프로토콜을 지원하는지를 용이하게 테스트할 수 있는 DLMS/COSEM 프로토콜을 지원하는 부국의 적합성을 테스트하는 TTCN-3 코어 언어 기반의 테스트 장치 및 이를 이용한 테스트 방법을 제공하는 것을 그 목적으로 한다.In order to solve the above problems, the present invention uses the TTCN-3 core language, which is an international standard test language, to test the suitability of a sub-station supporting the DLMS / COSEM protocol that can easily test whether the sub-station supports the DLMS / COSEM protocol. An object of the present invention is to provide a test device based on the TTCN-3 core language and a test method using the same.

본 발명에 따른 DLMS/COSEM 프로토콜을 지원하는 부국의 적합성을 테스트하는 TTCN-3 코어 언어 기반의 테스트 장치에 있어서, 테스트 항목을 포함하는 상기 TTCN-3 코어 언어로 작성된 소스를 컴파일하는 컴파일러 모듈; 상기 컴파일러 모듈이 생성한 실행 파일을 실행하는 프로세서 모듈; 상기 실행 파일에 포함된 상기 테스트 항목에 관한 테스트 데이터를 상기 DLMS/COSEM 프로토콜에 적합하도록 인코딩하는 인코딩 모듈; 상기 인코딩 모듈에 의해 인코딩된 상기 테스트 데이터를 상기 부국으로 전송하며, 상기 부국이 전송한 응답 데이터를 수신하는 통신 인터페이스 모듈; 및 상기 통신 인터페이스 모듈을 통해 수신한 상기 응답 데이터를 디코딩하는 디코딩 모듈을 포함하되, 상기 프로세서 모듈은 상기 디코딩 모듈에 의해 디코딩된 응답 데이터를 분석하여 테스트 결과 데이터를 생성하는 것을 특징으로 한다.A TTCN-3 core language based test apparatus for testing suitability of a sub-station supporting the DLMS / COSEM protocol according to the present invention, comprising: a compiler module for compiling a source written in the TTCN-3 core language including a test item; A processor module for executing an executable file generated by the compiler module; An encoding module for encoding test data relating to the test item included in the executable file to conform to the DLMS / COSEM protocol; A communication interface module which transmits the test data encoded by the encoding module to the sub-station, and receives the response data transmitted by the sub-station; And a decoding module for decoding the response data received through the communication interface module, wherein the processor module generates test result data by analyzing the response data decoded by the decoding module.

본 발명에 따른 상기 프로세서 모듈은 상기 응답 데이터와 기준 데이터를 비교하여 상기 테스트 결과 데이터를 생성하는 것이 바람직하며, 상기 실행 파일에 포함된 상기 테스트 항목에 관한 테스트 데이터를 실행하는 것이 바람직하다.Preferably, the processor module according to the present invention generates the test result data by comparing the response data with reference data, and preferably executes test data about the test item included in the executable file.

본 발명에 따른 상기 통신 인터페이스 모듈은 RS-232를 통해 상기 부국과 통신하는 것이 바람직하며, 상기 인코딩 모듈은 상기 테스트 데이터를 HDLC 프레임 구조로 인코딩하는 것이 바람직하다.Preferably, the communication interface module according to the present invention communicates with the sub-station via RS-232, and the encoding module preferably encodes the test data into an HDLC frame structure.

본 발명에 따른 DLMS/COSEM 프로토콜을 지원하는 부국의 적합성을 테스트하는 테스트 방법에 있어서, (a) 테스트 항목을 포함하는 TTCN-3 코어 언어로 작성된 소스를 컴파일하여 실행 파일을 생성하는 단계; (b) 상기 실행 파일에 포함된 상기 테스트 항목에 관한 테스트 데이터를 상기 DLMS/COSEM 프로토콜에 적합하도록 인코딩하여 부국으로 전송하는 단계; (c) 상기 부국으로부터 수신한 응답 데이터를 디코딩하는 단계; 및 (d) 디코딩된 응답 데이터를 분석하여 테스트 결과 데이터를 생성하는 단계를 포함하는 것을 특징으로 한다.A test method for testing suitability of a sub-station supporting the DLMS / COSEM protocol according to the present invention, the method comprising: (a) compiling a source written in a TTCN-3 core language including a test item to generate an executable file; (b) encoding test data related to the test item included in the executable file to conform to the DLMS / COSEM protocol and transmitting it to the sub-station; (c) decoding the response data received from the sub-station; And (d) analyzing the decoded response data to generate test result data.

본 발명에 따른 상기 (d) 단계는, 상기 디코딩된 응답 데이터와 기준 데이터를 비교하여 상기 테스트 결과 데이터를 생성하는 단계를 포함하는 것이 바람직하다.Step (d) according to the present invention preferably includes the step of generating the test result data by comparing the decoded response data with reference data.

본 발명에 따르면, 부국이 전기·전력 분야에서 사용되는 DLMS/COSEM 프로토콜에 적합한지를 판단하는 부국의 적합성 테스트를 TTCN-3 코어 언어로 작성된 소스를 컴파일하여 생성된 실행 파일을 기초로 수행하므로 부국의 적합성 테스트가 용이하다는 장점이 있다.According to the present invention, since the substation conforms to the DLMS / COSEM protocol used in the field of electricity and power, the substation conformity test is performed based on the executable file generated by compiling the source code written in the TTCN-3 core language. The advantage is that compliance testing is easy.

또한, 테스트 항목을 포함하는 소스를 TTCN-3 코어 언어로 작성하므로 DLMS/COSEM 프로토콜이 아닌 다른 프로토콜을 지원하는 부국의 적합성 테스트를 수행하기 위한 테스트 항목의 작성이 용이할 뿐만 아니라, 다른 프로토콜을 지원하는 부국에 대해서도 적합성 테스트를 용이하게 수행할 수 있다.In addition, since the source containing the test items is written in the TTCN-3 core language, it is not only easy to write test items for performing conformity tests of sub-stations supporting protocols other than DLMS / COSEM protocol, but also supports other protocols. Conformance testing can also be easily carried out for those stations.

또한, 본 발명에 따른 테스트 장치는 RS-232를 통해 부국과 통신을 수행하므로, RS-232의 통신방식을 사용하는 예컨대, PC와 같은 통상의 시스템에서도 부국의 적합성 테스트를 용이하게 수행할 수 있다.In addition, since the test apparatus according to the present invention communicates with the sub-station via RS-232, it is possible to easily perform the conformity test of the sub-station even in a typical system such as a PC using the communication method of RS-232. .

이하, 첨부된 도면을 참조하여 본 발명에 따른 DLMS/COSEM 프로토콜을 지원하는 부국의 적합성을 테스트하는 TTCN-3 코어 언어 기반의 테스트 장치 및 이를 이용한 테스트 방법에 대해서 상세하게 설명한다.Hereinafter, with reference to the accompanying drawings will be described in detail with respect to the TTCN-3 core language-based test apparatus for testing the suitability of the sub-support for the DLMS / COSEM protocol according to the present invention and a test method using the same.

도 2는 본 발명에 따른 DLMS/COSEM 프로토콜을 지원하는 부국의 적합성을 테스트하는 TTCN-3 코어 언어 기반의 테스트 장치를 도시한 블럭도이다.2 is a block diagram illustrating a TTCN-3 core language based test apparatus for testing suitability of a sub-station supporting the DLMS / COSEM protocol according to the present invention.

도 2를 참조하면, 본 발명에 따른 테스트 장치(100)는 컴파일러 모듈(110), 프로세서 모듈(120), 인코딩 모듈(130), 통신 인터페이스 모듈(140) 및 디코딩 모듈(150)을 포함한다.2, the test apparatus 100 according to the present invention includes a compiler module 110, a processor module 120, an encoding module 130, a communication interface module 140, and a decoding module 150.

컴파일러 모듈(110)은 테스트 항목을 포함하는 TTCN-3(Testing & Test Control Notation version 3) 코어 언어로 작성된 소스를 컴파일하여 실행 파일을 생성한다. 바람직하게는, 상기 소스에는 테스트의 수행을 위한 테스트 항목을 포함하며, 소스로부터 생성된 실행 파일은 테스트 항목에 관한 테스트 데이터를 포함할 수 있다.The compiler module 110 generates an executable file by compiling a source written in a Testing & Test Control Notation version 3 (TTCN-3) core language including a test item. Preferably, the source includes a test item for performing a test, and the executable file generated from the source may include test data about the test item.

TTCN-3 코어 언어에 대해서 상세하게 설명하면 다음과 같다.The TTCN-3 core language is described in detail as follows.

TTCN-3 코어 언어는 2001년 유럽 전기 통신 표준 협회인 ETSI(European Telecommunications Standards Institute)에 의해 표준화된 국제 표준 시험 언어로써, 다양한 통신 인터페이스를 통한 각종의 테스트를 규격화할 수 있는 시험 언어이다. TTCN-3 코어 언어는 표현 방법을 변형한 채 TTCN-2 코어 언어의 기능을 대부분 가진다.The TTCN-3 core language is an international standard test language standardized by the European Telecommunications Standards Institute (ETSI) in 2001. It is a test language that can standardize various tests through various communication interfaces. The TTCN-3 core language has most of the functionality of the TTCN-2 core language, with a modified representation.

구체적으로는, TTCN-3 코어 언어는 테스트의 수행을 위한 테스트 케이스, 즉, 사용자에 의해 작성되는 테스트 항목을 텍스트뿐만 아니라 표와 다이어그램으로도 작성할 수 있으며, MTC(Main Test Component)의 테스트 수행시 동적으로 PTC(Parallel Test Component)의 생성이 가능하다. 또한, TTCN-3 코어 언어는 동기식 통신과 비동기식 통신을 모두 지원하며, 인코딩 정보를 지정할 수 있다. 또한, TTCN-3 코어 언어는 데이터 간의 비교 기능 뿐만 아니라 함수 규격의 템플릿을 사용할 수 있다. 또한, TTCN-3 코어 언어는 ASN.1 (Abstract Syntax Notation One)에서 사용되는 문법의 타입과 값들을 사용할 수 있다.Specifically, the TTCN-3 core language can write a test case for performing a test, that is, a test item created by a user not only in text but also in tables and diagrams, and when performing a test of the MTC (Main Test Component). Dynamic Test Component (PTC) can be generated dynamically. In addition, the TTCN-3 core language supports both synchronous and asynchronous communication and can specify encoding information. In addition, the TTCN-3 core language can use a function specification template as well as a comparison function between data. In addition, the TTCN-3 core language can use the types and values of the grammar used in Abstract Syntax Notation One (ASN.1).

TTCN-3 코어 언어는 블랙박스 테스팅(black-box testing) 방식으로 테스팅을 수행하며, 이동 통신 및 인터넷을 포함한 프로토콜이 테스트 대상에 적합한지를 판단하는 테스트 대상의 적합성 테스트뿐만 아니라 모듈 테스트, CORBA(Common Object Request Broker Architecture) 기반의 플랫폼 테스트 및 API(Application Programming Interface) 테스트에도 일반적으로 사용될 수 있다.The TTCN-3 core language performs black-box testing, which tests modules, CORBA (Common), as well as conformance testing of test targets to determine whether protocols, including mobile communications and the Internet, are suitable for testing. It can also be used for platform test based on Object Request Broker Architecture (API) and application programming interface (API) test.

즉, 컴파일러 모듈(110)은 국제 표준 시험 언어인 TTCN-3 코어 언어로 작성 된 소스를 컴파일하여 실행 파일을 생성한다.That is, the compiler module 110 generates an executable file by compiling a source written in the TTCN-3 core language, which is an international standard test language.

프로세서 모듈(120)은 컴파일러 모듈(110)로부터 생성된 실행 파일을 실행한다.The processor module 120 executes an executable file generated from the compiler module 110.

구체적으로는, 컴파일러 모듈(110)이 생성한 상기 실행 파일이 프로세서 모듈(120)에 의해 실행되면, 본 발명에 따른 테스트 장치(100)와 연결된 디스플레이 장치(미도시)를 통해 부국(200)을 테스트하기 위한 테스트 항목, 테스트의 수행 과정 및 수행 결과가 표시될 수 있다.Specifically, when the executable file generated by the compiler module 110 is executed by the processor module 120, the sub-station 200 may be connected through a display device (not shown) connected to the test apparatus 100 according to the present invention. The test item for testing, the process of performing the test and the result of the test may be displayed.

프로세서 모듈(120)은 테스트 항목에 관한 테스트 데이터 전체를 인코딩 모듈(130)로 전송하거나 사용자에 의해 선택된 테스트 항목에 관한 테스트 데이터만을 인코딩 모듈(130)로 전송할 수 있으며, 인코딩 모듈(130)로 전송된 테스트 데이터는 인코딩 모듈(130)에 의해 인코딩된다.The processor module 120 may transmit the entirety of the test data about the test item to the encoding module 130 or only the test data about the test item selected by the user to the encoding module 130, and may transmit to the encoding module 130. The test data is encoded by the encoding module 130.

인코딩 모듈(130)은 테스트 항목에 관한 테스트 데이터를 인코딩한다. 바람직하게는, 인코딩 모듈(130)은 테스트 항목에 포함된 테스트 데이터를 DLMS/COSEM 프로토콜에 적합하도록 인코딩할 수 있다.The encoding module 130 encodes test data regarding the test item. Preferably, the encoding module 130 may encode the test data included in the test item to conform to the DLMS / COSEM protocol.

구체적으로는, 인코딩 모듈(130)은 어플리케이션 계층(Application layer), 데이터 링크 계층(Data link layer) 및 물리적 계층(Physical layer)으로 구성되는 DLMS/COSEM 프로토콜의 계층 구조에 따라 상기 테스트 데이터를 HDLC(High-level Data Link Control procedure) 프레임 구조로 인코딩하여 통신 인터페이스 모듈(140)을 통해 부국(200)으로 전송한다.In detail, the encoding module 130 may convert the test data into HDLC according to the hierarchical structure of the DLMS / COSEM protocol including the application layer, the data link layer, and the physical layer. High-level Data Link Control procedure) is encoded in a frame structure and transmitted to the sub-station 200 through the communication interface module 140.

예를 들어, 인코딩 모듈(130)은 옥텟스트링(octetstring)을 가지는 테스트 데이터를 DLMS/COSEM 프로토콜에 적합하도록 비트스트링(bitstring)을 가지는 테스트 데이터로 인코딩하여 통신 인터페이스 모듈(140)을 통해 부국(200)으로 전송할 수 있다.For example, the encoding module 130 encodes test data having an octetstring into test data having a bitstring to conform to the DLMS / COSEM protocol and transmits the test data having the bitstring to the sub-station 200 through the communication interface module 140. ) Can be sent.

통신 인터페이스 모듈(140)은 부국(200)과 통신을 수행한다. 구체적으로는, 통신 인터페이스 모듈(140)은 인코딩 모듈(130)에 의해 인코딩된 테스트 데이터를 부국(200)으로 전송하며, 부국(200)으로부터 응답 데이터를 수신하여 디코딩 모듈(150)로 전송한다.The communication interface module 140 communicates with the sub-station 200. Specifically, the communication interface module 140 transmits the test data encoded by the encoding module 130 to the sub-station 200, receives the response data from the sub-station 200, and transmits the response data to the decoding module 150.

바람직하게는, 통신 인터페이스 모듈(140)은 RS-232를 통해 부국(200)과 통신을 수행할 수 있다.Preferably, the communication interface module 140 may communicate with the sub-station 200 via RS-232.

디코딩 모듈(150)은 부국(200)으로부터 수신한 응답 데이터를 디코딩한다. 구체적으로는, 디코딩 모듈(150)은 상기 인코딩된 테스트 데이터에 대한 응답으로써 부국(200)이 생성한 응답 데이터를 통신 인터페이스 모듈(140)을 통해 수신하여 디코딩한다.The decoding module 150 decodes the response data received from the sub-station 200. Specifically, the decoding module 150 receives and decodes the response data generated by the sub-station 200 through the communication interface module 140 as a response to the encoded test data.

바람직하게는, 디코딩 모듈(150)은 상기 응답 데이터를 프로세서 모듈(120)에 적합하도록 디코딩할 수 있다. 예를 들어, 디코딩 모듈(150)은 비트스트링을 가지는 응답 데이터를 프로세서 모듈(120)에 적합하도록 옥텟스트링 또는 바이트스트링(bytestring)을 가지는 응답 데이터로 디코딩할 수 있다.Preferably, the decoding module 150 may decode the response data to suit the processor module 120. For example, the decoding module 150 may decode response data having a bitstring into response data having an octet string or bytestring so as to be suitable for the processor module 120.

프로세서 모듈(120)은 디코딩 모듈(150)에 의해 디코딩된 응답 데이터를 분석하여 테스트 결과 데이터를 생성한다.The processor module 120 analyzes the response data decoded by the decoding module 150 to generate test result data.

구체적으로는, 프로세서 모듈(120)은 상기 디코딩된 응답 데이터에 포함된 특정 데이터의 존재 여부를 판단하거나, 상기 디코딩된 응답 데이터에 포함된 특정 데이터와 기준 데이터를 비교하여 상기 특정 데이터와 상기 기준 데이터의 일치 여부에 따라 상기 테스트 결과 데이터를 생성할 수 있다. 상기 기준 데이터는 예컨대, 정상 동작을 하는 부국(200)으로부터 수신한 응답 데이터일 수 있다.Specifically, the processor module 120 determines whether there is specific data included in the decoded response data, or compares the specific data and the reference data by comparing the specific data and the reference data included in the decoded response data. The test result data may be generated depending on whether the test results match. The reference data may be, for example, response data received from the sub-station 200 in normal operation.

예를 들어, 상기 디코딩된 응답 데이터에 포함된 특정 데이터가 존재하거나 상기 디코딩된 응답 데이터에 포함된 특정 데이터와 비교 데이터를 비교하여 일치하는 경우, 프로세서 모듈(120)은 부국(200)이 DLMS/COSEM 프로토콜을 이용한 통신에 적합하다는 테스트 결과 메세지를 생성할 수 있다.For example, when the specific data included in the decoded response data exists or compares and compares the specific data included in the decoded response data with comparison data, the processor module 120 determines that the sub-station 200 has a DLMS / Test result messages can be generated that are suitable for communication using the COSEM protocol.

반면에, 상기 디코딩된 응답 데이터에 포함된 특정 데이터가 존재하지 않거나 상기 디코딩된 응답 데이터에 포함된 특정 데이터와 비교 데이터를 비교하여 일치하지 않는 경우, 프로세서 모듈(120)은 부국(200)이 DLMS/COSEM 프로토콜을 이용한 통신에 부적합하다는 테스트 결과 메세지를 생성할 수 있다. 프로세서 모듈(120)에 의해 생성된 상기 테스트 결과 메세지는 상기 디스플레이 장치를 통해 표시될 수 있다.On the other hand, when the specific data included in the decoded response data does not exist or does not match by comparing the comparison data with the specific data included in the decoded response data, the processor module 120 determines that the sub-station 200 has a DLMS. You can generate test result messages indicating that they are not suitable for communication using the / COSEM protocol. The test result message generated by the processor module 120 may be displayed through the display device.

따라서, 사용자는 프로세서 모듈(120)로부터 생성된 상기 테스트 결과 메세지를 기초로 부국(200)이 DLMS/COSEM 프로토콜에 적합한지 부적합한지를 판단할 수 있다.Accordingly, the user may determine whether the sub-station 200 is suitable for the DLMS / COSEM protocol based on the test result message generated from the processor module 120.

이하에서는, 본 발명에 따른 테스트 장치를 이용한 테스트 방법에 대해서 상세하게 설명한다.Hereinafter, a test method using the test apparatus according to the present invention will be described in detail.

도 3은 본 발명에 따른 DLMS/COSEM 프로토콜을 지원하는 부국의 적합성을 테 스트하는 테스트 방법을 도시한 흐름도이다.3 is a flowchart illustrating a test method for testing suitability of a sub-station supporting the DLMS / COSEM protocol according to the present invention.

도 3을 참조하면, 테스트 항목을 포함하는 TTCN-3 코어 언어로 작성된 소스를 컴파일하여 실행 파일을 생성한다(S110). 컴파일러 모듈은 상기 소스를 컴파일하여 실행 파일을 생성하며, 생성된 실행 파일은 프로세서 모듈을 통해 실행된다. 상기 소스에는 부국을 테스트하기 위한 테스트 항목을 포함하며, 소스로부터 생성된 실행 파일은 상기 테스트 항목에 관한 테스트 데이터를 포함할 수 있다.Referring to FIG. 3, an executable file is generated by compiling a source written in a TTCN-3 core language including a test item (S110). The compiler module compiles the source to generate an executable file, and the generated executable file is executed through the processor module. The source may include a test item for testing a rich station, and an executable file generated from the source may include test data about the test item.

다음에는, 상기 실행 파일에 포함된 상기 테스트 항목에 관한 테스트 데이터를 인코딩하여 상기 부국으로 전송한다(S120). 구체적으로는, 상기 프로세서 모듈은 상기 테스트 항목에 관한 테스트 데이터 전체를 인코딩 모듈로 전송하거나, 상기 테스트 항목에 관한 테스트 데이터를 선택적으로 인코딩 모듈로 전송할 수 있다. 상기 인코딩 모듈은 상기 프로세서 모듈로부터 수신한 상기 테스트 데이터를 DLMS/COSEM 프로토콜에 적합하도록 인코딩하여 통신 인터페이스 모듈을 통해 상기 부국으로 전송한다.Next, test data about the test item included in the executable file is encoded and transmitted to the sub-station (S120). Specifically, the processor module may transmit the entirety of the test data about the test item to the encoding module, or may selectively transmit the test data about the test item to the encoding module. The encoding module encodes the test data received from the processor module to conform to the DLMS / COSEM protocol and transmits the test data to the sub-station through a communication interface module.

다음에는, 상기 부국으로부터 수신한 응답 데이터를 디코딩한다(S130). 디코딩 모듈은 상기 통신 인터페이스 모듈을 통해 상기 인코딩된 테스트 데이터에 대한 응답으로 응답 데이터를 상기 부국으로부터 수신하여 디코딩한다.Next, the response data received from the sub station is decoded (S130). The decoding module receives and decodes response data from the sub-station in response to the encoded test data via the communication interface module.

다음에는, 상기 디코딩된 응답 데이터를 분석하여 테스트 결과 데이터를 생성한다(S140). 구체적으로는, 상기 프로세서 모듈은 상기 디코딩된 응답 데이터에 포함된 특정 데이터의 존재 여부를 판단하거나, 상기 디코딩된 응답 데이터에 포함된 특정 데이터와 비교 데이터를 비교하여 상기 특정 데이터와 상기 비교 데이터의 일치 여부에 따라 상기 테스트 결과 데이터를 생성할 수 있다.Next, test result data is generated by analyzing the decoded response data (S140). Specifically, the processor module determines whether there is specific data included in the decoded response data, or compares the specific data with the comparison data by comparing the specific data included in the decoded response data with the comparison data. The test result data may be generated according to whether or not.

상기 프로세서 모듈에 의해 생성된 상기 테스트 결과 메세지는 디스플레이 장치를 통해 표시될 수 있으며, 사용자는 상기 테스트 결과 데이터를 기초로 상기 부국이 DLMS/COSEM 프로토콜에 적합한지를 판단할 수 있다.The test result message generated by the processor module may be displayed through a display device, and a user may determine whether the sub station is compliant with the DLMS / COSEM protocol based on the test result data.

비록 본 발명의 구성이 구체적으로 설명되었지만 이는 단지 본 발명을 예시적으로 설명한 것에 불과한 것으로, 본 발명이 속하는 기술분야에서 통상의 지식을 가지는 자라면 본 발명의 본질적인 특성에서 벗어나지 않는 범위 내에서 다양한 변형이 가능할 것이다.Although the configuration of the present invention has been described in detail, these are merely illustrative of the present invention, and various modifications may be made by those skilled in the art without departing from the essential characteristics of the present invention. This will be possible.

따라서 본 명세서에 개시된 실시예들은 본 발명을 한정하기 위한 것이 아니라 설명하기 위한 것이고, 이러한 실시예에 의하여 본 발명의 사상과 범위가 한정되는 것은 아니다. 본 발명의 범위는 아래의 청구범위에 의해 해석되어야 하며, 그와 동등한 범위 내에 있는 모든 기술은 본 발명의 권리범위에 포함되는 것으로 해석되어야 할 것이다.Therefore, the embodiments disclosed in the present specification are intended to illustrate rather than limit the present invention, and the scope and spirit of the present invention are not limited by these embodiments. It is intended that the scope of the invention be interpreted by the following claims, and that all descriptions within the scope equivalent thereto will be construed as being included in the scope of the present invention.

도 1은 종래 기술에 따른 주국과 부국간의 통신 시스템을 도시한 블럭도.1 is a block diagram showing a communication system between a main station and a sub-station according to the prior art.

도 2는 본 발명에 따른 DLMS/COSEM 프로토콜을 지원하는 부국의 적합성을 테스트하는 TTCN-3 코어 언어 기반의 테스트 장치를 도시한 블럭도.2 is a block diagram illustrating a TTCN-3 core language based test apparatus for testing suitability of a sub-station supporting the DLMS / COSEM protocol in accordance with the present invention.

도 3은 본 발명에 따른 DLMS/COSEM 프로토콜을 지원하는 부국의 적합성을 테스트하는 테스트 방법을 도시한 흐름도.3 is a flow chart illustrating a test method for testing suitability of a sub-station supporting the DLMS / COSEM protocol in accordance with the present invention.

<도면의 주요부분에 대한 부호의 설명><Description of the symbols for the main parts of the drawings>

100 : 테스트 장치 110 : 컴파일러 모듈100: test device 110: compiler module

120 : 프로세서 모듈 130 : 인코딩 모듈120: processor module 130: encoding module

140 : 통신 인터페이스 모듈 150 : 디코딩 모듈140: communication interface module 150: decoding module

200 : 부국200: rich country

Claims (7)

DLMS/COSEM 프로토콜을 지원하는 부국의 적합성을 테스트하는 TTCN-3 코어 언어 기반의 테스트 장치에 있어서,In the test device based on the TTCN-3 core language for testing the suitability of the sub-station supporting the DLMS / COSEM protocol, 테스트 항목을 포함하는 상기 TTCN-3 코어 언어로 작성된 소스를 컴파일하는 컴파일러 모듈;A compiler module for compiling source written in the TTCN-3 core language including test items; 상기 컴파일러 모듈이 생성한 실행 파일을 실행하는 프로세서 모듈;A processor module for executing an executable file generated by the compiler module; 상기 실행 파일에 포함된 상기 테스트 항목에 관한 테스트 데이터를 상기 DLMS/COSEM 프로토콜에 적합하도록 인코딩하는 인코딩 모듈;An encoding module for encoding test data relating to the test item included in the executable file to conform to the DLMS / COSEM protocol; 상기 인코딩 모듈에 의해 인코딩된 상기 테스트 데이터를 상기 부국으로 전송하며, 상기 부국이 전송한 응답 데이터를 수신하는 통신 인터페이스 모듈; 및A communication interface module which transmits the test data encoded by the encoding module to the sub-station, and receives the response data transmitted by the sub-station; And 상기 통신 인터페이스 모듈을 통해 수신한 상기 응답 데이터를 디코딩하는 디코딩 모듈Decoding module for decoding the response data received through the communication interface module 을 포함하되,&Lt; / RTI &gt; 상기 프로세서 모듈은 상기 디코딩 모듈에 의해 디코딩된 응답 데이터를 분석하여 테스트 결과 데이터를 생성하는 것을 특징으로 하는 DLMS/COSEM 프로토콜을 지원하는 부국의 적합성을 테스트하는 TTCN-3 코어 언어 기반의 테스트 장치.And the processor module analyzes the response data decoded by the decoding module to generate test result data. The TTCN-3 core language based test apparatus for testing suitability of a sub-station supporting the DLMS / COSEM protocol. 제1항에 있어서,The method of claim 1, 상기 프로세서 모듈은 상기 응답 데이터와 기준 데이터를 비교하여 상기 테 스트 결과 데이터를 생성하는 것을 특징으로 하는 DLMS/COSEM 프로토콜을 지원하는 부국의 적합성을 테스트하는 TTCN-3 코어 언어 기반의 테스트 장치.And the processor module compares the response data with the reference data to generate the test result data. The test module of the TTCN-3 core language based test apparatus for testing suitability of a sub-station supporting the DLMS / COSEM protocol. 제1항에 있어서,The method of claim 1, 상기 프로세서 모듈은 상기 실행 파일에 포함된 상기 테스트 항목에 관한 테스트 데이터를 실행하는 것을 특징으로 하는 DLMS/COSEM 프로토콜을 지원하는 부국의 적합성을 테스트하는 TTCN-3 코어 언어 기반의 테스트 장치.The processor module is a test device based on the TTCN-3 core language for testing the suitability of the sub-station supporting the DLMS / COSEM protocol, characterized in that for executing the test data for the test item included in the executable file. 제1항에 있어서,The method of claim 1, 상기 통신 인터페이스 모듈은 RS-232를 통해 상기 부국과 통신하는 것을 특징으로 하는 DLMS/COSEM 프로토콜을 지원하는 부국의 적합성을 테스트하는 TTCN-3 코어 언어 기반의 테스트 장치.The communication interface module is a test device based on the TTCN-3 core language for testing the suitability of the sub-station supporting the DLMS / COSEM protocol, characterized in that the communication with the sub-station via RS-232. 제1항에 있어서,The method of claim 1, 상기 인코딩 모듈은 상기 테스트 데이터를 HDLC 프레임 구조로 인코딩하는 것을 특징으로 하는 DLMS/COSEM 프로토콜을 지원하는 부국의 적합성을 테스트하는 TTCN-3 코어 언어 기반의 테스트 장치.The encoding module is a test device based on the TTCN-3 core language for testing the suitability of the sub-station supporting the DLMS / COSEM protocol, characterized in that for encoding the test data in the HDLC frame structure. DLMS/COSEM 프로토콜을 지원하는 부국의 적합성을 테스트하는 테스트 방법에 있어서,In the test method for testing the suitability of a sub-station that supports the DLMS / COSEM protocol, (a) 테스트 항목을 포함하는 TTCN-3 코어 언어로 작성된 소스를 컴파일하여 실행 파일을 생성하는 단계;(a) compiling a source written in a TTCN-3 core language including a test item to generate an executable file; (b) 상기 실행 파일에 포함된 상기 테스트 항목에 관한 테스트 데이터를 상기 DLMS/COSEM 프로토콜에 적합하도록 인코딩하여 부국으로 전송하는 단계;(b) encoding test data related to the test item included in the executable file to conform to the DLMS / COSEM protocol and transmitting it to the sub-station; (c) 상기 부국으로부터 수신한 응답 데이터를 디코딩하는 단계; 및(c) decoding the response data received from the sub-station; And (d) 디코딩된 응답 데이터를 분석하여 테스트 결과 데이터를 생성하는 단계(d) analyzing the decoded response data to generate test result data 를 포함하는 것을 특징으로 하는 DLMS/COSEM 프로토콜을 지원하는 부국의 적합성을 테스트하는 테스트 방법.Test method for testing the suitability of the sub-station supporting DLMS / COSEM protocol comprising a. 제6항에 있어서,The method of claim 6, 상기 (d) 단계는, 상기 디코딩된 응답 데이터와 기준 데이터를 비교하여 상기 테스트 결과 데이터를 생성하는 단계를 포함하는 것을 특징으로 하는 DLMS/COSEM 프로토콜을 지원하는 부국의 적합성을 테스트하는 테스트 방법.The step (d) comprises the step of comparing the decoded response data and the reference data to generate the test result data, the test method for testing the suitability of the sub-station supporting the DLMS / COSEM protocol.
KR1020090085045A 2009-09-09 2009-09-09 Apparatus and method for testing performance of slave station applied to dlms/cosem protocol based on ttcn-3 core language KR20110027103A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020090085045A KR20110027103A (en) 2009-09-09 2009-09-09 Apparatus and method for testing performance of slave station applied to dlms/cosem protocol based on ttcn-3 core language

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020090085045A KR20110027103A (en) 2009-09-09 2009-09-09 Apparatus and method for testing performance of slave station applied to dlms/cosem protocol based on ttcn-3 core language

Publications (1)

Publication Number Publication Date
KR20110027103A true KR20110027103A (en) 2011-03-16

Family

ID=43933971

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020090085045A KR20110027103A (en) 2009-09-09 2009-09-09 Apparatus and method for testing performance of slave station applied to dlms/cosem protocol based on ttcn-3 core language

Country Status (1)

Country Link
KR (1) KR20110027103A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106572113A (en) * 2016-11-10 2017-04-19 全球能源互联网研究院 System and method for generating compliance rule of IEC62351 secure transmission protocols based on TTCN-3 language

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106572113A (en) * 2016-11-10 2017-04-19 全球能源互联网研究院 System and method for generating compliance rule of IEC62351 secure transmission protocols based on TTCN-3 language

Similar Documents

Publication Publication Date Title
CN102355062B (en) IEC (International Electrotechnical Commission) 61850 relay protection model checking method
TWI262439B (en) Strategy for dynamically modeling ASN.1 data to an object model
KR101780905B1 (en) Method and apparatus for establishing ultra-large character library and method and apparatus for displaying character
KR20140106857A (en) Protocol conformity verification method, apparatus performing the same and systme performing the same
CN109255209A (en) A kind of data processing method, device, equipment and storage medium
CN103346927A (en) System and method for testing terminal consistency
CN101651683A (en) Method for generating analysis source code of signaling message
WO2010081317A1 (en) Service access method and system
CN106599058B (en) RCD file model verification method and device
CN110769002A (en) LabVIEW-based message analysis method, system, electronic device and medium
CN111245633B (en) Configuration file of micro-grid main equipment and operation method thereof
KR101626382B1 (en) Testing language conversion apparatus and its method
CN113162977B (en) Information processing method and device, equipment and storage medium
KR20110027103A (en) Apparatus and method for testing performance of slave station applied to dlms/cosem protocol based on ttcn-3 core language
CN103984539A (en) Operation method and operation system for household appliance
CN105024923B (en) The method and device that message category based on XMPP extension message is realized
CN115834717B (en) Communication protocol rapid development method for Internet of things equipment
CN105808549B (en) Client method for automatically framing and analyzing frames based on mapping file
Sasikala et al. Retracted: Synchrophasor data transfer tool IEEE C37. 118.2—Implementation and study of measurement standard for a futuristic substation automation
US20100262951A1 (en) System and method for generating a wireless application from a web service definition
CN113065077B (en) Horizontal expansion middle-stage business processing system
CN110548285B (en) Game communication control method and device, medium and electronic equipment
Bodson Standardization roadmap for electric vehicles [Standards]
KR101142322B1 (en) ASN.1 Compiler
CN101916202B (en) Signaling display method and system

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E601 Decision to refuse application