[go: up one dir, main page]

JP2021109356A - Printing equipment and communication processing program - Google Patents

Printing equipment and communication processing program Download PDF

Info

Publication number
JP2021109356A
JP2021109356A JP2020001725A JP2020001725A JP2021109356A JP 2021109356 A JP2021109356 A JP 2021109356A JP 2020001725 A JP2020001725 A JP 2020001725A JP 2020001725 A JP2020001725 A JP 2020001725A JP 2021109356 A JP2021109356 A JP 2021109356A
Authority
JP
Japan
Prior art keywords
time information
printer
information
program
external
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
JP2020001725A
Other languages
Japanese (ja)
Inventor
茉也 田渕
Maya Tabuchi
茉也 田渕
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 JP2020001725A priority Critical patent/JP2021109356A/en
Priority to US17/144,071 priority patent/US11435963B2/en
Publication of JP2021109356A publication Critical patent/JP2021109356A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1218Reducing or saving of used resources, e.g. avoiding waste of consumables or improving usage of hardware resources
    • G06F3/1221Reducing or saving of used resources, e.g. avoiding waste of consumables or improving usage of hardware resources with regard to power consumption
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1229Printer resources management or printer maintenance, e.g. device status, power levels
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1236Connection management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1278Dedicated interfaces to print systems specifically adapted to adopt a particular infrastructure
    • G06F3/1285Remote printer device, e.g. being remote from client or server
    • G06F3/1287Remote printer device, e.g. being remote from client or server via internet
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3271Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using challenge-response
    • H04L9/3273Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using challenge-response for mutual authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/00885Power supply means, e.g. arrangements for the control of power supply to the apparatus or components thereof
    • H04N1/00888Control thereof
    • H04N1/00891Switching on or off, e.g. for saving power when not in use
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Multimedia (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Facsimiles In General (AREA)

Abstract

【課題】印刷装置と外部仲介装置との通信量の増大、及び、印刷装置のバッテリ消費の増大、を回避する。
【解決手段】プリンタ14は、印刷エンジン51と、CPU41と、を有し、第2プログラム34は、暗号化された相互認識通信に必要となる時刻情報の取得を図る時刻取得処理と、時刻情報の取得に成功したか否かを判定する判定処理と、時刻情報の取得に成功したと判定されない場合には相互認識通信による外部仲介装置12との情報送受信を行わず、時刻情報の取得に成功したと判定された場合に相互認識通信により外部仲介装置12と情報送受信を行う、送受信処理と、を実行する。
【選択図】図7
PROBLEM TO BE SOLVED: To avoid an increase in the amount of communication between a printing device and an external intermediary device and an increase in battery consumption of the printing device.
A printer (14) includes a printing engine (51) and a CPU (41), and a second program (34) includes a time acquisition process for acquiring time information required for encrypted mutual recognition communication, and time information. Successful acquisition of time information without performing the determination process of determining whether or not the acquisition of When it is determined that the information has been sent / received, information is transmitted / received to / from the external intermediary device 12 by mutual recognition communication, and a transmission / reception process is executed.
[Selection diagram] FIG. 7

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 case, the printing device communicates with the external intermediary device by encrypted mutual recognition wireless communication, and in order to perform this communication, it is necessary to collate each other's electronic certificates. Since the validity period of a digital certificate is usually set, it is necessary for the printing apparatus to acquire time information in advance in order to collate the digital certificate.

しかしながら、このようなMDMシステムにおいて使用される印刷装置は、携帯性を重視する観点から、内部に時刻情報を生成する機能(例えばいわゆるリアルタイムクロック等)を持たない場合がある。その場合、何らかの形で時刻情報を取得するまでは、時刻情報を持たない状態のまま上記の電子証明書の照合を行うこととなる結果、照合エラーが続き、印刷装置と外部仲介装置との通信量の増大や印刷装置のバッテリ消費の増大を招く。 However, the printing apparatus used in such an MDM system may not have a function of internally generating time information (for example, a so-called real-time clock) from the viewpoint of emphasizing portability. In that case, until the time information is acquired in some form, the above-mentioned digital certificate is collated without having the time information. As a result, the collation error continues, and the communication between the printing device and the external intermediary device continues. This leads to an increase in the amount and battery consumption of the printing device.

本発明の目的は、印刷装置と外部仲介装置との通信量の増大と、印刷装置のバッテリ消費の増大と、を回避できる、印刷装置及び通信処理プログラムを提供することにある。 An object of the present invention is to provide a printing device and a communication processing program that can avoid an increase in the amount of communication between a printing device and an external intermediary device and an increase in battery consumption of the printing device.

上記目的を達成するために、本願発明は、被印刷媒体に印刷を行う印刷手段と、制御手段と、を有し、インターネットを通じて管理サーバと通信する外部仲介装置と通信する印刷装置であって、前記制御手段は、暗号化された相互認識通信に必要となる時刻情報の取得を図る時刻取得処理;前記時刻取得処理で前記時刻情報の取得に成功したか否かを判定する判定処理;前記判定処理で前記時刻情報の取得に成功したと判定されない場合には前記相互認識通信による前記外部仲介装置との情報送受信を行わず、前記判定処理で前記時刻情報の取得に成功したと判定された場合に前記相互認識通信により前記外部仲介装置と情報送受信を行う、送受信処理;を実行することを特徴とする。 In order to achieve the above object, the present invention is a printing device having a printing means for printing on a printing medium and a control means, and communicating with an external intermediary device communicating with a management server via the Internet. The control means is a time acquisition process for acquiring time information required for encrypted mutual recognition communication; a determination process for determining whether or not the time information acquisition is successful in the time acquisition process; the determination. When it is not determined in the process that the acquisition of the time information is successful, the information is not transmitted / received to / from the external intermediary device by the mutual recognition communication, and it is determined in the determination process that the acquisition of the time information is successful. It is characterized in that it executes a transmission / reception process; which transmits / receives information to / from the external mediator by the mutual recognition communication.

本願発明の印刷装置は、いわゆる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. At this time, the printing device communicates with the external intermediary device by encrypted mutual recognition wireless communication, and in order to perform this communication, it is necessary to collate each other's electronic certificates. Since the validity period of a digital certificate is usually set, it is necessary for the printing apparatus to acquire time information in advance in order to collate the digital certificate.

本願発明においては、制御手段が、まず時刻取得処理を行って上記時刻情報の取得を図った後、判定処理を行って上記時刻情報の取得に成功したか否かを判定する。そして、時刻情報の取得に成功したと判定された場合にのみ上記相互認識通信(例えばいわゆるHTTPS通信)により外部仲介装置と情報送受信を行い(送受信処理)、時刻情報の取得に成功したと判定されない場合には上記情報送受信を行わないようにする。これにより、必ず、時刻情報が取得された後に外部仲介装置との通信が行われ、時刻情報を持たない状態のまま前述の照合エラーが続くことがなくなる。この結果、前述した、印刷装置と外部仲介装置との通信量の増大や印刷装置のバッテリ消費の増大という弊害を回避することができ、ユーザにとっての利便性を向上することができる。 In the present invention, the control means first performs a time acquisition process to acquire the time information, and then performs a determination process to determine whether or not the acquisition of the time information is successful. Then, only when it is determined that the acquisition of the time information is successful, the information is transmitted / received to / from the external intermediary device by the above mutual recognition communication (for example, so-called HTTPS communication) (transmission / reception processing), and it is not determined that the acquisition of the time information is successful. In that case, do not send or receive the above information. As a result, communication with the external intermediary device is always performed after the time information is acquired, and the above-mentioned collation error does not continue without having the time information. As a result, it is possible to avoid the above-mentioned adverse effects of an increase in the amount of communication between the printing device and the external intermediary device and an increase in battery consumption of the printing device, and it is possible to improve convenience for the user.

本発明によれば、印刷装置と外部仲介装置との通信量の増大と、印刷装置のバッテリ消費の増大と、を回避することができる。 According to the present invention, it is possible to avoid an increase in the amount of communication between the printing device and the external mediator and an increase in battery consumption of the printing device.

本発明の一実施形態に係る管理システムの模式的な構成図である。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. プリンタの第2プログラムが外部仲介装置との情報送受信を行うときに実行する、時刻情報取得を含む情報送受信の処理内容を表すフローチャートである。It is a flowchart which shows the processing content of the information transmission / reception including time information acquisition which is executed when the 2nd program of a printer performs information transmission / reception with an external intermediary device. オートパワーオフ機能を有する変形例における、プリンタの第2プログラムが実行するオートパワーオフ機能の詳細手順を表すフローチャートである。It is a flowchart which shows the detailed procedure of the auto power off function executed by the 2nd program of a printer in the modification which has an auto power off function. 管理サーバにプリンタを登録する際における、管理サーバ、外部仲介装置、及びプリンタの処理を表す図である。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 the management server, the external intermediary device, and the printer when the status is reported periodically without the instruction from the management server. プリンタの第2プログラムが外部仲介装置との情報送受信を行うときに実行する、時刻情報取得を含む情報送受信の処理内容を表すフローチャートである。It is a flowchart which shows the processing content of the information transmission / reception including time information acquisition which is executed when the 2nd program of a printer performs information transmission / reception with an external intermediary device. 内部仲介装置が設けられる変形例における、管理システムの模式的な構成図である。It is a schematic block diagram of the management system in the modified example in which an internal mediator device is provided.

本発明の一実施形態を図面を参照しつつ説明する。 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 and an example of an electronic device.

管理システム10は、インターネット15に接続された管理サーバ11及び外部仲介装置12と、ローカルネットワーク16に接続された上記プリンタ14と、NTPサーバ1と、を備える。なお、NTPサーバ1の詳細については後述する。 The management system 10 includes a management server 11 and an external intermediary device 12 connected to the Internet 15, the printer 14 connected to the local network 16, and an NTP server 1. The details of the NTP server 1 will be described later.

管理サーバ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 "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 "state 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 and an example of calculation 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が実行する処理については後述する。なお、第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. The second program 34 is an example of a communication processing program.

通信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から送信された登録指示を受信した場合に、後述の時刻情報が取得できたことを表す時刻情報取得フラグFを0に初期化する(ステップS11)。なお、この図3に示すフローチャートは、プリンタ14の電源が投入されるたびに実行される。したがって、電源が投入されるたびにこのステップS11で時刻情報取得フラグFは0に初期化されることとなる。その後、第2プログラム34は、自己のデバイス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. A time indicating that the time information described later could be acquired according to the registration instruction instructing the management system 10 to be registered, or when the registration instruction transmitted from the first program 24 of the external intermediary device 12 is received. The information acquisition flag F is initialized to 0 (step S11). The flowchart shown in FIG. 3 is executed every time the power of the printer 14 is turned on. Therefore, every time the power is turned on, the time information acquisition flag F is initialized to 0 in step S11. After that, the second program 34 transmits an HTTP request including its own device ID and its own GUID stored in the memory 32 to the external intermediary device 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 "state 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 "state 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 for requesting 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 "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 "state 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指示コマンドは、例えば、この例では、設定情報(図2)の「フォント」「フォントサイズ」「濃度」などの各項目についてプリンタ14の設定値を変更する旨の指示、プリンタ14の第2プログラム34のファームバージョン(図2)を更新する旨の指示、等の実行を外部仲介装置12に指示するコマンドである。なお、プリンタ14の現在のステータス情報を返信することを要求する指示である場合については、別途後述する。ただし、第1指示コマンドが指示する内容は、これらの例に限られない。 The first instruction command is, for example, in this example, an instruction to change the setting value of the printer 14 for each item such as "font", "font size", and "density" of the setting information (FIG. 2), and the first instruction command of the printer 14. 2 This is a command instructing the external intermediary device 12 to execute an instruction to update the farm version (FIG. 2) of the program 34, 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を、対応データベースから特定する。すなわち、第1プログラム24は、指示を送信すべきプリンタ14の第2プログラム34をGUIDによって特定する。具体的には、第1プログラム24は、第1指示コマンドに含まれるデバイスIDを有するレコードを対応データベース上で特定し、特定したレコードにおける項目「GUID」のGUIDを、対応するGUIDとして特定する(ステップS33)。 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. 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 ( Step S33).

次に、外部仲介装置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は、まず、時刻情報取得フラグFを0に初期化する(ステップS29)。但し、図3のフローチャートから連続して実行される場合はこのステップS29はスキップされる。すなわち、この図4に示すフローチャートは、図3のフローチャートから連続して実行される場合を除き、プリンタ14の電源が投入されるたびに実行される。したがって、電源が投入されるたびにこのステップS29で時刻情報取得フラグFは0に初期化されることとなる。その後、プリンタ14の第2プログラム34は、予めメモリ32に記憶された送信タイミングになったか否かを判断する(ステップS35)。送信タイミングは、例えば、10秒間隔や15秒間隔や、20秒間隔など、数秒間隔から数十秒間隔に設定される。 On the other hand, the second program 34 of the printer 14 first initializes the time information acquisition flag F to 0 (step S29). However, this step S29 is skipped when the execution is performed continuously from the flowchart of FIG. That is, the flowchart shown in FIG. 4 is executed every time the power of the printer 14 is turned on, except when the flowchart shown in FIG. 3 is continuously executed. Therefore, every time the power is turned on, the time information acquisition flag F is initialized to 0 in step S29. After that, 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)。 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).

