JP2015195533A - communication device - Google Patents

communication device Download PDF

Info

Publication number
JP2015195533A
JP2015195533A JP2014073100A JP2014073100A JP2015195533A JP 2015195533 A JP2015195533 A JP 2015195533A JP 2014073100 A JP2014073100 A JP 2014073100A JP 2014073100 A JP2014073100 A JP 2014073100A JP 2015195533 A JP2015195533 A JP 2015195533A
Authority
JP
Japan
Prior art keywords
address
communication device
value
current
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2014073100A
Other languages
Japanese (ja)
Inventor
安藤 智子
Tomoko Ando
智子 安藤
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 JP2014073100A priority Critical patent/JP2015195533A/en
Publication of JP2015195533A publication Critical patent/JP2015195533A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a novel technique for a communication device to appropriately execute unicast communication with another communication device.SOLUTION: A printer PR receives a search packet from a terminal device TE (T14), and transmits a response packet to the terminal device TE (T16). The printer PR, when judging that the value of the network address part of an IPte does not match the value of the network address part of an IPpr (T20), newly sets an IPca1, as the IP address of the printer PR (T36). Then, the printer PR again receives a search packet again from the terminal device TE (T40), and transmits a response packet to the terminal device TE (T42). Thus, the printer PR can notify the terminal device TE of the IPca1 which is newly set to the printer PR. As a result, the printer PR executes unicast communication of print data using the IPca1 with the terminal device TE (T48).

Description

本明細書では、他の通信装置と通信を実行するための通信装置を開示する。   The present specification discloses a communication apparatus for executing communication with another communication apparatus.

特許文献1の技術では、プリンタは、PCからローカルエリアネットワークにブロードキャストされた名前解決パケットを受信すると、PINGパケットをPCに送信する。プリンタは、PCからPINGパケットに対する応答パケットを受信しない場合に、プリンタとのユニキャスト通信が実行不可能であると判断し、プリンタ自身に新たなIPアドレスを設定する。   In the technique disclosed in Patent Document 1, when a printer receives a name resolution packet broadcast from a PC to a local area network, the printer transmits a PING packet to the PC. If the printer does not receive a response packet to the PING packet from the PC, the printer determines that unicast communication with the printer cannot be performed, and sets a new IP address for the printer itself.

特開2012−156910号公報JP 2012-156910 A

本明細書では、通信装置が他の通信装置とのユニキャスト通信を適切に実行するための新規な技術を開示する。   The present specification discloses a novel technique for a communication device to appropriately perform unicast communication with another communication device.

本明細書によって開示される第1の通信装置は、要求パケット受信部と、応答パケット送信部と、判断部と、設定部と、ユニキャスト通信実行部と、を備える。要求パケット受信部は、第1の通信装置とは異なる第2の通信装置からローカルエリアネットワークにブロードキャストされた要求パケットを受信する。要求パケットは、第2の通信装置の現在のIPアドレスである対象IPアドレスと、第2の通信装置の現在のサブネットマスクである対象サブネットマスクと、を含む。応答パケット送信部は、第2の通信装置から要求パケットが受信される場合に、ローカルエリアネットワークを介して、要求パケットに対する第1の応答パケットを第2の通信装置に送信する。第1の応答パケットは、第1の通信装置の現在のIPアドレスである現行IPアドレスと、第1の通信装置の現在のサブネットマスクである現行サブネットマスクと、を含む。判断部は、第2の通信装置から要求パケットが受信される場合に、要求パケットに含まれる対象IPアドレスの値と対象サブネットマスクの値とを用いて対象IPアドレスのネットワークアドレス部の値である対象ネットワークアドレス値を特定し、現行IPアドレスの値と現行サブネットマスクの値とを用いて現行IPアドレスのネットワークアドレス部の値である現行ネットワークアドレス値を特定し、特定済みの対象ネットワークアドレス値と特定済みの現行ネットワークアドレス値とが一致するのか否かを判断する。設定部は、対象ネットワークアドレス値と現行ネットワークアドレス値とが一致しないと判断される場合に、第1の通信装置のIPアドレスとして、現行IPアドレスに代えて、対象ネットワークアドレス値に一致するネットワークアドレス部の値を含む新IPアドレスを設定する。ユニキャスト通信実行部は、第1の通信装置のIPアドレスとして新IPアドレスが設定された後に、ローカルエリアネットワークを介して、新IPアドレスを利用した対象データのユニキャスト通信を第2の通信装置と実行する。要求パケット受信部は、さらに、第1の通信装置のIPアドレスとして新IPアドレスが設定された後に、第2の通信装置からローカルエリアネットワークに再びブロードキャストされた要求パケットを再び受信する。応答パケット送信部は、さらに、第2の通信装置から要求パケットが再び受信される場合に、ローカルエリアネットワークを介して、要求パケットに対する第2の応答パケットであって、新IPアドレスを含む第2の応答パケットを第2の通信装置に送信する。ユニキャスト通信実行部は、第2の応答パケットが第2の通信装置に送信された後に、ローカルエリアネットワークを介して、新IPアドレスを利用した対象データのユニキャスト通信を第2の通信装置と実行する。   The first communication device disclosed in the present specification includes a request packet receiving unit, a response packet transmitting unit, a determining unit, a setting unit, and a unicast communication executing unit. The request packet receiving unit receives a request packet broadcast to a local area network from a second communication device different from the first communication device. The request packet includes a target IP address that is the current IP address of the second communication device and a target subnet mask that is the current subnet mask of the second communication device. When a request packet is received from the second communication device, the response packet transmission unit transmits a first response packet for the request packet to the second communication device via the local area network. The first response packet includes a current IP address that is the current IP address of the first communication device and a current subnet mask that is the current subnet mask of the first communication device. The determination unit is the value of the network address part of the target IP address using the value of the target IP address and the value of the target subnet mask included in the request packet when the request packet is received from the second communication device. A target network address value is specified, a current network address value that is a value of the network address portion of the current IP address is specified using the current IP address value and the current subnet mask value, and the specified target network address value It is determined whether or not the specified current network address value matches. When it is determined that the target network address value does not match the current network address value, the setting unit replaces the current IP address with the network address that matches the target network address value as the IP address of the first communication device. Set a new IP address that contains the value of the part. The unicast communication execution unit performs unicast communication of target data using the new IP address via the local area network after the new IP address is set as the IP address of the first communication device. And execute. The request packet receiver further receives the request packet broadcast again from the second communication device to the local area network after the new IP address is set as the IP address of the first communication device. The response packet transmission unit further includes a second response packet that includes the new IP address and is a second response packet to the request packet via the local area network when the request packet is received again from the second communication device. The response packet is transmitted to the second communication device. After the second response packet is transmitted to the second communication device, the unicast communication execution unit performs unicast communication of the target data using the new IP address with the second communication device via the local area network. Run.

上記の構成によると、第1の通信装置は、第2の通信装置からブロードキャストされた要求パケットを受信し、第1の応答パケットを第2の通信装置に送信し、対象ネットワークアドレス値と現行ネットワークアドレス値とが一致するのか否かを判断する。第1の通信装置は、対象ネットワークアドレス値と現行ネットワークアドレス値とが一致しないと判断する場合に、第1の通信装置のIPアドレスとして、現行IPアドレスに代えて、新IPアドレスを設定する。そして、第1の通信装置は、第2の通信装置から再びブロードキャストされた要求パケットを再び受信し、対象ネットワークアドレス値に一致するネットワークアドレス部の値を含む新IPアドレスを含む第2の応答パケットを第2の通信装置に送信する。即ち、第1の通信装置は、新IPアドレスを第2の通信装置に通知することができる。これにより、第1の通信装置は、新IPアドレスを利用した対象データのユニキャスト通信を第2の通信装置と適切に実行することができる。   According to the above configuration, the first communication device receives the request packet broadcast from the second communication device, transmits the first response packet to the second communication device, the target network address value and the current network It is determined whether or not the address value matches. When determining that the target network address value does not match the current network address value, the first communication device sets a new IP address instead of the current IP address as the IP address of the first communication device. The first communication device receives the request packet broadcast again from the second communication device, and receives the second response packet including the new IP address including the value of the network address portion that matches the target network address value. Is transmitted to the second communication device. That is, the first communication device can notify the second communication device of the new IP address. Thereby, the 1st communication apparatus can perform appropriately the unicast communication of the object data using a new IP address with the 2nd communication apparatus.

本明細書では、さらに、上記の第1の通信装置と第2の通信装置とを備える通信システムを開示する。第2の通信装置は、要求パケット送信部と、応答パケット受信部と、第1の判断部と、を備える。要求パケット送信部は、第1の通信装置と第2の通信装置とが接続されているローカルエリアネットワークに要求パケットをブロードキャストする。要求パケットは、第2の通信装置の現在のIPアドレスである対象IPアドレスと、第2の通信装置の現在のサブネットマスクである対象サブネットマスクと、を含む。応答パケット受信部は、第1の通信装置から、ローカルエリアネットワークを介して、要求パケットに対する第1の応答パケットを受信する。第1の応答パケットは、第1の通信装置の現在のIPアドレスである現行IPアドレスと、第1の通信装置の現在のサブネットマスクである現行サブネットマスクと、を含む。第1の判断部は、第1の通信装置から第1の応答パケットが受信される場合に、対象IPアドレスの値と対象サブネットマスクの値とを用いて対象IPアドレスのネットワークアドレス部の値である対象ネットワークアドレス値を特定し、応答パケットに含まれる現行IPアドレスの値と現行サブネットマスクの値とを用いて現行IPアドレスのネットワークアドレス部の値である現行ネットワークアドレス値を特定し、特定済みの対象ネットワークアドレス値と特定済みの現行ネットワークアドレス値とが一致するのか否かを判断する。要求パケット送信部は、さらに、対象ネットワークアドレス値と現行ネットワークアドレス値とが一致しないと第1の判断部によって判断される場合に、要求パケットをローカルエリアネットワークに再びブロードキャストする。応答パケット受信部は、さらに、第1の通信装置のIPアドレスとして、現行IPアドレスに代えて、対象ネットワークアドレス値に一致するネットワークアドレス部の値を含む新IPアドレスが設定された後に、第1の通信装置から、ローカルエリアネットワークを介して、再びブロードキャストされた要求パケットに対する第2の応答パケットであって、新IPアドレスを含む第2の応答パケットを受信する。   The present specification further discloses a communication system including the first communication device and the second communication device. The second communication device includes a request packet transmission unit, a response packet reception unit, and a first determination unit. The request packet transmission unit broadcasts the request packet to the local area network to which the first communication device and the second communication device are connected. The request packet includes a target IP address that is the current IP address of the second communication device and a target subnet mask that is the current subnet mask of the second communication device. The response packet receiving unit receives a first response packet for the request packet from the first communication device via the local area network. The first response packet includes a current IP address that is the current IP address of the first communication device and a current subnet mask that is the current subnet mask of the first communication device. When the first response packet is received from the first communication device, the first determination unit uses the value of the target IP address and the value of the target subnet mask to determine the value of the network address part of the target IP address. Identify the target network address value, identify the current network address value that is the value of the network address part of the current IP address using the current IP address value and the current subnet mask value included in the response packet, and have already been identified It is determined whether or not the target network address value matches the specified current network address value. The request packet transmission unit further broadcasts the request packet to the local area network again when the first determination unit determines that the target network address value does not match the current network address value. The response packet receiving unit further sets the first IP address of the first communication device after the new IP address including the value of the network address part matching the target network address value is set instead of the current IP address. The second response packet including the new IP address, which is a second response packet to the request packet broadcast again via the local area network, is received from the communication device.

上記の構成によると、第1の通信装置が新IPアドレスを第2の通信装置に通知するので、第2の通信装置は、第1の通信装置の新IPアドレスを知ることができる。これにより、第1の通信装置と第2の通信装置とは、新IPアドレスを利用した対象データのユニキャスト通信を適切に実行することができる。   According to the above configuration, since the first communication device notifies the second communication device of the new IP address, the second communication device can know the new IP address of the first communication device. Thereby, the 1st communication apparatus and the 2nd communication apparatus can perform appropriately the unicast communication of the object data using a new IP address.

なお、上記の第2の通信装置の単体も新規で有用である。また、上記の第1及び第2の通信装置のうちの少なくとも一方を実現するための制御方法、コンピュータプログラム、及び、当該コンピュータプログラムを記憶するコンピュータ読取可能記録媒体も、新規で有用である。   The single unit of the second communication device is also new and useful. A control method for realizing at least one of the first and second communication devices, a computer program, and a computer-readable recording medium storing the computer program are also novel and useful.

通信システムの構成を示す。1 shows a configuration of a communication system. 第1実施例のプリンタの処理のフローチャートを示す。2 shows a flowchart of processing of the printer of the first embodiment. プリンタの表示部に表示される選択画面を示す。The selection screen displayed on the display part of a printer is shown. 第1実施例の端末装置の処理のフローチャートを示す。The flowchart of the process of the terminal device of 1st Example is shown. IPアドレスの変更が選択されるケースAのシーケンス図を示す。The sequence diagram of case A in which change of the IP address is selected is shown. IPアドレスの変更が選択されないケースBのシーケンス図を示す。The sequence diagram of case B in which change of the IP address is not selected is shown. 第2実施例のプリンタの処理のフローチャートを示す。6 shows a flowchart of processing of a printer of a second embodiment. 第2実施例のシーケンス図を示す。The sequence diagram of 2nd Example is shown. 第3実施例のプリンタの処理のフローチャートを示す。9 shows a flowchart of processing of a printer of a third embodiment. 第3実施例のシーケンス図を示す。The sequence diagram of 3rd Example is shown.

(第1実施例)
(通信システム2の構成;図1)
図1に示されるように、通信システム2は、端末装置TEと、プリンタPRと、第1のDHCP(Dynamic Host Configuration Protocolの略)サーバ60と、第2のDHCPサーバ70と、を備える。各デバイスTE、PR、60、70は、LAN4に接続されており、LAN4を介して、相互に通信可能である。LAN4は、本実施例では有線LANであるが、変形例では無線LANであってもよい。
(First embodiment)
(Configuration of communication system 2; FIG. 1)
As shown in FIG. 1, the communication system 2 includes a terminal device TE, a printer PR, a first DHCP (abbreviation of Dynamic Host Configuration Protocol) server 60, and a second DHCP server 70. The devices TE, PR, 60 and 70 are connected to the LAN 4 and can communicate with each other via the LAN 4. The LAN 4 is a wired LAN in the present embodiment, but may be a wireless LAN in a modified example.

(プリンタPRの構成)
プリンタPRは、印刷機能を実行可能な周辺機器(即ち端末装置TE等の周辺機器)である。プリンタPRは、操作部12と、表示部14と、印刷実行部16と、ネットワークインターフェース18と、制御部20と、を備える。
(Configuration of printer PR)
The printer PR is a peripheral device that can execute a printing function (that is, a peripheral device such as the terminal device TE). The printer PR includes an operation unit 12, a display unit 14, a print execution unit 16, a network interface 18, and a control unit 20.

操作部12は、複数のキーによって構成される。ユーザは、操作部12を操作することによって、様々な指示をプリンタPRに入力することができる。表示部14は、様々な情報を表示するためのディスプレイである。印刷実行部16は、インクジェットヘッド方式、レーザ方式等の印刷機構を備え、制御部20からの指示に従って印刷を実行する。ネットワークインターフェース18は、LAN4に接続されている。以下では、インターフェースのことを「I/F」と記載する。   The operation unit 12 includes a plurality of keys. The user can input various instructions to the printer PR by operating the operation unit 12. The display unit 14 is a display for displaying various information. The printing execution unit 16 includes a printing mechanism such as an inkjet head method or a laser method, and executes printing in accordance with an instruction from the control unit 20. The network interface 18 is connected to the LAN 4. Hereinafter, the interface is described as “I / F”.

