JP2021120197A - Printer and communication processing program - Google Patents

Printer and communication processing program Download PDF

Info

Publication number
JP2021120197A
JP2021120197A JP2020013940A JP2020013940A JP2021120197A JP 2021120197 A JP2021120197 A JP 2021120197A JP 2020013940 A JP2020013940 A JP 2020013940A JP 2020013940 A JP2020013940 A JP 2020013940A JP 2021120197 A JP2021120197 A JP 2021120197A
Authority
JP
Japan
Prior art keywords
information
printer
state information
program
management server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2020013940A
Other languages
Japanese (ja)
Inventor
裕之 山岡
Hiroyuki Yamaoka
裕之 山岡
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.)
Brother Industries Ltd
Original Assignee
Brother Industries 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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2020013940A priority Critical patent/JP2021120197A/en
Publication of JP2021120197A publication Critical patent/JP2021120197A/en
Pending legal-status Critical Current

Links

Images

Abstract

To improve convenience to a manager by displaying state information in an always optimum mode in a management server.SOLUTION: A printer 14 includes: a printing engine 51; and a CPU 41. The printer communicates with an external intermediation device 12 communicating with a management server 11 with a display section 11A through the Internet. A second program 34 executes: specification information acquisition processing for acquiring display specification information or specification related information in the display section 11A of the management server 11; mode setting processing for variably setting a transmission mode of the state information regarding a changed state to be transmitted when the state of the printer 14 changes according to the display specification information or the specification related information acquired in the specification information acquisition processing; and state information transmission processing for transmitting the state information corresponding to the change in the state of the printer 14 in the mode set in the mode setting processing to the external intermediation device 12.SELECTED DRAWING: Figure 9

Description

本発明は、被印刷媒体に印刷を行う印刷装置、及び、電子機器において実行される通信処理プログラムに関する。 The present invention relates to a printing apparatus that prints on a printing medium and a communication processing program executed in an electronic device.

インターネット上の管理サーバが、モバイルデバイスと通信を行ってそのモバイルデバイスを管理する、MDM(Mobile Device Management)システムが知られている(例えば、特許文献1参照)。この従来技術では、プリンタを管理する管理サーバに対し、外部仲介装置(Device Conductor)がインターネットを介して通信可能に接続されている。この外部仲介装置に対し内部仲介装置が通信可能に接続されており、その内部仲介装置に対し、モバイルデバイスであるプリンタがローカルネットワークを通じて通信可能に構成されている。 An MDM (Mobile Device Management) system is known in which a management server on the Internet communicates with a mobile device and manages the mobile device (see, for example, Patent Document 1). In this prior art, an external mediator is connected to the management server that manages the printer so as to be able to communicate with the management server via the Internet. An internal mediator is communicably connected to the external mediator, and a printer, which is a mobile device, is configured to communicate with the internal mediator via a local network.

特開2019−179446号公報JP-A-2019-179446

近年、電子機器である印刷装置と外部仲介装置との間の情報伝達に内部仲介装置を介在させる上記従来技術の構成に代え、印刷装置が、外部仲介装置に対し直接接続される構成が提唱されつつある。この構成では、管理サーバによって印刷装置の管理が行われる際、例えば、印刷装置における各種設定の変更、エラー発生等、印刷装置の状態が変化した場合には、当該変化した状態に係わる状態情報が外部仲介装置へと送信される。これにより、外部仲介装置に接続されている外部サーバにおいてその状態情報に対応した適宜の表示が行われ、管理者は、印刷装置において何らかの状態変化が生じたことを認識することができる。 In recent years, a configuration in which a printing device is directly connected to an external mediator has been proposed in place of the configuration of the above-mentioned conventional technique in which an internal mediator is interposed in information transmission between a printing device which is an electronic device and an external mediator. It's starting. In this configuration, when the printing device is managed by the management server, for example, when the state of the printing device changes due to a change in various settings in the printing device, an error occurs, or the like, the state information related to the changed state is displayed. It is sent to an external mediator. As a result, an appropriate display corresponding to the state information is performed on the external server connected to the external intermediary device, and the administrator can recognize that some state change has occurred in the printing device.

このとき、管理サーバにおける表示態様は、管理サーバの仕様によって種々異なる場合がある。そのため、印刷装置から外部仲介装置への上記状態情報の送信時において、単純に、状態変化が生じる都度対応する状態情報を順次送信する手法とすると、表示を見る管理者にとって利便性が悪い場合が生じ得る。 At this time, the display mode on the management server may differ depending on the specifications of the management server. Therefore, when the above state information is transmitted from the printing device to the external intermediary device, if the method of simply transmitting the corresponding state information sequentially each time a state change occurs, it may not be convenient for the administrator who sees the display. Can occur.

例えば、管理サーバにおいて、最新の状態情報を、その前の状態情報の上に被さるようにポップアップ表示する場合があり得る。このような仕様の場合、印刷装置から複数の状態情報が順次送信されたとき、その送信された順に沿って、後発の状態情報が先発の状態情報の上に順次覆いかぶさるように表示される。そのため、先発の状態情報の内容の重要度が高く、後発の状態情報の内容の重要度が低い場合等には、重要度の低い後発の状態情報が表示されることで重要度の高い先発の状態情報が隠蔽されて管理者が見逃しやすくなり、不便である。したがって、この場合には印刷装置から外部仲介装置への状態情報の送信時に、上記弊害を回避するための何らかの工夫が望ましい。 For example, in the management server, the latest status information may be popped up so as to cover the previous status information. In the case of such specifications, when a plurality of state information is sequentially transmitted from the printing apparatus, the later state information is displayed so as to sequentially cover the first state information in the order of transmission. Therefore, when the importance of the content of the starting status information is high and the importance of the content of the later status information is low, the low-importance status information of the starting lineup is displayed, so that the starting lineup with high importance is displayed. It is inconvenient because the status information is hidden and easily overlooked by the administrator. Therefore, in this case, it is desirable to take some measures to avoid the above-mentioned adverse effects when transmitting the state information from the printing device to the external intermediary device.

これに対して、管理サーバにおいて、印刷装置から複数の状態情報が送信されたときにそれら複数の状態情報を一覧表示する場合もある。この仕様の場合には、印刷装置が、単純に、状態変化が生じる都度、対応する状態情報を順次送信する手法であったとしても、上記のような管理者にとっての見にくさの問題は生じない。 On the other hand, in the management server, when a plurality of status information is transmitted from the printing device, the plurality of status information may be displayed in a list. In the case of this specification, even if the printing device simply transmits the corresponding state information in sequence each time a state change occurs, the above-mentioned problem of obscurity for the administrator does not occur. ..

本発明の目的は、管理サーバにおいて常に最適な態様で状態情報を表示し、管理者にとっての利便性を向上することができる、印刷装置及び通信処理プログラムを提供することにある。 An object of the present invention is to provide a printing device and a communication processing program capable of always displaying status information in an optimum manner on a management server and improving convenience for an administrator.

上記目的を達成するために、本願発明は、被印刷媒体に印刷を行う印刷手段と、制御手段と、を有し、所望の表示を行う表示手段を備えた管理サーバとインターネットを通じて通信する外部仲介装置と通信する印刷装置であって、前記制御手段は、前記管理サーバの前記表示手段における、表示仕様情報又は当該表示仕様情報に関連する仕様関連情報を取得する仕様情報取得処理;前記印刷装置の状態が変化した場合に送信する当該変化した状態に係わる状態情報の送信態様を、前記仕様情報取得処理で取得された前記表示仕様情報又は前記仕様関連情報に応じて可変に設定する態様設定処理;前記印刷装置の前記状態の変化に対応した前記状態情報を、前記態様設定処理で設定された態様で前記外部仲介装置へ送信する状態情報送信処理;を実行することを特徴とする。 In order to achieve the above object, the present invention is an external intermediary that has a printing means for printing on a print medium and a control means, and communicates with a management server provided with a display means for performing a desired display via the Internet. A printing device that communicates with the device, wherein the control means acquires display specification information or specification-related information related to the display specification information in the display means of the management server; a specification information acquisition process of the printing device. A mode setting process for variably setting the transmission mode of the state information related to the changed state to be transmitted when the state changes according to the display specification information acquired by the specification information acquisition process or the specification-related information; It is characterized in that the state information transmission process of transmitting the state information corresponding to the change of the state of the printing device to the external intermediary device in the mode set in the mode setting process; is executed.

本願発明の印刷装置は、いわゆるMDM(Mobile Device Management)システムにおいて使用される。すなわち、この印刷装置を管理する管理サーバに対し、外部仲介装置(いわゆるDevice Conductor)がインターネットを介して通信可能に接続されており、さらにその外部仲介装置に対し、当該印刷装置が通信可能に接続されている。 The printing apparatus of the present invention is used in a so-called MDM (Mobile Device Management) system. That is, an external mediator (so-called Device Conductor) is communicably connected to the management server that manages the printing device via the Internet, and the printing device is communicably connected to the external mediator. Has been done.

そして、管理サーバによる印刷装置の管理は外部仲介装置を介して行われる。その際、例えば、印刷装置における各種設定の変更、エラー発生等、印刷装置の状態が変化した場合には、制御手段の制御により、当該変化した状態に係わる状態情報が外部仲介装置へと送信される。これにより、外部仲介装置に接続されている外部サーバの表示手段においてその状態情報に対応した適宜の表示が行われ、管理者は、印刷装置において何らかの状態変化が生じたことを認識することができる。 Then, the management server manages the printing device via an external intermediary device. At that time, for example, when the state of the printing device changes due to a change in various settings in the printing device, an error occurs, or the like, the state information related to the changed state is transmitted to the external intermediary device by the control of the control means. NS. As a result, the display means of the external server connected to the external intermediary device performs appropriate display corresponding to the state information, and the administrator can recognize that some state change has occurred in the printing device. ..

そして、本願発明の印刷装置においては、制御手段が、仕様情報取得処理と、態様設定処理と、状態情報送信処理と、を実行する。すなわちまず、仕様情報取得処理において、制御手段は、表示手段における表示仕様情報又は仕様関連情報を取得する。その後、制御手段は、態様設定処理において、外部仲介装置に送信するときの状態情報の送信態様を、その取得した表示仕様情報又は仕様関連情報に応じて可変に設定する。そして、状態情報送信処理では、制御手段は、その設定した態様に沿って外部仲介装置へ送信する。 Then, in the printing apparatus of the present invention, the control means executes the specification information acquisition process, the mode setting process, and the state information transmission process. That is, first, in the specification information acquisition process, the control means acquires the display specification information or the specification-related information in the display means. After that, in the mode setting process, the control means variably sets the transmission mode of the state information at the time of transmission to the external intermediary device according to the acquired display specification information or specification-related information. Then, in the state information transmission process, the control means transmits to the external intermediary device according to the set mode.

このような流れで処理を実行することで、管理サーバの表示手段での表示仕様がどのようなものであっても、印刷装置から外部仲介装置へと送信する状態情報を、その表示仕様に対応した送信態様で送信することができる。その結果、管理サーバの表示手段では、前述のような不便を回避しつつ、常に最適な態様で状態情報を表示することができ、管理者にとっての利便性を向上することができる。 By executing the process in such a flow, regardless of the display specifications of the display means of the management server, the status information transmitted from the printing device to the external intermediary device corresponds to the display specifications. It is possible to transmit in the transmission mode. As a result, the display means of the management server can always display the state information in the optimum mode while avoiding the inconvenience as described above, and the convenience for the administrator can be improved.

本発明によれば、管理サーバにおいて常に最適な態様で状態情報を表示し、管理者にとっての利便性を向上することができる。 According to the present invention, the state information can always be displayed in the optimum mode on the management server, and the convenience for the administrator can be improved.

本発明の一実施形態に係る管理システムの模式的な構成図である。It is a schematic block diagram of the management system which concerns on one Embodiment of this invention. 対応データベースを表す説明図である。It is explanatory drawing which shows the correspondence database. 管理サーバにプリンタを登録する際における、管理サーバ、外部仲介装置、及びプリンタの処理を表す図である。It is a figure which shows the process of a management server, an external intermediary device, and a printer when registering a printer in a management server. 管理サーバからの指示をプリンタに実行させる際における、管理サーバ、外部仲介装置、及びプリンタの処理を表す図である。It is a figure which shows the process of a management server, an external intermediary device, and a printer when making a printer execute an instruction from a management server. 管理サーバからの指示をプリンタに実行させる際における、管理サーバ、外部仲介装置、及びプリンタの処理を表す図である。It is a figure which shows the process of a management server, an external intermediary device, and a printer when making a printer execute an instruction from a management server. 管理サーバからの指示なしで定期的にステータスを報告する際における、管理サーバ、外部仲介装置、及びプリンタの処理を表す図である。It is a figure which shows the process of the management server, the external intermediary device, and the printer when the status is reported periodically without the instruction from the management server. 管理サーバの表示部の仕様が、最新の状態情報をその前の状態情報の上に被さるようにポップアップ表示する仕様であった場合の、第1比較例を表す説明図である。It is explanatory drawing which shows the 1st comparative example in the case where the specification of the display part of a management server is the specification which pop-up displays the latest state information so as to cover the previous state information. 管理サーバの表示部の仕様が、最新の状態情報をその前の状態情報の上に被さるようにポップアップ表示する仕様であった場合の、第1比較例を表す説明図である。It is explanatory drawing which shows the 1st comparative example in the case where the specification of the display part of a management server is the specification which pop-up displays the latest state information so as to cover the previous state information. 本発明の一実施形態のプリンタの第2プログラムがステップS76及びステップS79で実行する処理の詳細を表すフローチャートである。It is a flowchart which shows the detail of the process which the 2nd program of the printer of one Embodiment of this invention executes in step S76 and step S79. 管理サーバの表示がポップアップ表示仕様であった場合に第2プログラムが実行する処理の一例を表すフローチャートである。It is a flowchart which shows an example of the process which the 2nd program executes when the display of a management server is a pop-up display specification. 管理サーバの表示部での表示の一例を表す説明図である。It is explanatory drawing which shows an example of the display in the display part of the management server. 管理サーバの表示部での表示の他の例を表す説明図である。It is explanatory drawing which shows the other example of the display in the display part of the management server. 管理サーバの表示がポップアップ表示仕様であった場合に第2プログラムが実行する処理の他の例を表すフローチャートである。It is a flowchart which shows another example of the process which the 2nd program executes when the display of a management server is a pop-up display specification. 管理サーバの表示部での表示の一例を表す説明図である。It is explanatory drawing which shows an example of the display in the display part of the management server. 管理サーバの表示部での表示の一例を表す説明図である。It is explanatory drawing which shows an example of the display in the display part of a management server. 管理サーバの表示が重要度別の切替表示仕様であった場合に第2プログラムが実行する処理を表すフローチャートである。It is a flowchart which shows the process which the 2nd program executes when the display of a management server is a switching display specification according to importance. 管理サーバの表示部での表示の一例を表す説明図である。It is explanatory drawing which shows an example of the display in the display part of a management server. 管理サーバの表示が複数の状態情報の一覧表示仕様であった場合に第2プログラムが実行する処理を表すフローチャートである。It is a flowchart which shows the process which the 2nd program executes when the display of a management server is a list display specification of a plurality of state information. 管理サーバの表示部での表示の一例を表す説明図である。It is explanatory drawing which shows an example of the display in the display part of the management server. 管理サーバの表示部での表示の一例を表す説明図である。It is explanatory drawing which shows an example of the display in the display part of a management server.

本発明の一実施形態を図面を参照しつつ説明する。 An embodiment of the present invention will be described with reference to the drawings.

<システム概要>
図1において、本実施形態に係わる管理システム10は、いわゆるモバイルデバイス管理(Mobile Device Management)システムを利用してプリンタ14の管理を行うシステムである。プリンタ14の管理者は、ブラウザを用いて管理サーバ11に記憶されたプリンタ14の管理情報を閲覧し、あるいは、管理サーバ11を通じて、プリンタ14に対して設定情報の変更等の指示を行う。
<System overview>
In FIG. 1, the management system 10 according to the present embodiment is a system that manages the printer 14 by using a so-called mobile device management system. The administrator of the printer 14 browses the management information of the printer 14 stored in the management server 11 by using a browser, or instructs the printer 14 to change the setting information or the like through the management server 11.

また、管理システム10は、管理サーバ11と直接通信を行う機能を有さないプリンタ14の管理を行うシステムである。管理サーバ11と直接通信を行う機能を有さないプリンタ14を管理サーバ11で管理できるように、外部仲介装置12が利用される。プリンタ14は、印刷装置の一例である。 Further, the management system 10 is a system that manages the printer 14 that does not have a function of directly communicating with the management server 11. An external intermediary device 12 is used so that the management server 11 can manage the printer 14 that does not have a function of directly communicating with the management server 11. The printer 14 is an example of a printing device.

管理システム10は、インターネット15に接続された管理サーバ11及び外部仲介装置12と、ローカルネットワーク16に接続された上記プリンタ14と、を備える。 The management system 10 includes a management server 11 and an external mediator 12 connected to the Internet 15, and the printer 14 connected to the local network 16.

管理サーバ11は、例えば、モバイルデバイスを管理するサービスを提供する会社が有するサーバである。外部仲介装置12は、例えば、モバイルデバイスを管理するサービスの提供を受ける会社が有するサーバである。ローカルネットワーク16は、例えば、モバイルデバイスを管理するサービスの提供を受ける会社の各支店ごとに構築される。各支店は、1台又は複数台のプリンタ14をそれぞれ有し、各支店のプリンタ14は、各支店のローカルネットワーク16にそれぞれ接続される。 The management server 11 is, for example, a server owned by a company that provides a service for managing mobile devices. The external intermediary device 12 is, for example, a server owned by a company that receives a service for managing a mobile device. The local network 16 is constructed, for example, for each branch of a company that receives a service for managing mobile devices. Each branch has one or more printers 14, and the printer 14 of each branch is connected to the local network 16 of each branch.

図示例では、3つのローカルネットワーク16が構築され、各ローカルネットワーク16に、2台又は3台のプリンタ14が接続されている。但し、管理システム10が有するローカルネットワーク16の数や、各ローカルネットワーク16にそれぞれ接続されるプリンタ14の台数は、図示例に限られない。 In the illustrated example, three local networks 16 are constructed, and two or three printers 14 are connected to each local network 16. However, the number of local networks 16 included in the management system 10 and the number of printers 14 connected to each local network 16 are not limited to the illustrated examples.

管理サーバ11と外部仲介装置12とは、インターネット15を通じて相互に通信することができる。具体的には、管理サーバ11及び外部仲介装置12は、グローバルIPアドレスをそれぞれ有しており、グローバルIPアドレスを用いたインターネットプロトコルを用いて相互に通信する。 The management server 11 and the external intermediary device 12 can communicate with each other through the Internet 15. Specifically, the management server 11 and the external intermediary device 12 each have a global IP address, and communicate with each other using an Internet protocol using the global IP address.

ローカルネットワーク16は、いわゆるイントラネットであり、例えば、有線LAN、無線LAN、WAN、あるいはこれらの組み合わせである。ローカルネットワーク16に接続されたプリンタ14同士は、TCP/IPなどの通信プロトコルを用いて相互に通信可能である。具体的には、プリンタ14同士は、プライベートIPアドレスやMACアドレスを用いて相互に通信する。 The local network 16 is a so-called intranet, for example, a wired LAN, a wireless LAN, a WAN, or a combination thereof. Printers 14 connected to the local network 16 can communicate with each other using a communication protocol such as TCP / IP. Specifically, the printers 14 communicate with each other using a private IP address or a MAC address.

ローカルネットワーク16は、ルータなどの不図示の中継装置を有している。中継装置は、グローバルIPアドレスを有しており、インターネット15と接続されている。ローカルネットワーク16に接続されたプリンタ14は、中継装置を介して外部仲介装置12と通信を行う。具体的には、プリンタ14と外部仲介装置12とは、中継装置が構築するファイアウォールを通じて相互に通信を行う。なお、ファイアウォールは必須ではなく、必要性がない又は少ない場合は中継装置がファイアウォールを備えなくてもよい。 The local network 16 has a relay device (not shown) such as a router. The relay device has a global IP address and is connected to the Internet 15. The printer 14 connected to the local network 16 communicates with the external intermediary device 12 via the relay device. Specifically, the printer 14 and the external intermediary device 12 communicate with each other through a firewall constructed by the relay device. It should be noted that the firewall is not essential, and the relay device may not be provided with a firewall when it is not necessary or is small.