外部仲介装置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に送信する。 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.

プリンタ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)。すなわち、第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). 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指示コマンドを再送してしまうことが防止される。外部仲介装置12の第1プログラム24は、受信通知を含む、上記HTTPリクエストを受信する(ステップS41)。 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. The first program 24 of the external mediator 12 receives the HTTP request including the reception notification (step S41).

プリンタ14の第2プログラム34は、ステップS41の処理の実行後、第2指示コマンドが示す指示を実行する(ステップS52)。例えば、第2指示コマンドが設定情報(図2)の「フォント」や「フォントサイズ」や「濃度」などの各項目についてプリンタ14の設定を変更する旨の指示である場合、第2プログラム34は、「フォント」や「フォントサイズ」や「濃度」などの設定値を、第2指示コマンドに含まれる設定値で変更する。また、第2指示コマンドが、ファームバージョンを更新する旨の指示である場合、第2プログラム34は、第2指示コマンドに含まれるプログラムで自己を更新する。 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, 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.

次に、プリンタ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. May be good.

なお、前述の図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)。なお、このときのステータス情報は、設定情報やファームバージョンなどである。なお、このフローチャートでは図示を省略しているが、外部仲介装置12の第1プログラム24は、ステータス情報を含むHTTPリクエストを受信した後(ステップS62)、当該HTTPリクエストを受信したことを示す旨を、当該HTTPリクエストのHTTPレスポンスとして、プリンタ14に送信する。 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), the HTTP request is periodically transmitted. 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. 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.

上記のようにプリンタ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は、まず、時刻情報取得フラグFを0に初期化する(ステップS69)。但し、図3又は図4のフローチャートから連続して実行される場合はこのステップS69はスキップされる。すなわち、この図6に示すフローチャートは、図3又は図4のフローチャートから連続して実行される場合を除き、プリンタ14の電源が投入されるたびに実行される。したがって、電源が投入されるたびにこのステップS69で時刻情報取得フラグFは0に初期化されることとなる。その後、プリンタ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 first initializes the time information acquisition flag F to 0 (step S69). However, this step S69 is skipped when the execution is performed continuously from the flowchart of FIG. 3 or FIG. That is, the flowchart shown in FIG. 6 is executed every time the power of the printer 14 is turned on, except that the flowchart shown in FIG. 6 is continuously executed from the flowchart of FIG. 3 or 4. Therefore, every time the power is turned on, the time information acquisition flag F is initialized to 0 in step S69. After that, 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.

また、定期のステータス取得タイミングを時間単位とすることは、以下のような別の意義もある。すなわち、前述の図1では図示省略したが、プリンタ14は、印刷エンジン51を駆動し、バッテリ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, although not shown in FIG. 1 above, the printer 14 has a power supply circuit that drives the printing engine 51 and charges the battery 50. The power supply circuit converts the input commercial AC voltage into a DC voltage and outputs it. The second program 34 of the printer 14 has a function of executing a so-called sleep process of stopping the driving of the power supply circuit. 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エラー情報を含む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 HTTP request including the third error 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 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)。なお、ステータス情報を含む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). ). 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)。 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). ..

