KR101216959B1 - System for error detection of serial device - Google Patents
System for error detection of serial device Download PDFInfo
- Publication number
- KR101216959B1 KR101216959B1 KR1020110001309A KR20110001309A KR101216959B1 KR 101216959 B1 KR101216959 B1 KR 101216959B1 KR 1020110001309 A KR1020110001309 A KR 1020110001309A KR 20110001309 A KR20110001309 A KR 20110001309A KR 101216959 B1 KR101216959 B1 KR 101216959B1
- Authority
- KR
- South Korea
- Prior art keywords
- serial device
- error
- serial
- limit threshold
- message
- Prior art date
- Legal status (The legal status 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 status listed.)
- Expired - Fee Related
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/14—Handling requests for interconnection or transfer
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Information Transfer Systems (AREA)
Abstract
본 발명은 시리얼 디바이스의 에러 발생 여부를 판단하는 에러 검출 시스템에 관한 것으로, 더욱 상세하게는 시리얼 디바이스의 에러 발생 여부를 검출하고 복구하기 위한 방안을 제안한다.
이를 위해 본 발명의 시리얼 디바이스 오류 검출 시스템은 수신된 상태 확인 메시지에 대한 응답인 상태 확인 응답 메시지를 전송하는 시리얼 디바이스, 상한 임계치와 하한 임계치를 설정하며, 설정된 시간간격으로 전송한 상기 상태 확인 메시지를 전송한 전송 횟수를 저장하며, 상기 상태 확인 메시지의 전송 횟수가 상기 하한 임계치 도달하면 상기 시리얼 디바이스에는 소프트웨어 오류가 발생한 것으로 판단하며, 상기 상태 확인 메시지의 전송 횟수가 상기 상한 임계치에 도달하면 상기 시리얼 디바이스는 하드웨어 오류가 발생한 것으로 판단하는 계측기를 포함한다.The present invention relates to an error detection system for determining whether an error occurs in a serial device, and more particularly, proposes a method for detecting and recovering from an error in a serial device.
To this end, the serial device error detection system of the present invention sets a serial device for transmitting a status check response message, which is a response to the received status check message, an upper limit threshold and a lower limit threshold, and transmits the status confirmation message transmitted at a set time interval. When the number of transmissions of the status confirmation message reaches the lower limit threshold, it is determined that a software error has occurred in the serial device. When the number of transmissions of the status confirmation message reaches the upper limit threshold, the serial device is stored. Includes an instrument that determines that a hardware error has occurred.
Description
본 발명은 시리얼 디바이스의 에러 발생 여부를 판단하는 에러 검출 시스템에 관한 것으로, 더욱 상세하게는 시리얼 디바이스의 에러 발생 여부를 검출하고 복구하기 위한 방안을 제안한다.
The present invention relates to an error detection system for determining whether an error occurs in a serial device, and more particularly, proposes a method for detecting and recovering from an error in a serial device.
병렬 통신은 송신하고자 하는 비트에 대응되는 전송선이 각각 따로 있어서 비트 블록을 한 번에 전송한다. 병렬 통신은 단위 시간에 다량의 데이터를 빠른 속도로 전송할 수 있다는 장점이 있지만, 전송이 길어지면 에러 발생 가능성이 높다는 단점이 있다.Parallel communication transmits a block of bits at once because there are separate transmission lines corresponding to the bits to be transmitted. Parallel communication has the advantage of being able to transmit a large amount of data at a high speed in a unit time, but the disadvantage is that the longer the transmission, the higher the probability of error.
이에 비해 직렬 통신은 어떤 두 장치 사이의 데이터 통신을 직렬 방식으로 즉, 한 번에 한 비트씩 전송하는 방식으로 수행한다. 직렬 통신은 에러가 적고 원거리 전송에 적합하다는 장점이 있지만, 속도가 느리다는 단점이 있다.In contrast, serial communication performs data communication between two devices in a serial manner, that is, one bit at a time. Serial communication has the advantage of low error and suitable for long distance transmission, but has the disadvantage of slow speed.
직렬 통신은 동기 통신과 비동기 통신으로 구분된다. 동기 통신은 2개의 디바이스 사이에서 동기를 취하고 그 타이밍에 따라 데이터를 송수신한다. 데이터 교환이 없는 사이에도 제어용 신호가 흐르고 있으므로 상대방과의 동기를 유지하는 것이 가능하다. 또한 동기 통신은 데이터의 전송 속도가 빠르지만, 동기를 위한 클럭 신호선이 필요하다는 단점이 있다.Serial communication is divided into synchronous communication and asynchronous communication. Synchronous communication synchronizes between two devices and transmits and receives data in accordance with the timing. Since the control signal flows even without data exchange, it is possible to maintain synchronization with the other party. In addition, although synchronous communication has a high data transfer speed, there is a disadvantage that a clock signal line is required for synchronization.
이에 비해 비동기 통신은 한 문자 단위와 같이 매우 작은 비트 블록의 앞과 뒤에 각각 스타트(start) 정지(stop)트를 삽입하며, 키보드 하나를 누를 때마다 한 문자씩 전송된다. 전송효율이 매우 떨어지는 것으로 보통 두 비트의 추가로 인해 낮은 전송속도에서 이용된다.In contrast, asynchronous communication inserts a start stop before and after a very small block of bits, such as one character, and transmits one character each time a keyboard is pressed. The transmission efficiency is very low and is usually used at low rates due to the addition of two bits.
시리얼 디바이스는 직렬 통신으로 컴퓨터와 통신하는 장치를 지칭한다. 가장 대표적인 것으로 터미널과 모뎀이 있다. Serial device refers to an apparatus that communicates with a computer in serial communication. The most representative ones are terminals and modems.
직렬 통신의 표준 인터페이스 중의 하나가 바로 흔히 사용되는 RS-232C이다. 대부분의 컴퓨터에서 사용되면 이 인터페이스에 들어가는 신호는 그 명칭과 기능이 표준으로 정해져 있다. RS-232C는 EIA에서 지정한 것이고 이것 외에도 CCITT에서 만든 권고안 V.24와 V.28 있다. One standard interface for serial communication is RS-232C. When used in most computers, the signal entering this interface is standardized in name and function. RS-232C is specified by the EIA, in addition to Recommendations V.24 and V.28 made by CCITT.
시리얼 디바이스에서 에러가 발생하는 원인은 내적 원인과 외적 원인으로 구분할 수 있다.내적 원인은 안정된 프로그래밍 기법으로 해결할 수 있지만, 외적 원인은 대부분 주변 장치인 전원 공급기 또는 하드웨어 특성에 대한 문제가 일반적이며, 프로그래밍만으로 해결하기 힘들다.The causes of errors in a serial device can be divided into internal and external causes.Internal causes can be solved by a stable programming technique, but external causes are most commonly a problem with a power supply or hardware characteristic that is a peripheral device. It is difficult to solve only.
이와 같이 내부 원인 또는 외부 원인으로 인하여 시리얼 디바이스가 비정상적으로 동작하는 경우 계측기 시스템 본연의 기능에 심각한 영향을 줄 수가 있다.
As such, abnormal operation of the serial device due to internal or external causes can seriously affect the inherent functionality of the instrument system.
본 발명이 해결하려는 과제는 자동으로 에러를 복구하는 기능을 추가하여 계측기 시스템의 안정성 및 신뢰성을 높이는 방안을 제안함에 있다.The problem to be solved by the present invention is to propose a method to increase the stability and reliability of the instrument system by adding a function to automatically recover the error.
본 발명이 해결하려는 다른 과제는 시리얼 디바이스에서 발생된 에러가 소프트웨어 에러인지 하드웨어 에러인지 여부를 판별하는 방안을 제안함에 있다.Another object of the present invention is to propose a method for determining whether an error generated in a serial device is a software error or a hardware error.
본 발명이 해결하려는 또 다른 과제는 시리얼 디바이스에서 발생된 에러가 소프트웨어 에러인지 하드웨어 에러인지 여부를 판별하고, 설정된 방식으로 에러를 복구하는 방안을 제안함에 있다.
Another object of the present invention is to determine whether an error generated in a serial device is a software error or a hardware error, and propose a method of recovering the error in a set manner.
이를 위해 본 발명의 시리얼 디바이스 오류 검출 시스템은 수신된 상태 확인 메시지에 대한 응답인 상태 확인 응답 메시지를 전송하는 시리얼 디바이스, 상한 임계치와 하한 임계치를 설정하며, 설정된 시간간격으로 전송한 상기 상태 확인 메시지를 전송한 전송 횟수를 저장하며, 상기 상태 확인 메시지의 전송 횟수가 상기 하한 임계치 도달하면 상기 시리얼 디바이스에는 소프트웨어 오류가 발생한 것으로 판단하며, 상기 상태 확인 메시지의 전송 횟수가 상기 상한 임계치에 도달하면 상기 시리얼 디바이스는 하드웨어 오류가 발생한 것으로 판단하는 계측기를 포함한다.To this end, the serial device error detection system of the present invention sets a serial device for transmitting a status check response message, which is a response to the received status check message, an upper limit threshold and a lower limit threshold, and transmits the status confirmation message transmitted at a set time interval. When the number of transmissions of the status confirmation message reaches the lower limit threshold, it is determined that a software error has occurred in the serial device. When the number of transmissions of the status confirmation message reaches the upper limit threshold, the serial device is stored. Includes an instrument that determines that a hardware error has occurred.
전술한 구성에서 시리얼 디바이스 오류 검출 시스템은 상기 계측기와 상기 시리얼 디바이스를 연결하는 통신 케이블을 포함한다.In the above configuration, the serial device error detection system includes a communication cable connecting the instrument and the serial device.
전술한 구성에서 계측기는 상기 상태 확인 메시지에 대한 응답인 상태 확인 응답 메시지가 상기 시리얼 디바이스로부터 수신되면 상기 전송 횟수를 초기화한다.In the above configuration, the instrument initializes the number of transmissions when a status confirmation response message, which is a response to the status confirmation message, is received from the serial device.
전술한 구성에서 상기 계측기는 상기 시리얼 디바이스에서 소프트웨어 오류가 발생된 것으로 판단되면, 상기 시리얼 디바이스와의 통신 연결을 종료한 후 재연결함을 특징으로 한다.In the above configuration, if it is determined that a software error has occurred in the serial device, the measuring instrument may reconnect after terminating the communication connection with the serial device.
전술한 구성에서 상기 계측기는 상기 시리얼 디바이스에서 하드웨어 오류가 발생된 것으로 판단되면, 상기 시리얼 디바이스를 리셋하거나 재부팅함을 특징으로 한다.In the above-described configuration, when it is determined that a hardware error occurs in the serial device, the instrument resets or reboots the serial device.
전술한 구성에서 상기 계측기는 운영 시스템이 윈도우즈인 경우에는 설정 API를 통하여 장치 관리자에서 상기 시리얼 디바이스를 제거한 후 다시 등록하며, 운영 시스템이 리눅스인 경우에는 상기 시리얼 디바이스의 커널 모듈을 재부팅함을 특징으로 한다.
In the above configuration, when the operating system is Windows, the instrument removes and reregisters the serial device in the device manager through a setting API, and when the operating system is Linux, reboots the kernel module of the serial device. do.
본 발명에 따른 계측기 시스템은 시리얼 및 USB 디바이스의 동작 중에 장애가 발생하여도, 별도의 수동 복구 과정의 수행 없이 자동으로 복구 가능하며, 별도의 외부장치를 필요로 하지 않고 시리얼 디바이스의 오류 복구가 가능하다.The instrument system according to the present invention can automatically recover even if a failure occurs during the operation of the serial and USB devices, without performing a separate manual recovery process, and can recover the error of the serial device without requiring an external device. .
본 발명은 계측기 시스템뿐만 아니라 EMS 외부의 기기로부터 방사되어진 전자파(EMS 등)가 계측기에 영향을 미쳐도 정상적으로 동작할 수 있는지의 여부를 테스트하는 경우에도 적용이 가능하며, 일반적으로 통신 발생 시에도 계측기의 자동 복구가 가능하다. 부가하여 본 발명의 계측기 시스템은 윈도우, Linux 등 다양한 OS에서 적용 가능하다는 장점이 있다.
The present invention can be applied to test whether not only the measurement system but also whether the electromagnetic wave radiated from the device outside the EMS (EMS, etc.) can operate normally even if it affects the measuring device. Automatic recovery is possible. In addition, the measuring system of the present invention has the advantage that it can be applied to various OS, such as Windows, Linux.
도 1은 본 발명의 일실시 예에 따른 계측기 시스템을 도시하고 있으며,
도 2는 본 발명의 일실시 에에 따른 계측기 시스템에서 수행되는 동작을 도시하고 있다.1 shows a measuring system according to an embodiment of the present invention,
2 illustrates an operation performed in a meter system according to an embodiment of the present invention.
전술한, 그리고 추가적인 본 발명의 양상들은 첨부된 도면을 참조하여 설명되는 바람직한 실시 예들을 통하여 더욱 명백해질 것이다. 이하에서는 본 발명의 이러한 실시 예를 통해 당업자가 용이하게 이해하고 재현할 수 있도록 상세히 설명하기로 한다.The foregoing and further aspects of the present invention will become more apparent through the preferred embodiments described with reference to the accompanying drawings. Hereinafter will be described in detail to enable those skilled in the art to easily understand and reproduce through this embodiment of the present invention.
이하 직렬 통신의 일예인 RS-232C 표준에 대해 간략히 알아보기로 한다.Hereinafter, the RS-232C standard, an example of serial communication, will be briefly described.
RS-232 표준은 컴퓨터와 주변 장치 또는 데이터 단말 장치(DTE)와 데이터 회선 종단 장치(DCE)를 상호 접속하기 위한 인터페이스 표준이다. 미국전자공업협회(EIA) 권고 표준의 하나이다. 많은 개인용 컴퓨터(PC)가 입출력 직렬 인터페이스로 RS-232를 채용하고 있다. RS-232C는 DTE와 DCE를 상호 접속하는 물리적 인터페이스이다. PC와 모뎀을 접속하는 경우에 PC가 DTE이고 모뎀이 DCE이다. 통신 속도는 최고 20kbps, 양방향/반양방향, 동기/비동기 모두에 대응한다. RS-232C의 상호 접속 회로, 전기적 특성, 기계적 특성은 각각 ITU-T 권고 V.24(상호 접속 회로), V.28(전기적 특성), ISO 2110 (DB-25 접속기)과 호환성이 있다. RS-232C 케이블 접속기로는 전통적인 25핀 형의 DB 접속기를 사용한다. 케이블의 최대 길이는 12.25m이지만 신호의 전압을 상승시키는 방법 등으로 확장할 수 있다.The RS-232 standard is an interface standard for interconnecting computers and peripherals or data terminal equipment (DTE) and data line termination (DCE). It is one of the recommended standards of the EIA. Many personal computers (PCs) employ RS-232 as their input / output serial interface. RS-232C is the physical interface that interconnects the DTE and DCE. In case of connecting modem with PC, PC is DTE and modem is DCE. Communication speeds are up to 20kbps, bidirectional / half duplex, synchronous / asynchronous. The interconnection circuit, electrical and mechanical properties of the RS-232C are compatible with ITU-T Recommendations V.24 (interconnect circuit), V.28 (electrical characteristic) and ISO 2110 (DB-25 connector), respectively. The RS-232C cable connector uses a traditional 25-pin DB connector. The maximum cable length is 12.25m, but it can be extended by increasing the signal's voltage.
도 1은 본 발명의 일실시 예에 따른 계측기 시스템을 도시하고 있다. 이하 도 1을 이용하여 본 발명의 일실시 예에 따른 계측기 시스템에 대해 알아보기로 한다. 1 illustrates a meter system according to an embodiment of the present invention. Hereinafter, a measurement system according to an embodiment of the present invention will be described with reference to FIG. 1.
도 1에 의하면, 계측기 시스템은 계측기, 시리얼 디바이스, 계측기와 시리얼 디바이스는 연결하는 통신 케이블을 포함한다. 물론 상술한 구성 이외에 다른 구성이 계측기 시스템에 포함될 수 있음은 자명하다.According to FIG. 1, the meter system includes a meter, a serial device, and a communication cable connecting the meter and the serial device. Obviously, other configurations may be included in the meter system in addition to the above-described configuration.
계측기(100)는 시리얼 디바이스(104)로부터 시스템 동작에 관련된 정보를 주고받는다. 계측기(100)는 시리얼 디바이스(104)로 설정된 주기 간격으로 상태 확인 메시지를 전송하며, 동시에 상태 확인 메시지를 전송한 전송 횟수를 저장한다. 계측기(100)는 상태 확인 메시지를 전송한 시리얼 디바이스(104)로부터 상태 확인 응답 메시지를 수신한다. The
계측기(100)는 설정된 하한 임계치 이상으로 상태 확인 메시지를 전송하고, 이에 대한 응답인 상태 확인 응답 메시지가 수신되지 않으면 통신 케이블(102)로 연결된 시리얼 디바이스(104)는 소프트웨어 오류가 발생한 것으로 판단한다. The
계측기(100)는 설정된 상한 임계치 이상으로 상태 확인 메시지를 전송하고, 이에 대한 응답이 상태 확인 응답 메시지가 수신되지 않으면 통신 케이블(102)로 연결된 시리얼 디바이스(104)는 하드웨어 오류가 발생한 것으로 판단한다.The
시리얼 디바이스(104)는 계측기(100)와 통신을 하기 위하여 시리얼 통신을 수행하는 임베디드 디바이스(Embedded device)이다. 시리얼 디바이스(102)는 계측기(100)로부터 상태 확인 메시지가 수신되면 이에 대한 응답이 상태 확인 응답 메시지를 전송한다. 통신 케이블(102)은 계측기(100)와 시리얼 디바이스(104)간의 통신을 위한 케이블이다. The
도 2는 본 발명의 일실시 예에 따른 계측기 시스템에서 수행되는 동작을 도시한 흐름도이다. 이하 도 2를 이용하여 본 발명의 일실시 예에 따른 계측기 시스템에서 수행되는 동작에 대해 상세하게 알아보기로 한다.2 is a flowchart illustrating an operation performed in the meter system according to an embodiment of the present invention. Hereinafter, an operation performed in the measuring system according to an embodiment of the present invention will be described in detail with reference to FIG. 2.
상술한 바와 같이 계측기 시스템은 계측기와 시리얼 디바이스를 포함한다.As described above, the meter system includes a meter and a serial device.
S200단계에서 계측기는 시리얼 디바이스별로 오류 여부를 판단하는 하한 임계값과 상한 임계값을 설정한다. 즉, 계측기는 케이블로 연결 가능한 시리얼 디바이스별로 오류 여부를 판단하는 하한 임계값과 상한 임계값을 설정한다. 하한 임계값은 시리얼 디바이스의 소프트웨어 오류를 판단하는 값이며, 상한 임계값은 시리얼 디바이스의 하드웨어 오류를 판단하는 값이다. 동시에 계측기는 케이블로 연결되어 있는 시리얼 디바이스로 전송하는 상태 확인 메시지(Keep Alive Message)의 전송 주기를 설정한다. 물론 계측기는 상술한 값 이외에 필요한 다른 값들을 설정할 수 있음은 자명하다.In step S200, the measuring instrument sets a lower limit threshold and an upper limit threshold for determining an error for each serial device. That is, the instrument sets a lower limit threshold and an upper limit threshold for determining whether an error exists for each serial device that can be connected with a cable. The lower limit threshold is a value for determining a software error of a serial device, and the upper limit threshold is a value for determining a hardware error of a serial device. At the same time, the instrument sets the interval for sending Keep Alive Messages to the serial devices connected by the cable. Obviously, the instrument can set other necessary values in addition to the above-described values.
S202단계에서 계측기는 상태 확인 메시지의 전송 주기가 되면 상태 확인 메시지를 전송한다. 물론 계측기는 첫 번째 상태 확인 메시지를 전송하면, 전송 횟수를 1로 저장하며, 두 번째 상태 확인 메시지를 전송하면 전송 횟수를 2로 저장한다. 계측기는 상태 확인 메시지를 전송할 때마다 별도의 메모리에 전송 횟수를 저장한다. In step S202, the measuring instrument transmits a status check message when the status check message is transmitted. Of course, the instrument stores the number of transmissions as 1 when the first status message is transmitted, and stores the number of transmissions as 2 when the second status message is transmitted. The instrument stores the number of transfers in a separate memory each time it sends a status confirmation message.
S204단계에서 상태 확인 메시지를 전송한 계측기는 시리얼 디바이스로부터 상태 확인 응답 메시지가 수신되는 지 여부를 확인한다. 상태 확인 메시지에 대한 상태 확인 응답 메시지가 수신되면 S208단계로 이동하고, 상태 확인 응답 메시지가 수신되지 않으면 S206단계로 이동한다.The measuring instrument which transmits the status check message in step S204 checks whether a status check response message is received from the serial device. If a status check response message for the status check message is received, go to step S208, and if a status check response message is not received, go to step S206.
S208단계에서 계측기는 상태 확인 메시지를 전송한 전송 횟수를 초기화한다.In step S208, the instrument initializes the number of transmissions of the status check message.
S206단계에서 계측기는 상태 확인 메시지를 전송한 전송 주기가 설정한 하한 임계값인지 여부를 판단한다. 계측기는 상태 확인 메시지를 전송한 전송 주기가 설정한 하한 임계값이면 소프트웨어 에러가 발생한 것으로 판단한다.In step S206, the measuring instrument determines whether the transmission period for transmitting the status check message is a lower limit threshold. The measuring instrument determines that a software error has occurred if the transmission period for transmitting the status confirmation message is a lower limit threshold set.
S210단계에서 계측기는 소프트웨어 에러가 발생한 것으로 판단된 시리얼 디바이스와 통신 포트(통신 연결)를 종료한 후 재 연결한다. 상술한 과정을 수행함으로써 계측기는 시리얼 디바이스에서 발생한 오류를 복구한다.In step S210, the instrument terminates the serial device and the communication port (communication connection) determined that a software error has occurred and reconnects. By performing the above process, the instrument recovers from the error that occurred in the serial device.
S212단계에서 계측기는 시리얼 디바이스와 통신 포트를 재 연결한 후 상태 확인 메시지를 시리얼 디바이스로 설정된 전송 주기 간격으로 전송한다.In step S212, the instrument reconnects the serial device and the communication port, and transmits a status check message at a transmission cycle interval set to the serial device.
S214단계에서 상태 확인 메시지를 전송한 계측기는 시리얼 디바이스로부터 상태 확인 응답 메시지가 수신되는 지 여부를 확인한다. 상태 확인 메시지에 대한 상태 확인 응답 메시지가 수신되면 S208단계로 이동하고, 상태 확인 응답 메시지가 수신되지 않으면 S216단계로 이동한다.The measuring instrument which transmits the status check message in step S214 checks whether a status check response message is received from the serial device. If a status check response message for the status check message is received, go to step S208, and if a status check response message is not received, go to step S216.
S216단계에서 계측기는 상태 확인 메시지를 전송한 전송 주기가 설정한 상한 임계값인지 여부를 판단한다. 계측기는 상태 확인 메시지를 전송한 전송 주기가 설정한 상한 임계값이면 하드웨어 에러가 발생한 것으로 판단한다.In step S216, the measuring instrument determines whether the transmission period for transmitting the status check message is the set upper limit threshold. The instrument determines that a hardware error has occurred if the transmission period for transmitting the status confirmation message is set to an upper limit threshold.
S218단계에서 계측기는 하드웨어 에러가 발생한 것으로 판단된 시리얼 디바이스를 리셋(reset)하거나 리로드(reload, 재부팅)하여 초기화한다. 상술한 과정을 수행함으로써 계측기는 시리얼 디바이스에서 발생한 하드웨어 오류를 복구한다. 상술한 시리얼 디바이스의 리셋 또는 리로드는 OS(Operation System)에서 수행한다. OS는 컴퓨터의 하드웨어나 사용자 사이에서 사용자가 작성한 프로그램을 번역하고 파일을 편성하며 컴퓨터 전체를 감시함으로써 효율성을 최대로 높여 주는 프로그램 집단을 의미한다.In step S218, the instrument initializes by resetting or reloading the serial device determined to have a hardware error. By performing the above process, the instrument recovers from hardware errors that occurred in the serial device. The above-mentioned reset or reload of the serial device is performed by an operating system (OS). An OS is a group of programs that maximizes efficiency by translating user-written programs, organizing files, and monitoring the entire computer among the computer's hardware or users.
부가하여 설명하면, 시리얼 디바이스의 에러를 검출하고 복구하기 위해 다음과 같은 구현 방식을 사용한다.In addition, the following implementation method is used to detect and recover from errors in the serial device.
1) 시리얼 디바이스의 문제를 검출하기 위해 계측기는 주기적으로 상태 확인 메시지를 전송하고, 전송한 메시지의 개수를 에러 카운터로 카운팅한다. 시리얼 디바이스의 오류가 하드웨어 오류인지 소프트웨어 오류인지 판단하기 위해 하한 임계값과 상한 임계값을 미리 설정하여 에러 카운터가 하한 임계값을 초과한 경우에는 단순한 소프트웨어 오류라고 판단하고, 에러 카운터가 상한 임계값을 초과한 경우에는 하드웨어 오류라고 판단한다.1) To detect the problem of the serial device, the instrument periodically sends a status check message and counts the number of messages sent to the error counter. In order to determine whether the error of the serial device is a hardware error or a software error, the lower and upper threshold values are set in advance, and when the error counter exceeds the lower threshold, it is considered as a simple software error and the error counter sets the upper threshold. If it exceeds, it is determined as a hardware error.
2) 시리얼 디바이스의 오류가 소프트웨어 오류라고 판단된 경우에는 해당 시리얼 디바이스와의 통신 포트를 종료 후 재연결하여 오류를 해결한다.2) If it is determined that the serial device error is a software error, terminate the communication port with the serial device and reconnect to resolve the error.
3) 시리얼 디바이스의 오류가 하드웨어 오류라고 판단된 경우에는 하드웨어나 OS로 인한 문제로 판단하여 OS에서 해당 시리얼 디바이스를 리셋하거나 리로드하여 하드웨어 오류를 해결한다.3) If the error of the serial device is determined to be a hardware error, it is determined to be a hardware or OS problem, and the OS resolves the hardware error by resetting or reloading the serial device.
라) 하드웨어 또는 OS 문제인 경우 윈도우(Windows)에서는 해당 장비를 설정 API(Setup API)를 통하여 장치 관리자에서 제거 후 다시 등록함으로써 장비를 초기화시킨다. Linux의 경우 해당 Device의 Kernel Module(커널 모듈)을 Reload 함으로써 Device의 초기화를 수행한다. Linux는 Kernel 2.4 이상에서 Kernel Source의 Module 기능을 활성화하여야 본 기능을 활용할 수 있다. 커널 모듈이란 필요에 따라 커널에 로드하거나 언로드 할 수 있는 특정한 기능을 수행하는 코드(프로그램)이다. D) In case of hardware or OS problem, Windows initializes the device by removing and re-registering the device in Device Manager through the Setup API. In Linux, initialize the device by reloading the Kernel Module of the device. Linux must use Kernel Source Module function in Kernel 2.4 or later to use this function. Kernel modules are code (programs) that perform specific functions that can be loaded or unloaded into the kernel as needed.
본 발명의 다음과 같은 상황이 발생 하였을 때 활용이 가능하다.It can be utilized when the following situation of the present invention occurs.
가) 시리얼 디바이스 통신 연결 문제로 특정 모듈과 통신하지 못하여 기본 기능을 수행 할 수 없는 상태의 계측기.A) Instrument that cannot perform basic functions because it cannot communicate with a specific module due to serial device communication connection problem.
- 단순 통신 연결이 문제가 되는 경우로 계측기 시스템 또는 모듈에서의 일시적인 오류로 연결의 장애가 발생한 경우가 대부분이며, 대다수의 경우 연결을 재설정 해 주면 문제가 해결된다.-Simple communication connection is a problem. In most cases, a temporary failure in the instrument system or module causes a connection failure. In many cases, resetting the connection solves the problem.
나) 시리얼 디바이스 내의 모듈에서 알 수 없는 오류로 통신이 불가능하여 기본 기능을 수행할 수 없는 상태의 계측기.B) Instrument that is unable to perform basic functions due to unknown error in module in serial device.
- 계측기에서 단순히 통신상의 장애가 아닌 시리얼 디바이스 자체의 문제 또는 시리얼 디바이스의 통신 모듈이 하드웨어적인 충격에 의해 일시적인 기능 정지가 있을 수 있다. 상술한 문제가 발생한 경우 계측기를 재시작 하면 문제가 해결 되지만, 신뢰성을 보장해 주어야 하는 계측기가 일시적인 하드웨어 오류로 서비스를 제공하지 못하면 계측기 자체의 신뢰성에 문제가 발생할 수 있다.-There may be a temporary malfunction due to a problem in the serial device itself or a hardware shock in the serial device, not just a communication failure in the instrument. If the above-mentioned problem occurs, restarting the instrument solves the problem. However, if the instrument, which must guarantee reliability, fails to provide service due to a temporary hardware error, it may cause a problem in the reliability of the instrument itself.
- 시리얼 디바이스 모듈의 오류 시 계측기 자체에서 에러를 검출하여, 해당 모듈을 리셋/리로드하는 초기화 과정을 거친 후 계측기가 정상 동작함을 확인할 수 있다.-In case of error of the serial device module, the instrument itself detects an error, and after the initialization process to reset / reload the module, it can be confirmed that the instrument operates normally.
해당 문제가 발생하는 장비들을 여러 번 반복적으로 테스트를 수행하여, 문제 발생 한 장비를 자동 복구한 이후에 계측기 시스템이 아무런 문제없이 작동되는 것을 확인한다.Test the equipment in question repeatedly several times to verify that the instrument system is working without problems after the automatic repair of the equipment in question.
본 발명은 도면에 도시된 일실시 예를 참고로 설명되었으나, 이는 예시적인 것에 불과하며, 본 기술 분야의 통상의 지식을 가진 자라면 이로부터 다양한 변형 및 균등한 타 실시예가 가능하다는 점을 이해할 것이다.
While the present invention has been particularly shown and described with reference to exemplary embodiments thereof, it will be understood by those of ordinary skill in the art that various changes in form and details may be made therein without departing from the scope of the present invention .
100: 계측기 102: 시리얼 디바이스
104: 통신 케이블100: instrument 102: serial device
104: communication cable
Claims (6)
상기 시리얼 디바이스의 오류 여부를 판단하기 위한 상기 상태 확인 메시지를 전송한 횟수인 하한 임계치와 상한 임계치를 설정하며, 설정된 시간간격으로 전송한 상기 상태 확인 메시지의 전송 횟수를 카운팅하며, 상기 상태 확인 메시지의 전송 횟수가 상기 하한 임계치 이상이면 상기 시리얼 디바이스는 소프트웨어 오류가 발생한 것으로 판단하며, 상기 상태 확인 메시지의 전송 횟수가 상기 상한 임계치 이상이면 상기 시리얼 디바이스는 하드웨어 오류가 발생한 것으로 판단하는 계측기를 포함하며,
상기 계측기는 상기 상태 확인 메시지에 대한 응답인 상태 확인 응답 메시지를 상기 시리얼 디바이스로부터 수신되면 카운팅한 상기 전송 횟수를 초기화함을 특징으로 하는 시리얼 디바이스의 오류 검출 시스템.
A serial device for transmitting a status confirmation response message in response to the received status confirmation message;
Set a lower limit threshold and an upper limit threshold, the number of times the status check message is transmitted to determine whether the serial device has an error, and count the number of transmissions of the status check message transmitted at a set time interval, The serial device determines that a software error has occurred if the number of transmissions is greater than or equal to the lower limit threshold, and if the number of transmissions of the status confirmation message is greater than or equal to the upper limit threshold, the serial device includes a measuring instrument that determines that a hardware error has occurred.
And the instrument initializes the number of times of counting when a status acknowledgment message, which is a response to the status acknowledgment message, is received from the serial device.
2. The serial device error detection system of claim 1, comprising a communication cable connecting the meter and the serial device.
상기 시리얼 디바이스에서 소프트웨어 오류가 발생된 것으로 판단되면, 상기 시리얼 디바이스와의 통신 연결을 종료한 후 재연결함을 특징으로 하는 시리얼 디바이스 오류 검출 시스템.
The method of claim 3, wherein the measuring instrument,
If it is determined that a software error has occurred in the serial device, the serial device error detection system, characterized in that after the communication connection with the serial device is terminated.
상기 시리얼 디바이스에서 하드웨어 오류가 발생된 것으로 판단되면, 상기 시리얼 디바이스를 리셋하거나 재부팅함을 특징으로 하는 시리얼 디바이스 오류 검출 시스템.
The method of claim 3, wherein the measuring instrument,
And determining that a hardware error has occurred in the serial device, resetting or rebooting the serial device.
운영 시스템이 윈도우즈인 경우에는 설정 API를 통하여 장치 관리자에서 상기 시리얼 디바이스를 제거한 후 다시 등록하며,
운영 시스템이 리눅스인 경우에는 상기 시리얼 디바이스의 커널 모듈을 재부팅함을 특징으로 하는 시리얼 디바이스 오류 검출 시스템.The method of claim 5, wherein the measuring device,
If the operating system is Windows, remove the serial device from the device manager through the setting API and register again.
If the operating system is Linux, serial device error detection system, characterized in that for rebooting the kernel module of the serial device.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| KR1020110001309A KR101216959B1 (en) | 2011-01-06 | 2011-01-06 | System for error detection of serial device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| KR1020110001309A KR101216959B1 (en) | 2011-01-06 | 2011-01-06 | System for error detection of serial device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| KR20120079946A KR20120079946A (en) | 2012-07-16 |
| KR101216959B1 true KR101216959B1 (en) | 2012-12-31 |
Family
ID=46712730
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| KR1020110001309A Expired - Fee Related KR101216959B1 (en) | 2011-01-06 | 2011-01-06 | System for error detection of serial device |
Country Status (1)
| Country | Link |
|---|---|
| KR (1) | KR101216959B1 (en) |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20060123181A1 (en) | 2004-12-03 | 2006-06-08 | Microsoft Corporation | Wireless USB hardware scheduling |
-
2011
- 2011-01-06 KR KR1020110001309A patent/KR101216959B1/en not_active Expired - Fee Related
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20060123181A1 (en) | 2004-12-03 | 2006-06-08 | Microsoft Corporation | Wireless USB hardware scheduling |
Also Published As
| Publication number | Publication date |
|---|---|
| KR20120079946A (en) | 2012-07-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109558371B (en) | Method for communicating with a microcontroller, and computing system | |
| CN104750588B (en) | A kind of method for testing pressure based on serial communication | |
| US6332202B1 (en) | Method of remote access and control of environmental conditions | |
| US9141496B2 (en) | Methods and systems for testing electrical behavior of an interconnect having asymmetrical link | |
| CN101867417B (en) | Unidirectional transmission method based on optical fiber multi-way coupling | |
| EP2854369A1 (en) | Method and apparatus for detecting interface connection between devices | |
| JP2011248814A (en) | Device having pci express link error detection and automatic restoration function | |
| CN106649165A (en) | Method for establishingcommunication connection of embedded system and PC host | |
| CN107066418A (en) | A kind of SATA protocol power-up initializing control method and controller based on FPGA | |
| CN116340073B (en) | Test method, device and system | |
| CN104699192A (en) | Computer | |
| CN212112457U (en) | a bus controller | |
| US10649947B2 (en) | Stack timing adjustment for serial communications | |
| KR101216959B1 (en) | System for error detection of serial device | |
| CN120045483A (en) | Data receiving method and device, storage medium and electronic equipment | |
| CN117200923A (en) | Asynchronous communication method and device | |
| CN117493248B (en) | USB data transmission method, device, system, electronic equipment and storage medium | |
| CN111930582B (en) | System management bus detection platform, processor and system management bus detection method | |
| CN100356359C (en) | Connector between processor and user recognition card | |
| CN101997815A (en) | Exception recovery device and method of serial and parallel conversion interface | |
| CN113806273B (en) | Fast peripheral component interconnect data transfer control system | |
| US9811496B2 (en) | Method and apparatus for detecting interface connection between devices | |
| CN109144916A (en) | It is a kind of to handle the method and device of data packet, chip | |
| CN103793345B (en) | data terminal equipment and interface clock control method | |
| CN112749115A (en) | UART adaptive debugging device and method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A201 | Request for examination | ||
| PA0109 | Patent application |
St.27 status event code: A-0-1-A10-A12-nap-PA0109 |
|
| PA0201 | Request for examination |
St.27 status event code: A-1-2-D10-D11-exm-PA0201 |
|
| D13-X000 | Search requested |
St.27 status event code: A-1-2-D10-D13-srh-X000 |
|
| D14-X000 | Search report completed |
St.27 status event code: A-1-2-D10-D14-srh-X000 |
|
| E902 | Notification of reason for refusal | ||
| PE0902 | Notice of grounds for rejection |
St.27 status event code: A-1-2-D10-D21-exm-PE0902 |
|
| E13-X000 | Pre-grant limitation requested |
St.27 status event code: A-2-3-E10-E13-lim-X000 |
|
| P11-X000 | Amendment of application requested |
St.27 status event code: A-2-2-P10-P11-nap-X000 |
|
| P13-X000 | Application amended |
St.27 status event code: A-2-2-P10-P13-nap-X000 |
|
| PG1501 | Laying open of application |
St.27 status event code: A-1-1-Q10-Q12-nap-PG1501 |
|
| E701 | Decision to grant or registration of patent right | ||
| PE0701 | Decision of registration |
St.27 status event code: A-1-2-D10-D22-exm-PE0701 |
|
| GRNT | Written decision to grant | ||
| PR0701 | Registration of establishment |
St.27 status event code: A-2-4-F10-F11-exm-PR0701 |
|
| PR1002 | Payment of registration fee |
St.27 status event code: A-2-2-U10-U11-oth-PR1002 Fee payment year number: 1 |
|
| PG1601 | Publication of registration |
St.27 status event code: A-4-4-Q10-Q13-nap-PG1601 |
|
| P14-X000 | Amendment of ip right document requested |
St.27 status event code: A-5-5-P10-P14-nap-X000 |
|
| P16-X000 | Ip right document amended |
St.27 status event code: A-5-5-P10-P16-nap-X000 |
|
| Q16-X000 | A copy of ip right certificate issued |
St.27 status event code: A-4-4-Q10-Q16-nap-X000 |
|
| R18-X000 | Changes to party contact information recorded |
St.27 status event code: A-5-5-R10-R18-oth-X000 |
|
| PN2301 | Change of applicant |
St.27 status event code: A-5-5-R10-R13-asn-PN2301 St.27 status event code: A-5-5-R10-R11-asn-PN2301 |
|
| R18-X000 | Changes to party contact information recorded |
St.27 status event code: A-5-5-R10-R18-oth-X000 |
|
| R18-X000 | Changes to party contact information recorded |
St.27 status event code: A-5-5-R10-R18-oth-X000 |
|
| FPAY | Annual fee payment |
Payment date: 20151006 Year of fee payment: 4 |
|
| PR1001 | Payment of annual fee |
St.27 status event code: A-4-4-U10-U11-oth-PR1001 Fee payment year number: 4 |
|
| FPAY | Annual fee payment |
Payment date: 20161124 Year of fee payment: 5 |
|
| PR1001 | Payment of annual fee |
St.27 status event code: A-4-4-U10-U11-oth-PR1001 Fee payment year number: 5 |
|
| L13-X000 | Limitation or reissue of ip right requested |
St.27 status event code: A-2-3-L10-L13-lim-X000 |
|
| U15-X000 | Partial renewal or maintenance fee paid modifying the ip right scope |
St.27 status event code: A-4-4-U10-U15-oth-X000 |
|
| PR1001 | Payment of annual fee |
St.27 status event code: A-4-4-U10-U11-oth-PR1001 Fee payment year number: 6 |
|
| P22-X000 | Classification modified |
St.27 status event code: A-4-4-P10-P22-nap-X000 |
|
| LAPS | Lapse due to unpaid annual fee | ||
| PC1903 | Unpaid annual fee |
St.27 status event code: A-4-4-U10-U13-oth-PC1903 Not in force date: 20181225 Payment event data comment text: Termination Category : DEFAULT_OF_REGISTRATION_FEE |
|
| PC1903 | Unpaid annual fee |
St.27 status event code: N-4-6-H10-H13-oth-PC1903 Ip right cessation event data comment text: Termination Category : DEFAULT_OF_REGISTRATION_FEE Not in force date: 20181225 |