KR20230000256A - Asynchronous serial communication device with self-diagnostic function - Google Patents

Asynchronous serial communication device with self-diagnostic function Download PDF

Info

Publication number
KR20230000256A
KR20230000256A KR1020210082456A KR20210082456A KR20230000256A KR 20230000256 A KR20230000256 A KR 20230000256A KR 1020210082456 A KR1020210082456 A KR 1020210082456A KR 20210082456 A KR20210082456 A KR 20210082456A KR 20230000256 A KR20230000256 A KR 20230000256A
Authority
KR
South Korea
Prior art keywords
data
diagnostic
diagnosis
uart
unit
Prior art date
Application number
KR1020210082456A
Other languages
Korean (ko)
Other versions
KR102663807B1 (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 KR1020210082456A priority Critical patent/KR102663807B1/en
Priority claimed from KR1020210082456A external-priority patent/KR102663807B1/en
Publication of KR20230000256A publication Critical patent/KR20230000256A/en
Application granted granted Critical
Publication of KR102663807B1 publication Critical patent/KR102663807B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/27Built-in tests
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test buses, lines or interfaces, e.g. stuck-at or open line faults
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2268Logging of test results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/263Generation of test inputs, e.g. test vectors, patterns or sequences ; with adaptation of the tested hardware for testability with external testers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4204Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus
    • G06F13/4208Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus being a system bus, e.g. VME bus, Futurebus, Multibus
    • G06F13/4213Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus being a system bus, e.g. VME bus, Futurebus, Multibus with asynchronous protocol

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

The present invention relates to an asynchronous serial communication device with a self-diagnostic function. The present invention may comprise: a data processing unit which selectively transmits transmission data or diagnostic data and performs a diagnostic mode; a UART which converts the transmission data of the data processing unit into serial data and converts reception data into parallel data; a first switching unit which selectively returns the diagnostic data converted by the UART to a reception end of the UART; a storage unit which stores diagnostic software and the diagnostic data for performing the diagnostic mode of the data processing unit; and a diagnostic control unit which controls a switching state of the first switching unit according to execution of the diagnostic software.

Description

자체 진단 기능을 가지는 비동기식 직렬 통신장치{Asynchronous serial communication device with self-diagnostic function}Asynchronous serial communication device with self-diagnostic function}

본 발명은 자체 진단 기능을 가지는 비동기식 직렬 통신장치에 관한 것으로, 더 상세하게는 외부의 진단 장치를 사용하지 않고도 기능과 성능을 검증할 수 있는 비동기식 직렬 통신장치에 관한 것이다.The present invention relates to an asynchronous serial communication device having a self-diagnosis function, and more particularly, to an asynchronous serial communication device capable of verifying functions and performance without using an external diagnostic device.

일반적으로, 비동기식 직렬 통신장치는 데이터 처리를 위한 프로세서와, 범용 비동기화 송수신기(Universal Asynchronous Receiver Transmitter, UART)와, 송수신부(Transceiver)를 포함한다.In general, an asynchronous serial communication device includes a processor for data processing, a Universal Asynchronous Receiver Transmitter (UART), and a transceiver.

프로세서는 일반적으로 CPU일 수 있으며, UART 제어기는 병렬데이터를 직렬데이터화하여 송신하거나, 수신된 직렬 데이터를 병렬화하여 프로세서에 제공하는 역할을 한다.The processor may generally be a CPU, and the UART controller performs a role of serializing parallel data to be transmitted, or parallelizing received serial data to be provided to the processor.

송수신부는 RS-232, RS-422, RS-485 등 다양한 직렬 통신방식을 지원한다.The transceiver supports various serial communication methods such as RS-232, RS-422, and RS-485.

이와 같은 구성의 직렬 통신장치의 기능과 성능을 점검하기 위해서는 노트북 등의 외부 기기와 진단 프로그램을 이용하여 장치의 상태를 진단한다. 그러나 외부 장치 및 진단 프로그램의 사용을 위해서는 일정 수준 이상의 전문성이 필요하다. In order to check the function and performance of the serial communication device having such a configuration, the state of the device is diagnosed using an external device such as a laptop computer and a diagnostic program. However, a certain level of expertise is required to use external devices and diagnostic programs.

또한, 점검 대상인 직렬 통신장치의 제조사마다 다른 결선 방식과 설정법을 사용하기 때문에, 반드시 수동 조작(수동 설정)이 필요하며, 이러한 과정에서 오류가 발생할 수 있어, 검증과 점검에 많은 물적, 인적, 시간적 낭비가 발생하게 된다.In addition, since each manufacturer of the serial communication device to be inspected uses a different wiring method and setting method, manual operation (manual setting) is necessarily required, and errors may occur during this process, requiring a lot of material, human, and time for verification and inspection. waste occurs.

이러한 문제점을 고려한 종래 직렬 통신장치를 점검하기 위한 기술로 등록특허 10-1171884호(직렬 통신 인터페이스 모니터링 장치, 2012년 8월 1일 등록)에는 직렬 통신의 마스터 통신 포트와 슬레이브 통신 포트 사이에 장착되어 송수신 직렬 데이터 패킷을 확인하여 모니터링하는 기술이 기재되어 있다.Registered Patent No. 10-1171884 (serial communication interface monitoring device, registered on August 1, 2012) is a technique for checking conventional serial communication devices in consideration of these problems. Techniques for identifying and monitoring transmitted and received serial data packets are described.

그러나 이와 같은 종래 기술은 직렬 통신장치 자체에서 자기 점검을 수행하는 것이 아니며, 기존의 노트북 등의 외부 기기를 대신하는 새로운 외부 기기에 관한 것으로, 통신 시스템의 점검을 위한 비용이 많이 소요되는 문제점이 있었다.However, such a prior art does not perform self-checking in the serial communication device itself, but relates to a new external device that replaces an existing external device such as a laptop computer, and has a problem in that a lot of cost is required for checking the communication system. .

또한, 위의 등록특허는 마스터와 슬레이브의 출력 데이터를 검출하여 점검하기 때문에 마스터를 구성하는 개별 블록 중 어느 블록에 이상이 발생했는지 확인하 수 없는 구성이다.In addition, since the above registered patent detects and checks the output data of the master and the slave, it is not possible to check which block among the individual blocks constituting the master has an error.

즉, 마스터 통신장치의 데이터 패킷에 이상이 있는지 검출할 수는 있지만, 마스터 통신장치를 구성하는 어느 요소에 이상이 발생했는지 확인할 수 없기 때문에 해당 통신장치에 이상이 있는 경우, 다시 외부 기기 및 점검 소프트웨어를 사용하여 고장 위치를 정확하게 점검해야 한다는 문제점이 있었다.In other words, it is possible to detect whether there is an error in the data packet of the master communication device, but it is not possible to check which component of the master communication device has an error. There was a problem in that the location of the failure had to be accurately checked using .

이하에서는 종래 점외부 기기 및 점검 소프트웨어를 사용하여 직렬 통신장치를 점검하는 방법에 대하여 좀 더 구체적으로 설명한다.Hereinafter, a method of inspecting a serial communication device using conventional out-of-store devices and inspection software will be described in more detail.

도 1 내지 도 4는 종래 직렬 통신장치를 점검 소프트웨어의 화면 구성도이다.1 to 4 are screen configuration diagrams of conventional serial communication device inspection software.

도 1 내지 도 4에 도시한 바와 같이 점검 소프트웨어를 실행시키고, 해당하는 Comport를 오픈한다(도 1). 도면에서는 Comport가 COM3인 예를 도시하였다.As shown in FIGS. 1 to 4, the inspection software is executed and the corresponding Comport is opened (FIG. 1). In the drawing, an example in which Comfort is COM3 is shown.

그 다음, 도 2에 도시한 바와 같이 점검 소프트웨어 설정 화면에서 Comport의 번호와 수량, 데이터 비트(Data bit), 패리티 비트(Parity bit) 종류와 같이 다양한 항목을 설정한다. 도면에서는 COM30, 1 Ports를 설정한 예를 도시하였다. Then, as shown in FIG. 2, various items such as the number and quantity of comports, data bits, and parity bits are set on the inspection software setting screen. In the drawing, an example of setting COM30, 1 Ports is shown.