また、外部仲介装置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において、プリンタ14の第2プログラム34は、プリンタ14のステータス情報を返信することを要求する第2指示コマンドを外部仲介装置12から受信すると(ステップS39)、第2指示コマンドを受信したことを示す通知を含むHTTPリクエストを外部仲介装置12に送信する(ステップS41)。その後、図6に移り、第2プログラム34は、定期のステータス取得タイミングになるまで待機する(ステップS71:No)。 That is, in FIG. 4 described above, when the second program 34 of the printer 14 receives the second instruction command requesting the return of the status information of the printer 14 from the external intermediary device 12 (step S39), the second instruction command An HTTP request including a notification indicating that the above is received is transmitted to the external mediator 12 (step S41). 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に送信する(ステップS75,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 S75 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.

<時刻情報の取得>
以上の基本構成及び動作において、上述したように、プリンタ14と外部仲介装置12との間の通信は、プリンタ14が外部仲介装置12に送信したHTTPリクエストに対し、外部仲介装置12が、そのHTTPリクエストに対するHTTPレスポンスに、指示を含む各種情報を含める形で送信する。この場合、プリンタ14は、外部仲介装置12に対し、暗号化された相互認識無線通信により通信を行うが、この通信を行うためには互いの電子証明書の照合が必要となる。通常、電子証明書には有効期間が定められていることから、プリンタ14は、上記電子証明書の照合を行うためには時刻情報をあらかじめ取得しておく必要がある。
<Acquisition of time information>
In the above basic configuration and operation, as described above, in the communication between the printer 14 and the external intermediary device 12, the external intermediary device 12 responds to the HTTP request transmitted by the printer 14 to the external intermediary device 12 by the external intermediary device 12. The HTTP response to the request is sent in the form of including various information including instructions. In this case, the printer 14 communicates with the external intermediary device 12 by encrypted mutual recognition wireless communication, but in order to perform this communication, it is necessary to collate each other's electronic certificates. Since the validity period of the digital certificate is usually set, the printer 14 needs to acquire the time information in advance in order to collate the digital certificate.

本実施形態においては、上記に対応するために、プリンタ14は、外部仲介装置12との情報送受信の前に、インターネット15を介し、装置外の外部装置であるNTPサーバ1から時刻情報を取得する。NTPサーバ1は時刻情報サーバの一例である。以下、その時刻情報取得を含む情報送受信の処理内容を、図7に示すフローチャートにより説明する。なお、この図7に示す処理は、図4〜図6における外部仲介装置12とプリンタ14との情報送受信の実行の都度、プリンタ14の第2プログラム34によって実行される。すなわち、図7の処理は、例えば、図3のステップS14、ステップS22、図4のステップS36、ステップS38、ステップS39、ステップS41、図5のステップS55、ステップS62、図6のステップS76、ステップS78、ステップS79、ステップS80において、実行されることとなる。 In the present embodiment, in order to cope with the above, the printer 14 acquires time information from the NTP server 1, which is an external device outside the device, via the Internet 15 before transmitting and receiving information to and from the external intermediary device 12. .. The NTP server 1 is an example of a time information server. Hereinafter, the processing content of information transmission / reception including the time information acquisition will be described with reference to the flowchart shown in FIG. 7. The process shown in FIG. 7 is executed by the second program 34 of the printer 14 each time information transmission / reception is executed between the external intermediary device 12 and the printer 14 in FIGS. 4 to 6. That is, the process of FIG. 7 is, for example, step S14 of FIG. 3, step S22, step S36 of FIG. 4, step S38, step S39, step S41, step S55 of FIG. 5, step S62, step S76 of FIG. It will be executed in S78, step S79, and step S80.

図7において、まず、プリンタ14の第2プログラム34は、前述の時刻情報取得フラグFが1であるか否かを判断する(ステップS200)。時刻情報取得フラグFが0であれば(ステップS220:No)、第2プログラム34は、インターネット15を介しNTPサーバ1から時刻情報の取得を図る(ステップS210)。ステップS210が時刻取得手順の一例であり、ステップS210で実行する処理は時刻取得処理の一例である。 In FIG. 7, first, the second program 34 of the printer 14 determines whether or not the time information acquisition flag F described above is 1 (step S200). If the time information acquisition flag F is 0 (step S220: No), the second program 34 attempts to acquire time information from the NTP server 1 via the Internet 15 (step S210). Step S210 is an example of the time acquisition procedure, and the process executed in step S210 is an example of the time acquisition process.

その後、プリンタ14の第2プログラム34は、NTPサーバ1から時刻情報を取得できたか否かを判断する(ステップS220)。ステップS220が判定手順の一例であり、ステップS220で実行する処理が判定処理の一例である。プリンタ14の第2プログラム34は、NTPサーバ1から時刻情報を取得できない間(ステップS220:No)はステップS210を繰り返し、NTPサーバ1から時刻情報を取得したら(ステップS220:Yes)、上記時刻情報取得フラグFを1とする(ステップS230)。 After that, the second program 34 of the printer 14 determines whether or not the time information can be acquired from the NTP server 1 (step S220). Step S220 is an example of the determination procedure, and the process executed in step S220 is an example of the determination process. The second program 34 of the printer 14 repeats step S210 while the time information cannot be acquired from the NTP server 1 (step S220: No), and when the time information is acquired from the NTP server 1 (step S220: Yes), the time information is described above. The acquisition flag F is set to 1 (step S230).

その後、プリンタ14の第2プログラム34は、前述のHTTPリクエスト及びHTTPレスポンスを用いて、外部仲介装置12との情報送受信を行う(ステップS240)。一方、前述のステップS200において時刻情報取得フラグFが1であった場合は(ステップS200:Yes)、プリンタ14の第2プログラム34は、ステップS210、ステップS220、ステップS230を行うことなく、ステップS240において上記外部仲介装置12との情報送受信を行う。 After that, the second program 34 of the printer 14 transmits and receives information to and from the external mediator 12 using the above-mentioned HTTP request and HTTP response (step S240). On the other hand, when the time information acquisition flag F is 1 in step S200 described above (step S200: Yes), the second program 34 of the printer 14 does not perform steps S210, S220, and S230, and steps S240. Information is transmitted and received to and from the external intermediary device 12.

すなわち、ステップS210でNTPサーバ1から時刻情報を取得できない間はステップS240を実行せず、ステップS210でNTPサーバ1から時刻情報を取得したら(ステップS220:Yes)ステップS240が実行されるとともに、及び、過去に時刻情報が取得済であって時刻情報取得フラグFが1である場合にもステップS240が実行される。これらの処理の流れの結果、ステップS240が送受信手順の一例であり、ステップS240で実行する処理は送受信処理の一例となる。その後、プリンタ14の第2プログラム34は、このフローを終了する。 That is, step S240 is not executed while the time information cannot be acquired from the NTP server 1 in step S210, and step S240 is executed when the time information is acquired from the NTP server 1 in step S210 (step S220: Yes). The step S240 is also executed when the time information has been acquired in the past and the time information acquisition flag F is 1. As a result of these processing flows, step S240 is an example of a transmission / reception procedure, and the processing executed in step S240 is an example of transmission / reception processing. After that, the second program 34 of the printer 14 ends this flow.

<実施形態の効果>
以上説明したように、本実施形態においては、プリンタ14の第2プログラム34は、まず時刻情報の取得を図った後(ステップS210)、時刻情報の取得に成功したか否かを判定する(ステップS220)。そして、時刻情報の取得に成功したと判定された場合にのみ(ステップS220:Yes)、相互認識通信、上記の例ではHTTPS通信により外部仲介装置12と情報送受信を行い(ステップS240)、時刻情報の取得に成功したと判定されない場合(ステップS220:No)には上記情報送受信を行わない。これにより、必ず、時刻情報が取得された後に外部仲介装置12との通信が行われ、時刻情報を持たない状態のまま前述の照合エラーが続くことがなくなる。この結果、前述した、プリンタ14と外部仲介装置12との通信量の増大やプリンタ14のバッテリ消費の増大という弊害を回避することができ、ユーザにとっての利便性を向上することができる。
<Effect of embodiment>
As described above, in the present embodiment, the second program 34 of the printer 14 first tries to acquire the time information (step S210), and then determines whether or not the acquisition of the time information is successful (step). S220). Then, only when it is determined that the acquisition of the time information is successful (step S220: Yes), information is transmitted / received to / from the external intermediary device 12 by mutual recognition communication, or HTTPS communication in the above example (step S240), and the time information is obtained. If it is not determined that the acquisition of the above information is successful (step S220: No), the above information transmission / reception is not performed. As a result, communication with the external intermediary device 12 is always performed after the time information is acquired, and the above-mentioned collation error does not continue without having the time information. As a result, it is possible to avoid the above-mentioned adverse effects of an increase in the amount of communication between the printer 14 and the external intermediary device 12 and an increase in battery consumption of the printer 14, and it is possible to improve convenience for the user.

また、本実施形態では特に、プリンタ14の外部から時刻情報を取得する。これにより、プリンタ14内に時刻情報を生成する機能を持たなくても、外部から取得した時刻情報を用いて、上記外部仲介装置12との円滑な通信を行うことができる。 Further, in the present embodiment, in particular, time information is acquired from the outside of the printer 14. As a result, smooth communication with the external intermediary device 12 can be performed using the time information acquired from the outside even if the printer 14 does not have the function of generating the time information.

また、本実施形態では特に、時刻情報配信サーバ、上記の例ではNTPサーバ1から取得した時刻情報を用いる。これにより、上記外部仲介装置12との円滑な通信を行うことができる。 Further, in the present embodiment, particularly, the time information acquired from the time information distribution server, and in the above example, the NTP server 1 is used. As a result, smooth communication with the external intermediary device 12 can be performed.

また、本実施形態では特に、プリンタ14の電源投入がなされる都度、時刻情報が取得される。これにより、プリンタ14の電源がOFFにされ時刻情報が消失した場合であっても、その後の電源投入時に確実に時刻情報を取得し、電子証明書の照合を行うことができる。 Further, in the present embodiment, in particular, time information is acquired each time the printer 14 is turned on. As a result, even when the power of the printer 14 is turned off and the time information is lost, the time information can be reliably acquired and the electronic certificate can be collated when the power is turned on thereafter.

なお、本発明は、上記実施形態に限られるものではなく、その趣旨及び技術的思想を逸脱しない範囲内で種々の変形が可能である。以下、そのような変形例を順を追って説明する。上記実施形態と同等の部分には同一の符号を付し、適宜説明を省略又は簡略化する。 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. The same parts as those in the above embodiment are designated by the same reference numerals, and the description thereof will be omitted or simplified as appropriate.

(1)時刻情報の手入力
すなわち、上述のようにNTPサーバ1から入力された時刻情報を用いるのに代え、本変形例では、ユーザが、プリンタ14に設けた適宜の操作部を介し手動操作で適宜の時刻を入力する。この場合、図7のステップS210では、その手動操作で入力された時刻に対応した時刻情報の取得が図られ、ステップS220では、その時刻情報の取得に成功したか否かが判断される。なお、上記の操作部が操作手段の一例である。
(1) Manual input of time information That is, instead of using the time information input from the NTP server 1 as described above, in this modification, the user manually operates the time information via an appropriate operation unit provided on the printer 14. Enter the appropriate time with. In this case, in step S210 of FIG. 7, time information corresponding to the time input by the manual operation is acquired, and in step S220, it is determined whether or not the acquisition of the time information is successful. The above-mentioned operation unit is an example of the operation means.

