JP6919738B2 - Communication device - Google Patents

Communication device Download PDF

Info

Publication number
JP6919738B2
JP6919738B2 JP2020037008A JP2020037008A JP6919738B2 JP 6919738 B2 JP6919738 B2 JP 6919738B2 JP 2020037008 A JP2020037008 A JP 2020037008A JP 2020037008 A JP2020037008 A JP 2020037008A JP 6919738 B2 JP6919738 B2 JP 6919738B2
Authority
JP
Japan
Prior art keywords
communication
mfp
nfc
mobile terminal
mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2020037008A
Other languages
Japanese (ja)
Other versions
JP2020099098A (en
Inventor
隆延 鈴木
隆延 鈴木
弘崇 朝倉
弘崇 朝倉
宗久 松田
宗久 松田
田中 聡
聡 田中
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from JP2018221816A external-priority patent/JP6673448B2/en
Application filed by Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2020037008A priority Critical patent/JP6919738B2/en
Publication of JP2020099098A publication Critical patent/JP2020099098A/en
Application granted granted Critical
Publication of JP6919738B2 publication Critical patent/JP6919738B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Description

本明細書によって開示される技術は、NFC(Near Field Communicationの略)規格に従った通信方式であるNFC方式で、通信対象の対象データの通信を外部装置と実行する通信装置に関する。 The technology disclosed in the present specification relates to an NFC method, which is a communication method according to an NFC (Near Field Communication) standard, and relates to a communication device that executes communication of target data to be communicated with an external device.

特許文献1には、2個の通信装置が無線通信を実行するための技術が開示されている。この技術では、2個の通信装置は、NFC方式で通信情報の無線通信を実行する。通信情報は、NFC方式とは異なる通信方式(例えばIEEE802.11a)に従った無線通信を実行するための情報(即ち、通信方式を示す情報、暗号化方式を示す情報)を含む。これにより、2個の通信装置は、NFC方式とは異なる通信方式に従って、無線通信を実行可能になる。 Patent Document 1 discloses a technique for two communication devices to execute wireless communication. In this technique, the two communication devices execute wireless communication of communication information by the NFC method. The communication information includes information for executing wireless communication according to a communication method different from the NFC method (for example, IEEE802.11a) (that is, information indicating the communication method, information indicating the encryption method). As a result, the two communication devices can execute wireless communication according to a communication method different from the NFC method.

特開2007−166538号公報JP-A-2007-166538

本明細書では、通信装置が、NFC方式で通信対象の対象データを外部装置と適切に通信するための技術を提供する。 The present specification provides a technique for a communication device to appropriately communicate target data to be communicated with an external device by an NFC method.

本明細書によって開示される一つの技術は、通信装置のためのコンピュータプログラムである。コンピュータプログラムは、前記通信装置のコンピュータを、以下の各部、即ち、前記通信装置の第1の通信インターフェイスを介して、前記通信装置と外部装置との間に第1の通信方式に従った第1の通信リンクを確立する第1の確立部と、前記第1の通信リンクが確立された後に、前記第1の通信インターフェイスを介して、前記第1の通信リンクを利用して、前記外部装置から通信設定情報をReadするRead部であって、前記第1の通信方式の通信速度は、前記第2の通信方式の通信速度よりも遅く、前記通信設定情報は、前記第1の通信方式とは異なる第2の通信方式に従った通信であって、前記通信装置が前記第1の通信インターフェイスとは異なる第2の通信インターフェイスを介した前記通信を実行するための情報である、前記Read部と、前記外部装置から前記通信設定情報をReadした後に、前記第1の通信インターフェイスを介して、前記通信設定情報をReadしたことを示す応答を前記外部装置にWriteするWrite部と、として機能させてもよい。
また、本明細書によって開示されるの技術は、NFC規格に従った通信方式であるNFC方式で、通信対象の対象データの通信を外部装置と実行する通信装置である。通信装置は、NFC方式の通信を実行するためのNFCインターフェイスと、プロセッサと、プログラムを記憶しているメモリと、を備える。
前記プロセッサは、前記プログラムに従って、以下の各ステップ、即ち、
前記通信装置と前記外部装置との間に第1の通信リンクを確立するための第1の確立コマンドを、前記NFCインターフェイスを介して、前記外部装置と通信して、前記第1の通信リンクを確立する第1の確立ステップと、
前記第1の通信リンクを利用して、第1の対象データを、前記NFCインターフェイスを介して、前記外部装置と通信する第1の通信ステップと、
前記第1の対象データを前記外部装置と通信した後に、前記第1の通信リンクを切断する切断ステップと、
前記第1の通信リンクを切断した後に、前記通信装置と前記外部装置との間に第2の通信リンクを確立するための第2の確立コマンドを、前記NFCインターフェイスを介して、前記外部装置と通信して、前記第2の通信リンクを確立する第2の確立ステップと、
前記第2の通信リンクを利用して、第2の対象データを、前記NFCインターフェイスを介して、前記外部装置と通信する第2の通信ステップであって、前記第2の対象データは、前記第1の対象データを処理することによって生成されるデータである、前記第2の通信ステップと、
を実行する。
One technique disclosed herein is a computer program for communication equipment. The computer program sets the computer of the communication device to the following parts, that is, the first communication method according to the first communication method between the communication device and the external device via the first communication interface of the communication device. After the first establishment unit for establishing the communication link and the first communication link are established, the first communication link is used from the external device via the first communication interface. A Read unit that reads communication setting information, the communication speed of the first communication method is slower than the communication speed of the second communication method, and the communication setting information is different from that of the first communication method. With the Read unit, which is communication according to a different second communication method and is information for the communication device to execute the communication via a second communication interface different from the first communication interface. After reading the communication setting information from the external device, the external device is made to function as a Write unit that writes a response indicating that the communication setting information has been read to the external device via the first communication interface. May be good.
Further, another technique disclosed by the present specification is an NFC method, which is a communication method according to an NFC standard, and is a communication device that executes communication of target data to be communicated with an external device. The communication device includes an NFC interface for executing NFC-type communication, a processor, and a memory for storing a program.
The processor follows each of the following steps, i.e., according to the program.
A first establishment command for establishing a first communication link between the communication device and the external device is communicated with the external device via the NFC interface to obtain the first communication link. The first establishment step to establish and
A first communication step of communicating the first target data with the external device via the NFC interface by using the first communication link.
A disconnection step of disconnecting the first communication link after communicating the first target data with the external device, and
After disconnecting the first communication link, a second establishment command for establishing a second communication link between the communication device and the external device is issued to the external device via the NFC interface. A second establishment step of communicating and establishing the second communication link,
It is a second communication step of communicating the second target data with the external device via the NFC interface by using the second communication link, and the second target data is the second target data. The second communication step, which is the data generated by processing the target data of 1.
To execute.

上記の構成によると、通信装置は、第1の通信リンクを利用して、第1の対象データを外部装置と通信した後に、同じ第1の通信リンクを利用して、第2の対象データを通信するのではなく、第1の通信リンクを一旦切断する。その後、通信装置は、第2の通信リンクを新たに確立して、第2の通信リンクを利用して、第2の対象データを外部装置と通信する。このために、通信装置は、第1の対象データと、第1の対象データを処理することによって生成される第2の対象データと、の両方を、外部装置と適切に通信することができる。 According to the above configuration, the communication device uses the first communication link to communicate the first target data with the external device, and then uses the same first communication link to perform the second target data. Instead of communicating, the first communication link is temporarily disconnected. After that, the communication device newly establishes a second communication link and uses the second communication link to communicate the second target data with the external device. Therefore, the communication device can appropriately communicate both the first target data and the second target data generated by processing the first target data with the external device.

前記NFCインターフェイスが、ポーリング信号を前記外部装置から受信して、前記ポーリング信号に対するレスポンス信号を前記外部装置に送信するListen動作を実行する場合に、前記第1の確立ステップは、前記第1の確立コマンドを受信するステップを含んでいてもよい。前記NFCインターフェイスが、ポーリング信号を前記外部装置に送信して、前記ポーリング信号に対するレスポンス信号を前記外部装置から受信するPoll動作を実行する場合に、前記第1の確立ステップは、前記第1の確立コマンドを送信するステップを含んでいてもよい。この構成によると、通信装置は、NFCインターフェイスが、Listen動作を実行するのか、Poll動作を実行するのか、に応じて、第1の確立コマンドを外部装置と適切に通信することができる。 When the NFC interface executes a Listen operation of receiving a polling signal from the external device and transmitting a response signal to the polling signal to the external device, the first establishment step is the first establishment. It may include a step of receiving a command. When the NFC interface executes a Poll operation of transmitting a polling signal to the external device and receiving a response signal for the polling signal from the external device, the first establishment step is the first establishment. It may include a step of sending a command. According to this configuration, the communication device can appropriately communicate the first establishment command with the external device depending on whether the NFC interface executes the Listen operation or the Poll operation.

前記第1の確立ステップにおいて、前記第1の確立コマンドを前記外部装置から受信する第1の場合に、前記切断ステップは、第1の切断手法を用いて、前記第1の通信リンクを切断するステップを含んでいてもよい。前記第1の確立ステップにおいて、前記第1の確立コマンドを前記外部装置に送信する第2の場合に、前記切断ステップは、前記第1の切断手法とは異なる第2の切断手法を用いて、前記第1の通信リンクを切断するステップを含んでいてもよい。この構成によると、通信装置は、第1の確立コマンドを外部装置から受信する第1の場合と、第1の確立コマンドを外部装置に送信する第2の場合と、のそれぞれのケースに応じて、異なる切断手法を用いる。このために、通信装置は、適切な切断手法を用いて、第1の通信リンクを適切に切断することができる。 In the first establishment step, when the first establishment command is received from the external device, the disconnection step disconnects the first communication link by using the first disconnection method. It may include steps. In the second case of transmitting the first establishment command to the external device in the first establishment step, the cutting step uses a second cutting method different from the first cutting method. The step of disconnecting the first communication link may be included. According to this configuration, the communication device responds to each of the first case of receiving the first establishment command from the external device and the second case of transmitting the first establishment command to the external device. , Use different cutting methods. For this purpose, the communication device can appropriately disconnect the first communication link by using an appropriate disconnection method.

前記第1の通信リンクは、前記通信装置及び前記外部装置のそれぞれが、NFC規格のP2Pモードに従って通信するための通信リンクであってもよい。この構成によると、通信装置は、NFC規格のP2Pモードに従って、第1の対象データを外部装置と適切に通信することができる。 The first communication link may be a communication link for each of the communication device and the external device to communicate in accordance with the P2P mode of the NFC standard. According to this configuration, the communication device can appropriately communicate the first target data with the external device according to the P2P mode of the NFC standard.

前記プロセッサは、前記プログラムに従って、さらに、前記第1の確立ステップにおいて、前記第1の確立コマンドを前記外部装置から受信する第1の場合に、前記第1の通信リンクが確立されている間に、前記外部装置から、前記NFCインターフェイスを介して、前記第1の通信リンクを維持するのか否かを確認するための確認コマンドを受信して、前記確認コマンドに対するレスポンスコマンドを、前記NFCインターフェイスを介して、前記外部装置に送信する第1の確認ステップを実行してもよい。前記第1の場合に、前記切断ステップは、前記第1の確認ステップの実行を停止し、その後、前記外部装置から、前記NFCインターフェイスを介して、前記第1の通信リンクを切断するための切断コマンドを受信して、前記切断コマンドに対するレスポンスコマンドを、前記NFCインターフェイスを介して、前記外部装置に送信するステップを含んでいてもよい。この構成によると、通信装置は、第1の確立コマンドを外部装置から受信する第1の場合に、第1の通信リンクを適切に切断することができる。 According to the program, in the first establishment step, the processor receives the first establishment command from the external device, while the first communication link is established. A confirmation command for confirming whether or not to maintain the first communication link is received from the external device via the NFC interface, and a response command to the confirmation command is sent via the NFC interface. Then, the first confirmation step of transmitting to the external device may be executed. In the first case, the disconnect step stops execution of the first confirmation step, and then disconnects from the external device via the NFC interface to disconnect the first communication link. It may include a step of receiving a command and transmitting a response command to the disconnect command to the external device via the NFC interface. According to this configuration, the communication device can appropriately disconnect the first communication link in the first case of receiving the first establishment command from the external device.

前記第1の確立ステップにおいて、前記第1の確立コマンドを前記外部装置から受信する第1の場合に、前記切断ステップは、前記NFCインターフェイスの動作を一時的に停止させるステップを含んでいてもよい。この構成によると、通信装置は、第1の確立コマンドを外部装置から受信する第1の場合に、第1の通信リンクを適切に切断することができる。 In the first establishment step, when the first establishment command is received from the external device, the disconnection step may include a step of temporarily stopping the operation of the NFC interface. .. According to this configuration, the communication device can appropriately disconnect the first communication link in the first case of receiving the first establishment command from the external device.

前記第1の確立ステップにおいて、前記第1の確立コマンドを前記外部装置に送信する第2の場合に、前記切断ステップは、前記第1の通信リンクを切断するための切断コマンドを、前記NFCインターフェイスを介して、前記外部装置に送信して、前記外部装置から、前記NFCインターフェイスを介して、前記切断コマンドに対するレスポンスコマンドを受信するステップを含んでいてもよい。この構成によると、通信装置は、第1の確立コマンドを外部装置に送信する第2の場合に、第1の通信リンクを適切に切断することができる。 In the second case of transmitting the first establishment command to the external device in the first establishment step, the disconnection step sends a disconnect command for disconnecting the first communication link to the NFC interface. It may include a step of transmitting to the external device via the above and receiving a response command for the disconnect command from the external device via the NFC interface. According to this configuration, the communication device can appropriately disconnect the first communication link in the second case of transmitting the first establishment command to the external device.

前記プロセッサは、前記プログラムに従って、さらに、前記第1の確立ステップにおいて、前記第1の確立コマンドを前記外部装置に送信する第2の場合に、前記第1の通信リンクが確立されている間に、前記第1の通信リンクを維持するのか否かを確認するための確認コマンドを、前記NFCインターフェイスを介して、前記外部装置に送信して、前記外部装置から、前記NFCインターフェイスを介して、前記確認コマンドに対するレスポンスコマンドを受信する第2の確認ステップを実行してもよい。前記第2の場合に、前記切断ステップは、前記第2の確認ステップの実行を停止するステップを含んでいてもよい。この構成によると、通信装置は、第1の確立コマンドを外部装置に送信する第2の場合に、第1の通信リンクを適切に切断することができる。 According to the program, the processor further transmits the first establishment command to the external device in the first establishment step while the first communication link is established. , A confirmation command for confirming whether or not to maintain the first communication link is transmitted to the external device via the NFC interface, and the external device sends a confirmation command to the external device via the NFC interface. A second confirmation step may be performed to receive a response command to the confirmation command. In the second case, the cutting step may include a step of stopping the execution of the second confirmation step. According to this configuration, the communication device can appropriately disconnect the first communication link in the second case of transmitting the first establishment command to the external device.

前記第1の通信リンクは、前記通信装置及び前記外部装置の一方が、NFC規格のReader/Writerモードに従って通信すると共に、前記通信装置及び前記外部装置の他方が、NFC規格のCard Emulationモードに従って通信するための通信リンクであってもよい。この構成によると、通信装置は、NFC規格のReader/Writerモード、又は、Card Emulationモードに従って、第1の対象データを外部装置と適切に通信することができる。 In the first communication link, one of the communication device and the external device communicates according to the Reader / Writer mode of the NFC standard, and the other of the communication device and the external device communicates according to the Card Emulsion mode of the NFC standard. It may be a communication link for the purpose. According to this configuration, the communication device can appropriately communicate the first target data with the external device according to the Reader / Writer mode of the NFC standard or the Card Emulation mode.

前記第1の確立ステップにおいて、前記第1の確立コマンドを前記外部装置から受信する第1の場合に、前記切断ステップは、前記外部装置から、前記NFCインターフェイスを介して、前記第1の通信リンクを切断するための切断コマンドを受信して、前記切断コマンドに対するレスポンスコマンドを、前記NFCインターフェイスを介して、前記外部装置に送信するステップを含んでいてもよい。この構成によると、通信装置は、第1の確立コマンドを外部装置から受信する第1の場合に、第1の通信リンクを適切に切断することができる。 In the first establishment step, when the first establishment command is received from the external device, the disconnection step is performed from the external device via the NFC interface. It may include a step of receiving a disconnect command for disconnecting and transmitting a response command to the disconnect command to the external device via the NFC interface. According to this configuration, the communication device can appropriately disconnect the first communication link in the first case of receiving the first establishment command from the external device.

前記第1の確立ステップにおいて、前記第1の確立コマンドを前記外部装置に送信する第2の場合に、前記切断ステップは、前記第1の通信リンクを切断するための切断コマンドを、前記NFCインターフェイスを介して、前記外部装置に送信して、前記外部装置から、前記NFCインターフェイスを介して、前記切断コマンドに対するレスポンスコマンドを受信するステップを含んでいてもよい。この構成によると、通信装置は、第1の確立コマンドを外部装置に送信する第2の場合に、第1の通信リンクを適切に切断することができる。 In the second case of transmitting the first establishment command to the external device in the first establishment step, the disconnection step sends a disconnect command for disconnecting the first communication link to the NFC interface. It may include a step of transmitting to the external device via the above and receiving a response command for the disconnect command from the external device via the NFC interface. According to this configuration, the communication device can appropriately disconnect the first communication link in the second case of transmitting the first establishment command to the external device.

前記NFCインターフェイスは、ポーリング信号を前記外部装置から受信して、前記ポーリング信号に対するレスポンス信号を前記外部装置に送信するListen動作を実行してもよい。前記プロセッサは、前記プログラムに従って、さらに、前記切断ステップを実行した後に、所定期間に亘って、前記NFCインターフェイスが前記Listen動作を実行しないように、前記NFCインターフェイスの動作を制御する動作制御ステップを実行してもよい。この構成によると、通信装置は、所定期間に亘って、NFCインターフェイスにListen動作を実行させない。このために、通信装置は、第1の対象データを通信した後に、外部装置を適切に動作させ得る。 The NFC interface may perform a Listen operation of receiving a polling signal from the external device and transmitting a response signal to the polling signal to the external device. According to the program, after executing the disconnection step, the processor executes an operation control step for controlling the operation of the NFC interface so that the NFC interface does not execute the Listen operation for a predetermined period of time. You may. According to this configuration, the communication device does not allow the NFC interface to perform a Listen operation for a predetermined period of time. Therefore, the communication device can properly operate the external device after communicating the first target data.

前記NFCインターフェイスは、ポーリング信号を前記外部装置に送信して、前記外部装置から前記ポーリング信号に対するレスポンス信号を受信するPoll動作を実行してもよい。前記プロセッサは、前記プログラムに従って、さらに、前記切断ステップを実行した後に、所定期間に亘って、前記NFCインターフェイスが前記Poll動作を実行しないように、前記NFCインターフェイスの動作を制御する動作制御ステップを実行してもよい。この構成によると、通信装置は、所定期間に亘って、NFCインターフェイスにPoll動作を実行させない。このために、通信装置は、第1の対象データを通信した後に、外部装置を適切に動作させ得る。 The NFC interface may perform a Poll operation of transmitting a polling signal to the external device and receiving a response signal to the polling signal from the external device. According to the program, after executing the disconnection step, the processor executes an operation control step for controlling the operation of the NFC interface so that the NFC interface does not execute the Poll operation for a predetermined period of time. You may. According to this configuration, the communication device does not allow the NFC interface to perform the Poll operation for a predetermined period of time. Therefore, the communication device can properly operate the external device after communicating the first target data.

前記通信装置が、前記第1の対象データを前記外部装置から受信すべき場合に、(A)前記第1の確立ステップは、前記通信装置が、NFC規格のCard Emulationモードに従って通信すると共に、前記外部装置が、NFC規格のWriterモードに従って通信するための前記第1の通信リンクを確立するステップを含んでいてもよく、(B)前記第1の通信ステップは、前記第1の通信リンクを利用して、前記外部装置から前記第1の対象データを受信するステップを含んでいてもよく、(C)前記第2の確立ステップは、前記通信装置が、NFC規格のWriterモードに従って通信すると共に、前記外部装置が、NFC規格のCard Emulationモードに従って通信するための前記第2の通信リンクを確立するステップを含んでいてもよく、(D)前記第2の通信ステップは、前記第2の通信リンクを利用して、前記第2の対象データを前記外部装置に送信するステップを含んでいてもよい。この構成によると、通信装置は、第1の対象データを外部装置から適切に受信して、第2の対象データを外部装置に適切に送信することができる。 When the communication device should receive the first target data from the external device, (A) in the first establishment step, the communication device communicates according to the Card Emulation mode of the NFC standard, and the communication device communicates with the external device. The external device may include a step of establishing the first communication link for communicating according to the Writer mode of the NFC standard, and (B) the first communication step utilizes the first communication link. Then, the step of receiving the first target data from the external device may be included. (C) In the second establishment step, the communication device communicates according to the Writer mode of the NFC standard, and the communication device is used. The external device may include a step of establishing the second communication link for the external device to communicate according to the NFC standard Card Emulation mode. (D) The second communication step is the second communication link. May include a step of transmitting the second target data to the external device by utilizing the above. According to this configuration, the communication device can appropriately receive the first target data from the external device and appropriately transmit the second target data to the external device.

前記通信装置が、前記第1の対象データを前記外部装置に送信すべき場合に、(A)前記第1の確立ステップは、前記通信装置が、NFC規格のCard Emulationモードに従って通信すると共に、前記外部装置が、NFC規格のReaderモードに従って通信するための前記第1の通信リンクを確立するステップを含んでいてもよく、(B)前記第1の通信ステップは、前記第1の通信リンクを利用して、前記第1の対象データを前記外部装置に送信するステップを含んでいてもよく、(C)前記第2の確立ステップは、前記通信装置が、NFC規格のReaderモードに従って通信すると共に、前記外部装置が、NFC規格のCard Emulationモードに従って通信するための前記第2の通信リンクを確立するステップを含んでいてもよく、(D)前記第2の通信ステップは、前記第2の通信リンクを利用して、前記第2の対象データを前記外部装置から受信するステップを含んでいてもよい。この構成によると、通信装置は、第1の対象データを外部装置に適切に送信して、第2の対象データを外部装置から適切に受信することができる。 When the communication device should transmit the first target data to the external device, (A) in the first establishment step, the communication device communicates according to the Card Emulation mode of the NFC standard, and the communication device communicates with the external device. The external device may include a step of establishing the first communication link for communicating according to the Reader mode of the NFC standard, and (B) the first communication step utilizes the first communication link. Then, the step of transmitting the first target data to the external device may be included. (C) In the second establishment step, the communication device communicates according to the Reader mode of the NFC standard, and the communication device communicates with the external device. The external device may include a step of establishing the second communication link for the external device to communicate according to the NFC standard Card Emulation mode. (D) The second communication step is the second communication link. May include a step of receiving the second target data from the external device by utilizing the above. According to this configuration, the communication device can appropriately transmit the first target data to the external device and appropriately receive the second target data from the external device.

前記通信装置が、前記第1の対象データを前記外部装置から受信すべき場合に、(A)前記第1の確立ステップは、前記通信装置が、NFC規格のReaderモードに従って通信すると共に、前記外部装置が、NFC規格のCard Emulationモードに従って通信するための前記第1の通信リンクを確立するステップを含んでいてもよく、(B)前記第1の通信ステップは、前記第1の通信リンクを利用して、前記外部装置から前記第1の対象データを受信するステップを含んでいてもよく、(C)前記第2の確立ステップは、前記通信装置が、NFC規格のWriterモードに従って通信すると共に、前記外部装置が、NFC規格のCard Emulationモードに従って通信するための前記第2の通信リンクを確立するステップを含んでいてもよく、(D)前記第2の通信ステップは、前記第2の通信リンクを利用して、前記第2の対象データを前記外部装置に送信するステップを含んでいてもよい。この構成によると、通信装置は、第1の対象データを外部装置から適切に受信して、第2の対象データを外部装置に適切に送信することができる。 When the communication device should receive the first target data from the external device, (A) in the first establishment step, the communication device communicates according to the Reader mode of the NFC standard, and the external device is used. The device may include the step of establishing the first communication link for communicating according to the NFC standard Card Emulation mode, and (B) the first communication step utilizes the first communication link. Then, the step of receiving the first target data from the external device may be included. (C) In the second establishment step, the communication device communicates according to the Writer mode of the NFC standard, and the communication device is used. The external device may include a step of establishing the second communication link for the external device to communicate according to the NFC standard Card Emulation mode. (D) The second communication step is the second communication link. May include a step of transmitting the second target data to the external device by utilizing the above. According to this configuration, the communication device can appropriately receive the first target data from the external device and appropriately transmit the second target data to the external device.

前記通信装置が、前記第1の対象データを前記外部装置から受信すべき場合に、(A)前記第1の確立ステップは、前記通信装置が、NFC規格のReaderモードに従って動作すると共に、前記外部装置が、NFC規格のCard Emulationモードに従って動作するための前記第1の通信リンクを確立するステップを含んでいてもよく、(B)前記第1の通信ステップは、前記第1の通信リンクを利用して、前記外部装置から前記第1の対象データを受信するステップを含んでいてもよく、(C)前記第2の確立ステップは、前記通信装置が、NFC規格のCard Emulationモードに従って動作すると共に、前記外部装置が、NFC規格のReaderモードに従って動作するための前記第2の通信リンクを確立するステップを含んでいてもよく、(D)前記第2の通信ステップは、前記第2の通信リンクを利用して、前記第1の対象データを前記外部装置に送信するステップを含んでいてもよい。この構成によると、通信装置は、第1の対象データを外部装置から適切に受信して、第2の対象データを外部装置に適切に送信することができる。 When the communication device should receive the first target data from the external device, (A) the first establishment step is that the communication device operates according to the Reader mode of the NFC standard and the external device. The device may include the step of establishing the first communication link for operating according to the NFC standard Card Emulation mode, and (B) the first communication step utilizes the first communication link. Then, the step of receiving the first target data from the external device may be included. (C) In the second establishment step, the communication device operates according to the Card Emulation mode of the NFC standard. The external device may include a step of establishing the second communication link for operating according to the Reader mode of the NFC standard. (D) The second communication step is the second communication link. May include a step of transmitting the first target data to the external device by utilizing the above. According to this configuration, the communication device can appropriately receive the first target data from the external device and appropriately transmit the second target data to the external device.

前記通信装置が、前記第1の対象データを前記外部装置に送信すべき場合に、(A)前記第1の確立ステップは、前記通信装置が、NFC規格のWriterモードに従って通信すると共に、前記外部装置が、NFC規格のCard Emulationモードに従って通信するための前記第1の通信リンクを確立するステップを含んでいてもよく、(B)前記第1の通信ステップは、前記第1の通信リンクを利用して、前記第1の対象データを前記外部装置に送信するステップを含んでいてもよく、(C)前記第2の確立ステップは、前記通信装置が、NFC規格のReaderモードに従って通信すると共に、前記外部装置が、NFC規格のCard Emulationモードに従って通信するための前記第2の通信リンクを確立するステップを含んでいてもよく、(D)前記第2の通信ステップは、前記第2の通信リンクを利用して、前記第2の対象データを前記外部装置から受信するステップを含んでいてもよい。この構成によると、通信装置は、第1の対象データを外部装置に適切に送信して、第2の対象データを外部装置から適切に受信することができる。 When the communication device should transmit the first target data to the external device, (A) in the first establishment step, the communication device communicates according to the Writer mode of the NFC standard, and the external device is used. The device may include the step of establishing the first communication link for communicating according to the NFC standard Card Emulation mode, and (B) the first communication step utilizes the first communication link. Then, the step of transmitting the first target data to the external device may be included. (C) In the second establishment step, the communication device communicates according to the Reader mode of the NFC standard, and the communication device communicates with the external device. The external device may include a step of establishing the second communication link for the external device to communicate according to the NFC standard Card Emulation mode. (D) The second communication step is the second communication link. May include a step of receiving the second target data from the external device by utilizing the above. According to this configuration, the communication device can appropriately transmit the first target data to the external device and appropriately receive the second target data from the external device.

前記通信装置が、前記第1の対象データを前記外部装置に送信すべき場合に、(A)前記第1の確立ステップは、前記通信装置が、NFC規格のWriterモードに従って通信すると共に、前記外部装置が、NFC規格のCard Emulationモードに従って通信するための前記第1の通信リンクを確立するステップを含んでいてもよく、(B)前記第1の通信ステップは、前記第1の通信リンクを利用して、前記第1の対象データを前記外部装置に送信するステップを含んでいてもよく、(C)前記第2の確立ステップは、前記通信装置が、NFC規格のCard Emulationモードに従って通信すると共に、前記外部装置が、NFC規格のWriterモードに従って通信するための前記第2の通信リンクを確立するステップを含んでいてもよく、(D)前記第2の通信ステップは、前記第2の通信リンクを利用して、前記第2の対象データを前記外部装置から受信するステップを含んでいてもよい。この構成によると、通信装置は、第1の対象データを外部装置に適切に送信して、第2の対象データを外部装置から適切に受信することができる。 When the communication device should transmit the first target data to the external device, (A) in the first establishment step, the communication device communicates according to the Writer mode of the NFC standard, and the external device is used. The device may include the step of establishing the first communication link for communicating according to the NFC standard Card Emulation mode, and (B) the first communication step utilizes the first communication link. Then, the step of transmitting the first target data to the external device may be included. (C) In the second establishment step, the communication device communicates according to the Card Emulation mode of the NFC standard. The external device may include a step of establishing the second communication link for communicating according to the Writer mode of the NFC standard. (D) The second communication step is the second communication link. May include a step of receiving the second target data from the external device by utilizing the above. According to this configuration, the communication device can appropriately transmit the first target data to the external device and appropriately receive the second target data from the external device.

前記プロセッサは、前記プログラムに従って、さらに、データ送信を実行すべきことを示す送信情報が前記メモリ内に記憶されているのか否かを判断する判断ステップを実行してもよい。前記第1の対象データを前記外部装置と通信すべき際に、前記判断ステップにおいて、前記送信情報が前記メモリ内に記憶されていると判断される場合に、前記第1の通信ステップは、前記第1の通信リンクを利用して、前記第1の対象データを前記外部装置に送信するステップを含んでいてもよい。前記第1の対象データを前記外部装置と通信すべき際に、前記判断ステップにおいて、前記送信情報が前記メモリ内に記憶されていないと判断される場合に、前記第1の通信ステップは、前記第1の通信リンクを利用して、前記第1の対象データを前記外部装置から受信するステップを含んでいてもよい。前記第2の対象データを前記外部装置と通信すべき際に、前記判断ステップにおいて、前記送信情報が前記メモリ内に記憶されていると判断される場合に、前記第2の通信ステップは、前記第2の通信リンクを利用して、前記第2の対象データを前記外部装置に送信するステップを含んでいてもよい。前記第2の対象データを前記外部装置と通信すべき際に、前記判断ステップにおいて、前記送信情報が前記メモリ内に記憶されていないと判断される場合に、前記第2の通信ステップは、前記第2の通信リンクを利用して、前記第2の対象データを前記外部装置から受信するステップを含んでいてもよい。この構成によると、通信装置は、送信情報がメモリ内に記憶されているのか否かに関する判断結果に応じて、対象データの送信又は受信を適切に実行することができる。 The processor may further perform a determination step according to the program to determine whether transmission information indicating that data transmission should be executed is stored in the memory. When it is determined in the determination step that the transmission information is stored in the memory when the first target data should be communicated with the external device, the first communication step is the said. It may include a step of transmitting the first target data to the external device by using the first communication link. When it is determined in the determination step that the transmission information is not stored in the memory when the first target data should be communicated with the external device, the first communication step is the said. The first communication link may be used to include a step of receiving the first target data from the external device. When the second target data should be communicated with the external device, when it is determined in the determination step that the transmission information is stored in the memory, the second communication step is the said. A step of transmitting the second target data to the external device by using the second communication link may be included. When the second target data should be communicated with the external device, if it is determined in the determination step that the transmission information is not stored in the memory, the second communication step is described. The second communication link may be used to include a step of receiving the second target data from the external device. According to this configuration, the communication device can appropriately transmit or receive the target data according to the determination result regarding whether or not the transmission information is stored in the memory.

前記第1の対象データを前記外部装置と通信すべき際に、前記判断ステップにおいて、前記送信情報が前記メモリ内に記憶されていると判断される場合に、前記第1の確立ステップは、前記通信装置がデータ送信を実行するための送信用モードに従った前記第1の通信リンクを確立するステップを含んでいてもよい。前記第1の対象データを前記外部装置と通信すべき際に、前記判断ステップにおいて、前記送信情報が前記メモリ内に記憶されていないと判断される場合に、前記第1の確立ステップは、前記通信装置がデータ受信を実行するための受信用モードに従った前記第1の通信リンクを確立するステップを含んでいてもよい。前記第2の対象データを前記外部装置と通信すべき際に、前記判断ステップにおいて、前記送信情報が前記メモリ内に記憶されていると判断される場合に、前記第2の確立ステップは、前記送信用モードに従った前記第2の通信リンクを確立するステップを含んでいてもよい。前記第2の対象データを前記外部装置と通信すべき際に、前記判断ステップにおいて、前記送信情報が前記メモリ内に記憶されていないと判断される場合に、前記第2の確立ステップは、前記受信用モードに従った前記第2の通信リンクを確立するステップを含んでいてもよい。この構成によると、通信装置は、送信情報がメモリ内に記憶されているのか否かに関する判断結果に応じて、送信用モード又は受信用モードに従った通信リンクを適切に確立することができる。 When it is determined in the determination step that the transmission information is stored in the memory when the first target data should be communicated with the external device, the first establishment step is the said. It may include the step of establishing the first communication link according to the transmission mode for the communication device to perform data transmission. When it is determined in the determination step that the transmission information is not stored in the memory when the first target data should be communicated with the external device, the first establishment step is the said. It may include the step of establishing the first communication link according to the receiving mode for the communication device to perform data reception. When it is determined in the determination step that the transmission information is stored in the memory when the second target data is to be communicated with the external device, the second establishment step is the said. It may include the step of establishing the second communication link according to the transmission mode. When it is determined in the determination step that the transmission information is not stored in the memory when the second target data should be communicated with the external device, the second establishment step is the determination step. It may include a step of establishing the second communication link according to the receiving mode. According to this configuration, the communication device can appropriately establish a communication link according to the transmission mode or the reception mode, depending on the determination result regarding whether or not the transmission information is stored in the memory.

前記プロセッサは、前記プログラムに従って、さらに、前記第1の通信ステップにおいて、前記第1の対象データを前記外部装置に送信する場合に、前記送信情報を前記メモリから消去し、前記第1の通信ステップにおいて、前記外部装置を前記第1の対象データから受信する場合に、前記送信情報を前記メモリに記憶させるメモリ制御ステップを実行してもよい。この構成によると、通信装置は、第1の対象データを外部装置に送信する場合と、第1の対象データを外部装置から受信する場合と、のそれぞれのケースに応じて、送信情報を適切に管理することができる。 According to the program, the processor erases the transmission information from the memory when transmitting the first target data to the external device in the first communication step, and the first communication step. In the above, when the external device is received from the first target data, a memory control step of storing the transmission information in the memory may be executed. According to this configuration, the communication device appropriately transmits the transmission information according to each case of transmitting the first target data to the external device and receiving the first target data from the external device. Can be managed.

前記プロセッサは、前記プログラムに従って、さらに、前記通信装置が、NFC規格のP2Pモードに従って動作すべき場合であり、かつ、前記判断ステップにおいて、前記送信情報が前記メモリ内に記憶されていると判断される場合に、前記通信装置がデータ送信を実行することを、前記外部装置に通知し、前記通信装置が、NFC規格のP2Pモードに従って動作すべき場合であり、かつ、前記判断ステップにおいて、前記送信情報が前記メモリ内に記憶されていないと判断される場合に、前記通信装置がデータ受信を実行することを、前記外部装置に通知する通知ステップを実行してもよい。この構成によると、通信装置は、NFC規格のP2Pモードに従って動作すべき場合に、送信情報がメモリ内に記憶されているのか否かに関する判断結果に応じて、通信装置が、データ送信を実行するのか、データ受信を実行するのかを、外部装置に適切に通知することができる。このために、通信装置は、外部装置を適切に動作させ得る。 It is determined that the processor should operate according to the program and further according to the NFC standard P2P mode, and in the determination step, the transmission information is stored in the memory. In this case, the external device is notified that the communication device executes data transmission, the communication device should operate in accordance with the P2P mode of the NFC standard, and the transmission is performed in the determination step. If it is determined that the information is not stored in the memory, a notification step may be performed to notify the external device that the communication device will perform data reception. According to this configuration, when the communication device should operate according to the P2P mode of the NFC standard, the communication device executes data transmission according to the determination result regarding whether or not the transmission information is stored in the memory. It is possible to appropriately notify the external device whether to execute data reception or data reception. For this reason, the communication device can properly operate the external device.

前記プロセッサは、前記プログラムに従って、さらに、前記通信装置が、NFC規格のReader/Writerモードに従って動作すべき場合であり、かつ、前記判断ステップにおいて、前記送信情報が前記メモリ内に記憶されていると判断される場合に、前記通信装置がWriterモードに従って動作すべきことを決定し、前記通信装置が、NFC規格のReader/Writerモードに従って動作すべき場合であり、かつ、前記判断ステップにおいて、前記送信情報が前記メモリ内に記憶されていないと判断される場合に、前記通信装置がReaderモードに従って動作すべきことを決定する決定ステップを実行してもよい。この構成によると、通信装置は、NFC規格のReader/Writerモードに従って動作すべき場合に、送信情報がメモリ内に記憶されているのか否かに関する判断結果に応じて、Readerモードに従って動作すべきか、Writerモードに従って動作すべきかを、適切に決定することができる。 According to the processor, the communication device should operate according to the Reader / Writer mode of the NFC standard, and the transmission information is stored in the memory in the determination step. When it is determined, it is determined that the communication device should operate according to the Writer mode, the communication device should operate according to the Reader / Writer mode of the NFC standard, and the transmission in the determination step. If it is determined that the information is not stored in the memory, a determination step may be performed to determine that the communication device should operate according to the Reader mode. According to this configuration, when the communication device should operate according to the Reader / Writer mode of the NFC standard, whether the communication device should operate according to the Reader mode according to the judgment result regarding whether or not the transmission information is stored in the memory. It is possible to appropriately determine whether or not to operate according to the Writer mode.

前記プロセッサは、前記プログラムに従って、さらに、前記第1の通信ステップにおいて、前記第1の対象データを前記外部装置から受信する場合に、前記第1の対象データを処理することによって、前記第2の対象データを生成する処理ステップを実行してもよい。この構成によると、通信装置は、第1の対象データを処理することによって、第2の対象データを適切に生成することができる。 According to the program, when the processor receives the first target data from the external device in the first communication step, the processor processes the first target data to obtain the second target data. A processing step for generating the target data may be executed. According to this configuration, the communication device can appropriately generate the second target data by processing the first target data.

本明細書によって開示される一つの技術は、NFC規格に従った通信方式であるNFC方式で、通信対象の対象データの通信を外部装置と実行する通信装置である。
通信装置は、
前記通信装置と前記外部装置との間にNFC方式に従った第1の通信リンクを確立するための第1の確立コマンドを、前記外部装置と通信して、前記第1の通信リンクを確立する第1の確立手段と、
前記第1の通信リンクを利用して、第1の対象データを前記外部装置と通信する第1の通信手段と、
前記第1の対象データを前記外部装置と通信した後に、前記第1の通信リンクを切断する切断手段と、
前記第1の通信リンクを切断した後に、前記通信装置と前記外部装置との間にNFC方式に従った第2の通信リンクを確立するための第2の確立コマンドを、前記外部装置と通信して、前記第2の通信リンクを確立する第2の確立手段と、
前記第2の通信リンクを利用して、前記第1の対象データを処理することによって生成される第2の対象データを、前記外部装置と通信する第2の通信手段と、
を備える。
One technique disclosed in the present specification is the NFC method, which is a communication method according to the NFC standard, and is a communication device that executes communication of target data to be communicated with an external device.
Communication equipment
The first communication link for establishing the first communication link according to the NFC method is communicated with the external device between the communication device and the external device to establish the first communication link. The first means of establishment and
A first communication means for communicating the first target data with the external device by using the first communication link, and
A disconnecting means for disconnecting the first communication link after communicating the first target data with the external device.
After disconnecting the first communication link, a second establishment command for establishing a second communication link according to the NFC method between the communication device and the external device is transmitted to the external device. The second establishment means for establishing the second communication link and
A second communication means for communicating the second target data generated by processing the first target data with the external device by using the second communication link.
To be equipped.

上記の構成によると、通信装置は、第1の対象データと、第1の対象データを処理することによって生成される第2の対象データと、の両方を、外部装置と適切に通信することができる。 According to the above configuration, the communication device can appropriately communicate both the first target data and the second target data generated by processing the first target data with the external device. can.

本明細書によって開示される一つの技術は、NFC規格に従った通信方式であるNFC方式で、通信対象の対象データの通信を外部装置と実行する通信装置である。通信装置は、NFC方式の通信を実行するためのNFCインターフェイスと、プロセッサと、プログラムを記憶しているメモリと、を備える。
前記プロセッサは、前記プログラムに従って、以下の各ステップ、即ち、
前記通信装置と前記外部装置との間に通信リンクを確立するための確立コマンドを、前記NFCインターフェイスを介して、前記外部装置と通信する場合に、データ送信を実行すべきことを示す送信情報が前記メモリ内に記憶されているのか否かを判断する判断ステップと、
前記判断ステップにおいて、前記送信情報が前記メモリ内に記憶されていないと判断される場合に、前記通信リンクを利用して、前記外部装置から、前記NFCインターフェイスを介して、第1の対象データを受信する受信ステップと、
前記外部装置から前記第1の対象データを受信する場合に、前記第1の対象データを処理することによって、第2の対象データを生成する処理ステップと、
前記外部装置から前記第1の対象データを受信する場合に、前記送信情報を前記メモリに記憶させるメモリ制御ステップと、
前記外部装置から前記第1の対象データを受信した後に、前記通信リンクを切断する切断ステップと、
前記判断ステップにおいて、前記送信情報が前記メモリ内に記憶されていると判断される場合に、前記通信リンクを利用して、前記第2の対象データを、前記NFCインターフェイスを介して、前記外部装置に送信する送信ステップと、
を実行する通信装置。
One technique disclosed in the present specification is the NFC method, which is a communication method according to the NFC standard, and is a communication device that executes communication of target data to be communicated with an external device. The communication device includes an NFC interface for executing NFC-type communication, a processor, and a memory for storing a program.
The processor follows each of the following steps, i.e., according to the program.
Transmission information indicating that data transmission should be executed when the establishment command for establishing a communication link between the communication device and the external device is communicated with the external device via the NFC interface. A determination step for determining whether or not the data is stored in the memory, and
In the determination step, when it is determined that the transmission information is not stored in the memory, the first target data is transmitted from the external device via the NFC interface by using the communication link. Receive step to receive and
A processing step of generating the second target data by processing the first target data when receiving the first target data from the external device, and
A memory control step for storing the transmission information in the memory when the first target data is received from the external device, and
A disconnection step of disconnecting the communication link after receiving the first target data from the external device, and
In the determination step, when it is determined that the transmission information is stored in the memory, the second target data is transmitted to the external device via the NFC interface by using the communication link. Send to send step and
A communication device that executes.

上記の構成によると、通信装置は、送信情報を利用することによって、第1の対象データを外部装置から適切に受信し、次いで、第2の対象データを外部装置に適切に送信することができる。 According to the above configuration, the communication device can appropriately receive the first target data from the external device and then appropriately transmit the second target data to the external device by using the transmission information. ..

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

通信システムの構成を示す。The configuration of the communication system is shown. MFPのListen処理のフローチャートを示す。The flowchart of the Listen processing of the MFP is shown. 図2の続きのフローチャートを示す。The following flowchart of FIG. 2 is shown. MFPのPoll処理のフローチャートを示す。The flowchart of the Poll processing of the MFP is shown. 図4の続きのフローチャートを示す。The following flowchart of FIG. 4 is shown. P2Pモードの通信の一例であるケースA1のシーケンスチャートを示す。The sequence chart of case A1 which is an example of communication of P2P mode is shown. P2Pモードの通信の一例であるケースA2のシーケンスチャートを示す。The sequence chart of case A2 which is an example of communication of P2P mode is shown. P2Pモードの通信の一例であるケースA3のシーケンスチャートを示す。The sequence chart of case A3 which is an example of communication of P2P mode is shown. P2Pモードの通信の一例であるケースA4のシーケンスチャートを示す。The sequence chart of case A4 which is an example of communication of P2P mode is shown. R/Wモード及びCEモードの通信の一例であるケースB1のシーケンスチャートを示す。The sequence chart of case B1 which is an example of communication of R / W mode and CE mode is shown. R/Wモード及びCEモードの通信の一例であるケースB2のシーケンスチャートを示す。The sequence chart of case B2 which is an example of communication of R / W mode and CE mode is shown. R/Wモード及びCEモードの通信の一例であるケースB3〜B8のシーケンスチャートを示す。The sequence chart of cases B3 to B8 which is an example of communication of R / W mode and CE mode is shown.

(通信システム2の構成)
図1に示すように、通信システム2は、多機能機(以下では「MFP(Multi-Function Peripheralの略)」と呼ぶ)10と、携帯端末50と、を備える。MFP10と携帯端末50とは、NFC規格の通信方式(即ちNFC方式)の通信を実行可能である。本実施例では、NFC規格は、ISO/IEC21481又はISO/IEC18092の国際標準規格である。NFC方式の通信は、13.56MHz帯の電波を利用した無線通信である。また、MFP10と携帯端末50とは、それぞれ、NFC方式の通信リンクとは異なる通信ネットワークを利用して、有線通信又は無線通信を実行可能である。
(Configuration of communication system 2)
As shown in FIG. 1, the communication system 2 includes a multifunction device (hereinafter referred to as "MFP (abbreviation of Multi-Function Peripheral)") 10 and a mobile terminal 50. The MFP 10 and the mobile terminal 50 can execute communication of the NFC standard communication method (that is, the NFC method). In this embodiment, the NFC standard is an ISO / IEC21481 or ISO / IEC18092 international standard. NFC communication is wireless communication using radio waves in the 13.56 MHz band. Further, the MFP 10 and the mobile terminal 50 can execute wired communication or wireless communication by using a communication network different from the NFC type communication link, respectively.

(MFP10の構成)
MFP10は、操作部12と、表示部14と、ネットワークインターフェイス(以下では、インターフェイスのことを「I/F」と記載する)16と、印刷実行部18と、スキャン実行部20と、NFC I/F22と、制御部30と、を備える。操作部12は、複数のキーを備える。ユーザは、操作部12を操作することによって、様々な指示をMFP10に入力することができる。表示部14は、様々な情報を表示するためのディスプレイである。ネットワークI/F16は、有線ネットワークに接続するためのI/Fであってもよいし、無線ネットワークに接続するためのI/Fであってもよい。なお、この無線ネットワークは、NFC方式の通信とは異なる無線通信を実行するためのネットワークであり、例えば、IEEE(The Institute of Electrical and Electronics Engineers, Inc.の略)の802.11の規格、及び、それに準ずる規格(例えば802.11a,11b,11g,11n等)に従ったネットワークである。印刷実行部18は、インクジェット方式、レーザ方式等の印刷機構である。スキャン実行部20は、CCD、CIS等のスキャン機構である。
(Configuration of MFP10)
The MFP 10 includes an operation unit 12, a display unit 14, a network interface (hereinafter, the interface is referred to as "I / F") 16, a print execution unit 18, a scan execution unit 20, and an NFC I /. It includes an F22 and a control unit 30. The operation unit 12 includes a plurality of keys. The user can input various instructions to the MFP 10 by operating the operation unit 12. The display unit 14 is a display for displaying various information. The network I / F 16 may be an I / F for connecting to a wired network or an I / F for connecting to a wireless network. This wireless network is a network for executing wireless communication different from NFC communication. For example, the IEEE (Institute of Electrical and Electronics Engineers, Inc.) standard of 802.11 and , A network that complies with standards (for example, 802.1a, 11b, 11g, 11n, etc.). The print execution unit 18 is a printing mechanism such as an inkjet method or a laser method. The scan execution unit 20 is a scanning mechanism for a CCD, CIS, or the like.

NFC I/F22は、NFC方式の通信を実行するためのインターフェイスである。NFC I/F22は、ネットワークI/F16とは異なるチップによって構成されている。なお、ネットワークI/F16が無線ネットワークに接続するためのI/Fである場合には、ネットワークI/F16とNFC I/F22とは、以下の点で異なる。 The NFC I / F22 is an interface for executing NFC-type communication. The NFC I / F22 is composed of a chip different from the network I / F16. When the network I / F16 is an I / F for connecting to a wireless network, the network I / F16 and the NFC I / F22 are different from each other in the following points.

即ち、ネットワークI/F16を介した無線通信の通信速度は、NFC I/F22を介した無線通信の通信速度よりも速い。さらに、ネットワークI/F16を介した無線通信における搬送波の周波数は、NFC I/F22を介した無線通信における搬送波の周波数とは異なる。また、MFP10と携帯端末50との距離がおよそ10cm以下である場合に、MFP10は、NFC I/F22を介して、携帯端末50とNFC方式の通信を実行可能である。一方において、MFP10と携帯端末50との距離が、10cm以下である場合でも、10cm以上である場合でも、MFP10は、ネットワークI/F16を介して、携帯端末50と無線通信を実行可能である。即ち、MFP10が、ネットワークI/F16を介して、通信先の機器(例えば携帯端末50)と無線通信を実行可能な最大の距離は、MFP10が、NFC I/F22を介して、通信先の機器と無線通信を実行可能な最大の距離よりも大きい。なお、以下では、ネットワークI/F16を介した無線通信のことを、「ネットワーク無線通信」と呼ぶ。 That is, the communication speed of wireless communication via the network I / F16 is faster than the communication speed of wireless communication via the NFC I / F22. Further, the frequency of the carrier wave in the wireless communication via the network I / F16 is different from the frequency of the carrier wave in the wireless communication via the NFC I / F22. Further, when the distance between the MFP 10 and the mobile terminal 50 is about 10 cm or less, the MFP 10 can execute NFC-type communication with the mobile terminal 50 via the NFC I / F22. On the other hand, regardless of whether the distance between the MFP 10 and the mobile terminal 50 is 10 cm or less or 10 cm or more, the MFP 10 can execute wireless communication with the mobile terminal 50 via the network I / F16. That is, the maximum distance that the MFP 10 can perform wireless communication with the communication destination device (for example, the mobile terminal 50) via the network I / F 16 is the maximum distance that the MFP 10 can perform wireless communication with the communication destination device via the NFC I / F 22. And greater than the maximum distance that wireless communication can be performed. In the following, wireless communication via the network I / F16 will be referred to as "network wireless communication".

制御部30は、CPU32とメモリ34とを備える。CPU32は、メモリ34に格納されているプログラム36,38に従って、様々な処理を実行する。メモリ34は、ROM、RAM、ハードディスク等によって構成される。メモリ34は、CPU32によって実行される上記のプログラム36,38を格納する。アプリケーションプログラム36は、CPU32が、OSI参照モデルのアプリケーション層の処理を実行するためのプログラムである。 The control unit 30 includes a CPU 32 and a memory 34. The CPU 32 executes various processes according to the programs 36 and 38 stored in the memory 34. The memory 34 is composed of a ROM, a RAM, a hard disk, and the like. The memory 34 stores the above programs 36 and 38 executed by the CPU 32. The application program 36 is a program for the CPU 32 to execute the processing of the application layer of the OSI reference model.

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

メモリ34は、さらに、送信フラグとして「0」又は「1」を記憶する。送信フラグは、MFP10が、通信対象の対象データを送信すべきか否かを示すフラグである。即ち、MFP10が対象データを送信すべき状況では、送信フラグは「1」に設定される。また、MFP10が対象データを送信すべきでない状況では、送信フラグは「0」に設定される。 The memory 34 further stores "0" or "1" as a transmission flag. The transmission flag is a flag indicating whether or not the MFP 10 should transmit the target data to be communicated. That is, in the situation where the MFP 10 should transmit the target data, the transmission flag is set to "1". Further, in the situation where the MFP 10 should not transmit the target data, the transmission flag is set to "0".

メモリ34は、さらに、通信済フラグとして「0」又は「1」を記憶する。後で詳しく述べるが、MFP10と携帯端末50との間では、一方のデバイスから他方のデバイスに、NFC方式の通信によって、第1の対象データが送信された後に、当該他方のデバイスから当該一方のデバイスに、NFC方式の通信によって、第2の対象データが送信される。以下では、このように、第1の対象データの通信を実行し、次いで、第2の対象データの通信を実行することを、「1セットの通信」と呼ぶ。通信済フラグは、1セットの通信において、第1の対象データの通信が実行された状況であるのか、第1の対象データの通信が実行されていない状況であるのか、を示すフラグである。即ち、第1の対象データの通信が実行された状況では、通信済フラグは「1」に設定される。また、第1の対象データの通信が実行されていない状況では、通信済フラグは「0」に設定される。 The memory 34 further stores "0" or "1" as the communication completed flag. As will be described in detail later, between the MFP 10 and the mobile terminal 50, after the first target data is transmitted from one device to the other device by NFC communication, the other device sends the first target data to the other device. The second target data is transmitted to the device by NFC communication. Hereinafter, the execution of the communication of the first target data and then the communication of the second target data in this way is referred to as "one set of communication". The communication completed flag is a flag indicating whether the communication of the first target data is executed or the communication of the first target data is not executed in one set of communication. That is, in the situation where the communication of the first target data is executed, the communication completed flag is set to "1". Further, in the situation where the communication of the first target data is not executed, the communication completed flag is set to "0".

(携帯端末50の構成)
携帯端末50は、例えば、携帯電話(例えばスマートフォン)、PDA、ノートPC、タブレットPC、携帯型音楽再生装置、携帯型動画再生装置等である。携帯端末50は、無線ネットワークに接続するためのネットワークI/Fと、NFC I/Fと、を備える。従って、携帯端末50は、ネットワークI/Fを介して、MFP10と無線通信を実行可能であると共に、NFC I/Fを利用して、MFP10と無線通信を実行可能である。
(Configuration of mobile terminal 50)
The mobile terminal 50 is, for example, a mobile phone (for example, a smartphone), a PDA, a notebook PC, a tablet PC, a portable music playback device, a portable moving image playback device, or the like. The mobile terminal 50 includes a network I / F for connecting to a wireless network and an NFC I / F. Therefore, the mobile terminal 50 can execute wireless communication with the MFP 10 via the network I / F, and can execute wireless communication with the MFP 10 using the NFC I / F.

携帯端末50は、MFP10に様々な機能(例えば、印刷機能、スキャン機能等)を実行させるためのアプリケーションプログラム(以下では「MFP用アプリケーション」と呼ぶ)を備える。なお、MFP用アプリケーションは、例えば、MFP10のベンダによって提供されるサーバから携帯端末50にインストールされてもよいし、MFP10と共に出荷されるメディアから携帯端末50にインストールされてもよい。 The mobile terminal 50 includes an application program (hereinafter, referred to as an “MFP application”) for causing the MFP 10 to execute various functions (for example, a printing function, a scanning function, etc.). The application for the MFP may be installed on the mobile terminal 50 from the server provided by the vendor of the MFP 10, or may be installed on the mobile terminal 50 from the media shipped together with the MFP 10.

(通信対象の対象データ)
上記の1セットの通信の対象である第1及び第2の対象データとして、様々なデータが考えられる。第1及び第2の対象データの一例を以下に列挙する。
(Target data to be communicated)
Various data can be considered as the first and second target data that are the targets of the above-mentioned one set of communication. Examples of the first and second target data are listed below.

(第1の例)
MFP10が、携帯端末50から印刷データを受信して、当該印刷データに従った印刷機能を実行すべき状況を想定する。携帯端末50のユーザは、携帯端末50のMFP用アプリケーションを起動させて、MFP10に印刷機能を実行させるための指示を携帯端末50に入力する。この場合、携帯端末50は、NFC方式の通信を利用して、印刷実行指示をMFP10に送信する。印刷実行指示は、印刷データを含まない。
(First example)
It is assumed that the MFP 10 receives print data from the mobile terminal 50 and should execute a print function according to the print data. The user of the mobile terminal 50 starts the application for the MFP of the mobile terminal 50 and inputs an instruction for causing the MFP 10 to execute the printing function to the mobile terminal 50. In this case, the mobile terminal 50 transmits the print execution instruction to the MFP 10 by using the NFC method communication. The print execution instruction does not include print data.

MFP10は、携帯端末50から、NFC I/F22を介して、印刷実行指示を受信する。上述したように、NFC方式の通信の通信速度は、ネットワーク無線通信の通信速度よりも遅い。このために、仮に、携帯端末50からMFP10への印刷データの通信としてNFC方式の通信が利用されると、印刷データの通信に長時間を要する可能性がある。従って、本例では、MFP10が、ネットワーク無線通信を利用して、携帯端末50から印刷データを受信する構成を採用する。このような構成を採用するためには、携帯端末50は、MFP10とネットワーク無線通信を実行するための無線設定を知る必要がある。従って、MFP10は、携帯端末50から印刷実行指示を受信する場合に、NFC I/F22を介して、上記の無線設定を含む応答を携帯端末50に送信する。 The MFP 10 receives a print execution instruction from the mobile terminal 50 via the NFC I / F22. As described above, the communication speed of NFC communication is slower than the communication speed of network wireless communication. Therefore, if the NFC method communication is used for the communication of the print data from the mobile terminal 50 to the MFP 10, it may take a long time to communicate the print data. Therefore, in this example, the MFP 10 adopts a configuration in which print data is received from the mobile terminal 50 by using network wireless communication. In order to adopt such a configuration, the mobile terminal 50 needs to know the wireless setting for executing network wireless communication with the MFP 10. Therefore, when the MFP 10 receives the print execution instruction from the mobile terminal 50, the MFP 10 transmits a response including the above radio setting to the mobile terminal 50 via the NFC I / F22.

これにより、MFP10及び携帯端末50は、NFC方式の通信に代えて、ネットワーク無線通信を実行して、印刷データを通信することができる。従って、MFP10は、印刷機能を実行することができる。本例では、印刷実行指示、無線設定を含む応答が、それぞれ、「第1の対象データ」、「第2の対象データ」の一例である。 As a result, the MFP 10 and the mobile terminal 50 can execute network wireless communication instead of the NFC method communication to communicate the print data. Therefore, the MFP 10 can execute the printing function. In this example, the response including the print execution instruction and the wireless setting is an example of the "first target data" and the "second target data", respectively.

(第2の例)
MFP10が、スキャンを実行してスキャンデータを生成して、当該スキャンデータを携帯端末50に送信するスキャン機能を実行すべき状況を想定する。携帯端末50のユーザは、携帯端末50のMFP用アプリケーションを起動させて、MFP10にスキャン機能を実行させるための指示を携帯端末50に入力する。この場合、携帯端末50は、NFC方式の通信を利用して、スキャン実行指示をMFP10に送信する。
(Second example)
It is assumed that the MFP 10 should execute a scan function of executing a scan to generate scan data and transmitting the scan data to the mobile terminal 50. The user of the mobile terminal 50 starts the application for the MFP of the mobile terminal 50 and inputs an instruction for causing the MFP 10 to execute the scanning function to the mobile terminal 50. In this case, the mobile terminal 50 transmits a scan execution instruction to the MFP 10 by using NFC communication.

MFP10は、携帯端末50から、NFC I/F22を介して、スキャン実行指示を受信する。上記の第1の例と同様に、仮に、MFP10から携帯端末50へのスキャンデータの通信としてNFC方式の通信が利用されると、スキャンデータの通信に長時間を要する可能性がある。このために、本例では、MFP10が、ネットワーク無線通信を利用して、スキャンデータを携帯端末50に送信する構成を採用する。従って、MFP10は、携帯端末50からスキャン実行指示を受信する場合に、NFC I/F22を介して、無線設定を含む応答を携帯端末50に送信する。 The MFP 10 receives a scan execution instruction from the mobile terminal 50 via the NFC I / F22. Similar to the first example above, if the NFC method communication is used for the communication of the scan data from the MFP 10 to the mobile terminal 50, it may take a long time to communicate the scan data. For this purpose, in this example, the MFP 10 adopts a configuration in which the scan data is transmitted to the mobile terminal 50 by using network wireless communication. Therefore, when the MFP 10 receives the scan execution instruction from the mobile terminal 50, the MFP 10 transmits a response including the wireless setting to the mobile terminal 50 via the NFC I / F22.

これにより、MFP10及び携帯端末50は、NFC方式の通信に代えて、ネットワーク無線通信を実行して、スキャンデータを通信することができる。従って、MFP10は、スキャン機能を実行することができる。本例では、スキャン実行指示、無線設定を含む応答が、それぞれ、「第1の対象データ」、「第2の対象データ」の一例である。 As a result, the MFP 10 and the mobile terminal 50 can execute network wireless communication instead of the NFC method communication to communicate the scan data. Therefore, the MFP 10 can execute the scanning function. In this example, the response including the scan execution instruction and the wireless setting is an example of the "first target data" and the "second target data", respectively.

(第3の例)
携帯端末50が、MFP10が利用すべき設定情報を、MFP10に送信すべき状況を想定する。上記の設定情報として、例えば、MFP10が印刷機能を実行するための印刷設定情報(例えば、印刷解像度、用紙サイズ等)、MFP10がスキャン機能を実行するためのスキャン設定情報(例えば、スキャン解像度等)、MFP10が通信機能を実行するための通信設定情報(例えば、IPアドレス、サブネットマスク、ゲートウェイアドレス等)を挙げることができる。
(Third example)
It is assumed that the mobile terminal 50 should transmit the setting information to be used by the MFP 10 to the MFP 10. As the above setting information, for example, print setting information for the MFP 10 to execute the print function (for example, print resolution, paper size, etc.), scan setting information for the MFP 10 to execute the scan function (for example, scan resolution, etc.). , Communication setting information (for example, IP address, subnet mask, gateway address, etc.) for the MFP 10 to execute the communication function can be mentioned.

携帯端末50のユーザは、携帯端末50のMFP用アプリケーションを起動させて、MFP10が利用すべき設定情報を携帯端末50に入力する。この場合、携帯端末50は、NFC方式の通信を利用して、上記の設定情報をMFP10に送信する。 The user of the mobile terminal 50 activates the application for the MFP of the mobile terminal 50 and inputs the setting information to be used by the MFP 10 into the mobile terminal 50. In this case, the mobile terminal 50 transmits the above setting information to the MFP 10 by using the NFC method communication.

MFP10は、携帯端末50から、NFC I/F22を介して、設定情報を受信する。MFP10は、受信済みの設定情報を、MFP10が利用すべき設定情報として、メモリ34に格納する。これにより、MFP10は、受信済みの設定情報を利用して、様々な機能を実行することができる。MFP10は、携帯端末50から設定情報を受信する場合に、設定情報を受信したことを示す応答を、NFC I/F22を介して、携帯端末50に送信する。本例では、設定情報、応答が、それぞれ、「第1の対象データ」、「第2の対象データ」の一例である。 The MFP 10 receives the setting information from the mobile terminal 50 via the NFC I / F22. The MFP 10 stores the received setting information in the memory 34 as the setting information that the MFP 10 should use. As a result, the MFP 10 can execute various functions by using the received setting information. When the MFP 10 receives the setting information from the mobile terminal 50, the MFP 10 transmits a response indicating that the setting information has been received to the mobile terminal 50 via the NFC I / F22. In this example, the setting information and the response are examples of "first target data" and "second target data", respectively.

(第4の例)
携帯端末50が、携帯端末50で現在利用されているアドレス帳に含まれるアドレス情報を、MFP10に送信すべき状況を想定する。携帯端末50のユーザは、携帯端末50のMFP用アプリケーションを起動させて、アドレス情報をMFP10に送信するための指示を携帯端末50に入力する。この場合、携帯端末50は、NFC方式の通信を利用して、アドレス情報をMFP10に送信する。
(Fourth example)
It is assumed that the mobile terminal 50 should transmit the address information included in the address book currently used by the mobile terminal 50 to the MFP 10. The user of the mobile terminal 50 activates the application for the MFP of the mobile terminal 50 and inputs an instruction for transmitting the address information to the MFP 10 to the mobile terminal 50. In this case, the mobile terminal 50 transmits the address information to the MFP 10 by using the NFC method communication.

MFP10は、携帯端末50から、NFC I/F22を介して、アドレス情報を受信する。MFP10は、受信済みのアドレス情報を、MFP10で現在利用されているアドレス帳(即ちメモリ34内のアドレス帳)に追加する。これにより、MFP10は、受信済みのアドレス情報を利用して、通信機能を実行することができる。MFP10は、携帯端末50からアドレス情報を受信する場合に、アドレス情報を受信したことを示す応答を、NFC I/F22を介して、携帯端末50に送信する。本例では、アドレス情報、応答が、それぞれ、「第1の対象データ」、「第2の対象データ」の一例である。 The MFP 10 receives the address information from the mobile terminal 50 via the NFC I / F22. The MFP 10 adds the received address information to the address book currently used by the MFP 10 (that is, the address book in the memory 34). As a result, the MFP 10 can execute the communication function by using the received address information. When the MFP 10 receives the address information from the mobile terminal 50, the MFP 10 transmits a response indicating that the address information has been received to the mobile terminal 50 via the NFC I / F22. In this example, the address information and the response are examples of "first target data" and "second target data", respectively.

(第5の例)
上記の第1の例では、MFP10が、ネットワーク無線通信を利用して、印刷データを携帯端末50に送信する構成を採用している。これに代えて、例えば、MFP10は、携帯端末50から、NFC I/F22を介して、印刷データを受信してもよい。この場合、MFP10は、印刷データを受信したことを示す応答を、NFC I/F22を介して、携帯端末50に送信してもよい。本例では、印刷データ、応答が、それぞれ、「第1の対象データ」、「第2の対象データ」の一例である。
(Fifth example)
In the above first example, the MFP 10 adopts a configuration in which print data is transmitted to the mobile terminal 50 by using network wireless communication. Instead, for example, the MFP 10 may receive print data from the mobile terminal 50 via the NFC I / F22. In this case, the MFP 10 may transmit a response indicating that the print data has been received to the mobile terminal 50 via the NFC I / F22. In this example, the print data and the response are examples of the "first target data" and the "second target data", respectively.

(第6の例)
上記の第1〜第5の例では、1セットの通信において、携帯端末50からMFP10への第1の対象データの送信が実行され、その後、MFP10から携帯端末50への第2の対象データの送信が実行される。ただし、1セットの通信において、MFP10から携帯端末50への第1の対象データの送信が実行され、その後、携帯端末50からMFP10への第2の対象データの送信が実行されてもよい。例えば、MFP10は、NFC I/F22を介して、スキャンデータを携帯端末50に送信し、携帯端末50から、NFC I/F22を介して、応答を受信してもよい。本例では、スキャンデータ、応答が、それぞれ、「第1の対象データ」、「第2の対象データ」の一例である。
(6th example)
In the above first to fifth examples, in one set of communication, the transmission of the first target data from the mobile terminal 50 to the MFP 10 is executed, and then the second target data from the MFP 10 to the mobile terminal 50 is transmitted. The transmission is executed. However, in one set of communication, the transmission of the first target data from the MFP 10 to the mobile terminal 50 may be executed, and then the transmission of the second target data from the mobile terminal 50 to the MFP 10 may be executed. For example, the MFP 10 may transmit scan data to the mobile terminal 50 via the NFC I / F22 and receive a response from the mobile terminal 50 via the NFC I / F22. In this example, the scan data and the response are examples of "first target data" and "second target data", respectively.

なお、「第1の対象データ」と「第2の対象データ」の組合せは、上記の第1〜第6の例に限られず、他の組合せであってもよい。即ち、「第1の対象データ」は、通信対象のデータであれば、どのような種類のデータであってもよく、「第2の対象データ」は、第1の対象データを処理することによって生成されるデータ(即ち、第1の対象データとは異なるデータ)であれば、どのような種類のデータであってもよい。なお、第2の対象データを生成する主体は、MDP10であってもよいし、携帯端末50であってもよい。 The combination of the "first target data" and the "second target data" is not limited to the first to sixth examples described above, and may be other combinations. That is, the "first target data" may be any kind of data as long as it is the data to be communicated, and the "second target data" is obtained by processing the first target data. Any kind of data may be used as long as it is generated data (that is, data different from the first target data). The subject that generates the second target data may be the MDP 10 or the mobile terminal 50.

(NFC規格のモード)
続いて、NFC規格で採用されている各モードについて説明する。NFC規格では、P2Pモード、Reader/Writerモード(以下では「R/Wモード」と簡単に記載する)、及び、CEモードが利用される。なお、以下では、NFC方式の通信を実行可能な機器(MFP10、携帯端末50等)のことを「NFC機器」と呼ぶ。
(NFC standard mode)
Next, each mode adopted in the NFC standard will be described. In the NFC standard, P2P mode, Reader / Writer mode (hereinafter, simply referred to as "R / W mode"), and CE mode are used. In the following, a device (MFP10, mobile terminal 50, etc.) capable of executing NFC-type communication will be referred to as an "NFC device".

NFC機器の中には、上記の3つのモードの全てを利用可能な機器も存在するし、上記の3つのモードのうちの1つ又は2つのモードのみを利用可能な機器も存在する。本実施例では、MFP10は、上記の3つのモードの全てを利用可能な機器である。ただし、携帯端末50は、上記の3つのモードの全てを利用可能な機器であってもよいし、上記の3つのモードのうち、R/Wモード及びCEモードの2つのモードのみを利用可能であってもよい。 Among NFC devices, there are devices that can use all of the above three modes, and there are devices that can use only one or two of the above three modes. In this embodiment, the MFP 10 is a device that can use all of the above three modes. However, the mobile terminal 50 may be a device that can use all of the above three modes, and of the above three modes, only two modes, the R / W mode and the CE mode, can be used. There may be.

(P2Pモード)
P2Pモードは、一対のNFC機器の間で双方向通信を実行するためのモードである。
例えば、第1のNFC機器と第2のNFC機器との両方が、P2Pモードに従って動作する状況を想定する。この場合、第1のNFC機器と第2のNFC機器との間で、P2Pモードに従った通信を実行するための通信リンクが確立される。例えば、第1のNFC機器は、通信リンクを利用してデータを第2のNFC機器に送信する。その後、第2のNFC機器は、通常、同じ通信リンクを利用して、他のデータを第1のNFC機器に送信する。これにより、双方向通信が実現される。NFCフォーラムによって定められるタグタイプがタイプAであるNFC機器、及び、タグタイプがタイプFであるNFC機器は、P2Pモードに従って動作することができるが、タグタイプがタイプBであるNFC機器は、P2Pモードに従って動作することができない。
(P2P mode)
The P2P mode is a mode for executing bidirectional communication between a pair of NFC devices.
For example, assume a situation in which both the first NFC device and the second NFC device operate according to the P2P mode. In this case, a communication link for executing communication according to the P2P mode is established between the first NFC device and the second NFC device. For example, the first NFC device transmits data to the second NFC device using a communication link. After that, the second NFC device usually uses the same communication link to transmit other data to the first NFC device. As a result, two-way communication is realized. NFC devices with a tag type of type A and NFC devices with a tag type of type F defined by the NFC Forum can operate according to P2P mode, while NFC devices with a tag type of type B are P2P. Cannot operate according to the mode.

(R/Wモード、CEモード)
R/Wモード及びCEモードは、一対のNFC機器の間で単方向通信を実行するためのモードである。CEモードは、NFC機器がNFCフォーラムによって定められた形式である「カード」として動作するためのモードである。タグタイプがタイプAであるNFC機器と、タグタイプがタイプFであるNFC機器と、タグタイプがタイプBであるNFC機器と、のいずれも、CEモードに従って動作することができる。R/Wモードは、さらに、Readerモードと、Writerモードと、に区分される。Readerモードは、CEモードでカードとして動作するNFC機器からデータを読み出すためのモードである。Writerモードは、CEモードでカードとして動作するNFC機器にデータを書き込むためのモードである。なお、Readerモードでは、NFC規格のカードからデータを読み出すこともできる。また、Writerモードでは、NFC規格のカードにデータを書き込むこともできる。
(R / W mode, CE mode)
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", which is a format defined by the NFC forum. An NFC device having a tag type of type A, an NFC device having a tag type of type F, and an NFC device having a tag type of type B can all operate according to the CE mode. The R / W mode is further divided into a Reader mode and a Writer mode. The Reader mode is a mode for reading data from an NFC device that operates as a card in the CE mode. The Writer mode is a mode for writing data to an NFC device that operates as a card in the CE mode. In 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, assume a situation in which the first NFC device operates according to the Reader mode and the second NFC device operates according to the CE mode. In this case, a communication link is established between the first NFC device and the second NFC device to execute communication according to the Reader mode and the CE mode. The first NFC device receives the data from the second NFC device by executing an operation for reading data from the pseudo card in the second NFC device.

また、例えば、第1のNFC機器が、Writerモードに従って動作し、第2のNFC機器が、CEモードに従って動作する状況を想定する。この場合、第1のNFC機器と第2のNFC機器との間で、Writerモード及びCEモードに従った通信を実行するための通信リンクが確立される。第1のNFC機器は、第2のNFC機器内の擬似的なカードにデータを書き込むための動作を実行することによって、当該データを第2のNFC機器に送信する。 Further, for example, it is assumed that the first NFC device operates according to the Writer mode and the second NFC device operates according to the CE mode. In this case, a communication link is established between the first NFC device and the second NFC device to execute communication according to the Writer mode and the CE mode. The first NFC device transmits the data to the second NFC device by executing an operation for writing data to the pseudo card in the second NFC device.

上述したように、一対のNFC機器がNFC方式の通信を実行するためには、様々なモードの組合せが考えられる。例えば、MFP10及び携帯端末50のモードの組合せとして、以下の5つのパターン、即ち、「P2Pモード、P2Pモード」、「Readerモード、CEモード」、「Writerモード、CEモード」、「CEモード、Readerモード」、「CEモード、Writerモード」が考えられる。 As described above, in order for a pair of NFC devices to execute NFC-type communication, various combinations of modes can be considered. For example, as a combination of modes of the MFP 10 and the mobile terminal 50, the following five patterns, that is, "P2P mode, P2P mode", "Reader mode, CE mode", "Writer mode, CE mode", "CE mode, Reader" "Mode", "CE mode, Writer mode" can be considered.

(Poll動作とListen動作)
NFC機器は、Poll動作及びListen動作を実行可能である。より具体的に言うと、例えば、MFP10では、CPU32が、プログラム36,38に従ってPoll動作及びListen動作を実行するのではなく、NFC I/F22が、Poll動作及びListen動作を実行する。Poll動作は、ポーリング信号を送信して、ポーリング信号に対するレスポンス信号を受信する動作である。また、Listen動作は、ポーリング信号を受信して、ポーリング信号に対するレスポンス信号を送信する動作である。
(Poll operation and Listen operation)
The NFC device can perform the Poll operation and the Listen operation. More specifically, for example, in the MFP10, the NFC I / F22 executes the Poll operation and the Listen operation instead of the CPU 32 executing the Poll operation and the Listen operation according to the programs 36 and 38. The Poll operation is an operation of transmitting a polling signal and receiving a response signal to the polling signal. The Listen operation is an operation of receiving a polling signal and transmitting a response signal to the polling signal.

MFP10のNFC I/F22は、Poll動作を実行するためのPollモードと、Listen動作を実行するためのListenモードと、Poll動作及びListen動作のどちらも実行しないモード(以下では「不実行モード」と呼ぶ)と、のうちのいずれかのモードで動作可能である。NFC I/F22は、Pollモード、Listenモード、及び、不実行モードで、順次動作する。例えば、NFC I/F22は、Pollモードで動作し、その後、Listenモードで動作し、その後、不実行モードで動作するという1セットの動作を実行する。NFC I/F22は、上記の1セットの動作を繰り返し実行する。 The NFC I / F22 of the MFP10 has 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"). (Call) and can operate in any of the modes. The NFC I / F22 operates sequentially in the Poll mode, the Listen mode, and the non-execution mode. For example, the NFC I / F22 performs a set of operations: operating in Poll mode, then operating in Listen mode, and then operating in non-execution mode. The NFC I / F22 repeatedly executes the above set of operations.

Pollモードでは、NFC I/F22は、ポーリング信号を送信して、レスポンス信号を受信することを監視する。具体的に言うと、NFC I/F22は、(1)タグタイプがタイプAであるNFC機器が応答可能なポーリング信号(即ちタイプAに対応するポーリング信号)を送信して、レスポンス信号の受信を所定時間監視し、(2)レスポンス信号を受信しなければ、タグタイプがタイプBであるNFC機器が応答可能なポーリング信号(即ちタイプBに対応するポーリング信号)を送信して、レスポンス信号の受信を所定時間監視し、(3)レスポンス信号を受信しなければ、タグタイプがタイプFであるNFC機器が応答可能なポーリング信号(即ちタイプFに対応するポーリング信号)を送信して、レスポンス信号の受信を所定時間監視する、という動作を繰り返す。NFC I/F22が所定時間内にNFC機器からレスポンス信号を受信する場合には、当該NFC機器は、当該レスポンス信号の送信の直前に受信したポーリング信号に対応するタイプのNFC機器であると言える。NFC I/F22は、レスポンス信号を受信する場合に、さらに、当該レスポンス信号の送信元のNFC機器が、どのモードで動作可能であるのかを問い合わせる問い合わせ信号を、当該NFC機器に送信する。この結果、NFC I/F22は、当該NFC機器から動作可能モード信号を受信する。動作可能モード信号は、当該NFC機器がP2Pモード及びCEモードで動作可能であることを示すか、あるいは、当該NFC機器がCEモードのみで動作可能であることを示す。 In Poll mode, the NFC I / F 22 transmits a polling signal and monitors the reception of the response signal. Specifically, the NFC I / F22 (1) transmits a polling signal (that is, a polling signal corresponding to the type A) that can be responded to by an NFC device having a tag type of type A, and receives the response signal. After monitoring for a predetermined time, (2) if no response signal is received, an NFC device of type B sends a responsive polling signal (that is, a polling signal corresponding to type B) and receives the response signal. (3) If the response signal is not received, an NFC device having a tag type of type F transmits a responsive polling signal (that is, a polling signal corresponding to the type F) of the response signal. The operation of monitoring reception for a predetermined time is repeated. When the NFC I / F 22 receives a response signal from the NFC device within a predetermined time, it can be said that the NFC device is a type of NFC device corresponding to the polling signal received immediately before the transmission of the response signal. When receiving the response signal, the NFC I / F 22 further transmits an inquiry signal to the NFC device asking which mode the NFC device that is the source of the response signal can operate. As a result, the NFC I / F 22 receives the operable mode signal from the NFC device. The operable mode signal indicates that the NFC device can operate in P2P mode and CE mode, or indicates that the NFC device can operate only in CE mode.

Listenモードでは、NFC I/F22は、ポーリング信号を受信することを監視して、ポーリング信号を受信すると、レスポンス信号を送信する。NFC I/F22は、NFC I/F22に対応するタイプのポーリング信号を受信する場合にのみ、ポーリング信号の送信元のNFC機器にレスポンス信号を送信する。NFC I/F22は、当該NFC機器にレスポンス信号を送信する場合に、当該NFC機器から問い合わせ信号を受信して、動作可能モード信号を当該NFC機器に送信する。不実行モードでは、NFC I/F22は、ポーリング信号を送信せず、さらに、ポーリング信号を受信しても、レスポンス信号を送信しない。 In the Listen mode, the NFC I / F22 monitors the reception of the polling signal, and when the polling signal is received, transmits a response signal. The NFC I / F22 transmits a response signal to the NFC device that is the source of the polling signal only when the polling signal of the type corresponding to the NFC I / F22 is received. When transmitting a response signal to the NFC device, the NFC I / F 22 receives an inquiry signal from the NFC device and transmits an operable mode signal to the NFC device. In the non-execution mode, the NFC I / F22 does not transmit the polling signal, and even if it receives the polling signal, it does not transmit the response signal.

携帯端末50も、上記の1セットの動作を繰り返し実行する。従って、例えば、MFP10と携帯端末50との間の距離が10cm未満であり、かつ、NFC I/F22がPollモードで動作する期間と、携帯端末50がListenモードで動作する期間と、が一致する場合には、NFC I/F22は、ポーリング信号を携帯端末50に送信して、レスポンス信号を携帯端末50から受信するPoll動作を実行する。また、例えば、MFP10と携帯端末50との間の距離が10cm未満であり、NFC I/F22がListenモードで動作する期間と、携帯端末50がPollモードで動作する期間と、が一致すると、NFC I/F22は、ポーリング信号を携帯端末50から受信して、レスポンス信号を携帯端末50に送信するListen動作を実行する。 The mobile terminal 50 also repeatedly executes the above set of operations. Therefore, for example, the distance between the MFP 10 and the mobile terminal 50 is less than 10 cm, and the period during which the NFC I / F 22 operates in Poll mode and the period during which the mobile terminal 50 operates in Listen mode coincide with each other. In this case, the NFC I / F 22 executes a Poll operation of transmitting the polling signal to the mobile terminal 50 and receiving the response signal from the mobile terminal 50. Further, for example, when the distance between the MFP 10 and the mobile terminal 50 is less than 10 cm and the period during which the NFC I / F 22 operates in the Listen mode and the period during which the mobile terminal 50 operates in the Poll mode match, the NFC The I / F 22 executes a Listen operation of receiving the polling signal from the mobile terminal 50 and transmitting the response signal to the mobile terminal 50.

NFC I/F22がPoll動作又はListen動作を実行すると、以降の通信のための各処理は、CPU32に引き継がれる。具体的に言うと、MFP10のNFC I/F22がPoll動作を実行し、携帯端末50がListen動作を実行する場合には、携帯端末50がどのモードの動作を実行可能であるのかを示す情報(即ち、受信済みの動作可能モード信号が示す情報)が、NFC I/F22からCPU32に受け渡される。CPU32は、NFC I/F22から受け渡された情報に基づいて、MFP10がどのモードで動作すべきかを決定する。具体的には、MFP10が全てのモードで動作可能であり、かつ、受信済みの動作可能モード信号がP2Pモード及びCEモードで動作可能であることを示す場合には、CPU32は、MFP10がP2Pモードで動作すべきことを決定する。なお、変形例では、この場合に、CPU32は、MFP10がCEモードで動作すべきことを決定してもよい。また、MFP10が全てのモードで動作可能であり、かつ、受信済みの動作可能モード信号がCEモードのみで動作可能であることを示す場合には、CPU32は、MFP10がR/Wモードで動作すべきことを決定する。なお、仮に、MFP10がR/Wモードのみで動作可能であり、かつ、受信済みの動作可能モード信号がCEモードで動作可能であることを示す場合には、CPU32は、MFP10がR/Wモードで動作すべきことを決定する。後で詳しく述べるが、その後、CPU32は、MFP10が動作すべきモード(即ちCPU32によって決定されたモード)に対応するActivationコマンドを携帯端末50に送信する(図4のS112、図5のS160参照)。Activationコマンドは、NFC規格で採用されているコマンドであり、MFP10と携帯端末50との間にNFC方式の通信リンクを確立するためのコマンドである。 When the NFC I / F 22 executes the Poll operation or the Listen operation, each process for subsequent communication is taken over by the CPU 32. Specifically, when the NFC I / F22 of the MFP 10 executes the Poll operation and the mobile terminal 50 executes the Listen operation, information indicating which mode of the operation the mobile terminal 50 can execute () That is, the received information indicated by the operable mode signal) is passed from the NFC I / F 22 to the CPU 32. The CPU 32 determines in which mode the MFP 10 should operate based on the information passed from the NFC I / F 22. Specifically, when the MFP10 indicates that it can operate in all modes and that the received operable mode signal can operate in the P2P mode and the CE mode, the CPU 32 indicates that the MFP10 is in the P2P mode. Decide what to do with. In the modified example, in this case, the CPU 32 may determine that the MFP 10 should operate in the CE mode. Further, when the MFP 10 can operate in all modes and the received operable mode signal indicates that it can operate only in the CE mode, the CPU 32 operates the MFP 10 in the R / W mode. Decide what to do. If it is assumed that the MFP10 can operate only in the R / W mode and the received operable mode signal can operate in the CE mode, the CPU32 has the MFP10 in the R / W mode. Decide what to do with. As will be described in detail later, after that, the CPU 32 transmits an activation command corresponding to the mode in which the MFP 10 should operate (that is, the mode determined by the CPU 32) to the mobile terminal 50 (see S112 in FIG. 4 and S160 in FIG. 5). .. The Activation command is a command adopted in the NFC standard, and is a command for establishing an NFC-type communication link between the MFP 10 and the mobile terminal 50.

