KR20040094541A - Serial communication protocol analizing function providing method for mobile terminal - Google Patents

Serial communication protocol analizing function providing method for mobile terminal Download PDF

Info

Publication number
KR20040094541A
KR20040094541A KR1020030028398A KR20030028398A KR20040094541A KR 20040094541 A KR20040094541 A KR 20040094541A KR 1020030028398 A KR1020030028398 A KR 1020030028398A KR 20030028398 A KR20030028398 A KR 20030028398A KR 20040094541 A KR20040094541 A KR 20040094541A
Authority
KR
South Korea
Prior art keywords
serial communication
computer
portable terminal
signal
data
Prior art date
Application number
KR1020030028398A
Other languages
Korean (ko)
Other versions
KR100504830B1 (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 KR10-2003-0028398A priority Critical patent/KR100504830B1/en
Publication of KR20040094541A publication Critical patent/KR20040094541A/en
Application granted granted Critical
Publication of KR100504830B1 publication Critical patent/KR100504830B1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/38Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
    • H04B1/40Circuits
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

PURPOSE: A method for supplying a serial communication protocol analysis function in a portable terminal is provided to further add a serial communication protocol analysis mode to a developer mode of a portable terminal, to obtain all signals transceived through serial communication in real time, thereby clearly displaying all signal states in the portable terminal. CONSTITUTION: A system enters a developer protocol display mode through a menu of a portable terminal connected with a computer through serial communication. The system displays an initial state of the serial communication on a screen, waits for a signal from the computer, and executes an inner data communication processing. When a signal for data communication processing results is transmitted to the computer, the system updates a currently set serial communication state, and displays the updated state for a user. If a signal is applied from the computer, the system updates the serial communication state by an interrupt, and displays the updated state for the user.

Description

휴대 단말기의 직렬 통신 프로토콜 분석 기능 제공방법{SERIAL COMMUNICATION PROTOCOL ANALIZING FUNCTION PROVIDING METHOD FOR MOBILE TERMINAL}SERIAL COMMUNICATION PROTOCOL ANALIZING FUNCTION PROVIDING METHOD FOR MOBILE TERMINAL}

본 발명은 휴대 단말기의 직렬 통신 프로토콜 분석 기능 제공방법에 관한 것으로, 특히 휴대 단말기와 컴퓨터 사이에 구성된 직렬 통신에서 발생하는 신호들의 상태 및 실제 데이터를 확인할 수 있는 프로토콜 분석 기능을 휴대 단말기에 내장하도록 하여 개발의 효율을 높이도록 한 휴대 단말기의 직렬 통신 프로토콜 분석 기능 제공방법에 관한 것이다.The present invention relates to a method for providing a serial communication protocol analysis function of a portable terminal. In particular, the portable terminal has a protocol analysis function for verifying the status and actual data of signals generated in the serial communication between the portable terminal and a computer. The present invention relates to a method for providing a serial communication protocol analysis function of a portable terminal to improve the development efficiency.

휴대 단말기의 기능이 다양해지면서 휴대 단말기는 더이상 통화만을 위한 기기가 아닌 다양한 멀티미디어 통합 기기로서의 기능이 강조되고 있다.As the functions of the portable terminals are diversified, the portable terminals are no longer merely devices for calling, but are being emphasized as various multimedia integrated devices.

따라서, 휴대 단말기에는 멀티미디어를 재생하는 기능은 물론이고, 이를 저장하거나 생성하는 기능 역시 부가되어 있다. 또한, 다양한 기능들의 급속한 변화에 대응하기 위해 휴대 단말기의 내용을 갱신하거나 펌웨어 성능을 개선할 수 있도록 휴대 단말기와 개인용 컴퓨터 사이의 통신 기능이 기본적으로 제공되고 있다.Accordingly, the portable terminal is not only capable of playing multimedia, but also storing or generating the multimedia. In addition, in order to cope with rapid changes in various functions, a communication function between the portable terminal and the personal computer is basically provided to update the contents of the portable terminal or improve the firmware performance.

이러한 데이터 통신 기능은 휴대 단말기의 데이터 포트와 개인용 컴퓨터의 표준 직렬 통신 포트 사이를 케이블로 연결하고 RS-232C 통신 방식으로 데이터를 상호 교환할 수 있도록하며, 이를 위해 휴대 단말기에는 RS-232C 통신을 담당할 하드웨어 UART(universal asynchronous receiver/transmitter) 및 내부 소프트웨어가 내장되고, 기본적으로 구비하는 UART로 연결되는 개인용 컴퓨터에는 전용 소프트웨어가 제공된다.This data communication function allows a cable connection between the data port of the mobile terminal and the standard serial communication port of a personal computer and allows data to be exchanged using the RS-232C communication method. A hardware UART (universal asynchronous receiver / transmitter) and internal software are built in, and the dedicated software is provided on a personal computer connected to the UART.

