JP2021056597A - Communication system, computer program for terminal device, and terminal device - Google Patents

Communication system, computer program for terminal device, and terminal device Download PDF

Info

Publication number
JP2021056597A
JP2021056597A JP2019176933A JP2019176933A JP2021056597A JP 2021056597 A JP2021056597 A JP 2021056597A JP 2019176933 A JP2019176933 A JP 2019176933A JP 2019176933 A JP2019176933 A JP 2019176933A JP 2021056597 A JP2021056597 A JP 2021056597A
Authority
JP
Japan
Prior art keywords
server
printer
usage information
time
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2019176933A
Other languages
Japanese (ja)
Other versions
JP7327048B2 (en
Inventor
健史 長▲崎▼
Kenji Nagasaki
健史 長▲崎▼
浩和 番野
Hirokazu Banno
浩和 番野
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 JP2019176933A priority Critical patent/JP7327048B2/en
Publication of JP2021056597A publication Critical patent/JP2021056597A/en
Application granted granted Critical
Publication of JP7327048B2 publication Critical patent/JP7327048B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Ink Jet (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)
  • Facsimiles In General (AREA)

Abstract

To provide a technique which enables a server to acquire use information being information about the usage of expendable supplied for printing even when the use information is not transmitted from a printer to the server.SOLUTION: A terminal device comprises: a first receiving unit which receives present use information from a printer; a second receiving unit which receives the latest use information and date/time information from the server; a determination unit which uses the use information received from the printer, the use information received from the server, and the date/time information received from the server to determine whether the use information is transmitted from the printer to the server each time a first prescribed time passes; and a first transmitting unit which transmits the use information received from the printer to the server in response to determination that the use information is not transmitted from the printer to the server but does not transmit the use information received from the printer to the server in response to determination that the use information is transmitted from the printer to the server.SELECTED DRAWING: Figure 11

Description

本明細書では、端末装置がサーバに使用情報を送信する技術を開示する。 This specification discloses a technique in which a terminal device transmits usage information to a server.

特許文献1には、プリンタと情報管理サーバと配送管理サーバとを備える通信システムが開示されている。プリンタは、定期的に、カートリッジのインク残量に関する情報を情報管理サーバに送信する。情報管理サーバは、プリンタからインク残量を受信すると、受信済みのインク残量が閾値以下であるのか否かを判断する。情報管理サーバは、受信済みのインク残量が閾値以下であると判断する場合に、発注指令を配送管理サーバに送信する。配送管理サーバは、情報管理サーバから発注指令を受信すると、カートリッジの発注処理を実行する。 Patent Document 1 discloses a communication system including a printer, an information management server, and a delivery management server. The printer periodically sends information about the ink level of the cartridge to the information management server. When the information management server receives the ink remaining amount from the printer, it determines whether or not the received ink remaining amount is equal to or less than the threshold value. When the information management server determines that the received ink remaining amount is equal to or less than the threshold value, the information management server transmits an ordering command to the delivery management server. When the delivery management server receives the ordering command from the information management server, the delivery management server executes the cartridge ordering process.

特開2016−194771号公報Japanese Unexamined Patent Publication No. 2016-194771 特開2013−67137号公報Japanese Unexamined Patent Publication No. 2013-67137 特開2012−252452号公報Japanese Unexamined Patent Publication No. 2012-252452

特許文献1の通信システムでは、プリンタから情報管理サーバへのインク残量に関する情報の送信が失敗する場合について何ら考慮されていない。 In the communication system of Patent Document 1, no consideration is given to the case where the transmission of information regarding the remaining amount of ink from the printer to the information management server fails.

本明細書では、印刷のための消耗品の使用量に関する情報である使用情報がプリンタからサーバに送信されていない場合でも、サーバが使用情報を取得可能である技術を提供する。 The present specification provides a technique in which a server can acquire usage information even when the usage information, which is information on the usage amount of consumables for printing, is not transmitted from the printer to the server.

本明細書によって開示される通信システムは、プリンタと、サーバと、端末装置と、を備えてもよい。前記プリンタは、第1の所定時間が経過する毎に、印刷のための消耗品の使用量に関する現在の情報である使用情報を前記サーバに送信することを試行するプリンタ送信部を備えてもよい。前記サーバは、メモリと、前記プリンタから前記使用情報が受信される毎に、前記使用情報と、前記使用情報を受信した日時に関係する日時情報と、を関連付けて前記メモリに記憶する第1の記憶制御部と、を備えてもよい。前記端末装置は、前記プリンタから現在の前記使用情報を受信する第1の端末受信部と、前記サーバから、前記サーバが前記プリンタから受信した1個以上の前記使用情報のうちの最新の前記使用情報と、前記最新の使用情報に関連付けられている前記日時情報と、を受信する第2の端末受信部と、前記プリンタから受信された前記使用情報と、前記サーバから受信された前記使用情報と、前記サーバから受信された前記日時情報と、を利用して、前記使用情報が前記プリンタから前記サーバに送信されているのか否かを判断する端末判断部と、前記使用情報が前記プリンタから前記サーバに送信されていないと判断される場合に、前記プリンタから受信された前記使用情報を前記サーバに送信する端末送信部であって、前記使用情報が前記プリンタから前記サーバに送信されていると判断される場合に、前記プリンタから受信された前記使用情報は前記サーバに送信されない、前記端末送信部と、を備えてもよい。 The communication system disclosed herein may include a printer, a server, and a terminal device. The printer may include a printer transmitter that attempts to transmit usage information, which is current information about the usage of consumables for printing, to the server each time a first predetermined time elapses. .. The server first stores the usage information in the memory in association with the memory and the date and time information related to the date and time when the usage information is received each time the usage information is received from the printer. A storage control unit may be provided. The terminal device includes a first terminal receiving unit that receives the current usage information from the printer, and the latest usage of one or more usage information that the server receives from the server from the server. A second terminal receiver that receives information, the date and time information associated with the latest usage information, the usage information received from the printer, and the usage information received from the server. A terminal determination unit that determines whether or not the usage information is transmitted from the printer to the server by using the date and time information received from the server, and the usage information from the printer. When it is determined that the usage information has not been transmitted to the server, the terminal transmission unit transmits the usage information received from the printer to the server, and the usage information is transmitted from the printer to the server. When it is determined, the terminal transmission unit, which does not transmit the usage information received from the printer to the server, may be provided.

上記の構成によれば、端末装置は、プリンタから現在の使用情報を受信し、サーバから最新の使用情報と日時情報とを受信する。そして、端末装置は、プリンタから受信された使用情報とサーバから受信された使用情報とサーバから受信された日時情報とを利用して、使用情報がプリンタからサーバに送信されているのか否かを判断する。これにより、端末装置は、プリンタからサーバへの使用情報の送信が第1の所定時間が経過する毎に適切に実行されているのか否かを判断することができる。そして、端末装置は、使用情報がプリンタからサーバに送信されていないと判断する場合に、プリンタから受信された使用情報をサーバに送信する。従って、使用情報がプリンタからサーバに送信されていない場合でも、サーバは、使用情報を取得することができる。 According to the above configuration, the terminal device receives the current usage information from the printer, and receives the latest usage information and the date and time information from the server. Then, the terminal device uses the usage information received from the printer, the usage information received from the server, and the date and time information received from the server to determine whether or not the usage information is transmitted from the printer to the server. to decide. Thereby, the terminal device can determine whether or not the transmission of the usage information from the printer to the server is properly executed every time the first predetermined time elapses. Then, when the terminal device determines that the usage information has not been transmitted from the printer to the server, the terminal device transmits the usage information received from the printer to the server. Therefore, the server can acquire the usage information even when the usage information is not transmitted from the printer to the server.

また、本明細書では、端末装置のためのコンピュータプログラムが開示される。 前記端末装置は、プリンタ及びサーバのそれぞれと通信可能であり、前記プリンタは、第1の所定時間が経過する毎に、印刷のための消耗品の使用量に関する現在の情報である使用情報を前記サーバに送信することを試行してもよい。前記サーバは、前記プリンタから前記使用情報が受信される毎に、前記使用情報と、前記使用情報を受信した日時に関係する日時情報と、を関連付けて記憶してもよい。前記コンピュータプログラムは、前記端末装置のコンピュータを、以下の各部、即ち、前記プリンタから現在の前記使用情報を受信する第1の受信部と、前記サーバから、前記サーバが前記プリンタから受信した1個以上の前記使用情報のうちの最新の前記使用情報と、前記最新の使用情報に関連付けられている前記日時情報と、を受信する第2の受信部と、前記プリンタから受信された前記使用情報と、前記サーバから受信された前記使用情報と、前記サーバから受信された前記日時情報と、を利用して前記使用情報が前記プリンタから前記サーバに送信されているのか否かを判断する判断部と、前記使用情報が前記プリンタから前記サーバに送信されていないと判断される場合に、前記プリンタから受信された前記使用情報を前記サーバに送信する第1の送信部であって、前記使用情報が前記プリンタから前記サーバに送信されていると判断される場合に、前記プリンタから受信された前記使用情報は前記サーバに送信されない、前記第1の送信部と、として機能させてもよい。 Also disclosed herein are computer programs for terminal devices. The terminal device can communicate with each of the printer and the server, and each time the first predetermined time elapses, the printer obtains usage information which is current information regarding the usage amount of consumables for printing. You may try to send it to the server. Each time the usage information is received from the printer, the server may store the usage information in association with the date and time information related to the date and time when the usage information is received. The computer program uses the computer of the terminal device as the following units, that is, a first receiving unit that receives the current usage information from the printer, and one that the server receives from the server. A second receiving unit that receives the latest usage information among the above usage information, the date and time information associated with the latest usage information, and the usage information received from the printer. , A determination unit that determines whether or not the usage information is transmitted from the printer to the server by using the usage information received from the server and the date and time information received from the server. When it is determined that the usage information has not been transmitted from the printer to the server, the usage information is a first transmission unit that transmits the usage information received from the printer to the server. When it is determined that the printer has transmitted the information to the server, the usage information received from the printer may function as the first transmission unit that is not transmitted to the server.

上記の構成によれば、端末装置は、プリンタから現在の使用情報を受信し、サーバから最新の使用情報と日時情報とを受信する。そして、端末装置は、プリンタから受信された使用情報とサーバから受信された使用情報とサーバから受信された日時情報とを利用して、使用情報がプリンタからサーバに送信されているのか否かを判断する。これにより、端末装置は、プリンタからサーバへの使用情報の送信が第1の所定時間が経過する毎に適切に実行されているのか否かを判断することができる。そして、端末装置は、使用情報がプリンタからサーバに送信されていないと判断する場合に、プリンタから受信された使用情報をサーバに送信する。従って、使用情報がプリンタからサーバに送信されていない場合でも、サーバは、使用情報を取得することができる。 According to the above configuration, the terminal device receives the current usage information from the printer, and receives the latest usage information and the date and time information from the server. Then, the terminal device uses the usage information received from the printer, the usage information received from the server, and the date and time information received from the server to determine whether or not the usage information is transmitted from the printer to the server. to decide. Thereby, the terminal device can determine whether or not the transmission of the usage information from the printer to the server is properly executed every time the first predetermined time elapses. Then, when the terminal device determines that the usage information has not been transmitted from the printer to the server, the terminal device transmits the usage information received from the printer to the server. Therefore, the server can acquire the usage information even when the usage information is not transmitted from the printer to the server.

上記のコンピュータプログラムを格納するコンピュータ読取可能記録媒体、及び、端末装置そのものも、新規で有用である。 A computer-readable recording medium for storing the above-mentioned computer program and the terminal device itself are also new and useful.

通信システムの構成を示す。The configuration of the communication system is shown. 各テーブルを示す。Each table is shown. 登録プロセスのシーケンス図を示す。The sequence diagram of the registration process is shown. 図3の続きを示す。The continuation of FIG. 3 is shown. プリンタから管理サーバへの状態通知の送信が成功するケースAのシーケンス図を示す。A sequence diagram of Case A in which the status notification is successfully transmitted from the printer to the management server is shown. 図5の続きを示す。The continuation of FIG. 5 is shown. プリンタから管理サーバへの状態通知の送信が失敗するケースBのシーケンス図を示す。The sequence diagram of the case B in which the transmission of the status notification from the printer to the management server fails is shown. 図7の続きを示す。The continuation of FIG. 7 is shown. プリンタから管理サーバへの状態通知の送信が失敗するケースCのシーケンス図を示す。The sequence diagram of the case C where the transmission of the status notification from the printer to the management server fails is shown. 図9の続きを示す。The continuation of FIG. 9 is shown. 端末装置が実行する判断処理のフローチャートを示す。The flowchart of the judgment process executed by the terminal device is shown.

(実施例)
(通信システム2の構成;図1)
図1に示されるように、通信システム2は、プリンタ10と、端末装置100と、管理サーバ(以下では、単に「サーバ」と記載する)200と、を備える。プリンタ10と端末装置100は、LAN(Local Area Networkの略)4に接続されている。LAN4は、インターネット6に接続されている。サーバ200は、インターネット6を介して、各装置10、100と通信可能である。
(Example)
(Configuration of communication system 2; FIG. 1)
As shown in FIG. 1, the communication system 2 includes a printer 10, a terminal device 100, and a management server (hereinafter, simply referred to as "server") 200. The printer 10 and the terminal device 100 are connected to a LAN (abbreviation of Local Area Network) 4. LAN 4 is connected to the Internet 6. The server 200 can communicate with the devices 10 and 100 via the Internet 6.

(プリンタ10の構成)
プリンタ10は、印刷機能を実行可能な周辺装置(即ちPC等の周辺装置)である。なお、プリンタ10は、印刷機能に加えて、スキャン機能、FAX機能等を実行可能な多機能機であってもよい。プリンタ10は、操作部12と、表示部14と、通信インターフェース(以下ではインターフェースを「I/F」と記載する)16と、印刷実行部20と、制御部30と、を備える。プリンタ10には、シリアル番号SN1が割当てられている。シリアル番号は、複数個のプリンタが製造される際に、各プリンタに割り当てられるユニークな文字列である。
(Configuration of printer 10)
The printer 10 is a peripheral device (that is, a peripheral device such as a PC) capable of executing a printing function. The printer 10 may be a multifunctional machine capable of executing a scanning function, a fax function, and the like in addition to the printing function. The printer 10 includes an operation unit 12, a display unit 14, a communication interface (hereinafter, the interface is referred to as “I / F”) 16, a print execution unit 20, and a control unit 30. A serial number SN1 is assigned to the printer 10. The serial number is a unique character string assigned to each printer when a plurality of printers are manufactured.

操作部12は、複数のキーを備える。ユーザは、操作部12を操作することによって、様々な指示をプリンタ10に入力することができる。表示部14は、様々な情報を表示するためのディスプレイである。通信I/F16は、LAN4に接続されている。通信I/F16は、LAN4を介して、インターネット6に接続されている。通信I/F16は、無線I/Fであってもよいし、有線I/Fであってもよい。 The operation unit 12 includes a plurality of keys. The user can input various instructions to the printer 10 by operating the operation unit 12. The display unit 14 is a display for displaying various information. The communication I / F 16 is connected to the LAN 4. The communication I / F 16 is connected to the Internet 6 via the LAN 4. The communication I / F 16 may be a wireless I / F or a wired I / F.

印刷実行部20は、インクジェット方式の印刷機構である。印刷実行部20には、インクを収容するカートリッジ20aが装着される。印刷実行部20は、カートリッジ20a内のインクを利用して、印刷を実行する。 The print execution unit 20 is an inkjet printing mechanism. A cartridge 20a for accommodating ink is mounted on the print execution unit 20. The print execution unit 20 executes printing by using the ink in the cartridge 20a.

制御部30は、CPU32とメモリ34とを備える。CPU32は、メモリ34に記憶されているプログラム36に従って、様々な処理を実行する。メモリ34は、揮発性メモリ、不揮発性メモリ等によって構成される。メモリ34は、残量情報RQnと、残量情報RQpと、送信日時情報STと、を記憶する。残量情報RQnは、印刷実行部20に装着されているカートリッジ20aの現在の残量を示す。プリンタ10は、プリンタ10のユーザが、サーバ200によって提供される発送サービスを受けるために、定期的に、残量情報RQnをサーバ200に送信する。残量情報RQpは、サーバ200に前回送信された残量情報を示す情報である。送信日時情報STは、残量情報がサーバ200に前回送信された日時を示す情報である。CPU32は、印刷機能を実行する際に、カートリッジ20a内のインクの使用量を算出し、残量情報RQnから算出済みの使用量を減算して、残量情報RQnを更新する。また、CPU32は、印刷実行部20に新品のカートリッジ20aが装着されると、残量情報RQnを「100」に更新する。 The control unit 30 includes a CPU 32 and a memory 34. The CPU 32 executes various processes according to the program 36 stored in the memory 34. The memory 34 is composed of a volatile memory, a non-volatile memory, and the like. The memory 34 stores the remaining amount information RQn, the remaining amount information RQp, and the transmission date / time information ST. The remaining amount information RQn indicates the current remaining amount of the cartridge 20a mounted on the print execution unit 20. The printer 10 periodically transmits the remaining amount information RQn to the server 200 in order for the user of the printer 10 to receive the shipping service provided by the server 200. The remaining amount information RQp is information indicating the remaining amount information previously transmitted to the server 200. The transmission date / time information ST is information indicating the date and time when the remaining amount information was last transmitted to the server 200. When executing the printing function, the CPU 32 calculates the amount of ink used in the cartridge 20a, subtracts the calculated amount of use from the remaining amount information RQn, and updates the remaining amount information RQn. Further, when a new cartridge 20a is attached to the print execution unit 20, the CPU 32 updates the remaining amount information RQn to "100".

(端末装置100の構成)
端末装置100は、例えば、携帯電話、スマートフォン、PDA、携帯型音楽再生装置、携帯型動画再生装置等の可搬型の装置である。端末装置100は、操作部112と、表示部114と、通信I/F116と、制御部130と、を備える。
(Configuration of terminal device 100)
The terminal device 100 is, for example, a portable device such as a mobile phone, a smartphone, a PDA, a portable music playback device, or a portable moving image playback device. The terminal device 100 includes an operation unit 112, a display unit 114, a communication I / F 116, and a control unit 130.

操作部112は、複数のキーを備える。ユーザは、操作部112を操作することによって、様々な指示を端末装置100に入力することができる。表示部114は、様々な情報を表示するためのディスプレイである。表示部114は、いわゆるタッチパネル(即ち操作部)としても機能する。通信I/F116は、LAN4に接続されている。通信I/F116は、LAN4を介して、インターネット6に接続されている。 The operation unit 112 includes a plurality of keys. The user can input various instructions to the terminal device 100 by operating the operation unit 112. The display unit 114 is a display for displaying various information. The display unit 114 also functions as a so-called touch panel (that is, an operation unit). The communication I / F 116 is connected to the LAN 4. The communication I / F 116 is connected to the Internet 6 via the LAN 4.

制御部130は、CPU132とメモリ134とを備える。CPU132は、メモリ134に格納されているOS(Operating Systemの略)プログラム136に従って、様々な処理を実行する。OSプログラム136は、端末装置100の種々の基本的な動作を制御するためのプログラムである。また、メモリ134は、サービスアプリ138を格納する。サービスアプリ138は、サーバ200から提供される発送サービスを受けるために利用されるアプリケーションであり、例えば、インターネット上のサーバから端末装置100にインストールされる。メモリ134は、さらに、判断テーブル140を記憶する。 The control unit 130 includes a CPU 132 and a memory 134. The CPU 132 executes various processes according to the OS (abbreviation of Operating System) program 136 stored in the memory 134. The OS program 136 is a program for controlling various basic operations of the terminal device 100. The memory 134 also stores the service application 138. The service application 138 is an application used to receive a shipping service provided by the server 200, and is installed on the terminal device 100 from a server on the Internet, for example. The memory 134 further stores the determination table 140.

(サーバ200の構成)
サーバ200は、プリンタ10のユーザにカートリッジを発送する発送サービスを提供するためのサーバである。サーバ200は、プリンタ10のベンダによってインターネット6上に設置される。なお、変形例では、サーバ200は、当該ベンダとは異なる事業者によってインターネット6上に設置されてもよい。
(Configuration of server 200)
The server 200 is a server for providing a shipping service for shipping cartridges to the user of the printer 10. The server 200 is installed on the Internet 6 by the vendor of the printer 10. In the modified example, the server 200 may be installed on the Internet 6 by a business operator different from the vendor.

サーバ200は、通信I/F216と、制御部230と、を備える。通信I/F216は、インターネット6に接続されている。制御部230は、CPU232と、メモリ234と、を備える。CPU232は、メモリ234に格納されているプログラム236に従って、様々な処理を実行する。メモリ234は、揮発性メモリ、不揮発性メモリ等によって構成される。メモリ234は、さらに、ユーザテーブル238と、デバイステーブル240と、カートリッジテーブル242と、を記憶する。 The server 200 includes a communication I / F 216 and a control unit 230. The communication I / F 216 is connected to the Internet 6. The control unit 230 includes a CPU 232 and a memory 234. The CPU 232 executes various processes according to the program 236 stored in the memory 234. The memory 234 is composed of a volatile memory, a non-volatile memory, and the like. The memory 234 further stores a user table 238, a device table 240, and a cartridge table 242.

(各テーブルの構成;図2)
続いて、図2を参照して、端末装置100内の判断テーブル140、及び、サーバ200内の各テーブル238、240、242の内容を説明する。
(Structure of each table; Fig. 2)
Subsequently, with reference to FIG. 2, the contents of the determination table 140 in the terminal device 100 and the tables 238, 240, and 242 in the server 200 will be described.

端末装置100内の判断テーブル140は、端末装置100にインストールされた直後は空の状態である。判断テーブル140には、1個以上の判断情報が記憶される。各判断情報は、ユーザ名と、シリアル番号と、更新時間情報と、判断時間情報と、判断日時情報と、を含む。ユーザ名は、ユーザがサーバ200にログインするために利用される情報である。更新時間情報は、残量情報RQnがプリンタ10からサーバ200に送信されるタイミングを示す情報である。判断時間情報は、残量情報RQnがプリンタ10からサーバ200に送信されたのか否かを判断するためのタイミングを示す情報である。判断日時情報は、残量情報RQnがプリンタ10からサーバ200に送信されたのか否かを前回判断した日時を示す情報である。 The determination table 140 in the terminal device 100 is empty immediately after being installed in the terminal device 100. One or more determination information is stored in the determination table 140. Each judgment information includes a user name, a serial number, an update time information, a judgment time information, and a judgment date / time information. The user name is information used for the user to log in to the server 200. The update time information is information indicating the timing at which the remaining amount information RQn is transmitted from the printer 10 to the server 200. The determination time information is information indicating the timing for determining whether or not the remaining amount information RQn has been transmitted from the printer 10 to the server 200. The determination date / time information is information indicating the date and time when the last determination was made as to whether or not the remaining amount information RQn was transmitted from the printer 10 to the server 200.

サーバ200内のユーザテーブル238には、1個以上のユーザ情報が記憶される。各ユーザ情報は、ユーザを識別するためのユーザ名(例えばUN)と、パスワード(例えばPW)と、当該ユーザの住所を示す住所情報(例えばAD)と、を含む。また、ユーザテーブル238は、各ユーザ情報と対応付けて、PIN(Personal Identification Numberの略)コード(例えば「1234」)を記憶し得る。 One or more user information is stored in the user table 238 in the server 200. Each user information includes a user name (for example, UN) for identifying the user, a password (for example, PW), and address information (for example, AD) indicating the address of the user. Further, the user table 238 may store a PIN (abbreviation of Personal Identification Number) code (for example, "1234") in association with each user information.

デバイステーブル240には、1個以上のデバイス情報が記憶される。各デバイス情報は、ユーザ名(例えばUN)と、シリアル番号(例えばSN1)と、アクセストークン(例えばAT1)と、を含む。アクセストークンは、プリンタとサーバ200との間の通信に利用される認証情報である。 One or more device information is stored in the device table 240. Each device information includes a user name (eg UN), a serial number (eg SN1), and an access token (eg AT1). The access token is authentication information used for communication between the printer and the server 200.

カートリッジテーブル242には、1個以上のカートリッジ情報が記憶される。各カートリッジ情報は、シリアル番号(例えばSN1)と、当該シリアル番号によって識別されるプリンタに装着可能なカートリッジの型番(例えば「BK01」)と、当該プリンタに現在装着されているカートリッジの残量を示す残量情報と、当該プリンタから残量情報を受信した日時を示す受信日時情報と、を含む。 One or more cartridge information is stored in the cartridge table 242. Each cartridge information indicates a serial number (for example, SN1), a model number of a cartridge that can be mounted on the printer identified by the serial number (for example, "BK01"), and the remaining amount of the cartridge currently mounted on the printer. The remaining amount information and the reception date and time information indicating the date and time when the remaining amount information was received from the printer are included.

(登録プロセス;図3、図4)
続いて、図3、図4を参照して、登録プロセスについて説明する。登録プロセスは、プリンタ10のユーザが発注サービスの提供を受けるために実行されるプロセスである。具体的には、判断情報を端末装置100の判断テーブル140に登録するプロセス、デバイス情報をサーバ200のデバイステーブル240に登録するプロセス、及び、カートリッジ情報をサーバ200のカートリッジテーブル242に登録するプロセスである。なお、以下では、各デバイスの各CPU(例えばプリンタ10のCPU32等)が実行する処理について、理解の容易さの観点から、各CPUを主体として記載せずに、各デバイス(例えばプリンタ10等)を主体として記載する。また、プリンタ10、端末装置100、及び、サーバ200の間で実行される以下の全ての通信は、プリンタ10の通信I/F16、端末装置100の通信I/F116、及び、サーバ200の通信I/F216を介して実行される。従って、以下では、「通信I/F16(又は116、216)を介して」という記載を省略する。
(Registration process; Fig. 3, Fig. 4)
Subsequently, the registration process will be described with reference to FIGS. 3 and 4. The registration process is a process executed for the user of the printer 10 to receive the ordering service. Specifically, in the process of registering the determination information in the determination table 140 of the terminal device 100, the process of registering the device information in the device table 240 of the server 200, and the process of registering the cartridge information in the cartridge table 242 of the server 200. is there. In the following, the processing executed by each CPU of each device (for example, CPU 32 of the printer 10) is not described mainly for each CPU from the viewpoint of easy understanding, and each device (for example, printer 10 etc.) Is described as the main body. Further, all the following communications executed between the printer 10, the terminal device 100, and the server 200 are the communication I / F16 of the printer 10, the communication I / F116 of the terminal device 100, and the communication I of the server 200. It is executed via / F216. Therefore, in the following, the description "via communication I / F16 (or 116, 216)" will be omitted.

図3の初期状態では、サーバ200のユーザテーブル238には、ユーザ名、パスワードPW、住所情報ADを含むユーザ情報が記憶されている。当該ユーザ情報は、例えば、ユーザが端末装置100を利用することによってサーバ200に記憶される。なお、図3では、ユーザテーブル238内の住所情報ADに関する記載を省略している。また、端末装置100には、サービスアプリ138がインストール済みである。 In the initial state of FIG. 3, user information including a user name, password PW, and address information AD is stored in the user table 238 of the server 200. The user information is stored in the server 200, for example, when the user uses the terminal device 100. In FIG. 3, the description regarding the address information AD in the user table 238 is omitted. Further, the service application 138 is already installed in the terminal device 100.

端末装置100は、T10において、サービスアプリ138を起動させるための操作をユーザから受け付けると、T12において、サービスアプリ138を起動させ、T14において、ログイン画面データ要求をサーバ200に送信する。 When the terminal device 100 receives an operation for starting the service application 138 from the user in T10, the terminal device 100 starts the service application 138 in T12 and transmits a login screen data request to the server 200 in T14.

サーバ200は、T14において、端末装置100からログイン画面データ要求を受信すると、T16において、ログイン画面データを端末装置100に送信する。 When the server 200 receives the login screen data request from the terminal device 100 at T14, the server 200 transmits the login screen data to the terminal device 100 at T16.

端末装置100は、T16において、サーバ200からログイン画面データを受信すると、T18において、ログイン画面を表示部114に表示する。そして、端末装置100は、T20において、ユーザ名UN及びパスワードPWの入力操作をユーザから受け付けると、T22において、ユーザ名UN及びパスワードPWを含むログイン要求をサーバ200に送信する。 When the terminal device 100 receives the login screen data from the server 200 at T16, the terminal device 100 displays the login screen on the display unit 114 at T18. Then, when the terminal device 100 receives the input operation of the user name UN and the password PW from the user at T20, the terminal device 100 transmits a login request including the user name UN and the password PW to the server 200 at T22.

サーバ200は、T22において、端末装置100からログイン要求を受信すると、当該ログイン要求に含まれるユーザ名UN及びパスワードPWの組合せがユーザテーブル238に記憶されているので、T24において、認証が成功したと判断する。この場合、サーバ200は、T26において、PINコード「1234」を生成し、ログイン中のユーザ名UNとPINコード「1234」とを対応付けてユーザテーブル238に記憶し、T28において、PINコード「1234」を端末装置100に送信する。 When the server 200 receives the login request from the terminal device 100 in T22, the combination of the user name UN and the password PW included in the login request is stored in the user table 238, so that the authentication is successful in T24. to decide. In this case, the server 200 generates the PIN code "1234" at T26, associates the logged-in user name UN with the PIN code "1234", stores it in the user table 238, and stores the PIN code "1234" at T28. Is transmitted to the terminal device 100.

端末装置100は、T28において、サーバ200からPINコード「1234」を受信すると、T30において、PINコード「1234」を表示部114に表示する。これにより、ユーザは、PINコード「1234」を知ることができる。 When the terminal device 100 receives the PIN code "1234" from the server 200 at T28, the terminal device 100 displays the PIN code "1234" on the display unit 114 at T30. As a result, the user can know the PIN code "1234".

次いで、プリンタ10は、T40において、ユーザからPINコード「1234」の入力を受け付けると、T42において、トークン要求をサーバ200に送信する。トークン要求は、アクセストークンの送信をサーバ200に要求するためのコマンドであり、PINコード「1234」と、プリンタ10のシリアル番号SN1と、を含む。 Next, when the printer 10 receives the input of the PIN code "1234" from the user at T40, the printer 10 transmits a token request to the server 200 at T42. The token request is a command for requesting the server 200 to transmit an access token, and includes a PIN code "1234" and a serial number SN1 of the printer 10.

サーバ200は、T42において、プリンタ10からトークン要求を受信すると、トークン要求に含まれるPINコード「1234」の認証を実行する。本ケースでは、トークン要求に含まれるPINコード「1234」がユーザテーブル238内のPINコード「1234」と一致するので、サーバ200は、T44において、PINコードの認証が成功したと判断する。そして、サーバ200は、T46において、アクセストークンAT1を生成する。サーバ200は、T48において、PINコード「1234」に対応付けられているユーザ名UNと、トークン要求に含まれるシリアル番号SN1と、生成済みのアクセストークンAT1と、を含むデバイス情報をデバイステーブル240に記憶する。 When the server 200 receives the token request from the printer 10 in the T42, the server 200 authenticates the PIN code "1234" included in the token request. In this case, since the PIN code "1234" included in the token request matches the PIN code "1234" in the user table 238, the server 200 determines that the PIN code authentication was successful in the T44. Then, the server 200 generates the access token AT1 at T46. In T48, the server 200 puts device information including the user name UN associated with the PIN code "1234", the serial number SN1 included in the token request, and the generated access token AT1 in the device table 240. Remember.

図4のT50において、サーバ200は、アクセストークンAT1と更新時間情報「12時間」とをプリンタ10に送信する。更新時間情報は、サーバ200の管理者によってメモリ234に予め記憶されている。 In T50 of FIG. 4, the server 200 transmits the access token AT1 and the update time information "12 hours" to the printer 10. The update time information is stored in advance in the memory 234 by the administrator of the server 200.

プリンタ10は、T50において、サーバ200からアクセストークンAT1と更新時間情報「12時間」とを受信すると、T52において、更新時間情報「12時間」をメモリ34に記憶させ、T54において、アクセストークンAT1を利用して、サーバ200とのXMPP接続を確立する。XMPP接続は、いわゆる常時接続であり、プリンタ10の電源が切断されるまで確立され続ける接続である。サーバ200は、XMPP接続を利用すれば、プリンタ10から要求を受信しなくても、プリンタ10が所属するLAN4のファイヤウォールを越えて、プリンタ10に要求を送信することができる。なお、サーバ200からプリンタ10に要求を送信する仕組みは、XMPP接続ではなく、他の手法であってもよい。例えば、プリンタ10とサーバ200との間にHTTPS(Hypertext Transfer Protocol Secureの略)接続が確立されてもよい。 When the printer 10 receives the access token AT1 and the update time information "12 hours" from the server 200 at the T50, the printer 10 stores the update time information "12 hours" in the memory 34 at the T52, and stores the access token AT1 at the T54. It is used to establish an XMPP connection with the server 200. The XMPP connection is a so-called constant connection, which is a connection that continues to be established until the power of the printer 10 is turned off. By using the XMPP connection, the server 200 can send the request to the printer 10 over the firewall of the LAN 4 to which the printer 10 belongs without receiving the request from the printer 10. The mechanism for transmitting the request from the server 200 to the printer 10 may be another method instead of the XMPP connection. For example, an HTTPS (abbreviation of Hypertext Transfer Protocol Secure) connection may be established between the printer 10 and the server 200.

プリンタ10は、サーバ200とのXMPP接続の確立が完了すると、メモリ34内の残量情報RQnを今回送信されるべき残量情報として特定し、T60において、シリアル番号SN1と、特定済みの残量情報「40」と、を含む状態通知をサーバ200に送信する。プリンタ10は、T62において、T60でサーバ200に送信した残量情報「40」を残量情報RQpとして記憶するとともに、現在日時を送信日時情報STとして記憶する。その後、プリンタ10は、T52で記憶したメモリ34内の更新時間情報によって示される更新時間が経過する毎に、残量情報RQnによって示される残量と残量情報RQpによって示される残量とが一致するのか否かを判断し、残量情報RQnによって示される残量と残量情報RQpによって示される残量とが一致しないと判断する場合に、状態通知をサーバ200に送信することを試行する。 When the establishment of the XMPP connection with the server 200 is completed, the printer 10 specifies the remaining amount information RQn in the memory 34 as the remaining amount information to be transmitted this time, and in T60, the serial number SN1 and the specified remaining amount. A status notification including the information "40" is transmitted to the server 200. In T62, the printer 10 stores the remaining amount information "40" transmitted to the server 200 in T60 as the remaining amount information RQp, and stores the current date and time as the transmission date and time information ST. After that, each time the update time indicated by the update time information in the memory 34 stored in T52 elapses, the printer 10 matches the remaining amount indicated by the remaining amount information RQn with the remaining amount indicated by the remaining amount information RQp. When it is determined whether or not to do so and it is determined that the remaining amount indicated by the remaining amount information RQn and the remaining amount indicated by the remaining amount information RQp do not match, an attempt is made to send a status notification to the server 200.

サーバ200は、T60において、プリンタ10から状態通知を受信すると、T64において、状態通知に含まれるシリアル番号SN1に対応付けて、当該シリアル番号SN1によって識別されるプリンタ10に装着可能なカートリッジ20aの型番「BK01」と、状態通知に含まれる残量情報「40」と、状態通知を受信した日時を示す受信日時情報「2019/9/10 12:00」と、をカートリッジテーブル242に記憶する。また、サーバ200は、状態通知に含まれる残量情報によって示される残量「40」が発注閾値(本実施例では、「25」)以下であるのか否かを判断する。発注閾値は、カートリッジ20aの発注が必要か否かを判断するための閾値である。本ケースでは、サーバ200は、T66において、残量情報によって示される残量が発注閾値よりも大きいと判断する。 When the server 200 receives the status notification from the printer 10 in the T60, the server 200 associates the status notification with the serial number SN1 included in the status notification in the T64 and attaches the model number of the cartridge 20a to the printer 10 identified by the serial number SN1. "BK01", the remaining amount information "40" included in the status notification, and the reception date / time information "2019/9/10 12:00" indicating the date and time when the status notification was received are stored in the cartridge table 242. Further, the server 200 determines whether or not the remaining amount "40" indicated by the remaining amount information included in the status notification is equal to or less than the ordering threshold value ("25" in this embodiment). The ordering threshold is a threshold for determining whether or not it is necessary to place an order for the cartridge 20a. In this case, the server 200 determines at T66 that the remaining amount indicated by the remaining amount information is larger than the order threshold value.

次いで、サーバ200は、T70において、デバイス情報のデバイステーブル240への登録、及び、カートリッジ情報のカートリッジテーブル242への登録が完了したことを示す完了通知を端末装置100に送信する。 Next, in T70, the server 200 transmits a completion notification indicating that the registration of the device information in the device table 240 and the registration of the cartridge information in the cartridge table 242 are completed to the terminal device 100.

端末装置100は、T70において、サーバ200から完了通知を受信すると、T72において、ログイン済みのユーザ名UNを含む登録情報要求をサーバ200に送信する。登録情報要求は、当該要求内のユーザ名に対応付けられているシリアル番号と、更新日時情報と、の送信を要求するためのコマンドである。 Upon receiving the completion notification from the server 200 at the T70, the terminal device 100 transmits a registration information request including the logged-in user name UN to the server 200 at the T72. The registration information request is a command for requesting the transmission of the serial number associated with the user name in the request and the update date / time information.

サーバ200は、T72において、端末装置100から登録情報要求を受信すると、デバイステーブル240において、登録情報要求内のユーザ名UNに対応付けられているシリアル番号SN1を特定する。そして、サーバ200は、T74において、特定済みのシリアル番号SN1とメモリ234内の更新時間情報「12時間」とを端末装置100に送信する。 When the server 200 receives the registration information request from the terminal device 100 in the T72, the server 200 identifies the serial number SN1 associated with the user name UN in the registration information request in the device table 240. Then, in T74, the server 200 transmits the specified serial number SN1 and the update time information "12 hours" in the memory 234 to the terminal device 100.

端末装置100は、T74において、サーバ200から、シリアル番号SN1と更新時間情報「12時間」とを受信すると、T76において、ログイン済みのユーザ名UNと、受信済みのシリアル番号SN1と、受信済みの更新時間情報「12時間」と、を対応付けて判断テーブル140に記憶する。次いで、端末装置100は、T80において、判断時間設定画面を表示部114に表示する。判断時間設定画面は、判断時間を入力するための時間入力欄と、OKボタンと、を含む。端末装置100は、T82において、判断時間情報「1時間」の入力、及び、OKボタンの選択を受け付けると、T84において、T76で記憶した各情報に対応付けて、判断時間情報「1時間」を判断テーブル140に記憶する。また、端末装置100は、判断テーブル140において、現在日時を判断日時情報として記憶する。その後、端末装置100は、判断時間情報によって示される判断時間が経過する毎に、プリンタ10からサーバ200に更新時間毎に状態通知が送信されているのか否かを判断するための判断処理(図11参照)を実行する。 When the terminal device 100 receives the serial number SN1 and the update time information "12 hours" from the server 200 at T74, the logged-in user name UN, the received serial number SN1, and the received serial number SN1 are received at T76. The update time information "12 hours" is stored in the determination table 140 in association with each other. Next, the terminal device 100 displays the determination time setting screen on the display unit 114 at T80. The judgment time setting screen includes a time input field for inputting the judgment time and an OK button. When the terminal device 100 receives the input of the determination time information "1 hour" and the selection of the OK button in the T82, the terminal device 100 associates the determination time information "1 hour" with each information stored in the T76 in the T84. It is stored in the determination table 140. Further, the terminal device 100 stores the current date and time as the determination date and time information in the determination table 140. After that, the terminal device 100 determines whether or not the status notification is transmitted from the printer 10 to the server 200 for each update time each time the determination time indicated by the determination time information elapses (FIG. FIG. 11) is executed.

(具体的なケース;図5〜図10)
続いて、図5〜図10を参照して、登録プロセスが完了した後に実現される具体的なケースA〜ケースCについて説明する。なお、図5〜図10では、プリンタ10のメモリ34内の送信日時情報STに関する記載を省略している。また、サーバ200のカートリッジテーブル242内のカートリッジ情報のうち、シリアル番号、型番に関する記載を省略している。また、端末装置100の判断テーブル140内の判断情報のうち、ユーザ名、シリアル番号、更新時間情報、及び、判断時間情報に関する記載を省略している。
(Specific case; FIGS. 5 to 10)
Subsequently, specific cases A to C realized after the registration process is completed will be described with reference to FIGS. 5 to 10. In FIGS. 5 to 10, the description regarding the transmission date / time information ST in the memory 34 of the printer 10 is omitted. Further, among the cartridge information in the cartridge table 242 of the server 200, the description regarding the serial number and the model number is omitted. Further, among the judgment information in the judgment table 140 of the terminal device 100, the description regarding the user name, serial number, update time information, and judgment time information is omitted.

(ケースA;図5)
図5、図6を参照して、プリンタ10からサーバ200への状態通知の送信が成功するケースAについて説明する。ケースAの初期状態では、プリンタ10のメモリ34内の残量情報RQn、及び、残量情報RQpに、「40」が記憶されている。また、送信日時情報STには、「2019/9/10 12:00」が記憶されている。また、サーバ200のカートリッジテーブル242には、残量情報「40」、及び、受信日時情報「2019/9/10 12:00」が記憶されている。また、端末装置100の判断テーブル140内の判断日時情報には、「2019/9/10 12:00」が記憶されている。
(Case A; Fig. 5)
A case A in which the status notification is successfully transmitted from the printer 10 to the server 200 will be described with reference to FIGS. 5 and 6. In the initial state of the case A, "40" is stored in the remaining amount information RQn and the remaining amount information RQp in the memory 34 of the printer 10. In addition, "2019/9/10 12:00" is stored in the transmission date / time information ST. Further, the remaining amount information "40" and the reception date / time information "2019/9/10 12:00" are stored in the cartridge table 242 of the server 200. Further, "2019/9/10 12:00" is stored in the determination date and time information in the determination table 140 of the terminal device 100.

端末装置100は、「2019/9/10 13:00」が到来すると、判断テーブル140内の判断日時情報によって示される日時「2019/9/10 12:00」から判断時間(即ち1時間)が経過したと判断し、T110において、第1の残量情報要求をプリンタ10に送信する。第1の残量情報要求は、プリンタ10のメモリ34内の残量情報RQnの送信をプリンタ10に要求するためのコマンドである。 When "2019/9/10 13:00" arrives, the terminal device 100 starts the judgment time (that is, 1 hour) from the date and time "2019/9/10 12:00" indicated by the judgment date and time information in the judgment table 140. It is determined that the elapse has passed, and at T110, the first remaining amount information request is transmitted to the printer 10. The first remaining amount information request is a command for requesting the printer 10 to transmit the remaining amount information RQn in the memory 34 of the printer 10.

プリンタ10は、T110において、端末装置100から第1の残量情報要求を受信すると、メモリ34内の残量情報RQnを特定し、T112において、特定済みの残量情報「40」を端末装置100に送信する。 When the printer 10 receives the first remaining amount information request from the terminal device 100 in T110, the printer 10 specifies the remaining amount information RQn in the memory 34, and in T112, the specified remaining amount information "40" is transmitted to the terminal device 100. Send to.

端末装置100は、T112において、プリンタ10から残量情報「40」を受信すると、T120において、シリアル番号SN1を含む第2の残量情報要求をサーバ200に送信する。第2の残量情報要求は、サーバ200のメモリ234のカートリッジテーブル242において、第2の残量情報要求内のシリアル番号SN1に対応付けられている残量情報と受信日時情報との送信をサーバ200に要求するためのコマンドである。 When the terminal device 100 receives the remaining amount information "40" from the printer 10 at T112, the terminal device 100 transmits a second remaining amount information request including the serial number SN1 to the server 200 at T120. The second remaining amount information request is a server that transmits the remaining amount information associated with the serial number SN1 in the second remaining amount information request and the reception date / time information in the cartridge table 242 of the memory 234 of the server 200. This is a command for requesting 200.

サーバ200は、T120において、端末装置100から第2の残量情報要求を受信すると、カートリッジテーブル242においてシリアル番号SN1に対応付けられている残量情報「40」と受信日時情報「2019/9/10 12:00」とを特定し、T122において、残量情報「40」と受信日時情報「2019/9/10 12:00」とを端末装置100に送信する。 When the server 200 receives the second remaining amount information request from the terminal device 100 in the T120, the server 200 receives the remaining amount information "40" associated with the serial number SN1 in the cartridge table 242 and the reception date / time information "2019/9 /". 10 12:00 ”is specified, and at T122, the remaining amount information“ 40 ”and the reception date / time information“ 2019/9/10 12:00 ”are transmitted to the terminal device 100.

端末装置100は、T122において、サーバ200から残量情報「40」と受信日時情報「2019/9/10 12:00」とを受信すると、プリンタ10から受信した残量情報によって示される残量と、サーバ200から受信した残量情報によって示される残量と、が一致するのか否かを判断する。本ケースでは、端末装置100は、T130において、T112でプリンタ10から受信した残量情報によって示される残量「40」と、T122でサーバ200から受信した残量情報によって示される残量「40」と、が一致すると判断する。この場合、端末装置100は、残量情報がプリンタ10からサーバ200に送信されていると判断し、プリンタ10から受信した残量情報をサーバ200に送信しない。そして、端末装置100は、T132において、判断日時情報を現在日時「2019/9/10 13:00」に更新する。 When the terminal device 100 receives the remaining amount information "40" and the reception date / time information "2019/9/10 12:00" from the server 200 at the T122, the remaining amount information indicated by the remaining amount information received from the printer 10 is used. , It is determined whether or not the remaining amount indicated by the remaining amount information received from the server 200 matches. In this case, in T130, the terminal device 100 has a remaining amount "40" indicated by the remaining amount information received from the printer 10 at T112 and a remaining amount "40" indicated by the remaining amount information received from the server 200 at T122. And are judged to match. In this case, the terminal device 100 determines that the remaining amount information has been transmitted from the printer 10 to the server 200, and does not transmit the remaining amount information received from the printer 10 to the server 200. Then, the terminal device 100 updates the determination date / time information to the current date / time "2019/9/10 13:00" at T132.

本ケースでは、「2019/9/10 13:30」において、プリンタ10を利用した印刷処理が実行される状況を想定する。プリンタ10は、T140において、カートリッジ20aを利用した印刷が実行される際に、カートリッジ20a内のインクの使用量「10」を算出し、残量情報RQnによって示される残量「40」から算出済みの使用量「10」を減算して、残量情報RQnによって示される残量を「30」に更新する。 In this case, it is assumed that the printing process using the printer 10 is executed at "2019/9/10 13:30". The printer 10 calculates the amount of ink used in the cartridge 20a "10" when printing using the cartridge 20a is executed in the T140, and has already calculated from the remaining amount "40" indicated by the remaining amount information RQn. The remaining amount indicated by the remaining amount information RQn is updated to "30" by subtracting the usage amount "10" of.

端末装置100は、「2019/9/10 14:00」が到来すると、判断テーブル140内の判断日時情報によって示される日時「2019/9/10 13:00」から判断時間(即ち1時間)が経過したと判断し、T150において、第1の残量情報要求をプリンタ10に送信する。T152は、プリンタ10から端末装置100に送信される残量情報が「30」である点を除いて、T112と同様である。T160、T162は、それぞれ、T120、T122と同様である。 When "2019/9/10 14:00" arrives, the terminal device 100 starts the judgment time (that is, 1 hour) from the date and time "2019/9/10 13:00" indicated by the judgment date and time information in the judgment table 140. It is determined that the elapse has passed, and at T150, the first remaining amount information request is transmitted to the printer 10. The T152 is the same as the T112 except that the remaining amount information transmitted from the printer 10 to the terminal device 100 is “30”. T160 and T162 are the same as T120 and T122, respectively.

端末装置100は、T170において、T152でプリンタ10から受信した残量情報によって示される残量「30」と、T162でサーバ200から受信した残量情報によって示される残量「40」と、が一致しないと判断する。この場合、端末装置100は、さらに、サーバ200から受信した受信日時情報によって示される受信日時と現在日時との差分である差分時間を算出し、差分時間が更新時間情報によって示される更新時間(12時間)以上であるのか否かを判断する。端末装置100は、T172において、差分時間「2時間」が更新時間「12時間」未満であると判断する。この場合、端末装置100は、プリンタ10から受信した残量情報とサーバ200から受信した残量情報が一致しないのは、サーバ200がプリンタ10から残量情報を受信してから更新時間が経過していないためであると判断する。この場合、端末装置100は、プリンタ10から受信した残量情報をサーバ200に送信しない。そして、端末装置100は、T174において、判断日時情報を現在日時「2019/9/10 14:00」に更新する。 In the terminal device 100, in T170, the remaining amount “30” indicated by the remaining amount information received from the printer 10 in T152 and the remaining amount “40” indicated by the remaining amount information received from the server 200 in T162 match. Judge not to. In this case, the terminal device 100 further calculates a difference time which is a difference between the reception date and time indicated by the reception date and time information received from the server 200 and the current date and time, and the difference time is the update time (12) indicated by the update time information. Judge whether it is more than time). The terminal device 100 determines in T172 that the difference time "2 hours" is less than the update time "12 hours". In this case, the terminal device 100 does not match the remaining amount information received from the printer 10 with the remaining amount information received from the server 200 because the update time has elapsed since the server 200 received the remaining amount information from the printer 10. Judge that it is because it is not. In this case, the terminal device 100 does not transmit the remaining amount information received from the printer 10 to the server 200. Then, the terminal device 100 updates the determination date / time information to the current date / time "2019/9/10 14:00" at T174.