또한 Baudrate를 설정한다. 도면은 921600을 설정한 예를 나타낸다.Also set Baudrate. The drawing shows an example of setting 921600.

그 다음, 도 3에 도시한 바와 같이 점검 소프트웨어에서 터미널, 윈도우, 타일을 순서대로 선택한 후, 외부 장치의 DB9 커넥터에 RS232 루프백 커넥터를 장착한다.Then, as shown in FIG. 3, after selecting terminal, window, and tile in order in the inspection software, the RS232 loopback connector is mounted on the DB9 connector of the external device.

그 다음, 도 4와 같이 샌드 데이터(SEND DATA)를 선택하면, 통신상태를 나타내는 알파벳이 연속적으로 화면에 출력되며, 알파벳이 깨짐없이 출력되어야 한다.Then, when SEND DATA is selected as shown in FIG. 4, alphabets representing the communication state are continuously output on the screen, and the alphabets should be output without breaking.

데이터가 정상적으로 출력되는 상태는 샌드 바이트(SEND BYTE)와 리시브 바이트(RECEIVE BYTE)가 같은 상태이면, 정상 상태를 나타낸다.A state in which data is normally output indicates a normal state when the send byte and the receive byte are the same.

또한 플로우 콘트롤을 확인해야 하며, 도 5에 도시한 바와 같이 RTS를 선택하였을 때 CTS와 RTS가 동기화되어 작동하면 정상으로 판단하고, DTR을 선택하여 DSR과 DCD가 동기화되어 작동하면 정상으로 판단한다.In addition, flow control should be checked. As shown in FIG. 5, when RTS is selected, it is judged normal if CTS and RTS operate in synchronization, and if DSR and DCD operate in synchronization by selecting DTR, it is judged normal.

이러한 점검 소프트웨어의 운영을 위해서는 기존에 기동하던 소프트웨어의 동작을 정지시키고, 점검 소프트웨어를 기동해야 하며, 기존의 커넥터와 케이블을 분리하고, 별도의 루프백 커넥터나 테스트를 위한 장비를 연결해야 한다.In order to operate such inspection software, the operation of the existing software must be stopped, the inspection software must be started, the existing connector and cable must be disconnected, and a separate loopback connector or test equipment must be connected.

루프백 커넥터를 연결한 상태에서 정해진 데이터를 전송하고, 루프백되어 돌아오거나 다른 테스트 장치에서 보내온 데이터를 확인하여 이상 유무를 확인하게 된다.With the loopback connector connected, the specified data is transmitted, loopback is returned, or data sent from another test device is checked to check whether there is an abnormality.

상기와 같은 문제점을 감안한 본 발명이 해결하고자 하는 과제는, 자체 진단 기능을 포함하는 비동기식 직렬 통신장치를 제공함에 있다.An object to be solved by the present invention in consideration of the above problems is to provide an asynchronous serial communication device including a self-diagnosis function.

또한 본 발명의 다른 과제는, 고장 위치가 UART 또는 송수신부인지 명확하게 확인할 수 있는 비동기식 직렬 통신장치를 제공함에 있다.Another object of the present invention is to provide an asynchronous serial communication device that can clearly identify whether a failure location is a UART or transceiver.

상기와 같은 기술적 과제를 해결하기 위한 본 발명 비동기식 직렬 통신장치는, 송신데이터 또는 진단데이터를 선택적으로 송신하며 진단 모드를 수행하는 데이터 처리부와, 상기 데이터 처리부의 송신데이터를 직렬 데이터로 변환함과 아울러 수신데이터를 병렬 데이터로 변환하는 UART와, 상기 UART에서 변환된 상기 진단데이터를 선택적으로 UART의 수신단으로 회귀시키는 제1스위칭부와, 상기 데이터 처리부의 진단 모드 수행에 대한 진단소프트웨어 및 상기 진단데이터를 저장하는 저장부와, 상기 진단소프트웨어의 실행에 따라 상기 제1스위칭부의 스위칭 상태를 제어하는 진단 제어부를 포함할 수 있다.In order to solve the above technical problem, the present invention asynchronous serial communication device includes a data processing unit that selectively transmits transmission data or diagnostic data and performs a diagnosis mode, and converts the transmission data of the data processing unit into serial data. A UART that converts received data into parallel data, a first switching unit that selectively returns the diagnostic data converted in the UART to the receiving terminal of the UART, diagnostic software for performing a diagnostic mode of the data processing unit, and the diagnostic data It may include a storage unit for storing and a diagnosis control unit for controlling the switching state of the first switching unit according to the execution of the diagnosis software.

본 발명의 실시예에서, 상기 제1스위칭부를 통해 송신데이터를 수신하고 직렬 통신방식에 따라 변환하여 커넥터로 출력함과 아울러 상기 커넥터에 수신된 수신데이터를 처리하여 상기 제1스위칭부를 통해 상기 UART로 제공하는 송수신부를 더 포함하되, 상기 송수신부는, 상기 진단 제어부의 제어에 의해 내부의 송신채널과 수신채널을 연결하는 루프를 생성하여, 상기 진단 데이터를 회귀시켜 상기 UART를 통해 상기 데이터 처리부로 제공할 수 있다.In an embodiment of the present invention, transmission data is received through the first switching unit, converted according to a serial communication method, and output to a connector, and the received data received through the connector is processed and transmitted to the UART through the first switching unit. Further comprising a transmission and reception unit for providing, wherein the transmission and reception unit generates a loop connecting an internal transmission channel and a reception channel under the control of the diagnosis control unit to return the diagnostic data and provide it to the data processing unit through the UART. can

본 발명의 실시예에서, 상기 제1스위칭부를 통해 송신데이터를 수신하고 직렬 통신방식에 따라 변환하여 커넥터로 출력함과 아울러 상기 커넥터에 수신된 수신데이터를 처리하여 상기 제1스위칭부를 통해 상기 UART로 제공하는 송수신부와, 진단 모드에서 상기 진단 제어부의 스위칭 제어에 따라 상기 송수신부의 송신채널과 수신채널을 연결하는 제2스위칭부를 더 포함할 수 있다.In an embodiment of the present invention, transmission data is received through the first switching unit, converted according to a serial communication method, and output to a connector, and the received data received through the connector is processed and transmitted to the UART through the first switching unit. The transmission/reception unit may further include a transmission/reception unit and a second switching unit configured to connect a transmission channel and a reception channel of the transmission/reception unit according to switching control of the diagnosis control unit in a diagnosis mode.

본 발명의 실시예에서, 상기 진단 모드는, 상기 제1스위칭부의 상태에 의해 UART의 송신채널과 수신채널을 연결하여, UART의 송신 데이터가 회귀 수신되도록 하여, 상기 UART의 성능을 진단하는 제1진단 모드와, 상기 제1스위칭부에 의해 상기 UART와 상기 송수신부가 연결된 상태에서, 상기 송수신부의 송신 데이터를 회귀 수신하여, 상기 송수신부의 성능을 진단하는 제2진단 모드를 포함할 수 있다.In an embodiment of the present invention, the diagnosis mode is a first method for diagnosing the performance of the UART by connecting a transmission channel and a reception channel of the UART according to the state of the first switching unit so that the transmission data of the UART is received back. A diagnosis mode and a second diagnosis mode for diagnosing performance of the transceiver by regressing transmission data of the transceiver in a state in which the UART is connected to the transceiver by the first switching unit.

본 발명의 실시예에서, 상기 제2진단 모드는, 상기 제1진단 모드의 실행 후, 상기 UART의 진단 결과 이상이 없으면 수행될 수 있다.In an embodiment of the present invention, the second diagnosis mode may be performed if there is no abnormality as a result of diagnosis of the UART after execution of the first diagnosis mode.

