JPH09305520A - Device state establishing method for peripheral device - Google Patents

Device state establishing method for peripheral device

Info

Publication number
JPH09305520A
JPH09305520A JP8120483A JP12048396A JPH09305520A JP H09305520 A JPH09305520 A JP H09305520A JP 8120483 A JP8120483 A JP 8120483A JP 12048396 A JP12048396 A JP 12048396A JP H09305520 A JPH09305520 A JP H09305520A
Authority
JP
Japan
Prior art keywords
parallel port
state
peripheral device
port interface
device state
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.)
Pending
Application number
JP8120483A
Other languages
Japanese (ja)
Inventor
Akihiko Bani
昭彦 番井
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.)
PFU Ltd
Original Assignee
PFU 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 PFU Ltd filed Critical PFU Ltd
Priority to JP8120483A priority Critical patent/JPH09305520A/en
Publication of JPH09305520A publication Critical patent/JPH09305520A/en
Pending legal-status Critical Current

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PROBLEM TO BE SOLVED: To always report the proper device state of a peripheral device to a user by establishing the device state of the peripheral device after no change in the state of a parallel port interface control signal for a prescribed period is monitored. SOLUTION: A data transfer control part 7 of a parallel port control signal 6 performs the hand shake of data transfer of a parallel port interface. Besides, a device state monitor part 8 monitors the timer interruption and the state change interruption of the parallel port interface control signal for prescribed time so that the stabilization of device state of the peripheral device is waited. Corresponding to the combination of SLCT, PE, *FAULT and BUSY as one part of the parallel port interface control signal, a device state discriminating part 9 establishes the device state of the peripheral device such as on-line, off-line, error generation and power supply stop and reports the device state to the user.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、ホスト装置と周辺
装置をパラレルポート・インタフェースにより接続する
システムにおける周辺装置の装置状態確定方法に関する
ものであり、特に常に正しい周辺装置の装置状態を確定
して、常に正しい周辺装置の装置状態をユーザに通知す
ることができるようにする。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for determining a device state of a peripheral device in a system in which a host device and a peripheral device are connected by a parallel port interface, and more particularly, to always determine a correct device state of the peripheral device. , Always be able to inform the user of the correct peripheral device status.

【0002】[0002]

【従来の技術】図5に、従来の周辺装置の装置状態確定
処理ブロック図を示す。図中、1はホスト装置、2はホ
スト装置1と周辺装置3を接続するためのインタフェー
スの1つであるパラレルポート・インタフェースを制御
するパラレルポート制御装置、3はパラレルポート・イ
ンタフェースを持つプリンタ装置およびスキャナ装置な
どの周辺装置である。4、5はパラレルポート・インタ
フェース信号線の一部であり、4はデータ線、5はSL
CT、PE、*FAULT、BUSYなどの信号線を示
す。
2. Description of the Related Art FIG. 5 shows a block diagram of a conventional device state confirmation processing of a peripheral device. In the figure, 1 is a host device, 2 is a parallel port control device for controlling a parallel port interface which is one of the interfaces for connecting the host device 1 and the peripheral device 3, and 3 is a printer device having a parallel port interface. And peripheral devices such as a scanner device. 4, 5 are a part of the parallel port interface signal lines, 4 are data lines, 5 is SL
Signal lines such as CT, PE, * FAULT and BUSY are shown.

【0003】56はパラレルポート制御処理部であり、
アプリケーションプログラムがプリンタ装置への印刷要
求またはスキャナ装置からのイメージデータの読取り要
求など、周辺装置3にアクセスしたとき、パラレルポー
ト制御装置2を制御して周辺装置3に対するデータ転送
処理を行うオペレーティングシステムの一処理部であ
る。
Reference numeral 56 is a parallel port control processing unit,
When the application program accesses the peripheral device 3 such as a print request to the printer device or a read request of image data from the scanner device, the operating system controls the parallel port control device 2 to perform data transfer processing to the peripheral device 3. One processing unit.

