JP2019067010A - Communication device and computer program - Google Patents

Communication device and computer program Download PDF

Info

Publication number
JP2019067010A
JP2019067010A JP2017189751A JP2017189751A JP2019067010A JP 2019067010 A JP2019067010 A JP 2019067010A JP 2017189751 A JP2017189751 A JP 2017189751A JP 2017189751 A JP2017189751 A JP 2017189751A JP 2019067010 A JP2019067010 A JP 2019067010A
Authority
JP
Japan
Prior art keywords
communication
state
address
information
printer
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
JP2017189751A
Other languages
Japanese (ja)
Other versions
JP6931193B2 (en
Inventor
野川 英樹
Hideki Nogawa
英樹 野川
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 JP2017189751A priority Critical patent/JP6931193B2/en
Publication of JP2019067010A publication Critical patent/JP2019067010A/en
Application granted granted Critical
Publication of JP6931193B2 publication Critical patent/JP6931193B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)
  • Facsimiles In General (AREA)
  • Small-Scale Networks (AREA)

Abstract

To allow a communication device to appropriately manage state information on a first peripheral device and state information on a second peripheral device.SOLUTION: A communication device receives first state information on a first peripheral device via a first type of communication interface (IF), transmits the first state information to a management device via a second type of communication IF by using a first address, and detects transition from a first communication state in which the communication device can communicate with the first peripheral device via the first type of communication IF but cannot communicate with a second peripheral device via the first type of communication IF to a second communication state in which the communication device can communicate with the second peripheral device via the first type of communication IF. If the transition is detected, the communication device receives second state information on the second peripheral device via the first type of communication IF, and transmits the second state information to the management device via the second type of communication IF by using a second address.SELECTED DRAWING: Figure 2

Description

本明細書は、周辺装置と管理装置と通信可能な通信装置、および、該通信装置のコンピュータにて実行されるコンピュータプログラムに関する。   The present specification relates to a communication device capable of communicating with a peripheral device and a management device, and a computer program executed by a computer of the communication device.

特許文献1には、LAN(Local Area Network)を介して相互に接続された管理装置と、ユーザの端末装置と、を備え、端末装置にローカルプリンタがUSBケーブルを介して接続されるシステムが開示されている。このシステムでは、管理装置は、端末装置にローカルプリンタが接続されているか否かを判定する。管理装置は、端末装置にローカルプリンタが接続されていると判定する場合には、配信サーバから端末装置に印刷管理プログラムを配信させる。この結果、端末装置に、印刷管理プログラムがインストールされる。端末装置は、印刷管理プログラムを利用して、ローカルプリンタの印刷枚数の情報を管理装置に送信する。これにより、管理装置は、端末装置に接続されたローカルプリンタの印刷枚数を管理することができる。   Patent Document 1 discloses a system including a management device mutually connected via a LAN (Local Area Network) and a terminal device of a user, and a local printer is connected to the terminal device via a USB cable. It is done. In this system, the management device determines whether a local printer is connected to the terminal device. When determining that the local printer is connected to the terminal device, the management device causes the distribution server to distribute the print management program to the terminal device. As a result, the print management program is installed in the terminal device. The terminal device transmits information on the number of printed sheets of the local printer to the management device using the print management program. Thus, the management apparatus can manage the number of printed sheets of the local printer connected to the terminal apparatus.

特開2013−61784号公報JP, 2013-61784, A 特開2000−293324号公報JP, 2000-293324, A

しかしながら、上記技術では、端末装置が、一のローカルプリンタと別のローカルプリンタと通信し得る場合には、管理装置は、これらのローカルプリンタの状態情報(例えば、印刷枚数)を適切に管理できない可能性があった。例えば、管理装置は、一のローカルプリンタの印刷枚数と、別のローカルプリンタの印刷枚数と、を区別して管理できない可能性があった。このような課題は、端末装置などの通信装置が、第1の周辺装置と第2の周辺装置と通信し得る場合に、共通する課題であった。   However, in the above technology, when the terminal device can communicate with one local printer and another local printer, the management device can not appropriately manage the status information (for example, the number of printed sheets) of these local printers. There was a sex. For example, the management apparatus may not be able to distinguish and manage the number of prints of one local printer and the number of prints of another local printer. Such a problem is a common problem when a communication device such as a terminal device can communicate with the first peripheral device and the second peripheral device.

本明細書は、通信装置が、第1の周辺装置と第2の周辺装置と通信し得る場合に、第1の周辺装置の状態情報と第2の周辺装置の状態情報とを適切に管理できる技術を開示する。   The present specification can appropriately manage the state information of the first peripheral device and the state information of the second peripheral device when the communication device can communicate with the first peripheral device and the second peripheral device. Disclose technology.

本明細書に開示された技術は、上述の課題の少なくとも一部を解決するためになされたものであり、以下の適用例として実現することが可能である。   The technology disclosed in the present specification is made to solve at least a part of the above-mentioned problems, and can be realized as the following application example.

[適用例1]第1種の通信インタフェースと、第2種の通信インタフェースと、を備える通信装置のコンピュータに実行されるコンピュータプログラムであって、前記第1種の通信インタフェースを介して、第1の周辺装置から前記第1の周辺装置の第1の状態情報を受信する状態受信機能と、前記第2種の通信インタフェースを介して、前記第1の周辺装置の前記第1の状態情報を前記通信装置に割り当て済みの第1のアドレスを用いて管理装置に送信する状態送信機能と、前記第1種の通信インタフェースを介して前記通信装置が前記第1の周辺装置と通信可能であり、前記第1種の通信インタフェースを介して前記通信装置が第2の周辺装置と通信可能でない第1の通信状態から、前記第1種の通信インタフェースを介して前記通信装置が前記第2の周辺装置と通信可能である第2の通信状態への遷移を検出する通信検出機能と、前記第1の通信状態から前記第2の通信状態への遷移が検出される場合に、前記第1のアドレスとは異なる第2のアドレスを取得するアドレス取得機能と、を前記コンピュータに実現させ、前記状態受信機能は、前記第2の通信状態において、前記第1種の通信インタフェースを介して、前記第2の周辺装置から前記第2の周辺装置の第2の状態情報を受信し、前記状態送信機能は、前記第2の通信状態において、前記第2種の通信インタフェースを介して、前記第2の周辺装置の前記第2の状態情報を前記第2のアドレスを用いて前記管理装置に送信する、コンピュータプログラム。 [Example 1 of application] A computer program executed by a computer of a communication device including a first type of communication interface and a second type of communication interface, wherein the first program is executed via the first type of communication interface. The first state information of the first peripheral device via the state receiving function of receiving the first state information of the first peripheral device from the peripheral device and the second type communication interface; A state transmission function of transmitting to the management apparatus using the first address assigned to the communication apparatus, and the communication apparatus can communicate with the first peripheral apparatus via the first type communication interface; From the first communication state in which the communication device can not communicate with the second peripheral device through the first type of communication interface, the communication device can be transmitted through the first type of communication interface A communication detection function of detecting a transition to a second communication state in which the second communication device can communicate with the second peripheral device, and a transition from the first communication state to the second communication state is detected An address acquiring function of acquiring a second address different from the first address in the computer, and the state receiving function is configured to execute the first type communication interface in the second communication state; Receiving second status information of the second peripheral device from the second peripheral device via the second type communication interface in the second communication status; A computer program for transmitting the second status information of the second peripheral device to the management device using the second address.

上記構成によれば、通信装置は、第1のアドレスを用いて、第1の周辺装置の第1の状態情報を管理装置に送信し、第2のアドレスを用いて、第2の周辺装置の第2の状態情報を管理装置に送信する。この結果、管理装置は、アドレスに基づいて、第1の周辺装置の第1の状態情報と、第2の周辺装置の第2の状態情報と、を区別できる。したがって、通信装置が、第1の周辺装置と第2の周辺装置と通信し得る場合に、管理装置は、第1の周辺装置の第1の状態情報と第2の周辺装置の第2の状態情報とを適切に管理できる。   According to the above configuration, the communication device transmits the first status information of the first peripheral device to the management device using the first address, and uses the second address to transmit the first status information of the second peripheral device. The second state information is sent to the management device. As a result, the management device can distinguish the first state information of the first peripheral device and the second state information of the second peripheral device based on the address. Thus, if the communication device can communicate with the first peripheral device and the second peripheral device, the management device can generate the first state information of the first peripheral device and the second state of the second peripheral device. We can manage information and appropriately.

なお、本明細書に開示される技術は、種々の形態で実現することが可能であり、例えば、通信装置、通信装置と管理装置とを含むシステム、通信方法、周辺装置の管理方法、これら装置の機能または上記方法を実現するためのコンピュータプログラム、そのコンピュータプログラムを記録した記録媒体、等の形態で実現することができる。   Note that the technology disclosed in the present specification can be realized in various forms. For example, a communication device, a system including a communication device and a management device, a communication method, a peripheral device management method, and these devices The present invention can be realized in the form of a computer program for realizing the functions of the above or the method, a recording medium recording the computer program, and the like.

システム1000の構成を示すブロック図。FIG. 1 is a block diagram showing the configuration of a system 1000. 装置情報受信処理のフローチャート。The flowchart of apparatus information reception processing. 装置情報送信処理のフローチャート。The flowchart of apparatus information transmission processing. システム1000の動作を示す第1のシーケンス図。FIG. 10 is a first sequence diagram showing the operation of the system 1000. システム1000の動作を示す第2のシーケンス図。FIG. 10 is a second sequence diagram showing the operation of the system 1000. 管理サーバ300に格納されるプリンタ管理テーブルPMTの一例を示す図。FIG. 6 is a view showing an example of a printer management table PMT stored in the management server 300. システム1000の動作を示す第3のシーケンス図。FIG. 10 is a third sequence diagram showing the operation of the system 1000.

A.実施例
A−1:システム1000の構成
図1は、システム1000の構成を示すブロック図である。システム1000は、本実施例の通信装置としての端末装置100と、周辺装置としてのプリンタ200A、200Bと、管理装置としての管理サーバ300と、DHCPサーバ400と、ネットワークプリンタ500と、を備える。端末装置100と、管理サーバ300と、DHCPサーバ400と、ネットワークプリンタ500とは、ローカルエリアネットワークNTに接続されている。これらの装置100、300、400、500は、ローカルエリアネットワークNTを介して、互いに通信可能である。プリンタ200A、200Bは、USBケーブルを介して端末装置100と接続可能である。
A. Embodiment A-1: Configuration of System 1000 FIG. 1 is a block diagram showing the configuration of the system 1000. As shown in FIG. The system 1000 includes a terminal device 100 as the communication device of the present embodiment, printers 200A and 200B as peripheral devices, a management server 300 as a management device, a DHCP server 400, and a network printer 500. The terminal device 100, the management server 300, the DHCP server 400, and the network printer 500 are connected to the local area network NT. These devices 100, 300, 400, 500 can communicate with one another via a local area network NT. The printers 200A and 200B can be connected to the terminal device 100 via a USB cable.

端末装置100は、端末装置100のコントローラとしてのCPU110と、DRAMなどの揮発性記憶装置120と、ハードディスクやフラッシュメモリなどの不揮発性記憶装置130と、画像を表示する液晶ディスプレイなどの表示部140と、ユーザによる操作を取得するためのキーボードやマウスなどの操作部150と、USBインタフェース(IF)170と、ネットワークインタフェース(IF)180と、を備えている。   The terminal device 100 includes a CPU 110 as a controller of the terminal device 100, a volatile storage device 120 such as a DRAM, a non-volatile storage device 130 such as a hard disk or a flash memory, and a display unit 140 such as a liquid crystal display that displays an image. And an operation unit 150 such as a keyboard or a mouse for acquiring an operation by the user, a USB interface (IF) 170, and a network interface (IF) 180.

USBIF170は、シリアルバス規格の一つであるUSB(Universal Serial Bus)規格に従ったデータ通信を行うためのインタフェースである。端末装置100は、プリンタ200A、200BとUSBケーブルを介して接続された状態で、読取実行部170を介して、プリンタ200A、200Bと通信可能である。   The USB IF 170 is an interface for performing data communication in accordance with the USB (Universal Serial Bus) standard which is one of serial bus standards. The terminal device 100 can communicate with the printers 200A and 200B via the reading execution unit 170 in a state of being connected to the printers 200A and 200B via the USB cable.

ネットワークIF180は、ローカルエリアネットワークNTに接続されている。ネットワークIF180は、OSI参照モデルのネットワーク層のプロトコルとしてIP(Internet Protocol)を用いる通信規格に従ってデータ通信を行うためのインタフェースである。具体的には、ネットワークIF180は、イーサネット(登録商標)に準拠した有線のインタフェースや、Wi−Fi規格(IEEE(The Institute of Electrical and Electronics Engineers, Inc.の略)の802.11の規格又はそれに準ずる規格(例えば、802.11a,11b,11g,11n等)に従った規格)に準拠した無線のインタフェースである。   The network IF 180 is connected to the local area network NT. The network IF 180 is an interface for performing data communication in accordance with a communication standard using IP (Internet Protocol) as a protocol of the network layer of the OSI reference model. Specifically, the network IF 180 is a wired interface compliant with Ethernet (registered trademark), an 802.11 (WiFi) standard (IE (abbreviation of The Institute of Electrical and Electronics Engineers, Inc.)) or an 802.11 standard thereof. It is a wireless interface compliant with the corresponding standard (for example, a standard conforming to 802.11a, 11b, 11g, 11n, etc.).

