KR20090056465A - Serial data communication apparatus and method by precedence - Google Patents

Serial data communication apparatus and method by precedence Download PDF

Info

Publication number
KR20090056465A
KR20090056465A KR1020070123613A KR20070123613A KR20090056465A KR 20090056465 A KR20090056465 A KR 20090056465A KR 1020070123613 A KR1020070123613 A KR 1020070123613A KR 20070123613 A KR20070123613 A KR 20070123613A KR 20090056465 A KR20090056465 A KR 20090056465A
Authority
KR
South Korea
Prior art keywords
frame
response signal
operation code
code
response
Prior art date
Application number
KR1020070123613A
Other languages
Korean (ko)
Inventor
이승용
Original Assignee
주식회사 현대오토넷
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 주식회사 현대오토넷 filed Critical 주식회사 현대오토넷
Priority to KR1020070123613A priority Critical patent/KR20090056465A/en
Publication of KR20090056465A publication Critical patent/KR20090056465A/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/08Arrangements for detecting or preventing errors in the information received by repeating transmission, e.g. Verdan system
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/18Automatic repetition systems, e.g. Van Duuren systems
    • H04L1/1867Arrangements specially adapted for the transmitter end
    • H04L1/1887Scheduling and prioritising arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)

Abstract

A serial data communication device and a communicating method thereof are provided to grasp a frame with an error by informing a transmitter of the information about an operation code in a data receiver. The data is successively transmitted after storing the data in a frame unit(315). The reception of a response signal about the transmitted frame is inspected(317). Whether the response signal about the transmitted frame is the communication failure response signal is determined(319). If the response signal is the communication failure response signal, whether the response operation code is inserted into the communication failure response signal is determined(321). If the response operation code is inserted, the error in the transmitted frame is determined and the retransmission is performed(323). If the response signal is the communication success response signal, the general frame retransmission routine is performed(325).

Description

우선순위에 따른 직렬 데이터 통신 장치 및 방법{SERIAL DATA COMMUNICATION APPARATUS AND METHOD BY PRECEDENCE}Serial data communication device and method according to priority {SERIAL DATA COMMUNICATION APPARATUS AND METHOD BY PRECEDENCE}

본 발명은 직렬 데이터 통신 장치의 직렬 데이터 통신 방법에 관한 것으로, 특히 우선순위가 높은 동작 코드에 대해서 에러가 발생하는 경우 상기 동작 코드에 대한 프레임을 통신 성공 시까지 재전송하는 우선순위에 따른 직렬 데이터 통신 장치 및 방법에 관한 것이다.The present invention relates to a serial data communication method of a serial data communication apparatus. In particular, when an error occurs for an operation code having a high priority, serial data communication according to the priority of retransmitting a frame for the operation code until the communication is successful. An apparatus and method are provided.

일반적으로 전자장치들 상호간에는 데이터 통신을 수행한다. 전자장치들간 데이터 통신을 수행하기 위한 방법으로는 크게 직렬 데이터 통신 및 병렬 데이터 통신 방식이 있다. 직렬 데이터 통신으로는 RS-232, RS-485, USB, 캔(Controled Area Network: CAN) 등과 같은 많은 방식들이 있다.In general, data communication is performed between electronic devices. Methods for performing data communication between electronic devices are largely divided into serial data communication and parallel data communication. There are many ways of serial data communication, such as RS-232, RS-485, USB, and Controlled Area Network (CAN).

도 1은 일반적인 두 장치간의 데이터 통신 방식을 설명하기 위한 도면이다.1 is a view for explaining a data communication method between two general devices.

도 1을 참조하면, 제1직렬 통신 장치(1)는 전송할 데이터가 발생하면 프레임 단위로 버퍼링하고, 버퍼링된 프레임들을 순차적으로 제2직렬 통신 장치(2)로 전송한다. 그러면 제2직렬 통신 장치(2)는 수신되는 데이터에 대해 일정 단위(통상 프레임 단위)로 에러 여부를 검사하고 에러 여부에 따라 응답 신호를 제1직렬 통신 장치(1)로 전송한다. 즉 에러가 없을 경우 제2직렬 통신 장치(2)는 통신성공 응답신호(ACK)를 전송하고, 에러가 있을 경우 통신실패 응답신호(NACK)를 제1직렬 통신 장치(10)로 전송한다.Referring to FIG. 1, when data to be transmitted is generated, the first serial communication device 1 buffers each frame and transmits the buffered frames to the second serial communication device 2 in sequence. Then, the second serial communication device 2 checks the received data for an error in a predetermined unit (usually a frame unit) and transmits a response signal to the first serial communication device 1 according to the error. That is, if there is no error, the second serial communication device 2 transmits the communication success response signal ACK, and if there is an error, the second serial communication device 2 transmits the communication failure response signal NACK to the first serial communication device 10.