なお、NFC規格では、Poll動作を実行したNFC機器(以下では「Poll機器」と呼ぶ)は、P2Pモード及びR/Wモードで動作することができるが、CEモードで動作することができない。従って、上述したように、MFP10がPoll機器である場合には、CPU32は、MFP10がP2Pモード又はR/Wモードで動作すべきことを決定する。 In the NFC standard, an NFC device that has executed a Poll operation (hereinafter referred to as a "Poll device") can operate in P2P mode and R / W mode, but cannot operate in CE mode. Therefore, as described above, when the MFP 10 is a Poll device, the CPU 32 determines that the MFP 10 should operate in P2P mode or R / W mode.

一方において、MFP10のNFC I/F22がListen動作を実行し、携帯端末50がPoll動作を実行する場合には、CPU32は、携帯端末50が動作すべきモードに対応するActivationコマンドを、携帯端末50から受信する(図2のS10参照)。CPU32は、P2Pモードに対応するActivationコマンドを受信する場合に、MFP10がP2Pモードで動作すべきことを決定し、R/Wモードに対応するActivationコマンドを受信する場合に、MFP10がCEモードで動作すべきことを決定する。 On the other hand, when the NFC I / F22 of the MFP 10 executes the Listen operation and the mobile terminal 50 executes the Poll operation, the CPU 32 issues an Activation command corresponding to the mode in which the mobile terminal 50 should operate. Received from (see S10 in FIG. 2). The CPU 32 determines that the MFP 10 should operate in the P2P mode when receiving the activation command corresponding to the P2P mode, and operates in the CE mode when the MFP 10 receives the activation command corresponding to the R / W mode. Decide what to do.