CPU110は、データ処理を行う演算装置(プロセッサ)である。揮発性記憶装置120は、CPU110が処理を行う際に生成される種々の中間データを一時的に格納するバッファ領域を提供する。揮発性記憶装置120は、管理サーバ300に送信すべきプリンタ200A、200Bの状態情報(後述)を格納する送信情報領域SAとして利用される。不揮発性記憶装置130には、コンピュータプログラムPGと、IPアドレスDAと、プリンタ識別情報PIDと、が格納されている。   The CPU 110 is an arithmetic unit (processor) that performs data processing. The volatile storage device 120 provides a buffer area for temporarily storing various intermediate data generated when the CPU 110 performs processing. The volatile storage device 120 is used as a transmission information area SA for storing status information (described later) of the printers 200A and 200B to be transmitted to the management server 300. The non-volatile storage device 130 stores a computer program PG, an IP address DA, and printer identification information PID.

IPアドレスDAは、端末装置100に割り当てられたIPアドレスであり、ローカルエリアネットワークNTを介した通信にて用いられるように設定されたローカルIPアドレスである。さらに、このIPアドレスDAは、動的に変更されない固定IPアドレスである。初期のIPアドレスDAは、例えば、ユーザによって手入力で設定される。   The IP address DA is an IP address assigned to the terminal device 100, and is a local IP address set to be used for communication via the local area network NT. Furthermore, this IP address DA is a fixed IP address that is not changed dynamically. The initial IP address DA is set manually by the user, for example.

プリンタ識別情報PIDは、USBIF170に接続されているローカルプリンタ、本実施例では、プリンタ200A、200Bのうちのいずれかを識別するための識別情報であり、具体的には、プリンタ200A、200Bのシリアル番号である。   The printer identification information PID is identification information for identifying a local printer connected to the USB IF 170, which is any one of the printers 200A and 200B in the present embodiment, and more specifically, serials of the printers 200A and 200B. It is a number.

コンピュータプログラムPGは、例えば、プリンタ200A、200Bのベンダによって運営されるサーバ(図示省略)からダウンロードされる形態で提供されるアプリケーションプログラムである。これに代えて、コンピュータプログラムPGは、CD−ROMなどに記録された形態で提供されても良く、端末装置100の製造時に不揮発性記憶装置130に予め格納されて提供されても良い。   The computer program PG is, for example, an application program provided in the form of being downloaded from a server (not shown) operated by a vendor of the printer 200A, 200B. Alternatively, the computer program PG may be provided in the form of being recorded on a CD-ROM or the like, or may be provided in advance in the non-volatile storage device 130 when the terminal device 100 is manufactured.

CPU110は、コンピュータプログラムPGを実行することによって、後述する装置情報送信処理と、装置情報受信処理と、を実行する。これによって、端末装置100は、USBIF170に接続されたプリンタ(例えば、プリンタ200A、200B)の状態情報(後述)を含む装置情報を、該プリンタから受信し、該装置情報を管理サーバ300に送信する。   The CPU 110 executes a computer program PG to execute an apparatus information transmission process and an apparatus information reception process described later. Accordingly, the terminal device 100 receives device information including status information (described later) of the printer (for example, the printers 200A and 200B) connected to the USB IF 170 from the printer, and transmits the device information to the management server 300. .

プリンタ200Aは、上述したように、USBケーブルを介して端末装置100と接続されるローカルプリンタである。プリンタ200Aは、印刷実行部240Aと、情報データベース(DB)250Aと、を備えている。   As described above, the printer 200A is a local printer connected to the terminal device 100 via the USB cable. The printer 200A includes a print execution unit 240A and an information database (DB) 250A.

印刷実行部240Aは、例えば、端末装置100から受信される印刷ジョブに従って、印刷処理を実行する。印刷処理は、所定の方式(例えば、レーザ方式や、インクジェット方式)に従って、印刷材(例えば、トナーやインク)を用いて、用紙(印刷媒体の一例)上に画像を印刷する処理である。   The print execution unit 240A executes print processing, for example, in accordance with the print job received from the terminal device 100. The printing process is a process of printing an image on a sheet (an example of a printing medium) using a printing material (for example, toner or ink) according to a predetermined system (for example, a laser system or an inkjet system).

情報DB250Aは、プリンタ200Aに関する装置情報が格納されたデータベースである。プリンタ200Aに関する装置情報は、上述したシリアル番号やモデル名を示す情報や、プリンタ200Aの状態(ステータス)を示す状態情報を含む。状態情報は、複数個の項目を含む。複数個の項目は、例えば、印刷実行部240Aにおける消耗品の残量を示す情報と、消耗品の交換回数を示す情報と、印刷枚数を示す情報と、印刷実行部240Aにおけるエラーに関する情報と、を含む。消耗品の残量は、例えば、トナーやインクなどの印刷材の残量、印刷実行部240Aの用紙トレイの用紙の残量(残りの枚数)を含む。消耗品の交換回数は、例えば、トナーカートリッジやインクカートリッジなどの印刷材の容器の交換回数を含む。印刷枚数は、例えば、印刷実行部240Aの累積印刷枚数や、用紙のサイズごとの印刷枚数を含む。エラーに関する情報は、例えば、エラーの有無(正常か否か)を示す情報や、発生しているエラーの種類を示す情報を含む。   The information DB 250A is a database in which device information on the printer 200A is stored. The device information on the printer 200A includes information indicating the above-described serial number and model name, and status information indicating the status (status) of the printer 200A. Status information includes a plurality of items. The plurality of items include, for example, information indicating the remaining amount of consumables in the print execution unit 240A, information indicating the number of replacements of consumables, information indicating the number of printed sheets, and information on errors in the print execution unit 240A. including. The remaining amount of consumables includes, for example, the remaining amount of printing material such as toner and ink, and the remaining amount (remaining number of sheets) of the sheet of the sheet tray of the print execution unit 240A. The number of times of replacement of consumables includes, for example, the number of times of replacement of a container of printing material such as a toner cartridge or an ink cartridge. The print count includes, for example, the cumulative print count of the print execution unit 240A or the print count for each sheet size. The information related to the error includes, for example, information indicating the presence or absence of an error (normal or not), and information indicating the type of error that has occurred.

プリンタ200Bは、プリンタ200Aと同様のローカルプリンタである。プリンタ200Bは、プリンタ200Aと同様の印刷実行部240Bおよび情報DB250Bを備える。   The printer 200B is a local printer similar to the printer 200A. The printer 200B includes a print execution unit 240B and an information DB 250B similar to the printer 200A.

ネットワークプリンタ500は、ローカルエリアネットワークNTに接続され、ローカルエリアネットワークNTに接続される装置(例えば、管理サーバ300や端末装置100)と通信可能である。ネットワークプリンタ500は、ローカルエリアネットワークNTを介して印刷ジョブを受信して印刷を実行する。ネットワークプリンタ500は、プリンタ200Aと同様の印刷実行部540および情報DB550を備える。   The network printer 500 is connected to the local area network NT, and can communicate with devices (for example, the management server 300 and the terminal device 100) connected to the local area network NT. The network printer 500 receives a print job via the local area network NT and executes printing. The network printer 500 includes a print execution unit 540 similar to the printer 200A and an information DB 550.

管理サーバ300は、図示しないCPUとメモリとを備える計算機である。管理サーバ300は、ローカルエリアネットワークNTを介して、システム1000内のプリンタ、すなわち、プリンタ200A、200B、ネットワークプリンタ500の状態情報を含む装置情報を収集する。装置情報の収集には、本実施例では、SNMP(Simple Network Management Protocol)が用いられる。管理サーバ300は、収集された装置情報を、例えば、システム1000を管理する事業者のサーバ(図示省略)に対して、インターネットを介して送信する。事業者は、たとえば、管理サーバ300から送信された装置情報に基づいて、システム1000内のプリンタの印刷枚数や、印刷材などの消耗品の残量を把握し、例えば、印刷枚数に応じた課金や印刷材の供給を行う。   The management server 300 is a computer provided with a CPU and a memory (not shown). The management server 300 collects device information including status information of the printers in the system 1000, that is, the printers 200A and 200B and the network printer 500, via the local area network NT. In the present embodiment, a Simple Network Management Protocol (SNMP) is used to collect device information. The management server 300 transmits the collected device information, for example, to the server (not shown) of the provider who manages the system 1000 via the Internet. The business operator grasps, for example, the number of printed sheets of the printer in the system 1000 and the remaining amount of consumables such as printing materials based on the device information transmitted from the management server 300, for example, charging according to the number of printed sheets. And supply of printing materials.

DHCPサーバ400は、DHCP(Dynamic Host Configuration Protocol)に従って動作するアドレス割当装置である。DHCPサーバ400は、ローカルエリアネットワークNT内に接続された装置(例えば、端末装置100や、図示しないユーザの端末装置)からのアドレスの要求に応じて、該要求の送信元の装置にIPアドレスを動的に割り当てる。なお、詳細は後述するが、DHCPサーバ400は、システム1000において、ローカルエリアネットワークNTに接続されていなくても良い。   The DHCP server 400 is an address assignment device that operates in accordance with Dynamic Host Configuration Protocol (DHCP). In response to a request for an address from a device (for example, the terminal device 100 or a terminal device of a user (not shown)) connected in the local area network NT, the DHCP server 400 transmits an IP address to the device of the transmission source of the request Assign dynamically. Although the details will be described later, the DHCP server 400 may not be connected to the local area network NT in the system 1000.

A−2:システム1000の動作
端末装置100のCPU110は、装置情報受信処理と装置情報送信処理とを、電源が投入されている間に、常時、並行して実行している。これにより、端末装置100は、USBIF170に接続されたプリンタ(例えば、プリンタ200A、200B)の状態情報を含む装置情報を、該プリンタから受信し、該装置情報を管理サーバ300に送信する。
A-2: Operation of System 1000 The CPU 110 of the terminal device 100 always executes device information reception processing and device information transmission processing in parallel while power is on. Accordingly, the terminal device 100 receives device information including status information of a printer (for example, the printers 200A and 200B) connected to the USB IF 170 from the printer, and transmits the device information to the management server 300.

A−2−1:装置情報受信処理
図2は、装置情報受信処理のフローチャートである。ここでは、USBIF170にプリンタ200Aが接続されているとして説明する。S105では、CPU110は、USBIF170に接続されたプリンタの装置情報の受信時間が到来したか否かを判断する。本実施例では、CPU110は、定期的、例えば、数時間に1回の頻度で、USBIF170に接続されたプリンタから該プリンタの装置情報を受信する。
A-2-1: Device Information Reception Process FIG. 2 is a flowchart of the device information reception process. Here, it is assumed that the printer 200A is connected to the USB IF 170. In step S105, the CPU 110 determines whether the reception time of the device information of the printer connected to the USB IF 170 has arrived. In the present embodiment, the CPU 110 receives device information of the printer from the printer connected to the USB IF 170 periodically, for example, once every several hours.

受信時間が到来していない場合には(S105:NO)、CPU110は、受信時間が到来するまで待機する。受信時間が到来した場合には(S105:YES)、S110にて、CPU110は、USBIF170を介して、プリンタ200Aに装置情報の要求を送信する。ここで送信される装置情報の供給は、本実施例では、プリンタのシリアル番号の要求と、モデル名の要求と、状態情報としての累積印刷枚数の要求と、状態情報としての印刷材の残量の要求と、を含む。装置情報の要求には、例えば、PJL(Printer Job Language)を用いて記述されたコマンドが用いられる。USBIF170に接続されているプリンタ200Aは、装置情報の要求に応じて、該要求にて指定された装置情報を情報DB250Aから取得して、端末装置100に送信する。   If the reception time has not arrived (S105: NO), the CPU 110 stands by until the reception time arrives. If the reception time has come (S105: YES), the CPU 110 transmits a request for apparatus information to the printer 200A via the USB IF 170 in S110. In this embodiment, the supply of the device information transmitted here is a request for the serial number of the printer, a request for the model name, a request for the cumulative number of printed sheets as status information, and the remaining amount of printing material as status information. And the requirements of For the device information request, for example, a command described using PJL (Printer Job Language) is used. The printer 200A connected to the USB IF 170 acquires the device information specified by the request from the information DB 250A in response to the request for the device information, and transmits the device information to the terminal device 100.

S115では、CPU110は、装置情報の要求に対する応答として、プリンタから装置情報を受信する。ここで受信される装置情報は、本実施例では、上述したように、プリンタのシリアル番号と、モデル名と、状態情報としての累積印刷枚数および印刷材の残量と、を含む。   In S115, the CPU 110 receives the device information from the printer as a response to the request for the device information. In the present embodiment, as described above, the device information received here includes the serial number of the printer, the model name, the cumulative number of printed sheets as status information, and the remaining amount of printing material.

S120では、CPU110は、受信済みの装置情報を送信情報領域SAに格納する。送信情報領域SAに格納済みの装置情報は、後述するように、管理サーバ300からのSNMP要求に応じて、管理サーバ300に送信される。   In S120, the CPU 110 stores the received device information in the transmission information area SA. The device information stored in the transmission information area SA is transmitted to the management server 300 in response to an SNMP request from the management server 300 as described later.