상기와 같이 휴대 단말기와 개인용 컴퓨터 사이의 직렬 통신과 이를 이용하여 휴대 단말기와 데이터를 교환하기위한 컴퓨터용 소프트웨어의 제공은 초기 휴대 단말기에서부터 제공되어온 기능이지만, 현재 사용되는 휴대 단말기의 기능이 급속도로 진보함에 따라 단순한 일정관리 및 전화번호부를 연동하거나 펌웨어를 갱신하기위한 용도로 사용되던 데이터 통신 기능은 사진이나 동영상의 교환이나 다양한 멀티미디어 파일의 교환은 물론이고 새로운 기능의 추가 및 적극적 활용을 위한 다양한 용도로 사용되고 있다. 따라서, 컴퓨터나 휴대 단말기에서 데이터 통신을 처리하는 소프트웨어의 처리 능력이 갈수록 확장되는 추세이고, 이를 위한 휴대 단말기와 컴퓨터 사이의 통신 소프트웨어를 개발하기 위해서는 정확한 데이터 송수신 내용 및 제어 신호의 정확한 송수신여부를 확인하는 것이 필수적이 되었다. 또한, 통신에 오류가 발생한 휴대 단말기를 수리하기위해 통신 오류의 원인을 파악하기 위해서도 통신 프로토콜의 분석은 중요한 수단이 된다.As described above, the serial communication between the portable terminal and the personal computer and the provision of computer software for exchanging data with the portable terminal using the same have been provided from the initial portable terminal, but the functions of the portable terminal currently used are rapidly advanced. As a result, data communication functions used for simple schedule management, phonebook interlocking, and firmware update are not only used for exchanging photos or videos or various multimedia files, but also for adding and actively utilizing new functions. It is used. Therefore, the processing power of the software for processing data communication in a computer or a portable terminal is gradually increasing, and in order to develop the communication software between the portable terminal and the computer for this, it is necessary to confirm the correct data transmission and reception and the correct transmission and reception of control signals. It became necessary. In addition, the analysis of the communication protocol is an important means to determine the cause of the communication error in order to repair the mobile terminal in which the communication error occurs.

도 1은 종래 휴대 단말기와 컴퓨터 사이의 직렬 데이터 통신을 설정하고 이를 통해 다양한 정보를 상호 연동하기위한 소프트웨어를 개발할때 데이터 송수신 내용 및 제어 신호를 직접 확인하기위한 구조를 보인 것이다. 여기서 컴퓨터는 개인용 컴퓨터(PC)이며 휴대 단말기와 연결되어 직렬 통신을 실시할 수 있는 다양한 대상 중에서 선택된 한 예이다.1 illustrates a structure for directly checking data transmission and reception contents and a control signal when developing serial data communication between a portable terminal and a computer, and developing software for interworking various types of information. In this case, the computer is a personal computer (PC) and is an example selected from various objects that can be connected to a portable terminal to perform serial communication.

도시된 바와 같이 컴퓨터(10)와 휴대 단말기(20) 사이에 상호 전송되는 데이터와 제어 신호를 확인하기위한 프로토콜 분석기(30)가 연결되어 있다. 실질적으로는 컴퓨터(10)와 휴대 단말기(20) 사이에 통신 케이블을 설치하고, 상기 통신 케이블의 신호를 추출하는 방식으로 송수신되는 신호들을 프로토콜 분석기(30)가 수집하여 그 정보를 개발자에게 보여주는 방식을 취한다.As shown, a protocol analyzer 30 for checking data and control signals transmitted between the computer 10 and the portable terminal 20 is connected. Substantially, a method of installing a communication cable between the computer 10 and the portable terminal 20, and extracting the signals of the communication cable by the protocol analyzer 30 and collecting the signals transmitted and received and showing the information to the developer. Take

직렬 통신은 그 특성 상 다수의 제어 신호와 연속되는 신호로 이루어지는 데이터 신호로 이루어지게 되는데, 송수신 되는 데이터의 경우 소정의 보레이트(baud rate)에 맞추어 신호를 분석하지 않는다면 단순한 일련의 온오프 신호로만 측정되기 때문에 오실로스코프나 로직 분석기를 통해서는 송수신되는 데이터를 직관적으로 알 수 없다. 따라서, 프로토콜 분석기(30)는 직렬 통신 케이블로 송수신되는 직렬 통신의 설정과 동일하게 설정되어 상기 직렬 통신 케이블의 신호를 분석한 후 실제로 송수신되는 데이터 및 제어 신호의 상태를 개발자에게 보여주게 된다.Serial communication consists of a data signal consisting of a plurality of control signals and a continuous signal due to its characteristics. In the case of data transmitted and received, only a series of on-off signals are measured unless the signal is analyzed according to a predetermined baud rate. This makes it impossible to intuitively know what data is being sent or received through an oscilloscope or logic analyzer. Therefore, the protocol analyzer 30 is set up in the same manner as the serial communication settings transmitted and received by the serial communication cable, and analyzes the signal of the serial communication cable and shows the state of the data and control signals actually transmitted and received.

