KR19980068377A - Implementation method of information transmission protocol between host device and two-way receiving device - Google Patents

Implementation method of information transmission protocol between host device and two-way receiving device Download PDF

Info

Publication number
KR19980068377A
KR19980068377A KR1019970004923A KR19970004923A KR19980068377A KR 19980068377 A KR19980068377 A KR 19980068377A KR 1019970004923 A KR1019970004923 A KR 1019970004923A KR 19970004923 A KR19970004923 A KR 19970004923A KR 19980068377 A KR19980068377 A KR 19980068377A
Authority
KR
South Korea
Prior art keywords
information
received
response
transmission
host computer
Prior art date
Application number
KR1019970004923A
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 KR1019970004923A priority Critical patent/KR19980068377A/en
Publication of KR19980068377A publication Critical patent/KR19980068377A/en

Links

Landscapes

  • Detection And Prevention Of Errors In Transmission (AREA)
  • Communication Control (AREA)

Abstract

가. 청구범위에 기재된 발명이 속한 기술분야end. The technical field to which the invention described in the claims belongs

하위기기로부터 수신된 정보를 호스트컴퓨터와 같은 상위기기로 무손실 전송하기 위한 정보전송 프로토콜 구현방법에 관한 것이다.An information transmission protocol implementation method for lossless transmission of information received from a lower device to a higher device such as a host computer.

나. 발명이 해결하고자 하는 기술적 과제I. The technical problem to be solved by the invention

무손실 정보전송을 할 수 있는 상위기기와 양방향 수신장치간의 정보전송 프로토콜 구현방법을 제공함에 있다.An object of the present invention is to provide a method of implementing an information transmission protocol between a higher level device and a two-way receiving device capable of lossless information transmission.

다. 발명의 해결방법의 요지All. Summary of Solution of the Invention

하위기기로부터 수신된 정보를 상위기기로 전송하는 양방향 수신장치에 있어서, 하위기기로부터 수신된 정보를 상기 상위기기로 전송한후 수신되는 정보수신여부응답에 따라 상기 수신된 정보를 재전송하고, 상기 정보수신여부응답이 없으면 기 설정시간동안 캐리지 리턴전송에 따른 응답여부를 검사하여 캐리지 리턴전송에 따른 응답이 없는 경우 통신선로이상으로 정보전송이 실패되었음을 상기 상위기기로 통보함을 특징으로 한다.A two-way receiving device for transmitting information received from a lower device to a higher level device, comprising: transmitting the information received from the lower level device to the higher level device and retransmitting the received information according to a received information response. If there is no response to the reception, it is checked whether the response according to the carriage return transmission for a predetermined time period, and if there is no response according to the carriage return transmission to notify the host device that the information transmission failed over the communication line.

라. 발명의 중요한 용도la. Important uses of the invention

호스트컴퓨터와 양방향 통신을 수행하는 장치에 사용할 수 있다.It can be used for a device that performs bidirectional communication with a host computer.

Description

상위기기와 양방향 수신장치간의 정보전송 프로토콜 구현방법Implementation method of information transmission protocol between host device and two-way receiving device

본 발명은 호스트컴퓨터와 같은 상위기기와 양방향 수신장치간의 정보전송 프로토콜에 관한 것으로, 특히 하위기기로부터 수신된 정보를 호스트컴퓨터와 같은 상위기기로 무손실 전송하기 위한 정보전송 프로토콜 구현방법에 관한 것이다.The present invention relates to an information transmission protocol between an upper apparatus such as a host computer and a bidirectional receiving apparatus, and more particularly, to a method for implementing an information transmission protocol for losslessly transmitting information received from a lower apparatus to an upper apparatus such as a host computer.