S125では、CPU110は、USBIF170に接続されたプリンタが、端末装置100が認識しているプリンタから変更されたか否かを判断する。具体的には、CPU110は、不揮発性記憶装置130にプリンタ識別情報PIDとして記録済みのプリンタのシリアル番号と、S115にて受信済みのプリンタのシリアル番号と、を比較する。プリンタ識別情報PIDとして記録済みのプリンタのシリアル番号と、S115にて受信済みのプリンタのシリアル番号とが、異なる場合には、USBIF170に接続されたプリンタは変更されたと判断される。プリンタ識別情報PIDとして記録済みのプリンタのシリアル番号と、S115にて受信済みのプリンタのシリアル番号とが、同一である場合には、USBIF170に接続されたプリンタは変更されていないと判断される。例えば、前回の受信時間から今回の受信時間との間に、USBIF170に接続されたプリンタ200Aが取り外され、プリンタ200Aに代えてプリンタ200Bが新たにUSBIF170に接続された場合には、本ステップにおいて、USBIF170に接続されたプリンタは変更されたと判断される。   In S125, the CPU 110 determines whether the printer connected to the USB IF 170 has been changed from the printer recognized by the terminal device 100. Specifically, the CPU 110 compares the serial number of the printer recorded in the non-volatile storage device 130 as the printer identification information PID with the serial number of the printer received in S115. If the serial number of the printer recorded as the printer identification information PID is different from the serial number of the printer received at S115, it is determined that the printer connected to the USB IF 170 has been changed. If the serial number of the printer recorded as the printer identification information PID is the same as the serial number of the printer received at S115, it is determined that the printer connected to the USB IF 170 has not been changed. For example, when the printer 200A connected to the USB IF 170 is removed between the previous reception time and the current reception time, and the printer 200B is newly connected to the USB IF 170 instead of the printer 200A, in this step: It is determined that the printer connected to the USB IF 170 has been changed.

USBIF170に接続されたプリンタが変更された場合には(S125:YES)、S130にて、CPU110は、不揮発性記憶装置130のプリンタ識別情報PIDを更新する。具体的には、S115にて受信済みのプリンタのシリアル番号が、新たなプリンタ識別情報PIDとして、不揮発性記憶装置130に格納される。   If the printer connected to the USB IF 170 has been changed (S125: YES), the CPU 110 updates the printer identification information PID of the non-volatile storage device 130 in S130. Specifically, the printer serial number received at S115 is stored in the non-volatile storage device 130 as new printer identification information PID.

S132では、CPU110は、DHCPサーバ400から新たなIPアドレスの取得を試行する。具体的には、CPU110は、DHCPに従って、新たなIPアドレスの要求をローカルエリアネットワークNT内にブロードキャストする。この結果、DHCPサーバ400がローカルエリアネットワークNT内で動作していれば、CPU110は、DHCPサーバ400にIPアドレスの要求を送信できる。この場合、DHCPサーバ400は、当該IPアドレスの要求に対する応答として、新たなIPアドレスを端末装置100に送信する。この結果、端末装置100は、DHCPサーバ400を利用して、新たなIPアドレスを容易に取得することができる。   In S132, the CPU 110 attempts to acquire a new IP address from the DHCP server 400. Specifically, the CPU 110 broadcasts a request for a new IP address into the local area network NT according to DHCP. As a result, if the DHCP server 400 is operating in the local area network NT, the CPU 110 can transmit a request for an IP address to the DHCP server 400. In this case, the DHCP server 400 transmits a new IP address to the terminal device 100 as a response to the request for the IP address. As a result, the terminal device 100 can easily acquire a new IP address by using the DHCP server 400.

S135では、CPU110は、S130において新たなIPアドレスの取得に成功したか否かを判断する。CPU110は、DHCPサーバ400から新たなIPアドレスを受信した場合には、新たなIPアドレスの取得に成功したと判断する。また、CPU110は、新たなIPアドレスの要求の送信後、所定の期間が経過しても、新たなIPアドレスを受信しない場合には、CPU110は、新たなIPアドレスの取得に失敗したと判断する。IPアドレスの取得に失敗する場合としては、システム1000において、ローカルエリアネットワークNTにDHCPサーバ400が接続されていない場合がある。   In S135, the CPU 110 determines whether acquisition of a new IP address has succeeded in S130. When the CPU 110 receives a new IP address from the DHCP server 400, the CPU 110 determines that acquisition of a new IP address has succeeded. In addition, after transmitting a request for a new IP address, if the CPU 110 does not receive a new IP address even after a predetermined period has elapsed, the CPU 110 determines that acquisition of the new IP address has failed. . As a case where acquisition of the IP address fails, in the system 1000, the DHCP server 400 may not be connected to the local area network NT.

新たなIPアドレスの取得に成功した場合には(S135:YES)、S140にて、CPU110は、取得済みの新たなIPアドレスを、ネットワークIF180を介した通信にて用いるべきIPアドレスDA(図1)として設定する。   If acquisition of a new IP address is successful (S135: YES), in S140, CPU 110 uses IP address DA to be used for communication via network IF 180 (FIG. 1). Set as).

新たなIPアドレスの取得に失敗した場合には(S135:NO)、S145にて、CPU110は、新たなIPアドレスの候補となる候補アドレスを決定する。CPU110は、現在のIPアドレスDAとネットワーク設定に含まれるサブネットマスクとに基づいて特定される使用可能なIPアドレスの範囲を特定し、該範囲に含まれる1個のIPアドレスを候補アドレスとして決定する。   If acquisition of a new IP address has failed (S135: NO), the CPU 110 determines a candidate address to be a candidate for a new IP address in S145. The CPU 110 identifies the range of usable IP addresses specified based on the current IP address DA and the subnet mask included in the network setting, and determines one IP address included in the range as a candidate address. .

S150では、CPU110は、PINGを用いて、候補アドレスがローカルエリアネットワークNT内において未使用であるか否かを確認する。具体的には、CPU110は、宛先IPアドレスとして候補アドレスを指定して、ICMP(Internet Control Message Protocol)のPING要求を、ローカルエリアネットワークNT内に送信する。CPU110は、所定の応答期間内に、PING要求に対する応答を受信する場合には、候補アドレスが使用中であると判断し、PING要求に対する応答を受信しない場合には、候補アドレスが未使用であると判断する。   In S150, the CPU 110 uses PING to check whether the candidate address is unused in the local area network NT. Specifically, the CPU 110 specifies a candidate address as the destination IP address, and transmits a PING request of the Internet Control Message Protocol (ICMP) to the inside of the local area network NT. If the CPU 110 receives a response to the PING request within a predetermined response period, it determines that the candidate address is in use, and if the response to the PING request is not received, the candidate address is unused. I will judge.

S155では、CPU110は、S150での確認の結果、候補アドレスは未使用であるか否かを判断する。候補アドレスが未使用である場合には(S155:YES)、S160にて、CPU110は、候補アドレスを、ネットワークIF180を介した通信にて用いるべき新たなIPアドレスDA(図1)として設定する。候補アドレスが使用中である場合には(S155:NO)、CPU110は、S145に戻って、別の候補アドレスを決定する。   In S155, the CPU 110 determines whether the candidate address is unused as a result of the confirmation in S150. If the candidate address is not in use (S155: YES), in S160, CPU 110 sets the candidate address as a new IP address DA (FIG. 1) to be used in communication via network IF 180. If the candidate address is in use (S155: NO), the CPU 110 returns to S145 and determines another candidate address.

S140またはS160にて新たなIPアドレスDAが設定された場合には、CPU110は、S105に戻って、次の受信時間まで待機する。   If a new IP address DA is set in S140 or S160, the CPU 110 returns to S105 and waits for the next reception time.

USBIF170に接続されたプリンタが変更されてない場合には(S125:NO)、CPU110は、上述したS130〜S160の処理をスキップして、S105に戻る。すなわち、この場合には、CPU110は、新たなIPアドレスDAを設定することなく、次の受信時間まで待機する。   If the printer connected to the USB IF 170 has not been changed (S125: NO), the CPU 110 skips the processes of S130 to S160 described above, and returns to S105. That is, in this case, the CPU 110 waits for the next reception time without setting a new IP address DA.

A−2−2:管理サーバ300の動作
ここで、装置情報送信処理の説明の前に、管理サーバ300の動作について説明する。管理サーバ300は、管理サーバ300は、SNMP(Simple Network Management Protocol)マネージャとしての機能を備えている。管理サーバ300は、ローカルエリアネットワークNT内のプリンタの装置情報を収集するために、定期的、例えば、1日あたり1〜数回の頻度で、SNMP要求の送信を行っている。具体的には、管理サーバ300は、装置情報の収集時間が到来すると、ローカルエリアネットワークNT内のプリンタを探索するためのSNMP要求を、ローカルエリアネットワークNT内にブロードキャストする。ローカルエリアネットワークNT内のネットワークプリンタ500は、該SNMP要求に対して、自身のIPアドレスを含む応答を返信する。同様に、USBIF170に接続されるプリンタの装置情報を中継する(コンピュータプログラムPGを格納する)端末装置100は、該SNMP要求に対して、自身のIPアドレスを含む応答を返信する。管理サーバ300は、IPアドレスによってプリンタを識別する。したがって、管理サーバ300は、端末装置100を1個のプリンタとして認識する。なお、コンピュータプログラムPGを格納しない端末装置(図示省略)は、管理サーバ300から送信されるSNMP要求に対して返信しない。
A-2-2: Operation of Management Server 300 Here, before the description of the device information transmission process, the operation of the management server 300 will be described. The management server 300 has a function as a Simple Network Management Protocol (SNMP) manager. The management server 300 sends SNMP requests periodically, for example, one to several times a day, in order to collect printer device information in the local area network NT. Specifically, when the collection time of the device information comes, the management server 300 broadcasts an SNMP request for searching for a printer in the local area network NT into the local area network NT. The network printer 500 in the local area network NT sends back a response including its own IP address in response to the SNMP request. Similarly, the terminal device 100 that relays the device information of the printer connected to the USB IF 170 (stores the computer program PG) returns a response including its own IP address in response to the SNMP request. The management server 300 identifies the printer by the IP address. Therefore, the management server 300 recognizes the terminal device 100 as one printer. A terminal device (not shown) that does not store the computer program PG does not reply to the SNMP request transmitted from the management server 300.

管理サーバ300は、探索されたネットワークプリンタ500と、端末装置100と、のそれぞれに対して、取得したIPアドレスを用いて、装置情報の送信を要求するSNMP要求を送信する。本実施例では、SNMP要求は、装置情報に含まれる複数個の項目を収集するために、複数回に亘って送信される。本実施例では、シリアル番号と、モデル名と、累積印刷枚数と、印刷材の残量と、の4個の項目をそれぞれ要求する4回のSNMP要求が送信される。これらの項目のそれぞれは、例えば、ネットワークプリンタ500や端末装置100においてMIB(Management information base)情報として管理されている。すなわち、これらの項目は、例えば、MIB情報を構成する複数個のオブジェクトの1つである。このために、各項目を要求するSNMP要求には、要求する項目(オブジェクト)を示すオブジェクトIDを含む。1セットの装置情報の収集のために、複数個のSNMP要求が、ネットワークプリンタ500と端末装置100とのそれぞれに送信される。   The management server 300 transmits an SNMP request for requesting transmission of device information to each of the searched network printer 500 and the terminal device 100 using the acquired IP address. In this embodiment, the SNMP request is transmitted multiple times to collect a plurality of items included in the device information. In this embodiment, four SNMP requests are sent, each requesting four items: serial number, model name, cumulative print count, and remaining amount of printing material. Each of these items is managed as Management Information Base (MIB) information in the network printer 500 or the terminal device 100, for example. That is, these items are, for example, one of a plurality of objects constituting MIB information. For this purpose, the SNMP request for requesting each item includes an object ID indicating an item (object) to be requested. A plurality of SNMP requests are sent to each of the network printer 500 and the terminal device 100 in order to collect one set of device information.

管理サーバ300は、複数個のSNMP要求に対する応答として、ネットワークプリンタ500および端末装置100から装置情報を受信する。管理サーバ300は、受信した装置情報を、プリンタ管理テーブルPMTに記録する。プリンタ管理テーブルPMTについては後述する。   The management server 300 receives device information from the network printer 500 and the terminal device 100 as a response to a plurality of SNMP requests. The management server 300 records the received device information in the printer management table PMT. The printer management table PMT will be described later.

A−2−3:装置情報送信処理
次に、端末装置100のCPU110が実行する装置情報送信処理について説明する。端末装置100は、SNMPエージェントとして機能し、管理サーバ300からのSNMP要求に対して応答することによって装置情報送信処理を実行する。図3は、装置情報送信処理のフローチャートである。
A-2-3: Device Information Transmission Process Next, a device information transmission process performed by the CPU 110 of the terminal device 100 will be described. The terminal device 100 functions as an SNMP agent, and executes device information transmission processing by responding to an SNMP request from the management server 300. FIG. 3 is a flowchart of device information transmission processing.

S210では、CPU110は、上述した管理サーバ300から送信されるSNMP要求を受信したか否かを判断する。SNMP要求が受信されていない場合には(S210:NO)、CPU110は、SNMP要求を受信するまで待機する。SNMP要求が受信された場合には(S210:YES)、S220にて、CPU110は、受信済みのSNMP要求によって要求された情報が、記憶されているか否かを判断する。例えば、受信済みのSNMP要求が、上述したプリンタを探索するためのSNMP要求である場合には、要求された情報は、自身のIPアドレスDAである。また、受信済みのSNMP要求が、装置情報の各項目の要求である場合には、要求された情報が送信情報領域SAに記憶されているか否かが判断される。   In S210, the CPU 110 determines whether or not the SNMP request transmitted from the management server 300 described above has been received. If the SNMP request has not been received (S210: NO), the CPU 110 waits until the SNMP request is received. If an SNMP request is received (S210: YES), the CPU 110 determines in S220 whether the information requested by the received SNMP request is stored. For example, if the received SNMP request is an SNMP request for searching for the above-mentioned printer, the requested information is its own IP address DA. When the received SNMP request is a request for each item of device information, it is determined whether the requested information is stored in the transmission information area SA.

SNMP要求によって要求された情報が記憶されている場合には(S220:YES)、S230にて、CPU110は、SNMP要求に対する応答として、要求された情報を、管理サーバ300に送信する。SNMP要求によって要求された情報が記憶されていない場合には(S220:NO)、S240にて、CPU110は、SNMP要求に対する応答として、要求された情報がないことを示す情報を、管理サーバ300に送信する。SNMP要求に対する応答の送信(S230、S240)では、端末装置100に割り当てられているIPアドレスDAが、送信元IPアドレスとして用いられる。SNMP要求に対する応答が管理サーバ300に送信されると、CPU110は、S210に戻って、次のSNMP要求が受信されるまで待機する。   If the information requested by the SNMP request is stored (S220: YES), the CPU 110 transmits the requested information to the management server 300 as a response to the SNMP request in S230. When the information requested by the SNMP request is not stored (S220: NO), in S240, the CPU 110 sends information indicating that there is no requested information to the management server 300 as a response to the SNMP request. Send. In the transmission of the response to the SNMP request (S230, S240), the IP address DA assigned to the terminal device 100 is used as the transmission source IP address. When a response to the SNMP request is sent to the management server 300, the CPU 110 returns to S210 and waits until the next SNMP request is received.

A−3:DHCPサーバ400がある場合の動作
以上説明したシステム1000の動作の具体例をさらに説明する。図4は、システム1000の動作を示す第1のシーケンス図である。図5は、システム1000の動作を示す第2のシーケンス図である。図6は、管理サーバ300に格納されるプリンタ管理テーブルPMTの一例を示す図である。
A-3: Operation when there is a DHCP Server 400 A specific example of the operation of the system 1000 described above will be further described. FIG. 4 is a first sequence diagram showing the operation of system 1000. FIG. 5 is a second sequence diagram showing the operation of system 1000. FIG. 6 is a diagram showing an example of the printer management table PMT stored in the management server 300.

この例では、初期状態は、プリンタ200Aが端末装置100のUSBIF170に接続され、プリンタ200Bが端末装置100のUSBIF170に接続されていない状態である。換言すれば、初期状態は、USBIF170を介して端末装置100がプリンタ200Aと通信可能であり、USBIF170を介して端末装置100がプリンタ200Bと通信可能でない通信状態である。この通信状態を第1の通信状態とも呼ぶ。また、この例では、DHCPサーバ400がローカルエリアネットワークNTに接続され、正常に動作しているものとする。   In this example, in the initial state, the printer 200A is connected to the USB IF 170 of the terminal device 100, and the printer 200B is not connected to the USB IF 170 of the terminal device 100. In other words, in the initial state, the terminal device 100 can communicate with the printer 200A via the USB IF 170, and the terminal device 100 can not communicate with the printer 200B via the USB IF 170. This communication state is also referred to as a first communication state. Also, in this example, it is assumed that the DHCP server 400 is connected to the local area network NT and is operating normally.

先ず、図4のS10では、端末装置100のCPU110は、コンピュータプログラムPGを起動する。この結果、端末装置100において、上述した図2の装置情報受信処理と図3の装置情報送信処理とが、常時、並行して実行される状態になる。   First, in S10 of FIG. 4, the CPU 110 of the terminal device 100 activates the computer program PG. As a result, in the terminal device 100, the device information reception process of FIG. 2 and the device information transmission process of FIG. 3 described above are always performed in parallel.

図4のS12では、1回目の装置情報の受信時間が到来したために、端末装置100は、USBIF170から装置情報の要求を送信する。この時点では、USBIF170にはプリンタ200Aが接続されているので、端末装置100からプリンタ200Aに装置情報の要求が送信される(図2のS110)。S14では、装置情報の要求に対する応答として、プリンタ200Aから端末装置100に装置情報、具体的には、プリンタ200Aのシリアル番号と、モデル名と、累積印刷枚数と、印刷材の残量とが送信される(図2のS115)。S16では、端末装置100の送信情報領域SAに、S14にてプリンタ200Aから送信された装置情報が格納される(図2のS120)。なお、この時点では、プリンタ200Aが接続された初期状態(第1の通信状態)が維持されているので(図2のS125にてNO)、図2のS130〜S160の処理は実行されない。   In S12 of FIG. 4, the terminal device 100 transmits a request for device information from the USB IF 170 because the first reception time of the device information has arrived. At this time, since the printer 200A is connected to the USB IF 170, a request for device information is transmitted from the terminal device 100 to the printer 200A (S110 in FIG. 2). In S14, as a response to the request for device information, the device information from the printer 200A to the terminal device 100, specifically, the serial number of the printer 200A, the model name, the cumulative number of printed sheets, and the remaining amount of printing material (S115 of FIG. 2). In S16, the device information transmitted from the printer 200A in S14 is stored in the transmission information area SA of the terminal device 100 (S120 in FIG. 2). Since the initial state (first communication state) in which the printer 200A is connected is maintained at this time (NO in S125 of FIG. 2), the processes of S130 to S160 of FIG. 2 are not executed.

図4のS17では、1回目の装置情報の収集時間が到来したために、管理サーバ300から端末装置100にプリンタの探索のためのSNMP要求が送信される(図3のS210)。S18では、該SNMP要求に対する応答として、端末装置100から管理サーバ300に、端末装置100のIPアドレスIP_Aが送信される(図3のS230)。このIPアドレスIP_Aは、この時点で、使用すべきIPアドレスDAとして記憶されているIPアドレスである。管理サーバ300は、このIPアドレスIP_Aを用いて、プリンタ200Aを管理できる。   In S17 of FIG. 4, since the first collection time of device information has arrived, the management server 300 transmits an SNMP request for searching for a printer to the terminal device 100 (S210 of FIG. 3). In S18, the IP address IP_A of the terminal device 100 is transmitted from the terminal device 100 to the management server 300 as a response to the SNMP request (S230 in FIG. 3). The IP address IP_A is an IP address stored as an IP address DA to be used at this time. The management server 300 can manage the printer 200A using this IP address IP_A.

図4のS20では、管理サーバ300から端末装置100に装置情報の要求としてのSNMP要求が送信される(図3のS210)。該SNMP要求に対する応答として、端末装置100から管理サーバ300に、プリンタ200Aの装置情報が送信される(図3のS230)。この時、端末装置100は、送信元IPアドレスとして、IPアドレスIP_Aを用いる。ここで、S20とS22に示すSNMP要求とその応答は、複数個の項目を含む装置情報を取得するために複数回繰り返されるが、図4では、図の煩雑を避けるために1回分だけ図示されている。S22で送信される装置情報は、S16にて送信情報領域SAに格納された装置情報である。したがって、S22で送信される装置情報は、プリンタ200Aの装置情報である。   In S20 of FIG. 4, an SNMP request as a device information request is transmitted from the management server 300 to the terminal device 100 (S210 of FIG. 3). As a response to the SNMP request, device information of the printer 200A is transmitted from the terminal device 100 to the management server 300 (S230 in FIG. 3). At this time, the terminal device 100 uses the IP address IP_A as the transmission source IP address. Here, although the SNMP request and the response shown in S20 and S22 are repeated a plurality of times to obtain device information including a plurality of items, FIG. 4 is illustrated only once to avoid complication of the figure. ing. The device information transmitted in S22 is the device information stored in the transmission information area SA in S16. Therefore, the device information transmitted in S22 is the device information of the printer 200A.

S24では、管理サーバ300は、プリンタ管理テーブルPMTを更新する。これによって、プリンタ管理テーブルPMTに、端末装置100から送信された装置情報が、IPアドレスIP_Aと対応付けて記録される。なお、このタイミングで、ネットワークプリンタ500と管理サーバ300との間でも図4のS17〜S22と同等の通信が行われて、管理サーバ300は、ネットワークプリンタ500からも装置情報を受信する。そして、管理サーバ300は、プリンタ管理テーブルPMTに、ネットワークプリンタ500からの装置情報を、ネットワークプリンタ500のIPアドレスIP_Cと対応付けて記録する。   At S24, the management server 300 updates the printer management table PMT. As a result, the device information transmitted from the terminal device 100 is recorded in the printer management table PMT in association with the IP address IP_A. At this timing, the same communication as S17 to S22 in FIG. 4 is performed between the network printer 500 and the management server 300, and the management server 300 also receives device information from the network printer 500. Then, the management server 300 records the device information from the network printer 500 in the printer management table PMT in association with the IP address IP_C of the network printer 500.

図6(A)には、S24が終了した時点のプリンタ管理テーブルPMTが図示されている。このプリンタ管理テーブルPMTの上段のエントリEN1には、ネットワークプリンタ500の装置情報が、ネットワークプリンタ500に割り当てられたIPアドレスIP_Cと対応付けて記録されている。そして、下段のエントリEN2には、端末装置100に接続されているプリンタ200Aの装置情報が、端末装置100に割り当てられたIPアドレスIP_Aと対応付けて記録されている。   FIG. 6A shows the printer management table PMT when S24 ends. Device information of the network printer 500 is recorded in association with the IP address IP_C assigned to the network printer 500 in the entry EN1 in the upper part of the printer management table PMT. In the lower entry EN2, device information of the printer 200A connected to the terminal device 100 is recorded in association with the IP address IP_A assigned to the terminal device 100.

図4のS26では、2回目の装置情報の受信時間が到来したために、端末装置100からプリンタ200Aに、S12と同様の装置情報の要求が送信される(図2のS110)。S28では、S14と同様に、プリンタ200Aから端末装置100に装置情報が送信される(図2のS115)。S30では、端末装置100の送信情報領域SAが更新される。すなわち、S16にて送信情報領域SAに格納された装置情報が削除されて、新たにS28にてプリンタ200Aから送信された新たな装置情報が送信情報領域SAに格納される(図2のS120)。この時点では、プリンタ200Aが接続された初期状態(第1の通信状態)が維持されているので(図2のS125にてNO)、図2のS130〜S160の処理は実行されない。なお、図4のS30に続いて図5のS32が行われる。   In S26 of FIG. 4, since the second device information reception time has arrived, the terminal device 100 transmits a request for device information similar to S12 to the printer 200A (S110 in FIG. 2). In S28, as in S14, apparatus information is transmitted from the printer 200A to the terminal apparatus 100 (S115 in FIG. 2). At S30, the transmission information area SA of the terminal device 100 is updated. That is, the apparatus information stored in the transmission information area SA in S16 is deleted, and the new apparatus information transmitted from the printer 200A in S28 is stored in the transmission information area SA (S120 in FIG. 2). . At this time, since the initial state (first communication state) in which the printer 200A is connected is maintained (NO in S125 of FIG. 2), the processes of S130 to S160 of FIG. 2 are not executed. In addition, S32 of FIG. 5 is performed following S30 of FIG.

図5のS32では、ユーザによって、プリンタ200Aが、端末装置100のUSBIF170から取り外される。S34では、ユーザによって、プリンタ200Aに代えて、プリンタ200Bが、端末装置100のUSBIF170に接続される。すなわち、S34が終了した時点では、USBIF170を介して端末装置100がプリンタ200Bと通信可能であり、USBIF170を介して端末装置100がプリンタ200Aと通信可能でない通信状態である。この通信状態を第2の通信状態とも呼ぶ。このように、S32、S34を経て、通信状態は、上述した第1の通信状態から第2の通信状態へと遷移している。   In S32 of FIG. 5, the printer 200A is removed from the USB IF 170 of the terminal device 100 by the user. In S34, the printer 200B is connected to the USB IF 170 of the terminal device 100, instead of the printer 200A, by the user. That is, when S34 ends, the terminal device 100 can communicate with the printer 200B via the USB IF 170, and the terminal device 100 can not communicate with the printer 200A via the USB IF 170. This communication state is also referred to as a second communication state. Thus, through S32 and S34, the communication state transitions from the first communication state described above to the second communication state.

図5のS36では、3回目の装置情報の受信時間が到来したために、図4のS12と同様に、端末装置100は、USBIF170から装置情報の要求を送信する。ただし、この時点では、USBIF170にはプリンタ200Bが接続されているので、端末装置100からプリンタ200Bに装置情報の要求が送信される(図2のS110)。S38では、装置情報の要求に対する応答として、プリンタ200Bから端末装置100に装置情報が送信される(図2のS115)。S39では、端末装置100の送信情報領域SAに、S38にてプリンタ200Bから送信された装置情報が格納される(図2のS120)。   In S36 of FIG. 5, since the reception time of the third device information has arrived, the terminal device 100 transmits a request for device information from the USB IF 170, as in S12 of FIG. However, at this time, since the printer 200B is connected to the USB IF 170, a request for device information is transmitted from the terminal device 100 to the printer 200B (S110 in FIG. 2). In S38, the device information is transmitted from the printer 200B to the terminal device 100 as a response to the request for the device information (S115 in FIG. 2). In S39, the device information transmitted from the printer 200B in S38 is stored in the transmission information area SA of the terminal device 100 (S120 in FIG. 2).

