JP2017147741A - Communication device - Google Patents

Communication device Download PDF

Info

Publication number
JP2017147741A
JP2017147741A JP2017075027A JP2017075027A JP2017147741A JP 2017147741 A JP2017147741 A JP 2017147741A JP 2017075027 A JP2017075027 A JP 2017075027A JP 2017075027 A JP2017075027 A JP 2017075027A JP 2017147741 A JP2017147741 A JP 2017147741A
Authority
JP
Japan
Prior art keywords
communication
mode
mfp
terminal device
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2017075027A
Other languages
Japanese (ja)
Other versions
JP6337984B2 (en
Inventor
柴田 寛
Hiroshi Shibata
寛 柴田
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 JP2017075027A priority Critical patent/JP6337984B2/en
Publication of JP2017147741A publication Critical patent/JP2017147741A/en
Application granted granted Critical
Publication of JP6337984B2 publication Critical patent/JP6337984B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a technology for making it possible to appropriately execute communication using a first type interface and communication using a second type interface differing from the first type interface.SOLUTION: An MFP 10 monitors establishment of a communication link between an MFP(CE) and a partner (W) during an initial state where an only CE mode is started up. When the communication link between the MFP(CE) and the partner (W) is established, the MFP 10 receives authentication information and an execution request from a portable terminal 50. When the authentication is successful and a specific function designated by the execution request is ready, the MFP 10 establishes a P2P communication link with the portable terminal 50. The MFP 10 executes two-way communication on network information and wireless setting (or change unnecessity information) by using the P2P communication link.SELECTED DRAWING: Figure 8

Description

本明細書によって開示される技術は、端末装置と通信可能な通信装置に関する。   The technology disclosed in this specification relates to a communication device capable of communicating with a terminal device.

特許文献1には、通信端末とNFC(Near Field Communicationの略)通信を実行するための情報処理装置が開示されている。情報処理装置は、NFC規格のCE(Card Emulationの略)モードと、P2P(Peer to Peerの略)モードとを切り替えて、通信端末とNFC通信を実行する。   Patent Document 1 discloses an information processing apparatus for performing NFC (Near Field Communication) communication with a communication terminal. The information processing apparatus performs NFC communication with the communication terminal by switching between a CE (abbreviation of card emulation) mode of the NFC standard and a P2P (abbreviation of peer to peer) mode.

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

上記の特許文献1の技術では、情報処理装置が、NFC通信のためのインターフェースとは異なるインターフェースを備えることについて、考慮されていない。   In the technique of the above-described Patent Document 1, it is not considered that the information processing apparatus includes an interface different from the interface for NFC communication.

本明細書では、第1種のインターフェースを利用した通信と、第1種のインターフェースとは異なる第2種のインターフェースを利用した通信と、を適切に実行し得る技術を提供する。   The present specification provides a technique capable of appropriately executing communication using a first type interface and communication using a second type interface different from the first type interface.

本明細書によって開示される一つの技術は、端末装置と通信可能な通信装置である。通信装置は、NFC(Near Field Communicationの略)規格に従った通信方式であるNFC方式で端末装置と通信を実行するための第1種のインターフェースと、NFC方式とは異なる方式で端末装置と通信を実行するための第2種のインターフェースであって、第2種のインターフェースを介した通信の通信速度は、第1種のインターフェースを介した通信の通信速度よりも速い、第2種のインターフェースと、制御部と、を備える。制御部は、受信部と、第1の判断部と、確立部と、通信制御部と、を備える。受信部は、通信装置と端末装置との間に第1種のインターフェースを介した第1の通信リンクが確立される場合に、第1の通信リンクを利用して、端末装置から第1の情報を受信する。第1の通信リンクは、通信装置が、NFC規格のP2P(Peer to Peerの略)モードとは異なる第1のモードで動作すると共に、端末装置が、NFC規格のP2Pモード及び第1のモードとは異なる第2のモードで動作して、データ通信が実行されるべき通信リンクである。第1の判断部は、端末装置から第1の情報が受信される場合に、通信装置と端末装置との間で第2種のインターフェースを介した通信を実行可能であるのか否かに関する第1の判断処理を実行する。確立部は、端末装置から第1の情報が受信される場合に、通信装置と端末装置との間に第1種のインターフェースを介した第2の通信リンクを確立する。第2の通信リンクは、通信装置がP2Pモードで動作すると共に、端末装置がP2Pモードで動作して、データ通信が実行されるべき通信リンクである。通信制御部は、第1の判断処理において、通信装置と端末装置との間で第2種のインターフェースを介した通信を実行可能であると判断される場合に、第2の通信リンクを利用して、第2の情報の双方向通信を端末装置と実行し、第1の判断処理において、通信装置と端末装置との間で第2種のインターフェースを介した通信を実行可能でないと判断される場合に、第2の情報の双方向通信を端末装置と実行しない。第2の情報は、通信装置と端末装置との間で第2種のインターフェースを介した通信を実行するための情報である。   One technique disclosed in this specification is a communication device capable of communicating with a terminal device. The communication device communicates with the terminal device by a method different from the NFC method and a first type interface for executing communication with the terminal device by the NFC method which is a communication method in accordance with NFC (Near Field Communication) standard. A second type interface for performing communication, wherein a communication speed of communication via the second type interface is higher than a communication speed of communication via the first type interface; And a control unit. The control unit includes a reception unit, a first determination unit, an establishment unit, and a communication control unit. When the first communication link via the first type interface is established between the communication device and the terminal device, the reception unit uses the first communication link to receive the first information from the terminal device. Receive. In the first communication link, the communication device operates in a first mode different from the P2P (abbreviation of Peer to Peer) mode of the NFC standard, and the terminal device operates in the P2P mode and the first mode of the NFC standard. Are communication links on which data communication is to be performed, operating in a different second mode. The first determination unit relates to whether or not communication via the second type interface can be performed between the communication device and the terminal device when the first information is received from the terminal device. The determination process is executed. The establishing unit establishes a second communication link via the first type interface between the communication device and the terminal device when the first information is received from the terminal device. The second communication link is a communication link in which data communication is to be performed while the communication device operates in the P2P mode and the terminal device operates in the P2P mode. The communication control unit uses the second communication link when it is determined in the first determination process that communication via the second type interface can be executed between the communication device and the terminal device. Thus, the two-way communication of the second information is performed with the terminal device, and it is determined in the first determination process that the communication via the second type interface is not executable between the communication device and the terminal device. In such a case, the two-way communication of the second information is not performed with the terminal device. The second information is information for executing communication via the second type interface between the communication device and the terminal device.

上記の構成によると、通信装置は、通信装置と端末装置との間に第1種のインターフェースを介した第1の通信リンク(即ち、通信装置=第1のモード、端末装置=第2のモード)が確立されると、第1種の通信リンクを利用して端末装置から第1の情報を受信する。通信装置は、第1の情報が受信される場合に、通信装置と端末装置との間に第1種のインターフェースを介した第2の通信リンク(即ち、通信装置、端末装置=P2Pモード)を確立し得る。また、通信装置は、第1の情報が受信される場合に、通信装置と端末装置との間で第2種のインターフェースを介した通信を実行可能であるのか否かに関する第1の判断処理を実行する。通信装置は、第1の判断処理において、通信装置と端末装置との間で第2種のインターフェースを介した通信を実行可能であると判断される場合に、第2の通信リンクを利用して、第2の情報の双方向通信を端末装置と実行する。一方、通信装置は、第1の判断処理において、通信装置と端末装置との間で第2種のインターフェースを介した通信を実行可能でないと判断される場合に、第2の情報の双方向通信を端末装置と実行しない。即ち、上記の通信装置は、第1の判断処理において、通信装置と端末装置との間で第2種のインターフェースを介した通信を実行可能であると判断されるか否かに応じて、第2の通信リンクを利用して、第2の情報の双方向通信を端末装置と実行するか否かを変えることができる。従って、上記の通信装置によると、第1種のインターフェースを利用した通信と、第1種のインターフェースとは異なる第2種のインターフェースを利用した通信と、を適切に実行し得る。   According to the above configuration, the communication device has a first communication link between the communication device and the terminal device via the first type interface (that is, communication device = first mode, terminal device = second mode). ) Is established, the first information is received from the terminal device using the first type communication link. When the first information is received, the communication device establishes a second communication link (that is, communication device, terminal device = P2P mode) via the first type interface between the communication device and the terminal device. Can be established. In addition, when the first information is received, the communication device performs a first determination process regarding whether or not communication via the second type interface can be performed between the communication device and the terminal device. Run. The communication device uses the second communication link when it is determined in the first determination process that communication can be performed between the communication device and the terminal device via the second type interface. The two-way communication of the second information is executed with the terminal device. On the other hand, when it is determined in the first determination process that the communication device and the terminal device cannot perform communication via the second type interface, the communication device performs bidirectional communication of the second information. Is not executed with the terminal device. That is, according to whether or not the communication device described above is capable of performing communication via the second type interface between the communication device and the terminal device in the first determination process. Whether or not to perform bidirectional communication of the second information with the terminal device can be changed using the two communication links. Therefore, according to the communication apparatus, communication using the first type interface and communication using the second type interface different from the first type interface can be appropriately executed.

なお、上記の通信装置を実現するための制御方法、コンピュータプログラム、及び、当該コンピュータプログラムを記憶するコンピュータ読取可能記録媒体も、新規で有用である。また、上記の通信装置と端末装置とを含む通信システムも、新規で有用である。また、上記の通信装置と通信可能な端末装置を実現するための制御方法、コンピュータプログラム、及び、当該コンピュータプログラムを記憶するコンピュータ読取可能記録媒体も、新規で有用である。   Note that a control method, a computer program, and a computer-readable recording medium storing the computer program for realizing the communication apparatus are also novel and useful. A communication system including the communication device and the terminal device is also novel and useful. In addition, a control method, a computer program, and a computer-readable recording medium that stores the computer program for realizing a terminal device that can communicate with the communication device are novel and useful.

通信システムの構成を示す。1 shows a configuration of a communication system. 第1実施例のMFPのCPUの通信処理のフローチャートを示す。3 shows a flowchart of communication processing of the CPU of the MFP according to the first embodiment. 第1実施例の携帯端末のCPUのインストール処理のフローチャートを示す。The flowchart of the installation process of CPU of the portable terminal of 1st Example is shown. 第1実施例の携帯端末のCPUの登録処理のフローチャートを示す。The flowchart of the registration process of CPU of the portable terminal of 1st Example is shown. 第1実施例の携帯端末のCPUの機能実行処理のフローチャートを示す。The flowchart of the function execution process of CPU of the portable terminal of 1st Example is shown. 第1実施例のインストール実行時の通信のシーケンスチャートを示す。The communication sequence chart at the time of installation execution of the first embodiment is shown. 第1実施例の認証情報登録実行時の通信のシーケンスチャートを示す。The communication sequence chart at the time of the authentication information registration execution of 1st Example is shown. 第1実施例の機能実行時の通信のシーケンスチャートを示す。The sequence chart of communication at the time of the function execution of 1st Example is shown. 第2実施例のMFPのCPUの通信処理のフローチャートを示す。6 shows a flowchart of communication processing of a CPU of an MFP according to a second embodiment. 第2実施例の携帯端末のCPUの機能実行処理のフローチャートを示す。The flowchart of the function execution process of CPU of the portable terminal of 2nd Example is shown. 第2実施例の機能実行時の通信のシーケンスチャートを示す。The communication sequence chart at the time of function execution of 2nd Example is shown. 第3実施例の機能実行時の通信のシーケンスチャートを示す。The communication sequence chart at the time of the function execution of 3rd Example is shown. 第4実施例の機能実行時の通信のシーケンスチャートを示す。The sequence chart of communication at the time of function execution of the 4th example is shown.

