KR20140048534A - Method for supporting real time communication with test equipments - Google Patents

Method for supporting real time communication with test equipments Download PDF

Info

Publication number
KR20140048534A
KR20140048534A KR1020120114587A KR20120114587A KR20140048534A KR 20140048534 A KR20140048534 A KR 20140048534A KR 1020120114587 A KR1020120114587 A KR 1020120114587A KR 20120114587 A KR20120114587 A KR 20120114587A KR 20140048534 A KR20140048534 A KR 20140048534A
Authority
KR
South Korea
Prior art keywords
real
communication
time
data
rtik
Prior art date
Application number
KR1020120114587A
Other languages
Korean (ko)
Other versions
KR101407726B1 (en
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 KR1020120114587A priority Critical patent/KR101407726B1/en
Publication of KR20140048534A publication Critical patent/KR20140048534A/en
Application granted granted Critical
Publication of KR101407726B1 publication Critical patent/KR101407726B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/16Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs
    • G06F15/163Interprocessor communication
    • G06F15/173Interprocessor communication using an interconnection network, e.g. matrix, shuffle, pyramid, star, snowflake
    • G06F15/17306Intercommunication techniques
    • G06F15/17325Synchronisation; Hardware support therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Theoretical Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Computer And Data Communications (AREA)

Abstract

An inspection apparatus capable of real-time communication and a method for supporting the real-time communication of the same are disclosed. The method for supporting the real-time communication of the inspection apparatus according to the present invention comprises the steps of: communicating data with an external device using MIL-STD-1553B communication for checking a performance of an embedded system; providing a real-time in the communication step by using a real-time transplantation kernel which generates a periodic timer interrupt; and periodically invoking the data communication by the communication step. [Reference numerals] (110) Communications unit; (120) Real-time providing unit; (130) Calling unit

Description

점검장치의 실시간 통신 지원방법{Method for Supporting Real Time Communication with Test Equipments}[0001] The present invention relates to a method for real-

본 발명은 실시간 통신이 가능한 점검장치 및 그 실시간 통신 지원방법에 관한 것으로서, 윈도우즈 환경에서 동작하는 통신장비에 실시간성을 제공하며, 제품의 개발비용을 낮출 수 있는 실시간 통신이 가능한 점검장치 및 그 실시간 통신 지원방법에 관한 것이다.The present invention relates to a check device capable of real-time communication and a real-time communication support method thereof, and more particularly, to a check device capable of real-time communication capable of providing real-time communication equipment operating in a Windows environment, And a communication support method.

군 장비 및 항공분야에서 개발된 임베디드 시스템은 실제 장비를 사용하기에 앞서, 해당 장비의 성능을 검증하는 기능시험, 즉 수락시험을 수행해야 한다. 이때, 임베디드 시스템의 성능을 검증하기 위해서는 이를 위한 점검장비가 필요하다. 특히, 유도무기체계에서 사용되는 점검장비는 실시간으로 데이터를 획득하고 평가할 수 있어야 하는데, 이를 위해서는 데이터의 수집의 정확성과 실시간 데이터 통신이 요구된다.Embedded systems developed in military and aerospace must perform functional tests, or acceptance tests, to verify the performance of the equipment before it is actually used. In order to verify the performance of the embedded system, it is necessary to inspect the embedded system. In particular, inspection equipment used in guided weapon systems should be capable of acquiring and evaluating data in real time, which requires accurate data collection and real-time data communication.

일반적으로 점검장비는 인텔에서 제공하는 x86 아키텍쳐 기반으로 구성되어있으며, 개발의 편의성을 제공하기 위해 윈도우즈 운영체제를 사용하고 있다. 하지만, 윈도우즈 운영체제는 실시간 운영체제가 아니며 윈도우즈에서 제공하는 멀티미디어 타이머를 사용하여 통신하기 때문에 10ms 이하의 주기로 통신할 경우에는 실시간성을 보장하지 못하며, 비공개 커널이기 때문에 실시간성을 제공하더라도 이 기종 컴퓨터 간의 통신 동기화를 위한 커널 수정이 불가능하여 통신 동기화를 이룰 수 없다는 문제점이 있다.In general, the inspection equipment is based on the x86 architecture provided by Intel and uses the Windows operating system to provide development convenience. However, since the Windows operating system is not a real-time operating system and communicates using a multimedia timer provided by Windows, it does not guarantee real-time communication when communication is performed at intervals of 10 ms or less. Even if it provides real- There is a problem that communication synchronization can not be achieved because the kernel can not be modified for synchronization.

본 발명은 전술한 문제점을 해결하기 위하여 창안된 것으로서, 윈도우즈 환경에서 동작하는 통신장비에 실시간성을 제공하며, 제품의 개발비용을 낮출 수 있는 실시간 통신이 가능한 점검장치 및 그 실시간 통신 지원방법을 제공하는 것을 목적으로 한다.Disclosure of Invention Technical Problem [8] The present invention has been made to solve the above-mentioned problems, and provides a real-time communication device capable of real-time communication that can reduce the development cost of a product, and a real- .

전술한 목적을 달성하기 위한 본 발명의 실시예에 따른 점검장치는, 임베디드 시스템의 성능을 점검하는 점검장치에 있어서, 외부의 기기와 데이터를 송수신하는 통신부; 주기적인 타이머 인터럽트를 발생시키는 실시간 이식 커널을 이용하여 통신부에 실시간성을 제공하는 실시간성 제공부; 및 통신부를 주기적으로 호출하여 실시간성 제공부에 연결시키는 호출부를 포함하는 것을 특징으로 한다.According to another aspect of the present invention, there is provided a checking apparatus for checking the performance of an embedded system, the checking apparatus comprising: a communication unit for transmitting and receiving data with an external device; A real-time sex creator that provides real-time performance to a communication unit using a real-time porting kernel that generates a periodic timer interrupt; And a calling unit for periodically calling the communication unit to connect to the real-time sex-free service.

실시간성 제공부 및 호출부는 RTiK(Real-Time implant Kernel) 동작방식으로 동작할 수 있다.The real-time agent and call unit can operate in real-time implant kernel (RTiK) operating mode.

여기서, 실시간성 제공부는 HAL(Hardware Abstraction Layer)을 통한 x86 기반의 하드웨어 플랫폼의 Local APIC의 제어를 통하여 실시간성을 제공할 수 있다.Here, the real-time property provider can provide real-time performance by controlling the Local APIC of the x86-based hardware platform through the hardware abstraction layer (HAL).

또한, 호출부는 윈도우즈 사용자 레벨에서 동작하는 쓰레드(thread)들에 정의된 작업을 수행하여 주기적인 동작을 보장할 수 있다.In addition, the caller can perform a defined operation on threads operating at the Windows user level to ensure periodic operation.

또한, 통신부는 폴링(Polling) 방식 및 더블 버퍼(Double Buffer) 중의 적어도 하나를 이용하여 실시간 통신을 수행할 수 있다.In addition, the communication unit may perform real-time communication using at least one of a polling method and a double buffer.

이때, 통신부는 MIL-STD-1553B 통신을 이용하여 통신을 수행하는 것이 바람직하다.At this time, it is preferable that the communication unit performs communication using MIL-STD-1553B communication.

전술한 목적을 달성하기 위한 실시간 통신 지원방법은, 임베디드 시스템의 성능을 점검하는 점검장치의 실시간 통신 지원방법에 있어서, 외부의 기기와 데이터를 통신하는 단계; 주기적인 타이머 인터럽트를 발생시키는 실시간 이식 커널을 이용하여 통신단계에 실시간성을 제공하는 단계; 및 통신단계에 의한 데이터통신을 주기적으로 호출하는 단계를 포함하는 것을 특징으로 한다.A real-time communication support method for realizing the above-mentioned object includes the steps of: communicating data with an external device, in a real-time communication supporting method of a check device for checking the performance of an embedded system; Providing a real-time property to a communication step using a real-time porting kernel that generates a periodic timer interrupt; And a step of periodically calling the data communication by the communication step.

여기서, 실시간성 제공단계 및 호출단계는 RTiK(Real-Time implant Kernel) 동작방식으로 동작할 수 있다.Here, the real-time property providing step and the calling step may operate according to RTiK (Real-Time Implant Kernel) operation method.

실시간성 제공단계는 HAL(Hardware Abstraction Layer)을 통한 x86 기반의 하드웨어 플랫폼의 Local APIC의 제어를 통하여 실시간성을 제공할 수 있다.The real-time provisioning step can provide real-time performance by controlling the Local APIC of the x86-based hardware platform through the Hardware Abstraction Layer (HAL).

또한, 호출단계는 윈도우즈 사용자 레벨에서 동작하는 쓰레드(thread)들에 정의된 작업을 수행하여 주기적인 동작을 보장할 수 있다.In addition, the calling step can guarantee the periodic operation by performing the operation defined in the threads operating at the Windows user level.

또한, 통신단계는 폴링(Polling) 방식 및 더블 버퍼(Double Buffer) 중의 적어도 하나를 이용하여 실시간 통신을 수행할 수 있다.In addition, the communication step may perform real-time communication using at least one of a polling method and a double buffer.

이때, 통신단계는 MIL-STD-1553B 통신을 이용하여 통신을 수행하는 것이 바람직하다.At this time, it is preferable that the communication step performs communication using MIL-STD-1553B communication.

본 발명에 따르면, 윈도우즈 환경에서 동작하는 통신장비에 실시간성을 제공하며, 제품의 개발비용을 낮출 수 있게 된다.According to the present invention, it is possible to provide a real-time property to a communication device operating in a Windows environment, and to reduce a development cost of a product.

또한, 본 발명에 따르면, MTL-STD-1553B 통신을 이용함으로써 점검장치에서의 에러 발생률을 최소화할 수 있으며, 이를 통하여 이 기종 컴퓨터 간의 동기화문제를 해결할 수 있게 된다.Also, according to the present invention, by using the MTL-STD-1553B communication, the error occurrence rate in the checking apparatus can be minimized, thereby solving the synchronization problem between these types of computers.

도 1은 본 발명의 실시예에 따른 점검장치를 개략적으로 도시한 도면이다.
도 2는 멀티코어 환경에서 RTiK의 동작과정을 나타낸 도면이다.
도 3은 이벤트 기반 RTiK의 동작방식을 나타낸 도면이다.
도 4는 점검장치의 통신구조를 나타낸 도면이다.
도 5는 폴링 방식을 이용한 실시간 통신구조를 나타낸 도면이다.
도 6은 폴링 방식과 더블 버퍼를 이용한 실시간 통신구조를 나타낸 도면이다.
도 7은 MIL-STD-1553B 통신의 전체적인 구조를 나타낸 도면이다.
도 8은 RTiK의 주기 쓰레드에 TX 명령과 RX명령을 작성한 MIL-STD-1553B의 BC 프로그램 구조를 나타낸 도면이다.
도 9는 더블 버퍼를 사용한 MIL-STD-1553B의 RT 프로그램 구조를 나타낸 도면이다.
도 10은 실시간 동작을 검증하기 위해 구성한 실험환경을 나타낸 도면이다.
도 11은 도 10의 실험환경을 위한 장비의 예를 나타낸 도면이다.
도 12는 RTiK를 이용한 통신주기 2ms 측정의 일 예를 나타낸 도면이다.
도 13은 RTiK의 통신데이터의 확인의 일 예를 나타낸 도면이다.
도 14는 RTiK를 이용한 통신주기 2ms 측정의 다른 예를 나타낸 도면이다.
도 15는 RTiK의 통신데이터의 확인의 다른 예를 나타낸 도면이다.
도 16은 RTiK을 이용한 통신주기 2ms 측정 및 워크로도 10개를 예시한 도면이다.
도 17은 워크로드 적용시 통신데이터 확인 예를 나타낸 도면이다.
도 18은 워크로드 적용시 2ms, 5ms, 10ms 실험결과를 나타낸 도면이다.
도 19는 본 발명의 실시예에 따른 실시간 통신 지원방법을 나타낸 흐름도이다.
1 is a schematic view of a checking apparatus according to an embodiment of the present invention.
2 is a flowchart illustrating an operation of the RTiK in a multicore environment.
3 is a diagram illustrating an operation of the event-based RTiK.
4 is a diagram showing a communication structure of the checking apparatus.
5 is a diagram showing a real-time communication structure using the polling method.
6 is a diagram illustrating a real-time communication structure using a polling method and a double buffer.
7 is a diagram showing the overall structure of MIL-STD-1553B communication.
FIG. 8 is a diagram showing a BC program structure of MIL-STD-1553B in which a TX command and an RX command are created in a cycle thread of RTiK.
9 is a diagram showing an RT program structure of MIL-STD-1553B using a double buffer.
10 is a diagram illustrating an experimental environment configured to verify a real-time operation.
11 is a view showing an example of equipment for the experimental environment of FIG.
12 is a diagram showing an example of a 2 ms measurement of a communication cycle using RTiK.
13 is a diagram showing an example of confirmation of communication data of RTiK.
14 is a diagram showing another example of the measurement of the communication period 2 ms using RTiK.
15 is a diagram showing another example of confirmation of communication data of RTiK.
FIG. 16 is a diagram illustrating 10 communication cycles with 2 ms measurement using RTiK and work.
17 is a diagram showing an example of communication data confirmation when a workload is applied.
18 is a diagram showing the results of 2 ms, 5 ms, and 10 ms test results when a workload is applied.
19 is a flowchart illustrating a method for supporting real-time communication according to an embodiment of the present invention.

이하, 첨부된 도면을 참조하여 본 발명의 실시예에 따른 실시간 통신이 가능한 점검장치 및 그 실시간 통신 지원방법을 상세하게 설명한다.Hereinafter, a checking apparatus capable of real-time communication according to an embodiment of the present invention and a real-time communication supporting method thereof will be described in detail with reference to the accompanying drawings.

임베디드 시스템의 성능을 점검하기 위한 점검장비는 상용 서드파티인 RTX(Real-Time Extension), INtime, RTiK(Real-Time implant Kernel) 등을 이용하여 윈도우즈에 실시간성을 제공하고, 실시간 통신이 가능하도록 할 수 있다.Inspection equipment to check the performance of the embedded system provides real-time property to Windows using real-time extension (RTX), INtime and RTiK (Real-Time implant Kernel) can do.

IntervalZero의 RTX는 윈도우즈 XP 및 윈도우즈 7에 실시간 제어가 가능한 실시간 운영체제의 기능을 부가해주는 확장 소프트웨어로서, 대부분의 개발자들이 익숙하고 편리한 윈도우즈 환경에서 RTX를 이용하여 기존 윈도우즈의 장점을 최대한 사용할 수 있도록 제공해 준다. 즉, RTX는 순수 실시간 운영체제가 아니라 윈도우즈의 대중성 및 풍부한 GUI Library의 장점을 최대한 이용하여 실시간성 등의 제약사항들을 보완해 주는 소프트웨어이다. 이러한 RTX는 현재 국방, 항공, 계측기, 시뮬레이션, 의료기기 등의 많은 산업분야에서 사용되고 있다. IntervalZero's RTX is an extension of the real-time operating system that allows real-time control of Windows XP and Windows 7, allowing most developers to take advantage of existing Windows with RTX in a familiar and convenient Windows environment . In other words, RTX is not a pure real-time operating system, but software that compensates for limitations such as real-time performance by making full use of advantages of Windows popular and rich GUI library. These RTXs are currently used in many industries, including defense, aerospace, instrumentation, simulation, and medical devices.

INtime은 인텔사가 개발한 iRMX커널을 사용하고 있는 인텔의 x86/CPU에 특화된 리얼타임 시스템 소프트웨어이다. INtime은 윈도우즈 XP/윈도우즈 2000을 플랫폼으로 한 제어, 계측 시스템에 INtime을 부가해 시스템상의 실시간성이 필요한 처리를 INtime이 처리하게 하여, 윈도우즈의 유연성은 그대로 유지하면서 보다 높은 신뢰성과 정밀한 리얼타임 퍼포먼스를 보충할 수 있다. INtime은 산업용 컴퓨터나, x86 보드 컴퓨터, 범용 컴퓨터의 윈도우즈 운영체제와 협조 동작하는 실시간 운영체제이며, 동일 하드웨어 상에서 윈도우즈와 동시에 동작하는 실시간 운영체제이다. 따라서 INtime이 설치된 윈도우즈는 2개의 커널이 동작하는 멀티 커널 시스템이 되며, 이는 2개의 가상 CPU를 사용하는 형태로 동작하게 된다.INtime is Intel's x86 / CPU-specific real-time system software using the iRMX kernel developed by Intel Corporation. INtime adds INtime to the control and measurement system using Windows XP / Windows 2000 as a platform, allowing INtime to handle processing that requires real-time performance on the system. It provides higher reliability and precise real-time performance while maintaining Windows flexibility. Can be supplemented. INtime is a real-time operating system that cooperates with industrial computers, x86 board computers, and general-purpose Windows operating systems. It is a real-time operating system that runs simultaneously with Windows on the same hardware. Therefore, Windows installed with INtime becomes a multi-kernel system with two kernels, which operates using two virtual CPUs.

그런데, 상용 서드파티인 INtime 및 RTX는 지정된 통신장비를 사용할 경우에만 실시간 통신이 가능하고, RTX 및 INtime과 같은 상용 솔루션은 고가의 경상 사용료를 가지기 때문에, 이로 인해 신무기 및 항공분야의 제품을 개발 시 많은 개발 비용이 발생하게 되는 문제점이 있다. However, the commercial third parties, INtime and RTX, are capable of real-time communication only when the designated communication equipment is used, and commercial solutions such as RTX and INtime have expensive commercial usage fees, There is a problem that a lot of development costs are incurred.

이를 해결하기 위하여, 본 발명의 실시예에 따른 점검장치(100)는 임베디드 시스템의 성능을 점검하는 장치로서, 도 1에 도시한 바와 같이 외부의 기기와 데이터를 송수신하는 통신부(110), 주기적인 타이머 인터럽트를 발생시키는 실시간 이식 커널을 이용하여 통신부(110)에 실시간성을 제공하는 실시간성 제공부(120), 및 통신부(110)를 주기적으로 호출하여 실시간성 제공부(120)에 연결시키는 호출부(130)를 포함할 수 있다.In order to solve this problem, a checking apparatus 100 according to an embodiment of the present invention checks the performance of an embedded system. As shown in FIG. 1, the checking apparatus 100 includes a communication unit 110 for transmitting / receiving data with an external device, A real-time sex creator 120 for providing a real-time property to the communication unit 110 using a real-time porting kernel that generates a timer interrupt, and a call for periodically calling the communication unit 110 to connect to the real- (130).

여기서, 실시간성 제공부(120) 및 호출부(130)는 RTiK 동작방식으로 동작할 수 있다.Here, the real-time sex creator 120 and the calling unit 130 may operate in the RTiK operation mode.

윈도우즈의 디바이스 드라이버의 형태로 구현된 RTiK은 커널 레벨에서 동작하며, 하드웨어의 자원 접근 및 윈도우즈의 커널에 접근할 수 있다. 실시간성을 지원하기 위해 HAL(Hardware Abstraction Layer)을 통한 x86 기반의 하드웨어 플랫폼의 Local APIC의 제어를 통하여 실시간성을 제공하였다. 이는 x86 하드웨어의 Local APIC 타이머와 관련된 레지스터들의 제어를 통해 윈도우즈와는 독립적인 타이머 인터럽트를 발생시켜 주기적인 동작을 보장한다. RTiK, implemented as a Windows device driver, runs at the kernel level and has access to hardware resources and Windows kernel. In order to support real - time performance, real - time performance is provided through control of Local APIC of x86 based hardware platform through Hardware Abstraction Layer (HAL). This ensures periodic operation by generating timer interrupts independent of Windows through the control of registers associated with the Local APIC timer on x86 hardware.

도 2는 멀티코어 환경에서 동작하는 RTiK의 전체적인 동작과정을 나타낸 도면이다. 2 is a diagram illustrating an overall operation of the RTiK operating in a multicore environment.

도 2에 나타낸 바와 같이, CPU 두 개를 가지는 시스템의 경우 각각의 프로세서는 고유의 Local APIC를 가지며, RTiK-MP의 경우 AP(Application Processor)의 Local APIC를 이용하여 실시간성을 제공한다. As shown in FIG. 2, in the case of a system having two CPUs, each processor has its own local APIC, and in case of RTiK-MP, it provides real-time performance using AP (Application Processor)'s Local APIC.

AP의 Local APIC 타이머가 발생하게 되면 AP의 IDT(Interrupt Descriptor Table)을 이용하여 타이머 핸들러를 수행하게 되는데 수행되는 핸들러는 각각의 프로세서가 가지고 있는 DPC(Deferred Procedure Call) Queue에 DPC를 등록하게 된다. 인터럽트의 수행이 끝나고 IRQL 값이 DPC Dispatch 레벨이 되면 등록된 DPC들을 DPC 루틴에서 처리하게 된다.When a local APIC timer of the AP occurs, a timer handler is executed using the IDT (Interrupt Descriptor Table) of the AP. The handler executed registers the DPC in the DPC (Deferred Procedure Call) queue of each processor. When the execution of the interrupt is completed and the IRQL value reaches the DPC Dispatch level, the registered DPCs are processed in the DPC routine.

RTiK은 윈도우즈 사용자 레벨에서 동작하는 쓰레드들에게 실시간성을 지원하기 위한 방법을 제공한다. 도 3에 나타낸 바와 같이, 사용자가 RTiK에서 제공하는 API를 통해 실시간 쓰레드를 생성하고, 수행코드를 작성하게 되면 생성된 실시간 쓰레드는 커널 레벨로부터 전달되는 Signal을 기다리게 된다. 커널 레벨로부터 Siganl을 전달 받게 되면 실시간 쓰레드에 정의된 작업을 수행함으로써 주기적인 동작을 보장한다. RTiK provides a way to support real-time behavior for threads running at the Windows user level. As shown in FIG. 3, when a user creates a real-time thread through an API provided by RTiK and writes an execution code, the generated real-time thread waits for a signal transmitted from the kernel level. When Siganl is received from the kernel level, it performs periodic operations by performing the tasks defined in the real-time thread.

윈도우즈 기반의 점검장비는 개발된 신무기의 수락시험을 위해 실시간으로 데이터를 획득하고 평가할 수 있어야 한다. 수락시험은 주기적으로 데이터를 획득하고 전달하여야 하며, 획득한 데이터를 특정한 알고리즘을 통해 평가하여야 한다. 특히 주기적으로 데이터를 획득하고 전달하기 위해 실시간성이 요구되어 진다. 하지만 점검장비는 다른 컴퓨터와 통신 디바이스로 연결하여 데이터 송수신 이루어지며 점검장비와 다른 이 기종의 컴퓨터 간에 통신 시 데이터를 보내고 받을 경우 데이터 송신이나 수신이 이루어졌다고 알릴 수 있는 방법이 없기 때문에 동기 통신(Synchronous Communication)을 할 수 없다. 동기 통신이 안 되는 경우 점검장비에서 실시간으로 데이터를 전송 하여도 수신 받는 컴퓨터에서 데이터를 실시간으로 수신하지 못하기 때문에 수락시험을 위한 주기적인 통신이 이루어지지 않는다. 이러한 문제를 해결하기 위하여, 본 발명의 실시예에 따른 점검장치(100)는 도 4와 같은 통신 구조에서 실시간성을 제공하기 위한 방법을 제공한다.Windows-based inspection equipment should be able to acquire and evaluate data in real-time for acceptance testing of the developed new weapon. Acceptance tests should periodically acquire and deliver data and evaluate the acquired data through a specific algorithm. In particular, real-time capability is required to acquire and deliver data periodically. However, since the inspection equipment is connected to another computer with a communication device to transmit and receive data, and there is no way to notify that data transmission or reception has been performed when data is transmitted between the inspection equipment and another type of computer, Communication can not be done. If synchronous communication is not possible, periodic communication for acceptance test can not be performed because the receiving computer does not receive data in real time even if data is transmitted in real time from the inspection equipment. In order to solve such a problem, the checking apparatus 100 according to the embodiment of the present invention provides a method for providing real-time property in the communication structure as shown in FIG.

통신부(110)는 폴링(Polling) 방식을 이용하여 실시간 통신을 할 수 있다.The communication unit 110 can perform real-time communication using a polling method.

윈도우즈 기반의 점검장비와 다른 컴퓨터를 통신 디바이스로 연결하여 이루어지는 통신은 이 기종 컴퓨터 간의 동기 통신을 할 수 없기 때문에 송신 측과 수신 측에 각각 실시간성을 제공해줘야 한다.Communication between the Windows-based inspection equipment and other computers connected to the communication device can not perform synchronous communication between these types of computers. Therefore, it is necessary to provide real-time properties to the transmitting side and the receiving side respectively.

윈도우즈 기반의 점검장비에 실시간성을 제공하여 실시간 데이터 통신을 하기 위해서 RTiK을 이용하였으며 점검장비뿐만 아니라 Target PC에 RTiK을 이식하여야 한다. 송신과 수신은 각각 RTiK의 주기 쓰레드로 동작을 하며 설정된 주기로 송신과 수신이 이루어진다. 도 5는 폴링 방식을 이용한 점검장비의 실시간 통신 구조이다.RTiK is used for real-time data communication by providing real-time property to Windows-based inspection equipment. RTiK should be ported to target PC as well as inspection equipment. Transmit and receive operate as periodic threads of RTiK, respectively, and transmission and reception are performed at set intervals. 5 is a real-time communication structure of the inspection equipment using the polling method.

RTiK을 이용한 실시간 통신은 비동기 통신(Asynchronous Communication)으로 데이터를 보냈을 경우 Signal을 보내 데이터를 수신하는 것이 아니며, 송신 측에서 RTiK의 주기를 설정하여 주기적으로 송신을 하고 수신 측에서도 RTiK의 주기 설정 후 주기적인 폴링 방식을 이용하여 버퍼에서 데이터를 읽게 됨으로써 주기적인 통신이 이루어지게 된다. 하지만 폴링 방식을 사용할 경우 송신과 수신 측의 주기에 오차가 발생할 경우 데이터 손실이 일어나게 되며, 송신 시 걸리는 시간과 수신 시 걸리는 시간을 고려하여 주기를 설정하여야 한다.In real-time communication using RTiK, when data is sent by asynchronous communication, it is not sending data and receiving data, but it sets period of RTiK on transmission side and periodically transmits it. On the receiving side, The data is read from the buffer by using the polling method, so that periodic communication is performed. However, when polling method is used, data loss occurs when errors occur in transmission and reception period, and period should be set considering transmission time and reception time.

폴링 방식을 이용한 방식은 송신 측과 수신 측에 주기 오차 발생 시 데이터의 손실이 일어나게 되므로 고속의 통신 시 RTiK을 활성화하는 오차에 따라 통신 오차가 발생하게 되며, 이는 데이터 송신이 이루어지고 난 후 데이터를 수신할 때 모든 데이터를 수신하지 못한 상태에서 버퍼에 새로운 데이터가 쓰여 잘못된 데이터를 수신하는 경우가 발생할 수 있다. 이와 같은 문제는 데이터 버퍼를 두 개 사용하여 해결할 수 있다. 도 6은 폴링 방식과 더블 버퍼를 이용한 실시간 통신구조를 나타낸 도면이다.In the method using the polling method, since a data loss occurs when a transmission error occurs in a transmission side and a reception side, a communication error occurs due to an error that activates the RTiK during high-speed communication. In case that all data is not received at the time of receiving, new data may be written to the buffer and erroneous data may be received. This problem can be solved by using two data buffers. 6 is a diagram illustrating a real-time communication structure using a polling method and a double buffer.

도 6의 방법은 휴대용 점검 장비와 Target PC에 각각 RTiK을 이식한 후 폴링 방식을 이용한 통신 구조에 데이터 버퍼 두 개를 사용한 구조로 점검장비에서 RTiK의 주기를 설정하여 주기적으로 데이터를 송신할 때 버퍼 1에 먼저 데이터를 송신하고 다음에 버퍼 2에 데이터를 송신하도록 구현하였다. Target PC에서 데이터를 수신 할 경우 버퍼 1에서 먼저 데이터를 수신한 후 다음 주기에는 버퍼 2에서 데이터를 수신하게 되는 구조이다. 이와 같은 구조에서는 점검장비에서 데이터 송신이 이루어지고 난 후 주기의 오차로 인해 수신을 완료되지 않은 상태에서 같은 버퍼로 데이터를 송신하여 수신 시 잘못된 데이터를 받는 문제를 해결할 수 있다. 또한 고속의 통신 시 RTiK의 활성화 오차로 인한 데이터 손실 문제를 해결할 수 있다.The method of FIG. 6 is a structure using two data buffers in a communication structure using a polling method after transplanting RTiK to a portable inspection device and a target PC, respectively. By setting the cycle of RTiK in the inspection device, 1, and then transmits the data to the buffer 2. When receiving data from the target PC, buffer 1 receives data first, and buffer 2 receives data in the next cycle. In such a structure, after the data transmission is performed in the inspection equipment, it is possible to solve the problem of receiving the wrong data by transmitting the data to the same buffer without receiving the data due to the error of the cycle. Also, it is possible to solve the data loss problem due to the activation error of RTiK in high-speed communication.

유도무기체계에서 성능검증을 위해 사용되는 점검장비는 실시간으로 데이터를 획득하고 평가해야 하며, 신뢰성이 요구되기 때문에 MIL-STD-1553B를 이용한 통신이 많이 사용되고 있다.Inspection equipment used for performance verification in guided weapon systems needs to acquire and evaluate data in real time, and since reliability is required, communication using MIL-STD-1553B is widely used.

본 발명의 실시예에 따른 점검장치(100)는 군용 점검장비를 위한 실시간 통신 방법을 실험하기 위해 MIL-STD-1553B를 이용한 실시간 통신방법을 지원한다.The inspection apparatus 100 according to an embodiment of the present invention supports a real-time communication method using MIL-STD-1553B to test a real-time communication method for military inspection equipment.

MIL-STD-1553B의 버스는 항공기 내의 항공 전자 장비(무기체계)들의 체계 종합을 목적으로 운용되며, 서로 다른 종류의 전자 장비가 장착될 경우 서브시스템의 전기적 인터페이스로 인한 혼란을 방지하기 위한 통신 protocol을 사용하여 메시지 전송방식에 의한 통신을 사용한다. 이러한 MIL-STD-1553B의 데이터 버스는 산업, 군사용, 우주용 데이터 버스의 규격으로, 고 신뢰성을 요구하는 분야에서 사용이 된다. The bus of MIL-STD-1553B is operated for the purpose of system integration of aviation electronic equipment (weapons systems) in an aircraft. When buses of different kinds are installed, communication protocol To communicate using the message transmission method. The data bus of MIL-STD-1553B is a standard for industrial, military, and space data buses and is used in fields requiring high reliability.

도 7은 MIL-STD-1553B 통신의 전체적인 구조를 나타낸 도면이다.7 is a diagram showing the overall structure of MIL-STD-1553B communication.

BC(Bus Controller)는 데이터 버스를 통한 정보 전송의 모든 데이터 흐름을 제어하고, RT(Remote Terminal)는 BC에 의해 제어된다. MT(Monitoring)는 데이터 버스 상에서 통신되는 모든 메시지를 모니터링한다. MIL-STD-1553B의 통신 방법은 BC에서 RT로 데이터를 전송하기 위해 Command Word 및 Data Word를 전송하게 되고, 명령을 전송받은 RT 는 Command Word의 유효성을 검사한 후 BC에게 Status Word와 Data Word를 전송하게 된다. 이를 통해 신뢰성 있는 통신을 보장하게 된다.BC (Bus Controller) controls all data flow of information transmission through data bus, and RT (Remote Terminal) is controlled by BC. Monitoring (MT) monitors all messages communicated on the data bus. In the communication method of MIL-STD-1553B, Command Word and Data Word are transmitted to transmit data from BC to RT. After validating Command Word, RT receives the Status Word and Data Word . This ensures reliable communication.

MIL-STD-1553B의 BC는 데이터 버스를 통한 정보 전송 시 모든 데이터의 흐름을 제어하며, BC에서 TX와 RX 명령을 RT에 송신하여 통신이 이루어진다. TX 명령은 RT에서 BC로 데이터를 송신하라는 의미이고, RX 명령은 BC에서 보낸 데이터를 RT에서 수신하라는 명령이다. 따라서 실시간 통신을 위해 RTiK 주기 쓰레드에 TX 명령과 RX 명령을 작성하여 동작시켜야 한다. BC of MIL-STD-1553B controls the flow of all data when transmitting information through the data bus, and communication is performed by transmitting TX and RX commands to RT in BC. The TX command is used to transmit data from the RT to the BC, and the RX command is used to receive data sent from the RT on the RT. Therefore, TX command and RX command must be created and operated in the RTiK cycle thread for real-time communication.

도 8은 RTiK의 주기 쓰레드에 TX 명령과 RX명령을 작성한 MIL-STD-1553B의 BC 프로그램 구조를 나타낸 도면이다. 도 8의 프로그램 구조를 보면 RX Link를 제거한 후 TX Link를 연결하여 RT에서 보낸 데이터를 수신하고, 다시 TX Link를 제거한 후 RX Link를 연결하여 RT로 데이터를 송신하는 것을 확인 할 수 있다. 이는 TX와 RX Link가 같이 연결되어 있는 경우 설정된 주기 안에서 TX 명령이 끝나면 바로 RX 명령을 송신하여 데이터의 손실이 발생하기 때문이다. 예를 들어 TX Link와 RX Link를 같이 연결하여 2ms로 동작 시킨다고 할 때 TX 명령에 1.2ms가 소요 되면, 다음 명령인 RX 명령은 0.8ms가 소요된다. 이는 TX가 명령이 끝나는 시점에 바로 RX 명령을 송신하기 때문에 RX 명령으로 데이터를 송신하는 것이 주기적으로 동작하지 않는 것을 의미하며, 설정 된 주기로 동작을 할 때 TX와 RX 명령의 주기를 각각 설정 할 수 없기 때문에 RT의 설정 주기와 오차가 발생하여 데이터의 손실이 발생한다. FIG. 8 is a diagram showing a BC program structure of MIL-STD-1553B in which a TX command and an RX command are created in a cycle thread of RTiK. In the program structure of FIG. 8, after removing the RX link, it is confirmed that the TX link is connected to receive the data sent from the RT, the TX link is removed, and then the RX link is connected to transmit the data to the RT. This is because, if TX and RX Link are connected together, data loss is caused by transmitting RX command immediately after the TX command is completed within the set period. For example, when TX link and RX link are connected together to operate at 2ms, if 1.2ms is required for TX command, RX command for next command takes 0.8ms. This means that transmission of data by RX command does not work periodically because TX sends RX command immediately at the end of command, and it is possible to set the cycle of TX and RX command when operating at set cycle Since there is no RT, there is an error in setting cycle of RT and data loss occurs.

이와 같은 문제를 해결하기 위해 RX Link를 해제한 후 TX Link를 연결하여 데이터를 수신하고, TX Link를 해제한 후 RX Link를 연결하여 데이터를 송신하여 데이터의 송신과 수신이 각각 주기적으로 동작하도록 구현하였다.To solve this problem, after releasing the RX Link, connect the TX Link to receive the data, release the TX Link, connect the RX Link to transmit data, and transmit and receive data periodically Respectively.

MIL-STD-1553B의 RT는 BC에서 TX 명령을 수신 할 경우 버퍼에 있는 데이터를 송신하며, 이전 데이터에서 하나씩 증가된 데이터를 보내기 위해서는 BC에 설정된 주기와 동일한 주기로 버퍼에 데이터를 써야한다. 하지만 BC와 RT에 이식된 RTiK 활성화 오차에 따라 데이터를 손실 할 수 있다. 이를 해결하기 위해 본 발명에서는 더블 버퍼를 사용하였다. RT of MIL-STD-1553B transmits the data in the buffer when receiving the TX command from the BC. To send the data incremented by one from the previous data, the data must be written in the buffer at the same cycle as the cycle set in BC. However, data may be lost due to RTiK activation errors implanted in BC and RT. To solve this problem, a double buffer is used in the present invention.

도 9는 더블 버퍼를 사용한 MIL-STD-1553B의 RT 프로그램 구조를 나타낸 도면이다. RT 프로그램의 구조는 송신되고 있는 데이터 버퍼를 찾아서 0번 버퍼의 데이터를 송신하고 있을 시 1번 버퍼에 데이터를 채우고, 1번 버퍼의 데이터를 송신하고 있을 시 0번 버퍼를 채우게 된다. 이때 송신 되고 있는 버퍼를 찾기 위해 Active 버퍼 포인터를 사용하게 되며, Active 버퍼 포인터가 이전 Active 버퍼 포인터와 같다면 버퍼에 아무런 데이터를 채우지 않는다. 이와 같은 방식을 통하여 최소 2ms의 데이터 통신 시에도 데이터의 손실 없이 주기적인 통신이 가능하게 된다. 9 is a diagram showing an RT program structure of MIL-STD-1553B using a double buffer. The structure of the RT program is to find the data buffer to be transmitted and to fill the buffer 1 when the data of the buffer 0 is being transmitted and to fill the buffer 0 when the data of the buffer 1 is being transmitted. At this time, the active buffer pointer is used to find the buffer being transmitted. If the active buffer pointer is the same as the previous active buffer pointer, no data is filled in the buffer. In this way, it is possible to perform periodic communication without loss of data even during data communication of at least 2 ms.

점검장비의 통신에 사용되는 디바이스에 대해 실시간 동작을 검증하기 위해 구성한 실험 환경은 도 10 및 도 11에 나타낸 바와 같다. The experimental environment configured to verify the real-time operation of the device used for communication of the inspection equipment is shown in FIGS. 10 and 11. FIG.

도 10 및 도 11에 나타낸 바와 같이, 점검장비에 실시간 통신을 제공하기 위해서 RTiK을 이식시키고, 이를 이용하여 MIL-STD-1553B 통신에 실시간성을 제공하였다. 또한 MIL-STD-1553B의 통신 주기를 확인하기 위해 I/O 모듈을 이용하여 오실로스코프로 출력하였고, 데이터의 정확성을 확인하기 위해 MT PC를 이용하여 전송된 32 Word 데이터가 모두 이상 없이 전송 되었는지 확인하였다.As shown in FIGS. 10 and 11, RTiK was implanted to provide real-time communication to the inspection equipment and used to provide real-time performance to the MIL-STD-1553B communication. In order to check the communication cycle of MIL-STD-1553B, I / O module was used to output the data to the oscilloscope. In order to verify the accuracy of data, it was confirmed that all 32 Word data transmitted using MT PC were transmitted without abnormality .

실험방법은 실시간성을 제공하는 RTiK의 사용자 영역에서 BC API를 이용하여 TX와 RX 명령을 송신하게 되고, RT에서 RTiK을 이용하여 주기적으로 데이터 버퍼를 갱신하여 TX 명령 수신 시 데이터를 송신하였다. 또한 BC에서 TX 명령으로 수신 받은 데이터를 읽어 들여 다시 RT에 RX 명령으로 송신하였다. 그러나 BC와 RT에서 RTiK을 활성화 시키는데 오차가 발생하기 때문에 RT에서 버퍼에 있는 데이터를 갱신하는 도중 TX 명령을 받아 데이터를 보내게 되어 데이터의 신뢰성을 보장하지 못하게 된다. 따라서 신뢰성을 보장하기 위해 RT에서 두 개의 버퍼를 두어 하나의 버퍼에 데이터가 송신되고 있을 경우 다른 버퍼의 데이터를 갱신하게 하도록 하였으며, 이를 통해 MIL-STD-1553B 통신 시 데이터의 손실 없이 주기적인 통신이 이루어지는 것을 보장하였다. 통신 주기측정의 경우 BC와 RT의 주기를 각각 2ms, 5ms, 15ms로 설정하여 주기를 측정하였다. 마찬가지로 동일한 환경에서 RTX를 이용하여 통신을 함으로써 RTiK과 RTX의 성능분석을 통해 성능을 비교하였다. In the experimental method, TX and RX commands are transmitted using the BC API in the user area of RTiK which provides real - time property, and the data buffer is updated periodically using RTiK in the RT to transmit the data when TX command is received. In addition, the data received by the TX command in the BC is read and transmitted to the RT in the RX command. However, because there is an error in activating RTiK in BC and RT, the RT receives the TX command in the buffer while updating the data in the buffer, and the data is sent, failing to guarantee the reliability of the data. Therefore, in order to guarantee the reliability, when two buffers are placed in the RT to transmit data to one buffer, the data in the other buffer is updated. Thus, periodic communication without loss of data in MIL-STD-1553B communication . In the case of the communication cycle measurement, the period was measured by setting the periods of BC and RT to 2 ms, 5 ms, and 15 ms, respectively. Likewise, we compared the performance of RTiK and RTX by analyzing performance using RTX in the same environment.

도 12는 점검장비에 RTiK을 이식 후 MIL-STD-1553B 통신 주기를 최소주기인 2ms로 설정하고, 오실로스코프를 이용하여 주기를 측정한 결과화면이다. 오실로스코프로 주기를 측정하기 위해서 2ms로 1과 0의 신호를 보내었으며, 오실로스코프에서는 두 개의 신호를 받은 주기가 측정된다. 이를 2로 나누면 1로 신호를 보냈을 때의 주기와 0으로신호를 보냈을 때의 주기를 확인 할 수 있다. 도 12에 나타낸 바와 같이 데이터를 전송 시 약 1.5%의 오차를 가지며 동작하는 것을 확인할 수 있다.FIG. 12 is a result of measuring the cycle using the oscilloscope by setting the MIL-STD-1553B communication cycle to 2 ms, which is the minimum cycle, after RTiK is implanted in the inspection equipment. To measure the period with an oscilloscope, a signal of 1 and 0 was sent in 2 ms. In the oscilloscope, the period of receiving two signals is measured. If you divide this by 2, you can see the period when the signal is sent as 1 and the period when the signal is sent as 0. As shown in FIG. 12, it can be confirmed that the data is transmitted with an error of about 1.5% when the data is transmitted.

또한 전송된 데이터의 정확성을 확인하기 위해 MIL-STD-1553B 버스에 지나가는 데이터를 확인 할 수 있는 MT를 사용하여 데이터를 확인하였다. 도 13은 통신이 이루어질 수 있는 최소주기인 2ms로 설정하여 통신 데이터를 확인한 그림이다. 그림에서 보듯이 우선 BC에서 RT로 TX 명령을 보내게 되면 RT에서 BC로 데이터를 보내게 된다. 이때 RT에서는 주기적으로 송신되고 있지 않은 버퍼를 확인하여 32 Word 크기의 데이터를 1씩 증가 시키게 된다. TX 명령으로 RT에서 BC로 데이터를 보낸 뒤 RX 명령어를 통해 RT에서 전달받은 데이터를 다시 BC에서 RT로 전송하였다. 그림에서 보듯이 데이터의 손실 없이 1씩 증가된 데이터가 전송되는 것을 확인할 수 있다.To verify the accuracy of the transmitted data, the data was verified using MT which can check the data passing on the MIL-STD-1553B bus. FIG. 13 is a diagram showing communication data set by setting a minimum period of 2 ms in which communication can be performed. As shown in the figure, when the TX command is sent from the BC to the RT, the data is sent from the RT to the BC. At this time, RT checks the buffer that is not transmitted periodically and increases the data of 32 words in size by one. After transmitting the data from RT to BC with TX command, the data received from RT through RX command is transmitted again from BC to RT. As shown in the figure, it can be seen that data increased by 1 without loss of data.

도 14는 동일한 환경에서 RTX를 이용한 결과 측정화면이다. 그림에서 보듯이 RTX의 경우 1%의 오차를 가지고 동작하는 것을 확인할 수 있다. 이를 통해 RTiK과 RTX가 동일한 성능을 가지는 것을 알 수 있다. 또한 도 15에서 볼 수 있듯이 RTX도 MIL-STD-1553B 통신 시 데이터의 손실 없이 전송되는 것을 확인할 수 있다.14 is a result measurement screen using RTX in the same environment. As shown in the figure, RTX operates with an error of 1%. This shows that RTiK and RTX have the same performance. Also, as shown in FIG. 15, it can be seen that the RTX is also transmitted without data loss in the MIL-STD-1553B communication.

도 16 및 도 17은 윈도우즈에서 동작하는 워크로드의 수가 많아졌을 경우 통신 주기와 데이터를 측정한 결과화면이다. 도 16 및 도 17에서 볼 수 있듯이 최소 주기인 2ms 동작 시 설정한 주기를 크게 벗어나지 않고 동작하는 것을 확인할 수 있다. 워크로드는 While문을 무한 반복하는 윈도우즈의 프로세스로써 윈도우즈의 프로세스가 많아질수록 윈도우즈가 스케줄링을 위한 인터럽트에 의해 인터럽트 지연시간이 길어져도 통신 쓰레드에는 영향을 거의 미치지 않는 것을 확인할 수 있다. 이는 통신 쓰레드가 워크로드에 관계없이 실시간성을 제공하는 것을 의미한다. FIGS. 16 and 17 are views showing results of measurement of communication cycle and data when the number of workloads running in Windows increases. As can be seen from FIGS. 16 and 17, it can be seen that the system operates without deviating much from the set period in the minimum period of 2 ms operation. The workload is a Windows process that repeats the While statement infinitely. As Windows processes become larger, Windows does not affect the communication thread even if the interrupt latency is increased due to the interrupt for scheduling. This means that the communication thread provides real-time performance regardless of the workload.

도 18은 통신 주기를 2ms, 5ms, 10ms로 설정하고 통신이 수행 시 동시에 동작하는 워크로드의 개수에 따른 주기변화를 나타낸 표이다. 표에서 볼 수 있듯이 RTiK과 RTX를 이용한 MIL-STD-1553B 통신은 워크로드에 크게 영향을 받지 않고 설정된 주기에 큰 오차 없이 정상 동작하는 것을 확인할 수 있다. FIG. 18 is a table showing the cycle variation according to the number of workloads simultaneously operating when the communication cycle is set to 2 ms, 5 ms, and 10 ms. As shown in the table, the MIL-STD-1553B communication using RTiK and RTX is not affected by the workload and can be confirmed to operate normally without any error in the set period.

다음과 같은 실험 결과를 통하여 RTiK을 이용한 폴링 방식과 더블 버퍼를 활용한 통신으로 군용 점검장비를 위한 실시간 통신이 가능함을 알 수 있다.The following experimental results show that RTiK polling method and double buffer communication enable real-time communication for military inspection equipment.

최근 군 장비 및 항공분야에서의 통신 네트워크에 대한 기술이 획기적으로 발달됨에 따라 데이터 수집의 정확성과 실시간 데이터 통신을 요구하고 있다. 특히 새로 개발된 무기의 성능 검증 시 사용되는 점검장비에 실시간으로 통신을 제공하기 위한 연구가 활달히 진행되고 있는 추세이다. 하지만 점검장비의 경우 실시간성을 제공하지 않는 범용운영체제인 윈도우즈 기반으로 구성되어 있기 때문에 실시간 통신을 제공하기 어려운 문제점이 존재한다. 이를 해결하기 위해 서드파티인 RTX 및 INtime을 사용하여 실시간성을 제공하지만 서드파티의 경우 고가의 구입비용 및 경상사용료로 인한 개발비용을 증가시키는 문제점이 있다. 따라서 기존에 개발된 RTiK을 이용하여 점검장비에서 사용하고 있는 통신 디바이스에 실시간성을 제공하기 위한 연구가 필요하다.Recently, as the technology for communication network in military equipment and aviation has developed remarkably, accuracy of data collection and real-time data communication are required. In particular, researches are being actively carried out to provide real-time communication to the inspection equipment used in the performance verification of newly developed weapons. However, there is a problem that it is difficult to provide real-time communication because the inspection equipment is configured based on Windows, which is a general-purpose operating system that does not provide real-time property. In order to solve this problem, RTX and INtime are used to provide real-time performance. However, in the case of a third party, there is a problem of increasing the development cost due to high purchase cost and current usage fee. Therefore, it is necessary to study to provide real - time property to the communication device used in the inspection equipment using the RTiK developed in the past.

본 발명에서는 점검장치의 통신에 실시간성을 제공하기 위해 RTiK을 이용한 주기적인 폴링 방식을 사용하여 점검장비의 통신에 실시간성을 제공할 수 있는 방법 및 더블 버퍼를 사용하여 고속의 데이터 통신 시 주기의 오차로 인한 데이터 손실을 방지하며, 실시간성을 제공 할 수 있는 방법을 설계 하였다. 이를 실험하기 위해 윈도우즈 기반의 점검장비에 신뢰성이 극도로 필요한 분야에서 많이 사용되고 있는 MIL-STD-1553B 통신 장비를 사용하였으며, 점검 장비 및 Target PC에 실시간성을 제공하여 주기적으로 데이터를 송신하고 폴링 방식으로 데이터 버퍼에서 데이터를 읽음으로써 실시간 통신을 할 수 있는 방법을 구현하였다. 또한 성능검증을 통해 RTiK을 이용한 폴링 방식과 더블 버퍼를 사용하여 점검장비의 통신에 실시간성을 제공할 수 있음을 검증하였다.In the present invention, in order to provide real-time communication in the communication of the inspection apparatus, a method of providing real-time communication to the inspection equipment using a periodic polling method using RTiK, and a method of providing a real- We have designed a method that can prevent data loss due to errors and provide real - time performance. To test this, we used MIL-STD-1553B communication equipment which is widely used in the field which requires extreme reliability in Windows-based inspection equipment. We provide real-time inspection equipment and target PC to transmit data periodically and polling method And real-time communication by reading data from the data buffer. In addition, we verified that RTiK - based polling method and double buffer can provide real - time performance for communication of inspection equipment through performance verification.

도 19는 본 발명의 실시예에 따른 점검장치의 실시간 통신 지원방법을 나타낸 흐름도이다. 도면을 참조하면, 점검장치(100)의 실시간 통신 지원방법은, 임베디드 시스템의 성능을 점검하는 점검장치의 실시간 통신 지원방법에 있어서, 외부의 기기와 데이터를 통신하는 단계(S110); 주기적인 타이머 인터럽트를 발생시키는 실시간 이식 커널을 이용하여 통신단계에 실시간성을 제공하는 단계(S120); 및 통신단계에 의한 데이터통신을 주기적으로 호출하는 단계(S130)를 포함한다.FIG. 19 is a flowchart illustrating a method for supporting real-time communication of a checking apparatus according to an embodiment of the present invention. Referring to the drawings, a method for supporting real-time communication of a checking apparatus 100 includes a step (S110) of communicating data with an external apparatus, in a real-time communication supporting method of a checking apparatus for checking the performance of an embedded system. (S120) of providing a real-time property to a communication step using a real-time porting kernel that generates a periodic timer interrupt; And a step (S 130) of periodically calling data communication by the communication step.

여기서, 실시간성 제공단계 및 호출단계는 RTiK(Real-Time implant Kernel) 동작방식으로 동작할 수 있다.Here, the real-time property providing step and the calling step may operate according to RTiK (Real-Time Implant Kernel) operation method.

실시간성 제공단계는 HAL(Hardware Abstraction Layer)을 통한 x86 기반의 하드웨어 플랫폼의 Local APIC의 제어를 통하여 실시간성을 제공할 수 있다.The real-time provisioning step can provide real-time performance by controlling the Local APIC of the x86-based hardware platform through the Hardware Abstraction Layer (HAL).

또한, 호출단계는 윈도우즈 사용자 레벨에서 동작하는 쓰레드(thread)들에 정의된 작업을 수행하여 주기적인 동작을 보장할 수 있다.In addition, the calling step can guarantee the periodic operation by performing the operation defined in the threads operating at the Windows user level.

또한, 통신단계는 폴링(Polling) 방식 및 더블 버퍼(Double Buffer) 중의 적어도 하나를 이용하여 실시간 통신을 수행할 수 있다.In addition, the communication step may perform real-time communication using at least one of a polling method and a double buffer.

이때, 통신단계는 MIL-STD-1553B 통신을 이용하여 통신을 수행하는 것이 바람직하다.At this time, it is preferable that the communication step performs communication using MIL-STD-1553B communication.

Claims (5)

임베디드 시스템의 성능을 점검하는 점검장치의 실시간 통신 지원방법에 있어서,
MIL-STD-1553B 통신을 이용하여 외부의 기기와 데이터를 통신하는 단계;
주기적인 타이머 인터럽트를 발생시키는 실시간 이식 커널을 이용하여 상기 통신단계에 실시간성을 제공하는 단계; 및
상기 통신단계에 의한 데이터통신을 주기적으로 호출하는 단계
를 포함하는 것을 특징으로 하는 점검장치의 실시간 통신 지원방법.
A method for supporting real-time communication of a checking apparatus for checking the performance of an embedded system,
Communicating data with an external device using MIL-STD-1553B communication;
Providing a real-time property to the communication step using a real-time porting kernel that generates a periodic timer interrupt; And
Periodically calling the data communication by the communication step
And a controller for controlling the real-time communication of the inspection device.
제 1항에 있어서,
상기 실시간성 제공단계 및 상기 호출단계는 RTiK(Real-Time implant Kernel) 동작방식으로 동작하는 것을 특징으로 하는 점검장치의 실시간 통신 지원방법.
The method of claim 1,
The real-time communication providing step and the calling step is a real-time communication support method of the inspection device, characterized in that operating in the RTiK (Real-Time implant Kernel) operating method.
제 2항에 있어서,
상기 실시간성 제공단계는 HAL(Hardware Abstraction Layer)을 통한 x86 기반의 하드웨어 플랫폼의 Local APIC의 제어를 통하여 실시간성을 제공하는 것을 특징으로 하는 점검장치의 실시간 통신 지원방법.
3. The method of claim 2,
Wherein the real-time property providing step provides real-time property through control of a local APIC of an x86-based hardware platform through a hardware abstraction layer (HAL).
제 2항에 있어서,
상기 호출단계는 윈도우즈 사용자 레벨에서 동작하는 쓰레드(thread)들에 정의된 작업을 수행하여 주기적인 동작을 보장하는 것을 특징으로 하는 점검장치의 실시간 통신 지원방법.
3. The method of claim 2,
Wherein the calling step ensures a periodic operation by performing a task defined in threads running at a Windows user level.
제 3항 또는 제 4항에 있어서,
상기 통신단계는 폴링(Polling) 방식 및 더블 버퍼(Double Buffer) 중의 적어도 하나를 이용하여 실시간 통신을 수행하는 것을 특징으로 하는 점검장치의 실시간 통신 지원방법.
The method according to claim 3 or 4,
Wherein the communication step performs real-time communication using at least one of a polling method and a double buffer.
KR1020120114587A 2012-10-16 2012-10-16 Method for Supporting Real Time Communication with Test Equipments KR101407726B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020120114587A KR101407726B1 (en) 2012-10-16 2012-10-16 Method for Supporting Real Time Communication with Test Equipments

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020120114587A KR101407726B1 (en) 2012-10-16 2012-10-16 Method for Supporting Real Time Communication with Test Equipments

Publications (2)

Publication Number Publication Date
KR20140048534A true KR20140048534A (en) 2014-04-24
KR101407726B1 KR101407726B1 (en) 2014-06-13

Family

ID=50654532

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020120114587A KR101407726B1 (en) 2012-10-16 2012-10-16 Method for Supporting Real Time Communication with Test Equipments

Country Status (1)

Country Link
KR (1) KR101407726B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107272663A (en) * 2017-07-28 2017-10-20 北京精密机电控制设备研究所 A kind of quick checking device of 1553B bus types servo-drive system test equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101407725B1 (en) * 2012-10-16 2014-06-13 충남대학교산학협력단 Test Equipments capable of Real Time Communication

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107272663A (en) * 2017-07-28 2017-10-20 北京精密机电控制设备研究所 A kind of quick checking device of 1553B bus types servo-drive system test equipment
CN107272663B (en) * 2017-07-28 2019-06-18 北京精密机电控制设备研究所 A kind of quick checking device of 1553B bus type servo-system test equipment

Also Published As

Publication number Publication date
KR101407726B1 (en) 2014-06-13

Similar Documents

Publication Publication Date Title
US8490113B2 (en) Messaging in a parallel computer using remote direct memory access (‘RDMA’)
CN108768730B (en) Method and device for operating intelligent network card
US20020056047A1 (en) System and method for communicating software debug, diagostic and maintenance information between devices
US20180285134A1 (en) Emulation of hardware components
US8448172B2 (en) Controlling parallel execution of plural simulation programs
CN108965052A (en) A kind of data reading system for the electronic control unit software debugging after entrucking
KR101407725B1 (en) Test Equipments capable of Real Time Communication
KR101666398B1 (en) Method and apparatus for monitoring in operating system based on arinc 653
CN114416578A (en) Test method and device
KR101407726B1 (en) Method for Supporting Real Time Communication with Test Equipments
JP7383053B2 (en) Bus monitoring methods, storage media and electronic devices
US7873498B2 (en) Remote hardware inspection system and method
Babu et al. Precise virtual time advancement for network emulation
Serror et al. Code-transparent discrete event simulation for time-accurate wireless prototyping
Shin et al. A software-based monitoring framework for time-space partitioned avionics systems
CN112328491A (en) Output method of trace message, electronic device and storage medium
EP2747347A1 (en) Radio frequency communication simulation
US20220374373A1 (en) Ic, monitoring system and monitoring method thereof
CN102455970B (en) Multi-peripheral-equipment boot implementation method, equipment and system with reliability detection function
Suvorova RISC V Based Reconfigurable Manager for Event Transmission in SpaceFibre Networks
CN116089956A (en) Virtual test system and method based on TEE
Miola Assessing the impact of Linux networking on CPU consumption
Gang et al. On-chip debug architecture for MCU-DSP Core based system-on-chip
Richárd Development of a Safe Architecture for Embedded Systems Using Linux and Zephyr RTOS
CN116306413A (en) FPGA simulation verification method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
A201 Request for examination
A302 Request for accelerated examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20190527

Year of fee payment: 6