KR100632065B1 - A method for recognizing key cords using a general timer - Google Patents

A method for recognizing key cords using a general timer Download PDF

Info

Publication number
KR100632065B1
KR100632065B1 KR1019990002115A KR19990002115A KR100632065B1 KR 100632065 B1 KR100632065 B1 KR 100632065B1 KR 1019990002115 A KR1019990002115 A KR 1019990002115A KR 19990002115 A KR19990002115 A KR 19990002115A KR 100632065 B1 KR100632065 B1 KR 100632065B1
Authority
KR
South Korea
Prior art keywords
data packet
key code
wireless keyboard
signal
value
Prior art date
Application number
KR1019990002115A
Other languages
Korean (ko)
Other versions
KR20000051579A (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 KR1019990002115A priority Critical patent/KR100632065B1/en
Publication of KR20000051579A publication Critical patent/KR20000051579A/en
Application granted granted Critical
Publication of KR100632065B1 publication Critical patent/KR100632065B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42204User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0231Cordless keyboards
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/0304Detection arrangements using opto-electronic means
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42204User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
    • H04N21/42206User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor characterized by hardware details
    • H04N21/42212Specific keyboard arrangements
    • H04N21/42213Specific keyboard arrangements for facilitating data entry
    • H04N21/42215Specific keyboard arrangements for facilitating data entry by measuring the time interval during which a key is pressed, e.g. for inputting sequences of digits when selecting a television channel
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42204User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
    • H04N21/42206User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor characterized by hardware details
    • H04N21/42221Transmission circuitry, e.g. infrared [IR] or radio frequency [RF]

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Input From Keyboards Or The Like (AREA)
  • Selective Calling Equipment (AREA)

Abstract

본 발명은, 셋탑 박스와 같은 통신관련 기기에 리모콘/무선 키보드 공용 키보드/리모콘 수신부를 사용하여 리모콘 또는 무선 키보드로부터 전송되는 적외선 신호에 상응하는 키 코드를, 상기 기기내의 일반 타이머로부터 발진된 기준클럭을 이용하여 해독하는 일반 타이머를 이용한 키 코드 해독방법에 관한 것으로서, 공용포트를 통해 리모콘 또는 무선 키보드로부터 적외선신호를 수신하는 단계; 상기 수신되는 적외선신호를 전기적인 신호로 변환하는 단계; 및 기준시간 주기로 수행되는 해독루틴에 의해, 상기 변환되는 전기적인 신호값을 검출하는 단계를 포함하여 이루어져, 키 코드 해독에 따른 오동작을 방지할 수 있어 안정된 키 코드 해독 및 동작수행을 가능하게 하는 유용한 발명인 것이다.The present invention provides a key code corresponding to an infrared signal transmitted from a remote controller or a wireless keyboard using a remote controller / wireless keyboard common keyboard / remote receiver for a communication-related device such as a set-top box, and a reference clock oscillated from a general timer in the device. A method for decrypting a key code using a general timer for decrypting by using the method comprising: receiving an infrared signal from a remote controller or a wireless keyboard through a common port; Converting the received infrared signal into an electrical signal; And detecting, by the decryption routine performed at a reference time period, the converted electrical signal value, thereby preventing malfunction due to key code decryption, thereby enabling useful key code decryption and operation. It is an invention.

Description

일반 타이머를 이용한 키 코드 해독방법{A method for recognizing key cords using a general timer} A method for recognizing key cords using a general timer}             

도 1은 종래의 전용포트를 이용하여 무선키보드로부터 적외선신호를 수신받는 장치의 일부 구성도이고,1 is a partial configuration diagram of an apparatus for receiving an infrared signal from a wireless keyboard using a conventional dedicated port,

도 2는 종래의 전용포트를 이용하여 무선키보드로부터 수신된 키 코드를 해독하는 과정을 예시한 것이고,2 illustrates a process of decrypting a key code received from a wireless keyboard using a conventional dedicated port.

도 3은 본 발명에 따른 일반 타이머를 이용한 키 코드 해독방법이 구현되는 장치의 일부 구성도이고,3 is a partial configuration diagram of a device implementing a key code decryption method using a general timer according to the present invention;

도 4는 무선키보드로부터 송출된 적외선신호의 변환 데이터포맷을 도시한 것이고,4 shows a conversion data format of an infrared signal transmitted from a wireless keyboard,

도 5는 본 발명에 따른 일반 타이머를 이용한 키 코드 해독과정을 예시한 것이고,5 illustrates a key code decryption process using a general timer according to the present invention.

도 6은 본 발명에 따른 일반 타이머를 이용한 키 코드 해독방법에 대한 동작 흐름도이다.6 is a flowchart illustrating a key code decryption method using a general timer according to the present invention.

