Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP2913781B2 - Learning remote control transmitter - Google Patents
[go: Go Back, main page]

JP2913781B2 - Learning remote control transmitter - Google Patents

Learning remote control transmitter

Info

Publication number
JP2913781B2
JP2913781B2 JP16904490A JP16904490A JP2913781B2 JP 2913781 B2 JP2913781 B2 JP 2913781B2 JP 16904490 A JP16904490 A JP 16904490A JP 16904490 A JP16904490 A JP 16904490A JP 2913781 B2 JP2913781 B2 JP 2913781B2
Authority
JP
Japan
Prior art keywords
remote control
pulse
data
block
pulse width
Prior art date
Legal status (The legal status 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 status listed.)
Expired - Fee Related
Application number
JP16904490A
Other languages
Japanese (ja)
Other versions
JPH0457594A (en
Inventor
則文 松井
洋一 黒木
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP16904490A priority Critical patent/JP2913781B2/en
Publication of JPH0457594A publication Critical patent/JPH0457594A/en
Application granted granted Critical
Publication of JP2913781B2 publication Critical patent/JP2913781B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Selective Calling Equipment (AREA)

Description

【発明の詳細な説明】 産業上の利用分野 本発明は主に、テレビジョン受像機などのような各種
電子機器に使用される学習リモコン送信器に関するもの
であり、さらに詳しく言えば、複数の個々の送信機の内
の任意のリモコン信号をエミュレート(模倣)するため
にプログラムできる再構成可能なリモコン送信機に関す
るもので、1キー当たりのリモコン信号を記憶するのに
必要なメモリの容量が少なくて済み、所定のメモリに、
より多くのリモコン信号を学習できる学習リモコン送信
機に関するものである。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention mainly relates to a learning remote control transmitter used for various electronic devices such as a television receiver, and more specifically, to a plurality of individual remote control transmitters. For a reconfigurable remote control transmitter that can be programmed to emulate any of the remote control signals in the transmitter, requiring less memory to store the remote control signal per key To the specified memory,
The present invention relates to a learning remote control transmitter capable of learning more remote control signals.

従来の技術 第8図から第11図により従来の学習リモコン送信機の
構成を示し、動作とともに構成を説明すると、101はエ
ミュレートされるリモコン送信機である。このリモコン
送信機101の発光部102を、学習リモコン送信機111のPIN
ダイオード112に対向して配置し、学習リモコン送信機1
11のモード切替スイッチ125を通常モード126(この学習
リモコン送信機111のキー124を押すと、学習した所定の
リモコン信号が送信されるモード)から学習モード127
(この学習リモコン送信機111の特定のキー124にエミュ
レートしたいリモコン送信機101の信号を学習するモー
ド)に切り替え、学習リモコン送信機111が学習モード1
27になったことを表示回路121で確認する。その後で、
エミュレートするリモコン送信機101のキー103を押して
発光部102から光信号104を送信する。
2. Description of the Related Art FIG. 8 to FIG. 11 show the configuration of a conventional learning remote control transmitter. The operation and configuration will be described. Reference numeral 101 denotes an emulated remote control transmitter. The light emitting unit 102 of the remote control transmitter 101 is used as the PIN of the learning remote control transmitter 111.
Learning remote control transmitter 1 placed opposite diode 112
The mode switch 125 of the eleventh mode is changed from the normal mode 126 (the mode in which the learned remote control signal is transmitted when the key 124 of the learning remote control transmitter 111 is pressed) to the learning mode 127.
The mode is switched to (a mode for learning a signal of the remote control transmitter 101 which wants to be emulated to the specific key 124 of the learning remote control transmitter 111), and the learning remote control transmitter 111 is set to the learning mode 1
The display circuit 121 confirms that the number has reached 27. after,
An optical signal 104 is transmitted from the light emitting unit 102 by pressing a key 103 of a remote control transmitter 101 to be emulated.

送信された光信号104は、学習リモコン送信機111のPI
Nダイオード112に受信される。
The transmitted optical signal 104 is the PI of the learning remote control transmitter 111.
Received by N diode 112.

PINダイオード112は学習モード中にエミュレートすべ
きリモコン送信機101からの光信号104を電気信号に変換
する光電気変換素子で、その変換された電気信号は、入
ってきた信号を忠実に増幅するプリアンプ部113に送ら
れる。
The PIN diode 112 is a photoelectric conversion element that converts the optical signal 104 from the remote control transmitter 101 to be emulated during the learning mode into an electric signal. The converted electric signal faithfully amplifies the incoming signal. This is sent to preamplifier section 113.

プリアンプ部113から出てきた信号は次の周波数回路1
14と波形整形回路117に分離される。
The signal output from the preamplifier unit 113 is transmitted to the next frequency circuit 1
14 and a waveform shaping circuit 117.

まず、周波数回路114は、学習モード時に、パルス群
の各バースト中のパルスの周波数(以下キャリア周波数
と称す)を周波数回路114内部の周波数カウンタ115で測
定する回路で、周波数カウンタ115はマイクロプロセッ
サ120を駆動するための基本クロック発生回路123から出
力されるクロック数を測定することによってキャリア周
波数の測定を行うようになっている。また、通常モード
時には、学習リモコン送信機111のキー124が押されたと
きに学習モードで測定し、記憶したキャリア周波数の値
を周波数カウンタ115にセットするだけでキャリア周波
数を発生させる回路でもある。
First, the frequency circuit 114 is a circuit for measuring the frequency of a pulse in each burst of a pulse group (hereinafter referred to as a carrier frequency) by a frequency counter 115 inside the frequency circuit 114 in the learning mode. The carrier frequency is measured by measuring the number of clocks output from the basic clock generation circuit 123 for driving the carrier. Further, in the normal mode, the circuit is a circuit that measures in the learning mode when the key 124 of the learning remote control transmitter 111 is pressed and generates the carrier frequency simply by setting the stored carrier frequency value in the frequency counter 115.

以上周波数回路114では、学習モード時に、プリアン
プ部113からきたリモコン信号のキャリア周波数を測定
するとともに、そのキャリア周波数は、測定完了と同時
にラッチ回路116に出力されラッチされる。
As described above, the frequency circuit 114 measures the carrier frequency of the remote control signal from the preamplifier unit 113 in the learning mode, and the carrier frequency is output to the latch circuit 116 and latched simultaneously with the completion of the measurement.

上記プリアンプ部113から出てきたリモコン信号は、
もう一方の回路であるリモコン信号のエンベローブカー
ブを取り出す波形整形回路117に入る。その波形整形回
路117から出てきた信号は、リモコン信号のキャリア周
波数成分を取り除いたパルス信号で、次のパルス幅回路
118のカウンタ部119に入り、第9図(a)に示すパルス
幅T1H,T1L,T2H,T2L,T3H,T3L……を順番に測定し、各パ
ルス幅2バイトずつのデータで、第9図(b)のよう
に、ランダムアクセスメモリ122(以後SRAMと記す)に
蓄積するようになっている。
The remote control signal output from the preamplifier unit 113 is
It enters the other circuit, a waveform shaping circuit 117 for extracting the envelope curve of the remote control signal. The signal output from the waveform shaping circuit 117 is a pulse signal from which the carrier frequency component of the remote control signal has been removed.
, The pulse widths T1H, T1L, T2H, T2L, T3H, T3L... Shown in FIG. 9 (a) are measured in order, and data of each pulse width of 2 bytes is used. As shown in (b), the data is stored in a random access memory 122 (hereinafter referred to as SRAM).

次に、リモコン信号のパルス幅を測定する方法につい
て第9図(a),(b),(c)も用いて説明すると、
リモコン信号のエンベローブカーブ入力の変化、すなわ
ち、リモコン信号のパルスの立ち上がりを検出して、マ
イクロプロセッサ120に割り込み128をかける。その後、
すぐにマイクロプロセッサ120を駆動する基本クロック
発生回路123から出力されるクロックを分周回路129で分
周した分周クロック(この場合には16分周している)の
数のカウントを開始してパルス幅T1Hの測定を開始す
る。すなわち、“パルス幅=クロックのカウント数”と
いうことになる。そして、今度はパルスの立ち下がりと
同時に、マイクロプロセッサ120に、再度、割り込み128
をかける。その後すぐに、マイクロプロセッサ120は分
周クロックのカウントを停止し、測定されたパルスの幅
T1HのデータをすぐにSRAM122の中の約500バイトの容量
で構成されるワークエリアに順番に取り込み記憶させ
る。
Next, a method of measuring the pulse width of the remote control signal will be described with reference to FIGS. 9 (a), (b) and (c).
A change in the envelope curve input of the remote control signal, that is, the rising edge of the pulse of the remote control signal is detected, and an interrupt 128 is applied to the microprocessor 120. afterwards,
Immediately starts counting the number of frequency-divided clocks (in this case, frequency-divided by 16) obtained by dividing the clock output from the basic clock generation circuit 123 that drives the microprocessor 120 by the frequency divider 129. Start measuring the pulse width T1H. That is, “pulse width = count number of clock”. Then, at the same time as the falling edge of the pulse, the microprocessor 120 is again interrupted 128
multiply. Immediately thereafter, microprocessor 120 stops counting the divided clock and measures the width of the measured pulse.
The data of T1H is immediately taken into the work area having a capacity of about 500 bytes in the SRAM 122 and is stored.

また、すぐにパルス幅回路118のカウンタ119のデータ
をクリアして、また、次のパルス幅T1Lのカウントを開
始する。次のパルスT2Hの立ち上がりまでマイクロプロ
セッサ120は時間待ち、または、他の仕事をしている。
次に来たパルスT2Hの立ち上がりで、カウントを停止し
て、前記と同様にしてエンベローブカーブのパルス幅T1
LのデータをSRAM122のワークエリアに取り込む。このよ
うにしてSRAM122のワークエリアが満杯になるまでカウ
ントを行い、記憶させる作業を続ける。終了と同時に、
今度は周波数回路114で測定されたキャリア周波数のデ
ータをSRAM122の所定のエリアに取り込む。以上で、エ
ミュレートすべきリモコン送信機のデータの取り込みが
終了する。
In addition, the data of the counter 119 of the pulse width circuit 118 is immediately cleared, and the counting of the next pulse width T1L is started. The microprocessor 120 waits for time until the next rise of the pulse T2H, or is doing other work.
At the next rising edge of the pulse T2H, the counting is stopped, and the pulse width T1 of the envelope curve in the same manner as described above.
The L data is taken into the work area of the SRAM 122. In this way, the counting is performed until the work area of the SRAM 122 becomes full, and the operation of storing the count is continued. Upon completion,
This time, the data of the carrier frequency measured by the frequency circuit 114 is taken into a predetermined area of the SRAM 122. This completes the capture of data from the remote control transmitter to be emulated.

なお、以後の説明のためにリモコン信号の中でキャリ
ア周波数が乗っている部分を、マークと呼び、キャリア
周波数のない部分をスペースと呼称する。すなわち、リ
モコン信号が取り込まれたデータは、マークから始まっ
て、スペースと2バイトずつ交互にSRAM122のワークエ
リアに書き込まれていることになる。
For the following description, a portion of the remote control signal where the carrier frequency is on is called a mark, and a portion without the carrier frequency is called a space. That is, the data in which the remote control signal is taken in is written in the work area of the SRAM 122 alternately by space and 2 bytes starting from the mark.

次に、SRAM122のワークエリアに取り込んだデータの
圧縮、並びに、登録の仕方について説明すると、このSR
AM122のワークエリアに取り込まれたリモコン信号のエ
ンベローブカーブのデータの最初の圧縮は、マーク,ス
ペースの組合せを1つの単位と見なして、いくつかのパ
ルス幅のグループに分類し、分類されたパルス幅群に4
ビットで構成されるパルス番号(16進法で記す)1,2,…
…A,B,C,……Fを付け、ワークエリアに蓄えられた2バ
イトずつのデータを上記パルス番号に置き換えることで
ある。
Next, the method of compressing and registering the data taken into the work area of the SRAM 122 will be described.
The first compression of the envelope curve data of the remote control signal taken into the work area of AM122 is based on the combination of mark and space as one unit, and classified into several groups of pulse widths. 4 in group
Pulse number composed of bits (in hexadecimal notation) 1,2, ...
.. A, F,... F, and the 2-byte data stored in the work area is replaced with the pulse number.

そのために、まず、SRAM122のワークエリアのデータ
に取り込んだマーク,スペースのデータを第9図(c)
のように、マーク、マーク+スペース(今後は“マーク
+スペース”をピリオドと呼ぶ)のデータに置き換え
て、再登録する。
For this purpose, first, the mark and space data taken into the work area data of the SRAM 122 are shown in FIG. 9 (c).
And re-register by replacing the data with mark, mark + space (hereinafter, “mark + space” is called a period).

次に、上記パルス幅の分類の仕方について第10図によ
り説明すると、パルス幅の分類は、上記マークとピリオ
ドをいくつかのパルス番号に分類するために行われ、あ
る公称範囲内にある全てのマークとピリオドがある番号
に適切に分類されるように、グループ分けを行い、下限
値,中間値および上限値を決定するものである。
Next, the method of classifying the pulse width will be described with reference to FIG. 10.Pulse width classification is performed to classify the mark and the period into several pulse numbers, and all the pulses within a certain nominal range are classified. Grouping is performed so that marks and periods are appropriately classified into a certain number, and a lower limit, an intermediate value, and an upper limit are determined.

すなわち、使用される各パルス番号1,2,3,……に対し
て、マークとピリオドの上限値,下限値が設定されるこ
とになる。次に、第11図(a)のように、このワークエ
リアに蓄えられたデータは、この上限値,下限値と比較
され、中間値のデータに置き換えられ、その後で、すべ
て、前記パルス番号1,2,3,……に置き換えられ、このパ
ルス番号には、マークおよびピリオドの各2バイトの幅
データの代表値である中間値が設定されることになる。
なお、第11図(b)はリモコン信号をパルス番号で表わ
した説明図である。このようにして、最初の圧縮は、リ
モコン信号の各2バイトで構成されるマーク,スペース
が、4ビットで構成されるパルス番号に置き換えられる
ことによって行なわれる。
That is, the upper limit value and the lower limit value of the mark and the period are set for each of the pulse numbers 1, 2, 3,... Used. Next, as shown in FIG. 11 (a), the data stored in the work area is compared with the upper limit value and the lower limit value, and is replaced with data of an intermediate value. , 2, 3,..., And the pulse number is set to an intermediate value which is a representative value of the 2-byte width data of the mark and the period.
FIG. 11 (b) is an explanatory diagram in which the remote control signal is represented by a pulse number. In this way, the first compression is performed by replacing the mark and space composed of each 2 bytes of the remote control signal with the pulse number composed of 4 bits.

次の圧縮は、符号化されたリモコンデータ、すなわ
ち、各キーのデータをさらに圧縮しなければならない。
送信中に赤外線信号を正確に再構成できるようにそのデ
ータは全ての重要なデータを保持せねばならない。
In the next compression, the encoded remote control data, that is, the data of each key, must be further compressed.
The data must carry all the important data so that the infrared signal can be correctly reconstructed during transmission.

その圧縮の過程を第12図に示す。この過程はリモコン
コードの中でコードの繰り返しを省く行程でもある。
FIG. 12 shows the compression process. This process is also a step of eliminating code repetition in the remote control code.

圧縮の仕方は、第12図(A),(B)に示すように最
初の番号が2回目の番号と比較され、両者が一致しなけ
れば、最初の2つの番号と次の2つの番号と比較する。
そして、両方の2つの番号が、再び、一致しなければ、
初めの3つの番号と次の3つの番号と比較する。このよ
うにワークエリアに格納されている番号の最初の半分が
格納されている残りの半分と比較されるまで1番号ずつ
増して比較が続けられる。それでも、一致が認められな
ければ、その比較は最初から繰り返されるが、最初の1
番号は省き、それでも一致が認められないときには、次
の2番号が省かれる。第12図(A)はヘッド信号のない
場合である。“121213"が繰り返されている。従って、
“121213"というパルス番号列と、繰り返しの部分の先
頭のパルス番号が0番目にあることを記憶すればよい。
As shown in FIGS. 12A and 12B, the first number is compared with the second number. If the two numbers do not match, the first two numbers and the next two numbers are compared. Compare.
And if the two numbers do not match again,
Compare the first three numbers with the next three numbers. In this way, the comparison is continued by increasing the number by one until the first half of the number stored in the work area is compared with the other half stored. If the match is still not found, the comparison is repeated from the beginning, but the first 1
The numbers are omitted, and if no match is found, the next two numbers are omitted. FIG. 12A shows a case where there is no head signal. “121213” is repeated. Therefore,
What is necessary is just to store the pulse number sequence “121213” and the fact that the leading pulse number of the repetition part is the 0th.

第1図(B)はヘッド番号がある場合である。“12"
がヘッド信号で、“3435"が繰り返し信号である。従っ
て“123435"というパルス番号列と繰り返し部分の先頭
のパルス番号が2番目にあることを記憶すればよい。こ
れによりリモコンデータは圧縮されたことになる。
FIG. 1B shows a case where there is a head number. “12”
Is a head signal, and “3435” is a repetition signal. Therefore, it is only necessary to store that the pulse number sequence “123435” and the first pulse number of the repetition part are the second. As a result, the remote control data is compressed.

すなわち、SRAM122の約500バイトのワークエリアに蓄
えられたエミュレートされたリモコン信号は、データ番
号、キャリア周波数のデータ、パルス幅データの種類の
数、単発信号か連続信号か、繰り返しは何番目のパルス
番号からか、パルス幅のデータ等に変換される。このよ
うにして、取り込まれたリモコン信号のデータは取り扱
うことができる格納サイズまで圧縮され、エミュレート
中にデータを再送信するためにデータを圧縮されていな
い書式に再び伸長できるように、全ての圧縮データも保
持される。
That is, the emulated remote control signal stored in the work area of about 500 bytes of the SRAM 122 includes the data number, the carrier frequency data, the number of types of pulse width data, the single-shot signal or the continuous signal, and the repetition number. The pulse number is converted into pulse width data or the like. In this way, the data of the captured remote control signal is compressed to a manageable storage size, and all of the data is re-decompressed to an uncompressed format to retransmit the data during emulation, Compressed data is also retained.

これにより、学習過程と格納過程が終わる。それらの
過程はエミュレートされる送信機における全てのキーに
共通のものである。
Thus, the learning process and the storing process are completed. These steps are common to all keys in the emulated transmitter.

次にエミュレートした信号を送信機111が発信信する
動作の概要について説明すると、エミュレートした信号
を発信するためには送信機が必要とする格納されたコー
ドを読みだし、伸長させ、かつ、送ることが必要とな
る。これは、まず、SRAM122内の正しいデータブロック
がアドレスされるように、どのソースが選択されたかを
決定することにより行われる。それからあるキー124が
押されると、そのソースのための全てのデータブロック
のSRAMの番地がマイクロプロセッサ120へ転送される。
所定のコードが見つかると、SRAMのワークエリアへ所定
のデータブロックがコピーされる。
Next, an outline of the operation of transmitting the emulated signal by the transmitter 111 will be described.To transmit the emulated signal, the stored code required by the transmitter is read out, decompressed, and It is necessary to send. This is done by first determining which source has been selected so that the correct data block in SRAM 122 is addressed. Then, when a key 124 is pressed, the SRAM addresses of all data blocks for that source are transferred to the microprocessor 120.
When a predetermined code is found, a predetermined data block is copied to a work area of the SRAM.

それと同時に、リモコンコード複製のため、圧縮され
たコードが伸長される。それからその複製されたコード
に、スタート値と長さ値および繰り返し回数の値等が加
えられる。残っている行うべき操作は、必要なキャリア
周波数を発生することである。これは、前記周波数回路
114の周波数カウンタに所定のデータをセットすること
で行われる。
At the same time, the compressed code is expanded for remote control code duplication. Then, a start value, a length value, a value of the number of repetitions, and the like are added to the copied code. The remaining operation to be performed is to generate the required carrier frequency. This is the frequency circuit
This is performed by setting predetermined data in the frequency counter 114.

この周波数回路114へはマイクロプロセッサ120を駆動
する基本クロックが入力されており、この基本クロック
の数をセットされたデータまでカウントし値が同じにな
ったときに周波数カウンタ115の出力を反転させるよう
になっている。この動作を繰り返すことによりキャリア
周波数を作り出している。
A basic clock for driving the microprocessor 120 is input to the frequency circuit 114. The number of the basic clock is counted up to the set data, and when the value becomes the same, the output of the frequency counter 115 is inverted. It has become. By repeating this operation, a carrier frequency is created.

伸長されたコードの伝送は、送信開始と共にまず、パ
ルス幅カウンタ119の出力を“H"にして、1番目のデー
タをパルス幅カウンタ119にセットする。その後で、そ
のデータを1データずつ減算していく。そのデータが、
“0"になったとき、今度は、パルス幅カウンタの出力を
“L"にする。そして、次のデータをパルス幅カウンタに
セットする。そして、上記と同様な作業を繰り返す。
When transmitting the expanded code, first, the output of the pulse width counter 119 is set to “H” at the start of transmission, and the first data is set in the pulse width counter 119. After that, the data is subtracted one by one. The data
When it becomes "0", the output of the pulse width counter is set to "L". Then, the next data is set in the pulse width counter. Then, the same operation as described above is repeated.

このようにしてエミュレートしたリモコン信号のエン
ベローブカーブの再構成を行う。キャリア周波数とエン
ベローブカーブとAND130を取ることによりリモコン信号
の再構成が可能となる。再構成されたリモコン信号は、
駆動回路131を通して、赤外線発光ダイオード132を駆動
し、電気信号を光信号に変換して、エミュレートされた
リモコン送信機で動作するテレビジョン受像機等に対し
て発信することにより、そのテレビジョン受像機、ビデ
オを動作させることができる。
The envelope curve of the emulated remote control signal is reconstructed. By taking the carrier frequency, the envelope curve, and the AND 130, it is possible to reconstruct the remote control signal. The reconstructed remote control signal is
By driving the infrared light emitting diode 132 through the driving circuit 131, the electric signal is converted into an optical signal and transmitted to a television receiver or the like that operates with the emulated remote control transmitter, thereby receiving the television reception signal. Machine, video can work.

このようにして、いくつかのリモコン送信機をエミュ
レートでき、操作が簡単で、制御される機器の相互接続
や改造を必要としない再構成可能なリモコン送信機が得
られた。
In this way, a reconfigurable remote control transmitter that can emulate several remote control transmitters, is easy to operate, and does not require interconnection or modification of the controlled devices is provided.

発明が解決しようとする課題 しかしながら前記のようなキーの学習の仕方ではSRAM
の容量が一定であれば学習可能なキー数に限りがでて、
さらに学習できるキー数を増やして行くとSRAMの容量が
増加して、1ランク上のSRAMを使う必要が生じ、価格が
上昇するという問題ができる。また、マイコン部とその
周辺回路を1チップ化し、ローコスト化を図るために
は、できるだけSRAMの容量を小さくする必要があった。
また、SRAMの容量が大きくなると、SRAMのアドレス線が
増え、プリント基板の設計も複雑になっているのが現実
であった。そのために、本発明は学習したパルスコード
列を登録するのに必要な1キー当たりのSRAMの容量を少
なくした学習リモコン送信機を提供することを目的とす
るものである。
Problems to be Solved by the Invention However, in the method of learning keys as described above, SRAM is used.
If the capacity of is constant, the number of keys that can be learned is limited,
As the number of keys that can be learned is further increased, the capacity of the SRAM increases, and it becomes necessary to use an SRAM one rank higher, which raises a problem that the price increases. Further, in order to reduce the cost by reducing the microcomputer section and its peripheral circuits into one chip, it was necessary to reduce the capacity of the SRAM as much as possible.
Also, as the capacity of the SRAM increases, the number of address lines of the SRAM increases, and the design of the printed circuit board has become complicated. Therefore, an object of the present invention is to provide a learning remote control transmitter in which the amount of SRAM per key required to register a learned pulse code string is reduced.

課題を解決するための手段 上記課題を解決するために、従来リモコンデータであ
るパルスコード列を2バイトずつのパルス幅データとし
て受信した順番どおりにメモリに取り込み、そのパルス
幅データを4ビットで構成されるパルス番号に変換して
メモリに再登録していたが、本発明の学習リモコン送信
機では、1キー当たりのメモリ登録容量を減少させるた
めに、さらにパルスコード列の再圧縮作業を行う。
Means for Solving the Problems In order to solve the above problems, a pulse code string which is conventional remote control data is taken into a memory in the order of reception as pulse width data of 2 bytes each, and the pulse width data is composed of 4 bits. In the learning remote control transmitter of the present invention, the pulse code train is further recompressed in order to reduce the memory registration capacity per key.

再圧縮のポイントは、パルスコード列を構成し、か
つ、一番よく使われている4ビットのパルス番号を1ビ
ットのデータで表すようにしたもので、そのために、リ
モコン信号を構成するパルスコード列の中で、使用頻度
の高い順番にパルス番号を並べて、使用頻度の高い1番
目ともう1つのパルス番号のみによって構成されている
ブロックをデータパルスブロックとし、そのデータパル
スブロックを1ニブル(4ビット)、あるいは、1バイ
ト(8ビット)等の処理し易いデータ量で区切り、その
分割ブロックの識別子として予め決められた4ビットの
番号をその分割ブロックの前に挿入することにより、こ
の分割ブロックは1ビットで構成されるデータの集まり
であることを表し、分割ブロックを構成する2種類の1
ビットからなるデータに対して、予め決められたパルス
番号を割り当てて、再登録するものである。
The point of recompression is that the pulse code train is composed, and the most frequently used 4-bit pulse number is represented by 1-bit data. Therefore, the pulse code constituting the remote control signal is used. In the column, pulse numbers are arranged in the order of most frequently used, and a block constituted by only the first and the most frequently used pulse numbers is defined as a data pulse block, and the data pulse block is defined as one nibble (4 Bit) or 1-byte (8-bit) data which is easy to process, and a predetermined 4-bit number is inserted before the divided block as an identifier of the divided block. Represents a group of 1-bit data, and two types of 1s constituting a divided block.
A predetermined pulse number is assigned to the data composed of bits, and the data is re-registered.

作用 従って、本発明によれば、リモコンコードの登録時
に、使用頻度の高いパルス番号を含む2種類以下のパル
ス番号から構成されるデータパルスブロックを決定し、
そのデータパルスブロックの登録をさらに8バイト単位
に分け、分割ブロックとし、分割ブロックの前に予め決
められた4ビットのパルス番号を挿入することにより、
この分割ブロックを1ビットで構成される2種類のデー
タで登録することができ、そのために、データパルスブ
ロックを登録するのに必要なメモリ容量を大幅に減少さ
せることができ、従来と同じメモリ容量のICを使った場
合でも学習できるキー数を大幅に増やすことができ、か
つ、1キー当たりのメモリ使用コストを下げるという効
果を有するものである。
Therefore, according to the present invention, at the time of registering a remote control code, a data pulse block composed of two or less types of pulse numbers including a frequently used pulse number is determined,
The registration of the data pulse block is further divided into 8-byte units, divided into blocks, and a predetermined 4-bit pulse number is inserted before the divided block,
This divided block can be registered with two types of data composed of one bit, and therefore, the memory capacity required for registering the data pulse block can be greatly reduced, and the same memory capacity as the conventional one can be obtained. Even when the IC is used, the number of keys that can be learned can be greatly increased, and the memory use cost per key can be reduced.

実施例 第1図は本発明の学習リモコン送信機の一実施例の構
成および動作について第1図〜第7図により説明する。
第1図において、1はエミュレートされるリモコン送信
機である。このリモコン送信機1の発光部2を、本発明
の学習リモコン送信機11のPINダイオード12に対向して
配置し、学習リモコン送信機11のモード切替スイッチ25
を通常モード26(この学習リモコン送信機11のキー24を
押すと、学習した所定のリモコン信号が送信されるモー
ド)から学習モード27(この学習リモコン送信機11の特
定のキー24にエミュレートしたいリモコン送信機1の信
号を学習するモード)に切り替え、学習リモコン送信機
11が学習モード27になったことを表示回路21で確認す
る。その後で、エミュレートされるリモコン送信機1の
キー3を押して発光部2から光信号4を送信する。
Embodiment FIG. 1 explains the configuration and operation of an embodiment of a learning remote control transmitter according to the present invention with reference to FIG. 1 to FIG.
In FIG. 1, reference numeral 1 denotes a remote control transmitter to be emulated. The light-emitting unit 2 of the remote control transmitter 1 is arranged to face the PIN diode 12 of the learning remote control transmitter 11 of the present invention, and the mode changeover switch 25 of the learning remote control transmitter 11 is arranged.
From a normal mode 26 (a mode in which a learned predetermined remote control signal is transmitted when the key 24 of the learning remote control transmitter 11 is pressed) to a learning mode 27 (a mode in which a specific key 24 of the learning remote control transmitter 11 is to be emulated). Mode to learn the signal of the remote control transmitter 1)
The display circuit 21 confirms that the learning mode 11 has entered the learning mode 27. After that, the key 3 of the remote control transmitter 1 to be emulated is pressed to transmit the optical signal 4 from the light emitting unit 2.