管理システム10は、管理サーバ11と直接通信を行う機能を有さないプリンタ14の管理を、上述の構成を有する外部仲介装置12を利用して、管理サーバ11で実現可能とするシステムである。具体的には、外部仲介装置12にインストールされて実行される第1プログラム24と、プリンタ14にインストールされて実行される第2プログラム34とを用いて、管理サーバ11と直接通信を行う機能を有さないプリンタ14の管理が実現される。すなわち、管理サーバ11と直接通信を行う機能を有さないプリンタ14の管理サーバ11による管理は、第1プログラム24及び第2プログラム34によって実現される。以下、外部仲介装置12及びプリンタ14の構成について、詳しく説明する。 The management system 10 is a system that enables the management server 11 to manage the printer 14 that does not have a function of directly communicating with the management server 11 by using the external intermediary device 12 having the above configuration. Specifically, a function of directly communicating with the management server 11 by using the first program 24 installed and executed in the external intermediary device 12 and the second program 34 installed and executed in the printer 14 is provided. Management of a printer 14 that does not exist is realized. That is, the management of the printer 14 that does not have the function of directly communicating with the management server 11 by the management server 11 is realized by the first program 24 and the second program 34. Hereinafter, the configurations of the external mediator device 12 and the printer 14 will be described in detail.

<外部仲介装置(その1)>
外部仲介装置12は、CPU21と、メモリ22と、通信インタフェース25(以下適宜、「通信I/F25」と記載)と、ユーザI/F26と、通信バス27とを備える。CPU21、メモリ22、通信I/F25、及びユーザI/F26は、通信バス27と接続されている。
<External mediator (1)>
The external intermediary device 12 includes a CPU 21, a memory 22, a communication interface 25 (hereinafter, appropriately referred to as “communication I / F25”), a user I / F26, and a communication bus 27. The CPU 21, the memory 22, the communication I / F25, and the user I / F26 are connected to the communication bus 27.

メモリ22は、ROM、RAM、EEPROM、HDD、USBメモリ等の可搬記憶媒体、若しくは、CPU21が備えるバッファ等である。メモリ22は、コンピュータが読み取り可能なストレージ媒体であってもよい。コンピュータが読み取り可能なストレージ媒体とは、non−transitoryな媒体である。non−transitoryな媒体には、上記の例の他に、CD−ROM、DVD−ROM等の記録媒体も含まれる。また、non−transitoryな媒体は、tangibleな媒体でもある。一方、インターネット上のサーバなどからダウンロードされるプログラムを搬送する電気信号は、コンピュータが読み取り可能な媒体の一種であるコンピュータが読み取り可能な信号媒体であるが、non−transitoryなコンピュータが読み取り可能なストレージ媒体には含まれない。後述するプリンタ14のメモリ42についても同様である。 The memory 22 is a portable storage medium such as a ROM, RAM, EEPROM, HDD, or USB memory, or a buffer included in the CPU 21. The memory 22 may be a computer-readable storage medium. A computer-readable storage medium is a non-transitory medium. In addition to the above examples, the non-transitory medium also includes a recording medium such as a CD-ROM or a DVD-ROM. The non-transitory medium is also a tangible medium. On the other hand, an electric signal that carries a program downloaded from a server on the Internet is a computer-readable signal medium, which is a kind of computer-readable medium, but is a storage that can be read by a non-transitory computer. Not included in the medium. The same applies to the memory 42 of the printer 14 described later.

メモリ22は、プログラム記憶領域28及びデータ記憶領域29を有している。プログラム記憶領域28は、OS23や第1プログラム24等のプログラムを記憶している。 The memory 22 has a program storage area 28 and a data storage area 29. The program storage area 28 stores programs such as the OS 23 and the first program 24.

OS23は、外部仲介装置12の基本プログラムである。OS23は、例えば、MacOS(登録商標)、Windows(登録商標)、Linux(登録商標)、Android(登録商標)OS等のオペレーティングシステムである。 OS23 is a basic program of the external intermediary device 12. OS23 is, for example, an operating system such as MacOS (registered trademark), Windows (registered trademark), Linux (registered trademark), Android (registered trademark) OS and the like.

第1プログラム24は、OS23と協働して、通信I/F25を通じた管理サーバ11及びプリンタ14との通信を制御するプログラムである。第1プログラム24は、単一のプログラムであってもよいし、複数のプログラムの集合体であってもよい。第1プログラム24が実行する処理については後述する。 The first program 24 is a program that controls communication with the management server 11 and the printer 14 through the communication I / F 25 in cooperation with the OS 23. The first program 24 may be a single program or a collection of a plurality of programs. The process executed by the first program 24 will be described later.

データ記憶領域29は、プログラムの実行に必要なデータを記憶する。また、データ記憶領域29は、図2に示される対応データベースを記憶する。 The data storage area 29 stores data necessary for executing the program. Further, the data storage area 29 stores the corresponding database shown in FIG.

<対応データベース>
図2において、対応データベースは、複数の項目と、複数のレコードとを有する。この例では、複数の項目には、項目「デバイスID」、「GUID」、「ロケーション情報」、「ファームバージョン」、「設定情報」、「更新日時」、「管理状況情報」が含まれる。なお、対応データベースに、前述の項目以外の項目が含まれていてもよい。
<Corresponding database>
In FIG. 2, the corresponding database has a plurality of items and a plurality of records. In this example, the plurality of items include the items "device ID", "GUID", "location information", "farm version", "setting information", "update date", and "management status information". In addition, the corresponding database may include items other than the above-mentioned items.

項目「デバイスID」は、プリンタ14に付与されたIDである。デバイスIDは、例えば、プリンタ14のMACアドレスやIPアドレスやシリアル番号などである。各レコードは、デバイスIDによって区別される。すなわち、一のプリンタ14に対して一のレコードが生成される。 The item "device ID" is an ID assigned to the printer 14. The device ID is, for example, the MAC address, IP address, serial number, or the like of the printer 14. Each record is distinguished by a device ID. That is, one record is generated for one printer 14.

項目「GUID」は、プリンタ14に備えられる第2プログラム34(後述)に対して付与されたGUIDを示す。なお、GUIDは、数字や文字、その他、第2プログラム34を識別可能なものであれば、どのようなものがGUIDとして用いられてもよい。デバイスIDについても同様である。 The item "GUID" indicates a GUID assigned to the second program 34 (described later) provided in the printer 14. As the GUID, any number, characters, or any other GUID may be used as long as it can identify the second program 34. The same applies to the device ID.

項目「ロケーション情報」は、項目「GUID」で示される第2プログラム34を備えたプリンタ14が属するローカルネットワーク16を示す。項目「ロケーション情報」は、例えば、支店名や、支部名などである。 The item "location information" indicates the local network 16 to which the printer 14 having the second program 34 represented by the item "GUID" belongs. The item "location information" is, for example, a branch name, a branch name, or the like.

項目「ファームバージョン」は、プリンタ14にインストールされている後述の第2プログラム34のバージョンを示す。なお、項目「ファームバージョン」の数字が大きい方が、より新しいバージョンである。 The item "farm version" indicates the version of the second program 34, which will be described later, installed on the printer 14. The larger the number of the item "farm version", the newer the version.

項目「設定情報」は、項目「フォント」、項目「フォントサイズ」、項目「濃度」などの複数の細分化された項目を有する。項目「フォント」は、プリンタ14が印刷する文字のフォントを意味する。項目「フォントサイズ」は、プリンタ14が印刷する文字のサイズを意味する。項目「濃度」は、プリンタ14が印刷する文字や図形のインクの濃度を意味する。項目「設定情報」は、前記の項目に加え、自動電源オフ機能が有効か無効かを示す項目や、印刷速度を示す項目や、通信の設定パラメータを示す項目などの他の項目を有していてもよい。 The item "setting information" has a plurality of subdivided items such as the item "font", the item "font size", and the item "density". The item "font" means a font of characters printed by the printer 14. The item "font size" means the size of characters printed by the printer 14. The item "density" means the density of ink of characters and figures printed by the printer 14. In addition to the above items, the item "setting information" has other items such as an item indicating whether the automatic power off function is enabled or disabled, an item indicating the printing speed, and an item indicating the communication setting parameter. You may.

項目「更新日時」は、レコードにおける各項目が示す内容が変更された日時を示す。 The item "update date and time" indicates the date and time when the content indicated by each item in the record was changed.

項目「管理状況情報」は、各レコードのプリンタ14が、管理システム10による管理の対象であるか否かを示す。「管理中」は、管理システム10による管理の対象であることを意味する。「待機中」は、管理システム10による管理の対象でないことを意味する。 The item "management status information" indicates whether or not the printer 14 of each record is the target of management by the management system 10. “Under management” means that the object is managed by the management system 10. “Waiting” means that the management system 10 is not subject to management.

<外部仲介装置(その2)>
図1に戻り、外部仲介装置12の通信I/F25は、管理サーバ11及びプリンタ14と通信可能なインタフェースである。通信I/F25は、LAN I/Fや無線LAN I/Fである。外部仲介装置12とプリンタ14とは、通信I/F25、インターネット15、ファイアウォール(中継装置)、ローカルネットワーク16、通信I/F45を通じて通信する。
<External intermediary device (2)>
Returning to FIG. 1, the communication I / F 25 of the external intermediary device 12 is an interface capable of communicating with the management server 11 and the printer 14. The communication I / F 25 is a LAN I / F or a wireless LAN I / F. The external mediator 12 and the printer 14 communicate with each other through the communication I / F 25, the Internet 15, the firewall (relay device), the local network 16, and the communication I / F 45.

ユーザI/F26は、例えばキーボードやマウスなどであり、管理者による入力を受け付ける。 The user I / F26 is, for example, a keyboard or a mouse, and accepts input by the administrator.

<プリンタ>
プリンタ14は、CPU41と、メモリ42と、通信I/F45と、バッテリ50と、印刷エンジン51と、通信バス47とを備える。なお、印刷エンジンは印刷手段の一例であり、CPU41は制御手段の一例である。CPU41、メモリ42、通信I/F45、及び通信バス47の構成は、外部仲介装置12のCPU21、メモリ22、通信I/F25、及び通信バス27の構成と同様である。
<Printer>
The printer 14 includes a CPU 41, a memory 42, a communication I / F 45, a battery 50, a printing engine 51, and a communication bus 47. The printing engine is an example of printing means, and the CPU 41 is an example of control means. The configuration of the CPU 41, the memory 42, the communication I / F 45, and the communication bus 47 is the same as the configuration of the CPU 21, the memory 22, the communication I / F 25, and the communication bus 27 of the external intermediary device 12.

メモリ42は、プログラム記憶領域48及びデータ記憶領域49を有している。プログラム記憶領域48は、OS43、第2プログラム34等のプログラムを記憶している。データ記憶領域49は、プログラムの実行に必要なデータを記憶する。また、データ記憶領域49は、デバイスID及びGUID(Globally Unique Identifier)を記憶する。デバイスIDは、例えば、プリンタ14のMACアドレスや、プライベートIPアドレスや、シリアル番号などである。 The memory 42 has a program storage area 48 and a data storage area 49. The program storage area 48 stores programs such as the OS 43 and the second program 34. The data storage area 49 stores data necessary for executing the program. In addition, the data storage area 49 stores a device ID and a GUID (Globally Unique Identifier). The device ID is, for example, a MAC address of the printer 14, a private IP address, a serial number, or the like.

OS43は、プリンタ14の基本プログラムである。第2プログラム34は、OS43と協働して、印刷エンジン51に適宜の被印刷媒体への印刷を実行させるとともに、通信I/F45を通じた外部仲介装置12との通信を制御するプログラムである。第2プログラム34は、単一のプログラムであってもよいし、複数のプログラムの集合体であってもよい。第2プログラム34が実行する処理については後述する。 OS43 is a basic program of the printer 14. The second program 34 is a program that causes the print engine 51 to execute printing on an appropriate print medium in cooperation with the OS 43 and controls communication with the external mediator 12 through the communication I / F 45. The second program 34 may be a single program or a collection of a plurality of programs. The process executed by the second program 34 will be described later.

通信I/F45は、外部仲介装置12と通信可能なインタフェースである。通信I/F45は、外部仲介装置12が送信したコマンドを受信し、当該コマンドに対する応答を外部仲介装置12に送信する。 The communication I / F 45 is an interface capable of communicating with the external mediator 12. The communication I / F 45 receives the command transmitted by the external intermediary device 12, and transmits a response to the command to the external intermediary device 12.

バッテリ50は、例えば充放電が可能な2次電池である。バッテリ50は、プリンタ14が商用電源と接続されている場合に、商用電源によって充電され、商用電源と接続されていない場合に放電を行って、印刷エンジン51やCPU41に駆動電力を供給する。 The battery 50 is, for example, a secondary battery that can be charged and discharged. The battery 50 is charged by the commercial power source when the printer 14 is connected to the commercial power source, and discharged when the printer 14 is not connected to the commercial power source to supply drive power to the printing engine 51 and the CPU 41.

<プログラムの処理>
以下、第1プログラム24及び第2プログラム34が実行する処理を説明する。
<Program processing>
Hereinafter, the processes executed by the first program 24 and the second program 34 will be described.

なお、本明細書では、基本的に、プログラムに記述された命令に従ったCPUの処理を説明する。すなわち、以下の説明における「判断」、「抽出」、「選択」、「算出」、「決定」、「特定」、「取得」、「受付」、「制御」、「設定」等の処理は、CPUの処理を表している。CPUによる処理は、OSなどのコントローラを介したハードウェア制御も含む。なお、「取得」は要求を必須とはしない概念で用いる。すなわち、CPUが要求することなくデータを受信するという処理も、「CPUがデータを取得する」という概念に含まれる。「命令」「応答」「要求」等の処理は、「命令」「応答」「要求」等を示す情報を通信することにより行われる。また、「命令」「応答」「要求」等の文言を、「命令」「応答」「要求」等を示す情報そのものという意味でも記載することがある。 In this specification, basically, the processing of the CPU according to the instruction described in the program will be described. That is, the processes such as "judgment", "extraction", "selection", "calculation", "decision", "specification", "acquisition", "acceptance", "control", and "setting" in the following description are It represents the processing of the CPU. The processing by the CPU also includes hardware control via a controller such as an OS. Note that "acquisition" is used in a concept that does not require a request. That is, the process of receiving data without the CPU requesting is also included in the concept of "the CPU acquires the data". Processing such as "command", "response", and "request" is performed by communicating information indicating "command", "response", "request", and the like. In addition, words such as "command", "response", and "request" may also be described in the sense of information itself indicating "command", "response", "request", and the like.

また、プログラムに記述された命令に従ったCPUの処理を、省略した文言で記載することがある。例えば、「CPU21が行う」「プログラム24が行う」「外部仲介装置12が行う」のように記載することがある。CPU41についても同様である。また、通信I/F、ユーザI/Fを通じてプログラムが情報の入出力を行うことを、省略した文言で記載することがある。例えば、「CPU21が受信する」、「プログラム24が送信する」、「外部仲介装置12が取得する」のように記載することがある。 In addition, the processing of the CPU according to the instruction described in the program may be described in abbreviated wording. For example, it may be described as "performed by the CPU 21", "performed by the program 24", or "performed by the external intermediary device 12". The same applies to the CPU 41. Further, it may be described in abbreviated terms that the program inputs / outputs information through the communication I / F and the user I / F. For example, it may be described as "received by the CPU 21", "transmitted by the program 24", or "acquired by the external intermediary device 12".

また、本明細書中の「データ」と「情報」とは、コンピュータによって取り扱い可能なビットあるいはビット列である点において共通する。「データ」とは、各ビットが示す意味内容をコンピュータが考慮することなく取り扱えるものを指す。これに対して、「情報」とは、各ビットが示す意味内容によってコンピュータの動作が分岐するものを指す。なお、実質的な意味内容が同じでフォーマットが異なる「データ」は、同一のデータとして扱われるものとする。「情報」についても同様である。さらに、「指示」は、送信先の装置に対して次の動作を促すための制御信号であって、情報を含んでいることもあるし、それ自体が情報としての性質を有していることもある。 Further, "data" and "information" in the present specification are common in that they are bits or bit strings that can be handled by a computer. "Data" refers to data that can be handled without the computer considering the meaning and content of each bit. On the other hand, "information" refers to information in which the operation of a computer branches depending on the meaning and content indicated by each bit. It should be noted that "data" having the same substantial meaning and content but different formats shall be treated as the same data. The same applies to "information". Further, the "instruction" is a control signal for prompting the destination device to perform the next operation, may include information, and has the property of information itself. There is also.

また、「データ」及び「情報」は、形式(例えば、テキスト形式、バイナリ形式、フラグ形式等)がコンピュータ毎に変更されたとしても、同一の意味内容と認識される限り、同一のデータ及び情報として取り扱われる。例えば、「2つ」であることを示す情報が、あるコンピュータではASCIIコードで”0x32”というテキスト形式の情報として保持され、別のコンピュータでは二進数表記で”10”というバイナリ形式の情報として保持されてもよい。 Further, "data" and "information" are the same data and information as long as they are recognized as having the same meaning even if the format (for example, text format, binary format, flag format, etc.) is changed for each computer. Treated as. For example, information indicating that there are "two" is retained as text format information "0x32" in ASCII code on one computer, and as binary format information "10" in binary notation on another computer. May be done.

但し、上記の「データ」及び「情報」の区別は厳密なものではなく、例外的な取り扱いも許容される。例えば、データが一時的に情報として扱われてもよいし、情報が一時的にデータとして扱われてもよい。また、ある装置ではデータとして扱われるものが、他の装置では情報として扱われてもよい。さらには、データの中から情報が取り出されてもよいし、情報の中からデータが取り出されてもよい。 However, the above distinction between "data" and "information" is not strict, and exceptional handling is permitted. For example, the data may be temporarily treated as information, or the information may be temporarily treated as data. Further, what is treated as data in one device may be treated as information in another device. Furthermore, information may be extracted from the data, or data may be extracted from the information.

<プログラムの基本的な処理内容>
以下、図3〜図6を参照して、外部仲介装置12の第1プログラム24、及び、プリンタ14の第2プログラム34が実行する処理について説明する。なお、詳しくは後述するが、外部仲介装置12とプリンタ14との情報送受信においては、外部仲介装置12は、基本的に、指示などの情報を、プリンタ14から受信したHTTPリクエストに対するHTTPレスポンスに含める形で、プリンタ14へと送信する。そのため、プリンタ14は、定期的にHTTPリクエストを外部仲介装置12に送信している。なお、ファイアウォールは、プリンタ14からのHTTPリクエストに対するHTTPレスポンス以外は、外部仲介装置12からプリンタ14への送信を遮断する。
<Basic processing contents of the program>
Hereinafter, the processes executed by the first program 24 of the external intermediary device 12 and the second program 34 of the printer 14 will be described with reference to FIGS. 3 to 6. As will be described in detail later, in the transmission and reception of information between the external intermediary device 12 and the printer 14, the external intermediary device 12 basically includes information such as instructions in the HTTP response to the HTTP request received from the printer 14. In the form, it is transmitted to the printer 14. Therefore, the printer 14 periodically transmits an HTTP request to the external intermediary device 12. The firewall blocks transmission from the external mediator 12 to the printer 14 except for the HTTP response to the HTTP request from the printer 14.

<プリンタの登録>
まず、プリンタ14のデバイスIDを外部仲介装置12のメモリ22に記憶された対応データベースに登録し、管理システム10の管理を開始する処理について、図3を参照して説明する。
<Printer registration>
First, a process of registering the device ID of the printer 14 in the corresponding database stored in the memory 22 of the external intermediary device 12 and starting the management of the management system 10 will be described with reference to FIG.