本変形例においては、上記したように、ユーザが操作部を操作して時刻を入力することで、その時刻に対応した時刻情報が第2プログラム34により取得される。なお、電子証明書の照合エラーを回避するには当該時刻情報の精度は問われず、当該時刻情報の表す時刻が、照合する電子証明書の有効期間内に収まっていればよいため、上記のような操作入力でも問題はない。これにより、上記実施形態と同様、プリンタ14内に時刻情報を生成する機能を持たなくても、上記のように操作入力された時刻に対応した時刻情報を用いて、上記外部仲介装置12との円滑な通信を行うことができる。 In this modification, as described above, when the user operates the operation unit to input the time, the time information corresponding to the time is acquired by the second program 34. In order to avoid the verification error of the digital certificate, the accuracy of the time information does not matter, and the time represented by the time information needs to be within the valid period of the digital certificate to be collated. There is no problem even with simple operation input. As a result, as in the above embodiment, even if the printer 14 does not have the function of generating the time information, the time information corresponding to the time input by the operation as described above can be used with the external intermediary device 12. Smooth communication can be performed.

(2)他のプリンタから時刻情報を取得する場合
図1に示したように、管理システム10は、複数のローカルネットワーク16を備えており、各ローカルネットワーク16内にそれぞれ複数のプリンタ14が備えられている。そして、ローカルネットワーク16に接続されたプリンタ14同士は、TCP/IPなどの通信プロトコルを用いて相互に通信可能である。したがって、例えば特定のプリンタ14がNTPサーバ1から時刻情報を取得している場合、同一のローカルネットワーク6内の別のプリンタ14がその特定のプリンタ14から上記時刻情報を取得するようにしてもよい。上記特定のプリンタ14が、ユーザの手動操作に基づき時刻情報を既に取得している場合も同様である。なお、この場合、上記別のプリンタ14が印刷装置の一例であり、上記特定のプリンタ14が第1印刷装置の一例である。
(2) When Acquiring Time Information from Other Printers As shown in FIG. 1, the management system 10 includes a plurality of local networks 16, and each of the local networks 16 includes a plurality of printers 14. ing. Then, the printers 14 connected to the local network 16 can communicate with each other using a communication protocol such as TCP / IP. Therefore, for example, when a specific printer 14 acquires time information from the NTP server 1, another printer 14 in the same local network 6 may acquire the time information from the specific printer 14. .. The same applies when the specific printer 14 has already acquired the time information based on the manual operation of the user. In this case, the other printer 14 is an example of a printing device, and the specific printer 14 is an example of a first printing device.

本変形例では、上記別のプリンタ14における第2プログラム34が実行する図7のステップS210では、上記特定のプリンタ14から時刻情報の取得が図られ、ステップS220では、その時刻情報の取得に成功したか否かが判断される。 In this modification, in step S210 of FIG. 7 executed by the second program 34 in the other printer 14, time information is acquired from the specific printer 14, and in step S220, the acquisition of the time information is successful. It is judged whether or not it was done.

本変形例においては、外部仲介装置12と通信する上記特定のプリンタ14が既に時刻情報を取得していた場合に、上記別のプリンタ14の第2プログラム34が、上記特定のプリンタ14から取得した時刻情報を用いる。これにより、上記別のプリンタ14が別途独自にNTPサーバ1等から時刻情報を取得する場合に比べ、ネットワーク全体の通信量を少なくしつつ簡素な制御で時刻情報を取得することができ、上記外部仲介装置12との円滑な通信を行うことができる。 In this modification, when the specific printer 14 communicating with the external intermediary device 12 has already acquired the time information, the second program 34 of the other printer 14 has acquired the time information from the specific printer 14. Use time information. As a result, compared to the case where the other printer 14 separately acquires the time information from the NTP server 1 or the like, the time information can be acquired with simple control while reducing the communication volume of the entire network, and the external device can be acquired. Smooth communication with the intermediary device 12 can be performed.

(3)オートパワーオフ機能がある場合
本変形例においては、プリンタ14はいわゆるオートパワーオフ機能を備えている。すなわち例えば、印刷エンジン51、通信I/F45等の特定の動作機構が非動作状態となった後に所定の基準時間を経過したことを契機に、プリンタ14は電源OFF状態に切り替えられる。第2プログラム34によるこのオートパワーオフ機能の詳細を、図8に示すフローチャートにより説明する。なお、この図8に示す処理は、後述の図9〜図12に示す処理とは別に、同時並行してプリンタ14の第2プログラム34によって実行される。
(3) When there is an auto power off function In this modified example, the printer 14 has a so-called auto power off function. That is, for example, the printer 14 is switched to the power-off state when a predetermined reference time elapses after a specific operating mechanism such as the print engine 51 and the communication I / F 45 is in the non-operating state. The details of this auto power-off function by the second program 34 will be described with reference to the flowchart shown in FIG. The process shown in FIG. 8 is executed by the second program 34 of the printer 14 in parallel with the process shown in FIGS. 9 to 12 described later.

図8において、まず、プリンタ14の第2プログラム34は、オートパワーオフ機能の実行の有無を表す実行フラグFpを0に初期化する(ステップS100)。その後、第2プログラム34は、プリンタ14に備えられた特定の動作機構の非動作状態が予め定められた基準時間、継続したか否かを判断する(ステップS110)。特定の動作機構は、例えば、印刷エンジン51、通信I/F45等である。またこの例では、上記基準時間は10分となっている。プリンタ14の第2プログラム34は、上記非動作状態が10分継続したら(ステップS110:Yes)、プリンタ14の電源OFF、すなわち電源電圧を供給遮断状態に切り替え(ステップS120)、上記実行フラグFp=1とする(ステップS130)。ステップS120で実行する処理は切替処理の一例である。 In FIG. 8, first, the second program 34 of the printer 14 initializes the execution flag Fp indicating whether or not the auto power-off function is executed to 0 (step S100). After that, the second program 34 determines whether or not the non-operating state of the specific operating mechanism provided in the printer 14 has continued for a predetermined reference time (step S110). The specific operating mechanism is, for example, a printing engine 51, a communication I / F 45, or the like. In this example, the reference time is 10 minutes. When the non-operating state continues for 10 minutes (step S110: Yes), the second program 34 of the printer 14 turns off the power of the printer 14, that is, switches the power supply voltage to the supply cutoff state (step S120), and the execution flag Fp = Set to 1 (step S130). The process executed in step S120 is an example of the switching process.

その後、プリンタ14の第2プログラム34は、上記電源OFF状態を解除するための所定の復帰操作がなされたか否かを判断する(ステップS140)。復帰操作とは、例えば、プリンタ14に備えられたボタン等、適宜の操作部に対する、予め定められた適宜の操作である。第2プログラム34は、上記復帰操作がなされるまでは電源OFF状態を継続する(ステップS140:No)。第2プログラム34は、復帰操作がなされたら(ステップS140:Yes)プリンタ14の電源をON、すなわち電源電圧を供給状態に復帰させ(ステップS150)、上記実行フラグFp=0に戻した後(ステップS160)、処理を終了する。ステップS150で実行する処理は復帰処理の一例である。 After that, the second program 34 of the printer 14 determines whether or not a predetermined return operation for releasing the power OFF state has been performed (step S140). The return operation is, for example, a predetermined appropriate operation for an appropriate operation unit such as a button provided on the printer 14. The second program 34 continues the power-off state until the return operation is performed (step S140: No). The second program 34 turns on the power of the printer 14 when the return operation is performed (step S140: Yes), that is, returns the power supply voltage to the supply state (step S150), and then returns the execution flag Fp = 0 (step). S160), the process is terminated. The process executed in step S150 is an example of the return process.

上記図8の処理に対応して本変形例において第1プログラム24及び第2プログラム34が実行する処理を、前述の図3、図4、図6、図7にそれぞれ対応する図9、図10、図11、図12と前述の図5とを用いて説明する。 The processes executed by the first program 24 and the second program 34 in the present modification corresponding to the process of FIG. 8 are performed in FIGS. 9, 9 and 10 corresponding to the above-mentioned FIGS. 3, 4, 6, and 7, respectively. , FIGS. 11, 12 and FIG. 5 described above will be described.

すなわち、図3で前述した対応データベースへのプリンタ14の登録時には、図9に示すように、第2プログラム34は、時刻情報取得フラグF=0に初期化した後(ステップS11)、実行フラグFpを0に初期化する(ステップS12)。以降の処理は図3と同様である。なお、図9に示すフローチャートは、プリンタ14の電源が投入されるたびに実行される。したがって、電源が投入されるたびにステップS11及びステップS12で時刻情報取得フラグF及び実行フラグFpは0に初期化されることとなる。 That is, at the time of registering the printer 14 in the corresponding database described above in FIG. 3, as shown in FIG. 9, the second program 34 is initialized to the time information acquisition flag F = 0 (step S11), and then the execution flag Fp. Is initialized to 0 (step S12). Subsequent processing is the same as in FIG. The flowchart shown in FIG. 9 is executed every time the power of the printer 14 is turned on. Therefore, each time the power is turned on, the time information acquisition flag F and the execution flag Fp are initialized to 0 in steps S11 and S12.