送信された光信号4は、学習リモコン送信機11のPIN
ダイオード12に受信される。
The transmitted optical signal 4 is the PIN of the learning remote control transmitter 11.
Received by the diode 12.

PINダイオード12は学習モード中にエミュレートすべ
きリモコン送信機1からの光信号4を電気信号に変換す
る光電気変換素子で、その変換された電気信号は、入力
された信号を忠実に増幅するプリアンプ部13に送られ
る。
The PIN diode 12 is a photoelectric conversion element that converts the optical signal 4 from the remote control transmitter 1 to be emulated during the learning mode into an electric signal. The converted electric signal faithfully amplifies the input signal. The signal is sent to the preamplifier unit 13.

プリアンプ部13から出てきた信号は、次の回路である
周波数回路14と波形整形回路17に分けられる。
The signal output from the preamplifier 13 is divided into a frequency circuit 14 and a waveform shaping circuit 17, which are the next circuits.

まず、周波数回路14は、学習モード時に、パルス群の
各バースト中のパルスの周波数(以下、従来技術と同様
キャリア周波数と称す)を周波数回路14内部の周波数カ
ウンタ15で測定する回路で、周波数カウンタ15はマイク
ロプロセッサ20を駆動するための基本クロック発生回路
23から出力されるクロック数を測定することによって、
キャリア周波数の測定を行うようになっている。また、
通常モード時には、学習リモコン送信機11のキー24が押
されたときに、学習モードで測定し記憶したキャリア周
波数の値を周波数カウンタ15にセットするだけでキャリ
ア周波数を発生させる回路でもある。
First, the frequency circuit 14 is a circuit that measures a frequency of a pulse in each burst of a pulse group (hereinafter, referred to as a carrier frequency as in the related art) by a frequency counter 15 inside the frequency circuit 14 in a learning mode. 15 is a basic clock generation circuit for driving the microprocessor 20
By measuring the number of clocks output from 23,
The measurement of the carrier frequency is performed. Also,
In the normal mode, when the key 24 of the learning remote control transmitter 11 is pressed, the carrier frequency is generated simply by setting the value of the carrier frequency measured and stored in the learning mode in the frequency counter 15.