まず、プリンタ14の第2プログラム34は、例えば、第2プログラム34が初回起動されて第2プログラム34の初期設定が実行された場合、若しくは、担当者が入力した、管理対象とするプリンタ14を管理システム10に登録することを指示する登録指示にしたがって、若しくは、外部仲介装置12の第1プログラム24から送信された登録指示を受信した場合に、自己のデバイスID及びメモリ32に記憶された自己のGUIDを含むHTTPリクエストを外部仲介装置12に送信する(ステップS14)。なお、本願明細書において、「担当者」とは、例えば、各支店においてプリンタ14の管理を行う者であって、外部仲介装置12を操作する管理者とは相違する者である。 First, the second program 34 of the printer 14 uses, for example, the printer 14 to be managed when the second program 34 is started for the first time and the initial setting of the second program 34 is executed, or when the person in charge inputs the printer 14. The self stored in its own device ID and memory 32 according to the registration instruction instructing to register in the management system 10 or when receiving the registration instruction transmitted from the first program 24 of the external intermediary device 12. The HTTP request including the GUID of the above is transmitted to the external mediator 12 (step S14). In the specification of the present application, the "person in charge" is, for example, a person who manages the printer 14 at each branch office and is different from the manager who operates the external intermediary device 12.

プリンタ14の第2プログラム34が送信したデバイスID及びGUIDを含むHTTPリクエストは、外部仲介装置12により受信される(ステップS14)。外部仲介装置12の第1プログラム24は、デバイスID及びGUIDを受信すると、受信したデバイスIDが対応データベースに既に登録されているか否かを判断し、登録されていないと判断すると、受信したデバイスID及びGUIDを用いて新たなレコードを対応データベースに登録する(ステップS15)。 The HTTP request including the device ID and GUID transmitted by the second program 34 of the printer 14 is received by the external mediator 12 (step S14). When the first program 24 of the external intermediary device 12 receives the device ID and GUID, it determines whether or not the received device ID is already registered in the corresponding database, and if it determines that it is not registered, the received device ID. And the GUID is used to register a new record in the corresponding database (step S15).

なお、このフローチャートでは図示を省略しているが、外部仲介装置12の第1プログラム24は、デバイスIDを受信したことを示す応答を含むHTTPレスポンスを、ステップS14で受信したHTTPリクエストの応答として、プリンタ14に返信する。あるいは、外部仲介装置12の第1プログラム24は、対応データベースに登録したデバイスIDを含むHTTPレスポンスを、ステップS14で受信したHTTPリクエストの応答として、プリンタ14に返信してもよい。 Although not shown in this flowchart, the first program 24 of the external intermediary device 12 uses an HTTP response including a response indicating that the device ID has been received as a response to the HTTP request received in step S14. Reply to the printer 14. Alternatively, the first program 24 of the external intermediary device 12 may return the HTTP response including the device ID registered in the corresponding database to the printer 14 as the response of the HTTP request received in step S14.

このとき、上記のようにしてデータベースに新たに追加されたレコードにおいては、項目「管理状況情報」には、初期値の「待機中」が記憶される。図2の例では、デバイスID「009」のプリンタ14を示すレコードが、新たに追加されたレコードである。「待機中」であるレコードが示すプリンタ14は、まだ管理サーバ11には登録されていない。すなわち、管理システム10の管理対象とはなっていない、仮の登録状態であると言える。なお、管理対象となったプリンタ14を示すレコードは、「管理状況情報」が「待機中」から「管理中」に変更されている。 At this time, in the record newly added to the database as described above, the initial value "waiting" is stored in the item "management status information". In the example of FIG. 2, the record indicating the printer 14 with the device ID “009” is a newly added record. The printer 14 indicated by the "waiting" record has not yet been registered in the management server 11. That is, it can be said that it is a temporary registration state that is not managed by the management system 10. In the record indicating the printer 14 to be managed, the "management status information" is changed from "waiting" to "managing".

なお、外部仲介装置12の第1プログラム24は、受信したデバイスIDが既に対応データベースに登録されていると判断すると、受信したデバイスIDが対応データベースに登録済みである旨を示す応答を、プリンタ14に返信する。 When the first program 24 of the external intermediary device 12 determines that the received device ID is already registered in the corresponding database, the printer 14 sends a response indicating that the received device ID is already registered in the corresponding database. Reply to.

図3に戻り、次に、外部仲介装置12の第1プログラム24は、削除指示が入力されたか否かを判断する(ステップS16)。削除指示は、例えば、管理者が外部仲介装置12に入力する指示である。例えば、第1プログラム24は、レコードを生成して対応データベースに登録したことを外部仲介装置12のディスプレイに表示させる。ディスプレイを確認した管理者は、対応データベースを外部仲介装置12のディスプレイに表示させ、「待機中」のデバイスIDが示すプリンタ14が、管理すべき対象のプリンタ14であるか否かを判断する。管理者は、管理システム10によって管理すべき対象でないプリンタ14のデバイスIDを対象に削除指示を入力する。すなわち、対応データベースに登録されるデバイスIDが適正か否かは、外部仲介装置12において管理者によって確認される。 Returning to FIG. 3, the first program 24 of the external intermediary device 12 then determines whether or not a deletion instruction has been input (step S16). The deletion instruction is, for example, an instruction input by the administrator to the external intermediary device 12. For example, the first program 24 displays on the display of the external intermediary device 12 that the record has been generated and registered in the corresponding database. The administrator who confirmed the display displays the corresponding database on the display of the external intermediary device 12, and determines whether or not the printer 14 indicated by the "standby" device ID is the target printer 14 to be managed. The administrator inputs a deletion instruction for the device ID of the printer 14 that should not be managed by the management system 10. That is, whether or not the device ID registered in the corresponding database is appropriate is confirmed by the administrator in the external intermediary device 12.

外部仲介装置12の第1プログラム24は、削除指示が入力されたと判断すると(ステップS16:Yes)、削除指示がされたレコードを対応データベースから削除する(ステップS17)。一方、外部仲介装置12の第1プログラム24は、削除指示が入力されていないと判断すると、ステップS17の処理をスキップする。 When the first program 24 of the external intermediary device 12 determines that the deletion instruction has been input (step S16: Yes), the first program 24 of the external intermediary device 12 deletes the record for which the deletion instruction has been given from the corresponding database (step S17). On the other hand, if the first program 24 of the external intermediary device 12 determines that the deletion instruction has not been input, the process of step S17 is skipped.

次に、外部仲介装置12の第1プログラム24は、管理システム10の管理を開始する管理開始指示が入力されるまで待機する(ステップS18:No)。第1プログラム24は、管理開始指示が入力されたと判断すると(ステップS18:Yes)、コマンドを管理サーバ11に送信する(ステップS19)。当該コマンドは、対応データベースに登録されたデバイスIDを付帯情報として含む。また、当該コマンドは、付帯するデバイスIDを管理対象のプリンタ14のデバイスIDとして登録することを管理サーバ11に要求するコマンドである。 Next, the first program 24 of the external intermediary device 12 waits until a management start instruction for starting the management of the management system 10 is input (step S18: No). When the first program 24 determines that the management start instruction has been input (step S18: Yes), the first program 24 transmits a command to the management server 11 (step S19). The command includes the device ID registered in the corresponding database as incidental information. Further, the command is a command that requests the management server 11 to register the incidental device ID as the device ID of the printer 14 to be managed.

なお、外部仲介装置12の第1プログラム24は、ステップS18において、管理の開始を拒否する旨の指示の入力を受け付けてもよい。その場合、第1プログラム24は、ステップS22において、管理の開始を拒否する旨の指示が入力されたことを示すHTTPレスポンスをプリンタ14の第2プログラム34に送信する。第2プログラム34は、当該HTTPレスポンスを受信した場合に、管理の開始を拒否する旨の指示が外部仲介装置12において入力されたことを示す情報を、例えばプリンタ14に設けたディスプレイに表示させる。担当者は、ディスプレイに表示された情報により、管理の開始を拒否する旨の指示が外部仲介装置12において入力されたことを確認することができる。 The first program 24 of the external intermediary device 12 may accept the input of an instruction to refuse the start of management in step S18. In that case, the first program 24 transmits an HTTP response indicating that the instruction to refuse the start of management has been input to the second program 34 of the printer 14 in step S22. When the second program 34 receives the HTTP response, the second program 34 displays, for example, information indicating that an instruction to refuse the start of management has been input in the external intermediary device 12 on a display provided in the printer 14, for example. The person in charge can confirm from the information displayed on the display that the instruction to refuse the start of management has been input in the external intermediary device 12.

外部仲介装置12が送信した上記コマンドは、管理サーバ11によって受信される(ステップS19)。コマンドを受信した管理サーバ11は、受信したコマンドに含まれるデバイスIDを不図示のメモリに記憶する。すなわち、管理サーバ11は、受信したコマンドに含まれるデバイスIDを、管理対象のプリンタ14のデバイスIDとして登録する。その後、管理サーバ11は、コマンドに含まれるデバイスIDを登録した旨を示す応答を、インターネット15を通じて外部仲介装置12に返信する(ステップS20)。 The command transmitted by the external mediator 12 is received by the management server 11 (step S19). The management server 11 that has received the command stores the device ID included in the received command in a memory (not shown). That is, the management server 11 registers the device ID included in the received command as the device ID of the printer 14 to be managed. After that, the management server 11 returns a response indicating that the device ID included in the command has been registered to the external intermediary device 12 via the Internet 15 (step S20).

管理サーバ11が返信した応答は、外部仲介装置12によって受信される(ステップS20)。外部仲介装置12の第1プログラム24は、管理サーバ11からの応答を受信した場合に、管理システム10の管理を開始する(ステップS21)。具体的には、図2に示されるデータベースの項目「管理状況情報」を、「待機中」から「管理中」に変更する。 The response returned by the management server 11 is received by the external mediator 12 (step S20). When the first program 24 of the external intermediary device 12 receives the response from the management server 11, the first program 24 starts the management of the management system 10 (step S21). Specifically, the database item "management status information" shown in FIG. 2 is changed from "waiting" to "managing".

次に、外部仲介装置12の第1プログラム24は、プリンタ14が定期的に送信するHTTPリクエストに対するHTTPレスポンスとして、「管理中」であるデバイスID、すなわち、管理を開始したプリンタ14のデバイスIDを、プリンタ14に送信する(ステップS22)。このとき、S17で削除されたデバイスIDは、送信されない。 Next, the first program 24 of the external mediator 12 sets the device ID that is "under management", that is, the device ID of the printer 14 that has started management, as the HTTP response to the HTTP request that the printer 14 periodically transmits. , Sent to the printer 14 (step S22). At this time, the device ID deleted in S17 is not transmitted.

なお、外部仲介装置12の第1プログラム24は、ステップS14で受信したHTTPリクエストの応答として、ステップS22のHTTPレスポンスをプリンタ14に送信してもよい。その場合、タイムアウトが生じないように、ステップS16及びステップS17の処理が省略されることが望ましい。 The first program 24 of the external mediator 12 may transmit the HTTP response of step S22 to the printer 14 as the response of the HTTP request received in step S14. In that case, it is desirable that the processes of steps S16 and S17 are omitted so that a timeout does not occur.

なお、このフローチャートでは図示を省略しているが、プリンタ14の第2プログラム34は、管理を開始したデバイスIDを受信すると(ステップS22)、管理を開始したデバイスIDをメモリ42に記憶する。第2プログラム34は、管理を開始したデバイスIDを受信したことを、例えばプリンタ14に設けたディスプレイに表示させるなどして、担当者に認識させる。担当者は、メモリ42に記憶されたデバイスIDをプリンタ14のディスプレイに表示させ、当該プリンタ14への管理が開始されたこと確認することができる。なお、外部仲介装置12の管理者は、メモリ22に記憶された対応データベースを外部仲介装置12のディスプレイに表示させることにより、管理を開始されたプリンタ14を確認することができる。また、外部仲介装置12の管理者は、ブラウザを用いて、管理サーバ11に記憶されたデータをディスプレイに表示させることにより、管理を開始されたプリンタ14を確認することもできる。 Although not shown in this flowchart, when the second program 34 of the printer 14 receives the device ID that started management (step S22), the device ID that started management is stored in the memory 42. The second program 34 causes the person in charge to recognize that the device ID that has started management has been received, for example, by displaying it on a display provided in the printer 14. The person in charge can display the device ID stored in the memory 42 on the display of the printer 14 and confirm that the management to the printer 14 has started. The administrator of the external intermediary device 12 can confirm the printer 14 whose management has been started by displaying the corresponding database stored in the memory 22 on the display of the external intermediary device 12. In addition, the administrator of the external intermediary device 12 can confirm the printer 14 for which management has been started by displaying the data stored in the management server 11 on the display using a browser.

<管理サーバからの指示で実行する処理(ステータス報告以外)>
次に、項目「管理状況情報」が「管理中」であるレコードのデバイスIDを有するプリンタ14に対しては、管理サーバ11からの指示に応じたコマンドが入力される。すなわち、管理サーバ11によってプリンタ14の管理が行われる。この管理の詳細を、図4及び図5を参照して詳しく説明する。なお、管理サーバ11への指示は、ブラウザを用いて管理者が管理サーバ11に入力する。
<Processes executed according to instructions from the management server (other than status report)>
Next, a command corresponding to an instruction from the management server 11 is input to the printer 14 having the device ID of the record whose item "management status information" is "under management". That is, the management server 11 manages the printer 14. The details of this management will be described in detail with reference to FIGS. 4 and 5. The administrator inputs the instruction to the management server 11 to the management server 11 using a browser.

まず、管理サーバ11は、インターネット15を通じて、第1指示コマンドを外部仲介装置12に送信する(ステップS31)。第1指示コマンドは、プリンタ14に実行させる指示に応じた指示を外部仲介装置12に実行させるコマンドである。第1指示コマンドは、指示を実行させるプリンタ14を特定するためのデバイスIDを付帯情報として含む。 First, the management server 11 transmits the first instruction command to the external intermediary device 12 via the Internet 15 (step S31). The first instruction command is a command for causing the external mediator 12 to execute an instruction corresponding to the instruction to be executed by the printer 14. The first instruction command includes a device ID for identifying the printer 14 to execute the instruction as incidental information.

第1指示コマンドは、例えば、この例では、プリンタ14に所望の印刷を行わせる旨の指示、設定情報(図2)の「フォント」「フォントサイズ」「濃度」などの各項目についてプリンタ14の設定値を変更する旨の指示、プリンタ14の第2プログラム34のファームバージョン(図2)を更新する旨の指示、等の実行を外部仲介装置12に指示するコマンドである。なお、プリンタ14の現在のステータス情報を返信することを要求する指示である場合については、別途後述する。ただし、第1指示コマンドが指示する内容は、これらの例に限られない。 The first instruction command is, for example, in this example, an instruction to cause the printer 14 to perform desired printing, and the printer 14 for each item such as "font", "font size", and "density" of the setting information (FIG. 2). This command instructs the external intermediary device 12 to execute an instruction to change the set value, an instruction to update the firmware version (FIG. 2) of the second program 34 of the printer 14, and the like. The case of an instruction requesting that the current status information of the printer 14 be returned will be described later. However, the content indicated by the first instruction command is not limited to these examples.

外部仲介装置12の第1プログラム24は、管理サーバ11が送信した第1指示コマンドを受信する(ステップS31)。 The first program 24 of the external mediator 12 receives the first instruction command transmitted by the management server 11 (step S31).

外部仲介装置12の第1プログラム24は、第1指示コマンドを受信した場合に(ステップS31)、第1指示コマンドを受信した旨を示す通知を管理サーバ11に送信する(ステップS32)。 When the first program 24 of the external intermediary device 12 receives the first instruction command (step S31), the first program 24 transmits a notification indicating that the first instruction command has been received to the management server 11 (step S32).

外部仲介装置12の第1プログラム24は、第1指示コマンドを受信すると(ステップS31)、第1指示コマンドに含まれるデバイスIDと対応付けられたGUIDを、対応データベースから特定する(ステップS33)。すなわち、第1プログラム24は、指示を送信すべきプリンタ14の第2プログラム34をGUIDによって特定する。具体的には、第1プログラム24は、第1指示コマンドに含まれるデバイスIDを有するレコードを対応データベース上で特定し、特定したレコードにおける項目「GUID」のGUIDを、対応するGUIDとして特定する。 When the first program 24 of the external mediator 12 receives the first instruction command (step S31), the first program 24 identifies the GUID associated with the device ID included in the first instruction command from the corresponding database (step S33). That is, the first program 24 specifies the second program 34 of the printer 14 to which the instruction should be transmitted by the GUID. Specifically, the first program 24 specifies the record having the device ID included in the first instruction command on the corresponding database, and specifies the GUID of the item "GUID" in the specified record as the corresponding GUID.

次に、外部仲介装置12の第1プログラム24は、第1指示コマンドの指示に応じた第2指示コマンドを生成する(ステップS34)。第2指示コマンドは、プリンタ14に入力可能なコマンドであって、第1指示コマンドが指示する内容に応じて生成されるコマンドである。第2指示コマンドは、第1指示コマンドに含まれるデバイスIDを付帯情報として含む。 Next, the first program 24 of the external mediator 12 generates a second instruction command in response to the instruction of the first instruction command (step S34). The second instruction command is a command that can be input to the printer 14 and is a command generated according to the content instructed by the first instruction command. The second instruction command includes the device ID included in the first instruction command as incidental information.

なお、図2では図示省略しているが、外部仲介装置12のメモリ22のデータ記憶領域29は、第1コマンドリストを記憶している。第1コマンドリストは、第1指示コマンドと第2指示コマンドとの対応が示されている。外部仲介装置12の第1プログラム24は、ステップS31で受信した第1指示コマンドに対応する第2指示コマンドを第1コマンドリストから決定し、決定した第2指示コマンドに、第1指示コマンドに含まれるデバイスIDを付帯情報として含ませて、第2指示コマンドを生成する(ステップS34)。 Although not shown in FIG. 2, the data storage area 29 of the memory 22 of the external mediator 12 stores the first command list. The first command list shows the correspondence between the first command and the second command. The first program 24 of the external intermediary device 12 determines the second instruction command corresponding to the first instruction command received in step S31 from the first command list, and includes the determined second instruction command in the first instruction command. A second instruction command is generated by including the device ID to be used as incidental information (step S34).

また、上記同様図示省略しているが、外部仲介装置12の第1プログラム24は、第1指示コマンドが示す指示が、プリンタ14へのファイル送信である場合、送信対象のファイルを管理サーバ11に要求する。要求を受信した管理サーバ11は、ファイルを外部仲介装置12に送信する。第1プログラム24は、ファイルを受信し、メモリ22に記憶する。例えば、プリンタ14に設定変更を指示するテキストが含まれるファイル、新しいバージョンの第2プログラム34のプログラムファイル、等が送信対象のファイルの例である。第1プログラム24は、管理サーバ11からファイルを受信した場合、ステップS34にて、フィルのダウンロードをプリンタ14の第2プログラムに指示する第2指示コマンドを生成する。 Further, although not shown above, the first program 24 of the external intermediary device 12 sends a file to be transmitted to the management server 11 when the instruction indicated by the first instruction command is a file transmission to the printer 14. Request. Upon receiving the request, the management server 11 transmits the file to the external intermediary device 12. The first program 24 receives the file and stores it in the memory 22. For example, a file containing a text instructing the printer 14 to change the setting, a program file of a new version of the second program 34, and the like are examples of files to be transmitted. When the first program 24 receives the file from the management server 11, in step S34, the first program 24 generates a second instruction command instructing the second program of the printer 14 to download the file.

外部仲介装置12の第1プログラム24は、第2指示コマンドの生成後、プリンタ14からのHTTPリクエストを受信するまで待機する。 The first program 24 of the external mediator 12 waits until the HTTP request from the printer 14 is received after the generation of the second instruction command.

一方、プリンタ14の第2プログラム34は、予めメモリ32に記憶された送信タイミングになったか否かを判断する(ステップS35)。なお、送信タイミングは、例えば、10秒間隔や15秒間隔や、20秒間隔など、数秒間隔から数十秒間隔に設定される。 On the other hand, the second program 34 of the printer 14 determines whether or not the transmission timing stored in the memory 32 in advance has been reached (step S35). The transmission timing is set from a few seconds interval to a several tens of seconds interval, for example, a 10-second interval, a 15-second interval, a 20-second interval, or the like.

