[go: up one dir, main page]

JP2019016333A - Information processing apparatus, information processing method, program, and image processing system - Google Patents

Information processing apparatus, information processing method, program, and image processing system Download PDF

Info

Publication number
JP2019016333A
JP2019016333A JP2017155653A JP2017155653A JP2019016333A JP 2019016333 A JP2019016333 A JP 2019016333A JP 2017155653 A JP2017155653 A JP 2017155653A JP 2017155653 A JP2017155653 A JP 2017155653A JP 2019016333 A JP2019016333 A JP 2019016333A
Authority
JP
Japan
Prior art keywords
information
identification information
request
response
processing apparatus
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.)
Granted
Application number
JP2017155653A
Other languages
Japanese (ja)
Other versions
JP6911622B2 (en
Inventor
和弘 宮部
Kazuhiro Miyabe
和弘 宮部
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to US16/007,346 priority Critical patent/US10452326B2/en
Publication of JP2019016333A publication Critical patent/JP2019016333A/en
Application granted granted Critical
Publication of JP6911622B2 publication Critical patent/JP6911622B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Computer And Data Communications (AREA)

Abstract

To prevent, even when two-way communication between a printer and a computer device is performed in a nonsynchronous manner, inconvenience where an information processing apparatus acquires equipment information different from equipment information to be acquired.SOLUTION: A computer device comprises: a cache of a spooler 36 that stores response data acquired from a printer 2 and a request ID for the response data in association with each other; request means (S11) that requests the response data; notification means (S32) that, in response to the request from the request means, notifies determination means of the response data and request ID stored in the cache; and the determination means (S33) that determines whether to acquire state information stored in the cache on the basis of the request ID notified by the notification means.SELECTED DRAWING: Figure 8

Description

本発明は、情報処理装置、情報処理方法、プログラム、及び画像処理システムに関する。   The present invention relates to an information processing apparatus, an information processing method, a program, and an image processing system.

取得要求を画像処理装置(被制御装置の一種)に送信することで、画像処理装置の状態を示す状態情報を画像処理装置から取得する情報処理装置が知られている。特許文献1には、画像処理装置の状態情報を非同期の双方向通信で取得する情報処理装置が記載されている。
この情報処理装置において、画像処理装置の状態が変更されると当該画像処理装置では状態情報が更新されるが、双方向通信が非同期で行われることから、状態情報が更新される前に情報処理装置による状態情報の取得が行われてしまう場合がある。
この場合、取得すべき状態情報とは異なる状態情報が情報処理装置に取得されてしまう不都合が生じ得る。
There is known an information processing apparatus that acquires state information indicating a state of an image processing apparatus from the image processing apparatus by transmitting an acquisition request to the image processing apparatus (a type of controlled apparatus). Patent Document 1 describes an information processing apparatus that acquires state information of an image processing apparatus by asynchronous two-way communication.
In this information processing apparatus, when the state of the image processing apparatus is changed, the state information is updated in the image processing apparatus. However, since bidirectional communication is performed asynchronously, the information processing is performed before the state information is updated. Status information may be acquired by the device.
In this case, there may be a problem that the information processing apparatus acquires state information different from the state information to be acquired.

本発明は、上述の事情に鑑みてなされたものであり、その目的は、画像処理装置と情報処理装置との双方向通信が非同期で行われても、取得すべき状態情報とは異なる状態情報が情報処理装置に取得されてしまう不都合を抑制することにある。   The present invention has been made in view of the above-described circumstances, and an object thereof is state information different from state information to be acquired even if bidirectional communication between the image processing apparatus and the information processing apparatus is performed asynchronously. Is to suppress the inconvenience of being acquired by the information processing apparatus.

上記課題を解決するために、請求項1記載の発明は、画像処理装置の状態を示す状態情報を取得する情報処理装置であって、前記画像処理装置から取得した前記状態情報と当該状態情報の識別情報とを対応付けて記憶する記憶手段と、前記状態情報を要求する要求手段と、前記記憶手段に記憶された前記状態情報と前記識別情報とを、前記要求手段による要求に応じて通知する通知手段と、前記通知手段によって通知された前記識別情報に基づいて、前記記憶手段に記憶された前記状態情報を取得するか否かを判断する判断手段と、を備えることを特徴とする。   In order to solve the above-described problem, an invention according to claim 1 is an information processing apparatus that acquires state information indicating a state of an image processing apparatus, the state information acquired from the image processing apparatus and the state information In response to a request by the request unit, a storage unit that stores the identification information in association with each other, a request unit that requests the state information, and the state information and the identification information that are stored in the storage unit It is characterized by comprising: a notifying means; and a judging means for judging whether or not to acquire the status information stored in the storage means based on the identification information notified by the notifying means.

本発明によれば、被制御装置と情報処理装置との双方向通信が非同期で行われても、取得すべき状態情報とは異なる状態情報が情報処理装置に取得されてしまう不都合を抑制できる。   ADVANTAGE OF THE INVENTION According to this invention, even if the bidirectional | two-way communication of a to-be-controlled device and information processing apparatus is performed asynchronously, the inconvenience that the status information different from the status information which should be acquired will be acquired by the information processing apparatus can be suppressed.

本発明の一実施形態に係る印刷システムの全体構成図である。1 is an overall configuration diagram of a printing system according to an embodiment of the present invention. 本発明の一実施形態に係る印刷システムが有するコンピュータ装置のハードウェア構成図である。It is a hardware block diagram of the computer apparatus which the printing system which concerns on one Embodiment of this invention has. 本発明の一実施形態に係る印刷システムが有するプリンタのハードウェア構成図である。1 is a hardware configuration diagram of a printer included in a printing system according to an embodiment of the present invention. 本発明の第1実施形態に係るコンピュータ装置の機能ブロック図である。It is a functional block diagram of the computer apparatus concerning 1st Embodiment of this invention. 非同期の双方向通信における比較例のシーケンスを説明する図である。It is a figure explaining the sequence of the comparative example in asynchronous two-way communication. 双方向通信を実行可能なユーザインタフェースの表示例を説明する図である。It is a figure explaining the example of a display of the user interface which can perform bi-directional communication. 双方向通信を実行可能なユーザインタフェースの他の表示例を説明する図である。It is a figure explaining the other example of a display of the user interface which can perform bi-directional communication. 本発明の第1実施形態に係る機器情報の取得シーケンスを説明する図である。It is a figure explaining the acquisition sequence of the apparatus information which concerns on 1st Embodiment of this invention. リクエストIDの一例を説明する図である。It is a figure explaining an example of request ID. 機器情報(レスポンスデータ)の一例を説明する図である。It is a figure explaining an example of apparatus information (response data). 取得した機器情報の表示例を説明する図である。It is a figure explaining the example of a display of the acquired apparatus information. 本発明の第2実施形態に係るコンピュータ装置の機能ブロック図である。It is a functional block diagram of the computer apparatus concerning 2nd Embodiment of this invention. 本発明の第2実施形態に係る機器情報の取得シーケンスを説明する図である。It is a figure explaining the acquisition sequence of the equipment information concerning a 2nd embodiment of the present invention.

以下、本発明を図面に示した実施の形態により詳細に説明する。但し、この実施形態に記載される構成要素、種類、組み合わせ、形状、その相対配置などは特定的な記載がない限り、この発明の範囲をそれのみに限定する主旨ではなく単なる説明例に過ぎない。   Hereinafter, the present invention will be described in detail with reference to embodiments shown in the drawings. However, the components, types, combinations, shapes, relative arrangements, and the like described in this embodiment are merely illustrative examples and not intended to limit the scope of the present invention only unless otherwise specified. .

<印刷システムの構成>
図1は、本発明の一実施形態に係る印刷システム10の全体構成図である。図2は、本発明の一実施形態に係る印刷システム10が有するコンピュータ装置1のハードウェア構成図である。図3は、本発明の一実施形態に係る印刷システム10が有するプリンタ2のハードウェア構成図である。
図1に例示する印刷システム10は、情報処理システム(画像処理システム)の一種であり、コンピュータ装置1と、プリンタ2とを備えている。コンピュータ装置1とプリンタ2との間は、通信路3を介して双方向通信可能に接続されている。
コンピュータ装置1は、情報処理装置の一種であるとともに、プリンタ2の動作を制御する印刷制御装置の一種でもある。コンピュータ装置1は、通信路3を介して接続されているプリンタ2と双方向通信を行うことで、プリンタ2に印刷を実施させたり、プリンタ2の機器情報を取得したりする。
<Configuration of printing system>
FIG. 1 is an overall configuration diagram of a printing system 10 according to an embodiment of the present invention. FIG. 2 is a hardware configuration diagram of the computer apparatus 1 included in the printing system 10 according to the embodiment of the present invention. FIG. 3 is a hardware configuration diagram of the printer 2 included in the printing system 10 according to the embodiment of the present invention.
A printing system 10 illustrated in FIG. 1 is a kind of information processing system (image processing system), and includes a computer device 1 and a printer 2. The computer apparatus 1 and the printer 2 are connected via a communication path 3 so that bidirectional communication is possible.
The computer apparatus 1 is a kind of information processing apparatus and a kind of print control apparatus that controls the operation of the printer 2. The computer device 1 causes the printer 2 to perform printing or acquire device information of the printer 2 by performing bidirectional communication with the printer 2 connected via the communication path 3.

プリンタ2は、印刷装置(画像処理装置)の一種であるとともに、コンピュータ装置1に制御される被制御装置の一種である。本実施形態のプリンタ2は、インク滴を吐出することでカラー印刷が可能なインクジェットプリンタであり、印刷用紙をストックする用紙トレイ(記録媒体を保持する媒体保持部)を複数備えている。したがって、ストックされる記録用紙のサイズや紙質を用紙トレイ毎に設定できる。
プリンタ2の機器情報は、プリンタ2の状態を表す状態情報であり、例えばプリンタ2に装着されたオプションの情報、プリンタ2に装着されたメモリの容量、及び用紙トレイ毎の用紙サイズの情報を含む。
The printer 2 is a kind of printing apparatus (image processing apparatus) and a kind of controlled apparatus controlled by the computer apparatus 1. The printer 2 of the present embodiment is an ink jet printer that can perform color printing by ejecting ink droplets, and includes a plurality of paper trays (medium holding units that hold recording media) for stocking printing paper. Therefore, the size and quality of the recording paper to be stocked can be set for each paper tray.
The device information of the printer 2 is status information indicating the status of the printer 2, and includes, for example, information on options installed in the printer 2, information on the capacity of the memory installed in the printer 2, and information on the paper size for each paper tray. .

通信路3は、例えばUSB(Universal Serial Bus)通信ケーブル(有線)によって形成される情報の伝送路である。通信路3は、コンピュータ装置1からプリンタ2をUSB機器と認識でき、且つ、プリンタ2からもコンピュータ装置1をUSB機器と認識できれば、USB通信ケーブルに限られない。例えば、コンピュータ装置1とプリンタ2のそれぞれにUSB無線通信アダプタを接続し、コンピュータ装置1とプリンタ2との間で無線による双方向通信を行ってもよい。また、通信路3は、コンピュータ装置1からプリンタ2を認識でき、且つ、プリンタ2からもコンピュータ装置1を認識できれば、USB通信ケーブルに限られない。   The communication path 3 is an information transmission path formed by, for example, a USB (Universal Serial Bus) communication cable (wired). The communication path 3 is not limited to the USB communication cable as long as the printer 2 can be recognized as a USB device from the computer device 1 and the computer device 1 can also be recognized as a USB device from the printer 2. For example, a USB wireless communication adapter may be connected to each of the computer apparatus 1 and the printer 2 so that two-way wireless communication can be performed between the computer apparatus 1 and the printer 2. The communication path 3 is not limited to the USB communication cable as long as the printer 2 can be recognized from the computer apparatus 1 and the computer apparatus 1 can also be recognized from the printer 2.

図2に示すように、コンピュータ装置1は、一般的な情報処理端末と同様の構成を有する。即ち、本実施形態に係るコンピュータ装置1は、CPU(Central Processing Unit)11、ROM(Read Only Memory)12、RAM(Random Access Memory)13、外部I/F(Interface)14、USBI/F(Universal Serial Bus Interface)15、入力制御部16、表示制御部17、及び記憶装置18を備えており、これらの各部がバスBを介して情報を送受信可能に接続されている。
CPU11は演算手段であり、コンピュータ装置1における全体の動作を制御する。ROM12は、読み出し専用の不揮発性記憶媒体であり、ファームウェア等のコンピュータプログラム(以下プログラムと称する)が格納されている。RAM13は、情報の高速な読み書きが可能な揮発性の記憶媒体であり、CPU11が情報を処理する際の作業領域として用いられる。
As shown in FIG. 2, the computer apparatus 1 has the same configuration as a general information processing terminal. That is, the computer device 1 according to the present embodiment includes a CPU (Central Processing Unit) 11, a ROM (Read Only Memory) 12, a RAM (Random Access Memory) 13, an external I / F (Interface) 14, a USB I / F (Universal). Serial Bus Interface) 15, input control unit 16, display control unit 17, and storage device 18, and these units are connected via bus B so as to be able to transmit and receive information.
The CPU 11 is a calculation means and controls the overall operation of the computer device 1. The ROM 12 is a read-only nonvolatile storage medium and stores a computer program (hereinafter referred to as a program) such as firmware. The RAM 13 is a volatile storage medium capable of reading and writing information at high speed, and is used as a work area when the CPU 11 processes information.