なお、NFC規格では、Listen動作を実行したNFC機器(以下では「Listen機器」と呼ぶ)は、P2Pモード及びCEモードで動作することができるが、R/Wモードで動作することができない。従って、上述したように、MFP10がPoll機器である場合には、CPU32は、MFP10がP2Pモード又はCEモードで動作すべきことを決定する。 According to the NFC standard, an NFC device that has executed the Listen operation (hereinafter referred to as a "Listen device") can operate in the P2P mode and the CE mode, but cannot operate in the R / W mode. Therefore, as described above, when the MFP 10 is a Poll device, the CPU 32 determines that the MFP 10 should operate in P2P mode or CE mode.

上述したように、CPU32は、NFC I/F22がPoll動作又はListen動作を実行すれば、MFP10の近傍に携帯端末50が存在することを知ることができ、さらに、MFP10がどのモードで動作すべきかを知ることができ、その後の通信のための各処理(後述の図2〜図5参照)を実行する。 As described above, the CPU 32 can know that the mobile terminal 50 exists in the vicinity of the MFP 10 if the NFC I / F 22 executes the Poll operation or the Listen operation, and further, in which mode the MFP 10 should operate. Can be known, and each process for subsequent communication (see FIGS. 2 to 5 described later) is executed.

(MFP10が実行する処理;図2〜図5)
続いて、図2〜図5を参照して、MFP10が実行する処理について説明する。なお、CPU32は、メモリ34内のプログラム36,38に従って、図2〜図5の各処理を実行する。以下では、まず、NFC I/F22がListen動作を実行した場合に、CPU32が実行する処理(図2及び図3;以下では「MFPのListen処理」と呼ぶ)の内容を説明し、次いで、NFC I/F22がPoll動作を実行した場合に、CPU32が実行する処理(図4及び図5;以下では「MFPのPoll処理」と呼ぶ)の内容を説明する。
(Processes executed by MFP10; FIGS. 2 to 5)
Subsequently, the process executed by the MFP 10 will be described with reference to FIGS. 2 to 5. The CPU 32 executes each process of FIGS. 2 to 5 according to the programs 36 and 38 in the memory 34. In the following, first, when the NFC I / F22 executes the Listen operation, the contents of the process executed by the CPU 32 (FIGS. 2 and 3; hereinafter referred to as “MFP Listen process”) will be described, and then the NFC The contents of the process (FIGS. 4 and 5; hereinafter referred to as "MFP Poll process") executed by the CPU 32 when the I / F 22 executes the Poll operation will be described.