プリンタ14の第2プログラム34は、送信タイミングになったと判断すると(ステップS35:Yes)、自己のGUIDを含むHTTPリクエストを外部仲介装置12に送信する(ステップS36)。このリクエストは「GetAction」とも称され、後述のように、プリンタ14へ所望の処理の実行を指示する処理実行指示の有無を外部仲介装置12に問い合わせるものである。 When the second program 34 of the printer 14 determines that the transmission timing has come (step S35: Yes), it transmits an HTTP request including its own GUID to the external intermediary device 12 (step S36). This request is also referred to as "Get Action", and as will be described later, asks the external mediator 12 for the presence or absence of a process execution instruction instructing the printer 14 to execute a desired process.

外部仲介装置12の第1プログラム24は、プリンタ14が送信したHTTPリクエストを受信する(ステップS36)。第1プログラム24は、受信したHTTPリクエストに含まれるGUIDが、ステップS3で決定したGUIDと一致するか否かを判断する(ステップS37)。すなわち、第1プログラム24は、HTTPリクエストを送信したプリンタ14が、ステップS34で生成した第2指示コマンドを送信すべきプリンタ14であるか否かを判断する。 The first program 24 of the external mediator 12 receives the HTTP request transmitted by the printer 14 (step S36). The first program 24 determines whether or not the GUID included in the received HTTP request matches the GUID determined in step S3 (step S37). That is, the first program 24 determines whether or not the printer 14 that has transmitted the HTTP request is the printer 14 that should transmit the second instruction command generated in step S34.

外部仲介装置12の第1プログラム24は、ステップS36で受信したHTTPリクエストに含まれるGUIDとステップS33で決定したGUIDとが一致しないと判断すると(ステップS37:No)、第2指示コマンドを含まないHTTPレスポンスを送信する(ステップS38)。このステップS38で送信されるHTTPレスポンスは、ステップS36で送信されたHTTPリクエストを受信できたことのみを示す。 If the first program 24 of the external intermediary device 12 determines that the GUID included in the HTTP request received in step S36 and the GUID determined in step S33 do not match (step S37: No), the first program 24 does not include the second instruction command. The HTTP response is transmitted (step S38). The HTTP response transmitted in step S38 only indicates that the HTTP request transmitted in step S36 could be received.

一方、外部仲介装置12の第1プログラム24は、ステップS36で受信したHTTPリクエストに含まれるGUIDとステップS33で決定したGUIDとが一致すると判断すると(ステップS37:Yes)、第2指示コマンドを含むHTTPレスポンスを送信する(ステップS39)。すなわち、外部仲介装置12は、プリンタ14からのHTTPリクエストに対するHTTPレスポンスに上記第2指示コマンドを含ませることにより、ファイアウォールを通じて第2指示コマンドをプリンタ14に送信する。このレスポンスは「BrActionInfo」とも称される。またこのとき、外部仲介装置12には、処理の実行を指示済であることを記録するリストを備えている。外部仲介装置12の第1プログラム24は、上記のように第2指示コマンドを送信したとき、上記リストに、当該第2指示コマンドにより対応する処理の実行が指示されたことを記録する。 On the other hand, when the first program 24 of the external intermediary device 12 determines that the GUID included in the HTTP request received in step S36 and the GUID determined in step S33 match (step S37: Yes), the first program 24 includes the second instruction command. The HTTP response is transmitted (step S39). That is, the external mediator 12 transmits the second instruction command to the printer 14 through the firewall by including the above second instruction command in the HTTP response to the HTTP request from the printer 14. This response is also referred to as "BrActionInfo". At this time, the external intermediary device 12 is provided with a list for recording that the execution of the process has been instructed. When the first program 24 of the external intermediary device 12 transmits the second instruction command as described above, the first program 24 records in the above list that the execution of the corresponding process is instructed by the second instruction command.

プリンタ14の第2プログラム34は、外部仲介装置12が送信したHTTPレスポンスを受信する(ステップS38,S39)。第2プログラム34は、受信したHTTPレスポンスに第2指示コマンドが含まれているか否かを判断する(ステップS40)。第2プログラム34は、受信したHTTPレスポンスに第2指示コマンドが含まれていないと判断すると(ステップS40:No)、ステップS35に戻って定期的なHTTPリクエストの送信を継続する。 The second program 34 of the printer 14 receives the HTTP response transmitted by the external mediator 12 (steps S38 and S39). The second program 34 determines whether or not the received HTTP response includes the second instruction command (step S40). When the second program 34 determines that the received HTTP response does not include the second instruction command (step S40: No), the second program 34 returns to step S35 and continues to transmit the periodic HTTP request.

なお、このフローチャートでは図示を省略しているが、ステップS39で受信した第2指示コマンドがファイルのダウンロードを示すコマンドである場合、プリンタ14の第2プログラム34は、ファイルの送信要求を含むHTTPリクエストを外部仲介装置12に送信する。当該HTTPリクエストを受信した外部仲介装置12の第1プログラム24は、HTTPリクエストに含まれるコマンドに応じて、ファイルを含むHTTPレスポンスをプリンタ14に送信する。プリンタ14の第2プログラム34は、HTTPレスポンスに含まれるファイルを受信する。なお、ファイルは、第2指示コマンドに含めて送信されてもよい。この場合、第2プログラム34から第1プログラム24へ、ファイルの送信要求は送信されない。 Although not shown in this flowchart, when the second instruction command received in step S39 is a command indicating file download, the second program 34 of the printer 14 requests an HTTP including a file transmission request. Is transmitted to the external mediator 12. The first program 24 of the external intermediary device 12 that has received the HTTP request transmits an HTTP response including a file to the printer 14 in response to a command included in the HTTP request. The second program 34 of the printer 14 receives the file included in the HTTP response. The file may be included in the second instruction command and transmitted. In this case, the file transmission request is not transmitted from the second program 34 to the first program 24.

なお、プリンタ14の第2プログラム34は、ステップS39で受信した第2指示コマンドが示す指示が、設定情報の変更やファームバージョンの更新であるか、ステータス情報の取得であるか(後述の例の場合)を、第2指示コマンドに付帯されたステータス要求フラグで判断してもよい。例えば、外部仲介装置12の第1プログラム24は、ステップS31で受信した第1指示コマンドがステータス情報を要求する指示である場合、「ON」に設定されたステータス要求フラグを第2指示コマンドに付帯させる。 In the second program 34 of the printer 14, whether the instruction indicated by the second instruction command received in step S39 is to change the setting information, update the firmware version, or acquire the status information (in the example described later). Case) may be determined by the status request flag attached to the second instruction command. For example, when the first instruction command received in step S31 is an instruction for requesting status information, the first program 24 of the external intermediary device 12 attaches the status request flag set to "ON" to the second instruction command. Let me.

一方、プリンタ14の第2プログラム34は、受信したHTTPレスポンスに第2指示コマンドが含まれていると判断すると(ステップS40:Yes)、第2指示コマンドを受信したことを示す通知(以下、「受信通知」とも記載する)を含むHTTPリクエストを外部仲介装置12に送信する(ステップS41)。このレスポンスは「DeleteDevice」とも称される。外部仲介装置12の第1プログラム24は、受信通知を含む、上記HTTPリクエストを受信する(ステップS41)。すなわち、第2プログラム34は、第2指示コマンドを受信したことを外部仲介装置12に通知する。この通知の意義は、以下のとおりである。 On the other hand, when the second program 34 of the printer 14 determines that the received HTTP response includes the second instruction command (step S40: Yes), the notification indicating that the second instruction command has been received (hereinafter, "" An HTTP request including (also referred to as "receipt notification") is transmitted to the external intermediary device 12 (step S41). This response is also referred to as "Delate Device". The first program 24 of the external mediator 12 receives the HTTP request including the reception notification (step S41). That is, the second program 34 notifies the external mediator 12 that the second instruction command has been received. The significance of this notification is as follows.

すなわち、このフローチャートでは図示を省略しているが、第1プログラム24は、受信通知を含むHTTPリクエストを所定の時間内に受信しないと判断すると、プリンタ14から定期的に送信されるHTTPリクエストのHTTPレスポンスとして、第2指示コマンドをプリンタ14に再送する。そして、第1プログラム24は、受信通知を含むHTTPリクエストを受信した場合に、受信通知を受信したことを示すHTTPレスポンスをプリンタ14に返信する。 That is, although not shown in this flowchart, if the first program 24 determines that the HTTP request including the reception notification is not received within a predetermined time, the HTTP of the HTTP request periodically transmitted from the printer 14 is determined. As a response, the second instruction command is retransmitted to the printer 14. Then, when the first program 24 receives the HTTP request including the reception notification, the first program 24 returns an HTTP response indicating that the reception notification has been received to the printer 14.

すなわち、プリンタ14の第2プログラム34は、上記受信通知を受信しなければ、第2指示コマンドに対応する応答(後述のステップS55,S62参照)を受信するまで、プリンタ14が第2指示コマンドを受信できたか否かを判断することができない。その結果、第2指示コマンドに対応する応答を受信するまでの時間が、第2指示コマンドを再送信するまでの時間として決められた所定の時間を超え、プリンタ14が第2指示コマンドを受信しているにも拘わらず、外部仲介装置12が第2指示コマンドを再送してしまうことが生じ得る。そこで、プリンタ14の第2プログラム34は、第2指示コマンドに対応する応答(ステップS55,S62)を送信するより前に、受信通知を外部仲介装置12に送信する(ステップS41)。これにより、プリンタ14が第2指示コマンドを受信しているにも拘わらず、外部仲介装置12が第2指示コマンドを再送してしまうことが防止される。 That is, if the second program 34 of the printer 14 does not receive the reception notification, the printer 14 issues the second instruction command until it receives a response corresponding to the second instruction command (see steps S55 and S62 described later). It is not possible to determine whether or not the command was received. As a result, the time until the response corresponding to the second instruction command is received exceeds a predetermined time determined as the time until the second instruction command is retransmitted, and the printer 14 receives the second instruction command. Despite this, the external mediator 12 may resend the second instruction command. Therefore, the second program 34 of the printer 14 transmits a reception notification to the external intermediary device 12 (step S41) before transmitting the responses (steps S55 and S62) corresponding to the second instruction command. This prevents the external mediator 12 from retransmitting the second instruction command even though the printer 14 has received the second instruction command.

なお、このフローチャートでは図示を省略しているが、外部仲介装置12の第1プログラム24は、プリンタ14が送信したこのHTTPリクエストを受信すると、前述のリストから、対応する第2指示コマンドの記録を削除する。そして、第1プログラム24は、上記第2指示コマンドの記録を削除したことを示す通知をプリンタ14に送信する。このレスポンスは「BrResponseBasicInfo」とも称される。 Although not shown in this flowchart, when the first program 24 of the external intermediary device 12 receives the HTTP request transmitted by the printer 14, the corresponding second instruction command is recorded from the above list. delete. Then, the first program 24 sends a notification to the printer 14 indicating that the record of the second instruction command has been deleted. This response is also referred to as "BrResponseBasicInfo".

プリンタ14の第2プログラム34は、ステップS41の処理の実行後、第2指示コマンドが示す指示を実行する(ステップS52)。例えば、第2指示コマンドがプリンタ14に所望の印刷を行わせる旨の指示である場合、第2プログラム34は、印刷エンジン51により、被印刷媒体への印刷を実行する。また、第2指示コマンドが設定情報(図2)の「フォント」や「フォントサイズ」や「濃度」などの各項目についてプリンタ14の設定を変更する旨の指示である場合、第2プログラム34は、「フォント」や「フォントサイズ」や「濃度」などの設定値を、第2指示コマンドに含まれる設定値で変更する。また、第2指示コマンドが、ファームバージョンを更新する旨の指示である場合、第2プログラム34は、第2指示コマンドに含まれるプログラムで自己を更新する。このステップS52での処理は「Actionの実行」とも称され、前述のように受信した処理実行指示に対応する処理を実行するものである。 The second program 34 of the printer 14 executes the instruction indicated by the second instruction command after executing the process of step S41 (step S52). For example, when the second instruction command is an instruction to cause the printer 14 to perform desired printing, the second program 34 executes printing on the printing medium by the printing engine 51. If the second instruction command is an instruction to change the settings of the printer 14 for each item such as "font", "font size", and "density" of the setting information (FIG. 2), the second program 34 , Change the setting values such as "font", "font size", and "density" with the setting values included in the second instruction command. When the second instruction command is an instruction to update the farm version, the second program 34 updates itself with the program included in the second instruction command. The process in step S52 is also referred to as "execution of Action", and executes the process corresponding to the process execution instruction received as described above.

次に、プリンタ14の第2プログラム34は、第2指示コマンドが示す指示を自らが実行できたか否かを判断する(ステップS54)。 Next, the second program 34 of the printer 14 determines whether or not the instruction indicated by the second instruction command can be executed by itself (step S54).

第2指示コマンドが示す指示を実行できなかったと判断した場合(ステップS54:No)は、第2プログラム34は、第1エラー情報を含むHTTPリクエストを外部仲介装置12に送信する(ステップS55)。このとき送信されるHTTPリクエストは、プリンタ14が外部仲介装置12に定期的に送信するHTTPリクエストであってもよいし、定期的に送信するHTTPリクエストとは別に送信するHTTPリクエストであってもよい。 When it is determined that the instruction indicated by the second instruction command cannot be executed (step S54: No), the second program 34 transmits the HTTP request including the first error information to the external mediator 12 (step S55). The HTTP request transmitted at this time may be an HTTP request that the printer 14 periodically transmits to the external intermediary device 12, or an HTTP request that is transmitted separately from the HTTP request that is periodically transmitted. ..

なお、前述の図2では図示を省略したが、プリンタ14のメモリ42のデータ記憶領域49は、上記第1エラーコードと、エラーの内容との対応が示された第1エラー対応リストが記憶されている。プリンタ14の第2プログラム34は、エラーの内容と対応する第1エラーコードを第1エラー対応リストから決定し、決定した第1エラーコードと、デバイスIDとを含む第1エラー情報を生成し、生成した第1エラー情報をHTTPリクエストに含めて送信する(ステップS55)。 Although not shown in FIG. 2, the data storage area 49 of the memory 42 of the printer 14 stores a first error correspondence list showing the correspondence between the first error code and the content of the error. ing. The second program 34 of the printer 14 determines the first error code corresponding to the content of the error from the first error correspondence list, generates the first error information including the determined first error code and the device ID, and generates the first error information. The generated first error information is included in the HTTP request and transmitted (step S55).

送信された第1エラー情報は、外部仲介装置12によって受信される(ステップS55)。外部仲介装置12の第1プログラム24は、受信した第1エラー情報に基づいて、第2エラー情報を生成する(ステップS56)。第2エラー情報は、管理サーバ11が認識できる形式の第2エラーコードを含む。前述の図2では図示を省略したが、外部仲介装置12のメモリ22のデータ記憶領域29は、第1エラーコードと、第2エラーコードとの対応を示す第2エラー対応リストを記憶する。第1プログラム24は、第1エラーコードと対応する第2エラーコードを第2エラー対応リストから決定し、決定した第2エラーコードと、第1エラー情報に含まれるデバイスIDとを含む第2エラー情報を生成する(ステップS56)。 The transmitted first error information is received by the external mediator 12 (step S55). The first program 24 of the external mediator 12 generates the second error information based on the received first error information (step S56). The second error information includes a second error code in a format that can be recognized by the management server 11. Although not shown in FIG. 2 above, the data storage area 29 of the memory 22 of the external mediator 12 stores a second error correspondence list indicating the correspondence between the first error code and the second error code. The first program 24 determines the second error code corresponding to the first error code from the second error correspondence list, and the second error including the determined second error code and the device ID included in the first error information. Information is generated (step S56).

外部仲介装置12の第1プログラム24は、ステップS56で生成した第2エラー情報を、受信した第1指示コマンド(ステップS31)の応答として、管理サーバ11に送信する(ステップS57)。送信された第2エラー情報は、管理サーバ11によって受信される(ステップS57)。管理サーバ11は、第2エラー情報を受信すると、第2エラー情報を受信したことを示す受信応答を送信する。送信された受信応答は、外部仲介装置12によって受信される(ステップS58)。 The first program 24 of the external mediator 12 transmits the second error information generated in step S56 to the management server 11 as a response to the received first instruction command (step S31) (step S57). The transmitted second error information is received by the management server 11 (step S57). When the management server 11 receives the second error information, it transmits a reception response indicating that the second error information has been received. The transmitted reception response is received by the external mediator 12 (step S58).

一方、上記ステップS54において、プリンタ14の第2プログラム34は、第2指示コマンドが指示する内容をプリンタ14が実行できたと判断した場合(ステップS54:Yes)は、HTTPリクエストを定期的に送信する送信タイミングになるまで待機する(ステップS61:No)。送信タイミングになったと判断すると(ステップS61:Yes)、第2プログラム34は、第2指示コマンドが指示する内容をステップS52で実行した後の、ステータス情報を含むHTTPリクエストを、ステップS39で受信した第2指示コマンドの応答として、外部仲介装置12に送信する(ステップS62)。なお、このときのステータス情報は、設定情報やファームバージョンなどである。このリクエストは「EnrollNotification」とも称され、前述の実行処理での処理実行結果を送信するものである。 On the other hand, in step S54, when the second program 34 of the printer 14 determines that the printer 14 has been able to execute the content instructed by the second instruction command (step S54: Yes), it periodically transmits an HTTP request. Wait until the transmission timing is reached (step S61: No). When it is determined that the transmission timing has come (step S61: Yes), the second program 34 receives the HTTP request including the status information in step S39 after executing the content instructed by the second instruction command in step S52. As a response of the second instruction command, it is transmitted to the external intermediary device 12 (step S62). The status information at this time is setting information, farm version, and the like. This request is also referred to as "Enroll Notification" and transmits the processing execution result in the above-mentioned execution processing.

なお、このフローチャートでは図示を省略しているが、外部仲介装置12の第1プログラム24は、ステータス情報を含むHTTPリクエストを受信した後(ステップS62)、当該HTTPリクエストを受信したことを示す旨を、当該HTTPリクエストのHTTPレスポンスとして、プリンタ14に送信する。このレスポンスは「BrResponseBasicInfo」とも称される。 Although not shown in this flowchart, it indicates that the first program 24 of the external intermediary device 12 has received the HTTP request after receiving the HTTP request including the status information (step S62). , Is transmitted to the printer 14 as an HTTP response of the HTTP request. This response is also referred to as "BrResponseBasicInfo".

上記のようにプリンタ14から外部仲介装置12へ定期的に送信するHTTPリクエストにステータス情報を含ませることにより、定期的に送信するHTTPリクエストとは別にステータス情報を送信する場合に比べ、プリンタ14と外部仲介装置12との間の通信回数を低減することができる。なお、第2プログラム34は、定期的に送信するHTTPリクエストとは別のHTTPリクエストに、変更後のステータス情報を含ませて外部仲介装置12に送信してもよい。その場合、定期的に送信するHTTPリクエストにステータス情報を含ませる場合よりも、ステータス情報を迅速に外部仲介装置12に送信することができる。 By including the status information in the HTTP request that is periodically transmitted from the printer 14 to the external intermediary device 12 as described above, the printer 14 and the printer 14 are compared with the case where the status information is transmitted separately from the HTTP request that is periodically transmitted. The number of communications with the external mediator 12 can be reduced. The second program 34 may include the changed status information in an HTTP request different from the HTTP request that is periodically transmitted and transmit it to the external intermediary device 12. In that case, the status information can be transmitted to the external intermediary device 12 more quickly than when the status information is included in the HTTP request to be transmitted periodically.

外部仲介装置12の第1プログラム24は、変更後のステータス情報を、第2指示コマンドの応答として受信する(ステップS62)。第1プログラム24は、ステータス情報を受信すると、対応データベース(図2)の設定情報やファームバージョンなどの値を、受信したステータス情報で上書きする(ステップS63)。 The first program 24 of the external mediator 12 receives the changed status information as a response to the second instruction command (step S62). When the first program 24 receives the status information, the first program 24 overwrites the values such as the setting information and the farm version of the corresponding database (FIG. 2) with the received status information (step S63).

次に、外部仲介装置12の第1プログラム24は、第1指示コマンドが示す指示をプリンタ14が実行したこと、及び、ステップS62で受信したステータス情報、を含む設定完了情報を生成する。そして、生成した設定完了情報を、ステップS31で受信した第1指示コマンドの応答として、管理サーバ11に送信する(ステップS64)。設定完了情報は、例えば、管理サーバ11に入力可能なコマンドであって、ステータス情報を付帯情報として有するコマンドである。なお、外部仲介装置12の第1プログラム24は、設定完了情報とは別に、S62で受信したステータス情報を管理サーバ11に送信してもよい。すなわち、設定を行った旨と、設定後のステータス情報とが、別個に管理サーバ11に送信されてもよい。 Next, the first program 24 of the external intermediary device 12 generates setting completion information including the fact that the printer 14 has executed the instruction indicated by the first instruction command and the status information received in step S62. Then, the generated setting completion information is transmitted to the management server 11 as a response to the first instruction command received in step S31 (step S64). The setting completion information is, for example, a command that can be input to the management server 11 and has status information as incidental information. The first program 24 of the external intermediary device 12 may transmit the status information received in S62 to the management server 11 in addition to the setting completion information. That is, the fact that the setting has been made and the status information after the setting may be separately transmitted to the management server 11.

管理サーバ11は、設定完了情報をインターネット15を通じて受信すると(ステップS64)、設定完了情報を受信したことを示す受信応答を外部仲介装置12に送信する(ステップS65)。外部仲介装置12の第1プログラム24は、管理サーバ11が送信した受信応答を受信し(ステップS65)、処理を終了する。 When the management server 11 receives the setting completion information via the Internet 15 (step S64), the management server 11 transmits a reception response indicating that the setting completion information has been received to the external intermediary device 12 (step S65). The first program 24 of the external intermediary device 12 receives the reception response transmitted by the management server 11 (step S65), and ends the process.

<管理サーバからの指示なしで定期的にステータス報告>
上述では、管理サーバ11からの第1指示コマンドに応じて、外部仲介装置12の第1プログラム24及びプリンタ14の第2プログラム34が実行する処理について説明した。以下では、外部仲介装置12の第1プログラム24及びプリンタ14の第2プログラム34が、管理サーバ11からの指示に拠らず、プリンタ14のステータス情報を定期的に送信する処理について、図6を参照して説明する。
<Regular status report without instructions from the management server>
In the above description, the processing executed by the first program 24 of the external intermediary device 12 and the second program 34 of the printer 14 in response to the first instruction command from the management server 11 has been described. In the following, FIG. 6 shows a process in which the first program 24 of the external intermediary device 12 and the second program 34 of the printer 14 periodically transmit the status information of the printer 14 without depending on the instruction from the management server 11. It will be explained with reference to.

まず、プリンタ14の第2プログラム34は、定期のステータス取得タイミングになるまで待機する(ステップS71:No)。定期のステータス取得タイミングは、例えば、1時間ごとや、12時間ごとや、24時間ごとなどである。すなわち、定期のステータスタイミングは、前述した、HTTPリクエストを定期的に送信する送信タイミングよりも、長い期間となっている。この理由は、以下のとおりである。すなわち、プリンタ14にステータス情報を返信させる処理を実行させると、プリンタ14において電力が消費される。したがって、定期のステータス取得タイミングが秒単位や分単位であると、バッテリ50の消耗が増大する。定期のステータス取得タイミングを1時間や12時間や24時間などの時間単位とすることにより、バッテリ50の消耗を抑えることができる。 First, the second program 34 of the printer 14 waits until the periodic status acquisition timing is reached (step S71: No). The periodic status acquisition timing is, for example, every hour, every 12 hours, every 24 hours, and the like. That is, the periodic status timing is a longer period than the transmission timing for periodically transmitting the HTTP request described above. The reason for this is as follows. That is, when the printer 14 is made to execute the process of returning the status information, the printer 14 consumes power. Therefore, if the periodic status acquisition timing is in seconds or minutes, the battery 50 is consumed more. By setting the periodic status acquisition timing to an hour unit such as 1 hour, 12 hours, or 24 hours, it is possible to suppress the consumption of the battery 50.

また、定期のステータス取得タイミングを時間単位とすることは、以下のような別の意義もある。すなわち、プリンタ14の第2プログラム34は、電源回路の駆動を停止させる休眠化機能、いわゆるスリープ機能を有する場合がある。定期のステータス取得タイミングを1時間や12時間や24時間などの時間単位とすることにより、スリープ機能で休眠状態になっているプリンタ14が、駆動回路が直流電圧を出力する駆動状態に頻繁に復帰させられることを抑えることができる。その結果、バッテリ50の消耗が抑えられ、プリンタの使用者の違和感を抑制することができる。プリンタ14の使用者の違和感とは、プリンタ14を休眠状態にしてもすぐに駆動状態になってしまうことを意味する。 In addition, setting the periodic status acquisition timing as an hour unit has the following other significance. That is, the second program 34 of the printer 14 may have a sleep function for stopping the driving of the power supply circuit, that is, a so-called sleep function. By setting the periodic status acquisition timing to an hour unit such as 1 hour, 12 hours, or 24 hours, the printer 14 that is in a dormant state by the sleep function frequently returns to the drive state in which the drive circuit outputs a DC voltage. It is possible to suppress being forced to do so. As a result, the consumption of the battery 50 can be suppressed, and the discomfort of the printer user can be suppressed. The discomfort of the user of the printer 14 means that even if the printer 14 is put into a dormant state, it is immediately put into a driving state.

プリンタ14の第2プログラム34は、定期のステータス取得タイミングになったと判断すると(ステップS71:Yes)、HTTPリクエストを外部仲介装置12に送信する送信タイミングになったか否かを判断する(ステップS74)。第2プログラム34は、送信タイミングになっていないと判断すると(ステップS74:No)、ステップS71の処理を再度実行する。一方、第2プログラム34は、送信タイミングになったと判断すると(ステップS74:Yes)、定期的に取得することを試みるステータス情報を、プリンタ14内の各部から取得できているか否かを判断する(ステップS75)。 When the second program 34 of the printer 14 determines that the periodic status acquisition timing has come (step S71: Yes), it determines whether or not it is the transmission timing for transmitting the HTTP request to the external intermediary device 12 (step S74). .. When the second program 34 determines that the transmission timing has not come (step S74: No), the process of step S71 is executed again. On the other hand, when the second program 34 determines that the transmission timing has come (step S74: Yes), it determines whether or not the status information to be periodically acquired can be acquired from each part in the printer 14 (step S74: Yes). Step S75).