外部I/F14には、光学ドライブ4が通信可能に接続されている。光学ドライブ4は、CD−ROM(Compact Disc Read only memory)やDVD(Digital Versatile Disc)などの光学ディスク(記憶媒体の一種)に記憶された情報を読み出したり、光学ディスクに情報を書き込んだりする。USBI/F15には、プリンタ2が双方向通信可能に接続されている。入力制御部16には入力装置5が接続されている。入力装置5は、例えばキーボードやマウスであり、ユーザによる入力操作に応じた操作信号を出力する。入力制御部16は、入力装置5から出力された入力信号を受信する。
表示制御部17には表示装置6が接続されている。表示装置6は、各種の画像を表示する装置であり、例えば液晶ディスプレイである。表示装置6に表示された視覚的ユーザインタフェースにより、ユーザは、コンピュータ装置1の状態やプリンタ2の状態を確認することができる。表示制御部17は、表示装置6に表示させる画像に応じた表示信号を出力する。
記憶装置18は、ハードディスクドライブ装置等の情報の読み書きが可能な不揮発性の記憶媒体であり、OS(Operating System)、アプリケーションプログラム(以下、アプリケーションと称する)、プリンタドライバ、及びストアデバイスアプリ等の各種プログラムが格納されている。これらのプログラムは、光学ディスクに記録して提供されたり、サーバからネットワークを介してダウンロードされることによって配布されたりする。
なお、本実施形態におけるOSは、例えばMicrosoft(登録商標)のWindows(登録商標)である。また、記憶装置18に格納された各プログラムによって実現される機能については後述する。
The optical drive 4 is communicably connected to the external I / F 14. The optical drive 4 reads information stored in an optical disk (a type of storage medium) such as a CD-ROM (Compact Disc Read only memory) or DVD (Digital Versatile Disc), and writes information on the optical disk. The printer 2 is connected to the USB I / F 15 so that bidirectional communication is possible. The input device 5 is connected to the input control unit 16. The input device 5 is a keyboard or a mouse, for example, and outputs an operation signal corresponding to an input operation by the user. The input control unit 16 receives an input signal output from the input device 5.
A display device 6 is connected to the display control unit 17. The display device 6 is a device that displays various images, and is, for example, a liquid crystal display. The visual user interface displayed on the display device 6 allows the user to check the state of the computer device 1 and the state of the printer 2. The display control unit 17 outputs a display signal corresponding to the image to be displayed on the display device 6.
The storage device 18 is a non-volatile storage medium capable of reading and writing information such as a hard disk drive device, and various types such as an OS (Operating System), an application program (hereinafter referred to as an application), a printer driver, and a store device application. The program is stored. These programs are provided by being recorded on an optical disc, or distributed by being downloaded from a server via a network.
Note that the OS in this embodiment is, for example, Windows (registered trademark) of Microsoft (registered trademark). Further, functions realized by the respective programs stored in the storage device 18 will be described later.

図3に示すように、本実施形態に係るプリンタ2は、プリンタ2における全体の動作を制御するプリンタ側制御部21と、印刷用紙に対する画像の印刷を行う印刷機構22と、印刷機構22による印刷動作に連動して印刷用紙を搬送する用紙搬送機構23と、コンピュータ装置1(USBI/F15)と通信路3(USB通信ケーブル)を介して接続可能に構成され、プリンタ側制御部21と双方向通信可能に接続されたUSBI/F24とを備えている。
上述したように、本実施形態のプリンタ2はインクジェットプリンタである。したがって、印刷機構22は、例えば、インク色毎に形成されたノズル列を備えるインクジェットヘッドと、インクジェットヘッドが取り付けられたキャリッジを印刷用紙の搬送方向(副走査方向)と直交(又は交差)する主走査方向に移動させるキャリッジ移動機構とを備えている。
As shown in FIG. 3, the printer 2 according to the present embodiment includes a printer-side control unit 21 that controls the overall operation of the printer 2, a printing mechanism 22 that prints an image on printing paper, and printing by the printing mechanism 22. It is configured to be connectable via a paper transport mechanism 23 that transports print paper in conjunction with the operation, a computer device 1 (USB I / F 15), and a communication path 3 (USB communication cable), and is bidirectional with the printer-side control unit 21. And a USB I / F 24 connected to be communicable.
As described above, the printer 2 of this embodiment is an ink jet printer. Accordingly, the printing mechanism 22 is, for example, a main unit that orthogonally crosses (or intersects) an inkjet head having nozzle rows formed for each ink color and a carriage to which the inkjet head is attached in the printing paper conveyance direction (sub-scanning direction). A carriage moving mechanism for moving in the scanning direction.

用紙搬送機構23は、用紙トレイにストックされた印刷用紙を1枚ずつ取り出し、インクジェットヘッドの主走査方向への移動が行われた後、次の主走査方向への移動が開始されるまでの間に印刷用紙を副走査方向に所定距離搬送する。
プリンタ側制御部21は、USBI/F24を介して取得したコンピュータ装置1からの各種情報にしたがって印刷機構22や用紙搬送機構23を制御し、印刷用紙の表面に画像を印刷させる。
The paper transport mechanism 23 takes out the printing paper stocked in the paper tray one by one, and after the ink jet head is moved in the main scanning direction, until the next movement in the main scanning direction is started. The printing paper is conveyed a predetermined distance in the sub-scanning direction.
The printer-side control unit 21 controls the printing mechanism 22 and the paper transport mechanism 23 according to various information from the computer device 1 acquired via the USB I / F 24, and prints an image on the surface of the printing paper.

また、プリンタ側制御部21は、プリンタ2の機器情報の取得要求をコンピュータ装置1から受信した場合、プリンタ2の機器情報を取得要求に対するレスポンスデータとして送信する。例えば、プリンタ2に装着されたオプションの情報、プリンタ2に装着されたメモリの容量、及び用紙トレイ毎の用紙サイズ情報を含む機器情報をレスポンスデータとして送信する。   When the printer-side control unit 21 receives a device information acquisition request for the printer 2 from the computer device 1, the printer-side control unit 21 transmits the device information for the printer 2 as response data for the acquisition request. For example, device information including information on options installed in the printer 2, the capacity of the memory installed in the printer 2, and paper size information for each paper tray is transmitted as response data.

図4は、本発明の第1実施形態に係るコンピュータ装置1の機能ブロック図である。詳しくは、図4の機能ブロック図は、記憶装置18に記憶された各種のプログラムをコンピュータ装置1のCPU11が読み出し、RAM13に展開して実行することにより実現される。
コンピュータ装置1ではOS31が動作し、OS31の上でアプリケーション32、プリンタドライバ33、及びストアデバイスアプリ34が動作している。また、コンピュータ装置1には、アクセス可能領域35が設定されているとともに、スプーラ36、及び双方向スクリプト37(USB Bidi Java(登録商標)script)が動作している。
FIG. 4 is a functional block diagram of the computer apparatus 1 according to the first embodiment of the present invention. Specifically, the functional block diagram of FIG. 4 is realized by the CPU 11 of the computer device 1 reading out various programs stored in the storage device 18, developing them in the RAM 13, and executing them.
In the computer apparatus 1, an OS 31 operates, and an application 32, a printer driver 33, and a store device application 34 operate on the OS 31. In the computer device 1, an accessible area 35 is set, and a spooler 36 and a bidirectional script 37 (USB Bidi Java (registered trademark) script) are operating.

アプリケーション32は、例えば文書作成ソフトや表計算ソフト等であり、作業結果をプリンタ2によって印刷用紙に印刷させることができる。プリンタドライバ33は、コンピュータ装置1に接続された周辺機器を制御するためのドライバソフトウェアの一種である。すなわち、プリンタドライバ33は、プリンタ2を制御するためのプログラムであり、例えばV4プリンタドライバである。詳細は後述するが、ユーザの入力操作によってプリンタドライバ33のデバイスプロパティ画面が開かれた場合、プリンタドライバ33は、プリンタ2の機器情報の取得を要求する双方向リクエスト(取得要求)をスプーラ36に送信する。また、プリンタドライバ33は、双方向リクエストを送信するごとに、送信する双方向リクエストを識別するためのリクエストID(取得要求を識別する識別情報)を生成し、アクセス可能領域35に記憶させる。このリクエストIDは、双方向リクエストに基づいてプリンタ2から取得される機器情報について、この機器情報を識別する識別情報としても機能する。さらに、プリンタドライバ33は、双方向リクエストを送信した後、予め定められた時間が経過した場合に、スプーラ36に記憶されたRQID付レスポンスデータ(付加後状態情報)を取得する。
ストアデバイスアプリ34は、プリンタドライバ33と連携してプリンタ2の状態表示、印刷ジョブの管理、及びプリンタ2のメンテナンスを実行するためのプログラムである。アクセス可能領域35は、プリンタドライバ33や双方向スクリプト37などがアクセス可能な記憶領域として設定される。アクセス可能領域35については後で詳しく説明する。
The application 32 is, for example, document creation software or spreadsheet software, and the work result can be printed on the printing paper by the printer 2. The printer driver 33 is a type of driver software for controlling peripheral devices connected to the computer apparatus 1. That is, the printer driver 33 is a program for controlling the printer 2 and is, for example, a V4 printer driver. Although details will be described later, when the device property screen of the printer driver 33 is opened by a user input operation, the printer driver 33 sends a bidirectional request (acquisition request) for requesting acquisition of device information of the printer 2 to the spooler 36. Send. In addition, every time a bidirectional request is transmitted, the printer driver 33 generates a request ID (identification information for identifying an acquisition request) for identifying the bidirectional request to be transmitted and stores the request ID in the accessible area 35. This request ID also functions as identification information for identifying the device information acquired from the printer 2 based on the bidirectional request. Furthermore, the printer driver 33 acquires response data with RQID (post-addition state information) stored in the spooler 36 when a predetermined time has elapsed after transmitting the bidirectional request.
The store device application 34 is a program for executing status display of the printer 2, management of a print job, and maintenance of the printer 2 in cooperation with the printer driver 33. The accessible area 35 is set as a storage area accessible by the printer driver 33, interactive script 37, and the like. The accessible area 35 will be described in detail later.

スプーラ36は、OS31において印刷機能を管理するソフトウェアモジュール(以下、モジュールと称する)であり、プリンタドライバ33と非同期で双方向通信を行う。プリンタドライバ33から双方向リクエストを受信すると、スプーラ36は、プリンタ2との双方向通信を行うため、双方向スクリプト37を呼び出す。また、スプーラ36には、RQID付レスポンスデータなどのデータを一時的に記憶するキャッシュ36aが設けられている。
双方向スクリプト37は、スプーラ36から呼び出されるスクリプトプログラムであり、プリンタ2と双方向の同期通信を行う。例えば、スプーラ36から双方向リクエストを受信すると、双方向スクリプト37は、プリンタ2に双方向リクエストを送信した後、プリンタ2からのレスポンスデータ(機器情報)を取得する。双方向スクリプト37は、アクセス可能領域35に記憶されたリクエストIDを読み出し可能であるととともに、レスポンスデータにリクエストIDを付加(追加)してRQID付レスポンスデータを生成可能である。加えて、双方向スクリプト37は、生成したRQID付レスポンスデータをスプーラ36のキャッシュ36aに記憶させることができる。
The spooler 36 is a software module (hereinafter referred to as a module) that manages the printing function in the OS 31, and performs bidirectional communication asynchronously with the printer driver 33. When the bidirectional request is received from the printer driver 33, the spooler 36 calls the bidirectional script 37 in order to perform bidirectional communication with the printer 2. The spooler 36 is provided with a cache 36a for temporarily storing data such as response data with RQID.
The bidirectional script 37 is a script program called from the spooler 36 and performs bidirectional synchronous communication with the printer 2. For example, when a bidirectional request is received from the spooler 36, the bidirectional script 37 acquires response data (device information) from the printer 2 after transmitting the bidirectional request to the printer 2. The interactive script 37 can read the request ID stored in the accessible area 35 and can add (add) the request ID to the response data to generate response data with RQID. In addition, the bidirectional script 37 can store the generated response data with RQID in the cache 36 a of the spooler 36.

プリンタドライバ33について説明する。プリンタドライバ33は、UI(User Interface)部33a、禁則スクリプト部33d、及び描画部33eを備えている。
UI部33aは、UI表示部33b、及び双方向通信部33cをモジュールとして備えている。UI表示部33bは、表示装置6にUI画面を表示させるとともに、ユーザによる入力操作を受け付ける。受け付けた入力操作がプリンタ2との双方向通信を必要とする場合、UI表示部33bは、プリンタ2との双方向通信が必要である旨を双方向通信部33cへ伝える。例えば、ユーザが入力装置5を操作し、プリンタドライバ33のデバイスプロパティ画面を開いた場合、UI表示部33bは機器情報を取得するための要求を双方向通信部33cに出力する。
The printer driver 33 will be described. The printer driver 33 includes a UI (User Interface) unit 33a, a prohibition script unit 33d, and a drawing unit 33e.
The UI unit 33a includes a UI display unit 33b and a bidirectional communication unit 33c as modules. The UI display unit 33b displays a UI screen on the display device 6 and accepts an input operation by the user. When the received input operation requires bi-directional communication with the printer 2, the UI display unit 33b notifies the bi-directional communication unit 33c that bi-directional communication with the printer 2 is necessary. For example, when the user operates the input device 5 to open the device property screen of the printer driver 33, the UI display unit 33b outputs a request for acquiring device information to the bidirectional communication unit 33c.