その後、判断時間(1時間)が経過する毎に、プリンタ10、端末装置100、及び、サーバ200の間で、T150〜T174と同様の処理が実行される。 After that, every time the determination time (1 hour) elapses, the same processing as T150 to T174 is executed between the printer 10, the terminal device 100, and the server 200.

プリンタ10は、「2019/9/11 00:00」が到来すると、メモリ34内の送信日時情報STによって示される日時「2019/9/10 12:00」から更新時間(即ち12時間)が経過したと判断し、残量情報RQnによって示される残量と残量情報RQpによって示される残量とが一致するのか否かを判断する。プリンタ10は、T180において、残量情報RQnによって示される残量「30」と、残量情報RQpによって示される残量「40」と、が一致しないと判断し、残量情報RQnを今回送信されるべき残量情報と特定する。そして、プリンタ10は、T182において、シリアル番号SN1と残量情報「40」とを含む状態通知をサーバ200に送信する。なお、プリンタ10は、残量情報RQnによって示される残量と残量情報RQpによって示される残量とが一致する場合には、状態通知をサーバ200に送信しない。残量情報RQnによって示される残量と残量情報RQpによって示される残量とが一致する場合、残量情報RQnによって示される残量とサーバ200のカートリッジテーブル242内の残量情報によって示される残量も一致する。このような状況においては、サーバ200は、残量情報を受信する必要がない。従って、プリンタ10とサーバ200との間で不必要な通信が実行されることを抑制することができる。T184、T186は、記憶される情報が異なる点を除いて、図4のT62、T64と同様である。これにより、サーバ200のカートリッジテーブル242内の残量情報がプリンタ10から受信した最新の残量情報に更新される。T188は、T66と同様である。 When "2019/9/11 00:00" arrives, the printer 10 has an update time (that is, 12 hours) from the date and time "2019/9/10 12:00" indicated by the transmission date and time information ST in the memory 34. It is determined whether or not the remaining amount indicated by the remaining amount information RQn and the remaining amount indicated by the remaining amount information RQp match. In T180, the printer 10 determines that the remaining amount "30" indicated by the remaining amount information RQn and the remaining amount "40" indicated by the remaining amount information RQp do not match, and the remaining amount information RQn is transmitted this time. Identify as the remaining amount information to be used. Then, at T182, the printer 10 transmits a status notification including the serial number SN1 and the remaining amount information "40" to the server 200. The printer 10 does not send a status notification to the server 200 when the remaining amount indicated by the remaining amount information RQn and the remaining amount indicated by the remaining amount information RQp match. When the remaining amount indicated by the remaining amount information RQn and the remaining amount indicated by the remaining amount information RQp match, the remaining amount indicated by the remaining amount information RQn and the remaining amount indicated by the remaining amount information in the cartridge table 242 of the server 200. The amount also matches. In such a situation, the server 200 does not need to receive the remaining amount information. Therefore, it is possible to prevent unnecessary communication from being executed between the printer 10 and the server 200. T184 and T186 are the same as T62 and T64 in FIG. 4, except that the stored information is different. As a result, the remaining amount information in the cartridge table 242 of the server 200 is updated with the latest remaining amount information received from the printer 10. T188 is similar to T66.