도 1은 하위기기로부터 수신된 정보를 호스트컴퓨터로 전송하기 위한 양방향수신기의 접속예시도를 도시한 것이다. 도 1에서 호스트컴퓨터(10)와 단말기(30) 사이에 접속된 양방향 수신기(20)는 단말기(30)로부터 수신된 정보를 처리하는 마이컴과, 처리된 정보를 호스트컴퓨터(10)로 전송할 수 있는 범용비동기화 송수신기(UART)로 구성된다. 그리고 양방향 수신기(20)는 규약된 통신절차에 따라 호스트컴퓨터(10)와 단말기(30) 사이의 정보를 양방향으로 송수신한다. 그러나 종래의 호스트컴퓨터(10)에서는 양방향수신기(20)로부터 수신된 정보에 대한 에러체크기능이 없기 때문에 정보전송과정에서 정보손실이 발생하는 경우 이를 검증할 수 없는 문제점이 있었다.1 illustrates an example of a connection of a bidirectional receiver for transmitting information received from a lower device to a host computer. In FIG. 1, the bidirectional receiver 20 connected between the host computer 10 and the terminal 30 may transmit a microcomputer to process information received from the terminal 30, and transmit the processed information to the host computer 10. It consists of a universal asynchronous transceiver (UART). The bidirectional receiver 20 transmits and receives information between the host computer 10 and the terminal 30 in both directions in accordance with the prescribed communication procedure. However, in the conventional host computer 10, there is no error checking function for the information received from the bidirectional receiver 20, and thus there is a problem that cannot be verified when information loss occurs in the information transmission process.

따라서 본 발명의 목적은 상위기기와 하위기기간의 정보전송시 무손실 정보전송을 할 수 있는 상위기기와 양방향 수신장치간의 정보전송 프로토콜 구현방법을 제공함에 있다.Accordingly, an object of the present invention is to provide a method for implementing an information transmission protocol between an upper device and a bidirectional receiving device capable of transmitting lossless information when transmitting information between an upper device and a lower device.

상기 목적을 달성하기 위한 본 발명은 하위기기로부터 수신된 정보를 상위기기로 전송하는 양방향 수신장치에 있어서,In the present invention for achieving the above object in the two-way receiving apparatus for transmitting the information received from the lower device to the upper device,

하위기기로부터 수신된 정보를 상기 상위기기로 전송한후 수신되는 정보수신여부응답에 따라 상기 수신된 정보를 재전송하고, 상기 정보수신여부응답이 없으면 기 설정시간동안 캐리지 리턴전송에 따른 응답여부를 검사하여 캐리지 리턴전송에 따른 응답이 없는 경우 통신선로이상으로 정보전송이 실패되었음을 상기 상위기기로 통보함을 특징으로 한다.After transmitting the information received from the lower device to the upper device, retransmit the received information according to the received information response response, and if there is no response to receive the information, checks whether the response according to the carriage return transmission for a preset time. In case that there is no response according to the carriage return transmission, the higher level device is notified that the information transmission has failed over the communication line.

도 1은 하위기기로부터 수신된 정보를 호스트컴퓨터로 전송하기 위한 양방향수신기의 접속예시도.1 is a connection example of a bidirectional receiver for transmitting information received from a lower device to a host computer.

도 2는 본 발명의 일실시예에 따른 통신데이타 포맷도.2 is a communication data format diagram according to an embodiment of the present invention.

도 3은 본 발명의 일실시예에 따른 양방향 수신기(20)의 통신데이타 처리흐름도.3 is a communication data processing flowchart of the bidirectional receiver 20 according to an embodiment of the present invention.

이하 첨부한 도면을 참조하여 본 발명의 바람직한 일 실시예에 따른 동작을 상세히 설명한다. 하기 설명 및 도면에서 정보송신횟수, CR전송시간 및 구체적인 처리흐름등과 같은 많은 특정 상세들이 본 발명의 전반적인 이해를 제공하기 위해 나타나 있다. 이들 특정 상세들 없이 본 발명이 실시될 수 있다는 것은 이 기술분야에서 통상의 지식을 가진자에게 자명할 것이다. 그리고 본 발명의 요지를 불필요하게 흐릴 수 있는 공지 기능 및 구성에 대한 상세한 설명은 생략하기로 한다.Hereinafter, an operation according to an exemplary embodiment of the present invention will be described in detail with reference to the accompanying drawings. In the following description and drawings, many specific details are set forth in order to provide a thorough understanding of the present invention, such as information transmission times, CR transmission times, and specific processing flows. It will be apparent to those skilled in the art that the present invention may be practiced without these specific details. And detailed descriptions of well-known functions and configurations that may unnecessarily obscure the subject matter of the present invention will be omitted.