(MFPのListen処理;図2及び図3)
上述したように、NFC I/F22がListen動作を実行する場合(即ち携帯端末50がPoll動作を実行する場合)には、携帯端末50は、携帯端末50が動作すべきモードに対応するActivationコマンドをMFP10に送信する。S10において、CPU32は、携帯端末50から、NFC I/F22を介して、Activationコマンドを受信する。
(Listen processing of MFP; FIGS. 2 and 3)
As described above, when the NFC I / F 22 executes the Listen operation (that is, when the mobile terminal 50 executes the Poll operation), the mobile terminal 50 has an Activation command corresponding to the mode in which the mobile terminal 50 should operate. Is transmitted to the MFP 10. In S10, the CPU 32 receives an activation command from the mobile terminal 50 via the NFC I / F22.

次いで、S12において、CPU32は、MFP10が、P2Pモードで動作すべきか、CEモードで動作すべきかを判断する。上述したように、MFP10は、P2Pモード、R/Wモード、及び、CEモードの3つのモードのうちの全てを利用可能なNFC機器である。一方において、携帯端末50は、3つのモードのうちの全てのモードを利用可能な機器であるかもしれないし、R/Wモード及びCEモードのみを利用可能な機器であるかもしれない。CPU32は、P2Pモードに対応するActivationコマンドを受信する場合に、MFP10がP2Pモードで動作すべきと判断して(図2のS12でYES)、S14に進む。一方において、CPU32は、R/Wモードに対応するActivationコマンドを受信する場合に、MFP10がCEモードで動作すべきと判断して(図2のS12でNO)、図3のS62に進む。 Next, in S12, the CPU 32 determines whether the MFP 10 should operate in the P2P mode or the CE mode. As described above, the MFP 10 is an NFC device that can use all three modes of P2P mode, R / W mode, and CE mode. On the other hand, the mobile terminal 50 may be a device that can use all three modes, or may be a device that can use only the R / W mode and the CE mode. When the CPU 32 receives the activation command corresponding to the P2P mode, the CPU 32 determines that the MFP 10 should operate in the P2P mode (YES in S12 of FIG. 2), and proceeds to S14. On the other hand, when the CPU 32 receives the activation command corresponding to the R / W mode, the CPU 32 determines that the MFP 10 should operate in the CE mode (NO in S12 of FIG. 2), and proceeds to S62 of FIG.