また、端末装置100は、「2019/9/11 00:00」が到来すると、判断テーブル140内の判断日時情報によって示される日時「2019/9/10 23:00」から判断時間(即ち1時間)が経過したと判断し、T190以降の処理を実行する。T190〜T202は、プリンタ10及びサーバ200から受信される残量情報が異なる点を除いて、図5のT110〜T122と同様である。この場合、端末装置100は、T210において、T192でプリンタ10から受信した残量情報によって示される残量「30」と、T120でサーバ200から受信した残量情報によって示される残量「30」と、が一致すると判断する。この場合、端末装置100は、残量情報がプリンタ10からサーバ200に送信されていると判断する。そして、端末装置100は、T212において、判断日時情報を現在日時「2019/9/11 00:00」に更新する。 Further, when "2019/9/11 00:00" arrives, the terminal device 100 has a determination time (that is, 1 hour) from the date and time "2019/9/10 23:00" indicated by the determination date and time information in the determination table 140. ) Has passed, and the processing after T190 is executed. T190 to T202 are the same as T110 to T122 in FIG. 5, except that the remaining amount information received from the printer 10 and the server 200 is different. In this case, the terminal device 100 has the remaining amount "30" indicated by the remaining amount information received from the printer 10 in T192 and the remaining amount "30" indicated by the remaining amount information received from the server 200 in T120 in T210. , Is judged to match. In this case, the terminal device 100 determines that the remaining amount information is transmitted from the printer 10 to the server 200. Then, the terminal device 100 updates the determination date / time information to the current date / time "2019/9/11 00:00" at T212.