상기 응답신호에는 프레임의 헤드에 포함된 송신측 장치 정보 및 통신성공 또는 통신실패에 대한 정보를 포함한다. 도 1을 예로 들면, 제1직렬 통신장치(1)가 헤더가 0X0C인 프레임을 전송했다면, 제2직렬 통신장치(2)는 통신성공 응답신호로0XAC를 전송하고, 통신실패 응답신호로 0xCC로 전송한다.The response signal includes information on the transmitting apparatus included in the head of the frame and information on communication success or communication failure. For example, if the first serial communication device 1 has transmitted a frame having a header of 0X0C, the second serial communication device 2 transmits 0XAC as a communication success response signal and transmits a 0xCC as a communication failure response signal. send.

상기 응답신호가 통신실패 응답신호인 경우, 제1직렬 통신장치(2)는 재전송 방식이 따라 에러가 발생한 프레임을 재전송한다.When the response signal is a communication failure response signal, the first serial communication device 2 retransmits an error frame in accordance with the retransmission scheme.

상기 에러가 발생한 프레임을 재전송하는 방법으로는 통상적으로 세 가지의 방법이 있다. 하나는 제1직렬 통신 장치(1)가 미리 정해진 횟수만큼 재전송하고, 상기 정해진 횟수만큼 재전송 시도에도 불구하고 에러가 발생하면 해당 프레임을 폐기하는 방법이다. 다른 하나는 일정 시간 단위로 재전송을 수행하는 방법이다. 또 다른 하나는 발생된 데이터의 전체를 전송 후 에러가 발생한 프레임만을 재전송하는 방법이다.There are generally three methods for retransmitting the frame in which the error occurs. One is a method in which the first serial communication device 1 retransmits a predetermined number of times, and discards the corresponding frame if an error occurs despite the retransmission attempt for the predetermined number of times. Another method is to perform retransmission on a regular basis. Another method is to retransmit only an error frame after transmitting the entire generated data.

그러나 해당 프레임이 우선순위가 높은, 즉 빠른 처리를 필요로하는 동작코드(Operation Code: OPC)를 포함하는 프레임인 경우 상술한 첫 번째 방법은 일정 횟수의 재전송 시도 후에도 에러가 발생하면 에러가 발생한 프레임을 폐기하므로 우선순위가 높음에도 불구하고 처리되지 않는 문제점이 있다.However, if the corresponding frame is a frame having a high priority, that is, an operation code (OPC) that requires fast processing, the first method described above is a frame in which an error occurs if an error occurs even after a certain number of retransmission attempts. Because it is discarded, there is a problem that it is not processed despite the high priority.

또한, 두 번째 방법 및 세 번째 방법은 일정 시간 또는 데이터에 대한 프레 임들의 전송이 완료된 후에 에러가 발생한 프레임을 전송하므로 버퍼에 저장하지 않고 최종값만 보내는 우선순위가 높은 프레임, 즉 키값 및 비프음 등은 우선순위가 높음에도 불구하고 처리되지 않는 문제점이 있다.In addition, the second and third methods transmit frames in which an error occurs after the transmission of frames for a certain time or data is completed, so that the high-priority frames, that is, key values and beeps that send only the final value without storing them in a buffer, are transmitted. Etc. has a problem that is not processed despite the high priority.

또한, 상기한 방법들은 수신측 직렬 통신 장치가 송신측 직렬 통신 장치 정보 및 통신성공 및 실패 정보만을 포함하는 응답신호만을 받으므로 에러가 발생한 프레임이 이전 프레임의 에러인지 현재 프레임의 에러인지를 알 수 없는 문제점이 있다.In addition, the above-described methods receive only a response signal including only the sending serial communication device information and the communication success and failure information, so that it is possible to determine whether the error frame is the error of the previous frame or the current frame. There is no problem.