※도면의 주요부분에 대한 부호의 설명※ Explanation of symbols for main parts of drawing

10 : 무선 키보드11 : 리모콘10: wireless keyboard 11: remote control

20 : 키보드/리모콘 수신부21 : 키보드 전용 수신부20: keyboard / remote receiver 21: keyboard dedicated receiver

22 : 리모콘 전용 수신부30 : 마이컴22: dedicated remote control receiver 30: microcomputer

본 발명은, 별도의 인터럽트 루틴을 이용하지 않고 공용의 포트를 이용하여 무선 키보드로부터 수신되는 키 코드를 해독하는 방법에 관한 것으로서 더욱 상세하게는, 셋탑 박스와 같은 통신관련 기기에 리모콘/무선 키보드 공용 키보드/리모콘 수신부를 사용하여 리모콘 또는 무선 키보드로부터 전송되는 적외선 신호에 상응하는 키 코드를, 상기 기기내의 일반 타이머로부터 발진된 기준클럭을 이용하여 해독하는 일반 타이머를 이용한 키 코드 해독방법에 관한 것이다.The present invention relates to a method of decrypting a key code received from a wireless keyboard using a common port without using a separate interrupt routine, and more particularly, to sharing a remote controller / wireless keyboard with a communication-related device such as a set-top box. The present invention relates to a key code decryption method using a general timer that decrypts a key code corresponding to an infrared signal transmitted from a remote controller or a wireless keyboard using a keyboard / remote receiver using a reference clock oscillated from a general timer in the device.

셋탑 박스(SetTop Box)와 같은 통신관련 기기에 문자를 입력하기 위한 리모콘(Remocon)은 최초 텔레비젼이나 브이씨알(VCR)과 같은 가전제품의 동작을 간단히 제어하게 위해 제작된 것으로, 상기 리모콘상의 키 패드(Key Pad)가 소형으로 제작되었다. 이와 같이 소형으로 제작된 키패드상의 특정 키와 상하좌우 방향키만으로도 상기 가전제품 예로 브이씨알의 재생, 채널(Channel)선택, 볼륨(Volume)조정 등과 같은 동작을 충분히 제어할 수 있었다. 그러나, 상기 리모콘은 인터넷 사이트의 주소입력, 웹(Web) 사이트의 지정 등과 같은 복잡한 문자입력을 요하는 셋탑 박스에 사용되면서, 상기 리모콘상의 키패드가 너무 작아 특정 문자키를 누르는 것이 용이하지 않았을 뿐 아니라, 키패드상의 키 배열 자체가 텔레비젼이나 브이씨알과 같은 영상기기에 적합하도록 설계된 것이었기 때문에 여러 가지 사용상의 불편함을 초래하게 되었다.The remote controller (Remocon) for inputting text into a communication-related device such as a SetTop Box is designed to simply control the operation of home appliances such as a television or VCR, the keypad on the remote control (Key Pad) is made compact. Only a specific key on the keypad and the up, down, left, and right direction keys manufactured as described above were able to sufficiently control operations such as playback of V-CE, channel selection, volume adjustment, and the like. However, while the remote controller is used in a set-top box requiring complicated character input such as an address of an internet site, a web site designation, etc., the keypad on the remote controller is so small that it is not easy to press a specific character key. However, the key arrangement on the keypad itself was designed to be suitable for a video device such as a television or a V-C, causing various inconveniences.