(ケースB;図7、図8)
続いて、図7、図8を参照して、プリンタ10からサーバ200への状態通知の送信が失敗するケースBについて説明する。ケースBの初期状態は、ケースAの初期状態と同様である。
(Case B; FIGS. 7, 8)
Subsequently, a case B in which the transmission of the status notification from the printer 10 to the server 200 fails will be described with reference to FIGS. 7 and 8. The initial state of case B is the same as the initial state of case A.

まず、プリンタ10、端末装置100、及び、サーバ200の間で、図5のT110〜T174と同様の処理が実行される。T280は、図6のT180と同様である。そして、プリンタ10は、T282において、シリアル番号SN1と残量情報「30」とを含む状態通知をサーバ200に送信する。本ケースでは、プリンタ10とサーバ200との間の通信状態が悪いために、プリンタ10からサーバ200への状態通知の送信が失敗する。この場合、サーバ200は、シリアル番号SN1と残量情報とを含む状態通知が受信されないために、カートリッジテーブル242内の残量情報及び受信日時情報を更新しない。T284は、図6のT184と同様である。従って、この時点において、プリンタ10のメモリ34内の残量情報RQn「30」と、サーバ200のカートリッジテーブル242において、シリアル番号SN1に対応付けられている残量情報「40」と、が一致しない。 First, the same processing as in T110 to T174 of FIG. 5 is executed between the printer 10, the terminal device 100, and the server 200. T280 is similar to T180 in FIG. Then, at T282, the printer 10 transmits a status notification including the serial number SN1 and the remaining amount information "30" to the server 200. In this case, the transmission of the status notification from the printer 10 to the server 200 fails because the communication status between the printer 10 and the server 200 is poor. In this case, the server 200 does not update the remaining amount information and the reception date / time information in the cartridge table 242 because the status notification including the serial number SN1 and the remaining amount information is not received. T284 is similar to T184 in FIG. Therefore, at this point, the remaining amount information RQn "30" in the memory 34 of the printer 10 and the remaining amount information "40" associated with the serial number SN1 in the cartridge table 242 of the server 200 do not match. ..