なお、2回目の装置情報の受信(図4のS28)から3回目の装置情報の受信(図5のS38)までの間に、プリンタ200Aが接続された初期状態(第1の通信状態)からプリンタ200Bが接続された第2の通信状態へと遷移している。すなわち、USBIF170に接続されるプリンタが変更されている。そのため、端末装置100は、図5のS40にて、USBIF170に接続されるプリンタの変更を認識する(図2のS125にてYES)。このために、端末装置100は、図2のS130以降の処理を実行する。具体的には、この例では、DHCPサーバ400が正しく動作しているので、S41にて、端末装置100は、DHCPサーバ400から新たなIPアドレスIP_Cを取得する(図2のS132、S135にてYES)。そして、S42では、使用すべきIPアドレスDAが、IPアドレスIP_AからIPアドレスIP_Bに変更される(図2のS140)。   Note that from the initial state (first communication state) in which the printer 200A is connected between the second reception of device information (S28 in FIG. 4) and the third reception of device information (S38 in FIG. 5) A transition is made to the second communication state in which the printer 200B is connected. That is, the printer connected to the USB IF 170 has been changed. Therefore, the terminal device 100 recognizes the change of the printer connected to the USB IF 170 in S40 of FIG. 5 (YES in S125 of FIG. 2). For this purpose, the terminal device 100 executes the process after S130 of FIG. Specifically, in this example, since the DHCP server 400 is operating correctly, the terminal device 100 acquires a new IP address IP_C from the DHCP server 400 in S41 (S132 and S135 in FIG. 2). YES). Then, in S42, the IP address DA to be used is changed from the IP address IP_A to the IP address IP_B (S140 in FIG. 2).

図5のS44では、2回目の装置情報の収集時間が到来したために、管理サーバ300から端末装置100にプリンタの探索のためのSNMP要求が送信される(図3のS210)。S45では、該SNMP要求に対する応答として、端末装置100から管理サーバ300に、端末装置100のIPアドレスIP_Bが送信される(図3のS230)。このIPアドレスIP_Bは、この時点で、使用すべきIPアドレスDAとして記憶されているIPアドレス、すなわち、図5のS42にて新たに設定されたIPアドレスである。   In S44 of FIG. 5, since the second device information collection time has arrived, the management server 300 transmits an SNMP request for searching for a printer to the terminal device 100 (S210 of FIG. 3). In S45, the IP address IP_B of the terminal device 100 is transmitted from the terminal device 100 to the management server 300 as a response to the SNMP request (S230 in FIG. 3). The IP address IP_B is an IP address stored as an IP address DA to be used at this time, that is, an IP address newly set in S42 of FIG.

図5のS46では、管理サーバ300から端末装置100に装置情報の要求としてのSNMP要求が送信される(図3のS210)。S48では、該SNMP要求に対する応答として、端末装置100から管理サーバ300に、プリンタ200Bの装置情報が送信される(図3のS230)。この時、端末装置100は、送信元IPアドレスとして、IPアドレスIP_Bを用いる。ここで、S46とS48に示すSNMP要求とその応答は、複数回繰り返されるが、図5では、図の煩雑を避けるために1回分だけ図示されている。この時点で送信される装置情報は、S39にて送信情報領域SAに格納された装置情報である。したがって、S48で送信される装置情報は、図4のS22で送信される装置情報とは異なり、プリンタ200Bの装置情報である。   In S46 of FIG. 5, an SNMP request as a request for device information is transmitted from the management server 300 to the terminal device 100 (S210 of FIG. 3). In S48, as a response to the SNMP request, device information of the printer 200B is transmitted from the terminal device 100 to the management server 300 (S230 in FIG. 3). At this time, the terminal device 100 uses the IP address IP_B as the transmission source IP address. Here, although the SNMP request and the response shown in S46 and S48 are repeated a plurality of times, only one is illustrated in FIG. 5 in order to avoid complication of the figure. The device information transmitted at this time is the device information stored in the transmission information area SA at S39. Therefore, unlike the device information transmitted in S22 of FIG. 4, the device information transmitted in S48 is the device information of the printer 200B.

S50では、管理サーバ300は、プリンタ管理テーブルPMTを更新する。これによって、プリンタ管理テーブルPMTに、端末装置100から送信された装置情報が、IPアドレスIP_Bと対応付けて記録される。なお、このタイミングで、ネットワークプリンタ500と端末装置100との間でも図5のS44〜S48と同等の通信が行われて、端末装置100は、ネットワークプリンタ500からも装置情報を受信する。そして、端末装置100は、プリンタ管理テーブルPMTにおいて、ネットワークプリンタ500からの装置情報を、ネットワークプリンタ500のIPアドレスIP_Cと対応付けて記録する。   At S50, the management server 300 updates the printer management table PMT. As a result, the device information transmitted from the terminal device 100 is recorded in the printer management table PMT in association with the IP address IP_B. At this timing, communication equivalent to S44 to S48 in FIG. 5 is performed between the network printer 500 and the terminal device 100, and the terminal device 100 also receives device information from the network printer 500. Then, the terminal device 100 records device information from the network printer 500 in association with the IP address IP_C of the network printer 500 in the printer management table PMT.

ここで、管理サーバ300は、1回目の装置情報の収集時間(S17〜S24)では、端末装置100は、IPアドレスIP_Aを有する第1のプリンタである、と認識する。これに対して、管理サーバ300は、2回目の装置情報の収集時間(S44〜S50)では、端末装置100は、IPアドレスIP_Bを有し、第1のプリンタとは異なる第2のプリンタである、と認識する。したがって、管理サーバ300は、1回目の装置情報の収集時間(S17〜S24)では、管理サーバ300は、IPアドレスIP_Cを有するネットワークプリンタ500と、IPアドレスIP_Aを有する第1のプリンタと、が探索されたと認識する。そして、管理サーバ300は、2回目の装置情報の収集時間(S44〜S50)では、IPアドレスIP_Cを有するネットワークプリンタ500が再度探索され、IPアドレスIP_Bを有する第2のプリンタが新たに探索され、1回目に探索されたIPアドレスIP_Aを有する第1のプリンタは探索されなかった、と認識する。   Here, the management server 300 recognizes that the terminal device 100 is the first printer having the IP address IP_A in the first device information collection time (S17 to S24). On the other hand, the management server 300 is the second printer which has the IP address IP_B and is different from the first printer in the second device information collection time (S44 to S50). Recognize. Therefore, the management server 300 searches for the network printer 500 having the IP address IP_C and the first printer having the IP address IP_A in the first device information collection time (S17 to S24). Recognize that it was done. Then, in the management server 300, in the second collection time of device information (S44 to S50), the network printer 500 having the IP address IP_C is searched again, and the second printer having the IP address IP_B is newly searched. It is recognized that the first printer having the first searched IP address IP_A was not searched.

図6(B)には、S50が終了して時点のプリンタ管理テーブルPMTが図示されている。図6(B)の管理テーブルPMTでは、上段のエントリEN1において、ネットワークプリンタ500の累積印刷枚数が更新されている。さらに、中断のエントリEN2において、IPアドレスIP_Aを有する第1のプリンタのステータスが、「正常」から「接続断」に更新されている。これは、2回目の装置情報の収集時間(S44〜S50)では、IPアドレスIP_Aを有する第1のプリンタは探索されなかったことに基づく。そして、下段のエントリEN3には、IPアドレスIP_Bを有する第2のプリンタの装置情報が記録されている。すなわち、エントリEN3には、端末装置100に接続されているプリンタ200Bの装置情報が、端末装置100に割り当てられたIPアドレスIP_Bと対応付けて記録されている。   FIG. 6B shows the printer management table PMT at the time when S50 ends. In the management table PMT shown in FIG. 6B, the cumulative number of printed sheets of the network printer 500 is updated in the upper entry EN1. Furthermore, in the interruption entry EN2, the status of the first printer having the IP address IP_A is updated from “normal” to “disconnected”. This is based on the fact that the first printer having the IP address IP_A was not searched in the second device information collection time (S44 to S50). In the lower entry EN3, device information of the second printer having the IP address IP_B is recorded. That is, in the entry EN3, device information of the printer 200B connected to the terminal device 100 is recorded in association with the IP address IP_B assigned to the terminal device 100.

このように、管理サーバ300は、端末装置100と通信しているだけであるにも拘わらずに、端末装置100のUSBIF170に接続されるプリンタ200Aの装置情報と、プリンタ200Bの装置情報と、を区別して管理できる。すなわち、プリンタ200Aの装置情報は、IPアドレスIP_Aを有する第1のプリンタの装置情報として管理され、プリンタ200Bの装置情報は、IPアドレスIP_Bを有する第2のプリンタの装置情報として管理される。   As described above, although the management server 300 is only communicating with the terminal device 100, the management server 300 can obtain the device information of the printer 200A connected to the USB IF 170 of the terminal device 100 and the device information of the printer 200B. It can distinguish and manage. That is, the device information of the printer 200A is managed as the device information of the first printer having the IP address IP_A, and the device information of the printer 200B is managed as the device information of the second printer having the IP address IP_B.

このように本実施例によれば、端末装置100は、USBIF170を介して、プリンタ200Aの状態情報(具体的には累積印刷枚数と印刷材の残量)を受信し(図4のS14)、ネットワークIF180を介して、プリンタ200Aの状態情報を、端末装置100に割り当て済みのIPアドレスIP_Aを用いて管理サーバ300に送信する(図4のS22)。そして、図5のS40では、端末装置100は、USBIF170に接続されるプリンタが、プリンタ200Aからプリンタ200Bに変更されたことを認識する。換言すれば、端末装置100は、USBIF170を介して端末装置100がプリンタ200Aと通信可能であり、プリンタ200Bと通信可能でない第1の通信状態から、USBIF170を介して端末装置100がプリンタ200Bと通信可能であり、プリンタ200Aと通信可能でない第2の通信状態への遷移を検出する。この場合に、端末装置100は、IPアドレスIP_Aとは異なるIPアドレスIP_Bを取得する(図5のS41)。端末装置100は、第2の通信状態において、USBIF170を介して、プリンタ200Bの状態情報を受信し(図5のS38)、ネットワークIF180を介して、プリンタ200Bの状態情報を、IPアドレスIP_Bを用いて管理サーバ300に送信する(S48)。この結果、管理サーバ300は、IPアドレスに基づいて、プリンタ200Aの状態情報と、プリンタ200Bの状態情報と、を区別できる(図6(B))。したがって、端末装置100が、USBIF170を介した通信状態によっては、プリンタ200Aとプリンタ200Bと通信し得る場合に、管理サーバ300は、プリンタ200Aの状態情報とプリンタ200Bの状態情報とを適切に管理できる。例えば、仮に、USBIF170に接続されるプリンタが、プリンタ200Aからプリンタ200Bに切り替えられたにも拘わらずに、これらの2個のプリンタの状態情報が区別されない場合には、例えば、管理サーバ300での管理テーブル上では、1個のプリンタの累積印刷枚数が減少する矛盾や、1個のプリンタのトナー残量が増加する矛盾が発生し得る。この場合には、印刷枚数に基づく課金サービスやトナーの供給サービスの提供に支障が発生し得る。本実施例では、そのような不具合の発生を抑制することができる。   As described above, according to the present embodiment, the terminal device 100 receives the status information of the printer 200A (specifically, the cumulative number of printed sheets and the remaining amount of printing material) via the USB IF 170 (S14 in FIG. 4). The status information of the printer 200A is transmitted to the management server 300 via the network IF 180 using the IP address IP_A already assigned to the terminal device 100 (S22 in FIG. 4). Then, in S40 of FIG. 5, the terminal device 100 recognizes that the printer connected to the USB IF 170 has been changed from the printer 200A to the printer 200B. In other words, the terminal device 100 can communicate with the printer 200A via the USB IF 170 from the first communication state in which the terminal device 100 can communicate with the printer 200A via the USB IF 170 and can not communicate with the printer 200B. A transition to a second communication state which is possible and not communicable with the printer 200A is detected. In this case, the terminal device 100 acquires an IP address IP_B different from the IP address IP_A (S41 in FIG. 5). In the second communication state, the terminal device 100 receives the status information of the printer 200B via the USB IF 170 (S38 in FIG. 5), and uses the IP address IP_B for the status information of the printer 200B via the network IF 180. Then, it transmits to the management server 300 (S48). As a result, the management server 300 can distinguish between the status information of the printer 200A and the status information of the printer 200B based on the IP address (FIG. 6 (B)). Therefore, when the terminal device 100 can communicate with the printer 200A and the printer 200B depending on the communication state via the USB IF 170, the management server 300 can appropriately manage the state information of the printer 200A and the state information of the printer 200B. . For example, even if the printer connected to the USB IF 170 is switched from the printer 200A to the printer 200B, the state information of these two printers can not be distinguished, for example, in the management server 300, for example. On the management table, contradictions in which the cumulative number of printed sheets of one printer decreases and contradictions in which the toner remaining amount of one printer increases may occur. In this case, a problem may occur in provision of charging service based on the number of printed sheets and toner supply service. In the present embodiment, the occurrence of such a defect can be suppressed.