(第1実施例)
(通信システム2の構成;図1)
図1に示すように、通信システム2は、多機能器(以下では「MFP(Multi-Function
Peripheralの略)」と呼ぶ)10と、携帯端末50、80と、アクセスポイント(以下
では「AP」と呼ぶ)6と、PC8と、を備える。MFP10と携帯端末50、80とは、近距離無線通信を実行可能である。近距離無線通信は、NFC方式に従った無線通信で
ある。本実施例では、ISO/IEC21481又はISO/IEC18092の国際標準規格に基づいて、NFC方式の無線通信が実行される。
(First embodiment)
(Configuration of communication system 2; FIG. 1)
As shown in FIG. 1, the communication system 2 includes a multi-function device (hereinafter referred to as “MFP (Multi-Function
10), portable terminals 50 and 80, an access point (hereinafter referred to as “AP”) 6, and a PC 8. The MFP 10 and the portable terminals 50 and 80 can execute short-range wireless communication. 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との接続(以下では「WFD接続」と呼ぶ)を確立することによって、WFDネットワークを構築することができる。同様に、MFP10は、PC8とのWFD接続を確立することによって、WFDネットワークを構築することができる。   For example, the MFP 10 can establish a WFD network by establishing a connection (hereinafter referred to as “WFD connection”) with the mobile terminal 50 in accordance with the WFD method. 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(Serv
ice 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 settings (authentication method, encryption method, password, wireless network SSID (Serv
ice Set Identifier) and BSSID (including 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. 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. In a state where the WFDI / F setting is ON, the memory 32 further stores a value indicating the current state of the MFP 10 relating to the WFD system (any one of the G / O state, the client state, and the device state). .

メモリ32は、さらに、後述の登録処理(図4)が実行されることにより、他のデバイス(例えば携帯端末50)から送信された当該他のデバイスの認証情報を記憶する(図4参照)。認証情報は、例えば、携帯端末50に固有のID(識別情報)である。また、メモリ32は、他の装置(例えば携帯端末50)が、MFP10を利用して様々な機能(印刷機能、スキャン機能等)を実行するためのアプリケーションプログラム(以下では、「MFP用アプリケーション」と呼ぶ)を他の装置にダウンロードさせるためのURL(以下では、「アプリダウンロードURL」と呼ぶ)を記憶する。アプリダウンロードURLは、MFP10のベンダによって、予めメモリ32に記憶されている。   The memory 32 further stores authentication information of the other device transmitted from another device (for example, the mobile terminal 50) by executing a registration process (FIG. 4) described later (see FIG. 4). The authentication information is an ID (identification information) unique to the mobile terminal 50, for example. The memory 32 is an application program (hereinafter referred to as “MFP application”) that allows 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. The application download URL is stored in advance in the memory 32 by the vendor of the MFP 10.

(NFC方式の通信)
次に、NFC方式の通信について説明する。以下では、NFC方式の通信を実行可能な機器(MFP10、携帯端末50、80等)のことを「NFC機器」と呼ぶ。また、以下では、ReaderモードとWriterモードを合わせて、「R/Wモード」と簡単に記載することがある。
(NFC communication)
Next, NFC communication will be described. Hereinafter, devices capable of performing NFC communication (MFP 10, mobile terminals 50, 80, 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つのモードの全てを利用可能な機器である。   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.

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 data to the second NFC device using a P2P communication link. Thereafter, the second NFC device transmits the second 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機器と、Typ
eFのNFC機器と、TypeBのNFC機器と、のいずれも、CEモードを利用可能である。Readerモードは、CEモードでカードとして動作するNFC機器からデータを読み出すためのモードである。Writerモードは、CEモードでカードとして動作するNFC機器にデータを書き込むためのモードである。なお、Readerモードでは、NFC規格のカードからデータを読み出すこともできる。また、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. Type A NFC devices and Type
Both the eF 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. 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, communication links corresponding to the writer 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 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.

MFP10は、MFP10の電源がONされると、CEモードのみが起動されており、P2Pモード及びR/Wモードが起動されていない初期状態に移行する。本実施例では、MFP10は、後述の所定の場合(図2のS20でYES、S22でYES)に、上記の初期状態から、P2Pモードのみが起動されており、R/Wモード及びCEモードが起動されていない状態に移行する(S24)。なお、本実施例では、MFP10は、MFP10の電源がONされている間に、R/Wモードが起動されていない状態を維持する。従って、本実施例の変形例では、MFP10は、R/Wモードを利用不可能であってもよい。   When the MFP 10 is turned on, the MFP 10 is activated only in the CE mode, and shifts to an initial state in which the P2P mode and the R / W mode are not activated. In this embodiment, the MFP 10 is activated only in the P2P mode from the initial state described above in a predetermined case (YES in S20 in FIG. 2 and YES in S22), and the R / W mode and the CE mode are set. A transition is made to a state where it is not activated (S24). In this embodiment, the MFP 10 maintains a state where the R / W mode is not activated while the power of the MFP 10 is turned on. Therefore, in the modification of this embodiment, the MFP 10 may not be able to use the R / W mode.

(WFD)
次に、WFDについて説明する。WFDは、Wi−Fi Allianceによって策
定された規格である。WFDは、Wi−Fi Allianceによって作成された「Wi−Fi Peer−to−Peer(P2P) Technical Specification」に記述されている。
(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” 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 portable terminal 50 is a portable terminal such as a mobile phone (for example, a smartphone), a PDA, a notebook PC, a tablet PC, a portable music playback device, a portable video playback device, and the like. 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用アプリケーション」と呼ぶ)を含む。CPU62は、後述のインストール処理(図3)を実行することにより、MFP用アプリケーションをダウンロードし、ダウンロードされた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.). The CPU 62 can download an MFP application by executing an installation process (FIG. 3) described later, and install the downloaded MFP application in the memory 64.

メモリ64は、さらに、携帯端末50の認証情報を記憶する。上述したように、携帯端末50の認証情報は、携帯端末50に固有のID(識別情報)である。携帯端末50の認証情報は、携帯端末50の出荷時点において、携帯端末50のベンダによって予めメモリ64に記憶されている。   The memory 64 further stores authentication information of the mobile terminal 50. As described above, the authentication information of the mobile terminal 50 is an ID (identification information) unique to the mobile terminal 50. The authentication information of the portable terminal 50 is stored in advance in the memory 64 by the vendor of the portable terminal 50 at the time of shipment of the portable terminal 50.

携帯端末50は、第1のOS(Operation Systemの略)プログラムを備える。第1のOSプログラムは、例えば、Android(登録商標)のバージョン4.0である。第1のOSプログラムは、携帯端末50を以下のように動作させる。即ち、携帯端末50は、携帯端末50の電源がONされると、P2Pモード及びReaderモードが起動されており、Writerモードが起動されていない初期状態に移行する(図3のS50参照)。携帯端末50は、MFP用アプリケーションがインストールされていない場合には、上記の初期状態を維持する。携帯端末50は、MFP用アプリケーションがインストールされていても、MFP用アプリケーションが起動されていない場合には、上記の初期状態を維持する。携帯端末50は、MFP用アプリケーションが起動されると、上記の初期状態から、Writerモードが起動されており、Readerモード及びP2Pモードが起動されていない状態に移行する。なお、携帯端末50は、第1のOSプログラムのベンダが提供するインターネットサーバ(図示省略)から、MFP用アプリケーションをダウンロードし、ダウンロードされたMFP用アプリケーションをメモリ64にインストールすることができる。   The portable terminal 50 includes a first OS (abbreviation for Operation System) program. The first OS program is, for example, Android (registered trademark) version 4.0. The first OS program causes the mobile terminal 50 to operate as follows. That is, when the mobile terminal 50 is powered on, the mobile terminal 50 is in the initial state in which the P2P mode and the Reader mode are activated and the writer mode is not activated (see S50 in FIG. 3). 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 writer mode is activated and the reader mode and the P2P mode are not activated. Note that the portable terminal 50 can download the MFP application from the Internet server (not shown) provided by the vendor of the first OS program, and install the downloaded MFP application in the memory 64.

(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, other modes (CE mode and R / W mode) are not activated, and delivery from the NFC I / F 22 When the received information indicates that the communication partner that is the Listen device is in the P2P mode, the CPU 30 transmits an activation command corresponding to the P2P mode to the communication partner, and sends an OK command from the communication partner. Receive. 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モードが起動されており、他のモードが起動されていない状態であり、かつ、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 other mode is not activated, and the current state of the communication partner that is the Poll device is P2P. When the mode is in the activated state, 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.

(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のCPU30が実行する通信処理;図2)
次いで、図2を参照して、MFP10のCPU30がプログラムに従って実行する通信処理の内容を説明する。CPU30は、MFP10の電源がONされると、図2の通信処理を開始する。S10では、CPU30は、MFP10の状態を、CEモードが起動されており、他のモード(P2Pモード及びR/Wモード)が起動されていない初期状態に移行させる。
(Communication processing executed by CPU 30 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. In S10, the CPU 30 shifts the state of the MFP 10 to an initial state in which the CE mode is activated and the other modes (P2P mode and R / W mode) are not activated.

次いで、S12では、CPU30は、NFCI/F22に、アプリダウンロードURLを登録する。具体的に言うと、CPU30は、NFCI/F22を構成するチップに、メモリ32に記憶されているアプリダウンロードURLを記憶させる。Readerモードで動作する通信相手(例えば携帯端末50)との間に、MFP(CE)−相手(R)の通信リンクが確立する場合、NFCI/F22は、当該通信リンクを利用して、登録されたアプリダウンロードURLを通信相手に送信する。   Next, in S12, 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 a communication link of MFP (CE) -partner (R) is established with a communication partner (for example, portable terminal 50) operating in the Reader mode, the NFC I / F 22 is registered using the communication link. The downloaded application download URL is transmitted to the communication partner.

次いで、S14では、CPU30は、MFP(CE)−相手(W)の通信リンクが確立されることを監視する。上述したように、CPU30は、通信相手(例えば携帯端末50)からWriterモードに対応するActivationコマンドを受信する場合に、MFP(CE)−相手(W)の通信リンクが確立されたと判断する。この場合、CPU30は、S14でYESと判断して、S16及びS18に進む。   Next, in S14, the CPU 30 monitors whether the 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 the communication partner (for example, the portable terminal 50), the CPU 30 determines that the communication link of MFP (CE) -partner (W) has been established. In this case, the CPU 30 determines YES in S14, and proceeds to S16 and S18.

S16では、CPU30は、MFP(CE)−相手(W)の通信リンクを利用して、NFCI/F22を介して、通信相手から登録要求と認証情報を受信することを監視する。登録要求は、通信相手の認証情報をメモリ32に記憶させることを求めるリクエスト信号である。CPU30は、Writerモードで動作する通信相手から、登録要求と通信相手の認証情報を受信する場合に、S16でYESと判断して、S34に進む。この際、NFCI/F22を構成するチップは、通信相手から登録要求と認証情報を受信すると、アプリダウンロードURLに代えて、受信された登録要求と認証情報を記憶する。次いで、NFCI/F22は、受信された登録要求と認証情報をCPU30に受け渡す。以下、本明細書では、CPU30が、NFCI/F22を介して、通信相手から登録要求と認証情報を受信する場合には、上記と同様の処理が行われているものとして説明する。S34では、CPU30は、受信された認証情報をメモリ32に記憶させる。S34を終えると、CPU30は、S12に戻り、再び、NFCI/F22にアプリダウンロードURLを登録する。次いで、CPU30は、S14以降の処理を再度実行する。   In S <b> 16, the CPU 30 monitors reception of a registration request and authentication information from the communication partner via the NFC I / F 22 using the MFP (CE) -partner (W) communication link. The registration request is a request signal for requesting the memory 32 to store authentication information of the communication partner. When receiving a registration request and authentication information of the communication partner from the communication partner operating in the writer mode, the CPU 30 determines YES in S16 and proceeds to S34. At this time, when receiving a registration request and authentication information from the communication partner, the chip constituting the NFC I / F 22 stores the received registration request and authentication information instead of the application download URL. Next, the NFC I / F 22 passes the received registration request and authentication information to the CPU 30. Hereinafter, in this specification, when CPU30 receives a registration request and authentication information from a communicating party via NFCI / F22, it demonstrates that the same process as the above is performed. In S <b> 34, the CPU 30 stores the received authentication information in the memory 32. When S34 ends, the CPU 30 returns to S12 and registers the application download URL in the NFC I / F 22 again. Next, the CPU 30 executes the processes after S14 again.

S18では、CPU30は、MFP(CE)−相手(W)の通信リンクを利用して、NFCI/F22を介して、通信相手から実行要求と認証情報を受信することを監視する。実行要求は、MFP10の特定の機能(スキャン機能、印刷機能)の実行を求めるリクエスト信号である。CPU30は、Writerモードで動作する通信相手から、実行要求と通信相手の認証情報を受信する場合に、S18でYESと判断して、S20に進む。この際、NFCI/F22を構成するチップは、通信相手から実行要求と認証情報を受信すると、アプリダウンロードURLに代えて、受信された実行要求と認証情報を記憶する。次いで、NFCI/F22は、受信された実行要求と認証情報をCPU30に受け渡す。
以下、本明細書では、CPU30が、NFCI/F22を介して、通信相手から実行要求と認証情報を受信する場合には、上記と同様の処理が行われているものとして説明する。
In S18, the CPU 30 monitors reception of an execution request and authentication information 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 and authentication information of a communication partner from a communication partner operating in the writer mode, the CPU 30 determines YES in S18 and proceeds to S20. At this time, when the chip configuring the NFC I / F 22 receives the execution request and authentication information from the communication partner, the chip stores the received execution request and authentication information instead of the application download URL. Next, the NFC I / F 22 passes the received execution request and authentication information to the CPU 30.
Hereinafter, in this specification, when CPU30 receives an execution request and authentication information from a communicating party via NFCI / F22, it demonstrates that the same process as the above is performed.

S20では、CPU30は、認証が成功したか否かを判断する。具体的に言うと、S20では、CPU30は、受信された認証情報と一致する認証情報がメモリ32内に記憶されているか否かを判断する。S20の時点で、通信相手の認証情報の登録(S34)が既に行われていれば、メモリ32内には、受信された認証情報と一致する認証情報が既に記憶されている。受信された認証情報と一致する認証情報がメモリ32内に記憶されている場合、CPU30は、認証が成功したと判断する。この場合、CPU30は、S20でYESと判断し、S22に進む。一方、S20の時点で、通信相手の認証情報の登録(S34)が行われていない場合、メモリ32内には、受信された認証情報と一致する認証情報が記憶されていない。受信された認証情報と一致する認証情報がメモリ32内に記憶されていない場合、CPU30は、認証が失敗したと判断する。この場合、CPU30は、S20でNOと判断し、S36に進む。この場合、S36では、CPU30は、認証に失敗した旨のメッセージを含むエラー画面を表示部14に表示させる。S36を終えると、CPU30は、S12に戻り、再び、NFCI/F22にアプリダウンロードURLを登録する。次いで、CPU30は、S14以降の処理を再度実行する。   In S20, the CPU 30 determines whether the authentication is successful. Specifically, in S20, the CPU 30 determines whether or not authentication information that matches the received authentication information is stored in the memory 32. At the time of S20, if registration of authentication information of the communication partner has already been performed (S34), authentication information that matches the received authentication information is already stored in the memory 32. When the authentication information that matches the received authentication information is stored in the memory 32, the CPU 30 determines that the authentication is successful. In this case, the CPU 30 determines YES in S20, and proceeds to S22. On the other hand, if the communication partner's authentication information is not registered (S34) at the time of S20, authentication information that matches the received authentication information is not stored in the memory 32. When the authentication information that matches the received authentication information is not stored in the memory 32, the CPU 30 determines that the authentication has failed. In this case, the CPU 30 determines NO in S20, and proceeds to S36. In this case, in S36, the CPU 30 causes the display unit 14 to display an error screen including a message indicating that the authentication has failed. When S36 ends, the CPU 30 returns to S12 and registers the application download URL in the NFC I / F 22 again. Next, the CPU 30 executes the processes after S14 again.

S22では、CPU30は、MFP10が、実行要求が示す特定の機能を実行可能であるか否かを判断する。例えば、特定の機能が印刷である場合、S22では、CPU30は、印刷実行部16で、紙詰まり、印刷機構の故障等の装置エラー、又は、トナー(インク)切れ、用紙切れ等の消耗品エラーが発生しているか否かを確認する。具体的に言うと、CPU30は、MFP10の各部(印刷実行部16、スキャン実行部18等)の状態をチェックし、装置エラーが発生しているか否か判断するとともに、消耗品の残量がゼロであるか否かを判断する。その結果、印刷実行部16で装置エラーと消耗品エラーのいずれも発生していない場合、CPU30は、機能実行可能であると判断する。この場合、CPU30は、S22でYESと判断し、S24に進む。一方、印刷実行部16で装置エラーと消耗品エラーの少なくとも一方が発生している場合、CPU30は、機能実行可能でないと判断する。この場合、CPU30は、S22でNOと判断し、S36に進む。同様に、例えば、特定の機能がスキャンである場合、S22では、CPU30は、スキャン実行部18の故障(例えば、原稿送り機構の故障、センサの故障等)が発生しているか否かを確認する。その結果、スキャン実行部18で故障が発生していない場合、CPU30は、機能実行可能であると判断(S22でYES)して、S24に進む。一方、スキャン実行部18で故障が発生している場合、CPU30は、機能実行可能でないと判断(S22でNO)して、S36に進む。この場合、S36では、CPU30は、特定の機能を実行可能でない旨のメッセージを含むエラー画面を表示部14に表示させる。S36を終えると、CPU30は、S12に戻り、再び、NFCI/F22にアプリダウンロードURLを登録する。次いで、CPU30は、S14以降の処理を再度実行する。   In S22, the CPU 30 determines whether or not the MFP 10 can execute a specific function indicated by the execution request. For example, when the specific function is printing, in S22, the CPU 30 causes the print execution unit 16 to cause a device error such as a paper jam or a printing mechanism failure or a consumable error such as toner (ink) running out or paper running out. Check whether or not this has occurred. More specifically, the CPU 30 checks the status of each unit (print execution unit 16, scan execution unit 18, etc.) of the MFP 10 to determine whether an apparatus error has occurred, and the remaining amount of consumables is zero. It is determined whether or not. 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. In this case, the CPU 30 determines YES in S22, and proceeds to S24. On the other hand, 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 S22, and proceeds to S36. Similarly, for example, when the specific function is scanning, in S22, the CPU 30 confirms whether or not a failure of the scan execution unit 18 (for example, a document feeding mechanism failure, a sensor failure, etc.) has occurred. . As a result, if no failure has occurred in the scan execution unit 18, the CPU 30 determines that the function can be executed (YES in S22), and proceeds to S24. On the other hand, if a failure has occurred in the scan execution unit 18, the CPU 30 determines that the function cannot be executed (NO in S22), and proceeds to S36. In this case, in S36, 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 S36 ends, the CPU 30 returns to S12 and registers the application download URL in the NFC I / F 22 again. Next, the CPU 30 executes the processes after S14 again.

S24では、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)の通信リンクが切断される。なお、本実施例では、後述の通り、通信相手(携帯端末50)は、実行要求及び認証情報をMFP10に送信した後に、W
riterモードを停止し、P2Pモードを起動させる(図5のS94、S96参照)。そのため、上記のMFP(CE)−相手(W)の通信リンクの切断は、S18でYESと判断された時点からS24の時点までのいずれかのタイミングで行われる。MFP(CE)−相手(W)の通信リンクが切断された後で、CPU30は、CEモードを停止し、P2Pモードを起動させる。この結果、CPU30は、MFP10の状態を、初期状態から、P2Pモードが起動されており、R/Wモード及びCEモードが起動されていない状態に変更することができる。
In S24, 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. In this embodiment, as described later, the communication partner (portable terminal 50) transmits an execution request and authentication information to the MFP 10, and then
The writer mode is stopped and the P2P mode is activated (see S94 and S96 in FIG. 5). For this reason, the above-mentioned communication link between MFP (CE) and partner (W) is disconnected at any timing from the time when YES is determined in S18 to the time in S24. 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 CPU 30 can change the state of the MFP 10 from the initial state to a state in which the P2P mode is activated and the R / W mode and the CE mode are not activated.

次いで、S26では、CPU30は、P2Pの通信リンクが確立されることを監視する。上述したように、例えば、MFP10がPoll機器である場合には、CPU30は、P2Pモードに対応するActivationコマンドを通信相手に送信して、通信相手からOKコマンドを受信する場合に、P2Pの通信リンクが確立されたと判断する。この場合、CPU30は、S26でYESと判断して、S28に進む。また、例えば、MFP10がListen機器である場合には、CPU30は、通信相手からP2Pモードに対応するActivationコマンドを受信して、OKコマンドを通信相手に送信する場合に、P2Pの通信リンクが確立されたと判断する。この場合も、CPU30は、S26でYESと判断して、S28に進む。   Next, in S26, 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 the communication partner and receives an OK command from the communication partner. Is determined to be established. In this case, the CPU 30 determines YES in S26 and proceeds to S28. For example, when the MFP 10 is a listen device, the CPU 30 receives an activation command corresponding to the P2P mode from the communication partner and transmits an OK command to the communication partner, so that a P2P communication link is established. Judge that Also in this case, the CPU 30 determines YES in S26 and proceeds to S28.

S28では、CPU30は、P2Pの通信リンクを利用して、NFCI/F22を介して、通信相手(例えば携帯端末50)と双方向通信(以下では、「P2P通信」と呼ぶ場合がある)を実行する。具体的に言うと、まず、CPU30は、通信相手から、通信相手の属するネットワークに関するネットワーク情報を受信する。ネットワーク情報の詳しい内容は後で説明する。次いで、CPU30は、通信相手に対して、自身が属するネットワークの無線設定を示す設定情報(認証方式、暗号化方式、パスワード、SSID、BSSID等)と、設定変更不要を示す変更不要情報と、のうちの一方を送信する。S28で実行される双方向通信は、以下で説明するように、通信相手がネットワークに属しているか否かによって内容が異なる。以下では、S28で実行される双方向通信の内容を、場合を分けて説明する。   In S28, 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 mobile terminal 50) via the NFC I / F 22. To do. Specifically, first, the CPU 30 receives network information related to the network to which the communication partner belongs from the communication partner. Details 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 required. Send one of them. The bidirectional communication executed in S28 differs depending on whether or not the communication partner belongs to the network, as described below. Hereinafter, the contents of the bidirectional communication executed in S28 will be described for each case.

(通信相手がネットワークに属している場合の双方向通信(S28))
通信相手がネットワークに属している場合、まず、通信相手は、MFP10に対して、自身が属するネットワーク(通常Wi−Fiネットワーク又はWFDネットワーク)の無線設定(SSID、BSSID)を送信する。CPU30は、通信相手が属するネットワークの無線設定を受信する。この場合、通信相手が属するネットワークの無線設定が、通信相手の「ネットワーク情報」である。
(Two-way communication when communication partner belongs to network (S28))
When the communication partner belongs to the network, first, the communication partner transmits to the MFP 10 the wireless setting (SSID, BSSID) of the network (normal Wi-Fi network or WFD network) to which the communication partner belongs. The CPU 30 receives 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. 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 changes the MFP 10 to G / O.
O, the WFD network is newly formed, and the wireless setting of the WFD network is transmitted to the communication partner.

(通信相手がネットワークに属していない場合の双方向通信(S28))
通信相手がネットワークに属していない場合、まず、通信相手は、MFP10に対して、自身がネットワークに属していないことを示す情報を送信する。CPU30は、通信相手がネットワークに属していないことを示す情報を受信する。この場合、通信相手がネットワークに属していないことを示す情報が、通信相手の「ネットワーク情報」である。
(Two-way communication when communication partner does not belong to network (S28))
When the communication partner does not belong to the network, first, the communication partner transmits information indicating that the communication partner does not belong to the network to the MFP 10. The CPU 30 receives 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. .

S28の双方向通信の結果、MFP10と通信相手は共通の無線設定を利用可能となる。CPU30は、共通の無線設定を利用して、通信相手との間で、無線LANI/F20を利用した無線通信リンク(WFD接続又は通常Wi−Fi接続)を確立する。   As a result of the bidirectional communication in S28, 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.

次いで、S30では、CPU30は、P2Pモードを停止し、CEモードを起動させる。具体的に言うと、まず、CPU30は、P2Pの通信リンクを切断する。即ち、CPU30は、S24と同様に、Deactivationコマンド及びOKコマンドの通信を実行する。この結果、P2Pの通信リンクが切断される。次いで、CPU30は、P2Pモードを停止し、CEモードを起動させる。この結果、CPU30は、MFP10の状態を初期状態に戻すことができる。   Next, in S30, the CPU 30 stops the P2P mode and activates the CE mode. Specifically, first, the CPU 30 disconnects the P2P communication link. That is, the CPU 30 executes communication of a Deactivation command and an OK command, as in S24. As a result, the P2P communication link is disconnected. Next, the CPU 30 stops the P2P mode and activates the CE mode. As a result, the CPU 30 can return the state of the MFP 10 to the initial state.

次いで、S32では、CPU30は、特定の機能を実行する。具体的に言うと、S32では、CPU30は、通信相手との間で、確立された無線通信リンクを利用して、無線LANI/F20を介して機能実行の対象となる対象データを通信する。例えば、特定の機能が印刷である場合、通信相手からMFP10に対して印刷データ(対象データ)が送信される。CPU30は、対象データを受信すると、対象データが示す画像を、印刷実行部16に印刷させる。また、例えば、特定の機能がスキャンである場合、CPU30は、スキャン実行部18の原稿送り機構にセットされた原稿にスキャンさせ、スキャンデータ(対象データ)を生成する。CPU30は、生成された対象データを、通信相手に送信する。   Next, in S32, the CPU 30 executes a specific function. Specifically, in S32, the CPU 30 communicates target data to be executed with the function 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.

S32を終えると、CPU30は、S12に戻り、再び、NFCI/F22にアプリダウンロードURLを登録する。次いで、CPU30は、S14以降の処理を再度実行する。   When S32 ends, the CPU 30 returns to S12 and registers the application download URL in the NFC I / F 22 again. Next, the CPU 30 executes the processes after S14 again.

(携帯端末50のCPU62が実行するインストール処理;図3)
次いで、図3を参照して、携帯端末50のCPU62がプログラムに従って実行するインストール処理の内容を説明する。図3のインストール処理が実行される時点では、携帯端末50のメモリ64には、MFP用アプリケーションがインストールされていない。CPU62は、電源がONされると、S50において、携帯端末50の状態を、Readerモード及びP2Pモードが起動されており、他のモード(Writerモード及びCEモード)が起動されていない初期状態に移行させる。
(Installation process executed by CPU 62 of portable terminal 50; FIG. 3)
Next, with reference to FIG. 3, the contents of the installation process executed by the CPU 62 of the portable terminal 50 according to the program will be described. At the time when the installation process of FIG. 3 is executed, the MFP application is not installed in the memory 64 of the portable terminal 50. When the power is turned on, in S50, the CPU 62 shifts the state of the portable terminal 50 to the initial state in which the Reader mode and the P2P mode are activated and the other modes (Writer mode and CE mode) are not activated. Let

次いで、S52では、CPU62は、携帯端末(R)−相手(CE)の通信リンクが確立されることを監視する。CPU62は、通信相手(即ち、MFP10)に、Readerモードに対応するActivationコマンドを送信して、MFP10からOKコマンドを受信する場合に、携帯端末(R)−相手(CE)の通信リンクが確立されたと判断する。この場合、CPU62は、S52でYESと判断して、S54に進む。   Next, in S <b> 52, the CPU 62 monitors whether the communication link of the portable terminal (R) -the other party (CE) is established. When the CPU 62 transmits an activation command corresponding to the reader mode to the communication partner (that is, the MFP 10) and receives the OK command from the MFP 10, the communication link of the portable terminal (R) -the partner (CE) is established. Judge that In this case, the CPU 62 determines YES in S52, and proceeds to S54.

S54では、CPU62は、携帯端末(R)−相手(CE)の通信リンクを利用して、NFCI/F58を介して、通信相手(即ち、MFP10)からアプリダウンロードURLを受信することを監視する。CPU62は、CEモードで動作するMFP10から、アプリダウンロードURLを受信する場合に、S54でYESと判断して、S56に進む。   In S54, the CPU 62 monitors reception of the application download URL from the communication partner (that is, the MFP 10) via the NFC I / F 58 using the communication link of the portable terminal (R) -partner (CE). When receiving the application download URL from the MFP 10 operating in the CE mode, the CPU 62 determines YES in S54 and proceeds to S56.

S56では、CPU62は、受信されたアプリダウンロードURLに従って、アプリダウンロードURLが示すインターネットサーバ(第1のOSのベンダが提供するサーバ)にアクセスする。CPU62は、サーバから、MFP用アプリケーションをダウンロードする。次いで、CPU62は、ダウンロードされたMFP用アプリケーションをメモリ64にインストールする。インストールが完了すると、CPU62は、MFP用アプリケーションに従った各種処理を実行可能となる。S56を終えると、CPU62は、図3のインストール処理を終了する。   In S56, the CPU 62 accesses the Internet server (server provided by the first OS vendor) indicated by the application download URL in accordance with the received application download URL. The CPU 62 downloads the MFP application from the server. Next, the CPU 62 installs the downloaded MFP application in the memory 64. When the installation is completed, the CPU 62 can execute various processes according to the MFP application. When S56 ends, the CPU 62 ends the installation process of FIG.

(携帯端末50のCPU62が実行する登録処理;図4)
次いで、図4を参照して、携帯端末50のCPU62がMFP用アプリケーションプログラムに従って実行する登録処理の内容を説明する。図4の登録処理が実行される時点では、携帯端末50のメモリ64には、MFP用アプリケーションが既にインストールされている。MFP用アプリケーションが起動された後に、操作部52において登録指示が入力されると、CPU62は、図4の登録処理を開始する。CPU62は、MFPアプリケーションに従って、図4の登録処理を実行する。S70では、CPU62は、携帯端末50の状態を、Writerモードが起動されており、他のモード(Readerモード、P2Pモード、及び、CEモード)が起動されていない状態に移行させる。
(Registration process executed by CPU 62 of portable terminal 50; FIG. 4)
Next, with reference to FIG. 4, the contents of the registration process executed by the CPU 62 of the portable terminal 50 in accordance with the MFP application program will be described. When the registration process of FIG. 4 is executed, the MFP application is already installed in the memory 64 of the portable terminal 50. When a registration instruction is input on the operation unit 52 after the MFP application is activated, the CPU 62 starts the registration process of FIG. The CPU 62 executes the registration process of FIG. 4 according to the MFP application. In S70, the CPU 62 shifts the state of the portable terminal 50 to a state in which the writer mode is activated and the other modes (reader mode, P2P mode, and CE mode) are not activated.

次いで、S72では、CPU62は、携帯端末(W)−相手(CE)の通信リンクが確立されることを監視する。CPU62は、通信相手(即ち、MFP10)に、Writerモードに対応するActivationコマンドを送信して、MFP10からOKコマンドを受信する場合に、携帯端末(W)−相手(CE)の通信リンクが確立されたと判断する。この場合、CPU62は、S72でYESと判断して、S74に進む。   Next, in S <b> 72, the CPU 62 monitors that the communication link of the portable terminal (W) -the other party (CE) is established. When the CPU 62 transmits an activation command corresponding to the writer mode to the communication partner (that is, the MFP 10) and receives an OK command from the MFP 10, the communication link of the portable terminal (W) -the partner (CE) is established. Judge that In this case, the CPU 62 determines YES in S72, and proceeds to S74.

S74では、CPU62は、携帯端末(W)−相手(CE)の通信リンクを利用して、NFCI/F58を介して、登録要求と携帯端末50の認証情報をMFP10に送信する。CPU62は、S74を終えると、図4の登録処理を終了する。本実施例では、登録処理が終了する場合、CPU62は、MFP用アプリケーションを起動させた状態を維持する。   In S <b> 74, the CPU 62 transmits a registration request and authentication information of the portable terminal 50 to the MFP 10 via the NFC I / F 58 using the portable terminal (W) -partner (CE) communication link. After completing S74, the CPU 62 ends the registration process of FIG. In this embodiment, when the registration process ends, the CPU 62 maintains a state where the MFP application is activated.

(携帯端末50が実行する機能実行処理;図5)
次いで、図5を参照して、携帯端末50のCPU62がMFP用アプリケーションプログラムに従って実行する機能実行処理の内容を説明する。図5の機能実行処理が実行される時点でも、携帯端末50のメモリ64には、MFP用アプリケーションが既にインストールされている。MFP用アプリケーションが起動され、操作部52において機能実行指示(印刷指示又はスキャン指示)が入力されると、CPU62は、図5の機能実行処理を開始する。CPU62は、MFPアプリケーションに従って、図5の機能実行処理を実行する。S90では、CPU62は、携帯端末50の状態を、WriterモードがONさ
れており、他のモード(Readerモード、P2Pモード、及び、CEモード)が起動されていない状態に移行させる。
(Function execution process executed by the portable terminal 50; FIG. 5)
Next, with reference to FIG. 5, the contents of the function execution process executed by the CPU 62 of the portable terminal 50 in accordance with the MFP application program will be described. Even when the function execution process of FIG. 5 is executed, the MFP application is already installed in the memory 64 of the portable terminal 50. When the MFP application is activated and a function execution instruction (print instruction or scan instruction) is input on the operation unit 52, the CPU 62 starts the function execution process of FIG. The CPU 62 executes the function execution process of FIG. 5 according to the MFP application. In S90, the CPU 62 shifts the state of the portable terminal 50 to a state in which the writer mode is on and other modes (reader mode, P2P mode, and CE mode) are not activated.

次いで、S92では、CPU62は、携帯端末(W)−相手(CE)の通信リンクが確立されることを監視する。CPU62は、通信相手(即ち、MFP10)に、Writerモードに対応するActivationコマンドを送信して、MFP10からOKコマンドを受信する場合に、携帯端末(W)−相手(CE)の通信リンクが確立されたと判断する。この場合、CPU62は、S92でYESと判断して、S94に進む。   Next, in S92, the CPU 62 monitors whether the communication link of the portable terminal (W) -the other party (CE) is established. When the CPU 62 transmits an activation command corresponding to the writer mode to the communication partner (that is, the MFP 10) and receives an OK command from the MFP 10, the communication link of the portable terminal (W) -the partner (CE) is established. Judge that In this case, the CPU 62 determines YES in S92, and proceeds to S94.

S94では、CPU62は、携帯端末(W)−相手(CE)の通信リンクを利用して、NFCI/F58を介して、実行要求と携帯端末50の認証情報をMFP10に送信する。   In S94, the CPU 62 transmits an execution request and authentication information of the portable terminal 50 to the MFP 10 via the NFC I / F 58 using the portable terminal (W) -partner (CE) communication link.

S96では、CPU62は、Writerモードを停止し、P2Pモードを起動させる。具体的に言うと、S96では、CPU62は、以下の各処理を実行する。まず、CPU62は、携帯端末(W)−相手(CE)の通信リンクを切断する。即ち、CPU62は、Deactivationコマンド及びOKコマンドの通信を実行する。次いで、CPU62は、Writerモードを停止し、P2Pモードを起動させる。この結果、CPU62は、携帯端末50の状態を、P2Pモードが起動されており、R/Wモード及びCEモードが起動されていない状態に変更することができる。   In S96, the CPU 62 stops the writer mode and activates the P2P mode. Specifically, in S96, the CPU 62 executes the following processes. First, the CPU 62 disconnects the communication link between the portable terminal (W) and the other party (CE). That is, the CPU 62 executes communication of a Deactivation command and an OK command. Next, the CPU 62 stops the writer mode and activates the P2P mode. As a result, the CPU 62 can change the state of the portable terminal 50 to a state where the P2P mode is activated and the R / W mode and the CE mode are not activated.

次いで、S98では、CPU62は、P2Pの通信リンクが確立されることを監視する。例えば、携帯端末50がPoll機器である場合には、CPU62は、P2Pモードに対応するActivationコマンドを通信相手に送信して、通信相手(即ち、MFP10)からOKコマンドを受信する場合に、P2Pの通信リンクが確立されたと判断する。この場合、CPU62は、S98でYESと判断して、S100に進む。また、例えば、携帯端末50がListen機器である場合には、CPU62は、MFP10からP2Pモードに対応するActivationコマンドを受信して、OKコマンドを通信相手に送信する場合に、P2Pの通信リンクが確立されたと判断する。この場合も、CPU62は、S98でYESと判断して、S100に進む。一方、所定のタイムアウト期間が経過するまでの間に、P2Pの通信リンクが確立されない場合、CPU62は、S98でNOと判断し、S104に進む。S104では、CPU62は、所定のエラーメッセージを含むエラー画面を表示部54に表示させる。S104を終えると、図5の機能実行処理がエラー終了する。この場合、CPU62は、起動されているMFP用アプリケーションを終了させる。CPU62は、携帯端末50の状態を、初期状態(P2Pモード及びReaderモードが起動しており、他のモードが停止している状態)に戻す。   Next, in S98, the CPU 62 monitors whether a P2P communication link is established. For example, when the mobile terminal 50 is a Poll device, the CPU 62 transmits an activation command corresponding to the P2P mode to the communication partner and receives an OK command from the communication partner (that is, the MFP 10). It is determined that a communication link has been established. In this case, the CPU 62 determines YES in S98, and proceeds to S100. For example, when the mobile terminal 50 is a listen device, the CPU 62 receives an activation command corresponding to the P2P mode from the MFP 10 and transmits an OK command to the communication partner, so that a P2P communication link is established. Judge that it was done. Also in this case, the CPU 62 determines YES in S98, and proceeds to S100. On the other hand, if the P2P communication link is not established before the predetermined timeout period elapses, the CPU 62 determines NO in S98 and proceeds to S104. In S104, the CPU 62 causes the display unit 54 to display an error screen including a predetermined error message. When S104 ends, the function execution process of FIG. 5 ends with an error. In this case, the CPU 62 ends the activated MFP application. The CPU 62 returns the state of the portable terminal 50 to an initial state (a state where the P2P mode and the Reader mode are activated and other modes are stopped).

S100では、CPU62は、P2Pの通信リンクを利用して、NFCI/F58を介して、通信相手(MFP10)と双方向通信を実行する。S100で実行される双方向通信の内容は、図2のS28で実行される双方向通信の内容と同様である。具体的に言うと、まず、CPU62は、MFP10に、ネットワーク情報を送信する。即ち、携帯端末50がネットワーク(通常Wi−Fiネットワーク又はWFDネットワーク)に属している場合、CPU62は、携帯端末50が属するネットワークの無線設定を示す設定情報(SSID、BSSID)を送信する。なお、携帯端末50がネットワークに属していない場合、CPU62は、携帯端末50自身がネットワークに属していないことを示す情報をMFP10に送信する。ここで、携帯端末50自身が属するネットワークの無線設定を示す設定情報、又は、携帯端末50自身がネットワークに属していないことを示す情報が、「ネットワーク情報」に相当する。   In S100, the CPU 62 executes bidirectional communication with the communication partner (MFP 10) via the NFC I / F 58 using the P2P communication link. The contents of the bidirectional communication executed in S100 are the same as the contents of the bidirectional communication executed in S28 of FIG. Specifically, first, the CPU 62 transmits network information to the MFP 10. That is, when the mobile terminal 50 belongs to a network (normal Wi-Fi network or WFD network), the CPU 62 transmits setting information (SSID, BSSID) indicating wireless settings of the network to which the mobile terminal 50 belongs. When the mobile terminal 50 does not belong to the network, the CPU 62 transmits information indicating that the mobile terminal 50 itself does not belong to the network to the MFP 10. Here, the setting information indicating the wireless setting of the network to which the mobile terminal 50 itself belongs, or the information indicating that the mobile terminal 50 itself does not belong to the network corresponds to “network information”.

上述したように、MFP10は、携帯端末50に対して、無線設定又は変更不要情報を
送信する。CPU62は、無線設定又は変更不要情報を受信する。
As described above, the MFP 10 transmits wireless setting or change unnecessary information to the portable terminal 50. The CPU 62 receives wireless setting or change unnecessary information.

S100の双方向通信の結果、携帯端末50とMFP10とが共通の無線設定を利用可能となる。CPU62は、共通の無線設定を利用して、MFP10との間で、無線LANI/F56を利用した無線通信リンク(WFD接続又は通常Wi−Fi接続)を確立する。無線LANI/F56を利用した無線通信リンクが確立される場合、CPU62は、P2Pの通信リンクを切断する。   As a result of the two-way communication in S100, the portable terminal 50 and the MFP 10 can use a common wireless setting. The CPU 62 establishes a wireless communication link (WFD connection or normal Wi-Fi connection) using the wireless LAN I / F 56 with the MFP 10 using the common wireless setting. When a wireless communication link using the wireless LAN I / F 56 is established, the CPU 62 disconnects the P2P communication link.

次いで、S102では、CPU62は、特定の機能を実行する。具体的に言うと、S102では、CPU62は、MFP10との間で、確立された無線通信リンクを利用して、無線LANI/F56を介して、機能実行の対象となる対象データを通信する。例えば、S94で送信された実行要求が示す特定の機能が印刷である場合、CPU62は、MFP10に対して印刷データ(対象データ)を送信する。MFP10は、対象データを受信すると、対象データが示す画像を、印刷実行部16に印刷させる。また、例えば、特定の機能がスキャンである場合、MFP10は、MFP10にセットされた原稿をスキャン実行部18にスキャンさせ、スキャンデータ(対象データ)を生成する。MFP10は、生成された対象データを、携帯端末50に送信する。   Next, in S102, the CPU 62 executes a specific function. Specifically, in S <b> 102, the CPU 62 communicates target data to be executed with the function via the wireless LAN I / F 56 using the established wireless communication link with the MFP 10. For example, when the specific function indicated by the execution request transmitted in S 94 is printing, the CPU 62 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. For example, when the specific function is scan, the MFP 10 causes the scan execution unit 18 to scan a document set on the MFP 10 and generates scan data (target data). The MFP 10 transmits the generated target data to the portable terminal 50.

S102を終えると、CPU62は、図5の機能実行処理を終了する。この場合、CPU62は、起動されているMFP用アプリケーションを終了させる。CPU62は、携帯端末50の状態を、初期状態(P2Pモード及びReaderモードが起動しており、他のモードが停止している状態)に戻す。   When S102 ends, the CPU 62 ends the function execution process of FIG. In this case, the CPU 62 ends the activated MFP application. The CPU 62 returns the state of the portable terminal 50 to an initial state (a state where the P2P mode and the Reader mode are activated and other modes are stopped).

(インストール実行時の通信;図6)
図6を参照して、MFP用アプリケーションのインストールが実行される場合に、MFP10と携帯端末50の間で実行される通信の例について説明する。
(Communication during installation execution; Fig. 6)
With reference to FIG. 6, an example of communication performed between MFP 10 and portable terminal 50 when MFP application installation is executed will be described.

MFP10は、電源がONされると、CEモードが起動されており、他のモード(P2Pモード及びR/Wモード)が起動されていない初期状態に移行する(図2のS10)。次いで、MFP10は、NFCI/F22に、アプリダウンロードURLを登録する(図2のS12)。   When the MFP 10 is turned on, the CE mode is activated, and the MFP 10 shifts to an initial state in which other modes (P2P mode and R / W mode) are not activated (S10 in FIG. 2). Next, the MFP 10 registers the application download URL in the NFC I / F 22 (S12 in FIG. 2).

携帯端末50には、MFP用アプリケーションがインストールされていない。携帯端末50は、電源がONされると、Readerモード及びP2Pモードが起動されており、他のモード(Writerモード及びCEモード)が起動されていない初期状態に移行する。次いで、携帯端末50は、携帯端末(R)−相手(CE)の通信リンクが確立されることを監視する。   The portable terminal 50 has no MFP application installed. When the portable terminal 50 is turned on, the Reader mode and the P2P mode are activated, and the portable terminal 50 shifts to an initial state in which other modes (Writer mode and CE mode) 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のS52で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 S 52 of FIG. 3).

MFP10と携帯端末50との間にMFP10(CE)−携帯端末50(R)の通信リンクが確立すると、MFP10のNFCI/F22は、MFP10(CE)−携帯端末50(R)の通信リンクを利用して、NFCI/F22に登録されたアプリダウンロードURLを携帯端末50に送信する。携帯端末50は、NFCI/F58を介して、アプリダウンロードURLを受信する(図3のS54でYES)。   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 via the NFC I / F 58 (YES in S54 of FIG. 3).

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

(認証情報登録;図7)
次に、図7を参照して、携帯端末50の認証情報の登録が実行される場合に、MFP10と携帯端末50の間で実行される通信の例について説明する。
(Registration of authentication information; Fig. 7)
Next, an example of communication executed between the MFP 10 and the portable terminal 50 when registration of authentication information of the portable terminal 50 is executed will be described with reference to FIG.

MFP10は、電源がONされると、CEモードが起動されており、他のモード(P2Pモード及びR/Wモード)が起動されていない初期状態に移行する(図2のS10)。次いで、MFP10は、NFCI/F22に、アプリダウンロードURLを登録する(図2のS12)。次いで、MFP10は、MFP(CE)−相手(W)の通信リンクが確立されることを監視する。   When the MFP 10 is turned on, the CE mode is activated, and the MFP 10 shifts to an initial state in which other modes (P2P mode and R / W mode) are not activated (S10 in FIG. 2). Next, the MFP 10 registers the application download URL in the NFC I / F 22 (S12 in FIG. 2). Next, the MFP 10 monitors whether a communication link of MFP (CE) -partner (W) is established.

携帯端末50には、MFP用アプリケーションがインストールされている。携帯端末50は、MFPアプリケーションが起動された後に、操作部52において登録指示が入力されると、Writerモードが起動されており、他のモード(Readerモード、P2Pモード、及び、CEモード)が起動されていない状態に移行する(図4のS70)。次いで、携帯端末50は、携帯端末50(W)−相手(CE)の通信リンクが確立されることを監視する(図4のS72)。   An application for MFP is installed in the portable terminal 50. When the registration instruction is input in the operation unit 52 after the MFP application is activated, the mobile terminal 50 is activated in the writer mode, and other modes (reader mode, P2P mode, and CE mode) are activated. It shifts to the state which is not done (S70 of FIG. 4). Next, the portable terminal 50 monitors that the communication link between the portable terminal 50 (W) and the other party (CE) is established (S72 in FIG. 4).

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

携帯端末50は、MFP10(CE)−携帯端末50(W)の通信リンクを利用して、NFCI/C58を介して、登録要求と携帯端末50の認証情報をMFP10に送信する(図4のS74)。   The portable terminal 50 transmits the registration request and the authentication information of the portable terminal 50 to the MFP 10 via the NFC I / C 58 using the MFP 10 (CE) -mobile terminal 50 (W) communication link (S74 in FIG. 4). ).

MFP10は、NFCI/F22を介して、登録要求と携帯端末50の認証情報を受信する(図2のS16でYES)。MFP10は、登録要求と携帯端末50の認証情報を受信すると、受信された携帯端末50の認証情報をメモリ32に記憶させる。MFP10は、認証情報の登録を終えると、再び、NFC22にアプリダウンロードURLを登録する。   The MFP 10 receives the registration request and the authentication information of the portable terminal 50 via the NFC I / F 22 (YES in S16 of FIG. 2). Upon receiving the registration request and the authentication information of the portable terminal 50, the MFP 10 stores the received authentication information of the portable terminal 50 in the memory 32. After completing the registration of the authentication information, the MFP 10 registers the application download URL in the NFC 22 again.

(機能実行;図8)
次に、図8を参照して、MFP10の特定の機能が実行される場合において、MFP10と携帯端末50、80の間で実行される通信の例について説明する。図8では、MFP10と携帯端末50との間で通信が行われる場合に、MFP10の特定の機能が実行され、MFP10と携帯端末80との間で通信が行われる場合に、MFP10の特定の機能が実行されない例を説明する。また、図8では、MFP10のメモリ32には、携帯端末50の認証情報が記憶されているが、携帯端末80の認証情報は記憶されていない例を説明する。以下、後述の図11、図12、図13の各例においても同様である。
(Function execution; Fig. 8)
Next, an example of communication executed between the MFP 10 and the portable terminals 50 and 80 when a specific function of the MFP 10 is executed will be described with reference to FIG. In FIG. 8, when a communication is performed between the MFP 10 and the portable terminal 50, a specific function of the MFP 10 is executed, and when a communication is performed between the MFP 10 and the portable terminal 80, a specific function of the MFP 10 is performed. An example in which is not executed will be described. 8 illustrates an example in which the authentication information of the mobile terminal 50 is stored in the memory 32 of the MFP 10, but the authentication information of the mobile terminal 80 is not stored. The same applies to the examples shown in FIGS. 11, 12, and 13 described later.

MFP10は、電源がONされると、CEモードが起動されており、他のモード(P2Pモード及びR/Wモード)が起動されていない初期状態に移行する(図2のS10)。次いで、MFP10は、NFCI/F22に、アプリダウンロードURLを登録する(図
2のS12)。次いで、MFP10は、MFP(CE)−相手(W)の通信リンクが確立されることを監視する。
When the MFP 10 is turned on, the CE mode is activated, and the MFP 10 shifts to an initial state in which other modes (P2P mode and R / W mode) are not activated (S10 in FIG. 2). Next, the MFP 10 registers the application download URL in the NFC I / F 22 (S12 in FIG. 2). Next, the MFP 10 monitors whether a communication link of MFP (CE) -partner (W) is established.

携帯端末50には、MFP用アプリケーションがインストールされている。携帯端末50は、MFPアプリケーションが起動され、操作部52において機能実行指示(スキャン指示、印刷指示)が入力されると、Writerモードが起動されており、他のモード(Readerモード、P2Pモード、及び、CEモード)が起動されていない状態に移行する(図4のS90)。次いで、携帯端末50は、携帯端末(W)−相手(CE)の通信リンクが確立されることを監視する(図5のS92)。   An application for MFP is installed in the portable terminal 50. When the MFP application is activated and a function execution instruction (scan instruction, print instruction) is input in the operation unit 52, the mobile mode is activated in the mobile terminal 50, and other modes (Reader mode, P2P mode, and , CE mode) is not activated (S90 in FIG. 4). Next, the portable terminal 50 monitors whether the communication link of the portable terminal (W) -the other party (CE) is established (S92 in FIG. 5).

この状態で、携帯端末50がMFP10に近づけられることにより、NFCI/F22、58が互いに通信可能な距離まで近づくと、MFP10と携帯端末50との間で、NFCI/F22、58を介して、MFP10(CE)−携帯端末50(W)の通信リンクが確立する(図2のS14でYES、図5のS92でYES)。   In this state, when the portable terminal 50 is brought close to the MFP 10 and the NFC I / Fs 22 and 58 approach each other so that they can communicate with each other, the MFP 10 passes between the MFP 10 and the portable terminal 50 via the NFC I / Fs 22 and 58. (CE) -The communication link of the portable terminal 50 (W) is established (YES in S14 of FIG. 2, YES in S92 of FIG. 5).

携帯端末50は、MFP10(CE)−携帯端末50(W)の通信リンクを利用して、NFCI/C58を介して、実行要求と携帯端末50の認証情報をMFP10に送信する(図5のS94)。次いで、携帯端末50は、Writerモードを停止し、P2Pモードを起動させる。この場合、携帯端末50とMFP10は、MFP10(CE)−携帯端末50(W)の通信リンクを切断する。携帯端末50は、P2Pの通信リンクが確立されることを監視する。   The portable terminal 50 transmits the execution request and the authentication information of the portable terminal 50 to the MFP 10 via the NFC I / C 58 using the communication link of MFP 10 (CE) -portable terminal 50 (W) (S94 in FIG. 5). ). Next, the mobile terminal 50 stops the writer mode and activates the P2P mode. In this case, the mobile terminal 50 and the MFP 10 disconnect the communication link of MFP 10 (CE) -mobile terminal 50 (W). The portable terminal 50 monitors that a P2P communication link is established.

MFP10は、NFCI/F22を介して、実行要求と携帯端末50の認証情報を受信する(図2のS18でYES)。次いで、MFP10は、認証が成功したか否かを判断する。受信された認証情報と一致する認証情報がメモリ32内に記憶されている場合、認証が成功したと判断する(図2のS20でYES)。一方、受信された認証情報と一致する認証情報がメモリ32内に記憶されていない場合、MFP10は、認証が失敗したと判断する(図2のS20でNO)。上述したように、図8の例では、MFP10のメモリ32には、携帯端末50の認証情報が記憶されている。そのため、MFP10は、認証が成功したと判断する(図2のS20でYES)。   The MFP 10 receives the execution request and the authentication information of the portable terminal 50 via the NFC I / F 22 (YES in S18 of FIG. 2). Next, the MFP 10 determines whether the authentication is successful. If authentication information that matches the received authentication information is stored in the memory 32, it is determined that the authentication is successful (YES in S20 of FIG. 2). On the other hand, when the authentication information that matches the received authentication information is not stored in the memory 32, the MFP 10 determines that the authentication has failed (NO in S20 of FIG. 2). As described above, in the example of FIG. 8, the authentication information of the portable terminal 50 is stored in the memory 32 of the MFP 10. Therefore, the MFP 10 determines that the authentication is successful (YES in S20 of FIG. 2).

認証が成功したと判断される場合(図2のS20でYES)、MFP10は、実行要求が示す特定の機能を実行可能であるか否かを判断する。例えば、特定の機能が印刷である場合、MFP10は、印刷実行部16で、紙詰まり、印刷機構の故障等の装置エラー、又は、トナー(インク)切れ、用紙切れ等の消耗品エラーが発生しているか否かを確認する。その結果、印刷実行部16で装置エラーと消耗品エラーのいずれも発生していない場合、MFP10は、機能実行可能であると判断する(図2のS22でYES)。一方、印刷実行部16で装置エラー又は消耗品エラーが発生している場合、MFP10は、機能実行可能でないと判断する(図2のS22でNO)。同様に、例えば、特定の機能がスキャンである場合、MFP10は、スキャン実行部18で故障(例えば、原稿送り機構の故障、センサの故障等)が発生しているか否かを確認する。その結果、スキャン実行部18で故障が発生していない場合、MFP10は、機能実行可能であると判断する(図2のS22でYES)。一方、スキャン実行部18で故障が発生している場合、MFP10は、機能実行可能でないと判断する(図2のS22でNO)。   If it is determined that the authentication is successful (YES in S20 of FIG. 2), the MFP 10 determines whether or not the specific function indicated by the execution request can be executed. For example, when the specific function is printing, the MFP 10 causes the print execution unit 16 to generate an apparatus error such as a paper jam or a printing mechanism failure, or a consumable error such as toner (ink) running out or paper running out. Check if it is. As a result, if neither a device error nor a consumable error has occurred in the print execution unit 16, the MFP 10 determines that the function can be executed (YES in S22 of FIG. 2). On the other hand, if an apparatus error or a consumable error has occurred in the print execution unit 16, the MFP 10 determines that the function cannot be executed (NO in S22 of FIG. 2). Similarly, for example, when the specific function is scanning, the MFP 10 checks whether or not a failure (for example, a document feeding mechanism failure, a sensor failure, etc.) has occurred in the scan execution unit 18. As a result, if no failure has occurred in the scan execution unit 18, the MFP 10 determines that the function can be executed (YES in S22 of FIG. 2). On the other hand, if a failure has occurred in the scan execution unit 18, the MFP 10 determines that the function cannot be executed (NO in S22 of FIG. 2).

機能実行可能であると判断される場合(図2のS22でYES)、MFP10は、CEモードを停止し、P2Pモードを起動させる(図2のS24)。次いで、MFP10は、P2Pの通信リンクが確立されることを監視する。   When it is determined that the function can be executed (YES in S22 in FIG. 2), the MFP 10 stops the CE mode and activates the P2P mode (S24 in FIG. 2). Next, the MFP 10 monitors whether a P2P communication link is established.

この状態で、NFCI/F22、58が互いに通信可能な距離内に存在すると、MFP
10と携帯端末50の間に、NFCI/F22、58を介して、P2Pの通信リンクが確立される(図2のS26でYES、図5のS98でYES)。次いで、MFP10と携帯端末50の間で、P2Pの通信リンクを利用して、P2P通信が実行される(図2のS28、図5のS100)。即ち、まず、携帯端末50は、MFP10に対して、ネットワーク情報(携帯端末50が属するネットワークの無線設定、又は、携帯端末50がネットワークに属していないことを示す情報)を送信する。次いで、MFP10は、携帯端末50に対して、MFP10自身がG/OであるWFDネットワークの無線設定、又は、変更不要情報を送信する。
In this state, if the NFC I / Fs 22 and 58 exist within a communicable distance, the MFP
A P2P communication link is established between the mobile terminal 10 and the portable terminal 50 via the NFC I / Fs 22 and 58 (YES in S26 of FIG. 2, YES in S98 of FIG. 5). Next, P2P communication is executed between the MFP 10 and the portable terminal 50 using a P2P communication link (S28 in FIG. 2 and S100 in FIG. 5). That is, first, the mobile terminal 50 transmits network information (wireless setting of the network to which the mobile terminal 50 belongs or information indicating that the mobile terminal 50 does not belong to the network) to the MFP 10. Next, the MFP 10 transmits to the portable terminal 50 wireless setting of the WFD network in which the MFP 10 itself is G / O, or change unnecessary information.

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

次いで、MFP10は、P2Pモードを停止し、CEモードを起動させる(図2のS30)。この場合、MFP10と携帯端末50は、P2Pの通信リンクを切断する。次いで、MFP10及び携帯端末50は、確立された無線通信リンクを利用して、無線LANI/F20、56を介して、実行要求が示す特定の機能の実行の対象データを通信する(図2のS32、図5のS102)。例えば、特定の機能が印刷である場合、携帯端末50は、MFP10に対して印刷データ(対象データ)を送信する。MFP10は、対象データを受信すると、対象データが示す画像を、印刷実行部16に印刷させる。また、特定の機能がスキャンである場合、MFP10は、スキャン実行部18の原稿送り機構にセットされた原稿をスキャンし、スキャンデータ(対象データ)を生成する。MFP10は、生成された対象データを、携帯端末50に送信する。   Next, the MFP 10 stops the P2P mode and activates the CE mode (S30 in FIG. 2). In this case, the MFP 10 and the portable terminal 50 disconnect the P2P communication link. Next, the MFP 10 and the portable terminal 50 communicate the target data for execution of the specific function indicated by the execution request via the wireless LAN I / Fs 20 and 56 using the established wireless communication link (S32 in FIG. 2). , S102 in FIG. For example, when the specific function is printing, the portable terminal 50 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 portable terminal 50.

機能の実行が終了すると、MFP10は、再び、NFCI/F22にアプリダウンロードURLを登録する。一方、携帯端末50は、起動されているMFP用アプリケーションを終了させる。この場合、携帯端末50は、初期状態(P2Pモード及びReaderモードが起動しており、他のモードが停止している状態)に戻る。   When the execution of the function ends, the MFP 10 registers the application download URL in the NFC I / F 22 again. On the other hand, the portable terminal 50 ends the activated MFP application. In this case, the portable terminal 50 returns to an initial state (a state where the P2P mode and the Reader mode are activated and the other modes are stopped).

一方において、認証が失敗したと判断される場合(図2のS20でNO)、又は、機能実行可能でないと判断される場合(図2のS22でNO)、MFP10は、エラー画面を表示部14に表示させる(図2のS36)。その後、MFP10は、再び、NFCI/F22にアプリダウンロードURLを登録する。   On the other hand, when it is determined that the authentication has failed (NO in S20 of FIG. 2), or when it is determined that the function cannot be executed (NO in S22 of FIG. 2), the MFP 10 displays an error screen. (S36 in FIG. 2). Thereafter, the MFP 10 registers the application download URL in the NFC I / F 22 again.

上述したように、図8の例では、MFP10のメモリ32には、携帯端末80の認証情報が記憶されていない。そのため、MFP10は、認証が失敗したと判断する(図2のS20でNO)。この場合、携帯端末80とMFP10との間では、P2Pの通信リンクが確立されない。そのため、携帯端末80は、所定のタイムアウト期間が経過すると、エラー画面を表示部に表示させる(図5のS104)。次いで、携帯端末80は、起動されているMFPアプリケーションを終了させる。携帯端末80は、初期状態に戻る。   As described above, in the example of FIG. 8, the authentication information of the portable terminal 80 is not stored in the memory 32 of the MFP 10. Therefore, the MFP 10 determines that the authentication has failed (NO in S20 of FIG. 2). In this case, a P2P communication link is not established between the portable terminal 80 and the MFP 10. Therefore, the portable terminal 80 displays an error screen on the display unit when a predetermined timeout period elapses (S104 in FIG. 5). Next, the portable terminal 80 ends the activated MFP application. The portable terminal 80 returns to the initial state.

(本実施例の効果)
図8を参照して説明したように、MFP10は、MFP10(CE)−携帯端末50(W)の通信リンクを利用して、携帯端末50から、実行要求と携帯端末50の認証情報を受信する(図2のS18でYES)。また、MFP10は、実行要求と携帯端末50の認証情報を受信する場合に、認証が成功したか否か、及び、特定の機能が実行可能か否かを判断する(図2のS20及びS22)。MFP10は、認証が成功し(図2のS20でYES)、かつ、実行要求が示す特定の機能を実行可能である場合(図2のS22でYES)に、MFP10と携帯端末50との間に、NFCI/F22を介したP2Pの通信リンクを確立する(図2のS26でYES)。MFP10は、確立されたP2Pの通信リンク
を利用して、双方向通信(P2P通信)を実行する(図2のS28、図8)。一方、MFP10は、認証が失敗したと判断される場合(図2のS20でNO)、又は、機能実行可能でないと判断される場合(図2のS22でNO)、携帯端末80との間で双方向通信(P2P通信)を実行しない(図8参照)。即ち、本実施例のMFP10は、MFP10と携帯端末50との間でMFP10と携帯端末50との間で、認証が成功したか否か、及び、特定の機能が実行可能か否かに応じて、P2Pの通信リンクを利用して、携帯端末50と双方向通信を実行するか否かを変えることができる。従って、本実施例のMFP10によると、NFCI/F22を利用した通信と、無線LANI/F20を利用した通信と、を適切に実行し得る。
(Effect of this embodiment)
As described with reference to FIG. 8, the MFP 10 receives the execution request and the authentication information of the mobile terminal 50 from the mobile terminal 50 using the communication link of MFP 10 (CE) -mobile terminal 50 (W). (YES in S18 of FIG. 2). Further, when the MFP 10 receives the execution request and the authentication information of the portable terminal 50, the MFP 10 determines whether the authentication is successful and whether a specific function can be executed (S20 and S22 in FIG. 2). . When the authentication is successful (YES in S20 of FIG. 2) and the specific function indicated by the execution request can be executed (YES in S22 of FIG. 2), the MFP 10 is between the MFP 10 and the portable terminal 50. Then, a P2P communication link is established via the NFC I / F 22 (YES in S26 of FIG. 2). The MFP 10 executes bi-directional communication (P2P communication) using the established P2P communication link (S28 in FIG. 2, FIG. 8). On the other hand, when it is determined that the authentication has failed (NO in S20 of FIG. 2), or when it is determined that the function cannot be executed (NO in S22 of FIG. 2), the MFP 10 communicates with the mobile terminal 80. Bidirectional communication (P2P communication) is not executed (see FIG. 8). That is, the MFP 10 according to the present embodiment depends on whether authentication between the MFP 10 and the portable terminal 50 is successful between the MFP 10 and the portable terminal 50 and whether a specific function can be executed. Whether or not to perform bidirectional communication with the portable terminal 50 can be changed using the P2P communication link. Therefore, according to the MFP 10 of the present embodiment, communication using the NFC I / F 22 and communication using the wireless LAN I / F 20 can be appropriately executed.

本実施例では、MFP10は、認証が成功し(図2のS20でYES)、かつ、実行要求が示す特定の機能を実行可能である場合(図2のS20でYES、かつ、S22でYES)に、携帯端末50との間でP2Pの通信リンクを確立する(図8参照)。従って、MFP10は、P2Pの通信リンクを適切に確立し得る。また、本実施例では、MFP10は、認証が失敗したと判断される場合(図2のS20でNO)、又は、機能実行可能でないと判断される場合(図2のS22でNO)に、携帯端末80との間でP2Pの通信リンクを確立しない(図8参照)。MFP10は、判断結果に応じて、P2Pの通信リンクを確立するか否かを変えることができる。そのため、MFP10は、P2Pの通信リンクを適切に確立し得る。   In this embodiment, the MFP 10 is successfully authenticated (YES in S20 of FIG. 2) and can execute a specific function indicated by the execution request (YES in S20 of FIG. 2 and YES in S22). In addition, a P2P communication link is established with the portable terminal 50 (see FIG. 8). Therefore, the MFP 10 can appropriately establish a P2P communication link. Further, in this embodiment, the MFP 10 carries the mobile phone when it is determined that the authentication has failed (NO in S20 of FIG. 2) or when it is determined that the function cannot be executed (NO in S22 of FIG. 2). A P2P communication link is not established with the terminal 80 (see FIG. 8). The MFP 10 can change whether or not to establish a P2P communication link according to the determination result. Therefore, the MFP 10 can appropriately establish a P2P communication link.

上述したように、本実施例では、MFP10は、認証が成功し(図2のS20でYES)、かつ、実行要求が示す特定の機能を実行可能である場合(図2のS22でYES)に、特定の機能を実行するための情報の双方向通信(図2のS28のP2P通信)を実行することができる。即ち、本実施例では、MFP10は、事前にMFP10のメモリ32に認証情報を登録している携帯端末50との間で、特定の機能を実行するための情報の双方向通信(図2のS28)を実行し、MFP10のメモリ32に認証情報を登録していない携帯端末80との間では、特定の機能を実行するための情報の双方向通信を実行しない。そのため、MFP10は、認証情報の登録を行った携帯端末50のユーザに対してだけ機能実行を許容することができる。さらに、MFP10は、MFP10の状態が特定の機能を実行可能な状態である場合に限り、機能実行を許容することができる。即ち、本実施例のMFP10は、MFP10と携帯端末50、80との間で、機能実行可能であるか否かを適切に判断し得る。   As described above, in this embodiment, when the MFP 10 has been successfully authenticated (YES in S20 of FIG. 2) and the specific function indicated by the execution request can be executed (YES in S22 of FIG. 2). Bidirectional communication of information for executing a specific function (P2P communication in S28 of FIG. 2) can be executed. That is, in this embodiment, the MFP 10 performs bidirectional communication of information for executing a specific function with the portable terminal 50 that has previously registered authentication information in the memory 32 of the MFP 10 (S28 in FIG. 2). ) And two-way communication of information for executing a specific function is not executed with the portable terminal 80 in which the authentication information is not registered in the memory 32 of the MFP 10. Therefore, the MFP 10 can permit the function execution only to the user of the portable terminal 50 that has registered the authentication information. Furthermore, the MFP 10 can permit the function execution only when the state of the MFP 10 is a state in which a specific function can be executed. That is, the MFP 10 according to the present embodiment can appropriately determine whether or not the function can be executed between the MFP 10 and the portable terminals 50 and 80.