(MFPのListen処理;P2Pモード)
S14では、CPU32は、Activationコマンドに対するレスポンスコマンド(即ちOKコマンド)を、NFC I/F22を介して、携帯端末50に送信する。これにより、MFP10と携帯端末50との間にNFC方式の通信リンクが確立される。即ち、CPU32は、Activationコマンドを受信して、OKコマンドを送信することによって、通信リンクを適切に確立することができる。
(Listen processing of MFP; P2P mode)
In S14, the CPU 32 transmits a response command (that is, an OK command) to the Activation command to the mobile terminal 50 via the NFC I / F22. As a result, an NFC communication link is established between the MFP 10 and the mobile terminal 50. That is, the CPU 32 can appropriately establish the communication link by receiving the Activation command and transmitting the OK command.

なお、MFPのListen処理では、MFP10から携帯端末50にActivationコマンドを送信することができない。Poll機器はActivationコマンドを送信することができるが、Listen機器はActivationコマンドを送信することができないからである。 In the Listen process of the MFP, the Activation command cannot be transmitted from the MFP 10 to the mobile terminal 50. This is because the Poll device can send the Activation command, but the Listen device cannot send the Activation command.

次いで、S16では、CPU32は、確認コマンド応答処理を開始する。確認コマンドは、Poll機器からListen機器に送信されるコマンドであり、通信リンクを維持するための否かを確認するためのコマンドである。上述したように、現時点では、MFP10がListen機器であり、携帯端末50がPoll機器である。従って、確認コマンド応答処理では、CPU32は、携帯端末50から、NFC I/F22を介して、確認コマンドを受信して、確認コマンドに対するレスポンスコマンド(即ちOKコマンド)を、NFC I/F22を介して、携帯端末50に送信する。 Next, in S16, the CPU 32 starts the confirmation command response process. The confirmation command is a command sent from the Poll device to the Listen device, and is a command for confirming whether or not to maintain the communication link. As described above, at present, the MFP 10 is a Listen device and the mobile terminal 50 is a Poll device. Therefore, in the confirmation command response processing, the CPU 32 receives the confirmation command from the mobile terminal 50 via the NFC I / F22, and issues a response command (that is, an OK command) to the confirmation command via the NFC I / F22. , Transmit to the mobile terminal 50.

なお、フローチャートには示されていないが、CPU32は、S16で確認コマンド応答処理を開始すると、後述のS38が実行されるまで、又は、後述のS44で通信リンクが切断されるまで、確認コマンド応答処理を継続して実行する。 Although not shown in the flowchart, when the CPU 32 starts the confirmation command response process in S16, the confirmation command response is performed until S38 described later is executed or the communication link is disconnected in S44 described later. Continue processing.

次いで、S18では、CPU32は、メモリ34内の送信フラグが「1」であるのか否かを判断する。なお、上記の1セットの通信において、第1の対象データの通信が実行されていない状況では、通常、送信フラグは「0」に設定される。例えば、対象データに関する上記の第1〜第5の例では、第1の対象データは、携帯端末50からMFP10に送信され、第2の対象データは、MFP10から携帯端末50に送信される。このようなケースでは、第1の対象データの通信が実行されていない状況では、通常、送信フラグは「0」に設定される。この結果、後述のように、MFP10が第1の対象データを携帯端末50から受信することが実現される(S22等参照)。さらに、このようなケースでは、第1の対象データの通信が実行された状況では、送信フラグは「1」に設定される(S28等参照)。この結果、後述のように、MFP10が第2の対象データを携帯端末50に送信することが実現される(S32等参照)。 Next, in S18, the CPU 32 determines whether or not the transmission flag in the memory 34 is "1". In the above one set of communication, the transmission flag is usually set to "0" in the situation where the communication of the first target data is not executed. For example, in the above-mentioned first to fifth examples regarding the target data, the first target data is transmitted from the mobile terminal 50 to the mobile terminal 10, and the second target data is transmitted from the MFP 10 to the mobile terminal 50. In such a case, the transmission flag is usually set to "0" in the situation where the communication of the first target data is not executed. As a result, as will be described later, it is realized that the MFP 10 receives the first target data from the mobile terminal 50 (see S22 and the like). Further, in such a case, the transmission flag is set to "1" in the situation where the communication of the first target data is executed (see S28 and the like). As a result, as will be described later, the MFP 10 can transmit the second target data to the mobile terminal 50 (see S32 and the like).

ただし、対象データに関する上記の第6の例では、第1の対象データは、MFP10から携帯端末50に送信され、第2の対象データは、携帯端末50からMFP10に送信される。例えば、CPU32は、上記の第6の例に従って、スキャンデータ(即ち第1の対象データ)を生成すると、図2〜図5のフローチャートに示されていない処理において、送信フラグを「0」から「1」に変更する。このようなケースでは、上記の1セットの通信において、第1の対象データの通信が実行されていない状況でも、送信フラグは「1」に設定される。この結果、後述のように、MFP10が第1の対象データを携帯端末50に送信することが実現される(S32等参照)。さらに、このようなケースでは、第1の対象データの通信が実行された状況では、送信フラグは「0」に設定される(S36等参照)。この結果、後述のように、MFP10が第2の対象データを携帯端末50から受信することが実現される(S22等参照)。 However, in the above sixth example regarding the target data, the first target data is transmitted from the mobile terminal 10 to the mobile terminal 50, and the second target data is transmitted from the mobile terminal 50 to the MFP 10. For example, when the CPU 32 generates scan data (that is, the first target data) according to the sixth example above, the transmission flag is changed from "0" to "0" in the process not shown in the flowcharts of FIGS. Change to "1". In such a case, the transmission flag is set to "1" even in the situation where the communication of the first target data is not executed in the above-mentioned one set of communication. As a result, as will be described later, the MFP 10 can transmit the first target data to the mobile terminal 50 (see S32 and the like). Further, in such a case, the transmission flag is set to "0" in the situation where the communication of the first target data is executed (see S36 and the like). As a result, as will be described later, it is realized that the MFP 10 receives the second target data from the mobile terminal 50 (see S22 and the like).

CPU32は、メモリ34内の送信フラグが「1」である場合に、S18でYESと判断して、S30に進む。一方において、CPU32は、メモリ34内の送信フラグが「0」である場合に、S18でNOと判断して、S20に進む。 When the transmission flag in the memory 34 is "1", the CPU 32 determines YES in S18 and proceeds to S30. On the other hand, when the transmission flag in the memory 34 is "0", the CPU 32 determines NO in S18 and proceeds to S20.

S20では、CPU32は、NFC I/F22を介して、携帯端末50とネゴシエーションを実行する。具体的に言うと、CPU32は、まず、MFP10がP2Pモードのクライアントとして動作することを決定する。次いで、CPU32は、MFP10がクライアントとして動作し、携帯端末50がP2Pモードのサーバとして動作するように、Simple NDEF Exchangeプロトコルに従った通信を実行する。これにより、携帯端末50は、クライアント(即ちMFP10)からのリクエストに応じて、処理を実行するサーバとして動作する。なお、NDEFは、NFC data Exchange Formatの略である。 In S20, the CPU 32 negotiates with the mobile terminal 50 via the NFC I / F22. Specifically, the CPU 32 first determines that the MFP 10 operates as a client in P2P mode. Next, the CPU 32 executes communication according to the Simple NDEF Exchange protocol so that the MFP 10 operates as a client and the mobile terminal 50 operates as a server in P2P mode. As a result, the mobile terminal 50 operates as a server that executes processing in response to a request from the client (that is, the MFP 10). NDEF is an abbreviation for NFC data Exchange Format.

S20では、CPU32は、さらに、MFP10がデータ受信を実行すること(即ち携帯端末50がデータ送信を実行すること)を、携帯端末50に通知する。これにより、携帯端末50は、対象データをMFP10に送信すべきことを知ることができ、対象データをMFP10に送信する。なお、以下では、「対象データ」は、対象データに関する上記の第1〜6の例のうちのいずれの第1の対象データであってもよいし、いずれの第2の対象データであってもよい。 In S20, the CPU 32 further notifies the mobile terminal 50 that the MFP 10 executes data reception (that is, the mobile terminal 50 executes data transmission). As a result, the mobile terminal 50 can know that the target data should be transmitted to the MFP 10, and transmits the target data to the MFP 10. In the following, the "target data" may be any first target data among the above-mentioned first to sixth examples relating to the target data, or any second target data. good.

次いで、S22では、CPU32は、S14で確立された通信リンクを利用して、携帯端末50から、NFC I/F22を介して、対象データを受信する。 Next, in S22, the CPU 32 receives the target data from the mobile terminal 50 via the NFC I / F 22 by using the communication link established in S14.

次いで、S24では、CPU32は、S22で受信された対象データを処理する。例えば、上記の第1又は第2の例では、CPU32は、S22で受信された印刷実行指示又はスキャン実行(即ち第1の対象データ)を解釈して、無線設定(即ち第2の対象データ)を含む応答を生成する。また、例えば、上記の第3の例では、CPU32は、S22で受信された設定情報(即ち第1の対象データ)をメモリ34に記憶させ、設定情報を受信したことを示す応答(即ち第2の対象データ)を生成する。また、例えば、上記の第4の例では、CPU32は、S22で受信されたアドレス情報(即ち第1の対象データ)をメモリ34内のアドレス帳に追加し、アドレス情報を受信したことを示す応答(即ち第2の対象データ)を生成する。また、例えば、上記の第5の例では、CPU32は、S22で受信された印刷データ(即ち第1の対象データ)に従った印刷機能を実行し、印刷データを受信したことを示す応答(即ち第2の対象データ)を生成する。 Next, in S24, the CPU 32 processes the target data received in S22. For example, in the first or second example described above, the CPU 32 interprets the print execution instruction or scan execution (that is, the first target data) received in S22, and wirelessly sets (that is, the second target data). Generate a response that includes. Further, for example, in the above third example, the CPU 32 stores the setting information (that is, the first target data) received in S22 in the memory 34, and responds indicating that the setting information has been received (that is, the second target data). Target data) is generated. Further, for example, in the fourth example described above, the CPU 32 adds the address information (that is, the first target data) received in S22 to the address book in the memory 34, and responds indicating that the address information has been received. (That is, the second target data) is generated. Further, for example, in the fifth example described above, the CPU 32 executes a print function according to the print data received in S22 (that is, the first target data), and responds indicating that the print data has been received (that is, that is). Second target data) is generated.

なお、上記の第6の例では、CPU32は、S22で受信された応答(即ち第2の対象データ)を解釈して、携帯端末50がスキャンデータを受信したことを確認する。この場合、上記の第1〜第5の例とは異なり、CPU32は、第2の対象データを生成する処理を実行しない。即ち、第2の対象データは、携帯端末50によって生成されるデータである。 In the sixth example described above, the CPU 32 interprets the response received in S22 (that is, the second target data) and confirms that the mobile terminal 50 has received the scan data. In this case, unlike the first to fifth examples described above, the CPU 32 does not execute the process of generating the second target data. That is, the second target data is the data generated by the mobile terminal 50.

次いで、S26では、CPU32は、メモリ34内の通信済フラグが「1」であるのか否かを判断する。CPU32は、メモリ34内の通信済フラグが「1」である場合に、S26でYESと判断して、S40に進む。一方において、CPU32は、メモリ34内の通信済フラグが「0」である場合に、S26でNOと判断して、S28に進む。 Next, in S26, the CPU 32 determines whether or not the communication completed flag in the memory 34 is "1". When the communication completed flag in the memory 34 is "1", the CPU 32 determines YES in S26 and proceeds to S40. On the other hand, when the communication completed flag in the memory 34 is "0", the CPU 32 determines NO in S26 and proceeds to S28.

S28では、CPU32は、メモリ34内の送信フラグを「1」に設定し、メモリ34内の通信済フラグを「1」に設定する。S28を終えると、S38に進む。 In S28, the CPU 32 sets the transmission flag in the memory 34 to "1" and sets the communication completed flag in the memory 34 to "1". After finishing S28, the process proceeds to S38.

S38では、CPU32は、S14で確立された通信リンクを切断するための切断処理を実行する。S38の切断処理の手法として、ソフトウェア的切断処理と、ハードウェア的切断処理と、の2つの手法が考えられる。CPU32は、どちらの手法の切断処理を実行してもよい。 In S38, the CPU 32 executes a disconnection process for disconnecting the communication link established in S14. As a method of the cutting process of S38, two methods, a software-like cutting process and a hardware-like cutting process, can be considered. The CPU 32 may execute the disconnection process of either method.

CPU32がソフトウェア的切断処理を実行する場合には、CPU32は、S16で開始された確認コマンド応答処理を終了させる。即ち、CPU32は、携帯端末50から確認コマンドを受信しても、確認コマンドに対するレスポンスコマンド(即ちOKコマンド)を携帯端末50に送信しない。これにより、携帯端末50は、MFP10が通信リンクを維持することを望まないことを知ることができ、通信リンクを切断するためのDeactivationコマンドをMFP10に送信する。 When the CPU 32 executes the software disconnection process, the CPU 32 ends the confirmation command response process started in S16. That is, even if the CPU 32 receives the confirmation command from the mobile terminal 50, the CPU 32 does not transmit the response command (that is, the OK command) to the confirmation command to the mobile terminal 50. As a result, the mobile terminal 50 can know that the MFP 10 does not want to maintain the communication link, and transmits a Deactivation command for disconnecting the communication link to the MFP 10.

従って、CPU32は、携帯端末50から、NFC I/F22を介して、Deactivationコマンドを受信する。この場合、CPU32は、Deactivationコマンドに対するレスポンスコマンド(即ちOKコマンド)を、NFC I/F22を介して、携帯端末50に送信する。これにより、S14で確立された通信リンクが切断される。CPU32は、ソフトウェア的切断処理(確認コマンド応答処理の終了、Activationコマンドの受信、OKコマンドの送信)を実行することによって、通信リンクを適切に切断することができる。 Therefore, the CPU 32 receives the Deactivation command from the mobile terminal 50 via the NFC I / F22. In this case, the CPU 32 transmits a response command (that is, an OK command) to the Deactivation command to the mobile terminal 50 via the NFC I / F22. As a result, the communication link established in S14 is disconnected. The CPU 32 can appropriately disconnect the communication link by executing software-like disconnection processing (termination of confirmation command response processing, reception of activation command, transmission of OK command).

なお、MFPのListen処理では、MFP10から携帯端末50にDeactivationコマンドを送信することはできない。Poll機器はDeactivationコマンドを送信することができるが、Listen機器はDeactivationコマンドを送信することができないからである。 In the Listen process of the MFP, the Deaction command cannot be transmitted from the MFP 10 to the mobile terminal 50. This is because the Poll device can send a Deaction command, but the Listen device cannot send a Deaction command.

一方において、CPU32がハードウェア的切断処理を実行する場合には、CPU32は、NFC I/F22の動作を一時的に停止させる。具体的に言うと、例えば、CPU32は、NFC I/F22が動作を停止するための指示を、NFC I/F22に送信する。これにより、NFC I/F22は、外部からの信号の受信、外部への信号の送信、Poll動作、Listen動作等を含む全ての動作を一時的に停止する。従って、CPU32は、NFC I/F22を介して、S16で開始された確認コマンド応答処理を実行することができなくなる。 On the other hand, when the CPU 32 executes the hardware disconnection process, the CPU 32 temporarily stops the operation of the NFC I / F 22. Specifically, for example, the CPU 32 transmits an instruction for the NFC I / F 22 to stop the operation to the NFC I / F 22. As a result, the NFC I / F 22 temporarily stops all operations including reception of signals from the outside, transmission of signals to the outside, Poll operation, Listen operation, and the like. Therefore, the CPU 32 cannot execute the confirmation command response process started in S16 via the NFC I / F22.

ハードウェア的切断処理が実行されると、ソフトウェア的切断処理の場合と同様に、携帯端末50は、確認コマンドに対するレスポンスコマンド(即ちOKコマンド)を受信することができない。この場合、携帯端末50は、DeactivationコマンドをMFP10に送信するが、MFP10のNFC I/F22の動作が停止されているために、Deactivationコマンドに対するレスポンスコマンド(即ちOKコマンド)を受信することもできない。従って、携帯端末50は、タイムアウトと判断して、通信リンクを維持するための処理(即ち、確認コマンドを送信する処理等)を終了する。これにより、S14で確立された通信リンクが切断される。CPU32は、ハードウェア的切断処理(即ちNFC I/F22の動作の停止)を実行することによって、通信リンクを適切に切断することができる。 When the hardware disconnection process is executed, the mobile terminal 50 cannot receive the response command (that is, the OK command) for the confirmation command, as in the case of the software disconnection process. In this case, the mobile terminal 50 transmits the Deaction command to the MFP 10, but cannot receive the response command (that is, the OK command) to the Deaction command because the operation of the NFC I / F 22 of the MFP 10 is stopped. Therefore, the mobile terminal 50 determines that the time-out has occurred, and ends the process for maintaining the communication link (that is, the process of transmitting the confirmation command, etc.). As a result, the communication link established in S14 is disconnected. The CPU 32 can appropriately disconnect the communication link by executing the hardware disconnection process (that is, stopping the operation of the NFC I / F 22).

なお、NFC I/F22の動作を停止させる手法は、上記のように、CPU32からNFC I/F22に指示を送信する手法に限られない。例えば、CPU32は、NFC I/F22への電力供給を一時的に停止することによって、NFC I/F22の動作を一時的に停止させてもよい。この手法も、ハードウェア的切断処理の一例である。S38が終了すると、MFPのListen処理が終了する。 The method of stopping the operation of the NFC I / F 22 is not limited to the method of transmitting an instruction from the CPU 32 to the NFC I / F 22 as described above. For example, the CPU 32 may temporarily stop the operation of the NFC I / F 22 by temporarily stopping the power supply to the NFC I / F 22. This method is also an example of hardware disconnection processing. When S38 ends, the Listen processing of the MFP ends.

一方において、S18でYESの場合(即ち送信フラグが「1」である場合)には、S30において、CPU32は、S20と同様に、MFP10がP2Pモードのクライアントとして動作し、携帯端末50がP2Pモードのサーバとして動作するように、ネゴシエーションを実行する。S30では、CPU32は、さらに、MFP10がデータ送信を実行すること(即ち携帯端末50がデータ受信を実行すること)を、携帯端末50に通知する。これにより、携帯端末50は、MFP10から対象データを受信するまで待機する。 On the other hand, when YES in S18 (that is, when the transmission flag is "1"), in S30, the CPU 32 operates the MFP 10 as a client in the P2P mode and the mobile terminal 50 operates in the P2P mode as in the case of S20. Negotiate to act as a server for. In S30, the CPU 32 further notifies the mobile terminal 50 that the MFP 10 executes data transmission (that is, the mobile terminal 50 executes data reception). As a result, the mobile terminal 50 waits until the target data is received from the MFP 10.

次いで、S32において、CPU32は、S14で確立された通信リンクを利用して、NFC I/F22を介して、携帯端末50に対象データを送信する。例えば、上記の第1〜第5の例では、CPU32は、例えば、前回のMFPのListen処理のS24、又は、前回のMFPのPoll処理(図4)のS124において、第1の対象データを処理して、第2の対象データを生成する。この場合、S32では、CPU32は、生成済みの第2の対象データを携帯端末50に送信する。また、例えば、上記の第6の例では、第1の対象データとして、スキャンデータが生成される。この場合、S32では、CPU32は、生成済みの第1の対象データを携帯端末50に送信する。 Next, in S32, the CPU 32 transmits the target data to the mobile terminal 50 via the NFC I / F 22 using the communication link established in S14. For example, in the first to fifth examples described above, the CPU 32 processes the first target data in, for example, S24 of the Listen processing of the previous MFP or S124 of the Poll processing (FIG. 4) of the previous MFP. Then, the second target data is generated. In this case, in S32, the CPU 32 transmits the generated second target data to the mobile terminal 50. Further, for example, in the sixth example described above, scan data is generated as the first target data. In this case, in S32, the CPU 32 transmits the generated first target data to the mobile terminal 50.