周波数回路14では、学習モード時に、プリアンプ部13
から出力されたリモコン信号のキャリア周波数を測定す
る。そのキャリア周波数は、測定完了と同時にラッチ回
路16に出力されラッチされる。
In the frequency circuit 14, in the learning mode, the preamplifier 13
The carrier frequency of the remote control signal output from is measured. The carrier frequency is output to the latch circuit 16 and latched simultaneously with the completion of the measurement.

上記プリアンプ部13から出てきたリモコン信号は、も
う一方の回路であるリモコン信号のエンベローブカーブ
を取り出す波形整形回路17に入る。その波形整形回路17
から出てきた信号は、リモコン信号のキャリア周波数成
分を取り除いたパルス信号で、次のパルス幅回路18のカ
ウンタ部19に入り、第2図(a)に示すパルス幅T1H,T1
L,T2H,T2L,T3H,T3L……を順番に測定し、各パルス幅2
バイトずつのデータで第2図(b)のようにランダムア
クセスメモリ22(以後SRAMと称す)に蓄積するようにな
っている。
The remote control signal output from the preamplifier 13 enters a waveform shaping circuit 17 which extracts the envelope curve of the remote control signal, which is another circuit. Its waveform shaping circuit 17
Is a pulse signal from which the carrier frequency component of the remote control signal has been removed, enters the counter 19 of the next pulse width circuit 18, and has a pulse width T1H, T1 shown in FIG.
L, T2H, T2L, T3H, T3L ... are measured in order and each pulse width 2
The data is stored in a random access memory 22 (hereinafter referred to as an SRAM) in units of bytes as shown in FIG. 2B.