따라서, 개발자는 상기 프로토콜 분석기(30)에 표시되는 정보와 실제 개발자가 의도한 정보가 일치하는지를 확인하는 것으로 실제 데이터가 송수신되었을때 그에 대응하는 정보가 올바른지를 쉽게 확인할 수 있게 된다. 또한, 각종 제어 신호의 적절한 제공과 그에 따른 송수신 데이터의 반응을 확인하는 것으로 손쉽게 오류를 확인하여 통신 소프트웨어의 개발을 가속화 할 수 있다.Therefore, the developer can easily check whether the information displayed on the protocol analyzer 30 and the information intended by the actual developer coincide with each other when the actual data is transmitted and received. In addition, it is possible to speed up the development of communication software by easily identifying errors by confirming the proper provision of various control signals and the response of the transmission / reception data accordingly.

하지만, 상기 프로토콜 분석기(30)는 기 설정된 통신 케이블에 병렬로 연결되어야 하므로 통신 케이블을 설치하기가 번거로우며 그 가격이 높다. 또한, 소프트웨어의 개발 뿐만 아니라 오류가 발생한 휴대 단말기의 원인을 규명하기 위해서도 사용되기 때문에 휴대 단말기 개발 업체에서는 고가의 장비를 전국의 수리센터에 비치하는데 비용이 발생하게 된다.However, since the protocol analyzer 30 must be connected in parallel to a preset communication cable, it is cumbersome to install a communication cable and its price is high. In addition, since it is used not only for the development of software but also for identifying the cause of a faulty portable terminal, the portable terminal developer has a cost to keep expensive equipment in repair centers nationwide.

또한, 프로토콜 분석기(30) 중에는 비용을 줄이기 위해 작은 크기의 표시부(예를 들어 16x4 LCD 패널)를 사용하기 때문에 한번에 모든 내용을 명확히 확인하기 어렵다.In addition, since the protocol analyzer 30 uses a small display unit (for example, a 16x4 LCD panel) to reduce costs, it is difficult to clearly check all the contents at once.

상기한 바와 같이 종래 휴대 단말기의 직렬 통신 프로토콜 분석을 위해서는 개별적인 프로토콜 분석기를 통신 케이블에 병렬로 연결해야하기 때문에 데이터 통신용 프로그램을 개발하거나 문제가 발생한 경우 이를 디버깅하기위해 고가의 장비를 복잡한 연결과정을 통해 설치해야하는 번거로움이 있으며, 제한된 표시부로 통신 상태를 제공하기 때문에 확인이 용이하지 않은 문제점이 있었다.As described above, in order to analyze a serial communication protocol of a conventional mobile terminal, an individual protocol analyzer needs to be connected in parallel to a communication cable. Therefore, in order to develop a data communication program or to debug a problem when a problem occurs, complicated equipment is connected through a complicated connection process. There is a hassle to install, and there is a problem that is not easy to check because it provides a communication state with a limited display.

상기와 같은 문제점을 감안한 본 발명은 휴대 단말기에 제공되는 개발자 모드에 직렬통신 프로토콜 분석 기능을 더 부가하여 송수신되는 데이터를 표시하고, 변화하는 제어 신호들의 상태를 제공하도록 함으로써 보다 풍부한 표시 능력을 가지는 휴대 단말기에 모든 신호 상태에 대한 명확한 표시가 가능하고, 추가적인 장비나 결선이 없이도 실질적으로 사용되는 통신 제어부를 통한 프로토콜 확인이 가능하기 때문에 용이성 및 정확도가 높고 추가적인 비용이 발생하지 않는 휴대 단말기의 직렬 통신 프로토콜 분석 기능 제공방법을 제시하는데 그 목적이 있다.In view of the above problems, the present invention further provides serial communication protocol analysis function to the developer mode provided in the mobile terminal to display the data transmitted and received, and to provide the status of the control signals to be changed. A clear display of all signal states on the terminal, and the protocol confirmation through the communication control that is practically used without additional equipment or wiring, enables easy and accurate and no additional cost. The purpose of this paper is to suggest a method of providing analytical functions.

도1은 종래 휴대 단말기와 컴퓨터 간의 직렬통신 프로토콜을 분석하기 위한 구조를 보인 블록도.1 is a block diagram showing a structure for analyzing a serial communication protocol between a conventional portable terminal and a computer.

도2는 본 발명 일 실시예의 휴대 단말기 내장 직렬통신 프로토콜 분석 기능부 구조.Figure 2 is a structure of a built-in portable terminal serial communication protocol analysis function of an embodiment of the present invention.

도3은 본 발명 일 실시예의 순서를 보인 순서도.Figure 3 is a flow chart showing the sequence of an embodiment of the present invention.

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

10: 컴퓨터 20: 휴대 단말기10: computer 20: mobile terminal

21: 인터럽트 검출부 22: 큐 제어부21: interrupt detection unit 22: queue control unit

23: UART 제어부 24: 통신(call) 제어부23: UART control unit 24: call control unit

25: 상태 판별부 26: 화면 제어부25: state determination unit 26: screen control unit

30: 프로토콜 분석기30: Protocol Analyzer

