KR20050060687A - A method for processing data by using uart communication - Google Patents

A method for processing data by using uart communication Download PDF

Info

Publication number
KR20050060687A
KR20050060687A KR1020030092387A KR20030092387A KR20050060687A KR 20050060687 A KR20050060687 A KR 20050060687A KR 1020030092387 A KR1020030092387 A KR 1020030092387A KR 20030092387 A KR20030092387 A KR 20030092387A KR 20050060687 A KR20050060687 A KR 20050060687A
Authority
KR
South Korea
Prior art keywords
data
message
layer
application layer
byte
Prior art date
Application number
KR1020030092387A
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 KR1020030092387A priority Critical patent/KR20050060687A/en
Publication of KR20050060687A publication Critical patent/KR20050060687A/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/14Relay systems
    • H04B7/15Active relay systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)

Abstract

본 발명은 UART(Universal Asynchronous Receiver Transmitter:범용 비동기 송수신기, 이하 "UART"라 함) 통신 방식을 이용하는 통신 시스템에서 데이터 처리에 관한 것으로, 특히 다양한 부가장치들과 UART 통신 방식을 이용하여 통신을 수행하는 기지국의 제어부에서 데이터 처리를 용이하게 할 수 있는 통신 시스템의 UART 통신 방식에서의 효율적인 데이터 처리 방법에 관한 것이다.BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to data processing in a communication system using a universal asynchronous receiver transmitter (UART), hereinafter referred to as " UART " The present invention relates to an efficient data processing method in a UART communication method of a communication system that can facilitate data processing in a control unit of a base station.

상기와 같이 제안된 본 발명인 UART 통신에 의한 데이터 처리 방법을 이루는 구성수단은, 기지국 프로세서(BSP)의 제어에 따라 기지국 부가장치들의 라우팅 패스 및 인터페이스 제공과 상태관리를 담당하는 프로세서 어셈블리 장치와 상기 부가장치 간에 UART 통신에 있어서, 상기 프로세서 어셈블리 장치 내부에서 어플리케이션 래이어(Layer)가 랭스(Length) 바이트가 포함된 데이터 메시지를 OS 래이어에게 전송하는 단계와; 상기 메시지를 전송받은 OS 래이어(Layer)에서 UART 통신 방법에 의하여 상기 부가장치에 전송하는 단계와; 상기 부가장치가 전달받은 메시지를 분석하여 해당 응답 메시지를 상기 프로세서 어셈블리 장치 내부의 OS 래이어(Layer)에게 전송하는 단계와; 상기 응답 메시지를 전달받은 OS 래이어(Layer)가 랭스(Length) 바이트를 포함한 데이터 메시지를 상기 어플리케이션 래이어(Layer)에게 전송하는 단계와; 상기 데이터 메시지를 수신한 어플리케이션 래이어(Layer)가 해당 동작을 처리하는 단계;를 포함하여 이루어진 것을 특징으로 한다.The constituent means constituting the data processing method according to the present invention UART communication proposed as described above, the processor assembly apparatus responsible for the routing path and interface provision and the state management of the base station attachments under the control of the base station processor (BSP) and the addition UART communication between devices, the method comprising: transmitting, by an application layer, a data message including a length byte to an OS layer in the processor assembly device; Transmitting the message to the additional device by a UART communication method in an OS layer receiving the message; Analyzing the message received by the additional device and transmitting a corresponding response message to an OS layer in the processor assembly device; An OS layer receiving the response message sends a data message including a length byte to the application layer; The application layer receiving the data message (Layer) processing the operation; characterized in that it comprises a.

Description

유에이알티 통신에 의한 데이터 처리 방법{A METHOD FOR PROCESSING DATA BY USING UART COMMUNICATION}A METHOD FOR PROCESSING DATA BY USING UART COMMUNICATION}

본 발명은 UART(Universal Asynchronous Receiver Transmitter:범용 비동기 송수신기, 이하 "UART"라 함) 통신 방식을 이용하는 통신 시스템에서 데이터 처리에 관한 것으로, 특히 다양한 부가장치들과 UART 통신 방식을 이용하여 통신을 수행하는 기지국의 제어부에서 데이터 처리를 용이하게 할 수 있는 통신 시스템의 UART 통신 방식에서의 효율적인 데이터 처리 방법에 관한 것이다.BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to data processing in a communication system using a universal asynchronous receiver transmitter (UART), hereinafter referred to as " UART " The present invention relates to an efficient data processing method in a UART communication method of a communication system that can facilitate data processing in a control unit of a base station.

종래의 UART 통신 방식을 이용하여 다양한 부가 장치들과 기지국의 제어부가 데이터 처리를 위한 통신을 수행하기 위해서는 이동통신 시스템의 기지국(Base Station Transceiver System, 이하 "기지국"이라 함) 장치를 구성하는 다수의 어셈블리 중에 기지국 프로세서(Base Station Processor: BSP, 이하 "기지국 프로세서"라 함)의 제어에 따라 기지국 부가장치들의 라우팅 패스 및 인터페이스 제공과 상태 관리를 담당하는 프로세서 어셈블리(BS Peripheral Control Processor Assembly, 이하 "프로세서 어셈블리 장치"라 함)와, 상기 프로세서 어셈블리 장치와 UART 통신 방식을 이용하여 통신을 수행하는 다양한 부가장치들로 구성되어 있다.In order to perform communication for data processing by various additional devices and a control unit of a base station using a conventional UART communication method, a plurality of base station transceiver (hereinafter, referred to as "base station") devices of a mobile communication system are configured. BS Peripheral Control Processor Assembly (hereinafter referred to as "Processor"), which is responsible for providing routing paths and interfaces and managing status of base station attachments under the control of a Base Station Processor (BSP). Assembly device ", and various additional devices that communicate with the processor assembly device using a UART communication scheme.