본 발명의 실시예에서, 회귀 수신된 데이터는 상기 데이터 처리부에서 상기 저장부에 저장된 진단데이터와 비교되어 에러율을 검출하되, 아스키 문자열 기준으로 바이트 단위로 비교할 수 있다.In an embodiment of the present invention, the regression received data is compared with the diagnostic data stored in the storage unit in the data processing unit to detect an error rate, and the comparison can be performed on a byte-by-byte basis based on an ASCII character string.

본 발명의 실시예에서, 상기 제1스위칭부는, 상기 UART의 송신 채널과 수신 채널을 각각 상기 송수신부에 선택적으로 연결하는 제1스위치, 제2스위치와, 상기 제1스위치와 제2스위치가 열린 상태에서 상기 UART의 송신 채널과 수신 채널을 상호 연결하는 제3스위치를 포함할 수 있다.In an embodiment of the present invention, the first switching unit includes a first switch and a second switch that selectively connect the transmission channel and the reception channel of the UART to the transmission and reception unit, respectively, and the first switch and the second switch are opened. In this state, a third switch interconnecting the transmission channel and the reception channel of the UART may be included.

본 발명의 실시예에서, 상기 제2스위칭부는, 상기 송수신부의 송신 채널과 수신 채널을 각각 커넥터에 선택적으로 연결하는 제4스위치와 제5스위치와, 상기 제4스위치와 제5스위치가 열린 상태에서 상기 송수신부의 송신 채널과 수신 채널을 상호 연결하는 제6스위치를 포함할 수 있다.In an embodiment of the present invention, the second switching unit, the fourth switch and the fifth switch for selectively connecting the transmit channel and the receive channel of the transceiver to the connector, respectively, in the open state of the fourth switch and the fifth switch A sixth switch interconnecting a transmission channel and a reception channel of the transceiver may be included.

본 발명의 실시예에서, 상기 제2스위칭부는, 상기 진단 모드에서 상기 송수신부의 송신 채널과 수신 채널을 연결하는 스위치를 포함할 수 있다.In an embodiment of the present invention, the second switching unit may include a switch that connects a transmission channel and a reception channel of the transceiver in the diagnosis mode.

본 발명의 실시예에서, 상기 데이터 처리부의 진단 결과를 표시하는 표시부를 더 포함하되, 표시부는 상기 제1진단 모드의 결과와 제2진단 모드의 결과를 나누어 표시할 수 있다.In an embodiment of the present invention, a display unit for displaying a diagnosis result of the data processing unit may be further included, and the display unit may separately display a result of the first diagnosis mode and a result of the second diagnosis mode.

본 발명 비동기식 직렬 통신장치는, 직렬 통신장치 자체에 자체 진단 기능을 포함하여 별도의 조작 없이 설정된 주기에 따라 자동으로 자체 점검을 수행하도록 함으로써, 인적자원의 투입을 방지하고, 비용과 점검 시간을 줄일 수 있는 효과가 있다.The asynchronous serial communication device of the present invention includes a self-diagnosis function in the serial communication device itself so that it automatically performs self-inspection according to a set cycle without separate manipulation, thereby preventing the input of human resources and reducing cost and inspection time. There are possible effects.

또한, 본 발명은 직렬 통신장치를 구성하는 주요 기능 블록을 각각 점검하여, 이상이 발생한 위치를 정확하게 검출하여 유지 및 보수에 필요한 시간과 노력을 줄일 수 있는 효과가 있다.In addition, the present invention has the effect of reducing the time and effort required for maintenance and repair by inspecting each of the main functional blocks constituting the serial communication device and accurately detecting the location where the error occurs.

도 1 내지 도 4는 각각 종래 진단 소프트웨어의 화면 구성도이다.
도 5는 종래 진단 소프트웨어에서 모뎀 플로우 콘트롤을 확인하는 화면의 예시도이다.
도 6은 본 발명의 바람직한 실시예에 따른 자체 진단기능을 가지는 직렬 통신장치의 블록 구성도이다.
도 7은 제1스위칭부의 예시도이다.
도 8은 제2스위칭부의 예시도이다.
도 9는 제1진단 모드의 설명도이다.
도 10은 제2진단 모드의 설명도이다.
도 11과 도 12는 각각 본 발명의 다른 실시예의 블록 구성도이다.
1 to 4 are screen configuration diagrams of conventional diagnostic software, respectively.
5 is an exemplary view of a screen for checking modem flow control in conventional diagnostic software.
6 is a block diagram of a serial communication device having a self-diagnosis function according to a preferred embodiment of the present invention.
7 is an exemplary view of a first switching unit.
8 is an exemplary view of a second switching unit.
9 is an explanatory diagram of a first diagnosis mode.
10 is an explanatory diagram of a second diagnosis mode.
11 and 12 are block configuration diagrams of another embodiment of the present invention, respectively.

본 발명의 구성 및 효과를 충분히 이해하기 위하여, 첨부한 도면을 참조하여 본 발명의 바람직한 실시예들을 설명한다. 그러나 본 발명은 이하에서 개시되는 실시예에 한정되는 것이 아니라, 여러가지 형태로 구현될 수 있고 다양한 변경을 가할 수 있다. 단지, 본 실시예에 대한 설명은 본 발명의 개시가 완전하도록 하며, 본 발명이 속하는 기술분야의 통상의 지식을 가진 자에게 발명의 범주를 완전하게 알려주기 위하여 제공되는 것이다. 첨부된 도면에서 구성요소는 설명의 편의를 위하여 그 크기를 실제보다 확대하여 도시한 것이며, 각 구성요소의 비율은 과장되거나 축소될 수 있다.In order to fully understand the configuration and effects of the present invention, preferred embodiments of the present invention will be described with reference to the accompanying drawings. However, the present invention is not limited to the embodiments disclosed below, and may be implemented in various forms and various changes may be made. However, the description of the present embodiment is provided to complete the disclosure of the present invention and to completely inform those skilled in the art of the scope of the invention to which the present invention belongs. In the accompanying drawings, the size of the components is enlarged from the actual size for convenience of description, and the ratio of each component may be exaggerated or reduced.

'제1', '제2' 등의 용어는 다양한 구성요소를 설명하는데 사용될 수 있지만, 상기 구성요소는 위 용어에 의해 한정되어서는 안 된다. 위 용어는 하나의 구성요소를 다른 구성요소로부터 구별하는 목적으로만 사용될 수 있다. 예를 들어, 본 발명의 권리범위를 벗어나지 않으면서 '제1구성요소'는 '제2구성요소'로 명명될 수 있고, 유사하게 '제2구성요소'도 '제1구성요소'로 명명될 수 있다. 또한, 단수의 표현은 문맥상 명백하게 다르게 표현하지 않는 한, 복수의 표현을 포함한다. 본 발명의 실시예에서 사용되는 용어는 다르게 정의되지 않는 한, 해당 기술분야에서 통상의 지식을 가진 자에게 통상적으로 알려진 의미로 해석될 수 있다.Terms such as 'first' and 'second' may be used to describe various elements, but the elements should not be limited by the above terms. The above terms may only be used for the purpose of distinguishing one component from another. For example, without departing from the scope of the present invention, a 'first element' may be named a 'second element', and similarly, a 'second element' may also be named a 'first element'. can Also, singular expressions include plural expressions unless the context clearly indicates otherwise. Terms used in the embodiments of the present invention may be interpreted as meanings commonly known to those skilled in the art unless otherwise defined.

도 6은 본 발명의 바람직한 실시예에 따른 자체 진단 기능을 가지는 직렬 통신장치의 블록 구성도이다.6 is a block diagram of a serial communication device having a self-diagnosis function according to a preferred embodiment of the present invention.