(対応関係)
MFP10、携帯端末50、80が、それぞれ、「通信装置」、「端末装置」の一例である。NFCI/F22、58、無線LANI/F20、56が、それぞれ、「第1種のインターフェース」、「第2種のインターフェース」の一例である。CEモード、Writerモードが、それぞれ、「第1のモード」、「第2のモード」の一例である。MFP10(CE)−携帯端末50(80)(W)の通信リンクが「第1の通信リンク」の一例である。MFP10と携帯端末50の間のP2Pの通信リンクが「第2の通信リンク」の一例である。実行要求及び携帯端末50の認証情報が、「第1の情報」の一例である。携帯端末50の認証情報は、「特定の識別情報」の一例である。携帯端末50のネットワーク情報、及び、MFP10が送信する無線設定又は変更不要情報が、「第2の情報」の一例である。図2のS20の判断、S22の判断が、それぞれ、「第1の判断処理」、「第2の判断処理」の一例である。
(Correspondence)
The MFP 10 and the portable terminals 50 and 80 are examples of “communication device” and “terminal device”, respectively. The NFC I / Fs 22 and 58 and the wireless LAN I / Fs 20 and 56 are examples of the “first type interface” and the “second type interface”, respectively. The CE mode and the writer mode are examples of the “first mode” and the “second mode”, respectively. The communication link of MFP 10 (CE) -portable terminal 50 (80) (W) is an example of the “first communication link”. A P2P communication link between the MFP 10 and the portable terminal 50 is an example of a “second communication link”. The execution request and the authentication information of the portable terminal 50 are examples of “first information”. The authentication information of the portable terminal 50 is an example of “specific identification information”. The network information of the portable terminal 50 and the wireless setting or change unnecessary information transmitted by the MFP 10 are examples of “second information”. The determinations in S20 and S22 in FIG. 2 are examples of “first determination processing” and “second determination processing”, respectively.