상기와 같은 목적을 달성하기위한 본 발명은, 컴퓨터와 직렬통신 방식으로 연결된 휴대 단말기의 메뉴를 통해 개발자 프로토콜 표시 모드로 진입하는 단계와; 직렬 통신의 초기 상태를 화면 상에 표시하고 컴퓨터로부터 신호를 대기함과 동시에 내부적인 데이터 통신 처리를 실시하는 단계와; 상기 휴대 단말기의 내부적인 데이터 통신 처리 결과 컴퓨터로 신호를 전송하는 경우 현재 설정되어 표시된 직렬통신 상태를 갱신하여 사용자에게 표시하는 단계와; 상기 컴퓨터로부터 신호가 인가되는 경우 발생하는 인터럽트에 의해 현재 설정되어 표시된 직렬통신 상태를 갱신하여 사용자에게 표시하는 단계를 포함하는 것을 특징으로 한다.The present invention for achieving the above object comprises the steps of entering the developer protocol display mode through the menu of the mobile terminal connected in a serial communication method with a computer; Displaying an initial state of serial communication on a screen and performing internal data communication processing while waiting for a signal from a computer; When the signal is transmitted to the computer as a result of the internal data communication processing of the portable terminal, updating and displaying the currently set and displayed serial communication status to the user; And updating the serial communication state currently set and displayed by the interrupt generated when the signal is applied from the computer and displaying the same to the user.

상기와 같은 본 발명을 첨부한 실시예들의 도면들을 참조하여 상세히 설명하면 다음과 같다.When described in detail with reference to the accompanying drawings of the present invention as described above.

도 2는 본 발명 일 실시예의 휴대 단말기 내장 직렬통신 프로토콜 분석 기능부 구조를 보인 것으로, 도시한 바와 같이 휴대 단말기(20)에 기본적으로 내장되어 있는 하드웨어 UART에 포함되는 인터럽트 검출부(21), 큐 제어부(22), UART 제어부(23) 그리고 통신(Call) 제어부(24)를 그대로 활용한다. 도시된 컴퓨터(10)는 개인용 컴퓨터, 노트북 컴퓨터, 개인 정보단말(PDA)를 비롯한 다른 휴대 단말기와 같이 휴대 단말기(20)와 직렬 통신을 실시할 수 있는 모든 디바이스일 수 있다는 것에 주의한다.2 is a block diagram illustrating a structure of a mobile terminal built-in serial communication protocol analysis function according to an exemplary embodiment of the present invention. As illustrated, an interrupt detector 21 and a queue controller included in a hardware UART built in the mobile terminal 20 are illustrated. (22), the UART control unit 23 and the communication (Call) control unit 24 is utilized as it is. Note that the illustrated computer 10 may be any device capable of serial communication with the portable terminal 20, such as a personal computer, a notebook computer, a personal digital assistant (PDA), and the like.

실질적으로 상기 각 부들(21~24)은 RS-232C 통신 방식을 지원하는 전용 UART 칩에 내장되어 있는 기본적인 구성부들로서, 휴대 단말기(20)에 적용된 칩에 내장되어 있는 기능부들이다.Substantially, the parts 21 to 24 are basic components embedded in a dedicated UART chip that supports an RS-232C communication scheme, and are functional units embedded in a chip applied to the portable terminal 20.

상기 인터럽트 검출부(21)는 외부로부터 인가되는 RS-232C 수신 데이터 및 제어 신호를 검출하여 이를 인터럽트원으로 하여 주 제어기에 알려주는 역할을 한다. 주 제어기에 인터럽트 발생을 알리면서 해당하는 인터럽트의 종류에 따라 내장된 레지스터의 플래그를 조작하기 때문에 휴대 단말기(20)의 주 제어기(미도시)는 인터럽트가 발생되게 되면 인터럽트 레지스터의 플래그를 통해 현재 제공된 신호의 종류를 알 수 있게 된다.The interrupt detector 21 detects RS-232C received data and control signals applied from the outside and informs the main controller of the interrupt source as the interrupt source. Since the main controller notifies the occurrence of an interrupt and operates a flag of a built-in register according to the type of the corresponding interrupt, the main controller (not shown) of the mobile terminal 20 currently provides the interrupt register when the interrupt is generated. The type of signal can be known.

이렇게 컴퓨터(10)로부터 인가되어 인터럽트를 발생시키는 제어원(실질적으로는 제어 핀)으로는 DTR(데이터 단말 대기), CTS(전송 준비 완료)가 있으며 데이터가 수신되는 경우 해당 데이터는 자동으로 큐제어부(22)로 제어되는 큐에 저장되며 그에 대한 인터럽트가 발생하게 된다.As a control source (actually, a control pin) applied from the computer 10 to generate an interrupt, there are DTR (waiting for data terminal) and CTS (ready to transmit), and when the data is received, the data is automatically queued. It is stored in the queue controlled by (22) and an interrupt thereof is generated.

따라서, 휴대 단말기(20)의 주 제어부는 상기 인터럽트 검출부(21)에 의한 인터럽트와 그 종류에 따라 변하는 플래그들을 통해 현재 통신포트의 제어핀 설정내용을 알 수 있으며, 수신되는 데이터가 있는 경우 상기 큐 제어부(22)를 통해 해당하는 데이터 내용을 확인할 수 있게 된다.Therefore, the main control unit of the portable terminal 20 can know the control pin setting contents of the current communication port through the interrupts by the interrupt detection unit 21 and the flags that change according to the type thereof. It is possible to check the corresponding data content through the control unit 22.