また、図4及び図5を用いて前述した、管理サーバ11からの指示に基づき所望の処理が実行される際には、図10に示すように、第2プログラム34は、時刻情報取得フラグF=0に初期化した後(ステップS29)、実行フラグFpを0に初期化する(ステップS30)。なお、図4と同様、図9のフローチャートから連続して実行される場合は図10のステップS29及びステップS30はスキップされる。すなわち、この図10に示すフローチャートは、図9のフローチャートから連続して実行される場合を除き、プリンタ14の電源が投入されるたびに実行される。したがって、電源が投入されるたびにこのステップS29及びステップS30で時刻情報取得フラグF及び実行フラグFpは0に初期化されることとなる。以降の処理は図4及び図5と同様である。 Further, when the desired process is executed based on the instruction from the management server 11 described above with reference to FIGS. 4 and 5, the second program 34 sets the time information acquisition flag F as shown in FIG. After initializing to = 0 (step S29), the execution flag Fp is initialized to 0 (step S30). As in FIG. 4, when the flowcharts in FIG. 9 are continuously executed, steps S29 and S30 in FIG. 10 are skipped. That is, the flowchart shown in FIG. 10 is executed every time the power of the printer 14 is turned on, except when the flowchart shown in FIG. 9 is continuously executed. Therefore, each time the power is turned on, the time information acquisition flag F and the execution flag Fp are initialized to 0 in steps S29 and S30. Subsequent processing is the same as in FIGS. 4 and 5.

さらに、図6を用いて前述した、管理サーバ11からの指示に拠らず、プリンタ14のステータス情報を定期的に送信する処理が実行される際には、図11に示すように、第2プログラム34は、時刻情報取得フラグF=0に初期化した後(ステップS69)、実行フラグFpを0に初期化する(ステップS70)。なお、図10と同様、図9のフローチャートから連続して実行される場合は図11のステップS69及びステップS70はスキップされる。すなわち、この図11に示すフローチャートは、図9のフローチャートから連続して実行される場合を除き、プリンタ14の電源が投入されるたびに実行される。したがって、電源が投入されるたびにこのステップS69及びステップS70で時刻情報取得フラグF及び実行フラグFpは0に初期化されることとなる。以降の処理は図6と同様である。 Further, when the process of periodically transmitting the status information of the printer 14 is executed without relying on the instruction from the management server 11 described above using FIG. 6, as shown in FIG. 11, the second The program 34 initializes the time information acquisition flag F = 0 (step S69) and then initializes the execution flag Fp to 0 (step S70). As in FIG. 10, when the flowcharts in FIG. 9 are continuously executed, steps S69 and S70 in FIG. 11 are skipped. That is, the flowchart shown in FIG. 11 is executed every time the power of the printer 14 is turned on, except when the flowchart shown in FIG. 9 is continuously executed. Therefore, each time the power is turned on, the time information acquisition flag F and the execution flag Fp are initialized to 0 in steps S69 and S70. Subsequent processing is the same as in FIG.

本変形例において、時刻情報取得を含む情報送受信の処理内容を、図12に示す。なお、この図12に示す処理は、前述の図7と同様、図10、図5、図11における外部仲介装置12とプリンタ14との情報送受信の実行の都度、プリンタ14の第2プログラム34によって実行される。 In this modified example, the processing content of information transmission / reception including time information acquisition is shown in FIG. Note that the process shown in FIG. 12 is performed by the second program 34 of the printer 14 each time information transmission / reception is executed between the external intermediary device 12 and the printer 14 in FIGS. 10, 5, and 11 in the same manner as in FIG. Will be executed.

図12において、本変形例では、プリンタ14の第2プログラム34は、時刻情報取得フラグFが1であるか否かを判断し(ステップS200)、時刻情報取得フラグFが1であった場合は(ステップS200:Yes)、実行フラグFpが1であるか否かを判断する(ステップS250)。実行フラグFpが0であった場合は(ステップS250:No)、第2プログラム34は、ステップS240において上記外部仲介装置12との情報送受信を行う。一方、実行フラグFpが1であった場合は(ステップS250:Yes)、第2プログラム34は、実行フラグFp=1とした後(ステップS260)、インターネット15を介しNTPサーバ1から時刻情報の取得を図る(ステップS210)。以降のステップS220及びステップS230は図7と同様である。 In FIG. 12, in the present modification, the second program 34 of the printer 14 determines whether or not the time information acquisition flag F is 1 (step S200), and if the time information acquisition flag F is 1. (Step S200: Yes), it is determined whether or not the execution flag Fp is 1 (step S250). When the execution flag Fp is 0 (step S250: No), the second program 34 transmits / receives information to / from the external intermediary device 12 in step S240. On the other hand, when the execution flag Fp is 1 (step S250: Yes), the second program 34 acquires the time information from the NTP server 1 via the Internet 15 after setting the execution flag Fp = 1 (step S260). (Step S210). Subsequent steps S220 and S230 are the same as in FIG. 7.

本変形例においては、プリンタ14においていわゆるオートパワーオフ機能が備わっており、そのオートパワーオフ機能により電源OFFにされ(ステップS120)、時刻情報が消失した場合であっても、その後復帰操作がなされ電源の再投入がなされる時に(ステップS140)、確実に時刻情報を取得し、電子証明書の照合を行うことができる。 In this modification, the printer 14 is provided with a so-called auto power off function, and the power is turned off by the auto power off function (step S120), and even if the time information is lost, the recovery operation is performed thereafter. When the power is turned on again (step S140), the time information can be reliably acquired and the electronic certificate can be collated.

(4)内部仲介装置が設けられる場合
<システム構成>
本変形例では、複数備えられているプリンタのうち一部のプリンタ14′については、それらを管理サーバ11で管理するために、外部仲介装置12に加え、内部仲介装置13が利用される。すなわち、図1に対応する図13に示すように、管理システム10は、インターネット15に接続された管理サーバ11及び外部仲介装置12と、上記実施形態及び(1)〜(3)の変形例と同様のローカルネットワーク16に接続されたプリンタ14と、ローカルネットワーク16′に接続されたプリンタ14′及び内部仲介装置13と、を備える。なお、本変形例においては、NTPサーバ1は設けられない。
(4) When an internal mediator is installed <System configuration>
In this modification, for some printers 14'of the plurality of printers provided, an internal intermediary device 13 is used in addition to the external intermediary device 12 in order to manage them by the management server 11. That is, as shown in FIG. 13 corresponding to FIG. 1, the management system 10 includes a management server 11 and an external intermediary device 12 connected to the Internet 15, and the above-described embodiment and modified examples of (1) to (3). A printer 14 connected to a similar local network 16 and a printer 14'connected to the local network 16'and an internal mediator 13 are provided. In this modified example, the NTP server 1 is not provided.

内部仲介装置13は、例えば、前述の会社の各支店に設置されたサーバやパーソナルコンピュータである。支店に構築されたローカルネットワーク16′を介し、内部仲介装置13と各プリンタ14′とが接続される。ローカルネットワーク16′に接続された内部仲介装置13とプリンタ14′とは、TCP/IPなどの通信プロトコルを用いて相互に通信可能である。具体的には、内部仲介装置13とプリンタ14′とは、プライベートIPアドレスやMACアドレスを用いて相互に通信する。ローカルネットワーク16′に接続された内部仲介装置13は、中継装置を介して外部仲介装置12と通信を行う。具体的には、内部仲介装置13と外部仲介装置12とは、中継装置が構築するファイアウォールを通じて相互に通信を行う。なお、ファイアウォールは必須ではなく、必要性がない又は少ない場合は中継装置がファイアウォールを備えなくてもよい。 The internal mediator 13 is, for example, a server or a personal computer installed in each branch of the above-mentioned company. The internal mediator 13 and each printer 14'are connected via the local network 16'constructed in the branch office. The internal mediator 13 connected to the local network 16'and the printer 14' can communicate with each other using a communication protocol such as TCP / IP. Specifically, the internal mediator 13 and the printer 14'communicate with each other using a private IP address or a MAC address. The internal intermediary device 13 connected to the local network 16'communicates with the external intermediary device 12 via the relay device. Specifically, the internal intermediary device 13 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において、プリンタ14′の管理は、上述の構成を有する外部仲介装置12及び内部仲介装置13を利用して実現される。このとき、内部仲介装置13には、上記実施形態等においてプリンタ14に備えられていた第2プログラム34と同等の機能を備える第2プログラム34′が備えられている。そして、外部仲介装置12にインストールされて実行される第1プログラム24と、内部仲介装置13にインストールされて実行される第2プログラム34′とを用いて、プリンタ14′の管理が実現される。 In the management system 10, the management of the printer 14'is realized by using the external intermediary device 12 and the internal intermediary device 13 having the above-described configuration. At this time, the internal mediator 13 is provided with a second program 34'having a function equivalent to that of the second program 34 provided in the printer 14 in the above-described embodiment and the like. Then, the management of the printer 14'is realized 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 internal intermediary device 13.

<内部仲介装置>
内部仲介装置13は、CPU31と、メモリ32と、通信I/F35と、ユーザI/F36と、通信バス37とを備える。CPU31、メモリ32、通信I/F35、ユーザI/F36、及び通信バス37の構成は、外部仲介装置12のCPU21、メモリ22、ユーザI/F26、及び通信バス27の構成と同様である。
<Internal mediator>
The internal mediator 13 includes a CPU 31, a memory 32, a communication I / F35, a user I / F36, and a communication bus 37. The configurations of the CPU 31, the memory 32, the communication I / F35, the user I / F36, and the communication bus 37 are the same as the configurations of the CPU 21, the memory 22, the user I / F26, and the communication bus 27 of the external intermediary device 12.