図2のS18が、「受信部」が実行する処理の一例である。図2のS26が「確立部」が実行する処理の一例である。図2のS20が「第1の判断部」が実行する処理の一例である。図2のS22が「第2の判断部」が実行する処理の一例である。図2のS28、S36が「通信制御部」が実行する処理の一例である。図2のS34が「記憶制御部」が実
行する処理の一例である。
S18 in FIG. 2 is an example of processing executed by the “receiving unit”. S26 in FIG. 2 is an example of processing executed by the “establishing unit”. S20 in FIG. 2 is an example of a process executed by the “first determination unit”. S22 in FIG. 2 is an example of a process executed by the “second determination unit”. S28 and S36 in FIG. 2 are an example of processing executed by the “communication control unit”. S34 in FIG. 2 is an example of a process executed by the “storage control unit”.

(第2実施例)
第2実施例について、第1実施例と異なる点を中心に説明する。本実施例では、MFP10のCPU30が実行する通信処理の内容が、第1実施例とは異なる(図9参照)。また、本実施例では、携帯端末50のCPU62が実行する機能実行処理の内容も、第1実施例とは異なる(図10参照)。
(Second embodiment)
The second embodiment will be described focusing on the differences from the first embodiment. In the present embodiment, the content of the communication process executed by the CPU 30 of the MFP 10 is different from that in the first embodiment (see FIG. 9). Further, in this embodiment, the contents of the function execution process executed by the CPU 62 of the portable terminal 50 are also different from those in the first embodiment (see FIG. 10).