따라서, 본 발명의 목적은 우선순위가 높은 동작 코드에 대해서 에러가 발생하는 경우 상기 동작 코드에 대한 프레임을 통신 성공 시까지 재전송하는 우선순위에 따른 직렬 데이터 통신 장치 및 방법을 제공함에 있다.Accordingly, an object of the present invention is to provide an apparatus and method for serial data communication according to priority for retransmitting a frame for an operation code until a successful communication when an error occurs for an operation code having a high priority.

상기한 목적을 달성하기 위한 본 발명의 장치는; 직렬통신부와, 우선순위가 높은 동작 코드들 및 상기 동작 코드들 각각에 대한 응답 동작 코드를 정의하는 동작코드 변환 테이블을 저장하는 저장부와, 프레임 수신 시 에러가 발생하면 상기 프레임에 포함된 동작 코드가 상기 동작코드 변환 테이블에 있으면 상기 동작 코드에 대한 응답 동작코드를 통신실패 응답신호에 삽입하여 상기 직렬통신부를 통해 송신하고, 데이터 송신 시 프레임 단위로 상기 직렬통신부를 통해 송신하고 상기 직렬통신부를 통해 상기 프레임 단위 송신에 대한 통신실패 응답신호 수신 시 상기 실패 응답신호에 포함된 응답 동작 코드에 대응하는 코드가 상기 동작 코드 변환 테이블에 포함되어 있으면 상기 프레임을 재송신하는 제어부를 포함한다.The apparatus of the present invention for achieving the above object; A serial communication unit, a storage unit storing high priority operation codes and an operation code conversion table defining response operation codes for each of the operation codes, and an operation code included in the frame when an error occurs when receiving a frame. Is in the operation code conversion table, inserts a response action code for the action code into a communication failure response signal, and transmits the data through the serial communication unit. And a control unit for retransmitting the frame when a code corresponding to a response action code included in the failure response signal is included in the operation code conversion table when the communication failure response signal for the frame-by-frame transmission is received.

상기한 목적을 달성하기 위한 본 발명의 방법은; 데이터 발생 시 프레임 단위 저장 후 순차적으로 송신하는 과정과, 상기 송신된 프레임에 대한 응답신호가 통신실패 응답신호인지를 판단하는 과정과, 상기 응답신호가 통신실패 응답신호이면 상기 통신실패 응답신호에 응답 동작코드가 삽입되어 있는지를 판단하는 과정과, 응답 동작코드가 삽입되어 있으면 상기 송신한 프레임에 에러가 발생한 것으로 판단하여 재송신하는 과정을 포함한다.The method of the present invention for achieving the above object; When data is generated, storing the data in units of frames and sequentially transmitting the data; determining whether the response signal for the transmitted frame is a communication failure response signal; and if the response signal is a communication failure response signal, responds to the communication failure response signal. Determining whether an operation code is inserted, and retransmitting if an error has occurred in the transmitted frame if a response operation code is inserted.

상기한 목절을 달성하기 위한 본 발명의 다른 방법은; 프레임 수신 시 상기 프레임에 에러가 발생했는지를 검사하는 과정과, 상기 프레임에 에러가 발생하였으면 상기 프레임에 포함된 동작 코드와 동일한 동작 코드가 응답 동작 코드 변환 테이블에 있는지를 검사하는 과정과, 상기 응답 동작 코드 변환 테이블에 상기 수신된 동작 코드와 동일한 코드가 있으면 상기 동작 코드에 대응하는 응답 동작코드를 통신실패 응답신호에 삽입하여 송신하는 과정을 포함한다.Another method of the present invention for achieving the above paragraph; Checking whether an error has occurred in the frame when a frame is received; checking whether an action code identical to the action code included in the frame exists in a response action code conversion table if an error occurs in the frame; If there is a code identical to the received operation code in the operation code conversion table, inserting a response operation code corresponding to the operation code into a communication failure response signal and transmitting the same.