また、本実施例によれば、USBIF170に接続されるプリンタが、プリンタ200Aからプリンタ200Bに切り替えられた場合であっても、管理サーバ300側に特別な仕組みを設けることなく、IPアドレスに基づいて、プリンタ200Aの状態情報とプリンタ200Bの状態情報とを適切に区別して管理できる。例えば、本実施例とは異なる手法としては、USBIF170に接続されるプリンタが、プリンタ200Aからプリンタ200Bに切り替えられたことを端末装置100が認識した場合に、端末装置100が当該切り替えを管理サーバ300に通知する仕組みが考えられる。この場合には、管理サーバ300には、当該切り替えの通知を解釈して、当該切り替えの通知を受信した場合には、当該切り替えの通知前に端末装置100から送信された状態情報を、通知後に端末装置100から送信された状態情報と区別して管理する仕組みが必要となる。   Further, according to the present embodiment, even when the printer connected to the USB IF 170 is switched from the printer 200A to the printer 200B, based on the IP address without providing a special mechanism on the management server 300 side. The state information of the printer 200A and the state information of the printer 200B can be appropriately distinguished and managed. For example, as a method different from the present embodiment, when the terminal device 100 recognizes that the printer connected to the USB IF 170 has been switched from the printer 200A to the printer 200B, the terminal device 100 manages the switching by the management server 300. A mechanism to notify to is considered. In this case, when the management server 300 interprets the notification of the switching and receives the notification of the switching, the management server 300 receives the state information transmitted from the terminal device 100 before the notification of the switching, after the notification. A mechanism is required to manage separately from the state information transmitted from the terminal device 100.

これに対して、本実施例によれば、管理サーバ300は、収集した状態情報の送信元IPアドレスに基づいて、送信元の装置を認識するという、一般的な方法だけで、プリンタ200Aの状態情報とプリンタ200Bの状態情報とを適切に区別して管理できる。従って、例えば、SNMPのような装置管理のための標準的なプロトコルを用いた一般的な方法で、プリンタ200Aの状態情報とプリンタ200Bの状態情報とを適切に区別して管理できる。例えば、端末装置100のコンピュータプログラムPGを提供する事業者(例えば、プリンタ200A、200Bのベンダ)と、管理サーバ300の管理プログラムを提供する事業者(例えば、プリンタの課金サービスやトナーの供給サービスの提供者)と、が異なる場合を想定する。このような状況では、上述した切り替えの通知のような端末装置100と管理サーバ300とが連携する特別な仕組みを実装することは困難である場合が多い。本実施例では、このような状況でもプリンタ200Aの状態情報とプリンタ200Bの状態情報とを適切に区別して管理できる。   On the other hand, according to the present embodiment, the management server 300 recognizes the apparatus of the transmission source based on the transmission source IP address of the collected state information, the state of the printer 200A only by the general method. Information and status information of the printer 200B can be appropriately distinguished and managed. Therefore, for example, the status information of the printer 200A and the status information of the printer 200B can be appropriately distinguished and managed by a general method using a standard protocol for device management such as SNMP. For example, a business that provides the computer program PG of the terminal device 100 (for example, a vendor of the printers 200A and 200B) and a business that provides the management program of the management server 300 (for example, a charging service for the printer and a supply service for toner). Assume that the provider is different from In such a situation, it is often difficult to implement a special mechanism in which the terminal device 100 and the management server 300 cooperate, such as the notification of switching described above. In this embodiment, the status information of the printer 200A and the status information of the printer 200B can be appropriately distinguished and managed even in such a situation.

本実施例では、プリンタ200A、200Bと端末装置100との通信に用いられるインタフェースは、第1の通信規格に従う通信を行うインタフェースであり、管理サーバ300と端末装置100との通信に用いられるインタフェースは、第1の通信規格とは異なる第2の通信規格に従う通信を行うインタフェースである。したがって、第2の通信規格に従って通信可能な管理サーバ300は、第2の通信規格とは異なる第1の通信規格に従って通信可能なプリンタ200A、200Bの状態情報を、端末装置100を介して適切に管理できる。   In the present embodiment, the interface used for communication between the printers 200A and 200B and the terminal device 100 is an interface for performing communication according to the first communication standard, and the interface used for communication between the management server 300 and the terminal device 100 is , And an interface for performing communication in accordance with a second communication standard different from the first communication standard. Therefore, the management server 300 capable of communicating according to the second communication standard appropriately uses the terminal device 100 for status information of the printers 200A and 200B capable of communicating according to the first communication standard different from the second communication standard. It can manage.

より具体的には、第1の通信規格は、USBであり、第2の通信規格は、IP(Internet Protocol)を用いる通信規格(例えば、イーサネット(登録商標)やWi−fi規格)である。したがって、IPを用いて通信可能な管理サーバ300は、USBを用いて通信可能なプリンタ200A、200Bの状態情報を、適切に管理できる。   More specifically, the first communication standard is USB, and the second communication standard is a communication standard using IP (Internet Protocol) (for example, Ethernet (registered trademark) or Wi-fi standard). Therefore, the management server 300 that can communicate using IP can appropriately manage the status information of the printers 200A and 200B that can communicate using USB.

さらに、本実施例では、端末装置100は、図4のS28にて装置情報の一部としてプリンタ200Aのシリアル番号が受信され、その後の図5のS38にて、プリンタ200Aのシリアル番号とは異なるプリンタ200Bのシリアル番号が受信された場合に、通信状態の遷移、すなわち、USBIF170に接続されるプリンタの変更を検出する(図2のS125参照)。したがって、USBIF170を介して受信される識別情報であるシリアル番号に基づいて、通信状態の遷移を適切に検出できる。   Furthermore, in the present embodiment, the terminal device 100 receives the serial number of the printer 200A as a part of the device information in S28 of FIG. 4 and differs from the serial number of the printer 200A in S38 of FIG. When the serial number of the printer 200B is received, the transition of the communication state, that is, the change of the printer connected to the USB IF 170 is detected (see S125 of FIG. 2). Therefore, based on the serial number which is the identification information received via the USB IF 170, the transition of the communication state can be appropriately detected.

上述したように、これらのシリアル番号は、USBIF170を介して端末装置100が通信可能なプリンタに対して定期的に送信される識別情報の要求に対する応答として、受信される(図2のS105、S110、S115)。この結果、端末装置100は、定期的にシリアル番号を受信できるので、通信状態の遷移を適切に検出できる。また、状態情報を取得するタイミングでシリアル番号を取得するので、プリンタ200Aの状態情報とプリンタ200Bの状態情報とを区別して適切に管理できるようなタイミングで、通信状態の遷移を検出できる。   As described above, these serial numbers are received as a response to a request for identification information periodically transmitted to the printer with which the terminal device 100 can communicate via the USB IF 170 (S105 and S110 in FIG. 2). , S115). As a result, since the terminal device 100 can periodically receive the serial number, it can properly detect the transition of the communication state. Further, since the serial number is acquired at the timing of acquiring the state information, the transition of the communication state can be detected at such a timing that the state information of the printer 200A and the state information of the printer 200B can be distinguished and appropriately managed.

さらに、上記実施例では、端末装置100は、USBIF170に接続されたプリンタと定期的に通信を行って、該プリンタの状態情報を定期的に受信する(図2のS105、S115)。定期的に受信されるプリンタの状態情報は、メモリ(具体的には、揮発性記憶装置120の送信情報領域SA)に格納される(図2のS120)。端末装置100は、管理サーバ300から状態情報の要求としてのSNMP要求を受信した場合に(図3のS210にてYES)、メモリに格納される状態情報を管理サーバ300に送信する(図3のS220にてYES、S230)。この結果、管理サーバ300は、状態情報の要求を端末装置100に送信することで、所望のタイミングで端末装置100のUSBIF170に接続されたプリンタの状態情報を取得できる。   Furthermore, in the above embodiment, the terminal device 100 periodically communicates with the printer connected to the USB IF 170 to periodically receive the status information of the printer (S105 and S115 in FIG. 2). The printer status information periodically received is stored in the memory (specifically, the transmission information area SA of the volatile storage device 120) (S120 in FIG. 2). When the terminal device 100 receives an SNMP request as a request for status information from the management server 300 (YES in S210 of FIG. 3), the terminal device 100 transmits the status information stored in the memory to the management server 300 (FIG. 3). YES in S220, S230). As a result, the management server 300 can acquire the status information of the printer connected to the USB IF 170 of the terminal device 100 at a desired timing by transmitting a request for the status information to the terminal device 100.

さらに、本実施例では、端末装置100によってプリンタ200A、200Bから受信され、端末装置100によって管理サーバ300に送信される状態情報は、消耗品の残量を示す情報と、印刷枚数を示す情報と、を含む。この結果、管理サーバ300は、これらの情報を適切に管理できる。したがって、例えば、上述した印刷枚数に基づく課金サービスや消耗品の供給サービスの提供に支障が発生することを抑制できる。   Furthermore, in the present embodiment, the status information received from the printers 200A and 200B by the terminal device 100 and transmitted to the management server 300 by the terminal device 100 includes information indicating the remaining amount of consumables and information indicating the number of printed sheets. ,including. As a result, the management server 300 can appropriately manage these pieces of information. Therefore, for example, it is possible to suppress the occurrence of trouble in provision of the charging service based on the number of printed sheets and the supply service of consumables described above.

A−4:DHCPサーバ400がない場合の動作
システム1000の動作の具体例をさらに説明する。図7は、システム1000の動作を示す第3のシーケンス図である。この例は、システム1000内に、DHCPサーバ400がない場合、もしくは、DHCPサーバ400が正常に動作していないとする。
A-4: Operation when there is no DHCP Server 400 A specific example of the operation of the system 1000 will be further described. FIG. 7 is a third sequence diagram showing the operation of system 1000. In this example, it is assumed that there is no DHCP server 400 in the system 1000 or that the DHCP server 400 is not operating normally.

この場合には、上述した動作のうち、図4のS10〜図5のS40までの動作は、図4、図5のDHCPサーバ400がローカルエリアネットワークNTに接続され、正常に動作している場合と同じである。図7には、図4のS10〜図5のS40までの動作のうち、図5のS39、S40のみが図示されている。   In this case, among the operations described above, the operations from S10 to S40 in FIG. 4 are performed when the DHCP server 400 in FIGS. 4 and 5 is connected to the local area network NT and is operating normally. Is the same as Of the operations from S10 of FIG. 4 to S40 of FIG. 4, only S39 and S40 of FIG. 5 are illustrated in FIG. 7.

図7のS40にて、USBIF170に接続されるプリンタの変更が認識されると、端末装置100は、DHCPサーバ400からの新たなIPアドレスの取得を試行する(図2のS132)が、この例では、DHCPサーバ400がない、もしくは、DHCPサーバ400が正常に動作していない。このために、図7のS41Bでは、端末装置100は、
DHCPサーバ400からのIPアドレスの取得に失敗する(図2のS135:NO)。このため、S42Bでは、端末装置100は、PINGを用いてローカルエリアネットワークNT内で未使用のIPアドレスを特定する(図2のS145〜S155)。そして、S43Bでは、CPU110は、使用すべきIPアドレスDAを、IPアドレスIP_Aから、未使用であると特定されたIPアドレスIP_Bに変更する(図2のS160)。図7のS44〜S50の処理は、図5のS44〜S50の処理と同じである。
When the change of the printer connected to the USB IF 170 is recognized in S40 of FIG. 7, the terminal device 100 tries to acquire a new IP address from the DHCP server 400 (S132 of FIG. 2). There is no DHCP server 400 or the DHCP server 400 is not working properly. For this reason, in S41B of FIG.
Acquisition of the IP address from the DHCP server 400 fails (S135 in FIG. 2: NO). Therefore, in S42B, the terminal device 100 identifies an unused IP address in the local area network NT using PING (S145 to S155 in FIG. 2). Then, in S43B, the CPU 110 changes the IP address DA to be used from the IP address IP_A to the IP address IP_B specified as unused (S160 in FIG. 2). The processes of S44 to S50 of FIG. 7 are the same as the processes of S44 to S50 of FIG. 5.

以上説明したように、本実施例によれば、ローカルエリアネットワークNT内にDHCPサーバ400が存在しない場合や正常に動作していない場合であっても、新たなIPアドレスIP_Bを適切に取得できる。   As described above, according to this embodiment, even when the DHCP server 400 does not exist in the local area network NT or does not operate normally, the new IP address IP_B can be appropriately acquired.

B.変形例
(1)上記実施例の端末装置100では、プリンタ200A、200Bと通信する第1種のインタフェースは、USBIF170であり、管理サーバ300と通信する第2種のインタフェースは、ネットワークIF180である。このように、第1種のインタフェースの通信が従う通信規格と、第2種のインタフェースの通信が従う通信規格とは、異なっている。これに代えて、例えば、第1種のインタフェースの通信が従う通信規格と、第2種のインタフェースの通信が従う通信規格とは、同じイーサネット(登録商標)であっても良い。
B. Modification (1) In the terminal device 100 of the above embodiment, the first type of interface for communicating with the printers 200A and 200B is the USB IF 170, and the second type of interface for communicating with the management server 300 is the network IF 180. Thus, the communication standard to which the communication of the first type interface conforms differs from the communication standard to which the communication of the second type interface conforms. Alternatively, for example, the communication standard to which the communication of the first type of interface conforms and the communication standard to which the communication of the second type of interface conforms may be the same Ethernet (registered trademark).