【0004】パラレルポート制御処理部56は、パラレ
ルポート・インタフェースのデータ転送のハンドシェイ
クを行うデータ転送制御部57と、SLCT、PE、*
FAULT、BUSYなどの一部のパラレルポート・イ
ンタフェース制御信号の組み合せにより、オンライン、
オフライン、エラー発生、電源断などの周辺装置の装置
状態を確定し、装置状態をユーザに通知する装置状態判
定部59とで構成される。
The parallel port control processing unit 56 includes a data transfer control unit 57 for performing a handshake for data transfer of the parallel port interface, SLCT, PE, *.
Online by combining some parallel port interface control signals such as FAULT and BUSY
The device state determination unit 59 is configured to determine the device state of the peripheral device such as offline, error occurrence, power off, and notify the user of the device state.

【0005】図3は、従来の周辺装置の装置状態確定処
理フローチャートである。装置状態確定処理は、アプリ
ケーションプログラムがプリンタ装置への印刷要求また
はスキャナ装置からのイメージデータの読取り要求を行
ったとき、データ転送処理に先立ちプリンタ装置やスキ
ャナ装置が動作可能状態か確認するために実行される。
また、印刷要求や読取り要求が正常に完了したかを確認
するときなどにも実行される。
FIG. 3 is a flow chart of a device state confirmation process of a conventional peripheral device. The device status confirmation process is executed to confirm whether the printer device or scanner device is in an operable state prior to the data transfer process when the application program issues a print request to the printer device or an image data read request from the scanner device. To be done.
It is also executed when confirming whether the print request or the read request is normally completed.

【0006】以下、このフローチャートに従って動作の
説明を示す。
The operation will be described below with reference to this flowchart.

【0007】ステップS301は、装置状態判定部59
により、SLCT、PE、*FAULT、BUSYなど
のパラレルポート・インタフェース制御信号を読取り、
オンライン、オフライン、エラー発生、電源断などの周
辺装置の装置状態の確定を行う。
In step S301, the device state determination unit 59
Read the parallel port interface control signals such as SLCT, PE, * FAULT, BUSY,
Confirm the device status of peripheral devices such as online, offline, error occurrence, power off.

【0008】[0008]

【発明が解決しようとする課題】しかしながら、図3に
示す従来技術は周辺装置3の装置状態の確定が正しく行
われないことがあった。図4に装置状態の確定が正しく
行われないタイミングを示す。
However, in the conventional technique shown in FIG. 3, the device state of the peripheral device 3 may not be correctly determined. FIG. 4 shows the timing when the device state is not correctly determined.

【0009】図4は周辺装置が電源断時のパラレルポー
ト・インタフェース制御信号のタイミングチャート例で
あり、周辺装置3が正常動作可能状態の場合、パラレル
ポート・インタフェース制御信号の一部であるSLC
T、PE、*FAULT、BUSY信号は、SLCTは
H、PEはL、*FAULTはH、BUSYはLの状態
である。この時、誤って周辺装置3の電源コンセントが
抜かれた場合などには、SLCT、PE、*FAUL
T、BUSY信号は所定時間tの間、不定の状態とな
る。その後、SLCT、PE、*FAULT、BUSY
信号は、SLCTはL、PEはL、*FAULTはL、
BUSYはLの状態となる。
FIG. 4 is an example of a timing chart of the parallel port interface control signal when the peripheral device is powered off. When the peripheral device 3 is in the normal operation state, it is a part of the parallel port interface control signal SLC.
The T, PE, * FAULT, and BUSY signals are in the states of SLCT being H, PE being L, * FAULT being H, and BUSY being L. At this time, if the power outlet of the peripheral device 3 is accidentally unplugged, SLCT, PE, * FAUL
The T and BUSY signals are in an indefinite state for a predetermined time t. After that, SLCT, PE, * FAULT, BUSY
Signals are L for SLCT, L for PE, * FAULT for L,
BUSY is in the L state.

【0010】SLCT、PE、*FAULT、BUSY
信号が不定の所定時間tの間に周辺装置の装置状態確定
処理が行われた場合、誤った周辺装置の装置状態確定処
理が行われ、誤った周辺装置の装置状態をユーザに通知
することになる。
SLCT, PE, * FAULT, BUSY
When the device state confirmation process of the peripheral device is performed during the predetermined time t when the signal is indefinite, the device state confirmation process of the incorrect peripheral device is performed, and the user is notified of the incorrect device state of the peripheral device. Become.