그 다음, 휴대 단말기(20)에서 컴퓨터(10)로 신호를 보내기 위해서는 내부적으로 데이터 통신을 위한 데이터 가공 및 제어 신호 설정과정을 통해 송신할 신호를 생성한다. 상기 생성되는 제어 신호로는 DSR(데이터 설정 준비), RFR(RTS: 수신대기), RI(호출 표시), DCD(반송파 검출) 신호가 있으며, 송신할 데이터는 TXD(데이터 송신) 포트를 통해 자동적으로 직렬화되어 송신된다. 상기 제어 신호 및 전송 데이터는 도시된 UART 제어부(23)에 의해 적절한 출력값과 형태로 변환되어 송신된다.Next, in order to send a signal from the portable terminal 20 to the computer 10, a signal to be transmitted is generated internally through a data processing and control signal setting process for data communication. The generated control signals include DSR (ready to set data), RFR (RTS: call waiting), RI (call indication) and DCD (carrier detection) signals, and data to be transmitted is automatically transmitted through the TXD (data transmission) port. Is serialized and transmitted. The control signal and the transmission data are converted into appropriate output values and forms by the illustrated UART control unit 23 and transmitted.

휴대 단말기(20)의 제어부에서 송신할 데이터를 처리한 후 통신 제어부(24)를 조작하여 적절한 제어 신호와 제어 데이터를 제공하기 때문에 휴대 단말기(20)는 전송할 내용을 알고 있으며, 그 상태를 상기 UART 제어부(23)로부터 확인하거나 혹은 확인하지 않고 그 제어 신호 및 데이터를 인가하는 시점에서 송신한 것으로 간주할 수 있다.Since the control unit of the portable terminal 20 processes the data to be transmitted and then operates the communication control unit 24 to provide appropriate control signals and control data, the portable terminal 20 knows the contents to be transmitted, and the state of the UART It can be considered that the control signal and the data are transmitted at the time of applying the control signal and data without confirming or confirming the result.

따라서, 상기 상태 판별부(25)는 별도의 하드웨어가 아닌 휴대 단말기(20)의주 제어부에서 직렬 통신 신호들을 확인하여 항상 최신의 통신 제어 신호 상태와 송수신 데이터를 획득하도록 한 소프트웨어 루틴일 수 있다.Thus, the state determination unit 25 may be a software routine that always checks the serial communication signals from the main control unit of the portable terminal 20 to obtain the latest communication control signal state and transmit / receive data rather than separate hardware.

상기 상태 판별부(25)에 의해 항상 최신의 제어신호 상태와 송수신 데이터가 화면 제어부(26)에 제공되어 사용자가 인지할 수 있도록 표시되면 사용자는 현재 직렬 통신의 상태를 확인할 수 있게 된다. 휴대 단말기(20)의 표시부 성능은 일반적인 문자 LCD 등에 비해 상대적으로 높기 때문에 보다 많은 정보를 보기 좋게 배치할 수 있으며, 최근에 사용되는 컬러 표시부를 이용하게 되면 한눈에 알아볼 수 있는 컬러로 현재 통신 상태를 사용자에게 제공할 수 있다.When the state determining unit 25 always provides the latest control signal state and transmission / reception data to the screen control unit 26 so that the user can recognize the state, the user can check the state of the current serial communication. The performance of the display unit of the mobile terminal 20 is relatively high compared to a general character LCD, so that more information can be arranged to look good, and when the recently used color display unit is used, the current communication state can be displayed at a glance. Can be provided to the user.

상기와 같은 구성을 통해 설계자는 휴대 단말기만으로 직렬통신 프로토콜을 시각적으로 확인할 수 있게 되는데, 이를 위해서는 휴대 단말기에 숨겨져 있는 개발자 모드에 직렬통신 프로토콜 표시모드를 더 부가해야 한다. 상기 모드에서는 전술한 바와 같은 최신의 통신 상태를 지속적으로 갱신하면서 사용자에게 표시하게 된다.Through the above configuration, the designer can visually check the serial communication protocol using only the mobile terminal. To this end, the serial communication protocol display mode should be further added to the developer mode hidden in the mobile terminal. In this mode, the latest communication status as described above is continuously updated and displayed to the user.

도 3은 본 발명의 일 실시예를 보이는 간략한 순서도로서, 휴대 단말기가 컴퓨터와 직렬통신 포트로 연결된 상태에서 본 발명을 수행하는 순서를 나타낸 것이다.3 is a simplified flowchart illustrating an embodiment of the present invention, showing a procedure of carrying out the present invention in a state in which a portable terminal is connected to a computer through a serial communication port.

먼저, 직렬 통신을 위해 RS-232 통신 신호들의 상태를 초기화 하는데, 송수신 큐를 비우고 각 제어 신호를 초기 상태로 설정한다.First, it initializes the state of RS-232 communication signals for serial communication. It clears the transmission / reception queue and sets each control signal to the initial state.