도 6을 참조하면 본 발명은, 송신데이터 또는 진단데이터를 선택적으로 출력하며, 통신 상대측의 송신데이터를 수신하며, 진단 모드를 수행하는 데이터 처리부(10)와, 상기 데이터 처리부(10)의 송신데이터를 직렬 데이터로 변환함과 아울러 수신데이터를 병렬 데이터로 변환하는 UART(20)와, 상기 UART(20)에서 변환된 상기 진단데이터를 선택적으로 UART(20)의 수신단으로 회귀시키는 제1스위칭부(30)와, 상기 제1스위칭부(30)를 통해 송신데이터를 수신하고 직렬 통신방식에 따라 변환하여 커넥터(60)로 출력함과 아울러 상기 커넥터(60)에 수신된 수신데이터를 처리하여 제1스위칭부(30)를 통해 UART(20)로 제공하는 송수신부(40)와, 상기 송수신부(40)에서 처리된 진단데이터를 선택적으로 상기 송수신부(40)의 수신단으로 회귀시키는 제2스위칭부(50)와, 진단소프트웨어 및 상기 진단데이터를 저장하는 저장부(70)와, 상기 저장부(70)의 진단소프트웨어의 실행에 따라 상기 제1스위칭부(30)와 제2스위칭부(50)의 스위칭 상태를 제어하는 진단 제어부(80)와, 상기 UART(20)와 송수신부(40)의 이상 여부를 표시하는 표시부(90)를 포함할 수 있다.Referring to FIG. 6, the present invention includes a data processing unit 10 that selectively outputs transmission data or diagnostic data, receives transmission data from a communication counterpart, and performs a diagnosis mode, and transmission data of the data processing unit 10. A UART 20 that converts into serial data and also converts received data into parallel data, and a first switching unit that selectively returns the diagnostic data converted in the UART 20 to the receiving terminal of the UART 20 ( 30), and receives transmission data through the first switching unit 30, converts it according to the serial communication method, outputs it to the connector 60, and processes the received data received through the connector 60 to The transmission/reception unit 40 provides the data to the UART 20 through the switching unit 30, and the second switching unit selectively returns the diagnostic data processed by the transmission/reception unit 40 to the receiving end of the transmission/reception unit 40. 50, a storage unit 70 for storing diagnostic software and the diagnostic data, and the first switching unit 30 and the second switching unit 50 according to the execution of the diagnostic software in the storage unit 70 It may include a diagnosis control unit 80 that controls the switching state of and a display unit 90 that displays whether the UART 20 and the transmission/reception unit 40 are abnormal.

이하, 상기와 같이 구성되는 본 발명의 바람직한 실시예에 따른 자체 진단 기능을 가지는 직렬 통신장치의 구성과 작용에 대하여 좀 더 상세히 설명한다.Hereinafter, the configuration and operation of the serial communication device having a self-diagnosis function according to a preferred embodiment of the present invention configured as described above will be described in more detail.

먼저, 상기 진단소프트웨어는 상기 제1스위칭부(30)와 제2스위칭부(50)를 각각 스위칭하는 제어 기능을 포함하고, 진단데이터를 송신 및 수신할 수 있는 기능, 통신 설정을 자동으로 변경하는 기능 및 통신 성공률을 자동으로 판단하는 기능을 포함하고 있다.First, the diagnostic software includes a control function for switching the first switching unit 30 and the second switching unit 50, respectively, and a function for transmitting and receiving diagnostic data and automatically changing communication settings. It includes a function that automatically determines the function and communication success rate.

특히 상기 진단소프트웨어는 드라이버나 펌웨어에 빌트인(Built in) 되어 있다.In particular, the diagnostic software is built into a driver or firmware.

상기 데이터 처리부(10)는 중앙처리장치 등의 프로세서이거나 PCI/PCIe 등과 같이 I/O 버스에 연결되어 데이터를 처리하는 장치일 수 있다.The data processing unit 10 may be a processor such as a central processing unit or a device connected to an I/O bus such as PCI/PCIe to process data.

데이터 처리부(10)는 송신데이터를 장치 외부로 송신하고, 장치 외부의 수신데이터를 수신하여 처리하는 기능적 블록으로 이해될 수 있다.The data processor 10 may be understood as a functional block that transmits transmission data to the outside of the device and receives and processes received data from the outside of the device.

특히 데이터 처리부(10)의 처리데이터는 처리속도의 향상을 위하여 데이터를 병렬처리하는 것으로 한다.In particular, processing data of the data processing unit 10 is assumed to process data in parallel to improve processing speed.

따라서 데이터 처리부(10)의 송신데이터는 병렬(병렬)데이터이며, UART(20)에서 직렬 데이터로 처리된다.Therefore, the transmission data of the data processor 10 is parallel (parallel) data, and is processed as serial data in the UART 20.

도 7은 제1스위칭부(30)의 예시도이다.7 is an exemplary view of the first switching unit 30 .

제1스위칭부(30)는 UART(20)와 송수신부(40) 사이의 제1송신채널(Tx1)을 열거나 닫는 제1스위치(S1)와, UART(20)와 송수신부(40) 사이의 제1수신채널(Rx1)을 열거나 닫는 제2스위치(S2)와, 상기 UART(20)의 송신단과 수신단을 직접 연결하거나 차단하는 제3스위치(S3)를 포함하여 구성될 수 있다.The first switching unit 30 includes a first switch S1 that opens or closes the first transmission channel Tx1 between the UART 20 and the transceiver 40 and between the UART 20 and the transceiver 40. It may be configured to include a second switch (S2) that opens or closes the first receive channel (Rx1) of the UART (20), and a third switch (S3) that directly connects or disconnects the transmitting end and the receiving end of the UART (20).

또한, 제1스위칭부(30)는 UART(20)와 송수신부(40) 사이의 제1모뎀송신채널(TMx1)을 열거나 닫는 제1모뎀스위치(SM1)와, UART(20)와 송수신부(40) 사이의 제1모뎀수신채널(RMx1)을 열거나 닫는 제2모뎀스위치(SM2)와, 상기 UART(20)의 모뎀송신단과 모뎀수신단을 직접 연결하거나 차단하는 제3모뎀스위치(SM3)를 포함하여 구성될 수 있다.In addition, the first switching unit 30 includes a first modem switch SM1 that opens or closes the first modem transmission channel TMx1 between the UART 20 and the transceiver 40, and the UART 20 and the transceiver unit. A second modem switch (SM2) that opens or closes the first modem reception channel (RMx1) between (40) and a third modem switch (SM3) that directly connects or disconnects the modem transmitter and modem receiver of the UART (20). It can be configured to include.

상기 제1스위치(S1), 제2스위치(S2) 및 제3스위치(S3)는 모두 진단 제어부(80)에서 진단소프트웨어의 스위치제어기능을 수행하여 출력되는 스위칭신호에 따라 상태가 절환되며, 제1스위치(S1)와 제2스위치(S2)는 항상 동일한 스위칭 상태를 나타내며, 제3스위치(S3)는 제1스위치(S1) 및 제2스위치(S2)와는 항상 반대의 스위칭 상태를 나타낸다.The first switch (S1), the second switch (S2), and the third switch (S3) all perform the switch control function of the diagnostic software in the diagnosis control unit 80, and the state is switched according to the output switching signal. The first switch S1 and the second switch S2 always show the same switching state, and the third switch S3 always shows the opposite switching state to the first switch S1 and the second switch S2.

또한, 제1모뎀스위치(SM1), 제2모뎀스위치(SM2) 및 제3모뎀스위치(SM3)는 모두 진단 제어부(80)의 스위칭신호에 따라 상태가 절환되며, 제1모뎀스위치(SM1)와 제2모뎀스위치(SM2)는 항상 동일한 스위칭 상태를 나타내며, 제3모뎀스위치(SM3)는 제1모뎀스위치(SM1) 및 제2모뎀스위치(SM2)와는 항상 반대의 스위칭 상태를 나타낸다. In addition, the first modem switch (SM1), the second modem switch (SM2) and the third modem switch (SM3) are all switched according to the switching signal of the diagnosis control unit 80, and the first modem switch (SM1) and The second modem switch SM2 always shows the same switching state, and the third modem switch SM3 always shows the opposite switching state to those of the first modem switch SM1 and the second modem switch SM2.