制御部20は、CPU22と、メモリ24と、を備える。CPU22は、メモリ24に記憶されているプログラム(例えば、後述の特定プログラム等)に従って、様々な処理を実行するプロセッサである。また、メモリ24は、プリンタPRの現在のIPアドレスの値IPprと、プリンタPRの現在のサブネットマスクの値SMprと、を記憶する。値IPpr、値SMprは、それぞれ、「192.168.100.2」、「255.255.255.0」である。図1の状態では、これらの値IPpr、SMprは、LAN4に接続されている第2のDHCPサーバ70によって割り当てられたものである。なお、以下では、値IPpr、値SMprのことを、それぞれ、「IPpr」、「SMpr」と省略して記載することがある。メモリ24に記憶されている特定プログラムについては後述する。   The control unit 20 includes a CPU 22 and a memory 24. The CPU 22 is a processor that executes various processes in accordance with a program (for example, a specific program described later) stored in the memory 24. Further, the memory 24 stores the current IP address value IPpr of the printer PR and the current subnet mask value SMpr of the printer PR. The value IPpr and the value SMpr are “192.168.100.2” and “255.255.255.0”, respectively. In the state of FIG. 1, these values IPpr and SMpr are assigned by the second DHCP server 70 connected to the LAN 4. In the following, the value IPpr and the value SMpr may be abbreviated as “IPpr” and “SMpr”, respectively. The specific program stored in the memory 24 will be described later.

(端末装置TE)
端末装置TEは、デスクトップPC等の据置型の端末装置である。変形例では、端末装置TEは、ノートPC、タブレットPC等の可搬型の端末装置であってもよい。端末装置TEは、制御部50を備える。制御部50は、CPU52と、メモリ54と、を備える。CPU52は、メモリ54に記憶されているプログラム(例えば、OSプログラム、特定プログラム等)に従って、様々な処理を実行するプロセッサである。また、メモリ54は、端末装置TEの現在のIPアドレスの値IPteと、端末装置TEの現在のサブネットマスクの値SMteと、を記憶する。値IPte、値SMteは、それぞれ、「192.168.1.2」、「255.255.255.0」である。即ち、端末装置TEのIPアドレスのネットワークドレス部の値は、「192.168.1」である。図1の状態では、これらの値IPte、SMteは、LAN4に接続されている第1のDHCPサーバ60によって割り当てられたものである。なお、以下では、値IPte、値SMteのことを、それぞれ、「IPte」、「SMte」と省略して記載することがある。
(Terminal device TE)
The terminal device TE is a stationary terminal device such as a desktop PC. In a modification, the terminal device TE may be a portable terminal device such as a notebook PC or a tablet PC. The terminal device TE includes a control unit 50. The control unit 50 includes a CPU 52 and a memory 54. The CPU 52 is a processor that executes various processes in accordance with programs (for example, OS programs, specific programs, etc.) stored in the memory 54. Further, the memory 54 stores the current IP address value IPte of the terminal device TE and the current subnet mask value SMte of the terminal device TE. The value IPte and the value SMte are “192.168.1.2” and “255.255.255.0”, respectively. That is, the value of the network address part of the IP address of the terminal device TE is “192.168.1”. In the state of FIG. 1, these values IPte and SMte are assigned by the first DHCP server 60 connected to the LAN 4. In the following, the values IPte and SMte may be abbreviated as “IPte” and “SMte”, respectively.

メモリ54は、上記の特定プログラムと、プリンタドライバと、を記憶する。プリンタドライバは、プリンタPRに印刷機能を実行させるためのプログラムである。上述したように、特定プログラムは、端末装置TEとプリンタPRとのそれぞれに備えられている。特定プログラムは、端末装置TE及びプリンタPRが異なるサブネットに属する場合に、端末装置TE及びプリンタPRの間で、OSI参照モデルのアプリケーション層よりも下位層(例えば、物理層、データリンク層等)のデータのユニキャスト通信を実行するためのプログラムである。ここで、「端末装置TE及びプリンタPRが異なるサブネットに属する」とは、端末装置TEのIPアドレスのネットワークドレス部の値(例えば、192.168.1)と、プリンタPRのIPアドレスのネットワークアドレス部の値(例えば、192.168.100)と、が異なることを意味する。   The memory 54 stores the specific program and the printer driver. The printer driver is a program for causing the printer PR to execute a printing function. As described above, the specific program is provided in each of the terminal device TE and the printer PR. When the terminal device TE and the printer PR belong to different subnets, the specific program is lower than the application layer of the OSI reference model (for example, the physical layer, the data link layer, etc.) between the terminal device TE and the printer PR. It is a program for executing unicast communication of data. Here, “the terminal device TE and the printer PR belong to different subnets” means that the value of the network address part (for example, 192.168.1. 1) of the IP address of the terminal device TE and the network address of the IP address of the printer PR. This means that the value of the part (for example, 192.168.100) is different.

端末装置TE及びプリンタPRが異なるサブネットに属する場合には、通常、端末装置TE及びプリンタPRの間でユニキャスト通信を行うことはできない。例えば、端末装置TEが、プリンタPRのIPアドレスを送信先IPアドレスとしてデータを送信すると、当該データは、端末装置TEのゲートウェイに送信される。本実施例では、第1のDHCPサーバ60が当該ゲートウェイの機能を実現する。図1の状態では、第1のDHCPサーバ60(即ちゲートウェイ)のIPアドレスのネットワークアドレス部の値(即ち、192.168.1)は、端末装置TEのIPアドレスのネットワークアドレス部の値に一致するが、上記のデータの送信先であるプリンタPRのIPアドレスのネットワークアドレス部の値(即ち、192.168.100)に一致しない。そのため、第1のDHCPサーバ60は、端末装置TEから上記のデータを受信しても、上記のデータをプリンタPRに送信しない。その結果、端末装置TEは、プリンタPRとユニキャスト通信を実行することができない。   When the terminal device TE and the printer PR belong to different subnets, normally, unicast communication cannot be performed between the terminal device TE and the printer PR. For example, when the terminal device TE transmits data using the IP address of the printer PR as the transmission destination IP address, the data is transmitted to the gateway of the terminal device TE. In the present embodiment, the first DHCP server 60 realizes the function of the gateway. In the state of FIG. 1, the value of the network address part of the IP address of the first DHCP server 60 (ie, gateway) (ie, 192.168.1) matches the value of the network address part of the IP address of the terminal device TE. However, it does not match the value of the network address part (namely, 192.168.100) of the IP address of the printer PR that is the data transmission destination. Therefore, even if the first DHCP server 60 receives the data from the terminal device TE, the first DHCP server 60 does not transmit the data to the printer PR. As a result, the terminal device TE cannot execute unicast communication with the printer PR.

一方、本実施例のプリンタPR及び端末装置TEは、特定プログラムを備えるので、特定プログラムに従って、端末装置TEのゲートウェイ(即ち、第1のDHCPサーバ60)を経由せずに、ユニキャスト通信を直接的に実行することができる。   On the other hand, since the printer PR and the terminal device TE according to the present embodiment include the specific program, the unicast communication is directly performed according to the specific program without passing through the gateway of the terminal device TE (that is, the first DHCP server 60). Can be executed automatically.

特定プログラム及びプリンタドライバは、例えば、プリンタPRの出荷時にプリンタPRと共にパッケージされている情報記憶媒体(CD、DVD等)に格納されている。端末装置TEは、情報記憶媒体に格納されているこれらのプログラムをインストールして、これらのプログラムをメモリ54に記憶する。また、端末装置TEは、プリンタドライバをインストールして、プリンタPRのための印刷ポートを生成する際に、プリンタPRからプリンタPRのノード名を取得する。端末装置TEは、プリンタPRのノード名をメモリ54に記憶する。   The specific program and the printer driver are stored in, for example, an information storage medium (CD, DVD, etc.) packaged with the printer PR when the printer PR is shipped. The terminal device TE installs these programs stored in the information storage medium, and stores these programs in the memory 54. Further, when the terminal device TE installs a printer driver and generates a print port for the printer PR, the terminal device TE acquires the node name of the printer PR from the printer PR. The terminal device TE stores the node name of the printer PR in the memory 54.

(第1のDHCPサーバ60の構成)
第1のDHCPサーバ60は、LAN4に接続されているデバイス(例えば、端末装置TE、プリンタPR等)からの要求に応じて、上記のデバイスにIPアドレス及びサブネットマスクを割り当てる。また、第1のDHCPサーバ60は、一のデバイスからデータを受信し、受信されたデータを他のデバイスに転送するゲートウェイ機能を有する。第1のDHCPサーバ60が割り当て可能なIPアドレスの範囲(即ち「192.168.1.2〜254」)は、予め決められている。第1のDHCPサーバ60は、値IPdh1「192.168.1.1」を自己のIPアドレス(即ち、ゲートウェイアドレス)として使用し、値SMdh1「255.255.255.0」を自己のサブネットマスクとして使用する。なお、以下では、値IPdh1、値SMdh1のことを、それぞれ、「IPdh1」、「SMdh1」と省略して記載することがある。
(Configuration of the first DHCP server 60)
The first DHCP server 60 assigns an IP address and a subnet mask to the above device in response to a request from a device (for example, terminal device TE, printer PR, etc.) connected to the LAN 4. The first DHCP server 60 has a gateway function for receiving data from one device and transferring the received data to another device. The range of IP addresses that can be assigned by the first DHCP server 60 (ie, “192.168.1.2 to 254”) is determined in advance. The first DHCP server 60 uses the value IPdh1 “192.168.1.1” as its own IP address (ie, gateway address) and the value SMdh1 “255.255.255.0” as its own subnet mask. Use as Hereinafter, the value IPdh1 and the value SMdh1 may be abbreviated as “IPdh1” and “SMdh1”, respectively.

(第2のDHCPサーバ70の構成)
第2のDHCPサーバ70は、第1のDHCPサーバ60とは異なるDHCPサーバであり、LAN4に接続されているデバイスからの要求に応じて、上記のデバイスにIPアドレス及びサブネットマスクを割り当てる。また、第2のDHCPサーバ70は、ゲートウェイ機能を有する。第2のDHCPサーバ60は、「192.168.100.2〜254」の範囲内のIPアドレスを割り当て可能である。第2のDHCPサーバ70は、値IPdh2「192.168.100.1」を自己のIPアドレス(即ち、ゲートウェイアドレス)として使用し、値SMdh2「255.255.255.0」を自己のサブネットマスクとして使用する。なお、以下では、値IPdh2、値SMdh2のことを、それぞれ、「IPdh2」、「SMdh2」と省略して記載することがある。
(Configuration of the second DHCP server 70)
The second DHCP server 70 is a DHCP server different from the first DHCP server 60, and assigns an IP address and a subnet mask to the above device in response to a request from a device connected to the LAN 4. The second DHCP server 70 has a gateway function. The second DHCP server 60 can assign an IP address in the range of “192.168.100.2 to 254”. The second DHCP server 70 uses the value IPdh2 “192.168.100.1” as its own IP address (ie, gateway address) and uses the value SMdh2 “255.255.255.0” as its own subnet mask. Use as Hereinafter, the value IPdh2 and the value SMdh2 may be abbreviated as “IPdh2” and “SMdh2”, respectively.

本実施例では、2個のDHCPサーバ60、70がLAN4に接続されている。このような状況において、図1の状態では、第1のDHCPサーバ60によって端末装置TEにIPteが割り当てられており、第1のDHCPサーバ60とは異なる第2のDHCPサーバ70によってプリンタPRにIPprが割り当てられ得る。このような状況では、IPteのネットワークアドレス部の値(即ち、192.168.1)と、IPprのネットワークアドレス部の値(即ち、192.168.100)と、が一致しない。このために、プリンタPRと端末装置TEとの間でゲートウェイを介したユニキャスト通信を実行不可能である。仮に、このような状況が継続すると、プリンタPRが印刷データを適切に受信できないので、プリンタPRに印刷を実行させることができない。このような事象が発生するのを抑制するために、本実施例では、プリンタPR、端末装置TEは、それぞれ、図2の処理、図4の処理を実行する。   In this embodiment, two DHCP servers 60 and 70 are connected to the LAN 4. In such a situation, in the state of FIG. 1, IPte is assigned to the terminal device TE by the first DHCP server 60, and the IPpr is assigned to the printer PR by the second DHCP server 70 different from the first DHCP server 60. Can be assigned. In such a situation, the value of the network address part of IPte (that is, 192.168.1) does not match the value of the network address part of IPpr (that is, 192.168.100). For this reason, it is impossible to execute unicast communication via the gateway between the printer PR and the terminal device TE. If such a situation continues, the printer PR cannot properly receive the print data, and the printer PR cannot execute printing. In order to suppress the occurrence of such an event, in the present embodiment, the printer PR and the terminal device TE execute the process of FIG. 2 and the process of FIG. 4, respectively.

(プリンタPRが実行する処理)
続いて、図2を参照して、プリンタPRのCPU22が実行する処理の内容について説明する。S10では、CPU22は、探索パケットを受信することを監視する。探索パケットは、端末装置TEからLAN4にブロードキャストされるパケットであり、プリンタPRのノード名と、端末装置TEのIPアドレス(例えばIPte)と、端末装置TEのサブネットマスク(例えばSMte)と、を含む。探索パケットは、端末装置TEからプリンタPRに印刷指示が送信されたにも関わらず、プリンタPRで印刷が実行されない場合(即ち、プリンタPRで印刷が失敗する場合)に、端末装置TEからブロードキャストされる。
(Processing executed by printer PR)
Next, the contents of processing executed by the CPU 22 of the printer PR will be described with reference to FIG. In S10, the CPU 22 monitors reception of the search packet. The search packet is a packet broadcast from the terminal apparatus TE to the LAN 4 and includes the node name of the printer PR, the IP address (for example, IPte) of the terminal apparatus TE, and the subnet mask (for example, SMte) of the terminal apparatus TE. . The search packet is broadcast from the terminal apparatus TE when the printing instruction is transmitted from the terminal apparatus TE to the printer PR but the printing is not executed by the printer PR (that is, when printing fails in the printer PR). The

CPU22は、プリンタPRのノード名を含む探索パケットを受信する場合に、S10でYESと判断して、S12に進む。   When receiving the search packet including the node name of the printer PR, the CPU 22 determines YES in S10 and proceeds to S12.

S12では、CPU22は、特定プログラムに従ったユニキャスト通信を実行して、探索パケットに対する応答パケットを端末装置TEに送信する。これにより、仮に、端末装置TEとプリンタPRとが異なるサブネットに属していても、プリンタPRは、探索パケットに対する応答パケットを端末装置TEに適切に送信することができる。当該応答パケットは、プリンタPRの現在のIPアドレス(例えばIPpr)と、プリンタPRの現在のサブネットマスク(例えばSMpr)と、を含む。   In S12, the CPU 22 executes unicast communication according to the specific program and transmits a response packet to the search packet to the terminal device TE. Accordingly, even if the terminal device TE and the printer PR belong to different subnets, the printer PR can appropriately transmit a response packet to the search packet to the terminal device TE. The response packet includes the current IP address (for example, IPpr) of the printer PR and the current subnet mask (for example, SMpr) of the printer PR.