본 발명은 우선순위가 높은 동작 코드를 포함하는 프레임에 대해 에러가 발생하는 경우 해당 프레임의 재전송을 바로 시도하므로 수신측에서 우선순위가 높은 동작 코드에 대해 보다 빠른 데이터 처리를 수행할 수 있는 이점을 가진다. 즉 본 발명은 우선순위가 높은 동작에 대해서는 지연시간을 최소화하여 동작시킬 수 있는 이점을 가진다.According to the present invention, when an error occurs for a frame including an operation code having a high priority, the present invention attempts to retransmit the frame immediately so that a receiver can perform faster data processing for the operation code having a higher priority. Have That is, the present invention has an advantage that the operation can be performed by minimizing the delay time for the high priority operation.

또한, 본 발명은 데이터 수신측이 동작 코드에 대한 정보를 송신측으로 알려주므로 에러가 발생한 프레임을 보다 정확하게 알 수 있는 이점이 있다.In addition, the present invention has an advantage that the data receiving side informs the transmitting side of the information about the operation code, so that the frame in which the error occurs can be known more accurately.

이하, 본 발명에 따른 바람직한 실시 예를 첨부한 도면을 참조하여 상세히 설명한다. 하기의 설명에서는 본 발명에 따른 동작을 이해하는데 필요한 부분만이 설명되며 그 이외 부분의 설명은 본 발명의 요지를 벗어나지 않도록 생략될 것이라는 것을 유의하여야 한다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings. It should be noted that in the following description, only parts necessary for understanding the operation according to the present invention will be described, and descriptions of other parts will be omitted so as not to deviate from the gist of the present invention.

도 2는 본 발명에 따른 직렬 통신 장치의 구성을 나타낸 도면이다.2 is a diagram showing the configuration of a serial communication apparatus according to the present invention.

본 발명에 따른 직렬 통신 장치는 제어부(10)와 저장부(20)와 직렬 통신부(30)로 구성된다.The serial communication apparatus according to the present invention includes a control unit 10, a storage unit 20, and a serial communication unit 30.

저장부(20)는 본 발명에 따라 직렬 통신 장치의 전반적인 동작을 제어하기 위한 제어프로그램을 저장하는 영역과, 전송할 데이터를 프레임 단위로 버퍼링하는 버퍼링 영역 및 동작 코드들에 대한 우선순위 및 응답 동작 코드를 정의하는 동작코드 변환 테이블을 저장하는 영역으로 구성된다. 상기 응답 동작 코드란 기존의 응답신호의 실질적인 변경없이 우선순위가 높은 동작코드에 대한 정보를 포함하기 위한 코드이다. 또한, 상기 우선순위는 동작 코드 변환 테이블에서 제외될 수도 있다. 구체적으로, 우선순위가 높은, 즉 본 발명에 따른 재전송을 요청한 동작 코드들에 대해서만 응답 동작코드를 정의하여 구성할 수도 있다.The storage unit 20 stores a control program for controlling the overall operation of the serial communication apparatus according to the present invention, and a priority and response action code for the buffering area and the operation codes for buffering the data to be transmitted frame by frame. It consists of an area that stores the operation code conversion table that defines. The response operation code is a code for including information on an operation code having a high priority without substantially changing the existing response signal. In addition, the priority may be excluded from the operation code conversion table. Specifically, the response operation code may be defined and configured only for the operation codes having high priority, that is, requesting retransmission according to the present invention.

직렬통신부(30)는 직렬 데이터 통신 프로토콜에 따라 타 직렬 통신 장치와 직렬 데이터 통신을 수행한다.The serial communication unit 30 performs serial data communication with another serial communication device according to the serial data communication protocol.

제어부(10)는 데이터 발생 시 상기 데이터를 프레임 단위로 저장부(20)에 버퍼링한 후 직렬통신부(30)를 통해 순차적으로 전송하고, 전송된 프레임에 대한 응답 신호가 통신실패 응답신호이면 통신실패 응답신호에 포함되어 있는 응답 동작 코드가 있는지를 검사하여 응답 동작 코드가 있는 경우 상기 프레임을 재전송한다. When the data is generated, the controller 10 buffers the data in the storage unit 20 in units of frames and sequentially transmits the data through the serial communication unit 30. If the response signal for the transmitted frame is a communication failure response signal, communication failure It is checked whether there is a response action code included in the response signal, and if there is a response action code, the frame is retransmitted.