【0011】すなわち、周辺装置3に電源断などが発生
した直後に、周辺装置の装置状態確定処理が行われる
と、誤った周辺装置の装置状態をユーザに通知するとい
う問題点があった。
That is, if the peripheral device's device state determination process is performed immediately after the peripheral device 3 is powered off, there is a problem that the incorrect peripheral device state is notified to the user.

【0012】[0012]

【課題を解決するための手段】本発明は上記のような問
題点を考慮してなされたもので、ホスト装置1と周辺装
置3をパラレルポート・インタフェースにより接続する
システムにおいて、パラレルポート・インタフェース制
御信号の状態が所定の期間変化がないことを監視後、周
辺装置3の装置状態を確定することにより、常に正しい
周辺装置3の装置状態を確定することが可能となる周辺
装置の装置状態確定方法を提供する。
SUMMARY OF THE INVENTION The present invention has been made in consideration of the above problems, and in a system in which a host device 1 and a peripheral device 3 are connected by a parallel port interface, parallel port interface control is performed. A method for determining a device state of a peripheral device in which the correct device state of the peripheral device 3 can be always determined by determining the device state of the peripheral device 3 after monitoring that the signal state has not changed for a predetermined period. I will provide a.

【0013】[0013]

【発明の実施の形態】本発明は、ホスト装置1と周辺装
置3をパラレルポート・インタフェースにより接続する
システムにおいて、パラレルポート・インタフェース制
御信号の状態が所定の期間変化がないことを監視後、周
辺装置3の装置状態を確定することにより、常に正しい
周辺装置3の装置状態を確定することが可能となる。
BEST MODE FOR CARRYING OUT THE INVENTION According to the present invention, in a system in which a host device 1 and a peripheral device 3 are connected via a parallel port interface, the peripheral port interface control signal is monitored for a predetermined period of time and then the peripheral device is monitored. By determining the device state of the device 3, it is possible to always determine the correct device state of the peripheral device 3.

【0014】[0014]

【実施例】以下、実施例に従ってこの発明を詳細に説明
する。
The present invention will be described in detail below with reference to examples.

【0015】図1に、本発明の周辺装置の装置状態確定
処理ブロック図を示す。図中、1から5までは図5と同
じであり、ここでの説明は省略する。6はパラレルポー
ト制御処理部であり、アプリケーションプログラムがプ
リンタ装置への印刷要求またはスキャナ装置からのイメ
ージデータの読取り要求など、周辺装置3にアクセスし
たとき、パラレルポート制御装置2を制御して周辺装置
3に対するデータ転送処理を行うオペレーティングシス
テムの一処理部である。
FIG. 1 is a block diagram of a device state confirmation processing of the peripheral device of the present invention. In the figure, 1 to 5 are the same as those in FIG. 5, and the description thereof is omitted here. A parallel port control processing unit 6 controls the parallel port control device 2 when the application program accesses the peripheral device 3 such as a print request to the printer device or a read request of image data from the scanner device. 3 is a processing unit of an operating system that performs a data transfer process for the data.

【0016】パラレルポート制御処理部6は、パラレル
ポート・インタフェースのデータ転送のハンドシェイク
を行うデータ転送制御部7と、タイマ割込みとパラレル
ポート・インタフェース制御信号の状態変化割込みを所
定時間の間監視することにより、周辺装置の装置状態が
安定するのを待つ装置状態監視部8と、パラレルポート
・インタフェース制御信号の一部であるSLCT、P
E、*FAULT、BUSYの組み合せにより、オンラ
イン、オフライン、エラー発生、電源断などの周辺装置
の装置状態を確定し、装置状態をユーザに通知する装置
状態判定部9とで構成される。
The parallel port control processing unit 6 monitors the data transfer control unit 7 which performs a handshake for data transfer of the parallel port interface, the timer interrupt and the state change interrupt of the parallel port interface control signal for a predetermined time. As a result, the device state monitoring unit 8 that waits for the device state of the peripheral device to stabilize, and SLCT and P that are part of the parallel port interface control signal.
A combination of E, * FAULT, and BUSY configures the device status of the peripheral device such as online, offline, error occurrence, power off, etc. and notifies the user of the device status.