한편, 상기 프로세서 어셈블리 장치는 기지국의 기지국 프로세서에서 동작하는 상태블록 및 장애블록들과 인터페이스하는 어플리케이션(Application) 래이어(Layer, 이하 "래이어"라 함)와 UART 및 HDLC 통신방식을 이용하여 다양한 부가장치들과 인터페이스하는 OS 래이어(Layer, 이하 "래이어"라 함)로 구성된다.Meanwhile, the processor assembly apparatus may be configured by using an application layer (hereinafter referred to as a "layer") that interfaces with a state block and a failure block operating in a base station processor of a base station and UART and HDLC communication schemes. It consists of an OS layer (hereinafter referred to as "layer") that interfaces with additional devices.

상기와 같은 구성으로 이루어져 있는 프로세서 어셈블리 장치와 기지국의 부가장치들과 UART 통신 방식을 통한 데이터 처리 방법을 이루는 구성수단은,The constituent means constituting the data processing method through the UART communication method with the processor assembly device and the additional devices of the base station having the above configuration,

프로세서 어셈블리 장치 내의 어플리케이션 래이어에서 해당 데이터 메시지를 OS 래이어에 전송하는 단계와;Sending a corresponding data message to the OS layer by an application layer in the processor assembly device;

상기 데이터 메시지 전송과 동시에 어플리케이션 래이어가 타이머를 구동하는 단계와Driving a timer at the same time as the data message transmission;

상기 데이터 메시지를 전송받은 OS 래이어가 UART 통신 방법에 의하여 부가 장치에 메시지를 전송하는 단계와;An OS layer receiving the data message transmitting a message to an additional device by a UART communication method;

상기 데이터 메시지를 전송받은 부가장치가 전달받은 메시지에 대한 응답 메시지를 프로세서 어셈블리 장치 내의 OS 래이어에 전송하는 단계와;Transmitting, by the accessory device receiving the data message, a response message to the received message to an OS layer in a processor assembly device;

상기 응답 메시지를 전송받은 OS 래이어가 전송받는 데이터를 순서대로 버퍼에 저장하는 단계와;Storing the data received in order by the OS layer receiving the response message in a buffer;

상기 버퍼에 저장되는 중에 어플리케이션 래이어가 구동되는 타이머가 종료되는지 판단하는 단계와;Determining whether a timer for driving an application layer ends while being stored in the buffer;

상기 판단 결과, 종료되지 않는 경우에는 계속해서 응답 메시지 데이터를 버퍼에 저장하고, 타이머가 종료되는 경우에는 어플리케이션 래이어가 버퍼에 있는 응답 메시지를 가져와서 처리하는 단계;를 포함하여 이루어져 있다.If the determination result is not terminated, the response message data is continuously stored in the buffer, and when the timer expires, the application layer retrieves and processes the response message in the buffer.

이하, 첨부된 도면을 참조하여 상기와 같은 구성수단으로 되어 있는 종래의 UART 통신에 의한 데이터 처리 방법에 관한 작용과 바람직한 실시예를 상세하게 설명한다.Hereinafter, with reference to the accompanying drawings will be described in detail the operation and preferred embodiment of the conventional data processing method by the UART communication having the above configuration means.

도1은 종래의 UART 통신에 의한 데이터 처리 방법에 관한 절차도인데, 프로세서 어셈블리 장치 내부에서 동작하는 어플리케이션 래이어가 기지국의 부가장치들에게 특정 동작에 관한 응답 메시지를 요구하기 위하여 해당 메시지 포맷으로 되어 있는 데이터 메시지를 OS 래이어에 전송을 한다(S1).1 is a process diagram of a data processing method according to a conventional UART communication, in which an application layer operating inside a processor assembly device has a corresponding message format for requesting a response message for a specific operation from additional devices of a base station. The data message is transmitted to the OS layer (S1).

상기 어플리케이션 래이어가 전송하는 메시지 포맷은 도 2에서 보여주는 것처럼 1 바이트의 컨맨드(COMMAND) 부분과 수 바이트로 가변될 수 있는 데이터 부분과 1 바이트의 체크섬(CHECKSUM) 부분으로 이루어져 있다. 상기 데이터 부분은 전송되는 데이터 양에 따라 수 바이트로 가변될 수 있다.The message format transmitted by the application layer is composed of a command part of 1 byte, a data part that can be changed to several bytes, and a checksum part of 1 byte. The data portion may vary by a few bytes depending on the amount of data to be transmitted.