상기 프레임은 통상 헤더 필드와 동작코드(Operation Code: OPC) 필드와 데이터 필드와 체크섬(Check Sum) 필드로 구성된다. 상기 헤더 필드에는 데이터를 송신하는 직렬통신장치의 정보를 포함한다. 동작코드 필드는 동작 명령이 발생한 장치에 대한 코드, 예를 들어 상기 동작 코드는 비프(Beep) 키(Key)에 대한 코드를 가진다. 데이터 필드는 동작 코드에 대한 동작 명령을 포함한다. 예를 들어 상기 동작 코드가 비프 키에 대한 코드였다면 데이터 필드는 상기 비프 키에 대한 온/오프 명령이 기록된다. 체크섬 필드는 프레임의 에러를 체크하기 위한 체크섬이 기록된다. The frame typically consists of a header field, an operation code (OPC) field, a data field and a check sum field. The header field contains information of a serial communication device transmitting data. The operation code field has a code for the device where the operation command is generated, for example, the operation code has a code for a Beep Key. The data field contains an operation instruction for the operation code. For example, if the action code was a code for a beep key, the data field records an on / off command for the beep key. In the checksum field, a checksum for checking an error of a frame is recorded.

반대로, 제어부(10)는 직렬 통신부(30)를 통한 데이터 프레임 수신 시 에러 여부를 검사하고, 에러 발생 시 동작 코드와 저장부(20)에 저장되어 있는 미리 저장되어 있는 동작코드 변환 테이블을 참조하여 상기 수신된 프레임에 포함되어 있는 동작 코드에 대응하는 동작 코드가 있는지를 판단하고, 해당 동작 코드가 있는 경우 상기 동작 코드에 대응 응답 동작 코드를 통신실패 응답신호에 삽입하여 데이터 송신측으로 송신한다.On the contrary, the controller 10 checks whether an error occurs when receiving a data frame through the serial communication unit 30, and when an error occurs, referring to the operation code and the previously stored operation code conversion table stored in the storage unit 20. It is determined whether there is an operation code corresponding to the operation code included in the received frame, and if there is the operation code, the response code is inserted into the communication failure response signal and transmitted to the data transmission side.

도 3은 본 발명에 따른 직렬 데이터 통신 장치의 직렬 데이터 송신 방법을 나타낸 흐름도이다.3 is a flowchart illustrating a serial data transmission method of a serial data communication apparatus according to the present invention.

이하 도 3을 참조하면, 제어부(10)는 단계311에서 송신할 데이터가 발생하는지를 검사한다.3, the controller 10 checks whether data to be transmitted is generated in step 311.

송신할 데이터가 발생하면 제어부(10)는 단계313 데이터를 프레임 단위로 생성하여 저장부(20)에 버퍼링한다.When data to be transmitted is generated, the controller 10 generates step 313 data in frame units and buffers the data in the storage unit 20.

상기 데이터들에 대한 버퍼링이 완료되면 제어부(10)는 단계315에서 순차적으로 직렬 통신부(30)를 통해 송신한다.When buffering of the data is completed, the controller 10 sequentially transmits the data through the serial communication unit 30 in step 315.

상기 단계315에서 프레임이 송신되면 제어부(10)는 단계317에서 상기 송신된 프레임에 대한 응답신호가 수신되는지를 검사한다.When the frame is transmitted in step 315, the controller 10 checks whether a response signal for the transmitted frame is received in step 317.

단계317에서 응답신호가 수신되면 제어부(10)는 단계319로 진행하여 상기 응답신호가 통신실패 응답신호인지를 판단한다.If a response signal is received in step 317, the controller 10 proceeds to step 319 to determine whether the response signal is a communication failure response signal.

판단결과 통신성공 응답신호이면 제어부(10)는 상기 프레임에 단계325로 진행하여 일반적인 프레임 재전송 루틴을 수행하고 단계327로 진행한다.If it is determined that the communication success response signal is determined, the controller 10 proceeds to step 325 in the frame to perform a general frame retransmission routine, and proceeds to step 327.

단계327에서 제어부(10)는 상기 발생한 모든 데이터에 대한 프레임이 전송되었는지를 검사하고, 남아 있는 프레임이 있으면 단계315로 진행하여 단계315 이후의 과정을 반복 수행하고, 남아 있는 프레임이 없으면 데이터 송신 과정을 종료한다.In step 327, the controller 10 checks whether the frame for all the data has been transmitted, and if there is a remaining frame, the controller 10 proceeds to step 315 and repeats the process after step 315. To exit.