【0017】図2は、本発明の周辺装置の装置状態確定
処理フローチャートである。以下、このフローチャート
に従って動作を説明する。
FIG. 2 is a flow chart of the device state confirmation processing of the peripheral device of the present invention. Hereinafter, the operation will be described with reference to this flowchart.

【0018】ステップS201からステップS204ま
では、装置状態監視部8により処理され、ステップS2
05は装置状態判定部9により処理される。
From step S201 to step S204, processing is performed by the device state monitoring unit 8, and step S2
05 is processed by the device state determination unit 9.

【0019】まず、ステップS201は、パラレルポー
ト・インタフェース制御信号の状態変化を監視する時間
を設定したタイマ割込みの登録を行う。状態変化を監視
する時間は周辺装置の電源断などによりパラレルポート
・インタフェース制御信号が不定になる所定時間tより
大きな値に設定される。
First, in step S201, a timer interrupt in which a time for monitoring the state change of the parallel port interface control signal is set is registered. The time for monitoring the state change is set to a value larger than a predetermined time t during which the parallel port interface control signal becomes indefinite due to power failure of the peripheral device or the like.

【0020】ステップS202は、パラレルポート制御
装置2をタイマ割込みとパラレルポート・インタフェー
ス制御信号の状態変化割込みが許可される割込み許可状
態に設定する。
A step S202 sets the parallel port control device 2 in an interrupt enable state in which a timer interrupt and a parallel port interface control signal state change interrupt are permitted.

【0021】ステップS203は、タイマ割込み、また
はパラレルポート・インタフェース制御信号の状態変化
割込みが発生するのを待つ。
A step S203 waits for generation of a timer interrupt or a parallel port interface control signal state change interrupt.

【0022】ステップS204は、ステップS203で
発生した割込みがタイマ割込みか判定する。タイマ割込
みならば、ステップS205に進む。タイマ割込みでな
ければ、パラレルポート・インタフェース制御信号の状
態変化を監視する時間内に状態変化があったことにな
り、再度パラレルポート・インタフェース制御信号の状
態変化を監視するためステップS201に戻る。
A step S204 decides whether the interrupt generated in the step S203 is a timer interrupt. If it is a timer interrupt, the process proceeds to step S205. If it is not a timer interrupt, it means that there is a state change within the time for monitoring the state change of the parallel port interface control signal, and the process returns to step S201 to monitor the state change of the parallel port interface control signal again.

【0023】ステップS205は、装置状態判定部9に
より、SLCT、PE、*FAULT、BUSYのパラ
レルポート・インタフェース制御信号を読取り、オンラ
イン、オフライン、エラー発生、電源断などの装置状態
の確定を行う。
In step S205, the device state determination unit 9 reads the parallel port interface control signals of SLCT, PE, * FAULT, and BUSY, and determines the device state such as online, offline, error occurrence, power off.

【0024】[0024]

【発明の効果】この発明は、上記に説明したような形態
で実施され、以下の効果がある。
The present invention is embodied in the form described above, and has the following effects.

【0025】ホスト装置と周辺装置をパラレルポート・
インタフェースにより接続するシステムにおいて、パラ
レルポート・インタフェース制御信号の状態が所定の期
間変化がないことを監視後、周辺装置の装置状態を確定
することにより、常に正しい周辺装置の装置状態をユー
ザに通知することが可能となる。
A parallel port between the host device and the peripheral device
In a system connected by an interface, after monitoring that the state of the parallel port interface control signal has not changed for a predetermined period, by fixing the device state of the peripheral device, the correct device state of the peripheral device is always notified to the user. It becomes possible.

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

【図1】 本発明の周辺装置の装置状態確定処理ブロッ
ク図である。
FIG. 1 is a block diagram of a device state confirmation process of a peripheral device of the present invention.

【図2】 本発明の周辺装置の装置状態確定処理フロー
チャートである。
FIG. 2 is a flowchart of a device state confirmation process of a peripheral device of the present invention.

【図3】 従来の周辺装置の装置状態確定処理フローチ
ャートである。
FIG. 3 is a flowchart of a device state confirmation process of a conventional peripheral device.

【図4】 周辺装置が電源断時のパラレルポート・イン
タフェース制御信号のタイミングチャート例である。
FIG. 4 is a timing chart example of a parallel port interface control signal when the peripheral device is powered off.

【図5】 従来の周辺装置の装置状態確定処理ブロック
図である。
FIG. 5 is a block diagram of a device state determination process of a conventional peripheral device.

【符号の説明】[Explanation of symbols]

1 ホスト装置 3 周辺装置 1 Host device 3 Peripheral device

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 ホスト装置(1)と周辺装置(3)をパ
ラレルポート・インタフェースにより接続するシステム
において、パラレルポート・インタフェース制御信号の
状態が所定の期間変化がないことを監視後、周辺装置
(3)の装置状態を確定することを特徴とする周辺装置
の装置状態確定方法。
1. A system in which a host device (1) and a peripheral device (3) are connected by a parallel port interface, and after monitoring that the state of a parallel port interface control signal has not changed for a predetermined period, the peripheral device ( 3) A method for determining a device state of a peripheral device, which comprises determining the device state.
JP8120483A 1996-05-15 1996-05-15 Device state establishing method for peripheral device Pending JPH09305520A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8120483A JPH09305520A (en) 1996-05-15 1996-05-15 Device state establishing method for peripheral device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8120483A JPH09305520A (en) 1996-05-15 1996-05-15 Device state establishing method for peripheral device

Publications (1)

Publication Number Publication Date
JPH09305520A true JPH09305520A (en) 1997-11-28

Family

ID=14787303

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8120483A Pending JPH09305520A (en) 1996-05-15 1996-05-15 Device state establishing method for peripheral device

Country Status (1)

Country Link
JP (1) JPH09305520A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100406967B1 (en) * 1998-12-11 2004-03-26 엘지전자 주식회사 Parallel Port Multiple Input Expansion Unit
US6931469B2 (en) 2001-03-21 2005-08-16 Nec Corporation 40/80-core cable discriminating method and system performing exact discrimination although master and slave storage apparatuses are connected host

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100406967B1 (en) * 1998-12-11 2004-03-26 엘지전자 주식회사 Parallel Port Multiple Input Expansion Unit
US6931469B2 (en) 2001-03-21 2005-08-16 Nec Corporation 40/80-core cable discriminating method and system performing exact discrimination although master and slave storage apparatuses are connected host

Similar Documents

Publication Publication Date Title
KR20000005762A (en) Power monitoring method for a printer, power monitoring apparatus and information recording medium
JP2004157604A (en) Usb peripheral control method and device
JP2002287936A (en) Printer, data processor, print system, printer control method, data processor processing method and program, data processing program, and recording medium storing program
JP2004302632A (en) Computer processing method, execution system therefor and processing program therefor
TWI726550B (en) Method of providing power in standby phase
CN104349001B (en) Information processor and its control method
JPH09305520A (en) Device state establishing method for peripheral device
JPH10307635A (en) Computer system and temperature monitoring method applied to the same system
JP2007316717A (en) Electric power source controller, and method therefor
US20030065972A1 (en) Method and system for managing subject device through network and information processing system performing management
JP2000013543A (en) Communication system
JP2003032885A (en) Method and device for power control
JPH10207586A (en) Power-off control system for computer
JP2004130561A (en) Image processor
JP2000148544A (en) Dump output system
JPH06124145A (en) Control system for uninterruptive power unit
JP2018130910A (en) Image forming device having power-saving mode, and control method and program thereof
JPH01205321A (en) Type discrimination method for printer device and connection printer device including printer device
JPH11277847A (en) Spooler monitoring device
JP2886674B2 (en) Line monitoring device and line monitoring method using the same
JPH06119087A (en) Power supply off system
JP2531831B2 (en) Network network communication status monitoring device
JPH0647992A (en) Printer apparatus
JPS5999515A (en) Automatic power source control system
JPH0343653B2 (en)