メモリ32は、プログラム記憶領域38及びデータ記憶領域39を有している。プログラム記憶領域38は、OS33や第2プログラム34′等のプログラムを記憶している。データ記憶領域39は、プログラムの実行に必要なデータを記憶する。また、データ記憶領域39は、上記GUIDを記憶する。 The memory 32 has a program storage area 38 and a data storage area 39. The program storage area 38 stores programs such as the OS 33 and the second program 34'. The data storage area 39 stores data necessary for executing the program. In addition, the data storage area 39 stores the above GUID.

OS33は、内部仲介装置13の基本プログラムである。第2プログラム34′は、OS33と協働して、通信I/F35を通じた外部仲介装置12及びプリンタ14′との通信を制御するプログラムである。第2プログラム34′は、単一のプログラムであってもよいし、複数のプログラムの集合体であってもよい。 OS 33 is a basic program of the internal mediator device 13. The second program 34'is a program that controls communication with the external mediator 12 and the printer 14'through the communication I / F35 in cooperation with the OS 33. The second program 34'may be a single program or a collection of a plurality of programs.

通信I/F35は、外部仲介装置12及びプリンタ14′と通信可能なインタフェースである。通信I/F35は、LAN I/Fや無線LAN I/Fである。 The communication I / F 35 is an interface capable of communicating with the external mediator 12 and the printer 14'. The communication I / F 35 is a LAN I / F or a wireless LAN I / F.

<プリンタ>
本変形例のプリンタ14′は、メモリ42のプログラム記憶領域48に、前述の第2プログラム34に代えて制御プログラム44が記憶されている。制御プログラム44は、OS43と協働して、印刷エンジン51に印刷を実行させ、また、通信I/F45を通じた内部仲介装置13との通信を制御するプログラムである。制御プログラム44は、単一のプログラムであってもよいし、複数のプログラムの集合体であってもよい。制御プログラム44が実行する処理については後述する。
<Printer>
In the printer 14'of this modification, the control program 44 is stored in the program storage area 48 of the memory 42 in place of the second program 34 described above. The control program 44 is a program that causes the printing engine 51 to execute printing in cooperation with the OS 43 and controls communication with the internal mediator 13 through the communication I / F 45. The control program 44 may be a single program or a collection of a plurality of programs. The process executed by the control program 44 will be described later.

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

<プログラムの処理>
本変形例において、プリンタ14′及び内部仲介装置13を備えたローカルネットワーク16′に関しては、上記実施形態及び(1)〜(3)の変形例においてプリンタ14の第2プログラム34が実行した処理と同等の処理が、内部仲介装置13の第2プログラム34′によって実行される。すなわち、図示及び詳細な説明を省略するが、例えば特開2019−179446号に記載されたものと同様、図3〜図6、図9〜図11等における、ステップS14、ステップS22、ステップS29、ステップS35、ステップS36〜ステップS41、ステップS54、ステップS55、ステップS61、ステップS62、ステップS69〜ステップS75、ステップS78〜ステップS80、ステップS30、ステップS70、と同等の処理が内部仲介装置13の第2プログラム34′の制御に基づき実行される。そしてそれらの各手順の前処理又は後処理に相当する処理若しくは情報送受信が、内部仲介装置13とプリンタ14′との間で行われる。
<Program processing>
In this modification, the local network 16'providing the printer 14'and the internal mediator 13'is the process executed by the second program 34 of the printer 14 in the above-described embodiment and the modified examples (1) to (3). Equivalent processing is performed by the second program 34'of the internal mediator 13. That is, although illustration and detailed description are omitted, for example, in the same manner as described in Japanese Patent Application Laid-Open No. 2019-179446, steps S14, S22, and S29 in FIGS. The process equivalent to step S35, step S36 to step S41, step S54, step S55, step S61, step S62, step S69 to step S75, step S78 to step S80, step S30, and step S70 is the first step of the internal mediator device 13. 2 Executed under the control of program 34'. Then, processing or information transmission / reception corresponding to the pre-processing or post-processing of each of these procedures is performed between the internal mediator 13 and the printer 14'.

<時刻情報の取得>
そして、本変形例では、内部仲介装置13は、時刻情報を生成する機能、いわゆるリアルタイムクロック等を内部に備えている。そして、この内部仲介装置13の属するローカルネットワーク16′とは異なる別のローカルネットワーク16に属するプリンタ14が、第2プログラム34により、内部仲介装置13に備えられる上記時刻情報を取得して用いる。以下、その処理内容を前述の図7のフローチャートを参照して説明する。
<Acquisition of time information>
Then, in this modification, the internal mediator 13 internally includes a function of generating time information, a so-called real-time clock and the like. Then, the printer 14 belonging to another local network 16 different from the local network 16'to which the internal intermediary device 13 belongs acquires and uses the time information provided in the internal intermediary device 13 by the second program 34. Hereinafter, the processing content will be described with reference to the flowchart of FIG. 7 described above.

すなわち、前述した図4において、プリンタ14の第2プログラム34は、
前述の時刻情報取得フラグFが1であるか否かを判断する(ステップS200)。時刻情報取得フラグFが0であれば(ステップS220:No)、第2プログラム34は、プリンタ14が属するローカルネットワーク16とは異なる別のローカルネットワーク16′に属する内部仲介装置13から時刻情報の取得を図る(ステップS210)。前述と同様、ステップS210が時刻取得手順の一例であり、ステップS210で実行する処理は時刻取得処理の一例である。
That is, in FIG. 4 described above, the second program 34 of the printer 14 is
It is determined whether or not the time information acquisition flag F described above is 1 (step S200). If the time information acquisition flag F is 0 (step S220: No), the second program 34 acquires the time information from the internal intermediary device 13 belonging to another local network 16'that is different from the local network 16 to which the printer 14 belongs. (Step S210). Similar to the above, step S210 is an example of the time acquisition procedure, and the process executed in step S210 is an example of the time acquisition process.

その後、プリンタ14の第2プログラム34は、内部仲介装置13から時刻情報を取得できたか否かを判断する(ステップS220)。前述と同様、ステップS220が判定手順の一例であり、ステップS220で実行する処理が判定処理の一例である。プリンタ14の第2プログラム34は、内部仲介装置13から時刻情報を取得できない間(ステップS220:No)はステップS210を繰り返し、内部仲介装置13から時刻情報を取得したら(ステップS220:Yes)、上記時刻情報取得フラグFを1とする(ステップS230)。 After that, the second program 34 of the printer 14 determines whether or not the time information can be acquired from the internal mediator 13 (step S220). Similar to the above, step S220 is an example of the determination procedure, and the process executed in step S220 is an example of the determination process. The second program 34 of the printer 14 repeats step S210 while the time information cannot be acquired from the internal intermediary device 13 (step S220: No), and when the time information is acquired from the internal intermediary device 13 (step S220: Yes), the above The time information acquisition flag F is set to 1 (step S230).

その後、プリンタ14の第2プログラム34は、前述のHTTPリクエスト及びHTTPレスポンスを用いて、外部仲介装置12との情報送受信を行う(ステップS240)。一方、前述のステップS200において時刻情報取得フラグFが1であった場合は(ステップS200:Yes)、プリンタ14の第2プログラム34は、ステップS210、ステップS220、ステップS230を行うことなく、ステップS240において上記外部仲介装置12との情報送受信を行う。 After that, the second program 34 of the printer 14 transmits and receives information to and from the external mediator 12 using the above-mentioned HTTP request and HTTP response (step S240). On the other hand, when the time information acquisition flag F is 1 in step S200 described above (step S200: Yes), the second program 34 of the printer 14 does not perform steps S210, S220, and S230, and steps S240. Information is transmitted and received to and from the external intermediary device 12.

すなわち、ステップS210で内部仲介装置13から時刻情報を取得できない間はステップS240を実行せず、ステップS210で内部仲介装置13から時刻情報を取得したら(ステップS220:Yes)ステップS240が実行されるとともに、過去に時刻情報が取得済であって時刻情報取得フラグFが1である場合にもステップS240が実行される。これらの処理の流れの結果、ステップS240が送受信手順の一例であり、ステップS240で実行する処理は送受信処理の一例となる。その後、プリンタ14の第2プログラム34は、このフローを終了する。 That is, step S240 is not executed while the time information cannot be acquired from the internal intermediary device 13 in step S210, and step S240 is executed when the time information is acquired from the internal intermediary device 13 in step S210 (step S220: Yes). The step S240 is also executed when the time information has been acquired in the past and the time information acquisition flag F is 1. As a result of these processing flows, step S240 is an example of a transmission / reception procedure, and the processing executed in step S240 is an example of transmission / reception processing. After that, the second program 34 of the printer 14 ends this flow.

<変形例の効果>
以上説明したように、本変形例においては、外部仲介装置12と通信可能で、かつ時刻情報を自ら生成可能な内部仲介装置13がローカルネットワーク16′に設けられている。そして、別のローカルネットワーク16に属するプリンタ14′が、内部仲介装置13によって生成された時刻情報を取得して用いる。これにより、プリンタ14′が別途独自に別の外部装置から時刻情報を取得する手法に比べ、ネットワーク全体の通信量を少なくしつつ簡素な制御で時刻情報を取得することができ、外部仲介装置12との円滑な通信を行うことができる。また本変形例においては、前述のNTPサーバ1のように外部機器から取得した時刻情報を用いる場合に比べ、セキュリティをより高めることができる効果もある。
<Effect of modified example>
As described above, in the present modification, the internal intermediary device 13 that can communicate with the external intermediary device 12 and can generate the time information by itself is provided in the local network 16'. Then, the printer 14'belonging to another local network 16 acquires and uses the time information generated by the internal mediator 13. As a result, the printer 14'can acquire the time information with simple control while reducing the communication volume of the entire network, as compared with the method in which the printer 14'acquires the time information from another external device independently. Can communicate smoothly with. Further, in this modified example, there is an effect that the security can be further enhanced as compared with the case where the time information acquired from the external device is used as in the above-mentioned NTP server 1.