次に、リモコン信号のパルス幅を測定する方法につい
て第2図(a),(b),(c)を用いて説明すると、
リモコン信号のエンベローブカーブ入力の変化、すなわ
ち、リモコン信号のパルスの立ち上がりを検出して、マ
イクロプロセッサ20に割り込み28をかける。その後、す
ぐにマイクロプロセッサ20を駆動する基本クロック発生
回路23から出力されるクロックを分周回路29で文周した
分周クロック(この場合には16分周している)の数のカ
ウンタを開始してパルス幅T1Hの測定を開始する。すな
わち、“パルス幅=クロックのカウント数”ということ
になる。そして、今度はパルスの立ち下がりと同時に、
マイクロプロセッサ20に、再度、割り込み28をかける。
その後すぐに、マイクロプロセッサ20は分周クロックの
カウントを停止し、測定されたパルスの幅T1Hのデータ
をすぐにSRAM22の中の約500バイトの容量で構成される
ワークエリアに順番に取り込み記憶させる。
Next, a method for measuring the pulse width of the remote control signal will be described with reference to FIGS. 2 (a), 2 (b) and 2 (c).
A change in the envelope curve input of the remote control signal, that is, the rising edge of the pulse of the remote control signal is detected, and an interrupt 28 is issued to the microprocessor 20. Thereafter, the counter of the number of divided clocks (in this case, divided by 16) obtained by dividing the clock output from the basic clock generating circuit 23 for driving the microprocessor 20 by the frequency dividing circuit 29 is started. Then, measurement of the pulse width T1H is started. That is, “pulse width = count number of clock”. Then, at the same time as the pulse falls,
The interrupt 28 is again applied to the microprocessor 20.
Immediately thereafter, the microprocessor 20 stops counting the frequency-divided clock, and immediately captures and stores the measured pulse width T1H data in the SRAM 22 in a work area having a capacity of about 500 bytes in order. .