이에 따라, 상기 셋탑 박스와 같은 통신관련 기기에 복잡한 문자 입력을 위해 키보드가 사용되었는데 상기 셋탑 박스에는 키보드 특히 무선 키보드를 사용하기 위해, 도 1에 도시된 바와 같이 별도의 무선 키보드 전용 포트(Port)에 따른 키보드 수신부(21)를 구비하여, 상기 무선 키보드(10)로부터 전송되는 데이터를 전용 포트를 통해 키보드 수신부(21)로 수신하게 된다. 상기 키보드 수신부(21)의 동작 설명은 도 2에 도시된 바와 같이, 키입력에 따른 인터럽트(Interrupt)가 확인되면(도 2의 S01), 기준클럭(예를 들면 250㎲)에 의해 순차적으로 수행되고 있는 각각의 실행 루틴(Routine)들을 벗어나 상기 전송데이터의 키 코드 해독을 위한 별도의 인터럽트 루틴을 수행하는데(도 2의 S02), 타이머(Timer) 인터럽트 수행루틴과 같이 기준클럭에 의해 일정주기마다 반드시 수행되어야 하는 루틴인 경우, 상기 키코드 해독 인터럽트 동작이 상기 기준클럭의 주기를 초과하여 지속됨으로 인해 상기 타이머 인터럽트 동작이 수행되지 못함에 따라 타이머 인터럽트 수행루틴에 의해 설정되는 시각이 어긋나게 되었을 뿐 아니라, 전술한 바와 같이 전용 포트를 별도로 이용함에 따라 비용이 많이 드는 문제가 발생되었다.Accordingly, a keyboard is used for inputting complex characters in a communication-related device such as the set-top box. In order to use a keyboard, in particular, a wireless keyboard, a separate wireless keyboard dedicated port is illustrated in FIG. 1. In accordance with the keyboard receiving unit 21, and receives the data transmitted from the wireless keyboard 10 to the keyboard receiving unit 21 through a dedicated port. As illustrated in FIG. 2, the operation of the keyboard receiver 21 is sequentially performed by a reference clock (for example, 250 ms) when an interrupt (Interrupt) according to a key input is confirmed (S01 in FIG. 2). A separate interrupt routine for decrypting the key code of the transmitted data is performed out of each execution routine (Routine) (S02 of FIG. 2), and at regular intervals by a reference clock such as a timer interrupt execution routine. In the case of a routine that must be performed, the time set by the timer interrupt execution routine is not shifted because the timer interrupt operation cannot be performed because the keycode decryption interrupt operation continues beyond the period of the reference clock. As described above, using a dedicated port separately causes a costly problem.

따라서, 본 발명은 상기와 같은 문제점을 해결하기 위하여 창작된 것으로서, 공용 포트를 통해 무선 키보드로부터 입력되는 키코드 해독시, 키코드 해석을 위한 별도의 인터럽트 루틴을 거치지 않고, 일반 타이머로부터 발진되는 기준시간 을 이용하여 키코드를 해석하는 일반 타이머를 이용한 키 코드 해독방법을 제공하는 데 그 목적이 있는 것이다.
Accordingly, the present invention was created to solve the above problems, and when decrypting a keycode inputted from a wireless keyboard through a common port, a standard that is oscillated from a general timer without going through a separate interrupt routine for keycode interpretation. The purpose is to provide a key code decryption method using a general timer that interprets the key code using time.

상기의 목적을 달성하기 위한 본 발명에 따른 일반 타이머를 이용한 키 코드 해독방법은, 공용포트를 통해 리모콘 또는 무선 키보드로부터 적외선신호를 수신하는 단계; 상기 수신되는 적외선신호를 전기적인 신호로 변환하는 단계; 및 기준시간 주기로 수행되는 해독루틴에 의해, 상기 변환되는 전기적인 신호값을 검출하는 단계를 포함하여 이루어지는 것에 특징이 있는 것이다.Key code decryption method using a general timer according to the present invention for achieving the above object, the step of receiving an infrared signal from a remote controller or a wireless keyboard through a common port; Converting the received infrared signal into an electrical signal; And detecting the converted electrical signal value by the decryption routine performed at a reference time period.

상기와 같이 이루어지는 본 발명에 따른 일반 타이머를 이용한 키 코드 해독방법에서는, 먼저, 무선 키보드 또는 리모콘으로부터 수신되는 적외선신호가 리모콘용 수신부에 입력되면, 상기 입력된 적외선신호를 전기적인 비트신호로 변환하고 상기 리모콘 수신부에 의해 변환된 전기적인 비트신호의 값을 일정 주기로 확인함으로써 무선 키보드로부터 전송되는 키 코드 해독을 일반 타이머를 이용하여 해독할 수 있게 되는 것이다.In the key code decryption method using the general timer according to the present invention as described above, first, when the infrared signal received from the wireless keyboard or the remote controller is input to the receiver for the remote controller, the input infrared signal is converted into an electric bit signal. By checking the value of the electric bit signal converted by the remote control receiver at regular intervals, the key code decryption transmitted from the wireless keyboard can be decrypted using a general timer.

이하, 본 발명에 따른 일반 타이머를 이용한 키 코드 해독방법의 바람직한 실시예의 구성 및 동작에 대해, 첨부된 도면에 의거하여 상세히 설명한다.
도 3은 본 발명에 따른 일반 타이머를 이용한 키 코드 해독방법이 구현되는 장치의 일부 구성도이고, 도 4는 무선키보드로부터 송출된 적외선신호의 변환데이터 포맷을 도시한 것이고, 도 5는 본 발명에 따른 일반 타이머를 이용한 키 코드 해독과정을 예시한 것이다.
Hereinafter, the configuration and operation of a preferred embodiment of a key code decryption method using a general timer according to the present invention will be described in detail with reference to the accompanying drawings.
3 is a partial configuration diagram of a device for implementing a key code decryption method using a general timer according to the present invention, FIG. 4 illustrates a conversion data format of an infrared signal transmitted from a wireless keyboard, and FIG. It illustrates the key code decryption process using a general timer according to.