만일 사용자가 메뉴를 통해 숨겨진 개발자 모드를 선택하고 그 중에서 본 발명을 위해 새롭게 추가된 메뉴인 프로토콜 표시 모드(개발자 표시 모드)를 선택한경우 초기 상태에서의 각 제어신호 상태와 송수신 데이터값을 화면에 표시한다. 상기 메뉴가 선택되지 않은 경우 일반적인 대기 화면을 유지하면서 실질적인 데이터 통신을 대기한다.If the user selects a hidden developer mode through the menu and selects a protocol display mode (developer display mode), which is a newly added menu, the control signal state and the transmission / reception data value of the initial state are displayed on the screen. do. If the menu is not selected, a normal data communication is held while maintaining a normal standby screen.

이제, 휴대 단말기와 컴퓨터 사이의 직렬 통신은 상호간의 송수신 신호의 발생에 따른 병렬 동작으로 나뉘어지게 된다.Now, the serial communication between the portable terminal and the computer is divided into parallel operations according to the generation of the transmission and reception signals between each other.

먼저, 휴대 단말기에서 컴퓨터로 제어 신호 및 데이터를 송신하는 경우를 살펴보면, 휴대 단말기의 내부적인 처리 과정으로 컴퓨터에 전송할 데이터 혹은 그에 따른 제어 신호를 생성한다. 그 다음, 컴퓨터로 전송할 제어 신호를 발생시키는 경우 현재 통신 제어 상태와 비교하여 상이한 경우라면 통신 제어 상태를 갱신하게 되며 현재 휴대 단말기의 상태가 개발자 표시 모드(프로토콜 표시 모드)인 경우라면 갱신된 상태를 화면 상에 표시하고 개발자 표시 모드가 아닌 경우 일반적인 데이터 통신에 따른 화면을 표시한다.First, a case in which a control signal and data are transmitted from a portable terminal to a computer will be described. An internal processing of the portable terminal generates data to be transmitted to the computer or a control signal according thereto. Next, in case of generating a control signal to be transmitted to the computer, the communication control state is updated if it is different from the current communication control state. If the state of the mobile terminal is in the developer display mode (protocol display mode), the updated state is updated. If it is displayed on the screen and not in the developer display mode, the screen is displayed according to general data communication.

만일 컴퓨터로 전송하는 신호가 데이터라면 이는 현재 단말기의 상태에 따라 개발자 표시 모드에서 지원하는 상태 표시 화면이 갱신되면서 표시되거나 일반적인 데이터 통신에 따른 화면이 표시된다.If the signal transmitted to the computer is data, it is displayed while the status display screen supported by the developer display mode is updated according to the current terminal state, or the screen according to general data communication is displayed.

즉, 개발자 표시모드가 설정된 상태에서 휴대 단말기에서 컴퓨터로 신호를 전송하는 경우 제어 신호의 발생으로 인한 상태 변경과 전송되는 데이터를 상태 표시 화면에 출력한다. 이러한 제어 신호의 발생과 전송되는 데이터의 내용은 휴대 단말기가 인지하고 있기 때문에 이를 적절히 표시해줄 수 있다.That is, when a signal is transmitted from the portable terminal to the computer while the developer display mode is set, the state change and the transmitted data due to the generation of the control signal are output on the status display screen. The generation of such a control signal and the contents of the data to be transmitted can be appropriately displayed because the portable terminal is aware of it.

이제, 컴퓨터로부터 수신되는 신호를 휴대 단말기가 수신하는 경우를 살펴보도록 한다. 컴퓨터에서 휴대 단말기로 신호를 제공하면 휴대 단말기에 내장된 UART칩의 인터럽트 제어부는 해당 제어 신호 및 데이터 신호가 인가되는 즉시 인터럽트 신호를 휴대 단말기의 주 제어기에 제공하게 되며, 내부적으로 해당 인터럽트의 종류를 플래그로 표시하게 된다. 인터럽트 발생을 인지한 휴대 단말기는 해당 인터럽트 플래그를 확인하는 것으로 수신된 신호의 종류를 알 수 있게 된다.Now, a case in which the mobile terminal receives a signal received from a computer will be described. When the computer provides a signal to the portable terminal, the interrupt controller of the UART chip embedded in the portable terminal provides the interrupt signal to the main controller of the portable terminal as soon as the corresponding control signal and data signal are applied. It is displayed as a flag. The portable terminal that has recognized the interrupt occurrence can check the type of the received signal by checking the corresponding interrupt flag.

상기 수신된 신호가 제어신호라면 현재 통신 제어 상태와 비교하여 상이한 경우에만 상기 통신 제어 상태를 갱신하게 된다. 그리고 현재 휴대 단말기의 상태가 개발자 표시 모드(프로토콜 표시 모드)인 경우라면 갱신된 상태를 화면 상에 표시하고 개발자 표시 모드가 아닌 경우 일반적인 데이터 통신에 따른 화면을 표시한다.If the received signal is a control signal, the communication control state is updated only when it is different from the current communication control state. If the current state of the mobile terminal is in the developer display mode (protocol display mode), the updated state is displayed on the screen, and if not, the screen according to general data communication is displayed.