この場合には、例えば、端末装置100は、第1種のインタフェースとして第1のネットワークIFを備え、第2種のインタフェースとして第2のネットワークIFを備える。そして、第1のネットワークIFは、ローカルエリアネットワークに接続され、該ローカルエリアネットワークを介して第1のネットワークプリンタと接続される。さらに、第2のネットワークIFは、インターネットに接続され、該インターネットを介して管理サーバ300と接続される。端末装置100には、第2のネットワークIFを介して通信を行うためのグローバルIPアドレスGIP_Aが設定される。端末装置100は、ローカルエリアネットワークに第1のネットワークプリンタが接続されている第1の通信状態では、第1のネットワークプリンタの状態情報を、グローバルIPアドレスGIP_Aを用いて、管理サーバ300に送信する。端末装置100は、ローカルエリアネットワークに第2のネットワークプリンタが接続されている第2の通信状態への遷移を検出すると、新たなグローバルIPアドレスGIP_Bを取得する。端末装置100は、第2のネットワークプリンタの状態情報を、グローバルIPアドレスGIP_Bを用いて、管理サーバ300に送信する。この場合いは、管理サーバ300は、グローバルIPアドレスに基づいて、第1のネットワークプリンタの状態情報と、第2のネットワークプリンタの状態情報と、を適切に管理できる。   In this case, for example, the terminal device 100 includes a first network IF as a first type interface and a second network IF as a second type interface. Then, the first network IF is connected to the local area network, and is connected to the first network printer via the local area network. Furthermore, the second network IF is connected to the Internet, and is connected to the management server 300 via the Internet. In the terminal device 100, a global IP address GIP_A for performing communication via the second network IF is set. In the first communication state in which the first network printer is connected to the local area network, the terminal device 100 transmits the state information of the first network printer to the management server 300 using the global IP address GIP_A. . When detecting the transition to the second communication state in which the second network printer is connected to the local area network, the terminal device 100 acquires a new global IP address GIP_B. The terminal device 100 transmits the status information of the second network printer to the management server 300 using the global IP address GIP_B. In this case, the management server 300 can appropriately manage the state information of the first network printer and the state information of the second network printer based on the global IP address.

(2)上述の変形例(1)において、第1のネットワークIFは、Wi−fi規格に従う無線インタフェースであり、第2のネットワークIFは、イーサネット(登録商標)規格に従う有線インタフェースであっても良い。逆に、第1のネットワークIFは、イーサネット(登録商標)規格に従う有線インタフェースであり、第2のネットワークIFは、Wi−fi規格に従う無線インタフェースであっても良い。また、例えば、第1のネットワークIFは、Wi−fi規格に従う無線インタフェースであり、第2のネットワークIFは、Wi−fi Directの規格に従う無線インタフェースであってもよい。 (2) In the above-described modification (1), the first network IF may be a wireless interface conforming to the Wi-fi standard, and the second network IF may be a wired interface conforming to the Ethernet (registered trademark) standard . Conversely, the first network IF may be a wired interface conforming to the Ethernet (registered trademark) standard, and the second network IF may be a wireless interface conforming to the Wi-fi standard. Also, for example, the first network IF may be a wireless interface conforming to the Wi-fi standard, and the second network IF may be a wireless interface conforming to the Wi-fi Direct standard.

(3)上記実施例では、プリンタ200Aが接続された通信状態では、IPアドレスIP_Aを用いてプリンタ200Aの状態情報を管理サーバ300に送信し、プリンタ200Bが接続された通信状態では、IPアドレスIP_Aとは異なるIPアドレスIP_Bを用いてプリンタ200Bの状態情報を管理サーバ300に送信している。これに代えて、プリンタ200Aが接続された通信状態では、MACアドレスMA_Aを用いてプリンタ200Aの状態情報を管理サーバ300に送信し、プリンタ200Bが接続された通信状態では、MACアドレスMA_Aとは異なるMACアドレスMA_Bを用いてプリンタ200Bの状態情報を管理サーバ300に送信しても良い。この場合には、管理サーバ300は、MACアドレスMA_A、MA_Bに基づいて、プリンタ200A、200Bの状態情報を適切に管理できる。 (3) In the above embodiment, in the communication state in which the printer 200A is connected, the status information of the printer 200A is transmitted to the management server 300 using the IP address IP_A, and in the communication state in which the printer 200B is connected, the IP address IP_A The status information of the printer 200B is sent to the management server 300 using an IP address IP_B different from the above. Instead, in the communication state in which the printer 200A is connected, status information of the printer 200A is transmitted to the management server 300 using the MAC address MA_A, and in the communication state in which the printer 200B is connected, it differs from the MAC address MA_A. The status information of the printer 200B may be transmitted to the management server 300 using the MAC address MA_B. In this case, the management server 300 can appropriately manage the state information of the printers 200A and 200B based on the MAC addresses MA_A and MA_B.

(4)上記実施例では、第1の通信状態は、プリンタ200AがUSBIF170に接続され、プリンタ200BがUSBIF170に接続されていない状態であり、第2の通信状態は、プリンタ200BがUSBIF170に接続され、プリンタ200AがUSBIF170に接続されていない状態である。これに代えて、第1の通信状態は、プリンタ200AがUSBIF170に接続され、プリンタ200BがUSBIF170に接続されていない状態であり、第2の通信状態は、プリンタ200Aとプリンタ100Bとの両方がUSBIF170に接続された状態であっても良い。この場合は、USBIF170は、複数個のポートを備えており、複数個のデバイスを同時に接続できる。この場合には、端末装置100は、第1の通信状態において、プリンタ200Aの状態情報を、IPアドレスIP_Aを用いて管理サーバ300に送信する。端末装置100は、プリンタ200Aに加えて、プリンタ100Bが新たにUSBIF170に接続されたことが検出された場合に、IPアドレスIP_Bを取得する。そして、端末装置100は、第2の通信状態において、プリンタ200Aの状態情報は、IPアドレスIP_Aを用いて管理サーバ300に送信し、プリンタ200Bの状態情報は、IPアドレスIP_Bを用いて管理サーバ300に送信しても良い。 (4) In the above embodiment, in the first communication state, the printer 200A is connected to the USB IF 170 and the printer 200B is not connected to the USB IF 170. In the second communication state, the printer 200B is connected to the USB IF 170. The printer 200A is not connected to the USB IF 170. Instead of this, in the first communication state, the printer 200A is connected to the USB IF 170 and the printer 200B is not connected to the USB IF 170, and in the second communication state, both the printer 200A and the printer 100B are USBIF 170. It may be in a connected state. In this case, the USB IF 170 has a plurality of ports, and can connect a plurality of devices simultaneously. In this case, the terminal device 100 transmits the state information of the printer 200A to the management server 300 using the IP address IP_A in the first communication state. The terminal device 100 acquires the IP address IP_B when it is detected that the printer 100B is newly connected to the USB IF 170 in addition to the printer 200A. Then, in the second communication state, the terminal device 100 transmits the status information of the printer 200A to the management server 300 using the IP address IP_A, and the status information of the printer 200B uses the IP address IP_B. May be sent to

(5)上記実施例では、端末装置100からの要求に応じて、プリンタ200Aやプリンタ200Bから状態情報が端末装置100に送信される。これに代えて、プリンタ200Aやプリンタ200Bが定期的に、かつ、自発的に、状態情報を端末装置100に送信しても良い。 (5) In the above embodiment, the status information is transmitted from the printer 200A or the printer 200B to the terminal device 100 in response to a request from the terminal device 100. Instead of this, the printer 200A or the printer 200B may transmit the status information to the terminal device 100 regularly and spontaneously.

(6)上記実施例では、管理サーバ300からの要求に応じて、プリンタ200Aやプリンタ200Bの状態情報が、端末装置100から管理サーバ300に送信される。これに代えて、端末装置100が定期的に、かつ、自発的に、状態情報を管理サーバ300に送信しても良い。 (6) In the above embodiment, in response to a request from the management server 300, status information of the printer 200A and the printer 200B is transmitted from the terminal device 100 to the management server 300. Instead of this, the terminal device 100 may transmit state information to the management server 300 periodically and spontaneously.

(7)上記実施例では、プリンタ200A、200Bから端末装置100へ送信され、端末装置100から管理サーバ300へ送信される状態情報は、累積印刷枚数と、消耗品の残量と、を含んでいる。これらに代えて、または、これらと共に、該状態情報は、消耗品の交換回数と、印刷実行部のエラーに関する情報と、の全部または一部を含んでも良い。また、該状態情報は、累積印刷枚数だけでも良く、消耗品の残量だけでも良い。 (7) In the above embodiment, the status information transmitted from the printers 200A and 200B to the terminal device 100 and transmitted from the terminal device 100 to the management server 300 includes the cumulative number of printed sheets and the remaining amount of consumables. There is. Alternatively or together with this, the status information may include all or part of the number of consumables replaced and information on an error of the print execution unit. Further, the status information may be only the cumulative number of printed sheets, or only the remaining amount of consumables.

(8)上記実施例では、端末装置100は、プリンタ200A、200Bの識別情報としてのシリアル番号を用いて、第1の通信状態から第2の通信状態への遷移を検出している。これに代えて、例えば、ユーザの入力に基づいて、第1の通信状態から第2の通信状態への遷移を検出しても良い。この場合には、例えば、USBIF170に接続されるプリンタを変更した場合には、ユーザは、その旨を操作部150を介して入力すれば良い。 (8) In the above embodiment, the terminal device 100 detects the transition from the first communication state to the second communication state using the serial number as the identification information of the printers 200A and 200B. Instead of this, for example, the transition from the first communication state to the second communication state may be detected based on the user's input. In this case, for example, when the printer connected to the USB IF 170 is changed, the user may input that via the operation unit 150.

(9)上記各実施例のシステム1000は、プリンタ200A、200Cに代えて、他の複数個の周辺装置、例えば、第1のスキャナと第2のスキャナや、第1のファイルサーバと第2のファイルサーバを備えても良い。この場合には、管理サーバ300は、例えば、第1のスキャナと第2のスキャナの状態情報(例えば、スキャン回数、エラー情報)や、第1のファイルサーバと第2のファイルサーバの状態情報(例えば、空き容量、エラー情報)を管理しても良い。 (9) The system 1000 of each of the above embodiments is replaced with the printers 200A and 200C with a plurality of other peripheral devices, for example, a first scanner and a second scanner, and a first file server and a second A file server may be provided. In this case, the management server 300 may, for example, state information of the first scanner and the second scanner (for example, the number of scans and error information) or state information of the first file server and the second file server For example, free space, error information) may be managed.

(10)上記各実施例において、ハードウェアによって実現されていた構成の一部をソフトウェアに置き換えるようにしてもよく、逆に、ソフトウェアによって実現されていた構成の一部あるいは全部をハードウェアに置き換えるようにしてもよい。 (10) In the above embodiments, a part of the configuration realized by hardware may be replaced by software, and conversely, a part or all of the configuration implemented by software is replaced by hardware You may do so.

(11)本発明の機能の一部または全部がコンピュータプログラムで実現される場合には、そのプログラムは、コンピュータ読み取り可能な記録媒体(例えば、一時的ではない記録媒体)に格納された形で提供することができる。プログラムは、提供時と同一または異なる記録媒体(コンピュータ読み取り可能な記録媒体)に格納された状態で、使用され得る。「コンピュータ読み取り可能な記録媒体」は、メモリーカードやCD−ROMのような携帯型の記録媒体に限らず、各種ROM等のコンピュータ内の内部記憶装置や、ハードディスクドライブ等のコンピュータに接続されている外部記憶装置も含み得る。 (11) When some or all of the functions of the present invention are realized by a computer program, the program is provided stored in a computer readable recording medium (for example, a non-temporary recording medium) can do. The program may be used while being stored on the same or different recording medium (computer readable recording medium) as provided. The “computer readable recording medium” is not limited to portable recording mediums such as memory cards and CD-ROMs, but is connected to internal storage devices in computers such as various ROMs and computers such as hard disk drives. It may also include external storage.

以上、実施例、変形例に基づき本発明について説明してきたが、上記した発明の実施の形態は、本発明の理解を容易にするためのものであり、本発明を限定するものではない。本発明は、その趣旨並びに特許請求の範囲を逸脱することなく、変更、改良され得ると共に、本発明にはその等価物が含まれる。   Although the present invention has been described above based on the examples and modifications, the above-described embodiment of the present invention is for the purpose of facilitating the understanding of the present invention, and does not limit the present invention. The present invention can be modified and improved without departing from the spirit and the scope of the claims, and the present invention includes the equivalents thereof.

100…端末装置、110…CPU、120…揮発性記憶装置、130…不揮発性記憶装置、140…表示部、150…操作部、170…読取実行部、200A、200B…プリンタ、240A…印刷実行部、240B…印刷実行部、300…管理サーバ、500…ネットワークプリンタ、540…印刷実行部、1000…システム、180…ネットワークIF、250A、250B、550…情報DB、SA…送信情報領域、PG…コンピュータプログラム、NT…ローカルエリアネットワーク、PID…プリンタ識別情報、PMT…プリンタ管理テーブル   DESCRIPTION OF SYMBOLS 100 ... Terminal device, 110 ... CPU, 120 ... Volatile memory, 130 ... Nonvolatile memory, 140 ... Display part, 150 ... Operation part, 170 ... Reading execution part, 200A, 200B ... Printer, 240A ... Printing execution part , 240B: printing execution unit, 300: management server, 500: network printer, 540: printing execution unit, 1000: system, 180: network IF, 250A, 250B, 550: information DB, SA: transmission information area, PG: computer Program, NT: Local area network, PID: Printer identification information, PMT: Printer management table

Claims (11)