도 6은 본 발명에 따른 일반 타이머를 이용한 키 코드 해독방법에 대한 동작 흐름도를 도시한 것으로서, 이하에서는 도 3 내지 도 5를 참조하여 본 발명에 따른 도 6의 키 코드 해독방법에 대하여 상세히 설명한다.6 is a flowchart illustrating an operation of a key code decryption method using a general timer according to the present invention. Hereinafter, the key code decryption method of FIG. 6 according to the present invention will be described in detail with reference to FIGS. 3 to 5. .

먼저, 무선 키보드(10)로부터 적외선 신호가 수신되면(도 6의 S01) 상기 적외선 신호는 키보드/리모콘 수신부(20)의 적외선 센서(도면 미도시)에 의해 전기적 신호로 변환되는데(도 6의 S02), 상기 키보드/리모콘 수신부(20)는 도 4의 하단에 도시된 바와 같은 변환된 아날로그 전기적신호를, 두개의 전기적신호 패턴과 781㎲ 주기마다 비교하고, 비교결과 동일한 패턴에 대응되는 비트신호값('0' 또는 '1')을 한 비트씩 차례대로 검출하여(도 6의 S03) 마이컴(30)에 순차적으로 전송하게 된다(도 6의 S04).First, when an infrared signal is received from the wireless keyboard 10 (S01 of FIG. 6), the infrared signal is converted into an electrical signal by an infrared sensor (not shown) of the keyboard / remote control receiver 20 (S02 of FIG. 6). ), The keyboard / remote control receiver 20 compares the converted analog electrical signals as shown in the lower part of FIG. ('0' or '1') is detected one bit at a time (S03 in FIG. 6) and sequentially transmitted to the microcomputer 30 (S04 in FIG. 6).

한편, 상기 마이컴(30)은 도 4에 도시된 바와 같이, 내부의 주발진기(도면 미도시)로부터 발진되는 250㎲의 기준클럭에 의해 설정된 250㎲ 실행루틴, 2㎳ 실행루틴, 그리고 20㎳ 실행루틴을 순차적으로 수행하게 되는데, 우선 마이컴(30)은 상기 주발진기로부터 250㎲의 기준클럭이 최초 인가되면, 우선 제1 루틴번호(Routine NO)를 1로 지정하여 250㎲ 실행루틴1을 수행하고, 이후 250㎲의 기준클럭이 또다시 연속, 차례대로 인가되면 상기 제 1 루틴번호를 순차(2,3,4,...)적으로 증가시키면서 해당 250㎲ 실행루틴(250㎲ 실행루틴2, 250㎲ 실행루틴3, 250㎲ 실행루틴4,...)을 수행하게 되며, 상기 제 1 루틴 번호가 마지막 번호 예로 8로 지정되어 250㎲ 실행루틴8이 수행완료되면, 그 다음으로 제 1 루틴번호 및 또다른 루틴번호를 각각 1로 지정한 후, 250㎲ 실행루틴1, 2㎳ 실행루틴1을 차례로 수행하게 된다.Meanwhile, as shown in FIG. 4, the microcomputer 30 executes a 250 kHz execution routine, a 2 kHz execution routine, and a 20 kHz execution set by a 250 kHz reference clock oscillated from an internal main oscillator (not shown). The routine is performed sequentially. First, when the reference clock of 250 ms is first applied from the main oscillator, the microcomputer 30 first performs a routine of 250 ms execution routine 1 by designating the first routine number Routine NO. If the reference clock of 250 ms is applied again and again in succession, the first routine number is sequentially increased (2, 3, 4, ...) while the corresponding 250 ms execution routine (250 ms execution routine 2, 250 ms execution routine 3, 250 ms execution routine 4, ...), and the first routine number is designated as the last number 8, and 250 ms execution routine 8 is completed, then the first routine is executed. After designating the number and another routine number as 1, 250㎲ execution routine 1 and 2㎳ execution routine And it performs the first turn.

상기 동작에 따라 8개의 250㎲ 실행루틴과 10개의 2㎳ 실행루틴, 그리고 10개의 20㎳ 실행루틴이 순차적으로 수행되는 데, 상기 키보드/리모콘 수신부(20)로부터 해당 비트값을 추출하는 키 코드 해독루틴은 상기 8개의 250㎲ 실행루틴에 부가되어 있어 매 250㎲ 마다 수행된다.According to the operation, eight 250 ms execution routines, 10 2 ms execution routines, and 10 20 ms execution routines are sequentially executed. The key code decryption extracting a corresponding bit value from the keyboard / remote control receiver 20. The routine is added to these eight 250 ms execution routines and is executed every 250 ms.