상기 어플리케이션 래이어가 OS 래이어에게 특정 메시지 포맷으로 데이터를 전송을 시작하면, 이와 동시에 실험에 의해 정해진 타이머를 구동시킨다(S2). 이와 같이 실험에 의한 타이머를 구동시키는 것은, 부가장치들로부터 응답 메시지가 전달되어 오는 경우 일정 시간 동안 버퍼에 쌓인 응답 메시지를 어플리케이션이 가져와서 처리하기 위함이다. 따라서, 상기 타이머의 세팅 값은 메시지 종류나 부가장치들의 종류에 따라 변경될 수 있고, 각 세팅되는 타이머의 값은 운용자가 실험에 의해서 정해지는 것이다.When the application layer starts to transmit data in a specific message format to the OS layer, at the same time, it drives a timer determined by experiment (S2). The driving of the timer according to the experiment is for the application to take and process the response message accumulated in the buffer for a predetermined time when the response message is transmitted from the additional devices. Therefore, the setting value of the timer can be changed according to the message type or the type of additional devices, and the value of each set timer is determined by the operator by experiment.

상기 타이머가 구동되고 어플리케이션 래이어로부터 OS 래이어로 해당 메시지가 전달되면, OS 래이어는 UART 통신 방식에 의하여 해당 부가장치들에게 메시지 데이터를 전송한다(S3). 이 때 전송되는 데이터는 1 바이트씩 나누어서 전송을 하고, 전송되는 1바이트의 데이터에는 1 비트의 스타트 비트를 더해서 전송되는 것이다. 상기와 같이 전송되는 과정에 상기 타이머는 계속해서 카운터를 실시하고 있을 것이고, 어플리케이션은 타이머의 카운터를 계속해서 감지하고 있을 것이다.When the timer is driven and the corresponding message is transferred from the application layer to the OS layer, the OS layer transmits message data to corresponding additional devices by the UART communication method (S3). In this case, data to be transmitted is transmitted by dividing by 1 byte, and 1 bit of start bit is added to 1 byte of data to be transmitted. The timer will continue to run counters in the process of being sent as described above, and the application will continue to detect the counter of the timer.

상기와 같이 1바이트의 데이터에 스타트 비트가 더해지는 데이터를 순차적으로 전송받은 부가장치는 이들을 조합 분석하여 해당 동작을 수행하고, 응답 메시지를 프로세서 어셈블리 장치 내의 OS 래이어에 전송한다(S4). 이 경우에도 부가장치는 응답 메시지를 1 바이트씩 전송을 하고, 전송되는 1 바이트 데이터에 스타트 비트를 더해서 모든 메시지를 전송하는 것이다.As described above, the additional device sequentially receiving data to which the start bit is added to one byte of data is combined and analyzed to perform a corresponding operation, and transmits a response message to the OS layer in the processor assembly device (S4). In this case, the additional device transmits the response message one byte at a time and transmits all the messages by adding a start bit to the one-byte data transmitted.

상기 부가장치로부터 1바이트 데이터와 여기에 부가되는 스타트 비트를 전달받은 OS 래이어는 전달되는 데이터에서 스타트 비트를 제거한 후, 이를 버퍼에 순차적으로 저장을 한다(S5). 이 때 버퍼에 순차적으로 데이터가 적재되는 과정에서 상기 프로세서 어셈블리 장치 내에 있는 어플리케이션 래이어에서는 구동된 타이머가 세팅된 카운터에 도달하여 종료하는지 검사를 수행하여야 한다(S6). The OS layer receiving the 1-byte data and the start bit added thereto from the additional device removes the start bit from the transferred data and sequentially stores the start bit in the buffer (S5). At this time, in the process of sequentially loading data into the buffer, the application layer in the processor assembly apparatus must check whether the driven timer reaches the set counter and ends (S6).

상기 어플리케이션 래이어가 카운터를 검사하여 타이머가 종료하지 않은 경우에는 OS 래어어는 들어오는 데이터에서 스타트 비트를 제거한 후, 계속해서 데이터를 버퍼에 적재를 수행하고, 상기 타이머가 종료하는 것으로 감지된 경우에는 상기 데이터가 적재된 버퍼에서 응답 메시지 데이터를 가져와서 처리한다(S7).If the application layer checks the counter and the timer has not expired, the OS layer removes the start bit from the incoming data, and then continuously loads the data into the buffer. The response message data is obtained from the buffer in which the data is loaded and processed (S7).

이상에서 설명한 종래의 UART 통신에 의한 데이터 처리 방법에 의하면, 어플리케이션 래이어에서 부가 장치들에게 메시지를 전달하면서 타이머를 구동하여 해당 타이머 세팅 카운터에 도달하면 OS 래이어에 적재된 데이터를 가져와서 처리하는 방식이므로, 타이머의 세팅 값을 알기 위하여 매번 부가장치들과 실제 연동을 통하여 적절한 타이머의 종료 시간을 정해야 하는 문제점이 있다.According to the data processing method according to the conventional UART communication described above, when the application layer reaches the timer setting counter by driving a timer while delivering a message to the additional devices, the data stored in the OS layer is retrieved and processed. Since there is a method, it is necessary to determine an appropriate end time of the timer through actual interworking with the additional devices each time in order to know the setting value of the timer.

또한, 빈번한 타이머 구동으로 인하여 프로세서 어셈블리 장치 내부의 부하가 증가하여 시스템 전반적인 성능이 떨어지게 만드는 단점이 있으며, 프로세서 어셈블리 장치와 부가장치들간의 UART 통신 구간의 부하가 높아지는 경우 실험에 의해 정해진 타이머의 세팅 시간 안에 데이터가 모두 들어오지 못하는 경우가 발생 할 수 있는 문제점이 있다. In addition, there is a disadvantage in that the overall load of the processor assembly device is increased due to frequent timer operation, which degrades the overall system performance.When the load of the UART communication section between the processor assembly device and the additional devices becomes high, the setting time of the timer determined by experiments is increased. There is a problem that may occur when all the data does not come in.

한편, 프로세서 어셈블리 장치에서 일정한 메시지를 전송하여 부가장치에게 응답 메시지를 요구하는 형태가 아니고, 부가장치에서 단독으로 이벤트를 발생시켜 특정 메시지를 프로세서 어셈블리 장치에 전송하는 경우에는 프로세서 어셈블리 장치에서 처리할 수 있는 방안이 없는 문제점이 발생한다.On the other hand, the processor assembly apparatus is not in the form of sending a certain message to request the response message to the additional device, the event is generated by the additional device alone to transmit a specific message to the processor assembly device can be processed by the processor assembly device. The problem arises that there is no solution.

본 발명은 상기와 같은 종래 기술의 문제점을 해결하기 위하여 창안된 것으로, 어플리케이션 래이어에서 특정 메시지 데이터를 전송하고자 하는 경우 데이터의 랭스(Length, 이하 "랭스"라 함)를 나타내는 랭스 바이트를 포함시켜 전송하고, OS 래이어에서 부가장치들로부터 UART 통신에 의하여 전송받은 응답 메시지 데이터를 전달받아 버퍼에 저장하면서 전달받은 랭스 값과 버퍼에 적재된 데이터의 랭스가 동일한 경우에 어플리케이션 래이어에 데이터를 전송하여 메시지가 처리될 수 있도록 하는 UART 통신에 의한 데이터 처리 방법을 제공하는 것을 그 목적으로 한다.The present invention was devised to solve the above-mentioned problems of the prior art, and includes a length byte indicating a length of data when a specific message data is to be transmitted in an application layer. Receives the response message data received by UART communication from the additional devices in the OS layer and stores it in the buffer, and transmits the data to the application layer when the received Lang value is the same as the loaded data. It is an object of the present invention to provide a data processing method by UART communication that allows a message to be processed.

상기와 같은 기술적 과제를 해결하기 위하여 제안된 본 발명인 UART 통신에 의한 데이터 처리 방법을 이루는 구성수단은,In order to solve the above technical problem, the constituent means of the data processing method according to the present invention proposed by the UART communication,

기지국 프로세서(BSP)의 제어에 따라 기지국 부가장치들의 라우팅 패스 및 인터페이스 제공과 상태관리를 담당하는 프로세서 어셈블리 장치와 상기 부가장치 간에 UART 통신에 있어서,In the UART communication between the processor assembly device responsible for providing the routing path and interface and the state management of the base station additional devices under the control of the base station processor (BSP),

상기 프로세서 어셈블리 장치 내부에서 어플리케이션 래이어(Layer)가 랭스(Length) 바이트가 포함된 데이터 메시지를 OS 래이어에게 전송하는 단계와;Transmitting, by an application layer, a data message including a length byte to an OS layer in the processor assembly device;

상기 메시지를 전송받은 OS 래이어(Layer)에서 UART 통신 방법에 의하여 상기 부가장치에 전송하는 단계와;Transmitting the message to the additional device by a UART communication method in an OS layer receiving the message;

상기 부가장치가 전달받은 메시지를 분석하여 해당 응답 메시지를 상기 프로세서 어셈블리 장치 내부의 OS 래이어(Layer)에게 전송하는 단계와;Analyzing the message received by the additional device and transmitting a corresponding response message to an OS layer in the processor assembly device;

상기 응답 메시지를 전달받은 OS 래이어(Layer)가 랭스(Length) 바이트를 포함한 데이터 메시지를 상기 어플리케이션 래이어(Layer)에게 전송하는 단계와;An OS layer receiving the response message sends a data message including a length byte to the application layer;

상기 데이터 메시지를 수신한 어플리케이션 래이어(Layer)가 해당 동작을 처리하는 단계;를 포함하여 이루어진 것을 특징으로 하고,And processing the operation by the application layer receiving the data message.

상기 OS 래이어(Layer)에서 상기 부가장치에 전송하는 단계는 입력받은 데이터 메시지를 1 바이트씩 나누어서 전송하고, 전송되는 1 바이트 메시지에는 스타트 비트를 더해서 전송하는 것을 특징으로 하며,In the transmitting of the OS layer to the additional device, the received data message is transmitted by dividing the received data message by 1 byte, and the start byte is added to the transmitted 1 byte message.

상기 응답 메시지를 전달받은 OS 래이어(Layer)가 랭스(Length) 바이트를 포함한 데이터 메시지를 상기 어플리케이션 래이어(Layer)에게 전송하는 단계는,The OS layer receiving the response message transmits a data message including a length byte to the application layer.

부가장치로부터 전달받은 랭스(Length) 바이트 값을 기억하는 과정과, 부가장치로부터 전달되는 데이터에서 스타트 비트를 제거한 후 버퍼에 순서대로 저장하는 과정과, 랭스 바이트 값과 버퍼의 랭스 값이 동일한지 판단하는 과정과, 상기 판단 결과 동일하지 않는 경우에는 계속해서 데이터를 버퍼에 저장하고, 동일한 경우에는 어플리케이션 래이어(Layer)에 전송하는 과정을 포함하여 이루어진 것을 특징으로 한다. The process of storing the length byte value received from the additional device, removing the start bit from the data transmitted from the additional device, and storing it in the buffer in order, and determining whether the length byte value and the length value of the buffer are the same. And if the result of the determination is not the same, continuously storing the data in a buffer and transmitting the same to the application layer.

이하, 첨부된 도면을 참조하여 상기와 같은 구성수단으로 이루어져 있는 본 발명인 UART 통신에 의한 데이터 처리 방법에 관한 작용과 바람직한 실시예를 상세하게 설명한다. Hereinafter, with reference to the accompanying drawings will be described in detail the operation and preferred embodiment of the data processing method by the UART communication of the present invention consisting of the above configuration means.

먼저, 본 발명인 UART 통신에 의한 데이터 처리 방법을 설명하기 위하여, 관련된 기지국 시스템의 구성에 대해서 설명하면, UART 통신 방식을 이용하여 다양한 부가 장치들과 기지국의 제어부가 데이터 처리를 위한 통신을 수행하기 위해서는 이동통신 시스템의 기지국(Base Station Transceiver System, 이하 "기지국"이라 함) 장치를 구성하는 다수의 어셈블리 중에 기지국 프로세서(Base Station Processor: BSP, 이하 "기지국 프로세서"라 함)의 제어에 따라 기지국 부가장치들의 라우팅 패스 및 인터페이스 제공과 상태 관리를 담당하는 프로세서 어셈블리(BS Peripheral Control Processor Assembly, 이하 "프로세서 어셈블리 장치"라 함)와, 상기 프로세서 어셈블리 장치와 UART 통신 방식을 이용하여 통신을 수행하는 다양한 부가장치들로 구성되어 있다.First, in order to describe the data processing method according to the UART communication of the present invention, the configuration of a related base station system is described. In order to perform communication for data processing by various additional devices and a control unit of a base station using a UART communication method, A base station additional device under the control of a base station processor (BSP), among a plurality of assemblies constituting a base station transceiver system (hereinafter referred to as a "base station") device of a mobile communication system. A processor assembly (BS Peripheral Control Processor Assembly, hereinafter referred to as a "processor assembly device") that is responsible for providing routing paths and interfaces and managing status of the devices, and various additional devices that perform communication using the UART communication method with the processor assembly device. Consists of

한편, 상기 프로세서 어셈블리 장치는 기지국의 기지국 프로세서에서 동작하는 상태블록 및 장애블록들과 인터페이스하는 어플리케이션(Application) 래이어(Layer, 이하 "래이어"라 함)와 UART 및 HDLC 통신방식을 이용하여 다양한 부가장치들과 인터페이스하는 OS 래이어(Layer, 이하 "래이어"라 함)로 구성된다.Meanwhile, the processor assembly apparatus may be configured by using an application layer (hereinafter referred to as a "layer") that interfaces with a state block and a failure block operating in a base station processor of a base station and UART and HDLC communication schemes. It consists of an OS layer (hereinafter referred to as "layer") that interfaces with additional devices.

도 3은 본 발명인 UART 통신에 의한 데이터 처리 방법에 관한 절차도를 보여주는 것인데, 이를 참조하여 데이터 처리 방법에 관한 구체적인 작용과 실시예를 설명한다.3 is a flowchart illustrating a data processing method according to the present invention, UART communication, with reference to this will be described a specific operation and embodiment of the data processing method.

먼저, 프로세서 어셈블리 장치 내부에 있는 어플리케이션(도면에서는 APP라 기재됨) 래이어가 종래와 다른 메시지 포맷을 가지는 랭스 바이트가 포함되어 있는 데이터 메시지를 특정 부가장치에게 전달하기 위하여 OS 래이어에게 전송한다(S10). 즉, 기지국의 기지국 프로세서의 제어에 따라 특정 부가장치에 데이터 메시지를 전달하기 위해서, 어플리케이션 래이어가 사전에 협의된 메시지 형태로 OS 래이어에게 전달한다. First, an application layer (hereinafter referred to as APP) layer in a processor assembly device transmits a data message including a length byte having a message format different from the conventional one to an OS layer in order to deliver it to a specific additional device. S10). That is, in order to deliver a data message to a specific additional device under the control of the base station processor of the base station, the application layer delivers it to the OS layer in the form of a previously negotiated message.

도 5는 상기 메시지 포맷을 보여주는 것인데, 1 바이트의 컨맨드(COMMAND) 부분과 1 바이트의 랭스(Length, 이하 "랭스"라 함) 부분과 가변될 수 있는 수 바이트의 데이터 부분과 1 바이트의 체크섬 부분으로 나누어져 있다. 상기와 같이 메시지 포맷은 종래와 달리 랭스 바이트가 추가되어 있는 구성으로 전송되어진다.FIG. 5 shows the message format, where a 1-byte COMMAND portion and a 1-byte length portion and a variable byte data portion and a 1-byte checksum are variable. It is divided into parts. As described above, the message format is transmitted in a configuration in which a length byte is added, unlike in the related art.