また、すぐにパルス幅回路18のカウンタ19のデータを
クリアして、また、次のパルス幅T1Lのカウントを開始
する。次のパルスT2Hの立ち上がりまでマイクロプロセ
ッサ20は時間待ち、または、他の仕事をしている。次に
来たパルスT2Hの立ち上がりでカウントを停止して、前
記と同様にしてエンベローブカーブのパルス幅T1Lのデ
ータをSRAM22のワークエリアに取り込む。このようにし
て、SRAM22のワークエリアが満杯になるまでカウントを
行い、記憶させる作業を続ける。終了と同時に、今度は
周波数回路14で測定されたキャリア周波数のデータをSR
AM22の所定のエリアに取り込む。以上で、エミュレート
すべきリモコン送信機のデータの取り込みが終了する。
Further, the data of the counter 19 of the pulse width circuit 18 is immediately cleared, and the counting of the next pulse width T1L is started. The microprocessor 20 waits for time until the next pulse T2H rises, or is doing other work. The counting is stopped at the next rising edge of the pulse T2H, and the data of the pulse width T1L of the envelope curve is taken into the work area of the SRAM 22 in the same manner as described above. In this way, counting is performed until the work area of the SRAM 22 is full, and the operation of storing the count is continued. At the same time, the carrier frequency data measured by the frequency circuit 14 is
Take it into the predetermined area of AM22. This completes the capture of data from the remote control transmitter to be emulated.

なお、以後の説明のために従来技術と同様上記リモコ
ン信号の中でキャリア周波数が乗っている部分を、マー
クと呼び、キャリア周波数のない部分をスペースと呼称
する。すなわち、リモコン信号のデータは、マークから
始まって、スペースと、2バイトずつ交互に、SRAM22の
ワークエリアに書き込まれていることになる。
For the following description, a portion where the carrier frequency is included in the remote control signal is referred to as a mark, and a portion having no carrier frequency is referred to as a space, similarly to the related art. That is, the data of the remote control signal starts from the mark and is written in the work area of the SRAM 22 alternately by space and by 2 bytes.

次に、SRAM22のワークエリアに取り込んだデータの圧
縮、並びに、メモリへの登録の仕方について説明する
と、このSRAM22のワークエリアに取り込まれたリモコン
信号のエンベローブカーブデータの最初の圧縮は、マー
ク,スペースの組合せを1つの単位と見なして、いくつ
かのパルス幅のグループに分類し、分類されたパルス幅
群に4ビットで構成されるパルス番号(16進法で記す)
1,2,……A,B,C,……Eを付け、ワークエリアに蓄えられ
た2バイトずつのデータを上記パルス番号に置き換える
ことである。
Next, a method of compressing the data taken in the work area of the SRAM 22 and registering the data in the memory will be described. First compression of the envelope curve data of the remote control signal taken in the work area of the SRAM 22 is performed by the mark and the space. Is regarded as one unit, and classified into several groups of pulse widths, and a pulse number composed of 4 bits in the classified pulse width group (in hexadecimal notation)
1, 2,..., A, B, C,..., E, and the data of 2 bytes stored in the work area is replaced with the pulse number.

そのために、まず、SRAM22のワークエリアに取り込ん
だマーク,スペースのデータを第2図(c)のようにマ
ーク、マーク+スペース(今後は従来技術と同様マーク
+スペースをピリオドと呼ぶ)のデータに置き換えて再
登録する。
For this purpose, first, the mark and space data taken into the work area of the SRAM 22 are converted into mark and mark + space data (hereafter, the mark + space is called a period as in the prior art) as shown in FIG. 2 (c). Replace and re-register.

次に、上記パルス幅の分類の仕方について第3図によ
り説明する。
Next, a method of classifying the pulse width will be described with reference to FIG.

パルス幅の分類は上記マークとピリオドをいくつかの
パルス番号に分類するために行なわれ、ある公称範囲内
にある全てのマークとピリオドがある番号に適切に分類
されるように、グループ分けを行い、下限値,中間値、
および上限値を決定するものである。
Pulse width classification is performed to classify the above marks and periods into several pulse numbers, and group them so that all marks and periods within a certain nominal range are properly classified into a certain number. , Lower limit, intermediate value,
And an upper limit value.

すなわち、使用される各パルス番号1,2,3,……に対し
て、マークとピリオドの上限値,下限値が設定されるこ
とになる。次に、第4図(a)のように、このワークエ
リアに蓄えられたテータは、この上限値,下限値と比較
され、中間値のデータに置き換えられ、その後で、すべ
て、前記パルス番号1,2,3,……に置き換えられ、このパ
ルス番号には、マーク、およびピリオドの各2バイトの
幅データの代表値である中間値が設定される。なお、第
4図(b)はリモコン信号をパルス番号で表わした説明
図である。
That is, the upper limit value and the lower limit value of the mark and the period are set for each of the pulse numbers 1, 2, 3,... Used. Next, as shown in FIG. 4 (a), the data stored in the work area is compared with the upper limit value and the lower limit value and replaced with data of an intermediate value. , 2, 3,..., And the pulse number is set to an intermediate value which is a representative value of 2-byte width data of a mark and a period. FIG. 4B is an explanatory diagram in which the remote control signal is represented by a pulse number.

このようにして、最初の圧縮は、リモコン信号の各2
バイトで構成されるマーク,スペースが、4ビットで構
成されるパルス番号に置き換えられることによって行な
われる。
In this way, the first compression is performed for each 2
This is performed by replacing a mark or space composed of bytes with a pulse number composed of 4 bits.

次の圧縮は、符号化されたリモコンデータ、すなわ
ち、各キーのデータをさらに圧縮しなければならない。
送信中に赤外線信号を正確に再構成できるようにそのデ
ータは全ての重要なデータを保持せねばならない。
In the next compression, the encoded remote control data, that is, the data of each key, must be further compressed.
The data must carry all the important data so that the infrared signal can be correctly reconstructed during transmission.

その圧縮の過程を第5図に示す。この過程は、リモコ
ンコードの中で、繰り返しのコードを省く行程でもあ
る。圧縮の仕方は、最初の番号が2回目の番号と比較さ
れ、両者が一致しなければ、最初の2つの番号と次の2
つの番号と比較する。そして、両方の2つの番号が、再
び、一致しなければ、初めの3つの番号と次の3つの番
号と比較する。このようにワークエリアに格納されてい
る番号の最初の半分が格納されている残りの半分と比較
されるまで1番号ずつ増して比較が続けられる。それで
も、一致が認められなければ、その比較は最初から繰り
返されるが、最初の1番号は省き、それでも一致が認め
られないときには、次の2番号が省かれる。第5図
(A)はヘッド信号のない場合である。“12121212121
2"が繰り返されている。従って、“121212121212"とい
うパルス番号列と、繰り返しの部分の先頭のパルス番号
が0番目にあることを記憶すればよい。
FIG. 5 shows the compression process. This process is also a process of omitting a repeated code in the remote control code. The first number is compared with the second number, and if they do not match, the first two numbers and the next two
To one number. If the two numbers do not match again, the first three numbers are compared with the next three numbers. In this way, the comparison is continued by increasing the number by one until the first half of the number stored in the work area is compared with the other half stored. If still no match is found, the comparison is repeated from the beginning, but the first number is omitted, and if no match is found, the next two numbers are omitted. FIG. 5A shows the case without a head signal. “12121212121
2 ". Therefore, the pulse number sequence" 121212121212 "and the fact that the leading pulse number of the repetition part is the 0th may be stored.

第8図(B)はヘッド番号がある場合で、“12"がヘ
ッド信号で、“3435"が繰り返し信号である。従って“1
23435"というパルス番号列と繰り返し部分の先頭のパル
ス番号が2番目にあることを記憶すればよい。これによ
りリモコンデータは圧縮されたことになる。
FIG. 8B shows a case where there is a head number, where "12" is a head signal and "3435" is a repetition signal. Therefore, “1
It is sufficient to store the pulse number sequence “23435” and the second pulse number at the beginning of the repetition portion. Thus, the remote control data is compressed.

ここまでの圧縮で、取り込んだ2バイト+2バイトの
計4バイトからなるパルス幅データを4ビットで表すこ
とができるまでに圧縮したが、これは従来の圧縮手段と
同じであり、本発明はこの圧縮されたリモコンデータ
(リモコンコード)をさらに圧縮するものである。
With the compression up to this point, the acquired pulse width data consisting of a total of 4 bytes of 2 bytes + 2 bytes has been compressed so that it can be represented by 4 bits, but this is the same as the conventional compression means, and the present invention has The compressed remote control data (remote control code) is further compressed.