만일 수신된 신호가 데이터라면 이는 자동적으로 큐에 저장되기 때문에 휴대 단말기의 주 제어기는 이를 쉽게 확인할 수있다. 상기 수신된 데이터는 현재 단말기의 상태에 따라 개발자 표시 모드에서 지원하는 상태 표시 화면이 갱신되면서 표시되거나 일반적인 데이터 통신에 따른 화면이 표시된다. 즉, 개발자 표시모드가 설정된 상태에서 휴대 단말기가 신호를 수신하는 경우 제어 신호의 발생으로 인한 상태 변경과 수신되는 데이터를 상태 표시 화면에 출력한다.If the received signal is data it is automatically queued so that the main controller of the portable terminal can easily identify it. The received data is displayed while the status display screen supported in the developer display mode is updated according to the current terminal state, or a screen according to general data communication is displayed. That is, when the mobile terminal receives a signal while the developer display mode is set, the mobile terminal outputs a state change and received data due to the generation of the control signal on the state display screen.

따라서, 휴대 단말기의 내장된 직렬통신 디바이스를 적절히 이용하는 소프트웨어의 추가만으로 휴대 단말기에서 실시하는 직렬 통신 프로토콜을 시각적으로 확인할 수 있게 되며, 이를 위해서 별도의 장비나 연결 케이블이 필요하지 않게 된다. 또한, 장소나 연결 대상에 관계 없이 휴대 단말기의 직렬 통신 포트를 이용한통신 내용을 즉시 확인할 수 있기 때문에 개발자나 각종 서비스 제공자(수리 기사등)의 작업 효율을 높일 수 있다.Therefore, it is possible to visually confirm the serial communication protocol implemented by the portable terminal only by adding software appropriately using the built-in serial communication device of the portable terminal, and thus no additional equipment or connection cable is required. In addition, since the contents of the communication using the serial communication port of the mobile terminal can be immediately confirmed regardless of the location or the connection target, the work efficiency of the developer or various service providers (repair technicians, etc.) can be improved.

상기한 바와 같이 본 발명 휴대 단말기의 직렬 통신 프로토콜 분석 기능 제공방법은 휴대 단말기에 제공되는 개발자 모드에 직렬통신 프로토콜 분석 모드를 더 부가하여 설정된 직렬통신 방식으로 송수신되는 모든 신호들을 실시간으로 획득하여 보다 풍부한 표시 능력을 가지는 휴대 단말기에 모든 신호 상태에 대한 명확한 표시를 가능하도록 하고, 추가적인 장비나 결선이 없이도 실질적으로 사용되는 통신 제어부를 통한 프로토콜 확인이 가능하도록 함으로써 프로토콜 분석을 위한 추가 비용이 발생하지 않는 효과와 함께 프로토콜 분석 용이성 및 정확도가 향상되고 장소 및 작업 환경의 영향이 없어 개발자 및 서비스 제공자의 효율이 극대화 되는 효과가 있다.As described above, the method for providing a serial communication protocol analysis function of a mobile terminal according to the present invention further includes a serial communication protocol analysis mode in addition to a developer mode provided in a mobile terminal to acquire all signals transmitted and received in a serial communication scheme in real time. It is possible to make clear display of all signal states in the portable terminal having display capability and to check protocol through the communication control which is actually used without additional equipment or wiring, so that no additional cost for protocol analysis is incurred. In addition, the ease and accuracy of protocol analysis is improved, and the efficiency of developers and service providers is maximized because there is no influence of place and working environment.

Claims (4)