상기 과정(도 6의 S04)에 의해 비트신호가 마이컴(30)으로 입력되면, 상기 마이컴(30)은 먼저 상기 키보드/리모콘 수신부(20)로부터 전송된 비트신호가 리모콘으로부터 수신된 것인지, 또는 무선 키보드(10)로부터 수신된 것인지를 판별하게 되는데(도 6의 S05), 상기 판별 동작은, 상기 전송된 비트신호의 레벨이 '로우'값이 2.36㎳ 이하 지속되는 경우 무선 키보드(10)로부터 전송된 것으로 판별하고 이에 따라, 상기 전송된 비트신호 즉 781㎲의 주기를 갖는 비트신호를 250㎲의 기준시간 간격으로 해독하는 동작을 수행하게 된다.When the bit signal is input to the microcomputer 30 by the process (S04 of FIG. 6), the microcomputer 30 first checks whether the bit signal transmitted from the keyboard / remote control receiver 20 is received from the remote controller, or wirelessly. It is determined whether it has been received from the keyboard 10 (S05 of FIG. 6), and the determination operation is transmitted from the wireless keyboard 10 when the level of the transmitted bit signal is 'low' value of 2.36 dB or less. And the bit signal having a period of 781 ms is decoded at a reference time interval of 250 ms.

즉, 상기 마이컴(30)은 기준시간에 의해 주기적으로 수행되는 해독루틴에 의해 상기 전송되는 비트신호의 레벨값을 검출하고(도 6의 S10) 검출된 비트신호의 레벨값, 예를 들면 '로우' 레벨값이 2번 반복검출되는 경우(도 6의 S11), 상기 반복검출된 비트신호의 해당 비트값을 '0'으로 설정하여 내부 메모리(도면 미도시)에 임시저장하게 된다(도 6의 S12). 이는 신호가 완만한 기울기를 가지면서 '하이'에서 '로우' 또는 '로우'에서 '하이'로 천이되므로 상기 신호의 레벨값을 검출하는 경우에, 실제 비트신호의 레벨값이 '로우'인 구간임에도 불구하고 마이컴(30)에 의해 검출되는 레벨값은 '하이'로 검출될 수 있으며 실제 신호의 레벨구간이 '하이'인 경우에도 레벨값은 '로우'로 검출될 수 있게 된다. 따라서, 상기 마이컴(30)은 하나의 레벨값에 대하여 3회(3.12=

Figure 112006007996371-pat00001
) 검출하지만, 신호의 레벨 천이시에 검출된 레벨값에 대해서는 이를 무시하고, 레벨값 변환 이후 레벨값이 연속 2회 동일하게 검출되는 경우에 해당 비트값을 설정하게 되는 것이다.That is, the microcomputer 30 detects the level value of the transmitted bit signal by a decoding routine that is periodically performed by the reference time (S10 of FIG. 6), and the level value of the detected bit signal, for example, 'low'. When the level value is repeatedly detected twice (S11 of FIG. 6), the corresponding bit value of the repeatedly detected bit signal is set to '0' and temporarily stored in the internal memory (not shown) (FIG. 6). S12). This is because the signal transitions from 'high' to 'low' or 'low' to 'high' while having a gentle slope, so that the level value of the actual bit signal is 'low' when detecting the level value of the signal. Although the level value detected by the microcomputer 30 can be detected as 'high', the level value can be detected as 'low' even when the level section of the actual signal is 'high'. Therefore, the microcomputer 30 performs three times (3.12 = one level value).
Figure 112006007996371-pat00001
However, the level value detected at the level transition of the signal is ignored, and the bit value is set when the level value is identically detected twice after the level value conversion.

동일한 과정에 의해 연속되는 비트신호의 해당 비트값이 검출저장되면, 상기 임시저장되어 있는 비트값을 1비트 이동시켜(도 6의 S13) 상기 검출된 비트값들을 차례로 저장하게 된다. 이와 같은 동작을 반복수행하는 도중, 상기 저장된 비트값이 2바이트 단위가 되면 상기 마이컴(30)은 2바이트 크기의 데이터 패킷(Packet)으로 독출하게 된다(도 6의 S14). 상기 독출된 데이터패킷은 도 4에 도시된 바와 같이, 키동작의 상태(눌려진 상태(94(16))인가 또는 떼어진 상태(D4(16))인가)를 나타내는 상위 1바이트의 데이터패킷과, 키동작이 수행된 해당 키를 나타내는 하위 1바이트의 데이터패킷으로 구성된다.When the corresponding bit value of the continuous bit signal is detected and stored by the same process, the temporarily stored bit value is shifted by one bit (S13 in FIG. 6), and the detected bit values are sequentially stored. During the repeated operation, when the stored bit value becomes a 2-byte unit, the microcomputer 30 reads the data packet having a 2-byte size (S14 in FIG. 6). The read data packet is a high-order one data packet indicating a state of a key operation (whether it is in a pressed state 94 (16) or a released state (D4 (16) ), as shown in FIG. 4); It consists of a lower 1 byte data packet that represents the key on which the key operation was performed.