S14では、CPU22は、端末装置TEのIPアドレスのネットワークアドレス部の値と、プリンタPRのIPアドレスのネットワークアドレス部の値と、が一致するか否かを判断する。具体的には、CPU22は、S10で受信された探索パケットに含まれる端末装置TEのIPアドレスの値と端末装置TEのサブネットマスクの値とを用いて、端末装置TEのIPアドレスのネットワークアドレス部の値(例えば「192.168.1」)を特定する。また、CPU22は、メモリ24に記憶されているプリンタPRのIPアドレスの値とプリンタPRのサブネットマスクの値とを用いて、プリンタPRのIPアドレスのネットワークアドレス部の値(例えば「192.168.100」)を特定する。そして、CPU22は、特定済みの2個の値が一致するか否かを判断する。   In S14, the CPU 22 determines whether or not the value of the network address part of the IP address of the terminal device TE matches the value of the network address part of the IP address of the printer PR. Specifically, the CPU 22 uses the value of the IP address of the terminal device TE and the value of the subnet mask of the terminal device TE included in the search packet received in S10, and the network address portion of the IP address of the terminal device TE. Value (for example, “192.168.1”) is specified. Further, the CPU 22 uses the IP address value of the printer PR and the subnet mask value of the printer PR, which are stored in the memory 24, for example, the value of the network address portion of the IP address of the printer PR (for example, “192.168 .. 100 "). Then, the CPU 22 determines whether or not the two specified values match.

CPU22は、端末装置TEのIPアドレスのネットワークアドレス部の値と、プリンタPRのIPアドレスのネットワーク部の値と、が一致すると判断する場合(S14でYES)には、図2の処理を終了する。一方において、CPU22は、端末装置TEのIPアドレスのネットワークアドレス部の値と、プリンタPRのIPアドレスのネットワーク部の値と、が一致しないと判断する場合(S14でNO)には、S16に進む。   If the CPU 22 determines that the value of the network address part of the IP address of the terminal device TE matches the value of the network part of the IP address of the printer PR (YES in S14), the process of FIG. . On the other hand, if the CPU 22 determines that the value of the network address part of the IP address of the terminal device TE does not match the value of the network part of the IP address of the printer PR (NO in S14), the process proceeds to S16. .

S16では、CPU22は、プリンタPRの表示部14に選択画面を表示させる。図3に示されるように、選択画面は、プリンタPRのIPアドレスの値を変更するのか否かをユーザに選択させるための画面である。   In S16, the CPU 22 displays a selection screen on the display unit 14 of the printer PR. As shown in FIG. 3, the selection screen is a screen for allowing the user to select whether or not to change the value of the IP address of the printer PR.

S18では、CPU22は、プリンタPRのIPアドレスの値を変更することがユーザによって選択されたか否かを判断する。具体的には、CPU22は、図3の選択画面において、プリンタPRのIPアドレスの値を変更すべきことを示すYESボタン110がユーザによって選択される場合に、S18でYESと判断し、S20に進む。一方において、CPU22は、図3の選択画面において、プリンタPRのIPアドレスの値を変更すべきでないことを示すNOボタン112がユーザによって選択される場合に、S18でNOと判断し、S19に進む。   In S18, the CPU 22 determines whether or not the user has selected to change the value of the IP address of the printer PR. Specifically, when the user selects the YES button 110 indicating that the value of the IP address of the printer PR should be changed on the selection screen of FIG. 3, the CPU 22 determines YES in S18, and proceeds to S20. move on. On the other hand, when the user selects the NO button 112 indicating that the value of the IP address of the printer PR should not be changed on the selection screen of FIG. 3, the CPU 22 determines NO in S18 and proceeds to S19. .

S19では、CPU22は、特定プログラムに従ったユニキャスト通信を実行して、プリンタPRのIPアドレスの値を変更しないことを示す非変更通知を端末装置TEに送信する。S19が終了すると、図2の処理が終了する。   In S19, the CPU 22 executes unicast communication according to the specific program, and transmits a non-change notification indicating that the value of the IP address of the printer PR is not changed to the terminal device TE. When S19 ends, the process of FIG. 2 ends.

S20では、CPU22は、DHCP DiscoverをLAN4にブロードキャストする。DHCP Discoverは、DHCP Discoverの送信元であるプリンタPRのMACアドレスを含む。   In S <b> 20, the CPU 22 broadcasts DHCP Discover to the LAN 4. The DHCP Discover includes the MAC address of the printer PR that is the transmission source of the DHCP Discover.

LAN4に接続されている各デバイス(例えば、端末装置TE、第1及び第2のDHCPサーバ60、70)は、DHCP Discoverを受信する。DHCPサーバ以外のデバイス(例えば、端末装置TE)は、DHCP Discoverを受信しても、応答しない。   Each device (for example, the terminal device TE, the first and second DHCP servers 60 and 70) connected to the LAN 4 receives the DHCP Discover. Devices other than the DHCP server (for example, the terminal device TE) do not respond even if they receive the DHCP Discover.

一方、第1のDHCPサーバ60は、DHCP Discoverを受信すると、DHCP OfferをLAN4にブロードキャストする。DHCP Offerは、プリンタPRに新たに設定されるべきIPアドレスの候補である候補IPアドレスの値IPca1と、第1のDHCPサーバ60のサブネットマスクの値SMdh1と、第1のDHCPサーバ60のIPアドレスの値IPdh1と、を含む。DHCP Offerは、さらに、DHCP Discoverに含まれるプリンタPRのMACアドレスを含む。このために、プリンタPR以外のデバイス(例えば、端末装置TE等)は、DHCP Offerを受信しても、DHCP Offerに応じた処理を実行しない。   On the other hand, when the first DHCP server 60 receives the DHCP Discover, it broadcasts the DHCP Offer to the LAN 4. The DHCP Offer is a candidate IP address value IPca1 which is a candidate for an IP address to be newly set in the printer PR, a subnet mask value SMdh1 of the first DHCP server 60, and an IP address of the first DHCP server 60. Value IPdh1. The DHCP Offer further includes the MAC address of the printer PR included in the DHCP Discover. For this reason, even if a device other than the printer PR (for example, the terminal device TE) receives the DHCP Offer, it does not execute a process corresponding to the DHCP Offer.

同様に、第2のDHCPサーバ70は、DHCP Discoverを受信すると、DHCP OfferをLAN4にブロードキャストする。DHCP Offerは、候補IPアドレスの値IPca2と、第2のDHCPサーバ70のサブネットマスクの値SMdh2と、第2のDHCPサーバ70のIPアドレスの値IPdh2と、プリンタPRのMACアドレスと、を含む。   Similarly, when receiving the DHCP Discover, the second DHCP server 70 broadcasts the DHCP Offer to the LAN 4. The DHCP Offer includes a candidate IP address value IPca2, a subnet mask value SMdh2 of the second DHCP server 70, an IP address value IPdh2 of the second DHCP server 70, and a MAC address of the printer PR.

S22では、CPU22は、第1のDHCPサーバ60と第2のDHCPサーバ70とのそれぞれから1個のDHCP Offerを受信する。   In S <b> 22, the CPU 22 receives one DHCP Offer from each of the first DHCP server 60 and the second DHCP server 70.

次いで、S24では、CPU22は、受信済みの2個のDHCP Offerに含まれる2個の候補IPアドレスの中から、1個の候補IPアドレスを選択する。具体的には、まず、CPU22は、図2のS10で受信された探索パケットに含まれる端末装置TEのIPアドレスの値(例えばIPte)及び端末装置TEのサブネットマスク(例えばSMte)を用いて、端末装置TEのIPアドレスのネットワークアドレス部の値を特定する。次いで、CPU22は、第1のDHCPサーバ60から受信されたDHCP Offerに含まれるIPca1及びSMdh1を用いて、IPca1のネットワークアドレス部の値を特定する。同様に、CPU22は、第2のDHCPサーバ70から受信されたDHCP Offerに含まれるIPca2及びSMdh2を用いて、IPca2のネットワークアドレス部の値を特定する。そして、CPU22は、端末装置TEのIPアドレスのネットワークアドレス部の値に一致するネットワークアドレス部の値を含む1個の候補IPアドレス(例えばIPca1)を選択する。   Next, in S24, the CPU 22 selects one candidate IP address from two candidate IP addresses included in the two received DHCP Offers. Specifically, first, the CPU 22 uses the IP address value (for example, IPte) of the terminal device TE and the subnet mask (for example, SMte) of the terminal device TE included in the search packet received in S10 of FIG. The value of the network address part of the IP address of the terminal device TE is specified. Next, the CPU 22 specifies the value of the network address portion of IPca1 using IPca1 and SMdh1 included in the DHCP Offer received from the first DHCP server 60. Similarly, the CPU 22 specifies the value of the network address part of IPca2 using IPca2 and SMdh2 included in the DHCP Offer received from the second DHCP server 70. Then, the CPU 22 selects one candidate IP address (for example, IPca1) including the value of the network address portion that matches the value of the network address portion of the IP address of the terminal device TE.

次いで、S26では、CPU22は、S24で選択された候補IPアドレス(例えばIPca1)を含むRequestを、LAN4にブロードキャストする。   Next, in S <b> 26, the CPU 22 broadcasts a Request including the candidate IP address (for example, IPca <b> 1) selected in S <b> 24 to the LAN 4.

S26のRequestに含まれる候補IPアドレスをプリンタPRに割り当てたDHCPサーバは、Requestを受信すると、ACKをLAN4にブロードキャストする。当該ACKは、プリンタPRのMACアドレスを含む。そのため、プリンタPR以外のデバイス(例えば、端末装置TE等)は、ACKを受信しても、ACKに応じた処理を実行しない。   When the DHCP server that has assigned the candidate IP address included in the request of S26 to the printer PR receives the request, it broadcasts an ACK to the LAN 4. The ACK includes the MAC address of the printer PR. Therefore, a device other than the printer PR (for example, the terminal device TE) does not execute a process corresponding to the ACK even when the ACK is received.

S28では、CPU22は、ACKを受信することを監視する。CPU22は、ACKを受信すると、S28でYESと判断し、S30に進む。   In S28, the CPU 22 monitors reception of ACK. When receiving the ACK, the CPU 22 determines YES in S28, and proceeds to S30.

S30では、CPU22は、プリンタPRのIPアドレスとして、プリンタPRの現在のIPアドレスの値(例えばIPpr)に代えて、S24で選択された候補IPアドレスの値(例えばIPca1)を新たに設定する(即ち、メモリ24に記憶する)。また、CPU22は、当該候補IPアドレスを含む受信済みのDHCP Offerから、DHCPサーバのサブネットマスク(例えばSMdh1)とDHCPサーバのIPアドレス(例えばIPdh1)とを抽出する。そして、CPU22は、プリンタPRのサブネットマスクとして、プリンタPRの現在のサブネットマスクの値(例えばSMpr)に代えて、抽出済みのサブネットマスクの値(例えばSMdh1)を新たに設定し、プリンタPRのゲートウェイアドレスとして、プリンタPRの現在のゲートウェイアドレスの値(例えばIPdh2)に代えて、抽出済みのDHCPサーバのIPアドレスの値(例えばIPdh1)を新たに設定する。S30が終了すると、図2の処理が終了する。   In S30, the CPU 22 newly sets the value of the candidate IP address selected in S24 (for example, IPca1) as the IP address of the printer PR, instead of the value of the current IP address of the printer PR (for example, IPpr) ( That is, it is stored in the memory 24). Further, the CPU 22 extracts the DHCP server subnet mask (for example, SMdh1) and the DHCP server IP address (for example, IPdh1) from the received DHCP Offer including the candidate IP address. Then, the CPU 22 newly sets the extracted subnet mask value (for example, SMdh1) instead of the current subnet mask value (for example, SMpr) of the printer PR as the subnet mask of the printer PR, and sets the gateway of the printer PR. Instead of the current gateway address value (for example, IPdh2) of the printer PR, the IP address value (for example, IPdh1) of the extracted DHCP server is newly set as the address. When S30 ends, the process of FIG. 2 ends.

なお、図2では、プリンタPRのCPU22によって実行される通常の印刷処理が図示省略されている。即ち、端末装置TE及びプリンタPRが同一のサブネットに属する状態では、CPU22は、ゲートウェイを介した通常のユニキャスト通信を実行して、端末装置TEから印刷データを含む印刷指示を受信する。端末装置TEのIPアドレスのネットワークアドレス部の値と、プリンタPRのIPアドレスのネットワークアドレス部の値と、が一致する場合に、CPU22は、端末装置TEから印刷指示を受信することができる。従って、CPU22は、例えば、図2のS30を経た後、又は、S14でYESと判断した後に、端末装置TEから印刷指示を受信し得る。   In FIG. 2, a normal printing process executed by the CPU 22 of the printer PR is not shown. That is, in a state where the terminal device TE and the printer PR belong to the same subnet, the CPU 22 executes normal unicast communication via the gateway and receives a print instruction including print data from the terminal device TE. When the value of the network address portion of the IP address of the terminal device TE matches the value of the network address portion of the IP address of the printer PR, the CPU 22 can receive a print instruction from the terminal device TE. Accordingly, the CPU 22 can receive a print instruction from the terminal device TE, for example, after passing through S30 in FIG. 2 or determining YES in S14.

CPU22は、携帯端末TEから印刷指示を受信すると、ゲートウェイを介した通常のユニキャスト通信を実行して、印刷指示に対する応答パケットを携帯端末TEに送信し、印刷指示に含まれる印刷データを印刷実行部16に供給して、印刷データによって表わされる画像の印刷を印刷実行部16に実行させる。その後、CPU22は、ゲートウェイを介した通常のユニキャスト通信を実行して、印刷完了通知を端末装置TEに送信する。   When the CPU 22 receives the print instruction from the mobile terminal TE, the CPU 22 executes normal unicast communication via the gateway, transmits a response packet to the print instruction to the mobile terminal TE, and prints the print data included in the print instruction. The image data is supplied to the unit 16 and causes the print execution unit 16 to print the image represented by the print data. Thereafter, the CPU 22 performs normal unicast communication via the gateway and transmits a print completion notification to the terminal device TE.

(端末装置TEが実行する処理)
続いて、図4を参照して、端末装置TEのCPU52が実行する処理の内容について説明する。図4の処理は、端末装置TEからプリンタPRに印刷データを含む印刷指示が送信され、当該印刷データに従った印刷がプリンタPRで失敗したことをトリガとして開始される。具体的には、CPU52は、印刷指示をプリンタPRに送信してから所定期間が経過しても、プリンタPRから、印刷指示に対する応答パケットを受信しない場合に、プリンタPRで印刷が失敗したと判断して、図4の処理を開始する。より具体的には、以下のような状況である。
(Processing executed by the terminal device TE)
Next, with reference to FIG. 4, the contents of the process executed by the CPU 52 of the terminal device TE will be described. The process in FIG. 4 is started when a print instruction including print data is transmitted from the terminal device TE to the printer PR and printing according to the print data has failed in the printer PR. Specifically, the CPU 52 determines that printing has failed in the printer PR when a response packet to the printing instruction is not received from the printer PR even after a predetermined period has elapsed since the printing instruction was transmitted to the printer PR. Then, the process of FIG. 4 is started. More specifically, the situation is as follows.

CPU52は、プリンタPRでの印刷の実行の指示がユーザから与えられる場合に、メモリ54内のプリンタPRのノード名を利用して、名前解決を実行する。例えば、CPU52は、図示省略の名前解決サーバを利用して、又は、メモリ54に記憶されているプリンタPRのノード名のブロードキャスト通信を利用して、プリンタPRのIPアドレスの値(例えばIPpr)を取得する。そして、CPU52は、送信先アドレスとして当該IPアドレスの値を指定して、印刷データを含む印刷指示を送信する。例えば、端末装置TEとプリンタPRとが異なるサブネットに属している場合には、印刷指示がゲートウェイを介してプリンタPRに送信されないので、プリンタPRが印刷指示に対する応答パケットを送信しない。この場合、CPU52は、プリンタPRから印刷指示に対する応答パケットを受信しない。また、例えば、端末装置TEとプリンタPRとが同一のサブネットに属していても、プリンタPRが何らかの原因(例えばメモリフル)に起因して印刷指示を適切に受信することができない場合には、プリンタPRが印刷指示に対する応答パケットを送信しない。この場合も、CPU52は、プリンタPRから印刷指示に対する応答パケットを受信しない。   The CPU 52 executes name resolution using the node name of the printer PR in the memory 54 when an instruction to execute printing in the printer PR is given from the user. For example, the CPU 52 uses a name resolution server (not shown) or broadcast communication of the printer PR node name stored in the memory 54 to obtain the IP address value (for example, IPpr) of the printer PR. get. Then, the CPU 52 designates the value of the IP address as a transmission destination address, and transmits a print instruction including print data. For example, if the terminal device TE and the printer PR belong to different subnets, the print instruction is not transmitted to the printer PR via the gateway, and therefore the printer PR does not transmit a response packet for the print instruction. In this case, the CPU 52 does not receive a response packet for the print instruction from the printer PR. For example, even if the terminal device TE and the printer PR belong to the same subnet, if the printer PR cannot properly receive a print instruction due to some cause (for example, memory full), the printer The PR does not transmit a response packet for the print instruction. Also in this case, the CPU 52 does not receive a response packet for the print instruction from the printer PR.

S100では、CPU52は、メモリ54に記憶されているプリンタPRのノード名を含む探索パケットをLAN4にブロードキャストする。LAN4に接続されている各デバイス(即ち、プリンタPR、第1及び第2のDHCPサーバ60、70)は、探索パケットを受信する。探索パケットに含まれるノード名に一致しないノード名を有するデバイス(即ち、第1及び第2のDHCPサーバ60、70)は、探索パケットを受信しても、探索パケットに対する応答パケットを送信しない。一方、探索パケットに含まれるノード名に一致するノード名を有するプリンタPRは、探索パケットを受信すると(図2のS10でYES参照)、特定プログラムに従ったユニキャスト通信を実行して、探索パケットに対する応答パケットを端末装置TEに送信する(図2のS12参照)。   In S <b> 100, the CPU 52 broadcasts a search packet including the node name of the printer PR stored in the memory 54 to the LAN 4. Each device connected to the LAN 4 (that is, the printer PR, the first and second DHCP servers 60 and 70) receives the search packet. Even if a device having a node name that does not match the node name included in the search packet (that is, the first and second DHCP servers 60 and 70) receives the search packet, it does not transmit a response packet to the search packet. On the other hand, when the printer PR having the node name that matches the node name included in the search packet receives the search packet (see YES in S10 of FIG. 2), the printer PR executes unicast communication according to the specific program, and Is transmitted to the terminal device TE (see S12 in FIG. 2).

S102では、CPU52は、プリンタPRから探索パケットに対する応答パケットを受信する。当該応答パケットは、プリンタPRの現在のIPアドレス(例えばIPpr)と、プリンタPRの現在のサブネットマスク(例えばSMpr)と、を含む。   In S102, the CPU 52 receives a response packet for the search packet from the printer PR. The response packet includes the current IP address (for example, IPpr) of the printer PR and the current subnet mask (for example, SMpr) of the printer PR.

S104では、CPU52は、端末装置TEのIPアドレス(例えばIPte)のネットワークアドレス部の値と、プリンタPRのIPアドレス(例えばIPpr)のネットワークアドレス部の値と、が一致するか否かを判断する。具体的には、CPU52は、メモリ54に記憶されている端末装置TEのIPアドレス(例えばIPte)及び端末装置TEのサブネットマスク(例えばSMte)を用いて、端末装置TEのIPアドレスのネットワークアドレス部の値(例えば「192.168.1」)を特定する。また、CPU52は、S102で受信された応答パケットに含まれるプリンタPRのIPアドレスの値(例えばIPpr)及びプリンタPRのサブネットマスクの値(例えばSMpr)を用いて、プリンタのIPアドレスのネットワークアドレス部の値(例えば「192.168.100」)を特定する。そして、CPU52は、特定済みの2個の値が一致するか否かを判断する。   In S104, the CPU 52 determines whether or not the value of the network address portion of the IP address (eg, IPte) of the terminal device TE matches the value of the network address portion of the IP address (eg, IPpr) of the printer PR. . Specifically, the CPU 52 uses the IP address (for example, IPte) of the terminal device TE and the subnet mask (for example, SMte) of the terminal device TE stored in the memory 54, and the network address portion of the IP address of the terminal device TE. Value (for example, “192.168.1”) is specified. Further, the CPU 52 uses the value of the printer PR IP address (for example, IPpr) and the value of the subnet mask of the printer PR (for example, SMpr) included in the response packet received in S102 to determine the network address portion of the printer IP address. Is specified (for example, “192.168.100”). Then, the CPU 52 determines whether or not the two specified values match.

CPU52は、端末装置TEのIPアドレスのネットワークアドレス部の値と、プリンタPRのIPアドレスのネットワークアドレス部の値と、が一致すると判断する場合(S104でYES)には、S110に進む。一方において、CPU52は、端末装置TEのIPアドレスのネットワークアドレス部の値と、プリンタPRのIPアドレスのネットワークアドレス部の値と、が一致しないと判断する場合(S104でNO)には、S106に進む。   If the CPU 52 determines that the value of the network address part of the IP address of the terminal device TE matches the value of the network address part of the IP address of the printer PR (YES in S104), the process proceeds to S110. On the other hand, if the CPU 52 determines that the value of the network address part of the IP address of the terminal device TE does not match the value of the network address part of the IP address of the printer PR (NO in S104), the process proceeds to S106. move on.

S106では、CPU52は、プリンタPRから非変更通知(図2のS19参照)を受信したか否かを判断する。CPU52は、プリンタPRから非変更通知を受信した場合に、S106でYESと判断し、S108に進む。一方において、CPU52は、プリンタPRから非変更通知を受信していない場合に、S106でNOと判断し、S100に戻る。即ち、CPU52は、探索パケットをLAN4に再びブローキャストする。   In S106, the CPU 52 determines whether or not a non-change notification (see S19 in FIG. 2) is received from the printer PR. When the CPU 52 receives a non-change notification from the printer PR, the CPU 52 determines YES in S106, and proceeds to S108. On the other hand, if the CPU 52 has not received a non-change notification from the printer PR, the CPU 52 determines NO in S106 and returns to S100. That is, the CPU 52 broadcasts the search packet to the LAN 4 again.

S108では、CPU52は、端末装置TEが印刷データのユニキャスト通信をプリンタPRと実行不可能であることを示すエラー画面を、端末装置TEの表示部(図示省略)に表示させる。S108が終了すると、図4の処理が終了する。   In S108, the CPU 52 causes the display unit (not shown) of the terminal device TE to display an error screen indicating that the terminal device TE cannot execute unicast communication of print data with the printer PR. When S108 ends, the process of FIG. 4 ends.

S110では、CPU52は、ゲートウェイを介したユニキャスト通信を実行して、印刷データを含む印刷指示をプリンタPRに送信する。S110が終了すると、図4の処理が終了する。   In S110, the CPU 52 executes unicast communication via the gateway and transmits a print instruction including print data to the printer PR. When S110 ends, the process of FIG. 4 ends.

(具体的なケース;図5及び図6)
続いて、図5及び図6を参照して、図2及び図4のフローチャートに従って実現される具体的なケースの内容を説明する。図5のケースAは、プリンタPRのIPアドレスを変更することがユーザによって選択されるケースである。図6のケースBは、プリンタPRのIPアドレスを変更しないことがユーザによって選択されるケースである。なお、図5及び図6では、ブロードキャスト通信、ユニキャスト通信が、それぞれ、二点鎖線、実線で示されている。
(Specific case: Figs. 5 and 6)
Next, with reference to FIGS. 5 and 6, the contents of a specific case realized according to the flowcharts of FIGS. 2 and 4 will be described. Case A in FIG. 5 is a case where the user selects to change the IP address of the printer PR. Case B in FIG. 6 is a case where the user selects not to change the IP address of the printer PR. In FIGS. 5 and 6, broadcast communication and unicast communication are indicated by a two-dot chain line and a solid line, respectively.

(ケースA;図5)
T10では、端末装置TEは、ゲートウェイを介した通常のユニキャスト通信を実行して、印刷指示をプリンタPRに送信する。印刷指示は、送信先アドレスとしてIPprを含み、送信元アドレスとしてIPteを含む。しかしながら、IPprのネットワークアドレス部の値と、IPteのネットワークアドレス部の値と、が一致しないので、端末装置TEのゲートウェイである第1のDHCPサーバ60は、印刷指示をプリンタPRに送信しない。この結果、プリンタPRは、端末装置TEから印刷指示を受信することができない。
(Case A; FIG. 5)
In T10, the terminal apparatus TE performs normal unicast communication via the gateway, and transmits a print instruction to the printer PR. The print instruction includes IPpr as the transmission destination address and IPte as the transmission source address. However, since the value of the network address part of IPpr and the value of the network address part of IPte do not match, the first DHCP server 60 that is the gateway of the terminal device TE does not transmit a print instruction to the printer PR. As a result, the printer PR cannot receive a print instruction from the terminal device TE.

T12では、端末装置TEは、印刷指示を送信してから所定期間が経過しても、プリンタPRから印刷指示に対する応答パケットを受信しないので、印刷が失敗したと判断する(図4の処理のトリガ)。そして、T14では、端末装置TEは、プリンタPRのノード名を含む探索パケットをLAN4にブロードキャストする(S100)。   At T12, the terminal apparatus TE determines that printing has failed because it does not receive a response packet to the print instruction from the printer PR even after a predetermined period of time has passed since the print instruction was transmitted (trigger of processing in FIG. 4). ). At T14, the terminal device TE broadcasts a search packet including the node name of the printer PR to the LAN 4 (S100).