(MFP10のCPU30が実行する通信処理;図9)
図9を参照して、MFP10のCPU30がプログラムに従って実行する通信処理の内容を説明する。CPU30は、MFP10の電源がONされると、図9の通信処理を開始する。S120では、CPU30は、MFP10の状態を、CEモードが起動されており、他のモード(P2Pモード及びR/Wモード)が起動されていない初期状態に移行させる。
(Communication processing executed by CPU 30 of MFP 10; FIG. 9)
With reference to FIG. 9, the contents of the communication process 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. In S120, the CPU 30 shifts the state of the MFP 10 to an initial state in which the CE mode is activated and the other modes (P2P mode and R / W mode) are not activated.

次いで、S122では、CPU30は、NFCI/F22に、アプリダウンロードURLを登録する。次いで、S124では、CPU30は、MFP10(CE)−相手(W)の通信リンクが確立されることを監視する。MFP(CE)−相手(W)の通信リンクが確立すると、CPU30は、S124でYESと判断して、S126及びS128に進む。   Next, in S122, the CPU 30 registers the application download URL in the NFC I / F 22. Next, in S124, the CPU 30 monitors whether the communication link of MFP 10 (CE) -partner (W) is established. When the MFP (CE) -partner (W) communication link is established, the CPU 30 determines YES in S124, and proceeds to S126 and S128.

S126では、CPU30は、MFP(CE)−相手(W)の通信リンクを利用して、NFCI/F22を介して、通信相手から登録要求と認証情報を受信することを監視する。S126でYESの場合、S154に進む。S126、S154の処理、及び、S154の終了後の処理の各内容は、図2のS16、S34の処理、及び、S34の終了後の処理の各内容と同様であるため、詳しい説明を省略する。   In S126, the CPU 30 monitors reception of a registration request and authentication information from the communication partner via the NFC I / F 22 using the MFP (CE) -partner (W) communication link. If YES in S126, the process proceeds to S154. Since the contents of the processes of S126 and S154 and the processes after the end of S154 are the same as the contents of the processes of S16, S34 and the processes after the end of S34 in FIG. .

S128では、CPU30は、MFP(CE)−相手(W)の通信リンクを利用して、NFCI/F22を介して、通信相手からReader起動コマンドを受信することを監視する。Reader起動コマンドは、MFP10のReaderモードの起動を要求するコマンドである。CPU30は、Writerモードで動作する通信相手から、Reader起動コマンドを受信する場合に、S128でYESと判断して、S130に進む。   In S128, the CPU 30 monitors reception of a Reader activation command from the communication partner via the NFC I / F 22 using the MFP (CE) -partner (W) communication link. The Reader activation command is a command for requesting activation of the Reader mode of the MFP 10. When receiving a Reader activation command from a communication partner operating in the writer mode, the CPU 30 determines YES in S128 and proceeds to S130.

S130では、CPU30は、CEモードを停止し、Readerモードを起動させる。具体的に言うと、S130では、CPU30は、MFP(CE)−相手(W)の通信リンクを切断し、その後、CEモードを停止し、Readerモードを起動させる。   In S130, the CPU 30 stops the CE mode and activates the Reader mode. Specifically, in S130, the CPU 30 disconnects the MFP (CE) -partner (W) communication link, and then stops the CE mode and activates the Reader mode.

S132では、CPU30は、MFP(R)−相手(CE)の通信リンクが確立されることを監視する。MFP(R)−相手(CE)の通信リンクが確立すると、CPU30は、S132でYESと判断して、S134に進む。   In S132, the CPU 30 monitors whether a communication link of MFP (R) -partner (CE) is established. When the MFP (R) -other party (CE) communication link is established, the CPU 30 determines YES in S132, and proceeds to S134.

S134では、MFP(R)−相手(CE)の通信リンクを利用して、NFCI/F22を介して、通信相手から実行要求と認証情報を受信することを監視する。CPU30は、CEモードで動作する通信相手から、実行要求と通信相手の認証情報を受信する場合に、S134でYESと判断して、S136に進む。   In S134, it is monitored that the execution request and the authentication information are received from the communication partner via the NFC I / F 22 using the MFP (R) -party (CE) communication link. When receiving an execution request and authentication information of the communication partner from the communication partner operating in the CE mode, the CPU 30 determines YES in S134 and proceeds to S136.

S136では、CPU30は、認証が成功したか否かを判断する。S136の処理は、図2のS20の処理と同様である。S136でYESの場合、S138に進む。一方、S136でNOの場合、S156に進む。   In S136, the CPU 30 determines whether the authentication is successful. The process of S136 is the same as the process of S20 of FIG. If YES in S136, the process proceeds to S138. On the other hand, if NO in S136, the process proceeds to S156.

S138では、CPU30は、MFP10が、実行要求が示す特定の機能を実行可能であるか否かを判断する。S138の処理は、図2のS22の処理と同様である。S138でYESの場合、S140に進む。一方、S138でNOの場合、S156に進む。   In S138, the CPU 30 determines whether the MFP 10 can execute the specific function indicated by the execution request. The process of S138 is the same as the process of S22 of FIG. If YES in S138, the process proceeds to S140. On the other hand, if NO in S138, the process proceeds to S156.

S156では、図2のS36と同様に、CPU30は、所定のエラー画面を表示部14に表示させる。S156を終えると、CPU30は、S120に戻り、CEモードを起動させるとともに、ReaderモードをOFFし、S122以降の各処理を再度実行する。   In S156, the CPU 30 causes the display unit 14 to display a predetermined error screen, as in S36 of FIG. When S156 ends, the CPU 30 returns to S120, activates the CE mode, turns off the Reader mode, and re-executes each process from S122.

S140では、CPU30は、Readerモードを停止し、Writerモードを起動させる。具体的に言うと、S140では、CPU30は、MFP10(R)−相手(CE)の通信リンクを切断し、その後、Readerモードを停止し、Writerモードを起動させる。   In S140, the CPU 30 stops the Reader mode and activates the Writer mode. Specifically, in S140, the CPU 30 disconnects the communication link of MFP 10 (R) -partner (CE), then stops the Reader mode and activates the Writer mode.

S142では、CPU30は、MFP(W)−相手(CE)の通信リンクが確立されることを監視する。CPU30は、MFP(W)−相手(CE)の通信リンクが確立されると、S142でYESと判断して、S144に進む。   In S142, the CPU 30 monitors whether a communication link of MFP (W) -other party (CE) is established. If the MFP (W) -other party (CE) communication link is established, the CPU 30 determines YES in S142, and proceeds to S144.

S144では、CPU30は、MFP(W)−相手(CE)の通信リンクを利用して、NFCI/F22を介して、通信相手に、P2P起動コマンドを送信する。P2P起動コマンドは、通信相手に対して、P2Pモードの起動を要求するためのコマンドである。   In S144, the CPU 30 transmits a P2P activation command to the communication partner via the NFC I / F 22 by using the MFP (W) -partner (CE) communication link. The P2P activation command is a command for requesting the communication partner to activate the P2P mode.

次いで、S145では、CPU30は、Writerモードを停止し、P2Pモードを起動させる。具体的に言うと、S145では、CPU30は、MFP(W)−相手(CE)の通信リンクを切断し、その後、Writerモードを停止し、P2Pモードを起動させる。   Next, in S145, the CPU 30 stops the writer mode and activates the P2P mode. More specifically, in S145, the CPU 30 disconnects the MFP (W) -partner (CE) communication link, stops the writer mode, and activates the P2P mode.

次いで、S146では、CPU30は、P2Pの通信リンクが確立されることを監視する。S146の処理は、図2のS26の処理と同様である。P2Pの通信リンクが確立される場合、CPU30は、S146でYESと判断して、S148に進む。   Next, in S146, the CPU 30 monitors whether a P2P communication link is established. The process of S146 is the same as the process of S26 of FIG. When the P2P communication link is established, the CPU 30 determines YES in S146, and proceeds to S148.

S148、S150、S152の各処理は、図2のS28、S30、S32の各処理と同様である。また、S152の処理の後の各処理の内容も、図2のS32の処理の後の各処理の内容と同様である。従って、本実施例では詳しい説明を省略する。   Each process of S148, S150, and S152 is the same as each process of S28, S30, and S32 of FIG. The contents of each process after the process of S152 are the same as the contents of each process after the process of S32 of FIG. Therefore, detailed description is omitted in this embodiment.

(携帯端末50が実行する機能実行処理;図10)
次いで、図10を参照して、携帯端末50のCPU62がMFP用アプリケーションプログラムに従って実行する機能実行処理の内容を説明する。MFP用アプリケーションが起動された後に、操作部52において、機能実行指示(印刷指示又はスキャン指示)が入力されると、CPU62は、図10の機能実行処理を開始する。即ち、本実施例でも、CPU62は、MFPアプリケーションに従って、図10の機能実行処理を実行する。S170では、CPU62は、携帯端末50の状態を、Writerモードが起動されており、他のモード(Readerモード、P2Pモード、及び、CEモード)が起動されていない状態に移行させる。
(Function execution process executed by the portable terminal 50; FIG. 10)
Next, with reference to FIG. 10, the contents of the function execution process executed by the CPU 62 of the portable terminal 50 according to the MFP application program will be described. When a function execution instruction (print instruction or scan instruction) is input on the operation unit 52 after the MFP application is activated, the CPU 62 starts the function execution process of FIG. That is, also in this embodiment, the CPU 62 executes the function execution process of FIG. 10 according to the MFP application. In S170, the CPU 62 shifts the state of the portable terminal 50 to a state in which the writer mode is activated and the other modes (reader mode, P2P mode, and CE mode) are not activated.

次いで、S172では、携帯端末(W)−相手(CE)の通信リンクが確立されることを監視する。S172の処理は、図5のS92と同様である。S172でYESの場合、S174に進む。   Next, in S172, it is monitored that a communication link between the portable terminal (W) and the other party (CE) is established. The process of S172 is the same as S92 of FIG. If YES in S172, the process proceeds to S174.

S174では、CPU62は、携帯端末(W)−相手(CE)の通信リンクを利用して
、NFCI/F58を介して、Reader起動コマンドを通信相手(即ち、MFP10)に送信する。
In S174, the CPU 62 transmits a Reader activation command to the communication partner (that is, the MFP 10) via the NFC I / F 58 using the communication link of the portable terminal (W) -the partner (CE).

次いで、S176では、CPU62は、Writerモードを停止し、CEモードを起動させる。詳しく言うと、S176では、CPU62は、まず、携帯端末50(W)−相手(CE)の通信リンクを切断し、その後、Writerモードを停止し、CEモードを起動させる。この結果、CPU62は、MFP10の状態を、CEモードが起動されており、R/Wモード及びP2Pモードが起動されていない状態に変更することができる。   Next, in S176, the CPU 62 stops the writer mode and activates the CE mode. More specifically, in S176, the CPU 62 first disconnects the communication link between the portable terminal 50 (W) and the other party (CE), then stops the writer mode and activates the CE mode. As a result, the CPU 62 can change the state of the MFP 10 to a state where the CE mode is activated and the R / W mode and the P2P mode are not activated.

次いで、S177では、CPU62は、実行要求と、携帯端末50自身の認証情報をNFCI/F58に登録する。   Next, in S177, the CPU 62 registers the execution request and the authentication information of the mobile terminal 50 itself in the NFC I / F 58.

S178では、CPU62は、携帯端末(CE)−相手(R)の通信リンクが確立されることを監視する。CPU62は、携帯端末(CE)−相手(R)の通信リンクが確立されると、S178でYESと判断して、S182に進む。   In S178, the CPU 62 monitors whether the communication link between the mobile terminal (CE) and the partner (R) is established. When the communication link between the mobile terminal (CE) and the other party (R) is established, the CPU 62 determines YES in S178, and proceeds to S182.

なお、携帯端末(CE)−相手(R)の通信リンクが確立されると(S178でYES)、NFCI/F58は、Readerモードで動作する通信相手(MFP10)に対し、登録されている実行要求と、携帯端末50自身の認証情報を自動送信する。   When the communication link between the mobile terminal (CE) and the partner (R) is established (YES in S178), the NFC I / F 58 sends a registered execution request to the partner (MFP 10) operating in the Reader mode. Then, the authentication information of the mobile terminal 50 itself is automatically transmitted.

S182では、CPU62は、携帯端末(CE)−相手(W)の通信リンクが確立されることを監視する。CPU62は、携帯端末(CE)−相手(W)の通信リンクが確立される場合に、S182でYESと判断して、S184に進む。   In S <b> 182, the CPU 62 monitors whether the communication link between the mobile terminal (CE) and the other party (W) is established. When the communication link between the portable terminal (CE) and the other party (W) is established, the CPU 62 determines YES in S182 and proceeds to S184.

S184では、CPU62は、携帯端末(CE)−相手(W)の通信リンクを利用して、NFCI/F58を介して、P2P起動コマンドが受信されることを監視する。CPU62は、Writerモードで動作する通信相手から、P2P起動コマンドを受信する場合に、S184でYESと判断して、S186に進む。一方、所定のタイムアウト期間が経過するまでの間にP2P起動コマンドが受信されない場合、CPU62は、S184でNOと判断し、S196に進む。   In S <b> 184, the CPU 62 monitors the reception of the P2P activation command via the NFC I / F 58 using the mobile terminal (CE) -partner (W) communication link. When receiving a P2P activation command from a communication partner operating in the writer mode, the CPU 62 determines YES in S184 and proceeds to S186. On the other hand, if the P2P activation command is not received before the predetermined timeout period elapses, the CPU 62 determines NO in S184, and proceeds to S196.

S186では、CPU62は、CEモードを停止し、P2Pモードを起動させる。具体的に言うと、S186では、CPU62は、携帯端末(CE)−相手(W)の通信リンクを切断し、その後、CEモードを停止し、P2Pモードを起動させる。   In S186, the CPU 62 stops the CE mode and activates the P2P mode. Specifically, in S186, the CPU 62 disconnects the communication link between the mobile terminal (CE) and the other party (W), and then stops the CE mode and activates the P2P mode.

S188では、CPU62は、P2Pの通信リンクが確立されることを監視する。S188の処理は、図5のS98の処理と同様である。S188でYESの場合、S190に進む。一方、所定のタイムアウト期間が経過するまでの間にP2Pの通信リンクが確立されない場合、CPU62は、S188でNOと判断し、S196に進む。   In S188, the CPU 62 monitors whether a P2P communication link is established. The process of S188 is the same as the process of S98 of FIG. If YES in S188, the process proceeds to S190. On the other hand, if the P2P communication link is not established before the predetermined timeout period elapses, the CPU 62 determines NO in S188 and proceeds to S196.

S196では、CPU62は、所定のエラー画面を表示部54に表示させる。S196を終えると、図10の機能実行処理がエラー終了する。この場合、CPU62は、起動されているMFP用アプリケーションを終了させる。CPU62は、携帯端末50の状態を、初期状態(P2Pモード及びReaderモードが起動しており、他のモードが停止している状態)に戻す。   In S196, the CPU 62 causes the display unit 54 to display a predetermined error screen. When S196 ends, the function execution process of FIG. 10 ends with an error. In this case, the CPU 62 ends the activated MFP application. The CPU 62 returns the state of the portable terminal 50 to an initial state (a state where the P2P mode and the Reader mode are activated and other modes are stopped).

S190、S192の各処理は、図5のS100、S102の各処理と同様である。そのため、詳しい説明を省略する。S192を終えると、図10の機能実行処理が終了する。この場合、CPU62は、起動されているMFP用アプリケーションを終了させる。CPU62は、携帯端末50の状態を、初期状態(P2Pモード及びReaderモードが
起動しており、他のモードが停止している状態)に戻す。
Each process of S190 and S192 is the same as each process of S100 and S102 of FIG. Therefore, detailed description is omitted. When S192 ends, the function execution process of FIG. 10 ends. In this case, the CPU 62 ends the activated MFP application. The CPU 62 returns the state of the portable terminal 50 to an initial state (a state where the P2P mode and the Reader mode are activated and other modes are stopped).

(機能実行;図11)
次に、図11を参照して、MFP10の特定の機能が実行される場合において、MFP10と携帯端末50、80の間で実行される通信の例について説明する。
(Function execution; Fig. 11)
Next, an example of communication executed between the MFP 10 and the portable terminals 50 and 80 when a specific function of the MFP 10 is executed will be described with reference to FIG.

MFP10は、電源がONされると、CEモードが起動されており、他のモード(P2Pモード及びR/Wモード)が起動されていない初期状態に移行する(図9のS120)。次いで、MFP10は、NFCI/F22に、アプリダウンロードURLを登録する(図9のS122)。次いで、MFP10は、MFP(CE)−相手(W)の通信リンクが確立されることを監視する。   When the MFP 10 is turned on, the CE mode is activated, and the MFP 10 shifts to an initial state in which other modes (P2P mode and R / W mode) are not activated (S120 in FIG. 9). Next, the MFP 10 registers the application download URL in the NFC I / F 22 (S122 in FIG. 9). Next, the MFP 10 monitors whether a communication link of MFP (CE) -partner (W) is established.