第1種の通信インタフェースと、第2種の通信インタフェースと、を備える通信装置のコンピュータにて実行されるコンピュータプログラムであって、
前記第1種の通信インタフェースを介して、第1の周辺装置から前記第1の周辺装置の第1の状態情報を受信する状態受信機能と、
前記第2種の通信インタフェースを介して、前記第1の周辺装置の前記第1の状態情報を前記通信装置が取得済みの第1のアドレスを用いて管理装置に送信する状態送信機能と、
前記第1種の通信インタフェースを介して前記通信装置が前記第1の周辺装置と通信可能であり、前記第1種の通信インタフェースを介して前記通信装置が第2の周辺装置と通信可能でない第1の通信状態から、前記第1種の通信インタフェースを介して前記通信装置が前記第2の周辺装置と通信可能である第2の通信状態への遷移を検出する通信検出機能と、
前記第1の通信状態から前記第2の通信状態への遷移が検出される場合に、前記第1のアドレスとは異なる第2のアドレスを取得するアドレス取得機能と、
を前記コンピュータに実現させ、
前記状態受信機能は、前記第2の通信状態において、前記第1種の通信インタフェースを介して、前記第2の周辺装置から前記第2の周辺装置の第2の状態情報を受信し、
前記状態送信機能は、前記第2の通信状態において、前記第2種の通信インタフェースを介して、前記第2の周辺装置の前記第2の状態情報を前記第2のアドレスを用いて前記管理装置に送信する、コンピュータプログラム。
A computer program that is executed by a computer of a communication device, comprising a first type of communication interface and a second type of communication interface,
A state receiving function of receiving first state information of the first peripheral device from the first peripheral device via the first type of communication interface;
A state transmitting function of transmitting the first state information of the first peripheral device to the management device using the acquired first address of the first peripheral device via the second type communication interface;
The communication device can communicate with the first peripheral device via the first type communication interface, and the communication device can not communicate with the second peripheral device via the first type communication interface; A communication detection function of detecting a transition from the first communication state to a second communication state in which the communication device can communicate with the second peripheral device via the first type communication interface;
An address acquisition function of acquiring a second address different from the first address when a transition from the first communication state to the second communication state is detected;
On the computer,
The state reception function receives, in the second communication state, second state information of the second peripheral device from the second peripheral device via the first type communication interface,
In the second communication state, the state transmission function transmits the second state information of the second peripheral device to the management device using the second address via the second type communication interface. A computer program to send to.
請求項1に記載のコンピュータプログラムであって、
前記第2の通信状態は、前記第1種の通信インタフェースを介して前記通信装置が前記第2の周辺装置と通信可能であり、前記第1種の通信インタフェースを介して前記通信装置が前記第1の周辺装置と通信可能でない状態である、コンピュータプログラム。
A computer program according to claim 1, wherein
In the second communication state, the communication device can communicate with the second peripheral device via the first type communication interface, and the communication device can communicate with the second peripheral device via the first type communication interface. A computer program that is not in a state of being communicable with one peripheral device.
請求項1または2に記載のコンピュータプログラムであって、
前記第1種の通信インタフェースは、第1の通信規格に従う通信を行うインタフェースであり、
前記第2種の通信インタフェースは、前記第1の通信規格とは異なる第2の通信規格に従う通信を行うインタフェースである、コンピュータプログラム。
A computer program according to claim 1 or 2,
The first type communication interface is an interface that performs communication in accordance with a first communication standard,
The computer program, wherein the second type communication interface performs communication in accordance with a second communication standard different from the first communication standard.
請求項3に記載のコンピュータプログラムであって、
前記第1の通信規格は、USB(Universal Serial Busの略)であり、
前記第2の通信規格は、IP(Internet Protocolの略)である、コンピュータプログラム。
A computer program according to claim 3, wherein
The first communication standard is USB (abbreviation of Universal Serial Bus),
The computer program, wherein the second communication standard is IP (abbreviation of Internet Protocol).
請求項1〜4のいずれかに記載のコンピュータプログラムであって、さらに、
前記第1種の通信インタフェースを介して前記通信装置が通信可能な前記周辺装置から、前記周辺装置の識別情報を受信する識別情報受信機能を前記コンピュータに実現させ、
前記通信検出機能は、前記第1種の通信インタフェースを介して第1の前記識別情報が受信され、前記第1の識別情報が受信された後に、前記第1の識別情報とは異なる第2の前記識別情報が受信される場合に、前記第1の通信状態から前記第2の通信状態への遷移を検出する、コンピュータプログラム。
The computer program according to any one of claims 1 to 4, further comprising:
Causing the computer to realize an identification information receiving function of receiving identification information of the peripheral device from the peripheral device with which the communication device can communicate via the first type communication interface;
In the communication detection function, after the first identification information is received via the first type communication interface and the first identification information is received, the second communication information is different from the first identification information. A computer program for detecting a transition from the first communication state to the second communication state when the identification information is received.
請求項5に記載のコンピュータプログラムであって、さらに、
前記識別情報受信機能は、前記第1種の通信インタフェースを介して前記通信装置が通信可能な前記周辺装置に定期的に送信する要求に対する応答として、前記識別情報を受信する、コンピュータプログラム。
The computer program according to claim 5, further comprising
The computer program, wherein the identification information reception function receives the identification information as a response to a request periodically transmitted to the peripheral device with which the communication device can communicate via the first type communication interface.
請求項1〜6のいずれかに記載のコンピュータプログラムであって、
前記アドレス取得機能は、
前記第1の通信状態から前記第2の通信状態への遷移が検出される場合に、前記第2種の通信インタフェースを介して通信可能なネットワーク内のアドレス割当装置にアドレスの要求を送信し、
前記アドレスの要求に対する応答として、前記アドレス割当装置から、前記第2のアドレスを取得する、コンピュータプログラム。
The computer program according to any one of claims 1 to 6, wherein
The address acquisition function is
When a transition from the first communication state to the second communication state is detected, an address request is transmitted to an address assignment device in a communicable network via the second type communication interface,
A computer program for acquiring the second address from the address assignment device as a response to the request for the address.
請求項1〜6のいずれかに記載のコンピュータプログラムであって、
前記アドレス取得機能は、
前記第1の通信状態から前記第2の通信状態への遷移が検出される場合に、前記第2種の通信インタフェースを介して通信可能なネットワーク内で未使用の前記アドレスを特定し、
特定される前記未使用のアドレスを前記第2のアドレスとして取得する、コンピュータプログラム。
The computer program according to any one of claims 1 to 6, wherein
The address acquisition function is
When a transition from the first communication state to the second communication state is detected, the unused address is identified in a communicable network via the second type communication interface,
The computer program which acquires the said unused address identified as said 2nd address.
請求項1〜8のいずれかに記載のコンピュータプログラムであって、
前記状態受信機能は、前記周辺装置と定期的に通信を行って、前記周辺装置の前記状態情報を定期的に受信し、
定期的に受信される前記周辺装置の前記状態情報は、前記通信装置のメモリに格納され、
前記状態送信機能は、前記管理装置から前記状態情報の要求を受信した場合に、前記メモリに格納される前記周辺装置の前記状態情報を前記管理装置に送信する、コンピュータプログラム。
The computer program according to any one of claims 1 to 8, wherein
The state reception function periodically communicates with the peripheral device to periodically receive the state information of the peripheral device.
The status information of the peripheral device, which is periodically received, is stored in a memory of the communication device,
The computer program, wherein the state transmission function transmits the state information of the peripheral device stored in the memory to the management device when receiving a request for the state information from the management device.
請求項1〜9のいずれかに記載のコンピュータプログラムであって、
前記周辺装置は、印刷を実行する印刷実行部を備え、
前記状態情報は、前記印刷実行部における消耗品の残量を示す情報と、前記消耗品の交換回数を示す情報と、印刷枚数を示す情報と、前記印刷実行部におけるエラーに関する情報と、のうちの少なくとも一個の情報を含む、コンピュータプログラム。
The computer program according to any one of claims 1 to 9, wherein
The peripheral device includes a print execution unit that executes printing,
The status information includes information indicating the remaining amount of consumables in the print execution unit, information indicating the number of replacements of the consumables, information indicating the number of printed sheets, and information on an error in the print execution unit. A computer program comprising at least one piece of information.
通信装置であって、
第1種の通信インタフェースと、
第2種の通信インタフェースと、
前記第1種の通信インタフェースを介して、第1の周辺装置から前記第1の周辺装置の第1の状態情報を受信する状態受信部と、
前記第2種の通信インタフェースを介して、前記第1の周辺装置の前記第1の状態情報を前記通信装置が取得済みの第1のアドレスを用いて管理装置に送信する状態送信部と、
前記第1種の通信インタフェースを介して前記通信装置が前記第1の周辺装置と通信可能であり、前記第1種の通信インタフェースを介して前記通信装置が第2の周辺装置と通信可能でない第1の通信状態から、前記第1種の通信インタフェースを介して前記通信装置が前記第2の周辺装置と通信可能である第2の通信状態への遷移を検出する通信検出部と、
前記第1の通信状態から前記第2の通信状態への遷移が検出される場合に、前記第1のアドレスとは異なる第2のアドレスを取得するアドレス取得部と、
を備え、
前記状態受信部は、前記第2の通信状態において、前記第1種の通信インタフェースを介して、前記第2の周辺装置から前記第2の周辺装置の第2の状態情報を受信し、
前記状態送信部は、前記第2の通信状態において、前記第2種の通信インタフェースを介して、前記第2のアドレスを用いて、前記第2の周辺装置の前記第2の状態情報を前記第2のアドレスを用いて前記管理装置に送信する、通信装置。
A communication device,
Communication interface of the first kind,
Second type communication interface,
A state receiving unit for receiving first state information of the first peripheral device from the first peripheral device via the first type of communication interface;
A state transmission unit that transmits the first state information of the first peripheral device to the management device using the acquired first address of the first peripheral device via the second type communication interface;
The communication device can communicate with the first peripheral device via the first type communication interface, and the communication device can not communicate with the second peripheral device via the first type communication interface; A communication detection unit that detects a transition from the first communication state to a second communication state in which the communication device can communicate with the second peripheral device via the first type communication interface;
An address acquisition unit that acquires a second address different from the first address when a transition from the first communication state to the second communication state is detected;
Equipped with
The state reception unit receives, in the second communication state, second state information of the second peripheral device from the second peripheral device via the first type communication interface,
In the second communication state, the state transmitting unit uses the second address to communicate the second state information of the second peripheral device via the second type communication interface. A communication device for transmitting to the management device using an address of 2.
JP2017189751A 2017-09-29 2017-09-29 Communication equipment and computer programs Active JP6931193B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017189751A JP6931193B2 (en) 2017-09-29 2017-09-29 Communication equipment and computer programs

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017189751A JP6931193B2 (en) 2017-09-29 2017-09-29 Communication equipment and computer programs

Publications (2)

Publication Number Publication Date
JP2019067010A true JP2019067010A (en) 2019-04-25
JP6931193B2 JP6931193B2 (en) 2021-09-01

Family

ID=66339601

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017189751A Active JP6931193B2 (en) 2017-09-29 2017-09-29 Communication equipment and computer programs

Country Status (1)

Country Link
JP (1) JP6931193B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6786014B1 (en) * 2019-07-11 2020-11-18 三菱電機株式会社 Communication systems, communication devices and programs

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6786014B1 (en) * 2019-07-11 2020-11-18 三菱電機株式会社 Communication systems, communication devices and programs
WO2021005784A1 (en) * 2019-07-11 2021-01-14 三菱電機株式会社 Communication system, communication apparatus, and program
US11394605B2 (en) 2019-07-11 2022-07-19 Mitsubishi Electric Corporation Communication system, communication apparatus, and program

Also Published As

Publication number Publication date
JP6931193B2 (en) 2021-09-01

Similar Documents

Publication Publication Date Title
US8886776B2 (en) Communication apparatus and storing medium
US7788355B2 (en) Print control program controlling printer connected to network
US7716318B2 (en) Image forming apparatus monitoring system and method, image forming apparatus, control method therefor, and program for implementing the method
US9582233B1 (en) Systems and methods for registering, configuring, and troubleshooting printing devices
US10241734B2 (en) Multi-worker approach for printer data collection in timely situations
US8958103B2 (en) Management apparatus, management method and computer readable medium for confirming identity of a device in a network using identification information and log information
US20160274828A1 (en) Image forming system, image forming apparatus, control method for image forming apparatus, and non-transitory computer readable medium
US20110138081A1 (en) Network-connected apparatus and network connection method
US20160226953A1 (en) Device management apparatus, relay apparatus, relay method, and computer readable medium
US11194525B2 (en) Method of controlling information processing apparatus and storage medium storing program to set an IP address for a device suitable for network environment
KR101337151B1 (en) Information processing apparatus that identifies transmission source, and control method therefor
JP6931193B2 (en) Communication equipment and computer programs
US11526312B2 (en) Device management apparatus, method, and program storage medium
JP2012168684A (en) Network system, interface board and print processing method of network system
JP2019067007A (en) Communication device, management device, and computer program
JP6962116B2 (en) Computer programs and communication equipment for communication equipment
US10891096B2 (en) Communication device, non-transitory computer-readable recording medium storing computer-readable instructions for communication device, and method performed by communication device
JP2014107629A (en) Information processing apparatus, control method for information processing apparatus, and program
JP2013020342A (en) Image formation system, output management method and program
JP2008217211A (en) Printer information setting system, terminal device, printer information setting method and program
US10810149B2 (en) Non-transitory computer-readable medium having instructions, communication device, communication method
JP2018173779A (en) Communication apparatus
JP2011039840A (en) Image processing apparatus, software updating system, software updating method, software updating program, and recording medium with the program recorded thereon
US20050094185A1 (en) Job managing apparatus, job managing method, and job managing program
JP2023005564A (en) Printer, and production method of printed matter

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200918

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210630

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210727

R150 Certificate of patent or registration of utility model

Ref document number: 6931193

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150