なお、上記に代えて、プリンタ14は、ローカルネットワーク16′内のプリンタ14′が内部仲介装置13から取得済の時刻情報を、当該プリンタ14′からローカルネットワーク16′,16を介し取得して、用いるようにしてもよい。この場合、プリンタ14′が第2印刷装置の一例である。この場合も、プリンタ14が別途独自に別の外部装置から時刻情報を取得する手法に比べ、ネットワーク全体の通信量を少なくしつつ簡素な制御で時刻情報を取得することができ、上記外部仲介装置12との円滑な通信を行うことができる。 Instead of the above, the printer 14 acquires the time information acquired from the internal mediator 13 by the printer 14'in the local network 16'from the printer 14'via the local networks 16'and 16. You may use it. In this case, the printer 14'is an example of the second printing apparatus. Also in this case, as compared with the method in which the printer 14 independently acquires the time information from another external device, the time information can be acquired by simple control while reducing the communication volume of the entire network, and the above-mentioned external intermediary device can be acquired. Smooth communication with 12 can be performed.

(5)その他
なお、以上においては、外部仲介装置12に対してHTTPリクエストが送信され、外部仲介装置12がHTTPレスポンスを返信することにより、外部仲介装置12からファイアウォールを通じて第2指示コマンドが送信される例を説明した。しかしながら、外部仲介装置12からファイアウォールを通じて第2指示コマンドを送信可能であれば、他の通信プロトコルが用いられてもよい。例えば、外部仲介装置12とプリンタ14又は内部仲介装置13との間で、XMPPoverBOSHにしたがった通信プロトコルが用いられてもよい。外部仲介装置12からプリンタ14又は内部仲介装置13へ、XMPPoverBOSHのセッション開始リクエストを送信し、外部仲介装置12がセッション開始レスポンスを返信することで成立したセッション内の通信により、外部仲介装置12からプリンタ14又は内部仲介装置13へファイアウォールを通じて第2指示コマンドを送信することができる。
(5) Others In the above, the HTTP request is transmitted to the external intermediary device 12, and the external intermediary device 12 returns the HTTP response, so that the external intermediary device 12 transmits the second instruction command 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 through the firewall. For example, a communication protocol according to XMPPoverBOSH may be used between the external mediator 12 and the printer 14 or the internal mediator 13. The external intermediary device 12 transmits the session start request of XMPPoverBOSH to the printer 14 or the internal intermediary device 13, and the external intermediary device 12 returns the session start response. The second instruction command can be transmitted to 14 or the internal mediator 13 through the firewall.

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

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

また、以上既に述べた以外にも、上記実施形態や各変形例による手法を適宜組み合わせて利用しても良い。 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 外部仲介装置
13 内部仲介装置
14 プリンタ(印刷装置、第1印刷装置、電子機器の一例)
14′ プリンタ(第2印刷装置の一例)
21 CPU
24 第1プログラム
34 第2プログラム
34′ 第2プログラム
44 制御プログラム
41 CPU(制御手段、演算手段の一例)
51 印刷エンジン(印刷手段の一例)
10 Management system 11 Management server 12 External mediator 13 Internal mediator 14 Printer (example of printing device, first printing device, electronic device)
14'Printer (an example of a second printing device)
21 CPU
24 1st program 34 2nd program 34'2nd program 44 Control program 41 CPU (example of control means and calculation means)
51 Printing engine (an example of printing means)

Claims (10)

被印刷媒体に印刷を行う印刷手段と、
制御手段と、
を有し、
インターネットを通じて管理サーバと通信する外部仲介装置と通信する印刷装置であって、
前記制御手段は、
暗号化された相互認識通信に必要となる時刻情報の取得を図る時刻取得処理;
前記時刻取得処理で前記時刻情報の取得に成功したか否かを判定する判定処理;
前記判定処理で前記時刻情報の取得に成功したと判定されない場合には前記相互認識通信による前記外部仲介装置との情報送受信を行わず、前記判定処理で前記時刻情報の取得に成功したと判定された場合に前記相互認識通信により前記外部仲介装置と情報送受信を行う、送受信処理;
を実行することを特徴とする印刷装置。
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 the management server via the Internet.
The control means
Time acquisition process to acquire time information required for encrypted mutual recognition communication;
Judgment process for determining whether or not the time information has been successfully acquired in the time acquisition process;
If it is not determined in the determination process that the acquisition of the time information is successful, it is determined that the determination process has succeeded in acquiring the time information without transmitting / receiving information to / from the external intermediary device by the mutual recognition communication. In that case, information is transmitted / received to / from the external intermediary device by the mutual recognition communication.
A printing device characterized by performing.
請求項1記載の印刷装置において、
前記時刻取得処理では、
前記印刷装置外の外部装置からの前記時刻情報の取得を図り、
前記送受信処理では、
前記判定処理で前記外部装置からの前記時刻情報の取得に成功したと判定された場合に、前記外部仲介装置と情報送受信を行う
ことを特徴とする印刷装置。
In the printing apparatus according to claim 1,
In the time acquisition process,
The time information is acquired from an external device outside the printing device, and the time information is acquired.
In the transmission / reception process,
A printing device characterized in that when it is determined in the determination process that the time information has been successfully acquired from the external device, information is transmitted / received to / from the external intermediary device.
請求項2記載の印刷装置において、
前記時刻取得処理では、
前記外部装置として時刻情報配信サーバから前記時刻情報の取得を図り、
前記送受信処理では、
前記判定処理で前記時刻情報配信サーバからの前記時刻情報の取得に成功したと判定された場合に、前記外部仲介装置と情報送受信を行う
ことを特徴とする印刷装置。
In the printing apparatus according to claim 2.
In the time acquisition process,
As the external device, the time information is acquired from the time information distribution server, and the time information is acquired.
In the transmission / reception process,
A printing device characterized in that when it is determined in the determination process that the time information has been successfully acquired from the time information distribution server, information is transmitted / received to / from the external intermediary device.
請求項2記載の印刷装置において、
前記外部仲介装置に対し通信する、前記印刷装置とは異なる第1印刷装置に対し、ローカルネットワークを通じて通信可能に構成されており、
前記時刻取得処理では、
前記外部装置として前記第1印刷装置から前記時刻情報の取得を図り、
前記送受信処理では、
前記判定処理で前記第1印刷装置からの前記時刻情報の取得に成功したと判定された場合に、前記外部仲介装置と情報送受信を行う
ことを特徴とする印刷装置。
In the printing apparatus according to claim 2.
It is configured to be able to communicate with a first printing device different from the printing device, which communicates with the external intermediary device, through a local network.
In the time acquisition process,
As the external device, the time information is acquired from the first printing device, and the time information is acquired.
In the transmission / reception process,
A printing apparatus characterized in that when it is determined in the determination process that the time information has been successfully acquired from the first printing apparatus, information is transmitted / received to / from the external intermediary apparatus.
請求項2記載の印刷装置において、
前記外部仲介装置と通信する内部仲介装置に対し、ローカルネットワークを通じて通信可能に構成されており、
前記時刻取得処理では、
前記外部装置として前記内部仲介装置から前記時刻情報の取得を図り、
前記送受信処理では、
前記判定処理で前記内部仲介装置からの前記時刻情報の取得に成功したと判定された場合に、前記外部仲介装置と情報送受信を行う
ことを特徴とする印刷装置。
In the printing apparatus according to claim 2.
The internal intermediary device that communicates with the external intermediary device is configured to be able to communicate through the local network.
In the time acquisition process,
As the external device, the time information is acquired from the internal mediator device, and the time information is acquired.
In the transmission / reception process,
A printing device characterized in that when it is determined in the determination process that the time information has been successfully acquired from the internal mediation device, information is transmitted / received to / from the external mediation device.
請求項2記載の印刷装置において、
前記外部仲介装置と通信する内部仲介装置に対しローカルネットワークを通じて通信する、前記印刷装置とは異なる第2印刷装置に対し、ローカルネットワークを通じて通信可能に構成されており、
前記時刻取得処理では、
前記外部装置として前記第2印刷装置から前記時刻情報の取得を図り、
前記送受信処理では、
前記判定処理で前記第2印刷装置からの前記時刻情報の取得に成功したと判定された場合に、前記外部仲介装置と情報送受信を行う
ことを特徴とする印刷装置。
In the printing apparatus according to claim 2.
A second printing device different from the printing device, which communicates with the internal mediator that communicates with the external mediator through the local network, is configured to be able to communicate through the local network.
In the time acquisition process,
As the external device, the time information is acquired from the second printing device, and the time information is acquired.
In the transmission / reception process,
A printing apparatus characterized in that when it is determined in the determination process that the time information has been successfully acquired from the second printing apparatus, information is transmitted / received to / from the external intermediary apparatus.
請求項1記載の印刷装置において、
操作手段をさらに有し、
前記時刻取得処理では、
前記操作手段を介し入力された時刻に対応する前記時刻情報の取得を図り、
前記送受信処理では、
前記判定処理で前記操作手段を介し入力された前記時刻に対応する前記時刻情報の取得に成功したと判定された場合に、前記外部仲介装置と情報送受信を行う
ことを特徴とする印刷装置。
In the printing apparatus according to claim 1,
Has more operating means
In the time acquisition process,
The time information corresponding to the time input via the operation means is acquired, and the time information is acquired.
In the transmission / reception process,
A printing apparatus characterized in that when it is determined in the determination process that the acquisition of the time information corresponding to the time input via the operating means has been successful, information is transmitted / received to / from the external intermediary device.
請求項1乃至請求項7のいずれか1項記載の印刷装置において、
前記制御手段は、
前記印刷装置の電源投入がなされる都度、前記時刻取得処理を実行する
ことを特徴とする印刷装置。
In the printing apparatus according to any one of claims 1 to 7.
The control means
A printing device characterized in that the time acquisition process is executed each time the power of the printing device is turned on.
請求項8記載の印刷装置において、
前記制御手段は、
前記印刷手段を含む複数の動作機構のうち特定の動作機構が非動作状態となった後に基準時間を経過したことを契機に、前記印刷装置へ供給される電源電圧を供給遮断状態に切り替える切替処理;
前記切替処理による前記供給遮断状態への切り替え後に、所定の復帰操作に基づき前記電源電圧を電源供給状態に復帰させる復帰処理;
を実行するとともに、
前記復帰処理により電源投入がなされた場合にも、前記時刻取得処理を実行する
ことを特徴とする印刷装置。
In the printing apparatus according to claim 8.
The control means
A switching process for switching the power supply voltage supplied to the printing apparatus to a supply cutoff state when a reference time elapses after a specific operating mechanism among a plurality of operating mechanisms including the printing means is in a non-operating state. ;
After switching to the supply cutoff state by the switching process, the return process for returning the power supply voltage to the power supply state based on a predetermined return operation;
As well as
A printing apparatus characterized in that the time acquisition process is executed even when the power is turned on by the return process.
インターネットを通じて管理サーバと通信する外部仲介装置と通信する電子機器に備えられた演算手段に対し、
暗号化された相互認識通信に必要となる時刻情報の取得を図る時刻取得手順と、
前記時刻取得手順で前記時刻情報の取得に成功したか否かを判定する判定手順と、
前記判定手順で前記時刻情報の取得に成功したと判定されない場合には前記相互認識通信による前記外部仲介装置との情報送受信を行わず、前記判定手順で前記時刻情報の取得に成功したと判定された場合に前記相互認識通信により前記外部仲介装置と情報送受信を行う、送受信手順と、
と、
を実行させるための、通信処理プログラム。
For computing means provided in electronic devices that communicate with external intermediaries that communicate with the management server via the Internet
The time acquisition procedure for acquiring the time information required for encrypted mutual recognition communication, and
A determination procedure for determining whether or not the time information has been successfully acquired in the time acquisition procedure, and a determination procedure for determining whether or not the acquisition of the time information has been successful.
If it is not determined in the determination procedure that the acquisition of the time information is successful, it is determined that the acquisition of the time information is successful in the determination procedure without transmitting / receiving information to / from the external intermediary device by the mutual recognition communication. In this case, the transmission / reception procedure for transmitting / receiving information to / from the external intermediary device by the mutual recognition communication,
When,
Communication processing program to execute.
JP2020001725A 2020-01-08 2020-01-08 Printing equipment and communication processing program Pending JP2021109356A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2020001725A JP2021109356A (en) 2020-01-08 2020-01-08 Printing equipment and communication processing program
US17/144,071 US11435963B2 (en) 2020-01-08 2021-01-07 Printing apparatus configured for encrypted mutual recognition communication and non-transitory computer-readable storage medium configured for encrypted mutual recognition communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020001725A JP2021109356A (en) 2020-01-08 2020-01-08 Printing equipment and communication processing program

