JP6540148B2 - Keyboard input imitation method and keyboard - Google Patents
Keyboard input imitation method and keyboard Download PDFInfo
- Publication number
- JP6540148B2 JP6540148B2 JP2015063330A JP2015063330A JP6540148B2 JP 6540148 B2 JP6540148 B2 JP 6540148B2 JP 2015063330 A JP2015063330 A JP 2015063330A JP 2015063330 A JP2015063330 A JP 2015063330A JP 6540148 B2 JP6540148 B2 JP 6540148B2
- Authority
- JP
- Japan
- Prior art keywords
- key
- scan
- value
- keyboard
- matrix
- 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
Links
Images
Landscapes
- Input From Keyboards Or The Like (AREA)
Description
本発明は、キーボード入力擬制方法およびキーボードに関する。 The present invention relates to a keyboard input imitation method and a keyboard.
コンピュータの入力装置としてキーボードが広く使用されている。特に、企業等においては、キーボードが主たる入力装置として使用されている。銀行等のコンピュータシステムでは、一般的なパーソナルコンピュータ(以下、パソコンと略称する)を端末として使用するのが一般的であり、パソコンの入力装置としてキーボードが使用される。 A keyboard is widely used as an input device of a computer. In particular, in companies and the like, a keyboard is used as a main input device. In a computer system such as a bank, it is common to use a general personal computer (hereinafter abbreviated as a personal computer) as a terminal, and a keyboard is used as an input device of the personal computer.
銀行等のコンピュータシステムでは、その動作保証のため、端末であるパソコンのキーボードの操作を繰り返し、一連のキー入力を繰り返し実行する状況があり、このような状況で、キーボードのドライバを含めた検証が必要な場合が起こり得る。この状況で、コンピュータシステムを形成している製品の機能への影響が生じないようにするため、製品へ自動化ソフトをインストールできない場合、また組み込みシステムのようにソフトを追加できない場合も起こり得る。このような場合において、動作補償のための入力を行うには、実際にキーボードからの入力を手作業で繰り返す必要があり、多大な作業が必要となる。 In a computer system such as a bank, in order to guarantee its operation, there is a situation where the keyboard operation of the personal computer which is the terminal is repeated and a series of key input is repeatedly executed. If necessary, it can happen. In this situation, there may be cases where automation software can not be installed on the product, or software can not be added like an embedded system, in order to prevent the functional functions of the product forming the computer system from being affected. In such a case, in order to perform input for motion compensation, it is actually necessary to manually repeat input from the keyboard, which requires a great deal of work.
そこで入力を疑似し、自動化することが考えられる。入力を擬似する場合、パソコン内で入力に相当するデータ信号を発生することが考えられるが、動作保証する上では、できるだけ実際の入力に近い状態を擬似することが望まれる。 Therefore, it is conceivable to simulate and automate input. When simulating an input, it is conceivable to generate a data signal corresponding to the input in a personal computer, but in order to guarantee the operation, it is desirable to simulate a state as close as possible to the actual input.
実施形態によれば、キーボードからの入力を疑似して所望の入力を自動的に行うキーボード入力擬似方法およびキーボードが実現される。 According to the embodiment, a keyboard input simulation method and a keyboard are realized, which automatically performs desired input by simulating input from the keyboard.
本発明の第1の態様のキーボード入力擬制方法によれば、入力キーを擬似して入力を行う疑似入力モードの場合、キーボードのキースイッチ部を、所定キーが押し下げられた状態に設定する。次に、キーボードコントローラが出力するキーマトリックススキャンのスキャン値と、擬似するキーのスキャン値と、を比較する。キーマトリックススキャンのスキャン値と擬似するキーのスキャン値とが一致した時に、キーマトリックススキャンのスキャン値を所定キーのスキャン値に変換する。キーマトリックススキャンのスキャン値と擬似するキーのスキャン値とが一致しない時に、キーマトリックススキャンのスキャン値を、所定キーのスキャン値以外になるように変換する。キースイッチ部は、所定キーのスキャン値を受けた時に、キーボードコントローラに一致信号を出力し、所定キーのスキャン値以外のスキャン値を受けた時に、キーボードコントローラに不一致信号を出力する。 According to the keyboard input imitation method of the first aspect of the present invention, in the case of the pseudo input mode in which the input key is simulated to be input, the key switch portion of the keyboard is set in a state where the predetermined key is depressed. Next, the scan value of the key matrix scan output by the keyboard controller is compared with the scan value of the simulated key. When the scanning values of the key matrix scanning and the scan values of the pseudo-key match, converts the scanning values of the key matrix scan to the scan values of a predetermined key. When the scanning values of the key matrix scanning and the scan values of the pseudo-key does not match, it converts the scanning values of the key matrix scan, so that in addition to the scan values of a predetermined key. Key switch portion, when subjected to scanning value of a predetermined key, and outputs a coincidence signal to the keyboard controller, when receiving the scan values other than the scan values of Jo Tokoro key, and outputs a mismatch signal to the key board controller .
本発明の第2の態様のキーボードは、キーボードコントローラと、変換回路と、キースイッチ部と、を有する。キーボードコントローラは、キーマトリックススキャンのスキャン値を出力する。変換回路は、入力キーを擬似して入力を行う疑似入力モードの場合、キースイッチ部で、所定キーが押し下げられた状態に設定し、キーマトリックススキャンのスキャン値と、擬似するキーのスキャン値と、を比較する。変換回路は、キーマトリックススキャンのスキャン値と擬似するキーのスキャン値とが一致した時に、キーマトリックススキャンのスキャン値を所定キーのスキャン値に変換する。変換回路は、キーマトリックススキャンのスキャン値と擬似するキーのスキャン値とが一致しない時に、キーマトリックススキャンのスキャン値を、所定キーのスキャン値以外になるように変換する。キースイッチ部は、所定キーのスキャン値を受けた時に、キーボードコントローラに一致信号を出力し、所定キーのスキャン値以外のスキャン値を受けた時に、キーボードコントローラに不一致信号を出力する。 A keyboard according to a second aspect of the present invention includes a keyboard controller, a conversion circuit, and a key switch unit. The keyboard controller outputs scan values of the key matrix scan. In the case of the pseudo input mode in which the conversion circuit simulates the input key and performs the input, the key switch unit sets the predetermined key pressed down, and the scan value of the key matrix scan and the scan value of the simulated key ,. Conversion circuit, when the scanning values of the key matrix scanning and the scan values of the pseudo-key match, converts the scanning values of the key matrix scan to the scan values of a predetermined key. Conversion circuit, when the scanning values of the key matrix scanning and the scan values of the pseudo-key does not match, the scan values of the key matrix scan, that converts to become non-scanning value of a predetermined key. Key switch unit, when subjected to scanning value of a predetermined key, and outputs a coincidence signal to the keyboard controller, when receiving the scan values other than the scan values of the predetermined key, and outputs a mismatch signal to the keyboard controller.
実施形態によれば、キーボードからの入力を疑似した所望の入力の自動化が実現される。 According to an embodiment, automation of a desired input simulating an input from a keyboard is realized.
実施形態の受信回路について説明する前に、キーボードについて説明する。
図1は、パーソナルコンピュータ(パソコン)と、パソコンに入力装置として接続されたキーボードと、を有するコンピュータ装置の概略構成を示す図である。
Before describing the receiving circuit of the embodiment, the keyboard will be described.
FIG. 1 is a diagram showing a schematic configuration of a computer apparatus having a personal computer (PC) and a keyboard connected to the PC as an input device.
図1のコンピュータ装置を端末として利用する場合には、パソコンをLAN等の通信回線を介してホストコンピュータに接続する。 When the computer apparatus of FIG. 1 is used as a terminal, a personal computer is connected to a host computer via a communication line such as a LAN.
コンピュータ装置は、パソコン10と、キーボード20と、を有する。パソコン10は、CPU11と、キーボードインターフェース(IF)部12と、を有する。実際には、パソコン10は、RAM、ROM、ディスク装置等をさらに有するが、ここでは図示を省略している。
The computer device has a
キーボード20は、キーボードコントローラ21と、キースイッチ部22と、を有する。キーボードコントローラ21は、汎用のプロセッサ、ROMおよびRAM等で形成されるか、それらを含むマイクロコンピュータ等で形成される。キースイッチ部22は、複数の行ラインと複数の列ラインとで形成された二次元マトリックスと、複数の行ラインと複数の列ラインの交差部に対応して設けられた複数のキーを、を有する。ここでは、二次元マトリックスと複数のキーとで形成される部分をキーマトリックスと称する。キースイッチ部22は、キーボードコントローラ21からの要求に応じて、押し下げられているキーに関する情報を、キーボードコントローラ21に出力する。キーボードコントローラ21は、押し下げられているキーの情報をキーコードに変換し、パソコン10のキーボードIF部12を介してCPU11に送る。これにより、CPU11は、入力されたキーコードのデータを取得する。
The
キーボードIF部12とキーボードコントローラ21の間のインターフェースは、RS232−C、USB、UDP等に準拠した方式やPS/2方式などが知られており、実施形態に記載するキーボードは、いずれの方式でもよい。
The interface between the
図2は、キーマトリックスを説明する図である。
キーマトリックスは、複数の行ライン(ここでは5行)S0−S4と複数の列ライン(ここでは5列)K0−K4とで形成された二次元マトリックスを有し、複数の交差部にキーが配置される。したがって、ここでは、25個のキーが存在する。行ラインの位置をX座標(0から4の整数)で列ラインの位置をY座標(0から4の整数)で表す。XYのアドレスにより、キーを特定できる。
FIG. 2 is a diagram for explaining a key matrix.
The key matrix has a two-dimensional matrix formed by a plurality of row lines (here, 5 rows) S0-S4 and a plurality of column lines (here, 5 columns) K0-K4, and keys are provided at a plurality of intersections. Be placed. Thus, here there are 25 keys. The position of the row line is represented by the X coordinate (an integer of 0 to 4), and the position of the column line is represented by the Y coordinate (an integer of 0 to 4). The key can be identified by the XY address.
図2において、交点Cのキーが押されて、行ラインS2と列ラインK2が接続した状態で、行ラインS0−S4に順に電圧パルスを印加すると、交点Cの行ラインS2に電圧パルスが印加される時、交点Cの列ラインK2に電圧パルスが出現する。一般に、行ラインS0−S4に順に電圧パルスを印加することをスキャンと称する。他の行ラインS0、S1、S3およびS4に電圧パルスを印加されても、列ラインK0−K4に電圧パルスが出現することはなく、行ラインS2電圧パルスを印加されても、列ラインK0、K1、K3およびK4に電圧パルスが出現することはない。したがって、列ラインK0−K4の何れかに電圧パルスが出現した時に、行ラインS0−S4のどれに電圧パルスが印加されたかが判明すれば、25個のキーのいずれが押し下げられたか判明する。なお、いずれのキーも押し下げられていない場合には、列ラインK0−K4に電圧パルスが出現することはない。 In FIG. 2, when the key of the intersection point C is pressed and the row line S2 and the column line K2 are connected, voltage pulses are applied to the row lines S0 to S4 in order, and a voltage pulse is applied to the row line S2 of the intersection point C Voltage pulses appear on the column line K2 at the intersection point C. In general, sequentially applying voltage pulses to the row lines S0 to S4 is referred to as a scan. Even if a voltage pulse is applied to the other row lines S0, S1, S3 and S4, no voltage pulse appears on the column lines K0 to K4, and even if a voltage pulse is applied to the row line S2, the column line K0, No voltage pulse appears at K1, K3 and K4. Therefore, when it is determined which of the row lines S0-S4 is applied when a voltage pulse appears in any of the column lines K0-K4, it is known which of the 25 keys is depressed. It should be noted that no voltage pulse will appear on the column lines K0-K4 if none of the keys are depressed.
実用されるキーボードでは、複数キーの同時押しを検出することも行われる。複数キーが同時に押された場合には、1回のスキャンで、複数キーが押し下げられていることを検出することになる。また、スキャンは常時行われる場合もあるが、消費電力低減のため、いずれのキーが押し下げられたことを検出する回路を設け、その検出信号に応じてスキャンを開始することが行われる。また、キーボードの1回のスキャンに要する時間は、人間が実際に行う入力動作より高速であり、1秒当たり多数回のスキャンが行われる。そのため、キーボード操作で誤ってキーに触れた場合にもキー入力が行われたと判定する誤判定を防止するため、連続した複数回のスキャンで同じキーが押し下げられていることを検出した時にキー入力と判定する処理などが行われる。これらの技術は一般に行われており、実施形態においてもこれらの技術を採用することが可能であるが、説明は省略するものとする。 In a practical keyboard, detection of simultaneous pressing of a plurality of keys is also performed. If multiple keys are pressed at the same time, one scan will detect that the multiple keys are pressed. Although scanning may always be performed, in order to reduce power consumption, a circuit for detecting which key is pressed is provided, and scanning is started in response to a detection signal. In addition, the time required for one scan of the keyboard is faster than the input operation actually performed by human beings, and many scans are performed per second. Therefore, when it is detected that the same key is pressed in a plurality of consecutive scans, in order to prevent an erroneous determination that the key input is performed even when the key is accidentally touched by the keyboard operation, the key input Processing etc. which are determined are performed. These techniques are generally performed, and it is possible to adopt these techniques also in the embodiment, but the description will be omitted.
次に、キースイッチ部の構成およびキーボードコントローラからのキーマトリックススキャン信号について説明する。
図3は、キーボードの構成を示す図である。
Next, the configuration of the key switch unit and the key matrix scan signal from the keyboard controller will be described.
FIG. 3 is a diagram showing the configuration of the keyboard.
図1で説明したように、キーボード20は、キーボードコントローラ21と、キースイッチ部22と、を有する。図3に示すように、キーボードコントローラ21は、キーコードエンコーダ23と、Xキースキャン信号生成部24と、を有する。前述のように、キーボードコントローラ21は、ROM/RAM等を有するが、ここでは図を省略している。
As described in FIG. 1, the
キースイッチ部22は、Xデコーダ+Xドライバ25と、キーマトリックス26と、押下位置検出回路27と、エンコーダ28と、を有する。前述のように、キーマトリックス26は、複数の行ライン(X座標)と複数の列ライン(Y座標)からなる二次元マトリックスと、複数の行ラインと複数の列ラインの交差部に対応して配置された複数のキーと、を有する。
The
Xキースキャン信号生成部24は、スキャン用の電圧信号を印加するキーマトリックス26の行番(X座標)を示すキーマトリックススキャン信号のスキャン値を順次生成し、キーコードエンコーダ23およびキースイッチ部22に出力する。Xデコーダ+Xドライバ25は、キーマトリックススキャン信号のスキャン値をデコードして、スキャン値で指示された行番の行ラインにスキャン用の電圧信号を印加する。したがって、複数の行ラインに、スキャン用の電圧信号が順次印加されることになる。押下位置検出回路27は、キーマトリックス26の複数の列ラインの電圧変化を閾値と比較することにより検出する。言い換えれば、押下位置検出回路27は、押し下げられたキーの行ラインにスキャン用の電圧信号が印加され、キーマトリックス26の複数の列ラインのうち押し下げられたキーの列ラインに出現する電圧変化を検出する。エンコーダ28は、押下位置検出回路27の出力する信号をエンコードし、複数の列ラインのうち押し下げられたキーの列ライン、すなわちY座標を示すデータ信号生成し、キーボードコントローラ21のキーコードエンコーダ23に出力する。キーコードエンコーダ23は、Y座標を示すデータ信号を受信した時のX座標を示すキーマトリックススキャン信号のスキャン値およびY座標を示すデータから、キーマトリックス26で押し下げられたキーのキーコードを生成し、パソコンに出力する。
The X key scan
図4は、キーボードの別の構成を示す図である。
図4のキーボードは、キーボードコントローラが、X座標を示すキーマトリックススキャン信号のスキャン値と共に、Y座標を示すキーマトリックススキャン信号のスキャン値をキースイッチ部に出力することが、図3のキーボードと異なる。キースイッチ部は、キーマトリックススキャン信号のX座標およびY座標のスキャン値が、押し下げたキーのX座標およびY座標と一致する時に、一致信号を出力し、それ以外の時には不一致信号を出力する。
FIG. 4 is a view showing another configuration of the keyboard.
The keyboard of FIG. 4 is different from the keyboard of FIG. 3 in that the keyboard controller outputs the scan value of the key matrix scan signal indicating Y coordinate to the key switch portion together with the scan value of the key matrix scan signal indicating X coordinate. . The key switch outputs a coincidence signal when the scan values of the X and Y coordinates of the key matrix scan signal coincide with the X and Y coordinates of the depressed key, and outputs a noncoincidence signal otherwise.
具体的には、キーボードコントローラ31は、キーコードエンコーダ33と、Xキースキャン信号生成部34と、Yキースキャン信号生成部35と、を有する。キースイッチ部32は、Xデコーダ+Xドライバ36と、キーマトリックス37と、押下位置検出回路38と、エンコーダ39と、一致検出回路40と、を有する。Xキースキャン信号生成部34、Xデコーダ+Xドライバ36、キーマトリックス37、押下位置検出回路38およびエンコード39は、図3の対応する部分と同じである。Yキースキャン信号生成部35は、Xキースキャン信号生成部34におけるX座標を示すキーマトリックススキャン信号のスキャン値の生成に同期して、Y座標を示すキーマトリックススキャン信号のスキャン値を生成する。具体的には、Yキースキャン信号生成部35は、Xキースキャン信号生成部34がX座標を示すキーマトリックススキャン信号のスキャン値を1回生成する間に、列ラインの列数に対応する回数だけY座標のスキャン値を生成する。
Specifically, the
一致検出回路40は、エンコーダ39の出力が、Y座標を示すキーマトリックススキャン信号のスキャン値と一致するか検出し、一致する時には一致信号を出力し、一致しない時には不一致信号を出力する。したがって、1つのキーが押し下げられた場合に、一致信号が出力されるのは、1回のスキャンで、Y座標を示すキーマトリックススキャン信号のスキャン値が出力される1期間のみである。
The
キーコードエンコーダ33は、一致信号を受信した時のX座標を示すキーマトリックススキャン信号のスキャン値およびY座標を示すキーマトリックススキャン信号のスキャン値から、キーマトリックス26で押し下げられたキーのキーコードを生成する。
The
図4のキーボードは、後述する静電容量方式のキーボードに多く使われ、銀行端末等に広く使われている。 The keyboard shown in FIG. 4 is often used for a capacitive keyboard to be described later, and is widely used for bank terminals and the like.
図5は、キーボードのキー接点の方式例を示す図であり、(A)が機械式の接点方式を、(B)が静電容量方式を示す。 FIG. 5 is a view showing a system example of key contacts of a keyboard, in which (A) shows a mechanical contact system and (B) shows a capacitance system.
図5の(A)の機械式の接点方式では、行ラインS0,S1と列ラインK0,K1の交差部に、行ラインと列ラインを接続するスイッチSW00−SW11を設け、対応するキーの操作によりスイッチがオン・オフする。具体的には、キーを押し下げることにより、スイッチが接続状態になり、行ラインの電圧信号が列ラインに出現する。 In the mechanical contact system of FIG. 5A, switches SW00-SW11 for connecting row lines and column lines are provided at the intersections of row lines S0, S1 and column lines K0, K1 to operate corresponding keys. Switch turns on / off. Specifically, depressing the key brings the switch into a connected state, and the voltage signal of the row line appears on the column line.
図5の(B)の静電容量方式では、行ラインS0,S1と列ラインK0,K1の交差部に、行ラインと列ラインに接続される容量C00−C11を設け、対応するキーの操作により容量の容量値が変化する。これに応じて、行ラインに電圧信号を印加した時の列ラインの電圧信号が変化する。容量値の変化は、キーボードの構成に応じて変化するため、押下位置検出回路38における閾値の設定等は、キーボードメーカーが独自に行っており、公開されることはない。
In the electrostatic capacity system of FIG. 5B, capacitors C00 to C11 connected to the row lines and the column lines are provided at the intersections of the row lines S0 and S1 and the column lines K0 and K1, and the corresponding keys are operated Changes the capacitance value of the capacitance. In response to this, the voltage signal of the column line changes when the voltage signal is applied to the row line. Since the change of the capacitance value changes according to the configuration of the keyboard, the setting of the threshold or the like in the pressed
次に、キー入力を擬似して所望の入力を自動的に行う手法について説明する。
図6は、図3のキーボードを使用してキー入力を擬似する場合の構成を示す図である。
Next, a method of simulating key input and automatically performing desired input will be described.
FIG. 6 is a diagram showing a configuration in the case of simulating key input using the keyboard of FIG.
図6に示すように、キーボード20の外部に、パソコン等の制御装置101と、キーコードアドレス変換回路102と、擬似信号発生回路103と、を設ける。擬似信号発生回路103は、一致検出回路104と、ゲート105と、を有する。キーボード20の筐体に外部端子41を設ける。キーボードコントローラ21からキースイッチ部22へのX座標を示すキーマトリックススキャン信号の信号線、およびキースイッチ部22からキーボードコントローラ21へのY座標を示す信号の信号線から外部に信号線を引き出す。信号線の外部への引き出しは、外部端子41を介して行う。引き出したX座標を示すキーマトリックススキャン信号の信号線は、一致検出回路104に接続し、Y座標を示す信号の信号線は、ゲート105に接続する。
As shown in FIG. 6, a
制御装置101は、あらかじめ作成されて搭載されたプログラムにより、擬似して入力したいキー入力の列(キーコードストリーム)を、キーコードアドレス変換回路102に出力する。この時、人間によるキー操作に近い形でキー入力を擬似するように、出力するキーコードが数100ms続き、キーコードが変化する時には、いずれのキーも押されない状態に対応するオープン状態を設けることが望ましい。
The
キーコードアドレス変換回路102は、キーコードストリームの各キーコードを、キーボード20のキーマトリックスに対応するアドレス、すなわち行番(X)と列番(Y)に変換し、擬似X座標X’および擬似Y座標Y’を出力する。オープン状態については、X座標を示すキーマトリックススキャン信号がとることないスキャン値を割り当てる。
The key code
一致検出回路104は、随時変化するX座標を示すキーマトリックススキャン信号のスキャン値と、擬似X座標X’とが一致するか検出し、一致した時に、ゲート105にX座標一致信号を出力する。ゲート105への信号は、一致しない時には不一致を示す非アクティブ状態になる。キーマトリックススキャン信号のスキャン値はオープン状態を示すスキャン値に一致することは無いので、オープン状態の時には、ゲート105への信号は、非アクティブになる。
The
ゲート105は、X座標一致信号を受信すると、キーコードアドレス変換回路102から供給されている擬似Y座標Y’を示す信号を、キースイッチ部22からキーボードコントローラ21への信号線に出力する。
When receiving the X coordinate coincidence signal, the
上記の入力擬似動作を行う場合、キースイッチ部22のキーは操作されず、いずれのキーも押し下げていない状態に維持する。したがって、この状態で、キースイッチ部22からY座標を示すデータ信号が出力されることはない。
When the above input simulation operation is performed, the keys of the
制御装置101からキーコードストリームの出力が開始され、それに応じて擬似X座標X’が一致検出回路104に入力する。キーボードコントローラ21は、キーマトリックススキャン信号のスキャン値を順次変化させるスキャン動作を繰り返し行う。ここで、スキャン値が擬似X座標X’と一致すると、ゲート105は、擬似Y座標Y’を示す信号を、キースイッチ部22からキーボードコントローラ21への信号線に出力する。上記のように、キースイッチ部22からY座標を示すデータ信号が出力されることはないので、この擬似Y座標Y’を示す信号は、そのままキーボードコントローラ21に入力する。
Output of the key code stream is started from the
前述のように、キーボードコントローラ21は、Y座標を示すデータ信号を受信した時のX座標を示すキーマトリックススキャン信号のスキャン値およびY座標を示すデータ信号から、押し下げられているキーに対応するキーコードを生成する。
As described above, when the
以上のようにして、キーコードストリームが擬似したいキー入力にしたがって変化すれば、キーボードコントローラ21は、擬似したいキー入力に応じた入力が行われたと判定してキーコードを生成する。この際、キーボード20のキー操作は行わず、自動的にキーコードストリームに対応するキー入力が行われる。
As described above, when the key code stream changes according to the key input to be simulated, the
キー入力を擬似して所望の入力を自動的に行う手法は、図4のキーボードを使用して行うこともできる。
図7は、図4のキーボードを使用してキー入力を擬似する場合の構成を示す図である。
The method of simulating key input and automatically performing desired input can also be performed using the keyboard of FIG.
FIG. 7 is a diagram showing a configuration in the case of simulating key input using the keyboard of FIG.
図7に示すように、キーボードコントローラ21からキースイッチ部22へのX座標およびY座標を示すキーマトリックススキャン信号の信号線、および一致信号の信号線から外部に信号線を引き出し、擬似信号発生回路106の一致検出回路107に接続する。一致検出回路107は、X座標およびY座標を示すキーマトリックススキャン信号のスキャン値と、擬似X座標X’および擬似Y座標Y’とが一致するか検出し、一致した時にキーボードコントローラ21への一致信号線に一致信号を出力する。
As shown in FIG. 7, a signal line is drawn out from the signal line of the key matrix scan signal indicating the X coordinate and the Y coordinate from the
図6および図7に示した構成により、キー入力を擬似して所望の入力を自動的に行うことができる。しかし、図6および図7に示した構成では、擬似するキー入力の生成および検出に、キースイッチ部22(デコーダ+ドライバ、キーマトリックス、押下位置検出回路、エンコーダ)は一切関係しない。そのため、キーボードを介した入力を十分に擬似しているとは言えないという問題がある。以下に説明する実施形態では、キーボードのキースイッチ部における信号処理も関係する形でキー入力を擬似することにより、より動作状態に近い形でキー入力を擬似することを可能にする。 With the configuration shown in FIGS. 6 and 7, it is possible to simulate key input and automatically perform desired input. However, in the configurations shown in FIG. 6 and FIG. 7, the key switch unit 22 (decoder + driver, key matrix, pressed position detection circuit, encoder) is not involved at all in generation and detection of simulated key input. Therefore, there is a problem that it can not be said that the input through the keyboard is sufficiently simulated. In the embodiment described below, it is possible to simulate key input in a form closer to the operation state by simulating key input in a form related to signal processing in the key switch part of the keyboard.
図8は、第1実施形態のキーボードおよびキー入力を擬似する場合の構成を示す図である。
第1実施形態のキーボード20は、キーボードコントローラ31と、キースイッチ部32と、外部端子50と、一致検出変換回路51と、Xセレクタ52と、Yセレクタ53と、を有する。言い換えれば、第1実施形態のキーボード20は、図4のキーボードに、外部端子50と、一致検出変換回路51と、Xセレクタ52と、Yセレクタ53と、を追加した構成を有する。一致検出変換回路51、Xセレクタ52およびYセレクタ53は、合わせて変換回路を形成する。
FIG. 8 is a diagram showing a configuration in the case of simulating the keyboard and key input of the first embodiment.
The
一致検出変換回路51は、キー入力を擬似する擬似入力モード信号がアクティブの時に動作し、通常時は動作を停止する。一致検出変換回路51は、キーボードコントローラ31の出力するX座標およびY座標を示すキーマトリックススキャン信号のスキャン値と、外部から入力される擬似X座標X’および擬似Y座標Y’と、を受ける。一致検出変換回路51は、キーマトリックススキャン信号のX座標およびY座標のスキャン値と、外部からの擬似X座標X’および擬似Y座標Y’とが一致するか検出する。一致検出変換回路51は、一致した時に、X座標およびY座標のスキャン値を所定キーコードのスキャン値(アドレス)に変換する。所定キーは、例えばキーコード“0”であり、“0”のキーのアドレスに変換する。以下、所定キーがキーコード“0”であるとして説明する。なお、擬似するキー入力が所定キーのキーコードの場合は、実質的には変換は行われないことになる。
The coincidence
一致検出変換回路51は、一致しない時には、X座標およびY座標のスキャン値を維持するが、所定キーのX座標およびY座標のスキャン値の場合は、所定キー以外のキーの座標のスキャン値に変換する。なお、一致しない時には、X座標およびY座標のスキャン値を維持せず、所定キー以外の任意のキーの座標のスキャン値に変換してもよい。ここでは、一致しない時には、維持する場合を含めて所定キー以外に変換すると称し、一致検出変換回路51の出力するX座標およびY座標のスキャン値を変換X座標および変換Y座標と称する。
The match
Xセレクタ52およびYセレクタ53は、通常時には、キーボードコントローラ31の出力するX座標およびY座標を示すキーマトリックススキャン信号のスキャン値を選択してキースイッチ部32に出力する。これにより、第1実施形態のキーボードは、通常時には、図4のキーボードと同じ動作を行う。
The
Xセレクタ52およびYセレクタ53は、キー入力を擬似する時には、一致検出変換回路51の出力する変換X座標および変換Y座標のスキャン値を選択してキースイッチ部32に出力する。Xセレクタ52およびYセレクタ53は、外部端子50を介して入力される擬似入力モード信号がアクティブの時には、キー入力を擬似するように動作し、擬似入力モード信号が非アクティブの時には、通常時の動作を行う。
When simulating key input, the
一致検出変換回路51、Xセレクタ52およびYセレクタ53は、一体の回路として形成してもよい。
The coincidence
第1実施形態のキーボード20を使用してキー入力を擬似する場合、図8に示すように、キーボード20の外部に、パソコン等の制御装置101と、キーコードアドレス変換回路102と、を設ける。
When simulating key input using the
制御装置101は、あらかじめ作成されて搭載されたプログラムにより、擬似して入力したいキー入力の列(キーコードストリーム)を、キーコードアドレス変換回路102に出力する。前述のように、出力するキーコードは数100ms続き、キーコードが変化する時には、いずれのキーも押されない状態に対応するオープン状態を設ける。
The
キーコードアドレス変換回路102は、キーコードストリームの各キーコードを、キーボード20のキーマトリックスに対応するアドレス、すなわち行番(X)と列番(Y)に変換し、擬似X座標X’および擬似Y座標Y’を出力する。オープン状態については、X座標を示すキーマトリックススキャン信号がとることないスキャン値を割り当てる。さらに、キーコードアドレス変換回路102は、アクティブである擬似入力モード信号を出力する。
The key code
キーコードアドレス変換回路102の出力する擬似X座標X’および擬似Y座標Y’は、外部端子50を介して、一致検出回路51に送られる。また、キーコードアドレス変換回路102の出力する擬似入力モード信号は、外部端子50を介して、一致検出回路51、Xセレクタ52およびYセレクタ53に送られる。
The pseudo X coordinate X ′ and the pseudo Y coordinate Y ′ output from the key code
通常動作時には、制御装置101およびキーコードアドレス変換回路102は取り外されるため、一致検出変換回路51、Xセレクタ52およびYセレクタ53に入力する擬似入力モード信号は非アクティブとなる。これにより、一致検出変換回路51は動作を停止し、Xセレクタ52およびYセレクタ53は、キーボードコントローラ31の出力するX座標およびY座標を示すキーマトリックススキャン信号のスキャン値を選択する。これにより、第1実施形態のキーボードは、通常時には、図4のキーボードと同じ動作を行う。
In the normal operation, since the
入力キーを擬似して入力を行う場合には、制御装置101およびキーコードアドレス変換回路102を外部端子50に接続する。これにより、一致検出変換回路51、Xセレクタ52およびYセレクタ53に入力する擬似入力モード信号はアクティブとなり、一致検出変換回路51は動作状態になり、Xセレクタ52およびYセレクタ53は、擬似X座標X’および擬似Y座標Y’を選択する。
When the input key is simulated and input is performed, the
次に、キーボード20のキースイッチ部32における所定キー(ここではキーコード“0”)を押し下げた状態にする。そして、制御装置101からキーコードストリームの出力を開始し、キーコードアドレス変換回路102は、キーコードストリームに対応する擬似X座標X’および擬似Y座標Y’を出力する。
Next, a predetermined key (key code "0" in this case) in the
キーボードコントローラ31は、キーマトリックススキャン信号のX座標およびY座標のスキャン値を順次変化させるスキャン動作を繰り返し行う。ここで、一致検出変換回路51は、スキャン値が擬似X座標X’および擬似Y座標Y’と一致すると、X座標およびY座標のスキャン値を所定キー(ここではキーコード“0”)の座標のスキャン値に変換する。なお、スキャン値が擬似X座標X’および擬似Y座標Y’と一致しない時には、一致検出変換回路51は、所定キー以外の座標の変換X座標および変換Y座標を出力する。
The
キースイッチ部32は、所定キーの座標のスキャン値に変換された変換X座標および変換Y座標を受けると、変換X座標をデコードして所定キーの行ラインに電圧信号を印加する。所定キーが押し下げられているため、所定キーの列ラインに電圧信号が出現し、押下検出回路が所定キーの列ラインでの電圧信号を検出し、エンコーダが所定キーの列ラインのY座標を出力する。このY座標は変換Y座標と一致するので、キースイッチ部32は、一致信号をキーボードコントローラ31に出力する。
When the
一致信号を受信した時にキーボードコントローラ31が出力しているX座標およびY座標は、擬似X座標X’および擬似Y座標Y’と一致した値である。したがって、キーボードコントローラ31は、擬似X座標X’および擬似Y座標Y’のキーが押し下げられているとして、対応するキーコードを生成する。
The X and Y coordinates outputted by the
キーコードストリームの変化にしたがって入力したいキー入力(擬似するキー入力)が変化すると、それに応じて擬似X座標X’および擬似Y座標Y’が変化し、所望のキーコードストリームが入力されることになる。 When a desired key input (pseudo key input) to be input is changed according to the change of the key code stream, the pseudo X coordinate X 'and the pseudo Y coordinate Y' change accordingly, and the desired key code stream is input. Become.
図9は、キーコードストリームで、擬似するキー入力が変化した時の、キーマトリックススキャン信号のスキャン値(キースキャン値)、変換キースキャン値および一致信号の変化例を示す図、およびその変化を示すタイムチャートである。 FIG. 9 is a diagram showing a change example of a scan value (key scan value) of a key matrix scan signal, a converted key scan value, and a match signal when a simulated key input changes in a key code stream, and the change It is a time chart which shows.
図9は、行ラインが5本で、列ラインが2本で、X座標は0から4まで、Y座標は0から1まで変化するものとし、X座標およびY座標は、(0,0)、(0,1)、(1,0)、…、(4,1)、(0,0)…の変化を繰り返すものとする。したがって、キーマトリックスは、10アドレスを有し、1スキャン中に(X,Y)は、10回変化する。ここでは、10アドレスが「0」から「9」に対応する、言い換えれば10キーであるとする。擬似するキー入力は、「2」、「5」、「8」と変化し、「2」が1スキャンの3/10の期間、「5」が1スキャンの3/10の期間、「8」が1スキャンの4/10の期間維持される。 In FIG. 9, it is assumed that there are five row lines, two column lines, the X coordinate is from 0 to 4, the Y coordinate is from 0 to 1, and the X and Y coordinates are (0, 0) , (0, 1), (1, 0),..., (4, 1), (0, 0). Therefore, the key matrix has 10 addresses, and (X, Y) changes 10 times during one scan. Here, 10 addresses correspond to “0” to “9”, in other words, 10 keys. The simulated key input changes to “2”, “5”, “8”, “2” is 3/10 period of 1 scan, “5” is 3/10 period of 1 scan, “8” Is maintained for a period of 4/10 of one scan.
図9の(A)に示すように、1スキャンの1番目の変化でキースキャン値(X,Y)が(0,0)になると、これは所定キー「0」の座標と一致するので、キースキャン値(X,Y)を(0,0)からそれ以外のキーの座標に変換する。ここでは、(0,0)から(3,0)に変換するものとする。なお、所定キーの座標以外の座標であればどの座標でもよく、例えば、Y座標を0から1に変換しても、X座標とY座標の両方を変換してもよい。 As shown in FIG. 9A, when the key scan value (X, Y) becomes (0, 0) at the first change of one scan, this coincides with the coordinates of the predetermined key “0”. Convert key scan value (X, Y) from (0, 0) to coordinates of other keys. Here, it is assumed that (0, 0) is converted to (3, 0). Note that any coordinate may be used as long as it is a coordinate other than the coordinate of the predetermined key. For example, the Y coordinate may be converted from 0 to 1, or both the X coordinate and the Y coordinate may be converted.
2番目の変化で、キースキャン値(X,Y)が(0,1)になった場合、そのままキースキャン値(X,Y)を(0,1)に維持する。なお、この場合も、所定キーの座標以外の座標であればどの座標に変換してもよい。 If the key scan value (X, Y) becomes (0, 1) in the second change, the key scan value (X, Y) is maintained at (0, 1) as it is. Also in this case, any coordinate other than the coordinates of the predetermined key may be converted to any coordinate.
3番目の変化で、キースキャン値(X,Y)が(1,0)になった場合、これは擬似する「2」のキースキャン値(座標)と一致するので、キースキャン値(X,Y)が所定キーの座標(0,0)になるように変換する。これに応じて、キースイッチ部32は一致信号を出力する。ここでは、一致信号は発生する場合を丸印で、不一致信号の場合を×印で表す。
In the third change, when the key scan value (X, Y) becomes (1, 0), this matches the simulated key scan value (coordinates) of “2”, so the key scan value (X, Y) Convert Y so that it becomes coordinates (0, 0) of a predetermined key. In response to this, the
4番目の変化で、擬似するキー入力が「5」に変化し、キースキャン値(X,Y)が(1,1)になった場合、そのままキースキャン値(X,Y)を(1,1)に維持する。さらに次の5番目の変化で、キースキャン値(X,Y)が(2,0)になった場合、そのままキースキャン値(X,Y)を(2,0)に維持する。 In the fourth change, when the simulated key input changes to "5" and the key scan value (X, Y) becomes (1, 1), the key scan value (X, Y) is simply (1, 1). Maintain in 1). When the key scan value (X, Y) becomes (2, 0) in the next fifth change, the key scan value (X, Y) is maintained at (2, 0) as it is.
6番目の変化で、キースキャン値(X,Y)が(2,1)になった場合、これは擬似する「5」のキースキャン値(座標)と一致するので、キースキャン値(X,Y)が所定キーの座標(0,0)になるように変換する。これに応じて、キースイッチ部32は一致信号を出力する。
When the key scan value (X, Y) becomes (2, 1) in the sixth change, this matches the simulated key scan value (coordinates) of “5”, so the key scan value (X, Y) Convert Y so that it becomes coordinates (0, 0) of a predetermined key. In response to this, the
7番目の変化で、擬似するキー入力が「8」に変化する。7番目と8番目の変化で、キースキャン値(X,Y)が(3,0)(3,1)になった場合、そのままキースキャン値(X,Y)を維持する。 At the seventh change, the simulated key input changes to "8". When the key scan value (X, Y) becomes (3, 0) (3, 1) in the seventh and eighth changes, the key scan value (X, Y) is maintained as it is.
9番目の変化で、キースキャン値(X,Y)が(4,0)になった場合、これは擬似する「8」のキースキャン値(座標)と一致するので、キースキャン値(X,Y)が所定キーの座標(0,0)になるように変換する。これに応じて、キースイッチ部32は一致信号を出力する。
If the key scan value (X, Y) becomes (4, 0) in the ninth change, this matches the simulated key scan value (coordinates) of "8", so the key scan value (X, Y) Convert Y so that it becomes coordinates (0, 0) of a predetermined key. In response to this, the
10番目の変化で、キースキャン値(X,Y)が(4,1)になった場合、そのままキースキャン値(X,Y)を維持する。 If the key scan value (X, Y) becomes (4, 1) in the tenth change, the key scan value (X, Y) is maintained as it is.
図9の(B)のタイムチャートは、上記の変化例の場合の各信号の変化を示す。 The time chart of (B) of FIG. 9 shows the change of each signal in the case of the above-mentioned example of change.
図9では、擬似するキー入力が、1スキャン内に3回変化する短時間で変化する例を示した。しかし、人間によるキーボードからの入力を擬似するので、人間によるキーボードからの入力と同程度で、擬似するキー入力が変化するようにキーコードストリームを作成することが望ましい。 FIG. 9 shows an example in which the simulated key input changes in a short time of changing three times in one scan. However, since it simulates human keyboard input, it is desirable to create a key code stream so that the simulated key input changes as much as human keyboard input.
図10は、擬似するキー入力が、人間によるキー入力と同様に数100ms続くキーコードストリームで、擬似するキー入力が変化した時の、キースキャン値、変換キースキャン値および一致信号の変化例を示す図である。擬似するキー入力が長時間続く以外は、図9と同じである。 FIG. 10 shows an example of changes in key scan value, converted key scan value, and match signal when the simulated key input changes with a key code stream that lasts several hundreds of ms, similar to human key input. FIG. It is the same as FIG. 9 except that the simulated key input continues for a long time.
図10では、キー入力「2」が数100msの間入力されるので、キー入力「2」について一致信号が多数回発生する。 In FIG. 10, since the key input "2" is input for several hundred ms, a coincidence signal is generated many times for the key input "2".
図11は、制御装置101に搭載するキーコードストリームのプログラムを作成する手順を示すフローチャートである。
ステップS11で、擬似する入力キーを選択する。
ステップS12で、選択した擬似入力キーの入力時間、すなわちキーを押し下げている時間を選択する。
FIG. 11 is a flowchart showing a procedure of creating a key code stream program installed in the
In step S11, an input key to be simulated is selected.
In step S12, the input time of the selected pseudo input key, that is, the time during which the key is depressed is selected.
ステップS13で、擬似入力キーの後にオープン状態を設けるか決定し、設ける場合にはステップS14に、設けない場合にはステップS15に進む。
ステップS14で、オープン状態の時間を選択する。
In step S13, it is determined whether an open state is to be provided after the pseudo input key. If the open state is to be provided, the process proceeds to step S14.
In step S14, an open time is selected.
ステップS15で、さらに別の入力キーの擬似を続けるかを決定し、続ける場合にはステップS11に戻り、終了する時には、ステップS16に進む。S11からS15を繰り返すことにより、一連の擬似するキーコードストリームが作成される。 In step S15, it is determined whether to continue simulating another input key, and in the case of continuing, the process returns to step S11, and in the case of ending the process, the process proceeds to step S16. A series of simulated key code streams are created by repeating S11 to S15.
ステップS16で、上記のキーコードストリームを繰り返す回数を入力する。
ステップS17で、さらに別の入力キーの擬似を続けるかを決定し、続ける場合にはステップS11に戻り、続けない場合には終了する。
制御装置101は、動作の単位時間にしたがってプログラムを実行し、擬似する入力キーの列(キーコードストリーム)を、キーコードアドレス変換回路102に出力する。
In step S16, the number of repetitions of the above key code stream is input.
In step S17, it is determined whether to continue simulating another input key, and if so, the process returns to step S11, and if not, the process ends.
The
第1実施形態によれば、あらかじめ擬似する入力キーの列を記憶したプログラムを作成しておき、制御装置101およびキーコードアドレス変換回路102をキーボード20に接続した状態で、キーボード20で所定キーを押し下げた状態にする。その上で、制御装置101を実行すれば、所望のキー入力を自動的に行うことが可能である。しかもこの自動キー入力は、キースイッチ部22における信号処理を通して行われるので、より実際の入力動作に近い形でキー入力を擬似するという効果を奏する。
According to the first embodiment, a program storing a string of simulated input keys is created in advance, and with the
第1実施形態は、図4の構成を有するキーボードをベースにしているが、図3の構成を有するキーボードをベースにすることも可能である。次に説明する第2実施形態は、図3の構成を有するキーボードをベースにするものである。 The first embodiment is based on a keyboard having the configuration of FIG. 4, but it is also possible to base on a keyboard having the configuration of FIG. A second embodiment to be described next is based on a keyboard having the configuration of FIG.
図12は、第2実施形態のキーボードおよびキー入力を擬似する場合の構成を示す図である。
図12において、制御装置101およびキーコードアドレス変換回路102は、第1実施形態と同じものが使用される。
FIG. 12 is a diagram showing a configuration in the case of simulating the keyboard and key input of the second embodiment.
In FIG. 12, the
第2実施形態のキーボード20は、キーボードコントローラ21と、キースイッチ部22と、外部端子60と、X一致検出変換回路61と、Xセレクタ62と、Y変換セレクタ63と、を有する。言い換えれば、第2実施形態のキーボード20は、図3のキーボードに、外部端子60と、X一致検出変換回路61と、Xセレクタ62と、Y変換セレクタ63と、を追加した構成を有する。
The
X一致検出変換回路61は、キー入力を擬似する擬似入力モード信号がアクティブの時に動作し、通常時は動作を停止する。X一致検出変換回路61は、キーボードコントローラ21の出力するX座標を示すキーマトリックススキャン信号のスキャン値と、外部から入力される擬似X座標X’と、を受ける。X一致検出変換回路61は、キーマトリックススキャン信号のX座標のスキャン値と、外部からの擬似X座標X’とが一致するか検出する。X一致検出変換回路61は、一致した時に、X座標のスキャン値を所定キーのキーコードのスキャン値(行ラインの行番)に変換する。所定キーは、例えばキーコード“0”であり、“0”のキーの行ラインの行番に変換する。以下、所定キーがキーコード“0”であるとして説明する。X一致検出変換回路61は、一致しない時には、X座標のスキャン値を維持するが、所定キーのX座標のスキャン値の場合は、所定キー以外のキーの行のスキャン値に変換する。なお、一致しない時には、X座標のスキャン値を維持せず、所定キー以外の任意のキーの行のスキャン値に変換してもよい。
The X match
Xセレクタ62は、通常時には、キーボードコントローラ21の出力するX座標を示すキーマトリックススキャン信号のスキャン値を選択してキースイッチ部22に出力する。
The
Xセレクタ62は、キー入力を擬似する時には、X一致検出変換回路61の出力する変換X座標のスキャン値を選択してキースイッチ部22に出力する。Xセレクタ62は、外部端子60を介して入力される擬似入力モード信号がアクティブの時には、キー入力を擬似するように動作し、擬似入力モード信号が非アクティブの時には、通常時の動作を行う。
When simulating a key input, the
Y変換セレクタ63は、通常時には、キースイッチ部22の出力するY座標を示すデータ信号を選択してキーボードコントローラ21に出力する。これにより、Xセレクタ62の動作と合わせて、第2実施形態のキーボードは、通常時には、図3のキーボードと同じ動作を行う。
The
Y変換セレクタ63は、キー入力を擬似する時には、キースイッチ部22から所定キーのY座標のデータを受けた時に、そのY座標を、キーコードアドレス変換回路102から供給される擬似Y座標Y’に変換して出力する。
When the
Y変換セレクタ63から変換した擬似Y座標Y’を受信した時にキーボードコントローラ21が出力しているX座標は、擬似X座標X’と一致した値である。したがって、キーボードコントローラ21は、擬似X座標X’および擬似Y座標Y’のキーが押し下げられているとして、対応するキーコードを生成する。
When the pseudo Y coordinate Y 'converted from the
図13は、第2実施形態で、キーコードストリームで、擬似するキー入力が変化した時の、キーマトリックススキャン信号のスキャン値(キースキャン値)、変換キースキャン値および一致信号の変化例を示す図である。 FIG. 13 shows a change example of the scan value (key scan value) of the key matrix scan signal, the conversion key scan value, and the coincidence signal when the simulated key input changes in the key code stream in the second embodiment. FIG.
図13は、行ラインが5本で、列ラインが2本で、X座標は0から4まで、Y座標は0から1までとし、X座標は0から4の変化を繰り返すものとする。押し下げられたキーがある場合には、キースイッチ部22が、そのX座標のスキャン値の時にY座標を出力する。ここでは、テンキー「0」、「1」、「2」、…「9」が、座標(0,0)、(1,0)、(2,0)、…(4,1)に対応する。
In FIG. 13, it is assumed that five row lines, two column lines, an X coordinate from 0 to 4, a Y coordinate from 0 to 1, and an X coordinate from 0 to 4 change repeatedly. If there is a depressed key, the
1スキャンの1番目の変化でキースキャン値(X)が(0)になると、これは所定キー「0」のX座標と一致するので、キースキャン値(X)を(0)以外のキーのX座標に変換する。なお、所定キーのX座標以外の座標であればどのX座標でもよい。この時、キースイッチ部22はY座標を出力しない。
When the key scan value (X) becomes (0) at the first change of one scan, this matches with the X coordinate of the predetermined key "0", so the key scan value (X) is the key other than (0) Convert to X coordinate. Any X coordinate may be used as long as it is a coordinate other than the X coordinate of the predetermined key. At this time, the
2番目の変化で、キースキャン値(X)が(1)になった場合、そのままキースキャン値(X)を(1)に維持する。なお、この場合も、所定キーの座標以外の座標であればどの座標に変換してもよく、キースイッチ部22はY座標を出力しない。
When the key scan value (X) becomes (1) in the second change, the key scan value (X) is maintained as it is (1). Also in this case, the coordinates may be converted to any coordinates other than the coordinates of the predetermined key, and the
3番目の変化で、キースキャン値(X)が(2)になった場合、これは擬似する「2」のキースキャン値(X座標)と一致するので、キースキャン値(X)が所定キーのX座標(0)になるように変換する。これに応じて、キースイッチ部22は所定キーのY座標(0)を出力し、Y変換セレクタ63は、Y座標(0)を擬似Y座標Y’(0)に変換してキーボードコントローラ21に出力する。キーボードコントローラ21は、その時に擬似X座標X’に一致するX座標を出力しており、擬似X座標X’および擬似Y座標Y’(2,0)のキーが押し下げられていると判定する。
In the third change, when the key scan value (X) becomes (2), this matches the simulated key scan value (X coordinate) of "2", so the key scan value (X) is a predetermined key Convert to X coordinate (0) of. In response to this, the
4番目の変化時に、擬似するキー入力が「5」に変化し、キースキャン値(X)が(3)になった場合、そのままキースキャン値(3)を維持する。さらに次の5番目の変化で、キースキャン値(X)が(4)になった場合、そのままキースキャン値(4)を維持する。 When the simulated key input changes to "5" and the key scan value (X) becomes (3) during the fourth change, the key scan value (3) is maintained as it is. Furthermore, in the next fifth change, when the key scan value (X) becomes (4), the key scan value (4) is maintained as it is.
6番目の変化で、キースキャン値(X)が(0)に戻った場合、これは擬似する「5」のキースキャン値(X座標)と一致するので、キースキャン値(X)が所定キーの座標(0)になるように変換する。これに応じて、キースイッチ部22は所定キーのY座標(0)を出力し、Y変換セレクタ63は、Y座標(0)を擬似Y座標Y’(0)に変換してキーボードコントローラ21に出力する。キーボードコントローラ21は、その時に擬似X座標X’に一致するX座標を出力しており、擬似X座標X’および擬似Y座標Y’(0,1)のキーが押し下げられていると判定する。
In the sixth change, when the key scan value (X) returns to (0), this matches the simulated key scan value (X coordinate) of “5”, so the key scan value (X) is a predetermined key Convert to coordinate (0) of. In response to this, the
7番目の変化時に、擬似するキー入力が「8」に変化する。7番目と8番目の変化で、キースキャン値(X)が(1)、(2)になった場合、そのままキースキャン値を維持する。 At the seventh change, the simulated key input changes to "8". When the key scan value (X) becomes (1) or (2) in the seventh and eighth changes, the key scan value is maintained as it is.
9番目の変化で、キースキャン値(X)が(3)になった場合、これは擬似する「8」のキースキャン値(座標)と一致するので、キースキャン値(X)が所定キーの座標(0)になるように変換する。これに応じて、キースイッチ部22は所定キーのY座標(0)を出力し、Y変換セレクタ63は、Y座標(0)を擬似Y座標Y’(1)に変換してキーボードコントローラ21に出力する。キーボードコントローラ21は、その時に擬似X座標X’に一致するX座標を出力しており、擬似X座標X’および擬似Y座標Y’(3,1)のキーが押し下げられていると判定する。
In the ninth change, when the key scan value (X) becomes (3), this matches the simulated key scan value (coordinates) of "8", so the key scan value (X) is a predetermined key Transform to coordinate (0). In response to this, the
制御装置101およびキーコードアドレス変換回路102を使用した動作・処理は第1実施形態と同じである。
以上の通り、第2実施形態では、外部から入力される擬似X座標X’および擬似Y座標Y’のキーが押し下げられているとした擬似キー入力が、キースイッチ部22における信号処理を通して行える。これにより、より実際の入力動作に近い形でキー入力を擬似するという効果を奏する。
The operation and processing using the
As described above, in the second embodiment, the pseudo key input in which the keys of the pseudo X coordinate X ′ and the pseudo Y coordinate Y input from the outside are pressed can be performed through signal processing in the
第1および第2実施形態では、制御装置およびキーコードアドレス変換回路を、外部端子を介してキーボードに接続した状態で、キー入力を擬似する。しかし、キーボードに外部端子を設けず、制御装置およびキーコードアドレス変換回路を準備せずにキー入力を擬似できることが望ましい。次に説明する第3実施形態では、キーボードに制御装置およびキーコードアドレス変換回路を接続せずにキー入力を擬似する。 In the first and second embodiments, key input is simulated in a state in which the control device and the key code address conversion circuit are connected to the keyboard via the external terminal. However, it is desirable that key input can be simulated without providing an external terminal on the keyboard and preparing the control device and the key code address conversion circuit. In a third embodiment to be described next, key input is simulated without connecting the control device and the key code address conversion circuit to the keyboard.
図14は、第3実施形態のキーボードの構成を示す図である。
第3実施形態のキーボードは、キーボードコントローラ31と、キースイッチ部32と、一致検出変換回路51と、セレクタ54と、を有する。キースイッチ部32および一致検出変換回路51は、図8の第1実施形態のキーボードの対応部分と同じであり、セレクタ54は、Xセレクタ52とYセレクタ53を合わせたものである。
FIG. 14 is a diagram showing the configuration of the keyboard of the third embodiment.
The keyboard of the third embodiment has a
前述のように、キーボードコントローラは、汎用のプロセッサ、ROMおよびRAM等で形成されるか、それらを含むマイクロコンピュータ等で形成されており、RAMや書き換え可能な不揮発性メモリ等を有している。そこで、第3実施形態では、キーコードストリームを、キーボードコントローラの有するメモリに記憶する。また、キーコードストリームの生成を、キーボードのキースイッチ部を利用して行う。 As described above, the keyboard controller is formed of a general-purpose processor, ROM, RAM, etc., or is formed of a microcomputer etc. including them, and has RAM, rewritable nonvolatile memory, etc. Therefore, in the third embodiment, the key code stream is stored in the memory of the keyboard controller. In addition, the key code stream is generated using the key switch unit of the keyboard.
図14に示すように、一般的なキーボードコントローラは、キーボードコントローラ用CPU71と、RAM/フラッシュメモリ等のメモリ72と、I/Oポート73と、スキャンアドレスポート74と、バス75と、を有する。CPU71は、バス75を介して、メモリ72、I/Oポート73およびスキャンアドレスポート74にアクセスする。CPU71の動作プログラムは、フラッシュメモリに記憶されるが、フラッシュメモリが搭載されていない場合には、図示していないROMに記憶される。
As shown in FIG. 14, a general keyboard controller has a
スキャンアドレスポート74は、I/Oポートの一部であるが、ここでは特別なポートとして別に示している。CPU71は、内部で生成したキーマトリックススキャン信号のスキャン値(X,Y座標)を、スキャンアドレスポート74に出力する。また、キースイッチ部32から出力された一致信号は、CPU71の割り込み信号端子IRQに入力する。CPU71は、メモリ72に記憶されたキーコードストリームから擬似するキー入力の情報を読み出し、擬似X座標X’および擬似Y座標Y’を生成して、I/O73に出力する。I/O73の出力には、さらに擬似入力モードを示すビットが含まれる。マイクロコンピュータ等に関する構成は、広く知られているので、これ以上の説明は省略する。
The
第3実施形態では、キースイッチ部からのキー入力にしたがってキーコードストリームを生成し、メモリ72に記憶する記憶モードと、記憶したキーコードストリームを出力する実行モードを行うためのプログラムを、動作プログラムに搭載する。
In the third embodiment, a program for performing a storage mode for generating a key code stream according to a key input from the key switch unit and storing the key code stream in the
図15は、キーコードストリームを生成して記憶する記憶モードにおける動作を示すフローチャートである。
ステップS21では、キーコードストリーム記憶モードが指示されたか判定し、指示されるまで待機する。記憶モードは、ファンクションキー、キーの組み合わせで指示される。記憶モードを指示するファンクションキー、キーの組み合わせは、通常動作で使用するファンクションキー、キーの組み合わせ以外であるように決められる。キーコードストリーム記憶モードが指示されると、ステップS22に進む。
FIG. 15 is a flowchart showing an operation in a storage mode for generating and storing a key code stream.
In step S21, it is determined whether or not a key code stream storage mode has been instructed, and the process waits for an instruction. The storage mode is indicated by a combination of function keys and keys. The combination of function keys and keys indicating the storage mode is determined to be other than the combination of function keys and keys used in the normal operation. When the key code stream storage mode is instructed, the process proceeds to step S22.
ステップS22で、キースイッチ部32におけるキー入力により、図11に示した操作にしたがって、キーコードストリームを生成し、メモリ72に記憶する。なお、プログラムに、実際のキー入力動作を計時する機能を設け、実際の入力動作を模したキーコードストリームを作成するようにしてもよい。擬似するすべてのキー入力が終了すると、終了を指示するキー入力を行い、終了する。 In step S22, a key code stream is generated according to the operation shown in FIG. The program may be provided with a function of measuring an actual key input operation to create a key code stream imitating the actual input operation. When all simulated key input is completed, the key input instructing the end is performed and the process is ended.
図16は、記憶したキーコードストリームにしたがって擬似するキー入力を実行するモードにおけるCPUの動作を示すフローチャートである。 FIG. 16 is a flowchart showing an operation of the CPU in a mode for executing simulated key input in accordance with the stored key code stream.
ステップS31で、キーコードストリーム実行モードが指示されたか判定し、指示されるまで待機する。実行モードも、通常動作で使用するファンクションキー、キーの組み合わせ以外のファンクションキー、キーの組み合わせで指示される。キーコードストリーム実行モードが指示されると、ステップS32に進む。 In step S31, it is determined whether or not a key code stream execution mode has been instructed, and the process waits for an instruction. The execution mode is also indicated by a combination of a function key used in normal operation and a function key other than a combination of keys and a key. When the key code stream execution mode is instructed, the process proceeds to step S32.
ステップS32で、キーコードストリーム出力状態を設定する。具体的には、I/O73から出力する擬似入力モードを示すビットをアクティブにする。これにより、一致検出変換回路51およびセレクタ54が、擬似入力を行う状態に設定される。
In step S32, a key code stream output state is set. Specifically, the bit indicating the pseudo input mode output from the I /
ステップS33で、実行するキーコードストリームを記憶したメモリの読み出し開始位置(アドレス)を設定する。
ステップS34で、キーコードストリームを読み出し、キー入力の擬似X座標および擬似Y座標を生成する。
In step S33, the reading start position (address) of the memory storing the key code stream to be executed is set.
In step S34, the key code stream is read, and pseudo X coordinates and pseudo Y coordinates of key input are generated.
ステップS35で、擬似X座標および擬似Y座標をI/O73に出力する。これにより、第1実施形態で説明した擬似キー入力が行われる。
ステップS36で、擬似しているキー入力を行う時間が経過するまで待つ。これにより、実際のキー入力動作に近い形でキー入力が行われる。時間経過後ステップS37に進む。
In step S35, the pseudo X coordinate and the pseudo Y coordinate are output to the I /
In step S36, the process waits until the time for performing simulated key input elapses. As a result, key input is performed in a manner close to the actual key input operation. After the time has elapsed, the process proceeds to step S37.
ステップS37で、読み出し位置(アドレス)を次のキーコードのアドレスに変更する。
ステップS38で、入力するキーコードが無いか判定し、有ればステップS34に戻る。ステップS34からS38を繰り返すことにより、記憶されたキーコードストリームに対応するキー入力が行われる。これ以上入力するキーコードが無い場合は、終了する。
At step S37, the read position (address) is changed to the address of the next key code.
In step S38, it is determined whether there is no key code to be input. If there is, the process returns to step S34. By repeating steps S34 to S38, key input corresponding to the stored key code stream is performed. If there are no more key codes to be input, the process ends.
以上の実施形態に関し、更に以下の付記を開示する。
[付記1]
キースイッチ部にキーマトリックススキャンのスキャン値を入力し、
前記キースイッチ部からの前記キーマトリックススキャンのスキャン値に対する応答を受け、
前記キーマトリックススキャンのスキャン値および前記キースイッチ部からの応答から、前記キースイッチ部におけるキーの押し下げ状態を検出するキーボードにおいて、
前記キースイッチ部で、所定キーが押し下げられた状態に設定し、
前記キーマトリックススキャンのスキャン値と、擬似するキーのスキャン値と、を比較し、
前記キーマトリックススキャンのスキャン値と前記擬似するキーのスキャン値とが一致した時に、前記キーマトリックススキャンのスキャン値を前記所定キーのスキャン値に変換し、
前記キーマトリックススキャンのスキャン値と前記擬似するキーのスキャン値とが一致しない時に、前記キーマトリックススキャンのスキャン値を、前記所定キーのスキャン値以外になるように変換し、
前記キーマトリックススキャンのスキャン値、前記擬似するキーのスキャン値および前記キースイッチ部からの応答から、前記キースイッチ部における押し下げキーを判定することを特徴とするキーボード入力擬制方法。
[付記2]
前記キーマトリックススキャンのスキャン値は、前記キースイッチ部の全てのキーをスキャンし、
前記キースイッチ部は、前記所定キーのスキャン値に変換したスキャン値を受けた時に一致信号を出力し、
前記キースイッチ部は、前記所定キーのスキャン値以外のスキャン値を受けた時に不一致信号を出力する付記1に記載のキーボード入力擬制方法。
[付記3]
前記キースイッチ部のキーマトリックスは、複数の行と複数の列でキーの位置が規定され、
前記キーマトリックススキャンのスキャン値は、前記キーマトリックスの前記複数の行をスキャンし、
前記キーマトリックススキャンのスキャン値と、擬似するキーの行番と、を比較し、
前記キーマトリックススキャンのスキャン値と前記擬似するキーの行番とが一致した時に、前記キーマトリックススキャンのスキャン値を前記所定キーの行番に変換し、
前記キーマトリックススキャンのスキャン値と前記擬似するキーの行番とが一致しない時に、前記キーマトリックススキャンのスキャン値を、前記所定キーの行番以外になるように維持または変換し、
前記キースイッチ部が前記所定キーの列番を出力した時に、前記擬似するキーの列番に変換する付記1に記載のキーボード入力擬制方法。
[付記4]
前記擬似するキーのスキャン値は、当該キーボードの外部から供給される付記1から3のいずれか1つに記載のキーボード入力擬制方法。
[付記5]
前記擬似するキーのスキャン値は、当該キーボード内の記憶部から供給される付記1から3のいずれか1つに記載のキーボード入力擬制方法。
[付記6]
複数のキーを配列したキーマトリックスを有するキースイッチ部と、
前記キースイッチ部にキーマトリックススキャンのスキャン値を出力するキーボードコントローラと、
入力擬制時に、前記キーマトリックススキャンのスキャン値と、擬似するキーのスキャン値と、を比較し、前記キーマトリックススキャンのスキャン値と前記擬似するキーのスキャン値とが一致した時に、前記キーマトリックススキャンのスキャン値を所定キーのスキャン値に変換し、前記キーマトリックススキャンのスキャン値と前記擬似するキーのスキャン値とが一致しない時に、前記キーマトリックススキャンのスキャン値を、前記所定キーのスキャン値以外になるように変換する変換回路と、を有し、
前記キースイッチ部は、前記キーマトリックススキャンのスキャン値に対する応答を出力し、
前記キーボードコントローラは、前記キースイッチ部からの前記キーマトリックススキャンのスキャン値に対する前記応答を受け、前記キーマトリックススキャンのスキャン値、前記擬似するキーのスキャン値および前記キースイッチ部からの応答から、前記キースイッチ部におけるキーの押し下げ状態を判定することを特徴とするキーボード。
[付記7]
前記変換回路は、非入力擬制時に、前記キーマトリックススキャンのスキャン値を変換せずに出力する付記6に記載のキーボード。
[付記8]
前記キーマトリックススキャンのスキャン値は、前記キースイッチ部の全てのキーをスキャンし、
前記キースイッチ部は、前記所定キーのスキャン値を受けた時に一致信号を出力し、
前記キースイッチ部は、前記所定キーのスキャン値以外のスキャン値を受けた時に不一致信号を出力する付記6に記載のキーボード。
[付記9]
前記キースイッチ部のキーマトリックスは、複数の行と複数の列でキーの位置が規定され、
前記キーマトリックススキャンのスキャン値は、前記キーマトリックスの前記複数の行をスキャンし、
前記変換回路は、前記キーマトリックススキャンのスキャン値と、擬似するキーの行番と、を比較し、前記キーマトリックススキャンのスキャン値と前記擬似するキーの行番とが一致した時に、前記キーマトリックススキャンのスキャン値を前記所定キーの行番に変換し、前記キーマトリックススキャンのスキャン値と前記擬似するキーの行番とが一致しない時に、前記キーマトリックススキャンのスキャン値を、前記所定キーの行番以外になるように変換し、前記キースイッチ部が前記所定キーの列番を出力した時に、前記擬似するキーの列番に変換する付記6に記載のキーボード。
[付記10]
外部から供給される前記所定キーのスキャン値を受ける外部端子を有する付記6から9のいずれか1つに記載のキーボード。
[付記11]
前記擬似するキーに関する情報を記憶する記憶部を有する付記6から9のいずれか1つに記載のキーボード。
[付記12]
前記記憶部に記憶する前記擬似するキーに関する情報は、前記キーボードコントローラにより、前記キースイッチ部からのキー入力に基づいて記憶される付記11に記載のキーボード。
[付記13]
キーボードのキースイッチ部を、所定キーが押し下げられた状態に設定し、
キーボードコントローラが出力するキーマトリックススキャンのスキャン値と、擬似するキーのスキャン値と、を比較し、
前記キーマトリックススキャンのスキャン値と前記擬似するキーのスキャン値とが一致した時に、前記キーマトリックススキャンのスキャン値を前記所定キーのスキャン値に変換し、
前記キーマトリックススキャンのスキャン値と前記擬似するキーのスキャン値とが一致しない時に、前記キーマトリックススキャンのスキャン値を、前記所定キーのスキャン値以外になるように変換し、
前記キースイッチ部は、前記所定キーのスキャン値を受けた時に、前記キーボードコントローラに一致信号を出力し、
前記キースイッチ部は、前記所定キーのスキャン値以外のスキャン値を受けた時に、前記キーボードコントローラに不一致信号を出力する、ことを特徴とするキーボード入力擬制方法。
[付記14]
前記擬似するキーのスキャン値は、当該キーボードの外部から供給される付記13に記載のキーボード入力擬制方法。
[付記15]
前記擬似するキーのスキャン値は、当該キーボード内の記憶部から供給される付記13に記載のキーボード入力擬制方法。
[付記16]
キーマトリックススキャンのスキャン値を出力するキーボードコントローラと、
入力擬制時に、前記キーマトリックススキャンのスキャン値と、擬似するキーのスキャン値と、を比較し、前記キーマトリックススキャンのスキャン値と前記擬似するキーのスキャン値とが一致した時に、前記キーマトリックススキャンのスキャン値を所定キーのスキャン値に変換し、前記キーマトリックススキャンのスキャン値と前記擬似するキーのスキャン値とが一致しない時に、前記キーマトリックススキャンのスキャン値を、前記所定キーのスキャン値以外になるように変換する変換回路と、
複数のキーを配列したキーマトリックスを有し、前記変換回路から前記キーマトリックススキャンのスキャン値を受けるキースイッチ部と、を有し、
前記キースイッチ部は、前記所定キーのスキャン値を受けた時に一致信号を出力し、前記所定キーのスキャン値以外のスキャン値を受けた時に不一致信号を出力し、
前記キーボードコントローラは、前記キースイッチ部から前記一致信号を受けた時に、前記キーマトリックススキャンのスキャン値に対応するキーが押し下げられていると判定することを特徴とするキーボード。
[付記17]
前記変換回路は、非入力擬制時に、前記キーマトリックススキャンのスキャン値を変換せずに出力する付記16に記載のキーボード。
Further, the following appendices will be disclosed regarding the above embodiment.
[Supplementary Note 1]
Input scan value of key matrix scan to key switch section,
Receiving a response to the scan value of the key matrix scan from the key switch unit;
In a keyboard, which detects a depression state of a key in the key switch unit from a scan value of the key matrix scan and a response from the key switch unit.
The key switch unit is set to a state where a predetermined key is depressed,
Comparing the scan value of the key matrix scan with the scan value of the simulated key,
Converting the scan value of the key matrix scan into the scan value of the predetermined key when the scan value of the key matrix scan and the scan value of the simulated key match;
Converting the scan value of the key matrix scan to be other than the scan value of the predetermined key when the scan value of the key matrix scan does not match the scan value of the simulated key;
A keyboard input imitation control method characterized in that a depressed key in the key switch unit is determined from a scan value of the key matrix scan, a scan value of the simulated key and a response from the key switch unit.
[Supplementary Note 2]
The scan value of the key matrix scan scans all keys of the key switch unit,
The key switch unit outputs a coincidence signal when receiving the scan value converted into the scan value of the predetermined key,
The keyboard input imitation control method according to
[Supplementary Note 3]
In the key matrix of the key switch unit, positions of keys are defined by a plurality of rows and a plurality of columns.
The scan values of the key matrix scan scan the plurality of rows of the key matrix,
Compare the scan value of the key matrix scan with the line number of the simulated key,
When the scan value of the key matrix scan matches the row number of the simulated key, the scan value of the key matrix scan is converted to the row number of the predetermined key,
The scan value of the key matrix scan is maintained or converted to be other than the row number of the predetermined key when the scan value of the key matrix scan does not match the row number of the simulated key.
10. The keyboard input simulation method according to
[Supplementary Note 4]
The keyboard input imitation method according to any one of
[Supplementary Note 5]
The keyboard input imitation method according to any one of
[Supplementary Note 6]
A key switch unit having a key matrix in which a plurality of keys are arranged;
A keyboard controller that outputs scan values of a key matrix scan to the key switch unit;
At the time of the input simulation, the scan value of the key matrix scan and the scan value of the simulated key are compared, and when the scan value of the key matrix scan and the scan value of the simulated key coincide, the key matrix scan The scan value of the key matrix scan is converted to the scan value of the predetermined key, and when the scan value of the key matrix scan and the scan value of the pseudo key do not match, the scan value of the key matrix scan is other than the scan value of the predetermined key And converting circuits to convert
The key switch unit outputs a response to a scan value of the key matrix scan,
The keyboard controller receives the response to the scan value of the key matrix scan from the key switch unit, and the scan value of the key matrix scan, the scan value of the simulated key and the response from the key switch unit. A keyboard characterized in that a pressed state of a key in a key switch portion is determined.
[Supplementary Note 7]
7. The keyboard according to appendix 6, wherein the conversion circuit outputs the scan value of the key matrix scan without conversion at the time of non-input simulation.
[Supplementary Note 8]
The scan value of the key matrix scan scans all keys of the key switch unit,
The key switch unit outputs a coincidence signal when receiving the scan value of the predetermined key,
7. The keyboard according to appendix 6, wherein the key switch unit outputs a mismatch signal when receiving a scan value other than the scan value of the predetermined key.
[Supplementary Note 9]
In the key matrix of the key switch unit, positions of keys are defined by a plurality of rows and a plurality of columns.
The scan values of the key matrix scan scan the plurality of rows of the key matrix,
The conversion circuit compares the scan value of the key matrix scan with the row number of the simulated key, and when the scan value of the key matrix scan matches the row number of the simulated key, the key matrix The scan value of the key matrix scan is converted into the row of the predetermined key when the scan value of the scan is converted to the row number of the predetermined key and the scan value of the key matrix scan does not match the row number of the simulated key. The keyboard according to appendix 6, wherein conversion is performed so as to be other than the number, and when the key switch unit outputs the column number of the predetermined key, conversion is performed to the column number of the simulated key.
[Supplementary Note 10]
The keyboard according to any one of appendices 6 to 9, further comprising an external terminal for receiving a scan value of the predetermined key supplied from the outside.
[Supplementary Note 11]
The keyboard according to any one of appendices 6 to 9, further comprising: a storage unit storing information on the simulated key.
[Supplementary Note 12]
11. The keyboard according to
[Supplementary Note 13]
Set the key switch section of the keyboard in the state where the predetermined key is depressed,
Compare the scan value of the key matrix scan output by the keyboard controller with the scan value of the simulated key,
Converting the scan value of the key matrix scan into the scan value of the predetermined key when the scan value of the key matrix scan and the scan value of the simulated key match;
Converting the scan value of the key matrix scan to be other than the scan value of the predetermined key when the scan value of the key matrix scan does not match the scan value of the simulated key;
The key switch unit outputs a coincidence signal to the keyboard controller when the scan value of the predetermined key is received.
The key switch unit outputs a mismatch signal to the keyboard controller when receiving a scan value other than the scan value of the predetermined key.
[Supplementary Note 14]
The keyboard input imitation method according to
[Supplementary Note 15]
The keyboard input imitation method according to
[Supplementary Note 16]
Keyboard controller that outputs scan values of key matrix scan,
At the time of the input simulation, the scan value of the key matrix scan and the scan value of the simulated key are compared, and when the scan value of the key matrix scan and the scan value of the simulated key coincide, the key matrix scan The scan value of the key matrix scan is converted to the scan value of the predetermined key, and when the scan value of the key matrix scan and the scan value of the pseudo key do not match, the scan value of the key matrix scan is other than the scan value of the predetermined key A conversion circuit that converts to
And a key switch unit having a key matrix in which a plurality of keys are arranged and receiving scan values of the key matrix scan from the conversion circuit,
The key switch unit outputs a coincidence signal when it receives a scan value of the predetermined key, and outputs a noncoincidence signal when it receives a scan value other than the scan value of the predetermined key,
The keyboard controller, when receiving the coincidence signal from the key switch unit, determines that a key corresponding to a scan value of the key matrix scan is pressed.
[Supplementary Note 17]
17. The keyboard according to
以上、実施形態を説明したが、ここに記載したすべての例や条件は、発明および技術に適用する発明の概念の理解を助ける目的で記載されたものである。特に記載された例や条件は発明の範囲を制限することを意図するものではなく、明細書のそのような例の構成は発明の利点および欠点を示すものではない。発明の実施形態を詳細に記載したが、各種の変更、置き換え、変形が発明の精神および範囲を逸脱することなく行えることが理解されるべきである。 The embodiments have been described above, but all the examples and conditions described herein are for the purpose of assisting the understanding of the concept of the invention applied to the invention and the technology. The examples and conditions specifically described are not intended to limit the scope of the invention, and the construction of such examples in the specification does not show the advantages and disadvantages of the invention. While the embodiments of the invention have been described in detail, it should be understood that various changes, substitutions, and alterations can be made without departing from the spirit and scope of the invention.
10 パーソナルコンピュータ(パソコン)
20 キーボード
21,31 キーボードコントローラ
22,32 キースイッチ部
51 一致検出変換回路
52 Xセレクタ
53 Yセレクタ
61 X一致検出変換回路
62 Xセレクタ
63 Y変換セレクタ
101 制御装置
102 キーコードアドレス変換回路
10 personal computer (PC)
Claims (11)
前記キースイッチ部からの前記キーマトリックススキャンのスキャン値に対する応答を受け、
前記キーマトリックススキャンのスキャン値および前記キースイッチ部からの応答から、前記キースイッチ部におけるキーの押し下げ状態を検出するキーボードにおいて、
入力キーを擬似して入力を行う疑似入力モードの場合、
前記キースイッチ部で、所定キーが押し下げられた状態に設定し、
前記キーマトリックススキャンのスキャン値と、擬似するキーのスキャン値と、を比較し、
前記キーマトリックススキャンのスキャン値と前記擬似するキーのスキャン値とが一致した時に、前記キーマトリックススキャンのスキャン値を前記所定キーのスキャン値に変換し、
前記キーマトリックススキャンのスキャン値と前記擬似するキーのスキャン値とが一致しない時に、前記キーマトリックススキャンのスキャン値を、前記所定キーのスキャン値以外になるように変換し、
前記キースイッチ部は、前記所定キーのスキャン値を受けたときに、前記キーボードコントローラに一致信号を出力し、
前記キースイッチ部は、前記所定キーのスキャン値以外のスキャン値を受けた時に、前記キーボードコントローラに不一致信号を出力することを特徴とするキーボード入力擬制方法。 Input the scan value of the key matrix scan output by the keyboard controller to the key switch section,
Receiving a response to the scan value of the key matrix scan from the key switch unit;
In a keyboard, which detects a depression state of a key in the key switch unit from a scan value of the key matrix scan and a response from the key switch unit.
In the case of the pseudo input mode in which the input key is simulated and input is performed,
The key switch unit is set to a state where a predetermined key is depressed,
Comparing the scan value of the key matrix scan with the scan value of the simulated key,
When the scan values of the key to be the pseudo scan values of the key matrix scan match, it converts the scanned value before Symbol key matrix scan the scan values of the predetermined key,
When the scan values of the key to be the pseudo scan values of the key matrix scan do not match, the scan value before Symbol key matrix scan, converted to be a non-scanning value of the predetermined key,
The key switch unit outputs a coincidence signal to the keyboard controller when the scan value of the predetermined key is received.
The key switch unit outputs a mismatch signal to the keyboard controller when receiving a scan value other than the scan value of the predetermined key .
前記キーマトリックススキャンのスキャン値は、前記キーマトリックスの前記複数の行をスキャンし、
前記キーマトリックススキャンのスキャン値による行番と、前記擬似するキーのスキャン値による行番と、を比較し、
前記キーマトリックススキャンのスキャン値による行番と前記擬似するキーのスキャン値による行番とが一致した時に、前記キーマトリックススキャンのスキャン値による行番を前記所定キーのスキャン値による行番に変換し、
前記キーマトリックススキャンのスキャン値による行番と前記擬似するキーのスキャン値による行番とが一致しない時に、前記キーマトリックススキャンのスキャン値による行番を、前記所定キーのスキャン値による行番以外になるように維持または変換し、
前記キースイッチ部が前記所定キーの列番を出力した時に、前記擬似するキーのスキャン値による列番に変換する請求項1または2に記載のキーボード入力擬制方法。 In the key matrix of the key switch unit, positions of keys are defined by a plurality of rows and a plurality of columns.
The scan values of the key matrix scan scan the plurality of rows of the key matrix,
Comparing the line number of the scan value of the key matrix scan with the line number of the scan value of the simulated key;
When the line number by the scan value of the key matrix scan matches the line number by the scan value of the pseudo key, the line number by the scan value of the key matrix scan is converted to the line number by the scan value of the predetermined key ,
When the line number by the scan value of the key matrix scan and the line number by the scan value of the pseudo key do not match, the line number by the scan value of the key matrix scan is not the line number by the scan value of the predetermined key Maintain or convert to be
The keyboard input imitation control method according to claim 1 or 2, wherein when the key switch unit outputs the column number of the predetermined key, the key switch unit converts it into a column number according to a scan value of the simulated key.
前記キースイッチ部にキーマトリックススキャンのスキャン値を出力するキーボードコントローラと、
入力キーを擬似して入力を行う疑似入力モードの場合、前記キースイッチ部で、所定キーが押し下げられた状態に設定し、前記キーマトリックススキャンのスキャン値と、擬似するキーのスキャン値と、を比較し、前記キーマトリックススキャンのスキャン値と前記擬似するキーのスキャン値とが一致した時に、前記キーマトリックススキャンのスキャン値を所定キーのスキャン値に変換し、前記キーマトリックススキャンのスキャン値と前記擬似するキーのスキャン値とが一致しない時に、前記キーマトリックススキャンのスキャン値を、前記所定キーのスキャン値以外になるように変換する変換回路と、を有し、
前記キースイッチ部は、前記所定キーのスキャン値を受けたときに、前記キーボードコントローラに一致信号を出力し、
前記キースイッチ部は、前記所定キーのスキャン値以外のスキャン値を受けた時に、前記キーボードコントローラに不一致信号を出力することを特徴とするキーボード。 A key switch unit having a key matrix in which a plurality of keys are arranged;
A keyboard controller that outputs scan values of a key matrix scan to the key switch unit;
In the case of the pseudo input mode in which the input key is simulated and input is performed, the key switch unit is set to a state where the predetermined key is depressed, and the scan value of the key matrix scan and the scan value of the simulated key are comparison, when the scanning values of the key to be the pseudo scan values of the key matrix scan match, converts the scanned value before Symbol key matrix scan scanning value of a predetermined key, the scan values of the key matrix scan wherein when the scanning values of the pseudo-key does not coincide, the scanning values before Symbol key matrix scan, have a, a conversion circuit for converting to be other than the scan values of the predetermined key and,
The key switch unit outputs a coincidence signal to the keyboard controller when the scan value of the predetermined key is received.
The keyboard switch, wherein the key switch unit outputs a mismatch signal to the keyboard controller when it receives a scan value other than the scan value of the predetermined key .
前記キーマトリックススキャンのスキャン値は、前記キーマトリックスの前記複数の行をスキャンし、
前記変換回路は、前記キーマトリックススキャンのスキャン値による行番と、前記擬似するキーのスキャン値による行番と、を比較し、前記キーマトリックススキャンのスキャン値による行番と前記擬似するキーのスキャン値による行番とが一致した時に、前記キーマトリックススキャンのスキャン値による行番を前記所定キーのスキャン値による行番に変換し、前記キーマトリックススキャンのスキャン値による行番と前記擬似するキーのスキャン値による行番とが一致しない時に、前記キーマトリックススキャンのスキャン値による行番を、前記所定キーのスキャン値による行番以外になるように維持または変換し、前記キースイッチ部が前記所定キーの列番を出力した時に、前記擬似するキーのスキャン値による列番に変換する請求項7または8に記載のキーボード。 In the key matrix of the key switch unit, positions of keys are defined by a plurality of rows and a plurality of columns.
The scan values of the key matrix scan scan the plurality of rows of the key matrix,
The conversion circuit compares a row number by the scan value of the key matrix scan with a row number by the scan value of the simulated key, and scans the row number by the scan value of the key matrix scan and the simulated key When the line number by the value matches, the line number by the scan value of the key matrix scan is converted to the line number by the scan value of the predetermined key, and the line number by the scan value of the key matrix scan and the simulated key When the line number according to the scan value does not match, the line number according to the scan value of the key matrix scan is maintained or converted to be other than the line number according to the scan value of the predetermined key, and the key switch unit Converting the column number according to the scan value of the simulated key when the column number of the column is output Or keyboard according to 8.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2015063330A JP6540148B2 (en) | 2015-03-25 | 2015-03-25 | Keyboard input imitation method and keyboard |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2015063330A JP6540148B2 (en) | 2015-03-25 | 2015-03-25 | Keyboard input imitation method and keyboard |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2016184240A JP2016184240A (en) | 2016-10-20 |
| JP6540148B2 true JP6540148B2 (en) | 2019-07-10 |
Family
ID=57241955
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2015063330A Expired - Fee Related JP6540148B2 (en) | 2015-03-25 | 2015-03-25 | Keyboard input imitation method and keyboard |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP6540148B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP7298274B2 (en) * | 2019-04-25 | 2023-06-27 | 富士電機株式会社 | emulation switch controller |
| JP7619074B2 (en) * | 2020-08-04 | 2025-01-22 | 富士電機株式会社 | Touchless unit and vending machine system |
Family Cites Families (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6059606B2 (en) * | 1980-06-06 | 1985-12-26 | 株式会社日立製作所 | keyboard input circuit |
| JPS57176459A (en) * | 1981-04-24 | 1982-10-29 | Mitsubishi Electric Corp | Simulator for key switch |
| JPS59123039A (en) * | 1982-12-28 | 1984-07-16 | Canon Inc | key signal generator |
| US4581603A (en) * | 1983-03-11 | 1986-04-08 | The Maxi-Switch Company | Switch matrix key closure validation device and method |
| JPH04205034A (en) * | 1990-11-29 | 1992-07-27 | Oki Electric Ind Co Ltd | Test support apparatus |
| JPH0519929A (en) * | 1991-12-06 | 1993-01-29 | Hitachi Home Tec Ltd | Keyboard switch for electronic oven |
| JPH05216706A (en) * | 1992-01-31 | 1993-08-27 | Nippon Denki Computer Syst Kk | On-line simulation system |
| JPH07253839A (en) * | 1994-03-15 | 1995-10-03 | Oki Electric Ind Co Ltd | Key board and test method for key board controller using it |
-
2015
- 2015-03-25 JP JP2015063330A patent/JP6540148B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2016184240A (en) | 2016-10-20 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP6540148B2 (en) | Keyboard input imitation method and keyboard | |
| CN112306937A (en) | Setting selection circuit, method, apparatus and medium for mainboard device in server | |
| CN101488106A (en) | System with at least two BIOS memory devices | |
| JP2020064624A (en) | Sub-word-unit division method and device, and computer-readable storage medium | |
| WO2009096322A1 (en) | Program test device and program | |
| CN103902213B (en) | A kind of generation method and equipment of Word message | |
| CN107450953B (en) | Method and device for updating BIOS | |
| US7113882B2 (en) | Automatic testing system | |
| CN105446752B (en) | Method, device and mobile terminal for triggering control in application program | |
| JP5304239B2 (en) | Processor test apparatus, processor test method, processor test program | |
| JP2006344076A (en) | Program generating device, program generating method and program | |
| CN102645978A (en) | Simulator capable of simulating keyboard output signal | |
| TW201816552A (en) | Keyboard device | |
| CN101853082A (en) | Method for inputting Chinese Pinyin key signature | |
| JP2018163432A (en) | Automatic correction device | |
| CN101741395B (en) | Encoding method and encoding circuit of a matrix keyboard | |
| CN100407116C (en) | Mouse quick input system and mouse for realizing quick input | |
| WO2006090505A1 (en) | Vehicle quality analysis system and method for managing a plurality of data | |
| US12307022B2 (en) | Method and system for automating keyboards for device testing | |
| CN105320581A (en) | Integrated circuit, verification method and method for generating eigenvalue adjustment code | |
| JP2006268254A (en) | Identification number setting method and coordinate input method | |
| JP2008165324A (en) | Program creation support device | |
| TWI490732B (en) | Simulating device simulating a keyboard | |
| JP7433384B2 (en) | Large touch display integrated circuit and how it works | |
| CN114003431B (en) | A non-4k aligned Trim data verification method, system and device for Nvme solid state drives |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20180115 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20180808 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20180814 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20181009 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20190402 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20190423 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20190514 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20190527 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 6540148 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| LAPS | Cancellation because of no payment of annual fees |