상기 어플리케이션 래이어로부터 랭스 바이트가 포함되어 있는 데이터 메시지를 전달받은 OS 래이어는 UART 통신 방법에 의하여 특정 부가장치에게 메시지 데이터를 전송한다(S20). 이 때 메시지 데이터를 전송하는 방식은 전달받은 메시지 데이터를 1 바이트씩 나누어서 부가장치에 전송을 한다. 한편, 전송과정에서 1바이트의 데이터에 1 비트의 스타트 비트를 더해서 전송을 한다.The OS layer receiving the data message including the length byte from the application layer transmits the message data to a specific additional device by the UART communication method (S20). In this case, the message data is transmitted by dividing the received message data by 1 byte to the additional device. Meanwhile, during the transmission process, one bit of start bit is added to one byte of data for transmission.

상기와 같이 OS 래이어로부터 데이터 메시지를 전송받은 부가장치는 전달받은 데이터를 모두 조합하고 이를 분석하여 해당 동작을 수행한 다음, 전달된 메시지에 대한 응답 메시지를 프로세서 어셈블리 장치에 포함되어 있는 상기 OS 래이어에 전송을 한다(S30). 이 경우에도 부가장치는 전송하는 응답 데이터 메시지를 1 바이트씩 데이터를 나누어 전송을 하고, 전송되는 1바이트의 데이터에 1 비트의 스타트 비트를 더해서 전송을 한다.As described above, the additional device that receives the data message from the OS layer combines all the received data, analyzes the received data, performs the corresponding operation, and then sends a response message to the delivered message in the processor assembly device. Subsequently, transmission is performed (S30). Even in this case, the additional device transmits the response data message to be transmitted by dividing the data one byte by one byte, and adds one bit start bit to one byte of data to be transmitted.

상기 부가장치로부터 전달되는 응답 데이터 메시지를 OS 래이어가 계속해서 전송받아 저장하였다가, 랭스 바이트가 포함되어 있는 응답 메시지 데이터를 프로세서 어셈블리 장치 내에 포함되어 있는 어플리케이션 래이어에 전송을 한다(S40). 상기 응답 메시지를 전송받은 OS 래이어가 랭스 바이트를 포함한 응답 메시지 데이터를 어플리케이션 래이어에 전송하는 단계는 일정한 절차에 따라 전송되는데 이에 대해서는 첨부된 도 4를 참조하여 계속해서 설명한다.The OS layer continuously receives and stores the response data message transmitted from the additional device, and transmits the response message data including the length byte to the application layer included in the processor assembly apparatus (S40). The OS layer receiving the response message transmits the response message data including the length byte to the application layer according to a predetermined procedure, which will be described with reference to FIG. 4.

OS 래이어는 부가장치로부터 전달되는 메시지 데이터 중 랭스 바이트에 기록되어 있는 값을 기억한다(S41). 이와 같이 랭스 바이트 값을 기억하는 이유는 본 발명이 종래와 다른 특징적 사항 중에 하나인 타이머를 사용하지 않고 어플리케이션 래이어가 OS 래이어로부터 응답 메시지를 전송받아 처리하기 위함이다.The OS layer stores a value recorded in the length byte of the message data transmitted from the additional device (S41). The reason for storing the length byte value as described above is that the application layer receives and processes a response message from the OS layer without using a timer, which is one of the characteristics of the present invention.

상기 랭스 바이트 값을 기억한 후에, OS 래이어는 부가장치로부터 들어오는 응답 데이터 메시지 중에 스타트 비트를 제거한 후에 데이터를 버퍼에 순서대로 저장하는 동작을 수행한다(S42). OS 래이어로부터 부가장치로 UART 통신에 의하여 데이터를 전송하는 방식과 동일하게 부가 장치로부터 OS 래이어로 데이터를 전송하는 경우에 스타트 비트를 더해서 전송하므로, 부가장치로부터 전송되는 데이터 중에 스타트 비트는 제거되고 순수 데이터만을 버퍼에 순서대로 저장하는 것이다.After storing the length byte value, the OS layer performs an operation of storing data in order after removing the start bit from the response data message received from the additional device (S42). In the same way that data is transmitted from the OS layer to the additional device by UART communication, when the data is transmitted from the additional device to the OS layer by adding the start bit, the start bit is removed from the data transmitted from the additional device. Only pure data is stored in order in the buffer.

상기 스타트 비트가 제거된 데이터가 버퍼에 저장되는 과정 중에 OS 래이어는 버퍼에 저장되는 데이터의 랭스를 계속해서 체크를 하면서, 기억하고 있는 랭스 바이트 값과 버퍼의 랭스를 비교하여 랭스 값이 동일한지 판단을 하여야 한다(S43). 랭스 값이 동일한 경우에 저장된 데이터를 어플리케이션 래이어에 전달하여 처리될 수 있도록 하기 위함이다. 즉, 종래와 달리 타이머를 사용하지 않고 일정 조건이 되면 응답 데이털 메시지를 어플리케이션 래이어에 전달하여 처리할 수 있는 것이다.During the process of removing the start bit from the buffer, the OS layer continuously checks the length of the data stored in the buffer and compares the stored length byte with the length of the buffer. Judgment must be made (S43). This is to deliver the stored data to the application layer when the length values are the same so that they can be processed. That is, unlike a conventional method, when a predetermined condition is used without using a timer, a response data message can be delivered to an application layer for processing.