Publications (1)

Publication Number Publication Date
JP2021109356A true JP2021109356A (en) 2021-08-02

Family

ID=76655192

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020001725A Pending JP2021109356A (en) 2020-01-08 2020-01-08 Printing equipment and communication processing program

Country Status (2)

Country Link
US (1) US11435963B2 (en)
JP (1) JP2021109356A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7700603B2 (en) * 2021-09-24 2025-07-01 富士フイルムビジネスイノベーション株式会社 Information processing device and program

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005165179A (en) * 2003-12-05 2005-06-23 Yamaha Corp Electronic music device and program
JP2006155367A (en) * 2004-11-30 2006-06-15 Canon Inc Image forming apparatus, data processing method, image forming method, and program
JP2012104978A (en) * 2010-11-08 2012-05-31 Brother Ind Ltd Communication apparatus system, communication apparatus, repeating apparatus, control program of repeating apparatus, and control method of repeating apparatus
JP2014079956A (en) * 2012-10-17 2014-05-08 Canon Inc Information processing apparatus, control method of the same, and program
JP2014127840A (en) * 2012-12-26 2014-07-07 Ricoh Co Ltd Proxy device, remote management system, and address acquisition method
JP2016001866A (en) * 2014-05-19 2016-01-07 セイコーエプソン株式会社 Communication device, control method of the same and printer
JP2017156180A (en) * 2016-03-01 2017-09-07 カシオ計算機株式会社 Communication apparatus, communication method, communication system, electronic timepiece, and program

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002215361A (en) * 2001-01-16 2002-08-02 Canon Inc Information processor, printing management, device, system and method, storage medium storing computer- readable program, and printing control program
JP2005085221A (en) 2003-09-11 2005-03-31 Canon Inc Communication apparatus and its control method
JP2005262817A (en) 2004-03-22 2005-09-29 Seiko Epson Corp Devices that communicate after time synchronization
JP4537133B2 (en) 2004-07-09 2010-09-01 キヤノン株式会社 Printer, control method, program, and storage medium
JP6056795B2 (en) * 2014-03-25 2017-01-11 コニカミノルタ株式会社 Image processing system, gateway device, gateway device control method, gateway device control program
JP2018202842A (en) 2017-06-09 2018-12-27 キヤノン株式会社 Information processing device, information processing method and program
JP7081273B2 (en) 2018-03-30 2022-06-07 ブラザー工業株式会社 Programs and communication systems

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005165179A (en) * 2003-12-05 2005-06-23 Yamaha Corp Electronic music device and program
JP2006155367A (en) * 2004-11-30 2006-06-15 Canon Inc Image forming apparatus, data processing method, image forming method, and program
JP2012104978A (en) * 2010-11-08 2012-05-31 Brother Ind Ltd Communication apparatus system, communication apparatus, repeating apparatus, control program of repeating apparatus, and control method of repeating apparatus
JP2014079956A (en) * 2012-10-17 2014-05-08 Canon Inc Information processing apparatus, control method of the same, and program
JP2014127840A (en) * 2012-12-26 2014-07-07 Ricoh Co Ltd Proxy device, remote management system, and address acquisition method
JP2016001866A (en) * 2014-05-19 2016-01-07 セイコーエプソン株式会社 Communication device, control method of the same and printer
JP2017156180A (en) * 2016-03-01 2017-09-07 カシオ計算機株式会社 Communication apparatus, communication method, communication system, electronic timepiece, and program

Also Published As

Publication number Publication date
US11435963B2 (en) 2022-09-06
US20210208826A1 (en) 2021-07-08

Similar Documents

Publication Publication Date Title
JP6177020B2 (en) Authentication system, control method therefor, service providing apparatus and computer program
JP7081273B2 (en) Programs and communication systems
US12333195B2 (en) Server, control method, storage medium, and printing system
JP5234098B2 (en) Print system, image forming apparatus, image forming method, and image forming program
US12164818B2 (en) Printing apparatus and printing system for preventing undesired cancellation of printing
JP7172108B2 (en) Program and communication system
US8619288B2 (en) Communication apparatus, image processing apparatus, image processing system, method for controlling the same, and storage medium storing program
JP7131044B2 (en) Program and communication system
JP2021109356A (en) Printing equipment and communication processing program
US10917383B2 (en) Management system including first and second information-processing apparatuses connected to each other via firewall
US9736329B2 (en) Method that performs from scanning to storing scan data using scan job ticket
JP2004188943A (en) Printing system and printing control method
US11360722B2 (en) Printing apparatus and non-transitory computer-readable storage medium
JP2021120197A (en) Printer and communication processing program
JP2021111065A (en) Printing equipment and communication processing program
US11461062B2 (en) Printing device and server to receive an e-mail including an attached print data and determine whether sender e-mail address is stored in a table in which a user ID and e-mail address are registered in association with each other
JP2021109355A (en) Printing equipment
JP2013106275A (en) Image forming device, control method therefor, and program
JP2002297409A (en) Data communication program, computer-readable recording medium with data communication program recorded thereon, data communication device and data communication method
JP5448516B2 (en) Authentication system, authentication method, and information processing apparatus
JP2002297410A (en) Data communication program, computer-readable recording medium with data communication program recorded thereon, data communication device and data communication method
JP2016092757A (en) Image formation system, image processing device, image formation device, control program for image processing device, and control program for image formation device
JP2017128135A (en) Image forming apparatus and control program
JP2018097803A (en) Server, system, and printer
JP2016157221A (en) Printing system

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

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20221216

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20230704

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20230825

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20240301