JP2014072655A - Communication device - Google Patents

Communication device Download PDF

Info

Publication number
JP2014072655A
JP2014072655A JP2012216549A JP2012216549A JP2014072655A JP 2014072655 A JP2014072655 A JP 2014072655A JP 2012216549 A JP2012216549 A JP 2012216549A JP 2012216549 A JP2012216549 A JP 2012216549A JP 2014072655 A JP2014072655 A JP 2014072655A
Authority
JP
Japan
Prior art keywords
communication
address
communication device
mfp
specific
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
JP2012216549A
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 JP2012216549A priority Critical patent/JP2014072655A/en
Publication of JP2014072655A publication Critical patent/JP2014072655A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a technique that allows both communication devices able to communicate with each other to set an IP address received from the same server to their communication devices without one communication device transmitting an IP address to be imparted to the other communication device to the other communication device.SOLUTION: A multi-function peripheral (MFP) 10 receives a candidate IP address to be imparted to the MFP 10 and address information from each of an AP 6 and a router 9 in a state of an infrastructure mode. The MFP 10 stores in a memory the candidate IP address received from the router 9 as an IP address to be imparted to the MFP 10. The MFP 10 stores in the memory the address information of the router 9 received from the router 9. The MFP 10 transmits the address information of the router 9 in the memory to a telephone call device 70 in an ad-hoc mode.

Description

本明細書では、第1の通信経路と、第1の通信経路と異なる第2の通信経路と、のそれぞれを介した通信を実行可能である通信装置を開示する。   The present specification discloses a communication device capable of executing communication via each of a first communication path and a second communication path different from the first communication path.

特許文献1には、MFP(Multi-Function Peripheralの略)及びBOXに、IPアドレスを設定する技術が開示されている。MFPは、第1のネットワークアドレスを有する第1のIPアドレスが、MFPに設定されると、第1のネットワークアドレスを有する第2のIPアドレスを、BOXのIPアドレスに設定する旨の命令を、BOXに送信する。これにより、MFP及びBOXには、同一の第1のネットワークアドレスを有するIPアドレスが設定される。   Patent Document 1 discloses a technique for setting an IP address in an MFP (abbreviation of Multi-Function Peripheral) and a BOX. When the first IP address having the first network address is set in the MFP, the MFP sets an instruction to set the second IP address having the first network address as the IP address of the BOX. Send to BOX. Thereby, IP addresses having the same first network address are set in the MFP and the BOX.

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

本明細書では、一方の通信装置が、他方の通信装置に付与すべきIPアドレスを、他方の通信装置に送信しなくても、同一のサーバから、両方の通信装置に、IPアドレスを適切に付与し得る技術を提供する。   In this specification, even if one communication device does not transmit the IP address to be given to the other communication device to the other communication device, the IP address is appropriately assigned to both communication devices from the same server. Provide technologies that can be granted.

本明細書では、通信装置が開示される。通信装置は、第1の通信経路を介して、他の通信装置にIPアドレスを提供するための複数のサーバと通信可能であって、第1の通信経路と異なる第2の通信経路を介して、特定の通信装置と通信可能である。通信装置は、第1の通信部と記憶制御部と第2の通信部とを備える。第1の通信部は、第1の通信経路を介して、複数のサーバのそれぞれから、当該サーバに関係するアドレス情報と、通信装置に付与するためのIPアドレスと、を受信する。記憶制御部は、複数のサーバのうちの1つのサーバから受信される特定のアドレス情報を、メモリに格納する。記憶制御部は、さらに、上記した1つのサーバから受信される特定のIPアドレスを、通信装置に付与するIPアドレスとしてメモリに格納する。第2の通信部は、第2の通信経路を介して、メモリ内の特定のアドレス情報を、通信装置と異なる特定の通信装置に送信する。   A communication device is disclosed herein. The communication device can communicate with a plurality of servers for providing IP addresses to other communication devices via the first communication route, and via a second communication route different from the first communication route. It is possible to communicate with a specific communication device. The communication device includes a first communication unit, a storage control unit, and a second communication unit. The first communication unit receives address information related to the server and an IP address to be assigned to the communication device from each of the plurality of servers via the first communication path. The storage control unit stores specific address information received from one of the plurality of servers in the memory. The storage control unit further stores the specific IP address received from the one server described above in the memory as an IP address to be assigned to the communication device. The second communication unit transmits specific address information in the memory to a specific communication device different from the communication device via the second communication path.

この構成によれば、通信装置は、通信装置に付与されるIPアドレスの送信元である上記した1つのサーバを、特定の通信装置に知らせることができる。この結果、特定の通信装置は、通信装置にIPアドレスを付与したサーバと同一のサーバから、IPアドレスを取得し得る。これにより、同一のサーバから、両方の通信装置に、IPアドレスを適切に付与し得る。   According to this configuration, the communication device can notify the specific communication device of the one server described above that is the transmission source of the IP address given to the communication device. As a result, the specific communication device can acquire the IP address from the same server as the server that assigned the IP address to the communication device. Thereby, an IP address can be appropriately given to both communication apparatuses from the same server.

本明細書は、別の通信装置を開示する。この通信装置は、第1の通信経路を介して、他の通信装置にIPアドレスを提供するための複数のサーバと通信可能であって、第1の通信経路と異なる第2の通信経路を介して、特定の通信装置と通信可能である。通信装置は、第1の通信部と第2の通信部と記憶制御部とを備えていてもよい。第1の通信部は、第1の通信経路を介して、複数のサーバのそれぞれから、当該サーバに関係するアドレス情報と、通信装置に付与するためのIPアドレスと、を受信する。第2の通信部は、第2の通信経路を介して、特定の通信装置から、複数のサーバのうちの1つのサーバに関係する特定のアドレス情報を受信する。記憶制御部は、特定のアドレス情報と、複数のサーバのそれぞれから受信されるアドレス情報と、を用いて、複数のサーバから受信されるIPアドレスのうち、特定のアドレス情報に関係する上記した1つのサーバから受信されるIPアドレスを、通信装置に付与するIPアドレスとしてメモリに格納する。   The present specification discloses another communication apparatus. This communication device can communicate with a plurality of servers for providing IP addresses to other communication devices via a first communication route, and via a second communication route different from the first communication route. Thus, communication with a specific communication device is possible. The communication device may include a first communication unit, a second communication unit, and a storage control unit. The first communication unit receives address information related to the server and an IP address to be assigned to the communication device from each of the plurality of servers via the first communication path. The second communication unit receives specific address information related to one of the plurality of servers from the specific communication device via the second communication path. The storage control unit uses the specific address information and the address information received from each of the plurality of servers, and the above-described 1 related to the specific address information among the IP addresses received from the plurality of servers. An IP address received from one server is stored in the memory as an IP address to be assigned to the communication device.

この構成によれば、通信装置は、特定の通信装置に付与されるIPアドレスの送信元である上記した1つのサーバを特定することができる。このため、通信装置は、特定の通信装置にIPアドレスを付与したサーバから、IPアドレスを取得し得る。これにより、同一のサーバから、両方の通信装置に、IPアドレスを適切に付与し得る。   According to this configuration, the communication device can specify the one server described above that is the transmission source of the IP address assigned to the specific communication device. For this reason, the communication apparatus can acquire an IP address from the server which gave the IP address to the specific communication apparatus. Thereby, an IP address can be appropriately given to both communication apparatuses from the same server.

なお、上記の各通信装置を実現するための制御方法、コンピュータプログラム、及び、当該コンピュータプログラムを格納するコンピュータ読取可能記憶媒体も新規で有用である。また、上記の各通信装置を備える通信システムも新規で有用である。   Note that a control method, a computer program, and a computer-readable storage medium for storing the computer program for realizing each of the communication devices are also novel and useful. In addition, a communication system including each of the above communication devices is new and useful.

無線通信システムの構成を示す。1 shows a configuration of a wireless communication system. MFPが実行する無線設定処理のフローチャートを示す。3 shows a flowchart of a wireless setting process executed by the MFP. 通話デバイスが実行する無線設定処理のフローチャートを示す。The flowchart of the radio | wireless setting process which a call device performs is shown. MFPと通話デバイスとが実行する無線設定処理のシーケンス図を示す。FIG. 2 shows a sequence diagram of wireless setting processing executed by an MFP and a calling device. 図4の続きのシーケンス図を示す。FIG. 5 shows a sequence diagram continued from FIG. 4.

(無線通信システムの構成)
図1に示されるように、無線通信システム2は、AP6と、PC8と、FAX通信システム7と、FAX装置4と、ルータ9と、を備える。FAX通信システム7は、MFP10と通話デバイス70とを備える。MFP10及び通話デバイス70は、AP6を介して、又は、AP6を介さずに、相互に無線通信を実行可能である。即ち、MFP10及び通話デバイス70は、AP6を介するインフラストラクチャの無線通信、又は、AP6を介さないアドホックの無線通信を実行可能である。なお、本実施例では、IEEE(The Institute of Electrical and Electronics Engineers, Inc.の略)の802.11の規格、及び、それに準ずる規格(例えば802.11a,11b等)に基づいて、無線通信が実行される。従って、後述の設定情報WS1,WS2は、上記の規格に適合する設定情報である。なお、通話デバイス70は、一般公衆回線網であるPSTN(Public Switched Telephone Networkの略)5を介して、FAX装置4との間で、FAXデータの通信を実行可能である。また、MFP10は、AP6を介して、PC8と無線通信を実行可能である。なお、本実施形態の場合、MFP10と通話デバイス70とは、それぞれ単体では出荷されず、MFP10と通話デバイス70とが共にペアリングされた状態で出荷されるものを想定している。
(Configuration of wireless communication system)
As shown in FIG. 1, the wireless communication system 2 includes an AP 6, a PC 8, a FAX communication system 7, a FAX apparatus 4, and a router 9. The FAX communication system 7 includes an MFP 10 and a call device 70. The MFP 10 and the calling device 70 can perform wireless communication with each other via the AP 6 or without the AP 6. In other words, the MFP 10 and the calling device 70 can execute infrastructure wireless communication via the AP 6 or ad hoc wireless communication not via the AP 6. In the present embodiment, wireless communication is performed based on the IEEE standard of IEEE (abbreviation of The Institute of Electrical and Electronics Engineers, Inc.) and a standard conforming thereto (for example, 802.11a, 11b, etc.). Executed. Accordingly, setting information WS1 and WS2, which will be described later, are setting information conforming to the above standards. The telephone device 70 can perform FAX data communication with the FAX apparatus 4 via a PSTN (abbreviation of Public Switched Telephone Network) 5 which is a general public line network. Further, the MFP 10 can execute wireless communication with the PC 8 via the AP 6. In the present embodiment, it is assumed that the MFP 10 and the calling device 70 are not shipped individually, but are shipped with the MFP 10 and the calling device 70 paired together.

AP6は、無線通信の基地局であるアクセスポイント機能を有する。AP6は、さらに、AP6と無線通信を実行可能なデバイス(例えばMFP10)に付与するためのIPアドレスを、デバイスに送信するDHCP(Dynamic Host Configuration Protocolの略)サーバ機能を有する。ルータ9は、ネットワーク同士の通信を中継するルーティング機能を有する。ルータ9は、さらに、ルータ9と通信を実行可能なデバイス(例えばMFP10)に付与するためのIPアドレスを、デバイスに送信するDHCPサーバ機能を有する。   The AP 6 has an access point function that is a base station for wireless communication. The AP 6 further has a DHCP (abbreviation of Dynamic Host Configuration Protocol) server function that transmits an IP address to be given to a device (for example, the MFP 10) capable of performing wireless communication with the AP 6 to the device. The router 9 has a routing function for relaying communication between networks. The router 9 further has a DHCP server function for transmitting an IP address to be given to a device (for example, the MFP 10) that can communicate with the router 9 to the device.

即ち、無線通信システム2は、無線通信システム2内のデバイス、即ち、MFP10及び通話デバイス70にIPアドレスを付与するための複数(本実施例では2個)のDHCPサーバを備える。例えば、ルータ9がDHCPサーバ機能を有することを知らないユーザが、ルータ9にAP6を接続する場合に、無線通信システム2の状況が発生する。   That is, the wireless communication system 2 includes a plurality (two in this embodiment) of DHCP servers for assigning IP addresses to devices in the wireless communication system 2, that is, the MFP 10 and the call device 70. For example, when a user who does not know that the router 9 has a DHCP server function connects the AP 6 to the router 9, the situation of the wireless communication system 2 occurs.

(MFP10の構成)
MFP(「親機」と呼んでもよい)10は、操作部12と、表示部14と、印刷実行部16と、スキャン実行部18と、無線インターフェース20と、制御部30と、を備える。操作部12は、複数のキーを備える。ユーザは、操作部12を操作することによって、様々な指示をMFP10に入力することができる。表示部14は、様々な情報を表示するためのディスプレイである。印刷実行部16は、インクジェット方式、レーザ方式等の印刷機構である。スキャン実行部18は、CCD、CIS等のスキャン機構である。無線インターフェース20は、無線通信を実行するためのインターフェースである。
(Configuration of MFP 10)
The MFP (which may be referred to as a “master”) 10 includes an operation unit 12, a display unit 14, a print execution unit 16, a scan execution unit 18, a wireless interface 20, and a control unit 30. The operation unit 12 includes a plurality of keys. The user can input various instructions to the MFP 10 by operating the operation unit 12. The display unit 14 is a display for displaying various information. The print execution unit 16 is a printing mechanism such as an inkjet method or a laser method. The scan execution unit 18 is a scan mechanism such as a CCD or CIS. The wireless interface 20 is an interface for executing wireless communication.

制御部30は、CPU32と、NVRAM(不揮発性メモリ)34と、RAM(揮発性メモリ)40と、ROM43と、を備える。CPU32は、ROM43に格納されているプログラム44に従って、様々な処理を実行する。CPU32がプログラム44に従って処理を実行することによって、各部52〜58の機能が実現される。   The control unit 30 includes a CPU 32, an NVRAM (nonvolatile memory) 34, a RAM (volatile memory) 40, and a ROM 43. The CPU 32 executes various processes according to the program 44 stored in the ROM 43. When the CPU 32 executes the process according to the program 44, the functions of the units 52 to 58 are realized.

NVRAM34は、指定設定格納領域36と初期設定格納領域38とアドレス情報格納領域39とを備える。初期設定格納領域38は、MFP10のベンダによって予め決められた設定情報(即ち、デフォルトの認証方式、デフォルトの暗号化方式、デフォルトのパスワード等)を格納するための記憶領域である。以下では、初期設定格納領域38に格納される設定情報のことを「初期設定WS1」と呼ぶ。初期設定WS1は、MFP10の出荷段階において、MFP10に予め格納されている。初期設定WS1は、アクセスポイント6を介さない無線通信を実現するためのアドホックの無線設定情報である。   The NVRAM 34 includes a designated setting storage area 36, an initial setting storage area 38, and an address information storage area 39. The initial setting storage area 38 is a storage area for storing setting information predetermined by the vendor of the MFP 10 (that is, a default authentication method, a default encryption method, a default password, etc.). Hereinafter, the setting information stored in the initial setting storage area 38 is referred to as “initial setting WS1”. The initial setting WS1 is stored in the MFP 10 in advance when the MFP 10 is shipped. The initial setting WS1 is ad hoc wireless setting information for realizing wireless communication not via the access point 6.