リモコンコードは一般的に第6図(1),(2),
(3)等のように、4種類程度のブロックで構成されて
いる。すなわち、リモコン信号の開始を意味するヘッド
パルスブロック、リモコン信号の一番重要なデータで、
セットの操作機能を意味するデータパルスブロック、リ
モコン信号の終了を意味するトレーラパルスブロック、
前記と同じ信号の繰り返しを意味する繰り返しパルスブ
ロックの4種類程度で構成されている。
Generally, the remote control code is shown in FIG. 6 (1), (2),
As shown in (3) and the like, it is composed of about four types of blocks. That is, the head pulse block which means the start of the remote control signal, the most important data of the remote control signal,
A data pulse block which means the set operation function, a trailer pulse block which means the end of the remote control signal,
It is composed of about four types of repetitive pulse blocks which mean the repetition of the same signal as described above.

このブロックの内でデータパルスブロックは2種類の
パルス幅コードのみで構成され一番重要なデータで、リ
モコンコードの操作機能を意味しており“1"と“0"のバ
イナリデータの集まりで構成されている。そして、リモ
コンコードの機能が増えることによりデータパルスブロ
ックのデータ長が長くなるようになっているのが現状で
ある。今回の発明は、このデータパルスブロックの圧縮
が対象となる。
Among these blocks, the data pulse block is the most important data consisting of only two types of pulse width codes, meaning the operation function of the remote control code, and consists of a set of binary data of "1" and "0" Have been. At present, the data length of the data pulse block is increased by increasing the functions of the remote control code. The present invention is directed to compression of the data pulse block.

第7図は、本発明によるリモコンコードの再圧縮方法
の説明図で、リモコンコード内で、一番使用頻度の高い
データ量の多いデータパルスブロックをさらに圧縮すれ
ば、1キー当たりのリモコンコードのメモリ登録容量を
大幅に減少させることができる。そのためにまず、リモ
コンコードのデータパルスブロック抽出の仕方について
説明する。第7図(A)は本発明によるデータ再圧縮を
行う前のパルスコード列であり、このパルスコード列は
第5図(A)のヘッド信号のない場合を基にして作られ
たものである。第7図(A)の4ビットで構成された各
パルス幅データ(この図では、1,2,3を使用している)
を、使用頻度の高い順番に並べて、使用頻度の高いパル
ス幅データの1番と2番のみ、もしくは1番ともう1つ
のみで構成されたブロックをデータパルスブロックと仮
定して再圧縮処理を行う。
FIG. 7 is an explanatory diagram of a remote control code recompression method according to the present invention. In the remote control code, if the most frequently used data pulse block having a large amount of data is further compressed, the remote control code per key can be reduced. The memory registration capacity can be significantly reduced. First, a method of extracting a data pulse block of a remote control code will be described. FIG. 7A shows a pulse code sequence before data recompression according to the present invention, and this pulse code sequence is created based on the case where there is no head signal in FIG. 5A. . Each pulse width data composed of 4 bits in FIG. 7A (1, 2, and 3 are used in this figure)
Are arranged in descending order of frequency of use, and recompression processing is performed on the assumption that a block composed of only the first and second or the first and the other of the frequently used pulse width data is a data pulse block. Do.

第7図(A)において、最も使用頻度の高いパルス番
号は‘1'で、2番目は‘2'となり、このデータパルスブ
ロックは、このパルス番号1,2で構成されている。ま
た、データパルスブロックは必ず2種類以下のパルス番
号でしか構成されないので、そのパルス番号以外のパル
ス番号が来る前がデータパルスブロックの終端になる。
In FIG. 7A, the most frequently used pulse number is “1”, the second is “2”, and this data pulse block is composed of the pulse numbers 1 and 2. Further, since the data pulse block is always composed of only two or less types of pulse numbers, the end of the data pulse block comes before a pulse number other than the pulse number comes.

このデータパルスブロックを、このリモコン送信機に
使用しているマイコンが最も扱い易いデータの長さであ
る8単位で区切り、この8単位で構成されるブロックを
分割ブロックとすると、第7図(B)のような結果にな
る。すなわち、第7図(A)に示すデータパルスブロッ
クは、1個の分割ブロックと3個のパルス番号に置き換
えられることになり、また、分割ブロックではパルス番
号‘1'と‘2'を1ビットのデータ‘0'と‘1'に変換して
表していることになる。
If the data pulse block is divided into eight units, which are the data lengths most easily handled by the microcomputer used in the remote control transmitter, and the block constituted by the eight units is a divided block, FIG. ). That is, the data pulse block shown in FIG. 7 (A) is replaced by one divided block and three pulse numbers. In the divided block, the pulse numbers "1" and "2" are replaced by one bit. Is converted to data '0' and '1'.

上記まで圧縮されたデータパルスブロックは、データ
が1ビットである分割ブロック、あるいは4ビットであ
るパルス番号が混在しているために、リモコンコードを
再構成する時に、このビットはパルスブロックか分割ブ
ロックかを判別することが非常にむずかしくなる。その
構成要素を正確に判別するために、1ビットの集まりで
構成される分割ブロックの前に、次のコードは分割ブロ
ックであることを意味する予め決められた4ビットの識
別子を挿入する。この例では“1111"(16進数では
‘F')を使う。
In the data pulse block compressed as described above, since the data is divided into 1-bit divided blocks or 4-bit pulse numbers, this bit is used as a pulse block or divided block when reconstructing the remote control code. It is very difficult to determine whether In order to accurately determine the component, a predetermined 4-bit identifier indicating that the next code is a divided block is inserted before the divided block composed of a group of 1 bit. In this example, "1111"('F' in hexadecimal) is used.

次に、分割ブロックの圧縮の仕方について説明する。 Next, a method of compressing a divided block will be described.

抽出された分割ブロックは2種類以下のパルス幅コー
ドで構成されていることに注目して、“0"または“1"の
1ビットデータに2種類のパルス幅データを割り当てる
ことを予め決めておく必要がある。すなわち、この説明
では、1ビットのデータ“0"をパルス番号‘1'を、1ビ
ットのデータ“1"をパルス番号‘2'に割り当てて、ブロ
ックを書き直すことにより圧縮を行う。
Paying attention to the fact that the extracted divided block is composed of two or less types of pulse width codes, it is determined in advance that two types of pulse width data are assigned to 1-bit data of "0" or "1". There is a need. That is, in this description, compression is performed by rewriting blocks by allocating 1-bit data “0” to pulse number “1” and 1-bit data “1” to pulse number “2”.

このようにして圧縮されたリモコンコードは第7図
(C)のように表される。
The remote control code thus compressed is represented as shown in FIG. 7 (C).

このことを利用して、リモコンコードを圧縮すると、
リモコンコードは、4ビットで構成されるヘッドパル
ス,トレーラパルス,データパルス,繰り返しパルス,
識別子と、1ビットの集まりで表される分割ブロックで
構成される。
Taking advantage of this, compressing the remote control code,
The remote control code consists of a 4-bit head pulse, trailer pulse, data pulse, repetition pulse,
It is composed of an identifier and a divided block represented by a set of 1 bit.

すなわち、SRAM22の約500バイトのワークエリアに蓄
えられたエミュレートされたリモコン信号は、データ番
号、キャリア周波数のデータ、パルス幅データ、パルス
番号の種類、単発信号か連続信号か、繰り返しは何番目
のパルス番号からか、および、ブロック内のパルス幅デ
ータ、等のデータに変換され、メモリに記憶されること
になる。
That is, the emulated remote control signal stored in the work area of about 500 bytes of the SRAM 22 includes data number, carrier frequency data, pulse width data, type of pulse number, single-shot signal or continuous signal, and the number of repetitions. Is converted into data such as pulse width data in a block or the like and stored in a memory.

これにより、学習過程と格納過程が終わる。それらの
過程はエミュレートされる送信機における全てのキーに
共通のものである。
Thus, the learning process and the storing process are completed. These steps are common to all keys in the emulated transmitter.

送信機11が使用者により希望に応じて構成された後
は、その送信機を活用するには必要とするコードを読み
だし伸長させ、かつ、送ることを必要とする。これは、
まず、SRAM22内にあるキーの正しいリモコンデータブロ
ックがアドレスされるように、キー24の内でどのキーが
選択されたかを決定することにより行われる。それから
あるキーが押されると、そのソースのための全てのリモ
コンデータブロックのSRAMのアドレスがマイクロプロセ
ッサ20へ転送される。その中から所定のコードが見つか
ると、SRAM22のワークエリアへ所定のリモコンデータブ
ロックがコピーされる。
After the transmitter 11 has been configured as desired by the user, it is necessary to read, decompress, and send the required code to utilize the transmitter. this is,
First, this is done by determining which of the keys 24 has been selected so that the correct remote control data block for the keys in the SRAM 22 is addressed. Then, when a key is pressed, the SRAM addresses of all remote control data blocks for that source are transferred to microprocessor 20. When a predetermined code is found from the code, a predetermined remote control data block is copied to the work area of the SRAM 22.