次いで、S34では、CPU32は、メモリ34内の通信済フラグが「1」であるのか否かを判断する。CPU32は、メモリ34内の通信済フラグが「1」である場合に、S34でYESと判断して、S40に進む。一方において、CPU32は、メモリ34内の通信済フラグが「0」である場合に、S34でNOと判断して、S36に進む。 Next, in S34, the CPU 32 determines whether or not the communication completed flag in the memory 34 is "1". When the communication completed flag in the memory 34 is "1", the CPU 32 determines YES in S34 and proceeds to S40. On the other hand, when the communication completed flag in the memory 34 is "0", the CPU 32 determines NO in S34 and proceeds to S36.

S36では、CPU32は、メモリ34内の送信フラグを「0」に設定し、メモリ34内の通信済フラグを「1」に設定する。CPU32は、S36を終えると、S38に進み、上記の切断処理を実行する。 In S36, the CPU 32 sets the transmission flag in the memory 34 to "0" and sets the communication completed flag in the memory 34 to "1". When the CPU 32 finishes S36, it proceeds to S38 and executes the above-mentioned disconnection process.

一方において、S40では、CPU32は、メモリ34内の送信フラグを「0」に設定し、メモリ34内の通信済フラグを「0」に設定する。 On the other hand, in S40, the CPU 32 sets the transmission flag in the memory 34 to "0" and the communication completed flag in the memory 34 to "0".

なお、S40が実行される場合(即ち、通信済フラグが「1」である場合)には、第2の対象データの通信が完了している(即ち、上記の1セットの通信が完了している)。従って、携帯端末50は、通信リンクを維持する必要がないと判断して、DeactivationコマンドをMFP10に送信する。この結果、S42において、CPU32は、携帯端末50から、NFC I/F22を介して、Deactivationコマンドを受信する。 When S40 is executed (that is, when the communication completed flag is "1"), the communication of the second target data is completed (that is, the communication of the above one set is completed). There is). Therefore, the mobile terminal 50 determines that it is not necessary to maintain the communication link, and transmits a Deactivation command to the MFP 10. As a result, in S42, the CPU 32 receives the Deaction command from the mobile terminal 50 via the NFC I / F22.

次いで、S44において、CPU32は、Deactivationコマンドに対するレスポンスコマンド(即ちOKコマンド)を、NFC I/F22を介して、携帯端末50に送信する。これにより、S14で確立された通信リンクが切断される。S44が終了すると、MFPのListen処理が終了する。 Next, in S44, the CPU 32 transmits a response command (that is, an OK command) to the Deactivation command to the mobile terminal 50 via the NFC I / F22. As a result, the communication link established in S14 is disconnected. When S44 ends, the Listen processing of the MFP ends.

(MFPのListen処理;CEモード(図3))
続いて、図3を参照して、図2のS12でNOと判断される場合(MFP10がCEモードで動作すべきことが判断される場合)の処理の内容を説明する。S62は、図2のS14と同様である。なお、MFP10がCEモードで動作し、携帯端末50がR/Wモードで動作する場合には、P2Pモードの場合と異なり、確認コマンド応答処理(図2のS16参照)が実行されない。単方向通信のためのモードであるために(即ち、1回の対象データの通信のみが実行されるモードであるために)、通信リンクを維持するのか否かを確認する必要がないからである。
(Listen processing of MFP; CE mode (Fig. 3))
Subsequently, with reference to FIG. 3, the content of the process when NO is determined in S12 of FIG. 2 (when it is determined that the MFP 10 should operate in the CE mode) will be described. S62 is the same as S14 in FIG. When the MFP 10 operates in the CE mode and the mobile terminal 50 operates in the R / W mode, the confirmation command response process (see S16 in FIG. 2) is not executed unlike the case of the P2P mode. This is because it is not necessary to confirm whether or not to maintain the communication link because it is a mode for unidirectional communication (that is, it is a mode in which only one communication of the target data is executed). ..

S64〜S72は、図2のS18,S22〜S28と同様である。S74〜S78は、図2のS32〜S36と同様である。また、S86〜S90は、図2のS40〜S44と同様である。S90が終了すると、MFPのListen処理が終了する。 S64 to S72 are the same as S18 and S22 to S28 in FIG. S74 to S78 are the same as S32 to S36 in FIG. Further, S86 to S90 are the same as S40 to S44 in FIG. When S90 ends, the Listen processing of the MFP ends.

S80では、CPU32は、S62で確立された通信リンクを切断するためのソフトウェア的切断処理を実行する。即ち、CPU32は、携帯端末50から、NFC I/F22を介して、Deactivationコマンドを受信して、Deactivationコマンドに対するレスポンスコマンド(即ちOKコマンド)を、NFC I/F22を介して、携帯端末50に送信する。これにより、S62で確立された通信リンクが切断される。CPU32は、ソフトウェア的切断処理(Deactivationコマンドの受信、及び、OKコマンドの送信)を実行することによって、通信リンクを適切に切断することができる。 In S80, the CPU 32 executes a software disconnection process for disconnecting the communication link established in S62. That is, the CPU 32 receives the Deactivation command from the mobile terminal 50 via the NFC I / F22, and transmits a response command (that is, an OK command) to the Deactivation command to the mobile terminal 50 via the NFC I / F22. do. As a result, the communication link established in S62 is disconnected. The CPU 32 can appropriately disconnect the communication link by executing the software disconnection process (reception of the Deactivation command and transmission of the OK command).

次いで、S82において、CPU32は、NFC I/F22の動作を制御するための動作制御処理を実行する。CPU32は、NFC I/F22が動作を停止するための指示を、NFC I/F22に送信する。これにより、NFC I/F22は、外部からの信号の受信、外部への信号の送信、Poll動作、Listen動作等を含む全ての動作を一時的に停止する。 Next, in S82, the CPU 32 executes an operation control process for controlling the operation of the NFC I / F 22. The CPU 32 transmits an instruction for stopping the operation of the NFC I / F 22 to the NFC I / F 22. As a result, the NFC I / F 22 temporarily stops all operations including reception of signals from the outside, transmission of signals to the outside, Poll operation, Listen operation, and the like.

S80で通信リンクが切断されると、携帯端末50は、Pollモード及びListenモードで再び順次動作する。ただし、S82において、MFP10のNFC I/F22の動作が一時的に停止されるために、携帯端末50は、ポーリング信号を送信しても、レスポンス信号を受信しない。また、携帯端末50は、MFP10からポーリング信号を受信しない。このために、携帯端末50は、MFP10と携帯端末50の間の距離が大きくなったこと、即ち、通信相手が離反したこと、を検知することができる。 When the communication link is disconnected in S80, the mobile terminal 50 sequentially operates again in the Poll mode and the Listen mode. However, in S82, since the operation of the NFC I / F22 of the MFP10 is temporarily stopped, the mobile terminal 50 does not receive the response signal even if the polling signal is transmitted. Further, the mobile terminal 50 does not receive the polling signal from the MFP 10. Therefore, the mobile terminal 50 can detect that the distance between the MFP 10 and the mobile terminal 50 has increased, that is, that the communication partner has separated.

携帯端末50に通信相手の離反を検知させるのは(即ちS82の動作制御処理を実行するのは)、以下の理由である。CEモード及びR/Wモードに対応する通信リンクでは、1回の対象データの通信のみが実行されることが前提となっている。従って、一対のNFC機器のそれぞれは、CEモード及びR/Wモードに従って、対象データの通信を実行すると、通常、通信リンクを切断する。その後、仮に、一対のNFC機器が近接している状態が維持され続けると、一対のNFC機器は、Poll動作及びListen動作を再び実行して通信リンクを再び確立し、同じ対象データの通信を実行し得る。即ち、一対のNFC機器が近接している状態が維持される場合には、同じ対象データが何回も通信されるという事象が発生し得る。 The reason why the mobile terminal 50 detects the separation of the communication partner (that is, the operation control process of S82 is executed) is as follows. In the communication link corresponding to the CE mode and the R / W mode, it is premised that the communication of the target data is executed only once. Therefore, when each of the pair of NFC devices executes the communication of the target data according to the CE mode and the R / W mode, the communication link is usually disconnected. After that, if the pair of NFC devices continue to be kept close to each other, the pair of NFC devices re-execute the Poll operation and the Listen operation to reestablish the communication link and execute the communication of the same target data. Can be. That is, when the state in which the pair of NFC devices are kept close to each other is maintained, an event that the same target data is communicated many times may occur.

従って、NFC機器は、通常、CEモード及びR/Wモードに対応する通信リンクを切断した後に、通信相手の離反を検知しない場合には、Poll動作及びListen動作を再び実行しても、通信リンクを再び確立しないようにプログラムされている。そして、NFC機器は、例えば、ポーリング信号を何回か送信しても、レスポンス信号を通信相手から受信しない場合や、所定期間に亘って通信相手からポーリング信号を受信しない場合に、通信相手の離反を検知する。NFC機器は、このようにして通信相手の離反を検知すると、同じ通信相手と通信リンクを再び確立することができる。 Therefore, normally, if the NFC device does not detect the separation of the communication partner after disconnecting the communication link corresponding to the CE mode and the R / W mode, the communication link can be executed even if the Poll operation and the List operation are executed again. Is programmed not to be established again. Then, for example, when the NFC device does not receive the response signal from the communication partner even if the polling signal is transmitted several times, or when the polling signal is not received from the communication partner for a predetermined period, the communication partner is separated. Is detected. When the NFC device detects the separation of the communication partner in this way, the NFC device can reestablish the communication link with the same communication partner.

本実施例では、第1の対象データの通信が実行された後に、第2の対象データの通信が実行される(即ち1セットの通信が実行される)。従って、第1の対象データの通信のための通信リンクが切断された後に、MFP10と携帯端末50とが近接している状態が維持されていても、第2の対象データの通信のための新たな通信リンクを再び確立させる仕組みが必要である。この仕組みが、S82の動作制御処理である。即ち、MFP10がS82の動作制御処理を実行すれば、MFP10と携帯端末50とが近接している状態が維持されていても、携帯端末50は、MFP10の離反を検知することができる。その後、MFP10及び携帯端末50がPoll動作及びListen動作を実行すれば、MFP10及び携帯端末50の間に通信リンクを再び確立させることができる。 In this embodiment, after the communication of the first target data is executed, the communication of the second target data is executed (that is, one set of communication is executed). Therefore, even if the state in which the MFP 10 and the mobile terminal 50 are kept close to each other is maintained after the communication link for the communication of the first target data is disconnected, a new communication for the communication of the second target data is performed. A mechanism is needed to reestablish a good communication link. This mechanism is the operation control process of S82. That is, if the MFP 10 executes the operation control process of S82, the mobile terminal 50 can detect the separation of the MFP 10 even if the state in which the MFP 10 and the mobile terminal 50 are close to each other is maintained. After that, if the MFP 10 and the mobile terminal 50 execute the Poll operation and the Listen operation, the communication link can be reestablished between the MFP 10 and the mobile terminal 50.

なお、S82の動作制御処理は、上記のように、CPU32からNFC I/F22に指示を送信する手法に限られない。例えば、CPU32は、NFC I/F22への電力供給を一時的に停止することによって、NFC I/F22の動作を一時的に停止させてもよい。この手法も、動作制御処理の一例である。S82が終了すると、MFPのListen処理が終了する。 The operation control process of S82 is not limited to the method of transmitting an instruction from the CPU 32 to the NFC I / F 22 as described above. For example, the CPU 32 may temporarily stop the operation of the NFC I / F 22 by temporarily stopping the power supply to the NFC I / F 22. This method is also an example of motion control processing. When S82 is completed, the Listen processing of the MFP is completed.

(MFPのPoll処理;図4及び図5)
続いて、図4及び図5を参照して、MFPのPoll処理の内容を説明する。上述したように、NFC I/F22がPoll動作を実行する場合には、MFP10は、受信済みの動作可能モード信号に従って、P2Pモード及びR/Wモードのうちのどちらかのモードで動作する。S110では、CPU32は、受信済みの動作可能モード信号に基づいて、MFP10が、P2Pモードで動作すべきか、R/Wモードで動作すべきか、を判断する。CPU32は、MFP10がP2Pモードで動作すべきと判断する場合(S110でYESの場合)に、S112に進み、MFP10がR/Wモードで動作すべきと判断する場合(S110でNOの場合)に、図5のS160に進む。
(Poly processing of MFP; FIGS. 4 and 5)
Subsequently, the content of the Poll processing of the MFP will be described with reference to FIGS. 4 and 5. As described above, when the NFC I / F 22 performs the Poll operation, the MFP 10 operates in either the P2P mode or the R / W mode according to the received operable mode signal. In S110, the CPU 32 determines whether the MFP 10 should operate in the P2P mode or the R / W mode based on the received operable mode signal. When the CPU32 determines that the MFP10 should operate in the P2P mode (YES in S110), the CPU32 proceeds to S112 and determines that the MFP10 should operate in the R / W mode (NO in S110). , Proceed to S160 of FIG.

(MFPのPoll処理;P2Pモード(図4))
S112では、CPU32は、NFC I/F22を介して、P2Pモードに対応するActivationコマンドを携帯端末50に送信する。次いで、S114では、CPU32は、携帯端末50から、NFC I/F22を介して、Activationコマンドに対するレスポンスコマンド(即ちOKコマンド)を受信する。これにより、MFP10と携帯端末50との間にNFC方式の通信リンクが確立される。
(Mliple processing of MFP; P2P mode (Fig. 4))
In S112, the CPU 32 transmits an activation command corresponding to the P2P mode to the mobile terminal 50 via the NFC I / F22. Next, in S114, the CPU 32 receives a response command (that is, an OK command) to the Activation command from the mobile terminal 50 via the NFC I / F22. As a result, an NFC communication link is established between the MFP 10 and the mobile terminal 50.

次いで、S116では、CPU32は、確認コマンド送信処理を開始する。確認コマンド送信処理では、CPU32は、確認コマンドを、NFC I/F22を介して、携帯端末50に送信して、携帯端末50から、NFC I/F22を介して、確認コマンドに対するレスポンスコマンド(即ちOKコマンド)を受信する。なお、CPU32は、S116で確認コマンド送信処理を開始すると、後述のS138が実行されるまで、又は、後述のS144で通信リンクが切断されるまで、確認コマンド送信処理を継続して実行する。 Next, in S116, the CPU 32 starts the confirmation command transmission process. In the confirmation command transmission process, the CPU 32 transmits the confirmation command to the mobile terminal 50 via the NFC I / F22, and the response command to the confirmation command (that is, OK) from the mobile terminal 50 via the NFC I / F22. Command) is received. When the confirmation command transmission process is started in S116, the CPU 32 continues to execute the confirmation command transmission process until S138 described later is executed or the communication link is disconnected in S144 described later.

S118〜S128は、図2のS18〜S28と同様である。S130〜S136は、図2のS30〜S36と同様である。また、S140は、図2のS40と同様である。S142では、CPU32は、NFC I/F22を介して、Deactivationコマンドを携帯端末50に送信する。次いで、S144では、CPU32は、携帯端末50から、NFC I/F22を介して、Deactivationコマンドに対するレスポンスコマンド(即ちOKコマンド)を受信する。これにより、S114で確立された通信リンクが切断される。 S118 to S128 are the same as S18 to S28 in FIG. S130 to S136 are the same as S30 to S36 in FIG. Further, S140 is the same as S40 in FIG. In S142, the CPU 32 transmits a Deactivation command to the mobile terminal 50 via the NFC I / F 22. Next, in S144, the CPU 32 receives a response command (that is, an OK command) to the Deactivation command from the mobile terminal 50 via the NFC I / F22. As a result, the communication link established in S114 is disconnected.

S138では、CPU32は、S114で確立された通信リンクを切断するための切断処理を実行する。S138の切断処理の手法として、ソフトウェア的切断処理と、ハードウェア的切断処理と、の2つの手法が考えられる。CPU32は、どちらの手法の切断処理を実行してもよい。 In S138, the CPU 32 executes a disconnection process for disconnecting the communication link established in S114. As a method of the cutting process of S138, two methods, a software-like cutting process and a hardware-like cutting process, can be considered. The CPU 32 may execute the disconnection process of either method.

CPU32がソフトウェア的切断処理を実行する場合には、CPU32は、NFC I/F22を介して、Deactivationコマンドを携帯端末50に送信して、携帯端末50から、NFC I/F22を介して、Deactivationコマンドに対するレスポンスコマンド(即ちOKコマンド)を受信する。これにより、S114で確立された通信リンクが切断される。CPU32は、ソフトウェア的切断処理(Deactivationコマンドの送信、及び、OKコマンドの受信)を実行することによって、通信リンクを適切に切断することができる。 When the CPU 32 executes the software disconnection process, the CPU 32 transmits a Deactivation command to the mobile terminal 50 via the NFC I / F22, and the Deactivation command is transmitted from the mobile terminal 50 via the NFC I / F22. Receives a response command (that is, an OK command) to. As a result, the communication link established in S114 is disconnected. The CPU 32 can appropriately disconnect the communication link by executing the software disconnection process (transmission of the Deactivation command and reception of the OK command).

なお、ソフトウェア的切断処理は、上記のように、CPU32がDeactivationコマンドを送信する手法に限られない。例えば、CPU32は、S116で開始された確認コマンド送信処理を終了させてもよい。即ち、CPU32は、確認コマンドを携帯端末50に送信しない。携帯端末50は、所定期間に亘って、MFP10から確認コマンドを受信しない場合に、タイムアウトと判断する。これにより、携帯端末50は、通信リンクに関する処理(即ち、確認コマンドの受信の監視等)を終了し、この結果、通信リンクが切断される。この手法も、ソフトウェア的切断処理の一例である。 The software disconnection process is not limited to the method in which the CPU 32 transmits a Deactivation command as described above. For example, the CPU 32 may end the confirmation command transmission process started in S116. That is, the CPU 32 does not send the confirmation command to the mobile terminal 50. When the mobile terminal 50 does not receive the confirmation command from the MFP 10 for a predetermined period of time, the mobile terminal 50 determines that the time-out has occurred. As a result, the mobile terminal 50 ends the processing related to the communication link (that is, monitoring the reception of the confirmation command, etc.), and as a result, the communication link is disconnected. This method is also an example of software-like disconnection processing.

一方において、CPU32がハードウェア的切断処理を実行する場合には、CPU32は、NFC I/F22の動作を一時的に停止させる。具体的に言うと、例えば、CPU32は、NFC I/F22が動作を停止するための指示を、NFC I/F22に送信する。従って、CPU32は、NFC I/F22を介して、S116で開始された確認コマンド送信処理を実行することができなくなる。この場合、携帯端末50は、タイムアウトと判断し、通信リンクに関する処理(即ち、確認コマンドの受信の監視等)を終了し、この結果、通信リンクが切断される。CPU32は、ハードウェア的切断処理(NFC I/F22の動作の停止)を実行することによって、通信リンクを適切に切断することができる。 On the other hand, when the CPU 32 executes the hardware disconnection process, the CPU 32 temporarily stops the operation of the NFC I / F 22. Specifically, for example, the CPU 32 transmits an instruction for the NFC I / F 22 to stop the operation to the NFC I / F 22. Therefore, the CPU 32 cannot execute the confirmation command transmission process started in S116 via the NFC I / F22. In this case, the mobile terminal 50 determines that the time-out has occurred, ends the processing related to the communication link (that is, monitoring the reception of the confirmation command, etc.), and as a result, the communication link is disconnected. The CPU 32 can appropriately disconnect the communication link by executing the hardware disconnection process (stopping the operation of the NFC I / F 22).

なお、NFC I/F22の動作を停止させる手法は、上記のように、CPU32からNFC I/F22に指示を送信する手法に限られない。例えば、CPU32は、NFC I/F22への電力供給を一時的に停止することによって、NFC I/F22の動作を一時的に停止させてもよい。この手法も、ハードウェア的切断処理の一例である。S138が終了すると、MFPのPoll処理が終了する。 The method of stopping the operation of the NFC I / F 22 is not limited to the method of transmitting an instruction from the CPU 32 to the NFC I / F 22 as described above. For example, the CPU 32 may temporarily stop the operation of the NFC I / F 22 by temporarily stopping the power supply to the NFC I / F 22. This method is also an example of hardware disconnection processing. When S138 is completed, the Poll processing of the MFP is completed.

(MFPのPoll処理;R/Wモード(図5))
続いて、図5を参照して、図4のS110でNOと判断される場合(即ちMFP10がR/Wモードで動作すべきと判断される場合)の処理の内容を説明する。S160〜S164は、図4のS112,S114,S118と同様である。ただし、S160では、CPU32は、R/Wモードに対応するActivationコマンドを送信する。
(Poly processing of MFP; R / W mode (Fig. 5))
Subsequently, with reference to FIG. 5, the content of the process when NO is determined in S110 of FIG. 4 (that is, when it is determined that the MFP 10 should operate in the R / W mode) will be described. S160 to S164 are the same as S112, S114, and S118 in FIG. However, in S160, the CPU 32 transmits an Activation command corresponding to the R / W mode.

S164でNOの場合(即ち送信フラグが「0」である場合)には、S165において、CPU32は、MFP10がReaderモードに従って動作すべきことを決定する。これにより、CPU32は、携帯端末50の擬似的なカードから対象データを読み出すこと、即ち、携帯端末50から対象データを受信することができる。この後に実行されるS166〜S172は、図3のS66〜S72と同様である。 In the case of NO in S164 (that is, when the transmission flag is "0"), in S165, the CPU 32 determines that the MFP 10 should operate according to the Reader mode. As a result, the CPU 32 can read the target data from the pseudo card of the mobile terminal 50, that is, can receive the target data from the mobile terminal 50. S166 to S172 executed after this are the same as S66 to S72 in FIG.

一方において、S164でYESの場合(即ち送信フラグが「1」である場合)には、S173において、CPU32は、MFP10がWriterモードに従って動作すべきことを決定する。これにより、CPU32は、携帯端末50の擬似的なカードに対象データを書き込むこと、即ち、携帯端末50に対象データを送信することができる。この後に実行されるS174〜S182は、図3のS74〜S82と同様である。なお、S186〜S190は、図4のS140〜S144と同様である。 On the other hand, if YES in S164 (that is, when the transmission flag is "1"), in S173, the CPU 32 determines that the MFP 10 should operate according to the Writer mode. As a result, the CPU 32 can write the target data to the pseudo card of the mobile terminal 50, that is, can transmit the target data to the mobile terminal 50. S174 to S182 executed after this are the same as S74 to S82 in FIG. Note that S186 to S190 are the same as S140 to S144 in FIG.