ユーザは、MFP10が初期設定WS1と異なる設定情報を利用して、無線通信を実行することを望む場合に、例えば、MFP10の操作部12を操作して、MFP10が利用すべき設定情報(即ち、認証方式、暗号化方式、パスワード等)を指定することができる。以下では、ユーザによって指定されるMFP10の設定情報のことを「指定設定WS2」と呼ぶ。指定設定格納領域36は、指定設定WS2を格納するための記憶領域である。なお、本実施例では、指定設定WS2は、アクセスポイント6を介して無線通信を実現するためのインフラストラクチャの無線通信の設定情報である。従って、指定設定WS2は、アドホックの無線設定情報である初期設定WS1と異なる。   When the user desires to perform wireless communication using setting information different from the initial setting WS1, the user operates the operation unit 12 of the MFP 10 to set the setting information (that is, the MFP 10 to use). Authentication method, encryption method, password, etc. can be specified. Hereinafter, the setting information of the MFP 10 designated by the user is referred to as “designated setting WS2”. The designated setting storage area 36 is a storage area for storing the designated setting WS2. In the present embodiment, the designated setting WS 2 is infrastructure wireless communication setting information for realizing wireless communication via the access point 6. Therefore, the designated setting WS2 is different from the initial setting WS1 which is the ad hoc wireless setting information.

アドレス情報格納領域39は、MFP10にIPアドレスを付与したDHCPサーバ(例えばAP6,ルータ9)のIPアドレスを格納するための記憶領域である。アドレス情報格納領域39は、DHCPサーバから、MFP10に付与するためのIPアドレスと共に送信されるDHCPサーバのIPアドレスを格納する。   The address information storage area 39 is a storage area for storing the IP address of the DHCP server (for example, AP 6 or router 9) that has given the MFP 10 an IP address. The address information storage area 39 stores the IP address of the DHCP server transmitted from the DHCP server together with the IP address to be assigned to the MFP 10.

RAM40は、対象設定格納領域42を備える。対象設定格納領域42は、MFP10が無線通信を実行する際に、現在利用すべき設定情報を格納するための記憶領域である。MFP10が出荷されてから、ユーザによって指定設定WS2が指定されるまでの間、MFP10の電源がONにされると、CPU32は、初期設定WS1を、初期設定格納領域38から読み出して、対象設定格納領域42に格納する。これにより、MFP10は、アドホックの無線設定情報を用いて、無線通信を実行することができる。ユーザによって指定設定WS2が指定された後には、MFP10の電源がONにされると、通常、CPU32は、指定設定WS2を対象設定格納領域42に格納する。これにより、MFP10は、インフラストラクチャの無線通信の設定情報を用いて、無線通信を実行することができる。   The RAM 40 includes a target setting storage area 42. The target setting storage area 42 is a storage area for storing setting information to be currently used when the MFP 10 performs wireless communication. When the MFP 10 is turned on from when the MFP 10 is shipped until the designated setting WS2 is designated by the user, the CPU 32 reads the initial setting WS1 from the initial setting storage area 38 and stores the target setting. Store in area 42. As a result, the MFP 10 can execute wireless communication using the ad hoc wireless setting information. After the designated setting WS2 is designated by the user, when the MFP 10 is powered on, the CPU 32 normally stores the designated setting WS2 in the target setting storage area 42. As a result, the MFP 10 can execute wireless communication using the setting information of infrastructure wireless communication.

MFP10は、インフラストラクチャモードとアドホックモードの2種類のモードのいずれかのモードで無線通信を実行する。MFP10は、初期設定WS1が対象設定格納領域42に格納されている場合に、アドホックモードで無線通信を実行可能であると共に、インフラストラクチャモードで無線通信を実行可能でない。一方、MFP10は、指定設定WS2が対象設定格納領域42に格納されている場合に、インフラストラクチャモードで無線通信を実行可能であると共に、アドホックモードで無線通信を実行可能でない。   The MFP 10 performs wireless communication in one of two modes, an infrastructure mode and an ad hoc mode. When the initial setting WS1 is stored in the target setting storage area 42, the MFP 10 can execute wireless communication in the ad hoc mode and cannot execute wireless communication in the infrastructure mode. On the other hand, when the designated setting WS2 is stored in the target setting storage area 42, the MFP 10 can execute wireless communication in the infrastructure mode and cannot execute wireless communication in the ad hoc mode.

(通話デバイス70の構成)
通話デバイス(「子機」と呼んでもよい)70は、マイク72と、スピーカ74と、PSTNインターフェース76と、無線インターフェース78と、制御部80と、を備える。通話デバイス70がマイク72とスピーカ74を備えるために、ユーザは、通話デバイス70を用いて、PSTN5を介した電話通信を実行することができる。PSTNインターフェース76は、PSTN5に接続される。具体的には、PSTNインターフェース76には、PSTNケーブルの一端が接続される。PSTNケーブルの他端は、例えば、家庭内のPSTN用ソケットに接続される。無線インターフェース78は、無線通信を実行するためのインターフェースである。
(Configuration of calling device 70)
The call device (which may be referred to as “slave unit”) 70 includes a microphone 72, a speaker 74, a PSTN interface 76, a wireless interface 78, and a control unit 80. Since the calling device 70 includes the microphone 72 and the speaker 74, the user can perform telephone communication via the PSTN 5 using the calling device 70. The PSTN interface 76 is connected to the PSTN 5. Specifically, one end of a PSTN cable is connected to the PSTN interface 76. The other end of the PSTN cable is connected to a PSTN socket in the home, for example. The wireless interface 78 is an interface for executing wireless communication.

制御部80は、CPU82と、NVRAM84と、RAM90と、ROM94と、を備える。CPU82は、ROM94に格納されているプログラム96に従って、様々な処理を実行する。CPU82がプログラム96に従って処理を実行することによって、各部102〜108の機能が実現される。   The control unit 80 includes a CPU 82, NVRAM 84, RAM 90, and ROM 94. The CPU 82 executes various processes according to the program 96 stored in the ROM 94. When the CPU 82 executes processing according to the program 96, the functions of the units 102 to 108 are realized.

NVRAM84は、指定設定格納領域86と初期設定格納領域88とを備える。初期設定格納領域88は、MFP10と同じアドホックの無線通信の初期設定WS1を格納するための記憶領域である。初期設定WS1は、通話デバイス70の出荷段階(即ちMFP10の出荷段階)において、通話デバイス70に予め格納されている。   The NVRAM 84 includes a designated setting storage area 86 and an initial setting storage area 88. The initial setting storage area 88 is a storage area for storing the initial setting WS1 of the same ad hoc wireless communication as that of the MFP 10. The initial setting WS1 is stored in advance in the calling device 70 at the shipping stage of the calling device 70 (that is, at the shipping stage of the MFP 10).

指定設定格納領域86は、指定設定WS2を格納するための記憶領域である。なお、本実施例では、指定設定WS2は、インフラストラクチャの無線通信の設定情報である。MFP10は、アドホックの無線通信を実行することによって、通話デバイス70に、通話デバイス70が利用すべき設定情報(即ち、認証方式、暗号化方式、パスワード等の指定設定WS2)を送信することができる。これにより、通話デバイス70は、指定設定WS2を取得することができる。従って、指定設定格納領域86は、指定設定WS2を格納することが可能である。なお、指定設定WS2は、アドホックの無線通信の初期設定WS1と異なる。   The designated setting storage area 86 is a storage area for storing the designated setting WS2. In the present embodiment, the designated setting WS2 is infrastructure wireless communication setting information. The MFP 10 can transmit the setting information to be used by the calling device 70 (that is, the specified setting WS2 such as the authentication method, the encryption method, and the password) to the calling device 70 by executing the ad hoc wireless communication. . Thereby, the telephone device 70 can acquire the designated setting WS2. Accordingly, the designated setting storage area 86 can store the designated setting WS2. The designated setting WS2 is different from the initial setting WS1 for ad hoc wireless communication.

RAM90は、対象設定格納領域92を備える。対象設定格納領域92は、通話デバイス70が現在利用すべき無線設定情報を格納するための記憶領域である。MFP10と共に通話デバイス70が出荷されてから、指定設定WS2が指定設定格納領域86に格納されるまでの間、制御部80は、通話デバイス70の電源がONにされると、初期設定WS1を対象設定格納領域92に格納する。これにより、通話デバイス70は、アドホックの無線通信の設定情報を用いて、無線通信を実行することができる。指定設定WS2が格納された後には、通話デバイス70の電源がONにされると、通常、制御部80は、指定設定WS2を対象設定格納領域92に格納する。これにより、通話デバイス70は、インフラストラクチャの無線通信の設定情報を用いて、無線通信を実行することができる。MFP10及び通話デバイス70のそれぞれは、出荷段階において、自身の無線設定として初期設定WS1が設定されているため、相互に通信可能な状態となっている。   The RAM 90 includes a target setting storage area 92. The target setting storage area 92 is a storage area for storing wireless setting information to be currently used by the calling device 70. From when the calling device 70 is shipped together with the MFP 10 until the designated setting WS2 is stored in the designated setting storage area 86, the control unit 80 targets the initial setting WS1 when the power of the calling device 70 is turned on. Store in the setting storage area 92. Thereby, the telephone device 70 can execute wireless communication using the setting information of the ad hoc wireless communication. After the designated setting WS2 is stored, when the telephone device 70 is powered on, the control unit 80 normally stores the designated setting WS2 in the target setting storage area 92. Thereby, the telephone device 70 can execute wireless communication using the setting information of the infrastructure wireless communication. The MFP 10 and the calling device 70 are in a state where they can communicate with each other because the initial setting WS1 is set as its own wireless setting at the time of shipment.

即ち、通話デバイス70は、MFP10と同様に、インフラストラクチャモードとアドホックモードの2種類のモードのいずれかのモードで無線通信を実行する。初期設定WS1が対象設定格納領域92に格納されている場合、通話デバイス70は、アドホックモードで無線通信を実行可能であると共に、インフラストラクチャモードで無線通信を実行可能でない。指定設定WS2が対象設定格納領域92に格納されている場合、MFP10は、インフラストラクチャモードで無線通信を実行可能であると共に、アドホックモードで無線通信を実行可能でない。   That is, as with the MFP 10, the calling device 70 performs wireless communication in one of two modes, an infrastructure mode and an ad hoc mode. When the initial setting WS1 is stored in the target setting storage area 92, the calling device 70 can perform wireless communication in the ad hoc mode and cannot perform wireless communication in the infrastructure mode. When the designated setting WS2 is stored in the target setting storage area 92, the MFP 10 can execute wireless communication in the infrastructure mode and cannot execute wireless communication in the ad hoc mode.

MFP10は、通話デバイス70と協働して処理を実行することによって、MFP10が実現可能な複数の機能(例えばFAX機能、印刷機能)のうちの特定の機能(例えばFAX機能)が実現される。従って、通話デバイス70は、通常、それ単体では出荷されず、MFP10と共に出荷される。即ち、通話デバイス70は、MFP10の付属装置である。   The MFP 10 executes processing in cooperation with the calling device 70, thereby realizing a specific function (for example, a FAX function) among a plurality of functions (for example, a FAX function and a printing function) that can be realized by the MFP 10. Accordingly, the calling device 70 is normally shipped together with the MFP 10 instead of being shipped alone. That is, the call device 70 is an accessory device of the MFP 10.

(FAX機能)
例えば、通話デバイス70は、PSTNインターフェース76を介してFAXデータを受信する場合に、無線通信を実行することによって、当該FAXデータをMFP10に送信する。MFP10は、無線通信を実行することによって、通話デバイス70から送信されるFAXデータが、無線インターフェース20で受信される場合に、当該FAXデータによって表わされる画像の印刷を印刷実行部16に実行させる。これにより、FAXの受信動作が実行される。
(FAX function)
For example, when receiving the FAX data via the PSTN interface 76, the calling device 70 transmits the FAX data to the MFP 10 by executing wireless communication. By executing wireless communication, the MFP 10 causes the print execution unit 16 to print an image represented by the FAX data when the FAX data transmitted from the calling device 70 is received by the wireless interface 20. As a result, a FAX reception operation is executed.

また、MFP10は、スキャン実行部18が原稿をスキャンすることによって生成されるFAXデータを、無線通信を実行することによって、通話デバイス70に送信する。通話デバイス70は、MFP10から送信されるFAXデータが、無線インターフェース78で受信される場合に、ユーザによって予め指定された宛先に向けて、PSTN5を介して当該FAXデータを送信する。これにより、FAXの送信動作が実行される。   Further, the MFP 10 transmits FAX data generated by the scan execution unit 18 scanning the document to the call device 70 by executing wireless communication. When the FAX data transmitted from the MFP 10 is received by the wireless interface 78, the calling device 70 transmits the FAX data to the destination designated in advance by the user via the PSTN 5. As a result, a FAX transmission operation is executed.

なお、MFP10は、PSTN5を介して受信したFAXデータによって表わされる画像を印刷するための印刷実行部16を備えているが、通話デバイス70は、印刷実行部16を備えていない。また、MFP10は、原稿をスキャンして、PSTN5を介して送信されるべきFAXデータを生成するためのスキャン実行部18を備えているが、通話デバイス70は、スキャン実行部18を備えていない。即ち、通話デバイス70は、MFP10に代わってPSTN5を介してFAXデータを受信可能であると共に、MFP10に代わってPSTN5を介してFAXデータを送信可能である。   The MFP 10 includes the print execution unit 16 for printing an image represented by the FAX data received via the PSTN 5, but the call device 70 does not include the print execution unit 16. The MFP 10 includes a scan execution unit 18 for scanning a document and generating FAX data to be transmitted via the PSTN 5, but the calling device 70 does not include the scan execution unit 18. That is, the calling device 70 can receive FAX data via the PSTN 5 instead of the MFP 10 and can transmit FAX data via the PSTN 5 instead of the MFP 10.

上述したように、通話デバイス70は、印刷実行部16及びスキャン実行部18を備えていない。従って、通話デバイス70は、MFP10と比べると、小さいサイズを有する。通常、家庭内では、PSTN用ソケットの位置が決められている。仮に、MFP10にPSTNケーブルを接続しなければならない構成を採用すると、PSTN用ソケットの近傍にMFP10を配置する必要がある。MFP10は、比較的に大きいサイズを有するために、PSTN用ソケットの近傍にスペースが少ない環境では、PSTN用ソケットの近傍にMFP10を配置するのが困難である。これに対し、本実施例では、比較的に小さいサイズを有する通話デバイス70にPSTNインターフェース76が設けられている。従って、PSTN用ソケットの近傍にスペースが少ない環境でも、PSTN用ソケットの近傍に通話デバイス70を容易に配置して、通話デバイス70をPSTN5に接続することができる。さらに、MFP10をPSTN用ソケットの近傍に限らずに配置することができる。   As described above, the calling device 70 does not include the print execution unit 16 and the scan execution unit 18. Accordingly, the calling device 70 has a smaller size than the MFP 10. In general, the position of the PSTN socket is determined in the home. If a configuration in which a PSTN cable must be connected to the MFP 10 is employed, the MFP 10 needs to be disposed in the vicinity of the PSTN socket. Since the MFP 10 has a relatively large size, it is difficult to place the MFP 10 near the PSTN socket in an environment where there is little space near the PSTN socket. On the other hand, in the present embodiment, the PSTN interface 76 is provided in the call device 70 having a relatively small size. Therefore, even in an environment where there is little space near the PSTN socket, the call device 70 can be easily arranged near the PSTN socket and the call device 70 can be connected to the PSTN 5. Further, the MFP 10 can be arranged without being limited to the vicinity of the PSTN socket.

(MFP10の無線設定処理)
続いて、図2を参照して、MFP10がAP6を介したインフラストラクチャの無線通信を実行するための、MFP10が実行する無線設定処理を説明する。ユーザは、MFP10と通話デバイス70とを購入すると、MFP10と通話デバイス70とを、例えば、家庭内に配置する。ユーザがMFP10を電源ONにすると、MFP10は、アドホックモードに設定される。具体的に言うと、切替部58は、初期設定格納領域38に格納されている初期設定WS1を、対象設定格納領域42に格納させる。同様に、ユーザが通話デバイス70の電源をONにすると、通話デバイス70は、アドホックモードに設定される。具体的に言うと、切替部108は、初期設定格納領域88に格納されている初期設定WS1を、対象設定格納領域92に格納させる。次いで、MFP10の第2の通信部54は、通話デバイス70とアドホックの無線通信を実行するために、初期設定WS1を利用して、通話デバイス70と、接続確立処理を実行する。
(Wireless setting process of MFP 10)
Next, a wireless setting process executed by the MFP 10 for the MFP 10 to execute infrastructure wireless communication via the AP 6 will be described with reference to FIG. When the user purchases the MFP 10 and the calling device 70, the user places the MFP 10 and the calling device 70, for example, at home. When the user turns on the MFP 10, the MFP 10 is set to the ad hoc mode. Specifically, the switching unit 58 stores the initial setting WS1 stored in the initial setting storage area 38 in the target setting storage area 42. Similarly, when the user turns on the power of the calling device 70, the calling device 70 is set to the ad hoc mode. Specifically, the switching unit 108 stores the initial setting WS1 stored in the initial setting storage area 88 in the target setting storage area 92. Next, the second communication unit 54 of the MFP 10 uses the initial setting WS1 to execute connection establishment processing with the call device 70 in order to perform ad hoc wireless communication with the call device 70.

具体的には、第2の通信部54は、対象設定格納領域42に格納されている初期設定WS1を含む接続要求を、通話デバイス70に送信する。通話デバイス70の第2の通信部104は、MFP10から接続要求が受信されると、接続要求に基づいて認証を実行する。この認証は、接続要求に含まれる認証方式及び暗号化方式が、対象設定格納領域92に格納されている初期設定WS1に含まれる認証方式及び暗号化方式と一致するのか否かに関する判断を含む。なお、初期設定WS1は、MFP10と通話デバイス70との両者に予め格納されているものであるため、通常、上記の認証は成功する。第2の通信部104は、認証成功を示す認証結果をMFP10に送信する。接続確立処理は、接続要求の送信と、認証と、認証結果の送信と、を含む。第2の通信部54は、通話デバイス70から、認証結果を受信することを監視している。通話デバイス70から認証結果が受信されると、MFP10と通話デバイス70とは、アドホックの無線通信を実行可能となる。   Specifically, the second communication unit 54 transmits a connection request including the initial setting WS 1 stored in the target setting storage area 42 to the call device 70. When the connection request is received from the MFP 10, the second communication unit 104 of the call device 70 performs authentication based on the connection request. This authentication includes a determination regarding whether or not the authentication method and encryption method included in the connection request match the authentication method and encryption method included in the initial setting WS1 stored in the target setting storage area 92. Since the initial setting WS1 is stored in advance in both the MFP 10 and the calling device 70, the above authentication is normally successful. The second communication unit 104 transmits an authentication result indicating successful authentication to the MFP 10. The connection establishment process includes transmission of a connection request, authentication, and transmission of an authentication result. The second communication unit 54 monitors reception of the authentication result from the call device 70. When the authentication result is received from the calling device 70, the MFP 10 and the calling device 70 can execute ad hoc wireless communication.

この状況では、通話デバイス70の第2の通信部104は、PSTN5を介して、外部装置(例えばFAX装置4)からFAXデータを受信した場合、アドホックの無線通信を利用して(即ち初期設定WS1を利用して)、FAXデータを、MFP10に送信する。また、MFP10の制御部30は、ユーザによる操作部12の操作によってFAX送信指示が実行されると、スキャン実行部18にセットされた原稿を読み取って、FAXデータを生成する。次いで、第2の通信部54は、アドホックの無線通信を利用して(即ち初期設定WS1を利用して)、生成されたFAXデータを、通話デバイス70に送信する。続いて、通話デバイス70の制御部80は、PSTN5を介して、FAXデータを特定のデバイス(例えばFAX装置4)に送信する。   In this situation, when the second communication unit 104 of the call device 70 receives FAX data from an external device (for example, the FAX device 4) via the PSTN 5, the second communication unit 104 uses ad hoc wireless communication (that is, the initial setting WS1). The FAX data is transmitted to the MFP 10. Further, when a FAX transmission instruction is executed by the user operating the operation unit 12, the control unit 30 of the MFP 10 reads a document set in the scan execution unit 18 and generates FAX data. Next, the second communication unit 54 transmits the generated FAX data to the call device 70 using ad hoc wireless communication (that is, using the initial setting WS1). Subsequently, the control unit 80 of the call device 70 transmits FAX data to a specific device (for example, the FAX apparatus 4) via the PSTN 5.

ここで、MFP10は、ユーザによって指定設定WS2が指定されると、AP6を介して、通話デバイス70と、インフラストラクチャの無線通信を実行するための、MFP10が実行する無線設定処理を実行する。   Here, when the designated setting WS2 is designated by the user, the MFP 10 executes wireless setting processing executed by the MFP 10 for executing infrastructure wireless communication with the calling device 70 via the AP 6.

S10では、切替部58は、MFP10を、アドホックモードからインフラストラクチャモードに切り替える。具体的には、切替部58は、ユーザによって指定設定WS2が指定されることによって、指定設定WS2が指定設定格納領域36に格納されると、対象設定格納領域42に格納されている初期設定WS1を消去して、指定設定WS2を対象設定格納領域42に格納する。次いで、S12では、第1の通信部52は、AP6と無線通信を実行するために、指定設定WS2を利用して、指定設定WS2を含む接続要求を、AP6に送信する。AP6は、接続要求を受信すると、接続要求に基づいて認証を実行する。この認証は、例えば、指定設定WS2に含まれる認証方式及び暗号化方式をAP6がサポートしているのか否かに関する認証、指定設定WS2に含まれるパスワードがAP6に登録されているのか否かに関する認証等を含む。AP6は、認証結果をMFP10に送信する。   In S10, the switching unit 58 switches the MFP 10 from the ad hoc mode to the infrastructure mode. Specifically, when the designated setting WS2 is stored in the designated setting storage area 36 when the designated setting WS2 is designated by the user, the switching unit 58 sets the initial setting WS1 stored in the target setting storage area 42. And the designated setting WS2 is stored in the target setting storage area 42. Next, in S12, the first communication unit 52 uses the designated setting WS2 to transmit a connection request including the designated setting WS2 to the AP 6 in order to perform wireless communication with the AP 6. When the AP 6 receives the connection request, the AP 6 performs authentication based on the connection request. This authentication includes, for example, authentication relating to whether or not the AP 6 supports the authentication method and encryption method included in the designated setting WS2, and authentication relating to whether or not the password included in the designated setting WS2 is registered in the AP 6. Etc. AP 6 transmits the authentication result to MFP 10.

S14では、第1の通信部52は、AP6から、認証結果を受信することを監視している。AP6から認証成功を示す認証結果が受信される(S14でYES)と、MFP10とAP6とは、無線接続が確立された状態となり、無線通信を実行可能となる。S14でYESの場合、S16に進む。一方、AP6から認証成功を示す認証結果が受信されない場合、即ち、AP6から認証失敗を示す認証結果が受信される場合と、AP6から認証結果が受信されない場合のいずれかの場合(S14でNO)、S15において、切替部58は、MFP10を、インフラストラクチャモードからアドホックモードに切り替える。具体的には、切替部58は、対象設定格納領域42に格納されている指定設定WS2を消去して、初期設定WS1を対象設定格納領域42に格納する。S15において、MFP10がアドホックモードに切替えられると、S38に進む。   In S14, the first communication unit 52 monitors reception of an authentication result from the AP 6. When an authentication result indicating successful authentication is received from the AP 6 (YES in S14), the MFP 10 and the AP 6 are in a state where a wireless connection has been established, and wireless communication can be performed. If YES in S14, the process proceeds to S16. On the other hand, when the authentication result indicating the authentication success is not received from the AP 6, that is, when the authentication result indicating the authentication failure is received from the AP 6 or when the authentication result is not received from the AP 6 (NO in S14). In S15, the switching unit 58 switches the MFP 10 from the infrastructure mode to the ad hoc mode. Specifically, the switching unit 58 deletes the designated setting WS2 stored in the target setting storage area 42 and stores the initial setting WS1 in the target setting storage area 42. When the MFP 10 is switched to the ad hoc mode in S15, the process proceeds to S38.

S16では、第1の通信部52は、インフラストラクチャモードで無線通信を実行するために、MFP10に付与すべきIPアドレスを要求するIPアドレス割当要求パケット(例えばDHCP DISCOVER)を、ブロードキャストする。IPアドレス割当要求パケットは、無線通信システム2の各デバイス6,8,9によって受信される。DHCPサーバ機能を有するAP6及びルータ9は、IPアドレス割当要求パケットを受信する場合、IPアドレス割当要求パケットの送信元のMFP10に付与するための候補のIPアドレスを含むパケット(例えばDHCP OFFER)を、MFP10に送信する。AP6及びルータ9は、さらに、自身のIPアドレスとして設定されているIPアドレスを、MFP10に送信する。   In S <b> 16, the first communication unit 52 broadcasts an IP address assignment request packet (for example, DHCP DISCOVER) that requests an IP address to be assigned to the MFP 10 in order to execute wireless communication in the infrastructure mode. The IP address assignment request packet is received by each device 6, 8, 9 of the wireless communication system 2. When the AP 6 and the router 9 having the DHCP server function receive the IP address allocation request packet, the AP 6 and the router 9 include a packet (for example, DHCP OFFER) including a candidate IP address to be given to the MFP 10 that is the transmission source of the IP address allocation request packet. Transmit to the MFP 10. The AP 6 and the router 9 further transmit the IP address set as its own IP address to the MFP 10.

次いで、S18では、第1の通信部52は、IPアドレス割当要求パケットの応答として、MFP10に付与するための候補IPアドレスと、DHCPサーバのIPアドレスと、を、受信する。無線通信システム2は、複数個のDHCPサーバ、即ちAP6及びルータ9を備える。そのため、S18では、第1の通信部52は、複数の候補IPアドレスとDHCPサーバのIPアドレスとの組合せを受信する。   Next, in S18, the first communication unit 52 receives the candidate IP address to be given to the MFP 10 and the IP address of the DHCP server as a response to the IP address assignment request packet. The wireless communication system 2 includes a plurality of DHCP servers, that is, an AP 6 and a router 9. Therefore, in S18, the first communication unit 52 receives a combination of a plurality of candidate IP addresses and the DHCP server IP address.

次いで、S20では、記憶制御部56は、S18で受信された複数の候補IPアドレスのうち、IPアドレス割当要求パケットを送信した後、最初に受信された1個の候補IPアドレスを、対象設定格納領域42に格納する。記憶制御部56は、さらに、対象設定格納領域42に格納される候補IPアドレスに組み合わせて受信されるDHCPサーバのIPアドレスを、アドレス情報格納領域39に格納する。なお、変形例では、記憶制御部56は、IPアドレス割当要求パケットを送信した後、2番目以降のいずれかで受信された1個の候補IPアドレスを、対象設定格納領域42に格納してもよい。   Next, in S20, the storage control unit 56 stores one candidate IP address received first after transmitting the IP address allocation request packet among the plurality of candidate IP addresses received in S18. Store in area 42. The storage control unit 56 further stores the IP address of the DHCP server received in combination with the candidate IP address stored in the target setting storage area 42 in the address information storage area 39. In the modification, the storage control unit 56 may store one candidate IP address received in any of the second and subsequent ones in the target setting storage area 42 after transmitting the IP address assignment request packet. Good.

次いで、S22では、第1の通信部52は、対象設定格納領域42に格納された1個の候補IPアドレスを付与されたことを示すパケットである割当候補IPアドレス取得要求パケット(例えばDHCP REQUEST)を、ブロードキャストする。次いで、S24では、第1の通信部52は、S22で送信されたパケットに対する応答を受信することを監視している。候補IPアドレスをMFP10に送信した送信元DHCPサーバ(即ちAP6又はルータ9)は、割当候補IPアドレス取得要求パケットを受信すると、当該パケットの承認応答(例えばDHCP ACK)をMFP10に送信する。候補IPアドレスの送信元DHCPサーバ以外のデバイスは、割当候補IPアドレス取得要求パケットが受信されると、当該デバイス自身のIPアドレスとして設定されているIPアドレスが、候補IPアドレスと一致するのか否かを判断し、一致する場合には、当該パケットの応答として、IPアドレスが重複していることを示す重複警告パケット(例えばDHCP DECLINE)を、MFP10に送信する。   Next, in S22, the first communication unit 52 assigns an allocation candidate IP address acquisition request packet (for example, DHCP REQUEST) that is a packet indicating that one candidate IP address stored in the target setting storage area 42 has been assigned. Broadcast. Next, in S24, the first communication unit 52 monitors reception of a response to the packet transmitted in S22. Upon receiving the allocation candidate IP address acquisition request packet, the transmission source DHCP server (that is, the AP 6 or the router 9) that has transmitted the candidate IP address to the MFP 10 transmits an approval response (for example, DHCP ACK) of the packet to the MFP 10. When a device other than the source DHCP server of the candidate IP address receives the allocation candidate IP address acquisition request packet, whether or not the IP address set as the IP address of the device itself matches the candidate IP address. If there is a match, a duplication warning packet (for example, DHCP DELINE) indicating that the IP address is duplicated is transmitted to the MFP 10 as a response to the packet.

割当候補IPアドレス取得要求パケットを送信してから、予め決められた期間が経過する前に、重複警告パケットが受信される場合(S24でNO)、S16に戻り、S16からS22の処理により、再度、候補IPアドレスを取得する。この場合、記憶制御部56は、S20で格納された候補IPアドレスとDHCPサーバのIPアドレスとを、消去する。   If a duplicate warning packet is received before the predetermined period has elapsed since the transmission of the allocation candidate IP address acquisition request packet (NO in S24), the process returns to S16, and the process from S16 to S22 is performed again. The candidate IP address is acquired. In this case, the storage control unit 56 deletes the candidate IP address and the DHCP server IP address stored in S20.

一方、割当候補IPアドレス取得要求パケットを送信してから、予め決められた期間が経過する前に、承認応答が受信され、かつ、重複警告パケットが受信されない場合(S24でYES)、S26において、記憶制御部56は、候補IPアドレスを、MFP10に付与するIPアドレスとして、指定設定格納領域36に格納する。これにより、MFP10には、MFP10がインフラストラクチャモードで利用するIPアドレスが設定される。   On the other hand, when the approval response is received and the duplicate warning packet is not received before the predetermined period has elapsed since the transmission of the allocation candidate IP address acquisition request packet (YES in S24), in S26, The storage control unit 56 stores the candidate IP address in the designated setting storage area 36 as an IP address to be given to the MFP 10. As a result, the IP address used by the MFP 10 in the infrastructure mode is set in the MFP 10.

次いで、S28では、切替部58は、MFP10を、インフラストラクチャモードからアドホックモードに切り替える。具体的には、第1の通信部52は、対象設定格納領域42に格納されている指定設定WS2とS20で格納されたIPアドレスを消去して、初期設定WS1を対象設定格納領域42に格納する。   Next, in S <b> 28, the switching unit 58 switches the MFP 10 from the infrastructure mode to the ad hoc mode. Specifically, the first communication unit 52 deletes the designated setting WS2 stored in the target setting storage area 42 and the IP address stored in S20, and stores the initial setting WS1 in the target setting storage area 42. To do.

次いで、S30では、第2の通信部54は、初期設定WS1を利用したアドホックの無線通信を実行して、指定設定格納領域36に格納されている指定設定WS2を、通話デバイス70に送信する。第2の通信部54は、さらに、アドレス情報格納領域39に格納されているDHCPサーバのIPアドレスを、通話デバイス70に送信する。通話デバイス70は、指定設定WS2とDHCPサーバのIPアドレスとが受信されると、受信完了を示すパケットを、MFP10に送信する。   Next, in S <b> 30, the second communication unit 54 performs ad hoc wireless communication using the initial setting WS <b> 1, and transmits the designated setting WS <b> 2 stored in the designated setting storage area 36 to the call device 70. The second communication unit 54 further transmits the IP address of the DHCP server stored in the address information storage area 39 to the call device 70. When the designated device WS2 and the IP address of the DHCP server are received, the calling device 70 transmits a packet indicating reception completion to the MFP 10.

S32では、第2の通信部54は、通話デバイス70から受信完了を示すパケットが受信されることを監視している。第2の通信部54は、指定設定WS2等を通話デバイス70に送信してから、予め決められた期間が経過するまでに、受信完了を示すパケットが受信されない場合(S32でNO)、S38に進む。   In S <b> 32, the second communication unit 54 monitors whether a packet indicating reception completion is received from the call device 70. If the second communication unit 54 does not receive a packet indicating the completion of reception until the predetermined period elapses after transmitting the designated setting WS2 or the like to the call device 70 (NO in S32), the process proceeds to S38. move on.

S38では、記憶制御部56は、指定設定格納領域36に格納されている指定設定WS2を消去して、無線設定処理を終了する。また、S26において、指定設定格納領域36にIPアドレスが格納されている場合、記憶制御部56は、IPアドレスも消去する。S14でNOの場合、MFP10は、指定設定WS2を利用して、AP6と無線通信を実行することができない。また、S32でNOの場合、通話デバイス70は、指定設定WS2を受信していない可能性が高い。通話デバイス70が指定設定WS2を受信していない場合、MFP10が、指定設定WS2を利用して、インフラストラクチャモードで無線通信を実行したとしても、MFP10は、通話デバイス70と通信を実行することができない。このため、MFP10は、指定設定WS2を消去することによって、MFP10が、指定設定WS2を利用して、インフラストラクチャモードで無線通信を実行することを回避することができる。   In S38, the storage control unit 56 deletes the designated setting WS2 stored in the designated setting storage area 36, and ends the wireless setting process. If the IP address is stored in the designated setting storage area 36 in S26, the storage control unit 56 also deletes the IP address. If NO in S14, the MFP 10 cannot execute wireless communication with the AP 6 using the designated setting WS2. In the case of NO in S32, there is a high possibility that the calling device 70 has not received the designated setting WS2. When the calling device 70 has not received the designated setting WS2, even if the MFP 10 performs wireless communication in the infrastructure mode using the designated setting WS2, the MFP 10 may execute communication with the calling device 70. Can not. Therefore, the MFP 10 can avoid executing the wireless communication in the infrastructure mode by using the designated setting WS2 by deleting the designated setting WS2.

一方、第2の通信部54は、指定設定WS2等を通話デバイス70に送信してから、予め決められた期間が経過する前に、受信完了を示すパケットが受信される場合(S32でYES)、CPU32は、MFP10をアドホックモードからインフラストラクチャモードに切り替え(S10)、指定設定WS2を含む接続要求をAP6に送信し(S12)、認証成功を受信する(S14)。なお、アドホックモードからインフラストラクチャモードへの切り替えでは、指定設定WS2の他に、指定設定格納領域36に格納されているIPアドレスを、対象設定格納領域42に格納する。また、今回のS14では、前回のS14において、既に認証が成功しているため、通常、認証成功を受信する。従って、図2中では、今回のS14にてNOと判断されるルートを省略して表現している。   On the other hand, the second communication unit 54 receives a packet indicating reception completion before a predetermined period has elapsed after transmitting the designated setting WS2 or the like to the call device 70 (YES in S32). The CPU 32 switches the MFP 10 from the ad hoc mode to the infrastructure mode (S10), transmits a connection request including the designated setting WS2 to the AP 6 (S12), and receives a successful authentication (S14). In switching from the ad hoc mode to the infrastructure mode, the IP address stored in the designated setting storage area 36 is stored in the target setting storage area 42 in addition to the designated setting WS2. In this S14, since the authentication has already been successful in the previous S14, the authentication success is usually received. Therefore, in FIG. 2, the route determined to be NO in S14 is omitted.

次いで、S34において、S22と同様に、第1の通信部52は、割当候補IPアドレス取得要求パケットを、ブロードキャストする。S34では、割当候補IPアドレス取得要求パケットは、対象設定格納領域42に格納に格納されているIPアドレス(即ちS26で指定設定格納領域36に格納されたIPアドレス)を含む。この構成によれば、第1の通信部52は、新たにIPアドレス割当要求パケットをブロードキャストせずに済む。また、MFP10のIPアドレスが変更されないため、MFP10にIPアドレスを付与したDHCPサーバ(即ちAP6又はルータ9)は、変更されない。   Next, in S34, as in S22, the first communication unit 52 broadcasts an allocation candidate IP address acquisition request packet. In S34, the allocation candidate IP address acquisition request packet includes the IP address stored in the target setting storage area 42 (that is, the IP address stored in the designated setting storage area 36 in S26). According to this configuration, the first communication unit 52 does not need to newly broadcast an IP address assignment request packet. In addition, since the IP address of the MFP 10 is not changed, the DHCP server (that is, the AP 6 or the router 9) assigned the IP address to the MFP 10 is not changed.

次いで、S36では、第1の通信部52は、MFP10にIPアドレスを付与したDHCPサーバ(即ちAP6又はルータ9)から承認応答を受信して、無線設定処理を終了する。S24において、既に、重複警告パケットを受信することなく、承認応答を受信している。このため、S36では、通常、S24と同様に、第1の通信部52は、重複警告パケットを受信することなく、承認応答を受信することができる。   Next, in S36, the first communication unit 52 receives an approval response from the DHCP server (that is, the AP 6 or the router 9) assigned the IP address to the MFP 10, and ends the wireless setting process. In S24, the approval response has already been received without receiving the duplicate warning packet. For this reason, in S36, normally, as in S24, the first communication unit 52 can receive the approval response without receiving the duplicate warning packet.

(通話デバイス70の無線設定処理)
続いて、図3を参照して、通話デバイス70がAP6を介したインフラストラクチャの無線通信を実行するための、通信デバイス70が実行する無線設定処理を説明する。本処理は、通話デバイス70の電源がONにされると開始する。上述したように、ユーザが通話デバイス70を電源ONすると、通話デバイス70は、アドホックモードに設定される。
(Wireless setting processing of the calling device 70)
Next, with reference to FIG. 3, a wireless setting process executed by the communication device 70 for the telephone device 70 to execute infrastructure wireless communication via the AP 6 will be described. This process starts when the power of the calling device 70 is turned on. As described above, when the user turns on the telephone device 70, the telephone device 70 is set to the ad hoc mode.

S50では、第2の通信部104は、指定設定WS2と、DHCPサーバのIPアドレスとが、MFP10から受信されることを監視している。指定設定WS2と、DHCPサーバのIPアドレスとが受信されると(図3のS50でYES)、S52において、第2の通信部104は、受信完了を示すパケットを、MFP10に送信する。   In S <b> 50, the second communication unit 104 monitors that the designated setting WS <b> 2 and the IP address of the DHCP server are received from the MFP 10. When the designated setting WS2 and the IP address of the DHCP server are received (YES in S50 of FIG. 3), in S52, the second communication unit 104 transmits a packet indicating reception completion to the MFP 10.

次いで、S54では、記憶制御部106は、S50で受信された指定設定WS2を、指定設定格納領域86に格納させる。次いで、切替部108は、通話デバイス70を、アドホックモードからインフラストラクチャモードに切り替える。具体的には、切替部108は、対象設定格納領域92から初期設定WS1を消去し、指定設定WS2を対象設定格納領域92に格納する。   Next, in S54, the storage control unit 106 stores the designated setting WS2 received in S50 in the designated setting storage area 86. Next, the switching unit 108 switches the call device 70 from the ad hoc mode to the infrastructure mode. Specifically, the switching unit 108 deletes the initial setting WS 1 from the target setting storage area 92 and stores the designated setting WS 2 in the target setting storage area 92.

次いで、S56では、第1の通信部102は、AP6と無線通信を実行するために、指定設定WS2を利用して、指定設定WS2を含む接続要求を、AP6に送信する。S56の処理は、S12の処理と同様である。S58では、第1の通信部102は、AP6から、認証結果を受信することを監視している。AP6から認証成功を示す認証結果が受信される(S58でYES)と、通話デバイス70とAP6とは、無線接続が確立された状態となり、無線通信を実行可能となる。S58でYESの場合、S60に進む。一方、AP6から認証成功を示す認証結果が受信されない場合(S14でNO)、即ち、AP6から認証失敗を示す認証結果が受信される場合と、AP6から認証結果が受信されない場合のいずれかである場合(S58でNO)、S74において、切替部108は、通信デバイス70を、インフラストラクチャモードからアドホックモードに切り替える。具体的には、切替部108は、対象設定格納領域92に格納されている指定設定WS2を消去して、初期設定WS1を対象設定格納領域92に格納する。次に、S76では、記憶制御部106は、指定設定格納領域86に格納されている指定設定WS2を消去して、無線設定処理を終了する。   Next, in S56, the first communication unit 102 uses the designated setting WS2 to transmit a connection request including the designated setting WS2 to the AP 6 in order to perform wireless communication with the AP 6. The process of S56 is the same as the process of S12. In S58, the first communication unit 102 monitors reception of the authentication result from the AP 6. When an authentication result indicating successful authentication is received from the AP 6 (YES in S58), the telephone device 70 and the AP 6 are in a state where a wireless connection is established, and wireless communication can be executed. If YES in S58, the process proceeds to S60. On the other hand, either the case where the authentication result indicating the authentication success is not received from the AP 6 (NO in S14), that is, the case where the authentication result indicating the authentication failure is received from the AP 6 or the case where the authentication result is not received from the AP 6 is selected. In the case (NO in S58), in S74, the switching unit 108 switches the communication device 70 from the infrastructure mode to the ad hoc mode. Specifically, the switching unit 108 deletes the designated setting WS2 stored in the target setting storage area 92 and stores the initial setting WS1 in the target setting storage area 92. Next, in S76, the storage control unit 106 deletes the designated setting WS2 stored in the designated setting storage area 86, and ends the wireless setting process.

S60では、第1の通信部102は、インフラストラクチャモードで無線通信を実行するために、通信デバイス70に付与すべきIPアドレスを要求するIPアドレス割当要求パケット(例えばDHCP DISCOVER)を、ブロードキャストする。S60で送信されたIPアドレス割当要求パケットは、S16で送信されたIPアドレス割当要求パケットと同等に、各デバイス6,8,9によって受信される。これにより、DHCPサーバ機能を有するAP6及びルータ9は、通話デバイス70に付与するための候補のIPアドレスを含むパケット(例えばDHCP OFFER)を、通信デバイス70に送信する。AP6及びルータ9は、さらに、自身のIPアドレスとして設定されているIPアドレスを、通信デバイス70に送信する。   In S60, the first communication unit 102 broadcasts an IP address assignment request packet (for example, DHCP DISCOVER) that requests an IP address to be assigned to the communication device 70 in order to execute wireless communication in the infrastructure mode. The IP address allocation request packet transmitted in S60 is received by each of the devices 6, 8, and 9 in the same manner as the IP address allocation request packet transmitted in S16. Thereby, the AP 6 and the router 9 having the DHCP server function transmit a packet (for example, DHCP OFFER) including a candidate IP address to be given to the call device 70 to the communication device 70. The AP 6 and the router 9 further transmit the IP address set as its own IP address to the communication device 70.

次いで、S62では、第1の通信部102は、IPアドレス割当要求パケットの応答として、通信デバイス70に付与するための候補IPアドレスと、DHCPサーバのIPアドレスと、を、受信する。そして、S64では、第1の通信部102は、S62でDHCPサーバ、即ちAP6及びルータ9から受信されたDHCPサーバのIPアドレスと、S50でMFP10から受信されたDHCPサーバのIPアドレスと、が一致するのか否かを判断する。なお、S18と同様に、第1の通信部102は、複数の候補IPアドレスとDHCPサーバのIPアドレスとの組合せを受信する。第1の通信部102は、S62において、候補IPアドレスと、DHCPサーバのIPアドレスとの組合せが受信される毎に、S64の処理を実行する。   Next, in S62, the first communication unit 102 receives the candidate IP address to be assigned to the communication device 70 and the IP address of the DHCP server as a response to the IP address assignment request packet. In S64, the first communication unit 102 matches the IP address of the DHCP server received from the DHCP server, that is, the AP 6 and the router 9 in S62, and the IP address of the DHCP server received from the MFP 10 in S50. Judge whether to do. Similar to S18, the first communication unit 102 receives a combination of a plurality of candidate IP addresses and the IP address of the DHCP server. The first communication unit 102 executes the process of S64 every time a combination of the candidate IP address and the IP address of the DHCP server is received in S62.

S62で受信されたDHCPサーバのIPアドレスと、S50で受信されたDHCPサーバのIPアドレスと、が一致しない場合(S64でNO)、S62に戻る。一方、S62で受信されたDHCPサーバのIPアドレスと、S50で受信されたDHCPサーバのIPアドレスと、が一致する場合(S64でYES)、S66において、記憶制御部106は、S64でYESと判断されたDHCPサーバのIPアドレスと組み合わせて受信された候補IPアドレスを、対象設定格納領域92に格納する。   When the IP address of the DHCP server received in S62 does not match the IP address of the DHCP server received in S50 (NO in S64), the process returns to S62. On the other hand, if the IP address of the DHCP server received in S62 matches the IP address of the DHCP server received in S50 (YES in S64), the storage control unit 106 determines YES in S64 in S66. The candidate IP address received in combination with the IP address of the received DHCP server is stored in the target setting storage area 92.

次いで、S68では、第1の通信部102は、対象設定格納領域92に格納された1個の候補IPアドレスを付与されたことを示すパケットである割当候補IPアドレス取得要求パケット(DHCP REQUEST)を、ブロードキャストする。次いで、S70では、第1の通信部102は、S24の第1の通信部52と同様に、S68で送信されたパケットに対する応答を受信することを監視している。候補IPアドレスの送信元DHCPサーバ(即ちAP6又はルータ9)は、割当候補IPアドレス取得要求パケットの応答として、承認応答を通話デバイス70に送信する。送信元DHCPサーバ以外のデバイスは、割当候補IPアドレス取得要求パケットが受信されると、自身に付与されているIPアドレスが、候補IPアドレスと一致するのか否かを判断し、一致する場合には、当該パケットの応答として、IPアドレスが重複していることを示す重複警告パケット(DHCP DECLINE)を、通話デバイス70に送信する。   Next, in S68, the first communication unit 102 transmits an allocation candidate IP address acquisition request packet (DHCP REQUEST) that is a packet indicating that one candidate IP address stored in the target setting storage area 92 has been assigned. To broadcast. Next, in S70, the first communication unit 102 monitors reception of a response to the packet transmitted in S68, similarly to the first communication unit 52 in S24. The source DHCP server (that is, the AP 6 or the router 9) of the candidate IP address transmits an approval response to the call device 70 as a response to the allocation candidate IP address acquisition request packet. When the allocation candidate IP address acquisition request packet is received, the device other than the transmission source DHCP server determines whether or not the IP address assigned to the device matches the candidate IP address. As a response to the packet, a duplicate warning packet (DHCP DELINE) indicating that the IP address is duplicated is transmitted to the call device 70.

第1の通信部102は、割当候補IPアドレス取得要求パケットを送信してから、予め決められた期間が経過する前に、重複警告パケットが受信される場合(S70でNO)、S60に戻る。この場合、記憶制御部56は、S66で格納された候補IPアドレスを、消去し、S60からS68の処理により、再度、候補IPアドレスを取得する。一方、第1の通信部102は、割当候補IPアドレス取得要求パケットを送信してから、予め決められた期間が経過する前に、承認応答が受信され、かつ、重複警告パケットが受信されない場合(S70でYES)、S72に進む。S72では、記憶制御部106は、候補IPアドレスを、通話デバイス70に付与するIPアドレスとして、指定設定格納領域86に格納して、無線設定処理を終了する。これにより、通話デバイス70には、通話デバイス70がインフラストラクチャモードで利用するIPアドレスが設定される。   The first communication unit 102 returns to S60 if a duplicate warning packet is received (NO in S70) before the predetermined period elapses after transmitting the allocation candidate IP address acquisition request packet. In this case, the storage control unit 56 deletes the candidate IP address stored in S66, and obtains the candidate IP address again through the processing from S60 to S68. On the other hand, the first communication unit 102 receives the approval response and does not receive the duplicate warning packet before the predetermined period elapses after transmitting the allocation candidate IP address acquisition request packet ( YES at S70), the process proceeds to S72. In S <b> 72, the storage control unit 106 stores the candidate IP address in the designated setting storage area 86 as an IP address to be assigned to the call device 70, and ends the wireless setting process. As a result, the IP address used by the call device 70 in the infrastructure mode is set in the call device 70.

次いで、図4,5を参照して、MFP10と通話デバイス70とが、DHCPサーバから、インフラストラクチャの無線通信のためのIPアドレスを取得して、インフラストラクチャモードで、MFP10と通話デバイス70とが通信可能となるまでの処理について説明する。   Next, referring to FIGS. 4 and 5, the MFP 10 and the calling device 70 obtain an IP address for infrastructure wireless communication from the DHCP server, and the MFP 10 and the calling device 70 in the infrastructure mode. Processing until communication is possible will be described.

MFP10と通話デバイス70とが、アドホックの無線通信を実行可能である状態において、MFP10は、対象設定格納領域42に格納されている初期設定WS1を消去して、指定設定WS2を対象設定格納領域42に格納する(図2のS10)。これにより、MFP10は、アドホックモードからインフラストラクチャモードに切り替わる。   In a state where the MFP 10 and the calling device 70 can execute ad hoc wireless communication, the MFP 10 erases the initial setting WS1 stored in the target setting storage area 42 and sets the designated setting WS2 in the target setting storage area 42. (S10 in FIG. 2). As a result, the MFP 10 switches from the ad hoc mode to the infrastructure mode.

MFP10は、AP6に接続要求を送信し(図2のS12)、AP6が認証処理を実行することによって、AP6とインフラストラクチャの無線通信が実行可能となる(図2のS14でYES)。次いで、MFP10は、IPアドレス割当要求パケットを、ブロードキャストする(図2のS16)。なお、AP6は、当該IPアドレス割当要求パケットを、ルータ9に転送する。DHCPサーバ機能を有するAP6とルータ9は、IPアドレス割当要求パケットを受信する。ルータ9は、IPアドレス割当要求パケットの応答として、MFP10に付与するための候補IPアドレスIPbと、ルータ9のアドレス情報(即ちルータ9のIPアドレス)ADDbとの組合せ(以下では「第1のアドレス組合せ」と呼ぶ)を、MFP10に送信する。なお、AP6は、当該第1のアドレス組合せを、MFP10に転送する。AP6は、ルータ9と同様に、IPアドレス割当要求パケットの応答として、MFP10に付与するための候補IPアドレスIPaと、AP6のアドレス情報(即ちAP6のIPアドレス)ADDaとの組合せ(以下では「第2のアドレス組合せ」と呼ぶ)を、MFP10に送信する。   The MFP 10 transmits a connection request to the AP 6 (S12 in FIG. 2), and the AP 6 executes an authentication process, thereby enabling wireless communication between the AP 6 and the infrastructure (YES in S14 in FIG. 2). Next, the MFP 10 broadcasts an IP address assignment request packet (S16 in FIG. 2). The AP 6 transfers the IP address allocation request packet to the router 9. The AP 6 and the router 9 having the DHCP server function receive the IP address assignment request packet. As a response to the IP address allocation request packet, the router 9 combines the candidate IP address IPb to be given to the MFP 10 and the address information of the router 9 (that is, the IP address of the router 9) ADDb (hereinafter referred to as “first address”). Is transmitted to the MFP 10. Note that the AP 6 transfers the first address combination to the MFP 10. As with the router 9, the AP 6 returns a combination of the candidate IP address IPa to be given to the MFP 10 and the address information of the AP 6 (that is, the IP address of the AP 6) ADDa as a response to the IP address assignment request packet (hereinafter referred to as “first”). 2 ”is transmitted to the MFP 10.

MFP10は、ルータ9から送信された第1のアドレス組合せを受信した後、AP6から送信された第2のアドレス組合せを受信する(図2のS18)。MFP10は、MFP10がIPアドレス割当要求パケットを送信した後、最初に受信される第1のアドレス組合せに含まれる候補IPアドレスIPbを、対象設定格納領域42に格納する(図2のS20)。さらに、MFP10は、第1のアドレス組合せに含まれるアドレス情報ADDbを、アドレス情報格納領域39に格納する(図2のS20)。一方、MFP10は、AP6から受信された第2のアドレス組合せを、各格納領域39,42に格納しない。   After receiving the first address combination transmitted from the router 9, the MFP 10 receives the second address combination transmitted from the AP 6 (S18 in FIG. 2). After the MFP 10 transmits the IP address assignment request packet, the MFP 10 stores the candidate IP address IPb included in the first address combination received first in the target setting storage area 42 (S20 in FIG. 2). Further, the MFP 10 stores the address information ADDb included in the first address combination in the address information storage area 39 (S20 in FIG. 2). On the other hand, the MFP 10 does not store the second address combination received from the AP 6 in the storage areas 39 and 42.

MFP10は、対象設定格納領域42に格納された候補IPアドレスIPbを含む割当候補IPアドレス取得要求パケットを、ブロードキャストする(図2のS22)。なお、AP6は、当該割当候補IPアドレス取得要求パケットを、ルータ9に転送する。ルータ9は、割当候補IPアドレス取得要求パケットを受信すると、MFP10に承認応答を送信する。なお、AP6は、当該承認応答を、MFP10に転送する。MFP10は、ルータ9から承認応答を受信すると(図2のS24でYES)、候補IPアドレスIPbを、MFP10に付与するIPアドレスとして、指定設定格納領域36に格納する(図2のS26)。これにより、MFP10には、MFP10のIPアドレスとして、IPアドレスIPbが設定される。MFP10は、MFP10のIPアドレスとしてIPアドレスIPを用いて、インフラストラクチャの無線通信を実行することができる。   The MFP 10 broadcasts an allocation candidate IP address acquisition request packet including the candidate IP address IPb stored in the target setting storage area 42 (S22 in FIG. 2). The AP 6 transfers the allocation candidate IP address acquisition request packet to the router 9. Upon receiving the allocation candidate IP address acquisition request packet, the router 9 transmits an approval response to the MFP 10. Note that the AP 6 transfers the approval response to the MFP 10. When the MFP 10 receives the approval response from the router 9 (YES in S24 in FIG. 2), the MFP 10 stores the candidate IP address IPb in the designated setting storage area 36 as an IP address to be given to the MFP 10 (S26 in FIG. 2). As a result, the IP address IPb is set in the MFP 10 as the IP address of the MFP 10. The MFP 10 can execute infrastructure wireless communication by using the IP address IP as the IP address of the MFP 10.

次いで、MFP10は、対象設定格納領域42に格納されている指定設定WS2と、IPアドレスIPbとを消去して、初期設定WS1を対象設定格納領域42に格納する(図2のS28)。これにより、MFP10は、インフラストラクチャモードからアドホックモードに切り替わる。   Next, the MFP 10 deletes the designated setting WS2 and the IP address IPb stored in the target setting storage area 42, and stores the initial setting WS1 in the target setting storage area 42 (S28 in FIG. 2). As a result, the MFP 10 switches from the infrastructure mode to the ad hoc mode.

続いて、MFP10は、指定設定格納領域36に格納されている指定設定WS2と、アドレス情報格納領域39に格納されているアドレス情報ADDb(即ちルータ9のIPアドレス)と、を、通話デバイス70に送信する(図2のS30)。通話デバイス70は、初期設定WS1が対象設定格納領域92に格納されている状態(即ちアドホックモード)で維持されている。このため、通話デバイス70は、MFP10から、指定設定WS2とアドレス情報ADDbとを受信することができる。通話デバイス70は、指定設定WS2とアドレス情報ADDbとを受信する(図3のS50でYES)と、受信完了を、MFP10に送信する(図3のS52)。   Subsequently, the MFP 10 sends the designated setting WS2 stored in the designated setting storage area 36 and the address information ADDb (that is, the IP address of the router 9) stored in the address information storage area 39 to the call device 70. Transmit (S30 in FIG. 2). The telephone device 70 is maintained in a state where the initial setting WS1 is stored in the target setting storage area 92 (that is, the ad hoc mode). Therefore, the calling device 70 can receive the designated setting WS2 and the address information ADDb from the MFP 10. When the call device 70 receives the designated setting WS2 and the address information ADDb (YES in S50 of FIG. 3), the call device 70 transmits a reception completion to the MFP 10 (S52 of FIG. 3).

MFP10は、指定設定WS2とアドレス情報ADDbとに対する受信完了を受信すると、図2のS32でYESと判断する。MFP10は、MFP10がインフラストラクチャモードである状態で、ルータ9からアドレス情報ADDbを受信した後で、インフラストラクチャモードからアドホックモードに切り替えて、アドレス情報ADDbを、通話デバイス70に送信する。この構成によれば、MFP10は、インフラストラクチャモードとアドホックモードとを、適切に切り替えることができる。なお、変形例では、MFP10は、指定設定WS2を、通話デバイス70に送信し、指定設定WS2に対する受信完了を、通話デバイス70から受信してもよい。そして、MFP10は、アドレス情報ADDbを、通話デバイス70に送信し、アドレス情報ADDbに対する受信完了を、通話デバイス70から受信してもよい。この場合、MFP10は、指定設定WS2に対する受信完了及びアドレス情報ADDbに対する受信完了を受信すると、図2のS32でYESと判断してもよい。   Upon receiving the reception completion for the designated setting WS2 and the address information ADDb, the MFP 10 determines YES in S32 of FIG. After the MFP 10 receives the address information ADDb from the router 9 in a state where the MFP 10 is in the infrastructure mode, the MFP 10 switches from the infrastructure mode to the ad hoc mode, and transmits the address information ADDb to the call device 70. According to this configuration, the MFP 10 can appropriately switch between the infrastructure mode and the ad hoc mode. In a modified example, the MFP 10 may transmit the designated setting WS2 to the calling device 70 and receive the completion of reception of the designated setting WS2 from the calling device 70. Then, the MFP 10 may transmit the address information ADDb to the call device 70 and receive from the call device 70 the completion of reception of the address information ADDb. In this case, when receiving the reception completion for the designated setting WS2 and the reception completion for the address information ADDb, the MFP 10 may determine YES in S32 of FIG.

MFP10は、対象設定格納領域42に格納されている初期設定WS1を消去して、指定設定WS2を対象設定格納領域42に格納する(図2のS10)。これにより、MFP10は、アドホックモードからインフラストラクチャモードに切り替わる。次いで、MFP10は、AP6に接続要求を送信し(図2のS12)、AP6と認証処理を実行し、AP6とインフラストラクチャの無線通信が実行可能となる(図2のS14でYES)。この構成では、MFP10が、インフラストラクチャモードからアドホックモードに切り替えられ、指定設定WS2とアドレス情報ADDbとを送信した後で、アドホックモードからインフラストラクチャモードに切り替えられる。この構成によれば、MFP10は、通話デバイス70に、指定設定WS2とアドレス情報ADDbとのそれぞれを送信する毎に、MFP10のモードを切り替えないで済む。   The MFP 10 deletes the initial setting WS1 stored in the target setting storage area 42 and stores the designated setting WS2 in the target setting storage area 42 (S10 in FIG. 2). As a result, the MFP 10 switches from the ad hoc mode to the infrastructure mode. Next, the MFP 10 transmits a connection request to the AP 6 (S12 in FIG. 2), executes authentication processing with the AP 6, and can execute wireless communication between the AP 6 and the infrastructure (YES in S14 in FIG. 2). In this configuration, after the MFP 10 is switched from the infrastructure mode to the ad hoc mode and transmits the designated setting WS2 and the address information ADDb, the MFP 10 is switched from the ad hoc mode to the infrastructure mode. According to this configuration, the MFP 10 does not have to switch the mode of the MFP 10 every time the designated setting WS2 and the address information ADDb are transmitted to the calling device 70.

次いで、MFP10は、対象設定格納領域42に格納されているIPアドレスIPbを含む割当候補IPアドレス取得要求パケットを、ブロードキャストする(図2のS34)。なお、AP6は、当該割当候補IPアドレス取得要求パケットを、ルータ9に転送する。このとき、MFP10は、割当候補IPアドレス取得要求パケットをブロードキャストする前に、IPアドレス割当要求パケットをブロードキャストしない。この構成によれば、無線通信システム2の通信負荷を低減することができる。   Next, the MFP 10 broadcasts an allocation candidate IP address acquisition request packet including the IP address IPb stored in the target setting storage area 42 (S34 in FIG. 2). The AP 6 transfers the allocation candidate IP address acquisition request packet to the router 9. At this time, the MFP 10 does not broadcast the IP address assignment request packet before broadcasting the assignment candidate IP address acquisition request packet. According to this configuration, the communication load of the wireless communication system 2 can be reduced.

ルータ9は、割当候補IPアドレス取得要求パケットを受信すると、MFP10に承認応答を送信する。MFP10は、ルータ9から承認応答を受信する(図2のS36)。なお、AP6は、当該承認応答を、MFP10に転送する。この構成によれば、MFP10は、通話デバイス70にルータ9のアドレス情報ADDbを送信する前に付与されたIPアドレスIPbを用いて、インフラストラクチャの無線通信を実行することができる。このため、MFP10にIPアドレスを付与するDHCPサーバが、ルータ9から他のDHCPサーバに変更されることを回避することができる。   Upon receiving the allocation candidate IP address acquisition request packet, the router 9 transmits an approval response to the MFP 10. The MFP 10 receives the approval response from the router 9 (S36 in FIG. 2). Note that the AP 6 transfers the approval response to the MFP 10. According to this configuration, the MFP 10 can execute infrastructure wireless communication using the IP address IPb assigned before transmitting the address information ADDb of the router 9 to the call device 70. Therefore, it is possible to avoid changing the DHCP server that gives the IP address to the MFP 10 from the router 9 to another DHCP server.

なお、通話デバイス70は、受信完了をMFP10に送信する(図3のS52)と、対象設定格納領域42に格納されている初期設定WS1を消去して、指定設定WS2を対象設定格納領域42に格納する(図3のS54)。これにより、通話デバイス70は、アドホックモードからインフラストラクチャモードに切り替わる。次いで、通話デバイス70は、AP6に接続要求を送信することで(図3のS56)、AP6は、認証処理を実行し、AP6とインフラストラクチャの無線通信が実行可能となる(図3のS58でYES)。   When the call device 70 transmits the reception completion to the MFP 10 (S52 in FIG. 3), the call device 70 deletes the initial setting WS1 stored in the target setting storage area 42 and puts the designated setting WS2 in the target setting storage area 42. Store (S54 in FIG. 3). Thereby, the telephone device 70 switches from the ad hoc mode to the infrastructure mode. Next, the call device 70 transmits a connection request to the AP 6 (S56 in FIG. 3), and the AP 6 executes an authentication process, and wireless communication between the AP 6 and the infrastructure can be performed (in S58 in FIG. 3). YES).

通話デバイス70は、IPアドレス割当要求パケットを、ブロードキャストする(図3のS60)。なお、AP6は、当該IPアドレス割当要求パケットを、ルータ9に転送する。DHCPサーバ機能を有するAP6とルータ9は、IPアドレス割当要求パケットを受信する。AP6は、IPアドレス割当要求パケットの応答として、通信デバイス70に付与するための候補IPアドレスIPcと、AP6のアドレス情報(即ちAP6のIPアドレス)ADDaとの組合せを、通話デバイス70に送信する。   The calling device 70 broadcasts an IP address assignment request packet (S60 in FIG. 3). The AP 6 transfers the IP address allocation request packet to the router 9. The AP 6 and the router 9 having the DHCP server function receive the IP address assignment request packet. In response to the IP address assignment request packet, the AP 6 transmits a combination of the candidate IP address IPc to be given to the communication device 70 and the address information of the AP 6 (that is, the IP address of the AP 6) ADDa to the call device 70.

通話デバイス70は、受信されたアドレス情報ADDaと、MFP10から受信されたアドレス情報ADDbとが一致しないため(図3のS64でNO)、候補IPアドレスIPcを、対象設定格納領域92及び指定設定格納領域86に格納しない。このため、候補IPアドレスIPcは、通話デバイス70のIPアドレスとして付与されない。   Since the received address information ADDa and the address information ADDb received from the MFP 10 do not match (NO in S64 in FIG. 3), the calling device 70 stores the candidate IP address IPc, the target setting storage area 92, and the specified setting storage. Not stored in area 86. For this reason, the candidate IP address IPc is not given as the IP address of the call device 70.

ルータ9は、AP6と同様に、IPアドレス割当要求パケットの応答として、通信デバイス70に付与するための候補IPアドレスIPdと、ルータ9のアドレス情報(即ちルータ9のIPアドレス)ADDbとの組合せを、通信デバイス70に送信する。なお、AP6は、当該候補IPアドレスIPdとルータ9のアドレス情報ADDbとの組合せを、通信デバイス70に転送する。通話デバイス70は、受信されたアドレス情報ADDbと、MFP10から受信されたアドレス情報ADDbとが一致するため(図3のS64でYES)、候補IPアドレスIPdを、対象設定格納領域92に格納する。   Similarly to AP6, the router 9 uses a combination of the candidate IP address IPd to be given to the communication device 70 and the address information of the router 9 (that is, the IP address of the router 9) ADDb as a response to the IP address assignment request packet. To the communication device 70. The AP 6 transfers the combination of the candidate IP address IPd and the address information ADDb of the router 9 to the communication device 70. The calling device 70 stores the candidate IP address IPd in the target setting storage area 92 because the received address information ADDb matches the address information ADDb received from the MFP 10 (YES in S64 in FIG. 3).

次いで、通話デバイス70は、対象設定格納領域42に格納されているIPアドレスIPdを含む割当候補IPアドレス取得要求パケットを、ブロードキャストする(図3のS68)。なお、AP6は、当該割当候補IPアドレス取得要求パケットを、ルータ9に転送する。ルータ9は、割当候補IPアドレス取得要求パケットを受信すると、通話デバイス70に承認応答を送信する。なお、AP6は、当該承認応答を、通信デバイス70に転送する。通話デバイス70は、ルータ9から承認応答を受信すると(図3のS70でYES)、候補IPアドレスIPdを、通話デバイス70に付与するIPアドレスとして、指定設定格納領域86に格納する(図3のS72)。これにより、通話デバイス70には、通話デバイス70のIPアドレスとして、IPアドレスIPdが設定される。通話デバイス70は、通話デバイス70のIPアドレスとしてIPアドレスIPdを用いて、インフラストラクチャの無線通信を実行することができる。   Next, the calling device 70 broadcasts an allocation candidate IP address acquisition request packet including the IP address IPd stored in the target setting storage area 42 (S68 in FIG. 3). The AP 6 transfers the allocation candidate IP address acquisition request packet to the router 9. When the router 9 receives the allocation candidate IP address acquisition request packet, the router 9 transmits an approval response to the call device 70. Note that the AP 6 transfers the approval response to the communication device 70. When the call device 70 receives the approval response from the router 9 (YES in S70 of FIG. 3), the candidate IP address IPd is stored in the designated setting storage area 86 as an IP address to be assigned to the call device 70 (FIG. 3). S72). As a result, the IP address IPd is set in the calling device 70 as the IP address of the calling device 70. The call device 70 can execute infrastructure wireless communication using the IP address IPd as the IP address of the call device 70.

通話デバイス70は、通話デバイス70がアドホックモードである状態で、MFP10からアドレス情報ADDbを受信した後で、アドホックモードからインフラストラクチャモードに切り替えて、DHCPサーバから、候補IPアドレスを受信する。この構成によれば、通話デバイス70は、インフラストラクチャモードとアドホックモードとを、適切に切り替えることができる。   The call device 70 receives the address information ADDb from the MFP 10 in a state where the call device 70 is in the ad hoc mode, and then switches from the ad hoc mode to the infrastructure mode and receives the candidate IP address from the DHCP server. According to this configuration, the telephone device 70 can appropriately switch between the infrastructure mode and the ad hoc mode.

また、通話デバイス70は、IPアドレス割当要求パケットを送信した後、最初に、AP6から候補IPアドレスIPcを受信し、次いで、ルータ9から候補IPアドレスIPdを受信する。通話デバイス70は、AP6のアドレス情報ADDaが、MFP10から受信されたアドレス情報ADDbと一致しないため、候補IPアドレスIPcを、指定設定格納領域86に格納しない、一方、通話デバイス70は、ルータ9のアドレス情報ADDbが、MFP10から受信されたアドレス情報ADDbと一致するため、候補IPアドレスIPdを、通話デバイス70に付与するIPアドレスとして、指定設定格納領域86に格納する(図3のS72)。この構成によれば、通話デバイス70は、MFP10にIPアドレスIPbを付与したルータ9から、IPアドレスIPdを取得することができる。   Further, after transmitting the IP address assignment request packet, the calling device 70 first receives the candidate IP address IPc from the AP 6 and then receives the candidate IP address IPd from the router 9. The calling device 70 does not store the candidate IP address IPc in the designated setting storage area 86 because the address information ADDa of the AP 6 does not match the address information ADDb received from the MFP 10. Since the address information ADDb matches the address information ADDb received from the MFP 10, the candidate IP address IPd is stored in the designated setting storage area 86 as an IP address to be given to the call device 70 (S72 in FIG. 3). According to this configuration, the calling device 70 can acquire the IP address IPd from the router 9 that has given the MFP 10 the IP address IPb.

(本実施例の効果)
MFP10は、MFP10がIPアドレスIPbを取得したDHCPサーバであるルータ9のアドレス情報ADDbを、通話デバイス70に送信する。この構成によれば、MFP10は、MFP10に付与されるIPアドレスIPbの送信元のDHCPサーバを、通話デバイス70に知らせることができる。通話デバイス70は、アドレス情報ADDbを用いて、MFP10に付与されるIPアドレスIPbの送信元のDHCPサーバを、特定することができる。通話デバイス70は、MFP10から受信されたアドレス情報ADDbで特定されるDHCPサーバであるルータ9から受信されるIPアドレスIPdを、通話デバイス70のIPアドレスとして付与する。この構成によれば、同一のDHCPサーバから、MFP10と通話デバイス70に、IPアドレスを付与することができる。
(Effect of this embodiment)
The MFP 10 transmits the address information ADDb of the router 9 which is the DHCP server from which the MFP 10 has acquired the IP address IPb, to the call device 70. According to this configuration, the MFP 10 can notify the calling device 70 of the DHCP server that is the transmission source of the IP address IPb given to the MFP 10. Using the address information ADDb, the calling device 70 can specify the DHCP server that is the transmission source of the IP address IPb given to the MFP 10. The calling device 70 assigns the IP address IPd received from the router 9 that is the DHCP server specified by the address information ADDb received from the MFP 10 as the IP address of the calling device 70. According to this configuration, an IP address can be assigned to the MFP 10 and the calling device 70 from the same DHCP server.

例えば、無線通信システム2において、AP6がIPアドレス割当要求パケットの応答として送信するIPアドレス(例えば192.168.2.XX)のネットワークアドレス(例えば192.168.2.0)が、ルータ9がIPアドレス割当要求パケットの応答として送信するIPアドレス(例えば192.111.YY.ZZ)のネットワークアドレス(例えば192.111.0.0)と異なる状況がある。この状況において、ルータ9から受信されたIPアドレス(例えば192.111.YY.ZZ)が、MFP10に付与される一方、AP6から受信されたIPアドレス(例えば192.168.2.XX)が、通話デバイス70に付与される場合、MFP10と通話デバイス70とは異なるネットワークに属する事態が生じる。この場合、MFP10と通話デバイス70とは、インフラストラクチャの無線通信が実行できない可能性がある。   For example, in the wireless communication system 2, the network address (for example, 192.168.2.0) of the IP address (for example, 192.168.2.XX) transmitted by the AP 6 as a response to the IP address allocation request packet is There is a situation different from the network address (for example, 192.168.11.0.0) of the IP address (for example, 192.168.11.YY.ZZ) transmitted as a response to the IP address allocation request packet. In this situation, the IP address (for example, 192.168.11.YY.ZZ) received from the router 9 is given to the MFP 10, while the IP address (for example, 192.168.8.2.XX) received from the AP 6 is When given to the calling device 70, a situation occurs in which the MFP 10 and the calling device 70 belong to different networks. In this case, the MFP 10 and the calling device 70 may not be able to execute infrastructure wireless communication.

本実施例では、MFP10と通話デバイス70とは、同一のDHCPサーバから、各デバイスに付与すべきIPアドレスを取得することができるため、MFP10と通話デバイス70とに、同一のネットワークアドレスを有するIPアドレスを付与することができる。このため、MFP10と通話デバイス70とは、インフラストラクチャの無線通信が実行できない可能性を低減することができる。   In this embodiment, since the MFP 10 and the calling device 70 can acquire the IP address to be assigned to each device from the same DHCP server, the MFP 10 and the calling device 70 have IP addresses having the same network address. An address can be given. For this reason, the possibility that the MFP 10 and the calling device 70 cannot perform infrastructure wireless communication can be reduced.

(対応関係)
MFP10が「通信装置」の一例である場合、通話デバイス70が「特定の通信装置」の一例である。通話デバイス70が「通信装置」の一例である場合、MFP10が「特定の通信装置」の一例である。インフラストラクチャの無線通信が「第1の通信経路を介した通信」の一例であり、アドホックの無線通信が「第2の通信経路を介した通信」の一例である。AP6、ルータ9のそれぞれが、「サーバ」の一例であり、ルータ9が「1つサーバ」の一例である。AP6が「第1のサーバ」の一例であり、ルータ9が「第2のサーバ」の一例である。アドレス情報ADDa,ADDbのそれぞれが、「アドレス情報」の一例であり、アドレス情報ADDbが、「特定のアドレス情報」の一例である。IPアドレスIPbが「特定のIPアドレス」の一例である。IPアドレスIPcが「第1のIPアドレス」の一例であり、IPアドレスIPdが「第2のIPアドレス」の一例である。
(Correspondence)
When the MFP 10 is an example of a “communication device”, the call device 70 is an example of a “specific communication device”. When the call device 70 is an example of a “communication device”, the MFP 10 is an example of a “specific communication device”. Infrastructure wireless communication is an example of “communication via a first communication path”, and ad hoc wireless communication is an example of “communication via a second communication path”. Each of the AP 6 and the router 9 is an example of “server”, and the router 9 is an example of “one server”. The AP 6 is an example of a “first server”, and the router 9 is an example of a “second server”. Each of the address information ADDa and ADDb is an example of “address information”, and the address information ADDb is an example of “specific address information”. The IP address IPb is an example of a “specific IP address”. The IP address IPc is an example of a “first IP address”, and the IP address IPd is an example of a “second IP address”.

MFP10が「通信装置」の一例である場合、MFP10がインフラストラクチャモードである場合が「第1の通信状態」の一例であり、MFP10がアドホックモードである場合が「第2の通信状態」の一例である。通話デバイス70が「通信装置」の一例である場合、通話デバイス70がインフラストラクチャモードである場合が「第1の通信状態」の一例であり、通話デバイス70がアドホックモードである場合が「第2の通信状態」の一例である。割当候補IPアドレス取得要求が、「特定のIPアドレスを付与されたことを示す情報」の一例であり、IPアドレス割当要求が、「アドレス情報を送信させるための信号」の一例である。指定設定WS2が、「設定情報」の一例である。   When the MFP 10 is an example of “communication device”, the case where the MFP 10 is in the infrastructure mode is an example of “first communication state”, and the case where the MFP 10 is in the ad hoc mode is an example of “second communication state”. It is. When the call device 70 is an example of “communication device”, the case where the call device 70 is in the infrastructure mode is an example of “first communication state”, and the case where the call device 70 is in the ad hoc mode is “second”. Is an example of “communication state”. The allocation candidate IP address acquisition request is an example of “information indicating that a specific IP address has been assigned”, and the IP address allocation request is an example of “a signal for transmitting address information”. The designated setting WS2 is an example of “setting information”.

以上、本発明の具体例を詳細に説明したが、これらは例示にすぎず、特許請求の範囲を限定するものではない。特許請求の範囲に記載の技術には、以上に例示した具体例を様々に変形、変更したものが含まれる。例えば、以下の変形例を採用してもよい。   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. For example, the following modifications may be adopted.

(変形例1)上記の実施例では、MFP10の第1通信部52は、IPアドレス割当要求の応答として、MFP10に付与すべきIPアドレスの他に、DHCPサーバのIPアドレスを受信する(図2のS18参照)。記憶制御部56は、受信されたDHCPサーバのIPアドレスを、アドレス情報格納領域39に格納する(図2のS20)。しかしながら、第1通信部52は、IPアドレス割当要求の応答として、DHCPサーバのIPアドレスと共に、あるいは、これに替えて、DHCPサーバのMACアドレス、ネットワークアドレス、の少なくとも1個を受信してもよい。この場合、記憶制御部56は、DHCPサーバから受信されるMACアドレス等の少なくとも1個を、アドレス情報格納領域39に格納してもよい。本変形例では、DHCPサーバから送信されるDHCPサーバのIPアドレスと、DHCPサーバのMACアドレスと、DHCPのネットワークアドレスの少なくとも1個のうち、アドレス情報格納領域39に格納されるアドレスが、「アドレス情報」の一例である。 (Modification 1) In the above embodiment, the first communication unit 52 of the MFP 10 receives the IP address of the DHCP server in addition to the IP address to be assigned to the MFP 10 as a response to the IP address assignment request (FIG. 2). S18). The storage control unit 56 stores the received IP address of the DHCP server in the address information storage area 39 (S20 in FIG. 2). However, as a response to the IP address assignment request, the first communication unit 52 may receive at least one of the DHCP server's MAC address and network address together with or instead of the DHCP server's IP address. . In this case, the storage control unit 56 may store at least one MAC address received from the DHCP server in the address information storage area 39. In this modification, the address stored in the address information storage area 39 among at least one of the IP address of the DHCP server, the MAC address of the DHCP server, and the network address of the DHCP transmitted from the DHCP server is “address It is an example of “information”.

(変形例2)第1通信部52は、IPアドレス割当要求の応答として、MFP10に付与すべきIPアドレスのサブネットマスクを、DHCPサーバから受信してもよい。この場合、記憶制御部56は、受信されたMFP10に付与すべきIPアドレスとサブネットマスクとから、DHCPサーバのネットワークアドレスを特定し、特定されたネットワークアドレスを、アドレス情報格納領域39に格納してもよい。本変形例では、DHCPサーバのネットワークアドレスが、「アドレス情報」の一例である。なお、本変形例では、記憶制御部56は、受信されたMFP10に付与すべきIPアドレスとサブネットマスクとの両方を、アドレス情報格納領域39に格納してもよい。この場合、第1の通信部52は、アドレス情報格納領域39に格納されているMFP10に付与すべきIPアドレスとサブネットマスクとの両方を、通話デバイス70に送信してもよい。本変形例では、サブネットマスクが「アドレス情報」の一例である。 (Modification 2) The first communication unit 52 may receive the subnet mask of the IP address to be given to the MFP 10 from the DHCP server as a response to the IP address assignment request. In this case, the storage control unit 56 specifies the network address of the DHCP server from the received IP address and subnet mask to be assigned to the MFP 10, and stores the specified network address in the address information storage area 39. Also good. In this modification, the network address of the DHCP server is an example of “address information”. In this modification, the storage control unit 56 may store both the received IP address and subnet mask to be assigned to the MFP 10 in the address information storage area 39. In this case, the first communication unit 52 may transmit both the IP address and subnet mask to be assigned to the MFP 10 stored in the address information storage area 39 to the call device 70. In this modification, the subnet mask is an example of “address information”.

なお、通話デバイス70は、MFP10に付与すべきIPアドレスとサブネットマスクとの両方が受信される場合、MFP10に付与すべきIPアドレスとサブネットマスクとを用いて、DHCPサーバのネットワークアドレスを特定してもよい。そして、通話デバイス70の記憶制御部106は、特定されたネットワークアドレスと一致するネットワークアドレスを有するDHCPサーバから受信されるIPアドレスを、通話デバイス70のIPアドレスとして、指定設定格納領域86に格納してもよい。   When both the IP address to be assigned to the MFP 10 and the subnet mask are received, the calling device 70 specifies the network address of the DHCP server using the IP address to be assigned to the MFP 10 and the subnet mask. Also good. Then, the storage control unit 106 of the calling device 70 stores the IP address received from the DHCP server having the network address that matches the specified network address in the designated setting storage area 86 as the IP address of the calling device 70. May be.

(変形例3)上記の実施例では、第1の通信部52は、DHCPサーバから、MFP10に付与すべきIPアドレスと、DHCPサーバのIPアドレスとの組合せを受信する(図2のS18参照)。しかしながら、第1の通信部52は、DHCPサーバから、MFP10に付与すべきIPアドレスと、DHCPサーバのIPアドレスとを、同時的に受信しなくてもよい。例えば、第1の通信部52は、図2のS18において、MFP10に付与すべきIPアドレスを受信してもよい。そして、第1の通信部52は、例えば、図2のS24において、承認応答を受信すると共に、DHCPサーバのIPアドレスを受信してもよい。一般的には、第1の通信部は、第1の通信経路を介して、複数のサーバのそれぞれから、当該サーバに関係するアドレス情報と、通信装置に付与するためのIPアドレスと、を受信するが、アドレス情報とIPアドレスとの受信タイミングは、同時的でもよいし、連続的でもよいし、断続的でもよい。 (Modification 3) In the above embodiment, the first communication unit 52 receives a combination of the IP address to be assigned to the MFP 10 and the IP address of the DHCP server from the DHCP server (see S18 in FIG. 2). . However, the first communication unit 52 does not have to simultaneously receive the IP address to be assigned to the MFP 10 and the IP address of the DHCP server from the DHCP server. For example, the first communication unit 52 may receive an IP address to be given to the MFP 10 in S18 of FIG. Then, for example, the first communication unit 52 may receive the approval response and the IP address of the DHCP server in S24 of FIG. In general, the first communication unit receives address information related to the server and an IP address to be assigned to the communication device from each of the plurality of servers via the first communication path. However, the reception timing of the address information and the IP address may be simultaneous, continuous, or intermittent.

(変形例4)上記の実施例では、第1の通信部52は、DHCPサーバから、MFP10に付与すべきIPアドレスと、DHCPサーバのIPアドレスとを受信すると(図2のS18参照)、割当候補IPアドレス取得要求を、ブロードキャストする(図2のS22参照)。しかしながら、第1の通信部52は、このタイミングで、割当候補IPアドレス取得要求をブロードキャストしなくてもよい。この場合、記憶制御部56は、図2のS18で受信されたDHCPサーバのIPアドレスを、メモリ34に格納し、MFP10に付与すべきIPアドレスを、メモリ34に格納しなくてもよい。そして、第1の通信部52は、図2のS18で受信されたDHCPサーバのIPアドレスが、通話デバイス70に送信され(図2のS30参照)、かつ、アドホックモードからインフラストラクチャモードに切り替えられた後に、IPアドレス割当要求を、ブロードキャストしてもよい。記憶制御部56は、IPアドレス割当要求の応答として、MFP10に付与すべきIPアドレスと、DHCPサーバのIPアドレスとが、複数のDHCPサーバから受信されると、メモリ34に格納されているDHCPサーバのIPアドレスに一致するIPアドレスのDHCPサーバから送信されるIPアドレスを、MFP10に付与するIPアドレスとして、メモリ34に格納してもよい。 (Modification 4) In the above-described embodiment, the first communication unit 52 receives the IP address to be assigned to the MFP 10 and the IP address of the DHCP server from the DHCP server (see S18 in FIG. 2). A candidate IP address acquisition request is broadcast (see S22 in FIG. 2). However, the first communication unit 52 may not broadcast the allocation candidate IP address acquisition request at this timing. In this case, the storage control unit 56 may store the IP address of the DHCP server received in S <b> 18 of FIG. 2 in the memory 34, and may not store the IP address to be assigned to the MFP 10 in the memory 34. Then, the first communication unit 52 transmits the IP address of the DHCP server received in S18 of FIG. 2 to the call device 70 (see S30 of FIG. 2), and is switched from the ad hoc mode to the infrastructure mode. Thereafter, the IP address assignment request may be broadcast. When the IP address allocation request and the IP address of the DHCP server are received from a plurality of DHCP servers as a response to the IP address assignment request, the storage control unit 56 stores the DHCP server stored in the memory 34. An IP address transmitted from a DHCP server having an IP address that matches the IP address of the MFP 10 may be stored in the memory 34 as an IP address to be given to the MFP 10.

(変形例5)上記の実施例では、MFP10は、インフラストラクチャの無線通信と、アドホックの無線通信とを並行して実行可能であってもよい。例えば、MFP10は、複数の無線インターフェースを備えていてもよい。この場合、MFP10は、複数の無線インターフェースのうちの第1の無線インターフェースを用いて、インフラストラクチャの無線通信を実行し、複数の無線インターフェースのうちの第2の無線インターフェースを用いて、アドホックの無線通信を実行してもよい。この場合、MFP10は、インフラストラクチャモードとアドホックモードとを切り替えなくてもよい。 (Modification 5) In the above embodiment, the MFP 10 may be capable of executing infrastructure wireless communication and ad hoc wireless communication in parallel. For example, the MFP 10 may include a plurality of wireless interfaces. In this case, the MFP 10 performs infrastructure wireless communication using the first wireless interface of the plurality of wireless interfaces, and uses the second wireless interface of the plurality of wireless interfaces to perform ad hoc wireless communication. Communication may be performed. In this case, the MFP 10 does not have to switch between the infrastructure mode and the ad hoc mode.

(変形例6)上記の実施例では、第1の通信部52は、図2のS18で受信されたDHCPサーバのIPアドレスが、通話デバイス70に送信され(図2のS30参照)、かつ、アドホックモードからインフラストラクチャモードに切り替えられた後、IPアドレス割当要求をブロードキャストせずに、割当候補IPアドレス取得要求をブロードキャストする(図2のS34)。しかしながら、第1の通信部52は、図2のS18で受信されたDHCPサーバのIPアドレスが、通話デバイス70に送信され(図2のS30参照)、かつ、アドホックモードからインフラストラクチャモードに切り替えられた後、IPアドレス割当要求をブロードキャストしてもよい。この場合、記憶制御部56は、IPアドレス割当要求の応答として、受信されたIPアドレスを、メモリ34に格納しなくてもよい。第1の通信部52は、図2のS26でメモリ34に格納されたIPアドレスを含む割当候補IPアドレス取得要求をブロードキャストしてもよい。 (Modification 6) In the above embodiment, the first communication unit 52 transmits the IP address of the DHCP server received in S18 of FIG. 2 to the call device 70 (see S30 of FIG. 2), and After switching from the ad hoc mode to the infrastructure mode, the allocation candidate IP address acquisition request is broadcast without broadcasting the IP address allocation request (S34 in FIG. 2). However, the first communication unit 52 transmits the IP address of the DHCP server received in S18 of FIG. 2 to the call device 70 (see S30 of FIG. 2), and is switched from the ad hoc mode to the infrastructure mode. After that, the IP address assignment request may be broadcast. In this case, the storage control unit 56 may not store the received IP address in the memory 34 as a response to the IP address assignment request. The first communication unit 52 may broadcast an allocation candidate IP address acquisition request including the IP address stored in the memory 34 in S26 of FIG.

(変形例7)MFP10は、有線LANを介して、DHCPサーバからIPアドレスを受信してもよい。本変形例では、有線LANが「第1の通信経路」の一例である。あるいは、MFP10は、有線LANを介して、通話デバイス70と通信を実行してもよい。本変形例では、有線LANが「第2の通信経路」の一例である。第1の通信経路を介した通信と第2の通信経路を介した通信とは、通信を実行する際に、通信装置が用いる設定情報が異なる通信であってもよい。あるいは、第1の通信経路を介した通信と第2の通信経路を介した通信とは、通信装置が通信を実行する際に用いられるインターフェースが異なる通信であってもよい。 (Modification 7) The MFP 10 may receive an IP address from a DHCP server via a wired LAN. In this modification, the wired LAN is an example of a “first communication path”. Alternatively, the MFP 10 may execute communication with the telephone device 70 via a wired LAN. In the present modification, the wired LAN is an example of a “second communication path”. The communication via the first communication path and the communication via the second communication path may be communication in which setting information used by the communication device is different when executing communication. Alternatively, the communication via the first communication path and the communication via the second communication path may be communication using different interfaces used when the communication device executes communication.

(変形例8)「通信装置」は、MFP10以外に、プリンタ、スキャナ、携帯端末等であってもよい。また、「通信装置」は、通話デバイス70以外に、プリンタ、スキャナ、携帯端末等であってもよい。 (Modification 8) The “communication device” may be a printer, a scanner, a portable terminal, or the like in addition to the MFP 10. Further, the “communication device” may be a printer, a scanner, a portable terminal, or the like in addition to the call device 70.

(変形例9)また、上記の実施例では、MFP10の各部52〜58は、CPU32がプログラム44を実行することによって実現される。これに代えて、各部52〜58のうちの少なくとも一部は、論理回路等のハードウェアによって実現されてもよい。同様に、上記の実施例では、通話デバイス70の各部102〜108は、CPU82がプログラム96を実行することによって実現される。これに代えて、各部102〜108のうちの少なくとも一部は、論理回路等のハードウェアによって実現されてもよい。 (Modification 9) In the above-described embodiment, the units 52 to 58 of the MFP 10 are realized by the CPU 32 executing the program 44. Instead, at least a part of each of the units 52 to 58 may be realized by hardware such as a logic circuit. Similarly, in the above-described embodiment, the units 102 to 108 of the call device 70 are realized by the CPU 82 executing the program 96. Instead, at least a part of each of the units 102 to 108 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:無線通信システム、6:アクセスポイント、7:FAX通信システム、9:ルータ、10:MFP、36:指定設定格納領域、38:初期設定格納領域、39:アドレス情報格納領域、42:対象設定格納領域、52:第1の通信部、54:第2の通信部、56:記憶制御部、58:切替部、70:通話デバイス、86:指定設定格納領域、88:初期設定格納領域、92:対象設定格納領域、102:第1の通信部、104:第2の通信部、106:記憶制御部、108:切替部 2: wireless communication system, 6: access point, 7: FAX communication system, 9: router, 10: MFP, 36: designated setting storage area, 38: initial setting storage area, 39: address information storage area, 42: target setting Storage area, 52: first communication section, 54: second communication section, 56: storage control section, 58: switching section, 70: call device, 86: designated setting storage area, 88: initial setting storage area, 92 : Target setting storage area, 102: first communication unit, 104: second communication unit, 106: storage control unit, 108: switching unit

Claims (10)

第1の通信経路を介して、他の通信装置にIPアドレスを提供するための複数のサーバと通信可能であって、前記第1の通信経路と異なる第2の通信経路を介して、特定の通信装置と通信可能である、通信装置であって、
前記第1の通信経路を介して、前記複数のサーバのそれぞれから、当該サーバに関係するアドレス情報と、前記通信装置に付与するためのIPアドレスと、を受信する第1の通信部と、
前記複数のサーバのうちの1つのサーバから受信される特定のアドレス情報を、メモリに格納する記憶制御部であって、前記1つのサーバから受信される特定のIPアドレスを、前記通信装置に付与するIPアドレスとして前記メモリに格納する前記記憶制御部と、
前記第2の通信経路を介して、前記メモリ内の前記特定のアドレス情報を、前記通信装置と異なる前記特定の通信装置に送信する第2の通信部と、を備える通信装置。
It is possible to communicate with a plurality of servers for providing IP addresses to other communication devices via the first communication path, and a specific communication is performed via a second communication path different from the first communication path. A communication device capable of communicating with a communication device,
A first communication unit that receives address information related to the server and an IP address to be given to the communication device from each of the plurality of servers via the first communication path;
A storage control unit that stores, in a memory, specific address information received from one of the plurality of servers, and assigns a specific IP address received from the one server to the communication device The storage control unit for storing in the memory as an IP address to be
And a second communication unit that transmits the specific address information in the memory to the specific communication device different from the communication device via the second communication path.
前記特定のアドレス情報は、前記1つのサーバに固有に付与されているアドレスを含む、請求項1に記載の通信装置。   The communication device according to claim 1, wherein the specific address information includes an address uniquely assigned to the one server. 前記第1の通信経路を介して前記複数のサーバと通信可能であると共に、前記第2の通信経路を介して前記特定の通信装置と通信可能でない第1の通信状態と、前記第2の通信経路を介して前記特定の通信装置と通信可能であると共に、前記第1の通信経路を介して前記複数のサーバと通信可能でない第2の通信状態と、のいずれかに、前記通信装置の状態を切り替える切替部を、さらに備え、
前記切替部は、前記第1の通信経路を介して、前記1つのサーバから前記特定のアドレス情報が受信された後に、前記通信装置の状態を、前記第1の通信状態から前記第2の通信状態に切り替え、
前記第2の通信部は、前記通信装置の状態が前記第2の通信状態に切り替えられた後に、前記第2の通信経路を介して、前記特定のアドレス情報を、前記特定の通信装置に送信する、請求項1又は2に記載の通信装置。
A first communication state capable of communicating with the plurality of servers via the first communication path and not communicable with the specific communication device via the second communication path; and the second communication. A state of the communication device in any one of a second communication state in which communication with the specific communication device is possible via a path and communication with the plurality of servers is not possible via the first communication route A switching unit for switching between
The switching unit changes the state of the communication device from the first communication state to the second communication after the specific address information is received from the one server via the first communication path. Switch to the state,
The second communication unit transmits the specific address information to the specific communication device via the second communication path after the state of the communication device is switched to the second communication state. The communication device according to claim 1 or 2.
前記切替部は、前記特定のアドレス情報が送信された後に、前記通信装置の状態を、前記第2の通信状態から前記第1の通信状態に切り替え、
前記第1の通信部は、前記通信装置の状態が前記第1の通信状態に切り替えられた後に、前記通信装置が前記特定のIPアドレスを付与されたことを示す情報を、前記第1の通信経路を介して、前記1つのサーバに送信する、請求項3に記載の通信装置。
The switching unit switches the state of the communication device from the second communication state to the first communication state after the specific address information is transmitted,
The first communication unit receives information indicating that the communication device has been assigned the specific IP address after the state of the communication device is switched to the first communication state. The communication apparatus according to claim 3, wherein the communication apparatus transmits to the one server via a route.
前記第2の通信部は、前記特定のアドレス情報を、前記特定の通信装置に送信する際に、前記特定の通信装置が、アクセスポイントと無線通信を実行するための設定情報を、前記特定の通信装置に送信し、
前記切替部は、前記特定のアドレス情報と前記設定情報とが送信された後に、前記通信装置の状態を、前記第2の通信状態から前記第1の通信状態に切り替える、請求項3又は4に記載の通信装置。
When the second communication unit transmits the specific address information to the specific communication device, setting information for the specific communication device to perform wireless communication with the access point is set to the specific communication device. To the communication device,
The switching unit switches the state of the communication device from the second communication state to the first communication state after the specific address information and the setting information are transmitted. The communication device described.
前記第1の通信部は、前記アドレス情報を送信させるための信号を、前記複数のサーバに送信し、
前記記憶制御部は、前記信号が送信された後に前記複数のサーバのそれぞれからの受信される前記アドレス情報のうち、最初に受信されるアドレス情報を、前記特定のアドレス情報として、前記メモリに格納させる、請求項1から5のいずれか一項に記載の通信装置。
The first communication unit transmits a signal for transmitting the address information to the plurality of servers,
The storage control unit stores address information received first among the address information received from each of the plurality of servers after the signal is transmitted as the specific address information in the memory. The communication device according to any one of claims 1 to 5, wherein:
第1の通信経路を介して、他の通信装置にIPアドレスを提供するための複数のサーバと通信可能であって、前記第1の通信経路と異なる第2の通信経路を介して、特定の通信装置と通信可能である、通信装置のためのコンピュータプログラムであって、
前記コンピュータプログラムは、前記通信装置に、
前記第1の通信経路を介して、前記複数のサーバのそれぞれから、当該サーバに関係するアドレス情報と、前記通信装置に付与するためのIPアドレスと、を受信する第1の通信処理と、
前記複数のサーバのうちの1つのサーバから受信される特定のアドレス情報を、メモリに格納する記憶制御処理であって、前記1つのサーバから受信される第1のIPアドレスを、前記通信装置に付与するIPアドレスとして前記メモリに格納する前記記憶制御処理と、
前記第2の通信経路を介して、前記メモリ内の前記特定のアドレス情報を、前記通信装置と異なる特定の通信装置に送信する第2の通信処理と、を備えるコンピュータプログラム。
It is possible to communicate with a plurality of servers for providing IP addresses to other communication devices via the first communication path, and a specific communication is performed via a second communication path different from the first communication path. A computer program for a communication device capable of communicating with the communication device,
The computer program is stored in the communication device.
A first communication process for receiving address information related to the server and an IP address to be given to the communication device from each of the plurality of servers via the first communication path;
A storage control process for storing, in a memory, specific address information received from one of the plurality of servers, wherein the first IP address received from the one server is stored in the communication device. The storage control process for storing in the memory as an IP address to be assigned;
A computer program comprising: a second communication process for transmitting the specific address information in the memory to a specific communication device different from the communication device via the second communication path.
第1の通信経路を介して、他の通信装置にIPアドレスを提供するための複数のサーバと通信可能であって、前記第1の通信経路と異なる第2の通信経路を介して、特定の通信装置と通信可能である通信装置であって、
前記第1の通信経路を介して、前記複数のサーバのそれぞれから、当該サーバに関係するアドレス情報と、前記通信装置に付与するためのIPアドレスと、を受信する第1の通信部と、
前記第2の通信経路を介して、特定の通信装置から、前記複数のサーバのうちの1つのサーバに関係する特定のアドレス情報を受信する第2の通信部と、
前記特定のアドレス情報と、前記複数のサーバのそれぞれから受信されるアドレス情報と、を用いて、前記複数のサーバから受信されるIPアドレスのうち、前記特定のアドレス情報に関係する前記1つのサーバから受信されるIPアドレスを、前記通信装置に付与するIPアドレスとしてメモリに格納する記憶制御部と、を備える通信装置。
It is possible to communicate with a plurality of servers for providing IP addresses to other communication devices via the first communication path, and a specific communication is performed via a second communication path different from the first communication path. A communication device capable of communicating with a communication device,
A first communication unit that receives address information related to the server and an IP address to be given to the communication device from each of the plurality of servers via the first communication path;
A second communication unit that receives specific address information related to one of the plurality of servers from a specific communication device via the second communication path;
The one server related to the specific address information among the IP addresses received from the plurality of servers using the specific address information and the address information received from each of the plurality of servers. A storage control unit that stores an IP address received from the memory as an IP address to be assigned to the communication device.
前記第1の通信経路を介して前記複数のサーバと通信可能であると共に、前記第2の通信経路を介して前記特定の通信装置と通信可能でない第1の通信状態と、前記第2の通信経路を介して前記特定の通信装置と通信可能であると共に、前記第1の通信経路を介して前記複数のサーバと通信可能でない第2の通信状態と、のいずれかに、前記通信装置の状態を切り替える切替部を、さらに備え、
前記切替部は、前記第2の通信経路を介して、前記特定の通信装置から、前記特定のアドレス情報が受信された後に、前記通信装置の状態を、前記第2の通信状態から前記第1の通信状態に切り替え、
前記第1の通信部は、前記通信装置の状態が前記第1の通信状態に切り替えられた後に、前記第1の通信経路を介して、前記複数のサーバのそれぞれから、前記IPアドレスを受信する、請求項8に記載の通信装置。
A first communication state capable of communicating with the plurality of servers via the first communication path and not communicable with the specific communication device via the second communication path; and the second communication. A state of the communication device in any one of a second communication state in which communication with the specific communication device is possible via a path and communication with the plurality of servers is not possible via the first communication route A switching unit for switching between
The switching unit changes the state of the communication device from the second communication state to the first after the specific address information is received from the specific communication device via the second communication path. Switch to the communication status of
The first communication unit receives the IP address from each of the plurality of servers via the first communication path after the state of the communication device is switched to the first communication state. The communication apparatus according to claim 8.
前記複数のサーバのうちの第1のサーバから、前記通信装置に付与するための第1のIPアドレスが受信された後に、前記複数のサーバのうちの第2のサーバから、前記通信装置に付与するための第2のIPアドレスが受信される場合に、
前記記憶制御部は、
前記第1のサーバに関係するアドレス情報が前記特定のアドレス情報を含まず、かつ、前記第2のサーバに関係するアドレス情報が前記特定のアドレス情報を含む場合に、
前記2のIPアドレスを、前記通信装置に付与する前記IPアドレスとして前記メモリに格納する、請求項8又は9に記載の通信装置。
After the first IP address to be assigned to the communication device is received from the first server of the plurality of servers, the second server of the plurality of servers is assigned to the communication device. When a second IP address for receiving is received,
The storage control unit
When the address information related to the first server does not include the specific address information, and the address information related to the second server includes the specific address information,
The communication device according to claim 8 or 9, wherein the second IP address is stored in the memory as the IP address to be assigned to the communication device.
JP2012216549A 2012-09-28 2012-09-28 Communication device Pending JP2014072655A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012216549A JP2014072655A (en) 2012-09-28 2012-09-28 Communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012216549A JP2014072655A (en) 2012-09-28 2012-09-28 Communication device

Publications (1)

Publication Number Publication Date
JP2014072655A true JP2014072655A (en) 2014-04-21

Family

ID=50747501

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012216549A Pending JP2014072655A (en) 2012-09-28 2012-09-28 Communication device

Country Status (1)

Country Link
JP (1) JP2014072655A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018037830A (en) * 2016-08-31 2018-03-08 セイコーエプソン株式会社 Printer and control method of printer

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018037830A (en) * 2016-08-31 2018-03-08 セイコーエプソン株式会社 Printer and control method of printer

Similar Documents

Publication Publication Date Title
US9986591B2 (en) Function execution apparatus
JP5711292B2 (en) Scalable wireless LAN gateway
JP5857850B2 (en) Communication device
JP5994261B2 (en) Communication device
JP5945934B2 (en) Wireless communication device
JP5820106B2 (en) Communication apparatus and control method thereof
US8954508B2 (en) Communication apparatus, control method of communication apparatus, communication system, and program
JP2019525518A (en) Method for establishing a network cluster between networked devices
JP5950699B2 (en) COMMUNICATION DEVICE AND ITS CONTROL METHOD
WO2016189613A1 (en) Wireless communication terminal, wireless communication system, wireless communication method and program
JP2019097106A (en) Communication device, control method of the same, and program
JP2014072767A (en) Communication apparatus
JP2014072655A (en) Communication device
JP2005136591A (en) Method and program of setting communication environment
JP5040949B2 (en) Communication device, access point and address providing system.
JP5915314B2 (en) Communication device
JP6183445B2 (en) Communication device
KR102312563B1 (en) Information processing apparatus for data communication with external apparatus and control method for the same, and storage medium
JP6269752B2 (en) Communication device
JP4479494B2 (en) Document processing system
JP2020088712A (en) Communication device and control method thereof
JP6101124B2 (en) COMMUNICATION DEVICE, ITS CONTROL METHOD, PROGRAM
JP6662478B2 (en) Communication device and mobile terminal
JP6601463B2 (en) Communication device
JP2013183446A (en) Fax machine