T290〜T300は、図6のT190〜T200と同様である。T302は、残量情報、受信日時情報が異なる点をのぞいて、図6のT202と同様である。図7のT310は、図5のT170と同様である。次いで、端末装置100は、T312において、受信日時情報によって示される受信日時「2019/9/10 12:00」と現在日時「2019/9/11 00:00」の差分時間「12時間」が更新時間「12時間」以上であると判断する。この場合、端末装置100は、T314において、通知画面を表示部114に表示させる。通知画面は、プリンタ10からサーバ200への状態通知の送信が失敗したことをユーザに通知するための画面である。これにより、ユーザは、プリンタ10からサーバ200への状態通知の送信が失敗したことを知ることができる。 T290 to T300 are the same as T190 to T200 in FIG. T302 is the same as T202 in FIG. 6, except that the remaining amount information and the reception date / time information are different. T310 in FIG. 7 is similar to T170 in FIG. Next, in T312, the terminal device 100 updates the difference time "12 hours" between the reception date and time "2019/9/10 12:00" and the current date and time "2019/9/11 00:00" indicated by the reception date and time information. It is judged that the time is "12 hours" or more. In this case, the terminal device 100 causes the display unit 114 to display the notification screen at T314. The notification screen is a screen for notifying the user that the transmission of the status notification from the printer 10 to the server 200 has failed. As a result, the user can know that the transmission of the status notification from the printer 10 to the server 200 has failed.

次いで、端末装置100は、プリンタ10から受信された残量情報によって示される残量とサーバ200から受信された残量情報によって示される残量との差分である差分残量が第1の閾値以上であるのか否かを判断する。第1の閾値は、プリンタ10から受信された残量情報をサーバ200に送信するのか否かを判断するための閾値である。本実施例では、第1の閾値は「10」である。本ケースでは、端末装置100は、T316において、図7のT292でプリンタ10から受信された残量情報によって示される残量「30」とT302でサーバ200から受信された残量情報によって示される残量「40」との差分残量「10」が第1の閾値以上であると判断する。そして、端末装置100は、T320において、シリアル番号SN1と、T292でプリンタ10から受信された残量情報「30」と、を含む更新要求をサーバ200に送信する。更新要求は、サーバ200のカートリッジテーブル242において、更新要求内のシリアル番号SN1に対応付けられている残量情報を、当該要求内の残量情報に更新することを要求するためのコマンドである。T322は、図5のT132と同様である。なお、端末装置100は、差分残量が第1の閾値未満である場合に、更新要求をサーバ200に送信しない。差分残量が第1の閾値未満である場合、残量情報をサーバ200に送信する必要性は低い。従って、端末装置100とサーバ200との間に不必要な通信が実行されることを抑制することができる。 Next, in the terminal device 100, the difference remaining amount, which is the difference between the remaining amount indicated by the remaining amount information received from the printer 10 and the remaining amount indicated by the remaining amount information received from the server 200, is equal to or greater than the first threshold value. Judge whether or not it is. The first threshold value is a threshold value for determining whether or not to transmit the remaining amount information received from the printer 10 to the server 200. In this embodiment, the first threshold is "10". In this case, in T316, the terminal device 100 has a remaining amount "30" indicated by the remaining amount information received from the printer 10 at T292 in FIG. 7 and a remaining amount indicated by the remaining amount information received from the server 200 at T302. It is determined that the difference remaining amount "10" from the amount "40" is equal to or greater than the first threshold value. Then, the terminal device 100 transmits an update request including the serial number SN1 and the remaining amount information “30” received from the printer 10 at T292 to the server 200 at T320. The update request is a command for requesting that the remaining amount information associated with the serial number SN1 in the update request be updated to the remaining amount information in the request in the cartridge table 242 of the server 200. T322 is the same as T132 in FIG. The terminal device 100 does not send an update request to the server 200 when the difference remaining amount is less than the first threshold value. When the differential remaining amount is less than the first threshold value, it is less necessary to transmit the remaining amount information to the server 200. Therefore, it is possible to prevent unnecessary communication from being executed between the terminal device 100 and the server 200.

サーバ200は、T320において、端末装置100から更新要求を受信すると、T322において、当該要求内のシリアル番号SN1を特定し、カートリッジテーブル242において、特定済みのシリアル番号SN1に対応付けられている残量情報を当該要求内の残量情報「30」に更新する。T324は、図6のT188と同様である。これにより、プリンタ10からサーバ200への状態通知の送信が失敗した後に、プリンタ10のメモリ34内の残量情報RQnと、サーバ200のカートリッジテーブル242内の残量情報と、を一致させることができる。 When the server 200 receives the update request from the terminal device 100 in the T320, the server 200 specifies the serial number SN1 in the request in the T322, and the remaining amount associated with the specified serial number SN1 in the cartridge table 242. The information is updated to the remaining amount information "30" in the request. T324 is similar to T188 in FIG. As a result, after the transmission of the status notification from the printer 10 to the server 200 fails, the remaining amount information RQn in the memory 34 of the printer 10 and the remaining amount information in the cartridge table 242 of the server 200 can be matched. it can.

(ケースC;図9、図10)
続いて、図9、図10を参照して、プリンタ10からサーバ200への状態通知の送信が失敗するケースCについて説明する。ケースCの初期状態は、プリンタ10のメモリ34内の残量情報RQn、残量情報RQp、及び、サーバ200のカートリッジテーブル242内に、「26」が記憶されている点を除いて、ケースA、ケースBの初期状態と同様である。
(Case C; FIGS. 9, 10)
Subsequently, a case C in which the transmission of the status notification from the printer 10 to the server 200 fails will be described with reference to FIGS. 9 and 10. The initial state of the case C is the case A except that "26" is stored in the remaining amount information RQn and the remaining amount information RQp in the memory 34 of the printer 10 and the cartridge table 242 of the server 200. , The same as the initial state of case B.

まず、プリンタ10、端末装置100、及び、サーバ200の間で、図5のT110〜T174と同様の処理が実行される。なお、本ケースでは、図5のT140の印刷処理が実行されると、プリンタ10のメモリ34内の残量情報RQnが「26」から「20」に更新される。T480は、図6のT180と同様である。プリンタ10は、T482において、シリアル番号SN1と残量情報「20」とを含む状態通知をサーバ200に送信する。本ケースでは、プリンタ10とサーバ200との間の通信状態が悪いために、プリンタ10からサーバ200への状態通知の送信が失敗する。この場合、サーバ200は、シリアル番号SN1と残量情報とを含む状態通知が受信されないために、カートリッジテーブル242内の残量情報及び更新日時情報を更新しない。T484は、メモリ34に記憶される残量が異なる点を除いて、図6のT184と同様である。従って、この時点において、プリンタ10のメモリ34内の残量情報RQn「20」と、サーバ200のカートリッジテーブル242において、シリアル番号SN1に対応付けられている残量情報「26」と、が一致しない。 First, the same processing as in T110 to T174 of FIG. 5 is executed between the printer 10, the terminal device 100, and the server 200. In this case, when the printing process of T140 of FIG. 5 is executed, the remaining amount information RQn in the memory 34 of the printer 10 is updated from "26" to "20". T480 is similar to T180 in FIG. At T482, the printer 10 transmits a status notification including the serial number SN1 and the remaining amount information "20" to the server 200. In this case, the transmission of the status notification from the printer 10 to the server 200 fails because the communication status between the printer 10 and the server 200 is poor. In this case, the server 200 does not update the remaining amount information and the update date / time information in the cartridge table 242 because the status notification including the serial number SN1 and the remaining amount information is not received. T484 is the same as T184 in FIG. 6, except that the remaining amount stored in the memory 34 is different. Therefore, at this point, the remaining amount information RQn "20" in the memory 34 of the printer 10 and the remaining amount information "26" associated with the serial number SN1 in the cartridge table 242 of the server 200 do not match. ..

T490〜T502は、残量情報が異なる点を除いて、図7のT290〜T302と同様である。図10のT510〜T514は、図8のT310〜T314と同様である。端末装置100は、差分残量が第1の閾値よりも大きいのか否かを判断する。端末装置100は、T516において、図9のT492でプリンタ10から受信された残量情報によって示される残量「20」とT502でサーバ200から受信された残量情報によって示される残量「26」の差分残量「6」が第1の閾値未満であると判断する。この場合、端末装置100は、さらに、プリンタ10から受信された残量情報によって示される残量「20」が第2の閾値以下であるのか否かを判断する。第2の閾値は、プリンタ10から受信された残量情報をサーバ200に送信するのか否かを判断するための閾値である。本実施例では、第2の閾値は、サーバ200のメモリ234に記憶されている発注閾値(「25」)と同じである。本ケースでは、端末装置100は、T518において、プリンタ10から受信された残量情報によって示される残量「26」が第2の閾値以下であると判断する。そして、端末装置100は、T520において、シリアル番号SN1と、プリンタ10から受信された残量情報「20」と、を含む更新要求をサーバ200に送信する。T522は、図8のT322と同様である。なお、端末装置100は、プリンタ10から受信された残量情報によって示される残量が第2の閾値よりも大きい場合に、更新要求をサーバ200に送信しない。残量が第2の閾値よりも大きい場合に、残量情報をサーバ200に送信する必要性は低い。従って、端末装置100とサーバ200との間に不必要な通信が実行されることを抑制することができる。 T490 to T502 are the same as T290 to T302 in FIG. 7, except that the remaining amount information is different. T510 to T514 in FIG. 10 are similar to T310 to T314 in FIG. The terminal device 100 determines whether or not the difference remaining amount is larger than the first threshold value. In T516, the terminal device 100 has a remaining amount "20" indicated by the remaining amount information received from the printer 10 at T492 in FIG. 9 and a remaining amount "26" indicated by the remaining amount information received from the server 200 at T502. It is determined that the difference remaining amount "6" of is less than the first threshold value. In this case, the terminal device 100 further determines whether or not the remaining amount "20" indicated by the remaining amount information received from the printer 10 is equal to or less than the second threshold value. The second threshold value is a threshold value for determining whether or not to transmit the remaining amount information received from the printer 10 to the server 200. In this embodiment, the second threshold value is the same as the ordering threshold value (“25”) stored in the memory 234 of the server 200. In this case, the terminal device 100 determines in T518 that the remaining amount "26" indicated by the remaining amount information received from the printer 10 is equal to or less than the second threshold value. Then, at T520, the terminal device 100 transmits an update request including the serial number SN1 and the remaining amount information "20" received from the printer 10 to the server 200. T522 is similar to T322 in FIG. The terminal device 100 does not send an update request to the server 200 when the remaining amount indicated by the remaining amount information received from the printer 10 is larger than the second threshold value. When the remaining amount is larger than the second threshold value, it is less necessary to transmit the remaining amount information to the server 200. Therefore, it is possible to prevent unnecessary communication from being executed between the terminal device 100 and the server 200.

T524は、残量情報が異なる点を除いて、図8のT324と同様である。そして、プリンタ10は、T526において、T520で端末装置100から受信した残量情報によって示される残量「20」が発注閾値以下であると判断し、T530において、発注選択要求を端末装置100に送信する。発注選択要求は、サーバ200がカートリッジ20aを発注するための発注処理を実行すべきか否かをユーザに選択させるためのコマンドである。 T524 is the same as T324 in FIG. 8 except that the remaining amount information is different. Then, the printer 10 determines at T526 that the remaining amount "20" indicated by the remaining amount information received from the terminal device 100 at T520 is equal to or less than the ordering threshold value, and transmits an ordering selection request to the terminal device 100 at T530. To do. The order selection request is a command for causing the user to select whether or not the server 200 should execute the order processing for ordering the cartridge 20a.

端末装置100は、T530において、サーバ200から発注選択要求を受信すると、T532において、サーバ200が発注処理を実行すべきか否かをユーザに選択させるための選択画面を表示部114に表示させる。端末装置100は、選択画面内の「YES」の選択をユーザから受け付けると、T536において、発注指示をサーバ200に送信する。 When the terminal device 100 receives the order selection request from the server 200 at T530, the terminal device 100 causes the display unit 114 to display a selection screen for allowing the user to select whether or not the server 200 should execute the order processing at T532. When the terminal device 100 receives the selection of "YES" in the selection screen from the user, the terminal device 100 transmits an ordering instruction to the server 200 at T536.

サーバ200は、T536において、端末装置100から発注指示を受信すると、発注処理を実行すべきと判断し、T538において、発注処理を実行する。発注処理において、サーバ200は、まず、デバイステーブル240において、シリアル番号SN1に対応付けられているユーザ名UNを特定する。次いで、サーバ200は、ユーザテーブル238において、特定済みのユーザ名UNに対応付けられている住所情報ADを特定する。そして、サーバ200は、新しいカートリッジ20aを特定済みの住所情報ADによって示される住所に発送するための発注処理を実行する。 When the server 200 receives the ordering instruction from the terminal device 100 at T536, it determines that the ordering process should be executed, and executes the ordering process at T538. In the order processing, the server 200 first identifies the user name UN associated with the serial number SN1 in the device table 240. Next, the server 200 identifies the address information AD associated with the identified user name UN in the user table 238. Then, the server 200 executes an ordering process for shipping the new cartridge 20a to the address indicated by the specified address information AD.