携帯端末50には、MFP用アプリケーションがインストールされている。携帯端末50は、MFPアプリケーションが起動された後に、操作部52において機能実行指示(スキャン指示、印刷指示)が入力されると、Writerモードが起動されており、他のモード(Readerモード、P2Pモード、及び、CEモード)が起動されていない状態に移行する(図10のS170)。次いで、携帯端末50は、携帯端末(W)−相手(CE)の通信リンクが確立されることを監視する(図10のS172)。   An application for MFP is installed 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 started, the mobile terminal 50 is started in the writer mode, and other modes (reader mode, P2P mode). , And CE mode) are not activated (S170 in FIG. 10). Next, the portable terminal 50 monitors whether the communication link of the portable terminal (W) -the other party (CE) is established (S172 in FIG. 10).

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

携帯端末50は、MFP10(CE)−携帯端末50(W)の通信リンクを利用して、NFCI/C58を介して、Reader起動コマンドをMFP10に送信する(図10のS174)。次いで、携帯端末50は、Writerモードを停止し、CEモードを起動させる(図10のS176)。この場合、携帯端末50とMFP10は、MFP10(CE)−携帯端末50(W)の通信リンクを切断する。携帯端末50は、NFCI/F58に、携帯端末50の認証情報と、実行要求を登録する(図10のS177)。次いで、携帯端末50は、MFP10(R)−携帯端末50(CE)の通信リンクが確立されることを監視する。   The portable terminal 50 transmits a Reader activation command to the MFP 10 via the NFC I / C 58 using the MFP 10 (CE) -mobile terminal 50 (W) communication link (S174 in FIG. 10). Next, the mobile terminal 50 stops the writer mode and activates the CE mode (S176 in FIG. 10). In this case, the mobile terminal 50 and the MFP 10 disconnect the communication link of MFP 10 (CE) -mobile terminal 50 (W). The portable terminal 50 registers the authentication information of the portable terminal 50 and the execution request in the NFC I / F 58 (S177 in FIG. 10). Next, the mobile terminal 50 monitors whether the communication link of MFP 10 (R) -mobile terminal 50 (CE) is established.

MFP10は、NFCI/F22を介して、上記のReader起動コマンドを受信する(図9のS128でYES)。次いで、MFP10は、MFP10(CE)−携帯端末50(W)の通信リンクを切断する。MFP10は、CEモードを停止し、Readerモードを起動させる(図9のS130)。次いで、MFP10は、MFP10(R)−携帯端末50(CE)の通信リンクが確立されることを監視する(図9のS132)。   The MFP 10 receives the above-described Reader activation command via the NFC I / F 22 (YES in S128 of FIG. 9). Next, the MFP 10 disconnects the communication link of MFP 10 (CE) -portable terminal 50 (W). The MFP 10 stops the CE mode and activates the Reader mode (S130 in FIG. 9). Next, the MFP 10 monitors whether the communication link of MFP 10 (R) -portable terminal 50 (CE) is established (S132 in FIG. 9).

この状態で、NFCI/F22、58が互いに通信可能な距離内に存在すると、MFP10と携帯端末50との間で、NFCI/F22、58を介して、MFP10(R)−携帯端末50(CE)の通信リンクが確立する(図9のS132でYES、図10のS178でYES)。   In this state, if the NFC I / Fs 22 and 58 exist within a communicable distance, the MFP 10 (R) -the portable terminal 50 (CE) between the MFP 10 and the portable terminal 50 via the NFC I / Fs 22 and 58. Is established (YES in S132 of FIG. 9, YES in S178 of FIG. 10).

NFCI/F58は、MFP10(R)−携帯端末50(CE)の通信リンクを利用して、実行要求と携帯端末50の認証情報をMFP10に送信する。次いで、携帯端末50は、MFP10(W)−携帯端末50(CE)の通信リンクが確立されることを監視する。   The NFC I / F 58 transmits an execution request and authentication information of the portable terminal 50 to the MFP 10 using the communication link of MFP 10 (R) -portable terminal 50 (CE). Next, the mobile terminal 50 monitors whether the communication link of MFP 10 (W) -mobile terminal 50 (CE) is established.

MFP10は、NFCI/F22を介して、実行要求と携帯端末50の認証情報を受信
する(図9のS134でYES)。次いで、MFP10は、認証が成功したか否かを判断する(図9のS136)。図11の例でも、MFP10のメモリ32には、携帯端末50の認証情報が記憶されている。そのため、MFP10は、認証が成功したと判断する(図9のS136でYES)。
The MFP 10 receives the execution request and the authentication information of the portable terminal 50 via the NFC I / F 22 (YES in S134 of FIG. 9). Next, the MFP 10 determines whether the authentication is successful (S136 in FIG. 9). Also in the example of FIG. 11, the authentication information of the portable terminal 50 is stored in the memory 32 of the MFP 10. Therefore, the MFP 10 determines that the authentication is successful (YES in S136 of FIG. 9).

認証が成功したと判断されると(図9のS136でYES)、続いて、MFP10は、受信された実行要求が示す特定の機能を実行可能であるか否かを判断する(図9のS138)。機能実行可能と判断される場合(図9のS138でYES)、MFP10は、MFP10(R)−携帯端末50(CE)の通信リンクを切断する。次いで、MFP10は、Readerモードを停止し、Writerモードを起動させる(図9のS140)。次いで、MFP10は、MFP10(W)−携帯端末50(CE)の通信リンクが確立されることを監視する。   If it is determined that the authentication is successful (YES in S136 of FIG. 9), the MFP 10 subsequently determines whether or not the specific function indicated by the received execution request can be executed (S138 of FIG. 9). ). When it is determined that the function can be executed (YES in S138 of FIG. 9), the MFP 10 disconnects the communication link of MFP 10 (R) -portable terminal 50 (CE). Next, the MFP 10 stops the Reader mode and activates the Writer mode (S140 in FIG. 9). Next, the MFP 10 monitors whether the communication link of MFP 10 (W) -portable terminal 50 (CE) is established.

この状態で、NFCI/F22、58が互いに通信可能な距離内に存在すると、MFP10と携帯端末50との間で、NFCI/F22、58を介して、MFP10(W)−携帯端末50(CE)の通信リンクが確立する(図9のS142でYES、図10のS182でYES)。   In this state, if the NFC I / Fs 22 and 58 exist within a communicable distance, the MFP 10 (W) -the portable terminal 50 (CE) between the MFP 10 and the portable terminal 50 via the NFC I / Fs 22 and 58. Is established (YES in S142 of FIG. 9, YES in S182 of FIG. 10).

MFP10は、MFP10(W)−携帯端末50(CE)の通信リンクを利用して、NFCI/F22を介して、通信相手に、P2P起動コマンドを送信する(図9のS144)。携帯端末50は、NFCI/F58を介して、P2P起動コマンドを受信する(図10のS184でYES)。   The MFP 10 transmits a P2P activation command to the communication partner via the NFC I / F 22 using the communication link of MFP 10 (W) -portable terminal 50 (CE) (S144 in FIG. 9). The portable terminal 50 receives the P2P activation command via the NFC I / F 58 (YES in S184 of FIG. 10).

次いで、MFP10は、MFP10(W)−携帯端末50(CE)の通信リンクを切断する。次いで、MFP10は、Writerモードを停止し、P2Pモードを起動させる(図9のS145)。MFP10は、P2Pの通信リンクが確立されることを監視する(図9のS146)。   Next, the MFP 10 disconnects the communication link of MFP 10 (W) -portable terminal 50 (CE). Next, the MFP 10 stops the writer mode and activates the P2P mode (S145 in FIG. 9). The MFP 10 monitors the establishment of the P2P communication link (S146 in FIG. 9).

一方、携帯端末50は、P2P起動コマンドを受信すると、CEモードを停止し、P2Pモードを起動させる(図10のS186)。次いで、携帯端末50は、P2Pの通信リンクが確立されることを監視する(図10のS188)。   On the other hand, when receiving the P2P activation command, the portable terminal 50 stops the CE mode and activates the P2P mode (S186 in FIG. 10). Next, the portable terminal 50 monitors that a P2P communication link is established (S188 in FIG. 10).

この状態で、NFCI/F22、58が互いに通信可能な距離内に存在すると、MFP10と携帯端末50の間に、NFCI/F22、58を介して、P2Pの通信リンクが確立される(図9のS146でYES、図10のS188でYES)。次いで、MFP10と携帯端末50の間で、P2Pの通信リンクを利用して、P2P通信が実行される(図9のS148、図10のS190)。   In this state, if the NFC I / Fs 22 and 58 exist within a communicable distance, a P2P communication link is established between the MFP 10 and the portable terminal 50 via the NFC I / Fs 22 and 58 (FIG. 9). YES in S146, YES in S188 of FIG. 10). Next, P2P communication is executed between the MFP 10 and the portable terminal 50 using the P2P communication link (S148 in FIG. 9 and S190 in FIG. 10).

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

次いで、MFP10は、P2Pモードを停止し、CEモードを起動させる(図9のS150)。MFP10と携帯端末50は、P2Pの通信リンクを切断する。次いで、MFP10及び携帯端末50は、確立された無線通信リンクを利用して、無線LANI/F20、56を介して、実行要求が示す特定の機能の実行の対象データを通信する(図9のS152、図10のS192)。   Next, the MFP 10 stops the P2P mode and activates the CE mode (S150 in FIG. 9). The MFP 10 and the portable terminal 50 disconnect the P2P communication link. 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 (S152 in FIG. 9). , S192 in FIG.

機能の実行が終了すると、MFP10は、再び、NFCI/F22にアプリダウンロードURLを登録する。一方、携帯端末50は、起動されているMFP用アプリケーション
を終了させる。この場合、携帯端末50は、初期状態(P2Pモード及びReaderモードが起動しており、他のモードが停止している状態)に戻る。
When the execution of the function ends, the MFP 10 registers the application download URL in the NFC I / F 22 again. On the other hand, the portable terminal 50 ends the activated MFP application. In this case, the portable terminal 50 returns to an initial state (a state where the P2P mode and the Reader mode are activated and the other modes are stopped).

一方において、上記認証が失敗したと判断される場合(図9のS136でNO)、又は、機能実行不可能と判断される場合(図9のS138でNO)、MFP10は、エラー画面を表示部14に表示させる(図9のS156)。その後、MFP10は、CEモードを起動させるとともに、ReaderモードをOFFし、再び、NFCI/F22にアプリダウンロードURLを登録する(図9のS120、S122)。   On the other hand, when it is determined that the authentication has failed (NO in S136 of FIG. 9), or when it is determined that the function cannot be executed (NO in S138 of FIG. 9), the MFP 10 displays an error screen. 14 (S156 in FIG. 9). Thereafter, the MFP 10 activates the CE mode, turns off the Reader mode, and registers the application download URL in the NFC I / F 22 again (S120 and S122 in FIG. 9).

図11の例でも、MFP10のメモリ32には、携帯端末80の認証情報が記憶されていない。そのため、MFP10は、認証が失敗したと判断する(図9のS136でNO)。この場合、携帯端末80とMFP10との間では、MFP10(W)−携帯端末80(CE)の通信リンクが確立しない。そのため、携帯端末80は、所定のタイムアウト期間が経過すると、エラー画面を表示部54に表示させる(図10のS196)。次いで、携帯端末80は、起動されているMFPアプリケーションを終了させる。携帯端末80は、初期状態に戻る。   Also in the example of FIG. 11, the authentication information of the portable terminal 80 is not stored in the memory 32 of the MFP 10. Therefore, the MFP 10 determines that the authentication has failed (NO in S136 of FIG. 9). In this case, the communication link between MFP 10 (W) and portable terminal 80 (CE) is not established between portable terminal 80 and MFP 10. Therefore, the portable terminal 80 displays an error screen on the display unit 54 when a predetermined timeout period elapses (S196 in FIG. 10). Next, the portable terminal 80 ends the activated MFP application. The portable terminal 80 returns to the initial state.

(本実施例の効果)
本実施例のMFP10も、第1実施例と同様の作用効果を発揮する。即ち、MFP10は、NFCI/F22を利用した通信と、無線LANI/F20を利用した通信と、を適切に実行し得る。
(Effect of this embodiment)
The MFP 10 of the present embodiment also exhibits the same operational effects as the first embodiment. That is, the MFP 10 can appropriately execute communication using the NFC I / F 22 and communication using the wireless LAN I / F 20.

(対応関係)
Readerモード、CEモードが、それぞれ「第1のモード」、「第2のモード」の一例である。MFP10(R)−携帯端末50(80)(CE)の通信リンクが「第1の通信リンク」の一例である。
(Correspondence)
The Reader mode and the CE mode are examples of the “first mode” and the “second mode”, respectively. A communication link between MFP 10 (R) and portable terminal 50 (80) (CE) is an example of a “first communication link”.

(第3実施例)
第3実施例について、第2実施例と異なる点を中心に説明する。本実施例では、MFP10が、ReaderモードとCEモードを同時に起動させることができる点で第2実施例とは異なる。本実施例では、MFP10は、初期状態において、ReaderモードとCEモードが起動され、他のモード(P2Pモード及びWriterモード)が起動されていない。そのため、本実施例では、MFP10の機能が実行される場合において、MFP10と携帯端末50、80の間で実行される通信の内容も、第2実施例とは異なる。
(Third embodiment)
The third embodiment will be described focusing on differences from the second embodiment. This embodiment is different from the second embodiment in that the MFP 10 can simultaneously activate the Reader mode and the CE mode. In this embodiment, the MFP 10 is activated in the Reader mode and the CE mode in the initial state, and the other modes (P2P mode and Writer mode) are not activated. For this reason, in this embodiment, when the function of the MFP 10 is executed, the contents of communication executed between the MFP 10 and the portable terminals 50 and 80 are also different from those in the second embodiment.

(機能実行;図12)
図12を参照して、MFP10の機能が実行される場合において、MFP10と携帯端末50、80の間で実行される通信の例について説明する。
(Function execution; FIG. 12)
With reference to FIG. 12, an example of communication executed between MFP 10 and portable terminals 50 and 80 when the function of MFP 10 is executed will be described.

本実施例では、MFP10は、電源がONされると、CEモード及びReaderモードが起動されており、他のモード(P2Pモード及びWriterモード)が起動されていない初期状態に移行する。次いで、MFP10は、MFP(R)−相手(CE)の通信リンクが確立されることを監視する。   In this embodiment, when the power is turned on, the MFP 10 is activated in the CE mode and the Reader mode, and shifts to an initial state in which other modes (P2P mode and Writer mode) are not activated. Next, the MFP 10 monitors that a communication link of MFP (R) -partner (CE) is established.

携帯端末50は、MFPアプリケーションが起動され、操作部52において機能実行指示(スキャン指示、印刷指示)が入力されると、CEモードが起動されており、他のモード(P2Pモード及びR/Wモード)が起動されていない状態に移行する。次いで、携帯端末50は、携帯端末(CE)−相手(R)の通信リンクが確立されることを監視する。   When the MFP application is activated and a function execution instruction (scan instruction, print instruction) is input in the operation unit 52, the CE mode is activated in the portable terminal 50, and other modes (P2P mode and R / W mode) are activated. ) Is not activated. Next, the portable terminal 50 monitors that the communication link of the portable terminal (CE) -the other party (R) is established.

この状態で、携帯端末50がMFP10に近づけられると、MFP10と携帯端末50
との間で、NFCI/F22、58を介して、MFP10(R)−携帯端末50(CE)の通信リンクが確立する。
In this state, when the portable terminal 50 is brought close to the MFP 10, the MFP 10 and the portable terminal 50 are connected.
Between the MFP 10 (R) and the portable terminal 50 (CE) via the NFC I / Fs 22 and 58.

NFCI/F58は、MFP10(R)−携帯端末50(CE)の通信リンクを利用して、実行要求と携帯端末50の認証情報をMFP10に送信する。次いで、携帯端末50は、MFP10(W)−携帯端末50(CE)の通信リンクが確立されることを監視する。   The NFC I / F 58 transmits an execution request and authentication information of the portable terminal 50 to the MFP 10 using the communication link of MFP 10 (R) -portable terminal 50 (CE). Next, the mobile terminal 50 monitors whether the communication link of MFP 10 (W) -mobile terminal 50 (CE) is established.

MFP10は、NFCI/F22を介して、実行要求と携帯端末50の認証情報を受信する。次いで、MFP10は、認証が成功したか否かを判断する。図12の例でも、MFP10のメモリ32には、携帯端末50の認証情報が記憶されている。そのため、MFP10は、認証が成功したと判断する。認証が成功したと判断される場合、続いて、MFP10は、受信された実行要求が示す特定の機能を実行可能であるか否かを判断する。機能実行可能であると判断される場合、MFP10は、Readerモードを停止し、Writerモードを起動させる。   The MFP 10 receives the execution request and the authentication information of the portable terminal 50 via the NFC I / F 22. Next, the MFP 10 determines whether the authentication is successful. Also in the example of FIG. 12, the authentication information of the portable terminal 50 is stored in the memory 32 of the MFP 10. Therefore, the MFP 10 determines that the authentication is successful. When it is determined that the authentication is successful, the MFP 10 subsequently determines whether or not the specific function indicated by the received execution request can be executed. If it is determined that the function can be executed, the MFP 10 stops the Reader mode and starts the Writer mode.

MFP10と携帯端末50との間でこれ以降に実行される通信は、第2実施例と同様であるため(図11参照)、本実施例では、詳しい説明を省略する。   Since communication performed after this between the MFP 10 and the portable terminal 50 is the same as that in the second embodiment (see FIG. 11), detailed description is omitted in this embodiment.

一方において、上記認証が失敗したと判断される場合、又は、機能実行可能でないと判断される場合、MFP10は、エラー画面を表示部14に表示させる。   On the other hand, when it is determined that the authentication has failed, or when it is determined that the function cannot be executed, the MFP 10 displays an error screen on the display unit 14.

図12の例でも、MFP10のメモリ32には、携帯端末80の認証情報が記憶されていない。そのため、MFP10は、認証が失敗したと判断する。この場合、携帯端末80とMFP10との間では、MFP10(W)−携帯端末80(CE)の通信リンクが確立しない。そのため、携帯端末80は、所定のタイムアウト期間が経過すると、エラー画面を表示部54に表示させる。次いで、携帯端末80は、起動されているMFPアプリケーションを終了させる。携帯端末80は、初期状態に戻る。   Also in the example of FIG. 12, the authentication information of the portable terminal 80 is not stored in the memory 32 of the MFP 10. Therefore, the MFP 10 determines that the authentication has failed. In this case, the communication link between MFP 10 (W) and portable terminal 80 (CE) is not established between portable terminal 80 and MFP 10. Therefore, the portable terminal 80 displays an error screen on the display unit 54 when a predetermined timeout period elapses. Next, the portable terminal 80 ends the activated MFP application. The portable terminal 80 returns to the initial state.

(対応関係)
本実施例でも、Readerモード、CEモードが、それぞれ「第1のモード」、「第2のモード」の一例である。また、MFP10(R)−携帯端末50(80)(CE)の通信リンクが「第1の通信リンク」の一例である。
(Correspondence)
Also in the present embodiment, the Reader mode and the CE mode are examples of the “first mode” and the “second mode”, respectively. The communication link between MFP 10 (R) and portable terminal 50 (80) (CE) is an example of “first communication link”.

(第4実施例)
第4実施例について、第1実施例と異なる点を中心に説明する。本実施例では、図13に示すように、認証が成功したか否かの判断を行う前に、MFP10と携帯端末50との間で、P2Pの通信リンクが確立される点で、第1実施例とは異なる。
(Fourth embodiment)
The fourth embodiment will be described focusing on differences from the first embodiment. In the present embodiment, as shown in FIG. 13, the P2P communication link is established between the MFP 10 and the portable terminal 50 before determining whether or not the authentication is successful. Different from the example.

(機能実行;図13)
図13を参照して、MFP10の機能が実行される場合において、MFP10と携帯端末50、80の間で実行される通信の例について説明する。
(Function execution; FIG. 13)
With reference to FIG. 13, an example of communication executed between MFP 10 and portable terminals 50 and 80 when the function of MFP 10 is executed will be described.

本実施例でも、MFP10と携帯端末50との間で、NFCI/F22、58を介して、MFP10(CE)−携帯端末50(W)の通信リンクが確立するまでの各処理は第1実施例と同様である(図8参照)。   Also in this embodiment, each process until the communication link of MFP 10 (CE) -portable terminal 50 (W) is established between the MFP 10 and the portable terminal 50 via the NFC I / Fs 22 and 58 is the first embodiment. (See FIG. 8).

本実施例では、携帯端末50は、MFP10(CE)−携帯端末50(W)の通信リンクを利用して、NFCI/C58を介して、実行要求のみをMFP10に送信する。次いで、携帯端末50は、Writerモードを停止し、P2Pモードを起動させる。この場
合、携帯端末50とMFP10は、MFP10(CE)−携帯端末50(W)の通信リンクを切断する。携帯端末50は、P2Pの通信リンクが確立されることを監視する。
In the present embodiment, the portable terminal 50 transmits only an execution request to the MFP 10 via the NFC I / C 58 using the communication link of MFP 10 (CE) -portable terminal 50 (W). Next, the mobile terminal 50 stops the writer mode and activates the P2P mode. In this case, the mobile terminal 50 and the MFP 10 disconnect the communication link of MFP 10 (CE) -mobile terminal 50 (W). The portable terminal 50 monitors that a P2P communication link is established.

MFP10は、NFCI/F22を介して、実行要求を受信する。次いで、MFP10は、受信された実行要求が示す特定の機能を実行可能であるか否かを判断する。   The MFP 10 receives the execution request via the NFC I / F 22. Next, the MFP 10 determines whether or not the specific function indicated by the received execution request can be executed.

機能実行可能と判断される場合、MFP10は、CEモードを停止し、P2Pモードを起動させる。次いで、MFP10は、P2Pの通信リンクが確立されることを監視する。   When it is determined that the function can be executed, the MFP 10 stops the CE mode and starts the P2P mode. Next, the MFP 10 monitors whether a P2P communication link is established.

この状態で、NFCI/F22、58が互いに通信可能な距離内に存在すると、MFP10と携帯端末50の間に、NFCI/F22、58を介して、P2Pの通信リンクが確立される。   In this state, if the NFC I / Fs 22 and 58 exist within a communicable distance, a P2P communication link is established between the MFP 10 and the portable terminal 50 via the NFC I / Fs 22 and 58.

なお、図13では示していないが、機能実行可能でないと判断される場合、MFP10は、P2Pモードを起動させない。そのため、MFP10と携帯端末50との間にP2Pの通信リンクが確立することはない。この場合、MFP10は、第1実施例において、機能実行可能でないと判断された場合と同様に、エラー画面を表示部14に表示させた後、アプリダウンロードURLをNFCI/F22に再び登録する。携帯端末50も、所定のタイムアウト期間の経過後、所定のエラー表示を行う。その後、携帯端末50は、MFPアプリケーションを終了して、初期状態に戻る。本実施例の構成によると、MFP10は、適切にP2Pの通信リンクを確立し得る。   Although not shown in FIG. 13, if it is determined that the function cannot be executed, the MFP 10 does not activate the P2P mode. Therefore, a P2P communication link is not established between the MFP 10 and the portable terminal 50. In this case, the MFP 10 displays an error screen on the display unit 14 and registers the application download URL in the NFC I / F 22 again, as in the case where it is determined that the function cannot be executed in the first embodiment. The portable terminal 50 also displays a predetermined error after a predetermined timeout period has elapsed. Thereafter, the portable terminal 50 ends the MFP application and returns to the initial state. According to the configuration of the present embodiment, the MFP 10 can appropriately establish a P2P communication link.

P2Pの通信リンクが確立されると、携帯端末50は、P2Pの通信リンクを利用して、NFCI/F58を介して、携帯端末50の認証情報をMFP10に送信する。   When the P2P communication link is established, the portable terminal 50 transmits the authentication information of the portable terminal 50 to the MFP 10 via the NFC I / F 58 using the P2P communication link.

MFP10は、NFCI/F22を介して、携帯端末50の認証情報を受信する。次いで、MFP10は、認証が成功したか否かを判断する。認証が成功したと判断される場合、MFP10は、P2Pの通信リンクを利用して、NFCI/F22を介して、認証に成功したことを示す成功情報を携帯端末50に送信する。   The MFP 10 receives the authentication information of the portable terminal 50 via the NFC I / F 22. Next, the MFP 10 determines whether the authentication is successful. When it is determined that the authentication is successful, the MFP 10 transmits success information indicating that the authentication is successful to the portable terminal 50 via the NFC I / F 22 using the P2P communication link.

携帯端末50は、成功情報を受信すると、MFP10に対して、ネットワーク情報(携帯端末50が属するネットワークの無線設定、又は、携帯端末50がネットワークに属していないことを示す情報)を送信する。次いで、MFP10は、携帯端末50に対して、MFP10自身がG/OであるWFDネットワークの無線設定、又は、変更不要情報を送信する。   When the mobile terminal 50 receives the success information, the mobile terminal 50 transmits network information (wireless setting of the network to which the mobile terminal 50 belongs or information indicating that the mobile terminal 50 does not belong to the network) to the MFP 10. Next, the MFP 10 transmits to the portable terminal 50 wireless setting of the WFD network in which the MFP 10 itself is G / O, or change unnecessary information.

この結果、MFP10と携帯端末50とが共通の無線設定を利用可能となる。MFP10と携帯端末50は、共通の無線設定を利用して、無線LANI/F20、56を利用した無線通信リンク(WFD接続又は通常Wi−Fi接続)を確立する。これ以降の各通信は、第1実施例と同様であるため、詳しい説明を省略する。この構成によると、MFP10は、認証が成功したか否かの判断が実行される前に、携帯端末50との間でP2Pの通信リンクが確立される場合に、MFP10と携帯端末50との間で無線LANI/F20を利用した通信を実行可能であるか否かを適切に判断し得る。   As a result, the MFP 10 and the portable terminal 50 can use a common wireless setting. The MFP 10 and the portable terminal 50 establish a wireless communication link (WFD connection or normal Wi-Fi connection) using the wireless LAN I / Fs 20 and 56 using a common wireless setting. Since the subsequent communications are the same as in the first embodiment, detailed description thereof is omitted. According to this configuration, when the P2P communication link is established between the MFP 10 and the portable terminal 50 before the determination as to whether or not the authentication is successful, Thus, it is possible to appropriately determine whether or not communication using the wireless LAN I / F 20 can be executed.

一方において、上記認証が失敗したと判断される場合、MFP10は、P2Pの通信リンクを利用して、NFCI/F22を介して、認証が失敗したことを示すエラー情報を通信相手(携帯端末80)に送信する。次いで、MFP10は、エラー画面を表示部14に表示させる。その後、MFP10は、CEモードを起動させるとともに、ReaderモードをOFFし、再び、NFCI/F22にアプリダウンロードURLを登録する。   On the other hand, if it is determined that the authentication has failed, the MFP 10 uses the P2P communication link to send error information indicating that the authentication has failed via the NFC I / F 22 to the communication partner (mobile terminal 80). Send to. Next, the MFP 10 displays an error screen on the display unit 14. Thereafter, the MFP 10 activates the CE mode, turns off the Reader mode, and registers the application download URL in the NFC I / F 22 again.

図13の例でも、MFP10のメモリ32には、携帯端末80の認証情報が記憶されていない。そのため、MFP10は、認証が失敗したと判断する。携帯端末80は、エラー情報を受信すると、所定のエラー画面を表示部に表示させる。次いで、携帯端末80は、起動されているMFPアプリケーションを終了させる。携帯端末80は、初期状態に戻る。   Also in the example of FIG. 13, the authentication information of the portable terminal 80 is not stored in the memory 32 of the MFP 10. Therefore, the MFP 10 determines that the authentication has failed. When receiving the error information, the portable terminal 80 displays a predetermined error screen on the display unit. Next, the portable terminal 80 ends the activated MFP application. The portable terminal 80 returns to the initial state.

(本実施例の効果)
上述したように、本実施例のMFP10は、認証が成功したか否かの判断を実行する前に、携帯端末50(80)との間でP2Pの通信リンクを確立する。MFP10は、認証が成功したと判断される場合、確立されたP2Pの通信リンクを利用して、ネットワーク情報、及び、無線設定又は変更不要情報の双方向通信を実行する。一方、MFP10は、認証が失敗したと判断される場合、確立されたP2Pの通信リンクを利用して、エラー情報を携帯端末80に送信する。従って、本実施例のMFP10は、P2Pの通信リンクを適切に確立し得る。その結果、MFP10は、P2Pの通信リンクを利用して、ネットワーク情報、及び、無線設定又は変更不要情報の双方向通信、又は、エラー情報の送信を適切に実行することができる。
(Effect of this embodiment)
As described above, the MFP 10 according to the present exemplary embodiment establishes a P2P communication link with the portable terminal 50 (80) before executing the determination as to whether or not the authentication is successful. When it is determined that the authentication has succeeded, the MFP 10 uses the established P2P communication link to perform bidirectional communication of the network information and the wireless setting or change unnecessary information. On the other hand, when it is determined that the authentication has failed, the MFP 10 transmits error information to the portable terminal 80 using the established P2P communication link. Therefore, the MFP 10 of the present embodiment can appropriately establish a P2P communication link. As a result, the MFP 10 can appropriately execute bidirectional communication of network information and wireless setting or change unnecessary information, or transmission of error information, using the P2P communication link.

(対応関係)
エラー情報が「第3の情報」の一例である。認証が成功したか否かの判断、機能実行可能か否かの判断が、それぞれ、「第1の判断処理」、「第2の判断処理」の一例である。
(Correspondence)
The error information is an example of “third information”. The determination of whether or not the authentication is successful and the determination of whether or not the function can be executed are examples of “first determination processing” and “second determination processing”, respectively.

以上、本発明の具体例を詳細に説明したが、これらは例示にすぎず、特許請求の範囲を限定するものではない。特許請求の範囲に記載の技術には以上に例示した具体例を様々に変形、変更したものが含まれる。上記の実施例の変形例を以下に列挙する。   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のS20、図9のS136)のみを実行してもよい。即ち、CPU30は、実行要求が示す特定の機能を実行可能であるか否かの判断(図2のS22、図9のS138)を省略してもよい。この変形例では、認証が成功したか否かの判断が、「第1の判断処理」の一例である。また、認証が成功したか否かの判断を実行するCPU30が、「第1の判断部」の一例である。 (Modification 1) The CPU 30 of the MFP 10 may execute only the determination (S20 in FIG. 2 or S136 in FIG. 9) of whether or not the authentication is successful. That is, the CPU 30 may omit the determination of whether or not the specific function indicated by the execution request can be executed (S22 in FIG. 2 and S138 in FIG. 9). In this modification, the determination of whether or not the authentication is successful is an example of “first determination processing”. Further, the CPU 30 that performs the determination as to whether or not the authentication has succeeded is an example of the “first determination unit”.

(変形例2)反対に、MFP10のCPU30は、特定の機能を実行可能であるか否かの判断(図2のS22、図9のS138)のみを実行してもよい。即ち、CPU30は、認証が成功したか否かの判断(図2のS20、図9のS136)を省略してもよい。この変形例では、特定の機能を実行可能であるか否かの判断が、「第1の判断処理」の一例である。また、特定の機能を実行可能であるか否かの判断を実行するCPU30が、「第1の判断部」の一例である。 (Modification 2) On the contrary, the CPU 30 of the MFP 10 may execute only the determination of whether or not a specific function can be executed (S22 in FIG. 2 and S138 in FIG. 9). That is, the CPU 30 may omit the determination of whether or not the authentication is successful (S20 in FIG. 2 and S136 in FIG. 9). In this modification, determination of whether or not a specific function can be performed is an example of “first determination processing”. The CPU 30 that determines whether or not a specific function can be executed is an example of the “first determination unit”.

(変形例3)第1〜第3実施例において、MFP10のCPU30は、認証が失敗したと判断される場合(図2のS20でNO、図9のS136でNO)、又は、機能実行可能でないと判断される場合(図2のS22でNO、図9のS138でNO)に、P2Pモードを起動させて、携帯端末(例えば携帯端末80)との間でP2Pの通信リンクを確立してもよい。その場合、MFP10は、確立されたP2Pの通信リンクを利用して、携帯端末に対して、認証が失敗したこと、又は、機能実行可能でないと判断されたことを示すエラー情報を携帯端末80に送信してもよい。即ち、一般的に言うと、通信装置は、端末装置から第1の情報が受信される場合に、通信装置と端末装置との間に第1種のインターフェースを介した第2の通信リンクを確立する確立部を備えていればよい。第2の通信リンクは、通信装置がP2Pモードで動作すると共に、端末装置が前記P2Pモードで動作して、データ通信が実行されるべき通信リンクであればよい。 (Modification 3) In the first to third embodiments, the CPU 30 of the MFP 10 determines that the authentication has failed (NO in S20 of FIG. 2, NO in S136 of FIG. 9), or the function cannot be executed. 2 (NO in S22 in FIG. 2, NO in S138 in FIG. 9), the P2P mode is activated to establish a P2P communication link with a mobile terminal (for example, mobile terminal 80). Good. In this case, the MFP 10 uses the established P2P communication link to notify the mobile terminal 80 of error information indicating that the authentication has failed for the mobile terminal or that it has been determined that the function cannot be executed. You may send it. That is, generally speaking, when the first information is received from the terminal device, the communication device establishes the second communication link via the first type interface between the communication device and the terminal device. What is necessary is just to provide the establishment part to perform. The second communication link may be a communication link in which data communication is to be executed while the communication device operates in the P2P mode and the terminal device operates in the P2P mode.

(変形例4)「通信装置」は、印刷機能及びスキャン機能を実行可能な多機能機(即ちMFP10)に限られず、印刷機能及びスキャン機能のうちの印刷機能のみを実行可能なプリンタであってもよいし、印刷機能及びスキャン機能のうちのスキャン機能のみを実行可能なスキャナであってもよい。また、「通信装置」は、印刷機能及びスキャン機能とは異なる機能(例えば、画像の表示機能、データの演算機能)を実行する装置(例えば、PC、サーバ、携帯端末(携帯電話、スマートフォン、PDA等))であってもよい。即ち、「通信装置」は、NFC方式の通信及び無線LAN通信を実行可能なあらゆるデバイスを含む。また、「端末装置」は、携帯端末50、80に限られず、NFC方式の通信及び無線LAN通信を実行可能なあらゆるデバイスを含む。 (Modification 4) 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 and wireless LAN communication. The “terminal device” is not limited to the portable terminals 50 and 80, and includes any device capable of performing NFC communication and wireless LAN communication.

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

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

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

Claims (13)