상기와 같이 기억하고 있는 랭스 바이트 값과 버퍼 랭스를 비교하여 동일하지 않는 경우에는 계속해서 부가 장치로부터 들어오는 데이터 중에 스타트 비트를 제거한 후 버퍼에 순서대로 저장하고, 상기 비교결과 동일한 경우에는 OS 래이어가 버퍼에 저장되어 있는 랭스 바이트가 포함되어 있는 응답 메시지 데이터를 어플리케이션 래이어에 전송한다(S44).If the stored byte byte value and the buffer length are not equal to each other as described above, the start bit is continuously removed from the data input from the additional device, and then stored in the buffer in order. The response message data including the length byte stored in the buffer is transmitted to the application layer (S44).

상기와 같은 동작에 의하여 랭스 바이트가 포함되어 있는 응답 메시지 데이터가 OS 래이어로부터 어플리케이션 래이어로 전달되면, 어플리케이션 래이어는 상기 데이터를 처리하여 해당 동작을 수행하면 되는 것이다(S50).When the response message data including the length byte is transmitted from the OS layer to the application layer by the above operation, the application layer may process the data to perform the corresponding operation (S50).

이상에서 설명한 바와 같이, 본 발명이 종래 기술과 다른 가장 큰 특징은, 전달되는 메시지 포맷에 랭스 바이트를 포함시켜 전달한다는 것과, OS 래이어에서 어플리케이션 래이어에 응답 메시지 데이터를 전송하는 과정에서 랭스 바이트 값과 버퍼의 랭스를 비교하여 동일한 경우에 해당하면, 어플리케이션 래이어에 응답 데이터 메시지를 전달하여 처리하게 한다는 점이다. 즉, 타이머는 더 이상 불필요하게 되는 것이다.As described above, the biggest feature of the present invention is different from that of the prior art, in that it includes the length byte in the message format to be delivered, and the length byte in the process of transmitting the response message data from the OS layer to the application layer. If the value and the length of the buffer are the same, the response data message is passed to the application layer for processing. In other words, the timer is no longer needed.

상기와 같은 구성과 작용 그리고 바람직할 실시예를 가지는 본 발명인 UART 통신에 의한 데이터 처리 방법에 의하면, 부가장치에서 스스로 이벤트를 발생하여 메시지를 프로세서 어셈블리 장치에 전송하는 경우에도 전달받은 랭스 바이트의 값과 버퍼에 계속해서 쌓이는 데이터의 랭스를 비교하여 동일한 경우에는 어플리케이션 래이어에 데이터를 전송하여 처리할 수 있는 효과가 있다.According to the data processing method according to the present invention UART communication having the configuration and operation and the preferred embodiment as described above, even if the additional device generates an event itself and transmits a message to the processor assembly device, In the same case, the data can be transferred to the application layer for processing.

또한, 종래와 달리 실험에 의한 카운터 값을 세팅한 타이머가 불필요하므로 프로세서 어셈블리 장치의 내부 부하가 감소하고, 타이머 제거로 인한 설치 비용이 감소하는 효과가 있다.In addition, unlike the prior art, since the timer setting the counter value by experiment is unnecessary, the internal load of the processor assembly device is reduced, and the installation cost due to the timer removal is reduced.

한편, 프로세서 어셈블리 장치와 부가장치간의 UART 통신 구간에 부하가 증가하더라도 데이터 처리의 에러가 발생하지 않아(종래에는 타이머 세팅 시간 안에 해당 데이터가 모두 들어오지 않을 수 있어 에러 발생) UART 통신에 있어 보다 안정성과 신뢰성을 가질수 있고, 전체적으로 데이터 처리 속도가 향상되는 장점이 있다.On the other hand, even if the load is increased in the UART communication section between the processor assembly device and the additional device, an error of data processing does not occur (in the past, all of the data may not come in within the timer setting time). It can be reliable, and the overall data processing speed is improved.

도 1은 종래의 UART 통신에 의한 데이터 처리 방법에 관한 절차도이다.1 is a flowchart of a data processing method according to a conventional UART communication.

도 2는 종래의 데이터 전송에 있어 메시지 포맷의 구성도이다.2 is a block diagram of a message format in the conventional data transmission.

도 3은 본 발명인 UATR 통신에 의한 데이터 처리 방법에 관한 절차도이다.3 is a flowchart illustrating a data processing method using UATR communication according to the present invention.

도 4는 본 발명의 일 실시예에 해당하는 데이터 메시지 전송 절차이다.4 is a data message transmission procedure corresponding to an embodiment of the present invention.

도 5는 본 발명의 데이터 전송에 있어 메시지 포맷의 구성도이다.5 is a block diagram of a message format in the data transmission of the present invention.

Claims (3)