반면, 단계319에서의 판단 결과 응답신호가 통신실패 응답신호이면 제어부(10)는 단계321로 진행하여 저장부에 저장되어 있는 응답 동작 코드 테이블을 참조하여 통신실패 응답신호에 응답 동작 코드가 삽입되어 있는지를 판단한다.On the other hand, if the response signal is a communication failure response signal, the controller 10 proceeds to step 321 in which the response action code is inserted into the communication failure response signal with reference to the response action code table stored in the storage unit. Determine if there is.

판단결과, 통신실패 응답신호에 응답 동작 코드가 삽입되어 있으면 제어 부(10)는 단계323으로 진행하여 단계317에서 송신한 프레임을 재전송하고, 단계317로 돌아가 이후의 과정을 수행한다.As a result of the determination, if the response operation code is inserted in the communication failure response signal, the control unit 10 proceeds to step 323 to retransmit the frame transmitted in step 317, and returns to step 317 to perform the subsequent process.

도 4는 본 발명에 따른 직렬 데이터 통신 장치의 직렬 데이터 수신 방법을 나타낸 흐름도이다.4 is a flowchart illustrating a serial data receiving method of a serial data communication apparatus according to the present invention.

도 4를 참조하면 제어부(10)는 단계411에서 직렬 통신부(30)를 통해 프레임이 수신되는지를 검사한다.Referring to FIG. 4, the controller 10 determines whether a frame is received through the serial communication unit 30 in step 411.

단계411에서 프레임이 수신되면 제어부(10)는 단계417에서 수신된 프레임을 저장하고 단계415로 진행한다.If the frame is received in step 411, the controller 10 stores the received frame in step 417 and proceeds to step 415.

단계415에서 제어부(10)는 상기 저장된 프레임의 체크섬을 이용하여 프레임에 에러가 발생하였는지를 검사한다.In step 415, the controller 10 checks whether an error has occurred in the frame using the checksum of the stored frame.

상기 프레임에 에러가 발생하지 않았으면 제어부(10)는 단계421로 진행하여 통신성공 응답신호를 생성하여 직렬 통신부(30)를 통해 송신하고, 에러가 발생하였으면 단계417로 진행하여 수신된 프레임으로부터 동작 코드를 검출한다.If no error occurs in the frame, the controller 10 proceeds to step 421 to generate a communication success response signal and transmits it through the serial communication unit 30, and if an error occurs, proceeds to step 417 to operate from the received frame. Detect the code.

상기 동작 코드가 검출되면 제어부(10)는 단계419로 진행하여 상기 검출된 동작 코드가 저장부(20)에 저장되어 있는 응답 동작 코드 변환 테이블에 등록되어 있는지를 검사하여 우선순위가 높은 동작 코드인지를 판단한다. 이때 동작 코드의 우선순위가 높고 낮음은 응답 동작 코드 변환 테이블에 해당 동작 코드가 있는지 없는지에 의해 결정될 수 있다. 또한, 다른 실시 예에로 상기 우선순위의 높고 낮음은 상기 응답 동작 코드 변환 테이블이 모든 동작 코드들에 대해 우선순위 값과 그에 해당하는 응답 동작 코드를 가지고, 우선순위가 높고 낮음을 결정하기 위한 기준 우선순위에 의해 결정될 수도 있다.If the operation code is detected, the controller 10 proceeds to step 419 and checks whether the detected operation code is registered in the response operation code conversion table stored in the storage unit 20 to determine whether the operation code has a high priority. Judge. At this time, the priority of the action code is high and low may be determined by whether or not the corresponding action code in the response action code conversion table. Further, in another embodiment, the high and low of the priority is a criterion for determining that the response action code conversion table has a priority value and corresponding response action code for all action codes, and that the priority is high and low. It may be determined by priority.

상기 프레임의 동작코드가 우선순위가 낮은 동작 코드이면 제어부(10)는 단계423으로 진행하여 통신실패응답신호를 직렬 통신부(30)를 통해 송신하고, 우선순위가 높은 동작 코드이면 단계425로 진행하여 재전송 요청 응답신호, 상기 수신 프레임의 동작코드에 대응하는 응답 동작코드가 삽입된 통신실패 응답신호를 직렬통신부(30)를 통해 송신한다. If the operation code of the frame is a low priority code, the control unit 10 proceeds to step 423 to transmit a communication failure response signal through the serial communication unit 30, and if the high priority code corresponds to step 425. The communication failure response signal including the retransmission request response signal and the response operation code corresponding to the operation code of the received frame is transmitted through the serial communication unit 30.