(具体的なケース)
続いて、本実施例によって実現される具体的なケースを説明する。以下の各ケースは、MFP10が図2〜図5の各処理を実行することによって、実現される。
(Specific case)
Subsequently, a specific case realized by this embodiment will be described. Each of the following cases is realized by the MFP 10 executing each of the processes of FIGS. 2 to 5.

(ケースA1;図6)
ケースA1では、MFP10がListen動作を実行し(即ち携帯端末50がPoll動作を実行し)、さらに、携帯端末50がP2Pモードに従って動作可能である。
(Case A1; Fig. 6)
In case A1, the MFP 10 executes the Listen operation (that is, the mobile terminal 50 executes the Poll operation), and the mobile terminal 50 can operate according to the P2P mode.

MFP10は、携帯端末50からActivationコマンドを受信して(図2のS10)、OKコマンドを携帯端末50に送信する(S14)。これにより、MFP10と携帯端末50との間に通信リンクL1が確立される。この場合、MFP10は、確認コマンド応答処理を開始する(S16)。即ち、MFP10は、携帯端末50から確認コマンドを受信して、OKコマンドを携帯端末50に送信する。 The MFP 10 receives the Activation command from the mobile terminal 50 (S10 in FIG. 2) and transmits the OK command to the mobile terminal 50 (S14). As a result, the communication link L1 is established between the MFP 10 and the mobile terminal 50. In this case, the MFP 10 starts the confirmation command response process (S16). That is, the MFP 10 receives the confirmation command from the mobile terminal 50 and transmits the OK command to the mobile terminal 50.

ケースA1では、通信リンクL1が確立された時点では、送信フラグが「0」である。この場合、MFP10は、図2のS18でNOと判断し、次いで、ネゴシエーションを実行して、MFP10がデータ受信を実行することを、携帯端末50に通知する(S20)。MFP10は、携帯端末50から第1の対象データを受信し(S22)、第1の対象データを処理することによって第2の対象データを生成する(S24)。この場合、MFP10は、送信フラグを「1」に設定し、通信済フラグを「1」に設定する(S28)。 In case A1, the transmission flag is "0" when the communication link L1 is established. In this case, the MFP 10 determines NO in S18 of FIG. 2, then executes negotiation to notify the mobile terminal 50 that the MFP 10 executes data reception (S20). The MFP 10 receives the first target data from the mobile terminal 50 (S22) and generates the second target data by processing the first target data (S24). In this case, the MFP 10 sets the transmission flag to "1" and the communication completed flag to "1" (S28).

次いで、MFP10は、ソフトウェア的切断処理を実行する(S38)。即ち、MFP10は、携帯端末50から確認コマンドを受信しても、OKコマンドを送信しない。この場合、MFP10は、携帯端末50からDeactivationコマンドを受信して、OKコマンドを携帯端末50送信する。この結果、通信リンクL1が切断される。 Next, the MFP 10 executes a software disconnection process (S38). That is, even if the MFP 10 receives the confirmation command from the mobile terminal 50, it does not send the OK command. In this case, the MFP 10 receives the Deaction command from the mobile terminal 50 and transmits the OK command to the mobile terminal 50. As a result, the communication link L1 is disconnected.

その後、MFP10がListen動作を再び実行する(即ち携帯端末50がPoll動作を再び実行する)。MFP10は、携帯端末50からActivationコマンドを受信して(S10)、OKコマンドを携帯端末50に送信する(S14)。この結果、MFP10と携帯端末50との間に通信リンクL2が確立される。 After that, the MFP 10 executes the Listen operation again (that is, the mobile terminal 50 executes the Poll operation again). The MFP 10 receives the Activation command from the mobile terminal 50 (S10) and transmits the OK command to the mobile terminal 50 (S14). As a result, the communication link L2 is established between the MFP 10 and the mobile terminal 50.

第1の対象データが通信された際に、送信フラグが「1」に設定されている。この場合、MFP10は、図2のS18でYESと判断し、次いで、ネゴシエーションを実行して、MFP10がデータ送信を実行することを、携帯端末50に通知する(S30)。MFP10は、第2の対象データを携帯端末50に送信する(S32)。この場合、MFP10は、送信フラグを「0」に設定し、通信済フラグを「0」に設定する(S40)。次いで、MFP10は、携帯端末50からDeactivationコマンドを受信して(S42)、OKコマンドを携帯端末50に送信する(S44)。この結果、通信リンクL2が切断される。 When the first target data is communicated, the transmission flag is set to "1". In this case, the MFP 10 determines YES in S18 of FIG. 2, and then executes negotiation to notify the mobile terminal 50 that the MFP 10 executes data transmission (S30). The MFP 10 transmits the second target data to the mobile terminal 50 (S32). In this case, the MFP 10 sets the transmission flag to "0" and the communication completed flag to "0" (S40). Next, the MFP 10 receives the Deaction command from the mobile terminal 50 (S42) and transmits the OK command to the mobile terminal 50 (S44). As a result, the communication link L2 is disconnected.

上述したように、P2Pモードは、双方向通信のためのモードである。従って、同じ通信リンクL1を利用して、第1及び第2の対象データの両方を通信する構成が考えられる。しかしながら、携帯端末50が、P2Pモードに従って、双方向通信を適切に実行することができない可能性がある。例えば、携帯端末50のOS(Operating System)が、通信リンクL1を利用して、第1の対象データを送信した後に、同じ通信リンクL1を利用して、第2の対象データを受信する動作を許容しない可能性がある。 As described above, the P2P mode is a mode for bidirectional communication. Therefore, it is conceivable that the same communication link L1 is used to communicate both the first and second target data. However, there is a possibility that the mobile terminal 50 cannot properly perform bidirectional communication according to the P2P mode. For example, the OS (Operating System) of the mobile terminal 50 uses the communication link L1 to transmit the first target data, and then uses the same communication link L1 to receive the second target data. May not be tolerated.

このような可能性に鑑みて、本実施例では、ケースA1に示されるように、MFP10は、P2Pに対応する通信リンクL1を利用して、携帯端末50から第1の対象データを受信すると、通信リンクL1を切断する。次いで、MFP10は、P2Pに対応する通信リンクL2を再確立し、通信リンクL2を利用して、第2の対象データを携帯端末50に送信する。従って、携帯端末50がP2Pモードの双方向通信を許容しない場合でも、MFP10は、P2Pモードに従って、第1の対象データと、第1の対象データを処理することによって生成される第2の対象データと、の両方を、携帯端末50と適切に通信することができる。 In view of such a possibility, in the present embodiment, as shown in Case A1, when the MFP 10 receives the first target data from the mobile terminal 50 by using the communication link L1 corresponding to P2P, The communication link L1 is disconnected. Next, the MFP 10 reestablishes the communication link L2 corresponding to P2P, and uses the communication link L2 to transmit the second target data to the mobile terminal 50. Therefore, even if the mobile terminal 50 does not allow bidirectional communication in the P2P mode, the MFP 10 processes the first target data and the second target data according to the P2P mode to generate the second target data. And both can be appropriately communicated with the mobile terminal 50.

(ケースA2;図7)
ケースA2では、MFP10が、ソフトウェア的切断処理の代わりに、ハードウェア的切断処理(図2のS38)を実行する点が、ケースA1とは異なる。
(Case A2; Fig. 7)
Case A2 is different from case A1 in that the MFP 10 executes a hardware disconnection process (S38 in FIG. 2) instead of the software disconnection process.

即ち、MFP10は、ハードウェア的切断処理において、NFC I/F22の動作を一時的に停止させる。このために、MFP10は、携帯端末50から確認コマンドを受信しても、OKコマンドを送信しない。また、MFP10は、携帯端末50からDeactivationコマンドを受信しても、OKコマンドを送信しない。これにより、携帯端末50は、タイムアウトと判断し、この結果、通信リンクL1が切断される。その他の点は、ケースA1と同様である。ケースA2でも、ケースA1と同様の作用及び効果が得られる。 That is, the MFP 10 temporarily stops the operation of the NFC I / F 22 in the hardware disconnection process. Therefore, even if the MFP 10 receives the confirmation command from the mobile terminal 50, it does not send the OK command. Further, even if the MFP 10 receives the Deaction command from the mobile terminal 50, it does not transmit the OK command. As a result, the mobile terminal 50 determines that the time-out has occurred, and as a result, the communication link L1 is disconnected. Other points are the same as in case A1. In case A2, the same action and effect as in case A1 can be obtained.

なお、ケースA2のハードウェア的切断処理を実行すると、NFC I/F22が復帰するまでに長時間を要する可能性がある。従って、処理の迅速化という観点では、ケースA1のソフトウェア的切断処理を実行することが好ましい。ただし、ケースA2のハードウェア的切断処理によると、通信リンクL1を確実に切断することができる。従って、通信リンクの切断の確実化という観点では、ケースA2のハードウェア的切断処理を実行することが好ましい。その他のケース(例えば図4のケースA4)でも、MFP10のベンダが重視する観点に応じて、ソフトウェア的切断処理及びハードウェア的切断処理のどちらが採用されてもよい。 If the hardware disconnection process of Case A2 is executed, it may take a long time for the NFC I / F 22 to recover. Therefore, from the viewpoint of speeding up the process, it is preferable to execute the software-like disconnection process of Case A1. However, according to the hardware disconnection process of case A2, the communication link L1 can be reliably disconnected. Therefore, from the viewpoint of ensuring the disconnection of the communication link, it is preferable to execute the hardware disconnection process of Case A2. In other cases (for example, case A4 in FIG. 4), either software-based disconnection processing or hardware-based disconnection processing may be adopted depending on the viewpoint emphasized by the vendor of the MFP 10.

(ケースA3;図8)
ケースA3では、MFP10がPoll動作を実行し(即ち携帯端末50がListen動作を実行し)、さらに、携帯端末50がP2Pモードに従って動作可能である。
(Case A3; Fig. 8)
In case A3, the MFP 10 executes the Poll operation (that is, the mobile terminal 50 executes the Listen operation), and the mobile terminal 50 can operate according to the P2P mode.

MFP10は、Activationコマンドを携帯端末50に送信して(図4のS112)、携帯端末50からOKコマンドを受信する(S114)。これにより、MFP10と携帯端末50との間に通信リンクL1が確立される。 The MFP 10 transmits an activation command to the mobile terminal 50 (S112 in FIG. 4), and receives an OK command from the mobile terminal 50 (S114). As a result, the communication link L1 is established between the MFP 10 and the mobile terminal 50.

ケースA3では、通信リンクL1が確立された時点では、送信フラグが「0」である。この場合、MFP10は、図4のS118でNOと判断し、次いで、ネゴシエーションを実行して、MFP10がデータ受信を実行することを、携帯端末50に通知する(S120)。MFP10は、携帯端末50から第1の対象データを受信し(S122)、第1の対象データを処理することによって第2の対象データを生成する(S124)。この場合、MFP10は、送信フラグを「1」に設定し、通信済フラグを「1」に設定する(S128)。 In case A3, the transmission flag is "0" when the communication link L1 is established. In this case, the MFP 10 determines NO in S118 of FIG. 4, and then executes negotiation to notify the mobile terminal 50 that the MFP 10 executes data reception (S120). The MFP 10 receives the first target data from the mobile terminal 50 (S122) and generates the second target data by processing the first target data (S124). In this case, the MFP 10 sets the transmission flag to "1" and the communication completed flag to "1" (S128).

次いで、MFP10は、ソフトウェア的切断処理を実行する(S138)。即ち、MFP10は、Deactivationコマンドを携帯端末50に送信して、携帯端末50からOKコマンドを受信する。この結果、通信リンクL1が切断される。 Next, the MFP 10 executes a software disconnection process (S138). That is, the MFP 10 transmits a Deactivation command to the mobile terminal 50 and receives an OK command from the mobile terminal 50. As a result, the communication link L1 is disconnected.

その後、MFP10がPoll動作を再び実行する(即ち携帯端末50がListen動作を再び実行する)。MFP10は、Activationコマンドを携帯端末50に送信して(S112)、携帯端末50からOKコマンドを受信する(S114)。この結果、MFP10と携帯端末50との間に通信リンクL2が確立される。 After that, the MFP 10 executes the Poll operation again (that is, the mobile terminal 50 executes the Listen operation again). The MFP 10 transmits an activation command to the mobile terminal 50 (S112), and receives an OK command from the mobile terminal 50 (S114). As a result, the communication link L2 is established between the MFP 10 and the mobile terminal 50.

第1の対象データが通信された際に、送信フラグが「1」に設定されている。この場合、MFP10は、図4のS118でYESと判断し、次いで、ネゴシエーションを実行して、MFP10がデータ送信を実行することを、携帯端末50に通知する(S130)。MFP10は、第2の対象データを携帯端末50に送信する(S132)。この場合、MFP10は、送信フラグを「0」に設定し、通信済フラグを「0」に設定する(S140)。次いで、MFP10は、Deactivationコマンドを携帯端末50に送信して(S142)、携帯端末50からOKコマンドを受信する(S144)。この結果、通信リンクL2が切断される。 When the first target data is communicated, the transmission flag is set to "1". In this case, the MFP 10 determines YES in S118 of FIG. 4, and then executes negotiation to notify the mobile terminal 50 that the MFP 10 executes data transmission (S130). The MFP 10 transmits the second target data to the mobile terminal 50 (S132). In this case, the MFP 10 sets the transmission flag to "0" and the communication completed flag to "0" (S140). Next, the MFP 10 transmits a Deactivation command to the mobile terminal 50 (S142) and receives an OK command from the mobile terminal 50 (S144). As a result, the communication link L2 is disconnected.

ケースA3でも、MFP10は、P2Pモードに従って、第1の対象データと、第1の対象データを処理することによって生成される第2の対象データと、の両方を、携帯端末50と適切に通信することができる。 In case A3 as well, the MFP 10 appropriately communicates both the first target data and the second target data generated by processing the first target data with the mobile terminal 50 according to the P2P mode. be able to.

(ケースA4;図9)
ケースA4では、ソフトウェア的切断処理の内容が、ケースA3とは異なる。なお、MFP10は、通信リンクL1が確立されると、確認コマンド送信処理を開始する(S116)。即ち、MFP10は、確認コマンドを携帯端末50に送信して、携帯端末50からOKコマンドを受信する。
(Case A4; Fig. 9)
In case A4, the content of the software disconnection process is different from that in case A3. When the communication link L1 is established, the MFP 10 starts the confirmation command transmission process (S116). That is, the MFP 10 transmits a confirmation command to the mobile terminal 50 and receives an OK command from the mobile terminal 50.

ケースA3のソフトウェア的切断処理では、MFP10は、Deactivationコマンドを携帯端末50に送信して、携帯端末50からOKコマンドを受信する(図8参照)。これに代えて、ケースA4では、ソフトウェア的切断処理において、MFP10は、確認コマンド送信処理を終了する(S138)。これにより、携帯端末50は、タイムアウトと判断し、この結果、通信リンクL1が切断される。その他の点は、ケースA3と同様である。ケースA4でも、ケースA3と同様の作用及び効果が得られる。 In the software disconnection process of case A3, the MFP 10 transmits a Deactivation command to the mobile terminal 50 and receives an OK command from the mobile terminal 50 (see FIG. 8). Instead, in case A4, in the software disconnection process, the MFP 10 ends the confirmation command transmission process (S138). As a result, the mobile terminal 50 determines that the time-out has occurred, and as a result, the communication link L1 is disconnected. Other points are the same as in case A3. In case A4, the same action and effect as in case A3 can be obtained.

なお、上述したように、MFP10は、NFC I/F22の動作を一時的に停止させるハードウェア的切断処理を実行してもよい(S138)。この場合も、確認コマンドが携帯端末50に送信されないために、携帯端末50は、タイムアウトと判断し、この結果、通信リンクL1が切断される。このような構成でも、同様の作用及び効果が得られる。 As described above, the MFP 10 may execute a hardware disconnection process for temporarily stopping the operation of the NFC I / F 22 (S138). Also in this case, since the confirmation command is not transmitted to the mobile terminal 50, the mobile terminal 50 determines that the time-out has occurred, and as a result, the communication link L1 is disconnected. Similar actions and effects can be obtained with such a configuration.

(その他のケース)
図6〜図9のケースA1〜A4では、第1の通信リンクL1を確立する際、及び、第2の通信リンクL2を確立する際、の両方において、MFP10は、同じ機器(即ち、図6及び図7ではListen機器、図8及び図9ではPoll機器)として動作する。しかしながら、例えば、MFP10は、第1の通信リンクL1を確立する際に、Listen機器として動作し、第2の通信リンクL2を確立する際に、Poll機器として動作してもよい。また、例えば、MFP10は、第1の通信リンクL1を確立する際に、Poll機器として動作し、第2の通信リンクL2を確立する際に、Listen機器として動作してもよい。
(Other cases)
In cases A1 to A4 of FIGS. 6 to 9, the MFP10 is the same device (that is, in FIG. 6) both when establishing the first communication link L1 and when establishing the second communication link L2. And in FIG. 7, it operates as a Listen device, and in FIGS. 8 and 9, it operates as a Poll device). However, for example, the MFP 10 may operate as a Listen device when establishing the first communication link L1 and as a Poll device when establishing the second communication link L2. Further, for example, the MFP 10 may operate as a Poll device when establishing the first communication link L1 and as a Listen device when establishing the second communication link L2.

また、図6〜図9のケースA1〜A4では、MFP10は、携帯端末50から第1の対象データを受信して、第2の対象データを携帯端末50に送信する。即ち、ケースA1〜A4は、対象データに関する上記の第1〜第5の例に対応する。しかしながら、MFP10は、第1の対象データを携帯端末50に送信して、携帯端末50から第2の対象データを受信してもよい。即ち、対象データに関する上記の第6の例が実現されてもよい。いずれのケースでも、ケースA1〜A4と同様の作用及び効果が得られる。 Further, in cases A1 to A4 of FIGS. 6 to 9, the MFP 10 receives the first target data from the mobile terminal 50 and transmits the second target data to the mobile terminal 50. That is, cases A1 to A4 correspond to the above-mentioned first to fifth examples regarding the target data. However, the MFP 10 may transmit the first target data to the mobile terminal 50 and receive the second target data from the mobile terminal 50. That is, the above-mentioned sixth example regarding the target data may be realized. In any case, the same actions and effects as in cases A1 to A4 can be obtained.

(ケースB1;図10)
ケースB1では、MFP10がListen動作を実行し(即ち携帯端末50がPoll動作を実行し)、さらに、携帯端末50がR/Wモード及びCEモードのみに従って動作可能である。従って、MFP10がCEモードに従って動作し、携帯端末50がR/Wモードに従って動作する。
(Case B1; FIG. 10)
In case B1, the MFP 10 executes the Listen operation (that is, the mobile terminal 50 executes the Poll operation), and the mobile terminal 50 can operate only according to the R / W mode and the CE mode. Therefore, the MFP 10 operates according to the CE mode, and the mobile terminal 50 operates according to the R / W mode.

MFP10は、携帯端末50からActivationコマンドを受信して(図2のS10)、OKコマンドを携帯端末50に送信する(S62)。これにより、MFP10と携帯端末50との間に通信リンクL1が確立される。 The MFP 10 receives the activation command from the mobile terminal 50 (S10 in FIG. 2) and transmits the OK command to the mobile terminal 50 (S62). As a result, the communication link L1 is established between the MFP 10 and the mobile terminal 50.

ケースB1では、通信リンクL1が確立された時点では、送信フラグが「0」である。この場合、MFP10は、図3のS64でNOと判断し、携帯端末50から第1の対象データを受信し(S66)、第1の対象データを処理することによって第2の対象データを生成する(S68)。この場合、MFP10は、送信フラグを「1」に設定し、通信済フラグを「1」に設定する(S72)。 In case B1, the transmission flag is "0" when the communication link L1 is established. In this case, the MFP 10 determines NO in S64 of FIG. 3, receives the first target data from the mobile terminal 50 (S66), and generates the second target data by processing the first target data. (S68). In this case, the MFP 10 sets the transmission flag to "1" and the communication completed flag to "1" (S72).

次いで、MFP10は、ソフトウェア的切断処理を実行する(S80)。即ち、MFP10は、携帯端末50からDeactivationコマンドを受信して、OKコマンドを携帯端末50に送信する。この結果、通信リンクL1が切断される。 Next, the MFP 10 executes a software disconnection process (S80). That is, the MFP 10 receives the Deaction command from the mobile terminal 50 and transmits the OK command to the mobile terminal 50. As a result, the communication link L1 is disconnected.

次いで、MFP10は、動作制御処理を実行する(S82)。即ち、MFP10は、携帯端末50からポーリング信号を受信しても、レスポンス信号を送信しない(即ち、NFC I/F22がListen動作を一時的に実行しない)。また、MFP10は、ポーリング信号を携帯端末50に送信しない(即ち、NFC I/F22がPoll動作を一時的に実行しない)。これにより、携帯端末50は、MFP10の離反を検知する。この結果、MFP10及び携帯端末50が近接している状態が維持されても、後述の通信リンクL2を適切に確立することができる。 Next, the MFP 10 executes the operation control process (S82). That is, even if the MFP 10 receives the polling signal from the mobile terminal 50, it does not transmit the response signal (that is, the NFC I / F 22 does not temporarily execute the Listen operation). Further, the MFP 10 does not transmit the polling signal to the mobile terminal 50 (that is, the NFC I / F 22 does not temporarily execute the Poll operation). As a result, the mobile terminal 50 detects the separation of the MFP 10. As a result, even if the state in which the MFP 10 and the mobile terminal 50 are kept close to each other is maintained, the communication link L2 described later can be appropriately established.

その後、MFP10がListen動作を再び実行する(即ち携帯端末50がPoll動作を再び実行する)。MFP10は、携帯端末50からActivationコマンドを受信して(図2のS10)、OKコマンドを携帯端末50に送信する(S62)。この結果、MFP10と携帯端末50との間に通信リンクL2が確立される。 After that, the MFP 10 executes the Listen operation again (that is, the mobile terminal 50 executes the Poll operation again). The MFP 10 receives the activation command from the mobile terminal 50 (S10 in FIG. 2) and transmits the OK command to the mobile terminal 50 (S62). As a result, the communication link L2 is established between the MFP 10 and the mobile terminal 50.