진단 모드가 아닌 정상 동작 모드에서 상기 제1스위치(S1)와 제2스위치(S2) 및 제1모뎀스위치(SM1)와 제2모뎀스위치(SM2)는 닫힌 상태이고, 제3스위치(S3) 및 제3모뎀스위치(SM3)는 열린 상태가 된다. 이때의 진단 모드는 UART(20)에 대한 제1진단 모드이며, 송수신부(40)를 진단하는 제2진단 모드에서는 제3스위치(S3) 및 제3모뎀스위치(SM3)가 열린 상태, 제1스위치(S1)와 제2스위치(S2) 및 제1모뎀스위치(SM1)와 제2모뎀스위치(SM2)는 닫힌 상태가 된다. In the normal operation mode, not the diagnostic mode, the first switch (S1), the second switch (S2), the first modem switch (SM1), and the second modem switch (SM2) are closed, and the third switch (S3) and The third modem switch SM3 is in an open state. The diagnosis mode at this time is the first diagnosis mode for the UART 20, and in the second diagnosis mode for diagnosing the transceiver 40, the third switch S3 and the third modem switch SM3 are open, the first The switch S1, the second switch S2, the first modem switch SM1, and the second modem switch SM2 are closed.

도 8은 제2스위칭부(50)의 일실시 구성도이다.8 is a configuration diagram of one embodiment of the second switching unit 50 .

제2스위칭부(50) 또한 제1스위칭부(30)와 유사하게, 직렬 데이터의 송수신을 위한 데이터 송수신채널 및 모뎀 신호의 송수신을 위한 모뎀신호 송수신채널을 포함한다. Similar to the first switching unit 30, the second switching unit 50 also includes a data transmission/reception channel for transmission/reception of serial data and a modem signal transmission/reception channel for transmission/reception of modem signals.

구체적으로, 송수신부(40)와 커넥터(60) 사이의 제2송신채널(Tx2)을 열거나 닫는 제4스위치(S4)와, 송수신부(40)와 커넥터(60) 사이의 제2수신채널(Rx2)을 열거나 닫는 제5스위치(S5)와, 상기 송수신부(40)의 송신단과 수신단을 직접 연결하거나 차단하는 제6스위치(S6)를 포함하여 구성될 수 있다. Specifically, the fourth switch (S4) for opening or closing the second transmission channel (Tx2) between the transmission and reception unit 40 and the connector 60, and the second reception channel between the transmission and reception unit 40 and the connector 60 It may include a fifth switch S5 that opens or closes (Rx2) and a sixth switch S6 that directly connects or disconnects the transmitting end and the receiving end of the transceiver 40.

또한, 송수신부(40)와 커넥터(60) 사이의 제2모뎀송신채널(TMx2)을 열거나 닫는 제4모뎀스위치(SM4)와, 송수신부(40)와 커넥터(60) 사이의 제2모뎀수신채널(RMx2)을 열거나 닫는 제5모뎀스위치(SM5)와, 상기 송수신부(40)의 모뎀송신단과 모뎀수신단을 직접 연결하거나 차단하는 제6모뎀스위치(SM6)를 포함하여 구성될 수 있다. In addition, the fourth modem switch SM4 opens or closes the second modem transmission channel TMx2 between the transceiver 40 and the connector 60, and the second modem between the transceiver 40 and the connector 60. It may be configured to include a fifth modem switch (SM5) that opens or closes the receiving channel (RMx2) and a sixth modem switch (SM6) that directly connects or disconnects the modem transmitting end and the modem receiving end of the transceiver 40. .

상기 제4스위치(S4)와 제5스위치(S5) 및 제4모뎀스위치(SM4)와 제5모뎀스위치(SM5)는 항상 동일한 상태를 유지하며, 제6스위치(S6)는 제4스위치(S4) 및 제5스위치(S5)와는 반대의 스위칭 상태를 나타내며, 제6모뎀스위치(SM6) 역시 제4모뎀스위치(SM4) 및 제5모뎀스위치(SM5)와는 반대의 스위칭 상태를 가진다.The fourth switch (S4) and the fifth switch (S5) and the fourth modem switch (SM4) and the fifth modem switch (SM5) always maintain the same state, and the sixth switch (S6) is the fourth switch (S4). ) and the fifth switch S5, and the sixth modem switch SM6 also has a switching state opposite to that of the fourth modem switch SM4 and the fifth modem switch SM5.

송수신부(40)를 점검하는 제2진단 모드에서 상기 제6스위치(S6)가 닫힌 상태이며, 제4스위치(S4)와 제5스위치(S5)는 열린 상태가 된다. 또한 모뎀신호의 회귀를 위하여 제6모뎀스위치(SM6)가 닫힌 상태가 되고, 제4모뎀스위치(SM4) 및 제5모뎀스위치(SM5)가 열린 상태가 된다.In the second diagnosis mode in which the transceiver 40 is inspected, the sixth switch S6 is in a closed state, and the fourth switch S4 and the fifth switch S5 are in an open state. Also, for the return of the modem signal, the sixth modem switch SM6 is closed, and the fourth modem switch SM4 and the fifth modem switch SM5 are opened.

정상 통신 모드에서는 상기 제1스위칭부(30)의 제1스위치(S1)와 제2스위치(S2) 및 제2스위칭부(50)의 제4스위치(S4)와 제5스위치(S5)가 모두 닫힌 상태이며, 제3스위치(S3)와 제6스위치(S6)는 열린상태가 되도록 진단 제어부(80)가 동작한다.In the normal communication mode, the first switch S1 and the second switch S2 of the first switching unit 30 and the fourth switch S4 and the fifth switch S5 of the second switching unit 50 are all It is in a closed state, and the diagnosis control unit 80 operates so that the third switch (S3) and the sixth switch (S6) are in an open state.

앞서 설명한 제1 내지 제6스위치 및 제1 내지 제6모뎀스위치는 모두 트랜지스터 등의 스위칭소자 또는 스위칭소자들의 결합인 것으로 할 수 있다.The first to sixth switches and the first to sixth modem switches described above may all be switching elements such as transistors or a combination of switching elements.

데이터 처리부(10)의 병렬 데이터를 UART(20)에서 직렬 데이터로 변환하고, 제1송신채널(Tx1)을 통해 송수신부(40)에 전달되고, 송수신부(40)는 규격에 적당한 데이터로 변환하여 제2송신채널(Tx2)을 통해 커넥터(60)로 송신하여, 커넥터(60)에 연결된 통신 상대측 통신장치로 직렬 데이터를 송신한다.Parallel data of the data processor 10 is converted into serial data in the UART 20 and transmitted to the transceiver 40 through the first transmission channel (Tx1), and the transceiver 40 converts it into data suitable for the standard. is transmitted to the connector 60 through the second transmission channel (Tx2), and serial data is transmitted to the communication device of the communication counterpart connected to the connector 60.

반대로 통신 상대측 통신장치로부터 수신되는 수신데이터는 커넥터(60)와 제2수신채널(Rx2)을 통해 송수신부(40)의 수신단으로 입력되고, 송수신부(40)는 UART(20)에서 처리가능한 직렬 데이터로 변환하여 제1수신채널(Rx1)을 통해 UART(20)의 수신단으로 제공한다.Conversely, the received data received from the communication device on the other side of communication is input to the receiving end of the transceiver 40 through the connector 60 and the second receive channel Rx2, and the transceiver 40 is serially processed by the UART 20. It is converted into data and provided to the receiving end of the UART 20 through the first receiving channel Rx1.

UART(20)는 수신된 직렬 데이터를 병렬 데이터로 변환하여 데이터 처리부(10)에 제공하게 된다.The UART 20 converts the received serial data into parallel data and provides it to the data processor 10.

이와 같은 통신 모드에서 데이터 처리부(10)는 설정된 시간 또는 사용자의 실행 명령에 따라 데이터 처리부(10)는 진단 모드를 수행하기 위하여 진단 제어부(80)를 제어하여 제1스위칭부(30)와 제2스위칭부(50)의 상태를 절환한다.In this communication mode, the data processing unit 10 controls the diagnosis control unit 80 to perform the diagnosis mode according to the set time or the user's execution command, so that the first switching unit 30 and the second The state of the switching unit 50 is switched.

또한 모뎀신호를 송신 및 수신하여 복수의 장치간 데이터 전송이 가능함을 통신 상대 장치에 확인시킨다.Also, by transmitting and receiving a modem signal, it is confirmed to the communication counterpart device that data transmission between a plurality of devices is possible.