우선 본 발명의 일실시예에 따른 양방향 수신기(20)는 도 1에 도시된 바와 같이 호스트컴퓨터(10)와 단말기(30) 사이에 접속되며 그 구성은 하위기기인 단말기(30)로부터 수신된 정보를 처리하는 마이컴과, 처리된 정보를 호스트컴퓨터(10)로 전송할 수 있는 범용비동기화 송수신기(UART)를 포함한다. 그리고 본 발명의 일실시예에 따른 호스트컴퓨터(10)와 양방향 수신기(20)간의 통신규격은 하기 표 1과 같다.First, the bidirectional receiver 20 according to an embodiment of the present invention is connected between the host computer 10 and the terminal 30 as shown in FIG. 1, and the configuration thereof is information received from the terminal 30, which is a subordinate device. And a general purpose asynchronous transceiver (UART) capable of transmitting the processed information to the host computer 10. And the communication standard between the host computer 10 and the bidirectional receiver 20 according to an embodiment of the present invention is shown in Table 1.

[표 1]TABLE 1

도 2는 본 발명의 일실시예에 따른 통신데이타 포맷도를 도시한 것이다. 도 2를 참조하면, 본 발명의 일실시예에 따른 통신데이타는 정보 프레임의 시작을 나타내는 1바이트의 STX(Start Of Text)정보와, 가변될 수 있는 정보데이타와, 정보데이타에 대한 2바이트의 합계검사(Sum Check:S.C)정보와, 정보 프레임의 끝을 나타내는 CR(Carriage Return)정보로 구성된다.2 illustrates a communication data format according to an embodiment of the present invention. Referring to FIG. 2, communication data according to an embodiment of the present invention includes 1 byte of STX (Start Of Text) information indicating the start of an information frame, variable data information, and 2 bytes of information data. Sum Check (SC) information, and Carriage Return (CR) information indicating the end of the information frame.

도 3은 본 발명의 일실시예에 따른 양방향 수신기(20)의 통신데이타 처리흐름도를 도시한 것으로 이하 도 2 및 도 3을 참조하여 본 발명의 일실시예에 따른 호스트컴퓨터(10)와 양방향수신기(20)간의 정보전송 프로토콜 구현과정에 대해 설명하기로 한다.3 is a flowchart illustrating communication data processing of the bidirectional receiver 20 according to an embodiment of the present invention. Hereinafter, the host computer 10 and the bidirectional receiver according to an embodiment of the present invention will be described with reference to FIGS. 2 and 3. A description will be given of the implementation process of the information transfer protocol between (20).

