JP2019071634A - Communication apparatus - Google Patents

Communication apparatus Download PDF

Info

Publication number
JP2019071634A
JP2019071634A JP2018233328A JP2018233328A JP2019071634A JP 2019071634 A JP2019071634 A JP 2019071634A JP 2018233328 A JP2018233328 A JP 2018233328A JP 2018233328 A JP2018233328 A JP 2018233328A JP 2019071634 A JP2019071634 A JP 2019071634A
Authority
JP
Japan
Prior art keywords
state
maintenance period
communication device
wireless network
communication
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2018233328A
Other languages
Japanese (ja)
Other versions
JP6842453B2 (en
Inventor
弘崇 朝倉
Hirotaka Asakura
弘崇 朝倉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2018233328A priority Critical patent/JP6842453B2/en
Publication of JP2019071634A publication Critical patent/JP2019071634A/en
Application granted granted Critical
Publication of JP6842453B2 publication Critical patent/JP6842453B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Facsimiles In General (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

To provide a communication apparatus capable of suitably executing radio communication with an external apparatus.SOLUTION: A control unit 40 in a printer PR, when acquiring predetermined notification 310A from NFCI/F 30, shifts the printer PR to a G/O state and forms a first WFDNW. The control unit 40, when forming the first WFDNW, determines an end of a G/O maintenance period. When acquiring predetermined notification 320A from the NFCI/F 30 before arrival at the end of the G/O maintenance period, the control unit 40 determines a new end of the G/O maintenance period. When a portable terminal PT1 joins the first WFDNW before arrival at the end of the G/O maintenance period, the control unit 40 receives printing data 340 from the portable terminal PT1 by using the first WFDNW.SELECTED DRAWING: Figure 8

Description

本明細書では、無線ネットワークの親局として動作可能な通信機器を開示する。   Disclosed herein is a communication device operable as a master station of a wireless network.

特許文献1には、WFD(Wi-Fi Directの略)方式のデバイス状態からGroup Owner状態(以下では「G/O状態」と呼ぶ)に移行して、無線ネットワークを形成するプリンタが開示されている。プリンタは、無線ネットワークに参加しているクライアント状態の機器の数がゼロになる際に、G/O状態を維持するための維持期間の終期を決定する。プリンタは、維持期間の終期が到来する際に、G/O状態からデバイス状態に移行して、無線ネットワークを消滅させる。一方、プリンタは、維持期間の終期が到来する前に対象機器から接続要求を受信する場合に、接続処理を実行して、対象機器との無線接続を確立する。この結果、対象機器が無線ネットワークに参加するので、プリンタは、無線ネットワークを利用して、対象機器と無線通信を実行することができる。   Patent Document 1 discloses a printer that shifts from a WFD (abbreviation of Wi-Fi Direct) type device state to a group owner state (hereinafter referred to as "G / O state") to form a wireless network. There is. The printer determines the end of the maintenance period to maintain the G / O state when the number of client state devices participating in the wireless network is zero. The printer transitions from the G / O state to the device state and extinguishes the wireless network when the end of the maintenance period comes. On the other hand, when the printer receives a connection request from the target device before the end of the maintenance period, the printer executes connection processing to establish a wireless connection with the target device. As a result, since the target device participates in the wireless network, the printer can execute wireless communication with the target device using the wireless network.

特開2013−005188号公報JP, 2013-005188, A

本明細書では、外部機器と無線通信を適切に実行し得る通信機器を提供する。   The present specification provides a communication device capable of appropriately performing wireless communication with an external device.

本明細書によって開示される一つの形態の通信機器は、無線通信を実行するための第1のインターフェイスと、制御部と、を備える。制御部は、通信機器の動作状態を、無線ネットワークに所属していない無所属状態から、第1のインターフェイスを介した無線通信を実行するための第1の無線ネットワークの親局として動作する親局状態に変更して、第1の無線ネットワークを形成する形成部であって、第1の無線ネットワークが形成された時点では、第1の無線ネットワークに子局として参加している外部機器の数である子局機器数は、ゼロである、形成部と、第1の無線ネットワークが形成される際に、子局機器数がゼロである状況で通信機器の動作状態を親局状態に維持するための第1の維持期間の終期を決定する決定部と、第1の維持期間の終期が到来する際に、通信機器の動作状態を親局状態から無所属状態に変更して、第1の無線ネットワークを消滅させる消滅部と、第1の維持期間の終期が到来する前に、第1の外部機器が第1の無線ネットワークに子局として参加する場合に、第1の無線ネットワークを利用して、第1のインターフェイスを介して、第1の対象データの無線通信を第1の外部機器と実行する通信実行部と、所定指示を検出する検出部と、第1の維持期間の終期が到来する前に、所定指示が検出される際に、第1の維持期間の終期を延長して、第1の維持期間の新たな終期を決定する延長部と、を備える。   One form of communication device disclosed by the present specification includes a first interface for performing wireless communication, and a control unit. The control unit operates as a master station of a first wireless network for executing wireless communication via a first interface from a non-belonging state that does not belong to the wireless network. To form a first wireless network, which is the number of external devices participating as slave stations in the first wireless network when the first wireless network is formed. The number of slave station devices is zero, and when the forming unit and the first wireless network are formed, the operation state of the communication device is maintained in the master station state in a situation where the number of slave station devices is zero. The determination unit that determines the end of the first maintenance period, and when the end of the first maintenance period comes, changes the operation state of the communication device from the parent station state to the non-participation state, and the first wireless network Disappear And when the first external device joins the first wireless network as a child station before the end of the first maintenance period, the first interface using the first wireless network A communication execution unit that executes wireless communication of the first target data with the first external device, a detection unit that detects a predetermined instruction, and a predetermined instruction before the end of the first maintenance period arrives And an extension unit that extends the end of the first maintenance period and determines a new end of the first maintenance period when the second maintenance period is detected.

上記の構成によると、通信機器は、第1の無線ネットワークを形成する際に、第1の維持期間の終期を決定し、第1の維持期間の終期が到来する前に所定指示を検出する際に、第1の維持期間の終期を延長して、第1の維持期間の新たな終期を決定する。従って、通信機器は、第1の維持期間の延長済みの新たな終期が到来する前に、例えば、第1の外部機器が第1の無線ネットワークに子局として参加する場合に、第1の無線ネットワークを利用して、第1の対象データの無線通信を第1の外部機器と実行し得る。このように、通信機器は、外部機器と無線通信を適切に実行し得る。   According to the above configuration, in forming the first wireless network, the communication device determines the end of the first maintenance period, and detects the predetermined instruction before the end of the first maintenance period. And extend the end of the first maintenance period to determine the new end of the first maintenance period. Therefore, the communication device is configured to perform the first wireless communication, for example, when the first external device joins the first wireless network as a slave before the extended new end of the first maintenance period arrives. The network may be used to perform wireless communication of the first object data with the first external device. In this manner, the communication device may appropriately perform wireless communication with the external device.

形成部は、通信機器の動作状態が無所属状態である状況で所定指示が検出される際に、通信機器の動作状態を無所属状態から親局状態に変更して、第1の無線ネットワークを形成してもよい。   The forming unit changes the operating state of the communication device from the non-belonging state to the master station state when the predetermined instruction is detected in a state where the operating state of the communication device is the non-belonging state, to form a first wireless network. May be

決定部は、さらに、第1の外部機器が第1の無線ネットワークに子局として参加した後に、第1の外部機器が第1の無線ネットワークから離脱して、第1の無線ネットワークの子局機器数がゼロになる際に、子局機器数がゼロである状況で通信機器の動作状態を親局状態に維持するための第2の維持期間の終期を決定してもよい。消滅部は、さらに、第2の維持期間の終期が到来する際に、通信機器の動作状態を親局状態から無所属状態に変更して、第1の無線ネットワークを消滅させてもよい。通信実行部は、さらに、第2の維持期間の終期が到来する前に、第2の外部機器が第1の無線ネットワークに子局として参加する場合に、第1の無線ネットワークを利用して、第1のインターフェイスを介して、第2の対象データの無線通信を第2の外部機器と実行してもよい。この構成によると、通信機器は、第1の無線ネットワークの子局機器数がゼロになる際に、第2の維持期間の終期を決定する。従って、通信機器は、第2の維持期間の終期が到来する前に、例えば、第2の外部機器が第1の無線ネットワークに子局として参加する場合に、第1の無線ネットワークを利用して、第2の対象データの無線通信を第2の外部機器と実行し得る。このように、通信機器は、外部機器と無線通信を適切に実行し得る。   The determination unit further causes the first external device to leave the first wireless network after the first external device has joined the first wireless network as a slave station, and the slave station device of the first wireless network to When the number reaches zero, the end of the second maintenance period may be determined to maintain the operation state of the communication device in the master state in a situation where the slave station number is zero. Furthermore, when the end of the second maintenance period comes, the extinction unit may change the operation state of the communication device from the parent station state to the non-affiliation state to cause the first wireless network to disappear. The communication execution unit further utilizes the first wireless network when the second external device joins the first wireless network as a slave station before the end of the second maintenance period. Wireless communication of the second target data may be performed with the second external device via the first interface. According to this configuration, the communication device determines the end of the second maintenance period when the number of slave devices in the first wireless network is zero. Therefore, the communication device uses the first wireless network, for example, when the second external device joins the first wireless network as a slave station before the end of the second maintenance period. , Wireless communication of second target data may be performed with a second external device. In this manner, the communication device may appropriately perform wireless communication with the external device.

延長部は、さらに、第2の維持期間の終期が到来する前に、所定指示が検出される際に、第2の維持期間の終期を延長して、第2の維持期間の新たな終期を決定してもよい。この構成によると、通信機器は、第2の維持期間の終期が到来する前に所定指示を検出する際に、第2の維持期間の終期を延長して、第2の維持期間の新たな終期を決定する。従って、通信機器は、第2の維持期間の延長済みの新たな終期が到来する前に、例えば、第2の外部機器が第1の無線ネットワークに子局として参加する場合に、第1の無線ネットワークを利用して、第2の対象データの無線通信を第2の外部機器と実行し得る。このように、通信機器は、外部機器と無線通信を適切に実行し得る。   The extension unit further extends the end of the second maintenance period when the predetermined instruction is detected before the end of the second maintenance period, and adds a new end of the second maintenance period. You may decide. According to this configuration, when the communication device detects the predetermined instruction before the end of the second maintenance period, the communication device extends the end of the second maintenance period to generate a new end of the second maintenance period. Decide. Therefore, the communication device is configured to perform the first wireless communication, for example, when the second external device joins the first wireless network as a child station before the extended new end of the second maintenance period arrives. The network may be used to perform wireless communication of the second object data with the second external device. In this manner, the communication device may appropriately perform wireless communication with the external device.

本明細書によって開示される他の形態の通信機器は、無線通信を実行するための第1のインターフェイスと、制御部と、を備える。制御部は、通信機器の動作状態を、第1の状態から、第1の状態とは異なる第2の状態に変更する第1の変更部と、通信機器の動作状態が第1の状態から第2の状態に変更される際に、通信機器の動作状態を第2の状態に維持するための第1の維持期間の終期を決定する決定部と、第1の維持期間の終期が到来する際に、通信機器の動作状態を第2の状態から第1の状態に変更する第2の変更部と、第1の維持期間の終期が到来する前に、通信機器と第1の外部機器とが所属する第1の無線ネットワークが形成される場合に、第1の無線ネットワークを利用して、前記第1のインターフェイスを介して、第1の対象データの無線通信を第1の外部機器と実行する通信実行部と、所定指示を検出する検出部と、第1の維持期間の終期が到来する前に、所定指示が検出される際に、第1の維持期間の終期を延長して、第1の維持期間の新たな終期を決定する延長部と、を備える。   Another form of communication device disclosed by the present specification includes a first interface for performing wireless communication, and a control unit. The control unit changes the operating state of the communication device from the first state to a second state different from the first state, and the operating state of the communication device changes from the first state to the first state. When the state of the communication device is changed to the second state, a determination unit that determines the end of the first maintenance period for maintaining the operation state of the communication device in the second state, and the end of the first maintenance period A second change unit that changes the operation state of the communication device from the second state to the first state, and the communication device and the first external device before the end of the first maintenance period arrives When the first wireless network to which it belongs is formed, wireless communication of first target data is executed with the first external device using the first wireless network via the first interface. The communication execution unit, the detection unit that detects a predetermined instruction, and the end of the first maintenance period come To, when a predetermined instruction is detected, it provided by extending the end of the first sustain period, and an extension portion for determining a new end of the first sustain period, a.

上記の構成によると、通信機器は、通信機器の動作状態が第1の状態から第2の状態に変更される際に、第1の維持期間の終期を決定し、第1の維持期間の終期が到来する前に所定指示を検出する際に、第1の維持期間の終期を延長して、第1の維持期間の新たな終期を決定する。従って、通信機器は、第1の維持期間の延長済みの新たな終期が到来する前に、例えば、通信機器と第1の外部機器とが所属する第1の無線ネットワークが形成される場合に、第1の無線ネットワークを利用して、第1の対象データの無線通信を第1の外部機器と実行し得る。このように、通信機器は、外部機器と無線通信を適切に実行し得る。   According to the above configuration, when the operation state of the communication device is changed from the first state to the second state, the communication device determines the end of the first maintenance period, and the end of the first maintenance period When detecting the predetermined instruction before the arrival of the second maintenance period, the end of the first maintenance period is extended to determine the new end of the first maintenance period. Therefore, in the case where the communication device is to form, for example, the first wireless network to which the communication device and the first external device belong before the extended new end of the first maintenance period comes, for example, A first wireless network may be utilized to perform wireless communication of first target data with a first external device. In this manner, the communication device may appropriately perform wireless communication with the external device.

通信機器は、さらに、無線通信を実行するための第2のインターフェイスを備えていてもよい。第2のインターフェイスを介した無線通信を実行可能な最大の距離である所定距離は、第1のインターフェイスを介した無線通信を実行可能な最大の距離よりも小さくてもよい。第2のインターフェイスは、第2のインターフェイスといずれかの外部機器との間の距離であるデバイス間距離が所定距離より大きい第1の状況から、デバイス間距離が所定距離以下である第2の状況に変化する場合に、第1の無線ネットワークで利用されるべき第1の無線プロファイルを当該外部機器に送信してもよい。第2のインターフェイスは、さらに、第1の状況から第2の状況に変化する場合に、所定通知を制御部に供給してもよい。検出部は、第2のインターフェイスから所定通知が取得されることに応じて所定指示を検出してもよい。   The communication device may further comprise a second interface for performing wireless communication. The predetermined distance, which is the maximum distance at which wireless communication via the second interface can be performed, may be smaller than the maximum distance at which wireless communication via the first interface can be performed. The second interface is a second situation in which the inter-device distance is equal to or less than a predetermined distance from a first situation in which an inter-device distance which is a distance between the second interface and any external device is larger than a predetermined distance The first wireless profile to be utilized in the first wireless network may be transmitted to the external device. The second interface may further provide a predetermined notification to the control unit when changing from the first situation to the second situation. The detection unit may detect the predetermined instruction in response to the acquisition of the predetermined notification from the second interface.

制御部は、さらに、第1の無線ネットワークが形成される前に、第1の無線プロファイルを第2のインターフェイスに記憶させるための第1の記憶指示を第2のインターフェイスに供給する供給部を備えていてもよい。この構成によると、通信機器は、第2のインターフェイスに予め記憶されている第1の無線プロファイルを外部機器に送信し得る。   The control unit further comprises a supply unit for supplying a second storage instruction to the second interface for storing the first wireless profile in the second interface before the first wireless network is formed. It may be According to this configuration, the communication device may transmit the first wireless profile stored in advance in the second interface to the external device.

供給部は、さらに、第1の無線ネットワークが消滅した後であって、通信機器が親局として動作すべき第2の無線ネットワークが形成される前に、第1の無線プロファイルに代えて、第2の無線ネットワークで利用されるべき第2の無線プロファイルを第2のインターフェイスに記憶させるための第2の記憶指示を第2のインターフェイスに供給してもよい。この構成によると、通信機器は、第2のインターフェイスに予め記憶されている第2の無線プロファイルを外部機器に送信し得る。   The supply unit is further configured to replace the first wireless profile after the first wireless network disappears and before the second wireless network in which the communication device is to operate as a master station is formed. A second storage indication may be provided to the second interface to cause the second interface to store the second wireless profile to be utilized in the second wireless network. According to this configuration, the communication device may transmit the second wireless profile stored in advance in the second interface to the external device.

第2のインターフェイスは、第1の状況から第2の状況に変化することに起因して、いずれかの外部機器から所定信号を受信する際に、所定通知を制御部に供給してもよい。   The second interface may supply a predetermined notification to the control unit when receiving a predetermined signal from any of the external devices due to the change from the first state to the second state.

検出部は、第2のインターフェイスから所定通知が取得されることに応じて所定指示を検出してから所定時間が経過するまでの間に、第2のインターフェイスから所定通知が再び取得されても、所定指示を検出しなくてもよい。この構成によると、通信機器は、所定指示を検出してから所定時間が経過するまでの間に所定指示の検出に応じた処理を実行せずに済む。この結果、通信機器の処理負荷が軽減し得る。   The detection unit detects the predetermined instruction in response to the predetermined notification being acquired from the second interface, and even if the predetermined notification is acquired again from the second interface while the predetermined time elapses, The predetermined instruction may not be detected. According to this configuration, the communication device does not have to execute the process according to the detection of the predetermined instruction after the detection of the predetermined instruction until the predetermined time elapses. As a result, the processing load on the communication device can be reduced.

決定部は、時間をカウントするための時間カウンタのカウントを初期値から開始することによって、第1の維持期間の終期を決定してもよい。延長部は、所定指示が検出された際に、時間カウンタの値を初期値に戻して、時間カウンタのカウントを初期値から再び開始することによって、第1の維持期間の終期を延長してもよい。時間カウンタの値が所定値に一致する際に、第1の維持期間の終期が到来してもよい。この構成によると、通信機器は、時間カウンタを利用して、第1の維持期間を適切に管理し得る。   The determination unit may determine the end of the first maintenance period by starting from an initial value the counting of a time counter for counting time. Even when the predetermined instruction is detected, the extension unit extends the end of the first maintenance period by returning the value of the time counter to the initial value and restarting the counting of the time counter from the initial value. Good. The end of the first maintenance period may come when the value of the time counter matches the predetermined value. According to this configuration, the communication device can appropriately manage the first maintenance period using the time counter.

制御部は、さらに、第1の維持期間の終期が到来する前に、第1の外部機器が第1の無線ネットワークに子局として参加する場合に、時間カウンタのカウントを停止する停止部を備えていてもよい。   The control unit further includes a stopping unit that stops counting of the time counter when the first external device participates in the first wireless network as a slave station before the end of the first sustaining period comes. It may be

上記の通信機器を実現するための制御方法、コンピュータプログラム、及び、当該コンピュータプログラムを格納するコンピュータ読取可能記録媒体も、新規で有用である。また、上記の通信機器と外部機器(例えば、第1の外部機器、第2の外部機器等)とを備える通信システムも、新規で有用である。   A control method for realizing the communication device, a computer program, and a computer readable recording medium storing the computer program are also novel and useful. A communication system including the above-described communication device and an external device (for example, a first external device, a second external device, etc.) is also novel and useful.

通信システムの構成を示す。1 shows the configuration of a communication system. NFCインターフェイスのプロセッサの処理のフローチャートを示す。5 shows a flowchart of processing of a processor of the NFC interface. CPUのメイン処理のフローチャートを示す。2 shows a flowchart of main processing of a CPU. CPUの接続関係処理のフローチャートを示す。Fig. 6 shows a flowchart of CPU connection processing. CPUの監視処理のフローチャートを示す。5 shows a flowchart of a monitoring process of a CPU. 携帯端末がWFDネットワークに参加することなく、WFDネットワークが消滅するケースAのシーケンス図を示す。The sequence diagram of Case A where a WFD network disappears without a portable terminal joining a WFD network is shown. 携帯端末がWFDネットワークに参加するケースBのシーケンス図を示す。The sequence diagram of Case B in which a portable terminal participates in a WFD network is shown. G/O維持期間が延長されるケースCのシーケンス図を示す。FIG. 16 shows a sequence diagram of Case C in which the G / O maintenance period is extended. G/O維持期間が延長されるケースDのシーケンス図を示す。A sequence diagram of case D where a G / O maintenance period is prolonged is shown.

(通信システム2の構成;図1)
図1に示されるように、通信システム2は、プリンタPRと、複数個の携帯端末PT1,PT2と、を備える。各機器PR,PT1,PT2は、Wi−Fi方式に従った無線通信(以下では「Wi−Fi通信」と呼ぶ)と、NFC(Near Field Communicationの略)方式に従った無線通信(以下では「NFC通信」と呼ぶ)と、を実行可能である。
(Configuration of communication system 2; FIG. 1)
As shown in FIG. 1, the communication system 2 includes a printer PR and a plurality of portable terminals PT1 and PT2. Each of the devices PR, PT1, and PT2 performs wireless communication according to the Wi-Fi method (hereinafter referred to as “Wi-Fi communication”) and wireless communication according to the NFC (abbreviation of Near Field Communication) method (hereinafter referred to as “ NFC communication) can be performed.

(プリンタPRの構成)
プリンタPRは、印刷機能を実行可能な周辺機器(即ち各携帯端末PT1,PT2の周辺機器)である。プリンタPRは、操作部12と、表示部14と、印刷実行部16と、無線LAN(LocalArea Networkの略)インターフェイス20と、NFCインターフェイス30と、制御部40と、を備える。各部12〜40は、バス線(符号省略)に接続されている。以下では、インターフェイスのことを「I/F」と記載する。
(Configuration of printer PR)
The printer PR is a peripheral device capable of executing the printing function (that is, peripheral devices of the portable terminals PT1 and PT2). The printer PR includes an operation unit 12, a display unit 14, a print execution unit 16, a wireless LAN (abbreviated as Local Area Network) interface 20, an NFC interface 30, and a control unit 40. Each of the units 12 to 40 is connected to a bus line (reference numeral omitted). Hereinafter, the interface will be referred to as "I / F".

操作部12は、複数のボタンを備える。ユーザは、操作部12を操作することによって、様々な指示をプリンタPRに与えることができる。表示部14は、様々な情報を表示するためのディスプレイである。印刷実行部16は、インクジェット方式、レーザ方式等の印刷機構である。   The operation unit 12 includes a plurality of buttons. The user can give various instructions to the printer PR by operating the operation unit 12. The display unit 14 is a display for displaying various information. The print execution unit 16 is a printing mechanism such as an inkjet method or a laser method.

無線LANI/F20は、Wi−Fi方式に従ったWi−Fi通信を実行するための無線I/Fである。Wi−Fi方式は、例えば、IEEE(The Institute of Electrical and Electronics Engineers, Inc.の略)の802.11の規格、及び、それに準ずる規格(例えば、802.11a,11b,11g,11n等)に従って、無線通信を実行するための無線通信方式である。無線LANI/F20は、特に、WFD(Wi-Fi Directの略)方式をサポートしている。WFD方式は、Wi−Fi Allianceによって作成された規格書「Wi−Fi Peer−to−Peer(P2P) Technical Specification Version1.1」に記述されている無線通信方式である。   The wireless LAN I / F 20 is a wireless I / F for performing Wi-Fi communication according to the Wi-Fi scheme. The Wi-Fi scheme is, for example, according to the IEEE (abbreviated as the Institute of Electrical and Electronics Engineers, Inc.) 802.11 standard and a standard conforming thereto (for example, 802.11a, 11b, 11g, 11n, etc.) Wireless communication method for executing wireless communication. The wireless LAN I / F 20 particularly supports WFD (abbreviation of Wi-Fi Direct). The WFD method is a wireless communication method described in the standard document “Wi-Fi Peer-to-Peer (P2P) Technical Specification Version 1.1” prepared by the Wi-Fi Alliance.

NFCI/F30は、NFC方式に従ったNFC通信(即ちいわゆる近距離無線通信の一種)を実行するための無線I/Fある。NFC方式は、例えば、ISO/IEC21481又は18092の国際標準規格に基づく無線通信方式である。   The NFC I / F 30 is a wireless I / F for performing NFC communication (that is, a type of so-called short distance wireless communication) according to the NFC method. The NFC method is, for example, a wireless communication method based on the international standard of ISO / IEC 21481 or 18092.

NFCI/F30は、プロセッサ32と、I/Fメモリ34と、を備える。プロセッサ32は、制御部40と通信可能であり、制御部40から取得される記憶指示に従って、携帯端末(例えばPT1)に送信されるべき無線プロファイルWPをI/Fメモリ34に書き込む(即ち記憶させる)。また、プロセッサ32は、携帯端末からPolling信号を受信する場合に、Polling信号に対する応答信号を携帯端末に送信して、携帯端末とのNFCセッションを確立する。そして、プロセッサ32は、当該NFCセッションが確立される前にI/Fメモリ34に予め記憶されている無線プロファイルWPをI/Fメモリ34から読み出し、当該NFCセッションを利用して無線プロファイルWPを携帯端末に送信する。   The NFC I / F 30 includes a processor 32 and an I / F memory 34. The processor 32 can communicate with the control unit 40, and writes (or stores) the wireless profile WP to be transmitted to the portable terminal (for example, PT1) in the I / F memory 34 according to the storage instruction acquired from the control unit 40. ). Also, when receiving the Polling signal from the portable terminal, the processor 32 transmits a response signal to the Polling signal to the portable terminal to establish an NFC session with the portable terminal. Then, the processor 32 reads the wireless profile WP stored in advance in the I / F memory 34 from the I / F memory 34 before the NFC session is established, and uses the NFC session to carry the wireless profile WP Send to the terminal.

なお、NFC通信を実行するためのI/Fの種類として、NFCフォーラムデバイス(NFC Forum Device)と呼ばれるI/Fと、NFCフォーラムタグ(NFC Forum Tag)と呼ばれるI/Fと、が知られている。NFCI/F30は、NFCフォーラムタグであり、NFC方式のICタグとして機能する。   As types of I / F for executing NFC communication, an I / F called an NFC Forum Device (NFC Forum Device) and an I / F called an NFC Forum Tag (NFC Forum Tag) are known. There is. The NFC I / F 30 is an NFC forum tag, and functions as an NFC-type IC tag.

NFCフォーラムデバイスは、P2P(Peer To Peerの略)モード、R/W(Reader/Writerの略)モード、及び、CE(Card Emulationの略)モードのうちのいずれかのモードで、選択的に動作可能なI/Fである。例えば、第1の機器のNFCI/Fと、第2の機器のNFCI/Fと、の両方がP2Pモードで動作する場合には、第1及び第2の機器は、データの双方向通信を実行することができる。また、例えば、第1の機器のNFCI/FがR/WモードのうちのReaderモードで動作し、かつ、第2の機器のNFCI/FがCEモードで動作する場合には、第1の機器は、第2の機器からのデータの読み出し、即ち、第2の機器からのデータの受信を実行することができる。また、例えば、第1の機器のNFCI/FがR/WモードのうちのWriterモードで動作し、かつ、第2の機器のNFCI/FがCEモードで動作する場合には、第1の機器は、第2の機器へのデータの書き込み、即ち、第2の機器へのデータの送信を実行することができる。   The NFC Forum device selectively operates in any mode of P2P (abbreviation of Peer To Peer) mode, R / W (abbreviation of Reader / Writer) mode, and CE (abbreviation of Card Emulation) mode. It is possible I / F. For example, when both the NFC I / F of the first device and the NFC I / F of the second device operate in P2P mode, the first and second devices execute bidirectional communication of data. can do. Also, for example, when the NFC I / F of the first device operates in the Reader mode of the R / W mode and the NFC I / F of the second device operates in the CE mode, the first device May perform reading of data from the second device, ie reception of data from the second device. Also, for example, when the NFC I / F of the first device operates in the Writer mode of the R / W mode and the NFC I / F of the second device operates in the CE mode, the first device Can write data to the second device, that is, transmit data to the second device.

NFCフォーラムタグ(即ちプリンタPRのNFCI/F30)は、上記の3つのモードのうちのいずれかのモードで選択的に動作可能なI/Fではなく、ICタグのみとして機能するI/Fである。例えば、携帯端末のNFCI/FがR/WモードのうちのReaderモードで動作する場合には、携帯端末は、プリンタPRのNFCI/F30からの無線プロファイルWPの読み出し、即ち、プリンタPRからの無線プロファイルWPの受信を実行することができる。NFCフォーラムタグ(即ちプリンタPRのNFCI/F30)は、上記の3つのモードのうちのいずれかのモードで選択的に動作可能なI/Fではないので、NFCフォーラムデバイスよりも簡易な構成を有する(即ちICチップの構成が単純である)。一般的に言うと、NFCフォーラムタグとして機能するICチップは、NFCフォーラムデバイスとして機能するICチップよりも安価である。   The NFC Forum Tag (ie, the NFC I / F 30 of the printer PR) is an I / F that functions only as an IC tag, not an I / F that can selectively operate in any of the above three modes. . For example, when the NFC I / F of the portable terminal operates in the Reader mode of the R / W mode, the portable terminal reads the wireless profile WP from the NFC I / F 30 of the printer PR, that is, the wireless from the printer PR. It is possible to execute reception of the profile WP. The NFC Forum tag (ie, the NFC I / F 30 of the printer PR) has a simpler configuration than the NFC Forum device because it is not an I / F that can selectively operate in any of the above three modes. (Ie the configuration of the IC chip is simple). Generally speaking, an IC chip that functions as an NFC forum tag is less expensive than an IC chip that functions as an NFC forum device.

ここで、無線LANI/F20とNFCI/F30との間の相違点を説明しておく。無線LANI/F20を介した無線通信の通信速度(例えば最大の通信速度が11〜600Mbps)は、NFCI/F30を介した無線通信の通信速度(例えば最大の通信速度が100〜424Kbps)よりも速い。また、無線LANI/F20を介した無線通信における搬送波の周波数(例えば2.4GHz帯又は5.0GHz帯)は、NFCI/F30を介した無線通信における搬送波の周波数(例えば13.56MHz帯)とは異なる。また、無線LANI/F20を介した無線通信を実行可能な最大の距離(例えば最大で約100m)は、NFCI/F30を介した無線通信を実行可能な最大の距離(例えば最大で約10cm)よりも大きい。   Here, the difference between the wireless LAN I / F 20 and the NFC I / F 30 will be described. The communication speed of wireless communication via the wireless LAN I / F 20 (for example, the maximum communication speed is 11 to 600 Mbps) is faster than the communication speed for wireless communication via the NFC I / F 30 (for example, the maximum communication speed is 100 to 424 Kbps) . In addition, the frequency of the carrier wave in wireless communication via the wireless LAN I / F 20 (for example, 2.4 GHz band or 5.0 GHz band) is the frequency of the carrier wave in wireless communication via the NFC I / F 30 (for example, 13.56 MHz band) It is different. Also, the maximum distance (for example, about 100 m at maximum) where wireless communication can be performed via the wireless LAN I / F 20 is greater than the maximum distance (for example, at most about 10 cm) where wireless communication can be performed via the NFC I / F 30 Too big.

制御部40は、CPU42と、メインメモリ44と、を備える。CPU42は、メインメモリ44に格納されているプログラムPGに従って、様々な処理を実行するプロセッサである。メインメモリ44は、RAM、ROM等によって構成され、上記のプログラムPGの他に、G/OカウンタGCと、NFCカウンタNCと、管理リストMLと、を格納する。   The control unit 40 includes a CPU 42 and a main memory 44. The CPU 42 is a processor that executes various processes in accordance with the program PG stored in the main memory 44. The main memory 44 is configured by a RAM, a ROM, and the like, and stores the G / O counter GC, the NFC counter NC, and the management list ML in addition to the program PG described above.

G/OカウンタGCは、時間をカウントするためのカウンタであり、具体的には、初期値である300(秒)からゼロまでカウントダウンするためのカウンタである。G/OカウンタGCは、プリンタPRの動作状態をWFD方式のGroup Owner状態(以下では「G/O状態」と呼ぶ)に維持するための維持期間の終期が到来することを監視するためのカウンタである。なお、以下では、プリンタPRの動作状態がG/O状態である状況のことを、「プリンタPRがG/O機器である」と呼ぶことがある。   The G / O counter GC is a counter for counting time, specifically, a counter for counting down from an initial value of 300 (seconds) to zero. The G / O counter GC is a counter for monitoring the end of the maintenance period for maintaining the operating state of the printer PR in the group owner state (hereinafter referred to as “G / O state”) of the WFD method. It is. Hereinafter, the situation where the operation state of the printer PR is the G / O state may be referred to as "the printer PR is a G / O device".

NFCカウンタNCは、時間をカウントするためのカウンタであり、具体的には、初期値である5(秒)からゼロまでカウントダウンするためのカウンタである。NFCカウンタNCは、NFCI/F30から取得される所定通知に応じた接続関係処理(図4参照)を実行するのか否かを決定するためのカウンタである。   The NFC counter NC is a counter for counting time, and specifically, is a counter for counting down from an initial value of 5 (seconds) to zero. The NFC counter NC is a counter for determining whether or not to execute the connection relation process (see FIG. 4) according to the predetermined notification acquired from the NFC I / F 30.

管理リストMLには、プリンタPRがG/O機器である無線ネットワーク(以下では「WFDNW」と記載する)に所属しているCL機器に関するCL情報が記述される。CL機器は、WFD方式のCL状態(即ちクライアント状態)で動作する機器である。CL情報は、例えば、CL機器のMACアドレスを含む。   In the management list ML, CL information related to CL devices belonging to a wireless network (hereinafter referred to as “WFDNW”) in which the printer PR is a G / O device is described. The CL device is a device that operates in the CL state (that is, client state) of the WFD system. The CL information includes, for example, the MAC address of the CL device.

(各携帯端末PT1,PT2の構成)
各携帯端末PT1,PT2は、携帯電話(例えばスマートフォン)、PDA、ノートPC、タブレットPC、携帯型音楽再生装置、携帯型動画再生装置等の可搬型の端末装置である。各携帯端末PT1,PT2は、図示省略の無線LANI/Fを備えており、Wi−Fi通信を実行可能である。特に、各携帯端末PT1,PT2の無線LANI/Fは、WFD方式をサポートしている。また、各携帯端末PT1,PT2は、図示省略のNFCI/Fを備えており、NFC通信を実行可能である。なお、各携帯端末PT1,PT2のNFCI/Fは、NFCフォーラムデバイスであり、本実施例では、Readerモードで動作する。
(Configuration of each portable terminal PT1, PT2)
Each of the portable terminals PT1 and PT2 is a portable terminal device such as a mobile phone (for example, a smartphone), a PDA, a notebook PC, a tablet PC, a portable music reproduction device, a portable video reproduction device, and the like. Each of the mobile terminals PT1 and PT2 includes a wireless LAN I / F (not shown), and can execute Wi-Fi communication. In particular, the wireless LAN I / F of each portable terminal PT1, PT2 supports the WFD method. Each of the portable terminals PT1 and PT2 includes an NFC I / F (not shown), and can execute NFC communication. The NFC I / F of each of the portable terminals PT1 and PT2 is an NFC forum device, and in the present embodiment, operates in the Reader mode.

携帯端末PT1は、プリンタPRに印刷を実行させるためのアプリケーションPA(以下では「プリンタアプリPA」と呼ぶ)を備える。プリンタアプリPAは、プリンタPRがG/O機器として動作するWFDNWに携帯端末PT1をCL機器として参加させ、WFDNWを利用して、印刷データをプリンタPRに送信するためのアプリケーションである。プリンタアプリPAは、例えば、プリンタPRのベンダによって提供されるインターネット上のサーバから携帯端末PT1にインストールされてもよいし、プリンタPRと共に出荷されるメディアから携帯端末PT1にインストールされてもよい。また、携帯端末PT2は、プリンタアプリPAを備えていない。   The portable terminal PT1 includes an application PA (hereinafter referred to as "printer application PA") for causing the printer PR to execute printing. The printer application PA is an application for causing the mobile terminal PT1 to participate as a CL device in the WFD NW where the printer PR operates as a G / O device, and transmitting print data to the printer PR using the WFD NW. For example, the printer application PA may be installed on the portable terminal PT1 from a server on the Internet provided by a vendor of the printer PR, or may be installed on the portable terminal PT1 from media shipped together with the printer PR. In addition, the portable terminal PT2 does not include the printer application PA.

(プロセッサ32の処理;図2)
続いて、図2を参照して、NFCI/F30のプロセッサ32によって実行される処理について説明する。図2の処理では、S10、S20、及び、S30の各監視ステップが順次実行される。
(Processing of processor 32; FIG. 2)
Subsequently, processing executed by the processor 32 of the NFC I / F 30 will be described with reference to FIG. In the process of FIG. 2, each monitoring step of S10, S20, and S30 is sequentially performed.

S10では、プロセッサ32は、制御部40(即ちCPU42)から、記憶指示を取得することを監視する。プロセッサ32は、制御部40から記憶指示を取得する場合に、S10でYESと判断して、S12において、S10で取得された記憶指示に含まれる無線プロファイルをI/Fメモリ34に書き込む(即ち記憶させる)。なお、I/Fメモリ34内に古い無線プロファイルが既に記憶されている状態では、S12では、プロセッサ32は、古い無線プロファイルに代えて、S10で取得された記憶指示に含まれる新たな無線プロファイルをI/Fメモリ34に書き込む。S12が終了すると、S10に戻る。   In S10, the processor 32 monitors acquisition of a storage instruction from the control unit 40 (that is, the CPU 42). The processor 32 determines YES in S10 when acquiring the storage instruction from the control unit 40, and writes the wireless profile included in the storage instruction acquired in S10 in the I / F memory 34 in S12 (ie, storage ). In the state where the old wireless profile is already stored in the I / F memory 34, in S12, the processor 32 replaces the old wireless profile with the new wireless profile included in the storage instruction acquired in S10. Write to the I / F memory 34. When S12 ends, the process returns to S10.

S20では、プロセッサ32は、携帯端末(例えばPT1)からNFCセッションを確立するための要求信号であるPolling信号を受信することを監視する。プリンタPRのNFCI/F30と携帯端末のNFCI/Fとの間の距離(以下では「デバイス間距離」と呼ぶ)が所定距離(例えば10cm)よりも大きい状況から、デバイス間距離が所定距離以下である状況に変化すると、プロセッサ32は、携帯端末からPolling信号を受信し、S20でYESと判断して、S21に進む。   In S20, the processor 32 monitors the reception of the Polling signal, which is a request signal for establishing an NFC session, from the portable terminal (for example, PT1). Due to the situation where the distance between the NFC I / F 30 of the printer PR and the NFC I / F of the portable terminal (hereinafter referred to as “distance between devices”) is larger than a predetermined distance (for example 10 cm), the distance between devices is less than a predetermined distance When changing to a certain situation, the processor 32 receives the Polling signal from the portable terminal, determines YES in S20, and proceeds to S21.

S21では、プロセッサ32は、Polling信号の受信に応じた所定通知を制御部40(即ちCPU42)に供給する。所定通知は、携帯端末から信号が受信されたことを示す通知である。S22では、プロセッサ32は、Polling信号に対する応答信号を携帯端末に送信する。これにより、プリンタPRのNFCI/F30と携帯端末のNFCI/Fとの間にNFCセッションが確立される。   In S21, the processor 32 supplies the control unit 40 (that is, the CPU 42) with a predetermined notification corresponding to the reception of the Polling signal. The predetermined notification is a notification indicating that a signal has been received from the portable terminal. In S22, the processor 32 transmits a response signal to the Polling signal to the portable terminal. Thus, an NFC session is established between the NFC I / F 30 of the printer PR and the NFC I / F of the portable terminal.

次いで、S23では、プロセッサ32は、S22で確立されたNFCセッションを利用して、携帯端末からRead信号を受信する。Read信号は、NFCフォーラムデバイスのReaderモードで動作する携帯端末が、データの読み出しをプリンタPRに要求するための信号である。S24では、プロセッサ32は、Read信号の受信に応じた所定通知を制御部40に供給する。S24で供給される所定通知は、S21で供給される所定通知と同じものである。そして、S25では、プロセッサ32は、I/Fメモリ34から無線プロファイルWPを読み出し、S22で確立されたNFCセッションを利用して、無線プロファイルWPを携帯端末に送信する。S25が終了すると、S10に戻る。   Next, in S23, the processor 32 receives the Read signal from the portable terminal using the NFC session established in S22. The Read signal is a signal for the portable terminal operating in the Reader mode of the NFC forum device to request the printer PR to read data. In S24, the processor 32 supplies the control unit 40 with a predetermined notification corresponding to the reception of the Read signal. The predetermined notification provided at S24 is the same as the predetermined notification provided at S21. Then, in S25, the processor 32 reads the wireless profile WP from the I / F memory 34, and transmits the wireless profile WP to the portable terminal using the NFC session established in S22. When S25 ends, the process returns to S10.

S30では、プロセッサ32は、携帯端末から確認信号を受信することを監視する。確認信号は、NFCセッションが確立されている状態であるのか否かを確認するための信号である。プロセッサ32は、携帯端末から確認信号を受信する場合に、S30でYESと判断して、S32において、確認信号の受信に応じた所定通知を制御部40に供給する。S32で供給される所定通知は、S21及びS24で供給される所定通知と同じものである。そして、S34では、プロセッサ32は、確認信号に対する応答信号を携帯端末に送信する。S34が終了すると、S10に戻る。   At S30, the processor 32 monitors for receipt of a confirmation signal from the mobile terminal. The confirmation signal is a signal for confirming whether or not an NFC session is established. When receiving the confirmation signal from the portable terminal, the processor 32 determines YES in S30, and supplies a predetermined notification corresponding to the reception of the confirmation signal to the control unit 40 in S32. The predetermined notification provided at S32 is the same as the predetermined notification provided at S21 and S24. Then, in S34, the processor 32 transmits a response signal to the confirmation signal to the portable terminal. When S34 ends, the process returns to S10.

携帯端末は、プリンタPRとのNFCセッションを確立した後に、上記のデバイス間距離が所定距離以下である状況が維持される限り、複数回に亘って確認信号をプリンタPRに送信する。従って、プリンタPRのプロセッサ32は、短時間の間に複数回に亘って確認信号を受信し得るので(S30でYES)、短時間の間に複数回に亘って所定通知を制御部40に供給し得る(S32)。そして、仮に、制御部40がプロセッサ32から所定通知を取得する毎に所定通知に応じた処理を実行する構成を採用すると、プリンタPRの処理負荷が高くなる。これを避けるために、本実施例では、NFCカウンタNCが設けられており、NFCカウンタNCによってカウントされている間に所定通知が取得されても、所定通知に応じた処理が実行されない。この結果、プリンタPRの処理負荷を軽減させることができる。   After establishing an NFC session with the printer PR, the portable terminal transmits a confirmation signal to the printer PR a plurality of times as long as the above-mentioned inter-device distance is maintained equal to or less than the predetermined distance. Therefore, since the processor 32 of the printer PR can receive the confirmation signal a plurality of times in a short time (YES in S30), the predetermined notification is supplied to the control unit 40 a plurality of times in a short time. (S32). Then, assuming that the control unit 40 executes the processing according to the predetermined notification each time the control unit 40 acquires the predetermined notification from the processor 32, the processing load of the printer PR becomes high. In order to avoid this, in the present embodiment, the NFC counter NC is provided, and even if the predetermined notification is acquired while being counted by the NFC counter NC, the process according to the predetermined notification is not executed. As a result, the processing load on the printer PR can be reduced.

(CPU42のメイン処理;図3)
続いて、図3を参照して、制御部40のCPU42によって実行されるメイン処理について説明する。プリンタPRの電源がOFF状態からON状態に切替えられると、CPU42は、メイン処理を実行する。
(Main processing of CPU 42; Fig. 3)
Subsequently, main processing executed by the CPU 42 of the control unit 40 will be described with reference to FIG. When the power of the printer PR is switched from the OFF state to the ON state, the CPU 42 executes main processing.

S40では、CPU42は、無線プロファイルWPを準備する。プリンタPRは、後述の図4のS52の処理において、WFD方式のG/O状態で動作して、WFDNWを形成する。S40で準備される無線プロファイルWPは、当該WFDNWで利用されるべき情報である。即ち、S40で準備される無線プロファイルWPは、プリンタPRによって将来形成され得るWFDNWで利用されるべき情報である。従って、例えば、携帯端末は、プリンタPRから無線プロファイルWPを受信すれば、上記のWFDNWに参加することができる。この結果、例えば、携帯端末は、上記のWFDNWを利用して、印刷データをプリンタPRに送信することができる。S40で準備される無線プロファイルWPは、SSID(Service Set Identifierの略)、認証方式、暗号化方式、パスワード等を含む。CPU42は、ランダムに文字列を選択することによって、SSID及びパスワードを準備する。また、CPU42は、予め決められている認証方式及び暗号化方式を準備する。CPU42は、無線プロファイルWPを準備すると、当該無線プロファイルWPをメインメモリ44に記憶させる。   At S40, the CPU 42 prepares a wireless profile WP. The printer PR operates in the WFD G / O state to form a WFD NW in the process of S52 of FIG. 4 described later. The wireless profile WP prepared in S40 is information to be used in the WFD NW. That is, the wireless profile WP prepared in S40 is information to be used in the WFD NW which can be formed in the future by the printer PR. Therefore, for example, if the mobile terminal receives the wireless profile WP from the printer PR, it can participate in the above WFD NW. As a result, for example, the portable terminal can transmit the print data to the printer PR using the WFD NW. The wireless profile WP prepared in S40 includes an SSID (abbreviation of Service Set Identifier), an authentication method, an encryption method, a password, and the like. The CPU 42 prepares the SSID and password by randomly selecting a character string. Further, the CPU 42 prepares a predetermined authentication method and encryption method. When preparing the wireless profile WP, the CPU 42 stores the wireless profile WP in the main memory 44.

S41では、CPU42は、S40で準備された無線プロファイルWPを含む記憶指示をNFCI/F30に供給する。これにより、NFCI/F30のプロセッサ32は、記憶指示に含まれる無線プロファイルWPをI/Fメモリ34に書き込む(図2のS12参照)。   In S41, the CPU 42 supplies, to the NFC I / F 30, a storage instruction including the wireless profile WP prepared in S40. Thereby, the processor 32 of the NFC I / F 30 writes the wireless profile WP included in the storage instruction in the I / F memory 34 (see S12 in FIG. 2).

S42では、CPU42は、NFCI/F30(即ちプロセッサ32)から所定通知(図2のS21、S24、及び、S32参照)を取得することを監視する。CPU42は、NFCI/F30から所定通知を取得する場合に、S42でYESと判断して、S43に進む。   In S42, the CPU 42 monitors acquiring a predetermined notification (see S21, S24, and S32 in FIG. 2) from the NFC I / F 30 (that is, the processor 32). When acquiring a predetermined notification from the NFC I / F 30, the CPU 42 determines YES in S42, and proceeds to S43.

S43では、CPU42は、メインメモリ44内のNFCカウンタNCの値がゼロであるのか否かを判断する。CPU42は、NFCカウンタNCの値がゼロであると判断する場合(S43でYES)に、S44に進み、NFCカウンタNCの値がゼロでないと判断する場合(S43でNO)に、S44及びS45をスキップしてS42に戻る。即ち、CPU42は、NFCカウンタNCの値がゼロでない状況でNFCI/F30から所定通知を取得しても、所定通知に応じた処理(即ちS44)を実行しない。これにより、短時間の間に複数個の所定通知が取得されても、S44で複数個の接続関係処理が開始されない。この結果、プリンタPRの処理負荷を軽減させることができる。   In S43, the CPU 42 determines whether the value of the NFC counter NC in the main memory 44 is zero. When the CPU 42 determines that the value of the NFC counter NC is zero (YES in S43), the process proceeds to S44, and when it is determined that the value of the NFC counter NC is not zero (NO in S43), S44 and S45 are performed. Skip and return to S42. That is, even if the CPU 42 acquires the predetermined notification from the NFC I / F 30 in a situation where the value of the NFC counter NC is not zero, the CPU 42 does not execute the process (that is, S44) corresponding to the predetermined notification. As a result, even if a plurality of predetermined notifications are acquired in a short time, a plurality of connection relation processes are not started in S44. As a result, the processing load on the printer PR can be reduced.

S44では、CPU42は、接続関係処理(後述の図4参照)を開始する。なお、CPU42は、第1の接続関係処理が実行されている間にS44を実行する際には、第1の接続関係処理とは別処理で、第2の接続関係処理を新たに開始する。即ち、CPU42は、複数個の接続関係処理を並列的に実行することができる。   At S44, the CPU 42 starts connection relation processing (see FIG. 4 described later). Note that when the CPU 42 executes S44 while the first connection relation process is being executed, the CPU 42 newly starts the second connection relation process, which is a process different from the first connection relation process. That is, the CPU 42 can execute a plurality of connection relation processes in parallel.

S45では、CPU42は、メインメモリ44内のNFCカウンタNCの値を初期値である5(秒)にリセットして、NFCカウンタNCのカウントダウンを開始する。S45が終了すると、S42に戻る。   In S45, the CPU 42 resets the value of the NFC counter NC in the main memory 44 to 5 (seconds) which is an initial value, and starts the countdown of the NFC counter NC. When S45 ends, the process returns to S42.

(CPU42の接続関係処理;図4)
続いて、図4を参照して、図3のS44で開始される接続関係処理について説明する。S50では、CPU42は、プリンタPRの動作状態がG/O状態であるのか否かを判断する。CPU42は、プリンタPRの動作状態がG/O状態であると判断する場合(S50でYES)には、S52をスキップしてS54に進み、プリンタPRの動作状態がデバイス状態であると判断する場合(S50でNO)には、S52に進む。ここで、デバイス状態とは、プリンタPRがWFD方式のG/O状態及びCL状態のどちらでも動作しておらず、プリンタPRが無線ネットワークに所属していない状態である。なお、図示省略しているが、S50において、CPU42は、プリンタPRの動作状態がCL状態であると判断する場合には、図4のS52〜S76の全ての処理を実行せずに、図4の接続関係処理を終了する。
(Connection relationship processing of CPU 42; FIG. 4)
Subsequently, the connection relation process started in S44 of FIG. 3 will be described with reference to FIG. In S50, the CPU 42 determines whether the operating state of the printer PR is the G / O state. If the CPU 42 determines that the operation state of the printer PR is the G / O state (YES in S50), it skips S52 and proceeds to S54 and determines that the operation state of the printer PR is the device state In (S50: NO), the process proceeds to S52. Here, the device state is a state in which the printer PR does not operate in either the WFD G / O state or the CL state, and the printer PR does not belong to the wireless network. Although not shown, when the CPU 42 determines that the operating state of the printer PR is in the CL state in S50, the CPU 42 does not execute all the processes in S52 to S76 in FIG. End connection relation processing of.

S52では、CPU42は、プリンタPRの動作状態をデバイス状態からG/O状態に変更して、プリンタPRがG/O機器であるWFDNWを形成する。当該WFDNWは、メインメモリ44に現在記憶されている無線プロファイルWP(図3のS40参照)が利用されるべき無線ネットワークである。S52でWFDNWが形成された時点では、WFDNWには、G/O機器であるプリンタPRのみが所属しており、1個のCL機器も所属していない。従って、メインメモリ44内の管理リストMLには、1個のCL情報も記述されていない。S52が終了すると、S54に進む。   In S52, the CPU 42 changes the operating state of the printer PR from the device state to the G / O state to form the WFD NW where the printer PR is a G / O device. The WFD NW is a wireless network where the wireless profile WP (see S40 in FIG. 3) currently stored in the main memory 44 is to be used. When the WFD NW is formed in S52, only the printer PR, which is a G / O device, belongs to the WFD NW, and one CL device does not belong to it. Therefore, one CL information is not described in the management list ML in the main memory 44. When S52 ends, the process proceeds to S54.

S54では、CPU42は、メインメモリ44内のG/OカウンタGCをカウント中であるのか否かを判断する。より具体的には、CPU42は、G/OカウンタGCの値が1〜299(秒)のいずれかである場合には、G/OカウンタGCをカウント中であると判断して(S54でYES)、S58において、G/OカウンタGCの値を現行値(例えば200(秒))から初期値である300(秒)にリセットして、G/OカウンタGCのカウントダウンを開始する。CPU42は、S58が終了すると、S60及びS76の各監視ステップを順次実行する。   In S54, the CPU 42 determines whether the G / O counter GC in the main memory 44 is being counted. More specifically, when the value of the G / O counter GC is any one of 1 to 299 (seconds), the CPU 42 determines that the G / O counter GC is being counted (YES in S54). In step S58, the value of the G / O counter GC is reset from the current value (for example, 200 (seconds)) to the initial value 300 (seconds), and the countdown of the G / O counter GC is started. When S58 ends, the CPU 42 sequentially executes each monitoring step of S60 and S76.

また、CPU42は、G/OカウンタGCがゼロ又は300(秒)で停止している場合には、G/OカウンタGCをカウント中でないと判断して(S54でNO)、S56に進む。S56では、CPU42は、G/OカウンタGCが、ゼロで停止しているのか、300(秒)で停止しているのかを判断する。CPU42は、G/OカウンタGCがゼロで停止していると判断する場合(S56でYES)には、S58において、G/OカウンタGCをゼロから初期値である300(秒)にリセットして、G/OカウンタGCのカウントダウンを開始する。また、CPU42は、G/OカウンタGCが300(秒)で停止していると判断する場合(S56でNO)には、S58をスキップして、S60及びS76の各監視ステップを順次実行する。   When the G / O counter GC is stopped at zero or 300 (seconds), the CPU 42 determines that the G / O counter GC is not counting (NO at S54), and proceeds to S56. In S56, the CPU 42 determines whether the G / O counter GC is stopped at zero or 300 (seconds). When it is determined that the G / O counter GC is stopped at zero (YES in S56), the CPU 42 resets the G / O counter GC from zero to an initial value of 300 (seconds) in S58. , G / O counter GC countdown starts. If the CPU 42 determines that the G / O counter GC has stopped at 300 (seconds) (NO at S56), it skips S58 and sequentially executes each monitoring step of S60 and S76.

S60では、CPU42は、携帯端末から、無線LANI/F20を介して、特定の接続要求を受信することを監視する。特定の接続要求は、Probe Requestであり、メインメモリ44に現在記憶されている無線プロファイルWP内のSSIDを含む。特定の接続要求は、プリンタPRがG/O機器である状況、即ち、WFDNWが形成されている状況で受信される要求である。CPU42は、携帯端末から特定の接続要求を受信する場合に、S60でYESと判断して、S62に進む。なお、複数個の接続関係処理が並列的に実行されている状況では、CPU42は、携帯端末から特定の接続要求を受信する場合に、当該複数個の接続関係処理のうちの1個の接続関係処理のS60でYESと判断して、S62に進む。即ち、CPU42は、当該複数個の接続関係処理のうちの他の接続関係処理では、S60でYESと判断せずに、S60及びS76の監視ステップを順次実行する状態を維持する。   In S60, the CPU 42 monitors reception of a specific connection request from the portable terminal via the wireless LAN I / F 20. The specific connection request is a probe request and includes the SSID in the wireless profile WP currently stored in the main memory 44. The specific connection request is a request received in a situation where the printer PR is a G / O device, ie, a situation in which a WFD NW is formed. When the CPU 42 receives a specific connection request from the portable terminal, the CPU 42 determines YES in S60, and proceeds to S62. In the case where a plurality of connection relation processes are being executed in parallel, when the CPU 42 receives a specific connection request from the portable terminal, the connection relation among the plurality of connection relation processes is one of the connection relations. In step S60 of the processing, it is determined as YES and the process proceeds to step S62. That is, in the other connection relation process among the plurality of connection relation processes, the CPU 42 maintains the state of sequentially executing the monitoring steps of S60 and S76 without judging YES in S60.

S62では、CPU42は、特定の接続要求の送信元の携帯端末(以下では「対象携帯端末」と呼ぶ)とのWi−Fi接続を確立する。具体的には、CPU42は、無線LANI/F20を介して、特定の接続要求に対する応答信号(即ちProbe Response)を対象携帯端末に送信する。さらに、CPU42は、無線LANI/F20を介して、Provision Discovery Request/Response、Association Request/Response、Authentication Request/Response、4-Way Handshake等の通信を実行する。この過程において、対象携帯端末からプリンタPRに無線プロファイルWPに含まれる各情報(例えば、認証方式、暗号化方式、パスワード等)が送信され、CPU42は、当該各情報を利用して、対象携帯端末の認証を実行する。CPU42は、対象携帯端末の認証が成功する場合に、無線LANI/F20を介した対象携帯端末とのWi−Fi接続を確立する。これにより、CPU42は、プリンタPRがG/O機器であるWFDNWに対象携帯端末をCL機器として参加させることができる。CPU42は、対象携帯端末とのWi−Fi接続を確立する場合に、対象携帯端末のMACアドレスを含むCL情報をメインメモリ44内の管理リストMLに記述する。   In S62, the CPU 42 establishes a Wi-Fi connection with the portable terminal of the transmission source of the specific connection request (hereinafter referred to as "target portable terminal"). Specifically, the CPU 42 transmits a response signal (that is, Probe Response) to a specific connection request to the target portable terminal via the wireless LAN I / F 20. Further, the CPU 42 executes communication such as Provision Discovery Request / Response, Association Request / Response, Authentication Request / Response, 4-Way Handshake, etc. via the wireless LAN I / F 20. In this process, each information (for example, an authentication method, an encryption method, a password, etc.) included in the wireless profile WP is transmitted from the target portable terminal to the printer PR, and the CPU 42 uses the respective information to Perform authentication. The CPU 42 establishes a Wi-Fi connection with the target portable terminal via the wireless LAN I / F 20 when the authentication of the target portable terminal succeeds. Thus, the CPU 42 can cause the target portable terminal to participate as a CL device in the WFD NW where the printer PR is a G / O device. The CPU 42 writes CL information including the MAC address of the target portable terminal in the management list ML in the main memory 44 when establishing a Wi-Fi connection with the target portable terminal.

S64では、CPU42は、メインメモリ44内のG/OカウンタGCをカウント中であるのか否かを判断する。より具体的には、CPU42は、G/OカウンタGCの値が1〜299(秒)のいずれかである場合には、G/OカウンタGCをカウント中であると判断して(S64でYES)、S66において、G/OカウンタGCのカウントを停止して、G/OカウンタGCの値を現行値(例えば200(秒))から初期値である300(秒)にリセットする。ただし、ここでは、CPU42は、G/OカウンタGCのカウントを開始しない。従って、G/OカウンタGCが300(秒)で停止している状態になり、この結果、別の接続関係処理のS56でNOと判断され得る。上述したように、S66において、G/OカウンタGCが300(秒)で停止するので、対象携帯端末がWFDNWに参加している状況で、G/OカウンタGCがゼロになることが抑制される。即ち、後述の図5の監視処理で説明するように、プリンタPRは、対象携帯端末がWFDNWに参加しているにも関わらず、G/O状態からデバイス状態に移行することを抑制することができる。S66が終了すると、S68に進む。   At S64, the CPU 42 determines whether the G / O counter GC in the main memory 44 is being counted. More specifically, when the value of the G / O counter GC is any one of 1 to 299 (seconds), the CPU 42 determines that the G / O counter GC is being counted (YES in S64) In step S66, the count of the G / O counter GC is stopped, and the value of the G / O counter GC is reset from the current value (for example, 200 (seconds)) to the initial value of 300 (seconds). However, here, the CPU 42 does not start counting of the G / O counter GC. Therefore, the G / O counter GC is stopped at 300 (seconds), and as a result, it can be determined NO in S56 of another connection relation process. As described above, since the G / O counter GC is stopped at 300 (seconds) in S66, the G / O counter GC is prevented from becoming zero when the target portable terminal participates in the WFD NW. . That is, as described in the monitoring process of FIG. 5 described later, the printer PR can suppress the transition from the G / O state to the device state even though the target portable terminal participates in the WFD NW. it can. When S66 ends, the process proceeds to S68.

また、CPU42は、G/OカウンタGCが300(秒)で停止している場合には、G/OカウンタGCをカウント中でないと判断して(S64でNO)、S66をスキップしてS68に進む。なお、S64の段階において、G/OカウンタGCがゼロで停止している状況はあり得ない。何故なら、G/OカウンタGCがゼロになると、終了イベントが発行され(図5のS86参照)、接続関係処理が終了するからである(図4のS76でYES)。   When the G / O counter GC is stopped at 300 (seconds), the CPU 42 determines that the G / O counter GC is not counting (NO in S64), and skips S66 and proceeds to S68. move on. In the step S64, there can not be a situation where the G / O counter GC is stopped at zero. The reason is that when the G / O counter GC becomes zero, an end event is issued (see S86 in FIG. 5), and the connection relation process is ended (YES in S76 in FIG. 4).

S68では、CPU42は、印刷処理を実行する。具体的には、CPU42は、まず、プリンタPRがG/O機器であるWFDNWを利用して、CL機器である対象携帯端末から、無線LANI/F20を介して、印刷対象の画像を表わす印刷データを受信する。次いで、CPU42は、印刷データを印刷実行部16に供給して、画像の印刷を印刷実行部16に実行させる。   At S68, the CPU 42 executes the printing process. Specifically, the CPU 42 first uses the WFD NW in which the printer PR is a G / O device to print data representing an image to be printed from the target portable terminal, which is a CL device, via the wireless LAN I / F 20. Receive Next, the CPU 42 supplies the print data to the print execution unit 16 to cause the print execution unit 16 to print the image.

印刷データは、画像ファイル等であるので、比較的に大きいデータサイズを有する。そして、NFC通信の通信速度は、Wi−Fi通信の通信速度よりも遅い。従って、仮に、プリンタPRと対象携帯端末との間で、NFC通信に従って印刷データの無線通信が実行される構成を採用すると、プリンタPRは、印刷データを受信するために長時間を要する。これに対し、本実施例では、プリンタPRと対象携帯端末との間で、Wi−Fi通信に従って印刷データの無線通信が実行されるので、プリンタPRは、印刷データを迅速に受信することができる。   Since the print data is an image file or the like, it has a relatively large data size. And the communication speed of NFC communication is slower than the communication speed of Wi-Fi communication. Therefore, assuming that wireless communication of print data is executed according to NFC communication between the printer PR and the target portable terminal, the printer PR takes a long time to receive the print data. On the other hand, in the present embodiment, since wireless communication of print data is executed according to the Wi-Fi communication between the printer PR and the target portable terminal, the printer PR can receive the print data quickly. .

S70では、CPU42は、無線LANI/F20を介して、PING信号を対象携帯端末に送信する。PING信号は、対象携帯端末とのWi−Fi接続が確立されているのか否かを確認するための信号である。そして、S72では、CPU42は、対象携帯端末から、無線LANI/F20を介して、PING信号に対する応答信号を受信することを監視する。CPU42は、対象携帯端末から応答信号を受信する場合に、S72でYESと判断して、S70に戻る。また、CPU42は、S70でPING信号を送信してから所定時間が経過するまでの間に、対象携帯端末から応答信号を受信しない場合に、S72でNOと判断して、S74に進む。   In S70, the CPU 42 transmits a PING signal to the target portable terminal via the wireless LAN I / F 20. The PING signal is a signal for confirming whether a Wi-Fi connection with the target portable terminal is established. Then, in S72, the CPU 42 monitors reception of a response signal to the PING signal from the target portable terminal via the wireless LAN I / F 20. When the CPU 42 receives a response signal from the target portable terminal, the CPU 42 determines YES in S72, and returns to S70. If the CPU 42 does not receive a response signal from the target portable terminal after the PING signal is transmitted in S70 and a predetermined time elapses, the CPU 42 determines NO in S72, and proceeds to S74.

S74では、CPU42は、対象携帯端末のMACアドレスを含むCL情報、即ち、S62で記述されたCL情報を、メインメモリ44内の管理リストMLから削除する。これにより、対象携帯端末がWFDNWから離脱する。S74が終了すると、S60に戻る。このために、CPU42は、仮に、対象携帯端末から特定の接続要求を再び受信する場合(S60でYES)に、対象携帯端末とのWi−Fi接続を再び確立することができる(S62)。   In S74, the CPU 42 deletes CL information including the MAC address of the target portable terminal, that is, the CL information described in S62 from the management list ML in the main memory 44. As a result, the target mobile terminal leaves the WFD NW. When S74 ends, the process returns to S60. For this reason, when the CPU 42 temporarily receives a specific connection request from the target portable terminal (YES in S60), it can establish the Wi-Fi connection with the target portable terminal again (S62).

一方、S76では、CPU42は、後述の図5の監視処理で終了イベント(S86参照)が発行されることを監視する。CPU42は、終了イベントが発行される場合に、S76でYESと判断して、図4の処理を終了する。   On the other hand, in S76, the CPU 42 monitors that the end event (see S86) is issued in the monitoring processing of FIG. 5 described later. When the end event is issued, the CPU 42 determines YES in S76, and ends the processing of FIG. 4.

(CPU42の監視処理;図5)
続いて、図5を参照して、制御部40のCPU42によって実行される監視処理について説明する。プリンタPRの動作状態がデバイス状態からG/O状態に切替えられると(図4のS52参照)、CPU42は、監視処理を実行する。
(Monitoring process of CPU 42; FIG. 5)
Subsequently, with reference to FIG. 5, a monitoring process performed by the CPU 42 of the control unit 40 will be described. When the operation state of the printer PR is switched from the device state to the G / O state (see S52 in FIG. 4), the CPU 42 executes a monitoring process.

S80では、CPU42は、メインメモリ44内のG/OカウンタGCが300(秒)で停止しているのか否かを判断する。CPU42は、G/OカウンタGCが300(秒)で停止していると判断する場合(S80でYES)には、S94に進む。一方、CPU42は、G/OカウンタGCが300(秒)で停止していないと判断する場合、即ち、G/OカウンタGCの値が0〜299のいずれかであると判断する場合(S80でNO)には、S82に進む。   In S80, the CPU 42 determines whether the G / O counter GC in the main memory 44 has stopped at 300 (seconds). If the CPU 42 determines that the G / O counter GC has stopped at 300 (seconds) (YES in S80), the process proceeds to S94. On the other hand, if the CPU 42 determines that the G / O counter GC has not stopped at 300 (seconds), that is, if it determines that the value of the G / O counter GC is any of 0 to 299 (S80 In the case of NO), the process proceeds to S82.

S82では、CPU42は、G/OカウンタGCがゼロ(秒)で停止しているのか否かを判断する。CPU42は、G/OカウンタGCがゼロで停止していないと判断する場合、即ち、G/OカウンタGCの値が1〜299のいずれかであると判断する場合(S82でNO)には、S80に戻る。一方、CPU42は、G/OカウンタGCがゼロで停止していると判断する場合(S82でYES)には、S84に進む。   In S82, the CPU 42 determines whether the G / O counter GC is stopped at zero (seconds). If the CPU 42 determines that the G / O counter GC is not stopped at zero, that is, if it determines that the value of the G / O counter GC is any one of 1 to 299 (NO in S82), Return to S80. On the other hand, when it is determined that the G / O counter GC is stopped at zero (YES in S82), the CPU 42 proceeds to S84.

S84では、CPU42は、プリンタPRの動作状態をG/O状態からデバイス状態に移行させて、プリンタPRがG/O機器であるWFDNWを消滅させる。   In S84, the CPU 42 shifts the operating state of the printer PR from the G / O state to the device state, and causes the printer PR to disappear the WFD NW which is a G / O device.

S86では、CPU42は、終了イベントを発行する。この結果、現在実行されている1個以上の接続関係処理のそれぞれのS76(図4参照)でYESと判断され、当該1個以上の接続関係処理が終了する。   In S86, the CPU 42 issues an end event. As a result, YES is determined in S76 (see FIG. 4) of each of the one or more connection relation processes currently being executed, and the one or more connection relation processes end.

次いで、CPU42は、S88において、無線プロファイルを準備WPし、S90において、S88で準備された無線プロファイルWPを含む記憶指示をNFCI/F30に供給する。S88及びS90は、図3のS40及びS41と同様である。上述したように、S40では、CPU42は、ランダムに文字列を選択することによって、SSID及びパスワードを準備する。この点は、S88でも同様である。従って、S88で準備されるSSID及びパスワードは、通常、S40で準備されるSSID及びパスワードとは異なる。また、今回のS88で準備されるSSID及びパスワードは、通常、前回のS88で準備されたSSID及びパスワードとは異なる。このように、CPU42は、過去に利用されていないユニークな無線プロファイルWPを準備することができる。S90が終了すると、図5の処理が終了する。   Next, the CPU 42 prepares the wireless profile WP in S88, and supplies a storage instruction including the wireless profile WP prepared in S88 to the NFC I / F 30 in S90. S88 and S90 are the same as S40 and S41 of FIG. As described above, in S40, the CPU 42 prepares the SSID and the password by randomly selecting a character string. This point is the same as in S88. Therefore, the SSID and password prepared in S88 are usually different from the SSID and password prepared in S40. Also, the SSID and password prepared in S88 of this time are usually different from the SSID and password prepared in S88 of the last time. Thus, the CPU 42 can prepare a unique wireless profile WP that has not been used in the past. When S90 ends, the process of FIG. 5 ends.

一方、S94では、CPU42は、メインメモリ44内の管理リストMLに記述されているCL情報の数がゼロであるのか否かを判断する。即ち、CPU42は、プリンタPRがG/O機器であるWFDNWに参加しているCL機器の数がゼロであるのか否かを判断する。CPU42は、CL情報の数がゼロでないと判断する場合(S94でNO)には、S80に戻り、CL情報の数がゼロであると判断する場合(S94でYES)には、S96に進む。   On the other hand, in S94, the CPU 42 determines whether the number of pieces of CL information described in the management list ML in the main memory 44 is zero. That is, the CPU 42 determines whether the number of CL devices participating in the WFD NW, which is a G / O device, of the printer PR is zero. If the CPU 42 determines that the number of CL information is not zero (NO in S94), the process returns to S80, and if it determines that the number of CL information is zero (YES in S94), the CPU 42 proceeds to S96.

S96では、CPU42は、G/OカウンタGCのカウントダウンを開始する。G/OカウンタGCが300(秒)で停止しているので(S80でYES)、CPU42は、初期値である300(秒)からカウントダウンを開始する。S96が終了すると、S82に進む。   At S96, the CPU 42 starts the countdown of the G / O counter GC. Since the G / O counter GC is stopped at 300 (seconds) (YES in S80), the CPU 42 starts the countdown from the initial value of 300 (seconds). When S96 ends, the process proceeds to S82.

(ケースA;図6)
続いて、図6〜図9を参照して、図2〜図5のフローチャートによって実現される具体的なケースA〜ケースDを説明する。
(Case A; FIG. 6)
Subsequently, specific cases A to D realized by the flowcharts of FIGS. 2 to 5 will be described with reference to FIGS. 6 to 9.

プリンタPRの電源がOFF状態からON状態に切替えられると、制御部40は、無線プロファイルWP1を準備して(図3のS40)、無線プロファイルWP1を含む記憶指示100をNFCI/F30に供給する(S41)。この結果、I/Fメモリ34内に無線プロファイルWP1が書き込まれる(図2のS12)。   When the power of the printer PR is switched from the OFF state to the ON state, the control unit 40 prepares the wireless profile WP1 (S40 in FIG. 3) and supplies the storage instruction 100 including the wireless profile WP1 to the NFC I / F 30 ( S41). As a result, the wireless profile WP1 is written in the I / F memory 34 (S12 in FIG. 2).

携帯端末PT2のユーザは、携帯端末PT2をプリンタPRに近づける。これにより、プリンタPRのNFCI/F30と携帯端末PT2のNFCI/Fとの間のデバイス間距離が所定距離(例えば10cm)より大きい状況から、デバイス間距離が所定距離以下である状況に変化する。この結果、プリンタPRのNFCI/F30は、携帯端末PT2からPolling信号110を受信し(図2のS20でYES)、所定通知110Aを制御部40に供給する(S21)。この時点ではNFCカウンタNCの値がゼロであるので、制御部40は、所定通知110Aに応じて接続関係処理SP1を開始し(図3のS42でYES、S43でYES、S44)、NFCカウンタNCの値をゼロから5(秒)にリセットして、NFCカウンタNCのカウントダウンを開始する(S45)。また、制御部40は、接続関係処理SP1において、プリンタPRの動作状態をデバイス状態からG/O状態に移行させて(図4のS52)、無線プロファイルWP1が利用されるべき第1のWFDNWを形成する。さらに、制御部40は、G/OカウンタGCの値をゼロから300(秒)にリセットして、G/OカウンタGCのカウントダウンを開始する(S54でNO、S56でYES、S58)。   The user of the portable terminal PT2 brings the portable terminal PT2 close to the printer PR. As a result, the inter-device distance between the NFC I / F 30 of the printer PR and the NFC I / F of the portable terminal PT2 is changed to a state where the inter-device distance is equal to or less than a predetermined distance. As a result, the NFC I / F 30 of the printer PR receives the Polling signal 110 from the portable terminal PT2 (YES in S20 of FIG. 2), and supplies the predetermined notification 110A to the control unit 40 (S21). At this time, since the value of the NFC counter NC is zero, the control unit 40 starts the connection relation processing SP1 in response to the predetermined notification 110A (YES in S42, YES in S43, S44 in FIG. 3). Is reset from 0 to 5 (seconds) to start the countdown of the NFC counter NC (S45). Further, the control unit 40 shifts the operating state of the printer PR from the device state to the G / O state in the connection relation processing SP1 (S52 in FIG. 4), and the first WFD NW where the wireless profile WP1 should be used. Form. Further, the control unit 40 resets the value of the G / O counter GC from zero to 300 (seconds) and starts the countdown of the G / O counter GC (NO in S54, YES in S56, S58).

第1のWFDNWが形成された時点では、第1のWFDNWに参加しているCL機器の数はゼロである。そして、上述したように、制御部40は、所定通知110Aを取得する際に、G/OカウンタGCのカウントダウンを300(秒)から開始する。これにより、制御部40は、所定通知110Aを取得する際に、CL機器の数がゼロである状況でプリンタPRの動作状態をG/O状態に維持するためのG/O維持期間の終期(即ち、所定通知110Aの取得から300(秒)後の時点)を決定することができる。   When the first WFD NW is formed, the number of CL devices participating in the first WFD NW is zero. Then, as described above, when acquiring the predetermined notification 110A, the control unit 40 starts the countdown of the G / O counter GC from 300 (seconds). Thereby, when acquiring the predetermined notification 110A, the control unit 40 ends the G / O maintenance period for maintaining the operation state of the printer PR in the G / O state in a situation where the number of CL devices is zero ( That is, it is possible to determine the point 300 (seconds) after the acquisition of the predetermined notification 110A.

また、プリンタPRのNFCI/F30は、Polling信号110に対する応答信号112を携帯端末PT2に送信する(図2のS22)。この結果、プリンタPRのNFCI/F30と携帯端末PT2のNFCI/Fとの間にNFCセッションが確立される。その後、NFCI/F30は、NFCセッションを利用して、携帯端末PT2からRead信号114を受信し(S23)、所定通知114Aを制御部40に供給する(S24)。ただし、この時点ではNFCカウンタNCの値が4(秒)であるので、制御部40は、所定通知114Aに応じて接続関係処理を新たに開始しない(図3のS42でYES、S43でNO)。次いで、NFCI/F30は、Read信号114に応じて、NFCセッションを利用して、無線プロファイルWP1を携帯端末PT2に送信する(S25)。このように、本実施例では、プリンタPRは、第1のWFDNWが形成される前にNFCI/F30に予め記憶されている無線プロファイルWP1を携帯端末PT2に送信することができる。   Further, the NFC I / F 30 of the printer PR transmits a response signal 112 to the Polling signal 110 to the portable terminal PT2 (S22 in FIG. 2). As a result, an NFC session is established between the NFC I / F 30 of the printer PR and the NFC I / F of the portable terminal PT2. Thereafter, the NFC I / F 30 receives the Read signal 114 from the portable terminal PT2 using the NFC session (S23), and supplies the predetermined notification 114A to the control unit 40 (S24). However, at this time, since the value of the NFC counter NC is 4 (seconds), the control unit 40 does not newly start the connection related process according to the predetermined notification 114A (YES in S42 and NO in S43 of FIG. 3). . Next, in response to the Read signal 114, the NFC I / F 30 transmits the wireless profile WP1 to the portable terminal PT2 using an NFC session (S25). Thus, in the present embodiment, the printer PR can transmit the wireless profile WP1 stored in advance in the NFC I / F 30 to the portable terminal PT2 before the first WFD NW is formed.

また、NFCI/F30は、NFCセッションを利用して、携帯端末PT2から確認信号116を受信し(図2のS30でYES)、所定通知116Aを制御部40に供給する(S32)。ただし、この時点ではNFCカウンタNCの値が3(秒)であるので、制御部40は、所定通知116Aに応じて接続関係処理を新たに開始しない(図3のS42でYES、S43でNO)。NFCI/F30は、確認信号116に対する応答信号118を携帯端末PT2に送信する(S34)。   Further, the NFC I / F 30 receives the confirmation signal 116 from the portable terminal PT2 using the NFC session (YES in S30 of FIG. 2), and supplies the predetermined notification 116A to the control unit 40 (S32). However, at this time, since the value of the NFC counter NC is 3 (seconds), the control unit 40 does not newly start the connection related process according to the predetermined notification 116A (YES in S42 and NO in S43 of FIG. 3). . The NFC I / F 30 transmits a response signal 118 to the confirmation signal 116 to the portable terminal PT2 (S34).

上述したように、制御部40は、所定通知110Aに応じて接続関係処理SP1を開始するが、所定通知110Aを取得してから5(秒)が経過するまでの間に、所定通知114A及び所定通知116Aを再び取得しても、接続関係処理を開始しない。換言すると、制御部40は、所定通知110Aに応じて、接続関係処理SP1の開始トリガの指示を検出するが(図3のS43でYES)、所定通知114A及び所定通知116Aに応じて、当該指示を検出しない(図3のS43でNO)。所定通知114A及び所定通知116Aに応じて接続関係処理が実行されないので、プリンタPRの処理負荷を軽減させることができる。   As described above, the control unit 40 starts the connection relation processing SP1 in response to the predetermined notification 110A, but the predetermined notification 114A and the predetermined notification 114A and the predetermined notification elapse between the time when 5 (seconds) elapse after the predetermined notification 110A is obtained. Even if the notification 116A is acquired again, connection relation processing is not started. In other words, the control unit 40 detects the instruction of the start trigger of the connection relation processing SP1 according to the predetermined notification 110A (YES in S43 of FIG. 3), but according to the predetermined notification 114A and the predetermined notification 116A, the instruction Is not detected (NO in S43 of FIG. 3). Since the connection relation process is not executed according to the predetermined notification 114A and the predetermined notification 116A, the processing load on the printer PR can be reduced.

携帯端末PT2は、プリンタアプリPAを備えていないので、プリンタPRから無線プロファイルWP1を受信しても、接続要求をプリンタPRに送信することができず、第1のWFDNWにCL機器として参加することができない。この結果、第1のWFDNWのCL機器の数がゼロである状況が維持されたまま、G/OカウンタGCのカウントダウンが進み、G/OカウンタGCの値がゼロになる。即ち、G/O維持期間の終期が到来する。この場合、制御部40は、プリンタPRの動作状態をG/O状態からデバイス状態に移行させて、第1のWFDNWを消滅させる(図5のS82でYES、S84)。次いで、制御部40は、終了イベントを発行させ(S86)、接続関係処理SP1を終了させる(図4のS76でYES)。   Since the portable terminal PT2 does not have the printer application PA, it can not transmit a connection request to the printer PR even when receiving the wireless profile WP1 from the printer PR, and participates in the first WFD NW as a CL device. I can not As a result, the countdown of the G / O counter GC advances while the situation where the number of CL devices in the first WFD NW is zero is maintained, and the value of the G / O counter GC becomes zero. That is, the end of the G / O maintenance period comes. In this case, the control unit 40 shifts the operating state of the printer PR from the G / O state to the device state, and causes the first WFD NW to disappear (YES in S82 of FIG. 5, S84). Next, the control unit 40 issues an end event (S86), and ends the connection relation process SP1 (YES in S76 of FIG. 4).

次いで、制御部40は、無線プロファイルWP1とは異なる無線プロファイルWP2を準備して(図5のS88)、無線プロファイルWP2を含む記憶指示160をNFCI/F30に供給する(S90)。この結果、I/Fメモリ34内に無線プロファイルWP2が書き込まれる(図2のS12)。無線プロファイルWP2は、将来形成されるべき第2のWFDNWで利用されるべき無線プロファイルである。プリンタPRは、仮に、携帯端末(例えばWP1)からPolling信号を受信する場合に、第2のWFDNWが形成される前にNFCI/F30に予め記憶されている無線プロファイルWP2を携帯端末に送信することができる。   Next, the control unit 40 prepares a wireless profile WP2 different from the wireless profile WP1 (S88 in FIG. 5), and supplies the storage instruction 160 including the wireless profile WP2 to the NFC I / F 30 (S90). As a result, the wireless profile WP2 is written in the I / F memory 34 (S12 in FIG. 2). The wireless profile WP2 is a wireless profile to be used in the second WFD NW to be formed in the future. When the printer PR receives a Polling signal from a portable terminal (for example, WP1), it transmits the wireless profile WP2 stored in advance in the NFC I / F 30 to the portable terminal before the second WFD NW is formed. Can.

上述したように、本実施例では、プリンタPRは、G/O維持期間の終期が到来する際に、G/O状態からデバイス状態に移行して、第1のWFDNWを消滅させる。その理由は、以下のとおりである。即ち、G/O状態のプリンタPRは、無線LANI/F20を介して、プリンタPRの周囲に存在する機器をサーチするためのビーコン信号を定期的に送信する。従って、G/O状態のプリンタPRの消費電力は、通常、ビーコン信号を送信しないデバイス状態のプリンタPRの消費電力よりも大きい。本実施例では、G/O維持期間の終期が到来する際に、プリンタPRがG/O状態からデバイス状態に移行するので、プリンタPRの消費電力を適切に低減させることができる。   As described above, in the present embodiment, when the end of the G / O maintenance period comes, the printer PR shifts from the G / O state to the device state and causes the first WFD NW to disappear. The reason is as follows. That is, the printer PR in the G / O state periodically transmits a beacon signal for searching for devices existing around the printer PR via the wireless LAN I / F 20. Therefore, the power consumption of the printer PR in the G / O state is usually larger than the power consumption of the printer PR in the device state which does not transmit a beacon signal. In this embodiment, when the end of the G / O maintenance period comes, the printer PR shifts from the G / O state to the device state, so that the power consumption of the printer PR can be appropriately reduced.

(ケースB;図7)
続いて、図7を参照して、ケースBを説明する。ケースBの初期状態では、NFCI/F30に無線プロファイルWP1が既に記憶されている(例えば図3のS41、図2のS12)。また、ケースBでは、Read信号及び確認信号を図示省略しており、それらの説明を省略する。後述の図8及び図9のケースC及びケースDでも、Read信号及び確認信号に関する説明を省略する。
(Case B; FIG. 7)
Subsequently, case B will be described with reference to FIG. In the initial state of case B, the wireless profile WP1 is already stored in the NFC I / F 30 (for example, S41 in FIG. 3 and S12 in FIG. 2). Further, in case B, the Read signal and the confirmation signal are not shown, and the description thereof is omitted. The description of the Read signal and the confirmation signal is omitted in Case C and Case D in FIGS. 8 and 9 described later.

携帯端末PT1のユーザは、携帯端末PT1をプリンタPRに近づける。これにより、プリンタPRのNFCI/F30は、携帯端末PT1からPolling信号210を受信し(図2のS20でYES)、所定通知210Aを制御部40に供給する(S21)。制御部40は、所定通知210Aに応じて接続関係処理SP2を開始し(図3のS42でYES、S43でYES、S44)、接続関係処理SP2において、プリンタPRの動作状態をデバイス状態からG/O状態に移行させて(図4のS52)、無線プロファイルWP1が利用されるべき第1のWFDNWを形成する。さらに、制御部40は、G/OカウンタGCのカウントダウンを300(秒)から開始することによって、G/O維持期間の終期(即ち、所定通知210Aの取得から300(秒)後の時点)を決定する(S54でNO、S56でYES、S58)。   The user of the portable terminal PT1 brings the portable terminal PT1 close to the printer PR. Accordingly, the NFC I / F 30 of the printer PR receives the Polling signal 210 from the portable terminal PT1 (YES in S20 of FIG. 2), and supplies the predetermined notification 210A to the control unit 40 (S21). Control unit 40 starts connection relation processing SP2 in accordance with predetermined notification 210A (YES in S42, YES in S43, S44 in FIG. 3), and in connection relation processing SP2, the operation state of printer PR is changed from the device state to G / H. In the O state (S52 in FIG. 4), the wireless profile WP1 forms a first WFD NW to be used. Furthermore, the control unit 40 starts the countdown of the G / O counter GC from 300 (seconds) to indicate the end of the G / O maintenance period (that is, the time 300 (seconds) after the acquisition of the predetermined notification 210A). It decides (NO in S54, YES in S56, S58).

また、プリンタPRのNFCI/F30は、Polling信号210に対する応答信号212を携帯端末PT1に送信する(図2のS22)。この結果、プリンタPRのNFCI/F30と携帯端末PT1のNFCI/Fとの間にNFCセッションが確立される。その後、NFCI/F30は、NFCセッションを利用して、無線プロファイルWP1を携帯端末PT1に送信する(S25)。   Further, the NFC I / F 30 of the printer PR transmits a response signal 212 to the polling signal 210 to the portable terminal PT1 (S22 in FIG. 2). As a result, an NFC session is established between the NFC I / F 30 of the printer PR and the NFC I / F of the portable terminal PT1. Thereafter, the NFC I / F 30 transmits the wireless profile WP1 to the portable terminal PT1 using the NFC session (S25).

携帯端末PT1は、プリンタアプリPAを備えているので、プリンタPRから無線プロファイルWP1を受信する場合に、無線プロファイルWP1内のSSIDを含む接続要求230をプリンタPRに送信することができる。この結果、プリンタPRの制御部40は、携帯端末PT1から、無線LANI/F20を介して、接続要求230を受信する(図4のS60でYES)。そして、制御部40は、携帯端末PT1とのWi−Fi接続を確立して、携帯端末PT1を第1のWFDNWにCL機器として参加させる(S62)。即ち、携帯端末PT1のMACアドレスを含むCL情報が管理リストML(図1参照)に記述され、第1のWFDNWに参加しているCL機器の数が「1」になる(図7では「CL数=1」と表現されている)。この時点ではG/OカウンタGCの値が290(秒)であるので(S64でYES)、制御部40は、G/OカウンタGCのカウントを停止して、G/Oカウンタの値を290(秒)から300(秒)にリセットする(S66)。このように、本実施例では、プリンタPRは、G/O維持期間の終期が到来する前に、携帯端末PT1が第1のWFDNWにCL機器として参加する場合に、G/OカウンタGCのカウントを停止する。このために、プリンタPRは、携帯端末PT1が第1のWFDNWに参加している状況で、第1のWFDNWを消滅させないので、第1のWFDNWを利用して、携帯端末PT1と無線通信を適切に実行することができる。   Since the portable terminal PT1 includes the printer application PA, when receiving the wireless profile WP1 from the printer PR, the portable terminal PT1 can transmit a connection request 230 including the SSID in the wireless profile WP1 to the printer PR. As a result, the control unit 40 of the printer PR receives the connection request 230 from the portable terminal PT1 via the wireless LAN I / F 20 (YES in S60 of FIG. 4). Then, the control unit 40 establishes a Wi-Fi connection with the portable terminal PT1, and causes the portable terminal PT1 to participate in the first WFD NW as a CL device (S62). That is, CL information including the MAC address of the portable terminal PT1 is described in the management list ML (see FIG. 1), and the number of CL devices participating in the first WFD NW becomes “1” (in FIG. Expressed as “number = 1”). At this time, since the value of the G / O counter GC is 290 (seconds) (YES in S64), the control unit 40 stops the counting of the G / O counter GC and sets the value of the G / O counter to 290 ( And reset to 300 (seconds) (S66). Thus, in the present embodiment, when the portable terminal PT1 participates in the first WFD NW as a CL device before the end of the G / O maintenance period, the printer PR counts the G / O counter GC. Stop. For this reason, since the printer PR does not cause the first WFD NW to disappear in the situation where the portable terminal PT1 participates in the first WFD NW, the wireless communication with the portable terminal PT1 is appropriately performed using the first WFD NW. Can be performed.

その後、プリンタPRの制御部40は、第1のWFDNWを利用して、無線LANI/F20を介して、携帯端末PT1から印刷データ240を受信して、印刷処理を実行する(図4のS68)。次いで、制御部40は、無線LANI/F20を介して、PING信号250を携帯端末PT1に送信する。例えば、携帯端末PT1のユーザは、プリンタPRでの印刷が終了した後に、携帯端末PT1をプリンタPRからかなり離れた位置まで移動させる。この結果、制御部40は、携帯端末PT1からPING信号250に対する応答信号を受信せず(S72でNO)、管理リストMLから携帯端末PT1のMACアドレスを含むCL情報を削除する(S74)。これにより、携帯端末PT1が第1のWFDNWから離脱して、第1のWFDNWに参加しているCL機器の数がゼロになる(図7では「CL数=0」と表現されている)。この場合、制御部40は、G/OカウンタGCのカウントダウンを300(秒)から開始する(図5のS94でYES、S96)。   Thereafter, the control unit 40 of the printer PR receives the print data 240 from the portable terminal PT1 via the wireless LAN I / F 20 using the first WFD NW, and executes the printing process (S68 in FIG. 4). . Next, the control unit 40 transmits a PING signal 250 to the portable terminal PT1 via the wireless LAN I / F 20. For example, the user of the portable terminal PT1 moves the portable terminal PT1 to a position considerably distant from the printer PR after printing on the printer PR is completed. As a result, the control unit 40 does not receive a response signal to the PING signal 250 from the portable terminal PT1 (NO in S72), and deletes CL information including the MAC address of the portable terminal PT1 from the management list ML (S74). As a result, the portable terminal PT1 leaves the first WFD NW, and the number of CL devices participating in the first WFD NW becomes zero (expressed as “the number of CLs = 0” in FIG. 7). In this case, the control unit 40 starts the countdown of the G / O counter GC from 300 (seconds) (YES in S94 of FIG. 5, S96).

上述したように、携帯端末PT1が第1のWFDNWから離脱すると、第1のWFDNWに参加しているCL機器の数がゼロになる。そして、制御部40は、CL機器の数がゼロになる際に、G/OカウンタGCのカウントダウンを300(秒)から開始する。これにより、制御部40は、CL機器の数がゼロになる際に、G/O維持期間の終期(即ち、CL機器の数がゼロになってから300(秒)後の時点)を決定することができる。   As described above, when the portable terminal PT1 leaves the first WFD NW, the number of CL devices participating in the first WFD NW becomes zero. Then, when the number of CL devices becomes zero, the control unit 40 starts the countdown of the G / O counter GC from 300 (seconds). Thus, when the number of CL devices becomes zero, the control unit 40 determines the end of the G / O maintenance period (that is, the time point 300 seconds after the number of CL devices becomes zero). be able to.

その後、CL機器の数がゼロである状況が維持されたまま、G/OカウンタGCのカウントダウンが進み、G/OカウンタGCの値がゼロになる。この場合、制御部40は、プリンタPRの動作状態をG/O状態からデバイス状態に移行させて、第1のWFDNWを消滅させる(図5のS82でYES、S84)。次いで、制御部40は、終了イベントを発行させ(S86)、接続関係処理SP2を終了させる(図4のS76でYES)。そして、制御部40は、無線プロファイルWP1とは異なる無線プロファイルWP2を準備して(図5のS88)、無線プロファイルWP2を含む記憶指示260をNFCI/F30に供給する(S90)。この結果、I/Fメモリ34内に無線プロファイルWP2が書き込まれる(図2のS12)。   After that, the countdown of the G / O counter GC proceeds while the situation where the number of CL devices is zero is maintained, and the value of the G / O counter GC becomes zero. In this case, the control unit 40 shifts the operating state of the printer PR from the G / O state to the device state, and causes the first WFD NW to disappear (YES in S82 of FIG. 5, S84). Next, the control unit 40 issues an end event (S86), and ends the connection related process SP2 (YES in S76 of FIG. 4). Then, the control unit 40 prepares the wireless profile WP2 different from the wireless profile WP1 (S88 in FIG. 5), and supplies the storage instruction 260 including the wireless profile WP2 to the NFC I / F 30 (S90). As a result, the wireless profile WP2 is written in the I / F memory 34 (S12 in FIG. 2).

上述したように、本実施例では、プリンタPRは、G/O維持期間の終期が到来する前に、携帯端末PT1がCL機器として第1のWFDNWに参加する場合に、携帯端末PT1から印刷データ240を受信して、印刷処理を適切に実行することができる。また、プリンタPRは、携帯端末PT1が第1のWFDNWから離脱した後に、G/O維持期間の終期が到来する際に、G/O状態からデバイス状態に移行して、第1のWFDNWを消滅させる。このために、プリンタPRの消費電力を適切に低減させることができる。   As described above, in the present embodiment, when the portable terminal PT1 participates in the first WFD NW as a CL device before the end of the G / O maintenance period, the printer PR prints data from the portable terminal PT1. By receiving 240, the printing process can be properly performed. In addition, when the end of the G / O maintenance period comes after the portable terminal PT1 leaves the first WFDNW, the printer PR shifts from the G / O state to the device state and disappears the first WFDNW. Let For this reason, the power consumption of the printer PR can be appropriately reduced.

(ケースC;図8)
続いて、図8を参照して、ケースCを説明する。ケースCの初期状態では、NFCI/F30に無線プロファイルWP1が既に記憶されている(例えば図3のS41、図2のS12)。
(Case C; FIG. 8)
Subsequently, case C will be described with reference to FIG. In the initial state of case C, the wireless profile WP1 is already stored in the NFC I / F 30 (for example, S41 in FIG. 3 and S12 in FIG. 2).

プリンタPRと携帯端末PT2との間で、Polling信号310、応答信号312、及び、無線プロファイルWP1のNFC通信が実行される。そして、プリンタPRの制御部40は、所定通知310Aに応じて接続関係処理SP1を開始し(図3のS42でYES、S43でYES、S44)、接続関係処理SP1において、プリンタPRの動作状態をデバイス状態からG/O状態に移行させて(図4のS52)、第1のWFDNWを形成する。制御部40は、さらに、G/OカウンタGCのカウントダウンを300(秒)から開始することによって、G/O維持期間の終期(即ち、所定通知310Aの取得から300(秒)後の時点)を決定する(S54でNO、S56でYES、S58)。   NFC communication of the Polling signal 310, the response signal 312, and the wireless profile WP1 is performed between the printer PR and the portable terminal PT2. Then, the control unit 40 of the printer PR starts the connection relation processing SP1 in response to the predetermined notification 310A (YES in S42, YES in S43, S44 in FIG. 3), and in the connection relation processing SP1, the operation state of the printer PR is The device state is shifted to the G / O state (S52 in FIG. 4) to form a first WFD NW. The control unit 40 further starts the countdown of the G / O counter GC from 300 (seconds), thereby ending the end of the G / O maintenance period (that is, the time 300 (seconds) after the acquisition of the predetermined notification 310A). It decides (NO in S54, YES in S56, S58).

その後、G/OカウンタGCのカウントダウンが開始されてから290(秒)が経過した際(即ちG/OカウンタGCの値が10(秒)である際)に、プリンタPRと携帯端末PT1との間で、Polling信号320、応答信号322、及び、無線プロファイルWP1のNFC通信が実行される。そして、プリンタPRの制御部40は、所定通知320Aに応じて接続関係処理SP2を開始する(図3のS42でYES、S43でYES、S44)。この結果、2個の接続関係処理SP1,SP2が並列的に実行されている状況になる。プリンタPRの動作状態がG/O状態であるので、制御部40は、接続関係処理SP2において、プリンタPRの動作状態をデバイス状態からG/O状態に移行させない(図4のS50でYES)。また、この時点ではG/OカウンタGCの値が10(秒)であるので、制御部40は、接続関係処理SP2において、G/OカウンタGCの値を10(秒)から300(秒)にリセットして、G/OカウンタGCのカウントダウンを開始する(S54でYES、S58)。   Thereafter, when 290 (seconds) have elapsed since the G / O counter GC started counting down (that is, when the value of the G / O counter GC is 10 (seconds)), the printer PR and the portable terminal PT1 Between them, NFC communication of Polling signal 320, response signal 322 and wireless profile WP1 is performed. Then, the control unit 40 of the printer PR starts the connection relation process SP2 in response to the predetermined notification 320A (YES in S42, YES in S43, and S44 in FIG. 3). As a result, two connection relation processes SP1 and SP2 are being executed in parallel. Since the operation state of the printer PR is the G / O state, the control unit 40 does not shift the operation state of the printer PR from the device state to the G / O state in connection relation processing SP2 (YES in S50 of FIG. 4). Further, at this time, since the value of the G / O counter GC is 10 (seconds), the control unit 40 changes the value of the G / O counter GC from 10 (seconds) to 300 (seconds) in the connection relation processing SP2. After resetting, the countdown of the G / O counter GC is started (YES in S54, S58).

所定通知320Aが取得された時点では、第1のWFDNWに参加しているCL機器の数はゼロである。そして、上述したように、制御部40は、所定通知320Aを取得する際に、G/OカウンタGCを10(秒)から300(秒)にリセットして、G/OカウンタGCのカウントダウンを開始する。これにより、制御部40は、所定通知320Aを取得される際に、G/O維持期間の終期を延長して、G/O維持期間の新たな終期(即ち、所定通知320Aの取得から300(秒)後の時点)を決定することができる。   When the predetermined notification 320A is acquired, the number of CL devices participating in the first WFD NW is zero. Then, as described above, when acquiring the predetermined notification 320A, the control unit 40 resets the G / O counter GC from 10 (seconds) to 300 (seconds) and starts the countdown of the G / O counter GC. Do. Thus, when the predetermined notification 320A is acquired, the control unit 40 extends the end of the G / O maintenance period to obtain a new end of the G / O maintenance period (ie, 300 (from acquisition of the predetermined notification 320A) Second) can be determined.

その後、プリンタPRと携帯端末PT1との間で、接続要求330の通信、及び、Wi−Fi接続の確立が実行され、さらに、G/OカウンタGCの値が290(秒)から300(秒)にリセットされる。また、プリンタPRと携帯端末PT1との間で、印刷データ340の通信が実行され、その後、携帯端末PT1からPING信号350に対する応答信号が受信されずに、携帯端末PT1が第1のWFDNWから離脱する。そして、プリンタPRの制御部40は、G/OカウンタGCのカウントダウンを300(秒)から開始することによって(図5のS94でYES、S96)、G/O維持期間の終期(即ち、CL機器の数がゼロになってから300(秒)後の時点)を決定する。   Thereafter, communication of connection request 330 and establishment of Wi-Fi connection are executed between the printer PR and the portable terminal PT1, and further, the value of the G / O counter GC is 290 (seconds) to 300 (seconds). Reset to Further, communication of the print data 340 is executed between the printer PR and the portable terminal PT1, and thereafter, the portable terminal PT1 leaves the first WFD NW without receiving a response signal to the PING signal 350 from the portable terminal PT1. Do. Then, the control unit 40 of the printer PR starts the countdown of the G / O counter GC from 300 (seconds) (YES in S94 of FIG. 5, S96) to end the G / O maintenance period (that is, the CL device The point 300 (seconds) after the number of

仮に、所定通知320Aに応じてG/O維持期間の終期を延長しない構成を採用すると、プリンタPRは、G/O維持期間の終期が到来する間近(例えばG/OカウンタGCの値が5(秒)である時点)に、携帯端末PT1から接続要求330を受信し得る。この場合、プリンタPRと携帯端末PT1との間にWi−Fi接続が確立される前に、G/O維持期間の終期が到来し得る(即ちG/OカウンタGCの値がゼロになり得る)。この場合、プリンタPRは、G/O状態からデバイス状態に移行するので(図5のS82でYES、S84)、携帯端末PT1とのWi−Fi接続を確立することができず、携帯端末PT1から印刷データ340を受信することができない。これに対し、本実施例では、プリンタPRは、所定通知320Aに応じてG/O維持期間の終期を延長して、G/O維持期間の新たな終期を決定する。従って、プリンタPRは、G/O維持期間の新たな終期が到来する前に、接続要求330に応じて、携帯端末PT1とのWi−Fi接続を適切に確立することができる。このために、プリンタPRは、携帯端末PT1から印刷データ340を受信して、印刷処理を適切に実行することができる。   If a configuration is adopted in which the end of the G / O maintenance period is not extended according to the predetermined notification 320A, the printer PR is about to reach the end of the G / O maintenance period (for example, the value of the G / O counter GC is 5 ( Connection request 330 can be received from the portable terminal PT1). In this case, the end of the G / O maintenance period may come before the Wi-Fi connection is established between the printer PR and the portable terminal PT1 (ie, the value of the G / O counter GC may become zero). . In this case, since the printer PR shifts from the G / O state to the device state (YES in S82 of FIG. 5, S84), the Wi-Fi connection with the portable terminal PT1 can not be established. Print data 340 can not be received. On the other hand, in the present embodiment, the printer PR extends the end of the G / O maintenance period according to the predetermined notification 320A, and determines the new end of the G / O maintenance period. Therefore, the printer PR can appropriately establish a Wi-Fi connection with the portable terminal PT1 in response to the connection request 330 before the new end of the G / O maintenance period comes. Therefore, the printer PR can receive the print data 340 from the portable terminal PT1 and appropriately execute the printing process.

(ケースD;図9)
続いて、図9を参照して、図8の続きのケースDを説明する。G/OカウンタGCのカウントダウンが開始されてから290(秒)が経過した際(即ちG/OカウンタGCの値が10(秒)である際)に、携帯端末PT1のユーザは、携帯端末PT1をプリンタPRに再び近づける。この結果、プリンタPRと携帯端末PT1との間で、Polling信号420、応答信号422、及び、無線プロファイルWP1のNFC通信が実行される。そして、プリンタPRの制御部40は、所定通知420Aに応じて接続関係処理SP3を開始する(図3のS42でYES、S43でYES、S44)。この結果、3個の接続関係処理SP1,SP2,SP3が並列的に実行されている状況になる。この時点ではG/OカウンタGCの値が10(秒)であるので、制御部40は、接続関係処理SP3において、G/OカウンタGCの値を10(秒)から300(秒)にリセットして、G/OカウンタGCのカウントダウンを開始する(S54でYES、S58)。
(Case D; FIG. 9)
Subsequently, Case D in FIG. 8 will be described with reference to FIG. When 290 (seconds) have elapsed since the start of the countdown of the G / O counter GC (that is, when the value of the G / O counter GC is 10 (seconds)), the user of the portable terminal PT1 selects the portable terminal PT1. Approach the printer PR again. As a result, NFC communication of the polling signal 420, the response signal 422, and the wireless profile WP1 is performed between the printer PR and the portable terminal PT1. Then, the control unit 40 of the printer PR starts the connection relation processing SP3 in response to the predetermined notification 420A (YES in S42, YES in S43, and S44 in FIG. 3). As a result, three connection relation processes SP1, SP2, and SP3 are being executed in parallel. At this time, since the value of the G / O counter GC is 10 (seconds), the control unit 40 resets the value of the G / O counter GC from 10 (seconds) to 300 (seconds) in connection relation processing SP3. Then, the countdown of the G / O counter GC is started (YES in S54, S58).

所定通知420Aが取得された時点では、第1のWFDNWに参加しているCL機器の数はゼロである。そして、上述したように、制御部40は、所定通知420Aを取得する際に、G/OカウンタGCを10(秒)から300(秒)にリセットして、G/OカウンタGCのカウントダウンを開始する。これにより、制御部40は、所定通知420Aを取得する際に、G/O維持期間の終期を延長して、G/O維持期間の新たな終期(即ち、所定通知420Aの取得から300(秒)後の時点)を決定することができる。   When the predetermined notification 420A is acquired, the number of CL devices participating in the first WFD NW is zero. Then, as described above, when acquiring the predetermined notification 420A, the control unit 40 resets the G / O counter GC from 10 (seconds) to 300 (seconds) and starts the countdown of the G / O counter GC. Do. Thus, when acquiring the predetermined notification 420A, the control unit 40 extends the end of the G / O maintenance period to obtain a new end of the G / O maintenance period (ie, 300 (seconds from acquisition of the predetermined notification 420A). )) Can be determined.

その後、プリンタPRと携帯端末PT1との間で、接続要求430の通信、及び、Wi−Fi接続の確立が実行され、さらに、G/OカウンタGCの値が290(秒)から300(秒)にリセットされる。また、プリンタPRと携帯端末PT1との間で、印刷データ440の通信が実行され、その後、携帯端末PT1からPING信号450に対する応答信号が受信されずに、携帯端末PT1が第1のWFDNWから離脱する。そして、プリンタPRの制御部40は、G/OカウンタGCのカウントダウンを300(秒)から開始することによって(図5のS94でYES、S96)、G/O維持期間の終期(即ち、CL機器の数がゼロになってから300(秒)後の時点)を決定する。   After that, communication of the connection request 430 and establishment of the Wi-Fi connection are executed between the printer PR and the portable terminal PT1, and the value of the G / O counter GC is 290 (seconds) to 300 (seconds). Reset to Further, communication of the print data 440 is executed between the printer PR and the portable terminal PT1, and thereafter, the portable terminal PT1 leaves the first WFD NW without receiving a response signal to the PING signal 450 from the portable terminal PT1. Do. Then, the control unit 40 of the printer PR starts the countdown of the G / O counter GC from 300 (seconds) (YES in S94 of FIG. 5, S96) to end the G / O maintenance period (that is, the CL device The point 300 (seconds) after the number of

CL機器の数がゼロである状況が維持されたまま、G/OカウンタGCのカウントダウンが進み、G/OカウンタGCの値がゼロになる。この場合、制御部40は、プリンタPRの動作状態をG/O状態からデバイス状態に移行させて、第1のWFDNWを消滅させる(図5のS82でYES、S84)。次いで、制御部40は、終了イベントを発行させ(S86)、3個の接続関係処理SP1,SP2,SP3を終了させる(図4のS76でYES)。そして、制御部40は、無線プロファイルWP2を含む記憶指示460をNFCI/F30に供給する(図5のS88及びS90)。   While the situation where the number of CL devices is zero is maintained, the countdown of the G / O counter GC proceeds and the value of the G / O counter GC becomes zero. In this case, the control unit 40 shifts the operating state of the printer PR from the G / O state to the device state, and causes the first WFD NW to disappear (YES in S82 of FIG. 5, S84). Next, the control unit 40 issues an end event (S86), and ends the three connection relation processes SP1, SP2, and SP3 (YES in S76 of FIG. 4). Then, the control unit 40 supplies the storage instruction 460 including the wireless profile WP2 to the NFC I / F 30 (S88 and S90 in FIG. 5).

仮に、所定通知420Aに応じてG/O維持期間の終期を延長しない構成を採用すると、プリンタPRは、G/O維持期間の終期が到来する間近に、携帯端末PT1から接続要求430を受信し得る。この場合、プリンタPRと携帯端末PT1との間にWi−Fi接続が確立される前に、G/O維持期間の終期が到来し得る。この場合、プリンタPRは、G/O状態からデバイス状態に移行するので(図5のS82でYES、S84)、携帯端末PT1とのWi−Fi接続を確立することができず、携帯端末PT1から印刷データ440を受信することができない。これに対し、本実施例では、プリンタPRは、所定通知420Aに応じてG/O維持期間の終期を延長して、G/O維持期間の新たな終期を決定する。従って、プリンタPRは、G/O維持期間の新たな終期が到来する前に、接続要求430に応じて、携帯端末PT1とのWi−Fi接続を適切に確立することができる。このために、プリンタPRは、携帯端末PT1から印刷データ440を受信して、印刷処理を適切に実行することができる。   If a configuration is adopted in which the end of the G / O maintenance period is not extended according to the predetermined notification 420A, the printer PR receives the connection request 430 from the portable terminal PT1 as soon as the end of the G / O maintenance period comes. obtain. In this case, the end of the G / O maintenance period can come before the Wi-Fi connection is established between the printer PR and the portable terminal PT1. In this case, since the printer PR shifts from the G / O state to the device state (YES in S82 of FIG. 5, S84), the Wi-Fi connection with the portable terminal PT1 can not be established. Print data 440 can not be received. On the other hand, in the present embodiment, the printer PR extends the end of the G / O maintenance period according to the predetermined notification 420A, and determines the new end of the G / O maintenance period. Therefore, the printer PR can appropriately establish the Wi-Fi connection with the portable terminal PT1 in response to the connection request 430 before the new end of the G / O maintenance period comes. Therefore, the printer PR can receive the print data 440 from the portable terminal PT1 and appropriately execute the printing process.

(対応関係)
プリンタPRが、「通信機器」の一例である。携帯端末PT1が、「第1の外部機器」及び「第2の外部機器」の一例である。無線LANI/F20、NFCI/F30が、それぞれ、「第1のインターフェイス」、「第2のインターフェイス」の一例である。G/OカウンタGC、300(秒)、ゼロが、それぞれ、「時間カウンタ」、「初期値」、「所定値」の一例である。第1のWFDNWが、「第1の無線ネットワーク」の一例である。デバイス状態、G/O状態、G/O機器、CL機器が、それぞれ、「無所属状態」、「親局状態」、「親局」、「子局」の一例である。また、デバイス状態、G/O状態は、それぞれ、「第1の状態」、「第2の状態」の一例でもある。図3のS42でYES及びS43でYESと判断することが、「所定指示を検出する」の一例である。また、Polling信号、Read信号、及び、確認信号が、「所定信号」の一例である。
(Correspondence relationship)
The printer PR is an example of the “communication device”. The portable terminal PT1 is an example of the “first external device” and the “second external device”. The wireless LAN I / F 20 and the NFC I / F 30 are examples of the “first interface” and the “second interface”, respectively. The G / O counter GC, 300 (seconds), and zero are examples of the “time counter”, the “initial value”, and the “predetermined value”, respectively. The first WFD NW is an example of the “first wireless network”. The device state, the G / O state, the G / O device, and the CL device are examples of the “non-belonging state”, the “master station state”, the “master station”, and the “child station”, respectively. The device state and the G / O state are also examples of the “first state” and the “second state”, respectively. Determining YES in S42 and YES in S43 of FIG. 3 is an example of “detect predetermined instruction”. The Polling signal, the Read signal, and the confirmation signal are examples of the “predetermined signal”.

図6〜図8において、所定通知110A,210A,310Aに応じて決定されるG/O維持期間の終期が、「第1の維持期間の終期」の一例である。図8において、所定通知320Aに応じて延長されるG/O維持期間の終期が、「第1の維持期間の新たな終期」の一例である。図7〜図9において、CL機器の数がゼロになった際に決定されるG/O維持期間の終期が、「第2の維持期間の終期」の一例である。図9において、所定通知420Aに応じて延長されるG/O維持期間の終期が、「第2の維持期間の新たな終期」の一例である。図7及び図8において、印刷データ240,340が、「第1の対象データ」の一例である。図9の印刷データ440が、「第2の対象データ」の一例である。図6の記憶指示100が、「第1の記憶指示」の一例である。また、図6の記憶指示160、図7の記憶指示260、及び、図9の記憶指示460が、「第2の記憶指示」の一例である。   In FIGS. 6-8, the end of the G / O maintenance period determined according to the predetermined notification 110A, 210A, 310A is an example of the "end of the 1st maintenance period." In FIG. 8, the end of the G / O maintenance period extended in response to the predetermined notification 320A is an example of the “new end of the first maintenance period”. In FIGS. 7 to 9, the end of the G / O maintenance period determined when the number of CL devices becomes zero is an example of “the end of the second maintenance period”. In FIG. 9, the end of the G / O maintenance period extended according to the predetermined notification 420A is an example of the “new end of the second maintenance period”. In FIGS. 7 and 8, the print data 240 and 340 are examples of the “first target data”. The print data 440 in FIG. 9 is an example of “second target data”. The storage instruction 100 of FIG. 6 is an example of the “first storage instruction”. Further, the storage instruction 160 of FIG. 6, the storage instruction 260 of FIG. 7, and the storage instruction 460 of FIG. 9 are examples of the “second storage instruction”.

以上、本発明の具体例を詳細に説明したが、これらは例示にすぎず、特許請求の範囲を限定するものではない。特許請求の範囲に記載の技術には以上に例示した具体例を様々に変形、変更したものが含まれる。上記の実施例の変形例を以下に列挙する。   As mentioned above, although the specific example of this invention was described in detail, these are only an illustration and do not limit a claim. The art set forth in the claims includes various variations and modifications of the specific examples described above. Modifications of the above embodiment are listed below.

(変形例1)図4のS52では、プリンタPRのCPU42は、プリンタPRの状態をWFD方式のデバイス状態からG/O状態に移行させることによって、WFDNWを形成する。これに代えて、CPU42は、いわゆるSoftAP(Access Pointの略)を起動させることによって、プリンタPRがAPとして動作する無線ネットワークを形成してもよい。本変形例では、図3のS40及び図5のS88において、CPU42は、当該無線ネットワークで利用されるべき無線プロファイル(SSID、パスワード等)を準備する。また、図4のS62において、CPU42は、当該無線ネットワークに携帯端末を参加させるために、無線LANI/F20を介した無線接続を携帯端末と確立する。本変形例では、SoftAPが起動されていない状態、SoftAPが起動されている状態が、それぞれ、「無所属状態」、「親局状態」の一例である。また、プリンタPRがAPとして動作すること、携帯端末がAPとして動作するプリンタPRとの無線接続を確立することが、それぞれ、「親局」、「子局」の一例である。 (Modification 1) In S52 of FIG. 4, the CPU 42 of the printer PR forms a WFD NW by shifting the state of the printer PR from the WFD device state to the G / O state. Instead of this, the CPU 42 may form a wireless network in which the printer PR operates as an AP by activating a so-called Soft AP (abbreviation for Access Point). In this modification, in S40 of FIG. 3 and S88 of FIG. 5, the CPU 42 prepares a wireless profile (SSID, password, etc.) to be used in the wireless network. Further, in S62 of FIG. 4, the CPU 42 establishes a wireless connection via the wireless LAN I / F 20 with the portable terminal in order to cause the portable terminal to participate in the wireless network. In this modification, the state in which Soft AP is not activated and the state in which Soft AP is activated are examples of the “non-belonging state” and the “master station state”, respectively. In addition, that the printer PR operates as an AP and establishing a wireless connection with the printer PR in which the portable terminal operates as an AP is an example of the “master station” and the “child station”, respectively.

(変形例2)上記の実施例では、図3のS42でYES及びS43でYESと判断することが、「所定指示を検出する」の一例である。これに代えて、例えば、CPU42は、携帯端末とのWi−Fi接続を確立するための操作がユーザによって操作部12に実行されることに応じて、「所定指示」を検出してもよい。また、例えば、CPU42は、無線LANI/F20を介して、携帯端末から接続要求を受信することに応じて、「所定指示」を検出してもよい。上記の実施例及び本変形例のように、「所定指示」は、例えば、外部機器との第1のインターフェイスを介した無線接続の確立に関係する指示であってもよい。ただし、「所定指示」の内容は特に限定されず、「所定指示」は、第1の維持期間を延長するためのトリガになり得る指示であればよい。 (Modification 2) In the above-described embodiment, judging "YES" in S42 of FIG. 3 and "YES" in S43 is an example of "detect predetermined instruction". Instead of this, for example, the CPU 42 may detect the “predetermined instruction” in response to the user performing an operation for establishing the Wi-Fi connection with the portable terminal on the operation unit 12. Also, for example, the CPU 42 may detect a “predetermined instruction” in response to receiving a connection request from a portable terminal via the wireless LAN I / F 20. As in the above embodiment and the present modification, the “predetermined instruction” may be, for example, an instruction related to establishment of a wireless connection via the first interface with the external device. However, the content of the “predetermined instruction” is not particularly limited, and the “predetermined instruction” may be an instruction that can be a trigger for extending the first maintenance period.

(変形例3)上記の実施例では、CPU42は、図3のS42でYES及びS43でYESと判断する場合に、図4の接続関係処理において、プリンタPRの動作状態をデバイス状態からG/O状態に移行させて、WFDNWを形成する(S52)。これに代えて、CPU42は、例えば、プリンタPRをG/O状態に移行させるための操作がユーザによって操作部12に実行される場合に、プリンタPRの動作状態をデバイス状態からG/O状態に移行させて、WFDNWを形成してもよい。即ち、「形成部」が通信機器の動作状態を無所属状態から親局状態に変更するタイミングは、上記の実施例のように、所定指示が検出されるタイミングであってもよいし、本変形例のように、所定指示の検出に無関係なタイミングであってもよい。 (Modification 3) In the above embodiment, when the CPU 42 determines YES in S42 of FIG. 3 and YES in S43, in the connection relation processing of FIG. 4, the operation state of the printer PR is changed from the device state to G / O. The state is shifted to form a WFD NW (S52). Instead, the CPU 42 changes the operating state of the printer PR from the device state to the G / O state, for example, when an operation to shift the printer PR to the G / O state is performed by the user on the operation unit 12. It may be migrated to form a WFD NW. That is, the timing at which the “forming unit” changes the operating state of the communication device from the non-belonging state to the parent station state may be the timing at which a predetermined instruction is detected as in the above embodiment The timing may be unrelated to the detection of the predetermined instruction.

(変形例4)上記の実施例では、プリンタPRのNFCI/F30が、携帯端末(例えばPT1)から、Polling信号(図2のS20)、Read信号(S23)、及び、確認信号(S30)の3種類の信号の全てを受信することを想定している。ただし、上記の3種類の信号の全てを送信するのか否かについては、携帯端末に依存する。例えば、携帯端末が確認信号の代わりにPolling信号を送信するものであってもよく、この場合、プリンタPRのNFCI/F30は、当該携帯端末から、Polling信号及びRead信号を受信するが、確認信号を受信しない。本変形例では、Polling信号及びRead信号が、「所定信号」の一例である。別の変形例では、上記の3種類の信号のうちの1種類の信号(例えばPolling信号)のみが、「所定信号」の一例であってもよい。 (Modification 4) In the above embodiment, the NFC I / F 30 of the printer PR transmits the Polling signal (S20 of FIG. 2), the Read signal (S23), and the confirmation signal (S30) from the portable terminal (for example, PT1). It is assumed to receive all three types of signals. However, whether to transmit all of the above three types of signals depends on the portable terminal. For example, the portable terminal may transmit the Polling signal instead of the confirmation signal. In this case, the NFC I / F 30 of the printer PR receives the Polling signal and the Read signal from the portable terminal, but the confirmation signal Do not receive In the present modification, the Polling signal and the Read signal are examples of the “predetermined signal”. In another variation, only one of the above three types of signals (for example, Polling signal) may be an example of the “predetermined signal”.

(変形例5)プリンタPRのNFCI/F30は、変形例4に記載の各信号を受信しても、所定通知を制御部40に供給しなくてもよい。例えば、NFCI/F30は、NFCI/F30と携帯端末のNFCI/Fとの間のデバイス間距離が所定距離より大きい状況から、デバイス間距離が所定距離以下である状況に変化することに起因して、NFCI/F30の近傍の磁界が変化する場合に、所定通知を制御部40に供給してもよい。即ち、「第2のインターフェイス」は、第1の状況から第2の状況に変化する場合に、所定通知を制御部に供給すればよい。 (Modification 5) Even if the NFC I / F 30 of the printer PR receives each signal described in Modification 4, it may not supply the predetermined notification to the control unit 40. For example, the NFC I / F 30 changes from a situation where the inter-device distance between the NFC I / F 30 and the NFC I / F of the portable terminal is larger than a predetermined distance to a situation where the inter-device distance is equal to or less than the predetermined distance When the magnetic field in the vicinity of the NFC I / F 30 changes, a predetermined notification may be supplied to the control unit 40. That is, the “second interface” may supply a predetermined notification to the control unit when changing from the first state to the second state.

(変形例6)プリンタPRのNFCI/F30は、NFCフォーラムタグでなくてもよく、NFCフォーラムデバイスであってもよい。この場合、以下の変形例6−1及び変形例6−2を採用してもよい。 (Modification 6) The NFC I / F 30 of the printer PR may not be an NFC forum tag, and may be an NFC forum device. In this case, the following modification 6-1 and modification 6-2 may be employed.

(変形例6−1)NFCI/F30は、例えば、携帯端末から所定信号を受信することに応じて、携帯端末とのNFCセッションを確立した後に、所定通知を制御部40に供給してもよい。本変形例も、「外部機器から所定信号を受信する際に、所定通知を制御部に供給する」の一例である。なお、本変形例では、NFCI/F30は、無線プロファイルを携帯端末に送信する前に、所定通知を制御部40に供給してもよいし、無線プロファイルを携帯端末に送信した後に、所定通知を制御部40に供給してもよい。 (Modification 6-1) The NFC I / F 30 may supply a predetermined notification to the control unit 40 after establishing an NFC session with a portable terminal, for example, in response to receiving a predetermined signal from the portable terminal. . This modification is also an example of “supplying a predetermined notification to the control unit when receiving a predetermined signal from an external device”. In the present modification, the NFC I / F 30 may supply a predetermined notification to the control unit 40 before transmitting the wireless profile to the portable terminal, or after transmitting the wireless profile to the portable terminal, the predetermined notification may be transmitted. It may be supplied to the control unit 40.

(変形例6−2)プリンタPRのCPU42は、図3のS40、S41、図5のS88、及び、S90を実行しなくてもよい。この場合、プリンタPRのCPU42は、NFCI/F30から所定通知を取得した後に、無線プロファイルを準備して、当該無線プロファイルをNFCI/F30に供給してもよい。即ち、無線プロファイルは、携帯端末とのNFCセッションが確立される前にI/Fメモリ34内に予め記憶されていなくてもよい。本変形例では、「供給部」を省略可能である。 (Modification 6-2) The CPU 42 of the printer PR may not execute S40 and S41 of FIG. 3, S88 of FIG. 5 and S90. In this case, after obtaining the predetermined notification from the NFC I / F 30, the CPU 42 of the printer PR may prepare a wireless profile and supply the wireless profile to the NFC I / F 30. That is, the wireless profile may not be stored in advance in the I / F memory 34 before the NFC session with the portable terminal is established. In the present variation, the "supply unit" can be omitted.

(変形例7)プリンタPRは、NFCI/F30に代えて、他の近距離無線通信方式(例えば、TransferJet方式、BlueTooth(登録商標)方式等)に従った無線通信を実行するための無線インターフェイスを備えていてもよい。一般的に言うと、第2のインターフェイスを介した無線通信を実行可能な最大の距離である所定距離が、第1のインターフェイスを介した無線通信を実行可能な最大の距離よりも小さければよい。 (Modification 7) The printer PR, instead of the NFC I / F 30, has a wireless interface for executing wireless communication according to another short distance wireless communication system (for example, TransferJet system, BlueTooth (registered trademark) system, etc.) You may have. Generally speaking, the predetermined distance which is the maximum distance at which wireless communication via the second interface can be performed should be smaller than the maximum distance at which wireless communication via the first interface can be performed.

(変形例8)G/OカウンタGCは、初期値である300(秒)からカウントダウンされるものでなくてもよく、例えば、初期値であるゼロからカウントアップされるものであってもよい。本変形例では、ゼロ、300(秒)が、それぞれ、「初期値」、「所定値」の一例である。なお、「所定値」は、300(秒)以外の値(例えば、100(秒)、500(秒)等)であってもよい。 (Modification 8) The G / O counter GC may not be counted down from the initial value of 300 (seconds), and may be, for example, counted up from zero, which is the initial value. In the present modification, zero and 300 (seconds) are examples of the “initial value” and the “predetermined value”, respectively. The “predetermined value” may be a value other than 300 (seconds) (for example, 100 (seconds), 500 (seconds), etc.).

(変形例9)上記の実施例では、プリンタPRのCPU42は、例えば、図8のケースCにおいて、第1のWFDNWから携帯端末PT1が離脱して、第1のWFDNWに参加しているCL機器の数がゼロになった際に、G/O維持期間を決定する。これに代えて、CPU42は、CL機器の数がゼロになっても、G/O維持期間を決定しなくてもよい。即ち、CPU42は、CL機器の数がゼロになった直後に、G/O状態からデバイス状態に移行して、第1のWFDNWを消滅させてもよい。即ち、「第2の維持期間」が設けられなくてもよい。また、CPU42は、CL機器の数がゼロになった際にG/O維持期間を決定するが、当該G/O維持期間を延長する構成を採用しなくてもよい。即ち、「第2の維持期間」は延長されなくてもよい。 (Modification 9) In the above embodiment, the CPU 42 of the printer PR is, for example, a CL device in which the portable terminal PT1 has left the first WFD NW and has participated in the first WFD NW in Case C of FIG. Determine the G / O maintenance period when the number of becomes zero. Instead of this, the CPU 42 may not determine the G / O maintenance period even if the number of CL devices becomes zero. That is, the CPU 42 may shift from the G / O state to the device state immediately after the number of CL devices reaches zero, and may cause the first WFD NW to disappear. That is, the "second maintenance period" may not be provided. In addition, although the CPU 42 determines the G / O maintenance period when the number of CL devices becomes zero, the configuration may not be adopted in which the G / O maintenance period is extended. That is, the "second maintenance period" may not be extended.

(変形例10)上記の実施例では、図4のS52において、プリンタPRのCPU42は、プリンタPRを自発的にG/O状態に移行させて、CL機器の数がゼロであるWFDNWを形成する。これに代えて、プリンタPRと携帯端末とがWFD方式のG/Oネゴシエーションを実行する構成が採用されてもよい。具体的には、プリンタPRは、以下の構成を備える。無線LANI/F20は、有効状態と無効状態との間で動作状態が変更される。有効状態は、CPU42が無線LANI/F20を介してG/Oネゴシエーションを実行可能な状態であり、無効状態は、CPU42が無線LANI/F20を介してG/Oネゴシエーションを実行不可能な状態である。別の表現では、有効状態は、無線LANI/F20に電力が供給されており、CPU42が無線LANI/F20を介した無線通信を実行可能な状態であり、無効状態は、無線LANI/F20に電力が供給されておらず、CPU42が無線LANI/F20を介した無線通信を実行不可能な状態である。また、図4のS50及びS52の代わりに、以下の処理が実行される。即ち、S50では、CPU42は、無線LANI/F20が有効状態であるのか無効状態であるのかを判断する。そして、CPU42は、無線LANI/F20が無効状態であると判断する場合(S50でYES)には、S52において、無線LANI/F20を無効状態から有効状態に変更してS54に進み、無線LANI/F20が有効状態であると判断する場合(S50でNO)には、S52をスキップしてS54に進む。 (Modification 10) In the above embodiment, the CPU 42 of the printer PR spontaneously shifts the printer PR to the G / O state in S52 of FIG. 4 to form the WFD NW in which the number of CL devices is zero. . Instead of this, a configuration may be adopted in which the printer PR and the portable terminal perform WFD G / O negotiation. Specifically, the printer PR has the following configuration. The operating state of the wireless LAN I / F 20 is changed between the enabled state and the disabled state. The valid state is a state in which the CPU 42 can execute G / O negotiation via the wireless LAN I / F 20, and the invalid state is a state in which the CPU 42 can not execute G / O negotiation via the wireless LAN I / F 20. . In another expression, the valid state is that power is supplied to the wireless LAN I / F 20, the CPU 42 can execute wireless communication via the wireless LAN I / F 20, and the invalid state is power to the wireless LAN I / F 20. Is not supplied, and the CPU 42 can not execute wireless communication via the wireless LAN I / F 20. Also, the following processing is executed instead of S50 and S52 of FIG. That is, in S50, the CPU 42 determines whether the wireless LAN I / F 20 is in the valid state or in the invalid state. Then, if the CPU 42 determines that the wireless LAN I / F 20 is in the invalid state (YES in S50), the wireless LAN I / F 20 is changed from the invalid state to the valid state in S52, and the process proceeds to S54. When it is determined that F20 is in the valid state (NO in S50), S52 is skipped and the process proceeds to S54.

また、プリンタPRのメモリ44は、G/OカウンタGCに代えて、無線LANI/F20の動作状態を有効状態に維持するための有効状態カウンタを備える。図4のS54〜S58、S64、及び、S66では、CPU42は、G/OカウンタGCに関する処理に代えて、有効状態カウンタに関する処理を実行する。従って、CPU42は、仮に、有効状態カウンタがカウント中である状況で、NFCI/F30から所定通知を取得する場合(S54でYES)には、有効状態カウンタをリセットしてカウントダウンを開始する(S58)。即ち、無線LANI/F20の動作状態を有効状態に維持するための有効状態維持期間の終期が延長され、有効状態維持期間の新たな終期が決定される。また、S62では、CPU42は、WFD方式のG/Oネゴシエーションを携帯端末と実行して、プリンタPRがG/O状態で動作すべきかCL状態で動作すべきかを決定する。CPU42は、プリンタPRがG/O状態で動作すべきと決定する場合には、プリンタPRをデバイス状態からG/O状態に移行させ、CL状態である携帯端末とWi−Fi接続を確立して、プリンタPRがG/O機器であるWFDNWを形成する。また、CPU42は、プリンタPRがCL状態で動作すべきと決定する場合には、プリンタPRをデバイス状態からCL状態に移行させ、G/O状態である携帯端末とWi−Fi接続を確立して、携帯端末がG/O機器であるWFDNWに参加する。なお、プリンタPRがCL状態で動作する場合には、図4のS74の処理が実行されない。   In addition, the memory 44 of the printer PR includes a valid state counter for maintaining the operating state of the wireless LAN I / F 20 in a valid state, instead of the G / O counter GC. In S54 to S58, S64, and S66 of FIG. 4, the CPU 42 executes a process related to the valid state counter instead of the process related to the G / O counter GC. Therefore, if the CPU 42 acquires a predetermined notification from the NFC I / F 30 under the condition that the valid state counter is counting (YES in S54), the CPU 42 resets the valid state counter and starts counting down (S58). . That is, the end of the valid state maintaining period for keeping the operating state of the wireless LAN I / F 20 in the valid state is extended, and a new ending of the valid state maintaining period is determined. In S62, the CPU 42 executes WFD G / O negotiation with the portable terminal to determine whether the printer PR should operate in the G / O state or in the CL state. When it is determined that the printer PR should operate in the G / O state, the CPU 42 shifts the printer PR from the device state to the G / O state, and establishes a Wi-Fi connection with the portable terminal in the CL state. The printer PR forms a WFD NW which is a G / O device. Further, when determining that the printer PR should operate in the CL state, the CPU 42 shifts the printer PR from the device state to the CL state, and establishes a Wi-Fi connection with the mobile terminal in the G / O state. , A portable terminal participates in WFDNW which is a G / O device. When the printer PR operates in the CL state, the process of S74 of FIG. 4 is not executed.

また、図5の処理に代えて、以下の処理が実行される。即ち、CPU42は、有効状態カウンタが0(秒)になることを監視し、有効状態カウンタが0(秒)になる場合には、無線LANI/F20の動作状態を有効状態から無効状態に変更する。これにより、無線LANI/F20を介した無線通信が実行不可能な状態になるので、CPU42は、携帯端末から無線LANI/F20を介して接続要求を受信することができず、この結果、携帯端末とのWi−Fi接続を確立することができない。その後、CPU42は、図5のS86と同様に、終了イベントを発行する。   Also, the following process is executed instead of the process of FIG. That is, the CPU 42 monitors that the valid state counter becomes 0 (seconds), and changes the operating state of the wireless LAN I / F 20 from the valid state to the invalid state when the valid state counter becomes 0 (seconds). . As a result, since wireless communication via the wireless LAN I / F 20 can not be performed, the CPU 42 can not receive a connection request from the portable terminal via the wireless LAN I / F 20. As a result, the portable terminal Can not establish a Wi-Fi connection with. After that, the CPU 42 issues an end event as in S86 of FIG.

上述したように、本変形例では、プリンタPRは、有効状態維持期間の終期が到来する際に、無線LANI/F20の動作状態を有効状態から無効状態に変更する。これにより、無線LANI/F20に電力が供給されないので、プリンタPRの消費電力を適切に低減させることができる。また、プリンタPRは、所定通知に応じて有効状態維持期間の終期を延長して、有効状態維持期間の新たな終期を決定する。従って、プリンタPRは、有効状態維持期間の新たな終期が到来する前に、接続要求に応じてG/Oネゴシエーションを実行して、携帯端末とのWi−Fi接続を適切に確立することができる。このために、プリンタPRは、携帯端末から印刷データを受信して、印刷処理を適切に実行することができる。本変形例では、無効状態、有効状態が、「第1の状態」、「第2の状態」の一例である。また、有効状態カウンタが、「時間カウンタ」の一例である。   As described above, in the present modification, the printer PR changes the operating state of the wireless LAN I / F 20 from the enabled state to the disabled state when the end of the valid state maintaining period comes. Since no power is supplied to the wireless LAN I / F 20, the power consumption of the printer PR can be appropriately reduced. Further, the printer PR extends the end of the valid state maintaining period according to the predetermined notification, and determines a new ending of the valid state maintaining period. Therefore, the printer PR can appropriately establish a Wi-Fi connection with the portable terminal by executing G / O negotiation in response to the connection request before the new end of the valid state maintenance period comes. . Therefore, the printer PR can receive the print data from the portable terminal and appropriately execute the printing process. In the present modification, the invalid state and the valid state are examples of the “first state” and the “second state”. Further, the valid state counter is an example of the “time counter”.

(変形例11)「通信機器」は、プリンタPRでなくてもよく、例えば、スキャナであってもよい。本変形例では、例えば、スキャナは、上記の実施例と同様に、NFCI/Fと、無線LANI/Fと、を備えていてもよい。NFCI/Fは、無線プロファイルを記憶しており、当該無線プロファイルを携帯端末に送信してもよい。そして、スキャナのCPUは、スキャナがG/O機器であるWFDNWに携帯端末がCL機器として参加する場合に、WFDNWを利用して、スキャンデータを携帯端末に送信してもよい。本変形例では、スキャンデータが、「第1の対象データ」及び「第2の対象データ」の一例である。また、「通信機器」は、プリンタPR及びスキャナとは異なる機器(例えば、PC、コピー機、多機能機、サーバ、携帯端末等)であってもよい。 (Modification 11) The “communication apparatus” may not be the printer PR, and may be, for example, a scanner. In this modification, for example, the scanner may include an NFC I / F and a wireless LAN I / F as in the above-described embodiment. The NFC I / F stores a wireless profile, and may transmit the wireless profile to the mobile terminal. The CPU of the scanner may transmit scan data to the portable terminal using the WFD NW when the portable terminal participates as a CL device in the WFD NW where the scanner is a G / O device. In the present modification, the scan data is an example of the “first target data” and the “second target data”. The “communication device” may be a device (for example, a PC, a copier, a multi-function device, a server, a portable terminal, etc.) different from the printer PR and the scanner.

(変形例12)「外部機器」は、携帯端末PT1,PT2に限られず、PC、プリンタ、スキャナ、コピー機、多機能機、サーバ等であってもよい。 (Modification 12) The “external device” is not limited to the portable terminals PT1 and PT2, and may be a PC, a printer, a scanner, a copier, a multi-function device, a server or the like.

(変形例13)上記の実施例では、プリンタPRのCPU42がメインメモリ44内のプログラムPG(即ちソフトウェア)を実行することによって、図3〜図5の各処理が実現される。これに代えて、これらの各処理のうちの少なくとも1つの処理は、論理回路等のハードウェアによって実現されてもよい。 (Modification 13) In the above-described embodiment, the CPU 42 of the printer PR executes the program PG (i.e. software) in the main memory 44 to realize the processes shown in FIGS. Alternatively, at least one of the processes may be implemented by hardware such as a logic circuit.

以下の各項目は、本明細書によって開示される技術の一つの側面である。
(項目1)
通信機器であって、
無線通信を実行するための第1のインターフェイスと、
コンピュータと、
コンピュータ読取可能指示を記憶するメモリと、を備え
前記コンピュータ読取可能指示は、前記コンピュータによって実行される際に、前記通信機器に以下の動作を実行させる:
前記通信機器の動作状態が、前記第1のインターフェイスを介した無線通信を実行するための第1の無線ネットワークの親局として動作する親局状態であり、かつ、前記第1の無線ネットワークに子局として参加している外部機器の数である子局機器数が、ゼロである場合に、前記子局機器数がゼロである状況で前記通信機器の動作状態を前記親局状態に維持するための維持期間の終期を決定すること;
前記維持期間の前記終期が到来する際に、前記通信機器の前記動作状態を、前記親局状態から、無線ネットワークに所属していない無所属状態に変更して、前記第1の無線ネットワークを消滅させること;
前記維持期間の前記終期が到来する前に、特定の外部機器が前記第1の無線ネットワークに子局として参加する場合に、前記第1の無線ネットワークを利用して、前記第1のインターフェイスを介して、対象データの無線通信を前記特定の外部機器と実行すること;
所定指示を検出すること;及び
前記維持期間の前記終期が到来する前に、前記所定指示が検出される際に、前記維持期間の前記終期を延長して、前記維持期間の新たな終期を決定すること。
The following items are one aspect of the technology disclosed by the present specification.
(Item 1)
A communication device,
A first interface for performing wireless communication,
With a computer
A memory for storing computer readable instructions, the computer readable instructions causing the communication device to perform the following operations when executed by the computer:
The operation state of the communication device is a master station state operating as a master station of a first wireless network for performing wireless communication via the first interface, and a child of the first wireless network In order to maintain the operation state of the communication device in the master station state in a situation where the number of slave station devices is zero when the number of slave station devices which is the number of external devices participating as a station is zero Determining the end of the maintenance period of
When the end of the maintenance period arrives, the operation state of the communication device is changed from the master station state to a non-belonging state not belonging to a wireless network, and the first wireless network is extinguished. about;
In the case where a specific external device joins the first wireless network as a child station before the end of the maintenance period comes, using the first wireless network via the first interface Performing wireless communication of target data with the particular external device;
Detecting a predetermined instruction; and, when the predetermined instruction is detected before the end of the maintenance period comes, the end of the maintenance period is extended to determine a new end of the maintenance period To do.

(項目2)
項目1に記載の通信機器であって、
前記コンピュータ読取可能指示は、前記コンピュータによって実行される際に、前記通信機器に以下の動作をさらに実行させる:
前記通信機器の動作状態を前記無所属状態から前記親局状態に変更して、前記第1の無線ネットワークを形成すること、
ここで、前記第1の無線ネットワークが形成された時点では、前記子局機器数は、ゼロであり、
前記維持期間の前記終期を決定することは、前記第1の無線ネットワークが形成される際に、前記子局機器数がゼロである状況で前記通信機器の動作状態を前記親局状態に維持するための第1の維持期間の終期を決定することを含む。
(Item 2)
The communication device according to item 1, wherein
The computer readable instructions, when executed by the computer, cause the communication device to further perform the following operations:
Changing the operating state of the communication device from the non-affiliation state to the master station state to form the first wireless network;
Here, when the first wireless network is formed, the number of slave station devices is zero,
Determining the end of the maintenance period maintains the operation state of the communication device in the parent station state in a situation where the number of slave station devices is zero when the first wireless network is formed. Determining the end of the first maintenance period.

(項目3)
項目2に記載の通信機器であって、
前記形成することは、前記通信機器の前記動作状態が前記無所属状態である状況で前記所定指示が検出される際に、前記通信機器の前記動作状態を前記無所属状態から前記親局状態に変更して、前記第1の無線ネットワークを形成することを含む。
(Item 3)
The communication device according to item 2, which is
The forming may change the operating state of the communication device from the non-affiliated state to the master station state when the predetermined instruction is detected in a state in which the operating state of the communication device is the non-associative state. Forming the first wireless network.

(項目4)
項目1から3のいずれかに記載の通信機器であって、
前記維持期間の前記終期を決定することは、前記子局機器数が1以上である状況から前記子局機器数がゼロになる際に、前記子局機器数がゼロである状況で前記通信機器の動作状態を前記親局状態に維持するための第2の維持期間の終期を決定することを含む。
(Item 4)
The communication device according to any one of items 1 to 3,
In the determination of the end of the maintenance period, when the number of slave station devices becomes zero from the situation where the number of slave station devices is one or more, the communication device in a situation where the number of slave station devices is zero Determining the end of a second maintenance period for maintaining the operating state of the master station.

(項目5)
通信機器であって、
無線通信を実行するための第1のインターフェイスと、
コンピュータと、
コンピュータ読取可能指示を記憶するメモリと、を備え
前記コンピュータ読取可能指示は、前記コンピュータによって実行される際に、前記通信機器に以下の動作を実行させる:
前記通信機器の動作状態が第1の状態とは異なる第2の状態である場合に、前記通信機器の動作状態を前記第2の状態に維持するための維持期間の終期を決定すること;
前記維持期間の前記終期が到来する際に、前記通信機器の前記動作状態を前記第2の状態から前記第1の状態に変更すること;
前記維持期間の前記終期が到来する前に、前記通信機器と第1の外部機器とが所属する第1の無線ネットワークが形成される場合に、前記第1の無線ネットワークを利用して、前記第1のインターフェイスを介して、第1の対象データの無線通信を前記第1の外部機器と実行すること;
所定指示を検出すること;及び
前記維持期間の前記終期が到来する前に、前記所定指示が検出される際に、前記維持期間の前記終期を延長して、前記維持期間の新たな終期を決定すること。
(Item 5)
A communication device,
A first interface for performing wireless communication,
With a computer
A memory for storing computer readable instructions, the computer readable instructions causing the communication device to perform the following operations when executed by the computer:
Determining the end of a maintenance period for maintaining the operating state of the communication device in the second state when the operating state of the communication device is a second state different from the first state;
Changing the operating state of the communication device from the second state to the first state when the end of the maintenance period arrives;
When the first wireless network to which the communication device and the first external device belong is formed before the end of the maintenance period comes, the first wireless network is used to Performing wireless communication of first target data with the first external device via one interface;
Detecting a predetermined instruction; and, when the predetermined instruction is detected before the end of the maintenance period comes, the end of the maintenance period is extended to determine a new end of the maintenance period To do.

(項目6)
項目1から5のいずれか一項に記載の通信機器であって、
前記通信機器は、さらに、
無線通信を実行するための第2のインターフェイスであって、前記第2のインターフェイスを介した無線通信を実行可能な最大の距離である所定距離は、前記第1のインターフェイスを介した無線通信を実行可能な最大の距離よりも小さい、前記第2のインターフェイスを備え、
前記第2のインターフェイスは、前記第2のインターフェイスといずれかの外部機器との間の距離であるデバイス間距離が前記所定距離より大きい第1の状況から、前記デバイス間距離が前記所定距離以下である第2の状況に変化する場合に、前記第1の無線ネットワークで利用されるべき第1の無線プロファイルを当該外部機器に送信し、
前記第2のインターフェイスは、さらに、前記第1の状況から前記第2の状況に変化する場合に、所定通知を前記コンピュータに供給し、
前記検出することは、前記第2のインターフェイスから前記所定通知が取得されることに応じて前記所定指示を検出することを含む。
(Item 6)
A communication device according to any one of items 1 to 5, wherein
The communication device may further
A second interface for performing wireless communication, wherein a predetermined distance, which is the maximum distance over which wireless communication can be performed via the second interface, performs wireless communication via the first interface. Comprising the second interface, which is smaller than the maximum possible distance,
The second interface is configured such that the inter-device distance is less than or equal to the predetermined distance from a first situation in which the inter-device distance which is the distance between the second interface and any external device is larger than the predetermined distance Transmitting to the external device a first wireless profile to be used in the first wireless network when changing to a second situation,
The second interface further provides a predetermined notification to the computer when changing from the first situation to the second situation,
The detecting includes detecting the predetermined instruction in response to the predetermined notification being acquired from the second interface.

(項目7)
項目6に記載の通信機器であって、
前記コンピュータ読取可能指示は、前記コンピュータによって実行される際に、前記通信機器に以下の動作をさらに実行させる:
前記第1の無線ネットワークが形成される前に、前記第1の無線プロファイルを前記第2のインターフェイスに記憶させるための第1の記憶指示を前記第2のインターフェイスに供給すること。
(Item 7)
Item 6. The communication device according to item 6,
The computer readable instructions, when executed by the computer, cause the communication device to further perform the following operations:
Providing a first storage indication to the second interface for storing the first wireless profile on the second interface before the first wireless network is formed.

(項目8)
項目7に記載の通信機器であって、
前記コンピュータ読取可能指示は、前記コンピュータによって実行される際に、前記通信機器に以下の動作をさらに実行させる:
前記第1の無線ネットワークが消滅した後であって、前記通信機器が親局として動作すべき第2の無線ネットワークが形成される前に、前記第1の無線プロファイルに代えて、前記第2の無線ネットワークで利用されるべき第2の無線プロファイルを前記第2のインターフェイスに記憶させるための第2の記憶指示を前記第2のインターフェイスに供給すること。
(Item 8)
Item 7 is the communication device according to item 7,
The computer readable instructions, when executed by the computer, cause the communication device to further perform the following operations:
After the disappearance of the first wireless network, before the formation of a second wireless network in which the communication device is to operate as a master station, the second wireless network is replaced with the first wireless profile. Providing a second storage indication to the second interface for causing the second interface to store a second wireless profile to be utilized in a wireless network.

(項目9)
項目6から8のいずれかに記載の通信機器であって、
前記第2のインターフェイスは、前記第1の状況から前記第2の状況に変化することに起因して、いずれかの外部機器から所定連信号を受信する際に、前記所定通知を前記コンピュータに供給する。
(Item 9)
The communication device according to any one of items 6 to 8,
The second interface supplies the predetermined notification to the computer when receiving a predetermined series signal from any external device due to the change from the first state to the second state. Do.

(項目10)
項目6から9のいずれかに記載の通信機器であって、
前記コンピュータは、前記第2のインターフェイスから前記所定通知が取得されることに応じて前記所定指示を検出してから所定時間が経過するまでの間に、前記第2のインターフェイスから前記所定通知が再び取得されても、前記所定指示を検出しない。
(Item 10)
The communication device according to any one of items 6 to 9,
The computer detects the predetermined instruction in response to the predetermined notification being acquired from the second interface, and the predetermined notification is again output from the second interface during a predetermined time period. Even if acquired, the predetermined instruction is not detected.

(項目11)
項目1から10のいずれかに記載の通信機器であって、
前記維持期間の前記終期を決定することは、時間をカウントするための時間カウンタのカウントを初期値から開始することを含み、
前記維持期間の前記新たな終期を決定することは、前記所定指示が検出された際に、前記時間カウンタの値を前記初期値に戻して、前記時間カウンタのカウントを前記初期値から再び開始することを含み、
前記時間カウンタの値が所定値に一致する際に、前記維持期間の前記終期が到来する。
(Item 11)
The communication device according to any one of items 1 to 10, wherein
Determining the end of the maintenance period includes starting from an initial value counting of a time counter for counting time;
In the determination of the new end of the maintenance period, when the predetermined instruction is detected, the value of the time counter is returned to the initial value, and the counting of the time counter is restarted from the initial value. Including
When the value of the time counter matches a predetermined value, the end of the sustain period comes.

(項目12)
項目11に記載の通信機器であって、
前記コンピュータ読取可能指示は、前記コンピュータによって実行される際に、前記通信機器に以下の動作をさらに実行させる:
前記維持期間の前記終期が到来する前に、前記特定の外部機器が前記第1の無線ネットワークに前記子局として参加する場合に、前記時間カウンタのカウントを停止すること。
(Item 12)
Item 11. The communication device according to item 11,
The computer readable instructions, when executed by the computer, cause the communication device to further perform the following operations:
Stopping the counting of the time counter when the particular external device joins the first wireless network as the slave station before the end of the maintenance period arrives.

(項目13)
通信機器のためのコンピュータ読取可能指示を記憶するコンピュータ読取可能記憶媒体であって、
前記コンピュータ読取可能指示は、前記通信機器に搭載されるコンピュータによって実行される際に、前記通信機器に以下の動作を実行させる:
前記通信機器の動作状態が、前記通信機器の第1のインターフェイスを介した無線通信を実行するための第1の無線ネットワークの親局として動作する親局状態であり、かつ、前記第1の無線ネットワークに子局として参加している外部機器の数である子局機器数が、ゼロである場合に、前記子局機器数がゼロである状況で前記通信機器の動作状態を前記親局状態に維持するための維持期間の終期を決定すること;
前記維持期間の前記終期が到来する際に、前記通信機器の前記動作状態を、前記親局状態から、無線ネットワークに所属していない無所属状態に変更して、前記第1の無線ネットワークを消滅させること;
前記維持期間の前記終期が到来する前に、特定の外部機器が前記第1の無線ネットワークに子局として参加する場合に、前記第1の無線ネットワークを利用して、前記第1のインターフェイスを介して、対象データの無線通信を前記特定の外部機器と実行すること;
所定指示を検出すること;及び
前記維持期間の前記終期が到来する前に、前記所定指示が検出される際に、前記維持期間の前記終期を延長して、前記維持期間の新たな終期を決定すること。
(Item 13)
A computer readable storage medium storing computer readable instructions for a communication device, comprising:
The computer readable instruction, when executed by a computer mounted on the communication device, causes the communication device to perform the following operations:
The operating state of the communication device is a master state operating as a master station of a first wireless network for performing wireless communication via the first interface of the communication device, and the first wireless When the number of slave devices, which is the number of external devices participating in the network as slaves, is zero, the operating state of the communication device is changed to the master state in a situation where the number of slave devices is zero. Determine the end of the maintenance period to maintain;
When the end of the maintenance period arrives, the operation state of the communication device is changed from the master station state to a non-belonging state not belonging to a wireless network, and the first wireless network is extinguished. about;
In the case where a specific external device joins the first wireless network as a child station before the end of the maintenance period comes, using the first wireless network via the first interface Performing wireless communication of target data with the particular external device;
Detecting a predetermined instruction; and, when the predetermined instruction is detected before the end of the maintenance period comes, the end of the maintenance period is extended to determine a new end of the maintenance period To do.

(項目14)
通信機器のためのコンピュータ読取可能指示を記憶するコンピュータ読取可能記憶媒体であって、
前記コンピュータ読取可能指示は、前記通信機器に搭載されるコンピュータによって実行される際に、前記通信機器に以下の動作を実行させる:
前記通信機器の動作状態が第1の状態とは異なる第2の状態である場合に、前記通信機器の動作状態を前記第2の状態に維持するための維持期間の終期を決定すること;
前記維持期間の前記終期が到来する際に、前記通信機器の前記動作状態を前記第2の状態から前記第1の状態に変更すること;
前記維持期間の前記終期が到来する前に、前記通信機器と第1の外部機器とが所属する第1の無線ネットワークが形成される場合に、前記第1の無線ネットワークを利用して、前記通信機器の第1のインターフェイスを介して、第1の対象データの無線通信を前記第1の外部機器と実行すること;
所定指示を検出すること;及び
前記維持期間の前記終期が到来する前に、前記所定指示が検出される際に、前記維持期間の前記終期を延長して、前記維持期間の新たな終期を決定すること。
(Item 14)
A computer readable storage medium storing computer readable instructions for a communication device, comprising:
The computer readable instruction, when executed by a computer mounted on the communication device, causes the communication device to perform the following operations:
Determining the end of a maintenance period for maintaining the operating state of the communication device in the second state when the operating state of the communication device is a second state different from the first state;
Changing the operating state of the communication device from the second state to the first state when the end of the maintenance period arrives;
When the first wireless network to which the communication device and the first external device belong is formed before the end of the maintenance period comes, the communication using the first wireless network is performed. Performing wireless communication of first target data with said first external device via a first interface of the device;
Detecting a predetermined instruction; and, when the predetermined instruction is detected before the end of the maintenance period comes, the end of the maintenance period is extended to determine a new end of the maintenance period To do.

(対応関係)
上記の実施例の各要素と上記の各項目の各要素との対応関係を以下に列挙する。プリンタPR、携帯端末PT1が、それぞれ、「通信機器」、「特定の外部機器」の一例である。CPU42、メインメモリ44、プログラムPG、無線LANI/F20、NFCI/F30が、それぞれ、「コンピュータ」、「メモリ」、「コンピュータ読取可能指示」、「第1のインターフェイス」、「第2のインターフェイス」の一例である。G/OカウンタGC、300(秒)、ゼロが、それぞれ、「時間カウンタ」、「初期値」、「所定値」の一例である。第1のWFDNWが、「第1の無線ネットワーク」の一例である。デバイス状態、G/O状態、G/O機器、CL機器が、それぞれ、「無所属状態」、「親局状態」、「親局」、「子局」の一例である。また、デバイス状態、G/O状態は、それぞれ、「第1の状態」、「第2の状態」の一例でもある。図3のS42でYES及びS43でYESと判断することが、「所定指示を検出する」の一例である。また、Polling信号、Read信号、及び、確認信号が、「所定信号」の一例である。
(Correspondence relationship)
The correspondence between each element of the above embodiment and each element of each item is listed below. The printer PR and the portable terminal PT1 are examples of the “communication device” and the “specific external device”, respectively. The CPU 42, the main memory 44, the program PG, the wireless LAN I / F 20, and the NFC I / F 30 are respectively “computer”, “memory”, “computer readable instruction”, “first interface”, “second interface”. It is an example. The G / O counter GC, 300 (seconds), and zero are examples of the “time counter”, the “initial value”, and the “predetermined value”, respectively. The first WFD NW is an example of the “first wireless network”. The device state, the G / O state, the G / O device, and the CL device are respectively examples of the “non-belonging state”, the “master station state”, the “master station”, and the “child station”. The device state and the G / O state are also examples of the “first state” and the “second state”, respectively. Determining YES in S42 and YES in S43 of FIG. 3 is an example of “detect predetermined instruction”. The Polling signal, the Read signal, and the confirmation signal are examples of the “predetermined signal”.

図7〜図9において、印刷データ240,340,440が、「対象データ」の一例である。図6〜図8において、所定通知110A,210A,310Aに応じて決定されるG/O維持期間の終期、及び、図7〜図9において、CL機器の数がゼロになった際に決定されるG/O維持期間の終期が、「維持期間の終期」の一例である。図8及び図9において、所定通知320A,420Aに応じて延長されるG/O維持期間の終期が、「維持期間の新たな終期」の一例である。図6〜図8において、所定通知110A,210A,310Aに応じて決定されるG/O維持期間の終期が、「第1の維持期間の終期」の一例である。図7〜図9において、CL機器の数がゼロになった際に決定されるG/O維持期間の終期が、「第2の維持期間の終期」の一例である。図6の記憶指示100が、「第1の記憶指示」の一例である。また、図6の記憶指示160、図7の記憶指示260、及び、図9の記憶指示460が、「第2の記憶指示」の一例である。   In FIGS. 7 to 9, the print data 240, 340, and 440 are examples of “target data”. In FIGS. 6-8, the end of the G / O maintenance period determined according to the predetermined notification 110A, 210A, 310A, and in FIGS. 7-9, is determined when the number of CL devices becomes zero. The end of the G / O maintenance period is an example of the “end of the maintenance period”. In FIGS. 8 and 9, the end of the G / O maintenance period extended in response to the predetermined notifications 320A and 420A is an example of the “new end of maintenance period”. In FIGS. 6-8, the end of the G / O maintenance period determined according to the predetermined notification 110A, 210A, 310A is an example of the "end of the 1st maintenance period." In FIGS. 7 to 9, the end of the G / O maintenance period determined when the number of CL devices becomes zero is an example of “the end of the second maintenance period”. The storage instruction 100 of FIG. 6 is an example of the “first storage instruction”. Further, the storage instruction 160 of FIG. 6, the storage instruction 260 of FIG. 7, and the storage instruction 460 of FIG. 9 are examples of the “second storage instruction”.

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

2:通信システム、PR:プリンタ、PT1,PT2:携帯端末、PA:プリンタアプリ、12:操作部、14:表示部、16:印刷実行部、20:無線LANインターフェイス、30:NFCインターフェイス、32:プロセッサ、WP,WP1,WP2:無線プロファイル、34:I/Fメモリ、40:制御部、42:CPU、44:メインメモリ、PG:プログラム、GC:G/Oカウンタ、NC:NFCカウンタ、ML:管理リスト、100,160,260,460:記憶指示、110,210,310,320,420:Polling信号、110A,114A,116A,210A,310A,320A,420A:所定通知、230,330,430:接続要求、240,340,440:印刷データ   2: Communication system, PR: Printer, PT1, PT2: Mobile terminal, PA: Printer application, 12: Operation unit, 14: Display unit, 16: Print execution unit, 20: Wireless LAN interface, 30: NFC interface, 32: Processor, WP, WP1, WP2: wireless profile, 34: I / F memory, 40: control unit, 42: CPU, 44: main memory, PG: program, GC: G / O counter, NC: NFC counter, ML: Management list, 100, 160, 260, 460: storage instruction, 110, 210, 310, 320, 420: Polling signal, 110A, 114A, 116A, 210A, 310A, 320A, 420A: predetermined notification, 230, 330, 430: Connection request, 240, 340, 440: Print data

次いで、CPU42は、S88において、無線プロファイルWPを準備し、S90において、S88で準備された無線プロファイルWPを含む記憶指示をNFCI/F30に供給する。S88及びS90は、図3のS40及びS41と同様である。上述したように、S40では、CPU42は、ランダムに文字列を選択することによって、SSID及びパスワードを準備する。この点は、S88でも同様である。従って、S88で準備されるSSID及びパスワードは、通常、S40で準備されるSSID及びパスワードとは異なる。また、今回のS88で準備されるSSID及びパスワードは、通常、前回のS88で準備されたSSID及びパスワードとは異なる。このように、CPU42は、過去に利用されていないユニークな無線プロファイルWPを準備することができる。S90が終了すると、図5の処理が終了する。 Then, CPU 42, in S88, to prepare the wireless profile WP, in S90, and supplies the NFC I / F30 storage instruction including the wireless profile WP prepared with S88. S88 and S90 are the same as S40 and S41 of FIG. As described above, in S40, the CPU 42 prepares the SSID and the password by randomly selecting a character string. This point is the same as in S88. Therefore, the SSID and password prepared in S88 are usually different from the SSID and password prepared in S40. Also, the SSID and password prepared in S88 of this time are usually different from the SSID and password prepared in S88 of the last time. Thus, the CPU 42 can prepare a unique wireless profile WP that has not been used in the past. When S90 ends, the process of FIG. 5 ends.

(項目9)
項目6から8のいずれかに記載の通信機器であって、
前記第2のインターフェイスは、前記第1の状況から前記第2の状況に変化することに起因して、いずれかの外部機器から所定信号を受信する際に、前記所定通知を前記コンピュータに供給する。
(Item 9)
The communication device according to any one of items 6 to 8,
Said second interface, due to the change from the first status to the second status, when receiving Sadanobu No. Tokoro from any of the external device, supplying the predetermined notification to the computer Do.

Claims (14)

通信機器であって、
無線通信を実行するための第1のインターフェイスと、
制御部と、を備え、
前記制御部は、
前記通信機器の動作状態を、無線ネットワークに所属していない無所属状態から、前記第1のインターフェイスを介した無線通信を実行するための第1の無線ネットワークの親局として動作する親局状態に変更して、前記第1の無線ネットワークを形成する形成部であって、前記第1の無線ネットワークが形成された時点では、前記第1の無線ネットワークに子局として参加している外部機器の数である子局機器数は、ゼロである、前記形成部と、
前記第1の無線ネットワークが形成される際に、前記子局機器数がゼロである状況で前記通信機器の動作状態を前記親局状態に維持するための第1の維持期間の終期を決定する決定部と、
前記第1の維持期間の前記終期が到来する際に、前記通信機器の前記動作状態を前記親局状態から前記無所属状態に変更して、前記第1の無線ネットワークを消滅させる消滅部と、
前記第1の維持期間の前記終期が到来する前に、第1の外部機器が前記第1の無線ネットワークに子局として参加する場合に、前記第1の無線ネットワークを利用して、前記第1のインターフェイスを介して、第1の対象データの無線通信を前記第1の外部機器と実行する通信実行部と、
所定指示を検出する検出部と、
前記第1の維持期間の前記終期が到来する前に、前記所定指示が検出される際に、前記第1の維持期間の前記終期を延長して、前記第1の維持期間の新たな終期を決定する延長部と、
を備える、通信機器。
A communication device,
A first interface for performing wireless communication,
And a control unit,
The control unit
Change the operation state of the communication device from a non-affiliation state not belonging to a wireless network to a parent station state operating as a master station of a first wireless network for performing wireless communication via the first interface Forming the first wireless network, and at the time when the first wireless network is formed, the number of external devices participating in the first wireless network as slave stations The formation unit, wherein a certain number of slave station devices is zero,
When the first wireless network is formed, the end of a first maintenance period for maintaining the operation state of the communication device in the parent station state is determined in a situation where the number of slave station devices is zero. The decision unit,
An elimination unit for changing the operation state of the communication device from the parent station state to the non-affiliation state when the end of the first maintenance period arrives, and eliminating the first wireless network;
In the case where a first external device joins the first wireless network as a child station before the end of the first maintenance period, the first wireless network is used to perform the first A communication execution unit that executes wireless communication of first target data with the first external device via the interface;
A detection unit that detects a predetermined instruction;
Before the end of the first maintenance period comes, the end of the first maintenance period is extended to detect a new end of the first maintenance period when the predetermined instruction is detected. The extension to be determined,
Communication equipment comprising.
前記形成部は、前記通信機器の前記動作状態が前記無所属状態である状況で前記所定指示が検出される際に、前記通信機器の前記動作状態を前記無所属状態から前記親局状態に変更して、前記第1の無線ネットワークを形成する、請求項1に記載の通信機器。   The formation unit changes the operating state of the communication device from the non-affiliated state to the master station state when the predetermined instruction is detected in a state in which the operating state of the communication device is the non-associative state. The communication device according to claim 1, forming the first wireless network. 前記決定部は、さらに、前記第1の外部機器が前記第1の無線ネットワークに前記子局として参加した後に、前記第1の外部機器が前記第1の無線ネットワークから離脱して、前記第1の無線ネットワークの前記子局機器数がゼロになる際に、前記子局機器数がゼロである状況で前記通信機器の前記動作状態を前記親局状態に維持するための第2の維持期間の終期を決定し、
前記消滅部は、さらに、前記第2の維持期間の前記終期が到来する際に、前記通信機器の前記動作状態を前記親局状態から前記無所属状態に変更して、前記第1の無線ネットワークを消滅させ、
前記通信実行部は、さらに、前記第2の維持期間の前記終期が到来する前に、第2の外部機器が前記第1の無線ネットワークに子局として参加する場合に、前記第1の無線ネットワークを利用して、前記第1のインターフェイスを介して、第2の対象データの無線通信を前記第2の外部機器と実行する、請求項1又は2に記載の通信機器。
The determining unit further determines that, after the first external device joins the first wireless network as the slave station, the first external device leaves the first wireless network. The second maintenance period for maintaining the operation state of the communication device in the master station state in a situation where the number of slave station devices is zero when the number of slave station devices in the wireless network becomes zero. Determine the end of the period,
The annihilation unit further changes the operation state of the communication device from the parent station state to the non-belonging state when the end of the second sustaining period comes, to thereby change the first wireless network. Disappear,
The communication execution unit further transmits the first wireless network when the second external device joins the first wireless network as a slave station before the end of the second maintenance period arrives. The communication device according to claim 1, wherein wireless communication of second target data is performed with the second external device through the first interface using
前記延長部は、さらに、前記第2の維持期間の前記終期が到来する前に、前記所定指示が検出される際に、前記第2の維持期間の前記終期を延長して、前記第2の維持期間の新たな終期を決定する、請求項3に記載の通信機器。   The extension section further extends the end of the second maintenance period when the predetermined instruction is detected before the end of the second maintenance period comes, to thereby extend the second maintenance period. The communication device according to claim 3, wherein a new end of the maintenance period is determined. 通信機器であって、
無線通信を実行するための第1のインターフェイスと、
制御部と、を備え、
前記制御部は、
前記通信機器の動作状態を、第1の状態から、前記第1の状態とは異なる第2の状態に変更する第1の変更部と、
前記通信機器の動作状態が前記第1の状態から前記第2の状態に変更される際に、前記通信機器の動作状態を前記第2の状態に維持するための第1の維持期間の終期を決定する決定部と、
前記第1の維持期間の前記終期が到来する際に、前記通信機器の前記動作状態を前記第2の状態から前記第1の状態に変更する第2の変更部と、
前記第1の維持期間の前記終期が到来する前に、前記通信機器と第1の外部機器とが所属する第1の無線ネットワークが形成される場合に、前記第1の無線ネットワークを利用して、前記第1のインターフェイスを介して、第1の対象データの無線通信を前記第1の外部機器と実行する通信実行部と、
所定指示を検出する検出部と、
前記第1の維持期間の前記終期が到来する前に、前記所定指示が検出される際に、前記第1の維持期間の前記終期を延長して、前記第1の維持期間の新たな終期を決定する延長部と、
を備える、通信機器。
A communication device,
A first interface for performing wireless communication,
And a control unit,
The control unit
A first change unit configured to change an operation state of the communication device from a first state to a second state different from the first state;
When the operating state of the communication device is changed from the first state to the second state, the end of the first maintenance period for maintaining the operating state of the communication device in the second state is used. A decision unit to decide
A second changing unit configured to change the operation state of the communication device from the second state to the first state when the end of the first maintenance period comes;
When the first wireless network to which the communication device and the first external device belong is formed before the end of the first maintenance period comes, using the first wireless network A communication execution unit that executes wireless communication of first target data with the first external device via the first interface;
A detection unit that detects a predetermined instruction;
Before the end of the first maintenance period comes, the end of the first maintenance period is extended to detect a new end of the first maintenance period when the predetermined instruction is detected. The extension to be determined,
Communication equipment comprising.
前記通信機器は、さらに、
無線通信を実行するための第2のインターフェイスであって、前記第2のインターフェイスを介した無線通信を実行可能な最大の距離である所定距離は、前記第1のインターフェイスを介した無線通信を実行可能な最大の距離よりも小さい、前記第2のインターフェイスを備え、
前記第2のインターフェイスは、前記第2のインターフェイスといずれかの外部機器との間の距離であるデバイス間距離が前記所定距離より大きい第1の状況から、前記デバイス間距離が前記所定距離以下である第2の状況に変化する場合に、前記第1の無線ネットワークで利用されるべき第1の無線プロファイルを当該外部機器に送信し、
前記第2のインターフェイスは、さらに、前記第1の状況から前記第2の状況に変化する場合に、所定通知を前記制御部に供給し、
前記検出部は、前記第2のインターフェイスから前記所定通知が取得されることに応じて前記所定指示を検出する、請求項1から5のいずれか一項に記載の通信機器。
The communication device may further
A second interface for performing wireless communication, wherein a predetermined distance, which is the maximum distance over which wireless communication can be performed via the second interface, performs wireless communication via the first interface. Comprising the second interface, which is smaller than the maximum possible distance,
The second interface is configured such that the inter-device distance is less than or equal to the predetermined distance from a first situation in which the inter-device distance which is the distance between the second interface and any external device is larger than the predetermined distance Transmitting to the external device a first wireless profile to be used in the first wireless network when changing to a second situation,
The second interface further supplies a predetermined notification to the control unit when changing from the first state to the second state.
The communication device according to any one of claims 1 to 5, wherein the detection unit detects the predetermined instruction in response to the predetermined notification being acquired from the second interface.
前記制御部は、さらに、
前記第1の無線ネットワークが形成される前に、前記第1の無線プロファイルを前記第2のインターフェイスに記憶させるための第1の記憶指示を前記第2のインターフェイスに供給する供給部を備える、請求項6に記載の通信機器。
The control unit is further configured to:
A supply unit for supplying a first storage instruction to the second interface to store the first wireless profile in the second interface before the first wireless network is formed. The communication device according to Item 6.
前記供給部は、さらに、前記第1の無線ネットワークが消滅した後であって、前記通信機器が親局として動作すべき第2の無線ネットワークが形成される前に、前記第1の無線プロファイルに代えて、前記第2の無線ネットワークで利用されるべき第2の無線プロファイルを前記第2のインターフェイスに記憶させるための第2の記憶指示を前記第2のインターフェイスに供給する、請求項7に記載の通信機器。   Further, the supply unit may transmit the first wireless profile to the first wireless profile after the first wireless network disappears and before the second wireless network in which the communication device should operate as a master station is formed. 8. A method according to claim 7, wherein instead the second interface is provided with a second stored indication for storing on the second interface a second wireless profile to be utilized in the second wireless network. Communication equipment. 前記第2のインターフェイスは、前記第1の状況から前記第2の状況に変化することに起因して、いずれかの外部機器から所定信号を受信する際に、前記所定通知を前記制御部に供給する、請求項6から8のいずれか一項に記載の通信機器。   The second interface supplies the predetermined notification to the control unit when receiving a predetermined signal from any of the external devices due to the change from the first state to the second state. The communication device according to any one of claims 6 to 8. 前記検出部は、前記第2のインターフェイスから前記所定通知が取得されることに応じて前記所定指示を検出してから所定時間が経過するまでの間に、前記第2のインターフェイスから前記所定通知が再び取得されても、前記所定指示を検出しない、請求項6から9のいずれか一項に記載の通信機器。   The detection unit detects the predetermined instruction in response to the predetermined notification being acquired from the second interface, and before the predetermined time elapses, the predetermined notification is received from the second interface. The communication device according to any one of claims 6 to 9, wherein the predetermined instruction is not detected even if it is acquired again. 前記決定部は、時間をカウントするための時間カウンタのカウントを初期値から開始することによって、前記第1の維持期間の前記終期を決定し、
前記延長部は、前記所定指示が検出された際に、前記時間カウンタの値を前記初期値に戻して、前記時間カウンタのカウントを前記初期値から再び開始することによって、前記第1の維持期間の前記終期を延長して、前記第1の維持期間の前記新たな終期を決定し、
前記時間カウンタの値が所定値に一致する際に、前記第1の維持期間の前記終期が到来する、請求項1から10のいずれか一項に記載の通信機器。
The determination unit determines the end of the first sustain period by starting from an initial value a count of a time counter for counting time;
The extension unit returns the value of the time counter to the initial value when the predetermined instruction is detected, and restarts the counting of the time counter from the initial value, thereby the first sustain period. Determine the new end of the first maintenance period, extending the end of the
The communication device according to any one of claims 1 to 10, wherein the end of the first maintenance period comes when the value of the time counter matches a predetermined value.
前記制御部は、さらに、
前記第1の維持期間の前記終期が到来する前に、前記第1の外部機器が前記第1の無線ネットワークに前記子局として参加する場合に、前記時間カウンタのカウントを停止する停止部を備える、請求項11に記載の通信機器。
The control unit is further configured to:
When the first external device participates in the first wireless network as the slave station before the end of the first sustaining period comes, a stop unit is provided that stops the counting of the time counter. The communication device according to claim 11.
通信機器のためのコンピュータプログラムであって、
前記コンピュータプログラムは、前記通信機器に搭載されるコンピュータに、以下の各処理、即ち、
前記通信機器の動作状態を、無線ネットワークに所属していない無所属状態から、前記通信機器の第1のインターフェイスを介した無線通信を実行するための第1の無線ネットワークの親局として動作する親局状態に変更して、前記第1の無線ネットワークを形成する形成処理であって、前記第1の無線ネットワークが形成された時点では、前記第1の無線ネットワークに子局として参加している外部機器の数である子局機器数は、ゼロである、前記形成処理と、
前記第1の無線ネットワークが形成される際に、前記子局機器数がゼロである状況で前記通信機器の動作状態を前記親局状態に維持するための第1の維持期間の終期を決定する決定処理と、
前記第1の維持期間の前記終期が到来する際に、前記通信機器の前記動作状態を前記親局状態から前記無所属状態に変更して、前記第1の無線ネットワークを消滅させる消滅処理と、
前記第1の維持期間の前記終期が到来する前に、第1の外部機器が前記第1の無線ネットワークに子局として参加する場合に、前記第1の無線ネットワークを利用して、前記第1のインターフェイスを介して、第1の対象データの無線通信を前記第1の外部機器と実行する通信実行処理と、
所定指示を検出する検出処理と、
前記第1の維持期間の前記終期が到来する前に、前記所定指示が検出される際に、前記第1の維持期間の前記終期を延長して、前記第1の維持期間の新たな終期を決定する延長処理と、
を実行させる、コンピュータプログラム。
A computer program for a communication device,
The computer program causes the computer installed in the communication device to perform the following processing:
A parent station that operates as a parent station of a first wireless network for executing wireless communication via the first interface of the communication device from a non-belonging state that does not belong to the wireless network as an operation state of the communication device An external device changing to a state to form the first wireless network, and at the time the first wireless network is formed, the external device participating as a slave station in the first wireless network The formation process, wherein the number of slave devices, which is the number of
When the first wireless network is formed, the end of a first maintenance period for maintaining the operation state of the communication device in the parent station state is determined in a situation where the number of slave station devices is zero. Decision processing,
Annihilation processing for changing the operation state of the communication device from the parent station state to the non-belonging state when the end of the first maintenance period arrives, thereby causing the first wireless network to disappear.
In the case where a first external device joins the first wireless network as a child station before the end of the first maintenance period, the first wireless network is used to perform the first Communication execution processing for executing wireless communication of first target data with the first external device via the interface of
Detection processing for detecting a predetermined instruction;
Before the end of the first maintenance period comes, the end of the first maintenance period is extended to detect a new end of the first maintenance period when the predetermined instruction is detected. Extension process to decide
A computer program that runs
通信機器のためのコンピュータプログラムであって、
前記コンピュータプログラムは、前記通信機器に搭載されるコンピュータに、以下の各処理、即ち、
前記通信機器の動作状態を、第1の状態から、前記第1の状態とは異なる第2の状態に変更する第1の変更処理と、
前記通信機器の動作状態が前記第1の状態から前記第2の状態に変更される際に、前記通信機器の動作状態を前記第2の状態に維持するための第1の維持期間の終期を決定する決定処理と、
前記第1の維持期間の前記終期が到来する際に、前記通信機器の前記動作状態を前記第2の状態から前記第1の状態に変更する第2の変更処理と、
前記第1の維持期間の前記終期が到来する前に、前記通信機器と第1の外部機器とが所属する第1の無線ネットワークが形成される場合に、前記第1の無線ネットワークを利用して、前記通信機器の第1のインターフェイスを介して、第1の対象データの無線通信を前記第1の外部機器と実行する通信実行処理と、
所定指示を検出する検出処理と、
前記第1の維持期間の前記終期が到来する前に、前記所定指示が検出される際に、前記第1の維持期間の前記終期を延長して、前記第1の維持期間の新たな終期を決定する延長処理と、
を実行させる、コンピュータプログラム。
A computer program for a communication device,
The computer program causes the computer installed in the communication device to perform the following processing:
A first change process of changing the operation state of the communication device from a first state to a second state different from the first state;
When the operating state of the communication device is changed from the first state to the second state, the end of the first maintenance period for maintaining the operating state of the communication device in the second state is used. Decision processing to decide,
A second change process of changing the operation state of the communication device from the second state to the first state when the end of the first maintenance period arrives;
When the first wireless network to which the communication device and the first external device belong is formed before the end of the first maintenance period comes, using the first wireless network A communication execution process of executing wireless communication of first target data with the first external device via the first interface of the communication device;
Detection processing for detecting a predetermined instruction;
Before the end of the first maintenance period comes, the end of the first maintenance period is extended to detect a new end of the first maintenance period when the predetermined instruction is detected. Extension process to decide
A computer program that runs
JP2018233328A 2018-12-13 2018-12-13 Communication equipment Active JP6842453B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018233328A JP6842453B2 (en) 2018-12-13 2018-12-13 Communication equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018233328A JP6842453B2 (en) 2018-12-13 2018-12-13 Communication equipment

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2014184828A Division JP6451163B2 (en) 2014-09-11 2014-09-11 Communication equipment

Publications (2)

Publication Number Publication Date
JP2019071634A true JP2019071634A (en) 2019-05-09
JP6842453B2 JP6842453B2 (en) 2021-03-17

Family

ID=66441975

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018233328A Active JP6842453B2 (en) 2018-12-13 2018-12-13 Communication equipment

Country Status (1)

Country Link
JP (1) JP6842453B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021111703A1 (en) * 2019-12-06 2021-06-10 ソニーグループ株式会社 Communication control apparatus, communication control method, and program

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013005188A (en) * 2011-06-15 2013-01-07 Brother Ind Ltd Radio communication device
JP2013214802A (en) * 2012-03-30 2013-10-17 Brother Ind Ltd Communication device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013005188A (en) * 2011-06-15 2013-01-07 Brother Ind Ltd Radio communication device
JP2013214802A (en) * 2012-03-30 2013-10-17 Brother Ind Ltd Communication device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021111703A1 (en) * 2019-12-06 2021-06-10 ソニーグループ株式会社 Communication control apparatus, communication control method, and program

Also Published As

Publication number Publication date
JP6842453B2 (en) 2021-03-17

Similar Documents

Publication Publication Date Title
CN107682844B (en) Communication device
JP5754255B2 (en) Wireless communication device
JP6451163B2 (en) Communication equipment
JP6327075B2 (en) Function execution equipment
JP6477132B2 (en) Communication equipment
US9288827B2 (en) Wireless communication devices, communication systems, methods, and non-transitory computer-readable media for selectively establishing different types of connections
JP2015070518A (en) Communication device
US9148904B2 (en) Communication apparatus
US11991613B2 (en) Information processing apparatus that establishes connection to a communication apparatus, enabling an access point, control method, and non-transitory computer-readable storage medium storing program
JP6842453B2 (en) Communication equipment
US10372388B2 (en) Communication system, communication device, and control method
JP6547870B2 (en) Communication equipment
JP2016036190A (en) Communication device
JP6508388B2 (en) Function execution device
US20230389058A1 (en) Communication apparatus, control method, and storage medium
EP4284086A1 (en) Communication apparatus, control method, and program
US20230389090A1 (en) Communication apparatus, control method, and storage medium
JP6544468B2 (en) Wireless communication device
JP6179437B2 (en) Function execution device
JP6862097B2 (en) Programs, information processing devices, and control methods for information processing devices
KR20230165127A (en) Communication apparatus, control method, and storage medium
JP2023173888A (en) Communication device, control method, and program
JP2015162858A (en) Radio communication apparatus
JP2020005295A (en) Communication device
JP2017208850A (en) Communication device

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190110

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190111

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20191001

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20191129

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20191224

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200313

C60 Trial request (containing other claim documents, opposition documents)

Free format text: JAPANESE INTERMEDIATE CODE: C60

Effective date: 20200313

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20200324

C21 Notice of transfer of a case for reconsideration by examiners before appeal proceedings

Free format text: JAPANESE INTERMEDIATE CODE: C21

Effective date: 20200331

A912 Re-examination (zenchi) completed and case transferred to appeal board

Free format text: JAPANESE INTERMEDIATE CODE: A912

Effective date: 20200515

C211 Notice of termination of reconsideration by examiners before appeal proceedings

Free format text: JAPANESE INTERMEDIATE CODE: C211

Effective date: 20200519

C22 Notice of designation (change) of administrative judge

Free format text: JAPANESE INTERMEDIATE CODE: C22

Effective date: 20200720

C22 Notice of designation (change) of administrative judge

Free format text: JAPANESE INTERMEDIATE CODE: C22

Effective date: 20200908

C13 Notice of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: C13

Effective date: 20200925

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20201117

C22 Notice of designation (change) of administrative judge

Free format text: JAPANESE INTERMEDIATE CODE: C22

Effective date: 20201215

C23 Notice of termination of proceedings

Free format text: JAPANESE INTERMEDIATE CODE: C23

Effective date: 20210112

C03 Trial/appeal decision taken

Free format text: JAPANESE INTERMEDIATE CODE: C03

Effective date: 20210216

C30A Notification sent

Free format text: JAPANESE INTERMEDIATE CODE: C3012

Effective date: 20210216

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210219

R150 Certificate of patent or registration of utility model

Ref document number: 6842453

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150