(端末装置100が実行する判断処理;図11)
続いて、図11を参照して、端末装置100のCPU132がサービスアプリ138に従って実行する判断処理の内容を説明する。判断処理は、図3、図4の登録プロセスが完了した後、即ち、メモリ134の判断テーブル140内に判断情報が登録された後に実行される処理である。CPU132は、判断テーブル140内の判断日時情報によって示される日時から判断時間(1時間)が経過する毎に、判断処理を実行する。
(Judgment processing executed by the terminal device 100; FIG. 11)
Subsequently, with reference to FIG. 11, the content of the determination process executed by the CPU 132 of the terminal device 100 according to the service application 138 will be described. The determination process is a process executed after the registration process of FIGS. 3 and 4 is completed, that is, after the determination information is registered in the determination table 140 of the memory 134. The CPU 132 executes the determination process every time the determination time (1 hour) elapses from the date and time indicated by the determination date and time information in the determination table 140.

S10において、CPU132は、第1の残量情報要求をプリンタ10に送信し(図5のT110等)、S12において、プリンタ10から現在の残量情報を受信する(図5のT112等)。 In S10, the CPU 132 transmits the first remaining amount information request to the printer 10 (T110 and the like in FIG. 5), and in S12, receives the current remaining amount information from the printer 10 (T112 and the like in FIG. 5).

S20において、CPU132は、シリアル番号SN1を含む第2の残量情報要求をサーバ200に送信し(図5のT120等)、S22において、サーバ200から最新の残量情報と受信日時情報とを受信する(T122等)。 In S20, the CPU 132 transmits a second remaining amount information request including the serial number SN1 to the server 200 (T120 in FIG. 5 and the like), and in S22, receives the latest remaining amount information and the reception date and time information from the server 200. (T122 etc.).

S30において、CPU132は、S12でプリンタ10から受信された残量情報によって示される残量と、S22でサーバ200から受信された残量情報によって示される残量と、が一致するのか否かを判断する。CPU132は、プリンタ10から受信された残量情報によって示される残量とサーバ200から受信された残量情報によって示される残量とが一致すると判断する場合(S30でYES)(図5のT130等)に、S60に進む。一方、CPU132は、プリンタ10から受信された残量情報によって示される残量とサーバ200から受信された残量情報によって示される残量とが一致しないと判断する場合(S30でNO)(図5のT170等)に、S32に進む。 In S30, the CPU 132 determines whether or not the remaining amount indicated by the remaining amount information received from the printer 10 in S12 and the remaining amount indicated by the remaining amount information received from the server 200 in S22 match. To do. When the CPU 132 determines that the remaining amount indicated by the remaining amount information received from the printer 10 and the remaining amount indicated by the remaining amount information received from the server 200 match (YES in S30) (T130 or the like in FIG. 5). ), Proceed to S60. On the other hand, when the CPU 132 determines that the remaining amount indicated by the remaining amount information received from the printer 10 and the remaining amount indicated by the remaining amount information received from the server 200 do not match (NO in S30) (FIG. 5). To T170, etc.), proceed to S32.

S32において、CPU132は、S22でサーバ200から受信された受信日時情報によって示される受信日時と現在日時との差分時間が更新時間以上であるのか否かを判断する。CPU132は、差分時間が更新時間未満であると判断する場合(S32でNO)(図5のT172等)に、S60に進む。一方、CPU132は、差分時間が更新時間以上であると判断する場合(S32でYES)(図8のT312等)に、S34に進む。 In S32, the CPU 132 determines whether or not the difference time between the reception date and time indicated by the reception date and time information received from the server 200 in S22 and the current date and time is equal to or longer than the update time. When the CPU 132 determines that the difference time is less than the update time (NO in S32) (T172 in FIG. 5 or the like), the CPU 132 proceeds to S60. On the other hand, when the CPU 132 determines that the difference time is equal to or longer than the update time (YES in S32) (T312 in FIG. 8 or the like), the CPU 132 proceeds to S34.

S34において、CPU132は、通知画面を表示部114に表示させる(図8のT314等)。 In S34, the CPU 132 displays the notification screen on the display unit 114 (T314 and the like in FIG. 8).

S40において、CPU132は、S12でプリンタ10から受信された残量情報によって示される残量とT22でサーバ200から受信された残量情報によって示される残量との差分残量が第1の閾値(「10」)以上であるのか否かを判断する。CPU132は、差分残量が第1の閾値以上であると判断する場合(S40でYES)(図8のT316)に、S50に進む。一方、CPU132は、差分残量が第1の閾値未満であると判断する場合(S40でNO)(図10のT516)に、S42に進む。 In S40, the CPU 132 has a first threshold value (the difference remaining amount between the remaining amount indicated by the remaining amount information received from the printer 10 in S12 and the remaining amount indicated by the remaining amount information received from the server 200 in T22). It is determined whether or not it is "10") or more. When the CPU 132 determines that the difference remaining amount is equal to or greater than the first threshold value (YES in S40) (T316 in FIG. 8), the CPU 132 proceeds to S50. On the other hand, when the CPU 132 determines that the difference remaining amount is less than the first threshold value (NO in S40) (T516 in FIG. 10), the CPU 132 proceeds to S42.

S42において、CPU132は、S12でプリンタ10から受信された残量情報によって示される残量が第2の閾値(「25」)以下であるのか否かを判断する。CPU132は、プリンタ10から受信された残量情報によって示される残量が第2の閾値以下であると判断する場合(S42でYES)(図10のT518)に、S50に進む。一方、CPU132は、プリンタ10から受信された残量情報によって示される残量が第2の閾値よりも大きいと判断する場合(S42でNO)に、S60に進む。 In S42, the CPU 132 determines whether or not the remaining amount indicated by the remaining amount information received from the printer 10 in S12 is equal to or less than the second threshold value (“25”). When the CPU 132 determines that the remaining amount indicated by the remaining amount information received from the printer 10 is equal to or less than the second threshold value (YES in S42) (T518 in FIG. 10), the CPU 132 proceeds to S50. On the other hand, when the CPU 132 determines that the remaining amount indicated by the remaining amount information received from the printer 10 is larger than the second threshold value (NO in S42), the CPU 132 proceeds to S60.

S50において、CPU132は、S12でプリンタ10から受信された残量情報と、シリアル番号と、を含む更新要求をサーバ200に送信する。 In S50, the CPU 132 transmits an update request including the remaining amount information received from the printer 10 in S12 and the serial number to the server 200.

S60において、CPU132は、判断テーブル140において、現在日時を判断日時情報として記憶させる。CPU132は、S60が終了すると、図11の処理を終了する。 In S60, the CPU 132 stores the current date and time as the determination date and time information in the determination table 140. When S60 is completed, the CPU 132 ends the process shown in FIG.

(本実施例の効果)
サーバ200は、更新時間が経過する毎にプリンタ10から残量情報を受信し、当該残量情報を利用した発送サービスを提供している。しかしながら、プリンタ10からサーバ200への残量情報の送信が失敗する場合がある(図7のT282、図9のT482)。この場合、サーバ200は、発送サービスを適切に提供することができない。そこで、本実施例では、端末装置100は、プリンタ10から現在の残量情報を受信し(図11のS12)、サーバ200から、最新の残量情報と受信日時情報とを受信する(S22)。そして、端末装置100は、プリンタ10から受信された残量情報とサーバ200から受信された残量情報とサーバ200から受信された受信日時情報とを利用して、残量情報がプリンタ10からサーバ200に送信されているのか否かを判断する(S30、S32)。これにより、端末装置100は、プリンタ10からサーバ200への残量情報の送信が更新時間が経過する毎に適切に実行されているのか否かを判断することができる。そして、端末装置100は、残量情報がプリンタ10からサーバ200に送信されていないと判断する場合(S30でNO、S32でYES)に、プリンタ10から受信された残量情報をサーバ200に送信する(S50)。従って、残量情報がプリンタ10からサーバ200に送信されていない場合でも、サーバ200は、残量情報を取得することができる。この結果、サーバ200は、発送サービスを適切に提供することができる。
(Effect of this example)
The server 200 receives the remaining amount information from the printer 10 every time the update time elapses, and provides a shipping service using the remaining amount information. However, transmission of the remaining amount information from the printer 10 to the server 200 may fail (T282 in FIG. 7, T482 in FIG. 9). In this case, the server 200 cannot properly provide the shipping service. Therefore, in this embodiment, the terminal device 100 receives the current remaining amount information from the printer 10 (S12 in FIG. 11), and receives the latest remaining amount information and the reception date / time information from the server 200 (S22). .. Then, the terminal device 100 uses the remaining amount information received from the printer 10, the remaining amount information received from the server 200, and the received date and time information received from the server 200, and the remaining amount information is transmitted from the printer 10 to the server. It is determined whether or not the data has been transmitted to the 200 (S30, S32). Thereby, the terminal device 100 can determine whether or not the transmission of the remaining amount information from the printer 10 to the server 200 is properly executed every time the update time elapses. Then, when the terminal device 100 determines that the remaining amount information has not been transmitted from the printer 10 to the server 200 (NO in S30, YES in S32), the terminal device 100 transmits the remaining amount information received from the printer 10 to the server 200. (S50). Therefore, even if the remaining amount information is not transmitted from the printer 10 to the server 200, the server 200 can acquire the remaining amount information. As a result, the server 200 can appropriately provide the shipping service.

(対応関係)
更新時間が、「第1の所定時間」の一例である。残量情報が、「使用情報」の一例である。受信日時情報が、「日時情報」の一例である。サーバ200のカートリッジテーブル242に記憶されている残量情報が、「最新の使用情報」の一例である。判断時間が、「第2の所定時間」の一例である。
(Correspondence)
The update time is an example of the "first predetermined time". The remaining amount information is an example of "usage information". The reception date and time information is an example of "date and time information". The remaining amount information stored in the cartridge table 242 of the server 200 is an example of the "latest usage information". The determination time is an example of the "second predetermined time".

一つの側面では、図6のT182、図7のT282、図9のT482が、「プリンタ送信部」によって実行される処理の一例である。図6のT186が、「第1の記憶制御部」によって実行される処理の一例である。図11のS12、S22が、それぞれ、「第1の端末受信部」、「第2の端末受信部」によって実行される処理の一例である。図11のS30、S32が、「端末判断部」によって実行される処理の一例である。図11のS50が、「端末送信部」によって実行される処理の一例である。 On one side, T182 in FIG. 6, T282 in FIG. 7, and T482 in FIG. 9 are examples of processes executed by the "printer transmitter". T186 in FIG. 6 is an example of the processing executed by the “first storage control unit”. S12 and S22 in FIG. 11 are examples of processes executed by the "first terminal receiving unit" and the "second terminal receiving unit", respectively. S30 and S32 in FIG. 11 are examples of processes executed by the "terminal determination unit". S50 in FIG. 11 is an example of processing executed by the “terminal transmitter”.

別の側面では、図11のS12、S22が、それぞれ、「第1の受信部」、「第2の受信部」によって実行される処理の一例である。図11のS30、S32が、「判断部」によって実行される処理の一例である。図11のS50が、「送信部」によって実行される処理の一例である。 In another aspect, S12 and S22 in FIG. 11 are examples of processes executed by the "first receiving unit" and the "second receiving unit", respectively. S30 and S32 in FIG. 11 are examples of processes executed by the "judgment unit". S50 in FIG. 11 is an example of processing executed by the “transmitter”.

以上、本発明の具体例を詳細に説明したが、これらは例示にすぎず、特許請求の範囲を限定するものではない。特許請求の範囲に記載の技術には以上に例示した具体例を様々に変形、変更したものが含まれる。上記の実施例の変形例を以下に列挙する。 Although specific examples of the present invention have been described in detail above, these are merely examples and do not limit the scope of claims. The techniques described in the claims include various modifications and modifications of the specific examples illustrated above. Modifications of the above embodiment are listed below.

(変形例1)プリンタ10は、更新時間が経過する毎に、残量情報RQnと残量情報RQpとが一致するのか否かを判断することなく、残量情報をサーバ200に送信してもよい。本変形例では、「プリンタ判断部」を省略可能である。 (Modification 1) The printer 10 may transmit the remaining amount information to the server 200 every time the update time elapses, without determining whether or not the remaining amount information RQn and the remaining amount information RQp match. Good. In this modification, the "printer determination unit" can be omitted.

(変形例2)サーバ200によって提供されるサービスは、発送サービスに限定されない。例えば、サーバ200は、プリンタ10のユーザによって印刷に利用された印刷用紙の印刷用紙済み枚数に応じて課金される課金サービスを提供してもよい。この場合、プリンタ10は、更新時間が経過する毎に、残量情報に代えて、印刷に利用された印刷用紙の印刷用紙済み枚数を示す情報を管理サーバ200に送信する。本変形例では、印刷用紙済み枚数を示す情報が、「使用情報」の一例である。また、別の変形例では、サーバ200は、発送サービス及び課金サービスの両方を提供してもよい。この場合、プリンタ10は、更新時間が経過する毎に、残量情報と印刷用紙済み枚数を示す情報とを管理サーバ200に送信する。本変形例では、残量情報と印刷用紙済み枚数を示す情報が、「使用情報」の一例である。 (Modification 2) The service provided by the server 200 is not limited to the shipping service. For example, the server 200 may provide a billing service in which the user of the printer 10 charges according to the number of printed sheets of printing paper used for printing. In this case, each time the update time elapses, the printer 10 transmits information indicating the number of printed sheets of the printing paper used for printing to the management server 200 instead of the remaining amount information. In this modification, the information indicating the number of printed sheets completed is an example of "usage information". Further, in another modification, the server 200 may provide both a shipping service and a billing service. In this case, the printer 10 transmits the remaining amount information and the information indicating the number of printed sheets completed to the management server 200 each time the update time elapses. In this modification, the remaining amount information and the information indicating the number of printed sheets completed are an example of "usage information".