プリンタ14の第2プログラム34は、ステータス情報を取得できていないと判断すると(ステップS75:No)、ステータス情報を取得できなかったことを示す第3エラー情報を生成し、生成した第3エラー情報を含むHTTPリクエストを外部仲介装置12に送信する(ステップS76)。なお、第3エラー情報は状態情報の一例である。このステップS76での処理内容については、後に詳細に説明する。
なお、このとき送信される第3エラー情報を含むHTTPリクエストは、定期的に送信されるHTTPリクエストとは別のHTTPリクエストに含められてもよい。すなわち、第2プログラム34は、ステータス情報を取得できていないと判断すると、送信タイミングを待たずに、第3エラー情報を含むHTTPリクエストを外部仲介装置12に送信してもよい。なお、第1プログラム24は、第3エラー情報を含むHTTPリクエストを受信すると(ステップS76)、当該HTTPリクエストを受信したことを示す応答をプリンタ14に送信する(ステップS78)。
When the second program 34 of the printer 14 determines that the status information cannot be acquired (step S75: No), the second program 34 generates the third error information indicating that the status information could not be acquired, and the generated third error information. The HTTP request including the above is transmitted to the external mediator 12 (step S76). The third error information is an example of state information. The processing content in step S76 will be described in detail later.
The HTTP request including the third error information transmitted at this time may be included in an HTTP request different from the HTTP request transmitted periodically. That is, if the second program 34 determines that the status information has not been acquired, the second program 34 may transmit the HTTP request including the third error information to the external intermediary device 12 without waiting for the transmission timing. When the first program 24 receives the HTTP request including the third error information (step S76), the first program 24 transmits a response indicating that the HTTP request has been received to the printer 14 (step S78).

また、外部仲介装置12の第1プログラム24は、第3エラー情報を含むHTTPリクエストを受信すると(ステップS76)、対応データベースを更新しないことに決定し、また、第3エラー情報に応じた情報を管理サーバ11に送信しないことに決定する(ステップS77)。すなわち、第1プログラム24は、管理サーバ11から入力された第1指示コマンドに応じた指示をプリンタ14が実行しない場合は前述のように第2エラー情報を生成し管理サーバ11に送信する一方で、定期的に取得することを試みるステータス情報を取得できない場合は第3エラー情報を管理サーバ11に送信しない。これにより、エラー情報が管理サーバ11に頻繁に送信されることが抑制される。 Further, when the first program 24 of the external intermediary device 12 receives the HTTP request including the third error information (step S76), it decides not to update the corresponding database, and also provides the information corresponding to the third error information. It is determined not to transmit to the management server 11 (step S77). That is, when the printer 14 does not execute the instruction corresponding to the first instruction command input from the management server 11, the first program 24 generates the second error information as described above and transmits it to the management server 11. If the status information that is attempted to be acquired periodically cannot be acquired, the third error information is not transmitted to the management server 11. As a result, it is possible to prevent the error information from being frequently transmitted to the management server 11.

一方、上記ステップS75において、プリンタ14の第2プログラム34がステータス情報を取得できていると判断すると(ステップS75:No)、当該ステータス情報を含むHTTPリクエストを外部仲介装置12に送信する(ステップS79)。このリクエストは「UpdateDevice」とも称され、プリンタ14の状態が変化した場合に、当該変化した状態に関わる上記ステータス情報を、外部仲介装置12へ送信するものである。このステップS79での処理内容については、後に詳細に説明する。なお、このときのステータス情報は状態情報の一例である。なお、ステータス情報を含む上記HTTPリクエストは、定期的に送信されるHTTPリクエストとは別のHTTPリクエストに含められてもよい。すなわち、第2プログラム34は、ステータス情報を受信したと判断すると、送信タイミングを待たずに、ステータス情報を含むHTTPリクエストを外部仲介装置12に送信してもよい。 On the other hand, in step S75, when it is determined that the second program 34 of the printer 14 has acquired the status information (step S75: No), the HTTP request including the status information is transmitted to the external intermediary device 12 (step S79). ). This request is also referred to as "Update Device", and when the state of the printer 14 changes, the above-mentioned status information related to the changed state is transmitted to the external intermediary device 12. The processing content in step S79 will be described in detail later. The status information at this time is an example of the status information. The HTTP request including the status information may be included in an HTTP request different from the HTTP request that is periodically transmitted. That is, if the second program 34 determines that the status information has been received, the second program 34 may transmit the HTTP request including the status information to the external intermediary device 12 without waiting for the transmission timing.

外部仲介装置12の第1プログラム24は、プリンタ14が送信したステータス情報を含むHTTPリクエストを受信すると(ステップS79)、HTTPリクエストを受信したことを示すHTTPレスポンスをプリンタ14に送信する(ステップS80)。このレスポンスは「BrResponseBasicInfo」とも称される。 When the first program 24 of the external mediator 12 receives the HTTP request including the status information transmitted by the printer 14 (step S79), the first program 24 transmits an HTTP response indicating that the HTTP request has been received to the printer 14 (step S80). .. This response is also referred to as "BrResponseBasicInfo".

また、外部仲介装置12の第1プログラム24は、ステータス情報を含むHTTPリクエストを受信すると(ステップS79)、受信したステータス情報で対応データベースの項目を更新する(ステップS81)。また、第1プログラム24は、ステータス情報を含むHTTPリクエストを受信した日時で、対応データベースの項目「更新日時」の日時を更新する。これにより、外部仲介装置12の管理者は、対応データベースを外部仲介装置12のディスプレイに表示させることにより、項目「更新日時」を確認し、ステータス情報が更新された日時、及び、プリンタ14と通信を行えた最新の日時を認識することができる。 When the first program 24 of the external intermediary device 12 receives the HTTP request including the status information (step S79), the first program 24 updates the corresponding database item with the received status information (step S81). In addition, the first program 24 updates the date and time of the item "update date and time" of the corresponding database with the date and time when the HTTP request including the status information is received. As a result, the administrator of the external intermediary device 12 confirms the item "update date and time" by displaying the corresponding database on the display of the external intermediary device 12, and communicates with the date and time when the status information was updated and the printer 14. It is possible to recognize the latest date and time when the operation was performed.

そして、外部仲介装置12の第1プログラム24は、更新したステータス情報及び更新日時を付帯情報とするコマンドを管理サーバ11に送信する(ステップS82)。管理サーバ11は、ステータス情報及び更新日時を付帯情報とするコマンドを受信すると(ステップS82)、受信したステータス情報及び更新日時を不図示のメモリに記憶し、ステータス情報及び更新日時を受信したことを示す応答を外部仲介装置12に送信する(ステップS83)。したがって、管理者は、管理サーバ11に記憶された情報をブラウザを用いて外部仲介装置12のディスプレイに表示させることにより、あるいは、外部仲介装置12のメモリ22に記憶された対応データベースをディスプレイに表示させることにより、ステータス情報を受信した最新の日時を確認することができる。 Then, the first program 24 of the external intermediary device 12 transmits a command with the updated status information and the update date and time as incidental information to the management server 11 (step S82). When the management server 11 receives the command with the status information and the update date and time as incidental information (step S82), the management server 11 stores the received status information and the update date and time in a memory (not shown), and receives the status information and the update date and time. The indicated response is transmitted to the external mediator 12 (step S83). Therefore, the administrator displays the information stored in the management server 11 on the display of the external intermediary device 12 using a browser, or displays the corresponding database stored in the memory 22 of the external intermediary device 12 on the display. By making it possible, the latest date and time when the status information is received can be confirmed.

<管理サーバからの指示でステータス報告>
すなわち、管理サーバ11が送信する第1指示コマンドによるプリンタ14への指示が、プリンタ14のステータス情報の送信を要求する指示である場合である。この場合、外部仲介装置12の第1プログラム24は、定期的に取得するステータス情報を、第1指示コマンドに対する応答として管理サーバ11に送信する。このような例を、前述の図4及び図6を参照して説明する。
<Status report according to instructions from the management server>
That is, the instruction to the printer 14 by the first instruction command transmitted by the management server 11 is an instruction to request the transmission of the status information of the printer 14. In this case, the first program 24 of the external intermediary device 12 transmits the status information acquired periodically to the management server 11 as a response to the first instruction command. Such an example will be described with reference to FIGS. 4 and 6 described above.

すなわち、前述した図4において、前述したステップS31〜ステップS38の実行を経た後、プリンタ14の第2プログラム34は、プリンタ14のステータス情報を返信することを要求する第2指示コマンドを外部仲介装置12から受信する(ステップS39)。このレスポンスは「StatusCode」とも称される。その後、第2プログラム34は、第2指示コマンドを受信したことを示す通知を含むHTTPリクエストを外部仲介装置12に送信する(ステップS41)。 That is, in FIG. 4 described above, after the execution of steps S31 to S38 described above, the second program 34 of the printer 14 issues a second instruction command requesting that the status information of the printer 14 be returned. Receive from 12 (step S39). This response is also referred to as "StatusCode". After that, the second program 34 transmits an HTTP request including a notification indicating that the second instruction command has been received to the external intermediary device 12 (step S41).

その後、図6に移り、第2プログラム34は、定期のステータス取得タイミングになるまで待機する(ステップS71:No)。 After that, the process proceeds to FIG. 6, and the second program 34 waits until the periodic status acquisition timing is reached (step S71: No).

プリンタ14の第2プログラム34は、定期のステータス取得タイミングになったと判断すると(ステップS71:Yes)、前述同様、HTTPリクエストを外部仲介装置12に送信する送信タイミングになったか否かを判断し、送信タイミングになったと判断すると(ステップS74:Yes)、プリンタ14内の各部から取得したステータス情報を含むHTTPリクエストを、第2指示コマンドの応答として外部仲介装置12に送信する(ステップS76,S79)。 When the second program 34 of the printer 14 determines that the periodic status acquisition timing has come (step S71: Yes), it determines whether or not the transmission timing for transmitting the HTTP request to the external intermediary device 12 has come, as described above. When it is determined that the transmission timing has come (step S74: Yes), the HTTP request including the status information acquired from each part in the printer 14 is transmitted to the external intermediary device 12 as a response of the second instruction command (steps S76 and S79). ..

外部仲介装置12の第1プログラム24は、ステータス情報を含むHTTPリクエストを受信してHTTPレスポンスを返信(ステップS80)した後、受信したステータス情報で対応データベースを更新するとともに(ステップS81)、第1指示コマンドの応答として、ステータス情報を管理サーバ11に送信する(ステップS82)。 The first program 24 of the external intermediary device 12 receives the HTTP request including the status information, returns the HTTP response (step S80), updates the corresponding database with the received status information (step S81), and first. Status information is transmitted to the management server 11 as a response to the instruction command (step S82).

管理サーバ11は、送信した第1指示コマンドの応答として、ステータス情報を受信し(ステップS82)、ステータス情報を受信したことを示す応答をインターネット15を通じて外部仲介装置12に送信する(ステップS83)。 The management server 11 receives the status information as a response of the transmitted first instruction command (step S82), and transmits a response indicating that the status information has been received to the external intermediary device 12 via the Internet 15 (step S83).

外部仲介装置12の第1プログラム24は、ステータス情報を受信したことを示す応答を受信し(ステップS83)、処理を終了する。 The first program 24 of the external mediator 12 receives a response indicating that the status information has been received (step S83), and ends the process.

<状態情報の送信態様を可変に設定>
以上の基本構成及び動作において、第2プログラム34は、前述したステップS76及びステップS79において、状態情報としての第3エラー情報及びステータス情報を送信する際、その送信態様を可変とする。その詳細を順を追って説明する。なお、ステップS76及びステップS79に限らず、前述のステップS62において同様の手法を実行するようにしてもよい。
<Variable setting of status information transmission mode>
In the above basic configuration and operation, the second program 34 makes the transmission mode variable when transmitting the third error information and the status information as the state information in the above-mentioned steps S76 and S79. The details will be explained step by step. The same method may be executed not only in step S76 and step S79 but also in step S62 described above.

例えば、ステップS79で外部仲介装置12へ送信したステータス情報がそれ以前に送信した内容と異なっていた場合、すなわちプリンタ14の状態に何らかの変化が生じていた場合がある。このような場合には、外部仲介装置12に接続されている管理サーバ11においてその変化後のステータス情報に対応した適宜の表示が行われる。ステップS76で第3エラー情報が外部仲介装置12へ送信された場合も、同様に、管理サーバ11において当該エラーに対応した適宜の表示が行われる。なお、以下適宜、上記ステータス情報及び第3エラー情報等を総称して、単に「状態情報」という。上記の表示により、管理者は、プリンタ14において何らかの状態変化が生じたことを認識することができる。 For example, there is a case where the status information transmitted to the external intermediary device 12 in step S79 is different from the content transmitted before that, that is, there is a case where some change has occurred in the state of the printer 14. In such a case, the management server 11 connected to the external intermediary device 12 displays the status information after the change as appropriate. When the third error information is transmitted to the external intermediary device 12 in step S76, the management server 11 similarly displays an appropriate display corresponding to the error. In addition, hereinafter, as appropriate, the above-mentioned status information, the third error information and the like are collectively referred to simply as "state information". From the above display, the administrator can recognize that some state change has occurred in the printer 14.

このとき、管理サーバ11における表示態様は、管理サーバ11の仕様、言い換えれば当該モバイル管理システムの仕様、によって種々異なる場合がある。そのため、プリンタ14から外部仲介装置12への上記状態情報の送信時において、単純に、状態変化が生じる都度対応する状態情報を外部仲介装置12へ順次送信する手法とすると、管理サーバ11での表示を見る管理者にとって利便性が悪い場合が生じ得る。以下、このことを図7及び図8に示す比較例により説明する。 At this time, the display mode on the management server 11 may differ depending on the specifications of the management server 11, in other words, the specifications of the mobile management system. Therefore, when the printer 14 transmits the above-mentioned state information to the external intermediary device 12, if the method is simply to sequentially transmit the corresponding state information to the external intermediary device 12 each time a state change occurs, the display on the management server 11 It may be inconvenient for the administrator to see. Hereinafter, this will be described with reference to the comparative examples shown in FIGS. 7 and 8.