컴퓨터와 직렬통신 방식으로 연결된 휴대 단말기의 메뉴를 통해 개발자 프로토콜 표시 모드로 진입하는 단계와; 직렬 통신의 초기 상태를 화면 상에 표시하고 컴퓨터로부터 신호를 대기함과 동시에 내부적인 데이터 통신 처리를 실시하는 단계와; 상기 휴대 단말기의 내부적인 데이터 통신 처리 결과 컴퓨터로 신호를 전송하는 경우 현재 설정되어 표시된 직렬통신 상태를 갱신하여 사용자에게 표시하는 단계와; 상기 컴퓨터로부터 신호가 인가되는 경우 발생하는 인터럽트에 의해 현재 설정되어 표시된 직렬통신 상태를 갱신하여 사용자에게 표시하는 단계를 포함하는 것을 특징으로 하는 휴대 단말기의 직렬 통신 프로토콜 분석 기능 제공방법.Entering a developer protocol display mode through a menu of a mobile terminal connected in series communication with a computer; Displaying an initial state of serial communication on a screen and performing internal data communication processing while waiting for a signal from a computer; When the signal is transmitted to the computer as a result of the internal data communication processing of the portable terminal, updating and displaying the currently set and displayed serial communication status to the user; And updating the serial communication state currently set and displayed by the interrupt generated when the signal is applied from the computer and displaying the serial communication state to the user. 제 1항에 있어서, 상기 휴대 단말기의 내부적인 데이터 통신 처리 결과를 컴퓨터로 전송하는 경우에 있어서, 제어 신호를 전송하는 경우 현재 설정되어 표시된 직렬 통신 상태와 비교하여 상이한 경우에 표시 내용을 갱신하는 단계와; 데이터를 전송하는 경우 해당 데이터로 표시 내용을 무조건 갱신하는 단계를 더 포함하는 것을 특징으로 하는 휴대 단말기의 직렬 통신 프로토콜 분석 기능 제공방법.The method according to claim 1, wherein in the case of transmitting the result of the internal data communication processing of the portable terminal to the computer, the step of updating the display content when the control signal is transmitted is different compared to the currently set and displayed serial communication state. Wow; The method of providing a serial communication protocol analysis function of a portable terminal, characterized in that further comprising the step of unconditionally updating the display content with the corresponding data when transmitting data. 제 1항에 있어서, 상기 컴퓨터로부터 신호가 인가되어 인터럽트가 발생하는 경우에 있어서, 발생한 인터럽트의 종류가 제어신호인 경우 현재 설정되어 표시된 직렬 통신 상태와 비교하여 상이한 경우에만 표시 내용을 갱신하는 단계와; 인터럽트 종류가 데이터 수신에 의한 경우 큐에 저장된 내용으로 표시 내용을 무조건 갱신하는 단계를 더 포함하는 것을 특징으로 하는 휴대 단말기의 직렬 통신 프로토콜 분석 기능 제공방법.The method according to claim 1, further comprising the steps of: updating the display content only when the interrupt is generated when a signal is applied from the computer, when the type of the interrupt is a control signal compared to the currently set and displayed serial communication state; ; And updating the display contents unconditionally with the contents stored in the queue when the interrupt type is due to data reception. 제 1항에 있어서, 상기 직렬 통신 프로토콜은 RS-232 통신방식인 것을 특징으로 하는 휴대 단말기의 직렬 통신 프로토콜 분석 기능 제공방법.The method of claim 1, wherein the serial communication protocol is a RS-232 communication method.
KR10-2003-0028398A 2003-05-03 2003-05-03 Serial communication protocol analizing function providing method for mobile terminal KR100504830B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR10-2003-0028398A KR100504830B1 (en) 2003-05-03 2003-05-03 Serial communication protocol analizing function providing method for mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR10-2003-0028398A KR100504830B1 (en) 2003-05-03 2003-05-03 Serial communication protocol analizing function providing method for mobile terminal

Publications (2)

Publication Number Publication Date
KR20040094541A true KR20040094541A (en) 2004-11-10
KR100504830B1 KR100504830B1 (en) 2005-07-29

Family

ID=37374111

Family Applications (1)

Application Number Title Priority Date Filing Date
KR10-2003-0028398A KR100504830B1 (en) 2003-05-03 2003-05-03 Serial communication protocol analizing function providing method for mobile terminal

Country Status (1)

Country Link
KR (1) KR100504830B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100882814B1 (en) * 2007-06-05 2009-02-10 주식회사 이노와이어리스 Dual processing system for ensuring realtime of protocol test

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100882814B1 (en) * 2007-06-05 2009-02-10 주식회사 이노와이어리스 Dual processing system for ensuring realtime of protocol test

Also Published As

Publication number Publication date
KR100504830B1 (en) 2005-07-29

Similar Documents

Publication Publication Date Title
CN110196795B (en) Method and related device for detecting running state of mobile terminal application
CN100481782C (en) Apparatus and method for checking performance of wireless data network
CN108509333A (en) Adjustment method and device
US9298594B2 (en) Testing apparatus and testing method
NO310949B1 (en) Method and communication and processing unit for communication between an operator and a test system in a telephone network
WO2013165180A1 (en) Log monitoring method, server therefor and recording medium
CN110109818A (en) Monitoring method, device, terminal and the readable storage medium storing program for executing of back end interface data
CN109753425B (en) Popup window processing method and device
US20080127037A1 (en) System and method for detecting software on a computing device
CN101751329A (en) Method and system for realizing automatic testing
KR20080070842A (en) Integrated mobile diagnostics and electronic customer care test script with browser
CN111858296A (en) Interface test method, device, equipment and storage medium
TW201324141A (en) Testing method and testing apparatus for testing function of electronic apparatus
CN110489333A (en) A kind of method, apparatus based on detector tune-up data, medium and electronic equipment
CN114780386A (en) Software testing method, device, equipment and storage medium
CN102455965A (en) Electronic device test system and method
KR100504830B1 (en) Serial communication protocol analizing function providing method for mobile terminal
CN116996429A (en) Automatic test method, system, device, equipment and medium for communication instrument
CN107402856B (en) USB port testing method and device and readable storage medium
CN115600213A (en) Vulnerability management method, device, medium and equipment based on application program
CN116009893A (en) Method, device, equipment and storage medium for upgrading software
US20050101257A1 (en) Wireless local area network test device
CN111258890A (en) Program test method, storage medium, and system
CN112379967A (en) Simulator detection method, device, equipment and medium
JP2008211315A (en) Emulator system for executing emulation of portable terminal, and program thereof

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20130624

Year of fee payment: 9

FPAY Annual fee payment

Payment date: 20140624

Year of fee payment: 10

FPAY Annual fee payment

Payment date: 20150624

Year of fee payment: 11

LAPS Lapse due to unpaid annual fee