JP2007316985A - Device, event registration method and event notification system - Google Patents
Device, event registration method and event notification system Download PDFInfo
- Publication number
- JP2007316985A JP2007316985A JP2006146609A JP2006146609A JP2007316985A JP 2007316985 A JP2007316985 A JP 2007316985A JP 2006146609 A JP2006146609 A JP 2006146609A JP 2006146609 A JP2006146609 A JP 2006146609A JP 2007316985 A JP2007316985 A JP 2007316985A
- Authority
- JP
- Japan
- Prior art keywords
- event
- registered
- information processing
- expiration date
- registration
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
Description
本発明は、情報処理装置に通知されるイベントを登録可能なデバイス装置、イベント登録方法およびイベント通知システムに関する。 The present invention relates to a device apparatus capable of registering an event notified to an information processing apparatus, an event registration method, and an event notification system.
近年、デジタル複合機等のデバイス装置は、ホストコンピュータからイベント登録要求を受けると、そのイベントをデバイス装置内部のメモリに登録することが一般的に行われている。この種のイベントとしては、「エラー発生」や「ジョブ終了」等、さまざまな種類のものが存在する。 In recent years, when a device device such as a digital multifunction peripheral receives an event registration request from a host computer, it is generally performed to register the event in a memory inside the device device. There are various types of events such as “error occurrence” and “job end”.
また、特許文献1には、デバイス装置に登録されているポートが存在する場合、そこに通知されるイベントを要求元のクライアントに変更(リダイレクト)して通知することが示されており、この場合、ホストコンピュータ側でイベント制御が行われる。
しかしながら、上記従来のデバイス装置では、以下に掲げる問題があった。デバイス装置側でイベント登録が行われる場合、イベントの種類が多いことから、デバイス装置内部では1つのホストコンピュータに対し、多数のイベントを登録することが必要であった。この場合、デバイス装置において、一つのコンピュータに対して複数の異なるイベント登録を行ってしまうことにより、デバイス装置におけるイベント登録内容の管理の効率が悪くなってしまう。例えば、一般的にデジタル複合機等のデバイス装置では、メモリリソースが限られているので、イベント登録用として使用できるメモリが不足するおそれがあった。 However, the conventional device apparatus has the following problems. When event registration is performed on the device apparatus side, since there are many types of events, it is necessary to register a large number of events in one host computer in the device apparatus. In this case, if the device apparatus performs a plurality of different event registrations for one computer, the efficiency of managing event registration contents in the device apparatus deteriorates. For example, in general, a device device such as a digital multi-function peripheral has a limited memory resource, which may cause a shortage of memory that can be used for event registration.
そこで、本発明は、同一の情報処理装置から要求される複数のイベントを登録する際にも、効率よくイベント登録内容を管理することができるデバイス装置、イベント登録方法およびイベント通知システムを提供することを目的とする。 Therefore, the present invention provides a device apparatus, an event registration method, and an event notification system that can efficiently manage event registration contents even when registering a plurality of events requested from the same information processing apparatus. With the goal.
上記目的を達成するために、本発明のデバイス装置は、情報処理装置に接続され、登録されているイベントが発生した場合、当該発生したイベントを前記情報処理装置に通知するデバイス装置であって、前記情報処理装置からのイベント登録要求に従って、前記情報処理装置に通知されるイベントを登録するイベント登録手段と、前記イベント登録要求の応答として、前記イベントに関する情報を通知する応答通知手段と、前記通知されるイベントを登録する際、既に同一の情報処理装置に通知されるイベントが登録されている場合、当該登録されているイベントの種類および前記登録が要求されたイベントの種類を合わせた1つのイベントに統合し、前記登録されたイベントを前記統合されたイベントに更新する登録更新手段とを備えたことを特徴とする。 In order to achieve the above object, a device apparatus of the present invention is a device apparatus that is connected to an information processing apparatus and notifies the information processing apparatus of the generated event when a registered event occurs, Event registration means for registering an event to be notified to the information processing apparatus according to an event registration request from the information processing apparatus, response notification means for notifying information about the event as a response to the event registration request, and the notification When an event to be notified to the same information processing apparatus has already been registered, one event combining the type of the registered event and the type of the event for which the registration is requested is registered. And a registration / update means for updating the registered event to the integrated event. The features.
本発明のデバイス装置は、前記デバイス装置で発生する第1のイベントを該イベントの通知先と該イベント通知の有効期限と対応付けて記憶する記憶手段と、前記デバイス装置で発生する第2のイベントに関するイベント登録要求を受信する受信手段と、前記受信手段で受信したイベント登録要求によって指定された通知先が、前記記憶手段に記憶されているか否かを判定する判定手段と、前記判定手段によって記憶されていると判定された場合、前記記憶手段に記憶された前記第1のイベントに対応する有効期限を、前記受信手段によって受信したイベント登録要求によって指定された有効期限に更新する更新手段と、 を有することを特徴とする。 The device apparatus of the present invention includes a storage unit that stores a first event that occurs in the device apparatus in association with a notification destination of the event and an expiration date of the event notification, and a second event that occurs in the device apparatus A receiving means for receiving an event registration request relating to, a determining means for determining whether or not a notification destination designated by the event registration request received by the receiving means is stored in the storage means, and storing by the determining means An update means for updating the expiration date corresponding to the first event stored in the storage means to the expiration date specified by the event registration request received by the reception means, It is characterized by having.
本発明のイベント登録方法は、情報処理装置に接続されたデバイス装置で発生し、前記情報処理装置に通知されるイベントを前記デバイス装置に登録するイベント登録方法であって、前記情報処理装置からのイベント登録要求に従って、前記情報処理装置に通知されるイベントを登録するイベント登録ステップと、前記イベント登録要求の応答として、前記イベントに関する情報を通知する応答通知ステップと、前記通知されるイベントを登録する際、既に同一の情報処理装置に通知されるイベントが登録されている場合、当該登録されているイベントの種類および前記登録が要求されたイベントの種類を合わせた1つのイベントに統合し、前記登録されたイベントを前記統合されたイベントに更新する登録更新ステップとを有することを特徴とする。 An event registration method of the present invention is an event registration method for registering an event that occurs in a device connected to an information processing apparatus and is notified to the information processing apparatus in the device apparatus. In accordance with an event registration request, an event registration step for registering an event to be notified to the information processing apparatus, a response notification step for notifying information related to the event as a response to the event registration request, and registering the notified event When an event to be notified to the same information processing apparatus has already been registered, the registered event type and the event type for which registration is requested are integrated into one event, and the registration is performed. And a registration update step for updating a registered event to the integrated event. To.
本発明のイベント登録方法は、情報処理装置に接続されたデバイス装置で発生し、前記情報処理装置に通知されるイベントを前記デバイス装置に登録するイベント登録方法であって、前記デバイス装置で発生する第1のイベントを該イベントの通知先と該イベント通知の有効期限と対応付けて記憶媒体に記憶する記憶ステップと、前記デバイス装置で発生する第2のイベントに関するイベント登録要求を受信する受信ステップと、前記受信ステップで受信したイベント登録要求によって指定された通知先が、前記記憶媒体に記憶されているか否かを判定する判定ステップと、前記判定ステップによって記憶されていると判定された場合、前記記憶媒体に記憶された前記第1のイベントに対応する有効期限を、前記受信ステップで受信したイベント登録要求によって指定された有効期限に更新する更新ステップと、を有することを特徴とする。 An event registration method of the present invention is an event registration method for registering an event that occurs in a device device connected to an information processing apparatus and is notified to the information processing apparatus in the device apparatus, and that occurs in the device apparatus. A storage step of storing a first event in a storage medium in association with a notification destination of the event and an expiration date of the event notification; a receiving step of receiving an event registration request relating to a second event generated in the device device; , If it is determined that the notification destination specified by the event registration request received in the reception step is stored in the storage medium, and if it is determined that the notification destination is stored in the determination step, The expiration date corresponding to the first event stored in the storage medium is stored in the event received in the receiving step. An updating step of updating the specified expiration date by preparative registration request, and having a.
本発明のイベント通知システムは、情報処理装置およびデバイス装置がネットワークに接続され、前記デバイス装置で登録されているイベントが発生した場合、当該発生したイベントを前記情報処理装置に通知するイベント通知システムであって、前記情報処理装置からのイベント登録要求に従って、前記情報処理装置に通知されるイベントを前記デバイス装置に登録するイベント登録手段と、前記イベント登録要求の応答として、前記イベントに関する情報を前記情報処理装置に通知する応答通知手段と、前記通知されるイベントを登録する際、既に同一の情報処理装置に通知されるイベントが登録されている場合、当該登録されているイベントの種類および前記登録が要求されたイベントの種類を合わせた1つのイベントに統合し、前記デバイス装置に登録されたイベントを前記統合されたイベントに更新する登録更新手段とを備えたことを特徴とする。 The event notification system according to the present invention is an event notification system that, when an information processing apparatus and a device apparatus are connected to a network, and an event registered in the device apparatus occurs, notifies the information processing apparatus of the event that has occurred. In accordance with an event registration request from the information processing apparatus, event registration means for registering an event notified to the information processing apparatus in the device apparatus, and information on the event as the response to the event registration request When registering a response notification means for notifying a processing device and the notified event, if an event to be notified to the same information processing device has already been registered, the type of the registered event and the registration are Combine the requested event types into one event, Characterized in that a registered in vise assembly event and a registration update means for updating said integration event.
本発明のイベント通知システムは、情報処理装置およびデバイス装置がネットワークに接続され、前記デバイス装置で登録されているイベントが発生した場合、当該発生したイベントを前記情報処理装置に通知するイベント通知システムであって、前記デバイス装置で発生する第1のイベントを該イベントの通知先と該イベント通知の有効期限と対応付けて記憶する記憶手段と、前記デバイス装置で発生する第2のイベントに関するイベント登録要求を受信する受信手段と、前記受信手段で受信したイベント登録要求によって指定された通知先が、前記記憶手段に記憶されているか否かを判定する判定手段と、前記判定手段によって記憶されていると判定された場合、前記記憶手段に記憶された前記第1のイベントに対応する有効期限を、前記受信手段によって受信したイベント登録要求によって指定された有効期限に更新する更新手段と、を有することを特徴とする。 The event notification system according to the present invention is an event notification system that, when an information processing apparatus and a device apparatus are connected to a network, and an event registered in the device apparatus occurs, notifies the information processing apparatus of the event that has occurred. Storage means for storing a first event generated in the device device in association with a notification destination of the event and an expiration date of the event notification, and an event registration request relating to a second event generated in the device device Receiving means, determining means for determining whether or not the notification destination specified by the event registration request received by the receiving means is stored in the storage means, and stored by the determining means If determined, the expiration date corresponding to the first event stored in the storage means And having updating means for updating the specified expiration date, the by event registration request received by the receiving means.
本発明に係るデバイス装置によれば、同一の情報処理装置から要求される複数のイベントを登録する際にも、効率よくイベント登録内容を管理することができる。これにより、例えばイベント登録数がオーバーしたり、重複したイベントが登録された場合、同じ情報処理装置に対して同様のイベントが複数送信されてしまう無駄を省くことができる。 The device apparatus according to the present invention can efficiently manage event registration contents when registering a plurality of events requested from the same information processing apparatus. Thereby, for example, when the number of event registrations exceeds or when duplicate events are registered, it is possible to eliminate wasteful transmission of a plurality of similar events to the same information processing apparatus.
本発明のデバイス装置、イベント登録方法およびイベント通知システムの実施の形態について図面を参照しながら説明する。本実施形態のデバイス装置は、ネットワーク印刷システムを構築する印刷装置に適用される。図1は実施の形態におけるネットワーク印刷システムの構成を示す図である。 Embodiments of a device device, an event registration method, and an event notification system of the present invention will be described with reference to the drawings. The device apparatus of this embodiment is applied to a printing apparatus that constructs a network printing system. FIG. 1 is a diagram illustrating a configuration of a network printing system according to an embodiment.
このネットワーク印刷システムは、ホストコンピュータ21、22およびデバイス装置である印刷装置10がLAN等のネットワーク50を介して接続された構成を有する。なお、ネットワーク50に接続されるホストコンピュータ、デバイス装置の数は特に限定されない。
This network printing system has a configuration in which host
ホストコンピュータ21、22は、それぞれネットワーク50を介して印刷装置10にイベント登録を要求する。印刷装置10は、イベント発生時、ネットワーク50経由でホストコンピュータ21、22にイベントを通知する。
The
図2は印刷装置10のハードウェア構成を示すブロック図である。CPU101は、制御プログラムを実行し、印刷装置全体を制御する。ROM102には、ブートプログラム、固定パラメータ、後述するイベント登録処理プログラムを含む制御プログラム等が格納されている。RAM103は、CPU101が制御プログラムを実行する際、一時的なデータの格納などに使用される。また、RAM103には、後述するイベント登録テーブル121が格納されている。ハードディスクドライブ(HDD)108は、印刷データの格納など、様々なデータの格納に使用される。タイマ112は、タイマ処理における経過時刻の管理を行う。
FIG. 2 is a block diagram illustrating a hardware configuration of the
プリンタI/F制御部104は、プリンタ部110を制御する。不揮発性メモリ(NVRAM)105は、印刷装置の各種設定値を保持する。パネル制御部106は、オペレーションパネル109を制御し、オペレーションパネル109における各種情報の表示や使用者からの指示入力を行う。ネットワークI/F制御部107は、LAN50を介してデータの送受信を制御する。
The printer I /
バス115には、CPU101、ROM102、RAM103、HDD108、タイマ112、プリンタI/F制御部104、NVRAM105、パネル制御部106およびネットワークI/F制御部107が接続される。CPU101からの制御信号や各装置間のデータ信号は、バス115を介して送受信される。
図3はホストコンピュータ21および印刷装置10間のメッセージシーケンスを示す図である。なお、ここでは、ホストコンピュータ21について示すが、ホストコンピュータ22においても同様である。ホストコンピュータ21は、自身のイベント登録用URLとして、“http://172.24.160.230:1024/event”を有する。
FIG. 3 is a diagram showing a message sequence between the
まず、ホストコンピュータ21は、デバイス装置である印刷装置10に、“Subscribe”メッセージを送信し、エラーイベントの登録を要求する(T1)。印刷装置10は、これに応答し、ホストコンピュータ21に、“Subscribe Response”メッセージを送信し、イベントのID(ここでは、ID=5)、および有効期限(ここでは、2005/12/15)を通知する(T2)。
First, the
そして、印刷装置10でエラーイベントが発生すると(T3)、印刷装置10は、“Notification”メッセージをホストコンピュータ21に通知する(T4)。この“Notification”メッセージには、ID=5、有効期限(2005/12/15)が設定されている。ホストコンピュータ21は、“Notification”メッセージの応答として、“Notification Response”メッセージを送信する(T5)。この“Notification Response”メッセージには、“OK”が含まれている。
When an error event occurs in the printing apparatus 10 (T3), the
つぎに、ホストコンピュータ21は、印刷装置10に、“Subscribe”メッセージを送信し、ジョブ終了イベントの登録を要求する(T6)。印刷装置10は、ホストコンピュータ21に“Subscribe Response”メッセージを送信し、イベントのID=5、有効期限(2005/12/30)を通知する(T7)。ここで通知されるイベントIDは、エラーイベント用に既に登録されているIDである。印刷装置10は、ホストコンピュータ21のイベントが既に登録されていることを検知し、既に登録されているIDと同じID=5を通知する。
Next, the
そして、印刷装置10でエラーイベントが発生すると(T8)、“Notification”メッセージをホストコンピュータ21に通知する(T9)。この“Notification”メッセージには、ID=5、ステップT7で通知された新しい有効期限(2005/12/30)が設定されている。 When an error event occurs in the printing apparatus 10 (T8), a “Notification” message is notified to the host computer 21 (T9). In this “Notification” message, ID = 5 and a new expiration date (2005/12/30) notified in step T7 is set.
ホストコンピュータ21は、“Notification”メッセージの応答として、“Notification Response”メッセージを送信する(T10)。この“Notification Response”メッセージには、“OK”が含まれている。
The
そして、印刷装置10でジョブ終了イベントが発生すると(T11)、印刷装置10は、“Notification”メッセージをホストコンピュータ21に通知する(T12)。この“Notification”メッセージには、ステップT7の“Subscription Response”メッセージで通知されたデータ(ID=5、有効期限2005/12/30)が設定されている。ホストコンピュータ21は、“Notification”メッセージの応答して、“Notification Response”メッセージを送信する(T13)。この“Notification Response”メッセージには、“OK”が含まれている。
When a job end event occurs in the printing apparatus 10 (T11), the
図4は“Subscribe”パケットを示す図である。“Subscribe”パケットは、ホストコンピュータからデバイス装置に送られるイベント登録要求であり、本実施形態では、XML形式で記述される。<wsa:Address>タグで指定されている部分には、ホストコンピュータ21のURLがセットされる。本実施形態では、“http://172.24.160.230:1024/event”がセットされている。<wsa:Type>タグで指定されている部分には、イベントタイプがセットされる。本実施形態では、エラーイベントを意味する“error”がセットされている。<wea:Expires>タグで指定されている部分には、イベント通知の有効期限をセットする。即ち、デバイスにおいてエラーが生じた際にホストコンピュータに通知する有効期限をセットする。本実施形態では、“2005/12/15”をセットしている。尚、イベントタイプや有効期限の情報は、ホストコンピュータの操作部を通してユーザによって入力可能であってもよい。また、有効期限の情報に関しては、ホストコンピュータで動作するオペレーティングシステムが予め決められた有効期限を自動的にセットするようにしてもよい。
FIG. 4 is a diagram showing a “Subscribe” packet. The “Subscribe” packet is an event registration request sent from the host computer to the device apparatus, and is described in the XML format in this embodiment. The URL of the
図5は“Subscribe Response”パケットを示す図である。“Subscribe Response”パケットは、ホストコンピュータから送られたイベント登録要求に対する応答であり、デバイス装置からホストコンピュータに送られる。“Subscribe Response”パケットは、本実施形態では、XML形式で記述される。<wse:Id>タグで指定されている部分には、イベントのIDがセットされる。本実施形態では、“5”がセットされている。<wse:Expires>タグで指定されている部分には、有効期限がセットされる。本実施形態では、“2005/12/15”がセットされている。 FIG. 5 is a diagram showing a “Subscribe Response” packet. The “Subscribe Response” packet is a response to the event registration request sent from the host computer, and is sent from the device apparatus to the host computer. In this embodiment, the “Subscribe Response” packet is described in the XML format. An event ID is set in a portion specified by the <wse: Id> tag. In this embodiment, “5” is set. An expiration date is set in the portion specified by the <wse: Expires> tag. In the present embodiment, “2005/12/15” is set.
図6は“Notification”パケットを示す図である。“Notification”パケットは、デバイス装置からホストコンピュータに送られるイベント通知であり、本実施形態では、XML形式で記述される。<wse:Id>タグで指定されている部分には、イベントのIDがセットされる。本実施形態では、“5”がセットされている。<wse:Type>タグで指定されている部分には、イベントタイプがセットされる。本実施形態では、エラーイベントを示す“error”がセットされている。<wse:Expires>タグで指定されている部分には、有効期限がセットされる。本実施形態では、“2005/12/15”がセットされている。 FIG. 6 is a diagram showing a “Notification” packet. The “Notification” packet is an event notification sent from the device apparatus to the host computer, and is described in the XML format in this embodiment. An event ID is set in a portion specified by the <wse: Id> tag. In this embodiment, “5” is set. The event type is set in the portion specified by the <wse: Type> tag. In the present embodiment, “error” indicating an error event is set. An expiration date is set in the portion specified by the <wse: Expires> tag. In the present embodiment, “2005/12/15” is set.
図7は“Notification Response”パケットを示す図である。“Notification Response”パケットは、デバイス装置から送られたイベント通知に対する応答であり、ホストコンピュータからデバイス装置に送られる。<wse:Status>タグで指定されている部分には、イベントの受信ステータスがセットされる。本実施形態では、“OK”がセットされている。 FIG. 7 is a diagram showing a “Notification Response” packet. The “Notification Response” packet is a response to the event notification sent from the device apparatus, and is sent from the host computer to the device apparatus. An event reception status is set in a portion specified by a <wse: Status> tag. In the present embodiment, “OK” is set.
図8はデバイス装置である印刷装置10におけるイベント登録処理手順を示すフローチャートである。この処理プログラムはROM102に格納されており、CPU101によって実行される。印刷装置10がホストコンピュータ21からイベント登録通知を受信すると、このイベント登録処理を開始する。
FIG. 8 is a flowchart showing an event registration processing procedure in the
まず、RAM103に格納されているイベント登録テーブル121を検索し、受信したイベント登録通知の送信元であるホストコンピュータ21が既に登録されているか否かを判別する(ステップS1)。イベント登録通知の送信元であるホストコンピュータ21が未登録である場合、新しいイベントIDを発行し、イベントをイベント登録テーブル121に登録する(ステップS5)。この後、本処理を終了する。
First, the event registration table 121 stored in the
一方、ステップS1でホストコンピュータ21が既に登録されている場合、既に登録済みのイベントに新しいイベントタイプを追加する(ステップS2)。つまり、登録済みのイベントタイプと新しいイベントタイプを合わせて1つのイベントに統合する。さらに、ホストコンピュータから通知された有効期限が元の有効期限より長いか否かを判別する(ステップS3)。具体的には、ホストコンピュータから送信された“Subscribe”パケットで指定された有効期限が、イベント登録テーブル121に記憶されている同一通知先のイベントに対応する有効期限とを比較することによって、判別する。通知された有効期限が元の有効期限より長い場合、イベント登録テーブル121に存在する既に登録済みのイベントの有効期限を新しい有効期限に置き換える(ステップS4)。この後、本処理を終了する。一方、通知された有効期限が元の有効期限と同じかもしくは短い場合、有効期限を更新することなく、本処理を終了する。このように、イベント登録を統合するにあたって、イベント登録の有効期限を、より長い有効期限に合わせることで、イベント登録の有効期限をより長く維持できる。
On the other hand, if the
図9はイベント登録テーブル121を示す図である。このイベント登録テーブル121には、イベントID、URL、有効期限、イベントタイプの入力項目(エントリ)が設けられている。イベント登録テーブル121には、各イベントID毎に、イベント発生時の通知先を示すURLとイベント通知の有効期限と、イベント通知するイベントのタイプがそれぞれ対応付けて記憶されている。また、同一のURLに対するイベントは、同一のエントリとして登録されている。本実施形態では、イベントID5のエントリには、エラーイベントを示す“error”、およびジョブ終了通知を示す“job−end”イベントタイプが登録されている。
FIG. 9 is a diagram showing the event registration table 121. This event registration table 121 is provided with input items (entries) of event ID, URL, expiration date, and event type. In the event registration table 121, for each event ID, a URL indicating a notification destination when an event occurs, an expiration date of the event notification, and an event type for event notification are stored in association with each other. Also, events for the same URL are registered as the same entry. In the present embodiment, an “error” indicating an error event and a “job-end” event type indicating a job end notification are registered in the
図10はイベント削除処理手順を示すフローチャートである。この処理プログラムは、印刷装置10内のROM102に格納されており、CPU101によって所定の周期毎に実行される。まず、イベント登録テーブル121を参照し(ステップS11)、有効期限の切れているイベントが登録されているか否かを判別する(ステップS12)。有効期限の切れているイベントが登録されている場合、このイベントが登録されているエントリをイベント登録テーブル121から削除する(ステップS13)。この後、本処理を終了する。一方、ステップS12で有効期限の切れているイベントが登録されていない場合、そのまま本処理を終了する。
FIG. 10 is a flowchart showing an event deletion processing procedure. This processing program is stored in the
このように、本実施形態のデバイス装置によれば、同一のホストコンピュータから要求される複数のイベントを登録する際、1つのイベントに統合することで、印刷装置10の内部メモリであるRAM103を効率良く使用することができる。
As described above, according to the device apparatus of the present embodiment, when registering a plurality of events requested from the same host computer, the
なお、本発明は、上記実施形態の構成に限られるものではなく、特許請求の範囲で示した機能、または本実施形態の構成が持つ機能が達成できる構成であればどのようなものであっても適用可能である。 The present invention is not limited to the configuration of the above-described embodiment, and any configuration can be used as long as the functions shown in the claims or the functions of the configuration of the present embodiment can be achieved. Is also applicable.
例えば、上記実施形態では、既に登録済みのイベントに新しいイベントタイプを追加する際、通知された有効期限が元の有効期限より長い場合に置き換えていたが、短い場合に置き換えるようにしてもよい。図11は他の実施形態におけるイベント登録処理手順を示すフローチャートである。図8と同一のステップ処理については同一の符号を付すことにより、その説明を省略する。 For example, in the above embodiment, when a new event type is added to an already registered event, it is replaced when the notified expiration date is longer than the original expiration date, but may be replaced when it is shorter. FIG. 11 is a flowchart showing an event registration processing procedure in another embodiment. The same step processes as those in FIG. 8 are denoted by the same reference numerals, and the description thereof is omitted.
ステップS2で既に登録済みのイベントに新しいイベントタイプを追加する際、通知された有効期限が元の有効期限より短いか否かを判別する(ステップS3A)。通知された有効期限が元の有効期限より短い場合、ステップS4でイベント登録テーブル121に存在する既に登録済みのイベントの有効期限を新しい有効期限に置き換える。このように、複数のイベントタイプの中から、最短の有効期限に合わせることで、登録されているイベントの有効期限を短くすることができる。これにより、RAM103の使用量を抑えることができる。
When adding a new event type to the event already registered in step S2, it is determined whether or not the notified expiration date is shorter than the original expiration date (step S3A). If the notified expiration date is shorter than the original expiration date, the expiration date of the already registered event existing in the event registration table 121 is replaced with a new expiration date in step S4. In this way, by matching the shortest validity period among a plurality of event types, the validity period of the registered event can be shortened. Thereby, the usage amount of the
上記実施形態では、既に登録済みのイベントに新しいイベントタイプを追加する際、通知された有効期限が元の有効期限より長いか、短いかを判定し、何れかの有効期限に合わせていた。しかし、その判断を行わず、新しい有効期限が元の有効期限より長いか短いかに関わらず、イベント登録テーブル121に存在する既に登録済みのイベントの有効期限を新しい有効期限に置き換えるようにしてもよい。 In the above-described embodiment, when a new event type is added to an already registered event, it is determined whether the notified expiration date is longer or shorter than the original expiration date, and any expiration date is matched. However, without making this determination, the validity period of an already registered event existing in the event registration table 121 may be replaced with a new validity period regardless of whether the new validity period is longer or shorter than the original validity period. .
また、上記実施形態では、登録済みのイベントと新しいイベントを統合する際、印刷装置10はホストコンピュータ21の承認を得ていなかったが、承認を得るようにしてもよい。図12は他の実施形態におけるホストコンピュータ40および印刷装置10間のメッセージシーケンスを示す図である。ここで、ホストコンピュータ40は、自身のイベント登録用URLとして、“http://172.24.160.231:1024/event”を有する。
In the above embodiment, when the registered event and the new event are integrated, the
まず、ホストコンピュータ40は、デバイス装置である印刷装置10に、“Subscribe”メッセージを送信し、エラーイベントの登録を要求する(T21)。印刷装置10は、これに応答し、ホストコンピュータ40に、“Subscribe Response”メッセージを送信し、イベントのID(ここでは、ID=5)、および有効期限(ここでは、2005/11/15)を通知する(T22)。
First, the
さらに、ホストコンピュータ40は、印刷装置10に、“Subscribe”メッセージを送信し、ジョブ終了イベントの登録を要求する(T23)。印刷装置10は、ホストコンピュータ40に“Subscribe Response”メッセージを送信し、イベントのID=5、有効期限(2005/11/30)を通知する(T24)。ここで通知されるイベントIDは、エラーイベント用に既に登録されているIDである。
Further, the
そして、印刷装置10は、イベントタイプをまとめて1つのイベントに統合(マージ)する。そして、“Notification”メッセージをホストコンピュータ40に通知し、イベントを統合したことの承認を請う(T25)。この“Notification”メッセージには、ID=5、イベント種類:エラー、ジョブ終了、有効期限(2005/11/30)が設定されている。
Then, the
ホストコンピュータ40は、“Notification”メッセージの応答として、“Notification Response”メッセージを送信する(T26)。この“Notification Response”メッセージには、ホストコンピュータ40が承認する場合、“OK”が含まれ、承認しない場合、“NG”が含まれる。具体的には、T25において、ホストコンピュータ40が“Notification”メッセージを受信すると、ホストコンピュータ40の表示画面上に、ユーザに判断を促す画面が表示される。例えば、「イベントを統合してもよいですか?」という旨を表示し、ホストコンピュータを操作するユーザにOK又はNGの判断を促す。ホストコンピュータ40は、ユーザがOKを選択した場合には、OKを含む“Notification Response”を送信し、ユーザがNGを選択した場合には、NGを含む“Notification Response”を送信する。ホストコンピュータ40からNGを含む“Notification Response”を受信した場合、印刷装置10は、別々のイベントとして登録し直す。
The
これにより、ホストコンピュータ40を操作するユーザは、イベントの登録状態を把握することができ、イベントを統合するか否かを選択することができる。なお、ここでは、印刷装置10は、イベントを統合した後に、ホストコンピュータ40から承認を得ていたが、承認を得てからイベントを統合するようにしてもよい。
Thereby, the user who operates the
また、上記実施形態では、デバイス装置として、印刷装置が用いられたが、印刷装置に限らず、ファクシミリ装置、スキャナ装置、複合機、複写機などであってもよい。また、イベントが通知される情報処理装置としては、ホストコンピュータに限らず、デバイス装置と同様の構成を有したものでもよい。 In the above embodiment, a printing apparatus is used as the device apparatus. However, the printing apparatus is not limited to a printing apparatus, and may be a facsimile apparatus, a scanner apparatus, a multifunction machine, a copying machine, or the like. Further, the information processing apparatus to which the event is notified is not limited to the host computer, and may have the same configuration as the device apparatus.
また、本発明の目的は、以下によっても達成される。即ち、前述した各実施の形態の機能を実現するソフトウェアのプログラムコードを記憶した記憶媒体を、システム或いは装置に供給する。そのシステム或いは装置のコンピュータ(またはCPUやMPU等)が記憶媒体に格納されたプログラムコードを読み出して実行する。 The object of the present invention is also achieved by the following. That is, a storage medium storing software program codes for realizing the functions of the above-described embodiments is supplied to the system or apparatus. The computer (or CPU, MPU, etc.) of the system or apparatus reads out and executes the program code stored in the storage medium.
この場合、記憶媒体から読み出されたプログラムコード自体が前述した各実施の形態の機能を実現することになる。また、そのプログラムコード及び該プログラムコードを記憶した記憶媒体は本発明を構成することになる。 In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiments. The program code and a storage medium storing the program code constitute the present invention.
また、プログラムコードを供給するための記憶媒体として、例えば、フロッピー(登録商標)ディスク、ハードディスク、光磁気ディスク、CD−ROM、CD−R、CD−RWを用いることができる。また、DVD−ROM、DVD−RAM、DVD−RW、DVD+RW等の光ディスク、磁気テープ、不揮発性のメモリカード、ROM等を用いることができる。または、ネットワークを介してプログラムコードをダウンロードしてもよい。 Further, for example, a floppy (registered trademark) disk, a hard disk, a magneto-optical disk, a CD-ROM, a CD-R, or a CD-RW can be used as a storage medium for supplying the program code. Further, an optical disc such as a DVD-ROM, a DVD-RAM, a DVD-RW, a DVD + RW, a magnetic tape, a nonvolatile memory card, a ROM, or the like can be used. Alternatively, the program code may be downloaded via a network.
また、コンピュータが読み出したプログラムコードを実行することにより、前述した各実施の形態の機能が実現されるだけではなく、以下の場合も含まれる。即ち、そのプログラムコードの指示に基づき、コンピュータ上で稼動しているOS(オペレーティングシステム)等が実際の処理の一部または全部を行う。このような処理によって前述した各実施の形態の機能が実現される場合も含まれる。 Further, by executing the program code read by the computer, not only the functions of the above-described embodiments are realized, but also the following cases are included. That is, based on the instruction of the program code, an OS (operating system) running on the computer performs part or all of the actual processing. The case where the functions of the above-described embodiments are realized by such processing is also included.
さらに、記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれる。この後、そのプログラムコードの指示に基づき、その拡張機能を拡張ボードや拡張ユニットに備わるCPU等が実際の処理の一部または全部を行う。このような処理によって前述した各実施の形態の機能が実現される場合も含まれる。 Further, the program code read from the storage medium is written in a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer. Thereafter, based on an instruction of the program code, a CPU or the like provided with the extension function in the extension board or the extension unit performs part or all of the actual processing. The case where the functions of the above-described embodiments are realized by such processing is also included.
10 印刷装置
21、22、40 ホストコンピュータ
50 ネットワーク
101 CPU
102 ROM
103 RAM
121 イベント登録テーブル
10
102 ROM
103 RAM
121 Event registration table
Claims (11)
前記情報処理装置からのイベント登録要求に従って、前記情報処理装置に通知されるイベントを登録するイベント登録手段と、
前記イベント登録要求の応答として、前記イベントに関する情報を通知する応答通知手段と、
前記通知されるイベントを登録する際、既に同一の情報処理装置に通知されるイベントが登録されている場合、当該登録されているイベントの種類および前記登録が要求されたイベントの種類を合わせた1つのイベントに統合し、前記登録されたイベントを前記統合されたイベントに更新する登録更新手段とを備えたことを特徴とするデバイス装置。 A device device that is connected to an information processing apparatus and notifies the information processing apparatus of the event that has occurred when a registered event occurs,
Event registration means for registering an event to be notified to the information processing device according to an event registration request from the information processing device;
As a response to the event registration request, response notification means for notifying information about the event;
When an event to be notified to the same information processing apparatus has already been registered when registering the notified event, the registered event type and the event type for which registration is requested are combined 1 A device apparatus comprising: a registration updating unit that integrates the event into one event and updates the registered event to the integrated event.
前記登録更新手段は、前記登録されたイベントを更新する際、前記有効期限を最も長いイベントの種類に応じて設定することを特徴とする請求項1記載のデバイス装置。 The response notifying means notifies the event identification information, the event type and the expiration date as information related to the event,
The device according to claim 1, wherein the registration updating unit sets the expiration date according to a type of the longest event when updating the registered event.
前記登録更新手段は、前記登録されたイベントを更新する際、前記有効期限を最も短いイベントの種類に応じて設定することを特徴とする請求項1記載のデバイス装置。 The response notifying means notifies the event identification information, the event type and the expiration date as information related to the event,
2. The device apparatus according to claim 1, wherein when the registered event is updated, the registration update unit sets the expiration date according to a type of the shortest event.
前記デバイス装置で発生する第1のイベントを該イベントの通知先と該イベント通知の有効期限と対応付けて記憶する記憶手段と、
前記デバイス装置で発生する第2のイベントに関するイベント登録要求を受信する受信手段と、
前記受信手段で受信したイベント登録要求によって指定された通知先が、前記記憶手段に記憶されているか否かを判定する判定手段と、
前記判定手段によって記憶されていると判定された場合、前記記憶手段に記憶された前記第1のイベントに対応する有効期限を、前記受信手段によって受信したイベント登録要求によって指定された有効期限に更新する更新手段と、
を有することを特徴とするデバイス装置。 A device device,
Storage means for storing a first event generated in the device device in association with a notification destination of the event and an expiration date of the event notification;
Receiving means for receiving an event registration request relating to a second event occurring in the device device;
Determining means for determining whether the notification destination specified by the event registration request received by the receiving means is stored in the storage means;
When it is determined that the information is stored by the determination unit, the expiration date corresponding to the first event stored in the storage unit is updated to the expiration date specified by the event registration request received by the reception unit. Updating means to
A device apparatus comprising:
前記情報処理装置からのイベント登録要求に従って、前記情報処理装置に通知されるイベントを登録するイベント登録ステップと、
前記イベント登録要求の応答として、前記イベントに関する情報を通知する応答通知ステップと、
前記通知されるイベントを登録する際、既に同一の情報処理装置に通知されるイベントが登録されている場合、当該登録されているイベントの種類および前記登録が要求されたイベントの種類を合わせた1つのイベントに統合し、前記登録されたイベントを前記統合されたイベントに更新する登録更新ステップとを有することを特徴とするイベント登録方法。 An event registration method for registering an event that occurs in a device device connected to an information processing device and is notified to the information processing device in the device device,
In accordance with an event registration request from the information processing device, an event registration step of registering an event to be notified to the information processing device;
As a response to the event registration request, a response notification step for notifying information about the event;
When an event to be notified to the same information processing apparatus has already been registered when registering the notified event, the registered event type and the event type for which registration is requested are combined 1 And a registration update step of updating the registered event to the integrated event.
前記デバイス装置で発生する第1のイベントを該イベントの通知先と該イベント通知の有効期限と対応付けて記憶媒体に記憶する記憶ステップと、
前記デバイス装置で発生する第2のイベントに関するイベント登録要求を受信する受信ステップと、
前記受信ステップで受信したイベント登録要求によって指定された通知先が、前記記憶媒体に記憶されているか否かを判定する判定ステップと、
前記判定ステップによって記憶されていると判定された場合、前記記憶媒体に記憶された前記第1のイベントに対応する有効期限を、前記受信ステップで受信したイベント登録要求によって指定された有効期限に更新する更新ステップと、
を有することを特徴とするイベント登録方法。 An event registration method for registering an event that occurs in a device device connected to an information processing device and is notified to the information processing device in the device device,
Storing a first event generated in the device device in a storage medium in association with a notification destination of the event and an expiration date of the event notification;
A receiving step of receiving an event registration request relating to a second event occurring in the device device;
A determination step of determining whether the notification destination specified by the event registration request received in the reception step is stored in the storage medium;
When it is determined that it is stored in the determination step, the expiration date corresponding to the first event stored in the storage medium is updated to the expiration date specified by the event registration request received in the reception step. An update step to
An event registration method characterized by comprising:
前記情報処理装置からのイベント登録要求に従って、前記情報処理装置に通知されるイベントを前記デバイス装置に登録するイベント登録手段と、
前記イベント登録要求の応答として、前記イベントに関する情報を前記情報処理装置に通知する応答通知手段と、
前記通知されるイベントを登録する際、既に同一の情報処理装置に通知されるイベントが登録されている場合、当該登録されているイベントの種類および前記登録が要求されたイベントの種類を合わせた1つのイベントに統合し、前記デバイス装置に登録されたイベントを前記統合されたイベントに更新する登録更新手段とを備えたことを特徴とするイベント通知システム。 When an information processing apparatus and a device apparatus are connected to a network and an event registered in the device apparatus occurs, the event notification system notifies the information processing apparatus of the event that has occurred,
Event registration means for registering an event notified to the information processing apparatus in the device apparatus in accordance with an event registration request from the information processing apparatus;
As a response to the event registration request, response notification means for notifying the information processing apparatus of information related to the event;
When an event to be notified to the same information processing apparatus has already been registered when registering the notified event, the registered event type and the event type for which registration is requested are combined 1 An event notification system, comprising: a registration updating unit that integrates an event registered into the device device and updates the event registered in the device device into the integrated event.
前記デバイス装置で発生する第1のイベントを該イベントの通知先と該イベント通知の有効期限と対応付けて記憶する記憶手段と、
前記デバイス装置で発生する第2のイベントに関するイベント登録要求を受信する受信手段と、
前記受信手段で受信したイベント登録要求によって指定された通知先が、前記記憶手段に記憶されているか否かを判定する判定手段と、
前記判定手段によって記憶されていると判定された場合、前記記憶手段に記憶された前記第1のイベントに対応する有効期限を、前記受信手段によって受信したイベント登録要求によって指定された有効期限に更新する更新手段と、
を有することを特徴とするイベント通知システム。 When an information processing apparatus and a device apparatus are connected to a network and an event registered in the device apparatus occurs, the event notification system notifies the information processing apparatus of the event that has occurred,
Storage means for storing a first event generated in the device device in association with a notification destination of the event and an expiration date of the event notification;
Receiving means for receiving an event registration request relating to a second event occurring in the device device;
Determining means for determining whether the notification destination specified by the event registration request received by the receiving means is stored in the storage means;
When it is determined that the information is stored by the determination unit, the expiration date corresponding to the first event stored in the storage unit is updated to the expiration date specified by the event registration request received by the reception unit. Updating means to
An event notification system comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006146609A JP2007316985A (en) | 2006-05-26 | 2006-05-26 | Device, event registration method and event notification system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006146609A JP2007316985A (en) | 2006-05-26 | 2006-05-26 | Device, event registration method and event notification system |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2007316985A true JP2007316985A (en) | 2007-12-06 |
Family
ID=38850780
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2006146609A Pending JP2007316985A (en) | 2006-05-26 | 2006-05-26 | Device, event registration method and event notification system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2007316985A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009230477A (en) * | 2008-03-24 | 2009-10-08 | Ricoh Co Ltd | Device, method and program for notifying event |
JP2013134528A (en) * | 2011-12-26 | 2013-07-08 | Canon Inc | Distribution device, control method, and computer program |
JP2013200626A (en) * | 2012-03-23 | 2013-10-03 | Fuji Xerox Co Ltd | Control device, image output apparatus, image output system, and program |
KR101360190B1 (en) * | 2012-03-23 | 2014-02-11 | 김호연지기 | Apparatus for management event in Social Networking Service and method for the same |
-
2006
- 2006-05-26 JP JP2006146609A patent/JP2007316985A/en active Pending
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009230477A (en) * | 2008-03-24 | 2009-10-08 | Ricoh Co Ltd | Device, method and program for notifying event |
JP2013134528A (en) * | 2011-12-26 | 2013-07-08 | Canon Inc | Distribution device, control method, and computer program |
JP2013200626A (en) * | 2012-03-23 | 2013-10-03 | Fuji Xerox Co Ltd | Control device, image output apparatus, image output system, and program |
KR101360190B1 (en) * | 2012-03-23 | 2014-02-11 | 김호연지기 | Apparatus for management event in Social Networking Service and method for the same |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5522080B2 (en) | Printing system and image forming apparatus | |
US7392299B2 (en) | Configuration setting system for network system | |
JP5786613B2 (en) | Management device | |
JP5019867B2 (en) | Server device, network device, data providing location providing method, data providing location providing program, and recording medium | |
JP2007274588A (en) | Electronic apparatus and control method in the apparatus | |
KR101337151B1 (en) | Information processing apparatus that identifies transmission source, and control method therefor | |
JP2009296128A (en) | Information processor, control method for information processor, and computer program | |
JP2007316985A (en) | Device, event registration method and event notification system | |
JPH11212793A (en) | Picture processor | |
US9575695B2 (en) | Image recording apparatus having an improve usability of the apparatus in the event of an occurrence of an error | |
US7634552B2 (en) | Communication system, information-processing device, and program | |
JP5786612B2 (en) | Management device | |
JP2009271827A (en) | Management device, management method, and program | |
US11108668B2 (en) | Server, non-transitory computer-readable medium storing computer-readable instructions for server and non-transitory computer-readable medium storing computer-readable instructions for terminal device | |
JPH11161443A (en) | Network printer system | |
JP4652092B2 (en) | Frame relay device | |
JP4552575B2 (en) | Image forming apparatus | |
JP2008152428A (en) | Management device, management method, storage medium and program | |
US20210142131A1 (en) | Server, non-transitory computer-readable recording medium storing computer-readable instructions for server, and method executed by server | |
JP2014182412A (en) | Information processor, information processing method and program | |
US11880616B2 (en) | Information processing system, control method therefor, and computer-readable storage medium | |
JP4394054B2 (en) | Image forming apparatus and control program | |
JP2008198172A (en) | Image formation system | |
JP2006209704A (en) | Information processing system | |
JP2021164154A (en) | Image processing device and computer programs for the same |