<第1比較例>
例えば、管理サーバ11が、最新の状態情報を、その前の状態情報の上に被さるようにポップアップ表示する仕様である場合があり得る。このような仕様の場合、プリンタ14から複数の状態情報が順次送信されたとき、その送信された順に沿って、後発の状態情報が先発の状態情報の上に順次覆いかぶさるように表示される。例えば、図7(a)に示すように、まず、被印刷媒体としての用紙の残量が少ないことを表すステータス情報がプリンタ14の第2プログラム34によって取得され、プリンタ14から外部仲介装置12へ送信された場合を想定する。この場合、管理サーバ11に備えられた表示部11Aに、上記ステータス情報に対応した「もうすぐ用紙なくなります」のメッセージのポップアップ表示が行われる。表示部11Aは、表示手段の一例である。なお、本願明細書では、ポップアップ表示は、一度表示部11A上に表示されると、例えば管理者が管理サーバ11において適宜の確認操作又は解除操作等を行わない限り、消失することなく継続表示される場合を例示して説明する。
<First comparative example>
For example, the management server 11 may have a specification of popping up and displaying the latest state information so as to cover the previous state information. In the case of such specifications, when a plurality of state information is sequentially transmitted from the printer 14, the later state information is displayed so as to sequentially cover the first state information in the order of transmission. For example, as shown in FIG. 7A, first, status information indicating that the remaining amount of paper as a print medium is low is acquired by the second program 34 of the printer 14, and the printer 14 transfers to the external intermediary device 12. Suppose it is sent. In this case, the display unit 11A provided in the management server 11 is displayed with a pop-up display of the message "Paper is about to run out" corresponding to the above status information. The display unit 11A is an example of display means. In the specification of the present application, once the pop-up display is displayed on the display unit 11A, it is continuously displayed without disappearing unless, for example, the administrator performs an appropriate confirmation operation or cancellation operation on the management server 11. This case will be described as an example.

その後、図7(b)に示すように、印刷エンジン51の印刷機能等に障害が生じたことを表すシステムエラーのステータス情報が第2プログラム34によって取得されプリンタ14から送信された場合、表示部11Aには「システムエラー」のメッセージのポップアップ表示が行われる。その際、上述のように、後発のステータス情報に対応した「システムエラー」のメッセージが、先発のステータス情報に対応した「もうすぐ用紙なくなります」のメッセージ上に覆いかぶさるように表示される。この場合は、先発の用紙残量少というステータス情報の内容の重要度が低く、後発のシステムエラーというステータス情報の内容の重要度が高い。したがって、図7(b)に示すように重要度の高い後発のステータス情報が表示されることで重要度の低い先発のステータス情報が隠蔽されても、あまり問題はない。 After that, as shown in FIG. 7B, when the status information of the system error indicating that the printing function of the printing engine 51 has failed is acquired by the second program 34 and transmitted from the printer 14, the display unit is displayed. At 11A, a pop-up display of a "system error" message is performed. At that time, as described above, the "system error" message corresponding to the later status information is displayed so as to cover the "soon to run out of paper" message corresponding to the earlier status information. In this case, the content of the status information such as the low remaining amount of paper in the starting lineup is low in importance, and the content of the status information such as the system error in the starting lineup is high in importance. Therefore, as shown in FIG. 7B, there is not much problem even if the status information of the starting lineup with low importance is hidden by displaying the status information of the starting lineup with high importance.

<第2比較例>
これに対して、上記とは逆に、図8(a)及び図8(b)に示すように、先にシステムエラーのステータス情報が取得されて送信され、その後に用紙残量少のステータス情報が取得されて送信された場合を想定する。この場合、図示のように、後発のステータス情報に対応した「もうすぐ用紙なくなります」のメッセージが、先発のステータス情報に対応した「システムエラー」のメッセージ上に覆いかぶさるように表示される。しかしながら、この場合は、先発のシステムエラーというステータス情報の内容の重要度が高く、後発の用紙残量少というステータス情報の内容の重要度が低い。したがって、図8(b)に示すように重要度の低い後発のステータス情報が表示されることで重要度の高い先発のステータス情報が隠蔽されて管理者が見逃しやすくなり、不便である。したがって、この場合にはプリンタ14から外部仲介装置12への情報送信時に、上記弊害を回避するための何らかの工夫が望ましい。
<Second comparative example>
On the other hand, contrary to the above, as shown in FIGS. 8A and 8B, the system error status information is first acquired and transmitted, and then the status information of the remaining amount of paper is low. Is acquired and sent. In this case, as shown in the figure, the message "Soon to run out of paper" corresponding to the later status information is displayed so as to cover the "System error" message corresponding to the earlier status information. However, in this case, the content of the status information such as the system error of the starting lineup is highly important, and the content of the status information of the low remaining amount of paper is low. Therefore, as shown in FIG. 8B, displaying the status information of the latecomers with low importance hides the status information of the starting pitchers with high importance, which is inconvenient for the administrator to easily overlook. Therefore, in this case, it is desirable to take some measures to avoid the above-mentioned adverse effects when transmitting information from the printer 14 to the external intermediary device 12.

<その他比較例>
一方、上記とは異なり、管理サーバ11が、プリンタ14から複数の状態情報が順次送信されたときにそれら複数の状態情報を一覧表示する場合もある(図示省略)。この仕様の場合には、上記のように第2プログラム34が、単純に、状態変化が生じる都度、対応する状態情報を取得して順次外部仲介装置12へ送信する手法であったとしても、上記のような管理者にとっての見にくさの問題は生じない。
<Other comparative examples>
On the other hand, unlike the above, the management server 11 may display a list of the plurality of status information when the plurality of status information is sequentially transmitted from the printer 14 (not shown). In the case of this specification, even if the second program 34 simply acquires the corresponding state information each time a state change occurs and sequentially transmits the corresponding state information to the external intermediary device 12, as described above. There is no problem of obscurity for the administrator such as.

<本実施形態における送信態様の設定>
上記に対応するために、前述したステップS76及びステップS79において、本実施形態の第2プログラム34により実行される、状態情報の送信態様の可変設定を含む処理の詳細を、図9に示すフローチャートにより説明する。なお、この図9に示す処理は、図4〜図6に示す処理とは別に、同時並行してプリンタ14の第2プログラム34によって実行される。
<Setting of transmission mode in this embodiment>
In order to correspond to the above, in step S76 and step S79 described above, the details of the process including the variable setting of the state information transmission mode executed by the second program 34 of the present embodiment are shown by the flowchart shown in FIG. explain. The process shown in FIG. 9 is executed by the second program 34 of the printer 14 in parallel with the process shown in FIGS. 4 to 6.

すなわち、まず、プリンタ14の第2プログラム34は、管理サーバ11の表示部11Aの表示仕様に関する仕様情報を、外部仲介装置12を介し取得する(ステップS110)。このステップS110は仕様情報取得手順の一例であり、ステップS110で実行する処理は仕様情報取得処理の一例である。その後、第2プログラム34は、取得された表示部11Aの仕様情報の内容が「最新の状態情報を、その前の状態情報の上に被さるようにポップアップ表示する仕様」であるか否かを判断する(ステップS111)。 That is, first, the second program 34 of the printer 14 acquires the specification information regarding the display specifications of the display unit 11A of the management server 11 via the external intermediary device 12 (step S110). This step S110 is an example of the specification information acquisition procedure, and the process executed in step S110 is an example of the specification information acquisition process. After that, the second program 34 determines whether or not the content of the acquired specification information of the display unit 11A is "a specification that pops up and displays the latest state information so as to cover the previous state information". (Step S111).

<ポップアップ表示の仕様であった場合(その1)>
表示部11Aの仕様情報が、上記「最新の状態情報を、その前の状態情報の上に被さるようにポップアップ表示する仕様」であった場合(ステップS111:Yes)の処理の一例を図10に示す。
<If the specifications are for pop-up display (1)>
FIG. 10 shows an example of processing when the specification information of the display unit 11A is the above-mentioned "specification of popping up the latest state information so as to cover the previous state information" (step S111: Yes). show.

図10において、プリンタ14の第2プログラム34は、前述のようにこの時点でプリンタ14内各部から取得された上記状態情報を、重要度に応じて分類する(ステップS120)。重要度の高い状態情報とは、管理者又は担当者がただちにプリンタ14に対し適宜の処置を行う必要がある状態を表すものであり、前述したシステムエラーのほか、被印刷媒体がなくなったこと、等がある。重要度の低い状態情報とは、管理者又は担当者がただちにプリンタ14に対し処置を行うほどではないものの、その後の状況に注意しておくべき状態を表すものであり、前述した被印刷媒体の残量が少なくなったことのほか、バッテリ50の充電切れ、等がある。このステップS120では、取得された状態情報を、例えば、重要度高、重要度低、を含む複数区分に分類する。なお、このステップS120で実行する処理は状態情報分類処理の一例である。 In FIG. 10, the second program 34 of the printer 14 classifies the state information acquired from each part in the printer 14 at this time according to the importance as described above (step S120). The highly important status information indicates a status in which the administrator or the person in charge needs to take appropriate measures for the printer 14 immediately, and in addition to the system error described above, the printable medium has disappeared. And so on. The less important state information represents a state in which the administrator or the person in charge does not immediately take action on the printer 14, but should pay attention to the subsequent situation, and is the above-mentioned printed medium. In addition to the remaining amount being low, the battery 50 is out of charge, and so on. In this step S120, the acquired state information is classified into a plurality of categories including, for example, high importance and low importance. The process executed in step S120 is an example of the state information classification process.

その後、プリンタ14の第2プログラム34は、上記ステップS120における分類結果が「重要度高」への分類であったか否かを判断する(ステップS130)。なお、ステップS130が態様設定手順の一例であり、ステップS130で実行する処理が態様設定処理の一例である。プリンタ14の第2プログラム34は、「重要度高」への分類であった場合は(ステップS130:Yes)当該状態情報を外部仲介装置12へ送信し(ステップS170)、その後、このフローを終了する。「重要度高」への分類でなかった場合は(ステップS130:No)状態情報の送信を行うことなくそのままこのフローを終了する。なお、ステップS170が状態情報送信手順の一例であり、ステップS170で実行する処理が状態情報送信処理の一例である。 After that, the second program 34 of the printer 14 determines whether or not the classification result in step S120 is classified as "high importance" (step S130). Note that step S130 is an example of the mode setting procedure, and the process executed in step S130 is an example of the mode setting process. If the second program 34 of the printer 14 is classified as "high importance" (step S130: Yes), the state information is transmitted to the external intermediary device 12 (step S170), and then this flow is terminated. do. If the classification is not "high importance" (step S130: No), this flow is terminated as it is without transmitting the status information. Note that step S170 is an example of the state information transmission procedure, and the process executed in step S170 is an example of the state information transmission process.

<管理サーバの表示遷移>
上記図10の処理が行われる場合に管理サーバ11の表示部11Aで行われる表示の一例を、前述の図7及び図8にそれぞれ対応する図11及び図12を用いて、前述の比較例と対比しつつ説明する。
<Display transition of management server>
An example of the display performed by the display unit 11A of the management server 11 when the process of FIG. 10 is performed is compared with the above-mentioned comparative example by using FIGS. 11 and 12 corresponding to the above-mentioned FIGS. 7 and 8, respectively. I will explain while comparing.

まず、前述の図7(a)と同様、用紙残量少のステータス情報が取得された場合を図11(a)に示す。この場合、用紙残量少のステータス情報の内容は前述のように重要度が低いため(ステップS103:No)、第2プログラム34によって外部仲介装置12へ送信されることはない。したがって、管理サーバ11の表示部11Aにはポップアップ表示は特に表示されない。 First, as in the case of FIG. 7A described above, the case where the status information of the low remaining amount of paper is acquired is shown in FIG. 11A. In this case, since the content of the status information of the low remaining amount of paper is of low importance as described above (step S103: No), it is not transmitted to the external intermediary device 12 by the second program 34. Therefore, the pop-up display is not particularly displayed on the display unit 11A of the management server 11.

その後、前述の図7(b)と同様、システムエラーのステータス情報が取得された場合を図11(b)に示す。この場合、システムエラーのステータス情報の内容は前述のように重要度が高いため(ステップS103:Yes)、第2プログラム34によって外部仲介装置12へ送信される(ステップS170)。この結果、管理サーバ11の表示部11Aには、「システムエラー」のメッセージのポップアップ表示が行われる。その際、図7(b)のように重なった2つのポップアップ表示において「システムエラー」のメッセージが手前側に表示されるのとは異なり、「システムエラー」のメッセージが単独でポップアップ表示される。 After that, as in FIG. 7 (b) described above, the case where the system error status information is acquired is shown in FIG. 11 (b). In this case, since the content of the system error status information is of high importance as described above (step S103: Yes), it is transmitted to the external intermediary device 12 by the second program 34 (step S170). As a result, a pop-up display of the "system error" message is displayed on the display unit 11A of the management server 11. At that time, unlike the message of "system error" being displayed on the front side in the two overlapping pop-up displays as shown in FIG. 7B, the message of "system error" is displayed as a single pop-up.

一方、前述の図8(a)と同様、先にシステムエラーのステータス情報が取得された場合を図12(a)に示す。この場合、上述したようにシステムエラーのステータス情報は重要度が高いため(ステップS103:Yes)外部仲介装置12へ送信され(ステップS170)、表示部11Aは「システムエラー」のポップアップ表示が行われる。 On the other hand, as in FIG. 8 (a) described above, the case where the system error status information is acquired first is shown in FIG. 12 (a). In this case, since the status information of the system error is of high importance as described above (step S103: Yes), it is transmitted to the external intermediary device 12 (step S170), so that the display unit 11A displays a pop-up of "system error". ..

その後、前述の図8(b)と同様、用紙残量少のステータス情報が取得された場合を図12(b)に示す。この場合、上述したように用紙残量少のステータス情報の内容は重要度が低いため(ステップS103:No)外部仲介装置12へ送信されない。したがって、管理サーバ11の表示部11Aでは、上記「システムエラー」のポップアップ表示のみが引き続き行われることとなる。 After that, as in FIG. 8 (b) described above, the case where the status information of the low remaining amount of paper is acquired is shown in FIG. 12 (b). In this case, as described above, the content of the status information of the low remaining amount of paper is not transmitted to the external intermediary device 12 because the content is of low importance (step S103: No). Therefore, on the display unit 11A of the management server 11, only the pop-up display of the above-mentioned "system error" is continuously performed.

<ポップアップ表示の仕様であった場合(その2)>
表示部11Aの仕様情報が、上記「最新の状態情報を、その前の状態情報の上に被さるようにポップアップ表示する仕様」であった場合(ステップS111:Yes)の処理の別の例を図13に示す。すなわち、上記図10に示した処理の例では、ステップS76又はステップS79で状態情報を送信する際、1つの状態を表す状態情報のみが取得されていた場合の処理の例を説明した。すなわち、図6の処理の実行開始後ステップS79で用紙残量少のステータス情報が送信され各処理を経てその回のシーケンスが終了した後、次の回のシーケンスのステップS79でシステムエラーのステータス情報が送信された。このような処理とは異なり、ステップS76又はステップS79で状態情報を送信する際、複数の状態情報が取得されていた場合に、それら複数の状態情報について、内容に応じて順番調整を行ってもよい。
<If the specifications are for pop-up display (Part 2)>
Another example of the process in the case where the specification information of the display unit 11A is the above-mentioned "specification of popping up the latest state information so as to cover the previous state information" (step S111: Yes) is shown in the figure. It is shown in 13. That is, in the example of the process shown in FIG. 10, when the state information is transmitted in step S76 or step S79, an example of the process in which only the state information representing one state is acquired has been described. That is, after the execution of the process of FIG. 6 is started, the status information of the low remaining amount of paper is transmitted in step S79, the sequence of that time is completed through each process, and then the status information of the system error is in step S79 of the next sequence. Was sent. Unlike such processing, when the state information is transmitted in step S76 or step S79, if a plurality of state information has been acquired, the order of the plurality of state information may be adjusted according to the content. good.

図13において、プリンタ14の第2プログラム34は、前述と同様、取得されている状態情報を重要度に応じて分類する(ステップS120)。 In FIG. 13, the second program 34 of the printer 14 classifies the acquired state information according to the importance, as described above (step S120).

その後、第2プログラム34は、上記の分類結果が「重要度高」への分類であった場合(ステップS130:Yes)は、状態情報の送信態様を「高優先度態様で送信する」に設定する(ステップS140)。上記の分類結果が「重要度低」への分類であった場合(ステップS130:No)は、第2プログラム34は、状態情報の送信態様を「低優先度態様で送信する」に設定する(ステップS150)。この例では、高優先度態様の送信態様とは、低優先度の状態情報よりも後の順序で送信する態様を表しであり、低優先度態様の送信態様とは、高優先度の状態情報よりも先の順序で送信する態様を表す。なお、この例では、ステップS130、ステップS140、ステップS150が態様設定手順の一例であり、ステップS130、ステップS140、ステップS150で実行する処理が態様設定処理の一例である。 After that, in the second program 34, when the above classification result is the classification to "high importance" (step S130: Yes), the state information transmission mode is set to "send in high priority mode". (Step S140). When the above classification result is the classification to "low importance" (step S130: No), the second program 34 sets the transmission mode of the state information to "send in the low priority mode" (step S130: No). Step S150). In this example, the transmission mode of the high priority mode represents the mode of transmitting in the order after the low priority state information, and the transmission mode of the low priority mode is the high priority state information. Indicates a mode in which transmission is performed in the order prior to that. In this example, step S130, step S140, and step S150 are examples of the mode setting procedure, and the processes executed in steps S130, step S140, and step S150 are examples of the mode setting process.

プリンタ14の第2プログラム34は、この時点で取得している複数の状態情報すべてについて、上記ステップS140又はステップS150による送信態様の設定が完了したか否かを判断する(ステップS160)。すべての状態情報についての送信態様の設定が完了したら(ステップS160:Yes)、第2プログラム34は、低優先度の状態情報を先の順番、高優先度の状態情報を後の順番で外部仲介装置12へと送信する(ステップS171)。なお、この例では、ステップS171が状態情報送信手順の一例であり、ステップS171で実行する処理が状態情報送信処理の一例である。その後、このフローを終了する。 The second program 34 of the printer 14 determines whether or not the setting of the transmission mode in step S140 or step S150 is completed for all of the plurality of state information acquired at this time (step S160). When the setting of the transmission mode for all the state information is completed (step S160: Yes), the second program 34 externally mediates the low priority state information in the first order and the high priority state information in the second order. It is transmitted to the device 12 (step S171). In this example, step S171 is an example of the state information transmission procedure, and the process executed in step S171 is an example of the state information transmission process. After that, this flow ends.

<管理サーバの表示遷移>
上記図13の処理が行われる場合に管理サーバ11の表示部11Aで行われる表示の一例を、図14及び図15を用いて説明する。
<Display transition of management server>
An example of the display performed by the display unit 11A of the management server 11 when the process of FIG. 13 is performed will be described with reference to FIGS. 14 and 15.

図14において、この例では、ステップS76又はステップS79で送信を実行する段階で、2つの状態情報、すなわち、用紙残量少のステータス情報とシステムエラーのステータス情報とが、この順番で取得されている。この場合、用紙残量少のステータス情報の内容は前述のように重要度が低い一方(ステップS130:No)、システムエラーのステータス情報の内容は前述のように重要度が高いため(ステップS130:Yes)。したがって、第2プログラム34によって、用紙残量少のステータス情報が先の順番で送信されるよう設定され(ステップS150)、システムエラーのステータス情報が後の順番で送信されるように設定される(ステップS140)。すなわちこの場合は、取得した順番と同じ順番で送信されるよう、セットされる。その結果、まず用紙残量少のステータス情報がプリンタ14から外部仲介装置12へ送信され、表示部11Aにおいて「もうすぐ用紙なくなります」のメッセージがポップアップ表示される。その後、システムエラーのステータス情報がプリンタ14から外部仲介装置12へ送信されて、「システムエラー」のメッセージが先の「もうすぐ用紙なくなります」のメッセージ上に覆いかぶさるようにポップアップ表示される。 In FIG. 14, in this example, at the stage of executing the transmission in step S76 or step S79, two status information, that is, the status information of the low remaining amount of paper and the status information of the system error are acquired in this order. There is. In this case, the content of the status information of low paper remaining is of low importance as described above (step S130: No), while the content of the status information of the system error is of high importance as described above (step S130: No). Yes). Therefore, the second program 34 is set so that the status information of the low remaining amount of paper is transmitted in the first order (step S150), and the status information of the system error is set to be transmitted in the second order (step S150). Step S140). That is, in this case, it is set so that it is transmitted in the same order as the acquisition order. As a result, first, the status information of the low remaining amount of paper is transmitted from the printer 14 to the external intermediary device 12, and the message "Paper is about to run out" is popped up on the display unit 11A. After that, the status information of the system error is transmitted from the printer 14 to the external intermediary device 12, and the message of "system error" is popped up so as to cover the previous message of "paper will run out soon".