기지국 프로세서(BSP)의 제어에 따라 기지국 부가장치들의 라우팅 패스 및 인터페이스 제공과 상태관리를 담당하는 프로세서 어셈블리 장치와 상기 부가장치 간에 UART 통신에 있어서,In the UART communication between the processor assembly device responsible for providing the routing path and interface and the state management of the base station additional devices under the control of the base station processor (BSP), 상기 프로세서 어셈블리 장치 내부에서 어플리케이션 래이어(Layer)가 랭스(Length) 바이트가 포함된 데이터 메시지를 OS 래이어에게 전송하는 단계와;Transmitting, by an application layer, a data message including a length byte to an OS layer in the processor assembly device; 상기 메시지를 전송받은 OS 래이어(Layer)에서 UART 통신 방법에 의하여 상기 부가장치에 전송하는 단계와;Transmitting the message to the additional device by a UART communication method in an OS layer receiving the message; 상기 부가장치가 전달받은 메시지를 분석하여 해당 응답 메시지를 상기 프로세서 어셈블리 장치 내부의 OS 래이어(Layer)에게 전송하는 단계와;Analyzing the message received by the additional device and transmitting a corresponding response message to an OS layer in the processor assembly device; 상기 응답 메시지를 전달받은 OS 래이어(Layer)가 랭스(Length) 바이트를 포함한 데이터 메시지를 상기 어플리케이션 래이어(Layer)에게 전송하는 단계와;An OS layer receiving the response message sends a data message including a length byte to the application layer; 상기 데이터 메시지를 수신한 어플리케이션 래이어(Layer)가 해당 동작을 처리하는 단계;를 포함하여 이루어진 것을 특징으로 하는 UART 통신에 의한 데이터 처리 방법.The application layer receiving the data message (Layer) processing the operation; Data processing method according to the UART communication, characterized in that made. 청구항 1에 있어서,The method according to claim 1, 상기 OS 래이어(Layer)에서 상기 부가장치에 전송하는 단계는 입력받은 데이터 메시지를 1 바이트씩 나누어서 전송하고, 전송되는 1 바이트 메시지에는 스타트 비트를 더해서 전송하는 것을 특징으로 하는 UART 통신에 의한 데이터 처리 방법.In the transmitting of the OS layer to the additional device, the input data message is transmitted by dividing the received data message by 1 byte, and the start 1 bit is added to the transmitted 1 byte message and transmitted by UART communication. Way. 청구항 1에 있어서,The method according to claim 1, 상기 응답 메시지를 전달받은 OS 래이어(Layer)가 랭스(Length) 바이트를 포함한 데이터 메시지를 상기 어플리케이션 래이어(Layer)에게 전송하는 단계는,The OS layer receiving the response message transmits a data message including a length byte to the application layer. 부가장치로부터 전달받은 랭스(Length) 바이트 값을 기억하는 과정과, 부가장치로부터 전달되는 데이터에서 스타트 비트를 제거한 후 버퍼에 순서대로 저장하는 과정과, 랭스 바이트 값과 버퍼의 랭스 값이 동일한지 판단하는 과정과, 상기 판단 결과 동일하지 않는 경우에는 계속해서 데이터를 버퍼에 저장하고, 동일한 경우에는 어플리케이션 래이어(Layer)에 전송하는 과정을 포함하여 이루어진 것을 특징으로 하는 UART 통신에 의한 데이터 처리 방법.The process of storing the length byte value received from the additional device, removing the start bit from the data transmitted from the additional device, and storing it in the buffer in order, and determining whether the length byte value and the length value of the buffer are the same. And continuously storing data in a buffer when the result of the determination is not the same, and transmitting the data to an application layer in the case of the same.
KR1020030092387A 2003-12-17 2003-12-17 A method for processing data by using uart communication KR20050060687A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020030092387A KR20050060687A (en) 2003-12-17 2003-12-17 A method for processing data by using uart communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020030092387A KR20050060687A (en) 2003-12-17 2003-12-17 A method for processing data by using uart communication

Publications (1)

Publication Number Publication Date
KR20050060687A true KR20050060687A (en) 2005-06-22

Family

ID=37253368

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020030092387A KR20050060687A (en) 2003-12-17 2003-12-17 A method for processing data by using uart communication

Country Status (1)

Country Link
KR (1) KR20050060687A (en)

Similar Documents

Publication Publication Date Title
US7924767B2 (en) Control and status protocol
EP1635256A1 (en) Communication system and method for upgrade of user terminal software and user terminal upgraded by same
JP4786354B2 (en) iSCSI communication control method and storage system using the same
US20050128963A1 (en) Autonomous quality of service detection (AQD) in mobile equipment
CN115868184A (en) Accelerating control procedures on services oriented to BLE connections
EP1494423A2 (en) Dynamic Java push controlling apparatus and method
US20050047418A1 (en) Packet receiving method of mobile terminal
KR20050060687A (en) A method for processing data by using uart communication
US20130198548A1 (en) Apparatus and method for saving power of usb device
US5923443A (en) Infrared communication port fax software legacy flow control emulation
KR100261813B1 (en) Method for transmitting additional data using out-of channel of transport control protocol
KR20200143881A (en) Controller commnication device and method thereof
US20050162424A1 (en) Computer product, session management method, and session management apparatus
KR100460087B1 (en) Method for controlling a data traffic each of task in data transmit and receive
CN111107663B (en) Data transmission method and device, storage medium and electronic device
JPH03104348A (en) Flow control system
KR100394277B1 (en) Device and method diagnosing operation state of host in communication mobile station
JP2004289809A (en) Iscsi device and its communication control method
KR100672115B1 (en) System for controlling data link control network by remote and method thereof
KR20000027893A (en) Method for transmitting packet between two processors connected by hdlc communication channel
KR20000042800A (en) Method for downloading system codes of simple network management protocol(snmp) agent using snmp
KR100794415B1 (en) TCP disconnecting system and method be able to reduce exhaustion of mobile resources
JP3532765B2 (en) Transmission method
JP2000076158A (en) Application downloading resume method and system therefor
CN116048638A (en) Method, device, system and storage medium for detecting drive initialization

Legal Events

Date Code Title Description
N231 Notification of change of applicant
WITN Withdrawal due to no request for examination