T16では、プリンタPRは、端末装置TEから探索パケットを受信すると(図2のS10でYES)、特定プログラムに従ったユニキャスト通信を実行して、IPpr及びSMprを含む応答パケットを端末装置TEに送信する(S12)。   In T16, when the printer PR receives the search packet from the terminal device TE (YES in S10 in FIG. 2), the printer PR executes unicast communication according to the specific program, and sends a response packet including IPpr and SMpr to the terminal device TE. Transmit (S12).

T18では、端末装置TEは、プリンタPRから探索パケットに対する応答パケットを受信すると(図4のS102)、IPprのネットワークアドレス部の値と、IPteのネットワークアドレス部の値と、が一致しないと判断する(S104でNO)。   At T18, when receiving a response packet to the search packet from the printer PR (S102 in FIG. 4), the terminal apparatus TE determines that the value of the network address part of IPpr does not match the value of the network address part of IPte. (NO in S104).

また、T20では、プリンタPRは、IPteのネットワークアドレス部の値と、IPprのネットワークアドレス部の値と、が一致しないと判断する(図2のS14でNO)。そして、T22では、プリンタPRは、選択画面(図3)を表示する(S16)。T24では、選択画面において、IPprを変更することがユーザによって選択される(S18でYES)。T26では、プリンタPRは、DHCP DiscoverをLAN4にブロードキャストする(S20)。   In T20, the printer PR determines that the value of the IPte network address part does not match the value of the IPpr network address part (NO in S14 of FIG. 2). At T22, the printer PR displays a selection screen (FIG. 3) (S16). At T24, the user selects to change IPpr on the selection screen (YES in S18). In T26, the printer PR broadcasts DHCP Discover to the LAN 4 (S20).

T28では、第1のDHCPサーバ60は、DHCP Discoverを受信すると、IPca1「192.168.1.3」と、SMdh1と、IPdh1と、を含むDHCP OfferをLAN4にブロードキャストする。また、T30では、第2のDHCPサーバ70は、DHCP Discoverを受信すると、IPca2「192.168.100.3」と、SMdh2と、IPdh2と、を含むDHCP OfferをLAN4にブロードキャストする。   In T28, when receiving the DHCP Discover, the first DHCP server 60 broadcasts a DHCP Offer including IPca1 “192.168.1.3”, SMdh1, and IPdh1 to the LAN 4. In T30, when receiving the DHCP Discover, the second DHCP server 70 broadcasts a DHCP Offer including IPca2 “192.168.100.3”, SMdh2, and IPdh2 to the LAN 4.

T31では、プリンタPRは、2個のDHCP Offerを受信すると、2個のDHCP Offerに含まれる2個の候補IPアドレスの中から、IPteのネットワークアドレス部の値に一致するネットワークアドレス部の値を含む候補IPアドレス(即ちIPca1)を選択する(図2のS24)。次いで、T32では、プリンタPRは、IPca1を含むRequestを、LAN4にブロードキャストする(S26)。   In T31, when the printer PR receives two DHCP Offers, the printer PR sets the value of the network address part that matches the value of the network address part of IPte from the two candidate IP addresses included in the two DHCP Offers. A candidate IP address to be included (that is, IPca1) is selected (S24 in FIG. 2). Next, in T32, the printer PR broadcasts a request including IPca1 to the LAN 4 (S26).

T34では、第2のDHCPサーバ70は、Requestを受信すると、ACKをLAN4にブロードキャストする。   At T34, when the second DHCP server 70 receives the request, the second DHCP server 70 broadcasts ACK to the LAN 4.

T36では、プリンタPRは、ACKを受信すると(図2のS28でYES)、プリンタPRのIPアドレスとして、IPprに代えて、IPca1を設定する(S26)。また、プリンタPRは、プリンタPRのサブネットマスクとして、SMprに代えて、SMdh1を新たに設定する。また、プリンタPRは、プリンタPRのゲートウェイアドレスとして、IPdh2に代えて、IPdh1を新たに設定する。即ち、プリンタPRのゲートウェイが、第2のDHCPサーバ70から第1のDHCPサーバ60に変更される。   In T36, when receiving the ACK (YES in S28 of FIG. 2), the printer PR sets IPca1 instead of IPpr as the IP address of the printer PR (S26). Further, the printer PR newly sets SMdh1 instead of SMpr as the subnet mask of the printer PR. Further, the printer PR newly sets IPdh1 instead of IPdh2 as the gateway address of the printer PR. That is, the gateway of the printer PR is changed from the second DHCP server 70 to the first DHCP server 60.

T40では、端末装置TEは、プリンタPRのノード名を含む探索パケットをLAN4に再びブロードキャストする(図4のS100)。なお、図示省略しているが、端末装置TE及びプリンタPRは、T18からT40までの間に、T14〜T18と同様の処理を繰り返し実行している。   At T40, the terminal device TE broadcasts again a search packet including the node name of the printer PR to the LAN 4 (S100 in FIG. 4). Although not shown, the terminal device TE and the printer PR repeatedly execute the same processing as T14 to T18 between T18 and T40.

T42では、プリンタPRは、端末装置TEから探索パケットを再び受信すると(図2のS10でYES)、特定プログラムに従ったユニキャスト通信を実行して、IPca1及びSMdh1を含む応答パケットを端末装置TEに再び送信する(S12)。次いで、T44では、プリンタPRは、IPteのネットワークアドレス部の値と、IPca1のネットワークアドレス部の値と、が一致すると判断する(S14でYES)。   In T42, when the printer PR receives the search packet from the terminal device TE again (YES in S10 in FIG. 2), the printer PR performs unicast communication according to the specific program and sends a response packet including IPca1 and SMdh1 to the terminal device TE. (S12). Next, in T44, the printer PR determines that the value of the network address part of IPte matches the value of the network address part of IPca1 (YES in S14).

T46では、端末装置TEは、プリンタPRから探索パケットに対する応答パケットを受信すると(図4のS102)、IPca1のネットワークアドレス部の値と、IPteのネットワークアドレス部の値と、が一致すると判断する(S104でYES)。次いで、T48では、端末装置TEは、ゲートウェイを介した通常のユニキャスト通信を実行して、印刷指示をプリンタPRに送信する(S110)。印刷指示は、送信先アドレスとしてIPca1を含み、送信元アドレスとしてIPteを含む。IPca1のネットワークアドレス部の値と、IPteのネットワークアドレス部の値と、が一致するので、端末装置TEのゲートウェイである第1のDHCPサーバ60は、印刷指示をプリンタPRに送信する。   In T46, when the terminal device TE receives a response packet to the search packet from the printer PR (S102 in FIG. 4), it determines that the value of the network address part of IPca1 matches the value of the network address part of IPte ( YES in S104). Next, at T48, the terminal apparatus TE performs normal unicast communication via the gateway, and transmits a print instruction to the printer PR (S110). The print instruction includes IPca1 as the transmission destination address and IPte as the transmission source address. Since the value of the network address part of IPca1 matches the value of the network address part of IPte, the first DHCP server 60, which is the gateway of the terminal apparatus TE, transmits a print instruction to the printer PR.

T50では、プリンタPRは、端末装置TEから印刷指示を受信すると、印刷データによって表わされる画像の印刷を実行する。その後、図示省略しているが、プリンタPRは、ゲートウェイを介した通常のユニキャスト通信を実行して、印刷完了通知を端末装置TEに送信する。   In T50, when the printer PR receives a print instruction from the terminal device TE, the printer PR prints an image represented by the print data. Thereafter, although not shown, the printer PR performs normal unicast communication via the gateway, and transmits a print completion notification to the terminal device TE.

(ケースB;図6)
本ケースでは、ケースAと異なる点を中心に説明する。T10〜T22は、図5と同様である。T100では、選択画面において、IPprを変更しないことがユーザによって選択される(図2のS18でNO)。この場合、T102では、プリンタPRは、特定プログラムに従ったユニキャスト通信を実行して、非変更通知を端末装置TEに送信する(S19)。
(Case B; FIG. 6)
In this case, the description will focus on the differences from Case A. T10 to T22 are the same as those in FIG. At T100, the user selects not to change IPpr on the selection screen (NO in S18 of FIG. 2). In this case, in T102, the printer PR performs unicast communication according to the specific program and transmits a non-change notification to the terminal device TE (S19).

T104では、端末装置TEは、プリンタPRから非変更通知を受信すると(図4のS106でYES)、エラー画面を表示する(S108)。この場合、図5のケースAとは異なり、端末装置TEは、探索パケットをLAN4に再びブロードキャストしない(即ち図4のS100を実行しない)。   In T104, when receiving a non-change notification from the printer PR (YES in S106 of FIG. 4), the terminal device TE displays an error screen (S108). In this case, unlike the case A in FIG. 5, the terminal device TE does not broadcast the search packet to the LAN 4 again (that is, does not execute S100 in FIG. 4).

(第1実施例の効果)
図5に示されるように、プリンタPRは、端末装置TEからブロードキャストされた探索パケットを受信し(T14)、応答パケットを端末装置TEに送信し(T16)、IPteのネットワークアドレス部の値と、IPprのネットワークアドレス部の値と、が一致するのか否かを判断する(T20)。プリンタPRは、IPteのネットワークアドレス部の値と、IPprのネットワークアドレス部の値と、が一致しないと判断する場合に、プリンタPRのIPアドレスとして、IPprに代えて、IPteのネットワークアドレス部の値に一致するネットワークアドレス部の値を含むIPca1を新たに設定する(T36)。そして、プリンタPRは、端末装置TEからLAN4に再びブロードキャストされた探索パケットを再び受信し(T40)、IPca1を含む応答パケットを端末装置TEに送信する(T42)。即ち、プリンタPRは、プリンタPRに新たに設定されたIPca1を端末装置TEに通知することができる。これにより、端末装置TEは、IPca1がプリンタPRに新たに設定されたこと、即ち、ゲートウェイを介した通常のユニキャスト通信をプリンタPRと実行可能であること、を知ることができ、印刷データをプリンタPRに送信する。この結果、プリンタPRは、IPca1を利用した印刷データのユニキャスト通信を端末装置TEと実行する(T48)。即ち、プリンタPRは、印刷データのユニキャスト通信を端末装置TEと実行不可能な事象を適切に解消することができ、印刷データのユニキャスト通信を端末装置TEと適切に実行することができる。
(Effects of the first embodiment)
As shown in FIG. 5, the printer PR receives the search packet broadcast from the terminal device TE (T14), transmits a response packet to the terminal device TE (T16), the value of the network address part of IPte, It is determined whether or not the value of the network address part of IPpr matches (T20). When the printer PR determines that the value of the network address part of IPte does not match the value of the network address part of IPpr, the value of the network address part of IPte is used instead of IPpr as the IP address of the printer PR. IPca1 including the value of the network address part that coincides with is newly set (T36). Then, the printer PR receives again the search packet broadcast from the terminal device TE to the LAN 4 (T40), and transmits a response packet including IPca1 to the terminal device TE (T42). That is, the printer PR can notify the terminal device TE of the IPca1 newly set in the printer PR. Accordingly, the terminal device TE can know that IPca1 is newly set in the printer PR, that is, that normal unicast communication via the gateway can be executed with the printer PR, and print data can be obtained. Send to printer PR. As a result, the printer PR performs unicast communication of print data using IPca1 with the terminal device TE (T48). In other words, the printer PR can appropriately eliminate the event that cannot be executed with the terminal device TE for the unicast communication of the print data, and can appropriately execute the unicast communication of the print data with the terminal device TE.

また、図5のケースAでは、選択画面において、IPprを変更することがユーザによって選択されるので(T24)、プリンタPRは、プリンタPRのIPアドレスとして、IPprに代えて、IPca1を新たに設定する(T36)。一方、図6のケースBに示されるように、選択画面において、IPprを変更しないことがユーザによって選択される場合(T100)には、プリンタPRは、非変更通知を端末装置TEに送信して(T102)、プリンタPRのIPアドレスを変更しない。この場合、プリンタPRと端末装置TEとの間で印刷データのユニキャスト通信を実行不可能であるが、プリンタPRは、IPprを利用して、LAN4に接続されている他のデバイス(例えば端末装置TEとは異なる端末装置)とのユニキャスト通信を実行し得る。このように、本実施例では、プリンタPRは、ユーザの選択に応じて、プリンタPRのIPアドレスを変更するのか否かを適切に切り替えることができる。   In case A of FIG. 5, since the user selects to change IPpr on the selection screen (T24), the printer PR newly sets IPca1 instead of IPpr as the IP address of the printer PR. (T36). On the other hand, as shown in case B of FIG. 6, when the user selects not to change IPpr on the selection screen (T100), the printer PR transmits a non-change notification to the terminal device TE. (T102), the IP address of the printer PR is not changed. In this case, although unicast communication of print data cannot be performed between the printer PR and the terminal device TE, the printer PR uses other devices (for example, the terminal device) connected to the LAN 4 using IPpr. Unicast communication with a terminal device different from TE) can be executed. Thus, in this embodiment, the printer PR can appropriately switch whether or not to change the IP address of the printer PR according to the user's selection.

(対応関係)
プリンタPR、端末装置TEが、それぞれ、「第1の通信装置」、「第2の通信装置」の一例である。第1及び第2のDHCPサーバ60、70が、「IPアドレス割当サーバ」の一例である。図5では、T14の探索パケット、T16の応答パケット、T42の応答パケットが、それぞれ、「要求パケット」、「第1の応答パケット」、「第2の応答パケット」の一例である。IPpr、SMpr、IPte、SMteが、ぞれぞれ、「現行IPアドレスの値」、「現行サブネットマスクの値」、「対象IPアドレスの値」、「対象サブネットマスクの値」の一例である。IPca1が、「新IPアドレス」の値、及び、「1個の候補IPアドレス」の値の一例である。IPca1とIPca2とが、「2個以上の候補IPアドレス」の値の一例である。IPprのネットワークアドレス部の値、IPteのネットワークアドレス部の値が、それぞれ、「現行ネットワークアドレス値」、「対象ネットワークアドレス値」の一例である。印刷データが、「対象データ」の一例である。
(Correspondence)
The printer PR and the terminal device TE are examples of “first communication device” and “second communication device”, respectively. The first and second DHCP servers 60 and 70 are examples of the “IP address assignment server”. In FIG. 5, the search packet of T14, the response packet of T16, and the response packet of T42 are examples of “request packet”, “first response packet”, and “second response packet”, respectively. IPpr, SMpr, IPte, and SMte are examples of “current IP address value”, “current subnet mask value”, “target IP address value”, and “target subnet mask value”, respectively. IPca1 is an example of a value of “new IP address” and a value of “one candidate IP address”. IPca1 and IPca2 are examples of the value of “two or more candidate IP addresses”. The value of the network address part of IPpr and the value of the network address part of IPte are examples of “current network address value” and “target network address value”, respectively. The print data is an example of “target data”.

図2において、S10の処理、S12の処理、S14の処理、S16の処理が、それぞれ、「要求パケット受信部」、「応答パケット送信部」、「判断部(又は第2の判断部)」、「表示制御部」によって実行される処理の一例である。S20及びS22の処理が、「候補IPアドレス受信部」によって実行される処理の一例である。S24及びS30の処理が、「設定部」によって実行される処理の一例である。   In FIG. 2, the processing of S10, the processing of S12, the processing of S14, and the processing of S16 are respectively “request packet reception unit”, “response packet transmission unit”, “determination unit (or second determination unit)”, It is an example of processing executed by the “display control unit”. The processing of S20 and S22 is an example of processing executed by the “candidate IP address receiving unit”. The processing of S24 and S30 is an example of processing executed by the “setting unit”.

図4において、S100の処理、S102の処理、S104の処理が、それぞれ、「要求パケット送信部」、「応答パケット受信部」、「第1の判断部」によって実行される処理の一例である。   In FIG. 4, the processing of S100, the processing of S102, and the processing of S104 are examples of processing executed by the “request packet transmission unit”, “response packet reception unit”, and “first determination unit”, respectively.

(第2実施例;図7、図8)
本実施例では、プリンタPRのIPアドレスを変更するための手法が第1実施例とは異なる。図7を参照して、プリンタPRのCPU22が実行する処理の内容について説明する。S10〜S19の処理は、図2と同様である。
(Second embodiment; FIGS. 7 and 8)
In the present embodiment, a method for changing the IP address of the printer PR is different from that in the first embodiment. With reference to FIG. 7, the contents of the process executed by the CPU 22 of the printer PR will be described. The processes of S10 to S19 are the same as those in FIG.

S200では、CPU22は、候補IPアドレスの値と候補サブネットマスクの値とを決定する。具体的には、まず、CPU22は、S10で受信された探索パケットに含まれる端末装置TEのIPアドレスの値(例えば「192.168.1.2」)のうち、S14で特定されたネットワークアドレス部(例えば「192.168.1」)以外の部分であるホスト部の値(例えば「2」)をランダムに変更して、候補IPアドレスの値IPre(例えば「192.168.1.11」)を決定する。即ち、CPU22は、DHCPサーバ60、70を利用せずに、候補IPアドレスを決定する。さらに、CPU22は、S10で受信された探索パケットに含まれる端末装置TEのサブネットマスクの値を、候補サブネットマスクの値として決定する。なお、変形例では、例えば、CPU22は、プリンタPRのIPアドレスとして過去に設定されていたIPアドレスをメモリ24に記憶していてもよく、当該IPアドレスを候補IPアドレスの値として決定してもよい。   In S200, the CPU 22 determines the value of the candidate IP address and the value of the candidate subnet mask. Specifically, first, the CPU 22 determines the network address specified in S14 out of the IP address value (for example, “192.168.1.2”) of the terminal device TE included in the search packet received in S10. The value (for example, “192.168.1.11”) of the candidate IP address is changed at random by changing the value (for example, “2”) of the host part that is a part other than the part (for example, “192.168.8.1”) ). That is, the CPU 22 determines a candidate IP address without using the DHCP servers 60 and 70. Further, the CPU 22 determines the subnet mask value of the terminal device TE included in the search packet received in S10 as the candidate subnet mask value. In the modification, for example, the CPU 22 may store an IP address previously set as the IP address of the printer PR in the memory 24, or may determine the IP address as the value of the candidate IP address. Good.

S202では、CPU22は、S200で決定されたIPreを含むRequestをLAN4にブロードキャストする。当該Requestは、DHCPサーバ60、70にIPreの使用を要求するためのパケットである。   In S202, the CPU 22 broadcasts a request including the IPre determined in S200 to the LAN 4. The Request is a packet for requesting the DHCP servers 60 and 70 to use IPre.

S202のRequestに含まれるIPreを割り当て可能なDHCPサーバ(例えば第1のDHCPサーバ60)は、Requestを受信すると、IPreが他のデバイスに現在割り当てられているのか否かを確認する。そして、当該DHCPサーバは、IPreが他のデバイスに現在割り当てられていないことが確認される場合に、ACKをLAN4にブロードキャストする。   When a DHCP server (for example, the first DHCP server 60) capable of assigning IPre included in the request in S202 receives the request, it checks whether or not IPre is currently assigned to another device. Then, the DHCP server broadcasts ACK to the LAN 4 when it is confirmed that IPre is not currently assigned to another device.

S204では、CPU22は、ACKを受信することを監視する。CPU22は、ACKを受信する場合、即ち、IPreの使用許可が得られる場合に、S204でYESと判断し、S206に進む。なお、図示省略しているが、CPU22は、ACKを受信しない場合、即ち、IPreが他のデバイスに現在割り当てられている場合には、図7の処理を終了する。   In S204, the CPU 22 monitors reception of ACK. When receiving the ACK, that is, when permission to use IPre is obtained, the CPU 22 determines YES in S204, and proceeds to S206. Although not shown in the figure, the CPU 22 ends the process of FIG. 7 when ACK is not received, that is, when IPre is currently assigned to another device.

S206では、CPU22は、プリンタPRのIPアドレスとして、プリンタPRの現在のIPアドレスの値(例えばIPpr)に代えて、S200で決定された候補IPアドレスの値IPreを新たに設定する(即ち、メモリ24に記憶する)。さらに、CPU22は、プリンタPRのサブネットマスクとして、SMprに代えて、S200で決定された候補サブネットマスクの値を新たに設定する。また、S204で受信されるACKは、ACKの送信元のDHCPサーバのIPアドレスの値を含む。CPU22は、プリンタPRのゲートウェイアドレスとして、現在のゲートウェイアドレスの値に代えて、ACKの送信元のDHCPサーバのIPアドレスの値を新たに設定する。即ち、プリンタPRのゲートウェイが変更される。S206が終了すると、図7の処理が終了する。   In S206, the CPU 22 newly sets the value IPre of the candidate IP address determined in S200, instead of the current IP address value (eg, IPpr) of the printer PR, as the IP address of the printer PR (ie, the memory). 24). Further, the CPU 22 newly sets the value of the candidate subnet mask determined in S200 as the subnet mask of the printer PR, instead of SMpr. The ACK received in S204 includes the value of the IP address of the DHCP server that is the transmission source of the ACK. The CPU 22 newly sets the IP address value of the DHCP server that is the transmission source of the ACK instead of the current gateway address value as the gateway address of the printer PR. That is, the gateway of the printer PR is changed. When S206 ends, the process of FIG. 7 ends.

(具体的なケース;図8)
続いて、図8を参照して、図7のフローチャートに従って実現される具体的なケースの内容を説明する。T10〜T24は、図5と同様である。
(Specific case; Fig. 8)
Next, with reference to FIG. 8, the contents of a specific case realized according to the flowchart of FIG. 7 will be described. T10 to T24 are the same as in FIG.

T200では、プリンタPRは、T14で受信された応答パケットに含まれるIPteのうちのホスト部の値を変更して、候補IPアドレスの値IPre「192.168.1.11」を決定すると共に、T14で受信された応答パケットに含まれるSMteを候補サブネットマスクの値として決定する(図7のS200)。T202、T204は、候補IPアドレスの値がIPreであることを除き、図5のT32、T34と同様である。   In T200, the printer PR changes the value of the host part of the IPte included in the response packet received in T14 to determine the value IPre “192.168.1.11” of the candidate IP address, and SMte included in the response packet received at T14 is determined as the value of the candidate subnet mask (S200 in FIG. 7). T202 and T204 are the same as T32 and T34 in FIG. 5 except that the value of the candidate IP address is IPre.

T206では、プリンタPRは、ACKを受信すると(S204でYES)、プリンタPRのIPアドレスとして、IPprに代えて、IPreを設定する(S206)。また、プリンタPRは、プリンタPRのサブネットマスクとして、SMprに代えて、SMteを新たに設定する。また、プリンタPRは、プリンタPRのゲートウェイアドレスとして、IPdh2に代えて、T204のACKに含まれるIPdh1を新たに設定する。即ち、プリンタPRのゲートウェイが、第2のDHCPサーバ70から第1のDHCPサーバ60に変更される。T210〜T220は、プリンタPRに新たに設定されるIPアドレスの値がIPreであることを除き、図5のT40〜T50と同様である。   In T206, when receiving the ACK (YES in S204), the printer PR sets IPre instead of IPpr as the IP address of the printer PR (S206). The printer PR newly sets SMte instead of SMpr as the subnet mask of the printer PR. Further, the printer PR newly sets IPdh1 included in the ACK of T204, instead of IPdh2, as the gateway address of the printer PR. That is, the gateway of the printer PR is changed from the second DHCP server 70 to the first DHCP server 60. T210 to T220 are the same as T40 to T50 in FIG. 5 except that the value of the IP address newly set in the printer PR is IPre.

(第2実施例の効果)
図8に示されるように、プリンタPRは、IPteに基づいて、IPteのネットワークアドレス部の値に一致するネットワークアドレス部の値を含むIPreを決定する(T200)。そして、プリンタPRは、プリンタPRのIPアドレスとして、IPprに代えて、IPreを新たに設定する(T206)。この結果、プリンタPRは、IPreを利用した印刷データのユニキャスト通信を端末装置TEと適切に実行することができる(T218)。特に、本実施例では、プリンタPRは、DHCP Discover及びDHCP Offerの通信を実行せずに済むので、通信負荷を軽減することができる。なお、本実施例では、IPreが、「候補IPアドレス」の値及び「新IPアドレス」の値の一例である。また、図7において、S200〜S206の処理が、「設定部」によって実行される処理の一例である。
(Effect of the second embodiment)
As shown in FIG. 8, the printer PR determines IPre including the value of the network address part that matches the value of the network address part of IPte based on IPte (T200). Then, the printer PR newly sets IPre instead of IPpr as the IP address of the printer PR (T206). As a result, the printer PR can appropriately execute unicast communication of print data using IPre with the terminal device TE (T218). In particular, in the present embodiment, the printer PR does not need to perform communication of DHCP Discover and DHCP Offer, so that the communication load can be reduced. In this embodiment, IPre is an example of a value of “candidate IP address” and a value of “new IP address”. In FIG. 7, the processes of S <b> 200 to S <b> 206 are an example of processes executed by the “setting unit”.

(第3実施例)
本実施例では、プリンタPRのIPアドレスを変更するための手法が第1実施例とは異なる。プリンタPRは、プリンタPRのIPアドレス設定方式をDHCP方式及びSTATIC方式の間で切り替え可能である。DHCP方式は、プリンタPRが、DHCPサーバから割り当てられるIPアドレスを、プリンタPR自身のIPアドレスとして設定するための方式である。STATIC方式は、プリンタPRが、DHCPサーバを利用せずに、ユーザによって指定されるIPアドレスを、プリンタPR自身のIPアドレスとして設定するための方式である。
(Third embodiment)
In the present embodiment, a method for changing the IP address of the printer PR is different from that in the first embodiment. The printer PR can switch the IP address setting method of the printer PR between the DHCP method and the STATIC method. The DHCP method is a method for the printer PR to set the IP address assigned from the DHCP server as the IP address of the printer PR itself. The STATIC method is a method for the printer PR to set an IP address designated by the user as the IP address of the printer PR itself without using a DHCP server.

(プリンタPRが実行する処理;図9)
図9を参照して、プリンタPRのCPU22が実行する処理の内容について説明する。S10〜S19の処理は、図2と同様である。
(Processing executed by printer PR; FIG. 9)
With reference to FIG. 9, the contents of the process executed by the CPU 22 of the printer PR will be described. The processes of S10 to S19 are the same as those in FIG.

S300では、CPU22は、候補IPアドレスの値と候補サブネットマスクの値と候補ゲートウェイアドレスの値とを決定する。具体的には、CPU22は、これらの値の指定を促すための画面を表示部14に表示させて、ユーザによって指定されるIPアドレスの値、サブネットマスクの値、ゲートウェイアドレスの値を、それぞれ、候補IPアドレスの値、候補サブネットマスクの値、候補ゲートウェイアドレスの値として決定する。以下では、ここで決定される候補IPアドレスの値、候補サブネットマスクの値、候補ゲートウェイアドレスの値のことを、それぞれ、「IPui」、「SMui」、「GWui」と呼ぶ。   In S300, the CPU 22 determines a candidate IP address value, a candidate subnet mask value, and a candidate gateway address value. Specifically, the CPU 22 displays a screen for prompting specification of these values on the display unit 14, and sets the IP address value, subnet mask value, and gateway address value specified by the user, respectively. The candidate IP address value, candidate subnet mask value, and candidate gateway address value are determined. Hereinafter, the value of the candidate IP address, the value of the candidate subnet mask, and the value of the candidate gateway address determined here are referred to as “IPui”, “SMui”, and “GWui”, respectively.

S302では、CPU22は、S300で決定されたIPuiを含むARPパケットをLAN4にブロードキャストする。   In S302, the CPU 22 broadcasts the ARP packet including the IPui determined in S300 to the LAN 4.

S304では、CPU22は、ARPパケットに対する応答パケットを受信することを監視する。ARPパケットに含まれるIPuiが、LAN4に接続されている他のデバイスに現在設定されている場合には、当該他のデバイスは、ARPパケットに対する応答パケットをプリンタPRに送信する。CPU22は、ARPパケットを受信すると(S304でYES)、図9の処理を終了する。なお、変形例では、CPU22は、ARPパケットを受信する場合(S304でYES)に、S300に戻り、他のIPアドレスの指定をユーザに促してもよい。一方、ARPパケットに含まれるIPuiが、LAN4に接続されているいずれのデバイスにも設定されていない場合には、CPU22は、ARPパケットに対する応答パケットを受信しない。CPU22は、S302でARPパケットを送信した後に所定期間に亘って応答パケットを受信しない場合に、S304でNOと判断し、S305に進む。   In S304, the CPU 22 monitors whether a response packet for the ARP packet is received. When the IPui included in the ARP packet is currently set in another device connected to the LAN 4, the other device transmits a response packet to the ARP packet to the printer PR. When receiving the ARP packet (YES in S304), the CPU 22 ends the process of FIG. In the modified example, when receiving the ARP packet (YES in S304), the CPU 22 may return to S300 and prompt the user to specify another IP address. On the other hand, when the IPui included in the ARP packet is not set in any device connected to the LAN 4, the CPU 22 does not receive a response packet for the ARP packet. When the CPU 22 does not receive a response packet for a predetermined period after transmitting the ARP packet in S302, the CPU 22 determines NO in S304 and proceeds to S305.

S305では、CPU22は、プリンタPRの現在のIPアドレス設定方式がDHCP方式であるか否かを判断する。CPU22は、プリンタPRの現在のIPアドレス設定方式がDHCP方式である場合に、S305でYESと判断し、S306において、プリンタPRのIPアドレス設定方式をDHCP方式からSTATIC方式に変更する。一方において、CPU22は、プリンタPRの現在のIPアドレス設定方式がSTATIC方式である場合に、S305でNOと判断し、S306をスキップして、S308に進む。   In S305, the CPU 22 determines whether or not the current IP address setting method of the printer PR is the DHCP method. If the current IP address setting method of the printer PR is the DHCP method, the CPU 22 determines YES in S305, and changes the IP address setting method of the printer PR from the DHCP method to the STATIC method in S306. On the other hand, if the current IP address setting method of the printer PR is the STATIC method, the CPU 22 determines NO in S305, skips S306, and proceeds to S308.

S308では、CPU22は、プリンタPRのIPアドレスとして、プリンタPRの現在のIPアドレスの値(例えばIPpr)に代えて、S300で決定された候補IPアドレスの値IPuiを新たに設定する(即ち、メモリ24に記憶する)。また、CPU22は、プリンタPRのサブネットマスクとして、SMprに代えて、S300で決定された候補サブネットマスクの値SMuiを新たに設定し、プリンタPRのゲートウェイアドレスとして、S300で決定された候補ゲートウェイアドレスの値GWuiを新たに設定する。S308が終了すると、図9の処理が終了する。   In S308, the CPU 22 newly sets the value IPui of the candidate IP address determined in S300, instead of the current IP address value (eg, IPpr) of the printer PR, as the IP address of the printer PR (ie, the memory). 24). Further, the CPU 22 newly sets the value SMui of the candidate subnet mask determined in S300 instead of SMpr as the subnet mask of the printer PR, and sets the candidate gateway address determined in S300 as the gateway address of the printer PR. A value GWui is newly set. When S308 ends, the process of FIG. 9 ends.

(具体的なケース;図10)
続いて、図10を参照して、図9のフローチャートに従って実現される具体的なケースの内容を説明する。T10〜T24は、図5と同様である。図10の初期状態では、プリンタPRのIPアドレス設定方式がDHCP方式であり、第1のDHCPサーバ60からプリンタPRにIPアドレス(即ちIPpr)が割り当てられている。
(Specific case; Fig. 10)
Next, with reference to FIG. 10, the contents of a specific case realized according to the flowchart of FIG. 9 will be described. T10 to T24 are the same as in FIG. In the initial state of FIG. 10, the IP address setting method of the printer PR is the DHCP method, and an IP address (that is, IPpr) is assigned from the first DHCP server 60 to the printer PR.

T300では、プリンタPRは、ユーザによって指定されるIPui、SMui、GWuiを、それぞれ、候補IPアドレスの値、候補サブネットマスクの値、候補ゲートウェイアドレスの値として決定する(図9のS300)。本ケースでは、T300において、IPteのネットワークアドレス部の値に一致するネットワークアドレス部の値を含むIPui「192.168.1.21」がユーザによって指定される。また、SMteに一致するSMuiがユーザによって指定され、端末装置TEのゲートウェイである第1のDHCPサーバ60のIPアドレスの値IPdh1に一致するGWuiがユーザによって指定される。次いで、T302では、プリンタPRは、IPuiを含むARPパケットをLAN4にブロードキャストする(S302)。   In T300, the printer PR determines IPui, SMui, and GWui designated by the user as a candidate IP address value, a candidate subnet mask value, and a candidate gateway address value, respectively (S300 in FIG. 9). In this case, in T300, the IPi “192.168.1.21” including the value of the network address portion that matches the value of the network address portion of IPte is designated by the user. Also, SMui that matches SMte is specified by the user, and GWui that matches the value IPdh1 of the IP address of the first DHCP server 60 that is the gateway of the terminal device TE is specified by the user. Next, in T302, the printer PR broadcasts an ARP packet including IPui to the LAN 4 (S302).

IPuiは、LAN4に接続されているいずれのデバイスにも設定されていない。そのため、T304では、プリンタPRは、ARPパケットに対する応答パケットを受信しない(S304でNO)。   IPui is not set in any device connected to the LAN 4. Therefore, in T304, the printer PR does not receive a response packet for the ARP packet (NO in S304).

T306では、プリンタPRは、プリンタPRのIPアドレス設定方式がDHCP方式であると判断し(S305でYES)、プリンタPRのIPアドレス設定方式を、DHCP方式からSTATIC方式に変更する(S306)。   In T306, the printer PR determines that the IP address setting method of the printer PR is the DHCP method (YES in S305), and changes the IP address setting method of the printer PR from the DHCP method to the STATIC method (S306).

T308では、プリンタPRは、プリンタPRのIPアドレスとして、IPprに代えて、IPuiを設定する(S308)。また、プリンタPRは、プリンタPRのサブネットマスクとして、SMprに代えて、SMuiを新たに設定する。また、プリンタPRは、プリンタPRのゲートウェイアドレスとして、IPdh2に代えて、GWuiを新たに設定する。   In T308, the printer PR sets IPui instead of IPpr as the IP address of the printer PR (S308). The printer PR newly sets SMui instead of SMpr as the subnet mask of the printer PR. Further, the printer PR newly sets GWui as the gateway address of the printer PR, instead of IPdh2.

T312〜T322は、プリンタPRに新たに設定されるIPアドレスの値がIPuiであることを除き、図5のT40〜T50と同様である。   T312 to T322 are the same as T40 to T50 in FIG. 5 except that the value of the IP address newly set in the printer PR is IPui.

(第3実施例の効果)
図10に示されるように、プリンタPRは、ユーザによる指定に基づいて、IPteのネットワークアドレス部の値に一致するネットワークアドレス部の値を含むIPuiを決定する(T300)。そして、プリンタPRは、プリンタPRのIPアドレスとして、IPprに代えて、IPuiを新たに設定する(T308)。この結果、プリンタPRは、IPuiを利用した印刷データのユニキャスト通信を端末装置TEと適切に実行することができる(T320)。特に、本実施例では、プリンタPRは、DHCP Discover及びDHCP Offerの通信を実行せずに済むので、通信負荷を軽減することができる。なお、本実施例では、IPuiが、「新IPアドレス」の値の一例である。また、図9において、S308の処理が、「設定部」によって実行される処理の一例である。
(Effect of the third embodiment)
As shown in FIG. 10, the printer PR determines an IPui that includes the value of the network address portion that matches the value of the network address portion of IPte based on the designation by the user (T300). Then, the printer PR newly sets IPui instead of IPpr as the IP address of the printer PR (T308). As a result, the printer PR can appropriately execute unicast communication of print data using IPui with the terminal device TE (T320). In particular, in the present embodiment, the printer PR does not need to perform communication of DHCP Discover and DHCP Offer, so that the communication load can be reduced. In this embodiment, IPui is an example of the value of “new IP address”. In FIG. 9, the process of S308 is an example of a process executed by the “setting unit”.

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

(変形例1)図2において、S16、S18、及び、S19の処理が実行されなくてもよい。即ち、プリンタPRのCPU22は、端末装置TEのIPアドレスのネットワークアドレス部の値と、プリンタPRのIPアドレスのネットワーク部の値と、が一致しない場合(図2のS14でNO)に、プリンタPRのIPアドレスを必ず変更してもよい。即ち、「第1の通信装置」は、「表示制御部」及び「通知送信部」を備えていなくてもよい。 (Modification 1) In FIG. 2, the processing of S16, S18, and S19 may not be executed. That is, if the value of the network address part of the IP address of the terminal device TE and the value of the network part of the IP address of the printer PR do not match (NO in S14 of FIG. 2), the CPU 22 of the printer PR The IP address may be changed. That is, the “first communication apparatus” may not include the “display control unit” and the “notification transmission unit”.

(変形例2)上記の第1実施例では、通信システム2は、第1のDHCPサーバ60と、第2のDHCPサーバ70と、の2個のDHCPサーバを備える。通信システム2に備えられるDHCPサーバの数は2個には限られず、1個以上であれば任意の数であってもよい。例えば、通信システム2が、第1のDHCPサーバ60のみを備え、第2のDHCPサーバ70を備えていない状況を想定する。さらに、プリンタPRのIPアドレスが、STATIC方式に従って、ユーザによって指定された値IPprに設定されており、端末装置TEのIPアドレスが、DHCP方式に従って、第1のDHCPサーバ60によって割り当てられた値IPteに設定されている状況を想定する。このような状況でも、IPprのネットワークアドレス部の値とIPteのネットワークアドレス部の値とが一致しない事象が生じ得る。この場合、プリンタPRのCPU22は、第1のDHCPサーバ60から新IPアドレスを取得し、プリンタPRのIPアドレスとして、IPprに代えて、当該新IPアドレスの値を設定してもよい。 (Modification 2) In the first embodiment described above, the communication system 2 includes two DHCP servers, a first DHCP server 60 and a second DHCP server 70. The number of DHCP servers provided in the communication system 2 is not limited to two, and may be any number as long as it is one or more. For example, it is assumed that the communication system 2 includes only the first DHCP server 60 and does not include the second DHCP server 70. Further, the IP address of the printer PR is set to the value IPpr specified by the user according to the STATIC method, and the IP address assigned by the first DHCP server 60 is assigned to the IP address of the terminal device TE according to the DHCP method. Assume the situation set in. Even in such a situation, an event may occur in which the value of the network address part of IPpr does not match the value of the network address part of IPte. In this case, the CPU 22 of the printer PR may acquire a new IP address from the first DHCP server 60 and set the value of the new IP address as the IP address of the printer PR instead of IPpr.

(変形例3)通信システム2は、DHCPサーバを備えていなくてもよい。そして、プリンタPRのIPアドレスが、STATIC方式に従って、ユーザによって指定された値IPprに設定されており、端末装置TEのIPアドレスが、STATIC方式に従って、ユーザによって指定された値IPteに設定されている状況を想定する。このような状況でも、IPprのネットワークアドレス部の値とIPteのネットワークアドレス部の値とが一致しない事象が生じ得る。この場合、プリンタPRのCPU22は、上記の第3実施例と同様に、STATIC方式に従って新IPアドレスを決定し、プリンタPRのIPアドレスとして、IPprに代えて、当該新IPアドレスの値を設定してもよい。 (Modification 3) The communication system 2 may not include a DHCP server. Then, the IP address of the printer PR is set to the value IPpr specified by the user according to the STATIC method, and the IP address of the terminal device TE is set to the value IPte specified by the user according to the STATIC method. Assume the situation. Even in such a situation, an event may occur in which the value of the network address part of IPpr does not match the value of the network address part of IPte. In this case, the CPU 22 of the printer PR determines a new IP address in accordance with the STATIC method, and sets the value of the new IP address instead of IPpr as the IP address of the printer PR, as in the third embodiment. May be.

(変形例4)上記の各実施例では、「第1の通信装置」、「第2の通信装置」は、それぞれ、プリンタPR、端末装置TEである。変形例では、例えば、「第1の通信装置」、「第2の通信装置」が、それぞれ、スキャナ、端末装置TEであってもよい。この場合、「対象データ」は、スキャンデータであってもよい。また、「第1の通信装置」は、プリンタ及びスキャナに限られず、例えば、多機能機、コピー機、FAX、電話機、PDA、携帯電話、サーバ等であってもよい。また、別の変形例では、「第2の通信装置」は、端末装置TEに限られず、例えば、プリンタ、スキャナ、多機能機、コピー機、FAX、電話機、サーバ等であってもよい。 (Modification 4) In each of the above embodiments, the “first communication device” and the “second communication device” are the printer PR and the terminal device TE, respectively. In the modification, for example, the “first communication device” and the “second communication device” may be the scanner and the terminal device TE, respectively. In this case, the “target data” may be scan data. The “first communication device” is not limited to a printer and a scanner, and may be, for example, a multi-function device, a copier, a FAX, a telephone, a PDA, a mobile phone, a server, or the like. In another modification, the “second communication device” is not limited to the terminal device TE, and may be, for example, a printer, a scanner, a multi-function device, a copier, a FAX, a telephone, a server, or the like.

(変形例5)上記の各実施例では、プリンタPRのCPU22と端末装置TEのCPU52とがプログラム(即ちソフトウェア)を実行することによって、図2〜図10の各処理が実現される。これに代えて、図2〜図10の各処理のうちの少なくとも1つの処理は、論理回路等のハードウェアによって実現されてもよい。 (Modification 5) In each of the above-described embodiments, the CPU 22 of the printer PR and the CPU 52 of the terminal device TE execute programs (that is, software), thereby realizing the processes shown in FIGS. Instead, at least one of the processes in FIGS. 2 to 10 may be realized by hardware such as a logic circuit.

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

2:通信システム、4:LAN、12:操作部、14:表示部、16:ネットワークI/F、20、50:制御部、22、52:CPU、24、54:メモリ、60:第1のDHCPサーバ、70:第2のDHCPサーバ、TE:端末装置、PR:プリンタ、IPpr:プリンタPRのIPアドレスの値、IPte:端末装置TEのIPアドレスの値、IIPca1:候補IPアドレスの値   2: communication system, 4: LAN, 12: operation unit, 14: display unit, 16: network I / F, 20, 50: control unit, 22, 52: CPU, 24, 54: memory, 60: first DHCP server, 70: second DHCP server, TE: terminal device, PR: printer, IPpr: IP address value of printer PR, IPte: IP address value of terminal device TE, IIPca1: candidate IP address value

Claims (8)

第1の通信装置であって、
前記第1の通信装置とは異なる第2の通信装置からローカルエリアネットワークにブロードキャストされた要求パケットを受信する要求パケット受信部であって、前記要求パケットは、前記第2の通信装置の現在のIPアドレスである対象IPアドレスと、前記第2の通信装置の現在のサブネットマスクである対象サブネットマスクと、を含む、前記要求パケット受信部と、
前記第2の通信装置から前記要求パケットが受信される場合に、前記ローカルエリアネットワークを介して、前記要求パケットに対する第1の応答パケットを前記第2の通信装置に送信する応答パケット送信部であって、前記第1の応答パケットは、前記第1の通信装置の現在のIPアドレスである現行IPアドレスと、前記第1の通信装置の現在のサブネットマスクである現行サブネットマスクと、を含む、前記応答パケット送信部と、
前記第2の通信装置から前記要求パケットが受信される場合に、前記要求パケットに含まれる前記対象IPアドレスの値と前記対象サブネットマスクの値とを用いて前記対象IPアドレスのネットワークアドレス部の値である対象ネットワークアドレス値を特定し、前記現行IPアドレスの値と前記現行サブネットマスクの値とを用いて前記現行IPアドレスのネットワークアドレス部の値である現行ネットワークアドレス値を特定し、特定済みの前記対象ネットワークアドレス値と特定済みの前記現行ネットワークアドレス値とが一致するのか否かを判断する判断部と、
前記対象ネットワークアドレス値と前記現行ネットワークアドレス値とが一致しないと判断される場合に、前記第1の通信装置のIPアドレスとして、前記現行IPアドレスに代えて、前記対象ネットワークアドレス値に一致するネットワークアドレス部の値を含む新IPアドレスを設定する設定部と、
前記第1の通信装置のIPアドレスとして前記新IPアドレスが設定された後に、前記ローカルエリアネットワークを介して、前記新IPアドレスを利用した対象データのユニキャスト通信を前記第2の通信装置と実行するユニキャスト通信実行部と、を備え、
前記要求パケット受信部は、さらに、前記第1の通信装置のIPアドレスとして前記新IPアドレスが設定された後に、前記第2の通信装置から前記ローカルエリアネットワークに再びブロードキャストされた前記要求パケットを再び受信し、
前記応答パケット送信部は、さらに、前記第2の通信装置から前記要求パケットが再び受信される場合に、前記ローカルエリアネットワークを介して、前記要求パケットに対する第2の応答パケットであって、前記新IPアドレスを含む前記第2の応答パケットを前記第2の通信装置に送信し、
前記ユニキャスト通信実行部は、前記第2の応答パケットが前記第2の通信装置に送信された後に、前記ローカルエリアネットワークを介して、前記新IPアドレスを利用した前記対象データの前記ユニキャスト通信を前記第2の通信装置と実行する、
第1の通信装置。
A first communication device comprising:
A request packet receiver for receiving a request packet broadcast to a local area network from a second communication device different from the first communication device, wherein the request packet is a current IP address of the second communication device; A request packet receiving unit including a target IP address that is an address and a target subnet mask that is a current subnet mask of the second communication device;
A response packet transmitting unit configured to transmit a first response packet to the request packet to the second communication device via the local area network when the request packet is received from the second communication device; The first response packet includes a current IP address that is a current IP address of the first communication device and a current subnet mask that is a current subnet mask of the first communication device. A response packet transmitter,
When the request packet is received from the second communication device, the value of the network address portion of the target IP address using the value of the target IP address and the value of the target subnet mask included in the request packet The target network address value is specified, and the current network address value that is the value of the network address portion of the current IP address is specified using the value of the current IP address and the value of the current subnet mask. A determination unit for determining whether or not the target network address value matches the identified current network address value;
When it is determined that the target network address value does not match the current network address value, a network that matches the target network address value instead of the current IP address as the IP address of the first communication device A setting section for setting a new IP address including the value of the address section;
After the new IP address is set as the IP address of the first communication device, unicast communication of target data using the new IP address is executed with the second communication device via the local area network. A unicast communication execution unit,
The request packet receiver further re-transmits the request packet broadcast again from the second communication device to the local area network after the new IP address is set as the IP address of the first communication device. Receive
The response packet transmitting unit further includes a second response packet for the request packet via the local area network when the request packet is received again from the second communication device, Transmitting the second response packet including an IP address to the second communication device;
The unicast communication execution unit transmits the unicast communication of the target data using the new IP address via the local area network after the second response packet is transmitted to the second communication device. With the second communication device,
First communication device.
前記第1の通信装置は、さらに、
前記対象ネットワークアドレス値と前記現行ネットワークアドレス値とが一致しないと判断される場合に、前記第1の通信装置のIPアドレスを変更するのか否かをユーザに選択させるための選択画面を、前記第1の通信装置の表示部に表示させる表示制御部を備え、
前記設定部は、
前記選択画面において前記第1の通信装置のIPアドレスを変更することが選択される場合に、前記第1の通信装置のIPアドレスとして、前記現行IPアドレスに代えて、前記新IPアドレスを設定し、
前記選択画面において前記第1の通信装置のIPアドレスを変更しないことが選択される場合に、前記第1の通信装置のIPアドレスとして、前記現行IPアドレスに代えて、前記新IPアドレスを設定しない、請求項1の第1の通信装置。
The first communication device further includes:
A selection screen for allowing the user to select whether or not to change the IP address of the first communication device when it is determined that the target network address value does not match the current network address value; A display control unit for displaying on the display unit of the communication device of 1,
The setting unit
When it is selected to change the IP address of the first communication device on the selection screen, the new IP address is set instead of the current IP address as the IP address of the first communication device. ,
When it is selected not to change the IP address of the first communication device on the selection screen, the new IP address is not set instead of the current IP address as the IP address of the first communication device. The first communication device according to claim 1.
前記設定部は、前記第1の通信装置のIPアドレスとして、前記現行IPアドレスに代えて、前記第1の通信装置及び前記第2の通信装置とは異なるIPアドレス割当サーバによって割り当てられる前記新IPアドレスを設定する、請求項1又は2の第1の通信装置。   The setting unit, as the IP address of the first communication device, replaces the current IP address with the new IP assigned by an IP address assignment server different from the first communication device and the second communication device. The 1st communication apparatus of Claim 1 or 2 which sets an address. 前記第1の通信装置は、さらに、
前記ローカルエリアネットワークに2個以上のIPアドレス割当サーバが接続されている状態で、前記対象ネットワークアドレス値と前記現行ネットワークアドレス値とが一致しないと判断される場合に、前記2個以上のIPアドレス割当サーバのそれぞれに前記第1の通信装置へのIPアドレスの割り当てを要求して、前記2個以上のIPアドレス割当サーバのそれぞれから2個以上の候補IPアドレスを受信する候補IPアドレス受信部を備え、
前記設定部は、前記2個以上のIPアドレス割当サーバから受信された2個以上の候補IPアドレスの中から、前記対象ネットワークアドレス値に一致するネットワークアドレス部の値を含む1個の候補IPアドレスを選択することによって、前記1個の候補IPアドレスである前記新IPアドレスを決定する、請求項3の第1の通信装置。
The first communication device further includes:
When it is determined that the target network address value does not match the current network address value in a state where two or more IP address assignment servers are connected to the local area network, the two or more IP addresses A candidate IP address receiving unit that requests each of the allocation servers to allocate an IP address to the first communication device and receives two or more candidate IP addresses from each of the two or more IP address allocation servers. Prepared,
The setting unit includes one candidate IP address including a value of a network address portion that matches the target network address value from two or more candidate IP addresses received from the two or more IP address assignment servers. The first communication apparatus according to claim 3, wherein the new IP address that is the one candidate IP address is determined by selecting.
前記設定部は、
前記対象ネットワークアドレス値と前記現行ネットワークアドレス値とが一致しないと判断される場合に、IPアドレス割当サーバを利用せずに、前記対象ネットワークアドレス値に一致するネットワークアドレス部の値を含む候補IPアドレスを決定し、
前記第1の通信装置及び前記第2の通信装置とは異なるIPアドレス割当サーバに前記前記候補IPアドレスの使用を要求して、前記IPアドレス割当サーバから前記候補IPアドレスの使用許可が取得される場合に、前記候補IPアドレスを前記新IPアドレスとして決定する、請求項1又は2の第1の通信装置。
The setting unit
If it is determined that the target network address value and the current network address value do not match, a candidate IP address including a value of the network address portion that matches the target network address value without using an IP address assignment server Decide
The IP address allocation server different from the first communication device and the second communication device is requested to use the candidate IP address, and permission to use the candidate IP address is acquired from the IP address allocation server. In this case, the first communication device according to claim 1 or 2, wherein the candidate IP address is determined as the new IP address.
第1の通信装置と第2の通信装置とを備える通信システムであって、
前記第2の通信装置は、
前記第1の通信装置と前記第2の通信装置とが接続されているローカルエリアネットワークに要求パケットをブロードキャストする要求パケット送信部であって、前記要求パケットは、前記第2の通信装置の現在のIPアドレスである対象IPアドレスと、前記第2の通信装置の現在のサブネットマスクである対象サブネットマスクと、を含む、前記要求パケット送信部と、
前記第1の通信装置から、前記ローカルエリアネットワークを介して、前記要求パケットに対する第1の応答パケットを受信する応答パケット受信部であって、前記第1の応答パケットは、前記第1の通信装置の現在のIPアドレスである現行IPアドレスと、前記第1の通信装置の現在のサブネットマスクである現行サブネットマスクと、を含む、前記応答パケット受信部と、
前記第1の通信装置から前記第1の応答パケットが受信される場合に、前記対象IPアドレスの値と前記対象サブネットマスクの値とを用いて前記対象IPアドレスのネットワークアドレス部の値である対象ネットワークアドレス値を特定し、前記第1の応答パケットに含まれる前記現行IPアドレスの値と前記現行サブネットマスクの値とを用いて前記現行IPアドレスのネットワークアドレス部の値である現行ネットワークアドレス値を特定し、特定済みの前記対象ネットワークアドレス値と特定済みの前記現行ネットワークアドレス値とが一致するのか否かを判断する第1の判断部と、を備え、
前記要求パケット送信部は、さらに、前記対象ネットワークアドレス値と前記現行ネットワークアドレス値とが一致しないと前記第1の判断部によって判断される場合に、前記要求パケットを前記ローカルエリアネットワークに再びブロードキャストし、
前記応答パケット受信部は、さらに、前記第1の通信装置のIPアドレスとして、前記現行IPアドレスに代えて、前記対象ネットワークアドレス値に一致するネットワークアドレス部の値を含む新IPアドレスが設定された後に、前記第1の通信装置から、前記ローカルエリアネットワークを介して、再びブロードキャストされた前記要求パケットに対する第2の応答パケットであって、前記新IPアドレスを含む前記第2の応答パケットを受信し、
前記第1の通信装置は、
前記第2の通信装置から前記ローカルエリアネットワークにブロードキャストされた前記要求パケットを受信する要求パケット受信部と、
前記第2の通信装置から前記要求パケットが受信される場合に、前記ローカルエリアネットワークを介して、前記要求パケットに対する前記第1の応答パケットを前記第2の通信装置に送信する応答パケット送信部と、
前記第2の通信装置から前記要求パケットが受信される場合に、前記要求パケットに含まれる前記対象IPアドレスの値と前記対象サブネットマスクの値とを用いて前記対象ネットワークアドレス値を特定し、前記現行IPアドレスの値と前記現行サブネットマスクの値とを用いて前記現行ネットワークアドレス値を特定し、特定済みの前記対象ネットワークアドレス値と特定済みの前記現行ネットワークアドレス値とが一致するのか否かを判断する第2の判断部と、
前記対象ネットワークアドレス値と前記現行ネットワークアドレス値とが一致しないと前記第2の判断部によって判断される場合に、前記第1の通信装置のIPアドレスとして、前記現行IPアドレスに代えて、前記新IPアドレスを設定する設定部と、
前記第1の通信装置のIPアドレスとして前記新IPアドレスが設定された後に、前記ローカルエリアネットワークを介して、前記新IPアドレスを利用した対象データのユニキャスト通信を前記第2の通信装置と実行するユニキャスト通信実行部と、を備え、
前記要求パケット受信部は、さらに、前記第1の通信装置のIPアドレスとして前記新IPアドレスが設定された後に、前記第2の通信装置から前記ローカルエリアネットワークに再びブロードキャストされた前記要求パケットを再び受信し、
前記応答パケット送信部は、さらに、前記第2の通信装置から前記要求パケットが再び受信される場合に、前記ローカルエリアネットワークを介して、前記要求パケットに対する第2の応答パケットであって、前記新IPアドレスを含む前記第2の応答パケットを前記第2の通信装置に送信し、
前記ユニキャスト通信実行部は、前記第2の応答パケットが前記第2の通信装置に送信された後に、前記ローカルエリアネットワークを介して、前記新IPアドレスを利用した前記対象データの前記ユニキャスト通信を前記第2の通信装置と実行する、通信システム。
A communication system comprising a first communication device and a second communication device,
The second communication device is:
A request packet transmitter for broadcasting a request packet to a local area network to which the first communication device and the second communication device are connected, wherein the request packet is a current packet of the second communication device. The request packet transmitter including a target IP address that is an IP address and a target subnet mask that is a current subnet mask of the second communication device;
A response packet receiving unit that receives a first response packet to the request packet from the first communication device via the local area network, wherein the first response packet is the first communication device. A response packet receiving unit, including: a current IP address that is a current IP address of the first communication device; and a current subnet mask that is a current subnet mask of the first communication device;
A target that is the value of the network address portion of the target IP address using the value of the target IP address and the value of the target subnet mask when the first response packet is received from the first communication device; A network address value is specified, and a current network address value that is a value of a network address portion of the current IP address is determined using the value of the current IP address and the value of the current subnet mask included in the first response packet. A first determination unit that determines whether the specified target network address value and the specified current network address value match, and
The request packet transmitting unit further broadcasts the request packet to the local area network again when the first determination unit determines that the target network address value does not match the current network address value. ,
In the response packet receiving unit, a new IP address including a value of the network address part matching the target network address value is set as the IP address of the first communication device instead of the current IP address Later, from the first communication device, the second response packet, which is the second response packet to the request packet broadcast again via the local area network, including the new IP address is received. ,
The first communication device is:
A request packet receiver for receiving the request packet broadcast from the second communication device to the local area network;
A response packet transmitter configured to transmit the first response packet to the request packet to the second communication device via the local area network when the request packet is received from the second communication device; ,
When the request packet is received from the second communication device, the target network address value is identified using the value of the target IP address and the value of the target subnet mask included in the request packet, The current network address value is identified using the current IP address value and the current subnet mask value, and whether or not the identified target network address value and the identified current network address value match. A second determination unit for determining;
When the second determination unit determines that the target network address value does not match the current network address value, the IP address of the first communication device is replaced with the new IP address instead of the current IP address. A setting unit for setting an IP address;
After the new IP address is set as the IP address of the first communication device, unicast communication of target data using the new IP address is executed with the second communication device via the local area network. A unicast communication execution unit,
The request packet receiver further re-transmits the request packet broadcast again from the second communication device to the local area network after the new IP address is set as the IP address of the first communication device. Receive
The response packet transmitting unit further includes a second response packet for the request packet via the local area network when the request packet is received again from the second communication device, Transmitting the second response packet including an IP address to the second communication device;
The unicast communication execution unit transmits the unicast communication of the target data using the new IP address via the local area network after the second response packet is transmitted to the second communication device. A communication system that executes the second communication apparatus with the second communication apparatus.
前記第1の通信装置は、さらに、
前記対象ネットワークアドレス値と前記現行ネットワークアドレス値とが一致しないと判断される場合に、前記第1の通信装置のIPアドレスを変更するのか否かをユーザに選択させるための選択画面を、前記第1の通信装置の表示部に表示させる表示制御部と、
前記選択画面において前記第1の通信装置のIPアドレスを変更しないことが選択される場合に、前記ローカルエリアネットワークを介して、所定の通知を前記第2の通信装置に送信する通知送信部と、を備え、
前記第2の通信装置の前記要求パケット送信部は、前記第1の通信装置から前記所定の通知が受信される場合に、前記対象ネットワークアドレス値と前記現行ネットワークアドレス値とが一致しないと前記第1の判断部によって判断されても、前記要求パケットを前記ローカルエリアネットワークに再びブロードキャストしない、請求項6の通信システム。
The first communication device further includes:
A selection screen for allowing the user to select whether or not to change the IP address of the first communication device when it is determined that the target network address value does not match the current network address value; A display control unit to be displayed on the display unit of the first communication device;
A notification transmitter for transmitting a predetermined notification to the second communication device via the local area network when it is selected not to change the IP address of the first communication device on the selection screen; With
When the predetermined notification is received from the first communication device, the request packet transmission unit of the second communication device receives the first network address value and the current network address value if they do not match. The communication system according to claim 6, wherein the request packet is not broadcast again to the local area network even if determined by one determination unit.
第1の通信装置のためのコンピュータプログラムであって、
前記第1の通信装置に搭載されるコンピュータに、以下の各処理、即ち、
前記第1の通信装置とは異なる第2の通信装置からローカルエリアネットワークにブロードキャストされた要求パケットを受信する要求パケット受信処理であって、前記要求パケットは、前記第2の通信装置の現在のIPアドレスである対象IPアドレスと、前記第2の通信装置の現在のサブネットマスクである対象サブネットマスクと、を含む、前記要求パケット受信処理と、
前記第2の通信装置から前記要求パケットが受信される場合に、前記ローカルエリアネットワークを介して、前記要求パケットに対する第1の応答パケットを前記第2の通信装置に送信する応答パケット送信処理であって、前記第1の応答パケットは、前記第1の通信装置の現在のIPアドレスである現行IPアドレスと、前記第1の通信装置の現在のサブネットマスクである現行サブネットマスクと、を含む、前記応答パケット送信処理と、
前記第2の通信装置から前記要求パケットが受信される場合に、前記要求パケットに含まれる前記対象IPアドレスの値と前記対象サブネットマスクの値とを用いて前記対象IPアドレスのネットワークアドレス部の値である対象ネットワークアドレス値を特定し、前記現行IPアドレスの値と前記現行サブネットマスクの値とを用いて前記現行IPアドレスのネットワークアドレス部の値である現行ネットワークアドレス値を特定し、特定済みの前記対象ネットワークアドレス値と特定済みの前記現行ネットワークアドレス値とが一致するのか否かを判断する判断処理と、
前記対象ネットワークアドレス値と前記現行ネットワークアドレス値とが一致しないと判断される場合に、前記第1の通信装置のIPアドレスとして、前記現行IPアドレスに代えて、前記対象ネットワークアドレス値に一致するネットワークアドレス部の値を含む新IPアドレスを設定する設定処理と、
前記第1の通信装置のIPアドレスとして前記新IPアドレスが設定された後に、前記ローカルエリアネットワークを介して、前記新IPアドレスを利用した対象データのユニキャスト通信を前記第2の通信装置と実行するユニキャスト通信実行処理と、を実行させ、
前記要求パケット受信処理では、さらに、前記第1の通信装置のIPアドレスとして前記新IPアドレスが設定された後に、前記第2の通信装置から前記ローカルエリアネットワークに再びブロードキャストされた前記要求パケットを再び受信し、
前記応答パケット送信処理では、さらに、前記第2の通信装置から前記要求パケットが再び受信される場合に、前記ローカルエリアネットワークを介して、前記要求パケットに対する第2の応答パケットであって、前記新IPアドレスを含む前記第2の応答パケットを送信し、
前記ユニキャスト通信実行処理では、前記第2の応答パケットが前記第2の通信装置に送信された後に、前記ローカルエリアネットワークを介して、前記新IPアドレスを利用した前記対象データの前記ユニキャスト通信を前記第2の通信装置と実行する、
コンピュータプログラム。
A computer program for a first communication device, comprising:
In the computer mounted on the first communication device, the following processes, that is,
A request packet reception process for receiving a request packet broadcast to a local area network from a second communication device different from the first communication device, wherein the request packet is a current IP address of the second communication device. A request packet reception process including a target IP address that is an address and a target subnet mask that is a current subnet mask of the second communication device;
Response packet transmission processing for transmitting a first response packet to the request packet to the second communication device via the local area network when the request packet is received from the second communication device. The first response packet includes a current IP address that is a current IP address of the first communication device and a current subnet mask that is a current subnet mask of the first communication device. Response packet transmission processing,
When the request packet is received from the second communication device, the value of the network address portion of the target IP address using the value of the target IP address and the value of the target subnet mask included in the request packet The target network address value is specified, and the current network address value that is the value of the network address portion of the current IP address is specified using the value of the current IP address and the value of the current subnet mask. A determination process for determining whether or not the target network address value matches the specified current network address value;
When it is determined that the target network address value does not match the current network address value, a network that matches the target network address value instead of the current IP address as the IP address of the first communication device A setting process for setting a new IP address including the value of the address part;
After the new IP address is set as the IP address of the first communication device, unicast communication of target data using the new IP address is executed with the second communication device via the local area network. Unicast communication execution processing to be executed,
In the request packet receiving process, after the new IP address is set as the IP address of the first communication device, the request packet broadcast again from the second communication device to the local area network is again transmitted. Receive
In the response packet transmission process, when the request packet is received again from the second communication device, the response packet transmission process is a second response packet to the request packet via the local area network, Sending the second response packet including an IP address;
In the unicast communication execution process, after the second response packet is transmitted to the second communication device, the unicast communication of the target data using the new IP address via the local area network With the second communication device,
Computer program.
JP2014073100A 2014-03-31 2014-03-31 communication device Pending JP2015195533A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014073100A JP2015195533A (en) 2014-03-31 2014-03-31 communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014073100A JP2015195533A (en) 2014-03-31 2014-03-31 communication device

Publications (1)

Publication Number Publication Date
JP2015195533A true JP2015195533A (en) 2015-11-05

Family

ID=54434208

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014073100A Pending JP2015195533A (en) 2014-03-31 2014-03-31 communication device

Country Status (1)

Country Link
JP (1) JP2015195533A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112187964A (en) * 2020-08-31 2021-01-05 北京三快在线科技有限公司 IP address modification method and device, electronic equipment and computer readable medium
JP7341037B2 (en) 2019-11-21 2023-09-08 キヤノン株式会社 Electronic equipment and its control method and program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7341037B2 (en) 2019-11-21 2023-09-08 キヤノン株式会社 Electronic equipment and its control method and program
CN112187964A (en) * 2020-08-31 2021-01-05 北京三快在线科技有限公司 IP address modification method and device, electronic equipment and computer readable medium

Similar Documents

Publication Publication Date Title
US8886776B2 (en) Communication apparatus and storing medium
US7454482B2 (en) Print queue manager
JP4418970B2 (en) Network device and computer program
JP5300562B2 (en) Information processing apparatus, information processing method, and program
JP6477132B2 (en) Communication equipment
US20110138081A1 (en) Network-connected apparatus and network connection method
JP2007006240A (en) Ip address acquiring method
US10911613B2 (en) Writing IPv4 or IPv6 information into an nfc tag attached to an image forming apparatus
US10849036B2 (en) Information processing apparatus capable of easily identify line to be used, control method therefor, and storage medium
US10250668B2 (en) Communication apparatus, control method thereof, and storage medium
US9847963B2 (en) Communicating service denials back to client during MDNS service discovery
JP2011070610A (en) Control device and computer program
JP6464885B2 (en) Communication equipment
JP2010152670A (en) Computer program for installing software
US8761615B2 (en) Image forming apparatus, host device and print controlling method
JP2015195533A (en) communication device
US20180278516A1 (en) Information processing apparatus, communication system, and method of controlling communication route
US10574837B2 (en) Information processing apparatus for data communication with external apparatus and control method for the same, and storage medium
JP2011077596A (en) Ip address determination device, terminal device, and computer program
JP7070095B2 (en) Computer programs for communication devices and computer programs for communication devices and servers
JP2015195532A (en) communication device
JP7070094B2 (en) Computer programs and communication equipment for communication equipment
JP4368776B2 (en) Network device, network device control method, program, and recording medium
KR100977399B1 (en) Method and apparatus of processing DHCP packet in dynamic IP address allocation for reducing network load
US11784966B2 (en) Information processing device, control method for information processing device, and recording medium, that suppress duplication of a device name in a DNS server