(変形例3)管理サーバ200は、カートリッジテーブル242において、受信日時情報に代えて、プリンタ10から状態通知を受信した時間から経過した時間を示す経過時間情報を記憶してもよい。本変形例では、管理サーバ200は、端末装置100から第2の残情報要求を受信すると、カートリッジテーブル242内の残量情報及び経過時間情報を端末装置100に送信する。この場合、端末装置100は、図11のS32において、経過時間情報によって示される時間が更新時間よりも大きいのか否かを判断する。そして、端末装置100は、S30でNOと判断し、かつ、経過時間情報によって示される時間が更新時間よりも大きいと判断する場合に、プリンタ10からサーバ200に残量情報が更新時間毎に送信されていないと判断する。 (Modification 3) The management server 200 may store the elapsed time information indicating the elapsed time from the time when the status notification is received from the printer 10 in the cartridge table 242 instead of the reception date and time information. In this modification, when the management server 200 receives the second residual information request from the terminal device 100, the management server 200 transmits the remaining amount information and the elapsed time information in the cartridge table 242 to the terminal device 100. In this case, the terminal device 100 determines in S32 of FIG. 11 whether or not the time indicated by the elapsed time information is larger than the update time. Then, when the terminal device 100 determines NO in S30 and determines that the time indicated by the elapsed time information is larger than the update time, the remaining amount information is transmitted from the printer 10 to the server 200 for each update time. Judge that it has not been done.

(変形例4)図4のT74において、サーバ200は、更新時間情報を端末装置100に送信しなくてもよい。本変形例では、端末装置100は、T74よりも後に、更新時間情報の送信を要求するための送信要求をプリンタ10に送信し、プリンタ10から更新時間情報を受信する。また、別の変形例では、端末装置100が、更新時間を入力するための画面を表示し、当該画面にユーザが更新時間を入力してもよい。本変形例では、「第3の受信部」を省略可能である。 (Modification 4) In T74 of FIG. 4, the server 200 does not have to transmit the update time information to the terminal device 100. In this modification, the terminal device 100 transmits a transmission request for requesting the transmission of the update time information to the printer 10 after the T74, and receives the update time information from the printer 10. Further, in another modification, the terminal device 100 may display a screen for inputting the update time, and the user may input the update time on the screen. In this modification, the "third receiving unit" can be omitted.

(変形例5)図11のS30、S32、S40、S42の処理の順番が異なっていてもよい。また、S40及びS42のうちの少なくとも1個の処理を省略可能である。 (Modification 5) The processing order of S30, S32, S40, and S42 in FIG. 11 may be different. Further, at least one process of S40 and S42 can be omitted.

(変形例6)端末装置100の判断テーブル140内の判断時間情報によって示される判断時間が予め記憶されていてもよい。また、別の変形例では、端末装置100の判断テーブル140内に、第1の残量情報要求をプリンタ10に送信する時間に関する第1の判断時間情報と、第2の残量情報を管理サーバ200に送信する時間に関する第2の判断時間情報と、が記憶されていてもよい。また、別の変形例では、端末装置100は、第1の残量情報要求及び第2の残量情報要求を送信するための指示をユーザから受け付ける場合に、第1の残量情報をプリンタ10に送信し、第2の残量情報要求をサーバ200に送信してもよい。 (Modification 6) The determination time indicated by the determination time information in the determination table 140 of the terminal device 100 may be stored in advance. Further, in another modification, in the determination table 140 of the terminal device 100, the first determination time information regarding the time for transmitting the first remaining amount information request to the printer 10 and the second remaining amount information are stored in the management server. A second determination time information regarding the time to be transmitted to the 200 may be stored. Further, in another modification, when the terminal device 100 receives from the user an instruction for transmitting the first remaining amount information request and the second remaining amount information request, the terminal device 100 outputs the first remaining amount information to the printer 10. The second remaining amount information request may be transmitted to the server 200.

(変形例7)管理サーバ200は、残量情報によって示される残量が発注閾値以下であると判断する場合に、発注選択要求を端末装置100に送信することなく、発注処理を実行してもよい。本変形例では、「第4の受信部」、「表示制御部」、「第2の送信部」を省略可能である。 (Modification 7) When the management server 200 determines that the remaining amount indicated by the remaining amount information is equal to or less than the ordering threshold value, the management server 200 may execute the ordering process without transmitting the ordering selection request to the terminal device 100. Good. In this modification, the "fourth receiving unit", "display control unit", and "second transmitting unit" can be omitted.

(変形例8)上記の実施例では、サーバ200が、プリンタ10から受信された残量情報を記憶しているとともに、発注処理を実行している。変形例では、プリンタ10から受信される残量情報を記憶するサーバと、発注処理を実行するサーバが別個のサーバであってもよい。 (Modification 8) In the above embodiment, the server 200 stores the remaining amount information received from the printer 10 and executes the ordering process. In the modified example, the server that stores the remaining amount information received from the printer 10 and the server that executes the order processing may be separate servers.

(変形例9)上記の各実施例では、図3〜図11の各処理がソフトウェア(例えばプログラム36、136、236)によって実現されるが、これらの各処理のうちの少なくとも1つが論理回路等のハードウェアによって実現されてもよい。 (Modification 9) In each of the above embodiments, the processes of FIGS. 3 to 11 are realized by software (for example, programs 36, 136, 236), and at least one of these processes is a logic circuit or the like. It may be realized by the hardware of.

また、本明細書または図面に説明した技術要素は、単独であるいは各種の組合せによって技術的有用性を発揮するものであり、出願時請求項記載の組合せに限定されるものではない。また、本明細書または図面に例示した技術は複数目的を同時に達成するものであり、そのうちの一つの目的を達成すること自体で技術的有用性を持つものである。 In addition, the technical elements described in the present specification or the drawings exhibit technical usefulness alone or in various combinations, and are not limited to the combinations described in the claims at the time of filing. In addition, the techniques illustrated in this specification or drawings achieve a plurality of objectives at the same time, and achieving one of the objectives itself has technical usefulness.

2:通信システム、6:インターネット、10:装置、12:操作部、14:表示部、16:通信I/F、20:印刷実行部、20a:カートリッジ、30:制御部、32:CPU、34:メモリ、36:プログラム、100:端末装置、112:操作部、114:表示部、116:通信I/F、130:制御部、132:CPU、134:メモリ、136:OSプログラム、138:サービスアプリ、140:判断テーブル、200:管理サーバ、216:通信I/F、230:制御部、232:CPU、234:メモリ、236:プログラム、238:ユーザテーブル、240:デバイステーブル、242:カートリッジテーブル 2: Communication system, 6: Internet, 10: Device, 12: Operation unit, 14: Display unit, 16: Communication I / F, 20: Print execution unit, 20a: Cartridge, 30: Control unit, 32: CPU, 34 : Memory, 36: Program, 100: Terminal device, 112: Operation unit, 114: Display unit, 116: Communication I / F, 130: Control unit, 132: CPU, 134: Memory, 136: OS program, 138: Service App, 140: Judgment table, 200: Management server, 216: Communication I / F, 230: Control unit, 232: CPU, 234: Memory, 236: Program, 238: User table, 240: Device table, 242: Cartridge table

Claims (12)