第1の対象データが通信された際に、送信フラグが「1」に設定されている。この場合、MFP10は、図3のS64でYESと判断し、第2の対象データを携帯端末50に送信する(S74)。この場合、MFP10は、送信フラグを「0」に設定し、通信済フラグを「0」に設定する(S86)。次いで、MFP10は、携帯端末50からDeactivationコマンドを受信して(S88)、OKコマンドを携帯端末50に送信する(S90)。この結果、通信リンクL2が切断される。 When the first target data is communicated, the transmission flag is set to "1". In this case, the MFP 10 determines YES in S64 of FIG. 3 and transmits the second target data to the mobile terminal 50 (S74). In this case, the MFP 10 sets the transmission flag to "0" and the communication completed flag to "0" (S86). Next, the MFP 10 receives the Deaction command from the mobile terminal 50 (S88) and transmits the OK command to the mobile terminal 50 (S90). As a result, the communication link L2 is disconnected.

上述したように、R/Wモード及びCEモードは、単方向通信のためのモードである。従って、同じ通信リンクL1を利用して、第1及び第2の対象データの両方を通信することができない。本実施例では、ケースB1に示されるように、MFP10は、通信リンクL1を利用して、携帯端末50から第1の対象データを受信すると、通信リンクL1を切断する。次いで、MFP10は、通信リンクL2を再確立し、通信リンクL2を利用して、第2の対象データを携帯端末50に送信する。従って、MFP10及び携帯端末50がR/Wモード及びCEモードに従って動作する場合でも、MFP10は、第1の対象データと、第1の対象データを処理することによって生成される第2の対象データと、の両方を、携帯端末50と適切に通信することができる。即ち、MFP10は、擬似的な双方向通信を実現することができる。 As described above, the R / W mode and the CE mode are modes for unidirectional communication. Therefore, it is not possible to communicate both the first and second target data using the same communication link L1. In this embodiment, as shown in case B1, the MFP 10 disconnects the communication link L1 when it receives the first target data from the mobile terminal 50 by using the communication link L1. Next, the MFP 10 reestablishes the communication link L2 and uses the communication link L2 to transmit the second target data to the mobile terminal 50. Therefore, even when the MFP 10 and the mobile terminal 50 operate according to the R / W mode and the CE mode, the MFP 10 has the first target data and the second target data generated by processing the first target data. , Both can be appropriately communicated with the mobile terminal 50. That is, the MFP 10 can realize pseudo bidirectional communication.

(ケースB2;図11)
ケースB2では、MFP10がPoll動作を実行し(即ち携帯端末50がListen動作を実行し)、さらに、携帯端末50がR/Wモード及びCEモードのみに従って動作可能である。従って、MFP10がR/Wモードに従って動作し、携帯端末50がCEモードに従って動作する。
(Case B2; FIG. 11)
In case B2, the MFP 10 executes the Poll operation (that is, the mobile terminal 50 executes the Listen operation), and the mobile terminal 50 can operate only according to the R / W mode and the CE mode. Therefore, the MFP 10 operates according to the R / W mode, and the mobile terminal 50 operates according to the CE mode.

MFP10は、Activationコマンドを携帯端末50に送信して(図5のS160)、携帯端末50からOKコマンドを受信する(S162)。これにより、MFP10と携帯端末50との間に通信リンクL1が確立される。 The MFP 10 transmits an activation command to the mobile terminal 50 (S160 in FIG. 5), and receives an OK command from the mobile terminal 50 (S162). As a result, the communication link L1 is established between the MFP 10 and the mobile terminal 50.

ケースB2では、通信リンクL1が確立された時点では、送信フラグが「0」である。この場合、MFP10は、図5のS164でNOと判断し、MFP10がReaderモードに従って動作すべきことを決定する(S165)。MFP10は、携帯端末50から第1の対象データを受信し(S166)、第1の対象データを処理することによって第2の対象データを生成する(S168)。この場合、MFP10は、送信フラグを「1」に設定し、通信済フラグを「1」に設定する(S172)。 In case B2, the transmission flag is "0" when the communication link L1 is established. In this case, the MFP 10 determines NO in S164 of FIG. 5 and determines that the MFP 10 should operate according to the Reader mode (S165). The MFP 10 receives the first target data from the mobile terminal 50 (S166) and generates the second target data by processing the first target data (S168). In this case, the MFP 10 sets the transmission flag to "1" and the communication completed flag to "1" (S172).

次いで、MFP10は、ソフトウェア的切断処理を実行する(S180)。即ち、MFP10は、Deactivationコマンドを携帯端末50に送信して、携帯端末50からOKコマンドを受信する。この結果、通信リンクL1が切断される。 Next, the MFP 10 executes a software disconnection process (S180). That is, the MFP 10 transmits a Deactivation command to the mobile terminal 50 and receives an OK command from the mobile terminal 50. As a result, the communication link L1 is disconnected.

次いで、MFP10は、動作制御処理を実行する(S182)。これにより、携帯端末50は、MFP10の離反を検知する。その後、MFP10がPoll動作を再び実行する(即ち携帯端末50がListen動作を再び実行する)。MFP10は、Activationコマンドを携帯端末50に送信して(S160)、携帯端末50からOKコマンドを受信する(S162)。この結果、MFP10と携帯端末50との間に通信リンクL2が確立される。 Next, the MFP 10 executes the operation control process (S182). As a result, the mobile terminal 50 detects the separation of the MFP 10. After that, the MFP 10 executes the Poll operation again (that is, the mobile terminal 50 executes the Listen operation again). The MFP 10 transmits an activation command to the mobile terminal 50 (S160), and receives an OK command from the mobile terminal 50 (S162). As a result, the communication link L2 is established between the MFP 10 and the mobile terminal 50.

第1の対象データが通信された際に、送信フラグが「1」に設定されている。この場合、MFP10は、図5のS164でYESと判断し、MFP10がWriterモードに従って動作すべきことを決定する(S173)。MFP10は、第2の対象データを携帯端末50に送信する(S174)。この場合、MFP10は、送信フラグを「0」に設定し、通信済フラグを「0」に設定する(S186)。次いで、MFP10は、Deactivationコマンドを携帯端末50に送信して(S188)、携帯端末50からOKコマンドを受信する(S190)。この結果、通信リンクL2が切断される。 When the first target data is communicated, the transmission flag is set to "1". In this case, the MFP 10 determines YES in S164 of FIG. 5, and determines that the MFP 10 should operate according to the Writer mode (S173). The MFP 10 transmits the second target data to the mobile terminal 50 (S174). In this case, the MFP 10 sets the transmission flag to "0" and the communication completed flag to "0" (S186). Next, the MFP 10 transmits a Deactivation command to the mobile terminal 50 (S188), and receives an OK command from the mobile terminal 50 (S190). As a result, the communication link L2 is disconnected.

ケースB2でも、ケースB1と同様の作用及び効果が得られる。即ち、MFP10及び携帯端末50がR/Wモード及びCEモードに従って動作する場合でも、MFP10は、擬似的な双方向通信を実現することができる。 In case B2, the same action and effect as in case B1 can be obtained. That is, even when the MFP 10 and the mobile terminal 50 operate according to the R / W mode and the CE mode, the MFP 10 can realize pseudo bidirectional communication.

(その他のケース)
図10及び図11のケースB1,B2では、第1の通信リンクL1を確立する際、及び、第2の通信リンクL2を確立する際、の両方において、MFP10は、同じ機器(即ち、図10ではListen機器、図11ではPoll機器)として動作する。しかしながら、例えば、図12のケースB3に示されるように、MFP10は、第1の通信リンクL1を確立する際に、Listen機器(即ちCEモード)として動作し、第2の通信リンクL2を確立する際に、Poll機器(即ちWriterモード)として動作してもよい。また、例えば、図12のケースB4に示されるように、MFP10は、第1の通信リンクL1を確立する際に、Poll機器(即ちReaderモード)として動作し、第2の通信リンクL2を確立する際に、Listen機器(即ちCEモード)として動作してもよい。
(Other cases)
In cases B1 and B2 of FIGS. 10 and 11, the MFP10 is the same device (that is, in FIG. 10) both when establishing the first communication link L1 and when establishing the second communication link L2. In, it operates as a Listen device, and in FIG. 11, it operates as a Poll device). However, for example, as shown in case B3 of FIG. 12, the MFP 10 operates as a Listen device (that is, CE mode) when establishing the first communication link L1 and establishes the second communication link L2. At that time, it may operate as a Poll device (that is, a Writer mode). Further, for example, as shown in case B4 of FIG. 12, the MFP 10 operates as a Poll device (that is, Reader mode) when establishing the first communication link L1 and establishes the second communication link L2. At that time, it may operate as a Listen device (that is, CE mode).

また、図10及び図11のケースB1,B2では、MFP10は、携帯端末50から第1の対象データを受信して、第2の対象データを携帯端末50に送信する。即ち、ケースB1,B2は、対象データに関する上記の第1〜第5の例に対応する。しかしながら、図12のケースB5〜B8のように、MFP10は、第1の対象データを携帯端末50に送信して、携帯端末50から第2の対象データを受信してもよい。即ち、対象データに関する上記の第6の例が実現されてもよい。いずれのケースでも、ケースB1,B2と同様の作用及び効果が得られる。 Further, in cases B1 and B2 of FIGS. 10 and 11, the MFP 10 receives the first target data from the mobile terminal 50 and transmits the second target data to the mobile terminal 50. That is, cases B1 and B2 correspond to the above-mentioned first to fifth examples regarding the target data. However, as in cases B5 to B8 of FIG. 12, the MFP 10 may transmit the first target data to the mobile terminal 50 and receive the second target data from the mobile terminal 50. That is, the above-mentioned sixth example regarding the target data may be realized. In any case, the same actions and effects as in cases B1 and B2 can be obtained.

(対応関係)
MFP10、携帯端末50が、それぞれ、「通信装置」、「外部装置」の一例である。Activationコマンドが、「第1の確立コマンド」及び「第2の確立コマンド」の一例である。Deactivationコマンドが、「切断コマンド」の一例である。また、送信フラグ=1が、「送信情報」の一例である。また、図6〜図9のケースA1〜A4では、P2Pモードが、「送信用モード」及び「受信用モード」の一例である。また、図10のケースB1では、CEモードが、「送信用モード」及び「受信用モード」の一例である。また、図11のケースB2では、Writerモード、Readerモードが、それぞれ、「送信用モード」、「受信用モード」の一例である。
(Correspondence)
The MFP 10 and the mobile terminal 50 are examples of a “communication device” and an “external device”, respectively. The Activation command is an example of the "first establishment command" and the "second establishment command". The Deaction command is an example of a "disconnect command". Further, the transmission flag = 1 is an example of "transmission information". Further, in cases A1 to A4 of FIGS. 6 to 9, the P2P mode is an example of the “transmission mode” and the “reception mode”. Further, in case B1 of FIG. 10, the CE mode is an example of the “transmission mode” and the “reception mode”. Further, in case B2 of FIG. 11, the Writer mode and the Reader mode are examples of the “transmission mode” and the “reception mode”, respectively.

図2のS10,S14、図3のS62、図4のS112,S114、図5のS160,S162が、「第1の確立ステップ(さらに第1の確立手段)」及び「第2の確立ステップ(さらに第2の確立手段)」の一例である。図2のS22,S32、図3のS66,S74、図4のS122,S132、図5のS166,S174が、「第1の通信ステップ(さらに第1の通信手段)」及び「第2の通信ステップ(さらに第2の通信手段)」の一例である。また、図2のS38、図3のS80、図4のS138、図5のS180が、「切断ステップ(さらに切断手段)」の一例である。例えば、図2のS38、図4のS138が、それぞれ、「第1の切断手法」、「第2の切断手法」の一例である。また、例えば、図3のS80、図5のS180が、それぞれ、「第1の切断手法」、「第2の切断手法」の一例である。 S10 and S14 in FIG. 2, S62 in FIG. 3, S112 and S114 in FIG. 4, and S160 and S162 in FIG. 5 are "first establishment step (further first establishment means)" and "second establishment step (second establishment means). Further, it is an example of "second establishment means)". S22 and S32 in FIG. 2, S66 and S74 in FIG. 3, S122 and S132 in FIG. 4, and S166 and S174 in FIG. 5 are "first communication step (further first communication means)" and "second communication". This is an example of "step (further second communication means)". Further, S38 in FIG. 2, S80 in FIG. 3, S138 in FIG. 4, and S180 in FIG. 5 are examples of the “cutting step (further cutting means)”. For example, S38 in FIG. 2 and S138 in FIG. 4 are examples of a "first cutting method" and a "second cutting method," respectively. Further, for example, S80 in FIG. 3 and S180 in FIG. 5 are examples of the "first cutting method" and the "second cutting method", respectively.

また、図2のS16で開始される確認コマンド応答処理、図4のS116で開始される確認コマンド送信処理が、それぞれ、「第1の確認ステップ」、「第2の確認ステップ」の一例である。図3のS82、図5のS182が、「動作制御ステップ」の一例である。また、図2のS18、図3のS64、図4のS118、図5のS164が、「判断ステップ」の一例である。図2のS28,S36、図3のS72,S78、図4のS128,S136、図5のS172,S178が、「メモリ制御ステップ」の一例である。図2のS20、図4のS120が、「通知ステップ」の一例である。図5のS165,S173が、「決定ステップ」の一例である。図2のS24、図3のS68、図4のS124、図3のS168が、「処理ステップ」の一例である。また、図2のS22、図3のS66、図4のS122、図5のS166が、「受信ステップ」の一例である。図2のS32、図3のS74、図4のS132、図5のS174が、「送信ステップ」の一例である。 Further, the confirmation command response process started in S16 of FIG. 2 and the confirmation command transmission process started in S116 of FIG. 4 are examples of the "first confirmation step" and the "second confirmation step", respectively. .. S82 in FIG. 3 and S182 in FIG. 5 are examples of "motion control steps". Further, S18 in FIG. 2, S64 in FIG. 3, S118 in FIG. 4, and S164 in FIG. 5 are examples of the “judgment step”. S28 and S36 of FIG. 2, S72 and S78 of FIG. 3, S128 and S136 of FIG. 4, and S172 and S178 of FIG. 5 are examples of the “memory control step”. S20 of FIG. 2 and S120 of FIG. 4 are examples of the “notification step”. S165 and S173 in FIG. 5 are examples of “decision steps”. S24 of FIG. 2, S68 of FIG. 3, S124 of FIG. 4, and S168 of FIG. 3 are examples of “processing steps”. Further, S22 in FIG. 2, S66 in FIG. 3, S122 in FIG. 4, and S166 in FIG. 5 are examples of the “reception step”. S32 of FIG. 2, S74 of FIG. 3, S132 of FIG. 4, and S174 of FIG. 5 are examples of the “transmission step”.

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

(変形例1)「通信装置」は、印刷機能及びスキャン機能を実行可能な多機能機(即ちMFP10)に限られず、印刷機能及びスキャン機能のうちの印刷機能のみを実行可能なプリンタであってもよいし、印刷機能及びスキャン機能のうちのスキャン機能のみを実行可能なスキャナであってもよい。また、「通信装置」は、印刷機能及びスキャン機能とは異なる機能(例えば、画像の表示機能、データの演算機能)を実行する装置(例えば、PC、サーバ、携帯端末(携帯電話、スマートフォン、PDA等))であってもよい。即ち、「通信装置」は、NFC方式の通信を実行可能なあらゆるデバイスを含む。 (Modification 1) The "communication device" is not limited to a multifunctional machine (that is, MFP10) capable of executing a printing function and a scanning function, but is a printer capable of executing only a printing function among the printing function and the scanning function. Alternatively, the scanner may be capable of executing only the scanning function among the printing function and the scanning function. Further, the "communication device" is a device (for example, a PC, a server, a mobile terminal (mobile phone, smartphone, PDA) that executes a function different from the printing function and the scanning function (for example, an image display function and a data calculation function). Etc.)). That is, the "communication device" includes any device capable of performing NFC communication.

(変形例2)MFP10は、P2Pモードを利用可能でなくてもよく、R/Wモード及びCEモードのみを利用可能であってもよい。この場合、CPU32は、図2及び図4の各処理を実行せずに、図3及び図5の各処理を実行すればよい。また、MFP10は、R/Wモード及びCEモードを利用可能でなくてもよく、P2Pモードのみを利用可能であってもよい。即ち、「通信装置」は、NFC規格の全てのモードを利用可能でなくてもよく、少なくとも1つのモードを利用可能であればよい。 (Modification 2) The MFP 10 may not be able to use the P2P mode, and may be able to use only the R / W mode and the CE mode. In this case, the CPU 32 may execute each of the processes of FIGS. 3 and 5 without executing each of the processes of FIGS. 2 and 4. Further, the MFP 10 may not be able to use the R / W mode and the CE mode, and may be able to use only the P2P mode. That is, the "communication device" does not have to be able to use all the modes of the NFC standard, and may be able to use at least one mode.

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

また、本明細書または図面に説明した技術要素は、単独であるいは各種の組合せによって技術的有用性を発揮するものであり、出願時請求項記載の組合せに限定されるものではない。また、本明細書または図面に例示した技術は複数目的を同時に達成するものであり、そのうちの一つの目的を達成すること自体で技術的有用性を持つものである。 In addition, the technical elements described in the present 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 techniques illustrated in this specification or drawings achieve a plurality of objectives at the same time, and achieving one of the objectives itself has technical usefulness.

2:通信システム、10:多機能機(MFP)、30:制御部、32:CPU、34:メモリ、50:携帯端末、L1,L2:通信リンク 2: Communication system, 10: Multifunction device (MFP), 30: Control unit, 32: CPU, 34: Memory, 50: Mobile terminal, L1, L2: Communication link

Claims (3)

通信装置のためのコンピュータプログラムであって、
前記通信装置のコンピュータを、以下の各部、即ち、
前記通信装置の第1の通信インターフェイスを介して、前記通信装置と外部装置との間に第1の通信方式に従った第1の通信リンクを確立する第1の確立部と、
前記第1の通信リンクが確立された後に、前記第1の通信インターフェイスを介して、前記第1の通信リンクを利用して、前記外部装置から通信設定情報をReadするRead部であって、前記通信設定情報は、前記第1の通信方式とは異なる第2の通信方式に従った通信であって、前記通信装置が前記第1の通信インターフェイスとは異なる第2の通信インターフェイスを介した前記通信を実行するための情報であ前記第1の通信方式の通信速度は、前記第2の通信方式の通信速度よりも遅い、前記Read部と、
前記外部装置から前記通信設定情報をReadした後に、前記第1の通信インターフェイスを介して、前記通信設定情報をReadしたことを示す応答を前記外部装置にWriteするWrite部と、
として機能させる、コンピュータプログラム。
A computer program for communication equipment
The computer of the communication device is referred to as the following parts, that is,
A first establishment unit that establishes a first communication link according to the first communication method between the communication device and the external device via the first communication interface of the communication device.
After said first communication link is established, via the first communication interface, by using the first communication link, wherein a Read unit communication setting information from an external device to Read, before The communication setting information is communication according to a second communication method different from the first communication method, and the communication device is via a second communication interface different from the first communication interface. communication speed information der is, the first communication system for performing communication is slower than the communication speed of the second communication scheme, and the Read section,
After reading the communication setting information from the external device, a write unit that writes a response indicating that the communication setting information has been read to the external device via the first communication interface.
A computer program that acts as.
前記第1の通信方式は、NFC(Near Field Communicationの略)方式である、請求項1に記載のコンピュータプログラム。 The computer program according to claim 1, wherein the first communication method is an NFC (abbreviation of Near Field Communication) method. 前記コンピュータプログラムは、前記コンピュータを、さらに、
前記外部装置から前記通信設定情報をReadした後に、前記第1の通信リンクを切断する切断部と、
前記第1の通信リンクが切断された後に、前記第1の通信インターフェイスを介して、前記通信装置と前記外部装置との間に前記第1の通信方式に従った第2の通信リンクを確立する第2の確立部と、として機能させ、
前記Write部は、前記第2の通信リンクが確立された後に、前記第1の通信インターフェイスを介して、前記第2の通信リンクを利用して、前記応答を前記外部装置にWriteする、請求項1又は2に記載のコンピュータプログラム。
The computer program further adds to the computer.
After reading the communication setting information from the external device, a cutting portion that disconnects the first communication link, and
After the first communication link is disconnected, a second communication link according to the first communication method is established between the communication device and the external device via the first communication interface. To function as a second establishment part,
A claim that the Write unit writes the response to the external device by using the second communication link via the first communication interface after the second communication link is established. The computer program according to 1 or 2.
JP2020037008A 2018-11-28 2020-03-04 Communication device Active JP6919738B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020037008A JP6919738B2 (en) 2018-11-28 2020-03-04 Communication device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2018221816A JP6673448B2 (en) 2018-11-28 2018-11-28 Communication device
JP2020037008A JP6919738B2 (en) 2018-11-28 2020-03-04 Communication device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2018221816A Division JP6673448B2 (en) 2018-11-28 2018-11-28 Communication device

Publications (2)

Publication Number Publication Date
JP2020099098A JP2020099098A (en) 2020-06-25
JP6919738B2 true JP6919738B2 (en) 2021-08-18

Family

ID=71106932

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020037008A Active JP6919738B2 (en) 2018-11-28 2020-03-04 Communication device

Country Status (1)

Country Link
JP (1) JP6919738B2 (en)

Also Published As

Publication number Publication date
JP2020099098A (en) 2020-06-25

Similar Documents

Publication Publication Date Title
JP6019676B2 (en) Communication device
JP5900228B2 (en) Communication device
JP6123416B2 (en) Communication device
JP5838987B2 (en) Communication device
JP5867319B2 (en) Communication device
JP5900226B2 (en) Communication device
JP6195004B2 (en) Communication device
JP6919738B2 (en) Communication device
JP6673448B2 (en) Communication device
JP6443512B2 (en) Communication device
JP6052438B2 (en) Communication device
JP6264436B2 (en) Communication device
JP6168201B2 (en) Communication device
JP6406364B2 (en) Communication device
JP6070880B2 (en) Communication device
JP6337984B2 (en) Communication device
JP6414283B2 (en) Communication device
JP6508291B2 (en) Communication device
JP6237860B2 (en) Communication device
JP6032341B2 (en) Communication device

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200326

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200331

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210330

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210510

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210705

R150 Certificate of patent or registration of utility model

Ref document number: 6919738

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150