이어, 상기 마이컴(30)은 독출된 데이터패킷이 유효한지의 여부를 판단하고 이를 검증하게 되는데, 먼저 상기 데이터패킷의 유효여부를 판단하기 위해, 사용자의 1회 키입력 수행 이후, 약 500ms 시간내에서 발생되는 채터링(Chattering) 여부를 고려하여, 500ms 이상의 시간간격을 갖고서 독출되는 데이터패킷을 유효한 데이 터로 판단하게 된다. 이는, 1회 키입력에 따라 동일한 데이터패킷이, 키보드 자체의 채터링에 의해 약 300ms에 걸쳐 수회 반복전송되는데, 예를 들면 사용자가 특정 키 'a'를 1회 키입력한 경우라도 무선 키보드에서는 'a'가 연속적으로 수회 반복출력된다.Subsequently, the microcomputer 30 determines whether the read data packet is valid and verifies it. First, in order to determine whether the data packet is valid, within a time of about 500 ms after the user once performs a key input. In consideration of chattering occurring in the system, the data packet read out with a time interval of 500 ms or more is determined as valid data. This means that the same data packet is repeatedly transmitted several times over about 300 ms by the chattering of the keyboard itself according to a single key input. For example, even if the user inputs a specific key 'a' once, the wireless keyboard 'a' is repeated several times in succession.