当該要求を受けて、双方向通信部33cは、プリンタ2との双方向通信を行うため双方向リクエスト(取得要求)を送信し、プリンタ2から機器情報(レスポンスデータ)を取得する。双方向通信部33cは、例えば、プリンタドライバ33のデバイスプロパティ画面を開く操作が行われた場合、双方向リクエストをスプーラ36に送信する。また、双方向通信部33cは、双方向リクエストの送信から予め定められた時間の経過後、スプーラ36のキャッシュ36aに記憶されたRQID付レスポンスデータを取得する。双方向通信部33cは、取得したRQID付レスポンスデータに含まれる機器情報を、UI表示部33bと連携してUI画面に表示させる。
禁則スクリプト部33dは、印刷処理における各種の禁則設定を制御するスクリプトプログラムである。描画部33eは、印刷対象の画像データを受け付け、印刷の設定に従って描画処理を行うモジュールである。描画部33eによって、プリンタ2が解釈可能な印刷命令が生成される。
In response to the request, the bidirectional communication unit 33 c transmits a bidirectional request (acquisition request) to perform bidirectional communication with the printer 2 and acquires device information (response data) from the printer 2. For example, when an operation for opening the device property screen of the printer driver 33 is performed, the bidirectional communication unit 33 c transmits a bidirectional request to the spooler 36. Further, the bidirectional communication unit 33c acquires the response data with RQID stored in the cache 36a of the spooler 36 after a predetermined time has elapsed since the transmission of the bidirectional request. The bidirectional communication unit 33c displays device information included in the acquired response data with RQID on the UI screen in cooperation with the UI display unit 33b.
The prohibition script unit 33d is a script program that controls various prohibition settings in print processing. The drawing unit 33e is a module that receives image data to be printed and performs drawing processing according to print settings. The drawing unit 33e generates a print command that can be interpreted by the printer 2.

アクセス可能領域35について説明する。本実施形態のアクセス可能領域35は、プリンタドライバ33がV4プリンタドライバであることから、記憶領域としてドライバプロパティバッグ35a、キュープロパティバッグ35b、ユーザプロパティバッグ35c、及び独自領域35dを備えている。このように、アクセス可能領域35は複数の記憶領域を備えているが、アクセスできる権限はモジュールごとに異なっている。
ドライバプロパティバッグ35aは、プリンタドライバ33による情報の読み出しのみが可能な記憶領域であり、ドライバ単位で割り当てられる。ドライバプロパティバッグ35aには、プリンタドライバ33の構成ファイルを格納することができる。構成ファイルは、ドライバプロパティバッグ35aへの格納前に予め決定されている。
キュープロパティバッグ35bは、プリンタドライバ33による情報の読み出しと書き込み(書き込みは権限に依存する)の双方が可能な記憶領域であり、プリンタアイコン(論理プリンタ)単位で割り当てられる。キュープロパティバッグ35bには、プリンタアイコンごとの情報を格納することができる。また、キュープロパティバッグ35bに記憶された情報には、双方向スクリプト37などの他のモジュールからアクセスすることができる。
The accessible area 35 will be described. The accessible area 35 of this embodiment includes a driver property bag 35a, a queue property bag 35b, a user property bag 35c, and a unique area 35d as storage areas since the printer driver 33 is a V4 printer driver. As described above, the accessible area 35 includes a plurality of storage areas, but the authority that can be accessed is different for each module.
The driver property bag 35a is a storage area in which information can only be read by the printer driver 33, and is assigned in units of drivers. A configuration file of the printer driver 33 can be stored in the driver property bag 35a. The configuration file is determined in advance before storage in the driver property bag 35a.
The queue property bag 35b is a storage area in which both reading and writing of information by the printer driver 33 (writing depends on authority) is possible, and is allocated in units of printer icons (logical printers). The queue property bag 35b can store information for each printer icon. Further, the information stored in the queue property bag 35b can be accessed from other modules such as the interactive script 37.

ユーザプロパティバッグ35cは、プリンタドライバ33による情報の読み出しと書き込みの双方が可能な記憶領域であり、プリンタアイコン単位且つユーザ単位で割り当てられる。このため、ユーザプロパティバッグ35cには、プリンタアイコンごとに複数のユーザの情報を格納することができる。そして、プリンタドライバ33は、他ユーザの情報にはアクセスできない。
独自領域35dは、独自に決められたフォーマットの情報を格納することができる記憶領域である。
The user property bag 35c is a storage area in which information can be both read and written by the printer driver 33, and is assigned in units of printer icons and users. For this reason, the user property bag 35c can store information on a plurality of users for each printer icon. The printer driver 33 cannot access information of other users.
The unique area 35d is a storage area in which information of a uniquely determined format can be stored.

<非同期の双方向通信における比較例のシーケンスについて>
ここで、プリンタドライバ33による非同期の双方向通信について、一般的なV4プリンタドライバによる比較例のシーケンスを説明する。図5は、非同期の双方向通信における比較例のシーケンスを説明する図である。
図5に示すように、比較例のシーケンスでは、プリンタドライバ33のデバイスプロパティ画面を開く操作をユーザが行うと(S1)、プリンタドライバ33は、プリンタ2の機器情報の取得を要求する双方向リクエストをOS31に送信する(S2)。
デバイスプロパティ画面を開く操作としては、例えば、図6に示すドライバ印刷設定画面101が表示装置6に表示された状態でユーザが入力装置5を操作し、プリンタプロパティの開操作ボタン(Printer Propertiesボタン)101aを選択して実行させる操作が挙げられる。ドライバ印刷設定画面101は、例えば印刷実行時に印刷設定を変えるため、ユーザがプリンタドライバ33の印刷設定画面を開く操作を行った時に、UI表示部33bが表示装置6に表示する。
デバイスプロパティ画面を開く他の操作としては、例えば、図7に示すように、プリンタアイコンの一覧画面102から設定対象プリンタのメニュー画面102aを開いた状態で、ドライバプロパティの開操作ボタン(V4 Generic Driver Propertiesボタン)102bを選択して実行させる操作が挙げられる。メニュー画面102aは、例えばプリンタ2における標準の印刷設定を変える場合に、UI表示部33bが表示装置6に表示する。
プリンタドライバ33とOS31との間では非同期通信が行われていることから、図5に示すように、プリンタドライバ33は、双方向リクエストをOS31に送信すると双方向リクエストに対応するOS31からのレスポンスデータの受信を待たずに解放される。
<Sequence of comparative example in asynchronous two-way communication>
Here, a sequence of a comparative example using a general V4 printer driver for asynchronous two-way communication by the printer driver 33 will be described. FIG. 5 is a diagram for explaining a sequence of a comparative example in asynchronous two-way communication.
As shown in FIG. 5, in the sequence of the comparative example, when the user performs an operation to open the device property screen of the printer driver 33 (S1), the printer driver 33 requests the printer 2 to acquire device information. Is transmitted to the OS 31 (S2).
As an operation for opening the device property screen, for example, the user operates the input device 5 in a state where the driver print setting screen 101 shown in FIG. 6 is displayed on the display device 6, and a printer property open operation button (Printer Properties button). An operation of selecting and executing 101a is given. The driver print setting screen 101 is displayed on the display device 6 by the UI display unit 33b when the user performs an operation for opening the print setting screen of the printer driver 33 in order to change the print setting at the time of execution of printing.
As another operation for opening the device property screen, for example, as shown in FIG. 7, in the state where the menu screen 102a of the setting target printer is opened from the printer icon list screen 102, a driver property open operation button (V4 Generic Driver Properties button) 102b is selected and executed. The menu screen 102a is displayed on the display device 6 by the UI display unit 33b when, for example, the standard print setting in the printer 2 is changed.
Since asynchronous communication is performed between the printer driver 33 and the OS 31, as shown in FIG. 5, when the printer driver 33 transmits a bidirectional request to the OS 31, the response data from the OS 31 corresponding to the bidirectional request. It is released without waiting for the reception.

OS31は、プリンタドライバ33から双方向リクエストを受信すると、プリンタ2に対して双方向リクエストを送信する(S3)。OS31とプリンタ2との間では同期通信が行われていることから、OS31は双方向リクエストを送信した後、プリンタ2からのレスポンスデータを待つ。プリンタ2は、OS31から双方向リクエストを受信すると、機器情報を双方向リクエストに対するレスポンスデータとしてOS31に送信する(S4)。OS31は、プリンタ2からのレスポンスデータ(機器情報)を受信したことに伴い、受信したレスポンスデータを記憶する。
プリンタドライバ33は、OS31への双方向リクエストの送信後、予め定められた時間が経過したことを条件に、OS31からレスポンスデータを取得する(S5)。プリンタドライバ33は、取得したレスポンスデータ(機器情報)をUI画面に表示させる(S6)。
When the OS 31 receives the bidirectional request from the printer driver 33, the OS 31 transmits the bidirectional request to the printer 2 (S3). Since synchronous communication is performed between the OS 31 and the printer 2, the OS 31 waits for response data from the printer 2 after transmitting a bidirectional request. When receiving the bidirectional request from the OS 31, the printer 2 transmits device information to the OS 31 as response data for the bidirectional request (S4). The OS 31 stores the received response data when receiving the response data (device information) from the printer 2.
The printer driver 33 acquires response data from the OS 31 on the condition that a predetermined time has elapsed after the transmission of the bidirectional request to the OS 31 (S5). The printer driver 33 displays the acquired response data (device information) on the UI screen (S6).

以上の比較例において、プリンタ2からのレスポンスデータをOS31が受信するよりも前に、プリンタドライバ33がOS31からレスポンスデータを取得してしまった場合には、レスポンスデータが取得できなかったり、OS31に一時記憶された古いレスポンスデータを誤って取得してしまったりする不都合が生じ得る。   In the comparative example described above, if the printer driver 33 acquires response data from the OS 31 before the response data from the printer 2 is received by the OS 31, the response data cannot be acquired or the OS 31 receives the response data. There may be a problem that the old response data temporarily stored is erroneously acquired.

本実施形態では、このような不都合を抑制するため、リクエストID(識別情報)を用いて夫々の双方向リクエスト(識別情報)を識別し、リクエストIDに基づいてプリンタ2の機器情報を取得するか否かを判断する構成を採っている。
図4に示すように、プリンタドライバ33が備える双方向通信部33cは、双方向リクエストを送信するごとに、アクセス可能領域35(キュープロパティバッグ35b)にリクエストIDを書き込む。スプーラ36に呼び出された双方向スクリプト37は、プリンタ2からレスポンスデータを受信した場合、アクセス可能領域35からリクエストIDを読み込むとともに、読み込んだリクエストIDをレスポンスデータに付加し、RQID付レスポンスデータを生成する。そして、RQID付レスポンスデータをスプーラ36のキャッシュ36aに記憶させる。キャッシュ36aに記憶されたRQID付レスポンスデータは、双方向通信部33cによる取得要求に応じて、双方向通信部33cに取得(通知)される。双方向通信部33cは、アクセス可能領域35に書き込んだリクエストIDとキャッシュ36aに記憶されたRQID付レスポンスデータのリクエストIDとを比較し、両リクエストIDが同じであれば双方向リクエストに対するレスポンスデータ(機器情報)が得られたと判断し、RQID付レスポンスデータからレスポンスデータを取得する。一方、両リクエストIDが異なっていれば、双方向リクエストに対するレスポンスデータは得られていないと判断し、RQID付レスポンスデータからレスポンスデータを取得しない。
In this embodiment, in order to suppress such inconvenience, whether each bidirectional request (identification information) is identified using a request ID (identification information), and device information of the printer 2 is acquired based on the request ID. The structure which judges whether or not is taken.
As shown in FIG. 4, the bidirectional communication unit 33c included in the printer driver 33 writes a request ID in the accessible area 35 (queue property bag 35b) every time a bidirectional request is transmitted. When the bidirectional script 37 called by the spooler 36 receives response data from the printer 2, it reads the request ID from the accessible area 35, adds the read request ID to the response data, and generates response data with RQID. To do. Then, the response data with RQID is stored in the cache 36 a of the spooler 36. The response data with RQID stored in the cache 36a is acquired (notified) to the bidirectional communication unit 33c in response to an acquisition request by the bidirectional communication unit 33c. The bidirectional communication unit 33c compares the request ID written in the accessible area 35 with the request ID of the response data with RQID stored in the cache 36a. If both request IDs are the same, the response data for the bidirectional request ( Device information) is obtained, and response data is acquired from the response data with RQID. On the other hand, if the request IDs are different, it is determined that response data for the bidirectional request is not obtained, and the response data is not acquired from the response data with RQID.

以下、プリンタ2の機器情報の取得について詳細に説明する。
<第1実施形態における機器情報の取得シーケンス>
図8は、本発明の第1実施形態に係る機器情報の取得シーケンスを説明する図である。上述したように、UI表示部33b及び双方向通信部33cは、プリンタドライバ33が備えるモジュールである。アクセス可能領域35は、双方向通信部33cや双方向スクリプト37から情報の書き込みや読み出しが可能な記憶領域である。スプーラ36はOS31のモジュールであり、双方向スクリプト37はスプーラ36によって呼び出されるスクリプトである。
図8に示すように、ユーザが入力装置5を操作し、プリンタドライバ33のデバイスプロパティ画面を開く操作を行うと、UI表示部33bは、機器情報を取得するための要求を双方向通信部33cに出力する(S11)。デバイスプロパティ画面を開く操作としては、例えば、図6で説明したプリンタプロパティの開操作ボタン101aの実行操作、及び図7で説明したドライバプロパティの開操作ボタン102bの実行操作が挙げられる。
Hereinafter, acquisition of device information of the printer 2 will be described in detail.
<Device Information Acquisition Sequence in First Embodiment>
FIG. 8 is a diagram illustrating a device information acquisition sequence according to the first embodiment of the present invention. As described above, the UI display unit 33b and the bidirectional communication unit 33c are modules included in the printer driver 33. The accessible area 35 is a storage area in which information can be written and read from the bidirectional communication unit 33 c and the bidirectional script 37. The spooler 36 is a module of the OS 31, and the bidirectional script 37 is a script called by the spooler 36.
As shown in FIG. 8, when the user operates the input device 5 to open the device property screen of the printer driver 33, the UI display unit 33b sends a request for acquiring device information to the bidirectional communication unit 33c. (S11). The operation for opening the device property screen includes, for example, the execution operation of the printer property opening operation button 101a described in FIG. 6 and the execution operation of the driver property opening operation button 102b described in FIG.

当該要求に応じて、双方向通信部33cはリクエストIDを生成する(S12)。リクエストIDは、双方向リクエストやプリンタ2からの機器情報を一意に識別する識別情報に相当し、UI表示部33bから機器情報を取得するための要求が出力されるごとに生成される。リクエストIDは、双方向通信部33cが生成する不規則な値であり、疑似乱数生成アルゴリズムにより生成される乱数や、双方向通信部33cが双方向リクエスト(取得要求)を取得した日時の情報等に基づいて生成される不規則な値等である。図9には、生成されたリクエストIDの例として「98573409857」という11桁の不規則な数値が記載されている。リクエストIDの値は、一意な値を取ることができればよいので、数値に限らず文字や記号も使用できる。また、不規則な数値等に限らず、双方向リクエストを受信する度にインクリメント(+1)されるカウントアップ値としてもよい。双方向通信部33cは、リクエストIDの値については機器情報の取得要求が出力される毎に生成するが、同じ値のリクエストIDを連続して生成しない。   In response to the request, the bidirectional communication unit 33c generates a request ID (S12). The request ID corresponds to identification information that uniquely identifies a bidirectional request or device information from the printer 2, and is generated each time a request for acquiring device information is output from the UI display unit 33b. The request ID is an irregular value generated by the bidirectional communication unit 33c, such as a random number generated by a pseudo random number generation algorithm, information on the date and time when the bidirectional communication unit 33c acquires the bidirectional request (acquisition request), and the like. An irregular value or the like generated based on FIG. 9 shows an 11-digit irregular numerical value “98583409857” as an example of the generated request ID. The request ID value is not limited to a numerical value, and may be a character or a symbol as long as it can be a unique value. Further, the count value is not limited to an irregular numerical value, but may be incremented (+1) each time a bidirectional request is received. The bidirectional communication unit 33c generates a request ID value every time a device information acquisition request is output, but does not continuously generate request IDs having the same value.

双方向通信部33cは、生成したリクエストIDをアクセス可能領域35(詳しくはキュープロパティバッグ35b)に記憶する(S13)。リクエストIDをアクセス可能領域35に記憶させる理由は、リクエストIDをスプーラ36に対して直接送信することができないためである。双方向通信部33cは、アクセス可能領域35にリクエストIDを記憶させる場合、図9のようにキーと値のペアを指定する(キーと値のペアを指定することが書き込み命令に相当する)。これにより、アクセス可能領域35におけるキーが指定する領域に、リクエストIDの値が記憶される。アクセス可能領域35にリクエストIDを記憶させる場合、キーが固定であることから、リクエストIDの値がその都度上書きされることになる。その結果、アクセス可能領域35には、最新のリクエストIDが記憶される。   The bidirectional communication unit 33c stores the generated request ID in the accessible area 35 (specifically, the queue property bag 35b) (S13). The reason for storing the request ID in the accessible area 35 is that the request ID cannot be transmitted directly to the spooler 36. When the request ID is stored in the accessible area 35, the bidirectional communication unit 33c designates a key / value pair as shown in FIG. 9 (designating the key / value pair corresponds to a write command). Thereby, the value of the request ID is stored in the area designated by the key in the accessible area 35. When the request ID is stored in the accessible area 35, since the key is fixed, the value of the request ID is overwritten each time. As a result, the latest request ID is stored in the accessible area 35.

リクエストIDを記憶させた後、双方向通信部33cは、双方向リクエストをスプーラ36に送信する(S14)。スプーラ36側の処理は双方向通信部33cの処理とは非同期で行われるため、双方向通信部33cは双方向リクエストに対応するレスポンスデータ(機器情報)を取得するまで処理を待たされることはなく、双方向リクエストの送信後に解放される。
なお、本実施形態において、双方向通信部33cは、リクエストIDを記憶させた後に双方向リクエストを送信しているが、双方向リクエストの送信と略同時であれば、双方向リクエストの送信後にリクエストIDを記憶させてもよい。
After storing the request ID, the bidirectional communication unit 33c transmits a bidirectional request to the spooler 36 (S14). Since the processing on the spooler 36 side is performed asynchronously with the processing of the bidirectional communication unit 33c, the bidirectional communication unit 33c does not have to wait for the response data (device information) corresponding to the bidirectional request. Released after sending a bidirectional request.
In the present embodiment, the bi-directional communication unit 33c transmits the bi-directional request after storing the request ID. If the bi-directional request is transmitted substantially at the same time, the bi-directional request is transmitted after the bi-directional request is transmitted. The ID may be stored.

双方向通信部33cからの双方向リクエストを受信したスプーラ36は、受信した双方向リクエストを双方向スクリプト37に送信する(S21)。スプーラ36からの双方向リクエストを受信した双方向スクリプト37は、プリンタ2に双方向リクエストを送信する(S22)。双方向スクリプト37とプリンタ2との間では同期通信が行われている。したがって、双方向スクリプト37は、プリンタ2に双方向リクエストを送信した後、プリンタ2からレスポンスデータを取得する(S23)。すなわち、プリンタ2は、双方向リクエストを受信した後、双方向スクリプト37からの機器情報の取得要求に対して、機器情報をレスポンスデータとして送信する(S23)。   The spooler 36 that has received the bidirectional request from the bidirectional communication unit 33c transmits the received bidirectional request to the bidirectional script 37 (S21). The bidirectional script 37 that has received the bidirectional request from the spooler 36 transmits the bidirectional request to the printer 2 (S22). Synchronous communication is performed between the bidirectional script 37 and the printer 2. Therefore, the bidirectional script 37 acquires response data from the printer 2 after transmitting a bidirectional request to the printer 2 (S23). That is, after receiving the bidirectional request, the printer 2 transmits the device information as response data in response to the device information acquisition request from the bidirectional script 37 (S23).

プリンタ2は、例えば、図10に示す機器情報をレスポンスデータとして送信する。図10の例では、プリンタ2のオプションとして「両面印刷ユニット(DuplexUnit)」及び「ハードディスクドライブ装置」が装着され、プリンタ2に装着された「メモリの容量が256MB」であり、「用紙トレイ1の用紙サイズがA4」であり、「手差しトレイの用紙サイズがA5」であることが表されている。
プリンタ2からのレスポンスデータ(機器情報)を受信した双方向スクリプト37は、アクセス可能領域35(キュープロパティバッグ35b)からリクエストIDを読み取る(S24)。リクエストIDをアクセス可能領域35から読み取る理由は、上述したようにリクエストIDを双方向通信部33cから直接受信できないためである。双方向スクリプト37は、アクセス可能領域35からリクエストIDを読み取る場合、キー(図9の「BidiRequestID」)のみを指定する(キーのみを指定することが読み出し命令に相当する)。したがって、キーに保存されているリクエストIDの値が読み取られる。
For example, the printer 2 transmits the device information illustrated in FIG. 10 as response data. In the example of FIG. 10, “duplex unit” and “hard disk drive device” are installed as options of the printer 2, the “memory capacity is 256 MB” installed in the printer 2, and “paper tray 1 The paper size is “A4”, and “the paper size of the manual feed tray is A5”.
The bidirectional script 37 that has received the response data (device information) from the printer 2 reads the request ID from the accessible area 35 (queue property bag 35b) (S24). The reason for reading the request ID from the accessible area 35 is that the request ID cannot be directly received from the bidirectional communication unit 33c as described above. When reading the request ID from the accessible area 35, the interactive script 37 designates only the key ("BidiRequestID" in FIG. 9) (designating only the key corresponds to a read command). Therefore, the value of the request ID stored in the key is read.

双方向スクリプト37は、プリンタ2から受信したレスポンスデータに、アクセス可能領域35から読み込んだリクエストIDの値を追加(付加)することでRQID付レスポンスデータを生成し(S25)、RQID付レスポンスデータをスプーラ36に送信する(S26)。スプーラ36は、受信したRQID付レスポンスデータをキャッシュ36aに記憶する(S26)。
双方向リクエストをスプーラ36に送信した後、双方向通信部33cは、予め定められた所定時間待機する(S31)。待機時間は、スプーラ36がRQID付レスポンスデータを記憶するまでに通常必要な一定時間に定められる。
The bidirectional script 37 generates response data with RQID by adding (adding) the value of the request ID read from the accessible area 35 to the response data received from the printer 2 (S25), and generates the response data with RQID. The data is transmitted to the spooler 36 (S26). The spooler 36 stores the received response data with RQID in the cache 36a (S26).
After transmitting the bidirectional request to the spooler 36, the bidirectional communication unit 33c waits for a predetermined time (S31). The waiting time is set to a certain time that is normally required until the spooler 36 stores the response data with RQID.

一定時間待機した後、双方向通信部33cは、スプーラ36に対してRQID付レスポンスデータの取得要求を行う(S32)。スプーラ36から取得(通知)されるRQID付レスポンスデータは、ステップS32の取得要求を行った時点でスプーラ36のキャッシュ36aに記憶されているRQID付レスポンスデータである。
したがって、ステップS32の取得要求を行った時点で、ステップS21〜S26の処理が終了していた場合、スプーラ36から取得されるRQID付レスポンスデータは最新の機器情報を反映したデータとなる。一方、ステップS32の取得要求を行った時点で、ステップS21〜S26の処理が終了していなかった場合、スプーラ36から取得されるRQID付レスポンスデータは最新の機器情報を反映していない古いデータとなる。
After waiting for a certain time, the bidirectional communication unit 33c requests the spooler 36 to acquire response data with RQID (S32). The response data with RQID acquired (notified) from the spooler 36 is response data with RQID stored in the cache 36a of the spooler 36 when the acquisition request in step S32 is made.
Therefore, when the processing of steps S21 to S26 is completed when the acquisition request of step S32 is made, the response data with RQID acquired from the spooler 36 is data reflecting the latest device information. On the other hand, if the processing of steps S21 to S26 has not been completed when the acquisition request in step S32 is made, the response data with RQID acquired from the spooler 36 is old data that does not reflect the latest device information. Become.

双方向通信部33cは、アクセス可能領域35に記憶したリクエストIDとRQID付レスポンスデータに含まれるリクエストIDとを比較する(S33)。両リクエストIDが同じ値の場合、双方向通信部33cは、ステップS14で送信した双方向リクエストに対応するRQID付レスポンスデータが返ってきたと判断する。この場合、双方向通信部33cは、キャッシュ36aに記憶されたRQID付レスポンスデータに含まれるレスポンスデータを取得すると判断する。一方、両リクエストIDが異なる値の場合、双方向通信部33cは、スプーラ36から取得したRQID付レスポンスデータは、古いデータであったと判断する。言い換えれば、双方向通信部33cは、スプーラ36がプリンタ2から機器情報を取得する処理を完了していないと判断する。この場合、双方向通信部33cは、キャッシュ36aに記憶されたRQID付レスポンスデータに含まれるレスポンスデータを取得しないと判断する。
したがって、両リクエストIDが同じ値の場合、双方向通信部33cは、RQID付レスポンスデータからレスポンスデータ(機器情報)を取得し、取得した機器情報をUI表示部33bに表示させる(S41)。UI表示部33bは、例えば図11に示す表示画面103を表示装置6に表示させる。表示画面103には、オプションとして「両面印刷ユニット」及び「ハードディスクドライブ装置」が装着され、装着された「メモリの容量が256MB」であり、「用紙トレイ1の用紙サイズがA4」であり、「手差しトレイの用紙サイズがA5」であることが示されている。
The bidirectional communication unit 33c compares the request ID stored in the accessible area 35 with the request ID included in the response data with RQID (S33). If both request IDs have the same value, the bidirectional communication unit 33c determines that response data with RQID corresponding to the bidirectional request transmitted in step S14 has been returned. In this case, the bidirectional communication unit 33c determines to obtain response data included in the response data with RQID stored in the cache 36a. On the other hand, when the request IDs are different from each other, the bidirectional communication unit 33c determines that the response data with RQID acquired from the spooler 36 is old data. In other words, the bidirectional communication unit 33c determines that the spooler 36 has not completed the process of acquiring device information from the printer 2. In this case, the bidirectional communication unit 33c determines that the response data included in the response data with RQID stored in the cache 36a is not acquired.
Therefore, when both request IDs have the same value, the bidirectional communication unit 33c acquires response data (device information) from the response data with RQID, and displays the acquired device information on the UI display unit 33b (S41). For example, the UI display unit 33b displays the display screen 103 illustrated in FIG. On the display screen 103, “double-sided printing unit” and “hard disk drive device” are installed as options, the installed “memory capacity is 256 MB”, “paper size of paper tray 1 is A4”, “ It is indicated that the paper size of the manual feed tray is A5 ".

一方、両リクエストIDが異なる値の場合、双方向通信部33cは、RQID付レスポンスデータからレスポンスデータを取得せず、再度一定時間待機(S34)した後、スプーラ36に対してRQID付レスポンスデータの取得要求を行う(S35)。これにより、スプーラ36からRQID付レスポンスデータが取得(通知)される。双方向通信部33cは、アクセス可能領域35に記憶したリクエストIDとRQID付レスポンスデータに含まれるリクエストIDとを比較する(S36)。両リクエストIDが同じ値の場合、双方向通信部33cは、RQID付レスポンスデータからレスポンスデータ(機器情報)を取得し、取得した機器情報をUI表示部33bに表示させる(S41´)。一方、両リクエストIDが異なる値の場合、RQID付レスポンスデータからレスポンスデータを取得せず、上述したステップS34〜S36の処理を繰り返し行う。   On the other hand, when the request IDs are different from each other, the bidirectional communication unit 33c does not acquire the response data from the response data with RQID, waits for a certain time again (S34), and then sends the response data with the RQID to the spooler 36. An acquisition request is made (S35). As a result, response data with RQID is acquired (notified) from the spooler 36. The bidirectional communication unit 33c compares the request ID stored in the accessible area 35 with the request ID included in the response data with RQID (S36). When both request IDs have the same value, the bidirectional communication unit 33c acquires response data (device information) from the response data with RQID, and displays the acquired device information on the UI display unit 33b (S41 ′). On the other hand, when the request IDs are different from each other, response data is not acquired from the response data with RQID, and the processes of steps S34 to S36 described above are repeated.

以上の説明から明らかなように、第1実施形態の印刷システム10では、プリンタドライバ33の双方向通信部33cが、双方向リクエストを送る際にアクセス可能領域35にリクエストIDを書き込んでおり、双方向スクリプト37が、アクセス可能領域35に書き込まれたリクエストIDを読み込んで、RQID付レスポンスデータとしてスプーラ36のキャッシュ36aに記憶させている。
双方向通信部33cは、RQID付レスポンスデータに含まれるリクエストIDに基づいて、キャッシュ36aに記憶されたRQID付レスポンスデータに含まれるレスポンスデータ(機器情報)を取得するか否かを判断する。すなわち、双方向通信部33cは、生成したリクエストIDとRQID付レスポンスデータに含まれるリクエストIDとを比較し、両リクエストIDが同じ値であれば、直近の双方向リクエストに対するレスポンスデータと判断し、当該RQID付レスポンスデータに含まれるレスポンスデータを取得する。
その結果、同期通信のように双方向リクエストに対するレスポンスが得られ、プリンタ2とコンピュータ装置1との双方向通信が非同期で行われても、取得すべき機器情報とは異なる機器情報がコンピュータ装置1に取得されてしまう不都合を抑制できる。
As is clear from the above description, in the printing system 10 of the first embodiment, the bidirectional communication unit 33c of the printer driver 33 writes the request ID in the accessible area 35 when sending the bidirectional request. The script 37 reads the request ID written in the accessible area 35 and stores it in the cache 36a of the spooler 36 as response data with RQID.
Based on the request ID included in the response data with RQID, the bidirectional communication unit 33c determines whether to acquire response data (device information) included in the response data with RQID stored in the cache 36a. That is, the bidirectional communication unit 33c compares the generated request ID with the request ID included in the response data with RQID, and determines that the request data is the response data for the most recent bidirectional request if both request IDs are the same value. Response data included in the response data with RQID is acquired.
As a result, a response to a bi-directional request is obtained as in synchronous communication, and even if bi-directional communication between the printer 2 and the computer device 1 is performed asynchronously, device information different from the device information to be acquired is the computer device 1. It is possible to suppress the inconvenience of being acquired.

<第2実施形態について>
第1実施形態の印刷システム10では、デバイスプロパティ画面の開操作に応じて双方向通信部33cが生成したリクエストIDを用いていたが、この構成に限定されない。例えば、プリンタ2からのレスポンスデータ(機器情報)の受信に応じて双方向スクリプト37が生成したレスポンスID(機器情報を識別する識別情報)を用いてもよい。
以下、レスポンスIDを用いた第2実施形態の印刷システムについて説明する。以下の説明において、第1実施形態と同じ構成については、同じ符号を付して説明を適宜省略し、相違点を中心に説明する。
図12は、本発明の第2実施形態に係る印刷システム10Aの機能ブロック図である。図12に示すように、第2実施形態の印刷システム10Aは、コンピュータ装置1とプリンタ2とを備える。印刷システム10Aは、第1実施形態の印刷システム10とは、アクセス可能領域35を省略した点、及び双方向通信部33fの構成が異なる。
<About the second embodiment>
In the printing system 10 of the first embodiment, the request ID generated by the bidirectional communication unit 33c in response to the opening operation of the device property screen is used. However, the configuration is not limited to this. For example, a response ID (identification information for identifying device information) generated by the interactive script 37 in response to reception of response data (device information) from the printer 2 may be used.
Hereinafter, a printing system according to the second embodiment using a response ID will be described. In the following description, the same components as those in the first embodiment are denoted by the same reference numerals, description thereof will be omitted as appropriate, and differences will be mainly described.
FIG. 12 is a functional block diagram of a printing system 10A according to the second embodiment of the present invention. As illustrated in FIG. 12, the printing system 10 </ b> A according to the second embodiment includes a computer device 1 and a printer 2. The printing system 10A differs from the printing system 10 of the first embodiment in that the accessible area 35 is omitted and the configuration of the bidirectional communication unit 33f.

コンピュータ装置1の各機能ブロックは、記憶装置18に記憶された各種のプログラムをコンピュータ装置1のCPU11が読み出し、RAM13に展開して実行することにより実現される。
コンピュータ装置1ではOS31が動作し、OS31の上でアプリケーション32、プリンタドライバ33、ストアデバイスアプリ34、スプーラ36、及び双方向スクリプト37が動作している。
プリンタドライバ33は、例えばV4プリンタドライバであり、UI部33a、禁則スクリプト部33d、及び描画部33eを備える。UI部33aは、UI表示部33b、及び双方向通信部33fをモジュールとして備える。
双方向通信部33fは、スプーラ36に双方向リクエスト(機器情報の取得要求)を送信する双方向リクエスト送信部33gと、スプーラ36からRSID付レスポンスデータ(後述)などを取得する双方向レスポンス取得部33hと、レスポンスIDなどを記憶するレスポンスID記憶部33iとを備える。
Each functional block of the computer apparatus 1 is realized by the CPU 11 of the computer apparatus 1 reading out various programs stored in the storage device 18, developing them in the RAM 13, and executing them.
In the computer apparatus 1, an OS 31 operates, and an application 32, a printer driver 33, a store device application 34, a spooler 36, and a bidirectional script 37 operate on the OS 31.
The printer driver 33 is, for example, a V4 printer driver, and includes a UI unit 33a, a prohibition script unit 33d, and a drawing unit 33e. The UI unit 33a includes a UI display unit 33b and a bidirectional communication unit 33f as modules.
The bidirectional communication unit 33f includes a bidirectional request transmission unit 33g that transmits a bidirectional request (device information acquisition request) to the spooler 36, and a bidirectional response acquisition unit that acquires response data with RSID (described later) from the spooler 36. 33h and a response ID storage unit 33i that stores a response ID and the like.

詳細は後述するが、第2実施形態において双方向スクリプト37は、プリンタ2からレスポンスデータを受信する度にレスポンスIDを生成し、レスポンスデータにレスポンスIDを付加することでRSID付レスポンスデータを生成する。双方向スクリプト37は、生成したRSID付レスポンスデータをスプーラ36のキャッシュ36aに記憶させる。
双方向リクエスト送信部33gは、UI表示部33bから機器情報の取得要求を受け付けると、スプーラ36に双方向リクエストを送信する。スプーラ36は、双方向リクエストの受信に伴って、キャッシュ36aの記憶内容をキャッシュデータとして直ちに返信する。この時、キャッシュ36aにRSID付レスポンスデータが記憶されていれば、キャッシュデータとしてRSID付レスポンスデータが返信される。一方、キャッシュ36aにRSID付レスポンスデータが記憶されていなければ(プリンタ2との間で初回の双方向通信が行われる前であれば)、キャッシュデータとして空データ(例えばnullデータ)が返信される。
双方向レスポンス取得部33hは、スプーラ36がRSID付レスポンスデータを返信した場合、RSID付レスポンスデータに含まれるレスポンスIDをレスポンスID記憶部33iに記憶させる。なお、スプーラ36が空データを返信した場合、双方向レスポンス取得部33hは、空データをレスポンスID記憶部33iに記憶させる。
Although details will be described later, in the second embodiment, the interactive script 37 generates a response ID every time response data is received from the printer 2, and generates response data with RSID by adding the response ID to the response data. . The bidirectional script 37 stores the generated response data with RSID in the cache 36 a of the spooler 36.
The bidirectional request transmission unit 33g transmits a bidirectional request to the spooler 36 upon receiving a device information acquisition request from the UI display unit 33b. The spooler 36 immediately returns the storage contents of the cache 36a as cache data in response to the reception of the bidirectional request. At this time, if the response data with RSID is stored in the cache 36a, the response data with RSID is returned as the cache data. On the other hand, if no response data with RSID is stored in the cache 36a (before the first two-way communication with the printer 2 is performed), empty data (for example, null data) is returned as cache data. .
When the spooler 36 returns the response data with RSID, the bidirectional response acquisition unit 33h stores the response ID included in the response data with RSID in the response ID storage unit 33i. When the spooler 36 returns empty data, the bidirectional response acquisition unit 33h stores the empty data in the response ID storage unit 33i.

双方向レスポンス取得部33hは、キャッシュデータの受信から予め定められた所定時間待機した後にスプーラ36からRSID付レスポンスデータを取得し、RSID付レスポンスデータに含まれるレスポンスIDとレスポンスID記憶部33iのレスポンスIDと比較する。
両レスポンスIDが不一致であった場合、双方向レスポンス取得部33hは、レスポンスデータが更新されたと判断する。双方向レスポンス取得部33hは、レスポンスデータが更新された場合にRSID付レスポンスデータからレスポンスデータを取得する。なお、双方向レスポンス取得部33hは、レスポンスID記憶部33iに空データが記憶された状態でRSID付レスポンスデータを受信した場合も、レスポンスデータが更新されたと判断する。
RSID付レスポンスデータに含まれるレスポンスIDとレスポンスID記憶部33iのレスポンスIDが一致している場合、双方向レスポンス取得部33hは、レスポンスデータが更新されていないと判断する。この場合、双方向レスポンス取得部33hは、RSID付レスポンスデータからレスポンスデータを取得しない。
The bidirectional response acquisition unit 33h acquires response data with RSID from the spooler 36 after waiting for a predetermined time from the reception of the cache data, and includes the response ID included in the response data with RSID and the response of the response ID storage unit 33i. Compare with ID.
If the two response IDs do not match, the bidirectional response acquisition unit 33h determines that the response data has been updated. The bidirectional response acquisition unit 33h acquires response data from response data with RSID when the response data is updated. The bidirectional response acquisition unit 33h also determines that the response data has been updated when the response data with RSID is received in a state where empty data is stored in the response ID storage unit 33i.
When the response ID included in the response data with RSID matches the response ID of the response ID storage unit 33i, the bidirectional response acquisition unit 33h determines that the response data has not been updated. In this case, the bidirectional response acquisition unit 33h does not acquire response data from the response data with RSID.

第2実施形態においても、第1実施形態と同様に、同期通信のように双方向リクエストに対するレスポンスが得られ、プリンタ2とコンピュータ装置1との双方向通信が非同期で行われても、取得すべき機器情報とは異なる機器情報がコンピュータ装置1に取得されてしまう不都合を抑制できる。
さらに、この第2実施形態では、第1実施形態で説明したキュープロパティバッグ35bに対するアクセス権限がないユーザであっても、双方向通信を実現することができる。
Also in the second embodiment, as in the first embodiment, a response to a bidirectional request is obtained as in synchronous communication, and even if the bidirectional communication between the printer 2 and the computer apparatus 1 is performed asynchronously, it is acquired. The inconvenience that the device information different from the device information to be acquired is acquired by the computer apparatus 1 can be suppressed.
Furthermore, in the second embodiment, even a user who does not have access authority to the queue property bag 35b described in the first embodiment can realize bidirectional communication.

以下、第2実施形態におけるプリンタ2の機器情報の取得について詳細に説明する。
<第2実施形態における機器情報の取得シーケンス>
図13は、本発明の第2実施形態に係る機器情報の取得シーケンスを説明する図である。UI表示部33b、双方向リクエスト送信部33g、及び双方向レスポンス取得部33hは、プリンタドライバ33が備えるモジュールである。レスポンスID記憶部33iは、双方向通信部33fの記憶領域として設定される。スプーラ36はOS31のモジュールであり、双方向スクリプト37はスプーラ36によって呼び出されるスクリプトである。
Hereinafter, acquisition of device information of the printer 2 in the second embodiment will be described in detail.
<Device Information Acquisition Sequence in Second Embodiment>
FIG. 13 is a diagram for explaining a device information acquisition sequence according to the second embodiment of the present invention. The UI display unit 33b, the bidirectional request transmission unit 33g, and the bidirectional response acquisition unit 33h are modules included in the printer driver 33. The response ID storage unit 33i is set as a storage area of the bidirectional communication unit 33f. The spooler 36 is a module of the OS 31, and the bidirectional script 37 is a script called by the spooler 36.

図13に示すように、ユーザが入力装置5を操作し、プリンタドライバ33のデバイスプロパティ画面を開く操作を行うと、UI表示部33bは、機器情報を取得するための要求を双方向通信部33cに出力する(S51)。デバイスプロパティ画面を開く操作としては、例えば、図6で説明したプリンタプロパティの開操作ボタン101aの実行操作、及び図7で説明したドライバプロパティの開操作ボタン102bの実行操作が挙げられる。
当該要求に応じて、双方向リクエスト送信部33gは、双方向リクエストをスプーラ36に送信する(S52)。スプーラ36は、双方向リクエストを受信すると、キャッシュデータ(キャッシュ36aに記憶されたRSID付レスポンスデータ)を返信する。双方向レスポンス取得部33hは、RSID付レスポンスデータからレスポンスIDを取得し(S53)、レスポンスID記憶部33iに記憶させる(S54)。なお、キャッシュデータが空データであった場合、双方向レスポンス取得部33hは、キャッシュデータに基づいて空データを取得し、レスポンスID記憶部33iに記憶させる(後述するステップS72、S92において同じ)。
As shown in FIG. 13, when the user operates the input device 5 to open the device property screen of the printer driver 33, the UI display unit 33b sends a request for acquiring device information to the bidirectional communication unit 33c. (S51). The operation for opening the device property screen includes, for example, the execution operation of the printer property opening operation button 101a described in FIG. 6 and the execution operation of the driver property opening operation button 102b described in FIG.
In response to the request, the bidirectional request transmitter 33g transmits the bidirectional request to the spooler 36 (S52). When the spooler 36 receives the bidirectional request, it returns cache data (response data with RSID stored in the cache 36a). The bidirectional response acquisition unit 33h acquires the response ID from the response data with RSID (S53) and stores it in the response ID storage unit 33i (S54). When the cache data is empty data, the bidirectional response acquisition unit 33h acquires empty data based on the cache data and stores it in the response ID storage unit 33i (the same applies to steps S72 and S92 described later).

双方向リクエスト送信部33gからの双方向リクエストを受信したスプーラ36は、受信した双方向リクエストを双方向スクリプト37に送信する(S61)。スプーラ36からの双方向リクエストを受信した双方向スクリプト37は、プリンタ2に双方向リクエストを送信する(S62)。双方向スクリプト37とプリンタ2との間では同期通信が行われている。したがって、双方向スクリプト37は、プリンタ2に双方向リクエストを送信した後、プリンタ2からレスポンスデータを取得する(S63)。すなわち、プリンタ2は、双方向リクエストを受信した後、双方向スクリプト37からの機器情報の取得要求に対して、機器情報をレスポンスデータとして送信する(S63)。
双方向スクリプト37は、プリンタ2からレスポンスデータを取得すると、レスポンスIDを生成する(S64)。レスポンスIDは、プリンタ2から取得したレスポンスデータ(機器情報)を一意に識別する識別情報に相当する。レスポンスIDは、双方向スクリプト37が生成する不規則な値であり、疑似乱数生成アルゴリズムにより生成される乱数や、双方向スクリプト37がレスポンスデータを取得した日時の情報等に基づいて生成される不規則な値等である。レスポンスIDの値は、一意な値を取ることができればよいので、数値に限らず文字や記号も使用できる。また、不規則な数値等に限らず、レスポンスデータを取得する度にインクリメント(+1)されるカウントアップ値としてもよい。双方向スクリプト37は、レスポンスデータを取得する毎にレスポンスIDを生成するが、同じ値のレスポンスIDを連続して生成しない。
双方向スクリプト37は、生成したレスポンスIDをレスポンスデータに追加(付加)することでRSID付レスポンスデータを生成する(S65)。双方向スクリプト37は、RSID付レスポンスデータをスプーラ36のキャッシュ36aに記憶させる(S66)。
The spooler 36 that has received the bidirectional request from the bidirectional request transmitter 33g transmits the received bidirectional request to the bidirectional script 37 (S61). The bidirectional script 37 that has received the bidirectional request from the spooler 36 transmits the bidirectional request to the printer 2 (S62). Synchronous communication is performed between the bidirectional script 37 and the printer 2. Therefore, the bidirectional script 37 acquires response data from the printer 2 after transmitting a bidirectional request to the printer 2 (S63). That is, after receiving the bidirectional request, the printer 2 transmits the device information as response data in response to the device information acquisition request from the bidirectional script 37 (S63).
When the bidirectional script 37 acquires response data from the printer 2, it generates a response ID (S64). The response ID corresponds to identification information that uniquely identifies response data (device information) acquired from the printer 2. The response ID is an irregular value generated by the bidirectional script 37. The response ID is generated based on a random number generated by a pseudo random number generation algorithm, information on the date and time when the bidirectional script 37 acquired response data, or the like. Regular values. Since the response ID value only needs to be a unique value, not only numerical values but also characters and symbols can be used. The count value is not limited to an irregular numerical value, and may be incremented (+1) each time response data is acquired. The interactive script 37 generates a response ID every time response data is acquired, but does not continuously generate response IDs having the same value.
The bidirectional script 37 generates response data with RSID by adding (adding) the generated response ID to the response data (S65). The bidirectional script 37 stores the response data with RSID in the cache 36a of the spooler 36 (S66).

双方向レスポンス取得部33hは、レスポンスIDをレスポンスID記憶部33iに記憶させた後(S54)、予め定められた所定時間待機する(S71)。待機時間は、スプーラ36のキャッシュ36aに新たなRSID付レスポンスデータが記憶されるまでに通常必要な一定時間に定められる。
一定時間待機した後、双方向レスポンス取得部33hは、スプーラ36に対してRSID付レスポンスデータの取得要求を行う(S72)。この取得要求に応じてスプーラ36からRSID付レスポンスデータが送信(通知)される。
ステップS72の取得要求を行った時点でステップS61〜S66の処理が終了していた場合、スプーラ36のキャッシュ36aには、最新のRSID付レスポンスデータが記憶される。この場合、スプーラ36からは最新のRSID付レスポンスデータが送信される。一方、ステップS72の取得要求を行った時点でステップS61〜S66の処理が終了していなかった場合、キャッシュ36aには、ステップS52で取得したRSID付レスポンスデータが記憶されている。したがって、スプーラ36から送信されるRSID付レスポンスデータは、前回から変更されない。
The bidirectional response acquisition unit 33h stores the response ID in the response ID storage unit 33i (S54), and then waits for a predetermined time (S71). The waiting time is determined to be a fixed time that is normally required until new response data with RSID is stored in the cache 36a of the spooler 36.
After waiting for a certain period of time, the bidirectional response acquisition unit 33h requests the spooler 36 to acquire response data with RSID (S72). In response to this acquisition request, response data with RSID is transmitted (notified) from the spooler 36.
If the processing of steps S61 to S66 has been completed when the acquisition request of step S72 is made, the latest response data with RSID is stored in the cache 36a of the spooler 36. In this case, the latest response data with RSID is transmitted from the spooler 36. On the other hand, if the processing of steps S61 to S66 has not ended when the acquisition request of step S72 is made, the response data with RSID acquired in step S52 is stored in the cache 36a. Therefore, the response data with RSID transmitted from the spooler 36 is not changed from the previous time.

双方向レスポンス取得部33hは、レスポンスID記憶部33iに記憶されたレスポンスIDを読み取り(S73)、ステップS72で取得したRSID付レスポンスデータに含まれるレスポンスIDと比較する(S74)。
比較したレスポンスIDが相違した場合、双方向レスポンス取得部33hは、レスポンスデータが更新されたと判断する。言い換えれば、双方向レスポンス取得部33hは、キャッシュ36aに記憶されたRSID付レスポンスデータに含まれるレスポンスデータを取得すると判断する。この場合、双方向レスポンス取得部33hは、RSID付レスポンスデータからレスポンスデータ(機器情報)を取得し、取得した機器情報をUI表示部33bに表示させる(S81)。UI表示部33bは、例えば図11で説明した表示画面103を表示装置6に表示させる。
The bidirectional response acquisition unit 33h reads the response ID stored in the response ID storage unit 33i (S73), and compares it with the response ID included in the response data with RSID acquired in step S72 (S74).
If the compared response IDs are different, the bidirectional response acquisition unit 33h determines that the response data has been updated. In other words, the bidirectional response acquisition unit 33h determines to acquire response data included in the response data with RSID stored in the cache 36a. In this case, the bidirectional response acquisition unit 33h acquires response data (device information) from the response data with RSID, and displays the acquired device information on the UI display unit 33b (S81). For example, the UI display unit 33b displays the display screen 103 described in FIG.

一方、比較したレスポンスIDが同じ場合、双方向レスポンス取得部33hは、RSID付レスポンスデータに含まれるレスポンスデータを取得しないと判断する。この場合、双方向レスポンス取得部33hは、予め定められた所定時間待機する(S91)。
所定時間待機した後、双方向レスポンス取得部33hは、スプーラ36に対してRSID付レスポンスデータの取得要求を行う(S92)。この取得要求に応じてスプーラ36からRSID付レスポンスデータが送信(通知)される。双方向レスポンス取得部33hは、レスポンスID記憶部33iに記憶されたレスポンスIDを読み取り(S93)、ステップS92で取得したRSID付レスポンスデータに含まれるレスポンスIDと比較する(S94)。
比較したレスポンスIDが相違した場合、双方向レスポンス取得部33hは、レスポンスデータが更新されたとして、RSID付レスポンスデータからレスポンスデータ(機器情報)を取得し、取得した機器情報をUI表示部33bに表示させる(S81´)。一方、比較したデータが同じ場合、双方向レスポンス取得部33hは、上述したステップS91〜S94の処理を繰り返し行う。
On the other hand, when the compared response IDs are the same, the bidirectional response acquisition unit 33h determines that the response data included in the response data with RSID is not acquired. In this case, the bidirectional response acquisition unit 33h waits for a predetermined time (S91).
After waiting for a predetermined time, the bidirectional response acquisition unit 33h makes an acquisition request for response data with RSID to the spooler 36 (S92). In response to this acquisition request, response data with RSID is transmitted (notified) from the spooler 36. The bidirectional response acquisition unit 33h reads the response ID stored in the response ID storage unit 33i (S93), and compares it with the response ID included in the response data with RSID acquired in step S92 (S94).
If the compared response IDs are different, the bidirectional response acquisition unit 33h determines that the response data has been updated, acquires response data (device information) from the response data with RSID, and sends the acquired device information to the UI display unit 33b. It is displayed (S81 ′). On the other hand, when the compared data is the same, the bidirectional response acquisition unit 33h repeatedly performs the processes of steps S91 to S94 described above.

以上の説明から明らかなように、第2実施形態の印刷システム10Aでは、双方向スクリプト37が、プリンタ2からレスポンスデータ(機器情報)を取得した場合にレスポンスIDを生成するとともに、RSID付レスポンスデータを生成する。さらに、双方向スクリプト37は、RSID付レスポンスデータをスプーラ36のキャッシュ36aに記憶させる。双方向レスポンス取得部33hは、キャッシュデータをキャッシュ36aから取得し、RSID付レスポンスデータに含まれるレスポンスIDをレスポンスID記憶部33iに記憶させる。さらに、双方向レスポンス取得部33hは、キャッシュ36aから新たに取得したRSID付レスポンスデータのレスポンスIDとレスポンスID記憶部33iのレスポンスIDとを比較し、レスポンスID記憶部33iに記憶されたレスポンスIDとRSID付レスポンスデータのレスポンスIDが不一致の場合、レスポンスデータが更新されたと判断して、RSID付レスポンスデータのレスポンスデータを取得する。
その結果、同期通信のように双方向リクエストに対するレスポンスが得られ、プリンタ2とコンピュータ装置1との双方向通信が非同期で行われても、取得すべき機器情報とは異なる機器情報がコンピュータ装置1に取得されてしまう不都合を抑制できる。
さらに、この第2実施形態では、第1実施形態のキュープロパティバッグ35bに対するアクセス権限がないユーザであっても、双方向通信を実現することができる。
As is clear from the above description, in the printing system 10A of the second embodiment, when the interactive script 37 acquires response data (device information) from the printer 2, it generates a response ID and response data with RSID. Is generated. Further, the interactive script 37 stores the response data with RSID in the cache 36 a of the spooler 36. The bidirectional response acquisition unit 33h acquires the cache data from the cache 36a, and stores the response ID included in the response data with RSID in the response ID storage unit 33i. Further, the bidirectional response acquisition unit 33h compares the response ID of the response data with RSID newly acquired from the cache 36a with the response ID of the response ID storage unit 33i, and compares the response ID stored in the response ID storage unit 33i with the response ID stored in the response ID storage unit 33i. If the response IDs of the response data with RSID do not match, it is determined that the response data has been updated, and the response data of the response data with RSID is acquired.
As a result, a response to a bi-directional request is obtained as in synchronous communication, and even if bi-directional communication between the printer 2 and the computer device 1 is performed asynchronously, device information different from the device information to be acquired is the computer device 1. It is possible to suppress the inconvenience of being acquired.
Furthermore, in this second embodiment, even a user who does not have access authority to the queue property bag 35b of the first embodiment can implement bidirectional communication.

<変形例について>
上述の第1実施形態において、双方向通信部33cは、ステップS33の処理で、アクセス可能領域35に記憶したリクエストIDとRQID付レスポンスデータに含まれるリクエストIDとを比較していたが、この構成に限定されない。例えば、ステップS12の処理で生成したリクエストIDを双方向通信部33cが備えるキャッシュに記憶させ、ステップS33の処理では双方向通信部33cのキャッシュに記憶したリクエストIDとRQID付レスポンスデータに含まれるリクエストIDとを比較してもよい。
上述の第2実施形態において、レスポンスIDは一時的なデータとしてスプーラ36のキャッシュ36a(=揮発性の記憶手段)に記憶されていたが、この構成に限定されない。例えば、双方向スクリプト37は、レスポンスIDを不揮発性の記憶手段にデータファイルとして記憶させてもよい。レスポンスIDをデータファイルで不揮発性の記憶手段に記憶させた場合、ステップS51から開始される一連の処理が終了してもレスポンスIDを保持できるので、例えば、ステップS74の比較処理やステップS94の比較処理の後に、レスポンスIDを記憶させてもよい。
<About modification>
In the first embodiment described above, the bidirectional communication unit 33c compares the request ID stored in the accessible area 35 with the request ID included in the response data with RQID in the process of step S33. It is not limited to. For example, the request ID generated in the process of step S12 is stored in the cache included in the bidirectional communication unit 33c, and the request ID and the request data included in the response data with the RQID stored in the cache of the bidirectional communication unit 33c in the process of step S33. The ID may be compared.
In the second embodiment described above, the response ID is stored as temporary data in the cache 36a (= volatile storage means) of the spooler 36, but is not limited to this configuration. For example, the interactive script 37 may store the response ID as a data file in a nonvolatile storage unit. When the response ID is stored in the non-volatile storage means as a data file, the response ID can be held even after the series of processes started from step S51 is completed. For example, the comparison process in step S74 and the comparison in step S94 are performed. You may memorize | store response ID after a process.

上述の第1実施形態において、リクエストIDは、アクセス可能領域35が備えるキュープロパティバッグ35bに記憶されるが、双方向通信部33cからの読み出しと書き込みが許容され、双方向スクリプト37からの読み出しが許容される記憶領域であれば、キュープロパティバッグ35b以外の記憶領域を用いてもよい。
上述の各実施形態では、プリンタ2として、インクジェットプリンタを例に挙げて説明したが、プリンタ2の種類はインクジェットプリンタに限定されない。例えば、電子写真方式のプリンタであってよい。
In the first embodiment described above, the request ID is stored in the queue property bag 35b provided in the accessible area 35. However, reading and writing from the bidirectional communication unit 33c are permitted, and reading from the bidirectional script 37 is allowed. A storage area other than the queue property bag 35b may be used as long as it is an allowable storage area.
In each of the above-described embodiments, the ink jet printer is described as an example of the printer 2, but the type of the printer 2 is not limited to the ink jet printer. For example, an electrophotographic printer may be used.

上述の各実施形態では、コンピュータ装置1に接続される周辺機器として、プリンタ2を例示したが、周辺機器はプリンタ2に限定されない。例えば、複合機、コピー機、スキャナ、デジタルスチルカメラ、プロジェクタ、及び電子黒板など、画像形成に係る処理を行う装置を挙げることができる。
上述の各実施形態では、コンピュータ装置1(情報処理装置)とプリンタ2(画像処理装置)とを備える印刷システム10、10Aを例示したが、本発明の適用対象は印刷システム10、10Aに限られない。例えば、画像処理に係る処理を行う画像処理システムに適用できる。
In each of the above-described embodiments, the printer 2 is exemplified as the peripheral device connected to the computer apparatus 1, but the peripheral device is not limited to the printer 2. For example, a device that performs processing related to image formation, such as a multifunction peripheral, a copier, a scanner, a digital still camera, a projector, and an electronic blackboard can be given.
In each of the above-described embodiments, the printing systems 10 and 10A including the computer apparatus 1 (information processing apparatus) and the printer 2 (image processing apparatus) have been illustrated. However, the application target of the present invention is limited to the printing systems 10 and 10A. Absent. For example, the present invention can be applied to an image processing system that performs processing related to image processing.

[本発明の実施態様例と作用、効果のまとめ]
<第一の実施態様>
本態様に係る情報処理装置[コンピュータ装置1]は、画像処理装置[プリンタ2]の状態を示す状態情報[機器情報]を取得するものであり、画像処理装置から取得した状態情報と当該状態情報の識別情報[リクエストID、レスポンスID]とを対応付けて記憶する記憶手段[スプーラ36のキャッシュ36a]と、状態情報を要求する要求手段[UI表示部33b(S11、S51)]と、記憶手段に記憶された状態情報と識別情報とを、要求手段による要求に応じて通知する通知手段[双方向通信部33c(S32、S35)、双方向レスポンス取得部33h(S72、S92)]と、通知手段によって通知された識別情報に基づいて、記憶手段に記憶された状態情報を取得するか否かを判断する判断手段[双方向通信部33c(S33、S36)、双方向レスポンス取得部33h(S74、S94)]と、を備えることを特徴とする。
本態様においては、記憶手段に状態情報と当該状態情報の識別情報とを対応付けて記憶し、通知手段によって通知された識別情報に基づいて記憶手段に記憶された状態情報を取得するか否かを判断しているので、情報処理装置と画像処理装置との間の通信が非同期で行われても、取得すべき状態情報とは異なる状態情報が情報処理装置に取得されてしまう不都合を抑制できる。
[Summary of Embodiments of the Present Invention and Summary of Functions and Effects]
<First embodiment>
The information processing apparatus [computer apparatus 1] according to this aspect acquires state information [apparatus information] indicating the state of the image processing apparatus [printer 2], and the state information acquired from the image processing apparatus and the state information. Storage means [cache 36a of spooler 36] for storing the identification information [request ID, response ID] in association with each other, request means [UI display unit 33b (S11, S51)] for requesting status information, and storage means Notification means [two-way communication unit 33c (S32, S35), two-way response acquisition unit 33h (S72, S92)], which notifies the status information and identification information stored in the request in response to a request by the request unit, and notification Based on the identification information notified by the means, determination means [bidirectional communication unit 33c (S 3, S36), characterized in that it comprises a two-way response acquisition unit 33h (S74, S94)], the.
In this aspect, whether or not the state information and the identification information of the state information are stored in association with each other in the storage unit, and the state information stored in the storage unit is acquired based on the identification information notified by the notification unit Therefore, even if the communication between the information processing device and the image processing device is performed asynchronously, it is possible to suppress the inconvenience that the information processing device acquires state information different from the state information to be acquired. .

<第二の実施態様>
本態様に係る情報処理装置[コンピュータ装置1]において、要求手段による要求に応じて識別情報を生成する識別情報生成手段[双方向通信部33c(S12)]と、画像処理装置から取得した状態情報に識別情報を付加した付加後状態情報[RQID付レスポンスデータ]を、記憶手段に記憶させる記憶制御手段[双方向スクリプト37(S26)]と、を備え、判断手段[双方向通信部33c(S33、S36)]は、付加後状態情報に含まれる識別情報と識別情報生成手段が生成した識別情報とが一致する場合、付加後状態情報に含まれる状態情報を取得すると判断することを特徴とする。
本態様においては、両識別情報が一致する場合には、付加後状態情報は取得すべき状態情報であると判断でき、両識別情報が不一致の場合には、付加後状態情報は取得すべきでない状態情報であると判断できる。その結果、被制御装置と情報処理装置との双方向通信が非同期で行われても、取得すべき状態情報とは異なる状態情報が情報処理装置に取得されてしまう不都合を抑制できる。
<Second embodiment>
In the information processing apparatus [computer apparatus 1] according to this aspect, identification information generating means [bidirectional communication unit 33c (S12)] for generating identification information in response to a request from the requesting means, and status information acquired from the image processing apparatus Storage control means [bidirectional script 37 (S26)] for storing post-addition state information [response data with RQID] with identification information added to the storage means, and determining means [bidirectional communication unit 33c (S33). , S36)] is characterized in that, when the identification information included in the post-addition state information matches the identification information generated by the identification information generating means, it is determined to acquire the state information included in the post-addition state information. .
In this aspect, if both identification information matches, it can be determined that the post-addition status information is the status information to be acquired. If both identification information does not match, the post-addition status information should not be acquired. It can be determined that this is state information. As a result, even when two-way communication between the controlled apparatus and the information processing apparatus is performed asynchronously, it is possible to suppress inconvenience that the information processing apparatus acquires state information different from the state information to be acquired.

<第三の実施態様>
本態様に係る情報処理装置[コンピュータ装置1]において、通知手段[双方向通信部33c(S35)]は、付加後状態情報に含まれる識別情報と識別情報生成手段が生成した識別情報とが不一致の場合、予め定められた待機時間の経過後に、記憶手段に記憶された付加後状態情報を通知することを特徴とする。
本態様においては、付加後状態情報に含まれる識別情報と識別情報記憶手段に記憶された識別情報とが不一致であっても、その後、新たな付加後状態情報が状態情報記憶手段に記憶され、両識別情報が一致した場合には取得すべき状態情報を取得することができる。
<Third embodiment>
In the information processing apparatus [computer apparatus 1] according to this aspect, the notification means [two-way communication unit 33c (S35)] does not match the identification information included in the post-addition state information with the identification information generated by the identification information generation means. In this case, the post-addition state information stored in the storage means is notified after elapse of a predetermined waiting time.
In this aspect, even if the identification information included in the post-addition state information and the identification information stored in the identification information storage unit do not match, the new post-addition state information is stored in the state information storage unit. When both pieces of identification information match, the state information to be acquired can be acquired.

<第四の実施態様>
本態様に係る情報処理装置[コンピュータ装置1]において、識別情報生成手段[双方向通信部33c(S12、S13)]は、生成した識別情報を、付加後状態情報を生成する付加後状態情報生成手段[双方向スクリプト37(S25)]及び判断手段から読み出し可能な識別情報記憶手段[アクセス可能領域35のキュープロパティバッグ35b]に記憶させることを特徴とする。
本態様においては、識別情報を直接送受信できなくても、識別情報記憶手段を介して識別情報の受け渡しを行うことができる。
<Fourth embodiment>
In the information processing apparatus [computer apparatus 1] according to this aspect, the identification information generation means [two-way communication unit 33c (S12, S13)] generates post-addition state information generation that generates post-addition state information from the generated identification information. The information is stored in the means [bidirectional script 37 (S25)] and the identification information storage means [queue property bag 35b of the accessible area 35] readable from the judging means.
In this aspect, even if the identification information cannot be directly transmitted and received, the identification information can be transferred via the identification information storage means.

<第五の実施態様>
本態様に係る情報処理装置[コンピュータ装置1]において、識別情報生成手段[双方向通信部33c(S12)]は、要求手段による要求[UI表示部33b(S11)]が行われるごとに、識別情報を不規則な値で生成することを特徴とする。
本態様においては、要求手段による要求が行われるごとに、識別情報が不規則な値で生成されるので、取得すべき状態情報とは異なる状態情報が情報処理装置に取得されてしまう不都合を高いレベルで抑制できる。
<Fifth embodiment>
In the information processing apparatus [computer apparatus 1] according to this aspect, the identification information generating means [two-way communication unit 33c (S12)] performs identification every time a request [UI display unit 33b (S11)] is made by the requesting means. The information is generated with an irregular value.
In this aspect, each time a request is made by the requesting means, the identification information is generated with an irregular value. Therefore, there is a high inconvenience that the information processing apparatus acquires state information different from the state information to be acquired. Can be suppressed by level.

<第六の実施態様>
本態様に係る情報処理装置[コンピュータ装置1]において、画像処理装置[プリンタ2]から状態情報[機器情報]を取得した場合に、識別情報[レスポンスID]を生成する識別情報生成手段[双方向スクリプト37(S64)]と、画像処理装置から取得した状態情報に識別情報を付加した付加後状態情報[RSID付レスポンスデータ]を、記憶手段[スプーラ36のキャッシュ36a]に記憶させる第1記憶制御手段[双方向スクリプト37(S66)]と、記憶手段に記憶された付加後状態情報に含まれる識別情報を、識別情報記憶手段[レスポンスID記憶部33i]に記憶させる第2記憶制御手段[双方向レスポンス取得部33h(S54)]と、を備え、判断手段[双方向レスポンス取得部33h(S74、S94)]は、付加後状態情報に含まれる識別情報と識別情報記憶手段に記憶された識別情報とが不一致の場合に、付加後状態情報に含まれる状態情報を取得すると判断することを特徴とする。
本態様においては、両識別情報が不一致の場合には、付加後状態情報は取得すべき状態情報であると判断でき、両識別情報が一致する場合には、付加後状態情報は取得すべきでない状態情報であると判断できる。その結果、被制御装置と情報処理装置との双方向通信が非同期で行われても、取得すべき状態情報とは異なる状態情報が情報処理装置に取得されてしまう不都合を抑制できる。
<Sixth embodiment>
In the information processing apparatus [computer apparatus 1] according to this aspect, when the status information [apparatus information] is acquired from the image processing apparatus [printer 2], the identification information generating means for generating the identification information [response ID] [bidirectional] Script 37 (S64)] and first storage control for storing post-addition state information [response data with RSID] obtained by adding identification information to the state information acquired from the image processing apparatus in storage means [cache 36a of spooler 36] Means [two-way script 37 (S66)] and second storage control means [both for storing identification information included in post-addition state information stored in storage means in identification information storage means [response ID storage unit 33i] Direction response acquisition unit 33h (S54)], and the determination means [bidirectional response acquisition unit 33h (S74, S94)] When identification information included in the additional state information after the identification information stored in the identification information storage unit do not match, characterized in that it determines to acquire the state information included in the additional state information after.
In this aspect, when both identification information does not match, it can be determined that the post-addition status information is the status information to be acquired, and when both identification information matches, the post-addition status information should not be acquired. It can be determined that this is state information. As a result, even when two-way communication between the controlled apparatus and the information processing apparatus is performed asynchronously, it is possible to suppress inconvenience that the information processing apparatus acquires state information different from the state information to be acquired.

<第七の実施態様>
本態様に係る情報処理装置[コンピュータ装置1]において、通知手段[双方向レスポンス取得部33h(S92)]は、付加後状態情報に含まれる識別情報と識別情報記憶手段に記憶された識別情報とが一致する場合、予め定められた待機時間の経過後に、記憶手段に記憶された付加後状態情報を通知することを特徴とする。
本態様においては、付加後状態情報に含まれる識別情報と識別情報記憶手段に記憶された識別情報とが一致しても、その後、新たな付加後状態情報が状態情報記憶手段に記憶され、両識別情報が不一致になった場合には取得すべき状態情報を取得することができる。
<Seventh embodiment>
In the information processing apparatus [computer apparatus 1] according to the present aspect, the notification means [bidirectional response acquisition unit 33h (S92)] includes the identification information included in the post-addition state information and the identification information stored in the identification information storage means. If they match, the post-addition state information stored in the storage means is notified after elapse of a predetermined waiting time.
In this aspect, even if the identification information included in the post-addition state information matches the identification information stored in the identification information storage unit, new post-addition state information is stored in the state information storage unit, and both When the identification information does not match, the status information to be acquired can be acquired.

<第八の実施態様>
本態様に係る情報処理装置[コンピュータ装置1]において、識別情報生成手段[双方向スクリプト37(S64)]は、画像処理装置から状態情報を取得するごとに、識別情報を不規則な値で生成することを特徴とする。
本態様においては、画像処理装置から状態情報を取得するごとに、識別情報が不規則な値で生成されるので、取得すべき状態情報とは異なる状態情報が情報処理装置に取得されてしまう不都合を高いレベルで抑制できる。
<Eighth embodiment>
In the information processing apparatus [computer apparatus 1] according to this aspect, the identification information generating means [bidirectional script 37 (S64)] generates the identification information with an irregular value every time status information is acquired from the image processing apparatus. It is characterized by doing.
In this aspect, each time the status information is acquired from the image processing device, the identification information is generated with an irregular value, so that the status information different from the status information to be acquired is acquired by the information processing device. Can be suppressed at a high level.