진단 제어부(80)는 다수의 게이트 구동회로를 포함하는 것으로 할 수 있다. 이때의 스위칭 상태를 절환하는 신호는 저장부(70)에 저장된 진단 프로그램의 실행에 따라 이루어지는 것으로 할 수 있다.The diagnosis control unit 80 may include a plurality of gate driving circuits. The signal for switching the switching state at this time may be made according to the execution of the diagnostic program stored in the storage unit 70 .

진단 프로그램은 앞서 설명한 제1진단 모드에서의 제1스위칭부(30)의 제1 내지 제3스위치(S1~S3)의 스위칭 상태를 정의하고, 제2진단 모드에서 제1스위칭부(30) 및 제2스위칭부(50)의 스위칭 상태를 정의한다.The diagnostic program defines the switching states of the first to third switches S1 to S3 of the first switching unit 30 in the first diagnosis mode described above, and the first switching unit 30 and the first switching unit 30 in the second diagnosis mode. A switching state of the second switching unit 50 is defined.

또한, 데이터 처리부(10)는 저장부(70)에 저장된 진단 데이터를 송신 데이터로 하여 송신한다.In addition, the data processing unit 10 transmits the diagnostic data stored in the storage unit 70 as transmission data.

진단 데이터는, 오류 검출을 위한 원본 데이터로서, UART(20) 또는 송수신부(40)에서 처리된 진단 데이터의 회귀 데이터를 원래의 데이터와 비교하여 오류 여부를 확인할 수 있다.Diagnosis data is original data for error detection, and it is possible to check whether or not there is an error by comparing regression data of the diagnosis data processed by the UART 20 or the transceiver 40 with the original data.

이때 회귀 데이터와 원본 데이터의 비교는 아스키 문자열 기준으로 바이트 단위로 비교함으로써, 진단 속도를 향상시키고, 효율을 높일 수 있다.In this case, the regression data and the original data are compared in units of bytes based on an ASCII character string, thereby improving diagnosis speed and increasing efficiency.

진단 데이터는 규칙을 가지고 반복되는 문자열인 것으로 한다.Diagnostic data is assumed to be a character string repeated with a rule.

도 9는 제1진단 모드의 설명을 위한 블록 구성도이다.9 is a block diagram for explaining the first diagnosis mode.

제1진단 모드는 UART(20)의 성능을 진단하는 것으로, 데이터 처리부(10)는 저장부(70)에 저장된 진단 데이터를 UART(20)에 병렬로 제공하고, UART(20)는 병렬 진단 데이터를 직렬 진단 데이터로 변환하여 제1송신채널(Tx1)을 통해 출력한다. 이때, 진단 제어부(80)는 데이터 처리부(10)의 제어에 따라 제1스위칭부(30)의 제3스위치(S3)를 닫고, 제1 및 제2스위치(S1, S2)를 열어 제1송신채널(Tx1)과 제1수신채널(Rx1)이 서로 연결되도록 한다.The first diagnosis mode is for diagnosing the performance of the UART 20. The data processing unit 10 provides the diagnostic data stored in the storage unit 70 to the UART 20 in parallel, and the UART 20 provides parallel diagnostic data. is converted into serial diagnostic data and output through the first transmission channel (Tx1). At this time, the diagnosis control unit 80 closes the third switch S3 of the first switching unit 30 and opens the first and second switches S1 and S2 under the control of the data processing unit 10 to transmit the first signal. The channel Tx1 and the first receive channel Rx1 are connected to each other.

따라서, 상기 UART(20)에서 송신되는 직렬 진단 데이터는 UART(20)의 수신단으로 회귀하며, 다시 UART(20)는 회귀 수신된 직렬 진단 데이터를 병렬 데이터로 변환하여 데이터 처리부(10)에 제공한다.Therefore, the serial diagnostic data transmitted from the UART 20 returns to the receiving end of the UART 20, and the UART 20 converts the serial diagnostic data received back into parallel data and provides it to the data processing unit 10. .

데이터 처리부(10)는 앞서 설명한 바와 같이 최초 진단 데이터와 회귀 수신된 진단 데이터를 비교하여 정상 여부를 확인하게 된다.As described above, the data processing unit 10 compares the initial diagnosis data with the diagnostic data received back to confirm whether or not they are normal.

이와 같은 과정은 UART(20)의 설정 가능한 최저 보 레이트(baud rate)에서 최대 보 레이트까지 진단 데이터를 송신하고, 회귀 수신된 진단 데이터를 비교하는 것으로 한다. In this process, diagnostic data is transmitted from the lowest configurable baud rate of the UART 20 to the maximum baud rate, and the diagnostic data returned and received are compared.

또한, UART(20)의 제1모뎀송신채널(TMx1)을 통해 송신되는 모뎀신호 또한 제3모뎀스위치(SM3)를 통해 제1모뎀수신채널(RMx1)을 통해 회귀 수신되어, 모뎀신호가 정상적인지 확인하게 된다.In addition, the modem signal transmitted through the first modem transmission channel (TMx1) of the UART (20) is also returned and received through the first modem reception channel (RMx1) through the third modem switch (SM3) to check whether the modem signal is normal. will check

본 발명에서는 모뎀신호를 단순화하여 도시하고 설명하지만, CTS(Clear To Send), DSR(Data Set Ready) 등을 포함하는 것으로 할 수 있다.In the present invention, the modem signal is shown and described in a simplified manner, but it may include CTS (Clear To Send), DSR (Data Set Ready), and the like.

이는 본 발명의 직렬 통신장치가 적용되는 분야에 따라 가변적으로 적용될 수 있다.This may be applied variably according to the field to which the serial communication device of the present invention is applied.

이와 같은 과정을 통해 본 발명은 UART(20)의 성능을 진단할 수 있다. UART(20)의 진단 결과는 표시부(90)에 표시될 수 있다. 표시부(90)는 단순확인을 위한 엘이디를 포함할 수 있으며, 진단 데이터의 송수신 에러비율을 표시하는 디스플레이 장치일 수 있다. 이때의 디스플레이 장치는 본 발명이 적용되는 컴퓨팅 장치의 디스플레이일 수 있다.Through this process, the present invention can diagnose the performance of the UART (20). A diagnosis result of the UART 20 may be displayed on the display unit 90 . The display unit 90 may include an LED for simple confirmation and may be a display device displaying a transmission/reception error rate of diagnostic data. The display device at this time may be a display of a computing device to which the present invention is applied.

표시부(90)는 UART(20)의 진단 결과와 아래에서 설명하는 제2진단 모드에 의한 송수신부(40)의 진단 결과를 구분하여 표시할 수 있다.The display unit 90 can display the diagnosis result of the UART 20 and the diagnosis result of the transmission/reception unit 40 by the second diagnosis mode described below.

도 10은 제2진단 모드의 설명도이다.10 is an explanatory diagram of a second diagnosis mode.

제2진단 모드는 제1진단 모드의 실행 후 실행되도록 하며, 특히 UART(20)의 성능에 이상이 없는 경우에 한하여 진행되는 것으로 한다.The second diagnosis mode is executed after the first diagnosis mode is executed, and in particular, it is assumed that the performance of the UART 20 is not abnormal.

제2진단 모드에서는 송수신부(40)를 진단하는 것으로, 데이터 처리부(10)는 저장부(70)에 저장된 진단 데이터를 UART(20)에 병렬로 제공하고, UART(20)는 병렬 진단 데이터를 직렬 진단 데이터로 변환하여 제1송신채널(Tx1)을 통해 송수신부(40)로 출력한다. 이때, 진단 제어부(80)는 데이터 처리부(10)의 제어에 따라 제1스위칭부(30)의 제3스위치(S3)를 열고, 제1 및 제2스위치(S1, S2)를 닫아 제1송신채널(Tx1)과 제1수신채널(Rx1)에 의해 UART(20)와 송수신부(40)가 연결되도록 한다.In the second diagnosis mode, the transceiver 40 is diagnosed. The data processing unit 10 provides the diagnostic data stored in the storage unit 70 to the UART 20 in parallel, and the UART 20 transmits the parallel diagnostic data. It is converted into serial diagnostic data and output to the transceiver 40 through the first transmission channel (Tx1). At this time, the diagnosis control unit 80 opens the third switch S3 of the first switching unit 30 and closes the first and second switches S1 and S2 under the control of the data processing unit 10 to transmit the first signal. The UART 20 and the transceiver 40 are connected through the channel Tx1 and the first receive channel Rx1.

또한, 모뎀신호의 송신을 위하여 제1모뎀스위치(SM1)와 제2모뎀스위치(SM2)를 닫고, 제3모뎀스위치(SM3)를 열어 제1모뎀송신채널(TMx1)과 제1모뎀수신채널(RMx1)에 의해 UART(20)와 송수신부(40)가 연결되도록 한다.In addition, in order to transmit the modem signal, the first modem switch SM1 and the second modem switch SM2 are closed, and the third modem switch SM3 is opened to form the first modem transmission channel TMx1 and the first modem reception channel (TMx1). UART 20 and transceiver 40 are connected by RMx1).

또한, 진단 제어부(80)는 제2스위칭부(50)의 제6스위치(S6)를 닫고, 제4스위치(S4)와 제5스위치(S5)를 열어 제2송신채널(Tx2)을 통해 송신되는 데이터가 제2수신채널(Rx2)을 통해 송수신부(40)에 회귀 수신되도록 한다.In addition, the diagnosis controller 80 closes the sixth switch S6 of the second switching unit 50 and opens the fourth switch S4 and the fifth switch S5 to transmit data through the second transmission channel Tx2. The data to be received is returned to the transceiver 40 through the second receive channel Rx2.

모뎀신호의 회귀를 위하여 제6모뎀스위치(SM6)를 닫아 제2모뎀송신채널(TMx2)을 제2모뎀수신채널(RMx2)에 연결하여 모뎀신호가 회귀 수신되도록 한다.In order to return the modem signal, the sixth modem switch (SM6) is closed to connect the second modem transmission channel (TMx2) to the second modem reception channel (RMx2) so that the modem signal is returned and received.

상기 UART(20)에서 직렬 데이터로 변환된 진단 데이터는 송수신부(40)를 통해 상대적으로 원거리 전송이 가능한 직렬 데이터로 변환되고, 제2송신채널(Tx2)을 통해 송신되며, 제2수신채널(Rx2)을 통해 회귀 수신된다.The diagnostic data converted into serial data in the UART 20 is converted into serial data capable of relatively long-distance transmission through the transceiver 40, transmitted through the second transmission channel Tx2, and the second reception channel ( Regression is received through Rx2).

회귀 수신된 진단 데이터는 UART(20)를 통해 병렬 데이터로 변환되어 데이터 처리부(10)에 제공되며, 데이터 처리부(10)는 송수신부(40)의 성능을 진단한다.The diagnostic data received by regression are converted into parallel data through the UART 20 and provided to the data processor 10, and the data processor 10 diagnoses the performance of the transceiver 40.

이때의 진단방법은 UART(20)의 진단 방법과 동일하므로, 구체적인 설명은 생략한다.Since the diagnosis method at this time is the same as that of the UART 20, a detailed description thereof will be omitted.

이처럼 본 발명은 진단 프로그램을 수행함에 있어서, 진단 모드를 나누어 UART(20)와 송수신부(40) 각각을 진단함으로써, 이상이 있는 기능 블록을 쉽게 검출할 수 있게 된다.As described above, in the execution of the diagnostic program according to the present invention, it is possible to easily detect abnormal function blocks by diagnosing each of the UART 20 and the transceiver 40 by dividing the diagnostic mode.

도 11은 본 발명의 다른 실시예에 따른 자체 진단 기능을 가지는 직렬 통신장치의 블록 구성도이다.11 is a block diagram of a serial communication device having a self-diagnosis function according to another embodiment of the present invention.

도 11에 도시한 바와 같이 도 1과 비교하여 제2스위칭부(50)를 생략하고 송수신부(40)의 내부 구성을 이용하여 송수신부(40)의 송신채널과 수신채널을 연결하여 직렬 데이터를 회귀 수신할 수 있다.As shown in FIG. 11, compared to FIG. 1, the second switching unit 50 is omitted and serial data is transmitted by connecting the transmission channel and the reception channel of the transmission and reception unit 40 using the internal configuration of the transmission and reception unit 40. Regression can be received.