한편 본 발명의 상세한 설명에서는 구체적인 실시 예에 관해 설명하였으나, 본 발명의 범위에서 벗어나지 않는 한도 내에서 여러 가지 변형이 가능함은 물론이다. 그러므로 본 발명의 범위는 설명된 실시 예에 국한되어 정해져서는 안 되며 후술하는 특허청구의 범위뿐만 아니라 이 특허청구의 범위와 균등한 것들에 의해 정해져야 한다.Meanwhile, in the detailed description of the present invention, specific embodiments have been described, but various modifications are possible without departing from the scope of the present invention. Therefore, the scope of the present invention should not be limited to the described embodiments, but should be determined not only by the scope of the following claims, but also by the equivalents of the claims.

도 1은 일반적인 직렬 데이터 통신을 설명하기 위한 도면1 is a diagram for explaining general serial data communication.

도 2는 본 발명에 따른 직렬 데이터 통신 장치의 구성을 나타낸 도면2 is a diagram showing the configuration of a serial data communication apparatus according to the present invention.

도 3은 본 발명에 따른 직렬 데이터 통신 장치의 직렬 데이터 송신 방법을 나타낸 흐름도3 is a flowchart illustrating a serial data transmission method of a serial data communication apparatus according to the present invention.

도 4는 본 발명에 따른 직렬 데이터 통신 장치의 직렬 데이터 수신 방법을 나타낸 흐름도4 is a flowchart illustrating a serial data receiving method of a serial data communication apparatus according to the present invention.

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

1: 제1직렬 통신 장치 2: 제2직렬 통신 장치1: first serial communication device 2: second serial communication device

10: 제어부 20: 저장부10: control unit 20: storage unit

30: 직렬 통신부30: serial communication unit

Claims (3)

직렬통신부와,Serial communication unit, 우선순위가 높은 동작 코드들 및 상기 동작 코드들 각각에 대한 응답 동작 코드를 정의하는 동작코드 변환 테이블을 저장하는 저장부와,A storage unit which stores operation code conversion tables defining operation codes having high priority and response operation codes for each of the operation codes; 프레임 수신 시 에러가 발생하면 상기 프레임에 포함된 동작 코드가 상기 동작코드 변환 테이블에 있으면 상기 동작 코드에 대한 응답 동작코드를 통신실패 응답신호에 삽입하여 상기 직렬통신부를 통해 송신하고, 데이터 송신 시 프레임 단위로 상기 직렬통신부를 통해 송신하고 상기 직렬통신부를 통해 상기 프레임 단위 송신에 대한 통신실패 응답신호 수신 시 상기 실패 응답신호에 포함된 응답 동작 코드에 대응하는 코드가 상기 동작 코드 변환 테이블에 포함되어 있으면 상기 프레임을 재송신하는 제어부를 포함하는 우선순위에 따른 직렬 데이터 통신장치.If an error occurs when receiving a frame, if the action code included in the frame is in the action code conversion table, the response action code for the action code is inserted into a communication failure response signal and transmitted through the serial communication unit. A code corresponding to a response action code included in the failure response signal when a communication failure response signal for the frame-by-frame transmission is received through the serial communication unit and the frame communication unit is included in the operation code conversion table. And a control unit for retransmitting the frame. 데이터 발생 시 프레임 단위 저장 후 순차적으로 송신하는 과정과,Transmitting data sequentially after frame unit storage when data is generated; 상기 송신된 프레임에 대한 응답신호가 통신실패 응답신호인지를 판단하는 과정과,Determining whether a response signal for the transmitted frame is a communication failure response signal; 상기 응답신호가 통신실패 응답신호이면 상기 통신실패 응답신호에 응답 동작코드가 삽입되어 있는지를 판단하는 과정과,Determining whether a response operation code is inserted into the communication failure response signal when the response signal is a communication failure response signal; 응답 동작코드가 삽입되어 있으면 상기 송신한 프레임에 에러가 발생한 것으로 판단하여 재송신하는 과정을 포함하는 우선순위에 따른 직렬 데이터 통신 방법.And retransmitting if a response operation code is inserted and determining that an error has occurred in the transmitted frame. 프레임 수신 시 상기 프레임에 에러가 발생했는지를 검사하는 과정과,Checking whether an error has occurred in the frame upon receiving the frame; 상기 프레임에 에러가 발생하였으면 상기 프레임에 포함된 동작 코드와 동일한 동작 코드가 응답 동작 코드 변환 테이블에 있는지를 검사하는 과정과,If an error occurs in the frame, checking whether an operation code identical to the operation code included in the frame exists in the response operation code conversion table; 상기 응답 동작 코드 변환 테이블에 상기 수신된 동작 코드와 동일한 코드가 있으면 상기 동작 코드에 대응하는 응답 동작코드를 통신실패 응답신호에 삽입하여 송신하는 과정을 포함하는 우선순위에 따른 직렬 데이터 통신 방법.And inserting a response operation code corresponding to the operation code into a communication failure response signal if the response operation code conversion table has the same code as the received operation code.
KR1020070123613A 2007-11-30 2007-11-30 Serial data communication apparatus and method by precedence KR20090056465A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020070123613A KR20090056465A (en) 2007-11-30 2007-11-30 Serial data communication apparatus and method by precedence

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020070123613A KR20090056465A (en) 2007-11-30 2007-11-30 Serial data communication apparatus and method by precedence