一方、図15に示す例では、ステップS76又はステップS79で送信を実行する段階で、2つの状態情報、すなわち、システムエラーのステータス情報と用紙残量少のステータス情報とが、この順番で取得されている。前述のように、用紙残量少のステータス情報の内容は重要度が低くシステムエラーのステータス情報の内容は重要度が高い。そのため、用紙残量少のステータス情報が先の順番で送信されるよう設定され(ステップS150)、システムエラーのステータス情報が後の順番で送信されるように設定される(ステップS140)。すなわちこの場合は、取得した順番と逆の順番で送信されるよう、セットされる。その結果、前述と同様、用紙残量少のステータス情報が送信されて「もうすぐ用紙なくなります」のメッセージが表示され、システムエラーのステータス情報が送信されて「システムエラー」のメッセージが覆いかぶさるように表示される。 On the other hand, in the example shown in FIG. 15, at the stage of executing transmission in step S76 or step S79, two status information, that is, system error status information and low paper remaining status information are acquired in this order. ing. As described above, the content of the status information of low paper capacity is low in importance, and the content of the status information of system error is high in importance. Therefore, the status information of the low remaining amount of paper is set to be transmitted in the first order (step S150), and the status information of the system error is set to be transmitted in the latter order (step S140). That is, in this case, it is set so that it is transmitted in the reverse order of acquisition. As a result, as described above, the status information of low paper capacity is sent and the message "Soon to run out of paper" is displayed, and the status information of system error is sent so that the message of "System error" is overlaid. Is displayed.

図9に戻り、ステップS111において表示部11Aの仕様情報についてNo判定された場合、第2プログラム34は、当該仕様情報の内容が「複数の状態情報を重要度別に切替表示する仕様」であるか否かを判断する(ステップS112)。 Returning to FIG. 9, when No is determined for the specification information of the display unit 11A in step S111, in the second program 34, is the content of the specification information "a specification for switching and displaying a plurality of state information according to importance"? It is determined whether or not (step S112).

<重要度別切替表示の仕様であった場合>
表示部11Aの仕様情報が、上記「複数の状態情報を重要度別に切替表示する仕様」であった場合(ステップS112:Yes)の処理の一例を図16に示す。
<When the specifications are for switching display by importance>
FIG. 16 shows an example of processing when the specification information of the display unit 11A is the above-mentioned “specification for switching and displaying a plurality of state information according to importance” (step S112: Yes).

図16において、プリンタ14の第2プログラム34は、前述と同様、取得されている状態情報を重要度に応じて分類する(ステップS120)。その後、第2プログラム34は、上記の分類結果が「重要度高」への分類であった場合(ステップS130:Yes)は、状態情報の送信態様を「重要度高を付して送信する」に設定する(ステップS142)。上記の分類結果が「重要度低」への分類であった場合(ステップS130:No)は、第2プログラム34は、状態情報の送信態様を「重要度低を付して送信する」に設定する(ステップS152)。なお、この例では、ステップS130、ステップS142、ステップS152が態様設定手順の一例であり、ステップS130、ステップS142、ステップS152で実行する処理が態様設定処理の一例である。 In FIG. 16, the second program 34 of the printer 14 classifies the acquired state information according to the importance, as described above (step S120). After that, in the second program 34, when the above classification result is the classification to "high importance" (step S130: Yes), the transmission mode of the state information is "transmitted with high importance". (Step S142). When the above classification result is the classification to "low importance" (step S130: No), the second program 34 sets the transmission mode of the state information to "transmit with low importance". (Step S152). In this example, step S130, step S142, and step S152 are examples of the mode setting procedure, and the processes executed in steps S130, step S142, and step S152 are examples of the mode setting process.

その後、プリンタ14の第2プログラム34は、この時点で取得している全状態情報について送信態様の設定が完了したら(ステップS160:Yes)、それらの状態情報を外部仲介装置12へと同時送信する(ステップS172)。なお、同時送信でなく、適宜の順番で送信してもよい。なお、この例では、ステップS172が状態情報送信手順の一例であり、ステップS172で実行する処理が状態情報送信処理の一例である。その後、このフローを終了する。 After that, when the setting of the transmission mode for all the state information acquired at this time is completed (step S160: Yes), the second program 34 of the printer 14 simultaneously transmits the state information to the external intermediary device 12. (Step S172). It should be noted that the transmission may be performed in an appropriate order instead of simultaneous transmission. In this example, step S172 is an example of the state information transmission procedure, and the process executed in step S172 is an example of the state information transmission process. After that, this flow ends.

<管理サーバの表示遷移>
上記図16の処理が行われる場合に管理サーバ11の表示部11Aで行われる表示の一例を、図17を用いて説明する。
<Display transition of management server>
An example of the display performed by the display unit 11A of the management server 11 when the process of FIG. 16 is performed will be described with reference to FIG.

図17において、この例では、ステップS76又はステップS79で送信を実行する段階で、2つの状態情報、すなわち、用紙残量少のステータス情報とシステムエラーのステータス情報とが取得されている。なお、取得された順番は、どちらが先でどちらが後でもよい。この場合、用紙残量少のステータス情報の内容は重要度が低いため(ステップS130:No)、第2プログラム34によって、「重要度低」の情報が付されて送信されるよう設定される(ステップS152)。システムエラーのステータス情報の内容は重要度が高いため(ステップS130:Yes)、「重要度高」の情報が付されて送信されるように設定される(ステップS142)。なお、「重要度低」の情報及び「重要度高」の情報が、区分情報の一例である。 In FIG. 17, in this example, at the stage of executing the transmission in step S76 or step S79, two status information, that is, the status information of the low remaining amount of paper and the status information of the system error are acquired. It should be noted that the order of acquisition may be which comes first and which comes later. In this case, since the content of the status information of low paper remaining is of low importance (step S130: No), the second program 34 is set to transmit the information of "low importance" with the information of "low importance" (step S130: No). Step S152). Since the content of the system error status information has high importance (step S130: Yes), it is set to be transmitted with the information of "high importance" attached (step S142). The "low importance" information and the "high importance" information are examples of classification information.

管理サーバ11の表示部11Aは、重要度別に複数の、この例では2つの表示画面を切り替え可能に備えている。すなわち、タブ11pを有する低重要度画面11aとタブ11qを有する高重要度画面11bとが備えられ、タブ11p,11qのいずれかを操作することでそれら低重要度画面11a及び高重要度画面11bを表示切替可能である。タブ11pを操作して表示される低重要度画面11aでは、「重要度低」の情報が付されて送信された用紙残量少のステータス情報に対応し、「もうすぐ用紙なくなります」のメッセージが表示される。タブ11qを操作して表示される高重要度画面11bでは、「重要度高」の情報が付されて送信されたシステムエラーのステータス情報に対応し、「システムエラー」のメッセージが表示される。 The display unit 11A of the management server 11 is provided with a plurality of display screens 11A according to importance, which can be switched between two display screens in this example. That is, a low importance screen 11a having a tab 11p and a high importance screen 11b having a tab 11q are provided, and by operating any of the tabs 11p and 11q, the low importance screen 11a and the high importance screen 11b are provided. The display can be switched. On the low importance screen 11a displayed by operating the tab 11p, the message "Paper is about to run out" is displayed in response to the status information of low paper remaining amount sent with the information of "Low importance". Is displayed. On the high importance screen 11b displayed by operating the tab 11q, the message of "system error" is displayed corresponding to the status information of the system error transmitted with the information of "high importance".

図9に戻り、ステップS112において表示部11Aの仕様情報についてNo判定された場合、第2プログラム34は、当該仕様情報の内容が「複数の状態情報すべてを一覧可能に並べて表示する仕様」であるか否かを判断する(ステップS113)。 Returning to FIG. 9, when No is determined for the specification information of the display unit 11A in step S112, the content of the specification information is "a specification for displaying all the plurality of state information side by side in a list". Whether or not it is determined (step S113).

<一覧表示の仕様であった場合>
表示部11Aの仕様情報が、上記「複数の状態情報すべてを一覧可能に並べて表示する仕様」であった場合(ステップS113:Yes)の処理の一例を図18に示す。なお、ステップS113がNo判定であった場合はプリンタ14の第2プログラム34は所定のエラー処理を行い(ステップS115)、このフローを終了する。
<If the specifications are for list display>
FIG. 18 shows an example of processing when the specification information of the display unit 11A is the above-mentioned “specification for displaying all the plurality of state information side by side in a listable manner” (step S113: Yes). If the determination in step S113 is No, the second program 34 of the printer 14 performs a predetermined error process (step S115), and ends this flow.

図18において、プリンタ14の第2プログラム34は、状態情報の送信態様を「発生順に送信する」に設定する(ステップS180)。なお、本変形例では、ステップS180が態様設定手順の一例であり、ステップS180で実行する処理が態様設定処理の一例である。 In FIG. 18, the second program 34 of the printer 14 sets the transmission mode of the state information to “transmit in the order of occurrence” (step S180). In this modification, step S180 is an example of the mode setting procedure, and the process executed in step S180 is an example of the mode setting process.

その後、プリンタ14の第2プログラム34は、この時点で取得している状態情報について発生順に外部仲介装置12へと順次送信する(ステップS190)。なお、本変形例では、ステップS190が状態情報送信手順の一例であり、ステップS190で実行する処理が状態情報送信処理の一例である。その後、このフローを終了する。 After that, the second program 34 of the printer 14 sequentially transmits the state information acquired at this point to the external intermediary device 12 in the order of occurrence (step S190). In this modification, step S190 is an example of the state information transmission procedure, and the process executed in step S190 is an example of the state information transmission process. After that, this flow ends.

<管理サーバの表示遷移>
上記図18の処理が行われる場合に管理サーバ11の表示部11Aが前述の一覧表示機能を備えている場合の表示の一例を、図19を用いて説明する。
<Display transition of management server>
An example of display when the display unit 11A of the management server 11 has the above-mentioned list display function when the process of FIG. 18 is performed will be described with reference to FIG.

図19において、この例では、ステップS76又はステップS79で送信を実行する段階で、2つの状態情報、すなわち、用紙残量少のステータス情報とシステムエラーのステータス情報とが取得されている。なお、取得された順番は、どちらが先でどちらが後でもよい。この場合、表示部11Aには、用紙残量少のステータス情報に対応する「もうすぐ用紙なくなります」のメッセージと、システムエラーのステータス情報に対応する「システムエラー」のメッセージとが、横並びで一覧表示される。 In FIG. 19, in this example, at the stage of executing the transmission in step S76 or step S79, two state information, that is, the status information of the low remaining amount of paper and the status information of the system error are acquired. It should be noted that the order of acquisition may be which comes first and which comes later. In this case, the display unit 11A displays a side-by-side list of the "paper is about to run out" message corresponding to the status information of low paper remaining and the "system error" message corresponding to the status information of the system error. Will be done.

上記図19の状態において、上記確認操作等が行われないまま、さらに次の回のシーケンスが再び実行され、ステップS76,S79で送信を実行する段階でさらにバッテリ50の充電量少のステータス情報が取得された場合を想定する。この場合表示部11Aには、上記「もうすぐ用紙なくなります」「システムエラー」のメッセージに加え、さらにバッテリ充電量少のステータス情報に対応する「もうすぐ充電切れます」のメッセージが横並びで一覧表示されることとなる In the state of FIG. 19, the next sequence is executed again without performing the confirmation operation and the like, and the status information of the low charge amount of the battery 50 is further executed at the stage of executing the transmission in steps S76 and S79. It is assumed that it is acquired. In this case, in addition to the above-mentioned "Paper is about to run out" and "System error" messages, the "Soon to run out of charge" message corresponding to the status information of low battery charge is displayed side by side on the display unit 11A. Will be

<実施形態の効果>
以上説明したように、本実施形態においては、ステップS110において、管理サーバ11の表示部11Aにおける表示仕様情報が取得される。その後、ステップS111、ステップS112、ステップS113での判断結果に応じて、外部仲介装置12に送信するときの状態情報の送信態様が可変に設定される。すなわち、ステップS111でYes判定の場合は図10又は図13で説明した態様、ステップS112でYes判定の場合は図13で説明した態様、ステップS113でYes判定の場合は図18で説明した態様で送信設定される。これにより、管理サーバ11の表示部11Aでの表示仕様がどのようなものであっても、プリンタ14から外部仲介装置12へと送信する状態情報を、その表示仕様に対応した送信態様で送信することができる。その結果、管理サーバ11の表示部11Aでは、前述のような不便を回避しつつ、常に最適な態様で状態情報を表示することができ、管理者にとっての利便性を向上することができる。
<Effect of embodiment>
As described above, in the present embodiment, the display specification information in the display unit 11A of the management server 11 is acquired in step S110. After that, the transmission mode of the state information at the time of transmission to the external intermediary device 12 is variably set according to the determination results in steps S111, S112, and S113. That is, in the case of Yes determination in step S111, the embodiment described in FIG. 10 or 13, the embodiment described in FIG. 13 in the case of Yes determination in step S112, and the embodiment described in FIG. 18 in the case of Yes determination in step S113. Transmission is set. As a result, regardless of the display specifications of the display unit 11A of the management server 11, the state information to be transmitted from the printer 14 to the external intermediary device 12 is transmitted in a transmission mode corresponding to the display specifications. be able to. As a result, the display unit 11A of the management server 11 can always display the state information in the optimum mode while avoiding the inconvenience as described above, and the convenience for the administrator can be improved.

また、本実施形態では特に、図10を用いて前述したように、プリンタ14の状態が変化した場合、変化した状態に係わる状態情報が重要度に応じた複数区分、前述の例では重要度高と重要度低とに分類される(ステップS120)。このように状態情報が複数区分に分類されることにより、各区分の重要度に応じて、個別に処理を変えることができる。 Further, in the present embodiment, as described above with reference to FIG. 10, when the state of the printer 14 changes, the state information related to the changed state is divided into a plurality of categories according to the importance, and the importance is high in the above example. And low importance (step S120). By classifying the state information into a plurality of categories in this way, it is possible to individually change the processing according to the importance of each category.

また、本実施形態では特に、ステップS111がYes判定の場合、表示部11Aの表示仕様は、プリンタ14から順次送信された複数の状態情報に基づき最新の状態情報をそれ以前の状態情報よりも優先する仕様となっている。具体的には、前述の例では、最新の状態情報を、その前の状態情報の上に被さるようにポップアップ表示する仕様である。この場合、単純に、状態変化が生じる都度対応する状態情報をプリンタ14から順次外部仲介装置12へと送信する手法とすると、図8を用いて前述した比較例のように高い重要度の状態情報の見逃しの弊害が生じ得る。したがって、ステップS120、ステップS130、ステップS170において前述したような、状態情報を重要度に応じた複数区分に分類して各区分の重要度に応じ個別に処理を変える手法が、特に効果的となる。 Further, in the present embodiment, particularly when step S111 is a Yes determination, the display specification of the display unit 11A gives priority to the latest state information over the previous state information based on a plurality of state information sequentially transmitted from the printer 14. It is a specification to do. Specifically, in the above-mentioned example, the latest state information is popped up and displayed so as to cover the previous state information. In this case, if a method is simply in which the corresponding state information is sequentially transmitted from the printer 14 to the external intermediary device 12 each time a state change occurs, the state information of high importance is as in the comparative example described above with reference to FIG. The harmful effects of overlooking can occur. Therefore, the method of classifying the state information into a plurality of categories according to the importance and changing the processing individually according to the importance of each category, as described above in steps S120, S130, and S170, is particularly effective. ..

また、本実施形態では特に、図10のステップS130及びステップS170に示したように、上記複数区分のうち特定の区分、前述の例では重要度高の区分に分類された状態情報を、外部仲介装置12へ送信する。これにより、少なくとも上記特定区分すなわち重要度高の区分に分類された状態情報については確実に管理サーバ11へ届くようにすることができる。 Further, in the present embodiment, as shown in steps S130 and S170 of FIG. 10, state information classified into a specific category among the above-mentioned plurality of categories and a category of high importance in the above-mentioned example is externally mediated. It is transmitted to the device 12. As a result, at least the state information classified into the specific category, that is, the category of high importance can be surely delivered to the management server 11.

また本実施形態では特に、図10に示したように、重要度が最も高い区分の状態情報(ステップS130:Yes)を外部仲介装置12へ送信し(ステップS170)、それ以外の状態情報(ステップS130:No)は送信しない。これにより、管理サーバ11の表示部11Aにおいて、重要度が高い最も高い区分に分類された状態情報を、それ以外の区分に分類された情報に邪魔されることなく、確実に表示することができる(図11(b)、図12(b))。この結果、当該重要度が最も高い区分の状態情報を確実に管理者に視認させて、その内容を認識させることができる。 Further, in the present embodiment, as shown in FIG. 10, the state information (step S130: Yes) of the category having the highest importance is transmitted to the external intermediary device 12 (step S170), and the other state information (step S170). S130: No) is not transmitted. As a result, on the display unit 11A of the management server 11, the state information classified into the highest importance category can be reliably displayed without being disturbed by the information classified into the other categories. (FIG. 11 (b), FIG. 12 (b)). As a result, the manager can surely visually recognize the state information of the category having the highest importance and recognize the contents.

また、本実施形態では特に、図16を用いて前述したように、管理サーバ11は、各状態情報に対し、対応する区分を表す、重要度高の情報又は重要度低の情報を付して外部仲介装置12へ送信する。これにより、管理サーバ11は、表示部11Aにおいて、各状態情報を、付加されているのが重要度高の情報であるか重要度低の情報であるかに応じて個別に処理することができる。その結果、常に最適な態様で状態情報を表示することができ、利便性を向上することができる。 Further, in the present embodiment, as described above with reference to FIG. 16, the management server 11 attaches high-importance information or low-importance information indicating the corresponding classification to each state information. It is transmitted to the external intermediary device 12. As a result, the management server 11 can individually process each state information on the display unit 11A depending on whether the added information is the information of high importance or the information of low importance. .. As a result, the state information can always be displayed in the optimum manner, and the convenience can be improved.

なお、上記図16を用いて前述した例では、各状態情報に付加されているのが重要度高の情報であるか重要度低の情報であるかに応じて、対応するメッセージを低重要度画面11aで表示するか高重要度画面11aで表示するのか、を切り替えたが、これに限られない。例えば、管理サーバ11が、重要度高の情報が付加された状態情報では表示部11Aで対応するメッセージの表示を行い、重要度低が情報が付加された情報ではメッセージの表示を行わない機能を備えるようにしてもよい。この場合、前述の例に沿えば、上記図11(a)で示した例と同様、用紙残量少のステータス情報が取得された場合には表示部11Aで表示は行われず、システムエラーのステータス情報が取得された場合には「システムエラー」のメッセージが表示される。すなわち、付加された情報に応じて、表示部11Aでの表示を行うか否か、表示するならどのような態様で表示するか、等を個別に切り替え可能となる。 In the above-described example using FIG. 16 above, the corresponding message has a low importance depending on whether the information with high importance or the information with low importance is added to each state information. It was switched between displaying on the screen 11a and displaying on the high importance screen 11a, but the present invention is not limited to this. For example, the management server 11 has a function of displaying the corresponding message on the display unit 11A for the status information to which the information of high importance is added, and not displaying the message for the information to which the information of low importance is added. You may be prepared. In this case, according to the above-mentioned example, similar to the example shown in FIG. 11A, when the status information of the low remaining amount of paper is acquired, the display unit 11A does not display the status, and the status of the system error. If the information is retrieved, a "system error" message will be displayed. That is, depending on the added information, it is possible to individually switch whether or not to display on the display unit 11A, and if so, how to display the information.