それと同時に、リモコンコード複製のため、圧縮され
たコードが伸長される。伸長の方法は、圧縮されたリモ
コンコードを構成しているパルス番号に対応したパルス
幅データと、識別子により判別した分割ブロックの1ビ
ットデータに対応したパルス番号を順次、紐といて行く
ようにして、パルス幅データを再現し、元のリモコンコ
ードを再構成する。それからその複製されたコードに、
スタート値および繰り返しの値等が加えられる。
At the same time, the compressed code is expanded for remote control code duplication. The decompression method is such that the pulse width data corresponding to the pulse number constituting the compressed remote control code and the pulse number corresponding to the 1-bit data of the divided block determined by the identifier are sequentially linked. , Reproduce the pulse width data and reconstruct the original remote control code. Then, in that duplicated code,
A start value and a repetition value are added.

残っている行うべき操作は、必要なキャリア周波数を
発生することである。これは、前記周波数回路14の周波
数カウンタに所定のデータをセットすることで行われ
る。この周波数回路14へはマイクロプロセッサ20を駆動
する基本クロックが入力されており、この基本クロック
の数をセットされたデータまでカウントし値が同じにな
ったときに周波数カウンタ15の出力を反転させるように
なっている。この動作を繰り返すことによりキャリア周
波数を作り出している。
The remaining operation to be performed is to generate the required carrier frequency. This is performed by setting predetermined data in a frequency counter of the frequency circuit 14. A basic clock for driving the microprocessor 20 is input to the frequency circuit 14, and the number of the basic clock is counted up to the set data, and when the value becomes the same, the output of the frequency counter 15 is inverted. It has become. By repeating this operation, a carrier frequency is created.

伸長されたコードの伝送は、送信開始と共にまず、パ
ルス幅カウンタ19の出力を“H"にして、1番目のデータ
をパルス幅カウンタ19にセットする。その後で、そのデ
ータを1データずつ減算していく。パルス幅カウンタの
データが、“0"になったとき、今度は、パルス幅カウン
タの出力を“L"にする。そして、次のデータをパルス幅
カウンタにセットする。そして、上記と同様な作業を繰
り返す。このようにしてエミュレートしたリモコン信号
のエンベローブカーブの再構成を行う。
In transmitting the expanded code, first, the output of the pulse width counter 19 is set to “H” at the start of transmission, and the first data is set in the pulse width counter 19. After that, the data is subtracted one by one. When the data of the pulse width counter becomes "0", the output of the pulse width counter is set to "L". Then, the next data is set in the pulse width counter. Then, the same operation as described above is repeated. The envelope curve of the emulated remote control signal is reconstructed.

そして、キャリア周波数とエンベローブカーブとAND3
0を取ることにより、リモコン信号の再構成が可能とな
る。再構成されたリモコンコードは、駆動回路31を通し
て、赤外線発光ダイオード32を駆動することによりリモ
コン信号が再構成された。
And the carrier frequency, envelope curve and AND3
By taking 0, it is possible to reconfigure the remote control signal. In the reconfigured remote control code, a remote control signal was reconfigured by driving the infrared light emitting diode 32 through the drive circuit 31.

このようにして、いくつかのリモコン送信機をエミュ
レートでき、操作が簡単で、制御される機器の相互接続
や改造を必要としない再構成可能なリモコン送信機が得
られるものである。
In this manner, a reconfigurable remote control transmitter that can emulate several remote control transmitters, is simple to operate, and does not require interconnection or modification of the controlled equipment is provided.

上記実施例によれば、リモコン信号を圧縮したパルス
コード列の中からデータパルスブロックを抽出し、その
データパルスブロックをさらに圧縮し、1ビットの集ま
りで構成される分割ブロックを作ることにより、一番よ
く使われているパルス幅データのパルス番号を、4ビッ
トから1ビットに圧縮することができるために、学習し
たリモコンコードのデータを登録するのに必要なメモリ
の容量を少なくすることができ、一定のメモリ容量(例
えば64kビット)で取り扱うことのできるキー数が大幅
に増加させることができ、いままで16kビットのSRAMを
内蔵したワンチップマイコンでは、学習可能なキー数が
20キーから30キー程度であったのが、40キー以上となり
同じコストで大幅な機能アップが図れるとともに機能が
同じであれば、いままでメモリの大きい汎用のワンチッ
プマイコンがなかったため、マイコン,ゲートアレイ,S
RAMと専用のICをつかって3チップ構成で、学習リモコ
ン送信機を構成していたものが、本発明のメモリの節約
方法により、従来の汎用のワンチップマイコンでも同じ
機能を有することを可能にするものである。この圧縮の
方法はデータパルスブロックが長くなればなるほど効果
が大きくなり、また、ビデオ用タイマー予約機能付きリ
モコンのようにデータパルスブロックとトレーラと交互
に、さらに、そのデータパルスブロックの内容が一つ一
つ違う場合、予め決めて置く4ビットのパルス予約番号
を複数にして置くことにより、上記と同様に圧縮した登
録が可能となるものである。
According to the above embodiment, a data pulse block is extracted from a pulse code sequence obtained by compressing a remote control signal, and the data pulse block is further compressed to form a divided block composed of a group of one bit. Since the pulse number of the most frequently used pulse width data can be compressed from 4 bits to 1 bit, the memory capacity required to register the learned remote control code data can be reduced. However, the number of keys that can be handled with a certain memory capacity (for example, 64 kbits) can be greatly increased.
From about 20 keys to about 30 keys, it becomes more than 40 keys, so it is possible to greatly improve functions at the same cost and if the functions are the same, since there was no general-purpose one-chip microcomputer with large memory, microcomputers and gates Array, S
A learning remote control transmitter consisting of a three-chip configuration using RAM and a dedicated IC has been replaced with a memory saving method according to the present invention, which enables a conventional general-purpose one-chip microcomputer to have the same function. Is what you do. This compression method becomes more effective as the data pulse block becomes longer.Also, the data pulse block and the trailer are alternately provided, as in a remote control with a timer reservation function for video. In the case of a different one, a plurality of pre-determined 4-bit pulse reservation numbers are provided in plurals, thereby enabling compressed registration in the same manner as described above.

発明の効果 本発明は、上記実施例から明らかなように、リモコン
コードの登録時に、使用頻度の高いパルス番号を含む2
種類以下のパルス番号から構成されるデータパルスブロ
ックを決定し、そのデータパルスブロックの登録をさら
に8バイト単位に分け、分割ブロックとし、分割ブロッ
クの前に予め決められた4ビットのパルス番号を挿入す
ることにより、この分割ブロックを1ビットで構成され
る2種類のデータで登録することができ、そのために、
データパルスブロックを登録するのに必要なメモリ容量
を大幅に減少させることができ、従来と同じメモリ容量
のICを使った場合でも学習できるキー数を大幅に増やす
ことができ、かつ、1キー当たりのメモリ使用コストを
下げるという効果を有するとともに、今まで学習するこ
とができなかった長いパルスコード列を有するリモコン
信号も、1キー当たりのメモリ登録容量が減少すること
により、ワークエリアを広くでき、取り込みも可能とす
るものである。
According to the present invention, as is apparent from the above embodiment, when a remote control code is registered, a pulse number including a frequently used pulse number is used.
A data pulse block composed of pulse numbers of the type or less is determined, and the registration of the data pulse block is further divided into 8-byte units to form a divided block, and a predetermined 4-bit pulse number is inserted before the divided block. By doing so, it is possible to register this divided block with two types of data composed of 1 bit, and
The memory capacity required for registering the data pulse block can be greatly reduced, and the number of keys that can be learned can be greatly increased even when using an IC with the same memory capacity as the conventional one. In addition to the effect of lowering the memory use cost of the remote control signal having a long pulse code sequence that could not be learned, the work area can be widened by reducing the memory registration capacity per key, Incorporation is also possible.

【図面の簡単な説明】[Brief description of the drawings]