Publications (1)

Publication Number Publication Date
KR20090056465A true KR20090056465A (en) 2009-06-03

Family

ID=40987866

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020070123613A KR20090056465A (en) 2007-11-30 2007-11-30 Serial data communication apparatus and method by precedence

Country Status (1)

Country Link
KR (1) KR20090056465A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102114582B1 (en) * 2019-06-14 2020-05-22 벨로넥트 인코퍼레이션 Method for guaranteeing reliability of data transfer on a bus shared by a plurality of nodes and a device for said method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102114582B1 (en) * 2019-06-14 2020-05-22 벨로넥트 인코퍼레이션 Method for guaranteeing reliability of data transfer on a bus shared by a plurality of nodes and a device for said method

Similar Documents

Publication Publication Date Title
CN101223759B (en) Transmission device and information communication method
US5477550A (en) Method for communicating data using a modified SR-ARQ protocol
CA2466231A1 (en) Time-aware best-effort hole-filling retry method and system for network communications
JP4945564B2 (en) Mobile communication system and radio communication method
JP2007181127A (en) Communication device, communication method, and program
JPWO2007052719A1 (en) Retransmission control method and receiving apparatus
CN101364859A (en) Communication apparatus, transmitting method and receiving method
US20160218837A1 (en) Method and apparatus to use more transmission opportunities in a distributed network topology with limited harq processes
RU2010115272A (en) METHOD FOR PERFORMING A SURVEY PROCEDURE IN A WIRELESS COMMUNICATION SYSTEM
JP5020952B2 (en) Wireless communication apparatus and method used in mobile communication system
CN111385067B (en) Downlink data scheduling HARQ-ACK codebook feedback and generation method, device and medium
JP2009506599A (en) Data unit transmission method
KR20090015253A (en) Method and system of retransmitting of a data in a communication system
KR101769133B1 (en) Electronic device adaptively selecting tcp/r-udp and packet transmitting/receiving method thereof
RU2012113216A (en) WIRELESS COMMUNICATION DEVICE, WIRELESS COMMUNICATION CONTROL DEVICE, WIRELESS COMMUNICATION METHOD, COMPUTER MEDIA WITH WIRELESS COMMUNICATION PROGRAM, WIRELESS DEPARTMENT CONTROLLER
CN101601219A (en) The method and apparatus that is used for improved re-transmission
CN101667897A (en) Method, device and system for implementing retransmission on physical layer
JP4708982B2 (en) Retransmission control method and receiving apparatus
KR20090056465A (en) Serial data communication apparatus and method by precedence
US8924806B2 (en) User terminal and method for performing retransmission control
CN111294161A (en) HARQ feedback method and device, storage medium and terminal
RU2450466C1 (en) Method of transmitting information over communication channels and system for realising said method
TWI565257B (en) Component multicast protocol
JPWO2014155495A1 (en) Communication device and transmission device
JP4121123B2 (en) Mobile communication method and system

Legal Events

Date Code Title Description
WITN Withdrawal due to no request for examination