우선 양방향 수신기(20)의 마이컴은 호스트컴퓨터(10)로 전송할 정보가 있으면 도 3의 40단계에서 도 2에 도시된 데이타 포맷으로 정보를 전송한다. 이후 상기 마이컴은 42단계에서 호스트컴퓨터(10)로부터 Y가 수신되는가를 검사한다. 상기 Y는 정보수신여부응답의 하나로서 정보수신이 정상적으로 완료되었음을 나타내는 정보수신완료정보를 나타낸다. 즉 상기 마이컴은 42단계에서 Y가 수신되면 62단계로 진행하여 해당 정보의 전송을 완료한후 40단계로 되돌아간다. 그러나 42단계에서 Y가 수신되지 않으면 마이컴은 44단계로 진행하여 호스트컴퓨터(10)로부터 N이 수신되었는가를 검사한다. 상기 N은 정보수신여부응답의 하나로서 정보수신에러를 나타내는 정보수신에러정보를 나타낸다. 하기 설명에서 이를 정보수신에러정보라 정의하기로 한다.. 따라서 마이컴은 42, 44단계를 통해 Y 혹은 N이 수신되지 않으면 46단계로 진행하여 다시 단말기(30)로부터 수신된 정보를 호스트컴퓨터(10)로 재 전송한후 48단계로 진행한다. 이후 마이컴은 48단계에서 다시 호스트컴퓨터(10)로부터 Y가 수신되는가를 검사하여 Y가 수신되면 62단계로 진행하고 그렇지 않으면 50단계로 진행하여 N이 수신되는가를 검사한다. 44단계와 50단계에서 각각 호스트컴퓨터(10)로부터 N이 수신되었다면 마이컴은 64단계로 진행하여 정보전송횟수가 설정치(3)를 초과하는가를 검사한다. 64단계의 검사결과 정보전송횟수가 설정치(3) 이하이면 다시 40단계로 되돌아가 상술한 40단계 내지 50단계를 반복수행하고 정보전송횟수가 설정치(3)를 초과하였으면 66단계로 진행한다. 이후 66단계에서 마이컴은 정보전송이 실패되었음을 상기 호스트컴퓨터로 통보함으로서 단말기(30)로부터 수신된 정보에 대한 긴급처리가 가능하도록 한다. 한편 마이컴은 단말기(30)로부터 수신된 정보의 재전송(46단계)후에도 Y 또는 N의 수신이 없으면 52단계에서 정보전송을 중지하고 호스트컴퓨터(10)로 CR을 전송하여 Y정보 혹은 N정보를 수신대기한다. 즉 마이컴은 CR전송후 54단계 내지 58단계를 통해 3분동안 호스트컴퓨터(10)로부터 Y 혹은 N이 수신되는가를 검사한다. 검사결과 Y 혹은 N이 수신되지 않으면 마이컴은 60단계로 진행하여 통신선로 이상으로 정보전송이 실패되었음을 호스트컴퓨터(10)에 통보함으로서 수신된 정보에 대한 긴급처리가 가능하도록 한다. 한편 54단계 혹은 56단계에서 각각 Y 혹은 N이 수신되었으면 마이컴은 다시 40단계로 되돌아가 호스트컴퓨터(10)와 양방향 수신기(20)간의 무손실 정보전송 프로토콜과정을 반복 수행한다.First, when there is information to be transmitted to the host computer 10, the microcomputer of the bidirectional receiver 20 transmits the information in the data format shown in FIG. 2 in step 40 of FIG. 3. Thereafter, the microcomputer determines whether Y is received from the host computer 10 in step 42. The Y indicates information reception completion information indicating that information reception is normally completed as one of the information reception response responses. In other words, if Y is received in step 42, the microcomputer proceeds to step 62 and returns to step 40 after completing transmission of the corresponding information. However, if Y is not received in step 42, the microcomputer proceeds to step 44 to check whether N is received from the host computer 10. N denotes information reception error information indicating an information reception error as one of the information reception response responses. In the following description, this will be defined as information reception error information. Therefore, if Y or N is not received in steps 42 and 44, the microcomputer proceeds to step 46 and returns the information received from the terminal 30 to the host computer 10. After resending, proceed to step 48. The microcomputer then checks whether Y is received from the host computer 10 in step 48. If Y is received, the microcomputer proceeds to step 62; otherwise, the microcomputer proceeds to step 50 to check whether N is received. If N is received from the host computer 10 in steps 44 and 50, respectively, the microcomputer proceeds to step 64 to check whether the number of information transmission times exceeds the set value (3). When the number of times of information transmission in step 64 is less than or equal to the set value (3), the process returns to step 40 again and repeats steps 40 to 50 described above, and proceeds to step 66 when the number of times of information transmission exceeds the set value (3). Thereafter, in step 66, the microcomputer notifies the host computer that the information transmission has failed to enable emergency processing of the information received from the terminal 30. On the other hand, if there is no reception of Y or N even after retransmission of information received from the terminal 30 (step 46), the microcomputer stops transmitting information in step 52 and transmits CR to the host computer 10 to receive Y information or N information. Wait That is, the microcomputer checks whether Y or N is received from the host computer 10 for three minutes through steps 54 to 58 after the CR transmission. If Y or N is not received as a result of the test, the microcomputer proceeds to step 60 to notify the host computer 10 that the information transmission has failed over the communication line, thereby enabling emergency processing of the received information. On the other hand, if Y or N is received in step 54 or 56 respectively, the microcomputer returns to step 40 and repeats the lossless information transmission protocol process between the host computer 10 and the bidirectional receiver 20.