第1図は本発明による学習リモコン送信機の一実施例の
構成図、第2図(a)は同リモコン信号の説明図、第2
図(b)はリモコン信号のパルス幅データの取り込み方
法を説明するワークエリア図、第2図(c)は取り込ん
だデータの再登録方法を説明するワークエリア図、第3
図は本発明に使用するリモコン信号のパルス幅の分類方
法の説明図、第4図(a)は本発明に使用するパルス幅
データの登録方法の説明図、第4図(b)はリモコン信
号をパルス番号で表わした説明図、第5図(A),
(B)は本発明に使用するリモコン信号の繰り返し部分
の検出方法の説明図、第6図、(1)、(2)、(3)
はリモコンコードのブロック化の代表例の説明図、第7
図は本発明によるリモコン信号の圧縮の仕方の説明図で
あり、第7図(A)は本発明の圧縮を行う前のパルスコ
ード列の状態説明図、第7図(B)は上記(A)のブロ
ック分けを行った結果の状態説明図、第7図(C)は上
記(B)のデータパルスブロックに予め設定されていた
パルス番号で置換した結果の状態説明図、第8図は従来
の学習リモコン送信機の構成図、第9図(a)は同リモ
コン信号の説明図、第9図(b)はリモコン信号のパル
ス幅データの解り込み方法を説明するワークエリア図、
第9図(c)は取り込んだデータの再登録方法を説明す
るワークエリア図、第10図は同リモコン信号のパルス幅
の分類方法の説明図、第11図(a)は従来例に使用する
同パルス幅データの登録方法の説明図、第11図(b)は
リモコン信号をパルス番号で表わした説明図、第12図
(A),(B)は同リモコン信号の繰り返し部分の検出
方法の説明図である。 1……エミュレートされるリモコン送信機、11……学習
リモコン送信機、12……PINダイオード、14……周波数
回路、18……パルス幅回路、20……マイクロプロセッ
サ、22……SRAM、24……キー。
FIG. 1 is a block diagram of an embodiment of a learning remote control transmitter according to the present invention, FIG. 2 (a) is an explanatory diagram of the remote control signal, and FIG.
FIG. 2B is a work area diagram illustrating a method of capturing pulse width data of a remote control signal, FIG. 2C is a work area diagram illustrating a method of reregistering the captured data, and FIG.
FIG. 4 is an explanatory diagram of a method of classifying a pulse width of a remote control signal used in the present invention. FIG. 4 (a) is an explanatory diagram of a method of registering pulse width data used in the present invention. FIG. 4 (b) is a remote control signal. Fig. 5 (A),
(B) is an explanatory diagram of a method of detecting a repetitive portion of a remote control signal used in the present invention, FIG. 6, (1), (2), (3)
Is an explanatory diagram of a typical example of blocking remote control codes, and FIG.
FIGS. 7A and 7B are diagrams for explaining a method of compressing a remote control signal according to the present invention. FIG. 7A is a diagram for explaining a state of a pulse code train before performing compression according to the present invention, and FIG. FIG. 7 (C) is a state explanatory view of a result obtained by replacing the data pulse block of (B) with a preset pulse number, and FIG. FIG. 9 (a) is an explanatory diagram of the remote control signal, FIG. 9 (b) is a work area diagram illustrating a method of decoding pulse width data of the remote control signal,
FIG. 9 (c) is a work area diagram for explaining a method of re-registering captured data, FIG. 10 is a diagram for explaining a method of classifying the pulse width of the remote control signal, and FIG. 11 (a) is used for a conventional example. FIG. 11 (b) is an explanatory diagram of a method of registering the same pulse width data, FIG. 11 (b) is an explanatory diagram showing a remote control signal by a pulse number, and FIGS. 12 (A) and (B) are diagrams of a method of detecting a repeated portion of the same remote control signal. FIG. 1 emulated remote control transmitter, 11 learning remote control transmitter, 12 PIN diode, 14 frequency circuit, 18 pulse width circuit, 20 microprocessor, 22 SRAM, 24 ……Key.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】学習モード時にエミュレートすべきリモコ
ン送信機の送信信号を受信する受信手段と、この受信手
段に受信された信号のパルス群の各バースト中のキャリ
ア周波数を測定し、かつ、リモコンコード再構成時にキ
ャリア周波数を作る周波数回路と、上記受信手段に受信
された信号の各パルスのパルス幅を測定し、かつ、リモ
コンコード再構成時にリモコン信号のエンベロープカー
ブを作るパルス幅回路と、上記受信手段並びにパルス幅
および周波数回路の出力を受けるように接続されてお
り、各パルスバースト中のキャリア周波数およびパルス
幅を分類し、かつ、エミュレートされるリモコン送信機
上の押された各キーに対応する圧縮されたコードを作成
するようにプログラムされたマイクロプロセッサ手段
と、上記圧縮されたコードを格納するためにこのマイク
ロプロセッサ手段によりアドレスされるメモリ手段と、
上記マイクロプロセッサ手段により制御され、選択され
たリモコンされる製品または器具を制御するためにコー
ド化された信号を送り出す送信手段からなり、上記マイ
クロプロセッサ手段が、上記メモリ手段に格納された圧
縮されたリモコンコードのパルス列を構成するパルス番
号を使用頻度の高い順番に並べて、使用頻度の高いパル
ス番号とその番号に連なるもう1つのパルス番号のみで
構成されるブロックを、予め決められた数量単位で決定
し、そのブロックを判定する識別子をそのブロックの前
に置くことにより、上記ブロックを1ビットからなる
“1"と“0"の1ビットのデータで再圧縮をすることを特
徴とする学習リモコン送信機。
A receiving means for receiving a transmission signal of a remote control transmitter to be emulated in a learning mode, a carrier frequency in each burst of a pulse group of the signal received by the receiving means, and a remote control A frequency circuit for generating a carrier frequency at the time of code reconstruction, a pulse width circuit for measuring a pulse width of each pulse of a signal received by the receiving means, and forming an envelope curve of a remote control signal at the time of remote control code reconstruction; It is connected to receive the output of the receiving means and the pulse width and frequency circuit, classifies the carrier frequency and the pulse width in each pulse burst, and applies to each pressed key on the remote control transmitter to be emulated. Microprocessor means programmed to produce corresponding compressed code; Memory means addressed by the microprocessor means for storing de,
The transmitter means controlled by the microprocessor means for transmitting a coded signal for controlling a selected remote controlled product or instrument, the microprocessor means comprising a compressed means stored in the memory means. By arranging the pulse numbers constituting the pulse train of the remote control code in the order of most frequently used, a block consisting of only the frequently used pulse number and another pulse number connected to the number is determined in a predetermined quantity unit. A learning remote control transmission characterized in that the block is recompressed with 1-bit data of 1 bit and 1 bit by placing an identifier for judging the block before the block. Machine.
JP16904490A 1990-06-27 1990-06-27 Learning remote control transmitter Expired - Fee Related JP2913781B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16904490A JP2913781B2 (en) 1990-06-27 1990-06-27 Learning remote control transmitter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16904490A JP2913781B2 (en) 1990-06-27 1990-06-27 Learning remote control transmitter

Publications (2)

Publication Number Publication Date
JPH0457594A JPH0457594A (en) 1992-02-25
JP2913781B2 true JP2913781B2 (en) 1999-06-28

Family

ID=15879282

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16904490A Expired - Fee Related JP2913781B2 (en) 1990-06-27 1990-06-27 Learning remote control transmitter

Country Status (1)

Country Link
JP (1) JP2913781B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007194972A (en) * 2006-01-20 2007-08-02 Sharp Corp Learning remote control device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4866434A (en) 1988-12-22 1989-09-12 Thomson Consumer Electronics, Inc. Multi-brand universal remote control

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4866434A (en) 1988-12-22 1989-09-12 Thomson Consumer Electronics, Inc. Multi-brand universal remote control

Also Published As

Publication number Publication date
JPH0457594A (en) 1992-02-25

Similar Documents

Publication Publication Date Title
US4623887A (en) Reconfigurable remote control
US4866434A (en) Multi-brand universal remote control
KR900007131B1 (en) Programmable Remote Control Transmitter
KR920002229B1 (en) Reconfigurable remote control transmitter
CN105306062A (en) Encoding and storing method and device for infrared data, and decoding method
DE69421223T2 (en) Method and device for sending and receiving data
CN105427577A (en) Infrared data processing method, processing device and decoding method
JP2913781B2 (en) Learning remote control transmitter
JP2985239B2 (en) Learning remote control transmitter
CN109074669A (en) data compression method and device
JPS5884549A (en) Receiver for radio selective calling
JP2913780B2 (en) Learning remote control transmitter
DE3364560D1 (en) Data transmission device
WO1993005580A1 (en) Method of compressing data code and apparatus for using the compressed data code
JPH06165254A (en) Preset remote control transmitter
JP2656172B2 (en) Remote control transmitter
US3478163A (en) Reduced time transmission system
JP2674061B2 (en) Remote control device
JPS6322502B2 (en)
JPS586345B2 (en) Fukugo Kasouchi
RU2121221C1 (en) Coding device for checking remote-control systems at gravity humps
SU1481821A1 (en) Vehicle operating parameter recorder
JPS6489656A (en) Picture communication system
SU1732349A1 (en) Device for data output
JPH03196795A (en) Remote controller

Legal Events

Date Code Title Description
FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080416

Year of fee payment: 9

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090416

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees