JP2713917B2 - Information processing device - Google Patents

Information processing device

Info

Publication number
JP2713917B2
JP2713917B2 JP62218251A JP21825187A JP2713917B2 JP 2713917 B2 JP2713917 B2 JP 2713917B2 JP 62218251 A JP62218251 A JP 62218251A JP 21825187 A JP21825187 A JP 21825187A JP 2713917 B2 JP2713917 B2 JP 2713917B2
Authority
JP
Japan
Prior art keywords
port
key input
input device
input
answer signal
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
JP62218251A
Other languages
Japanese (ja)
Other versions
JPS6459557A (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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP62218251A priority Critical patent/JP2713917B2/en
Publication of JPS6459557A publication Critical patent/JPS6459557A/en
Priority to US08/007,810 priority patent/US5577257A/en
Application granted granted Critical
Publication of JP2713917B2 publication Critical patent/JP2713917B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、キーボードを接続して使用する情報処理装
置に関するものである。 [従来の技術] 従来、この種の情報処理装置における入力装置、すな
わちキーボード、あるいは操作盤は、該情報処理装置に
対して専用とされており、また装置自信も、専用入力装
置に対してのみ処理の対応がなされているのが常であっ
た。さらに該情報処理装置が数種の入力装置に対して対
応が可能な場合でも、事前に何等かの手段で、該情報処
理装置に対して指示を行ない、その指示された入力装置
を接続し、構成要素として使用する必要があった。 [発明が解決しようとしている問題点] しかしながら、入力装置の中には、出力装置を兼ねた
装置も多い。これは電子タイプライタに代表されるよう
に、キーボード部と、印字部を備えた入出力装置で、情
報処理装置とは、シリアルインターフエイスにおける通
信を介して接続される。一方、通常キーボードのような
入力専用装置は、ポートに直接接続される。 従来例によれば、上記のように前者,後者とも、接続
形態が異なる為、それぞれ専用の処理装置が必要とな
り、ユーザーにとっては常に入力装置の種別を意識し
て、所望のシステムを購入、構成する必要があった。 本発明は、上述従来技術の欠点に鑑みて成されたもの
であって、その目的とする所は、該情報処理装置の入力
手段として、オペレータが所望の入力装置を意識せずに
使用することを可能とする情報処理装置を提供すること
にある。 [問題点を解決するための手段(及び作用)] 上記問題点を解決するために、本発明の情報処理装置
は、複数種のキー入力装置の内の特定のキー入力装置と
夫々接続可能な2つのポートと、前記2つのポートの内
の1つのポートに対して、リクエスト信号を送信するリ
クエスト信号送信手段と、前記ポートを介して前記リク
エスト信号を受信したキー入力装置から送信されるアン
サー信号を、前記ポートを介して受信するアンサー信号
受信手段と、前記アンサー信号の受信の有無を識別する
識別手段と、前記識別手段により前記アンサー信号の受
信が有ったと識別された場合に、前記受信したアンサー
信号の種別に基づいて、前記ポートに正当な種別のキー
入力装置が接続されているか否かを判断する判断手段
と、前記判断手段により前記ポートに正当な種別のキー
入力装置が接続されていると判断された場合に、前記ポ
ートを入力ポートとして設定する設定手段と、前記設定
手段により設定された入力ポートを介して前記キー入力
装置より入力されたキーコードに基づいて、所定の処理
を行う処理手段とを設けた。 上述したような構成によれば、同一の情報処理装置に
おいて、接続形態の異なる数種の入力装置との構成が可
能となり、経済的に有効となると同時に、オペレータが
入力装置の形態種別を意識せずに入力手段として構成
し、動作させることができる。 [実施例] 以下、添付図面に従って本発明に係る一実施例を詳細
に説明する。 第1図は本発明の一実施例を示すブロツク図である。
図中1は、本実施例の主制御を掌るセントラルプロセツ
シングユニツト(以下CPUと称す)であり、バス9を介
して、互いに接続された後述する各構成要素を制御す
る。2はCPU1の第3図(a)(b)に示すフローチヤー
トに従った処理手順を記憶する制御メモリとして用いら
れるリードオンリメモリ(RM)、3はプログラム各
種データの一時記憶として使用されるランダムアクセス
メモリ(RAM)である。4は入力装置としてのキーボー
ドKB6等を接続する為のポート(PORT)である。さらに
5は、入出力装置としての電子タイプライタETW7、出力
装置としてのプリンタPRT8等を接続する為のシリアルイ
ンターフエース通信ポート(RSPRT)である。 以上の構成より成る本実施例の動作を第2図を用いて
以下に説明する。 本実施例においては、電源が投入されると、CPU1の制
御のもとに、RM2内に格納されている入力装置検出処
理が起動し、PORT4にリクエストコードを出力すると、K
B6が接続されている場合には、KB6はアンサーコードを
出力し、PORT4に該当コードが入力される。接続されて
いない場合は、PORT4には、コード入力が得られずタイ
ムアウトする。正しいコードが得られた場合には、正し
いKB6が接続されているとし、コードが得られなかった
場合、あるいは正しいコードが得られなかった場合に
は、KB6は、接続されていないとし、その結果をRAM3内
のKB−FLGに反映させる。次に同じくRM2内のキー入
力処理においては、RAM3内のKB−FLGの値を参照し、KB6
が接続されている場合には、キー入力はPRT4から行
ない、RSPRT5は、出力用のポートとして、通常処理を
行なう。また、KB6が接続されていない場合には、RSPOR
T5に入力装置が接続されているので、キー入力は、RSP
RT5から行ない、同時に出力用のポートとしての処理
も行なう。 次にフローチヤート図を用いてより詳細に説明する。
第3図(A)は、入力装置の検出処理を示している。入
力装置検出処理が起動されると、S11でPORT4にリクエス
トコード:OAHを出力する。これに基づいて、S13ではPOR
T4にKB6のアンサーコードが存在するか否かを問う。存
在しない場合には、S14で、S12に設定されたタイムアウ
ト時間を越えているか否かを判断し、否であればS13に
もどる。S13でコードが存在する場合には、S15にてP
RT4からアンサーコードを入力する。次にS2で、正しい
アンサー識別コードが得られたか否かの判定を行ない、
得られた場合にはKB6がPRT4に接続されているとして
S3でRAM3内のKB−FLGに値OHを保存する。また、得られ
ない場合とS14にてタイムアウトした場合には、PRT4
には何も接続されていないとして同じくKB−FLGに値FFH
を保存し、各々処理を終了する。 キー入力装置は第3図(B)に示される。キー入力処
理においてはS5で、KB−FLGの値を参照し、キー入力取
り込み処理の場合分けがなされる。値がOHであるなら
ば、KB6がPRT4に接続されているので、S6にてPRT
4から入力を行なう。また、値がFFHであるならば、P
RT4には何も接続されておらず、RSPRT5に、ETW7が接
続されている為、S7にてRSPRT5から入力を行なう。S8
で各々の入力結果から、キー入力が得られた場合には、
S9の処理へ、キー入力が得られない場合には、再びS5へ
もどる。S9においては、得られたキーコードの所定の処
理を施し、処理を終了する。 [他の実施例] 本実施例においては、電源投入時に入力装置の接続の
検出処理も動作させたが、特定の指示手段により、該検
出処理を起動させることを可能とすれば、処理途中にお
ける入力装置の変更が可能となる。 また本実施例においては、検出処理として、入力装置
の接続の有無を検出し、キー入力処理の場合分けを行な
ったが、接続された入力装置の種別によって、場合分け
を行なってもよい。例えばPRT4にRSPRT5に接続さ
れたETW7の機能を補うべくして、データの位置指定を行
なう、カーソルパツドが接続されていた場合には、P
RT4,RSPRT5両者からキー入力を得る必要があり、その
ようにキー入力処理を構成することも可能である。 [発明の効果] 以上説明したように、本発明によれば、複数種のキー
入力装置の内の特定のキー入力装置と夫々接続可能な2
つのポートの内の1つのポートに対して、リクエスト信
号を送信し、該ポートを介してリクエスト信号を受信し
たキー入力装置から送信されるアンサー信号を、該ポー
トを介して受信し、アンサー信号の受信の有無を識別
し、アンサー信号の受信が有ったと識別された場合に、
受信したアンサー信号の種別に基づいて、該ポートに正
当な種別のキー入力装置が接続されているか否かを判断
し、該ポートに正当な種別のキー入力装置が接続されて
いると判断された場合に、該ポートを入力ポートとして
設定し、設定された入力ポートを介してキー入力装置よ
り入力されたキーコードに基づいて、所定の処理を行う
ようにしたので、情報処理装置に接続されているキー入
力装置の種別や、そのキー入力装置が接続されているポ
ートを、オペレータが当該装置に特に指示することな
く、また、当該装置内に特殊なハードウエアを設けるこ
となく、当該装置のポートの中から入力ポートとなるべ
きポートを設定するので、複数種のキー入力装置を簡単
に利用することができる。 また、様々な種類のキー入力装置が利用できるので、
入力処理も簡単になるといった効果が得られる。
Description: TECHNICAL FIELD The present invention relates to an information processing apparatus connected to a keyboard for use. [Prior Art] Conventionally, an input device in this type of information processing apparatus, that is, a keyboard or an operation panel is dedicated to the information processing apparatus. There was always a response to the processing. Further, even if the information processing device can respond to several types of input devices, in advance, by any means, give an instruction to the information processing device, connect the specified input device, It had to be used as a component. [Problems to be Solved by the Invention] However, among input devices, there are many devices which also serve as output devices. This is an input / output device having a keyboard unit and a printing unit, as typified by an electronic typewriter. The input / output device is connected to an information processing device via communication in a serial interface. On the other hand, an input-only device such as a keyboard is usually connected directly to the port. According to the conventional example, since the connection form is different between the former and the latter as described above, a dedicated processing device is required, and the user always purchases a desired system while paying attention to the type of the input device. I needed to. The present invention has been made in view of the above-described drawbacks of the related art, and an object thereof is to allow an operator to use a desired input device without being conscious of the input means of the information processing device. It is an object of the present invention to provide an information processing apparatus which enables the information processing. [Means for Solving the Problem (and Action)] To solve the above problem, the information processing apparatus of the present invention can be connected to a specific key input device among a plurality of types of key input devices. Two ports, request signal transmitting means for transmitting a request signal to one of the two ports, and an answer signal transmitted from the key input device which has received the request signal via the port An answer signal receiving unit that receives the answer signal via the port, an identifying unit that identifies whether or not the answer signal has been received, and the receiving unit that determines that the answer signal has been received by the identifying unit. Determining means for determining whether a valid type of key input device is connected to the port based on the type of the answer signal obtained, and Setting means for setting the port as an input port when it is determined that a valid type of key input device is connected to the port, and the key input device via the input port set by the setting means. And processing means for performing a predetermined process based on the key code input by the user. According to the above-described configuration, the same information processing device can be configured with several types of input devices having different connection forms, which is economically effective and at the same time allows the operator to be aware of the type of input device. Instead, it can be configured and operated as input means. Hereinafter, an embodiment according to the present invention will be described in detail with reference to the accompanying drawings. FIG. 1 is a block diagram showing one embodiment of the present invention.
In the figure, reference numeral 1 denotes a central processing unit (hereinafter, referred to as a CPU) which performs a main control of the present embodiment, and controls each component described later connected to each other via a bus 9. Reference numeral 2 denotes a read only memory (RM) used as a control memory for storing processing procedures according to the flowcharts shown in FIGS. 3A and 3B of the CPU 1, and 3 a random used as a temporary storage of various data of the program. Access memory (RAM). Reference numeral 4 denotes a port (PORT) for connecting a keyboard KB6 or the like as an input device. Reference numeral 5 denotes a serial interface communication port (RSPRT) for connecting an electronic typewriter ETW7 as an input / output device and a printer PRT8 as an output device. The operation of the present embodiment having the above configuration will be described below with reference to FIG. In the present embodiment, when the power is turned on, under the control of the CPU 1, the input device detection process stored in the RM2 starts, and when a request code is output to the PORT4,
If B6 is connected, KB6 outputs an answer code, and the corresponding code is input to PORT4. If not connected, PORT4 will not get a code input and will time out. If the correct code is obtained, the correct KB6 is connected.If the code is not obtained, or if the correct code is not obtained, the KB6 is not connected, and as a result, Is reflected in KB-FLG in RAM3. Next, in the key input process in RM2, the value of KB-FLG in RAM3 is referred to
Is connected, key input is performed from PRT4, and RSPRT5 performs normal processing as an output port. If KB6 is not connected, RSPOR
Since an input device is connected to T5, key input is RSP
The processing is performed from RT5, and at the same time, processing as an output port is performed. Next, a more detailed description will be given using a flowchart.
FIG. 3A shows a process of detecting an input device. When the input device detecting process is started, the request code to S11 in PORT4: outputting the OA H. Based on this, POR in S13
Ask if there is a KB6 answer code in T4. If it does not exist, it is determined in S14 whether or not the timeout period set in S12 has been exceeded, and if not, the process returns to S13. If a code exists in S13, P
Enter the answer code from RT4. Next, in S2, it is determined whether or not a correct answer identification code has been obtained.
If it is obtained, KB6 is connected to PRT4
S3 In stores the value O H in KB-FLG in RAM 3. In addition, if it cannot be obtained and if the timeout occurs in S14, PRT4
Is also connected to the KB-FLG and the value FF H
Is stored, and the process is terminated. The key input device is shown in FIG. In the key input process, the value of the KB-FLG is referred to in S5, and the case of the key input capturing process is classified. If the value is O H, since KB6 is connected to PRT4, PRT at S6
Input from 4. Also, if the value is FF H , P
Since nothing is connected to RT4 and ETW7 is connected to RSPRT5, input is made from RSPRT5 in S7. S8
When key input is obtained from each input result,
If the key input is not obtained in the process of S9, the process returns to S5. In S9, a predetermined process for the obtained key code is performed, and the process ends. [Other Embodiments] In this embodiment, the process of detecting the connection of the input device is also activated when the power is turned on. However, if it is possible to activate the detection process by a specific instruction means, the process during the process may be performed. The input device can be changed. Further, in the present embodiment, as the detection processing, the presence or absence of the connection of the input device is detected, and the case of the key input processing is performed. However, the case may be performed according to the type of the connected input device. For example, in order to supplement the function of ETW7 connected to RSPRT5 to PRT4, data position is specified.
It is necessary to obtain a key input from both RT4 and RSPRT5, and it is also possible to configure the key input processing as such. [Effects of the Invention] As described above, according to the present invention, two types of key input devices that can be connected to specific key input devices among a plurality of types of key input devices, respectively.
A request signal is transmitted to one of the ports, an answer signal transmitted from the key input device that has received the request signal through the port is received through the port, and an answer signal Identify the presence or absence of reception, if it is determined that the answer signal has been received,
Based on the type of the received answer signal, it is determined whether a valid key input device is connected to the port, and it is determined that a valid key input device is connected to the port. In this case, the port is set as an input port, and a predetermined process is performed based on a key code input from a key input device through the set input port. The type of the key input device, the port to which the key input device is connected, and the port of the device without the operator instructing the device in particular and without providing special hardware in the device. Since a port to be used as an input port is set from among the above, a plurality of types of key input devices can be easily used. Also, since various types of key input devices can be used,
The effect that input processing becomes easy is acquired.

【図面の簡単な説明】 第1図は、本発明を実施した情報処理装置のブロツク
図、 第2図は、本実施例の動作概略を示す図、 第3図(A)は、入力装置検出処理を示すフローチヤー
ト図、 第3図(B)は、キー入力処理を示すフローチヤート図
である。 1……中央処理装置(CPU) 2……リードオンリメモリ(RM) 3……ランダムアクセスメモリ(RAM) 4……ポート(PRT) 5……シリアルインターフエース通信ポート(RSPR
T) 6……キーボード(KB) 7……電子タイプライタ(ETW) 8……プリンタ(PRT)
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram of an information processing apparatus embodying the present invention, FIG. 2 is a diagram schematically showing the operation of the present embodiment, and FIG. FIG. 3 (B) is a flowchart showing key input processing. 1 Central processing unit (CPU) 2 Read-only memory (RM) 3 Random access memory (RAM) 4 Port (PRT) 5 Serial interface communication port (RSPR)
T) 6 Keyboard (KB) 7 Electronic typewriter (ETW) 8 Printer (PRT)

Claims (1)

(57)【特許請求の範囲】 1.複数種のキー入力装置の内の特定のキー入力装置と
夫々接続可能な2つのポートと、前記2つのポートの内
の1つのポートに対して、リクエスト信号を送信するリ
クエスト信号送信手段と、 前記ポートを介して前記リクエスト信号を受信したキー
入力装置から送信されるアンサー信号を、前記ポートを
介して受信するアンサー信号受信手段と、 前記アンサー信号の受信の有無を識別する識別手段と、 前記識別手段により前記アンサー信号の受信が有ったと
識別された場合に、前記受信したアンサー信号の種別に
基づいて、前記ポートに正当な種別のキー入力装置が接
続されているか否かを判断する判断手段と、 前記判断手段により前記ポートに正当な識別のキー入力
装置が接続されていると判断された場合に、前記ポート
を入力ポートとして設定する設定手段と、 前記設定手段により設定された入力ポートを介して前記
キー入力装置より入力されたキーコードに基づいて、所
定の処理を行う処理手段と を備えたことを特徴とする情報処理装置。 2.2つのポートの一つが、シリアルインターフェース
における通信入出力ポートであることを特徴とする特許
請求の範囲第1項記載の情報処理装置。
(57) [Claims] Two ports that can be respectively connected to a specific key input device of a plurality of types of key input devices, request signal transmitting means for transmitting a request signal to one of the two ports, Answer signal receiving means for receiving, via the port, an answer signal transmitted from the key input device which has received the request signal via a port; identifying means for identifying whether or not the answer signal has been received; Means for determining whether or not a valid type of key input device is connected to the port based on the type of the received answer signal when the means has identified that the answer signal has been received. When the determination unit determines that a key input device of valid identification is connected to the port, the port is set as an input port. Information comprising: a setting unit configured to perform a predetermined process based on a key code input from the key input device via an input port set by the setting unit. Processing equipment. 2. The information processing apparatus according to claim 1, wherein one of the two ports is a communication input / output port in a serial interface.
JP62218251A 1987-08-27 1987-08-31 Information processing device Expired - Fee Related JP2713917B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP62218251A JP2713917B2 (en) 1987-08-31 1987-08-31 Information processing device
US08/007,810 US5577257A (en) 1987-08-27 1993-01-22 Information processing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62218251A JP2713917B2 (en) 1987-08-31 1987-08-31 Information processing device

Publications (2)

Publication Number Publication Date
JPS6459557A JPS6459557A (en) 1989-03-07
JP2713917B2 true JP2713917B2 (en) 1998-02-16

Family

ID=16716960

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62218251A Expired - Fee Related JP2713917B2 (en) 1987-08-27 1987-08-31 Information processing device

Country Status (1)

Country Link
JP (1) JP2713917B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5779540A (en) * 1980-11-04 1982-05-18 Hitachi Ltd Automatic connection system for input and output equipment
JPS57178523A (en) * 1981-04-28 1982-11-02 Mitsubishi Electric Corp Terminal controller
JPS6059459A (en) * 1983-09-12 1985-04-05 Matsushita Electric Ind Co Ltd Information processor

Also Published As

Publication number Publication date
JPS6459557A (en) 1989-03-07

Similar Documents

Publication Publication Date Title
EP0106153A2 (en) A repeat control apparatus for a serial interface keyboard apparatus
JP2713917B2 (en) Information processing device
JPS6153749B2 (en)
JPH11164466A (en) Maintenance tool for protective relay device
JP3269406B2 (en) Peripheral device switching method
JPH0553965A (en) Electronic computer system
JPH05282244A (en) Information processor
JP2627508B2 (en) Interrupt processing device
JPH0553966A (en) Electronic computer system
JPS61221855A (en) Control system for transmission error
JPS61173363A (en) Input device control system
JPH07182261A (en) Information processor
JPH0754496B2 (en) Information processing system
JPS59139424A (en) Remote initializing system
JPS6351742A (en) Polling control system
JPS62192451U (en)
JPS63139763A (en) Portable terminal device
JPH0765078A (en) Commodity sales data processor
JPS6055463A (en) Multiprocessor system
JPS63209267A (en) Facsimile equipment
JPH0145660B2 (en)
JPH04120646A (en) Initializing system
JPH07182081A (en) Extension board kind recognition system and slot position recognition system
JPH03268538A (en) Method of registering address of terminal equipment
JPS5830616B2 (en) In-progress judgment information creation method for terminal processing in totalizer system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees