JP6237860B2 - Communication device - Google Patents

Communication device Download PDF

Info

Publication number
JP6237860B2
JP6237860B2 JP2016210326A JP2016210326A JP6237860B2 JP 6237860 B2 JP6237860 B2 JP 6237860B2 JP 2016210326 A JP2016210326 A JP 2016210326A JP 2016210326 A JP2016210326 A JP 2016210326A JP 6237860 B2 JP6237860 B2 JP 6237860B2
Authority
JP
Japan
Prior art keywords
communication
mode
mfp
nfc
state
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.)
Active
Application number
JP2016210326A
Other languages
Japanese (ja)
Other versions
JP2017038402A (en
Inventor
宗久 松田
宗久 松田
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 JP2016210326A priority Critical patent/JP6237860B2/en
Publication of JP2017038402A publication Critical patent/JP2017038402A/en
Application granted granted Critical
Publication of JP6237860B2 publication Critical patent/JP6237860B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本明細書によって開示される技術は、通信装置に関する。   The technology disclosed by this specification is related with a communication apparatus.

特許文献1には、近接無線通信デバイスを備える電子機器が開示されている。近接無線通信デバイスは、InitiatorモードとResponderモードとを所定のタイミングで自動的に切り替える。特許文献1では、近接無線通信デバイスは、電子機器に接続される電源の状態に応じて、Initiatorモードで動作する時間とResponderモードで動作する時間の割合を変化させる。   Patent Document 1 discloses an electronic device including a proximity wireless communication device. The close proximity wireless transfer device automatically switches between the initiator mode and the responder mode at a predetermined timing. In Patent Document 1, the proximity wireless communication device changes the ratio of the time for operating in the initiator mode and the time for operating in the responder mode according to the state of the power supply connected to the electronic device.

特開2011−44092号公報JP 2011-44092 A

電子機器の状態に応じて適切に電子機器を動作させ得る新規の手法が求められている。   There is a need for a new technique that can appropriately operate an electronic device according to the state of the electronic device.

本明細書では、通信装置の状態に応じて適切に動作し得る新規な通信装置を提供する。   The present specification provides a novel communication device that can operate appropriately according to the state of the communication device.

本明細書によって開示される一つの技術は、通信装置である。通信装置は、NFC(Near Field Communicationの略)規格に従った通信方式であるNFC方式で通信を実行するためのNFCインターフェースと、制御部と、を備える。制御部は、第1の判断部と、モード設定部と、送信部と、第1の通信制御部と、を備える。第1の判断部は、通信装置の状態が、通信装置に予め記憶されている特定のデータが外部に送信されるべき第1の状態であるか否かを判断する。モード設定部は、通信装置の状態が第1の状態であると判断される場合に、通信装置の動作モードをNFC規格のCE(Card Emulationの略)モードに設定し、通信装置の状態が第1の状態でないと判断される場合に、通信装置の動作モードをCEモードとは異なるNFC規格の第1のモードに設定する。送信部は、通信装置の動作モードがCEモードに設定されている状態で、通信装置と第1の外部装置との間に第1種の通信リンクが確立される場合に、第1種の通信リンクを利用して、特定のデータを第1の外部装置に送信する。第1種の通信リンクは、通信装置がCEモードで動作すると共に、第1の外部装置がNFC規格のReaderモードで動作して、NFCインターフェースを介してデータ通信が実行されるべき通信リンクである。第1の通信制御部は、通信装置の動作モードが第1のモードに設定されている状態で、通信装置と第2の外部装置との間に第2種の通信リンクが確立される場合に、第2種の通信リンクを利用して、特定のデータとは異なる通信対象のデータを第2の外部装置と通信する。第2種の通信リンクは、通信装置が第1のモードで動作すると共に、第2の外部装置がNFC規格の第2のモードで動作して、NFCインターフェースを介してデータ通信が実行されるべき通信リンクである。   One technique disclosed by this specification is a communication device. The communication device includes an NFC interface for executing communication in the NFC method, which is a communication method in accordance with the NFC (Near Field Communication) standard, and a control unit. The control unit includes a first determination unit, a mode setting unit, a transmission unit, and a first communication control unit. The first determination unit determines whether or not the state of the communication device is a first state in which specific data stored in advance in the communication device is to be transmitted to the outside. When it is determined that the state of the communication device is the first state, the mode setting unit sets the operation mode of the communication device to a CE (abbreviation for Card Emulation) mode of the NFC standard, and the state of the communication device is the first state. When it is determined that the state is not 1, the operation mode of the communication apparatus is set to the first mode of the NFC standard different from the CE mode. The transmission unit transmits the first type of communication when the first type of communication link is established between the communication device and the first external device while the operation mode of the communication device is set to the CE mode. The specific data is transmitted to the first external device using the link. The first type of communication link is a communication link in which the communication device operates in the CE mode and the first external device operates in the Reader mode of the NFC standard, and data communication is to be executed via the NFC interface. . The first communication control unit is configured when the second type communication link is established between the communication device and the second external device in a state where the operation mode of the communication device is set to the first mode. The communication target data different from the specific data is communicated with the second external device using the second type communication link. In the second type of communication link, the communication device operates in the first mode and the second external device operates in the second mode of the NFC standard, and data communication should be performed via the NFC interface. It is a communication link.

上記の構成によると、通信装置は、通信装置の状態が、特定のデータが外部に送信されるべき第1の状態であるか否かを判断する。通信装置は、通信装置の状態が第1の状態であると判断される場合に、通信装置の動作モードをNFC規格のCE(Card Emulationの略)モードに設定し、通信装置の状態が第1の状態でないと判断される場合に、通信装置の動作モードをCEモードとは異なるNFC規格の第1のモードに設定する。続いて、通
信装置と第1の外部装置との間に第1種の通信リンクが確立される場合に、通信装置は、第1種の通信リンクを利用して、特定のデータを第1の外部装置に送信する。一方、通信装置と第2の外部装置との間に第2種の通信リンクが確立される場合に、通信装置は、第2種の通信リンクを利用して、特定のデータとは異なる通信対象のデータを第2の外部装置と通信する。即ち、上記の通信装置は、通信装置の状態が第1の状態であると判断されるか否かに応じて、適切な動作モード(CEモード又は第1のモード)で動作し得る。その結果、通信装置は、第1又は第2の外部装置との間で、通信装置の動作モードに応じた適切な通信を実行し得る。従って、上記の通信装置は、通信装置の状態に応じて適切に動作し得る。
According to said structure, a communication apparatus judges whether the state of a communication apparatus is a 1st state with which specific data should be transmitted outside. When it is determined that the state of the communication device is the first state, the communication device sets the operation mode of the communication device to a CE (abbreviation for Card Emulation) mode of the NFC standard, and the state of the communication device is the first state. When it is determined that the state is not the state, the operation mode of the communication apparatus is set to the first mode of the NFC standard different from the CE mode. Subsequently, when the first type of communication link is established between the communication device and the first external device, the communication device uses the first type of communication link to transfer specific data to the first type. Send to external device. On the other hand, when the second type communication link is established between the communication device and the second external device, the communication device uses the second type communication link to communicate with different data. Are communicated with the second external device. That is, the communication device can operate in an appropriate operation mode (CE mode or first mode) depending on whether or not the state of the communication device is determined to be the first state. As a result, the communication device can execute appropriate communication according to the operation mode of the communication device with the first or second external device. Therefore, the communication device described above can operate appropriately according to the state of the communication device.

モード設定部は、通信装置の状態が第1の状態でないと判断される場合に、通信装置の動作モードを、第1のモードであるNFC規格のP2P(Peerto Peerの略)モードに設定し、第1の通信制御部は、通信装置の動作モードがP2Pモードに設定されている状態で、通信装置と第2の外部装置との間に第2種の通信リンクが確立される第1の場合に、第2種の通信リンクを利用して、通信対象のデータとして第1のデータの双方向通信を第2の外部装置と実行し、第1の場合に、第2種の通信リンクは、通信装置がP2Pモードで動作すると共に、第2の外部装置がP2Pモードで動作して、NFCインターフェースを介してデータ通信が実行されるべき通信リンクであってもよい。
制御部は、さらに、通信装置の状態が第1の状態とは異なる第2の状態であるか否かを判断する第2の判断部であって、第2の状態は、第2のデータが外部から受信されるべき状態である、第2の判断部を備え、モード設定部は、通信装置の状態が第1の状態でないと判断され、かつ、通信装置の状態が第2の状態であると判断される場合に、通信装置の動作モードをNFC規格のReaderモードに設定し、第1の通信制御部は、通信装置の動作モードがReaderモードに設定されている状態で、通信装置と第2の外部装置との間に第2種の通信リンクが確立される第2の場合に、第2種の通信リンクを利用して、第2の外部装置から通信対象のデータとして第2のデータを受信し、第2の場合に、第2種の通信リンクは、通信装置がReaderモードで動作すると共に、第2の外部装置がCEモードで動作して、NFCインターフェースを介してデータ通信が実行されるべき通信リンクであってもよい。
制御部は、さらに、通信装置の動作モードがReaderモードに設定されている状態で、NFCインターフェースの通信範囲内に、NFC規格のP2P(Peer to Peerの略)モードで動作する第3の外部装置が存在することが検出される場合に、通信装置の動作モードをReaderモードからP2Pモードに変更する変更部と、通信装置の動作モードがReaderモードからP2Pモードに変更された後に、通信装置と第3の外部装置との間に第3種の通信リンクが確立される場合に、第3種の通信リンクを利用して、双方向通信を第3の外部装置と実行する第2の通信制御部と、を備え、第3種の通信リンクは、通信装置がP2Pモードで動作すると共に、第3の外部装置がP2Pモードで動作して、NFCインターフェースを介してデータ通信が実行されるべき通信リンクであってもよい。
制御部は、さらに、通信装置の状態が第1の状態とは異なる第3の状態であるか否かを判断する第3の判断部であって、第3の状態は、通信装置によって取得される第3のデータが外部に送信されるべき状態である、第3の判断部を備え、モード設定部は、通信装置の状態が第1の状態でないと判断され、かつ、通信装置の状態が第3の状態であると判断される場合に、通信装置の動作モードをNFC規格のWriterモードに設定し、第1の通信制御部は、通信装置の動作モードがWriterモードに設定されている状態で、通信装置と第2の外部装置との間に第2種の通信リンクが確立される第3の場合に、第2種の通信リンクを利用して、通信対象のデータとして第3のデータを第2の外部装置に送信し、第3の場合に、第2種の通信リンクは、通信装置が前記Writerモードで動作すると共に、第2の外部装置がCEモードで動作して、NFCインターフェースを介してデータ通信が実行されるべき通信リンクであってもよい。
制御部は、さらに、通信装置の動作モードがWriterモードに設定されている状態で、NFCインターフェースの通信範囲内に、NFC規格のP2P(Peer to Peerの略)モードで動作する第3の外部装置が存在することが検出される場合に、通信装置の動作モードをWriterモードからP2Pモードに変更する変更部と、通信装置の動作モードがWriterモードからP2Pモードに変更された後に、通信装置と第3の外部装置との間に第3種の通信リンクが確立される場合に、第3種の通信リンクを利用して、双方向通信を第3の外部装置と実行する第2の通信制御部と、を備え、第3種の通信リンクは、通信装置がP2Pモードで動作すると共に、第3の外部装置がP2Pモードで動作して、NFCインターフェースを介してデータ通信が実行されるべき通信リンクであってもよい。
制御部は、さらに、通信装置の動作モードがCEモードに設定されている状態で、通信装置と第4の外部装置との間に第4種の通信リンクが確立される場合に、第4種の通信リンクを利用して、第4の外部装置から、特定の機能を通信装置に実行させるための要求を受信する受信部であって、第4種の通信リンクは、通信装置がCEモードで動作すると共に、第4の外部装置がNFC規格のWriterモードで動作して、NFCインターフェースを介してデータ通信が実行されるべき通信リンクである、受信部と、第4の外部装置から要求が受信される場合に、通信装置の動作モードをCEモードからP2Pモードに変更する変更部と、通信装置の動作モードがCEモードからP2Pモードに変更された後に、通信装置と第4の外部装置との間に第5種の通信リンクが確立される場合に、第5種の通信リンクを利用して、双方向通信を第4の外部装置と実行する第3の通信制御部と、を備えてもよい。
第1の状態は、通信装置が少なくとも1つの機能を実行不可能であるエラー状態を含み、特定のデータは、エラー状態を解消させるための手法を示すウェブページの位置情報を含んでもよい。
第1の状態は、特定のアプリケーションプログラムを外部装置にダウンロードさせるべき状態を含み、特定のデータは、外部装置が特定のアプリケーションをダウンロードするための位置情報を含んでもよい。
なお、上記の通信装置を実現するための制御方法、コンピュータプログラム、及び、当該コンピュータプログラムを格納するコンピュータ読取可能記録媒体も、新規で有用である。また、上記の通信装置と、第1から第4の外部装置のうちの少なくとも1つとを含む通信システムも、新規で有用である。
When it is determined that the state of the communication device is not the first state, the mode setting unit sets the operation mode of the communication device to an NFC standard P2P (abbreviation of Peerto Peer) mode which is the first mode, The first communication control unit is a first case where the second type communication link is established between the communication device and the second external device in a state where the operation mode of the communication device is set to the P2P mode. In addition, by using the second type communication link, bidirectional communication of the first data as communication target data is executed with the second external device. In the first case, the second type communication link is: The communication device may be a communication link that operates in the P2P mode and the second external device operates in the P2P mode, and data communication is to be performed via the NFC interface.
The control unit is further a second determination unit that determines whether or not the state of the communication device is a second state different from the first state, wherein the second state includes the second data A second determination unit that is in a state to be received from the outside is provided, the mode setting unit determines that the state of the communication device is not the first state, and the state of the communication device is the second state The first communication control unit sets the operation mode of the communication device to the reader mode of the NFC standard, and the first communication control unit sets the operation mode of the communication device to the reader mode in the state where the operation mode of the communication device is set to the reader mode. In the second case where the second type communication link is established with the two external devices, the second type data is transmitted from the second external device as the communication target data using the second type communication link. In the second case, the second type communication link is a communication device. While operating in the Reader mode, the second external device is operating in CE mode, may be a communication link to the data communication via the NFC interface is executed.
The controller further includes a third external device that operates in the NFC standard P2P (Peer to Peer) mode within the communication range of the NFC interface in a state where the operation mode of the communication device is set to the Reader mode. When the presence of the communication device is detected, a change unit that changes the operation mode of the communication device from the Reader mode to the P2P mode, and after the operation mode of the communication device is changed from the Reader mode to the P2P mode, 2nd communication control part which performs bidirectional | two-way communication with a 3rd external device using a 3rd type communication link, when a 3rd type communication link is established between 3 external devices The third type communication link includes a communication device that operates in the P2P mode and a third external device that operates in the P2P mode. Data communication may be a communication link to be performed.
The control unit is a third determination unit that determines whether the state of the communication device is a third state different from the first state, and the third state is acquired by the communication device. A third determination unit that is in a state in which the third data is to be transmitted to the outside, the mode setting unit determines that the state of the communication device is not the first state, and the state of the communication device is When it is determined to be in the third state, the operation mode of the communication device is set to the writer mode of the NFC standard, and the first communication control unit is in a state where the operation mode of the communication device is set to the writer mode Then, in the third case where the second type communication link is established between the communication device and the second external device, the third data is used as the data to be communicated using the second type communication link. To the second external device, and in the third case, the second type Shin link with the communication device operates in the Writer mode, the second external device is operating in CE mode, may be a communication link to the data communication via the NFC interface is executed.
The control unit further includes a third external device that operates in a P2P (abbreviation of Peer to Peer) mode of the NFC standard within the communication range of the NFC interface while the operation mode of the communication device is set to the writer mode. When the operation mode of the communication device is changed from the writer mode to the P2P mode, the communication device and the communication device 2nd communication control part which performs bidirectional | two-way communication with a 3rd external device using a 3rd type communication link, when a 3rd type communication link is established between 3 external devices The third type communication link includes a communication device that operates in the P2P mode and a third external device that operates in the P2P mode. Data communication may be a communication link to be performed.
The control unit further includes the fourth type communication link when the fourth type communication link is established between the communication device and the fourth external device in a state where the operation mode of the communication device is set to the CE mode. Using the communication link, a receiver for receiving a request for causing the communication device to execute a specific function from the fourth external device, wherein the communication device is in the CE mode. A request is received from the receiving unit and the fourth external device, which is a communication link in which the fourth external device operates in the NFC standard writer mode and data communication is to be performed via the NFC interface. A change unit that changes the operation mode of the communication device from the CE mode to the P2P mode, and the communication device and the fourth external device after the operation mode of the communication device is changed from the CE mode to the P2P mode. A third communication control unit that executes bidirectional communication with the fourth external device by using the fifth type communication link when the fifth type communication link is established between them. Good.
The first state may include an error state where the communication device cannot perform at least one function, and the specific data may include web page location information indicating a technique for resolving the error state.
The first state may include a state in which a specific application program is to be downloaded to an external device, and the specific data may include location information for the external device to download a specific application.
Note that a control method, a computer program, and a computer-readable recording medium storing the computer program for realizing the communication device are also novel and useful. A communication system including the communication device and at least one of the first to fourth external devices is also novel and useful.

通信システムの構成を示す。1 shows a configuration of a communication system. MFPの通信処理のフローチャートを示す。3 shows a flowchart of MFP communication processing. MFPのCEモード処理のフローチャートを示す。6 shows a flowchart of a CE mode process of the MFP. MFPのWriterモード処理のフローチャートを示す。6 shows a flowchart of a writer mode process of the MFP. MFPのReaderモード処理のフローチャートを示す。5 shows a flowchart of a reader mode process of the MFP. MFPのP2Pモード処理のフローチャートを示す。6 shows a flowchart of P2P mode processing of the MFP. MFPがCEモードで動作する場合の通信のシーケンスチャートを示す。6 shows a sequence chart of communication when the MFP operates in the CE mode. MFPがWriterモードで動作する場合の通信のシーケンスチャートを示す。6 shows a communication sequence chart when the MFP operates in the writer mode. MFPがReaderモードで動作する場合の通信のシーケンスチャートを示す。2 shows a communication sequence chart when an MFP operates in a Reader mode. MFPがP2Pモードで動作する場合の通信のシーケンスチャートを示す。2 shows a communication sequence chart when an MFP operates in a P2P mode.

(実施例)
(通信システム2の構成;図1)
図1に示すように、通信システム2は、AP(Access Pointの略)6と、PC(Personal Computerの略)8と、多機能機(以下では「MFP(Multi-Function Peripheralの略)」と呼ぶ)10と、携帯端末50、80と、認証カード100と、を備える。MFP10と携帯端末50、80と認証カード100とは、それぞれ、NFC規格の通信方式(即ちNFC方式)の通信を実行可能である。近距離無線通信は、NFC方式に従った無線通信である。本実施例では、ISO/IEC21481又はISO/IEC18092の国際標準規格に基づいて、NFC方式の無線通信が実行される。
(Example)
(Configuration of communication system 2; FIG. 1)
As shown in FIG. 1, the communication system 2 includes an AP (abbreviation for Access Point) 6, a PC (abbreviation for Personal Computer) 8, and a multi-function device (hereinafter, “MFP (abbreviation for Multi-Function Peripheral)”. 10), portable terminals 50 and 80, and an authentication card 100. The MFP 10, the portable terminals 50 and 80, and the authentication card 100 can each perform communication using the NFC standard communication method (that is, the NFC method). Near field communication is wireless communication according to the NFC system. In the present embodiment, NFC wireless communication is executed based on the international standard of ISO / IEC21481 or ISO / IEC18092.

また、PC8とMFP10と携帯端末50、80とは、それぞれ、後述のWi−Fi Directの方式(以下では「WFD方式」と呼ぶ)に従った無線通信を実行可能である。WFD方式では、IEEE(The Institute of Electrical and Electronics Engineers, Inc.)の802.11の規格、及び、それに準ずる規格(例えば802.11a,
11b,11g,11n等)に基づいて、無線通信が実行される。NFC方式とWFD方式とは、無線通信方式(即ち無線通信の規格)が異なる。また、WFD方式の無線通信の通信速度は、NFC方式の無線通信の通信速度よりも速い。
Further, the PC 8, the MFP 10, and the portable terminals 50 and 80 can execute wireless communication in accordance with a Wi-Fi Direct method (hereinafter referred to as “WFD method”), which will be described later. In the WFD system, the IEEE standard of IEEE (The Institute of Electrical and Electronics Engineers, Inc.) and a standard equivalent thereto (for example, 802.11a,
11b, 11g, 11n, etc.) wireless communication is executed. The NFC system and the WFD system are different in wireless communication system (that is, wireless communication standard). The communication speed of WFD wireless communication is faster than the communication speed of NFC wireless communication.

例えば、MFP10は、WFD方式に従って、携帯端末50との接続(以下では「WF
D接続」と呼ぶ)を確立することによって、WFDネットワークを構築することができる。同様に、MFP10は、PC8とのWFD接続を確立することによって、WFDネットワークを構築することができる。
For example, the MFP 10 connects to the portable terminal 50 according to the WFD method (hereinafter referred to as “WF”).
A WFD network can be established by establishing a D connection). Similarly, the MFP 10 can establish a WFD network by establishing a WFD connection with the PC 8.

PC8とMFP10と携帯端末50、80とは、さらに、WFD方式に従った無線通信とは異なる通常Wi−Fiに従った無線通信を実行可能である。一般的に言うと、通常Wi−Fiに従った無線通信とは、AP6が利用される無線通信であり、WFD方式に従った無線通信とは、AP6が利用されない無線通信である。例えば、MFP10は、通常Wi−Fiに従って、AP6との接続(以下では「通常Wi−Fi接続」と呼ぶ)を確立することによって、通常Wi−Fiネットワークに属することができる。MFP10は、AP6を介して、通常Wi−Fiネットワークに属している他のデバイス(例えばPC8、携帯端末50)と無線通信を実行することができる。また、NFC方式と通常Wi−Fiとは、無線通信方式(即ち無線通信の規格)が異なる。また、通常Wi−Fiの無線通信の通信速度は、NFC方式の無線通信の通信速度よりも速い。   The PC 8, the MFP 10, and the portable terminals 50 and 80 can further perform wireless communication according to normal Wi-Fi, which is different from wireless communication according to the WFD scheme. Generally speaking, the normal wireless communication in accordance with Wi-Fi is a wireless communication in which AP6 is used, and the wireless communication in accordance with the WFD method is a wireless communication in which AP6 is not used. For example, the MFP 10 can belong to the normal Wi-Fi network by establishing a connection with the AP 6 (hereinafter referred to as “normal Wi-Fi connection”) according to the normal Wi-Fi. The MFP 10 can execute wireless communication with another device (for example, the PC 8 or the portable terminal 50) belonging to the normal Wi-Fi network via the AP 6. Further, the NFC scheme and normal Wi-Fi are different in wireless communication scheme (that is, wireless communication standard). Further, the communication speed of normal Wi-Fi wireless communication is faster than the communication speed of NFC wireless communication.

(MFP10の構成)
MFP10は、操作部12と、表示部14と、印刷実行部16と、スキャン実行部18と、無線LANインターフェース(以下では、インターフェースのことを「I/F」と記載する)20と、NFCI/F22と、制御部24と、を備える。操作部12は、複数のキーを備える。ユーザは、操作部12を操作することによって、様々な指示をMFP10に入力することができる。表示部14は、様々な情報を表示するためのディスプレイである。印刷実行部16は、インクジェット方式、レーザ方式等の印刷機構である。スキャン実行部18は、CCD、CIS等のスキャン機構である。
(Configuration of MFP 10)
The MFP 10 includes an operation unit 12, a display unit 14, a print execution unit 16, a scan execution unit 18, a wireless LAN interface (hereinafter referred to as “I / F”) 20, an NFC I / I F22 and the control part 24 are provided. 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.

無線LANI/F20は、制御部24が、WFD方式に従った無線通信と、通常Wi−Fiに従った無線通信と、を実行するためのインターフェースである。無線LANI/F20は、物理的には1個のインターフェースである。但し、無線LANI/F20には、WFD方式に従った無線通信で利用されるMACアドレス(以下では「WFD用MACアドレス」と呼ぶ)と、通常Wi−Fiに従った無線通信で利用されるMACアドレス(以下では「通常Wi−Fi用MACアドレス」と呼ぶ)と、の両方が割り当てられる。より詳細には、無線LANI/F20には、通常Wi−Fi用MACアドレスが、予め割り当てられている。制御部24は、通常Wi−Fi用MACアドレスを用いて、WFD用MACアドレスを生成して、WFD用MACアドレスを無線LANI/F20に割り当てる。WFD用MACアドレスは、通常Wi−Fi用MACアドレスとは異なる。従って、制御部24は、無線LANI/F20を介して、WFD方式に従った無線通信と通常Wi−Fiに従った無線通信との両方を同時的に実行し得る。この結果、MFP10が、WFDネットワークに属していると共に、通常Wi−Fiネットワークに属している状況が成立し得る。なお、変形例では、WFD方式に従った無線通信を実行するためのインターフェースと、通常Wi−Fiに従った無線通信とを実行するためのインターフェースと、が物理的に異なるチップによって構成されていてもよい。   The wireless LAN I / F 20 is an interface for the control unit 24 to execute wireless communication according to the WFD method and wireless communication according to normal Wi-Fi. The wireless LAN I / F 20 is physically one interface. However, the wireless LAN I / F 20 includes a MAC address used in wireless communication in accordance with the WFD method (hereinafter referred to as “MAC address for WFD”) and a MAC address used in wireless communication in accordance with normal Wi-Fi. Both addresses (hereinafter referred to as “normal Wi-Fi MAC addresses”) are assigned. More specifically, a normal Wi-Fi MAC address is pre-assigned to the wireless LAN I / F 20. The control unit 24 uses the normal Wi-Fi MAC address to generate a WFD MAC address and assigns the WFD MAC address to the wireless LAN I / F 20. The WFD MAC address is different from the normal Wi-Fi MAC address. Therefore, the control unit 24 can simultaneously execute both wireless communication in accordance with the WFD scheme and wireless communication in accordance with normal Wi-Fi via the wireless LAN I / F 20. As a result, a situation can be established in which the MFP 10 belongs to the WFD network and also belongs to the normal Wi-Fi network. In the modification, the interface for executing wireless communication in accordance with the WFD method and the interface for executing wireless communication in accordance with normal Wi-Fi are configured by physically different chips. Also good.

なお、ユーザは、操作部12を操作することによって、無線LANI/F20の設定を、WFD方式に従った無線通信を実行可能な設定(以下では「WFDI/F設定がONである」と表現する)と、WFD方式に従った無線通信を実行不可能な設定(以下では「WFDI/F設定がOFFである」と表現する)と、の間で変更することができる。CPU30は、ユーザによって設定されたWFDI/F設定を示す値(ON又はOFF)を、メモリ32に記憶させる。   The user operates the operation unit 12 to express the setting of the wireless LAN I / F 20 as a setting capable of performing wireless communication according to the WFD method (hereinafter, “WFDI / F setting is ON”). ) And a setting incapable of performing wireless communication in accordance with the WFD method (hereinafter referred to as “WFDI / F setting is OFF”). The CPU 30 stores a value (ON or OFF) indicating the WFDI / F setting set by the user in the memory 32.

NFCI/F22は、制御部24が、NFC方式の無線通信を実行するためのインターフェースである。無線LANI/F20とNFCI/F22とは、物理的に異なるチップ
によって構成されている。
The NFC I / F 22 is an interface for the control unit 24 to perform NFC wireless communication. The wireless LAN I / F 20 and the NFC I / F 22 are configured by physically different chips.

なお、無線LANI/F20を介した無線通信の通信速度(例えば、最大の通信速度が11〜600Mbps)は、NFCI/F22を介した無線通信の通信速度(例えば、最大の通信速度が106〜424kbps)よりも速い。さらに、無線LANI/F20を介した無線通信における搬送波の周波数(例えば、2.4GHz帯、5.0GHz帯)は、NFCI/F22を介した無線通信における搬送波の周波数(例えば、13.56MHz帯)とは異なる。また、MFP10と携帯端末50、80との距離がおよそ10cm以下である場合に、CPU30は、NFCI/F22を介して、携帯端末50、80とNFC方式の無線通信を実行可能である。一方において、MFP10と携帯端末50、80との距離が、10cm以下である場合でも、10cm以上である場合(例えば、最大で約100m)でも、CPU30は、無線LANI/F20を介して、WFD方式に従った無線通信、及び、通常Wi−Fiに従った無線通信を、携帯端末50、80と実行可能である。即ち、MFP10が、無線LANI/F20を介して、通信先の機器(例えば携帯端末50)と無線通信を実行可能な最大の距離は、MFP10が、NFCI/F22を介して、通信先の機器と無線通信を実行可能な最大の距離よりも大きい。   Note that the communication speed of wireless communication via the wireless LAN I / F 20 (for example, the maximum communication speed is 11 to 600 Mbps) is the communication speed of wireless communication via the NFC I / F 22 (for example, the maximum communication speed is 106 to 424 kbps). ) Faster than. Furthermore, the frequency of the carrier wave (for example, 2.4 GHz band and 5.0 GHz band) in the wireless communication via the wireless LAN I / F 20 is the frequency of the carrier wave (for example, 13.56 MHz band) in the wireless communication via the NFC I / F 22. Is different. When the distance between the MFP 10 and the portable terminals 50 and 80 is approximately 10 cm or less, the CPU 30 can execute NFC wireless communication with the portable terminals 50 and 80 via the NFC I / F 22. On the other hand, regardless of whether the distance between the MFP 10 and the portable terminals 50 and 80 is 10 cm or less or 10 cm or more (for example, about 100 m at the maximum), the CPU 30 uses the WFD system via the wireless LAN I / F 20. Wireless communication in accordance with the mobile terminal 50 and 80, and wireless communication in accordance with normal Wi-Fi. That is, the maximum distance that the MFP 10 can execute wireless communication with a communication destination device (for example, the portable terminal 50) via the wireless LAN I / F 20 is the maximum distance that the MFP 10 can communicate with the communication destination device via the NFC I / F 22. It is larger than the maximum distance at which wireless communication can be performed.

制御部24は、CPU30とメモリ32とを備える。CPU30は、メモリ32に記憶されているプログラムに従って、様々な処理を実行する。メモリ32は、ROM、RAM、ハードディスク等によって構成される。メモリ32は、CPU30によって実行される上記のプログラムを記憶する。   The control unit 24 includes a CPU 30 and a memory 32. The CPU 30 executes various processes according to programs stored in the memory 32. The memory 32 includes a ROM, a RAM, a hard disk, and the like. The memory 32 stores the above program executed by the CPU 30.

プログラムは、アプリケーションプログラムと、プロトコルスタックと、を含む。アプリケーションプログラムは、CPU30が、OSI参照モデルのアプリケーション層の処理を実行するためのプログラムである。プロトコルスタックは、CPU30が、OSI参照モデルのアプリケーション層よりも下位層の処理を実行するためのプログラムである。プロトコルスタックは、P2P(Peer to Peerの略)プログラムと、R/Wプログラムと、CEプログラムと、を含む。P2Pプログラムは、NFC規格のP2Pモードに従った処理を実行するためのプログラムである。R/Wプログラムは、NFC規格のReader/Writerモードに従った処理を実行するためのプログラムである。CEプログラムは、NFC規格のCE(Card Emulationの略)モードに従った処理を実行するためのプログラムである。これらのプログラムは、NFCフォーラムによって定められたNFC規格に準拠した処理を実行するためのプログラムである。   The program includes an application program and a protocol stack. The application program is a program for the CPU 30 to execute processing of the application layer of the OSI reference model. The protocol stack is a program for the CPU 30 to execute processing in a lower layer than the application layer of the OSI reference model. The protocol stack includes a P2P (Peer to Peer) program, an R / W program, and a CE program. The P2P program is a program for executing processing according to the NFC standard P2P mode. The R / W program is a program for executing processing according to the NFC standard Reader / Writer mode. The CE program is a program for executing processing according to the NFC standard CE (abbreviation for Card Emulation) mode. These programs are programs for executing processing compliant with the NFC standard defined by the NFC Forum.

また、MFP10がWFDネットワークに現在属している場合には、CPU30は、メモリ32に、WFDネットワークに現在属していることを示す情報と、当該WFDネットワークを介して目的データ(例えば、印刷データ、スキャンデータ)の通信を実行するための無線設定(認証方式、暗号化方式、パスワード、無線ネットワークのSSID(Service Set Identifierの略)、BSSID(Basic Service Set Identifierの略)を含む)と、を記憶させる。また、MFP10が通常Wi−Fiネットワークに現在属している場合には、CPU30は、通常Wi−Fiネットワークに現在属していることを示す情報と、当該通常Wi−Fiネットワークを介して目的データの通信を実行するための無線設定と、をメモリ32に記憶させる。なお、SSIDは、無線ネットワークを識別するための識別子であり、BSSIDは、無線ネットワークを構築するアクセスポイント(即ち、WFDネットワークの場合には、G/O状態(後述)の機器)の固有の識別子(例えばMACアドレス)である。   When the MFP 10 currently belongs to the WFD network, the CPU 30 stores information indicating that the MFP 10 currently belongs to the WFD network and target data (for example, print data, scan, etc.) via the WFD network. Wireless setting (including authentication method, encryption method, password, wireless network SSID (abbreviation of Service Set Identifier), BSSID (abbreviation of Basic Service Set Identifier)) . When the MFP 10 currently belongs to the normal Wi-Fi network, the CPU 30 communicates information indicating that the MFP 10 currently belongs to the normal Wi-Fi network and target data via the normal Wi-Fi network. The wireless setting for executing is stored in the memory 32. The SSID is an identifier for identifying a wireless network, and the BSSID is a unique identifier of an access point that constructs the wireless network (that is, a device in a G / O state (described later) in the case of a WFD network). (For example, a MAC address).

メモリ32は、さらに、WFDI/F設定を示す値(ON又はOFF)を記憶する。なお、制御部24は、メモリ32内のWFDI/F設定がOFFである状態では、WFD方式に従った各処理を実行することができない。WFDI/F設定がONである状態では、
メモリ32は、さらに、WFD方式に関するMFP10の現在の状態(G/O状態、クライアント状態、及び、デバイス状態のいずれかの状態)を示す値を記憶する。
The memory 32 further stores a value (ON or OFF) indicating the WFDI / F setting. Note that the control unit 24 cannot execute each process according to the WFD method when the WFDI / F setting in the memory 32 is OFF. When the WFDI / F setting is ON,
The memory 32 further stores a value indicating the current state of the MFP 10 related to the WFD method (any one of the G / O state, the client state, and the device state).

メモリ32は、さらに、他の装置(例えば携帯端末50)が、MFP10を利用して様々な機能(印刷機能、スキャン機能等)を実行するためのアプリケーションプログラム(以下では、「MFP用アプリケーション」と呼ぶ)を他の装置にダウンロードさせるためのURL(以下では、「アプリダウンロードURL」と呼ぶ)を記憶する。また、メモリ32は、MFP10で発生する装置エラー(例えば、印刷実行部16で発生する紙詰まりや印刷機構の故障等)を解消させるための手法を示すウェブページのURL(以下では、「サポートページURL」と呼ぶ)を記憶する。装置エラーについては後で詳しく説明する。さらに、メモリ32は、MFP10で使用される消耗品(例えば、インク(トナー)、用紙等)を紹介するためのウェブページのURL(以下では、「消耗品ページURL」と呼ぶ)を記憶する。アプリダウンロードURL、サポートページURL、及び、消耗品ページURLは、MFP10のベンダによって、予めメモリ32に記憶されている。   The memory 32 further includes an application program (hereinafter referred to as an “MFP application”) for another device (for example, the portable terminal 50) to execute various functions (printing function, scanning function, etc.) using the MFP 10. A URL (hereinafter referred to as “application download URL”) for downloading to another device is stored. Further, the memory 32 is a URL of a web page (hereinafter referred to as “support page”) indicating a method for resolving an apparatus error occurring in the MFP 10 (for example, a paper jam occurring in the print execution unit 16 or a malfunction of the printing mechanism). URL ”). The device error will be described in detail later. Further, the memory 32 stores a URL of a web page for introducing consumables (for example, ink (toner), paper, etc.) used in the MFP 10 (hereinafter referred to as “consumables page URL”). The application download URL, support page URL, and consumables page URL are stored in the memory 32 in advance by the vendor of the MFP 10.

メモリ32は、さらに、アプリURL供給モード設定を示す値(ON又はOFF)を記憶する。ここで、「アプリURL供給モード」とは、上記のアプリダウンロードURLを他の端末に供給するためのモードである。ユーザは、操作部12を操作することによって、アプリURL供給モードの設定をON/OFFすることができる。CPU30は、ユーザによって設定されたアプリURL供給モード設定を示す値(ON又はOFF)を、メモリ32に記憶させる。   The memory 32 further stores a value (ON or OFF) indicating the application URL supply mode setting. Here, the “application URL supply mode” is a mode for supplying the application download URL to another terminal. The user can turn ON / OFF the setting of the application URL supply mode by operating the operation unit 12. The CPU 30 stores a value (ON or OFF) indicating the application URL supply mode setting set by the user in the memory 32.

さらに、メモリ32は、書き込みジョブを記憶する。CPU30は、AP6を介してPC8から書き込みジョブを受信する場合、書き込みジョブをメモリ32に記憶させる。書き込みジョブは、ユーザが指定する書き込みデータ(例えば、ユーザが指示したURL、ユーザが入力したテキスト等)を含む。また、メモリ32は、印刷ジョブを記憶する。CPU30は、AP6を介してPC8から印刷ジョブを受信する場合、印刷ジョブをメモリ32に記憶させる。印刷ジョブは、ユーザが印刷を希望する印刷データを含む。本実施例では、後で説明するように、MFP10が印刷データに従って印刷を実行するためには、認証カード100を用いて認証を行う必要がある。   Further, the memory 32 stores a write job. When receiving a write job from the PC 8 via the AP 6, the CPU 30 stores the write job in the memory 32. The write job includes write data specified by the user (for example, URL specified by the user, text input by the user, etc.). The memory 32 stores a print job. When receiving a print job from the PC 8 via the AP 6, the CPU 30 stores the print job in the memory 32. The print job includes print data that the user desires to print. In this embodiment, as will be described later, in order for the MFP 10 to execute printing in accordance with print data, it is necessary to perform authentication using the authentication card 100.

(NFC方式の通信)
次に、NFC方式の通信について説明する。以下では、NFC方式の通信を実行可能な機器(MFP10、携帯端末50、80、認証カード100等)のことを「NFC機器」と呼ぶ。また、以下では、ReaderモードとWriterモードを合わせて、「R/Wモード」と簡単に記載することがある。
(NFC communication)
Next, NFC communication will be described. Hereinafter, devices capable of performing NFC communication (MFP 10, portable terminals 50, 80, authentication card 100, etc.) are referred to as “NFC devices”. Hereinafter, the reader mode and the writer mode may be simply referred to as “R / W mode”.

NFC機器の中には、P2Pモード、R/Wモード、及び、CEモードの3つのモードの全てを利用可能な機器も存在するし、上記の3つのモードのうちの1つ又は2つのモードのみを利用可能な機器も存在する。本実施例では、MFP10、携帯端末50、80は、上記の3つのモードの全てを利用可能な機器である。また、認証カード100は、NFC規格のカードであり、より具体的に言うと、CEモードを利用可能であるが、P2Pモード及びR/Wモードを利用不可能である。   Some NFC devices can use all three modes of P2P mode, R / W mode, and CE mode, and only one or two of the above three modes can be used. There are also devices that can be used. In this embodiment, the MFP 10 and the portable terminals 50 and 80 are devices that can use all of the above three modes. The authentication card 100 is an NFC standard card. More specifically, the authentication card 100 can use the CE mode, but cannot use the P2P mode and the R / W mode.

P2Pモードは、一対のNFC機器の間で双方向通信を実行するためのモードである。例えば、第1のNFC機器と第2のNFC機器との両方において、P2Pモードが起動されている状況を想定する。この場合、第1のNFC機器と第2のNFC機器との間で、P2Pモードに対応する通信リンク(以下では「P2Pの通信リンク」と呼ぶ)が確立される。この場合、例えば、第1のNFC機器は、P2Pの通信リンクを利用して、第1の所定データを第2のNFC機器に送信する。その後、第2のNFC機器は、同じP2Pの通
信リンクを利用して、第2の所定データを第1のNFC機器に送信する。これにより、双方向通信が実現される。NFCフォーラムによって定められるISO/IEC 1443のTypeAであるNFC機器、及び、ISO/IEC 18092のTypeFであるNFC機器は、P2Pモードを利用可能であるが、ISO/IEC 1443のTypeBであるNFC機器は、P2Pモードを利用不可能である。
The P2P mode is a mode for executing bidirectional communication between a pair of NFC devices. For example, a situation is assumed in which the P2P mode is activated in both the first NFC device and the second NFC device. In this case, a communication link corresponding to the P2P mode (hereinafter referred to as “P2P communication link”) is established between the first NFC device and the second NFC device. In this case, for example, the first NFC device transmits the first predetermined data to the second NFC device using a P2P communication link. Thereafter, the second NFC device transmits the second predetermined data to the first NFC device using the same P2P communication link. Thereby, bidirectional communication is realized. The NFC device that is Type A of ISO / IEC 1443 defined by the NFC Forum and the NFC device that is Type F of ISO / IEC 18092 can use the P2P mode, but the NFC device that is Type B of ISO / IEC 1443 is The P2P mode cannot be used.

R/Wモード及びCEモードは、一対のNFC機器の間で単方向通信を実行するためのモードである。CEモードは、NFC機器がNFCフォーラムによって定められた形式である「カード」として動作するためのモードである。TypeAのNFC機器と、TypeFのNFC機器と、TypeBのNFC機器と、のいずれも、CEモードを利用可能である。Readerモードは、CEモードでカードとして動作するNFC機器からデータを読み出すためのモードである。Writerモードは、CEモードでカードとして動作するNFC機器にデータを書き込むためのモードである。なお、Readerモードでは、NFC規格のカード(即ち、認証カード100)からデータを読み出すこともできる。また、Writerモードでは、NFC規格のカードにデータを書き込むこともできる。   The R / W mode and the CE mode are modes for executing unidirectional communication between a pair of NFC devices. The CE mode is a mode for the NFC device to operate as a “card” that is a format defined by the NFC forum. Any of the Type A NFC device, the Type F NFC device, and the Type B NFC device can use the CE mode. The Reader mode is a mode for reading data from an NFC device operating as a card in the CE mode. The writer mode is a mode for writing data to an NFC device operating as a card in the CE mode. In the Reader mode, data can also be read from an NFC standard card (that is, the authentication card 100). In the writer mode, data can also be written to an NFC standard card.

例えば、第1のNFC機器において、Readerモードが起動されており、第2のNFC機器において、CEモードが起動されている状況を想定する。この場合、第1のNFC機器と第2のNFC機器との間で、Readerモード及びCEモードに対応する通信リンクが確立される。この場合、第1のNFC機器は、通信リンクを利用して、第2のNFC機器内の擬似的なカードからデータを読み出すための動作を実行することによって、当該データを第2のNFC機器から受信する。   For example, it is assumed that the Reader mode is activated in the first NFC device and the CE mode is activated in the second NFC device. In this case, communication links corresponding to the Reader mode and the CE mode are established between the first NFC device and the second NFC device. In this case, the first NFC device uses the communication link to execute an operation for reading data from the pseudo card in the second NFC device, so that the data is transferred from the second NFC device. Receive.

また、例えば、第1のNFC機器において、Writerモードが起動されており、第2のNFC機器において、CEモードが起動されている状況を想定する。この場合、第1のNFC機器と第2のNFC機器との間で、Writerモード及びCEモードに対応する通信リンクが確立される。この場合、第1のNFC機器は、通信リンクを利用して、第2のNFC機器内の擬似的なカードにデータを書き込むための動作を実行することによって、当該データを第2のNFC機器に送信する。   Further, for example, a situation is assumed in which the writer mode is activated in the first NFC device and the CE mode is activated in the second NFC device. In this case, a communication link corresponding to the writer mode and the CE mode is established between the first NFC device and the second NFC device. In this case, the first NFC device uses the communication link to execute an operation for writing data to a pseudo card in the second NFC device, thereby transferring the data to the second NFC device. Send.

上述したように、一対のNFC機器がNFC方式の通信を実行するためには、様々なモードの組合せが考えられる。例えば、一対のNFC機器のモードの組合せとして、以下の5つのパターン、即ち、「P2Pモード、P2Pモード」、「Readerモード、CEモード」、「Writerモード、CEモード」、「CEモード、Readerモード」、「CEモード、Writerモード」が考えられる。   As described above, in order for a pair of NFC devices to perform NFC communication, various mode combinations are possible. For example, as a combination of modes of a pair of NFC devices, the following five patterns, namely, “P2P mode, P2P mode”, “Reader mode, CE mode”, “Writer mode, CE mode”, “CE mode, Reader mode” "," CE mode, Writer mode ".

なお、NFC機器は、Readerモード及びWriterモードの両方が起動されている状態を形成し得ない。即ち、NFC機器は、Readerモードを起動しているのであれば、Writerモードを停止している。また、NFC機器は、Writerモードを起動しているのであれば、Readerモードを停止している。   Note that the NFC device cannot form a state in which both the Reader mode and the Writer mode are activated. In other words, if the NFC device has activated the Reader mode, it has stopped the Writer mode. In addition, the NFC device stops the Reader mode if the Writer mode is activated.

また、NFC機器は、起動されているモードに対応する通信リンクを確立することができるが、起動されていないモードに対応する通信リンクを確立することができない。例えば、MFP10において、CEモードが起動されており、P2Pモード及びR/Wモードを起動されていない場合には、MFP10は、MFP10がCEモードで動作するための通信リンクを確立することができるが、他の通信リンク(即ち、MFP10が、P2Pモード、Readerモード、又は、Writerモードで動作するための通信リンク)を確立することができない。   In addition, the NFC device can establish a communication link corresponding to the activated mode, but cannot establish a communication link corresponding to the unactivated mode. For example, when the CE mode is activated in the MFP 10 and the P2P mode and the R / W mode are not activated, the MFP 10 can establish a communication link for the MFP 10 to operate in the CE mode. Another communication link (that is, a communication link for the MFP 10 to operate in the P2P mode, the Reader mode, or the Writer mode) cannot be established.

(WFD)
次に、WFDについて説明する。WFDは、Wi−Fi Allianceによって策定された規格である。WFDは、Wi−Fi Allianceによって作成された「Wi−Fi Peer−to−Peer(P2P) Technical Specification Version1.1」に記述されている。
(WFD)
Next, WFD will be described. WFD is a standard established by the Wi-Fi Alliance. WFD is described in “Wi-Fi Peer-to-Peer (P2P) Technical Specification Version 1.1” created by Wi-Fi Alliance.

上述したように、PC8とMFP10と携帯端末50、80とは、それぞれ、WFD方式に従った無線通信を実行可能である。以下では、WFD方式に従った無線通信を実行可能な機器のことを「WFD対応機器」と呼ぶ。WFD規格では、WFD対応機器の状態として、Group Owner状態(以下では「G/O状態」と呼ぶ)、クライアント状態、及び、デバイス状態の3つの状態が定義されている。WFD対応機器は、上記の3つの状態のうちの1つの状態で選択的に動作可能である。   As described above, the PC 8, the MFP 10, and the portable terminals 50 and 80 can each perform wireless communication in accordance with the WFD scheme. Hereinafter, a device capable of performing wireless communication in accordance with the WFD method is referred to as “WFD-compatible device”. In the WFD standard, three states of a Group Owner state (hereinafter referred to as “G / O state”), a client state, and a device state are defined as states of a WFD-compatible device. The WFD compatible device can selectively operate in one of the above three states.

G/O状態の機器とクライアント状態の機器とによって、WFDネットワークが構成される。WFDネットワークでは、G/O状態の機器が1個しか存在し得ないが、クライアント状態の機器が1個以上存在し得る。G/O状態の機器は、1個以上のクライアント状態の機器を管理する。具体的に言うと、G/O状態の機器は、1個以上のクライアント状態の機器のそれぞれの識別情報(即ちMACアドレス)が記述された管理リストを生成する。G/O状態の機器は、クライアント状態の機器がWFDネットワークに新たに属すると、当該機器の識別情報を管理リストに追加し、クライアント状態の機器がWFDネットワークから離脱すると、当該機器の識別情報を管理リストから消去する。   A WFD network is configured by the devices in the G / O state and the devices in the client state. In the WFD network, there can be only one device in the G / O state, but there can be one or more devices in the client state. A device in the G / O state manages one or more devices in the client state. More specifically, the G / O state device generates a management list in which identification information (that is, MAC address) of each of one or more client state devices is described. When the device in the G / O state newly belongs to the WFD network, the device in the G / O state adds the identification information of the device to the management list, and when the device in the client state leaves the WFD network, the identification information of the device is added. Clear from management list.

G/O状態の機器は、管理リストに登録されている機器、即ち、クライアント状態の機器(即ちWFDネットワークに属している機器)との間で、目的データ(例えば、OSI参照モデルのネットワーク層の情報を含むデータ(印刷データ、スキャンデータ等))の無線通信を実行可能である。しかしながら、G/O状態の機器は、管理リストに登録されていない未登録機器との間で、当該未登録機器がWFDネットワークに参加するためのデータ(例えば、ネットワーク層の情報を含まないデータ(Probe Request信号、Probe Response信号等の物理層のデータ)の無線通信を実行可能であるが、上記の目的データの無線通信を実行不可能である。例えば、G/O状態のMFP10は、管理リストに登録されている携帯端末50(即ち、クライアント状態の携帯端末50)から印刷データを無線で受信可能であるが、管理リストに登録されていない機器から印刷データを無線で受信不可能である。   A device in the G / O state is registered with a device registered in the management list, that is, a device in a client state (that is, a device belonging to the WFD network) with target data (for example, in the network layer of the OSI reference model). Wireless communication of data including information (print data, scan data, etc.) can be performed. However, a device in the G / O state is connected to an unregistered device that is not registered in the management list, so that the unregistered device participates in the WFD network (for example, data that does not include network layer information ( Wireless communication of physical layer data such as a probe request signal and a probe response signal can be performed, but wireless communication of the above-described target data cannot be performed. Print data can be received wirelessly from the mobile terminal 50 registered in the client (that is, the mobile terminal 50 in the client state), but cannot be received wirelessly from a device not registered in the management list.

また、G/O状態の機器は、複数個のクライアント状態の機器の間の目的データ(印刷データ、スキャンデータ等)の無線通信を中継可能である。例えば、クライアント状態の携帯端末50がクライアント状態の他のプリンタに印刷データを無線で送信すべき場合には、携帯端末50は、まず、印刷データをG/O状態のMFP10に無線で送信する。この場合、MFP10は、携帯端末50から印刷データを無線で受信して、上記の他のプリンタに印刷データを無線で送信する。即ち、G/O状態の機器は、通常Wi−FiネットワークのAPの機能を実行可能である。   In addition, a G / O state device can relay wireless communication of target data (print data, scan data, etc.) between a plurality of client state devices. For example, when the portable terminal 50 in the client state should wirelessly transmit print data to another printer in the client state, the portable terminal 50 first wirelessly transmits the print data to the MFP 10 in the G / O state. In this case, the MFP 10 wirelessly receives print data from the portable terminal 50 and transmits the print data wirelessly to the other printer. That is, a device in the G / O state can execute the function of the AP of the normal Wi-Fi network.

なお、WFDネットワークに属していないWFD対応機器(即ち、管理リストに登録されていない機器)が、デバイス状態の機器である。デバイス状態の機器は、WFDネットワークに参加するためのデータ(Probe Request信号、Probe Response信号等の物理層のデータ等)の無線通信を実行可能であるが、WFDネットワークを介して目的データ(印刷データ、スキャンデータ等)の無線通信を実行不可能である。   Note that a WFD compatible device that does not belong to the WFD network (that is, a device that is not registered in the management list) is a device in a device state. The device in the device state can execute wireless communication of data (physical layer data such as a probe request signal and a probe response signal) for participating in the WFD network, but the target data (print data) is transmitted via the WFD network. Wireless communication of scan data, etc.).

(携帯端末50、80の構成)
携帯端末50は、例えば、携帯電話(例えばスマートフォン)、PDA、ノートPC、
タブレットPC、携帯型音楽再生装置、携帯型動画再生装置等の可搬型の端末である。携帯端末80は、携帯端末50と同様の構成を有する。携帯端末50は、操作部52と、表示部54と、無線LANI/F56と、NFCI/F58と、制御部60と、を備える。操作部52は、複数のキーを備える。表示部54は、様々な情報を表示するためのディスプレイである。変形例では、携帯端末50は、操作部52と表示部54の両方の機能を有するタッチパネルを有していてもよい。
(Configuration of portable terminals 50 and 80)
The mobile terminal 50 is, for example, a mobile phone (for example, a smartphone), a PDA, a notebook PC,
It is a portable terminal such as a tablet PC, a portable music player, or a portable video player. The mobile terminal 80 has the same configuration as the mobile terminal 50. The portable terminal 50 includes an operation unit 52, a display unit 54, a wireless LAN I / F 56, an NFC I / F 58, and a control unit 60. The operation unit 52 includes a plurality of keys. The display unit 54 is a display for displaying various information. In the modification, the mobile terminal 50 may have a touch panel having both functions of the operation unit 52 and the display unit 54.

無線LANI/F56、及び、NFCI/F58は、それぞれ、上記のMFP10の無線LANI/F20、及び、NFCI/F22と同様のインターフェースである。即ち、制御部60は、無線LANI/F56を介して、WFD方式に従った無線通信と通常Wi−Fiに従った無線通信の両方を同時的に実行し得る。また、制御部60は、NFCI/F58を介して、NFC方式に従った無線通信を実行し得る。   The wireless LAN I / F 56 and the NFC I / F 58 are interfaces similar to the wireless LAN I / F 20 and the NFC I / F 22 of the MFP 10, respectively. That is, the control unit 60 can simultaneously execute both wireless communication according to the WFD scheme and wireless communication according to normal Wi-Fi via the wireless LAN I / F 56. In addition, the control unit 60 can execute wireless communication according to the NFC scheme via the NFC I / F 58.

制御部60は、CPU62とメモリ64とを備える。CPU62は、メモリ64に記憶されているプログラムに従って、様々な処理を実行する。メモリ64は、ROM、RAM、ハードディスク等によって構成される。メモリ64は、CPU62によって実行される上記のプログラムを記憶する。プログラムは、MFP10の場合と同様に、アプリケーションプログラムと、プロトコルスタックと、を含む。アプリケーションプログラムには、MFP10に様々な機能(例えば、印刷機能、スキャン機能等)を実行させるためのアプリケーションプログラム(以下では「MFP用アプリケーション」と呼ぶ)を含む。後で図7を参照して説明するように、CPU62は、MFP10からアプリダウンロードURLを受信すると、アプリダウンロードURLに従ってMFP10のベンダが提供するインターネットサーバ(図示省略)にアクセスし、そのサーバからアプリケーションプログラムをダウンロードする。その後、CPU62は、ダウンロードされたMFP用アプリケーションをメモリ64にインストールする。   The control unit 60 includes a CPU 62 and a memory 64. The CPU 62 executes various processes according to the program stored in the memory 64. The memory 64 includes a ROM, a RAM, a hard disk, and the like. The memory 64 stores the above program executed by the CPU 62. The program includes an application program and a protocol stack as in the case of the MFP 10. The application programs include application programs (hereinafter referred to as “MFP applications”) for causing the MFP 10 to execute various functions (for example, a print function, a scan function, etc.). As will be described later with reference to FIG. 7, upon receiving the application download URL from the MFP 10, the CPU 62 accesses an Internet server (not shown) provided by the vendor of the MFP 10 according to the application download URL, and the application program from the server. Download. Thereafter, the CPU 62 installs the downloaded MFP application in the memory 64.

メモリ64は、第1のOS(Operation Systemの略)プログラムを記憶する。第1のOSプログラムは、携帯端末50を以下のように動作させる。即ち、携帯端末50は、携帯端末50の電源がONされると、Readerモードが起動されており、他のモードが起動されていない初期状態に移行する。携帯端末50は、MFP用アプリケーションがインストールされていない場合には、上記の初期状態を維持する。携帯端末50は、MFP用アプリケーションがインストールされていても、MFP用アプリケーションが起動されていない場合には、上記の初期状態を維持する。携帯端末50は、MFP用アプリケーションが起動されると、上記の初期状態から、P2Pモードが起動されており、他のモード(R/Wモード及びCEモード)が起動されていない状態に移行する。   The memory 64 stores a first OS (abbreviation for Operation System) program. The first OS program causes the mobile terminal 50 to operate as follows. That is, when the mobile terminal 50 is turned on, the mobile terminal 50 is in the initial state in which the Reader mode is activated and the other modes are not activated. The portable terminal 50 maintains the above initial state when the MFP application is not installed. Even if the MFP application is installed, the portable terminal 50 maintains the above-described initial state when the MFP application is not activated. When the MFP application is activated, the portable terminal 50 shifts from the initial state to the state where the P2P mode is activated and the other modes (R / W mode and CE mode) are not activated.

(認証カード100の構成)
認証カード100は、PC8のユーザに与えられているカードである。上述したように、認証カード100は、NFC規格のカードであって、CEモードを利用可能であるが、P2Pモード及びR/Wモードを利用不可能である。本実施例の通信システム2では、MFP10が、AP6とPC8とを含む無線ネットワークに属している場合、MFP10は、AP6を介してPC8から印刷ジョブを受信する。印刷ジョブには、印刷データが含まれている。MFP10は、PC6から印刷ジョブを受信しても、認証カード100を用いた認証が成功するまでは、印刷を開始しない。認証カード100は、MFP10で認証を行うための認証データ(例えばユーザIDとパスワード)を記憶している。後で図9を参照して説明するように、PC8のユーザは、PC8からMFP10に印刷ジョブを送信した後に、認証カード100をMFP10に近づける。MFP10は、認証カード100から、認証データ(例えばユーザIDとパスワード)を受信して、認証処理を実行する。MFP10は、認証が成功すると、印刷を開始する。これにより、PC8のユーザは、MFP10の近くに存在する際に、印刷物を取得することができる。即ち、第三者に印刷物が
持ち去られるのを抑制することができる。
(Configuration of authentication card 100)
The authentication card 100 is a card given to the user of the PC 8. As described above, the authentication card 100 is an NFC standard card and can use the CE mode, but cannot use the P2P mode and the R / W mode. In the communication system 2 according to the present exemplary embodiment, when the MFP 10 belongs to a wireless network including the AP 6 and the PC 8, the MFP 10 receives a print job from the PC 8 via the AP 6. The print job includes print data. Even when the MFP 10 receives a print job from the PC 6, the MFP 10 does not start printing until the authentication using the authentication card 100 is successful. The authentication card 100 stores authentication data (for example, a user ID and a password) for authenticating with the MFP 10. As will be described later with reference to FIG. 9, the user of the PC 8 transmits the print job from the PC 8 to the MFP 10, and then brings the authentication card 100 closer to the MFP 10. The MFP 10 receives authentication data (for example, a user ID and password) from the authentication card 100 and executes an authentication process. When the authentication is successful, the MFP 10 starts printing. As a result, the user of the PC 8 can obtain a printed material when the user is near the MFP 10. That is, it is possible to suppress the printed matter from being taken away by a third party.

(Poll動作及びListen動作)
続いて、NFC機器によって実行されるPoll動作及びListen動作について説明する。例えば、MFP10では、CPU30が、プログラムに従ってPoll動作及びListen動作を実行するのではなく、NFCI/F22が、Poll動作及びListen動作を実行する。Poll動作は、ポーリング信号を送信して、ポーリング信号に対するレスポンス信号を受信する動作である。また、Listen動作は、ポーリング信号を受信して、ポーリング信号に対するレスポンス信号を送信する動作である。
(Poll operation and Listen operation)
Next, the poll operation and listen operation executed by the NFC device will be described. For example, in the MFP 10, the CPU 30 does not execute the poll operation and the listen operation according to the program, but the NFC I / F 22 executes the poll operation and the listen operation. The poll operation is an operation for transmitting a polling signal and receiving a response signal for the polling signal. The Listen operation is an operation that receives a polling signal and transmits a response signal to the polling signal.

MFP10のNFCI/F22は、Poll動作を実行するためのPollモードと、Listen動作を実行するためのListenモードと、Poll動作及びListen動作のどちらも実行しないモード(以下では「不実行モード」と呼ぶ)と、のうちのいずれかのモードで動作可能である。NFCI/F22は、Pollモード、Listenモード、及び、不実行モードで、順次動作する。例えば、NFCI/F22は、Pollモードで動作し、次いで、Listenモードで動作し、次いで、不実行モードで動作する、という1セットの動作を実行する。NFCI/F22は、上記の1セットの動作を繰り返し実行する。   The NFC I / F 22 of the MFP 10 performs a poll mode for executing the poll operation, a listen mode for executing the listen operation, and a mode in which neither the poll operation nor the listen operation is executed (hereinafter referred to as “non-execution mode”). ) And any one of the modes. The NFC I / F 22 sequentially operates in a poll mode, a listen mode, and a non-execution mode. For example, the NFC I / F 22 performs a set of operations that operate in the poll mode, then operate in the listen mode, and then operate in the non-execution mode. The NFC I / F 22 repeatedly executes the above one set of operations.

Pollモードでは、NFCI/F22は、ポーリング信号を送信して、レスポンス信号を受信することを監視する。具体的に言うと、NFCI/F22は、(1)TypeAのNFC機器が応答可能なポーリング信号(即ちTypeAに対応するポーリング信号)を送信して、レスポンス信号の受信を所定時間監視し、(2)レスポンス信号を受信しなければ、TypeBのNFC機器が応答可能なポーリング信号(即ちTypeBに対応するポーリング信号)を送信して、レスポンス信号の受信を所定時間監視し、(3)レスポンス信号を受信しなければ、TypeFのNFC機器が応答可能なポーリング信号(即ちTypeFに対応するポーリング信号)を送信して、レスポンス信号の受信を所定時間監視する、という動作を繰り返す。NFCI/F22が所定時間内にNFC機器(即ち通信相手)からレスポンス信号を受信する場合には、通信相手は、当該レスポンス信号の送信の直前に受信したポーリング信号に対応するTypeのNFC機器であると言える。NFCI/F22は、レスポンス信号を受信する場合に、さらに、当該レスポンス信号の送信元のNFC機器が、どのモードを起動しているのかを問い合わせるための問合信号を、通信相手に送信する。   In the poll mode, the NFC I / F 22 transmits a polling signal and monitors whether a response signal is received. Specifically, the NFC I / F 22 transmits a polling signal (that is, a polling signal corresponding to Type A) that can be responded to by the Type A NFC device, and monitors the reception of the response signal for a predetermined time. ) If a response signal is not received, a polling signal that can be responded by a Type B NFC device (that is, a polling signal corresponding to Type B) is transmitted, and reception of the response signal is monitored for a predetermined time, and (3) a response signal is received. Otherwise, the operation of transmitting a polling signal (that is, a polling signal corresponding to TypeF) that can be answered by the Type F NFC device and monitoring the reception of the response signal for a predetermined time is repeated. When the NFC I / F 22 receives a response signal from an NFC device (that is, a communication partner) within a predetermined time, the communication partner is a Type NFC device corresponding to the polling signal received immediately before the response signal is transmitted. It can be said. When the NFC I / F 22 receives the response signal, the NFC I / F 22 further transmits an inquiry signal for inquiring which mode the NFC device that is the transmission source of the response signal is activated to the communication partner.

Listenモードでは、NFCI/F22は、ポーリング信号を受信することを監視して、ポーリング信号を受信すると、レスポンス信号を送信する。NFCI/F22は、NFCI/F22に対応するTypeのポーリング信号を受信する場合にのみ、ポーリング信号の送信元のNFC機器(即ち通信相手)にレスポンス信号を送信する。NFCI/F22は、通信相手にレスポンス信号を送信する場合に、さらに、通信相手から問合信号を受信して、起動モード信号を通信相手に送信する。   In the Listen mode, the NFC I / F 22 monitors reception of a polling signal and transmits a response signal when receiving the polling signal. The NFC I / F 22 transmits a response signal to the NFC device (that is, the communication partner) that transmitted the polling signal only when it receives the type polling signal corresponding to the NFC I / F 22. When the NFC I / F 22 transmits a response signal to the communication partner, the NFC I / F 22 further receives an inquiry signal from the communication partner and transmits an activation mode signal to the communication partner.

不実行モードでは、NFCI/F22は、ポーリング信号を送信せず、さらに、ポーリング信号を受信しても、レスポンス信号を送信しない。   In the non-execution mode, the NFC I / F 22 does not transmit a polling signal, and does not transmit a response signal even when the polling signal is received.

携帯端末50、80のそれぞれも、上記の1セットの動作を繰り返し実行する。従って、例えば、MFP10と携帯端末50との間の距離が10cm未満であり、かつ、MFP10のNFCI/F22がPollモードで動作する期間と、携帯端末50がListenモードで動作する期間と、が一致する場合には、NFCI/F22は、ポーリング信号を携帯端末50に送信して、レスポンス信号を携帯端末50から受信するPoll動作を実行する。また、例えば、MFP10と携帯端末50との間の距離が10cm未満であり
、NFCI/F22がListenモードで動作する期間と、携帯端末50がPollモードで動作する期間と、が一致すると、NFCI/F22は、ポーリング信号を携帯端末50から受信して、レスポンス信号を携帯端末50に送信するListen動作を実行する。なお、以下では、Poll動作を実行したNFC機器、Listen動作を実行したNFC機器のことを、それぞれ、「Poll機器」、「Listen機器」と呼ぶ。
Each of the portable terminals 50 and 80 also repeatedly executes the above one set of operations. Therefore, for example, the distance between the MFP 10 and the portable terminal 50 is less than 10 cm, and the period in which the NFC I / F 22 of the MFP 10 operates in the poll mode and the period in which the portable terminal 50 operates in the listen mode match. If so, the NFC I / F 22 transmits a polling signal to the portable terminal 50 and executes a poll operation for receiving a response signal from the portable terminal 50. Further, for example, if the distance between the MFP 10 and the portable terminal 50 is less than 10 cm, and the period during which the NFC I / F 22 operates in the Listen mode matches the period during which the portable terminal 50 operates in the Poll mode, NFCI / F22 receives the polling signal from the portable terminal 50 and executes the Listen operation for transmitting the response signal to the portable terminal 50. In the following description, the NFC device that has performed the poll operation and the NFC device that has performed the listen operation are referred to as “Poll device” and “Listen device”, respectively.

NFCI/F22がPoll動作を実行する場合、即ち、MFP10がPoll機器である場合には、以降の通信のための各処理は、CPU30に引き継がれる。具体的に言うと、まず、Listen機器である通信相手(例えば携帯端末50)がどのモードの動作を実行可能であるのかを示す情報(即ち、受信済みの起動モード信号が示す情報)が、NFCI/F22からCPU30に受け渡される。   When the NFC I / F 22 performs a poll operation, that is, when the MFP 10 is a poll device, each process for subsequent communication is taken over by the CPU 30. Specifically, first, information indicating which mode of operation the communication partner (for example, the portable terminal 50) that is the Listen device can execute (that is, information indicated by the received start mode signal) is NFCI. / F22 to CPU30.

例えば、Poll機器であるMFP10の現在の状態が、P2Pモードが起動されており、おり、CEモード及びR/Wモードが起動されていない状態であり、かつ、NFCI/F22から受け渡された情報が、Listen機器である通信相手がP2Pモードを起動していることを示す場合には、CPU30は、P2Pモードに対応するActivationコマンドを通信相手に送信して、通信相手からOKコマンドを受信する。これにより、Poll機器であるMFP10とListen機器である通信相手との間に、P2Pモードの通信リンクが確立される。   For example, the current state of the MFP 10 that is a poll device is a state in which the P2P mode is activated, the CE mode and the R / W mode are not activated, and information received from the NFC I / F 22 However, if the communication partner that is the listen device indicates that the P2P mode is activated, the CPU 30 transmits an activation command corresponding to the P2P mode to the communication partner, and receives an OK command from the communication partner. As a result, a communication link in the P2P mode is established between the MFP 10 that is the poll device and the communication partner that is the listen device.

また、例えば、Listen機器であるMFP10の現在の状態が、P2Pモードが起動されており、CEモードが起動されていない状態であり、かつ、Poll機器である通信相手の現在の状態が、P2Pモードが起動されている状態である場合には、CPU30は、通信相手からP2Pモードに対応するActivationコマンドを受信する。この場合、CPU30は、MFP10がP2Pモードで動作すべきことを決定し、OKコマンドを通信相手に送信する。これにより、Listen機器であるMFP10とPoll機器である通信相手との間に、P2Pの通信リンクが確立される。   Further, for example, the current state of the MFP 10 that is the Listen device is a state in which the P2P mode is activated and the CE mode is not activated, and the current state of the communication partner that is the Poll device is the P2P mode. When is activated, the CPU 30 receives an activation command corresponding to the P2P mode from the communication partner. In this case, the CPU 30 determines that the MFP 10 should operate in the P2P mode, and transmits an OK command to the communication partner. As a result, a P2P communication link is established between the MFP 10 that is the listen device and the communication partner that is the poll device.

また、例えば、Listen機器であるMFP10の現在の状態が、CEモードが起動されており、P2Pモードが起動されていない状態であり、かつ、Poll機器である通信相手の現在の状態が、Readerモード又はWriterモードが起動されている状態である場合には、CPU32は、通信相手からR/Wモードに対応するActivationコマンドを受信する。この場合、CPU32は、MFP10がCEモードで動作すべきことを決定し、OKコマンドを通信相手に送信する。これにより、Listen機器であるMFP10とPoll機器である通信相手との間に、CEモード及びR/Wモードに対応する通信リンクが確立される。   Also, for example, the current state of the MFP 10 that is the Listen device is a state in which the CE mode is activated, the P2P mode is not activated, and the current state of the communication partner that is the Poll device is the Reader mode. Alternatively, when the writer mode is activated, the CPU 32 receives an activation command corresponding to the R / W mode from the communication partner. In this case, the CPU 32 determines that the MFP 10 should operate in the CE mode, and transmits an OK command to the communication partner. As a result, communication links corresponding to the CE mode and the R / W mode are established between the MFP 10 that is the Listen device and the communication partner that is the Poll device.

なお、CEモード及びR/Wモードに対応する通信リンクが確立される場合には、CPU32は、さらに、通信相手から、通信相手がReaderモード又はWriterモードのどちらで動作するのかを示す情報を受信する。従って、例えば、通信相手がReaderモードで動作することを示す情報が受信される場合には、Listen機器であるMFP10とPoll機器である通信相手との間に、CEモード及びReaderモードに対応する通信リンク(以下では「MFP(CE)−相手(R)の通信リンク」と呼ぶ)が確立されると言える。また、例えば、通信相手がWriterモードで動作することを示す情報が受信される場合には、Listen機器であるMFP10とPoll機器である通信相手との間に、CEモード及びWriterモードに対応する通信リンク(以下では「MFP(CE)−相手(W)の通信リンク」と呼ぶ)が確立されると言える。   When a communication link corresponding to the CE mode and the R / W mode is established, the CPU 32 further receives information indicating whether the communication partner operates in the reader mode or the writer mode from the communication partner. To do. Therefore, for example, when information indicating that the communication partner operates in the Reader mode is received, communication corresponding to the CE mode and the Reader mode is performed between the MFP 10 that is the Listen device and the communication partner that is the Poll device. It can be said that a link (hereinafter referred to as "MFP (CE) -other party (R) communication link") is established. Further, for example, when information indicating that the communication partner operates in the writer mode is received, communication corresponding to the CE mode and the writer mode is performed between the MFP 10 that is the listen device and the communication partner that is the poll device. It can be said that a link (hereinafter referred to as “MFP (CE) -other party (W) communication link”) is established.

また、例えば、Poll機器であるMFP10の現在の状態が、Writerモードが起動されており、他のモードが起動されていない状態であり、かつ、NFCI/F22か
ら受け渡された情報が、Listen機器である通信相手がP2Pモードを起動していることを示す場合には、Poll機器であるMFP10とListen機器である通信相手との間には、通信リンクは確立されない。ただし、CPU30は、通信相手がP2Pモードを起動していることを検出することができる(後述の図4のS76でYES)。
Also, for example, the current state of the MFP 10 that is a poll device is a state in which the writer mode is activated and other modes are not activated, and information received from the NFC I / F 22 is the listen device. If the communication partner is indicating that the P2P mode is activated, a communication link is not established between the MFP 10 that is the Poll device and the communication partner that is the Listen device. However, the CPU 30 can detect that the communication partner is in the P2P mode (YES in S76 of FIG. 4 described later).

また、同様に、Poll機器であるMFP10の現在の状態が、Readerモードが起動されており、おり、他のモードが起動されていない状態であり、かつ、NFCI/F22から受け渡された情報が、Listen機器である通信相手がP2Pモードを起動していることを示す場合には、Poll機器であるMFP10とListen機器である通信相手との間には、通信リンクは確立されない。ただし、この場合も、CPU30は、通信相手がP2Pモードを起動していることを検出することができる(後述の図5のS98でYES)。   Similarly, the current state of the MFP 10 that is the poll device is that the Reader mode is activated and the other mode is not activated, and the information passed from the NFC I / F 22 is When the communication partner that is the listen device indicates that the P2P mode is activated, a communication link is not established between the MFP 10 that is the poll device and the communication partner that is the listen device. However, also in this case, the CPU 30 can detect that the communication partner is in the P2P mode (YES in S98 of FIG. 5 described later).

(PC8の構成)
PC8は、無線LANI/F(即ちWFD及び通常Wi−Fi用のインターフェース)を備えるが、NFCI/Fを備えていない。従って、PC8は、無線LANを利用して、MFP10と通信を実行可能であるが、NFC方式の無線通信を実行不可能である。PC8は、MFP10に機能(例えば印刷機能、スキャン機能等)を実行させるためのドライバプログラムを備える。なお、ドライバプログラムは、通常、MFP10と共に出荷されるメディアからPC8にインストールされる。ただし、変形例では、ドライバプログラムは、MFP10のベンダによって提供されるサーバからPC8にインストールされてもよい。
(Configuration of PC8)
The PC 8 includes a wireless LAN I / F (that is, an interface for WFD and normal Wi-Fi), but does not include an NFC I / F. Accordingly, the PC 8 can execute communication with the MFP 10 using the wireless LAN, but cannot execute NFC wireless communication. The PC 8 includes a driver program for causing the MFP 10 to execute a function (for example, a print function, a scan function, etc.). Note that the driver program is normally installed in the PC 8 from a medium shipped with the MFP 10. However, in a modification, the driver program may be installed on the PC 8 from a server provided by the vendor of the MFP 10.

(AP6の構成)
AP6は、WFD方式のG/O状態の機器ではなく、無線アクセスポイント又は無線LANルータと呼ばれる通常のAPである。AP6は、複数個の機器と通常Wi−Fi接続を確立することができる。これにより、AP6と複数個の機器とを含む通常Wi−Fiネットワークが構築される。AP6は、通常Wi−Fiネットワークに属している複数個の機器のうちの1個の機器からデータを受信して、複数個の機器のうちの他の1個の機器に当該データを送信する。即ち、AP6は、通常Wi−Fiネットワークに属する一対の機器の間の通信を中継する。
(Configuration of AP6)
The AP 6 is not a device in the WFD G / O state, but is a normal AP called a wireless access point or a wireless LAN router. The AP 6 can establish normal Wi-Fi connection with a plurality of devices. Thereby, a normal Wi-Fi network including the AP 6 and a plurality of devices is constructed. The AP 6 receives data from one of a plurality of devices belonging to the normal Wi-Fi network, and transmits the data to another one of the plurality of devices. That is, the AP 6 relays communication between a pair of devices belonging to the normal Wi-Fi network.

(MFP10の通信処理;図2)
次いで、図2を参照して、MFP10のCPU30がプログラムに従って実行する通信処理の内容を説明する。MFP10の電源がONされると、CPU30は、図2の通信処理を開始する。CPU30は、通信処理を開始すると、S10、S12、S14、S16、S18の各判断を順次実行する。
(Communication process of MFP 10; FIG. 2)
Next, with reference to FIG. 2, the contents of communication processing executed by the CPU 30 of the MFP 10 according to the program will be described. When the power of the MFP 10 is turned on, the CPU 30 starts the communication process of FIG. When starting the communication process, the CPU 30 sequentially executes the determinations of S10, S12, S14, S16, and S18.

S10では、CPU30は、MFP10で装置エラーが発生しているか否かを判断する。ここで、装置エラーは、消耗品切れ以外の理由で発生するエラーを意味する。例えば、印刷実行部16で発生する紙詰まり、印刷機構の故障等が、装置エラーの一例である。また、スキャン実行部18で発生する原稿送り機構の故障、センサの故障等も、装置エラーの一例である。S10では、CPU30は、MFP10の各部(印刷実行部16、スキャン実行部18等)の状態をチェックする。その結果、上記の装置エラーが発生していると判断される場合、CPU30は、S10でYESと判断して、S24に進む。S24では、CPU30は、CEモードを起動する。これにより、MFP10がCEモードで動作する。この際、他のモード(P2Pモード及びR/Wモード)は起動されない。次いで、S26では、CPU30は、MFP10の装置エラーを解消させるための手法を示すウェブページのURL(サポートページURL)を、NFCI/F22に登録する。具体的に言うと、CPU30は、NFCI/F22を構成するチップに、メモリ32に記憶されてい
るサポートページURLを記憶させる。S26を終えると、CPU30は、S36に進み、後述のCEモード処理(図3参照)を実行する。一方において、MFP10で装置エラーが判断していないと判断される場合、CPU30は、S10でNOと判断して、S12に進む。
In S <b> 10, the CPU 30 determines whether an apparatus error has occurred in the MFP 10. Here, the device error means an error that occurs for a reason other than out of consumables. For example, a paper jam that occurs in the print execution unit 16 or a failure in the printing mechanism is an example of an apparatus error. A document feed mechanism failure, a sensor failure, and the like that occur in the scan execution unit 18 are examples of apparatus errors. In S10, the CPU 30 checks the status of each unit (print execution unit 16, scan execution unit 18, etc.) of the MFP 10. As a result, when it is determined that the device error has occurred, the CPU 30 determines YES in S10 and proceeds to S24. In S24, the CPU 30 activates the CE mode. Thereby, the MFP 10 operates in the CE mode. At this time, other modes (P2P mode and R / W mode) are not activated. Next, in S <b> 26, the CPU 30 registers, in the NFC I / F 22, a URL (support page URL) of a web page indicating a method for eliminating an apparatus error of the MFP 10. More specifically, the CPU 30 stores the support page URL stored in the memory 32 in a chip constituting the NFC I / F 22. When S26 ends, the CPU 30 proceeds to S36 and executes a CE mode process (see FIG. 3) described later. On the other hand, if it is determined that the MFP 10 has not determined an apparatus error, the CPU 30 determines NO in S10 and proceeds to S12.

S12では、CPU30は、MFP10で消耗品エラーが発生しているか否かを判断する。消耗品エラーは、印刷実行部16のトナー(インク)、用紙等の消耗品の残量がゼロであることを意味する。CPU30は、印刷実行部16の消耗品の残量をチェックし、消耗品の残量がゼロであると判断される場合に、S12でYESと判断して、S28に進む。S28では、CPU30は、CEモードを起動する。これにより、MFP10がCEモードで動作する。この際、他のモード(P2Pモード及びR/Wモード)は起動されない。次いで、S30では、CPU30は、MFP10で使用される消耗品(インク(トナー)、用紙等)を紹介するためのウェブページのURL(消耗品ページURL)を、NFCI/F22に登録する。具体的に言うと、CPU30は、NFCI/F22を構成するチップに、メモリ32に記憶されている消耗品ページURLを記憶させる。S30を終えると、CPU30は、S36に進み、後述のCEモード処理(図3参照)を実行する。一方において、消耗品の残量がゼロではないと判断される場合に、CPU30は、S12でNOと判断して、S14に進む。   In S <b> 12, the CPU 30 determines whether a consumable error has occurred in the MFP 10. The consumable error means that the remaining amount of consumables such as toner (ink) and paper in the print execution unit 16 is zero. The CPU 30 checks the remaining amount of consumables in the print execution unit 16, and when it is determined that the remaining amount of consumables is zero, the CPU 30 determines YES in S12 and proceeds to S28. In S28, the CPU 30 activates the CE mode. Thereby, the MFP 10 operates in the CE mode. At this time, other modes (P2P mode and R / W mode) are not activated. Next, in S <b> 30, the CPU 30 registers a URL (consumables page URL) of a web page for introducing consumables (ink (toner), paper, etc.) used in the MFP 10 in the NFC I / F 22. More specifically, the CPU 30 stores the consumables page URL stored in the memory 32 in the chip constituting the NFC I / F 22. When S30 ends, the CPU 30 proceeds to S36 and executes a CE mode process (see FIG. 3) described later. On the other hand, when it is determined that the remaining amount of the consumable item is not zero, the CPU 30 determines NO in S12 and proceeds to S14.

S14では、CPU30は、MFP10でアプリURL供給モードが設定されているか否かを判断する。具体的に言うと、S14では、CPU30は、メモリ32に記憶されているアプリURL供給モード設定を示す値がONであるか否かを確認する。アプリURL供給モード設定を示す値がONである場合、CPU30は、S14でYESと判断して、S32に進む。S32では、CPU30は、CEモードを起動する。これにより、MFP10がCEモードで動作する。この際、他のモード(P2Pモード及びR/Wモード)は起動されない。次いで、S34では、CPU30は、NFCI/F22に、アプリダウンロードURLを登録する。具体的に言うと、CPU30は、NFCI/F22を構成するチップに、メモリ32に記憶されているアプリダウンロードURLを記憶させる。S34を終えると、CPU30は、S36に進み、後述のCEモード処理(図3参照)を実行する。一方において、メモリ32に記憶されているアプリURL供給モード設定を示す値がOFFである場合、CPU30は、S14でNOと判断して、S16に進む。   In S <b> 14, the CPU 30 determines whether the application URL supply mode is set in the MFP 10. Specifically, in S14, the CPU 30 checks whether or not the value indicating the application URL supply mode setting stored in the memory 32 is ON. When the value indicating the application URL supply mode setting is ON, the CPU 30 determines YES in S14 and proceeds to S32. In S32, the CPU 30 activates the CE mode. Thereby, the MFP 10 operates in the CE mode. At this time, other modes (P2P mode and R / W mode) are not activated. Next, in S <b> 34, the CPU 30 registers the application download URL in the NFC I / F 22. Specifically, the CPU 30 stores the application download URL stored in the memory 32 in a chip that constitutes the NFC I / F 22. When S34 ends, the CPU 30 proceeds to S36 and executes a CE mode process (see FIG. 3) described later. On the other hand, if the value indicating the application URL supply mode setting stored in the memory 32 is OFF, the CPU 30 determines NO in S14 and proceeds to S16.

S16では、CPU30は、書き込みジョブが存在するか否かを判断する。具体的に言うと、S16では、CPU30は、メモリ32に書き込みジョブが記憶されているか否かを判断する。上述したように、CPU30は、AP6を介してPC8から書き込みジョブを受信する場合、受信された書き込みジョブをメモリ32に記憶させる。メモリ32に書き込みジョブが記憶されている場合、CPU30は、S16でYESと判断して、S38に進む。S38では、CPU30は、Writerモードを起動する。これにより、MFP10がWriterモードで動作する。この際、他のモードは起動されない。次いで、S40では、CPU30は、後述のWriterモード処理(図4参照)を実行する。一方において、メモリ32に書き込みジョブが記憶されていない場合、CPU30は、S16でNOと判断して、S18に進む。即ち、この構成によると、MFP10は、MFP10の状態が、URL(サポートページURL、消耗品ページURL、又は、アプリダウンロードURL)を外部に送信すべき状態でなく、書き込みジョブが存在する状態であると判断される場合(S16でYES)に、Writerモードで適切に動作し得る。   In S16, the CPU 30 determines whether or not there is a write job. Specifically, in S <b> 16, the CPU 30 determines whether or not a write job is stored in the memory 32. As described above, when receiving a write job from the PC 8 via the AP 6, the CPU 30 stores the received write job in the memory 32. When the write job is stored in the memory 32, the CPU 30 determines YES in S16, and proceeds to S38. In S38, the CPU 30 activates the writer mode. As a result, the MFP 10 operates in the writer mode. At this time, other modes are not activated. Next, in S40, the CPU 30 executes a writer mode process (see FIG. 4) described later. On the other hand, if the write job is not stored in the memory 32, the CPU 30 determines NO in S16 and proceeds to S18. In other words, according to this configuration, the MFP 10 is not in a state where the URL (support page URL, consumables page URL, or application download URL) should be transmitted to the outside, but in a state where a write job exists. Can be appropriately operated in the writer mode (YES in S16).

S18では、CPU30は、認証が必要な印刷ジョブが存在することを監視する。具体的に言うと、S18では、CPU30は、メモリ32に印刷ジョブが記憶されているか否かを判断する。上述したように、CPU30は、AP6を介してPC8から印刷ジョブを受信する場合、受信された印刷ジョブをメモリ32に記憶させる。上述したように、MF
P10は、認証カード100を用いて認証が行われない限り、印刷を実行しない。メモリ32に印刷ジョブが記憶されている場合、CPU30は、S18でYESと判断して、S42に進む。S42では、CPU30は、Readerモードを起動する。これにより、MFP10がReaderモードで動作する。この際、他のモードは起動されない。次いで、S44では、CPU30は、後述のReaderモード処理(図5参照)を実行する。一方において、メモリ32に印刷ジョブが記憶されていない場合、CPU30は、S18でNOと判断して、S20に進む。即ち、この構成によると、MFP10は、MFP10の状態が、URL(サポートページURL、消耗品ページURL、又は、アプリダウンロードURL)を外部に送信すべき状態、書き込みジョブが存在する状態、のどちらでもなく、かつ、印刷ジョブが存在する状態であると判断される場合(S18でYES)に、Readerモードで適切に動作し得る。
In S18, the CPU 30 monitors whether there is a print job that requires authentication. Specifically, in S <b> 18, the CPU 30 determines whether a print job is stored in the memory 32. As described above, when receiving a print job from the PC 8 via the AP 6, the CPU 30 stores the received print job in the memory 32. As mentioned above, MF
P10 does not execute printing unless authentication is performed using the authentication card 100. If a print job is stored in the memory 32, the CPU 30 determines YES in S18 and proceeds to S42. In S42, the CPU 30 activates the Reader mode. As a result, the MFP 10 operates in the Reader mode. At this time, other modes are not activated. Next, in S44, the CPU 30 executes a later-described reader mode process (see FIG. 5). On the other hand, if no print job is stored in the memory 32, the CPU 30 determines NO in S18 and proceeds to S20. In other words, according to this configuration, the MFP 10 can be in either the state in which the MFP 10 should transmit a URL (support page URL, consumables page URL, or application download URL) to the outside, or a state in which a write job exists. If it is determined that there is no print job (YES in S18), the reader mode can be appropriately operated.

S20では、CPU30は、P2Pモードを起動する。これにより、MFP10がP2Pモードで動作する。この際、他のモードは起動されない。次いで、S22では、CPU30は、後述のP2Pモード処理(図6参照)を実行する。   In S20, the CPU 30 activates the P2P mode. As a result, the MFP 10 operates in the P2P mode. At this time, other modes are not activated. Next, in S22, the CPU 30 executes a P2P mode process (see FIG. 6) described later.

上記の通り、本実施例では、MFP10は、図2のS10、S12、S14、S16、S18のいずれにおいてもNOと判断される場合に、MFP10の動作モードをP2Pモードに設定する(S20)。即ち、MFP10がP2Pモードで動作する場合、MFP10の状態は、URL(サポートページURL、消耗品ページURL、又は、アプリダウンロードURL)を外部に送信すべき状態、書き込みジョブが存在する状態、印刷ジョブが存在する状態、のいずれでもない。従って、本実施例の構成によると、MFP10は、MFP10の状態に応じて、適切な動作モードで動作し得る。   As described above, in this embodiment, when the MFP 10 determines NO in any of S10, S12, S14, S16, and S18 in FIG. 2, the MFP 10 sets the operation mode of the MFP 10 to the P2P mode (S20). That is, when the MFP 10 operates in the P2P mode, the MFP 10 is in a state in which a URL (support page URL, consumables page URL, or application download URL) should be transmitted to the outside, a write job exists, a print job Is not in any state. Therefore, according to the configuration of this embodiment, the MFP 10 can operate in an appropriate operation mode according to the state of the MFP 10.

(CEモード処理;図3)
次いで、図3を参照して、MFP10のCPU30が実行するCEモード処理(図2のS36)の内容を説明する。CEモード処理は、CEモードで動作するMFP10のCPU30が実行する処理である。CEモード処理が開始されると、CPU30は、S50及びS54の監視を実行する。
(CE mode processing; FIG. 3)
Next, the contents of the CE mode process (S36 in FIG. 2) executed by the CPU 30 of the MFP 10 will be described with reference to FIG. The CE mode process is a process executed by the CPU 30 of the MFP 10 operating in the CE mode. When the CE mode process is started, the CPU 30 executes monitoring of S50 and S54.

S50では、CPU30は、MFP(CE)−相手(R)の通信リンクが確立されることを監視する。上述したように、CPU30は、通信相手(例えば携帯端末50)からReaderモードに対応するActivationコマンドを受信する場合に、MFP(CE)−相手(R)の通信リンクが確立されたと判断する。この場合、CPU30は、S50でYESと判断して、CEモード処理(図3、図2のS36)を終了する。   In S50, the CPU 30 monitors whether a communication link of MFP (CE) -partner (R) is established. As described above, when the CPU 30 receives an activation command corresponding to the reader mode from the communication partner (for example, the portable terminal 50), the CPU 30 determines that the communication link of MFP (CE) -partner (R) has been established. In this case, the CPU 30 determines YES in S50 and ends the CE mode process (S36 in FIGS. 3 and 2).

なお、MFP(CE)−相手(R)の通信リンクが確立される場合(S50でYES)、NFCI/F22は、確立されたMFP(CE)−相手(R)の通信リンクを利用して、登録されているURL(サポートページURL、消耗品ページURL、又は、アプリダウンロードURL)を通信相手に自動的に送信する。この構成によると、MFP10は、MFP(CE)−相手(R)の通信リンクを利用して、URL(サポートページURL、消耗品ページURL、又は、アプリダウンロードURL)を通信相手に適切に送信し得る。   When the MFP (CE) -partner (R) communication link is established (YES in S50), the NFC I / F 22 uses the established MFP (CE) -partner (R) communication link, The registered URL (support page URL, consumables page URL, or application download URL) is automatically transmitted to the communication partner. According to this configuration, the MFP 10 appropriately transmits a URL (support page URL, consumables page URL, or application download URL) to the communication partner using the MFP (CE) -partner (R) communication link. obtain.

S54では、CPU30は、MFP(CE)−相手(W)の通信リンクが確立されることを監視する。上述したように、CPU30は、Writerモードで動作する通信相手(例えば携帯端末50)からWriterモードに対応するActivationコマンドを受信する場合に、MFP(CE)−相手(W)の通信リンクが確立されたと判断する。この場合、CPU30は、S54でYESと判断して、S56に進む。   In S54, the CPU 30 monitors whether a communication link of MFP (CE) -partner (W) is established. As described above, when the CPU 30 receives an activation command corresponding to the writer mode from a communication partner (for example, the portable terminal 50) operating in the writer mode, the communication link of MFP (CE) -partner (W) is established. Judge that In this case, the CPU 30 determines YES in S54, and proceeds to S56.

S56では、CPU30は、MFP(CE)−相手(W)の通信リンクを利用して、NFCI/F22を介して、通信相手から実行要求を受信することを監視する。実行要求は、MFP10の特定の機能(スキャン機能、印刷機能)の実行を求めるリクエスト信号である。CPU30は、Writerモードで動作する通信相手から、実行要求を受信する場合に、S56でYESと判断して、S58に進む。一方、所定のタイムアウト期間が経過しても通信相手から実行要求を受信できない場合、又は、通信相手から実行要求以外の情報が受信される場合には、CPU30は、S56でNOと判断して、S64に進む。   In S <b> 56, the CPU 30 monitors whether an execution request is received from the communication partner via the NFC I / F 22 using the MFP (CE) -partner (W) communication link. The execution request is a request signal for requesting execution of a specific function (scanning function, printing function) of the MFP 10. When receiving an execution request from a communication partner operating in the writer mode, the CPU 30 determines YES in S56 and proceeds to S58. On the other hand, when the execution request cannot be received from the communication partner even after the predetermined timeout period has elapsed, or when information other than the execution request is received from the communication partner, the CPU 30 determines NO in S56, Proceed to S64.

S58では、CPU30は、MFP10が、実行要求が示す特定の機能を実行可能であるか否かを判断する。例えば、特定の機能が印刷である場合、S58では、CPU30は、印刷実行部16の状態をチェックし、紙詰まり、印刷機構の故障等の装置エラー、又は、トナー(インク)切れ、用紙切れ等の消耗品エラーが発生しているか否かを判断する。その結果、印刷実行部16で装置エラーと消耗品エラーのいずれも発生していない場合、CPU30は、機能実行可能であると判断する。なお、特定の機能が印刷である場合に、スキャン実行部18で装置エラーが発生していたとしても、CPU30は、機能実行可能(印刷可能)であると判断する。この場合、CPU30は、S58でYESと判断し、S60に進む。一方、特定の機能が印刷である場合に、印刷実行部16で装置エラーと消耗品エラーの少なくとも一方が発生していると、CPU30は、機能実行可能でないと判断する。この場合、CPU30は、S58でNOと判断し、S64に進む。   In S <b> 58, the CPU 30 determines whether the MFP 10 can execute the specific function indicated by the execution request. For example, when the specific function is printing, in S58, the CPU 30 checks the status of the print execution unit 16, and checks for a paper error, a device error such as a malfunction of the printing mechanism, or a toner (ink) runout, a paper runout, etc. It is determined whether or not a consumable error has occurred. As a result, if neither a device error nor a consumable error has occurred in the print execution unit 16, the CPU 30 determines that the function can be executed. When the specific function is printing, even if an apparatus error has occurred in the scan execution unit 18, the CPU 30 determines that the function is executable (printable). In this case, the CPU 30 determines YES in S58, and proceeds to S60. On the other hand, when the specific function is printing, if at least one of an apparatus error and a consumable error has occurred in the print execution unit 16, the CPU 30 determines that the function cannot be executed. In this case, the CPU 30 determines NO in S58, and proceeds to S64.

同様に、例えば、特定の機能がスキャンである場合、S58では、CPU30は、スキャン実行部18の状態をチェックし、装置エラー(原稿送り機構の故障、センサの故障等)が発生しているか否かを判断する。その結果、スキャン実行部18で装置エラーが発生していない場合、CPU30は、機能実行可能であると判断する。なお、特定の機能がスキャンである場合に、印刷実行部16で装置エラー又は消耗品エラーが発生していたとしても、CPU30は、機能実行可能(スキャン可能)であると判断する。この場合、CPU30は、S58でYESと判断し、S60に進む。一方、特定の機能がスキャンである場合に、スキャン実行部18で装置エラーが発生していると、CPU30は、機能実行可能でないと判断する。この場合、CPU30は、S58でNOと判断し、S64に進む。   Similarly, for example, when the specific function is scanning, in S58, the CPU 30 checks the state of the scan execution unit 18 to determine whether an apparatus error (failure of the document feed mechanism, sensor failure, etc.) has occurred. Determine whether. As a result, if no device error has occurred in the scan execution unit 18, the CPU 30 determines that the function can be executed. When the specific function is scanning, even if an apparatus error or a consumable error has occurred in the print execution unit 16, the CPU 30 determines that the function can be executed (scannable). In this case, the CPU 30 determines YES in S58, and proceeds to S60. On the other hand, when a specific function is scanning and an apparatus error has occurred in the scan execution unit 18, the CPU 30 determines that the function cannot be executed. In this case, the CPU 30 determines NO in S58, and proceeds to S64.

S64では、CPU30は、特定の機能を実行可能でない旨のメッセージを含むエラー画面を表示部14に表示させる。S64を終えると、CPU30は、CEモード処理(図3、図2のS36)を終了する。   In S64, the CPU 30 causes the display unit 14 to display an error screen including a message indicating that the specific function cannot be executed. When S64 ends, the CPU 30 ends the CE mode process (S36 in FIGS. 3 and 2).

S60では、CPU30は、CEモードを停止し、P2Pモードを起動させる。具体的に言うと、まず、CPU30は、MFP(CE)−相手(W)の通信リンクを切断する。即ち、CPU30は、Deactivationコマンド及びOKコマンドの通信を実行する。NFC規格では、Poll機器がDeactivationコマンドを送信すること、即ち、Listen機器がDeactivationコマンドを受信することが決められている。MFP(CE)−相手(W)の通信リンクの切断が実行される際には、通信相手がPoll機器であり、MFP10がListen機器である。このために、CPU30は、NFCI/F22を介して、通信相手からDeactivationコマンドを受信し、NFCI/F22を介して、OKコマンドを通信相手に送信する。この結果、MFP(CE)−相手(W)の通信リンクが切断される。MFP(CE)−相手(W)の通信リンクが切断された後で、CPU30は、CEモードを停止し、P2Pモードを起動させる。この結果、MFP10は、P2Pモードで動作する。次いで、CPU30は、S62に進み、後述のP2Pモード処理(図6参照)を実行する。S62のP2Pモード処理を終了すると、CPU30は、CEモード処理を終了する。   In S60, the CPU 30 stops the CE mode and activates the P2P mode. Specifically, first, the CPU 30 disconnects the communication link of MFP (CE) -partner (W). That is, the CPU 30 executes communication of a Deactivation command and an OK command. In the NFC standard, it is determined that the Poll device transmits the Deactivation command, that is, the Listen device receives the Deactivation command. When the communication link between MFP (CE) and the other party (W) is disconnected, the other party is a poll device, and the MFP 10 is a listen device. For this purpose, the CPU 30 receives a Deactivation command from the communication partner via the NFC I / F 22, and transmits an OK command to the communication partner via the NFC I / F 22. As a result, the communication link between MFP (CE) and partner (W) is disconnected. After the MFP (CE) -partner (W) communication link is disconnected, the CPU 30 stops the CE mode and activates the P2P mode. As a result, the MFP 10 operates in the P2P mode. Next, the CPU 30 proceeds to S62 and executes a later-described P2P mode process (see FIG. 6). When the P2P mode process of S62 ends, the CPU 30 ends the CE mode process.

なお、MFP(CE)−相手(R)の通信リンクと、MFP(CE)−相手(W)の通
信リンクのどちらも確立されない場合には、CPU30は、S50及びS54でNOと判断して、CEモード処理を終了する。
If neither the MFP (CE) -party (R) communication link nor the MFP (CE) -party (W) communication link is established, the CPU 30 determines NO in S50 and S54, The CE mode process is terminated.

CEモード処理(図3、図2のS36)が終了すると、CPU30は、図2のS10に戻り、再びS10の判断を実行する。その後、図2のS12、S14、S16のいずれかでYESと判断されると、CPU30は、再び図3のCEモード処理を実行する。   When the CE mode process (S36 in FIGS. 3 and 2) ends, the CPU 30 returns to S10 in FIG. 2 and executes the determination in S10 again. Thereafter, if YES is determined in any of S12, S14, and S16 in FIG. 2, the CPU 30 executes the CE mode process in FIG. 3 again.

(Writerモード処理;図4)
次いで、図4を参照して、MFP10のCPU30が実行するWriterモード処理(図2のS40)の内容を説明する。Writerモード処理は、Writerモードで動作するMFP10のCPU30が実行する処理である。Writerモード処理が開始されると、CPU30は、S70及びS76の監視を実行する。
(Writer mode processing; FIG. 4)
Next, the contents of the writer mode process (S40 in FIG. 2) executed by the CPU 30 of the MFP 10 will be described with reference to FIG. The writer mode process is a process executed by the CPU 30 of the MFP 10 operating in the writer mode. When the writer mode process is started, the CPU 30 executes monitoring of S70 and S76.

S70では、CPU30は、MFP(W)−相手(CE)の通信リンクが確立されることを監視する。CPU30は、CEモードで動作する通信相手(例えば認証カード100)に、Writerモードに対応するActivationコマンドを送信して、通信相手からOKコマンドを受信する場合に、MFP(W)−相手(CE)の通信リンクが確立されたと判断する。この場合、CPU30は、S70でYESと判断し、S72に進む。   In S <b> 70, the CPU 30 monitors whether a communication link of MFP (W) -partner (CE) is established. When the CPU 30 transmits an activation command corresponding to the writer mode to the communication partner (for example, the authentication card 100) operating in the CE mode and receives an OK command from the communication partner, the MFP (W) -the partner (CE) It is determined that the communication link is established. In this case, the CPU 30 determines YES in S70, and proceeds to S72.

S72では、CPU30は、携帯端末(W)−相手(CE)の通信リンクを利用して、メモリ32に記憶されている書き込みジョブに含まれる書き込みデータ(例えば、ユーザが指示したURL、ユーザが入力したテキスト等)を通信相手(例えば認証カード100)に送信する。続くS74では、CPU30は、メモリ32内の書き込みジョブを削除する。S74を終えると、CPU30は、Writerモード処理(図4、図2のS40)を終了する。   In S72, the CPU 30 uses the mobile terminal (W) -party (CE) communication link to write data included in the write job stored in the memory 32 (for example, URL specified by the user, input by the user). Sent to the communication partner (for example, the authentication card 100). In subsequent S74, the CPU 30 deletes the write job in the memory 32. When S74 ends, the CPU 30 ends the writer mode process (S40 in FIGS. 4 and 2).

S76では、CPU30は、P2Pモードで動作する機器を検出することを監視する。上記の通り、MFP10はWriterモードで動作している。即ち、MFP10はPoll機器である。また、上述したように、P2Pモードで動作する機器は、Poll動作と、Listen動作を繰り返し実行している。そのため、P2Pモードで動作する機器(以下では、「特定の機器」と呼ぶ)がListen動作を行っている間に、特定の機器は、MFP10のNFCI/F22が送信するポーリング信号を受信する。特定の機器は、ポーリング信号を受信すると、MFP10のNFCI/F22に対して、レスポンス信号を送信する。MFP10のNFCI/F22は、特定の機器からレスポンス信号を受信すると、特定の機器に、どのモードで動作しているのかを問い合わせるための問合信号を送信する。特定の機器は、問合信号を受信すると、P2Pモードで動作していることを示す起動モード信号をMFP10のNFCI/F22に送信する。MFP10のNFCI/F22は、特定の機器からP2Pモードで動作していることを示す起動モード信号を受信する。MFP10のNFCI/F22は、特定の機器がP2Pモードで動作していることを示す起動モード信号をCPU30に受け渡す。この場合、CPU30は、S76でYESと判断して、S78に進む。   In S76, the CPU 30 monitors that a device operating in the P2P mode is detected. As described above, the MFP 10 operates in the writer mode. That is, the MFP 10 is a poll device. Further, as described above, the device that operates in the P2P mode repeatedly executes the poll operation and the listen operation. Therefore, while a device operating in the P2P mode (hereinafter referred to as “specific device”) is performing the Listen operation, the specific device receives a polling signal transmitted by the NFC I / F 22 of the MFP 10. When the specific device receives the polling signal, the specific device transmits a response signal to the NFC I / F 22 of the MFP 10. When the NFC I / F 22 of the MFP 10 receives a response signal from a specific device, the NFC I / F 22 transmits an inquiry signal for inquiring to the specific device which mode it is operating in. When the specific device receives the inquiry signal, the specific device transmits an activation mode signal indicating that the device is operating in the P2P mode to the NFC I / F 22 of the MFP 10. The NFC I / F 22 of the MFP 10 receives an activation mode signal indicating that it is operating in the P2P mode from a specific device. The NFC I / F 22 of the MFP 10 passes a startup mode signal indicating that the specific device is operating in the P2P mode to the CPU 30. In this case, the CPU 30 determines YES in S76, and proceeds to S78.

S78では、CPU30は、Writerモードを停止し、P2Pモードを起動させる。この結果、MFP10は、Writerモードで動作する。次いで、CPU30は、S80に進み、後述のP2Pモード処理(図6参照)を実行する。S80のP2Pモード処理を終了すると、CPU30は、Writerモード処理を終了する。   In S78, the CPU 30 stops the writer mode and activates the P2P mode. As a result, the MFP 10 operates in the writer mode. Next, the CPU 30 proceeds to S80 and executes a P2P mode process (see FIG. 6) described later. When the P2P mode process of S80 is completed, the CPU 30 ends the writer mode process.

なお、MFP(W)−相手(CE)の通信リンクが確立されず、かつ、P2Pモードで動作する機器も検出されない場合には、CPU30は、S70及びS76でNOと判断して、Writerモード処理を終了する。   If the MFP (W) -peer (CE) communication link is not established and no device operating in the P2P mode is detected, the CPU 30 determines NO in S70 and S76, and performs the writer mode process. Exit.

Writerモード処理(図4、図2のS40)が終了すると、CPU30は、図2のS10に戻り、再びS10の判断を実行する。その後、図2のS16でYESと判断されると、CPU30は、再び図4のWriterモード処理を実行する。   When the writer mode process (S40 in FIGS. 4 and 2) ends, the CPU 30 returns to S10 in FIG. 2 and executes the determination in S10 again. Thereafter, when YES is determined in S <b> 16 of FIG. 2, the CPU 30 executes the writer mode process of FIG. 4 again.

(Readerモード処理;図5)
次いで、図5を参照して、MFP10のCPU30が実行するReaderモード処理(図2のS44)の内容を説明する。Readerモード処理は、Readerモードで動作するMFP10のCPU30が実行する処理である。Readerモード処理が開始されると、CPU30は、S90及びS98の監視を実行する。
(Reader mode processing; FIG. 5)
Next, the contents of the Reader mode process (S44 in FIG. 2) executed by the CPU 30 of the MFP 10 will be described with reference to FIG. The Reader mode process is a process executed by the CPU 30 of the MFP 10 that operates in the Reader mode. When the Reader mode process is started, the CPU 30 executes monitoring in S90 and S98.

S90では、CPU30は、MFP(R)−相手(CE)の通信リンクが確立されることを監視する。CPU30は、CEモードで動作する通信相手(例えば認証カード100)に、Readerモードに対応するActivationコマンドを送信して、通信相手からOKコマンドを受信する場合に、MFP(R)−相手(CE)の通信リンクが確立されたと判断する。この場合、CPU30は、S90でYESと判断し、S92に進む。   In S90, the CPU 30 monitors whether a communication link of MFP (R) -partner (CE) is established. When the CPU 30 transmits an activation command corresponding to the reader mode to a communication partner (for example, the authentication card 100) operating in the CE mode and receives an OK command from the communication partner, the MFP (R) -the partner (CE) It is determined that the communication link is established. In this case, the CPU 30 determines YES in S90, and proceeds to S92.

S92では、CPU30は、MFP(R)−相手(CE)の通信リンクを利用して、NFCI/F22を介して、通信相手(例えば認証カード100)から認証データを受信する。次いで、S94では、CPU30は、受信された認証データを用いて認証処理を実行する。認証が成功する場合、CPU30は、印刷ジョブに含まれる印刷データが表す画像を印刷実行部16に印刷させる。印刷が完了すると、S96に進む。S96では、CPU30は、メモリ32内の印刷ジョブを削除する。S96を終えると、CPU30は、Readerモード処理(図5、図2のS44)を終了する。   In S92, the CPU 30 receives the authentication data from the communication partner (for example, the authentication card 100) via the NFC I / F 22 using the MFP (R) -partner (CE) communication link. Next, in S94, the CPU 30 executes an authentication process using the received authentication data. When the authentication is successful, the CPU 30 causes the print execution unit 16 to print the image represented by the print data included in the print job. When printing is completed, the process proceeds to S96. In S <b> 96, the CPU 30 deletes the print job in the memory 32. When S96 ends, the CPU 30 ends the Reader mode process (S44 in FIGS. 5 and 2).

S98では、CPU30は、P2Pモードで動作する機器(特定の機器)を検出することを監視する。上記の通り、MFP10はReaderモードで動作している。即ち、MFP10はPoll機器である。また、上述したように、P2Pモードで動作する特定の機器は、Poll動作と、Listen動作を繰り返し実行している。そのため、特定の機器がListen動作を行っている間に、特定の機器は、MFP10のNFCI/F22が送信するポーリング信号を受信する。特定の機器は、ポーリング信号を受信すると、MFP10のNFCI/F22に対して、レスポンス信号を送信する。MFP10のNFCI/F22は、特定の機器からレスポンス信号を受信すると、特定の機器に、どのモードで動作しているのかを問い合わせるための問合信号を送信する。特定の機器は、問合信号を受信すると、P2Pモードで動作していることを示す起動モード信号をMFP10のNFCI/F22に送信する。MFP10のNFCI/F22は、特定の機器からP2Pモードで動作していることを示す起動モード信号を受信する。MFP10のNFCI/F22は、特定の機器がP2Pモードで動作していることを示す情報をCPU30に受け渡す。この場合、CPU30は、S98でYESと判断して、S100に進む。   In S98, the CPU 30 monitors whether a device (specific device) operating in the P2P mode is detected. As described above, the MFP 10 operates in the Reader mode. That is, the MFP 10 is a poll device. Further, as described above, a specific device that operates in the P2P mode repeatedly executes the poll operation and the listen operation. Therefore, the specific device receives the polling signal transmitted by the NFC I / F 22 of the MFP 10 while the specific device is performing the Listen operation. When the specific device receives the polling signal, the specific device transmits a response signal to the NFC I / F 22 of the MFP 10. When the NFC I / F 22 of the MFP 10 receives a response signal from a specific device, the NFC I / F 22 transmits an inquiry signal for inquiring to the specific device which mode it is operating in. When the specific device receives the inquiry signal, the specific device transmits an activation mode signal indicating that the device is operating in the P2P mode to the NFC I / F 22 of the MFP 10. The NFC I / F 22 of the MFP 10 receives an activation mode signal indicating that it is operating in the P2P mode from a specific device. The NFC I / F 22 of the MFP 10 passes information indicating that the specific device is operating in the P2P mode to the CPU 30. In this case, the CPU 30 determines YES in S98 and proceeds to S100.

S100では、CPU30は、Readerモードを停止し、P2Pモードを起動させる。この結果、MFP10は、Readerモードで動作する。次いで、CPU30は、S102に進み、後述のP2Pモード処理(図6参照)を実行する。S102のP2Pモード処理を終了すると、CPU30は、Readerモード処理を終了する。   In S100, the CPU 30 stops the Reader mode and activates the P2P mode. As a result, the MFP 10 operates in the Reader mode. Next, the CPU 30 proceeds to S102 and executes a later-described P2P mode process (see FIG. 6). When the P2P mode process of S102 is completed, the CPU 30 ends the Reader mode process.

なお、MFP(R)−相手(CE)の通信リンクが確立されず、かつ、P2Pモードで動作する機器も検出されない場合には、CPU30は、S90及びS98でNOと判断して、Readerモード処理を終了する。   If the MFP (R) -peer (CE) communication link is not established and no device operating in the P2P mode is detected, the CPU 30 determines NO in S90 and S98, and performs Reader mode processing. Exit.

Readerモード処理(図5、図2のS44)が終了すると、CPU30は、図2の
S10に戻り、再びS10の判断を実行する。その後、図2のS18でYESと判断されると、CPU30は、再び図5のReaderモード処理を実行する。
When the Reader mode process (S44 in FIGS. 5 and 2) ends, the CPU 30 returns to S10 in FIG. 2 and executes the determination in S10 again. Thereafter, when it is determined YES in S18 of FIG. 2, the CPU 30 executes the Reader mode process of FIG. 5 again.

(P2Pモード処理;図6)
次いで、図6を参照して、MFP10のCPU30が実行するP2Pモード処理(図2のS22、図3のS62、図4のS80、図5のS102)の内容を説明する。P2Pモード処理は、P2Pモードで動作するMFP10のCPU30が実行する処理である。P2Pモード処理が開始されると、CPU30は、S110の監視を実行する。
(P2P mode processing; FIG. 6)
Next, the contents of the P2P mode process (S22 in FIG. 2, S62 in FIG. 3, S80 in FIG. 4, and S102 in FIG. 5) executed by the CPU 30 of the MFP 10 will be described with reference to FIG. The P2P mode process is a process executed by the CPU 30 of the MFP 10 operating in the P2P mode. When the P2P mode process is started, the CPU 30 executes the monitoring of S110.

S110では、CPU30は、P2Pの通信リンクが確立されることを監視する。上述したように、例えば、MFP10がPoll機器である場合には、CPU30は、P2Pモードに対応するActivationコマンドをP2Pモードで動作する通信相手(例えば携帯端末50)に送信して、通信相手からOKコマンドを受信する場合に、P2Pの通信リンクが確立されたと判断する。この場合、CPU30は、S110でYESと判断して、S112に進む。また、例えば、MFP10がListen機器である場合には、CPU30は、P2Pモードで動作する通信相手(例えば携帯端末50)からP2Pモードに対応するActivationコマンドを受信して、OKコマンドを通信相手に送信する場合に、P2Pの通信リンクが確立されたと判断する。この場合も、CPU30は、S110でYESと判断して、S112に進む。   In S110, the CPU 30 monitors whether a P2P communication link is established. As described above, for example, when the MFP 10 is a Poll device, the CPU 30 transmits an activation command corresponding to the P2P mode to a communication partner (for example, the portable terminal 50) operating in the P2P mode, and the communication partner OKs. When a command is received, it is determined that a P2P communication link has been established. In this case, the CPU 30 determines YES in S110, and proceeds to S112. For example, when the MFP 10 is a listen device, the CPU 30 receives an activation command corresponding to the P2P mode from a communication partner (for example, the portable terminal 50) operating in the P2P mode, and transmits an OK command to the communication partner. If it does, it is determined that a P2P communication link has been established. Also in this case, the CPU 30 determines YES in S110, and proceeds to S112.

S112では、CPU30は、P2Pの通信リンクを利用して、NFCI/F22を介して、通信相手(例えば携帯端末50)と双方向通信(以下では、「P2P通信」と呼ぶ場合がある)を実行する。具体的に言うと、まず、CPU30は、通信相手から、特定の機能の実行を要求する実行要求と、通信相手の属するネットワークに関するネットワーク情報と、を受信する。ただし、CPU30は、S112の時点で、通信相手から既に実行要求を受信している場合(図3のS56でYES、S58でYES)には、通信相手から、改めて実行要求を受信しない。ネットワーク情報のより詳しい内容は後で説明する。次いで、CPU30は、通信相手に対して、自身が属するネットワークの無線設定を示す設定情報(認証方式、暗号化方式、パスワード、SSID、BSSID等)と、設定変更不要を示す変更不要情報と、のうちの一方を送信する。S112で実行される双方向通信は、以下で説明するように、通信相手がネットワークに属しているか否かによって内容が異なる。以下では、S112で実行される双方向通信の内容を、場合を分けて説明する。   In S112, the CPU 30 uses the P2P communication link to execute bidirectional communication (hereinafter, referred to as “P2P communication”) with the communication partner (for example, the portable terminal 50) via the NFC I / F 22. To do. Specifically, first, the CPU 30 receives an execution request for requesting execution of a specific function and network information related to the network to which the communication partner belongs from the communication partner. However, if the execution request has already been received from the communication partner at S112 (YES in S56 in FIG. 3, YES in S58), the CPU 30 does not receive the execution request again from the communication partner. More detailed contents of the network information will be described later. Next, the CPU 30 sets setting information (authentication method, encryption method, password, SSID, BSSID, etc.) indicating the wireless setting of the network to which the communication partner belongs, and change-unnecessary information indicating that setting change is not necessary. Send one of them. The content of the bidirectional communication executed in S112 differs depending on whether or not the communication partner belongs to the network, as will be described below. Hereinafter, the contents of the bidirectional communication executed in S112 will be described for each case.

(通信相手がネットワークに属している場合の双方向通信(S112))
通信相手がネットワークに属している場合、まず、通信相手は、MFP10に対して、特定の機能の実行を要求する実行要求と、自身が属するネットワーク(無線LAN又はWFDネットワーク)の無線設定(SSID、BSSID)と、を送信する。ただし、上述したように、通信相手は、既にMFP10に実行要求を送信している場合(図3のS56でYES、S58でYES)には、改めてMFP10に実行要求を送信しない。CPU30は、実行要求と、通信相手が属するネットワークの無線設定と、を受信する。この場合、通信相手が属するネットワークの無線設定が、通信相手の「ネットワーク情報」である。
(Two-way communication when communication partner belongs to network (S112))
When the communication partner belongs to the network, first, the communication partner requests the MFP 10 to execute a specific function, and the wireless setting (SSID, WSID network) of the network (wireless LAN or WFD network) to which the communication partner belongs. BSSID). However, as described above, when the communication partner has already transmitted an execution request to the MFP 10 (YES in S56 of FIG. 3, YES in S58), the communication partner does not transmit the execution request to the MFP 10 again. The CPU 30 receives the execution request and the wireless setting of the network to which the communication partner belongs. In this case, the wireless setting of the network to which the communication partner belongs is “network information” of the communication partner.

次いで、CPU30は、受信された無線設定に基づいて、MFP10が通信相手と同一のネットワークに属しているか否かを判断する。即ち、受信済のSSID、BSSIDそれぞれが、MFP10が属するネットワーク無線設定に含まれるSSID、BSSIDそれぞれと一致するかを判断する。MFP10が通信相手と同一のネットワークに属していると判断される場合、CPU30は、通信相手に対して、設定変更が不要であることを示す変更不要情報を送信する。   Next, the CPU 30 determines whether the MFP 10 belongs to the same network as the communication partner based on the received wireless setting. That is, it is determined whether the received SSID and BSSID respectively match the SSID and BSSID included in the network wireless setting to which the MFP 10 belongs. When it is determined that the MFP 10 belongs to the same network as the communication partner, the CPU 30 transmits change-unnecessary information indicating that setting change is unnecessary to the communication partner.

これに対し、MFP10が属しているネットワークと、通信相手が属しているネットワークとが異なると判断される場合、CPU30は、通信相手に対して、MFP10がG/OであるWFDネットワークの無線設定(認証方式、暗号化方式、パスワード、SSID、BSSID)を通信相手に送信する。例えば、MFP10が、G/OとしてWFDネットワークに属している場合には、CPU30は、当該WFDネットワークで利用されている無線設定を通信相手に送信する。また、例えば、MFP10が、MFP10自身がG/OであるWFDネットワークに属していない場合には、CPU30は、MFP10をG/Oに移行させてWFDネットワークを新たに形成し、当該WFDネットワークの無線設定を通信相手に送信する。   On the other hand, when it is determined that the network to which the MFP 10 belongs and the network to which the communication partner belongs are different from each other, the CPU 30 sets the wireless setting of the WFD network in which the MFP 10 is G / O to the communication partner ( Authentication method, encryption method, password, SSID, BSSID) are transmitted to the communication partner. For example, when the MFP 10 belongs to the WFD network as G / O, the CPU 30 transmits the wireless setting used in the WFD network to the communication partner. Further, for example, when the MFP 10 does not belong to the WFD network in which the MFP 10 itself is G / O, the CPU 30 shifts the MFP 10 to G / O to newly form a WFD network, and wirelessly transmits the WFD network. Send the settings to the other party.

(通信相手がネットワークに属していない場合の双方向通信(S112))
通信相手がネットワークに属していない場合、まず、通信相手は、MFP10に対して、特定の機能の実行を要求する実行要求と、自身がネットワークに属していないことを示す情報と、を送信する。ただし、この場合も、通信相手は、既にMFP10に実行要求を送信している場合(図3のS56でYES、S58でYES)には、改めてMFP10に実行要求を送信しない。CPU30は、実行要求と、通信相手がネットワークに属していないことを示す情報と、を受信する。この場合、通信相手がネットワークに属していないことを示す情報が、通信相手の「ネットワーク情報」である。
(Two-way communication when communication partner does not belong to network (S112))
When the communication partner does not belong to the network, first, the communication partner transmits to the MFP 10 an execution request for requesting execution of a specific function and information indicating that the communication partner does not belong to the network. However, also in this case, if the communication partner has already transmitted an execution request to the MFP 10 (YES in S56 of FIG. 3, YES in S58), the communication partner does not transmit the execution request to the MFP 10 again. The CPU 30 receives the execution request and information indicating that the communication partner does not belong to the network. In this case, information indicating that the communication partner does not belong to the network is “network information” of the communication partner.

次いで、CPU30は、MFP10自身がG/OであるWFDネットワークに属しているか否かを判断する。MFP10自身がG/OであるWFDネットワークに属している場合、CPU30は、当該WFDネットワークで利用されている無線設定を通信相手に送信する。   Next, the CPU 30 determines whether or not the MFP 10 itself belongs to a WFD network that is G / O. When the MFP 10 itself belongs to the WFD network that is G / O, the CPU 30 transmits the wireless setting used in the WFD network to the communication partner.

これに対し、MFP10自身がG/OであるWFDネットワークに属していない場合、CPU30は、G/Oに移行してWFDネットワークを新たに形成し、当該WFDネットワークの無線設定を通信相手に送信する。   On the other hand, when the MFP 10 itself does not belong to the WFD network that is G / O, the CPU 30 shifts to G / O, newly forms a WFD network, and transmits the wireless setting of the WFD network to the communication partner. .

S112の双方向通信の結果、MFP10と通信相手は共通の無線設定を利用可能となる。CPU30は、共通の無線設定を利用して、通信相手との間で、無線LANI/F20を利用した無線通信リンク(WFD接続又は通常Wi−Fi接続)を確立する。   As a result of the bidirectional communication in S112, the MFP 10 and the communication partner can use a common wireless setting. The CPU 30 establishes a wireless communication link (WFD connection or normal Wi-Fi connection) using the wireless LAN I / F 20 with a communication partner using a common wireless setting.

次いで、S114では、CPU30は、実行要求が示す特定の機能を実行する。具体的に言うと、S114では、CPU30は、通信相手との間で、確立された無線通信リンクを利用して、無線LANI/F20を介して機能実行の対象となる対象データを通信する。例えば、特定の機能が印刷である場合、通信相手からMFP10に対して印刷データ(対象データ)が送信される。CPU30は、対象データを受信すると、対象データが示す画像を、印刷実行部16に印刷させる。また、例えば、特定の機能がスキャンである場合、CPU30は、スキャン実行部18の原稿送り機構にセットされた原稿にスキャンさせ、スキャンデータ(対象データ)を生成する。CPU30は、生成された対象データを、通信相手に送信する。   Next, in S114, the CPU 30 executes a specific function indicated by the execution request. Specifically, in S114, the CPU 30 communicates target data to be subjected to function execution via the wireless LAN I / F 20 using the established wireless communication link with the communication partner. For example, when the specific function is printing, print data (target data) is transmitted from the communication partner to the MFP 10. When receiving the target data, the CPU 30 causes the print execution unit 16 to print an image indicated by the target data. For example, when the specific function is scanning, the CPU 30 scans a document set on the document feeding mechanism of the scan execution unit 18 and generates scan data (target data). The CPU 30 transmits the generated target data to the communication partner.

S114を終えると、CPU30は、P2Pモード処理を終了する。なお、P2Pの通信リンクが確立されない場合にも、CPU30は、S110でNOと判断して、P2Pモード処理を終了する。P2Pモード処理(図2のS22、図3のS62、図4のS80、図5のS102)が終了すると、CPU30は、図2のS10に戻り、再びS10の判断を実行する。その後、図2のS18でNO、図3のS58でYES、図4のS76でYES、図5のS98でYESのいずれかの場合、CPU30は、再び図6のP2Pモード処理を実行する。   When S114 ends, the CPU 30 ends the P2P mode process. Even when the P2P communication link is not established, the CPU 30 determines NO in S110 and ends the P2P mode process. When the P2P mode process (S22 in FIG. 2, S62 in FIG. 3, S80 in FIG. 4, S102 in FIG. 5) ends, the CPU 30 returns to S10 in FIG. 2 and executes the determination in S10 again. Thereafter, if NO in S18 of FIG. 2, YES in S58 of FIG. 3, YES in S76 of FIG. 4, YES in S98 of FIG. 5, the CPU 30 executes the P2P mode process of FIG. 6 again.

(MFP10がCEモードで動作する場合の通信;図7)
図7を参照して、MFP10がCEモードで動作する場合に、MFP10と携帯端末50、80との間で実行される通信の例について説明する。図7では、CEモードで動作するMFP10とReaderモードで動作する携帯端末50との間で通信が行われる例、及び、CEモードで動作するMFP10とP2Pモードで動作する携帯端末80との間で通信が行われる例について説明する。
(Communication when the MFP 10 operates in the CE mode; FIG. 7)
With reference to FIG. 7, an example of communication executed between MFP 10 and portable terminals 50 and 80 when MFP 10 operates in the CE mode will be described. In FIG. 7, communication is performed between the MFP 10 operating in the CE mode and the portable terminal 50 operating in the Reader mode, and between the MFP 10 operating in the CE mode and the portable terminal 80 operating in the P2P mode. An example in which communication is performed will be described.

図7の例では、MFP10の電源がONされた後、操作部12が操作されてアプリURL供給モード設定がONされる。これにより、MFP10のメモリ32内に、アプリURL供給モード設定「ON」を示す値が記憶される(図2のS14でYES)。その結果、MFP10が、CEモードで動作する(図2のS32)。次いで、MFP10は、NFCI/F22に、アプリダウンロードURLを登録する(図2のS34)。次いで、MFP10は、MFP(CE)−相手(W)の通信リンクと、MFP(CE)−相手(R)の通信リンクとのうちのいずれか一方が確立されることを監視する(図3のS50、S54)。   In the example of FIG. 7, after the MFP 10 is turned on, the operation unit 12 is operated to turn on the application URL supply mode setting. As a result, a value indicating the application URL supply mode setting “ON” is stored in the memory 32 of the MFP 10 (YES in S14 of FIG. 2). As a result, the MFP 10 operates in the CE mode (S32 in FIG. 2). Next, the MFP 10 registers the application download URL in the NFC I / F 22 (S34 in FIG. 2). Next, the MFP 10 monitors whether one of the communication link of MFP (CE) -partner (W) and the communication link of MFP (CE) -partner (R) is established (FIG. 3). S50, S54).

図7の例では、携帯端末50には、MFPアプリケーションがインストールされていない。携帯端末50は、電源がONされると、Readerモードが起動されており、他のモードが起動されていない初期状態に移行する。次いで、携帯端末50は、携帯端末(R)−相手(CE)の通信リンクが確立されることを監視する。   In the example of FIG. 7, the MFP application is not installed in the portable terminal 50. When the portable terminal 50 is powered on, the Reader mode is activated, and the portable terminal 50 shifts to an initial state where other modes are not activated. Next, the mobile terminal 50 monitors that the communication link of the mobile terminal (R) -the other party (CE) is established.

この状態で、携帯端末50がMFP10に近づけられることにより、NFCI/F22、58が互いに通信可能な距離(例えば10cm未満)まで近づく。その場合、MFP10と携帯端末50との間で、NFCI/F22、58を介してMFP10(CE)−携帯端末50(R)の通信リンクが確立する(図3のS50でYES)。   In this state, when the portable terminal 50 is brought closer to the MFP 10, the NFC I / Fs 22 and 58 approach each other so that they can communicate with each other (for example, less than 10 cm). In that case, a communication link between MFP 10 (CE) and portable terminal 50 (R) is established between MFP 10 and portable terminal 50 via NFC I / Fs 22 and 58 (YES in S50 of FIG. 3).

MFP10と携帯端末50との間にMFP10(CE)−携帯端末50(R)の通信リンクが確立すると、MFP10のNFCI/F22は、MFP10(CE)−携帯端末50(R)の通信リンクを利用して、NFCI/F22に登録されたアプリダウンロードURLを携帯端末50に送信する。携帯端末50は、アプリダウンロードURLを受信する。   When a communication link between MFP 10 (CE) and portable terminal 50 (R) is established between MFP 10 and portable terminal 50, NFC I / F 22 of MFP 10 uses the communication link between MFP 10 (CE) and portable terminal 50 (R). Then, the application download URL registered in the NFC I / F 22 is transmitted to the portable terminal 50. The portable terminal 50 receives the application download URL.

携帯端末50は、受信されたアプリダウンロードURLに従って、アプリダウンロードURLが示すサーバ(MFP10のベンダが提供するサーバ)にアクセスし、MFP用アプリケーションをダウンロードする。次いで、携帯端末50は、ダウンロードされたMFP用アプリケーションをメモリ64にインストールする。インストールが完了すると、携帯端末50は、MFP用アプリケーションに従った各種処理を実行可能となる。   In accordance with the received application download URL, portable terminal 50 accesses the server indicated by the application download URL (a server provided by the vendor of MFP 10) and downloads the MFP application. Next, the portable terminal 50 installs the downloaded MFP application in the memory 64. When the installation is completed, the portable terminal 50 can execute various processes according to the MFP application.

一方において、携帯端末80には、MFPアプリケーションが既にインストールされている。携帯端末80は、MFPアプリケーションが起動された後に、操作部において機能実行指示(スキャン指示、印刷指示)が入力されると、P2Pモードが起動されており、他のモードが起動されていない状態に移行する。   On the other hand, the MFP application is already installed in the portable terminal 80. When a function execution instruction (scan instruction, print instruction) is input on the operation unit after the MFP application is started, the portable terminal 80 is in a state where the P2P mode is started and other modes are not started. Transition.

この状態で、携帯端末80がMFP10に近づけられることにより、P2Pモードで動作する携帯端末80は、MFP10がCEモードで動作していることを検出できる。上述したように、P2Pモードで動作する携帯端末は、Poll動作と、Listen動作を繰り返し実行する。また、CEモードで動作するMFP10はListen動作を行うListen機器である。携帯端末80がPoll動作を行う場合、Listen機器であるMFP10にポーリング信号を送信する。MFP10は携帯端末80からポーリング信号を受信すると、レスポンス信号を携帯端末80に送信する。携帯端末80はMFP10
からレスポンス信号を受信すると、MFP10にどのモードで動作しているのかを問い合わせるための問合信号を送信する。MFP10は問合信号を受信すると、携帯端末80に、自身がCEモードで動作していることを示す起動モード信号を送信する。これにより、携帯端末80は、MFP10がCEモードで動作することを検出できる。
In this state, when the mobile terminal 80 is brought close to the MFP 10, the mobile terminal 80 operating in the P2P mode can detect that the MFP 10 is operating in the CE mode. As described above, the mobile terminal that operates in the P2P mode repeatedly performs the poll operation and the listen operation. The MFP 10 operating in the CE mode is a Listen device that performs a Listen operation. When the portable terminal 80 performs a poll operation, a polling signal is transmitted to the MFP 10 that is a listen device. When the MFP 10 receives the polling signal from the portable terminal 80, the MFP 10 transmits a response signal to the portable terminal 80. The portable terminal 80 is the MFP 10
When a response signal is received from the MFP 10, an inquiry signal for inquiring to which mode the MFP 10 is operating is transmitted. When the MFP 10 receives the inquiry signal, the MFP 10 transmits to the portable terminal 80 an activation mode signal indicating that it is operating in the CE mode. Thereby, the mobile terminal 80 can detect that the MFP 10 operates in the CE mode.

携帯端末80は、MFP10がCEモードで動作することを検出すると、P2Pモードを停止し、Writerモードを起動させる。次いで、携帯端末80は、携帯端末(W)−相手(CE)の通信リンクが確立されることを監視する。   When the portable terminal 80 detects that the MFP 10 operates in the CE mode, the portable terminal 80 stops the P2P mode and starts the writer mode. Next, the portable terminal 80 monitors whether the communication link of the portable terminal (W) -the other party (CE) is established.

この状態で、MFP10と携帯端末80が互いにNFC通信可能な距離内に存在すると、MFP10と携帯端末80との間に、MFP10(CE)−携帯端末80(W)の通信リンクが確立する(図3のS54でYES)。   In this state, when the MFP 10 and the portable terminal 80 exist within a distance that allows NFC communication with each other, a communication link of MFP 10 (CE) -mobile terminal 80 (W) is established between the MFP 10 and the portable terminal 80 (FIG. 3 YES at S54).

MFP10と携帯端末80との間にMFP10(CE)−携帯端末80(W)の通信リンクが確立すると、携帯端末80は、MFP10(CE)−携帯端末80(W)の通信リンクを利用して、特定の機能の実行を要求する実行要求をMFP10に送信する。携帯端末80は、実行要求を送信すると、Writerモードを停止し、P2Pモードを起動させる。次いで、携帯端末80は、P2Pの通信リンクが確立されることを監視する。   When a communication link between MFP 10 (CE) and portable terminal 80 (W) is established between MFP 10 and portable terminal 80, portable terminal 80 uses the communication link of MFP 10 (CE) and portable terminal 80 (W). Then, an execution request for requesting execution of a specific function is transmitted to the MFP 10. When transmitting the execution request, the portable terminal 80 stops the writer mode and activates the P2P mode. Next, the mobile terminal 80 monitors whether a P2P communication link is established.

MFP10は、NFCI/F22を介して、実行要求を受信する(図3のS56でYES)。次いで、MFP10は、実行要求が示す特定の機能を実行可能であるか否か判断する(図3のS58)。図7の例では、MFP10は特定の機能を実行可能であると判断する(図3のS58でYES)。その場合、MFP10は、CEモードを停止し、P2Pモードを起動させる(図3のS60)。この場合、MFP10と携帯端末80は、MFP10(CE)−携帯端末80(W)の通信リンクを切断する。次いで、MFP10は、P2Pの通信リンクが確立されることを監視する(図6のS110)。   The MFP 10 receives the execution request via the NFC I / F 22 (YES in S56 of FIG. 3). Next, the MFP 10 determines whether or not the specific function indicated by the execution request can be executed (S58 in FIG. 3). In the example of FIG. 7, the MFP 10 determines that a specific function can be executed (YES in S58 of FIG. 3). In that case, the MFP 10 stops the CE mode and activates the P2P mode (S60 in FIG. 3). In this case, MFP 10 and portable terminal 80 disconnect the communication link of MFP 10 (CE) -portable terminal 80 (W). Next, the MFP 10 monitors that the P2P communication link is established (S110 in FIG. 6).

この状態で、MFP10と携帯端末80が互いにNFC通信可能な距離内に存在すると、MFP10と携帯端末80との間に、P2Pの通信リンクが確立される(図6のS110でYES)。次いで、MFP10と携帯端末80との間で、P2Pの通信リンクを利用して、P2P通信が実行される(図6のS112)。即ち、まず、携帯端末80は、MFP10に対して、ネットワーク情報(携帯端末80が属するネットワークの無線設定、又は、携帯端末80がネットワークに属していないことを示す情報)を送信する。なお、図7の例では、携帯端末80は、既にMFP10に実行要求を送信しているため、この時点では再度実行要求をMFP10に送信しない。次いで、MFP10は、携帯端末80に対して、MFP10自身がG/OであるWFDネットワークの無線設定、又は、変更不要情報を送信する。この構成によると、MFP10は、MFP10の動作モードを、CEモードからP2Pモードに適切に変更することができる。その結果、MFP10は、P2Pの通信リンクを利用して、携帯端末80との間で適切にP2P通信を実行し得る。   In this state, when the MFP 10 and the portable terminal 80 exist within a distance that allows NFC communication with each other, a P2P communication link is established between the MFP 10 and the portable terminal 80 (YES in S110 of FIG. 6). Next, P2P communication is executed between the MFP 10 and the portable terminal 80 using a P2P communication link (S112 in FIG. 6). That is, first, the mobile terminal 80 transmits network information (wireless setting of the network to which the mobile terminal 80 belongs or information indicating that the mobile terminal 80 does not belong to the network) to the MFP 10. In the example of FIG. 7, since the portable terminal 80 has already transmitted an execution request to the MFP 10, the execution request is not transmitted to the MFP 10 again at this time. Next, the MFP 10 transmits to the portable terminal 80 wireless setting of the WFD network in which the MFP 10 itself is G / O or change unnecessary information. According to this configuration, the MFP 10 can appropriately change the operation mode of the MFP 10 from the CE mode to the P2P mode. As a result, the MFP 10 can appropriately execute P2P communication with the mobile terminal 80 using the P2P communication link.

上記のP2P通信の結果、MFP10と携帯端末80とが共通の無線設定を利用可能となる。MFP10と携帯端末80は、共通の無線設定を利用して、無線LANI/F20及び携帯端末80の無線LANI/Fを介した無線通信リンク(WFD接続又は通常Wi−Fi接続)を確立する。   As a result of the above P2P communication, the MFP 10 and the portable terminal 80 can use a common wireless setting. The MFP 10 and the portable terminal 80 establish a wireless communication link (WFD connection or normal Wi-Fi connection) via the wireless LAN I / F 20 and the wireless LAN I / F of the portable terminal 80 using a common wireless setting.

次いで、MFP10及び携帯端末80は、確立された無線通信リンクを利用して、無線LANI/F20及び携帯端末80の無線LANI/Fを介して、実行要求が示す特定の機能の実行の対象データを通信する(図6のS114)。例えば、特定の機能が印刷である場合、携帯端末80は、MFP10に対して印刷データ(対象データ)を送信する。MFP10は、対象データを受信すると、対象データが示す画像を、印刷実行部16に印刷
させる。また、特定の機能がスキャンである場合、MFP10は、スキャン実行部18の原稿送り機構にセットされた原稿をスキャンし、スキャンデータ(対象データ)を生成する。MFP10は、生成された対象データを、携帯端末80に送信する。
Next, the MFP 10 and the portable terminal 80 use the established wireless communication link to transmit target data for executing a specific function indicated by the execution request via the wireless LAN I / F 20 and the wireless LAN I / F of the portable terminal 80. Communication is performed (S114 in FIG. 6). For example, when the specific function is printing, the portable terminal 80 transmits print data (target data) to the MFP 10. Upon receiving the target data, the MFP 10 causes the print execution unit 16 to print the image indicated by the target data. When the specific function is scanning, the MFP 10 scans a document set on the document feeding mechanism of the scan execution unit 18 and generates scan data (target data). The MFP 10 transmits the generated target data to the mobile terminal 80.

機能の実行が終了すると、携帯端末80は、起動されているMFP用アプリケーションを終了させる。   When the execution of the function ends, the portable terminal 80 ends the activated MFP application.

(MFP10がWriterモードで動作する場合の通信;図8)
図8を参照して、MFP10がWriterモードで動作する場合に、MFP10と認証カード100、携帯端末80との間で実行される通信の例について説明する。図8では、Writerモードで動作するMFP10とCEモードで動作する認証カード100との間で通信が行われる例、及び、Writerモードで動作するMFP10とP2Pモードで動作する携帯端末80との間で通信が行われる例について説明する。
(Communication when the MFP 10 operates in the writer mode; FIG. 8)
With reference to FIG. 8, an example of communication executed between MFP 10, authentication card 100, and portable terminal 80 when MFP 10 operates in the writer mode will be described. In FIG. 8, communication is performed between the MFP 10 operating in the writer mode and the authentication card 100 operating in the CE mode, and between the MFP 10 operating in the writer mode and the mobile terminal 80 operating in the P2P mode. An example in which communication is performed will be described.

図8の例では、MFP10の電源がONされた後、MFP10は、AP6を介してPC8から書き込みジョブを受信する。MFP10は、受信された書き込みジョブをメモリ32に記憶させる(図2のS16でYES)。その結果、MFP10が、Writerモードで動作する(図2のS38)。次いで、MFP10は、MFP(W)−相手(CE)の通信リンクが確立されることを監視するとともに、P2Pモードで動作する機器を検出することを監視する(図4のS70、S76)。   In the example of FIG. 8, after the MFP 10 is turned on, the MFP 10 receives a write job from the PC 8 via the AP 6. The MFP 10 stores the received write job in the memory 32 (YES in S16 of FIG. 2). As a result, the MFP 10 operates in the writer mode (S38 in FIG. 2). Next, the MFP 10 monitors the establishment of the MFP (W) -partner (CE) communication link and also detects the detection of a device operating in the P2P mode (S70 and S76 in FIG. 4).

認証カード100は、常にCEモードで動作する。認証カード100がMFP10に近づけられることにより、MFP10と認証カード100との間で、MFP10(W)−認証カード100(CE)の通信リンクが確立する(図4のS70でYES)。   The authentication card 100 always operates in the CE mode. When authentication card 100 is brought close to MFP 10, a communication link of MFP 10 (W) -authentication card 100 (CE) is established between MFP 10 and authentication card 100 (YES in S70 of FIG. 4).

MFP10と認証カード100との間にMFP10(W)−認証カード100(CE)の通信リンクが確立すると、MFP10は、MFP10(W)−認証カード100(CE)の通信リンクを利用して、メモリ32に記憶された書き込みジョブに含まれる書き込みデータ(例えば、ユーザが指示したURL、ユーザが入力したテキスト等)を認証カード100に送信する(図4のS72)。認証カード100は、書き込みデータを受信し、受信された書き込みデータを記憶する。   When the MFP 10 (W) -authentication card 100 (CE) communication link is established between the MFP 10 and the authentication card 100, the MFP 10 uses the MFP 10 (W) -authentication card 100 (CE) communication link to store memory. Write data (for example, URL specified by the user, text input by the user, etc.) included in the write job stored in 32 is transmitted to the authentication card 100 (S72 in FIG. 4). The authentication card 100 receives the write data and stores the received write data.

MFP10は、書き込みデータを送信すると、メモリ32内の書き込みジョブを削除する(図4のS74)。   When the MFP 10 transmits the write data, the MFP 10 deletes the write job in the memory 32 (S74 in FIG. 4).

図8の例でも、携帯端末80には、MFPアプリケーションが既にインストールされている。携帯端末80は、MFPアプリケーションが起動された後に、操作部において機能実行指示(スキャン指示、印刷指示)が入力されると、P2Pモードで動作する。   Also in the example of FIG. 8, the MFP application is already installed in the portable terminal 80. The portable terminal 80 operates in the P2P mode when a function execution instruction (scan instruction, print instruction) is input on the operation unit after the MFP application is activated.

この状態で、携帯端末80がMFP10に近づけられると、Writerモードで動作するMFP10は、携帯端末80がP2Pモードで動作していることを検出できる。Writerモードで起動するMFP10は、Poll動作を行うPoll機器である。また、P2Pモードで動作する携帯端末80は、Poll動作と、Listen動作を繰り返し実行する。携帯端末80がListen動作を行っている間、携帯端末80は、Poll機器であるMFP10が送信するポーリング信号を受信する。携帯端末80は、ポーリング信号を受信すると、MFP10に対して、レスポンス信号を送信する。MFP10は携帯端末80からレスポンス信号を受信すると、携帯端末80にどのモードで動作しているのかを問い合わせるための問合信号を送信する。携帯端末80は問合信号を受信すると、MFP10に、自身がP2Pモードで動作していることを示す起動モード信号を送信する。これにより、MFP10は、携帯端末80がP2Pモードで動作することを検出でき
る(図4のS76でYES)。
In this state, when the portable terminal 80 is brought closer to the MFP 10, the MFP 10 operating in the writer mode can detect that the portable terminal 80 is operating in the P2P mode. The MFP 10 activated in the writer mode is a poll device that performs a poll operation. In addition, the mobile terminal 80 that operates in the P2P mode repeatedly performs the poll operation and the listen operation. While the portable terminal 80 is performing the Listen operation, the portable terminal 80 receives a polling signal transmitted from the MFP 10 that is a poll device. When the portable terminal 80 receives the polling signal, the portable terminal 80 transmits a response signal to the MFP 10. When the MFP 10 receives the response signal from the mobile terminal 80, the MFP 10 transmits an inquiry signal for inquiring which mode the mobile terminal 80 is operating in. When the portable terminal 80 receives the inquiry signal, the portable terminal 80 transmits an activation mode signal indicating that it is operating in the P2P mode to the MFP 10. Thereby, the MFP 10 can detect that the portable terminal 80 operates in the P2P mode (YES in S76 of FIG. 4).

MFP10は、P2Pモードで動作する携帯端末80を検出すると、Writerモードを停止し、P2Pモードを起動させる(図4のS78)。次いで、MFP10は、P2Pの通信リンクが確立されることを監視する(図6のS110)。   When the MFP 10 detects the portable terminal 80 operating in the P2P mode, the MFP 10 stops the writer mode and activates the P2P mode (S78 in FIG. 4). Next, the MFP 10 monitors that the P2P communication link is established (S110 in FIG. 6).

この状態で、MFP10と携帯端末80が互いにNFC通信可能な距離内に存在すると、MFP10と携帯端末80との間に、P2Pの通信リンクが確立される(図6のS110でYES)。次いで、MFP10と携帯端末80との間で、P2Pの通信リンクを利用して、P2P通信が実行される(図6のS112)。即ち、まず、携帯端末80は、MFP10に対して、特定の機能の実行を要求する実行要求、及び、ネットワーク情報(携帯端末80が属するネットワークの無線設定、又は、携帯端末80がネットワークに属していないことを示す情報)を送信する。次いで、MFP10は、携帯端末80に対して、MFP10自身がG/OであるWFDネットワークの無線設定、又は、変更不要情報を送信する。この構成によると、MFP10は、MFP10の動作モードを、WriterモードからP2Pモードに適切に変更することができる。その結果、MFP10は、P2Pの通信リンクを利用して、携帯端末80との間で適切にP2P通信を実行し得る。   In this state, when the MFP 10 and the portable terminal 80 exist within a distance that allows NFC communication with each other, a P2P communication link is established between the MFP 10 and the portable terminal 80 (YES in S110 of FIG. 6). Next, P2P communication is executed between the MFP 10 and the portable terminal 80 using a P2P communication link (S112 in FIG. 6). That is, first, the mobile terminal 80 requests the MFP 10 to execute a specific function and the network information (the wireless setting of the network to which the mobile terminal 80 belongs, or the mobile terminal 80 belongs to the network. (Information indicating that there is no). Next, the MFP 10 transmits to the portable terminal 80 wireless setting of the WFD network in which the MFP 10 itself is G / O or change unnecessary information. According to this configuration, the MFP 10 can appropriately change the operation mode of the MFP 10 from the writer mode to the P2P mode. As a result, the MFP 10 can appropriately execute P2P communication with the mobile terminal 80 using the P2P communication link.

上記のP2P通信の結果、MFP10と携帯端末80とが共通の無線設定を利用可能となる。MFP10と携帯端末80は、共通の無線設定を利用して、無線LANI/F20及び携帯端末80の無線LANI/Fを介した無線通信リンク(WFD接続又は通常Wi−Fi接続)を確立する。   As a result of the above P2P communication, the MFP 10 and the portable terminal 80 can use a common wireless setting. The MFP 10 and the portable terminal 80 establish a wireless communication link (WFD connection or normal Wi-Fi connection) via the wireless LAN I / F 20 and the wireless LAN I / F of the portable terminal 80 using a common wireless setting.

次いで、MFP10及び携帯端末80は、確立された無線通信リンクを利用して、無線LANI/F20及び携帯端末80の無線LANI/Fを介して、実行要求が示す特定の機能の実行の対象データを通信する(図6のS114)。例えば、特定の機能が印刷である場合、携帯端末80は、MFP10に対して印刷データ(対象データ)を送信する。MFP10は、対象データを受信すると、対象データが示す画像を、印刷実行部16に印刷させる。また、特定の機能がスキャンである場合、MFP10は、スキャン実行部18の原稿送り機構にセットされた原稿をスキャンし、スキャンデータ(対象データ)を生成する。MFP10は、生成された対象データを、携帯端末80に送信する。   Next, the MFP 10 and the portable terminal 80 use the established wireless communication link to transmit target data for executing a specific function indicated by the execution request via the wireless LAN I / F 20 and the wireless LAN I / F of the portable terminal 80. Communication is performed (S114 in FIG. 6). For example, when the specific function is printing, the portable terminal 80 transmits print data (target data) to the MFP 10. Upon receiving the target data, the MFP 10 causes the print execution unit 16 to print the image indicated by the target data. When the specific function is scanning, the MFP 10 scans a document set on the document feeding mechanism of the scan execution unit 18 and generates scan data (target data). The MFP 10 transmits the generated target data to the mobile terminal 80.

機能の実行が終了すると、携帯端末80は、起動されているMFP用アプリケーションを終了させる。   When the execution of the function ends, the portable terminal 80 ends the activated MFP application.

(MFP10がReaderモードで動作する場合の通信;図9)
図9を参照して、MFP10がReaderモードで動作する場合に、MFP10と認証カード100、携帯端末80との間で実行される通信の例について説明する。図9では、Readerモードで動作するMFP10とCEモードで動作する認証カード100との間で通信が行われる例、及び、Readerモードで動作するMFP10とP2Pモードで動作する携帯端末80との間で通信が行われる例について説明する。
(Communication when the MFP 10 operates in the Reader mode; FIG. 9)
With reference to FIG. 9, an example of communication executed between MFP 10, authentication card 100, and portable terminal 80 when MFP 10 operates in the Reader mode will be described. In FIG. 9, communication is performed between the MFP 10 operating in the Reader mode and the authentication card 100 operating in the CE mode, and between the MFP 10 operating in the Reader mode and the mobile terminal 80 operating in the P2P mode. An example in which communication is performed will be described.

図9の例では、MFP10の電源がONされた後、MFP10は、AP6を介してPC8から印刷ジョブを受信する。MFP10は、受信された印刷ジョブをメモリ32に記憶させる(図2のS18でYES)。その結果、MFP10は、Readerモードで動作する(図2のS42)。次いで、MFP10は、MFP(R)−相手(CE)の通信リンクが確立されることを監視するとともに、P2Pモードで動作する機器を検出することを監視する(図5のS90、S98)。   In the example of FIG. 9, after the power of the MFP 10 is turned on, the MFP 10 receives a print job from the PC 8 via the AP 6. The MFP 10 stores the received print job in the memory 32 (YES in S18 of FIG. 2). As a result, the MFP 10 operates in the Reader mode (S42 in FIG. 2). Next, the MFP 10 monitors the establishment of the MFP (R) -partner (CE) communication link and also monitors the detection of devices operating in the P2P mode (S90 and S98 in FIG. 5).

上述したように、認証カード100は、常にCEモードで動作する。認証カード100
がMFP10に近づけられることにより、MFP10と認証カード100との間で、MFP10(R)−認証カード100(CE)の通信リンクが確立する(図5のS90でYES)。
As described above, the authentication card 100 always operates in the CE mode. Authentication card 100
Is brought closer to the MFP 10, the MFP 10 (R) -authentication card 100 (CE) communication link is established between the MFP 10 and the authentication card 100 (YES in S90 of FIG. 5).

MFP10と認証カード100との間にMFP10(R)−認証カード100(CE)の通信リンクが確立すると、MFP10は、MFP10(R)−認証カード100(CE)の通信リンクを利用して、認証カード100から、認証カード100に記憶されている認証データを受信する(図5のS92)。   When the MFP 10 (R) -authentication card 100 (CE) communication link is established between the MFP 10 and the authentication card 100, the MFP 10 uses the MFP 10 (R) -authentication card 100 (CE) communication link to authenticate. Authentication data stored in the authentication card 100 is received from the card 100 (S92 in FIG. 5).

次いで、MFP10は、受信された認証データを用いて認証処理を実行する(図5のS94)。図9の例では、認証が成功する。認証が成功すると、MFP10は、印刷ジョブに含まれる印刷データが表す画像を印刷実行部16に印刷させる。印刷が完了すると、MFP10は、メモリ32内の印刷ジョブを削除する(図5のS96)。   Next, the MFP 10 executes an authentication process using the received authentication data (S94 in FIG. 5). In the example of FIG. 9, the authentication is successful. If the authentication is successful, the MFP 10 causes the print execution unit 16 to print the image represented by the print data included in the print job. When printing is completed, the MFP 10 deletes the print job in the memory 32 (S96 in FIG. 5).

図9の例でも、携帯端末80には、MFPアプリケーションが既にインストールされている。携帯端末80は、MFPアプリケーションが起動された後に、操作部において機能実行指示(スキャン指示、印刷指示)が入力されると、P2Pモードで動作する。   Also in the example of FIG. 9, the MFP application is already installed in the portable terminal 80. The portable terminal 80 operates in the P2P mode when a function execution instruction (scan instruction, print instruction) is input on the operation unit after the MFP application is activated.

この状態で、携帯端末80がMFP10に近づけられると、Readerモードで動作するMFP10は、携帯端末80がP2Pモードで動作していることを検出できる。Readerモードで起動するMFP10は、Poll動作を行うPoll機器である。また、P2Pモードで動作する携帯端末80は、Poll動作と、Listen動作を繰り返し実行する。携帯端末80がListen動作を行っている間、携帯端末80は、Poll機器であるMFP10が送信するポーリング信号を受信する。携帯端末80は、ポーリング信号を受信すると、MFP10に対して、レスポンス信号を送信する。MFP10は携帯端末80からレスポンス信号を受信すると、携帯端末80にどのモードで動作しているのかを問い合わせるための問合信号を送信する。携帯端末80は問合信号を受信すると、MFP10に、自身がP2Pモードで動作していることを示す起動モード信号を送信する。これにより、MFP10は、携帯端末80がP2Pモードで動作することを検出できる(図5のS98でYES)。   In this state, when the mobile terminal 80 is brought close to the MFP 10, the MFP 10 operating in the Reader mode can detect that the mobile terminal 80 is operating in the P2P mode. The MFP 10 activated in the Reader mode is a Poll device that performs a Poll operation. In addition, the mobile terminal 80 that operates in the P2P mode repeatedly performs the poll operation and the listen operation. While the portable terminal 80 is performing the Listen operation, the portable terminal 80 receives a polling signal transmitted from the MFP 10 that is a poll device. When the portable terminal 80 receives the polling signal, the portable terminal 80 transmits a response signal to the MFP 10. When the MFP 10 receives the response signal from the mobile terminal 80, the MFP 10 transmits an inquiry signal for inquiring which mode the mobile terminal 80 is operating in. When the portable terminal 80 receives the inquiry signal, the portable terminal 80 transmits an activation mode signal indicating that it is operating in the P2P mode to the MFP 10. Thereby, the MFP 10 can detect that the portable terminal 80 operates in the P2P mode (YES in S98 of FIG. 5).

MFP10は、P2Pモードで動作する携帯端末80を検出すると、Readerモードを停止し、P2Pモードを起動させる(図5のS100)。次いで、MFP10は、P2Pの通信リンクが確立されることを監視する(図6のS110)。   When the MFP 10 detects the portable terminal 80 operating in the P2P mode, the MFP 10 stops the Reader mode and activates the P2P mode (S100 in FIG. 5). Next, the MFP 10 monitors that the P2P communication link is established (S110 in FIG. 6).

この状態で、MFP10と携帯端末80が互いにNFC通信可能な距離内に存在すると、MFP10と携帯端末80との間に、P2Pの通信リンクが確立される(図6のS110でYES)。次いで、MFP10と携帯端末80との間で、P2Pの通信リンクを利用して、P2P通信が実行される(図6のS112)。ここで行われるP2P通信の内容は、図8の例と同様であるため、詳しい説明を省略する。この構成によると、MFP10は、MFP10の動作モードを、ReaderモードからP2Pモードに適切に変更することができる。その結果、MFP10は、P2Pの通信リンクを利用して、携帯端末80との間で適切にP2P通信を実行し得る。   In this state, when the MFP 10 and the portable terminal 80 exist within a distance that allows NFC communication with each other, a P2P communication link is established between the MFP 10 and the portable terminal 80 (YES in S110 of FIG. 6). Next, P2P communication is executed between the MFP 10 and the portable terminal 80 using a P2P communication link (S112 in FIG. 6). Since the content of the P2P communication performed here is the same as that of the example of FIG. 8, detailed description is abbreviate | omitted. According to this configuration, the MFP 10 can appropriately change the operation mode of the MFP 10 from the Reader mode to the P2P mode. As a result, the MFP 10 can appropriately execute P2P communication with the mobile terminal 80 using the P2P communication link.

上記のP2P通信の結果、MFP10と携帯端末80とが共通の無線設定を利用可能となる。図8の例と同様に、MFP10と携帯端末80は、共通の無線設定を利用して、無線LANI/F20及び携帯端末80の無線LANI/Fを介した無線通信リンク(WFD接続又は通常Wi−Fi接続)を確立する。次いで、MFP10及び携帯端末80は、確立された無線通信リンクを利用して、無線LANI/F20及び携帯端末80の無線LANI/Fを介して、実行要求が示す特定の機能の実行の対象データを通信する(図6の
S114)。この通信の内容も、図8の例と同様であるため、詳しい説明を省略する。
As a result of the above P2P communication, the MFP 10 and the portable terminal 80 can use a common wireless setting. Similar to the example of FIG. 8, the MFP 10 and the portable terminal 80 use a common wireless setting to establish a wireless communication link (WFD connection or normal Wi−) via the wireless LAN I / F 20 and the wireless LAN I / F of the portable terminal 80. Fi connection) is established. Next, the MFP 10 and the portable terminal 80 use the established wireless communication link to transmit target data for executing a specific function indicated by the execution request via the wireless LAN I / F 20 and the wireless LAN I / F of the portable terminal 80. Communication is performed (S114 in FIG. 6). The contents of this communication are also the same as in the example of FIG.

機能の実行が終了すると、携帯端末80は、起動されているMFP用アプリケーションを終了させる。   When the execution of the function ends, the portable terminal 80 ends the activated MFP application.

(MFP10がP2Pモードで動作する場合の通信;図10)
図10を参照して、MFP10がP2Pモードで動作する場合に、P2Pモードで動作する携帯端末50との間で実行される通信の例について説明する。
(Communication when MFP 10 operates in P2P mode; FIG. 10)
With reference to FIG. 10, an example of communication performed with the mobile terminal 50 operating in the P2P mode when the MFP 10 operates in the P2P mode will be described.

図10の例では、MFP10の電源がONされた後、MFP10は、P2Pモードで動作する(図2のS18でNO、S20)。次いで、MFP10は、P2Pの通信リンクが確立することを監視する(図6のS110)。   In the example of FIG. 10, after the MFP 10 is powered on, the MFP 10 operates in the P2P mode (NO in S18 of FIG. 2, S20). Next, the MFP 10 monitors the establishment of the P2P communication link (S110 in FIG. 6).

また、図10の例では、携帯端末50には、MFPアプリケーションが既にインストールされている。携帯端末50は、MFPアプリケーションが起動された後に、操作部52において機能実行指示(スキャン指示、印刷指示)が入力されると、P2Pモードが起動されており、他のモードが起動されていない状態に移行する。   In the example of FIG. 10, the MFP application is already installed in the portable terminal 50. In the portable terminal 50, when a function execution instruction (scan instruction, print instruction) is input in the operation unit 52 after the MFP application is activated, the P2P mode is activated and no other mode is activated. Migrate to

この状態で、携帯端末50がMFP10に近づけられると、MFP10と携帯端末50との間に、P2Pの通信リンクが確立される(図6のS110でYES)。次いで、MFP10と携帯端末50との間で、P2Pの通信リンクを利用して、P2P通信が実行される(図6のS112)。ここで行われるP2P通信の内容も、図8、図9の例と同様であるため、詳しい説明を省略する。   When the portable terminal 50 is brought close to the MFP 10 in this state, a P2P communication link is established between the MFP 10 and the portable terminal 50 (YES in S110 of FIG. 6). Next, P2P communication is executed between the MFP 10 and the portable terminal 50 using a P2P communication link (S112 in FIG. 6). Since the content of the P2P communication performed here is also the same as the example of FIG. 8, FIG. 9, detailed description is abbreviate | omitted.

上記のP2P通信の結果、MFP10と携帯端末50とが共通の無線設定を利用可能となる。図8、図9の例と同様に、MFP10と携帯端末50は、共通の無線設定を利用して、無線LANI/F20、56を介した無線通信リンク(WFD接続又は通常Wi−Fi接続)を確立する。次いで、MFP10及び携帯端末50は、確立された無線通信リンクを利用して、無線LANI/F20、56を介して、実行要求が示す特定の機能の実行の対象データを通信する(図6のS114)。この通信の内容も、図8、図9の例と同様であるため、詳しい説明を省略する。   As a result of the above P2P communication, the MFP 10 and the portable terminal 50 can use a common wireless setting. As in the examples of FIGS. 8 and 9, the MFP 10 and the portable terminal 50 use a common wireless setting to establish a wireless communication link (WFD connection or normal Wi-Fi connection) via the wireless LAN I / Fs 20 and 56. Establish. Next, the MFP 10 and the portable terminal 50 communicate the target data for execution of a specific function indicated by the execution request via the wireless LAN I / Fs 20 and 56 using the established wireless communication link (S114 in FIG. 6). ). Since the contents of this communication are the same as those in the examples of FIGS.

機能の実行が終了すると、携帯端末50は、起動されているMFP用アプリケーションを終了させる。   When the execution of the function ends, the portable terminal 50 ends the activated MFP application.

(本実施例の効果)
図2を参照して説明したように、本実施例では、MFP10は、URL(サポートページURL、消耗品ページURL、又は、アプリダウンロードURL)が外部に送信されるべき状態(装置エラーが発生している場合、消耗品エラーが発生している場合、又は、アプリ供給モードが設定されている場合)であると判断される場合(図2のS10でYES、S12でYES、又は、S14でYES)に、MFP10をCEモードで動作させる(S24、S28、又は、S32)。図7に示すように、CEモードで動作するMFP10と、Readerモードで動作する携帯端末50との間でMFP10(CE)−携帯端末50(R)の通信リンクが確立される場合(図3のS50でYES)、MFP10のNFCI/F22は、MFP10(CE)−携帯端末50(R)の通信リンクを利用して、URLを携帯端末に送信する。一方、MFP10は、URLが外部に送信されるべき状態でないと判断される場合、(図2のS10でNO、S12でNO、S14でNO)、MFP10を、CEモード以外の動作モード(P2Pモード、Writerモード、又は、Readerモード)で動作させる(S20、S38、S42)。MFP10は、動作モードに応じた処理を実行する(図7〜図10参照)。即ち、本実施例のMFP10は、MFP
10の状態が、URLが外部に送信されるべき状態であると判断されるか否かに応じて、適切な動作モードで動作し得る。その結果、MFP10は、外部装置(携帯端末50、80、認証カード100)との間で適切な通信を実行し得る。従って、本実施例のMFP10は、MFP10の状態に応じて適切に動作し得る。
(Effect of this embodiment)
As described with reference to FIG. 2, in this embodiment, the MFP 10 is in a state where a URL (a support page URL, a consumables page URL, or an application download URL) should be transmitted to the outside (an apparatus error occurs). 2, when a consumable error has occurred, or when the application supply mode is set) (YES in S10 in FIG. 2, YES in S12, or YES in S14) ), The MFP 10 is operated in the CE mode (S24, S28, or S32). As shown in FIG. 7, when a communication link of MFP 10 (CE) -portable terminal 50 (R) is established between the MFP 10 operating in the CE mode and the portable terminal 50 operating in the Reader mode (FIG. 3). In S50, the NFC I / F 22 of the MFP 10 transmits the URL to the mobile terminal using the communication link of MFP 10 (CE) -mobile terminal 50 (R). On the other hand, when it is determined that the URL is not to be transmitted to the outside (NO in S10 in FIG. 2, NO in S12, NO in S14), the MFP 10 sets the MFP 10 to an operation mode other than the CE mode (P2P mode). , Writer mode, or Reader mode) (S20, S38, S42). The MFP 10 executes processing according to the operation mode (see FIGS. 7 to 10). That is, the MFP 10 of this embodiment is an MFP.
The 10 states can operate in an appropriate operation mode depending on whether or not it is determined that the URL is to be transmitted to the outside. As a result, the MFP 10 can execute appropriate communication with the external device (the portable terminals 50 and 80, the authentication card 100). Therefore, the MFP 10 according to the present exemplary embodiment can operate appropriately according to the state of the MFP 10.

(対応関係)
MFP10が「通信装置」の一例である。携帯端末50、80が「第1の外部装置」、「第3の外部装置」、「第4の外部装置」の一例である。携帯端末50、80、認証カード100が「第2の外部装置」の一例である。P2Pモード、Readerモード、Writerモードが「第1のモード」の一例である。P2Pモード、CEモードが「第2のモード」の一例である。URL(サポートページURL、消耗品ページURL、アプリダウンロードURLのいずれか)が「特定のデータ」の一例である。実行要求、携帯端末50(80)のネットワーク情報、及び、MFP10が送信する無線設定又は変更不要情報が「第1のデータ」の一例である。認証データ(図9参照)が「第2のデータ」の一例である。書き込みデータ(図8参照)が「第3のデータ」の一例である。装置エラーが発生している状態(図2のS10でYES)、消耗品エラーが発生している状態(図2のS12でYES)、アプリURL供給モードが設定されている状態(図2のS14でYES)が「第1の状態」の一例である。印刷ジョブが存在する状態(図2のS18でYES)が「第2の状態」の一例である。書き込みジョブが存在する状態(図2のS16でYES)が「第3の状態」の一例である。MFP10(CE)−携帯端末50(R)(図7参照)の通信リンクが「第1種の通信リンク」の一例である。MFP10(P2P)−携帯端末50(P2P)の通信リンク(図10参照)、MFP10(R)―認証カード(CE)の通信リンク(図9参照)、MFP(W)−携帯端末(CE)の通信リンク(図8参照)が「第2種の通信リンク」の一例である。MFP10(P2P)−携帯端末80(P2P)の通信リンク(図9、図8参照)が「第3種の通信リンク」の一例である。MFP10(CE)−携帯端末80(W)の通信リンク(図7参照)が「第4種の通信リンク」の一例である。MFP10(P2P)−携帯端末50(P2P)の通信リンク(図7参照)が「第5種の通信リンク」の一例である。図6のS110でYESの場合が「第1の場合」の一例である。図5のS90でYESの場合が「第2の場合」の一例である。図4のS70でYESの場合が「第3の場合」の一例である。
(Correspondence)
The MFP 10 is an example of a “communication device”. The mobile terminals 50 and 80 are examples of “first external device”, “third external device”, and “fourth external device”. The portable terminals 50 and 80 and the authentication card 100 are examples of “second external device”. P2P mode, Reader mode, and Writer mode are examples of the “first mode”. The P2P mode and the CE mode are examples of the “second mode”. A URL (any one of a support page URL, a consumables page URL, and an application download URL) is an example of “specific data”. The execution request, the network information of the portable terminal 50 (80), and the wireless setting or change unnecessary information transmitted by the MFP 10 are examples of “first data”. The authentication data (see FIG. 9) is an example of “second data”. Write data (see FIG. 8) is an example of “third data”. A state in which an apparatus error has occurred (YES in S10 in FIG. 2), a state in which a consumable error has occurred (YES in S12 in FIG. 2), and a state in which an application URL supply mode is set (S14 in FIG. 2) YES) is an example of “first state”. The state where the print job exists (YES in S18 in FIG. 2) is an example of the “second state”. The state where the write job exists (YES in S16 in FIG. 2) is an example of the “third state”. The communication link of MFP 10 (CE) -portable terminal 50 (R) (see FIG. 7) is an example of the “first type communication link”. MFP 10 (P2P) -mobile terminal 50 (P2P) communication link (see FIG. 10), MFP 10 (R) -authentication card (CE) communication link (see FIG. 9), MFP (W) -mobile terminal (CE) The communication link (see FIG. 8) is an example of the “second type communication link”. A communication link (see FIGS. 9 and 8) of MFP 10 (P2P) -portable terminal 80 (P2P) is an example of the “third type communication link”. A communication link (see FIG. 7) of MFP 10 (CE) -portable terminal 80 (W) is an example of a “fourth type communication link”. A communication link (see FIG. 7) of MFP 10 (P2P) -portable terminal 50 (P2P) is an example of “fifth type communication link”. The case of YES in S110 of FIG. 6 is an example of “first case”. The case of YES in S90 of FIG. 5 is an example of the “second case”. The case of YES in S70 of FIG. 4 is an example of the “third case”.

図2のS10、S12、S14が「第1の判断部」が実行する処理の一例である。図2のS18が「第2の判断部」が実行する処理の一例である。図2のS16が「第3の判断部」が実行する処理の一例である。図2のS24、S28、S32、S20、S38、S42が「モード設定部」が実行する処理の一例である。図3のS50でYESの場合の処理が「送信部」が実行する処理の一例である。図4のS72、図5のS92、図6のS112が「第1の通信制御部」が実行する処理の一例である。図3のS60、図4のS78、図5のS100が「変更部」が実行する処理の一例である。図3のS56が「受信部」が実行する処理の一例である。図6のS112が「第2の通信制御部」が実行する処理の一例である。また、図6のS112が「第3の通信制御部」が実行する処理の一例である。   S10, S12, and S14 in FIG. 2 are an example of processing executed by the “first determination unit”. S18 in FIG. 2 is an example of a process executed by the “second determination unit”. S16 in FIG. 2 is an example of a process executed by the “third determination unit”. S24, S28, S32, S20, S38, and S42 in FIG. 2 are examples of processing executed by the “mode setting unit”. The process in the case of YES in S50 of FIG. 3 is an example of the process executed by the “transmission unit”. S72 in FIG. 4, S92 in FIG. 5, and S112 in FIG. 6 are examples of processing executed by the “first communication control unit”. S60 in FIG. 3, S78 in FIG. 4, and S100 in FIG. 5 are examples of processing executed by the “changing unit”. S56 in FIG. 3 is an example of processing executed by the “receiving unit”. S112 in FIG. 6 is an example of a process executed by the “second communication control unit”. 6 is an example of processing executed by the “third communication control unit”.

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

(変形例1)MFP10のCPU30は、図2のS10、S12、S14、S16、S18の各判断を、図2に示す順序(即ち、S10、S12、S14、S16、S18の順)以外の順序で行ってもよい。即ち、一般的に言うと、第1の判断部が、通信装置の状態が、通信装置に予め記憶されている特定のデータが外部に送信されるべき第1の状態である
か否かを判断すればよい。また、第2の判断部が、通信装置の状態が第1の状態とは異なる第2の状態であるか否かを判断すればよい。また、第3の判断部が、通信装置の状態が第1の状態とは異なる第3の状態であるか否かを判断すればよい。
(Modification 1) The CPU 30 of the MFP 10 determines each determination of S10, S12, S14, S16, and S18 in FIG. 2 in an order other than the order shown in FIG. 2 (that is, the order of S10, S12, S14, S16, and S18). You may go on. That is, generally speaking, the first determination unit determines whether or not the state of the communication device is a first state in which specific data stored in advance in the communication device is to be transmitted to the outside. do it. In addition, the second determination unit may determine whether or not the state of the communication device is a second state different from the first state. Further, the third determination unit may determine whether or not the state of the communication apparatus is a third state different from the first state.

(変形例2)MFP10のCPU30は、図2のS10、S12、S14の各判断を実行すれば、図2のS16、S18の各判断のうちの1つ以上の判断を省略してもよい。即ち、一般的に言うと、モード設定部は、通信装置の状態が第1の状態であると判断される場合に、通信装置の動作モードをNFC規格のCEモードに設定し、通信装置の状態が第1の状態でないと判断される場合に、通信装置の動作モードをCEモードとは異なるNFC規格の第1のモードに設定すればよい。 (Modification 2) The CPU 30 of the MFP 10 may omit one or more of the determinations of S16 and S18 of FIG. 2 if the determinations of S10, S12, and S14 of FIG. 2 are executed. That is, generally speaking, when it is determined that the state of the communication device is the first state, the mode setting unit sets the operation mode of the communication device to the CE mode of the NFC standard, and the state of the communication device Is determined not to be in the first state, the operation mode of the communication apparatus may be set to the first mode of the NFC standard different from the CE mode.

(変形例3)また、MFP10のCPU30は、図2のS10、S12、S14の各判断のうちの少なくとも1つを実行すればよい。その場合、CPU30は、図2のS10、S12、S14の各判断のうちの1つ以上の判断を省略してもよい。即ち、一般的に言うと、第1の判断部は、通信装置の状態が、通信装置に予め記憶されている特定のデータが外部に送信されるべき第1の状態であるか否かを判断すればよい。 (Modification 3) The CPU 30 of the MFP 10 may execute at least one of the determinations of S10, S12, and S14 in FIG. In that case, the CPU 30 may omit one or more of the determinations of S10, S12, and S14 of FIG. That is, generally speaking, the first determination unit determines whether or not the state of the communication device is a first state in which specific data stored in advance in the communication device is to be transmitted to the outside. do it.

(変形例4)上記の実施例では、図6のS112で実行されるP2P通信において、通信相手(例えば、携帯端末50)は、既にMFP10に実行要求を送信している場合(図3のS56でYES、S58でYES)には、改めてMFP10に実行要求を送信しない。これに代えて、図6のS112で実行されるP2P通信において、通信相手は、既にMFP10に実行要求を送信している場合であっても、改めてMFP10に実行要求を送信してもよい。 (Modification 4) In the above embodiment, in the P2P communication executed in S112 of FIG. 6, the communication partner (for example, the portable terminal 50) has already transmitted an execution request to the MFP 10 (S56 of FIG. 3). YES, YES in S58), an execution request is not transmitted to the MFP 10 again. Instead of this, in the P2P communication executed in S112 of FIG. 6, even if the communication partner has already sent an execution request to the MFP 10, it may send an execution request to the MFP 10 again.

(変形例5)MFP10のCPU30が印刷ジョブ又は書き込みジョブを受信する手法は、AP6を介して受信する手法に限られない。例えば、ユーザが操作部12を操作して、直接MFP10に印刷ジョブ又は書き込みジョブを入力してもよい。その場合、MFP10のCPU30は、操作部12を介して入力された印刷ジョブ又は書き込みジョブをメモリ32に記憶させる。一般的に言うと、「第3のデータ」は、通信装置によって取得されればよい。 (Modification 5) The method of receiving a print job or a write job by the CPU 30 of the MFP 10 is not limited to the method of receiving via the AP 6. For example, the user may directly input a print job or a write job to the MFP 10 by operating the operation unit 12. In that case, the CPU 30 of the MFP 10 stores the print job or the write job input via the operation unit 12 in the memory 32. Generally speaking, the “third data” may be acquired by the communication device.

(変形例6)「通信装置」は、印刷機能及びスキャン機能を実行可能な多機能機(即ちMFP10)に限られず、印刷機能及びスキャン機能のうちの印刷機能のみを実行可能なプリンタであってもよいし、印刷機能及びスキャン機能のうちのスキャン機能のみを実行可能なスキャナであってもよい。また、「通信装置」は、印刷機能及びスキャン機能とは異なる機能(例えば、画像の表示機能、データの演算機能)を実行する装置(例えば、PC、サーバ、携帯端末(携帯電話、スマートフォン、PDA等))であってもよい。即ち、「通信装置」は、NFC方式の通信を実行可能なあらゆるデバイスを含む。また、「外部装置」は、携帯端末50、80、認証カード100に限られず、NFC方式の通信を実行可能なあらゆるデバイスを含む。 (Modification 6) The “communication device” is not limited to the multi-function device (that is, the MFP 10) that can execute the print function and the scan function, and is a printer that can execute only the print function of the print function and the scan function. Alternatively, it may be a scanner that can execute only the scan function of the print function and the scan function. The “communication device” is a device (for example, a PC, a server, a mobile terminal (a mobile phone, a smartphone, a PDA) that executes a function (for example, an image display function, a data calculation function) different from the print function and the scan function. Etc.)). That is, the “communication apparatus” includes any device that can execute NFC communication. The “external device” is not limited to the portable terminals 50 and 80 and the authentication card 100, and includes any device capable of performing NFC communication.

(変形例7)上記の各実施例では、図2〜図6の各処理がソフトウェア(即ちプログラム)によって実現されるが、図2〜図6の各処理のうちの少なくとも1つが論理回路等のハードウェアによって実現されてもよい。 (Modification 7) In each of the above embodiments, each process in FIGS. 2 to 6 is realized by software (that is, a program), but at least one of the processes in FIGS. 2 to 6 is a logic circuit or the like. It may be realized by hardware.

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

2:通信システム、4:AP、6:PC、10:多機能機(MFP)、24:制御部、30:CPU、32:メモリ、50、80:携帯端末、100:認証カード   2: communication system, 4: AP, 6: PC, 10: multi-function device (MFP), 24: control unit, 30: CPU, 32: memory, 50, 80: portable terminal, 100: authentication card

Claims (15)

通信装置であって、  A communication device,
NFC(Near Field Communicationの略)規格に従った通信方式であるNFC方式で通信を実行するためのNFCインターフェースと、  An NFC interface for executing communication in the NFC method, which is a communication method in accordance with the NFC (Near Field Communication) standard;
メモリと、  Memory,
前記通信装置の状態が第1の状態である場合に、前記メモリに記憶されている第1のデータを、前記NFCインターフェースに登録する第1の登録部と、  A first registration unit that registers the first data stored in the memory in the NFC interface when the state of the communication device is the first state;
を備え、  With
前記NFCインターフェースは、前記第1のデータが前記NFCインターフェースに登録されている状況にて、前記通信装置と第1の外部装置との間に第1の通信リンクが確立される場合に、前記第1の通信リンクを利用して、前記NFCインターフェースに登録済みの前記第1のデータを前記第1の外部装置に送信し、  The NFC interface is configured such that the first communication link is established between the communication device and a first external device in a situation where the first data is registered in the NFC interface. Transmitting the first data registered in the NFC interface to the first external device using a communication link of 1;
前記第1の通信リンクは、前記NFCインターフェースを介してデータ通信が実行されるべき通信リンクであり、  The first communication link is a communication link on which data communication is to be performed via the NFC interface;
前記NFCインターフェースは、前記通信装置の状態が前記第1の状態ではなく、前記通信装置と第2の外部装置との間に第2の通信リンクが確立される場合に、前記第2の通信リンクを利用して、前記第1のデータとは異なる第2のデータを前記第2の外部装置に送信し、  The NFC interface is configured such that when the state of the communication device is not the first state and a second communication link is established between the communication device and a second external device, the second communication link To transmit second data different from the first data to the second external device,
前記第2の通信リンクは、前記第1の通信リンクとは異なる通信リンクであって、前記NFCインターフェースを介してデータ通信が実行されるべき通信リンクである、  The second communication link is a communication link different from the first communication link, and is a communication link in which data communication is to be performed via the NFC interface.
通信装置。  Communication device.
前記通信装置は、さらに、前記通信装置の状態が、前記第1の状態であるか否かを判断する第1の判断部を備え、  The communication device further includes a first determination unit that determines whether the state of the communication device is the first state,
前記第1の登録部は、前記通信装置の状態が前記第1の状態であると判断されることに応じて、前記NFCインターフェースに前記第1のデータを登録する、請求項1に記載の通信装置。  The communication according to claim 1, wherein the first registration unit registers the first data in the NFC interface in response to determining that the state of the communication device is the first state. apparatus.
前記通信装置は、さらに、前記NFCインターフェースに前記第1のデータが登録されている状況において、前記通信装置の状態が前記第1の状態から前記第1の状態とは異なる第2の状態に変更された後に、前記NFCインターフェースに登録済の前記第1のデータを、前記メモリに記憶されている前記第2のデータに置き換えることで、前記第2のデータを、前記NFCインターフェースに登録する第2の登録部を備え、  The communication device further changes the state of the communication device from the first state to a second state different from the first state in a situation where the first data is registered in the NFC interface. After that, the second data registered in the NFC interface is replaced by replacing the first data registered in the NFC interface with the second data stored in the memory. With a registration section
前記NFCインターフェースは、前記第2のデータが前記NFCインターフェースに登録されている状況にて、前記通信装置と第2の外部装置との間に前記第2の通信リンクが確立される場合に、前記第2の通信リンクを利用して、前記NFCインターフェースに登録済みの前記第2のデータを前記第2の外部装置に送信する、請求項1又は2に記載の通信装置。  The NFC interface is configured when the second communication link is established between the communication device and a second external device in a situation where the second data is registered in the NFC interface. The communication device according to claim 1, wherein the second data registered in the NFC interface is transmitted to the second external device using a second communication link.
前記通信装置は、さらに、前記通信装置の状態が、前記第2の状態であるか否かを判断する第2の判断部を備え、The communication device further includes a second determination unit that determines whether the state of the communication device is the second state,
前記第2の登録部は、前記通信装置の状態が前記第2の状態であると判断されることに応じて、前記NFCインターフェースに前記第2のデータを登録する、請求項3に記載の通信装置。  The communication according to claim 3, wherein the second registration unit registers the second data in the NFC interface in response to determining that the state of the communication device is the second state. apparatus.
前記第1の通信リンクは、前記第1の外部装置の動作モードが前記NFC規格のReaderモードに設定されている状況で確立される通信リンクである、請求項1から4のいずれか一項に記載の通信装置。  5. The communication link according to claim 1, wherein the first communication link is a communication link established in a situation where an operation mode of the first external device is set to a reader mode of the NFC standard. 6. The communication device described. 前記第1の通信リンクは、前記通信装置の動作モードが前記NFC規格のCE(Card Emulationの略)モードに設定されている状況で確立される通信リンクである、請求項5に記載の通信装置。  6. The communication apparatus according to claim 5, wherein the first communication link is a communication link established in a situation where an operation mode of the communication apparatus is set to a CE (abbreviation for Card Emulation) mode of the NFC standard. . 前記第2の通信リンクは、前記第2の外部装置の動作モードが前記NFC規格のReaderモードに設定されている状況で確立される通信リンクである、請求項1から6のいずれか一項に記載の通信装置。  7. The communication link according to claim 1, wherein the second communication link is a communication link established in a situation where an operation mode of the second external device is set to a reader mode of the NFC standard. The communication device described. 前記第2の通信リンクは、前記通信装置の動作モードが前記NFC規格のCE(Card Emulationの略)モードに設定されている状況で確立される通信リンクである、請求項7に記載の通信装置。  The communication device according to claim 7, wherein the second communication link is a communication link established in a situation where an operation mode of the communication device is set to a CE (abbreviation of Card Emulation) mode of the NFC standard. . 前記通信装置は、さらに、  The communication device further includes:
印刷実行部と、  A print execution unit;
前記NFCインターフェースとは異なる通信インターフェースであって、前記NFC規格とは異なる規格に従った通信方式で通信を実行するための通信インターフェースと、  A communication interface different from the NFC interface, and a communication interface for executing communication in a communication method according to a standard different from the NFC standard;
前記第2の通信リンクを利用して前記第2の外部装置との間で前記第2のデータが通信された後に、前記通信装置と前記第2の外部装置との間に、前記通信インターフェースを介してデータ通信が実行されるべき通信リンクである特定の通信リンクを確立する確立部と、  After the second data is communicated with the second external device using the second communication link, the communication interface is provided between the communication device and the second external device. An establishing unit for establishing a specific communication link, through which data communication is to be performed,
前記特定の通信リンクを利用して、前記第2の外部装置から印刷データを受信する受信部と、  A receiving unit that receives print data from the second external device using the specific communication link;
受信済の前記印刷データが表す画像を、前記印刷実行部に印刷させる印刷制御部と、  A print control unit that causes the print execution unit to print an image represented by the received print data;
をさらに備える、請求項1から6のいずれか一項に記載の通信装置。  The communication device according to any one of claims 1 to 6, further comprising:
前記通信装置は、前記通信装置の状態が前記第1の状態ではなく、前記通信装置と第2の外部装置との間に前記第2の通信リンクが確立される場合に、前記第2のデータを前記NFCインターフェースに登録することなく、前記NFCインターフェースに、前記メモリに記憶されている前記第2のデータを前記第2の外部装置に送信させる、請求項9に記載の通信装置。  The communication device has the second data when the state of the communication device is not the first state and the second communication link is established between the communication device and a second external device. The communication apparatus according to claim 9, wherein the second data stored in the memory is transmitted to the second external apparatus without registering the data in the NFC interface. 前記第2の通信リンクは、前記通信装置の動作モードが前記NFC規格のP2P(Peer to Peerの略)モードに設定されている状況で確立される通信リンクである、請求項9又は10に記載の通信装置。  The said 2nd communication link is a communication link established in the condition where the operation mode of the said communication apparatus is set to the P2P (abbreviation of Peer to Peer) mode of the said NFC standard. Communication equipment. 前記第1の状態は、前記通信装置が少なくとも1つの機能を実行不可能であるエラー状態を含み、  The first state includes an error state where the communication device is unable to perform at least one function;
前記第1のデータは、前記エラー状態を解消させるための手法を示すウェブページの位置情報を含む、請求項1から11のいずれか一項に記載の通信装置。  The communication device according to any one of claims 1 to 11, wherein the first data includes position information of a web page indicating a technique for eliminating the error state.
前記第1の状態は、特定のアプリケーションプログラムを外部装置にダウンロードさせるべき状態を含み、  The first state includes a state in which a specific application program is to be downloaded to an external device,
前記第1のデータは、前記外部装置が前記特定のアプリケーションをダウンロードするための位置情報を含む、請求項1から11のいずれか一項に記載の通信装置。  The communication device according to claim 1, wherein the first data includes position information for the external device to download the specific application.
前記第1のデータは、URLを含む、請求項1から13のいずれか一項に記載の通信装置。The communication device according to any one of claims 1 to 13, wherein the first data includes a URL. 通信装置のためのコンピュータプログラムであって、  A computer program for a communication device,
前記通信装置は、  The communication device
NFC(Near Field Communicationの略)規格に従った通信方式であるNFC方式で通信を実行するためのNFCインターフェースと、  An NFC interface for executing communication in the NFC method, which is a communication method in accordance with the NFC (Near Field Communication) standard;
メモリと、  Memory,
コンピュータと、  A computer,
を備え、  With
前記コンピュータプログラムは、前記コンピュータに、  The computer program is stored in the computer.
前記通信装置の状態が第1の状態である場合に、前記メモリに記憶されている第1のデータを、前記NFCインターフェースに登録する第1の登録処理を実行させ、    When the state of the communication device is the first state, the first data stored in the memory is registered in the NFC interface, and a first registration process is executed.
前記NFCインターフェースは、前記第1のデータが前記NFCインターフェースに登録されている状況にて、前記通信装置と第1の外部装置との間に第1の通信リンクが確立される場合に、前記第1の通信リンクを利用して、前記NFCインターフェースに登録済みの前記第1のデータを前記第1の外部装置に送信し、  The NFC interface is configured such that the first communication link is established between the communication device and a first external device in a situation where the first data is registered in the NFC interface. Transmitting the first data registered in the NFC interface to the first external device using a communication link of 1;
前記第1の通信リンクは、前記NFCインターフェースを介してデータ通信が実行されるべき通信リンクであり、  The first communication link is a communication link on which data communication is to be performed via the NFC interface;
前記NFCインターフェースは、前記通信装置の状態が前記第1の状態ではなく、前記通信装置と第2の外部装置との間に第2の通信リンクが確立される場合に、前記第2の通信リンクを利用して、前記第1のデータとは異なる第2のデータを前記第2の外部装置に送信し、  The NFC interface is configured such that when the state of the communication device is not the first state and a second communication link is established between the communication device and a second external device, the second communication link To transmit second data different from the first data to the second external device,
前記第2の通信リンクは、前記第1の通信リンクとは異なる通信リンクであって、前記NFCインターフェースを介してデータ通信が実行されるべき通信リンクである、  The second communication link is a communication link different from the first communication link, and is a communication link in which data communication is to be performed via the NFC interface.
コンピュータプログラム。  Computer program.
JP2016210326A 2016-10-27 2016-10-27 Communication device Active JP6237860B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016210326A JP6237860B2 (en) 2016-10-27 2016-10-27 Communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016210326A JP6237860B2 (en) 2016-10-27 2016-10-27 Communication device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2015221108A Division JP6032341B2 (en) 2015-11-11 2015-11-11 Communication device

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2017212220A Division JP6508291B2 (en) 2017-11-01 2017-11-01 Communication device

Publications (2)

Publication Number Publication Date
JP2017038402A JP2017038402A (en) 2017-02-16
JP6237860B2 true JP6237860B2 (en) 2017-11-29

Family

ID=58048158

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016210326A Active JP6237860B2 (en) 2016-10-27 2016-10-27 Communication device

Country Status (1)

Country Link
JP (1) JP6237860B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011028615A (en) * 2009-07-28 2011-02-10 Ricoh Co Ltd Noncontact communication device, information processing apparatus, communication method and program

Also Published As

Publication number Publication date
JP2017038402A (en) 2017-02-16

Similar Documents

Publication Publication Date Title
JP5838987B2 (en) Communication device
JP6123416B2 (en) Communication device
JP6019675B2 (en) Function execution device
JP5900228B2 (en) Communication device
JP5958161B2 (en) Communication device
JP2015070518A (en) Communication device
JP5900226B2 (en) Communication device
US10278072B2 (en) Communication device and terminal device
JP6237860B2 (en) Communication device
JP6032341B2 (en) Communication device
JP6508291B2 (en) Communication device
JP6476661B2 (en) Communication equipment
JP6337984B2 (en) Communication device
JP6168201B2 (en) Communication device
JP7156461B2 (en) communication equipment
JP6662478B2 (en) Communication device and mobile terminal
JP6304323B2 (en) Function execution device
JP6406364B2 (en) Communication device
JP6638786B2 (en) Communication equipment
JP6528875B2 (en) Function execution device
JP6070880B2 (en) Communication device
JP2019110549A (en) Communication device

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20161128

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20161128

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20170414

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20170414

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170814

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170822

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20171003

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20171016

R150 Certificate of patent or registration of utility model

Ref document number: 6237860

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150