端末装置と通信可能な通信装置であって、
NFC(Near Field Communicationの略)規格に従った通信方式であるNFC方式で前記端末装置と通信を実行するための第1種のインターフェースと、
前記NFC方式とは異なる方式で前記端末装置と通信を実行するための第2種のインターフェースであって、前記第2種のインターフェースを介した通信の通信速度は、前記第1種のインターフェースを介した通信の通信速度よりも速い、前記第2種のインターフェースと、
制御部と、を備え、
前記制御部は、
前記通信装置と前記端末装置との間に前記第1種のインターフェースを介した第1の通信リンクが確立される場合に、前記第1の通信リンクを利用して、前記端末装置から第1の情報を受信する受信部であって、前記第1の通信リンクは、前記通信装置が、前記NFC規格のP2P(Peer to Peerの略)モードとは異なる第1のモードで動作すると共に、前記端末装置が、前記NFC規格の前記P2Pモード及び前記第1のモードとは異なる第2のモードで動作して、データ通信が実行されるべき通信リンクである、前記受信部と、
前記端末装置から前記第1の情報が受信される場合に、前記通信装置と前記端末装置との間で前記第2種のインターフェースを介した通信を実行可能であるのか否かに関する第1の判断処理を実行する第1の判断部と、
前記端末装置から前記第1の情報が受信される場合に、前記通信装置と前記端末装置との間に前記第1種のインターフェースを介した第2の通信リンクを確立する確立部であって、前記第2の通信リンクは、前記通信装置が前記P2Pモードで動作すると共に、前記端末装置が前記P2Pモードで動作して、データ通信が実行されるべき通信リンクである、前記確立部と、
前記第1の判断処理において、前記通信装置と前記端末装置との間で前記第2種のインターフェースを介した通信を実行可能であると判断される場合に、前記第2の通信リンクを利用して、第2の情報の双方向通信を前記端末装置と実行し、前記第1の判断処理において、前記通信装置と前記端末装置との間で前記第2種のインターフェースを介した通信を実行可能でないと判断される場合に、前記第2の情報の双方向通信を前記端末装置と実行しない通信制御部であって、前記第2の情報は、前記通信装置と前記端末装置との間で前記第2種のインターフェースを介した通信を実行するための情報である、前記通信制御部と、
を備える通信装置。
A communication device capable of communicating with a terminal device,
A first type of interface for performing communication with the terminal device in the NFC method, which is a communication method according to NFC (Near Field Communication) standard;
A second type interface for executing communication with the terminal device using a method different from the NFC method, and a communication speed of communication via the second type interface is determined via the first type interface. The second type interface faster than the communication speed of the communication,
A control unit,
The controller is
When a first communication link through the first type interface is established between the communication device and the terminal device, the terminal device uses the first communication link to A receiving unit configured to receive information, wherein the first communication link is configured such that the communication device operates in a first mode different from the P2P (abbreviation of Peer to Peer) mode of the NFC standard, and the terminal The receiver is a communication link in which data communication is to be performed by operating in a second mode different from the P2P mode and the first mode of the NFC standard; and
When the first information is received from the terminal device, a first determination as to whether or not communication via the second type interface can be performed between the communication device and the terminal device. A first determination unit that executes processing;
When the first information is received from the terminal device, the establishing unit establishes a second communication link between the communication device and the terminal device via the first type interface, The establishment unit, wherein the second communication link is a communication link in which the communication device operates in the P2P mode and the terminal device operates in the P2P mode to perform data communication;
In the first determination process, when it is determined that communication via the second type interface can be executed between the communication device and the terminal device, the second communication link is used. Then, bi-directional communication of second information can be performed with the terminal device, and communication can be performed between the communication device and the terminal device via the second type interface in the first determination process. A communication control unit that does not perform bidirectional communication of the second information with the terminal device when it is determined that the second information is not transmitted between the communication device and the terminal device. The communication control unit, which is information for executing communication via the second type interface;
A communication device comprising:
前記確立部は、前記第1の判断処理において、前記通信装置と前記端末装置との間で前記第2種のインターフェースを介した通信を実行可能であると判断される場合に、前記第2の通信リンクを確立する、請求項1に記載の通信装置。   In the first determination process, when the establishment unit determines that communication via the second type interface can be performed between the communication device and the terminal device, the second determination unit The communication device according to claim 1, wherein a communication link is established. 前記確立部は、前記第1の判断処理において、前記通信装置と前記端末装置との間で前記第2種のインターフェースを介した通信を実行可能でないと判断される場合に、前記第2の通信リンクを確立しない、請求項2に記載の通信装置。   In the first determination process, the establishing unit determines that the second communication is performed when it is determined that communication via the second type interface cannot be performed between the communication device and the terminal device. The communication device according to claim 2, wherein no link is established. 前記制御部は、さらに、
前記端末装置を識別するための特定の識別情報を登録するための指示が与えられる場合に、前記特定の識別情報をメモリに記憶させる記憶制御部を備え、
前記第1の情報は、前記特定の識別情報を含み、
前記第1の判断部は、
前記メモリに前記特定の識別情報が記憶されている状態で、前記端末装置から前記特定
の識別情報を含む前記第1の情報が受信される場合に、前記第1の判断処理において、前記通信装置と前記端末装置との間で前記第2種のインターフェースを介した通信を実行可能であると判断し、
前記メモリに前記特定の識別情報が記憶されていない状態で、前記端末装置から前記特定の識別情報を含む前記第1の情報が受信される場合に、前記第1の判断処理において、前記通信装置と前記端末装置との間で前記第2種のインターフェースを介した通信を実行可能でないと判断する、請求項1から3のいずれか一項に記載の通信装置。
The control unit further includes:
A storage control unit that stores the specific identification information in a memory when an instruction to register the specific identification information for identifying the terminal device is given;
The first information includes the specific identification information,
The first determination unit includes:
When the first information including the specific identification information is received from the terminal device in a state where the specific identification information is stored in the memory, in the first determination process, the communication device Determining that communication via the second type interface can be executed between the terminal device and the terminal device;
When the first information including the specific identification information is received from the terminal device in a state where the specific identification information is not stored in the memory, in the first determination process, the communication device 4. The communication device according to claim 1, wherein the communication device determines that communication via the second type interface is not executable between the terminal device and the terminal device. 5.
前記制御部は、さらに、
前記端末装置から前記第1の情報が受信される場合に、前記通信装置と前記端末装置との間で前記第2種のインターフェースを介した通信を実行可能であるのか否かに関する第2の判断処理を実行する第2の判断部を備え、
前記第1の情報は、特定の機能を前記通信装置に実行させるための実行要求を含み、
前記第2の判断部は、
前記通信装置の状態が、前記特定の機能を実行可能な状態である場合に、前記第2の判断処理において、前記通信装置と前記端末装置との間で前記第2種のインターフェースを介した通信を実行可能であると判断し、
前記通信装置の状態が、前記特定の機能を実行不可能な状態である場合に、前記第2の判断処理において、前記通信装置と前記端末装置との間で前記第2種のインターフェースを介した通信を実行可能でないと判断し、
前記通信制御部は、
前記第1及び第2の判断処理の双方において、前記通信装置と前記端末装置との間で前記第2種のインターフェースを介した通信を実行可能であると判断される場合に、前記第2の通信リンクを利用して、前記第2の情報の双方向通信を前記端末装置と実行し、
前記第1及び第2の判断処理のうちの少なくとも一方において、前記通信装置と前記端末装置との間で前記第2種のインターフェースを介した通信を実行可能でないと判断される場合に、前記第2の情報の双方向通信を前記端末装置と実行しない、請求項4に記載の通信装置。
The control unit further includes:
When the first information is received from the terminal device, a second determination regarding whether or not communication via the second type interface can be performed between the communication device and the terminal device. A second determination unit for executing processing;
The first information includes an execution request for causing the communication device to execute a specific function,
The second determination unit includes:
Communication via the second type interface between the communication device and the terminal device in the second determination process when the state of the communication device is a state in which the specific function can be executed. Is determined to be feasible,
When the state of the communication device is a state in which the specific function cannot be executed, in the second determination process, the communication device and the terminal device are connected via the second type interface. Determine that communication is not possible,
The communication control unit
In both the first and second determination processes, when it is determined that communication via the second type interface can be executed between the communication device and the terminal device, the second Using the communication link to perform bidirectional communication of the second information with the terminal device;
When it is determined in at least one of the first and second determination processes that communication via the second type interface cannot be executed between the communication device and the terminal device, the first The communication device according to claim 4, wherein the two-way communication of the information of 2 is not performed with the terminal device.
前記第1の情報は、特定の機能を前記通信装置に実行させるための実行要求を含み、
前記第1の判断部は、
前記通信装置の状態が、前記特定の機能を実行可能な状態である場合に、前記第1の判断処理において、前記通信装置と前記端末装置との間で前記第2種のインターフェースを介した通信を実行可能であると判断し、
前記通信装置の状態が、前記特定の機能を実行不可能な状態である場合に、前記第1の判断処理において、前記通信装置と前記端末装置との間で前記第2種のインターフェースを介した通信を実行可能でないと判断する、請求項1から3のいずれか一項に記載の通信装置。
The first information includes an execution request for causing the communication device to execute a specific function,
The first determination unit includes:
Communication via the second type interface between the communication device and the terminal device in the first determination process when the state of the communication device is a state in which the specific function can be executed. Is determined to be feasible,
When the state of the communication device is a state in which the specific function cannot be executed, in the first determination process, the communication device and the terminal device are connected via the second type interface. The communication apparatus according to claim 1, wherein the communication apparatus determines that communication is not possible.
前記確立部は、前記第1の判断処理が実行される前に、前記第2の通信リンクを確立し、
前記通信制御部は、前記第1の判断処理において、前記通信装置と前記端末装置との間で前記第2種のインターフェースを介した通信を実行可能であると判断される場合に、確立された前記第2の通信リンクを利用して、前記第2の情報の双方向通信を前記端末装置と実行し、前記第1の判断処理において、前記通信装置と前記端末装置との間で前記第2種のインターフェースを介した通信を実行可能でないと判断される場合に、確立された前記第2の通信リンクを利用して、前記第2の情報と異なる第3の情報であって、前記通信装置と前記端末装置との間で前記第2種のインターフェースを介した通信を実行可能でないことを示す前記第3の情報を前記端末装置に送信する、請求項1に記載の通信装置。
The establishment unit establishes the second communication link before the first determination process is executed,
The communication control unit is established when it is determined in the first determination process that communication via the second type interface can be performed between the communication device and the terminal device. Using the second communication link, bidirectional communication of the second information is executed with the terminal device, and the second information is transmitted between the communication device and the terminal device in the first determination process. A third information different from the second information using the established second communication link when it is determined that communication via a kind of interface cannot be executed, and the communication device The communication apparatus according to claim 1, wherein the third information indicating that communication via the second type interface is not executable between the terminal apparatus and the terminal apparatus is transmitted to the terminal apparatus.
前記制御部は、さらに、
前記端末装置を識別するための特定の識別情報を登録するための指示が与えられる場合に、前記特定の識別情報をメモリに記憶させる記憶制御部を備え、
前記第1の判断部は、
前記メモリに前記特定の識別情報が記憶されている状態で、前記第2の通信リンクを利用して、前記端末装置から前記特定の識別情報が受信される場合に、前記第1の判断処理において、前記通信装置と前記端末装置との間で前記第2種のインターフェースを介した通信を実行可能であると判断し、
前記メモリに前記特定の識別情報が記憶されていない状態で、前記第2の通信リンクを利用して、前記端末装置から前記特定の識別情報が受信される場合に、前記第1の判断処理において、前記通信装置と前記端末装置との間で前記第2種のインターフェースを介した通信を実行可能でないと判断する、請求項7に記載の通信装置。
The control unit further includes:
A storage control unit that stores the specific identification information in a memory when an instruction to register the specific identification information for identifying the terminal device is given;
The first determination unit includes:
In the first determination process, when the specific identification information is received from the terminal device using the second communication link in a state where the specific identification information is stored in the memory. , Determining that communication via the second type interface can be performed between the communication device and the terminal device;
In the first determination process, when the specific identification information is received from the terminal device using the second communication link in a state where the specific identification information is not stored in the memory. The communication device according to claim 7, wherein it is determined that communication via the second type interface is not executable between the communication device and the terminal device.
前記制御部は、さらに、
前記通信装置と前記端末装置との間で前記第2種のインターフェースを介した通信を実行可能であるのか否かに関する第2の判断処理を実行する第2の判断部を備え、
前記第1の情報は、特定の機能を前記通信装置に実行させるための実行要求を含み、
前記第2の判断部は、
前記通信装置の状態が、前記特定の機能を実行可能な状態である場合に、前記第2の判断処理において、前記通信装置と前記端末装置との間で前記第2種のインターフェースを介した通信を実行可能であると判断し、
前記通信装置の状態が、前記特定の機能を実行不可能な状態である場合に、前記第2の判断処理において、前記通信装置と前記端末装置との間で前記第2種のインターフェースを介した通信を実行可能でないと判断し、
前記確立部は、
前記第2の判断処理において、前記通信装置と前記端末装置との間で前記第2種のインターフェースを介した通信を実行可能であると判断される場合に、前記第2の通信リンクを確立し、
前記第2の判断処理において、前記通信装置と前記端末装置との間で前記第2種のインターフェースを介した通信を実行可能でないと判断される場合に、前記第2の通信リンクを確立しない、請求項8に記載の通信装置。
The control unit further includes:
A second determination unit that executes a second determination process regarding whether or not communication via the second type of interface is executable between the communication device and the terminal device;
The first information includes an execution request for causing the communication device to execute a specific function,
The second determination unit includes:
Communication via the second type interface between the communication device and the terminal device in the second determination process when the state of the communication device is a state in which the specific function can be executed. Is determined to be feasible,
When the state of the communication device is a state in which the specific function cannot be executed, in the second determination process, the communication device and the terminal device are connected via the second type interface. Determine that communication is not possible,
The establishment unit
In the second determination process, when it is determined that communication via the second type interface can be executed between the communication device and the terminal device, the second communication link is established. ,
In the second determination process, when it is determined that communication via the second type interface is not executable between the communication device and the terminal device, the second communication link is not established. The communication apparatus according to claim 8.
前記第1のモードは、前記NFC規格のCE(Card Emulationの略)モードであり、
前記第2のモードは、前記NFC規格のWriterモードである、請求項1から9のいずれか一項に記載の通信装置。
The first mode is a CE (abbreviation for Card Emulation) mode of the NFC standard,
The communication apparatus according to any one of claims 1 to 9, wherein the second mode is a writer mode of the NFC standard.
前記第1のモードは、前記NFC規格のReaderモードであり、
前記第2のモードは、前記NFC規格のCE(Card Emulationの略)モードである、請求項1から9のいずれか一項に記載の通信装置。
The first mode is a reader mode of the NFC standard,
The communication device according to any one of claims 1 to 9, wherein the second mode is a CE (abbreviation for Card Emulation) mode of the NFC standard.
端末装置と通信可能な通信装置のためのコンピュータプログラムであって、
前記通信装置は、
NFC(Near Field Communicationの略)規格に従った通信方式であるNFC方式で前記端末装置と通信を実行するための第1種のインターフェースと、
前記NFC方式とは異なる方式で前記端末装置と通信を実行するための第2種のインターフェースであって、前記第2種のインターフェースを介した通信の通信速度は、前記第1種のインターフェースを介した通信の通信速度よりも速い、前記第2種のインターフェースと、を備え、
前記コンピュータプログラムは、前記通信装置に搭載されるコンピュータに、以下の各ステップ、即ち、
前記通信装置と前記端末装置との間に前記第1種のインターフェースを介した第1の通信リンクが確立される場合に、前記第1の通信リンクを利用して、前記端末装置から第1の情報を受信する受信ステップであって、前記第1の通信リンクは、前記通信装置が、前記NFC規格のP2P(Peer to Peerの略)モードとは異なる第1のモードで動作すると共に、前記端末装置が、前記NFC規格の前記P2Pモード及び前記第1のモードとは異なる第2のモードで動作して、データ通信が実行されるべき通信リンクである、前記受信ステップと、
前記端末装置から前記第1の情報が受信される場合に、前記通信装置と前記端末装置との間で前記第2種のインターフェースを介した通信を実行可能であるのか否かに関する第1の判断処理を実行する第1の判断ステップと、
前記端末装置から前記第1の情報が受信される場合に、前記通信装置と前記端末装置との間に前記第1種のインターフェースを介した第2の通信リンクを確立する確立ステップであって、前記第2の通信リンクは、前記通信装置が前記P2Pモードで動作すると共に、前記端末装置が前記P2Pモードで動作して、データ通信が実行されるべき通信リンクである、前記確立ステップと、
前記第1の判断処理において、前記通信装置と前記端末装置との間で前記第2種のインターフェースを介した通信を実行可能であると判断される場合に、前記第2の通信リンクを利用して、第2の情報の双方向通信を前記端末装置と実行し、前記第1の判断処理において、前記通信装置と前記端末装置との間で前記第2種のインターフェースを介した通信を実行可能でないと判断される場合に、前記第2の情報の双方向通信を前記端末装置と実行しない通信制御ステップであって、前記第2の情報は、前記通信装置と前記端末装置との間で前記第2種のインターフェースを介した通信を実行するための情報である、前記通信制御ステップと、
を実行させるコンピュータプログラム。
A computer program for a communication device capable of communicating with a terminal device,
The communication device
A first type of interface for performing communication with the terminal device in the NFC method, which is a communication method according to NFC (Near Field Communication) standard;
A second type interface for executing communication with the terminal device using a method different from the NFC method, and a communication speed of communication via the second type interface is determined via the first type interface. The second type interface, which is faster than the communication speed of the communication,
The computer program stores the following steps in a computer mounted on the communication device:
When a first communication link through the first type interface is established between the communication device and the terminal device, the terminal device uses the first communication link to A receiving step of receiving information, wherein the first communication link is configured such that the communication device operates in a first mode different from the P2P (abbreviation of Peer to Peer) mode of the NFC standard, and the terminal The receiving step, wherein the device is a communication link in which data communication is to be performed by operating in a second mode different from the P2P mode and the first mode of the NFC standard;
When the first information is received from the terminal device, a first determination as to whether or not communication via the second type interface can be performed between the communication device and the terminal device. A first determination step for executing processing;
An establishment step of establishing a second communication link via the first type interface between the communication device and the terminal device when the first information is received from the terminal device; The establishing step, wherein the second communication link is a communication link in which the communication device operates in the P2P mode and the terminal device operates in the P2P mode to perform data communication;
In the first determination process, when it is determined that communication via the second type interface can be executed between the communication device and the terminal device, the second communication link is used. Then, bi-directional communication of second information can be performed with the terminal device, and communication can be performed between the communication device and the terminal device via the second type interface in the first determination process. A communication control step of not performing bidirectional communication of the second information with the terminal device when it is determined that the second information is not transmitted between the communication device and the terminal device. The communication control step, which is information for executing communication via the second type interface;
A computer program that executes
通信装置と通信可能な端末装置のためのコンピュータプログラムであって、
前記端末装置は、
NFC(Near Field Communicationの略)規格に従った通信方式であるNFC方式で前記通信装置と通信を実行するための第1種のインターフェースと、
前記NFC方式の通信とは異なる方式で前記通信装置と通信を実行するための第2種のインターフェースであって、第2種のインターフェースを介した通信の通信速度は、前記第1種のインターフェースを介した通信の通信速度よりも速い、前記第2種のインターフェースと、を備え、
前記コンピュータプログラムは、前記端末装置に搭載されるコンピュータに、以下の各ステップ、即ち、
前記端末装置と前記通信装置との間に前記第1種のインターフェースを介した第1の通信リンクが確立される場合に、前記第1の通信リンクを利用して、前記通信装置に第1の情報を送信する送信ステップであって、前記第1の通信リンクは、前記通信装置が、前記NFC規格のP2P(Peer to Peerの略)モードとは異なる第1のモードで動作すると共に、前記端末装置が、前記NFC規格の前記P2Pモード及び前記第1のモードとは異なる第2のモードで動作して、データ通信が実行されるべき通信リンクである、前記送信ステップと、
前記第1の情報が前記通信装置に送信される場合に、前記端末装置と前記通信装置との間に前記第1種のインターフェースを介した第2の通信リンクを確立する確立ステップであって、前記第2の通信リンクは、前記通信装置が前記P2Pモードで動作すると共に、前記端末装置が前記P2Pモードで動作して、データ通信が実行されるべき通信リンクである、前記確立ステップと、
前記第1の情報が前記通信装置に送信された結果として、前記通信装置が、前記端末装置と前記通信装置との間で前記第2種のインターフェースを介した通信を実行可能であると判断する場合に、前記第2の通信リンクを利用して、第2の情報の双方向通信を前記通
信装置と実行し、前記第1の情報が前記通信装置に送信された結果として、前記通信装置が、前記端末装置と前記通信装置との間で前記第2種のインターフェースを介した通信を実行可能でないと判断する場合に、前記第2の情報の双方向通信を前記端末装置と実行しない通信制御ステップであって、前記第2の情報は、前記通信装置と前記端末装置との間で前記第2種のインターフェースを介した通信を実行するための情報である、前記通信制御ステップと、
を実行させるコンピュータプログラム。
A computer program for a terminal device capable of communicating with a communication device,
The terminal device
A first type interface for performing communication with the communication device in the NFC method, which is a communication method in accordance with NFC (Near Field Communication) standard;
A second type interface for performing communication with the communication device in a method different from the NFC method communication, and the communication speed of communication via the second type interface is the same as that of the first type interface. The second type interface faster than the communication speed of communication via
The computer program stores the following steps in a computer mounted on the terminal device, that is,
When a first communication link via the first type interface is established between the terminal device and the communication device, the first communication link is used to connect the first communication link to the communication device. A transmission step of transmitting information, wherein the first communication link is configured such that the communication apparatus operates in a first mode different from the P2P (abbreviation of Peer to Peer) mode of the NFC standard, and the terminal The transmitting step, wherein the device is a communication link in which data communication is to be performed by operating in a second mode different from the P2P mode and the first mode of the NFC standard;
An establishment step of establishing a second communication link via the first type interface between the terminal device and the communication device when the first information is transmitted to the communication device; The establishing step, wherein the second communication link is a communication link in which the communication device operates in the P2P mode and the terminal device operates in the P2P mode to perform data communication;
As a result of the transmission of the first information to the communication device, the communication device determines that communication between the terminal device and the communication device can be performed via the second type interface. If the communication device performs two-way communication of second information with the communication device using the second communication link, and the first information is transmitted to the communication device, the communication device Communication control that does not execute bi-directional communication of the second information with the terminal device when it is determined that communication via the second type interface is not executable between the terminal device and the communication device The communication control step, wherein the second information is information for executing communication between the communication device and the terminal device via the second type interface;
A computer program that executes
JP2017075027A 2017-04-05 2017-04-05 Communication device Active JP6337984B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017075027A JP6337984B2 (en) 2017-04-05 2017-04-05 Communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017075027A JP6337984B2 (en) 2017-04-05 2017-04-05 Communication device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2013068624A Division JP6123416B2 (en) 2013-03-28 2013-03-28 Communication device

Publications (2)

Publication Number Publication Date
JP2017147741A true JP2017147741A (en) 2017-08-24
JP6337984B2 JP6337984B2 (en) 2018-06-06

Family

ID=59682353

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017075027A Active JP6337984B2 (en) 2017-04-05 2017-04-05 Communication device

Country Status (1)

Country Link
JP (1) JP6337984B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004364145A (en) * 2003-06-06 2004-12-24 Sony Corp System, equipment and method for communication, and program
JP2007166538A (en) * 2005-12-16 2007-06-28 Canon Inc Communication equipment, its control method, and communication system
JP2010093430A (en) * 2008-10-06 2010-04-22 Ricoh Co Ltd Radio communication device and image information processor

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004364145A (en) * 2003-06-06 2004-12-24 Sony Corp System, equipment and method for communication, and program
JP2007166538A (en) * 2005-12-16 2007-06-28 Canon Inc Communication equipment, its control method, and communication system
JP2010093430A (en) * 2008-10-06 2010-04-22 Ricoh Co Ltd Radio communication device and image information processor

Also Published As

Publication number Publication date
JP6337984B2 (en) 2018-06-06

Similar Documents

Publication Publication Date Title
JP6123416B2 (en) Communication device
US10582362B2 (en) Communication device and non-transitory computer-readable recording medium
US20210111757A1 (en) Communication Device
JP5900228B2 (en) Communication device
JP5958161B2 (en) Communication device
JP2015070518A (en) Communication device
JP5900226B2 (en) Communication device
JP5867319B2 (en) Communication device
CN107404593B (en) Terminal device
JP6337984B2 (en) Communication device
US20200344668A1 (en) Non-transitory computer-readable recording medium storing computer-readable instructions for communication device, communication device, and method executed by communication device
JP6168201B2 (en) Communication device
JP6508291B2 (en) Communication device
JP6237860B2 (en) Communication device
JP6032341B2 (en) Communication device
JP6406364B2 (en) Communication device
JP6070880B2 (en) Communication device
JP7334810B2 (en) Communication device
JP6414283B2 (en) Communication device
JP6264436B2 (en) Communication device
JP6052438B2 (en) Communication device

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20171219

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180216

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180423

R150 Certificate of patent or registration of utility model

Ref document number: 6337984

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150