따라서, 마이컴(30)이 제한시간 즉 500ms 시간동안의 채터링을 고려하지 않으면, 사용자가 매우 빠르게 'a'를 3회 반복적으로 키입력한 경우와 구별이 불가능하게 된다. 따라서, 상기 마이컴(30)은 키입력 상태를 구별하기 위해 상기 독출되는 2바이트의 데이터패킷과 이전에 독출된 데이터패킷과의 시간간격을 산출하게 되고, 산출된 시간간격이 125㎳ 이하의 범위(500회(=

Figure 112006007996371-pat00002
) 이상의 해독루틴 수행전에 새로운 데이터패킷이 검출되는 경우)이내이면 상기 독출된 데이터패킷이 채터링에 의해 판별하여 무시하며, 이와는 반대로 상기 범위를 초과하게 되면 상기 독출된 데이터패킷이 사용자의 키입력에 의해 생성독출된 것으로 판별하게 된다(도 6의 S15).Therefore, when the microcomputer 30 does not consider the chattering for a time limit, that is, 500 ms, it is impossible to distinguish the case from when the user repeatedly inputs 'a' three times quickly. Accordingly, the microcomputer 30 calculates a time interval between the read 2-byte data packet and the previously read data packet to distinguish a key input state, and the calculated time interval is within a range of 125 ms or less ( 500 times (=
Figure 112006007996371-pat00002
If a new data packet is detected before the above decryption routine is performed), the read data packet is discriminated by chattering and ignored. On the contrary, if the read data packet exceeds the range, the read data packet is applied to the user's key input. It is judged that it has been generated and read by (S15 in Fig. 6).

상기와 같이 독출된 데이터패킷의 유효여부가 판단되고 나면 상기 마이컴(300)은 상기 유효판단된 데이터패킷에 대한 검증을 수행하게 되는데, 이는 도 4에 도시된 바와 같이 상위 1바이트의 값이 94(16)로서 키동작의 상태가 눌려진 것에 해당하는 데이터패킷에 연속되는 다음 데이터패킷의 상위 1바이트값이 D4(16)로서 연속된 두 데이터패킷의 키동작의 상태가 각각 눌러진 것과 떼어진 것에 해당하고, 상기 두 데이터패킷의 하위 1바이트의 키가 동일한 것을 확인되면 상기 두 데이터패킷을 유효한 것으로 검증하게 되는 것이다(도 6의 S16). Once the validity of a data packet read out as described above, it is determined the microprocessor 300 is the value of the upper one byte as described there is carried out the verification of the data packet determines the effective, which shown in Figure 494 ( 16) The upper 1 byte value of the next data packet subsequent to the data packet corresponding to the state of the key operation pressed as D4 (16) corresponds to the state of the key operation of two consecutive data packets being pressed and released respectively. In addition, when it is confirmed that the keys of the lower 1 byte of the two data packets are the same, the two data packets are verified as valid (S16 of FIG. 6).

상기와 같이 구성되어 동작하는 본 발명에 따른 일반 타이머를 이용한 키 코드 해독방법은, 셋탑 박스와 같은 통신관련 기기내에 구비된 리모콘/무선 키보드 공용 키보드/리모콘 수신부를 통해 별도의 인터럽트 동작 루틴없이, 입력되는 키 코드 특히 무선키보드로부터 전송되는 키 코드를 기준클럭을 이용하여 해독함으로써, 키 코드 해독에 따른 오동작을 방지할 수 있어 안정된 키 코드 해독 및 동작수행을 가능하게 하는 유용한 발명인 것이다.The key code decryption method using the general timer according to the present invention configured and operated as described above is inputted without a separate interrupt operation routine through a remote controller / wireless keyboard common keyboard / remote receiver receiving unit provided in a communication related device such as a set-top box. By deciphering a key code, in particular, a key code transmitted from a wireless keyboard, by using a reference clock, it is a useful invention that can prevent a malfunction due to key code decryption and enable stable key code decryption and operation.

Claims (6)

리모콘 또는 무선 키보드로부터 수신되는 키 코드를 해독하는 방법에 있어서,A method of decrypting a key code received from a remote control or a wireless keyboard, 공용포트를 통해 상기 리모콘 또는 무선 키보드로부터 적외선신호를 수신하는 단계;Receiving an infrared signal from the remote controller or the wireless keyboard through a common port; 상기 수신되는 적외선신호를 전기적인 신호로 변환하는 단계; 및 Converting the received infrared signal into an electrical signal; And 기준시간 주기로 수행되는 해독루틴에 의해, 상기 변환되는 전기적인 신호값을 검출하는 단계를 포함하여 이루어지는 일반 타이머를 이용한 키 코드 해독방법.And detecting the converted electrical signal value by the decryption routine performed at a reference time period. 제 1항에 있어서,The method of claim 1, 상기 전기적인 신호는 비트신호로서,The electrical signal is a bit signal, 상기 검출단계는, 상기 기준시간 주기로 상기 비트신호의 레벨값을 확인하는 단계; 및The detecting step may include: checking a level value of the bit signal at the reference time period; And 동일한 레벨값이 소정횟수 반복시, 해당 비트값을 검출하는 단계를 포함하여 이루어지는 것을 특징으로 하는 일반 타이머를 이용한 키 코드 해독방법.And detecting a corresponding bit value when the same level value is repeated a predetermined number of times. 제 1항에 있어서,The method of claim 1, 상기 기준시간 주기는, 상기 전기적인 신호의 변화폭에 상응하는 시간의 1/3 이하인 것을 특징으로 하는 일반 타이머를 이용한 키 코드 해독방법.The reference time period is a key code decryption method using a normal timer, characterized in that less than 1/3 of the time corresponding to the change in the electrical signal. 제 2항에 있어서,The method of claim 2, 상기 해당 비트값을 검출하는 단계 이후, 상기 검출된 해당 비트값을 임시저장하는 단계;After the step of detecting the corresponding bit value, temporarily storing the detected corresponding bit value; 상기 임시저장된 비트값을 패킷 단위로 독출하는 단계; 및Reading the temporarily stored bit value in packet units; And 상기 독출되는 패킷 단위의 데이터가 유효데이타임을 확인하는 단계를 더 포함하여 이루어지는 것을 특징으로 하는 일반 타이머를 이용한 키 코드 해독방법.And confirming that the read data of the packet unit is valid data. 제 4항에 있어서,The method of claim 4, wherein 상기 확인단계는, 상기 독출되는 데이터패킷과, 이전에 독출된 데이터패킷간의 독출 시간간격을 검출하는 단계;The checking may include detecting a reading time interval between the read data packet and a previously read data packet; 상기 검출된 독출 시간간격이 소정범위내에 속하지 않는 경우, 새로운 데이터패킷임을 확인하는 단계;If the detected read time interval does not fall within a predetermined range, confirming that the data packet is new; 상기 확인된 새 데이터패킷과, 후속독출되는 데이터패킷과의 동일여부를 반복확인하는 단계; 및Repeatedly checking whether the identified new data packet is identical to a subsequently read data packet; And 상기 반복확인결과 동일한 경우, 상기 확인된 새 데이터패킷을 유효데이타로 판단하는 단계를 포함하여 이루어지는 것을 특징으로 하는 일반 타이머를 이용한 키 코드 해독방법.And if it is the same as the result of the repetition check, determining the new data packet as valid data. 제 1항에 있어서,The method of claim 1, 상기 전기적인 신호값에 근거하여, 상기 적외선신호가 상기 리모콘으로부터 수신된 것인지, 또는 상기 무선 키보드로부터 수신된 것인지를 판별하는 단계를 더 포함하여 이루어지되,The method may further include determining whether the infrared signal is received from the remote controller or the wireless keyboard based on the electrical signal value. 상기 검출단계는, 상기 적외선신호가 상기 무선 키보드로부터 수신된 것으로 판별시 이루어지는 것을 특징으로 하는 일반 타이머를 이용한 키 코드 해독방법.And the detecting step is performed when the infrared signal is received from the wireless keyboard.
KR1019990002115A 1999-01-23 1999-01-23 A method for recognizing key cords using a general timer KR100632065B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019990002115A KR100632065B1 (en) 1999-01-23 1999-01-23 A method for recognizing key cords using a general timer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019990002115A KR100632065B1 (en) 1999-01-23 1999-01-23 A method for recognizing key cords using a general timer

Publications (2)

Publication Number Publication Date
KR20000051579A KR20000051579A (en) 2000-08-16
KR100632065B1 true KR100632065B1 (en) 2006-10-04

Family

ID=19572186

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019990002115A KR100632065B1 (en) 1999-01-23 1999-01-23 A method for recognizing key cords using a general timer

Country Status (1)

Country Link
KR (1) KR100632065B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100721828B1 (en) * 2005-10-14 2007-05-28 삼성전자주식회사 Signal processing method of micro computer

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR930024527A (en) * 1992-05-20 1993-12-22 강진구 Remote control signal reception method
JPH06113365A (en) * 1992-09-29 1994-04-22 Nec Home Electron Ltd Remote control method and device therefor
KR980006962A (en) * 1996-06-19 1998-03-30 김주용 KEY SCAN and Infrared Signal Detector
KR19990047762A (en) * 1997-12-05 1999-07-05 구자홍 Signal input check control device of wireless keyboard and its control method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR930024527A (en) * 1992-05-20 1993-12-22 강진구 Remote control signal reception method
JPH06113365A (en) * 1992-09-29 1994-04-22 Nec Home Electron Ltd Remote control method and device therefor
KR980006962A (en) * 1996-06-19 1998-03-30 김주용 KEY SCAN and Infrared Signal Detector
KR19990047762A (en) * 1997-12-05 1999-07-05 구자홍 Signal input check control device of wireless keyboard and its control method

Also Published As

Publication number Publication date
KR20000051579A (en) 2000-08-16

Similar Documents

Publication Publication Date Title
CA2681796C (en) Multimedia device and process for data transmission in a multimedia device
KR100632065B1 (en) A method for recognizing key cords using a general timer
US5621484A (en) User-programmable control device for a television apparatus
KR960024874A (en) Password setting device and password setting method of display device using micom
CA2271497A1 (en) Video recording device
US6698019B1 (en) Apparatus and method for controlling viewing of video signals
JP2959718B2 (en) Remote control device with bar code reader
KR20080068339A (en) Infrared receiving error detecting method of cell phone
KR200262151Y1 (en) system for processing audio and video signals
KR100192051B1 (en) Decording remocon method
KR100197375B1 (en) Remote control receiver for a/v apparatus
KR100259705B1 (en) Detection method of key press pattern of remote controller user and password encoding/decoding method using them
JPH11122681A (en) Radio system, radio system management device, and radio terminal equipment
KR100347897B1 (en) Error detection method and error detection device in wireless communication
KR0117649Y1 (en) Code unification device using jog dial
KR0172898B1 (en) Remote controller apparatus and method for a letter recognition
KR100672425B1 (en) Method for transmitting key code of a remocon and, a method and apparatus for processing the key code of the remocon in receving unit of a television
KR19990051235A (en) How to automatically set custom codes for the universal remote
JP4554323B2 (en) Remote control receiver
JPH0715252Y2 (en) Remote controller for teletext
KR100266617B1 (en) Siginal reception method for wireless keyboard and remote controller
JP2005191926A (en) Remote control receiver
KR20000028052A (en) Method for identifying key code of remote control system
KR0170152B1 (en) An improved download method of remote controller
KR101069756B1 (en) Character Recognition Remote Controller

Legal Events

Date Code Title Description
N231 Notification of change of applicant
A201 Request for examination
E902 Notification of reason for refusal
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
LAPS Lapse due to unpaid annual fee