プリンタと、サーバと、端末装置と、を備える通信システムであって、
前記プリンタは、
第1の所定時間が経過する毎に、印刷のための消耗品の使用量に関する現在の情報である使用情報を前記サーバに送信することを試行するプリンタ送信部を備え、
前記サーバは、
メモリと、
前記プリンタから前記使用情報が受信される毎に、前記使用情報と、前記使用情報を受信した日時に関係する日時情報と、を関連付けて前記メモリに記憶する第1の記憶制御部と、を備え、
前記端末装置は、
前記プリンタから現在の前記使用情報を受信する第1の端末受信部と、
前記サーバから、前記サーバが前記プリンタから受信した1個以上の前記使用情報のうちの最新の前記使用情報と、前記最新の使用情報に関連付けられている前記日時情報と、を受信する第2の端末受信部と、
前記プリンタから受信された前記使用情報と、前記サーバから受信された前記使用情報と、前記サーバから受信された前記日時情報と、を利用して、前記使用情報が前記プリンタから前記サーバに送信されているのか否かを判断する端末判断部と、
前記使用情報が前記プリンタから前記サーバに送信されていないと判断される場合に、前記プリンタから受信された前記使用情報を前記サーバに送信する端末送信部であって、前記使用情報が前記プリンタから前記サーバに送信されていると判断される場合に、前記プリンタから受信された前記使用情報は前記サーバに送信されない、前記端末送信部と、を備える、通信システム。
A communication system including a printer, a server, and a terminal device.
The printer
A printer transmitter that attempts to transmit usage information, which is current information regarding the usage amount of consumables for printing, to the server every time the first predetermined time elapses, is provided.
The server
Memory and
Each time the usage information is received from the printer, the first storage control unit that associates the usage information with the date and time information related to the date and time when the usage information is received and stores the usage information in the memory is provided. ,
The terminal device is
A first terminal receiver that receives the current usage information from the printer, and
A second second, from the server, receives the latest usage information of the one or more usage information received by the server from the printer, and the date and time information associated with the latest usage information. Terminal receiver and
The usage information is transmitted from the printer to the server by using the usage information received from the printer, the usage information received from the server, and the date and time information received from the server. The terminal judgment unit that judges whether or not it is
A terminal transmitter that transmits the usage information received from the printer to the server when it is determined that the usage information has not been transmitted from the printer to the server, and the usage information is transmitted from the printer. A communication system including the terminal transmission unit, which does not transmit the usage information received from the printer to the server when it is determined that the information has been transmitted to the server.
前記プリンタは、さらに、
前記第1の所定時間が経過する毎に、前記サーバに今回送信されるべき前記使用情報と、前記サーバに前回送信された前記使用情報と、が一致するのか否かを判断するプリンタ判断部を備え、
前記プリンタ送信部は、今回送信されるべき前記使用情報と、前回送信された前記使用情報と、が一致しないと判断される場合に、前記使用情報を前記サーバに送信することを試行し、
今回送信されるべき前記使用情報と、前回送信された前記使用情報と、が一致すると判断される場合に、前記使用情報は前記サーバに送信されず、
前記端末判断部は、
前記プリンタから受信された前記使用情報と前記サーバから受信された前記使用情報とが一致するのか否かを判断する第1の端末判断部と、
前記日時情報を利用して、前記サーバが前記プリンタから前記使用情報を受信してから前記第1の所定時間が経過したことを示すのか否かを判断する第2の端末判断部と、を備え、
前記端末判断部は、
前記プリンタから受信された前記使用情報と前記サーバから受信された前記使用情報とが一致しないと判断され、かつ、前記第1の所定時間が経過したと判断される場合に、前記使用情報が前記プリンタから前記サーバに送信されていないと判断し、
前記プリンタから受信された前記使用情報と前記サーバから受信された前記使用情報とが一致すると判断される場合に、前記使用情報が前記プリンタから前記サーバに送信されていると判断し、
前記第1の所定時間が経過していないと判断される場合に、前記使用情報が前記プリンタから前記サーバに送信されていると判断する、請求項1に記載の通信システム。
The printer further
Every time the first predetermined time elapses, a printer determination unit that determines whether or not the usage information to be transmitted to the server this time and the usage information previously transmitted to the server match. Prepare,
When it is determined that the usage information to be transmitted this time and the usage information transmitted last time do not match, the printer transmission unit attempts to transmit the usage information to the server.
When it is determined that the usage information to be transmitted this time and the usage information transmitted last time match, the usage information is not transmitted to the server.
The terminal determination unit
A first terminal determination unit that determines whether or not the usage information received from the printer and the usage information received from the server match.
A second terminal determination unit for determining whether or not the first predetermined time has elapsed since the server received the usage information from the printer by using the date and time information is provided. ,
The terminal determination unit
When it is determined that the usage information received from the printer and the usage information received from the server do not match, and it is determined that the first predetermined time has elapsed, the usage information is said to be said. Judging that it has not been sent from the printer to the server,
When it is determined that the usage information received from the printer and the usage information received from the server match, it is determined that the usage information is transmitted from the printer to the server.
The communication system according to claim 1, wherein when it is determined that the first predetermined time has not elapsed, it is determined that the usage information is transmitted from the printer to the server.
端末装置のためのコンピュータプログラムであって、
前記端末装置は、プリンタ及びサーバのそれぞれと通信可能であり、
前記プリンタは、第1の所定時間が経過する毎に、印刷のための消耗品の使用量に関する現在の情報である使用情報を前記サーバに送信することを試行し、
前記サーバは、前記プリンタから前記使用情報が受信される毎に、前記使用情報と、前記使用情報を受信した日時に関係する日時情報と、を関連付けて記憶し、
前記コンピュータプログラムは、前記端末装置のコンピュータを、以下の各部、即ち、
前記プリンタから現在の前記使用情報を受信する第1の受信部と、
前記サーバから、前記サーバが前記プリンタから受信した1個以上の前記使用情報のうちの最新の前記使用情報と、前記最新の使用情報に関連付けられている前記日時情報と、を受信する第2の受信部と、
前記プリンタから受信された前記使用情報と、前記サーバから受信された前記使用情報と、前記サーバから受信された前記日時情報と、を利用して前記使用情報が前記プリンタから前記サーバに送信されているのか否かを判断する判断部と、
前記使用情報が前記プリンタから前記サーバに送信されていないと判断される場合に、前記プリンタから受信された前記使用情報を前記サーバに送信する第1の送信部であって、前記使用情報が前記プリンタから前記サーバに送信されていると判断される場合に、前記プリンタから受信された前記使用情報は前記サーバに送信されない、前記第1の送信部と、
として機能させる、コンピュータプログラム。
A computer program for terminal equipment
The terminal device can communicate with each of the printer and the server, and can communicate with each other.
The printer attempts to transmit usage information, which is current information regarding the usage amount of consumables for printing, to the server each time the first predetermined time elapses.
Each time the usage information is received from the printer, the server stores the usage information in association with the date and time information related to the date and time when the usage information is received.
The computer program uses the computer of the terminal device as the following parts, that is,
A first receiver that receives the current usage information from the printer, and
A second second, from the server, receives the latest usage information of the one or more usage information received by the server from the printer, and the date and time information associated with the latest usage information. Receiver and
The usage information is transmitted from the printer to the server by using the usage information received from the printer, the usage information received from the server, and the date and time information received from the server. Judgment unit to judge whether or not there is
When it is determined that the usage information has not been transmitted from the printer to the server, the usage information is the first transmission unit that transmits the usage information received from the printer to the server, and the usage information is the said. When it is determined that the printer has transmitted the information to the server, the usage information received from the printer is not transmitted to the server.
A computer program that acts as.
前記使用情報は、前記消耗品である色材の残量を示す情報、及び、前記消耗品である印刷用紙の印刷済み枚数を示す情報のうちの少なくとも一方を含む、請求項3に記載のコンピュータプログラム。 The computer according to claim 3, wherein the usage information includes at least one of information indicating the remaining amount of the consumable coloring material and information indicating the number of printed sheets of the consumable printing paper. program. 前記判断部は、
前記プリンタから受信された前記使用情報と前記サーバから受信された前記使用情報とが一致するのか否かを判断する第1の判断部と、
前記日時情報を利用して、前記サーバが前記プリンタから前記使用情報を受信してから前記第1の所定時間が経過したことを示すのか否かを判断する第2の判断部と、を備え、
前記判断部は、
前記プリンタから受信された前記使用情報と前記サーバから受信された前記使用情報とが一致しないと判断され、かつ、前記第1の所定時間が経過したと判断される場合に、前記使用情報が前記プリンタから前記サーバに送信されていないと判断し、
前記プリンタから受信された前記使用情報と前記サーバから受信された前記使用情報とが一致すると判断される場合に、前記使用情報が前記プリンタから前記サーバに送信されていると判断し、
前記第1の所定時間が経過していないと判断される場合に、前記使用情報が前記プリンタから前記サーバに送信されていると判断する、請求項3又は4に記載のコンピュータプログラム。
The judgment unit
A first determination unit for determining whether or not the usage information received from the printer and the usage information received from the server match.
A second determination unit for determining whether or not the first predetermined time has elapsed since the server received the usage information from the printer by using the date and time information is provided.
The judgment unit
When it is determined that the usage information received from the printer and the usage information received from the server do not match, and it is determined that the first predetermined time has elapsed, the usage information is said to be said. Judging that it has not been sent from the printer to the server,
When it is determined that the usage information received from the printer and the usage information received from the server match, it is determined that the usage information is transmitted from the printer to the server.
The computer program according to claim 3 or 4, wherein when it is determined that the first predetermined time has not elapsed, it is determined that the usage information is transmitted from the printer to the server.
前記日時情報は、前記使用情報を受信した日時を示し、
前記第2の判断部は、
前記サーバから受信された前記日時情報によって示される日時と現在日時との差分時間を算出し、
前記差分時間が前記第1の所定時間以上である場合に、前記第1の所定時間が経過したと判断し、
前記差分時間が前記第1の所定時間未満である場合に、前記第1の所定時間が経過していないと判断する、請求項5に記載のコンピュータプログラム。
The date and time information indicates the date and time when the usage information was received.
The second judgment unit is
The difference time between the date and time indicated by the date and time information received from the server and the current date and time is calculated.
When the difference time is equal to or longer than the first predetermined time, it is determined that the first predetermined time has elapsed.
The computer program according to claim 5, wherein when the difference time is less than the first predetermined time, it is determined that the first predetermined time has not elapsed.
前記コンピュータプログラムは、さらに、前記コンピュータを、
前記サーバから、前記第1の所定時間を示す時間情報を受信する第3の受信部として機能させ、
前記第2の判断部は、前記日時情報と前記時間情報とを利用して、前記サーバが前記プリンタから前記使用情報を受信してから前記第1の所定時間が経過したことを示すのか否かを判断する、請求項5又は6に記載のコンピュータプログラム。
The computer program further comprises the computer.
It functions as a third receiving unit that receives time information indicating the first predetermined time from the server.
Whether or not the second determination unit uses the date and time information and the time information to indicate that the first predetermined time has elapsed since the server received the usage information from the printer. The computer program according to claim 5 or 6.
前記第1の送信部は、前記使用情報が前記プリンタから前記サーバに送信されていないと判断され、かつ、前記プリンタから受信された前記使用情報と前記サーバから受信された前記使用情報との差分が第1の閾値以上である場合に、前記プリンタから受信された前記使用情報を前記サーバに送信し、
前記使用情報が前記プリンタから前記サーバに送信されていないと判断され、かつ、前記差分が前記第1の閾値未満である場合に、前記プリンタから受信された前記使用情報は前記サーバに送信されない、請求項3〜7のいずれか一項に記載のコンピュータプログラム。
The first transmission unit determines that the usage information has not been transmitted from the printer to the server, and the difference between the usage information received from the printer and the usage information received from the server. Is equal to or greater than the first threshold value, the usage information received from the printer is transmitted to the server, and
When it is determined that the usage information has not been transmitted from the printer to the server and the difference is less than the first threshold value, the usage information received from the printer is not transmitted to the server. The computer program according to any one of claims 3 to 7.
前記第1の送信部は、前記使用情報が前記プリンタから前記サーバに送信されていないと判断され、かつ、前記プリンタから受信された前記使用情報が第2の閾値以下である場合に、前記プリンタから受信された前記使用情報を前記サーバに送信し、
前記使用情報が前記プリンタから前記サーバに送信されていないと判断され、かつ、前記プリンタから受信された前記使用情報が前記第2の閾値よりも大きい場合に、前記プリンタから受信された前記使用情報は前記サーバに送信されない、請求項3〜8のいずれか一項に記載のコンピュータプログラム。
The first transmission unit determines that the usage information has not been transmitted from the printer to the server, and the usage information received from the printer is equal to or less than the second threshold value. The usage information received from is transmitted to the server,
The usage information received from the printer when it is determined that the usage information has not been transmitted from the printer to the server and the usage information received from the printer is larger than the second threshold value. Is the computer program according to any one of claims 3 to 8, which is not transmitted to the server.
前記第1の受信部は、ユーザによって指定される第2の所定時間が経過する毎に、前記プリンタから前記使用情報を受信し、
前記第2の受信部は、前記第2の所定時間が経過する毎に、前記サーバから、前記最新の使用情報と、前記最新の使用情報に関連付けられている前記日時情報と、を受信する、請求項3〜9のいずれか一項に記載のコンピュータプログラム。
The first receiving unit receives the usage information from the printer every time the second predetermined time specified by the user elapses.
The second receiving unit receives the latest usage information and the date and time information associated with the latest usage information from the server each time the second predetermined time elapses. The computer program according to any one of claims 3 to 9.
前記使用情報は、前記消耗品である色材の残量を示す情報であり、
前記コンピュータプログラムは、さらに、前記コンピュータを、
前記サーバによって受信された前記使用情報によって示される前記残量が発注閾値以下である場合に、前記サーバから発注確認要求を受信する第4の受信部であって、前記発注確認要求は、前記サーバが前記消耗品を発注するための発注処理を実行すべきか否かを確認するためのコマンドである、前記第4の受信部と、
前記サーバから前記発注確認要求が受信される場合に、前記サーバが前記発注処理を実行すべきか否かをユーザに選択させるための選択画面を前記端末装置の表示部に表示させる表示制御部と、
前記選択画面において、前記サーバが前記発注処理を実行すべきことが前記ユーザによって選択される場合に、前記発注処理を前記サーバに実行させるための発注指示を前記サーバに送信する第2の送信部であって、前記選択画面において、前記サーバが前記発注処理を実行すべきことが前記ユーザによって選択されない場合に、前記発注指示は前記サーバに送信されない、前記第2の送信部と、として機能させる、請求項3〜10のいずれか一項に記載のコンピュータプログラム。
The usage information is information indicating the remaining amount of the coloring material which is the consumable item.
The computer program further comprises the computer.
A fourth receiving unit that receives an order confirmation request from the server when the remaining amount indicated by the usage information received by the server is equal to or less than the order threshold value, and the order confirmation request is the server. Is a command for confirming whether or not the ordering process for ordering the consumables should be executed.
When the order confirmation request is received from the server, a display control unit that causes the display unit of the terminal device to display a selection screen for allowing the user to select whether or not the server should execute the order processing.
On the selection screen, when the user selects that the server should execute the order processing, a second transmission unit that transmits an order instruction for causing the server to execute the order processing. In the selection screen, when the user does not select that the server should execute the order processing, the order instruction is not transmitted to the server, and functions as the second transmission unit. , The computer program according to any one of claims 3 to 10.
端末装置であって、
前記端末装置は、プリンタ及びサーバのそれぞれと通信可能であり、
前記プリンタは、第1の所定時間が経過する毎に、印刷のための消耗品の使用量に関する現在の情報である使用情報を前記サーバに送信することを試行し、
前記サーバは、前記プリンタから前記使用情報が受信される毎に、前記使用情報と、前記使用情報を受信した日時に関係する日時情報と、を関連付けて記憶し、
前記端末装置は、
前記プリンタから現在の前記使用情報を受信する第1の受信部と、
前記サーバから、前記サーバが前記プリンタから受信した1個以上の前記使用情報のうちの最新の前記使用情報と、前記最新の使用情報に関連付けられている前記日時情報と、を受信する第2の受信部と、
前記プリンタから受信された前記使用情報と、前記サーバから受信された前記使用情報と、前記サーバから受信された前記日時情報と、を利用して前記使用情報が前記プリンタから前記サーバに送信されているのか否かを判断する判断部と、
前記使用情報が前記プリンタから前記サーバに送信されていないと判断される場合に、前記プリンタから受信された前記使用情報を前記サーバに送信する第1の送信部であって、前記使用情報が前記プリンタから前記サーバに送信されていると判断される場合に、前記プリンタから受信された前記使用情報は前記サーバに送信されない、前記第1の送信部と、
を備える、端末装置。
It ’s a terminal device,
The terminal device can communicate with each of the printer and the server, and can communicate with each other.
The printer attempts to transmit usage information, which is current information regarding the usage amount of consumables for printing, to the server each time the first predetermined time elapses.
Each time the usage information is received from the printer, the server stores the usage information in association with the date and time information related to the date and time when the usage information is received.
The terminal device is
A first receiver that receives the current usage information from the printer, and
A second second, from the server, receives the latest usage information of the one or more usage information received by the server from the printer, and the date and time information associated with the latest usage information. Receiver and
The usage information is transmitted from the printer to the server by using the usage information received from the printer, the usage information received from the server, and the date and time information received from the server. Judgment unit to judge whether or not there is
When it is determined that the usage information has not been transmitted from the printer to the server, the usage information is the first transmission unit that transmits the usage information received from the printer to the server, and the usage information is the said. When it is determined that the printer has transmitted the information to the server, the usage information received from the printer is not transmitted to the server.
A terminal device.
JP2019176933A 2019-09-27 2019-09-27 COMPUTER PROGRAM FOR COMMUNICATION SYSTEM, TERMINAL DEVICE, AND TERMINAL DEVICE Active JP7327048B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019176933A JP7327048B2 (en) 2019-09-27 2019-09-27 COMPUTER PROGRAM FOR COMMUNICATION SYSTEM, TERMINAL DEVICE, AND TERMINAL DEVICE

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019176933A JP7327048B2 (en) 2019-09-27 2019-09-27 COMPUTER PROGRAM FOR COMMUNICATION SYSTEM, TERMINAL DEVICE, AND TERMINAL DEVICE

Publications (2)

Publication Number Publication Date
JP2021056597A true JP2021056597A (en) 2021-04-08
JP7327048B2 JP7327048B2 (en) 2023-08-16

Family

ID=75270714

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019176933A Active JP7327048B2 (en) 2019-09-27 2019-09-27 COMPUTER PROGRAM FOR COMMUNICATION SYSTEM, TERMINAL DEVICE, AND TERMINAL DEVICE

Country Status (1)

Country Link
JP (1) JP7327048B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011138339A (en) * 2009-12-28 2011-07-14 Brother Industries Ltd Consumables-usability determination program and system
JP2016045550A (en) * 2014-08-20 2016-04-04 セイコーエプソン株式会社 Printing consumable management system and consumable management server
JP2019008142A (en) * 2017-06-26 2019-01-17 株式会社沖データ Consumable supply replacement method and image forming system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011138339A (en) * 2009-12-28 2011-07-14 Brother Industries Ltd Consumables-usability determination program and system
JP2016045550A (en) * 2014-08-20 2016-04-04 セイコーエプソン株式会社 Printing consumable management system and consumable management server
JP2019008142A (en) * 2017-06-26 2019-01-17 株式会社沖データ Consumable supply replacement method and image forming system

Also Published As

Publication number Publication date
JP7327048B2 (en) 2023-08-16

Similar Documents

Publication Publication Date Title
JP6891718B2 (en) Communication device
JP6841052B2 (en) Communication system and registration server
US20100296123A1 (en) Image forming apparatus convenient for user when executable job is restricted due to maintenance operation, method for controlling image forming apparatus and recoding medium recording control program of image forming apparatus
JP7035803B2 (en) Image processing equipment and computer programs for image processing equipment
US9671982B2 (en) Method of performing cloud printing and mobile device, image forming apparatus, and cloud printing system for performing using the same
JP2021162914A (en) Communication system, printer, method executed by communication system, and computer program for printer
JP6828637B2 (en) Image processing device
JP7056148B2 (en) Computer programs for communication systems, terminal devices, and computers
JP7327048B2 (en) COMPUTER PROGRAM FOR COMMUNICATION SYSTEM, TERMINAL DEVICE, AND TERMINAL DEVICE
EP3916537A1 (en) Server, printer, and computer programs for server and printer
JP2012247893A (en) Printing system
JP7272049B2 (en) server and computer program for server
JP2021163309A (en) Printer and server and computer program for these
JP6965786B2 (en) Communication device
JP7392403B2 (en) Servers and computer programs for servers
CN114585518A (en) Program and printing system
JP6776779B2 (en) Communication device
JP2021077105A (en) Server and computer program for server
US11962726B2 (en) Printing system and control method therefor
JP2019207480A (en) Computer program for communication device, communication device, and computer program for server
JP6881033B2 (en) Management server
EP4198707A1 (en) Server and control method for server
EP4187366A1 (en) Specific communication device, and non-transitory computer-readable recording medium storing computer readable instructions for specific communication device
JP2022131287A (en) Communication system, application program for terminal device, server, and computer program for server
JP2020135347A (en) Mediation server and computer program for mediation server

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220830

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20230517

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20230523

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230608

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20230704

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230717

R150 Certificate of patent or registration of utility model

Ref document number: 7327048

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150