구체적으로 진단 제어부(80)는 송신채널의 제어핀(DE, Driver Enable)과 수신채널의 제어핀(RE#, Receiver Enable)을 각각 온시켜 송수신부(40) 내부에서 송신채널의 데이터를 수신채널로 전달할 수 있다.Specifically, the diagnosis control unit 80 turns on the control pin (DE, Driver Enable) of the transmission channel and the control pin (RE#, Receiver Enable) of the reception channel, respectively, to transfer the data of the transmission channel to the reception channel in the transmission/reception unit 40. can be forwarded to

이처럼 회귀 수신된 직렬 데이터는 UART(20)를 통해 데이터 처리부(10)로 제공되며, 진단을 수행한다. The serial data received as a regression is provided to the data processing unit 10 through the UART 20, and diagnosis is performed.

이때의 진단 과정은 앞서 상세히 설명하였으므로 생략한다.Since the diagnosis process at this time has been described in detail above, it will be omitted.

도 12는 본 발명의 다른 실시예에 따른 자체 진단 기능을 가지는 직렬 통신 장치의 블록 구성도이다.12 is a block diagram of a serial communication device having a self-diagnosis function according to another embodiment of the present invention.

도 12에 도시한 바와 같이 제2스위칭부(50)를 사용하되, 송수신부(40)의 송신채널과 수신채널을 연결하는 스위치(SW1)만을 사용할 수 있다.As shown in FIG. 12, the second switching unit 50 is used, but only the switch SW1 connecting the transmission channel and the reception channel of the transmission and reception unit 40 can be used.

스위치(SW1)가 닫히면 송수신부(40)의 송신채널과 수신채널 사이에 루프가 형성되며, 송신채널의 직렬 데이터가 수신채널로 회귀 수신될 수 있다.When the switch SW1 is closed, a loop is formed between the transmission channel and the reception channel of the transceiver 40, and serial data of the transmission channel can be returned to and received through the reception channel.

이러한 구성은 스위치의 수를 상대적으로 줄여 진단 제어부(80)의 제어 구성을 상대적으로 단순화할 수 있다.This configuration can relatively simplify the control configuration of the diagnostic controller 80 by reducing the number of switches.

이상에서 본 발명에 따른 실시예들이 설명되었으나, 이는 예시적인 것에 불과하며, 당해 분야에서 통상적 지식을 가진 자라면 이로부터 다양한 변형 및 균등한 범위의 실시예가 가능하다는 점을 이해할 것이다. 따라서, 본 발명의 진정한 기술적 보호 범위는 다음의 청구범위에 의해서 정해져야 할 것이다.Embodiments according to the present invention have been described above, but these are merely examples, and those skilled in the art will understand that various modifications and embodiments of equivalent range are possible therefrom. Therefore, the true technical protection scope of the present invention should be defined by the following claims.

10:데이터 처리부 20:범용 비동기화 송수신기(UART)
30:제1스위칭부 40:송수신부
50:제2스위칭부 60:커넥터
70:저장부 80:진단 제어부
90:표시부
10: data processing unit 20: universal asynchronous transceiver (UART)
30: first switching unit 40: transmission and reception unit
50: second switching unit 60: connector
70: storage unit 80: diagnosis control unit
90: display part

Claims (7)

송신 데이터 또는 진단 데이터를 선택적으로 송신하며 진단 모드를 수행하는 데이터 처리부;
상기 데이터 처리부의 송신데이터를 직렬 데이터로 변환함과 아울러 수신데이터를 병렬 데이터로 변환하는 UART;
상기 UART에서 변환된 상기 진단 데이터를 선택적으로 UART의 수신단으로 회귀시키는 제1스위칭부;
상기 데이터 처리부의 진단 모드 수행에 대한 진단소프트웨어 및 상기 진단 데이터를 저장하는 저장부; 및
상기 진단소프트웨어의 실행에 따라 상기 제1스위칭부의 스위칭 상태를 제어하는 진단 제어부를 포함하는 자체 진단 기능을 가지는 비동기식 직렬 통신장치.
a data processing unit that selectively transmits transmission data or diagnostic data and performs a diagnosis mode;
a UART for converting the transmission data of the data processor into serial data and converting the received data into parallel data;
a first switching unit selectively returning the diagnostic data converted in the UART to a receiving end of the UART;
a storage unit for storing diagnostic software and the diagnostic data for performing the diagnostic mode of the data processing unit; and
An asynchronous serial communication device having a self-diagnosis function including a diagnosis control unit controlling a switching state of the first switching unit according to execution of the diagnosis software.
송신 데이터 또는 진단 데이터를 선택적으로 송신하며 진단 모드를 수행하는 데이터 처리부;
상기 데이터 처리부의 송신데이터를 직렬 데이터로 변환함과 아울러 수신데이터를 병렬 데이터로 변환하는 UART;
송신데이터를 수신하고 직렬 통신방식에 따라 변환하여 송신하며, 수신데이터를 수신하여 상기 UART로 제공하는 송수신부;
상기 송수신부에서 변환된 상기 진단 데이터를 선택적으로 상기 송수신부의 수신단으로 회귀시키는 제2스위칭부;
상기 데이터 처리부의 진단 모드 수행에 대한 진단소프트웨어 및 상기 진단 데이터를 저장하는 저장부; 및
상기 진단소프트웨어의 실행에 따라 상기 제2스위칭부의 스위칭 상태를 제어하는 진단 제어부를 포함하는 자체 진단 기능을 가지는 비동기식 직렬 통신장치.
a data processing unit that selectively transmits transmission data or diagnostic data and performs a diagnosis mode;
a UART for converting the transmission data of the data processor into serial data and converting the received data into parallel data;
a transceiver for receiving transmission data, converting and transmitting the data according to a serial communication method, and receiving and providing the received data to the UART;
a second switching unit that selectively returns the diagnostic data converted by the transceiver to a receiving end of the transceiver;
a storage unit for storing diagnostic software and the diagnostic data for performing the diagnostic mode of the data processing unit; and
An asynchronous serial communication device having a self-diagnosis function including a diagnosis control unit controlling a switching state of the second switching unit according to execution of the diagnosis software.
제1항에 있어서,
상기 제1스위칭부를 통해 송신데이터를 수신하고 직렬 통신방식에 따라 변환하여 커넥터로 출력함과 아울러 상기 커넥터에 수신된 수신데이터를 처리하여 상기 제1스위칭부를 통해 상기 UART로 제공하는 송수신부; 및
진단 모드에서 상기 진단 제어부의 스위칭 제어에 따라 상기 송수신부의 송신채널과 수신채널을 연결하는 제2스위칭부를 더 포함하는 자체 진단 기능을 가지는 비동기식 직렬 통신장치.
According to claim 1,
a transmission/reception unit that receives transmission data through the first switching unit, converts it according to a serial communication method, and outputs the data to a connector; and
The asynchronous serial communication device having a self-diagnosis function further comprising a second switching unit for connecting a transmission channel and a reception channel of the transmission and reception unit according to the switching control of the diagnosis control unit in a diagnosis mode.
제3항에 있어서,
상기 진단 제어부에서 실행되는 상기 진단소프트웨어는,
상기 제1스위칭부 또는 제2스위칭부를 제어하는 스위치 제어기능과,
진단데이터를 송신 및 수신하는 데이터 송수신 기능을 포함하고,
드라이버 또는 펌웨어에 빌트인된 것을 특징으로 하는 자체 진단 기능을 가지는 비동기식 직렬 통신장치.
According to claim 3,
The diagnostic software executed in the diagnostic control unit,
A switch control function for controlling the first switching unit or the second switching unit;
Including a data transmission and reception function for transmitting and receiving diagnostic data,
An asynchronous serial communication device having a self-diagnostic function, characterized by being built into the driver or firmware.
제4항에 있어서,
상기 진단소프트웨어는,
통신 설정을 자동으로 변경하는 통신 설정 변경 기능을 더 포함하는 자체 진단 기능을 가지는 비동기식 직렬 통신장치.
According to claim 4,
The diagnostic software,
An asynchronous serial communication device with a self-diagnosis function that further includes a communication setting change function that automatically changes communication settings.
제4항에 있어서,
상기 진단소프트웨어는,
상기 진단데이터를 송신하고 수신된 진단데이터를 비교하여 통신 성공률을 판단하는 성공률 판단 기능을 더 포함하는 자체 진단 기능을 가지는 비동기식 직렬 통신장치.
According to claim 4,
The diagnostic software,
An asynchronous serial communication device having a self-diagnosis function, further comprising a success rate determining function for transmitting the diagnostic data and comparing the received diagnostic data to determine a communication success rate.
제4항에 있어서,
상기 진단소프트웨어는,
통신 설정을 자동으로 변경하는 통신 설정 변경 기능; 및
상기 진단데이터를 송신하고 수신된 진단데이터를 비교하여 통신 성공률을 판단하는 성공률 판단 기능을 더 포함하는 자체 진단 기능을 가지는 비동기식 직렬 통신장치.
According to claim 4,
The diagnostic software,
Communication setting change function to automatically change communication settings; and
An asynchronous serial communication device having a self-diagnosis function, further comprising a success rate determining function for transmitting the diagnostic data and comparing the received diagnostic data to determine a communication success rate.
KR1020210082456A 2021-06-24 Asynchronous serial communication device with self-diagnostic function KR102663807B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020210082456A KR102663807B1 (en) 2021-06-24 Asynchronous serial communication device with self-diagnostic function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020210082456A KR102663807B1 (en) 2021-06-24 Asynchronous serial communication device with self-diagnostic function

Publications (2)

Publication Number Publication Date
KR20230000256A true KR20230000256A (en) 2023-01-02
KR102663807B1 KR102663807B1 (en) 2024-05-03

Family

ID=

Similar Documents

Publication Publication Date Title
US7945358B2 (en) System and method for testing the integrity of a vehicle testing/diagnostic system
US7810004B2 (en) Integrated circuit having a subordinate test interface
US7555353B2 (en) Input device of safety unit
US7681093B2 (en) Redundant acknowledgment in loopback entry
CN100511171C (en) Test approach for debugging serial port function with single board and system thereof
US9783138B2 (en) Vehicle control device
CN104077203A (en) Method and device for diagnosing computer hardware through USB interface
CN111698105B (en) Daisy chain communication fault diagnosis method and device and battery management system
CN103941625B (en) Can bus data transmission monitoring system
CN101206480B (en) Method and system for diagnosing external signal input/output units
CN101997737A (en) Method for positioning errors of serial port and system
KR102663807B1 (en) Asynchronous serial communication device with self-diagnostic function
KR20230000256A (en) Asynchronous serial communication device with self-diagnostic function
US5905744A (en) Test mode for multifunction PCI device
KR101171884B1 (en) Mornitoring device for serial communication interface
US6862647B1 (en) System and method for analyzing bus transactions
CN106921408B (en) Test system and method for serial bus communication circuit
CN110687363A (en) SFP port test fixture
CN113778796A (en) Method for monitoring serial port communication through USB
KR101539579B1 (en) Apparatus for detecting and processing rs232c serial communication hardware fault and the method thereof
RU185710U1 (en) ANALOGUE CONTROL MODULE
CN110943888A (en) Convenient full-function serial port detection method and device
KR100378129B1 (en) Touchscreen examination system including analytical function for protocol and method thereof
KR100853290B1 (en) Method and device for Bus controlling of mobile apparatus
WO2023013245A1 (en) Servo system and control method for servo system

Legal Events

Date Code Title Description
E701 Decision to grant or registration of patent right
GRNT Written decision to grant