1…コンピュータ装置(情報処理装置),2…プリンタ(画像処理装置),10、10A…印刷システム(画像処理システム),31…OS,33…プリンタドライバ,33a…UI部,33b…UI表示部(要求手段),33c…双方向通信部(通知手段、判断手段、識別情報生成手段),33h…双方向レスポンス取得部(通知手段、判断手段、第2記憶制御手段),33i…レスポンスID記憶部(識別情報記憶手段),34…ストアデバイスアプリ,35…アクセス可能領域(識別情報記憶手段),35a…ドライバプロパティバッグ,35b…キュープロパティバッグ,35c…ユーザプロパティバッグ,35d…独自領域,36…スプーラ,36a…キャッシュ(記憶手段),37…双方向スクリプト(記憶制御手段、第1記憶制御手段、識別情報生成手段、付加後状態情報生成手段) DESCRIPTION OF SYMBOLS 1 ... Computer apparatus (information processing apparatus), 2 ... Printer (image processing apparatus), 10, 10A ... Printing system (image processing system), 31 ... OS, 33 ... Printer driver, 33a ... UI part, 33b ... UI display part (Requesting means), 33c ... Bidirectional communication unit (notifying means, judging means, identification information generating means), 33h ... Bidirectional response acquiring part (notifying means, judging means, second storage control means), 33i ... Response ID storage Part (identification information storage means), 34 ... store device application, 35 ... accessible area (identification information storage means), 35a ... driver property bag, 35b ... queue property bag, 35c ... user property bag, 35d ... unique area, 36 ... Spooler, 36a ... Cache (storage means), 37 ... Bidirectional script (storage control means, first storage) Control means, identification information generating means, the additional state information after generating means)

特開2016−21157公報JP, 2006-2157, A

Claims (11)

画像処理装置の状態を示す状態情報を取得する情報処理装置であって、
前記画像処理装置から取得した前記状態情報と当該状態情報の識別情報とを対応付けて記憶する記憶手段と、
前記状態情報を要求する要求手段と、
前記記憶手段に記憶された前記状態情報と前記識別情報とを、前記要求手段による要求に応じて通知する通知手段と、
前記通知手段によって通知された前記識別情報に基づいて、前記記憶手段に記憶された前記状態情報を取得するか否かを判断する判断手段と、
を備えることを特徴とする情報処理装置。
An information processing apparatus that acquires state information indicating a state of an image processing apparatus,
Storage means for storing the state information acquired from the image processing apparatus and the identification information of the state information in association with each other;
Requesting means for requesting said status information;
Notification means for notifying the status information and the identification information stored in the storage means in response to a request by the request means;
Determination means for determining whether or not to acquire the state information stored in the storage means based on the identification information notified by the notification means;
An information processing apparatus comprising:
前記要求手段による要求に応じて前記識別情報を生成する識別情報生成手段と、
前記画像処理装置から取得した前記状態情報に前記識別情報を付加した付加後状態情報を、前記記憶手段に記憶させる記憶制御手段と、を備え、
前記判断手段は、前記付加後状態情報に含まれる前記識別情報と前記識別情報生成手段が生成した前記識別情報とが一致する場合、前記付加後状態情報に含まれる前記状態情報を取得すると判断することを特徴とする請求項1に記載の情報処理装置。
Identification information generating means for generating the identification information in response to a request by the request means;
Storage control means for storing post-addition status information obtained by adding the identification information to the status information acquired from the image processing apparatus in the storage means,
The determination unit determines to acquire the state information included in the post-addition state information when the identification information included in the post-addition state information matches the identification information generated by the identification information generation unit. The information processing apparatus according to claim 1.
前記通知手段は、前記付加後状態情報に含まれる前記識別情報と前記識別情報生成手段が生成した前記識別情報とが不一致の場合、予め定められた待機時間の経過後に、前記記憶手段に記憶された前記付加後状態情報を通知することを特徴とする請求項2に記載の情報処理装置。   If the identification information included in the post-addition state information and the identification information generated by the identification information generation unit do not match, the notification unit is stored in the storage unit after a predetermined waiting time has elapsed. The information processing apparatus according to claim 2, wherein the post-addition state information is notified. 前記識別情報生成手段は、生成した前記識別情報を、前記付加後状態情報を生成する付加後状態情報生成手段及び前記判断手段から読み出し可能な識別情報記憶手段に記憶させることを特徴とする請求項2又は3に記載の情報処理装置。   The identification information generation unit stores the generated identification information in an after-addition state information generation unit that generates the post-addition state information and an identification information storage unit that can be read from the determination unit. The information processing apparatus according to 2 or 3. 前記識別情報生成手段は、前記要求手段による要求が行われるごとに、前記識別情報を不規則な値で生成することを特徴とする請求項2から4の何れか1項に記載の情報処理装置。   5. The information processing apparatus according to claim 2, wherein the identification information generation unit generates the identification information with an irregular value every time a request is made by the request unit. 6. . 前記画像処理装置から前記状態情報を取得した場合に、前記識別情報を生成する識別情報生成手段と、
前記画像処理装置から取得した前記状態情報に前記識別情報を付加した付加後状態情報を、前記記憶手段に記憶させる第1記憶制御手段と、
前記記憶手段に記憶された前記付加後状態情報に含まれる前記識別情報を、識別情報記憶手段に記憶させる第2記憶制御手段と、を備え、
前記判断手段は、前記付加後状態情報に含まれる前記識別情報と前記識別情報記憶手段に記憶された前記識別情報とが不一致の場合に、前記付加後状態情報に含まれる前記状態情報を取得すると判断することを特徴とする請求項1に記載の情報処理装置。
Identification information generating means for generating the identification information when the state information is acquired from the image processing device;
First storage control means for storing in the storage means post-addition state information obtained by adding the identification information to the state information acquired from the image processing apparatus;
A second storage control unit for storing the identification information included in the post-addition state information stored in the storage unit in an identification information storage unit;
The determination unit obtains the state information included in the post-addition state information when the identification information included in the post-addition state information does not match the identification information stored in the identification information storage unit. The information processing apparatus according to claim 1, wherein the determination is performed.
前記通知手段は、前記付加後状態情報に含まれる前記識別情報と前記識別情報記憶手段に記憶された前記識別情報とが一致する場合、予め定められた待機時間の経過後に、前記記憶手段に記憶された前記付加後状態情報を通知することを特徴とする請求項6に記載の情報処理装置。   When the identification information included in the post-addition state information matches the identification information stored in the identification information storage unit, the notification unit stores the storage unit after a predetermined waiting time has elapsed. The information processing apparatus according to claim 6, wherein the post-addition state information is notified. 前記識別情報生成手段は、前記画像処理装置から前記状態情報を取得するごとに、前記識別情報を不規則な値で生成することを特徴とする請求項6又は7に記載の情報処理装置。   The information processing apparatus according to claim 6, wherein the identification information generation unit generates the identification information with an irregular value every time the state information is acquired from the image processing apparatus. 画像処理装置の状態を示す状態情報を取得する情報処理方法であって、
前記画像処理装置から取得された状態情報と当該状態情報の識別情報とを対応付けて記憶手段に記憶させるステップと、
前記記憶手段に記憶された前記状態情報と前記識別情報とを、前記状態情報の取得要求に応じて通知するステップと、
通知された前記識別情報に基づいて、前記記憶手段に記憶された前記状態情報を取得するか否かを判断するステップと、
を備えることを特徴とする情報処理方法。
An information processing method for acquiring state information indicating a state of an image processing device,
Storing the state information acquired from the image processing apparatus and the identification information of the state information in association with each other in a storage unit;
Notifying the status information and the identification information stored in the storage means in response to the acquisition request for the status information;
Determining whether or not to acquire the state information stored in the storage unit based on the notified identification information;
An information processing method comprising:
請求項9に記載の情報処理方法における各ステップをコンピュータに実行させることを特徴とするプログラム。   A program for causing a computer to execute each step in the information processing method according to claim 9. 画像処理装置と、前記画像処理装置の状態を示す状態情報を取得する情報処理装置と、を備える画像処理システムであって、
前記情報処理装置は、
前記画像処理装置から取得された状態情報と当該状態情報の識別情報とを対応付けて記憶する記憶手段と、
前記状態情報を要求する要求手段と、
前記記憶手段に記憶された前記状態情報と前記識別情報とを、前記要求手段による要求に応じて通知する通知手段と、
前記通知手段によって通知された前記識別情報に基づいて、前記記憶手段に記憶された前記状態情報を取得するか否かを判断する判断手段と、
を備えることを特徴とする画像処理システム。
An image processing system comprising: an image processing device; and an information processing device that acquires state information indicating a state of the image processing device,
The information processing apparatus includes:
Storage means for storing the state information acquired from the image processing apparatus and the identification information of the state information in association with each other;
Requesting means for requesting said status information;
Notification means for notifying the status information and the identification information stored in the storage means in response to a request by the request means;
Determination means for determining whether or not to acquire the state information stored in the storage means based on the identification information notified by the notification means;
An image processing system comprising:
JP2017155653A 2017-07-06 2017-08-10 Information processing equipment, information processing methods, programs, and image processing systems Active JP6911622B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US16/007,346 US10452326B2 (en) 2017-07-06 2018-06-13 Information processing apparatus, information processing method, and non-transitory computer-readable storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2017132794 2017-07-06
JP2017132794 2017-07-06

Publications (2)

Publication Number Publication Date
JP2019016333A true JP2019016333A (en) 2019-01-31
JP6911622B2 JP6911622B2 (en) 2021-07-28

Family

ID=65358560

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017155653A Active JP6911622B2 (en) 2017-07-06 2017-08-10 Information processing equipment, information processing methods, programs, and image processing systems

Country Status (1)

Country Link
JP (1) JP6911622B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020136835A (en) * 2019-02-15 2020-08-31 株式会社リコー Information processing device, image processing system, and program
WO2023190148A1 (en) * 2022-03-30 2023-10-05 ブラザー工業株式会社 Support program

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07271527A (en) * 1994-03-31 1995-10-20 Canon Inc Printer device and printer system and its control method
JP2001109594A (en) * 1999-10-12 2001-04-20 Seiko Epson Corp Medium recording status information acquisition control program, status information acquisition control device, and status information acquisition control method
JP2009042801A (en) * 2007-08-06 2009-02-26 Brother Ind Ltd Communication system and communication device
JP2014219742A (en) * 2013-05-01 2014-11-20 キヤノン株式会社 Information processing device, information processing method, and program
JP2016177608A (en) * 2015-03-20 2016-10-06 セイコーエプソン株式会社 Printing control device and printing control program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07271527A (en) * 1994-03-31 1995-10-20 Canon Inc Printer device and printer system and its control method
JP2001109594A (en) * 1999-10-12 2001-04-20 Seiko Epson Corp Medium recording status information acquisition control program, status information acquisition control device, and status information acquisition control method
JP2009042801A (en) * 2007-08-06 2009-02-26 Brother Ind Ltd Communication system and communication device
JP2014219742A (en) * 2013-05-01 2014-11-20 キヤノン株式会社 Information processing device, information processing method, and program
JP2016177608A (en) * 2015-03-20 2016-10-06 セイコーエプソン株式会社 Printing control device and printing control program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020136835A (en) * 2019-02-15 2020-08-31 株式会社リコー Information processing device, image processing system, and program
JP7243265B2 (en) 2019-02-15 2023-03-22 株式会社リコー Information processing device, image processing system, and program
WO2023190148A1 (en) * 2022-03-30 2023-10-05 ブラザー工業株式会社 Support program

Also Published As

Publication number Publication date
JP6911622B2 (en) 2021-07-28

Similar Documents

Publication Publication Date Title
US7525676B2 (en) System and method for controlling access to programming options of a multifunction device
US10162584B1 (en) Printing system and program
JP7094789B2 (en) Server systems, printing devices, control methods, and communication systems
KR100872955B1 (en) Information processing apparatus, peripheral apparatus control method, and computer readable medium
US7916334B2 (en) Print managing apparatus, print managing method, and computer program
US11575801B2 (en) Printing method, information processing system, and non-transitory computer-readable storage medium storing control program
US11611668B2 (en) Image processing system that generates job setting information based on interaction with user of information processing apparatus using chatbot
US11645024B2 (en) Resuming print job by using accounting information
US10974516B2 (en) Device, method for controlling device, and storage medium
EP2230630B1 (en) Printer, and program for its operation screen.
JP6911622B2 (en) Information processing equipment, information processing methods, programs, and image processing systems
US7746493B2 (en) Job management apparatus and method of recognizing job completion, and control program used therewith
US7148978B1 (en) Printing process, printing processor, and recording medium in which printer driver program is recorded
JP2007128357A (en) Printer, printing system, and control method of printer
US10452326B2 (en) Information processing apparatus, information processing method, and non-transitory computer-readable storage medium
CN115981577A (en) Server, control method, and storage medium
JP2019164446A (en) Information processing apparatus, information processing method, program and printing system
JP5472347B2 (en) Server, print control method of job by server, and print control program
JP2023023244A (en) print processing system
JP2006260379A (en) Print setting system, client, print setting program
JP2007219576A (en) Printer driver selection program and recording medium
US9262116B2 (en) Print control apparatus, image forming apparatus, image forming system, and method of controlling for spooling printing data and handling status information about a work of the image forming apparatus throughout printing process
US11829821B2 (en) Print system in which a print job is generated in association with an identification (ID) of at least one printing apparatus, user information and a print code that is issued by server system for printing file, information processing apparatus, and printing apparatus
JP2007136697A (en) Image forming system
US20230059211A1 (en) Image forming system that transmits print job to transfer destination determined out of plurality of image forming apparatuses, and image forming method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200604

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20210205

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210301

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210316

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210507

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: 20210608

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210621

R151 Written notification of patent or utility model registration

Ref document number: 6911622

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151