また本実施形態では特に、ステップS113がYes判定の場合、管理サーバ11の表示部11Aが複数の状態情報を一覧表示する機能を持つことにより、プリンタ14から複数の状態情報が順次送信されたとき、それらすべてを、漏れなく表示することができる。表示部11Aがこのように複数の状態情報を一覧表示する機能を備える場合には、図18に示すように、状態変化が生じた都度、対応する状態情報を外部仲介装置12へ順次送信するという、シンプルな手法とすることができる。 Further, in the present embodiment, particularly when the step S113 is a Yes determination, the display unit 11A of the management server 11 has a function of displaying a list of a plurality of status information, so that the printer 14 sequentially transmits the plurality of status information. , All of them can be displayed without omission. When the display unit 11A has a function of displaying a plurality of state information in a list in this way, as shown in FIG. 18, the corresponding state information is sequentially transmitted to the external intermediary device 12 each time a state change occurs. , Can be a simple method.

なお、本発明は、上記実施形態に限られるものではなく、その趣旨及び技術的思想を逸脱しない範囲内で種々の変形が可能である。以下、そのような変形例を順を追って説明する。 The present invention is not limited to the above embodiment, and various modifications can be made without departing from the spirit and technical idea. Hereinafter, such modification examples will be described step by step.

(1)過去の状態量の重要度に応じて送信を中止する場合
すなわち、本変形例では、今から送信しようとする状態情報の重要度よりも高い重要度の状態情報が既に外部仲介装置12へ送信済であった場合に、当該状態情報の外部仲介装置12への送信が中止される。
(1) When the transmission is stopped according to the importance of the past state quantity That is, in this modification, the state information having a higher importance than the state information to be transmitted from now on is already in the external mediator 12 If the status information has already been transmitted to, the transmission of the status information to the external mediator 12 is stopped.

例えば図13で示した処理においては、重要度が低い状態情報(S130:NO)と重要度が高い状態情報(S130:Yes)とが取得されているときに、低重要度の状態情報→高重要度の状態情報の順で送信した(ステップS171)。これに限られず、例えば直前回のフローの実行時にステップS171で送信済の状態情報の重要度が高かった場合には、今回の低重要度の状態情報については送信を中止して高重要度の状態情報のみを外部仲介装置12へ送信してもよい。 For example, in the process shown in FIG. 13, when the low importance state information (S130: NO) and the high importance state information (S130: Yes) are acquired, the low importance state information → high. It was transmitted in the order of importance status information (step S171). Not limited to this, for example, if the status information transmitted in step S171 is of high importance during the execution of the immediately preceding flow, the transmission of the status information of this low importance is stopped and the status information of high importance is high. Only the state information may be transmitted to the external mediator 12.

あるいは、例えば図10で示した処理において、重要度が高いランクAと判断される状態情報(S130:Yes)が、詳細にはランクA1とランクA2とに分かれる場合を考える。この場合に、例えば直前回のフローのステップS170で送信済の状態情報がランクA1で、今回のフローでステップS170で送信しようとする状態情報がランクA2であった場合には、今回の状態情報については送信を中止してもよい。 Alternatively, for example, in the process shown in FIG. 10, a case where the state information (S130: Yes) determined to be rank A with high importance is divided into rank A1 and rank A2 in detail is considered. In this case, for example, if the status information transmitted in step S170 of the immediately preceding flow is rank A1 and the status information to be transmitted in step S170 in this flow is rank A2, the status information of this time is present. May be canceled.

上記の手法とすることで、本変形例においては、管理サーバ11の表示部11Aにおいて、先に発生した、より重要度の高い状態情報を、その後に発生した、それほど重要でない状態情報に邪魔されることなく、確実に表示することができる。この結果、当該重要度の高い状態情報を確実に管理者に視認させて、その内容を認識させることができる。 By adopting the above method, in this modification, in the display unit 11A of the management server 11, the more important state information generated earlier is disturbed by the less important state information generated after that. It can be displayed reliably without any problem. As a result, the administrator can be sure to visually recognize the highly important state information and recognize its contents.

(2)表示部仕様情報に代えて仕様関連情報を用いる場合
すなわち、以上では、第2プログラム34が、管理サーバ11の表示部11Aの表示仕様情報をステップS110で取得し、それに応じて状態情報の送信態様を切り替えたが、これに限られない。すなわち、表示部11Aの仕様情報そのものではなく、間接的にその仕様情報を推測できる仕様関連情報をステップS1110で取得し、これに応じて状態情報の送信態様を切り替えるようにしてもよい。この仕様関連情報の例としては、例えば、管理サーバ11のURL、管理サーバ11に備えられた接続ポートのポート番号、管理サーバ11を使用する使用者ID等がある。これらのうちいずれか1つがわかれば、管理サーバ11の機種、性能等を特定でき、その結果、表示部11Aの表示仕様を間接的に検知することができる。あるいは、これらのうちのいくつかを組み合わせて使用してもよく、その場合は表示部11Aの表示仕様をより確実に検知することができる。これにより、前述の表示仕様情報の取得時と同様、その取得結果に応じて状態情報の態様を可変に設定し、常に最適な態様で状態情報を表示することができる。
(2) When the specification-related information is used instead of the display unit specification information That is, in the above, the second program 34 acquires the display specification information of the display unit 11A of the management server 11 in step S110, and the state information accordingly. The transmission mode of is switched, but the present invention is not limited to this. That is, instead of the specification information itself of the display unit 11A, the specification-related information that can indirectly infer the specification information may be acquired in step S1110, and the transmission mode of the state information may be switched accordingly. Examples of this specification-related information include the URL of the management server 11, the port number of the connection port provided in the management server 11, the user ID that uses the management server 11, and the like. If any one of these is known, the model, performance, and the like of the management server 11 can be specified, and as a result, the display specifications of the display unit 11A can be indirectly detected. Alternatively, some of these may be used in combination, in which case the display specifications of the display unit 11A can be detected more reliably. As a result, as in the case of acquiring the display specification information described above, the mode of the state information can be variably set according to the acquisition result, and the state information can always be displayed in the optimum mode.

(3)その他
また、以上においては、プリンタ14がHTTPリクエストを送信し、外部仲介装置12がHTTPレスポンスを返信することにより、外部仲介装置12からプリンタ14へファイアウォールを通じて第2指示コマンドが送信される例を説明した。しかしながら、外部仲介装置12からプリンタ14へファイアウォールを通じて第2指示コマンドを送信可能であれば、他の通信プロトコルが用いられてもよい。例えば、外部仲介装置12とプリンタ14との間で、XMPPoverBOSHにしたがった通信プロトコルが用いられてもよい。外部仲介装置12からプリンタ14へ、XMPPoverBOSHのセッション開始リクエストを送信し、外部仲介装置12がセッション開始レスポンスを返信することで成立したセッション内の通信により、外部仲介装置12からプリンタ14へファイアウォールを通じて第2指示コマンドを送信することができる。
(3) Others In addition, in the above, the printer 14 transmits the HTTP request, and the external intermediary device 12 returns the HTTP response, so that the second instruction command is transmitted from the external intermediary device 12 to the printer 14 through the firewall. An example was explained. However, other communication protocols may be used as long as the second instruction command can be transmitted from the external mediator 12 to the printer 14 through the firewall. For example, a communication protocol according to XMPPoverBOSH may be used between the external mediator 12 and the printer 14. The XMPPoverBOSH session start request is transmitted from the external mediator 12 to the printer 14, and the communication within the session established by the external mediator 12 returning the session start response is performed from the external mediator 12 to the printer 14 through the firewall. 2 Instruction commands can be sent.

また、以上においては、管理サーバ11による管理対象の電子機器として、印刷装置であるプリンタ14を例にとって説明したが、これに限られない。すなわち、外部仲介装置12に対して通信可能な電子機器であれば、例えば、デジタルカメラ、パーソナルコンピュータ、計測機器、時計、バーコードリーダ、スキャナ、ミシン、その他情報機器・通信機器・制御機器・各種機械等、に対しても本発明は適用でき、この場合も同様の効果を得る。 Further, in the above description, the printer 14 which is a printing device has been described as an example of the electronic device to be managed by the management server 11, but the present invention is not limited to this. That is, as long as it is an electronic device capable of communicating with the external intermediary device 12, for example, a digital camera, a personal computer, a measuring device, a clock, a bar code reader, a scanner, a sewing machine, and other information devices, communication devices, control devices, and various types. The present invention can be applied to machines and the like, and the same effect can be obtained in this case as well.

なお、以上において、図3〜図6、図9、図10、図13、図16、図18等に示すシーケンス及びフローチャートは本発明を上記フローに示す手順に限定するものではなく、発明の趣旨及び技術的思想を逸脱しない範囲内で手順の追加・削除又は順番の変更等をしてもよい。 In the above, the sequences and flowcharts shown in FIGS. 3 to 6, 9, 9, 10, 13, 16, 18, etc. do not limit the present invention to the procedure shown in the above flow, and the gist of the invention. And, the procedure may be added / deleted or the order may be changed within a range that does not deviate from the technical idea.

また、以上既に述べた以外にも、上記実施形態や各変形例による手法を適宜組み合わせて利用しても良い。 In addition to the above, the methods according to the above-described embodiment and each modification may be appropriately combined and used.

その他、一々例示はしないが、本発明は、その趣旨を逸脱しない範囲内において、種々の変更が加えられて実施されるものである。 In addition, although not illustrated one by one, the present invention is carried out with various modifications within a range not deviating from the gist thereof.

10 管理システム
11 管理サーバ
12 外部仲介装置
14 プリンタ(印刷装置の一例)
21 CPU
24 第1プログラム
34 第2プログラム
41 CPU(制御手段の一例)
51 印刷エンジン(印刷手段の一例)
10 Management system 11 Management server 12 External mediator 14 Printer (example of printing device)
21 CPU
24 1st program 34 2nd program 41 CPU (an example of control means)
51 Printing engine (an example of printing means)

Claims (12)

被印刷媒体に印刷を行う印刷手段と、
制御手段と、
を有し、
所望の表示を行う表示手段を備えた管理サーバとインターネットを通じて通信する外部仲介装置と通信する印刷装置であって、
前記制御手段は、
前記管理サーバの前記表示手段における、表示仕様情報又は当該表示仕様情報に関連する仕様関連情報を取得する仕様情報取得処理;
前記印刷装置の状態が変化した場合に送信する当該変化した状態に係わる状態情報の送信態様を、前記仕様情報取得処理で取得された前記表示仕様情報又は前記仕様関連情報に応じて可変に設定する態様設定処理;
前記印刷装置の前記状態の変化に対応した前記状態情報を、前記態様設定処理で設定された態様で前記外部仲介装置へ送信する状態情報送信処理;
を実行する
ことを特徴とする印刷装置。
A printing means for printing on a printing medium and
Control means and
Have,
A printing device that communicates with an external intermediary device that communicates with a management server equipped with a display means for performing a desired display via the Internet.
The control means
Specification information acquisition process for acquiring display specification information or specification-related information related to the display specification information in the display means of the management server;
The transmission mode of the state information related to the changed state to be transmitted when the state of the printing device changes is variably set according to the display specification information or the specification-related information acquired in the specification information acquisition process. Aspect setting process;
A state information transmission process for transmitting the state information corresponding to the change in the state of the printing device to the external intermediary device in the mode set in the mode setting process;
A printing device characterized by performing.
請求項1記載の印刷装置において、
前記制御手段は、さらに、
前記印刷装置の状態が変化した場合に、当該変化した状態に係わる状態情報を、重要度に応じて複数区分に分類する状態情報分類処理;
を実行する
ことを特徴とする印刷装置。
In the printing apparatus according to claim 1,
The control means further
When the state of the printing device changes, the state information classification process for classifying the state information related to the changed state into a plurality of categories according to the importance;
A printing device characterized by performing.
請求項2記載の印刷装置において、
前記仕様情報取得処理では、
前記状態情報送信処理によって前記印刷装置から順次送信された複数の前記状態情報に基づき最新の前記状態情報をそれ以前の前記状態情報よりも優先する仕様を表す、前記表示仕様情報を取得する
ことを特徴とする印刷装置。
In the printing apparatus according to claim 2.
In the specification information acquisition process,
Acquiring the display specification information representing a specification in which the latest state information is prioritized over the previous state information based on a plurality of the state information sequentially transmitted from the printing apparatus by the state information transmission process. A featured printing device.
請求項3記載の印刷装置において、
前記態様設定処理では、
前記状態情報分類処理で用いられる前記複数区分のうち特定の区分に分類される前記状態情報を前記外部仲介装置へ送信する、前記送信態様を設定する
ことを特徴とする印刷装置。
In the printing apparatus according to claim 3,
In the mode setting process,
A printing apparatus for setting the transmission mode, which transmits the state information classified into a specific category among the plurality of categories used in the state information classification process to the external intermediary device.
請求項4記載の印刷装置において、
前記態様設定処理では、
前記重要度が最も高い前記特定の区分に分類される前記状態情報のみを前記外部仲介装置へ送信し、前記特定の区分以外に分類される前記状態情報は前記外部仲介装置へ送信しない、前記送信態様を設定する
ことを特徴とする印刷装置。
In the printing apparatus according to claim 4,
In the mode setting process,
Only the state information classified into the specific category having the highest importance is transmitted to the external intermediary device, and the state information classified to other than the specific category is not transmitted to the external intermediary device. A printing apparatus characterized by setting an aspect.
請求項3乃至請求項5のいずれか1項記載の印刷装置において、
前記態様設定処理では、
送信しようとする状態情報が分類される前記区分よりも重要度が高い前記区分に分類される前記状態情報が過去に発生している場合は、当該送信しようとする状態情報は前記外部仲介装置へ送信しない、前記送信態様を設定する
ことを特徴とする印刷装置。
In the printing apparatus according to any one of claims 3 to 5.
In the mode setting process,
If the state information classified into the category, which is more important than the category in which the state information to be transmitted is classified, has occurred in the past, the state information to be transmitted is sent to the external intermediary device. A printing apparatus that does not transmit and sets the transmission mode.
請求項2記載の印刷装置において、
前記態様設定処理では、
前記状態情報に対し、対応する前記区分を表す区分情報を付加して前記外部仲介装置へ送信する、前記送信態様を設定する
ことを特徴とする印刷装置。
In the printing apparatus according to claim 2.
In the mode setting process,
A printing apparatus characterized in that the transmission mode is set, in which classification information representing the corresponding classification is added to the state information and transmitted to the external intermediary device.
請求項7記載の印刷装置において、
前記仕様情報取得処理では、
前記状態情報送信処理によって前記印刷装置から順次送信された複数の前記状態情報に基づき前記状態情報に付された前記区分情報に応じて表示切替を行う仕様を表す、前記表示仕様情報を取得する
ことを特徴とする印刷装置。
In the printing apparatus according to claim 7.
In the specification information acquisition process,
Acquiring the display specification information representing a specification for switching the display according to the classification information attached to the state information based on a plurality of the state information sequentially transmitted from the printing apparatus by the state information transmission process. A printing device characterized by.
請求項1記載の印刷装置において、
前記仕様情報取得処理では、
前記状態情報送信処理によって前記印刷装置から順次送信された複数の前記状態情報に基づきそれら複数の状態情報を一覧可能に表示する仕様を表す、前記表示仕様情報を取得する
ことを特徴とする印刷装置。
In the printing apparatus according to claim 1,
In the specification information acquisition process,
A printing apparatus characterized by acquiring the display specification information, which represents a specification for displaying a plurality of status information in a list based on a plurality of the status information sequentially transmitted from the printing apparatus by the status information transmission process. ..
請求項9記載の印刷装置において、
前記態様設定処理では、
前記印刷装置の状態が変化した都度、対応する前記状態情報を前記外部仲介装置へ送信する、前記送信態様を設定する
ことを特徴とする印刷装置。
In the printing apparatus according to claim 9.
In the mode setting process,
A printing apparatus characterized in that the transmission mode is set, in which the corresponding state information is transmitted to the external intermediary device each time the state of the printing apparatus changes.
請求項1乃至請求項10のいずれか1項記載の印刷装置において、
前記仕様関連情報は、
前記管理サーバのURL、前記管理サーバに備えられた接続ポートのポート番号、及び、前記管理サーバを使用する使用者IDのうちいずれか1つ、又はこれらの組み合わせである
ことを特徴とする印刷装置。
In the printing apparatus according to any one of claims 1 to 10.
The specification-related information is
A printing apparatus characterized in that it is any one of the URL of the management server, the port number of the connection port provided in the management server, and the user ID that uses the management server, or a combination thereof. ..
所望の表示を行う表示手段を備えた管理サーバとインターネットを通じて通信する外部仲介装置と通信する電子機器に備えられた演算手段に対し、
前記管理サーバの前記表示手段における、表示仕様情報又は当該表示仕様情報に関連する仕様関連情報を取得する仕様情報取得手順と、
前記電子機器の状態が変化した場合に送信する当該変化した状態に係わる状態情報の送信態様を、前記仕様情報取得手順で取得された前記表示仕様情報又は前記仕様関連情報に応じて可変に設定する態様設定手順と、
前記電子機器の前記状態の変化に対応した前記状態情報を、前記態様設定手順で設定された態様で前記外部仲介装置へ送信する状態情報送信手順と、
を実行させるための、通信処理プログラム。
For the computing means provided in the electronic device that communicates with the external intermediary device that communicates with the management server equipped with the display means that performs the desired display via the Internet.
A specification information acquisition procedure for acquiring display specification information or specification-related information related to the display specification information in the display means of the management server, and
The transmission mode of the state information related to the changed state to be transmitted when the state of the electronic device changes is variably set according to the display specification information or the specification-related information acquired in the specification information acquisition procedure. Aspect setting procedure and
A state information transmission procedure for transmitting the state information corresponding to the change in the state of the electronic device to the external intermediary device in the mode set in the mode setting procedure, and a state information transmission procedure.
Communication processing program to execute.
JP2020013940A 2020-01-30 2020-01-30 Printer and communication processing program Pending JP2021120197A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020013940A JP2021120197A (en) 2020-01-30 2020-01-30 Printer and communication processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020013940A JP2021120197A (en) 2020-01-30 2020-01-30 Printer and communication processing program

Publications (1)

Publication Number Publication Date
JP2021120197A true JP2021120197A (en) 2021-08-19

Family

ID=77270192

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020013940A Pending JP2021120197A (en) 2020-01-30 2020-01-30 Printer and communication processing program

Country Status (1)

Country Link
JP (1) JP2021120197A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024009642A1 (en) * 2022-07-08 2024-01-11 キヤノン株式会社 Printing device, control method, and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024009642A1 (en) * 2022-07-08 2024-01-11 キヤノン株式会社 Printing device, control method, and program

Similar Documents

Publication Publication Date Title
US10356254B2 (en) Method of using a print server
CN103279182B (en) Information processing system and information processing method
US9538472B2 (en) Function performing apparatus
US8810819B2 (en) Image forming system, image forming device, image forming method, and non-transitory computer readable medium
JP7081273B2 (en) Programs and communication systems
EP2296316B1 (en) Device management apparatus, device management system, device management program, and storage medium
CN110321086A (en) Non-transitory computer readable recording medium and the method for controlling information processing unit
JP7131044B2 (en) Program and communication system
JP7172108B2 (en) Program and communication system
US20240086129A1 (en) Server, control method, storage medium, and printing system
JP2021120197A (en) Printer and communication processing program
EP2608520A1 (en) Performing error notification and error recovery in an image forming apparatus
JP3501138B2 (en) Data communication program, computer-readable recording medium recording data communication program, data communication device, and data communication method
US20110010718A1 (en) Electronic device, information processing method, and computer program product having computer-readable information processing program
US11360722B2 (en) Printing apparatus and non-transitory computer-readable storage medium
JP2021109356A (en) Printing device and communication processing program
US9207886B2 (en) Relaying device, relaying method, image processing apparatus, and image processing system
JP6417806B2 (en) Image forming apparatus and program
JP2021111065A (en) Printing device and communication processing program
JP2021109355A (en) Printing device
JP6249114B2 (en) Image forming system and program
US20220138011A1 (en) Non-transitory computer-readable medium, management apparatus, relay apparatus and display control method
JP2023080737A (en) Server system and computer program
JP2019133209A (en) Image formation apparatus and backup system
JP2013006383A (en) Printing apparatus

Legal Events

Date Code Title Description
RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20200228

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20200228