상술한 바와 같이 본 발명은 단말기(30)로부터 수신된 정보를 호스트컴퓨터(10)로 전송한후에 정보수신에러정보를 수신하면 정보처리 이상으로 간주하여 정보의 재전송을 설정치까지 반복 수행하고, 이러한 경우 계속해서 정보수신에러정보가 수신되면 정보의 전송이 실패되었음을 호스트컴퓨터로 통보하여 수신된 정보에 대한 긴급처리가 가능하도록 한다. 한편 단말기(30)로부터 수신된 정보를 호스트컴퓨터(10)로 재전송한후에도 응답이 없으면 CR을 전송하고 기 설정시간동안 CR전송에 따른 응답이 없으면 통신선로이상으로 정보전송이 실패되었음을 호스트컴퓨터로 통보하여 단말기로부터 수신된 정보에 대한 긴급처리가 가능하도록함으로서 정보의 무손실 전송이 가능하게 된다.As described above, in the present invention, if information received error information is received after transmitting the information received from the terminal 30 to the host computer 10, it is regarded as an abnormality in information processing and repeats the retransmission of the information up to a set value. Therefore, when the information receiving error information is received, the host computer is notified that the transmission of the information has failed, so that the received information can be urgently processed. On the other hand, if there is no response even after retransmitting the information received from the terminal 30 to the host computer 10, the CR is transmitted. If there is no response according to the CR transmission for a preset time, the host computer is notified that the information transmission has failed over a communication line. By enabling the emergency processing of the information received from the terminal it is possible to lossless transmission of information.

상술한 바와 같이 본 발명은 하위기기(전송기 및 단말기)로부터 수신된 정보를 상위기기(호스트컴퓨터)로 전송함에 있어서 발생할 수 있는 정보전송의 실패를 최소화하고, 전송실패한 정보에 대해서는 긴급조치가 가능하도록 호스트컴퓨터로 통보함으로서 하위기기로부터 수신된 정보가 손실없이 상위기기로 전송될 수 있는 잇점이 있다.As described above, the present invention minimizes the failure of information transmission that may occur in transmitting information received from the lower devices (transmitter and terminal) to the upper device (host computer), so that emergency actions may be taken for the information that failed to be transmitted. By notifying the host computer, there is an advantage that the information received from the lower device can be transmitted to the higher device without loss.

Claims (4)

하위기기로부터 수신된 정보를 상위기기로 전송하는 양방향 수신장치에 있어서,In the bidirectional receiver for transmitting information received from the lower device to the upper device, 하위기기로부터 수신된 정보를 상기 상위기기로 전송한후 수신되는 정보수신여부응답에 따라 상기 수신된 정보를 재전송하고, 상기 정보수신여부응답이 없으면 기 설정시간동안 캐리지 리턴전송에 따른 응답여부를 검사하여 캐리지 리턴전송에 따른 응답이 없는 경우 통신선로이상으로 정보전송이 실패되었음을 상기 상위기기로 통보함을 특징으로 하는 상위기기와 양방향 수신장치간의 정보전송 프로토콜 구현방법.After transmitting the information received from the lower device to the upper device, retransmit the received information according to the received information response response, and if there is no response to receive the information, checks whether the response according to the carriage return transmission for a preset time. And notifying the upper device that the information transmission has failed due to a communication line error when there is no response according to the carriage return transmission. 제1항에 있어서, 상기 상위기기는 호스트컴퓨터임을 특징으로 하는 상위기기와 양방향 수신장치간의 정보전송 프로토콜 구현방법.The method of claim 1, wherein the host device is a host computer. 제1항에 있어서, 상기 정보수신여부응답이 정보수신에러정보를 나타내는 경우 정보수신완료정보가 수신될때까지 상기 하위기기로부터 수신된 정보를 기 설정치까지 반복하여 전송함을 특징으로 하는 상위기기와 양방향 수신장치간의 정보전송 프로토콜 구현방법.The method as claimed in claim 1, wherein when the information receiving response indicates information receiving error information, information received from the lower device is repeatedly transmitted to a preset value until information receiving completion information is received. Implementation method of information transmission protocol between receiving devices. 제3항에 있어서, 상기 하위기기로부터 수신된 정보를 기 설정치까지 반복하여 전송하여도 정보수신완료정보가 수신되지 않으면 정보처리에러로 정보전송이 실패되었음을 상기 상위기기로 통보하는 과정을 더 구비함을 특징으로 하는 상위기기와 양방향 수신장치간의 정보전송 프로토콜 구현방법.The method of claim 3, further comprising: notifying the higher level device that the information transmission failed due to an information processing error if the information reception completion information is not received even if the information received from the lower device is repeatedly transmitted to a preset value. Method for implementing the information transmission protocol between the higher-level device and the two-way receiving device characterized in that.
KR1019970004923A 1997-02-19 1997-02-19 Implementation method of information transmission protocol between host device and two-way receiving device KR19980068377A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019970004923A KR19980068377A (en) 1997-02-19 1997-02-19 Implementation method of information transmission protocol between host device and two-way receiving device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019970004923A KR19980068377A (en) 1997-02-19 1997-02-19 Implementation method of information transmission protocol between host device and two-way receiving device

Publications (1)

Publication Number Publication Date
KR19980068377A true KR19980068377A (en) 1998-10-15

Family

ID=65984117

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019970004923A KR19980068377A (en) 1997-02-19 1997-02-19 Implementation method of information transmission protocol between host device and two-way receiving device

Country Status (1)

Country Link
KR (1) KR19980068377A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100760421B1 (en) * 2006-02-13 2007-09-20 주식회사 팬택앤큐리텔 Method of message transmission via signalling channel, and control apparatus thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100760421B1 (en) * 2006-02-13 2007-09-20 주식회사 팬택앤큐리텔 Method of message transmission via signalling channel, and control apparatus thereof

Similar Documents

Publication Publication Date Title
EP0156557A2 (en) Transceiver for multi-drop local area networks
EP0539796A2 (en) Method for data collision detection in a multi-processor communication system
WO2005109216A1 (en) Bi-directional serial interface for communication control
CN111711609A (en) Protocol design method in serial port communication
EP0115348B1 (en) Remote initialization of interconnected communications stations
KR19980068377A (en) Implementation method of information transmission protocol between host device and two-way receiving device
US5388109A (en) Data communications device with resident link adapter
JPS5829244A (en) Data communication system
JPH05252165A (en) Satellite communication equipment
JPH01834A (en) Full duplex communication method
CN114244485B (en) Data management method for USB signal long-distance transmission
JP2601453Y2 (en) Serial communication system
KR920009376B1 (en) Method for transmitting serially between radio phones
JPS62109441A (en) Data transmission system
JPS6133037A (en) Optical transmitter
JP3000946B2 (en) Facsimile signal transmission / reception circuit
JPH03104582A (en) Robot control device using serial communication
JPS63133727A (en) Data retransmission system
CN117435533A (en) Chip and multi-chip system
CN116260675A (en) System and method for solving SPI master-slave switching interaction
JPH0771089B2 (en) Communications system
JPH07311728A (en) Simultaneous transmission system for data
JPH07297810A (en) Data transmission equipment
JPS58198941A (en) Simple data transmitter
KR20020034701A (en) Trust conviction method for lon talk home network

Legal Events

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