JP6842453B2 - Communication equipment - Google Patents
Communication equipment Download PDFInfo
- Publication number
- JP6842453B2 JP6842453B2 JP2018233328A JP2018233328A JP6842453B2 JP 6842453 B2 JP6842453 B2 JP 6842453B2 JP 2018233328 A JP2018233328 A JP 2018233328A JP 2018233328 A JP2018233328 A JP 2018233328A JP 6842453 B2 JP6842453 B2 JP 6842453B2
- Authority
- JP
- Japan
- Prior art keywords
- state
- wireless
- interface
- communication device
- printer
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Description
本明細書では、無線ネットワークの親局として動作可能な通信機器を開示する。 This specification discloses a communication device that can operate as a master station of a wireless network.
特許文献1には、WFD(Wi-Fi Directの略)方式のデバイス状態からGroup Owner状態(以下では「G/O状態」と呼ぶ)に移行して、無線ネットワークを形成するプリンタが開示されている。プリンタは、無線ネットワークに参加しているクライアント状態の機器の数がゼロになる際に、G/O状態を維持するための維持期間の終期を決定する。プリンタは、維持期間の終期が到来する際に、G/O状態からデバイス状態に移行して、無線ネットワークを消滅させる。一方、プリンタは、維持期間の終期が到来する前に対象機器から接続要求を受信する場合に、接続処理を実行して、対象機器との無線接続を確立する。この結果、対象機器が無線ネットワークに参加するので、プリンタは、無線ネットワークを利用して、対象機器と無線通信を実行することができる。
本明細書では、外部機器と無線通信を適切に実行し得る通信機器を提供する。 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 equipment disclosed herein includes a first interface for performing wireless communication and a control unit. The control unit changes the operating state of the communication device from an unaffiliated state that does not belong to the wireless network to a master station state that operates as a master station of the first wireless network for executing wireless communication via the first interface. It is the number of external devices that form the first wireless network by changing to, and at the time when the first wireless network is formed, it is participating as a slave station in the first wireless network. The number of slave station devices is zero. When the forming unit and the first wireless network are formed, the operating state of the communication device is maintained in the master station state in the situation where the number of slave station devices is zero. The decision unit that determines the end of the first maintenance period, and when the end of the first maintenance period arrives, the operating state of the communication device is changed from the master station state to the unaffiliated state, and the first wireless network is changed. When the extinguished part to be extinguished and the first external device join the first wireless network as a slave station before the end of the first maintenance period comes, the first wireless network is used to obtain the first. A communication execution unit that executes wireless communication of the first target data with the first external device via the
上記の構成によると、通信機器は、第1の無線ネットワークを形成する際に、第1の維持期間の終期を決定し、第1の維持期間の終期が到来する前に所定指示を検出する際に、第1の維持期間の終期を延長して、第1の維持期間の新たな終期を決定する。従って、通信機器は、第1の維持期間の延長済みの新たな終期が到来する前に、例えば、第1の外部機器が第1の無線ネットワークに子局として参加する場合に、第1の無線ネットワークを利用して、第1の対象データの無線通信を第1の外部機器と実行し得る。このように、通信機器は、外部機器と無線通信を適切に実行し得る。 According to the above configuration, when the communication device determines the end of the first maintenance period when forming the first wireless network, and detects a predetermined instruction before the end of the first maintenance period comes. In addition, the end of the first maintenance period is extended to determine a new end of the first maintenance period. Therefore, the communication device is the first radio, for example, when the first external device joins the first radio network as a slave station before the arrival of a new end with an extended first maintenance period. The network can be used to perform wireless communication of the first target data with the first external device. In this way, the communication device can appropriately perform wireless communication with the external device.
形成部は、通信機器の動作状態が無所属状態である状況で所定指示が検出される際に、通信機器の動作状態を無所属状態から親局状態に変更して、第1の無線ネットワークを形成してもよい。 When a predetermined instruction is detected in a situation where the operating state of the communication device is an independent state, the forming unit changes the operating state of the communication device from the independent state to the master station state to form the first wireless network. You may.
決定部は、さらに、第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 determines that after the first external device joins the first wireless network as a slave station, the first external device leaves the first wireless network and is a slave station device of the first wireless network. When the number becomes zero, the end of the second maintenance period for maintaining the operating state of the communication device in the master station state in the situation where the number of slave station devices is zero may be determined. Further, when the end of the second maintenance period comes, the extinguishing unit may change the operating state of the communication device from the master station state to the independent state to extinguish the first wireless network. The communication execution unit further uses 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. 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 station devices in the first wireless network becomes zero. Therefore, the communication device utilizes the first wireless network before the end of the second maintenance period, for example, when the second external device joins the first wireless network as a slave station. , The wireless communication of the second target data can be executed with the second external device. In this way, the communication device can appropriately perform wireless communication with the external device.
延長部は、さらに、第2の維持期間の終期が到来する前に、所定指示が検出される際に、第2の維持期間の終期を延長して、第2の維持期間の新たな終期を決定してもよい。この構成によると、通信機器は、第2の維持期間の終期が到来する前に所定指示を検出する際に、第2の維持期間の終期を延長して、第2の維持期間の新たな終期を決定する。従って、通信機器は、第2の維持期間の延長済みの新たな終期が到来する前に、例えば、第2の外部機器が第1の無線ネットワークに子局として参加する場合に、第1の無線ネットワークを利用して、第2の対象データの無線通信を第2の外部機器と実行し得る。このように、通信機器は、外部機器と無線通信を適切に実行し得る。 The extension further extends the end of the second maintenance period to a new end of the second maintenance period when a given instruction is detected before the end of the second maintenance period arrives. You may decide. According to this configuration, the telecommunications equipment extends the end of the second maintenance period when detecting a predetermined instruction before the end of the second maintenance period arrives, and the new end of the second maintenance period. To determine. Therefore, the communication device is a first radio when, for example, a second external device joins the first radio network as a slave station before the arrival of a new end with an extended second maintenance period. The network can be used to perform wireless communication of the second target data with the second external device. In this way, the communication device can 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の維持期間の新たな終期を決定する延長部と、を備える。 Other forms of communication equipment disclosed herein include 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 the second state different from the first state, and the operating state of the communication device changes from the first state to the second state. When the end of the first maintenance period for maintaining the operating state of the communication device in the second state when the state is changed to the second state is determined, and when the end of the first maintenance period comes. In addition, the second change part that changes the operating 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 is reached. When the first wireless network to which the user belongs is formed, the first wireless network is used to perform wireless communication of the first target data with the first external device via the first interface. A communication execution unit, a detection unit that detects a predetermined instruction, and a first maintenance period, when the predetermined instruction is detected before the end of the first maintenance period arrives, the end of the first maintenance period is extended. It has an extension that determines the new end of the maintenance period.
上記の構成によると、通信機器は、通信機器の動作状態が第1の状態から第2の状態に変更される際に、第1の維持期間の終期を決定し、第1の維持期間の終期が到来する前に所定指示を検出する際に、第1の維持期間の終期を延長して、第1の維持期間の新たな終期を決定する。従って、通信機器は、第1の維持期間の延長済みの新たな終期が到来する前に、例えば、通信機器と第1の外部機器とが所属する第1の無線ネットワークが形成される場合に、第1の無線ネットワークを利用して、第1の対象データの無線通信を第1の外部機器と実行し得る。このように、通信機器は、外部機器と無線通信を適切に実行し得る。 According to the above configuration, the communication device determines the end of the first maintenance period when the operating state of the communication device is changed from the first state to the second state, and the end of the first maintenance period. The end of the first maintenance period is extended to determine the new end of the first maintenance period when a predetermined instruction is detected before the arrival of. Therefore, the communication device is used, for example, when the first wireless network to which the communication device and the first external device belong is formed before the arrival of a new end period in which the first maintenance period has been extended. The first wireless network can be used to perform wireless communication of the first target data with the first external device. In this way, the communication device can 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 include 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 distance between devices is equal to or less than a predetermined distance from the first situation in which the distance between devices, which is the distance between the second interface and one of the external devices, is greater than the predetermined distance. When changing to, the first wireless profile to be used in the first wireless network may be transmitted to the external device. The second interface may further supply a predetermined notification to the control unit when changing from the first situation to the second situation. The detection unit may detect a predetermined instruction in response to the predetermined notification being acquired from the second interface.
制御部は、さらに、第1の無線ネットワークが形成される前に、第1の無線プロファイルを第2のインターフェイスに記憶させるための第1の記憶指示を第2のインターフェイスに供給する供給部を備えていてもよい。この構成によると、通信機器は、第2のインターフェイスに予め記憶されている第1の無線プロファイルを外部機器に送信し得る。 The control unit further includes a supply unit that supplies a first storage instruction to the second interface for storing the first radio profile in the second interface before the first radio network is formed. You may be. According to this configuration, the communication device can transmit the first radio 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 further replaces the first radio profile after the disappearance of the first radio network and before the formation of the second radio network in which the communication device should operate as the master station. A second storage instruction for storing the second radio profile to be used in the second radio network in the second interface may be supplied to the second interface. According to this configuration, the communication device can transmit the second radio 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 external device due to the change from the first situation to the second situation.
検出部は、第2のインターフェイスから所定通知が取得されることに応じて所定指示を検出してから所定時間が経過するまでの間に、第2のインターフェイスから所定通知が再び取得されても、所定指示を検出しなくてもよい。この構成によると、通信機器は、所定指示を検出してから所定時間が経過するまでの間に所定指示の検出に応じた処理を実行せずに済む。この結果、通信機器の処理負荷が軽減し得る。 Even if the detection unit acquires the predetermined notification again from the second interface between the time when the predetermined instruction is detected in response to the acquisition of the predetermined notification from the second interface and the time when the predetermined time elapses. It is not necessary to detect a predetermined instruction. According to this configuration, the communication device does not have to execute the process corresponding to the detection of the predetermined instruction between the time when the predetermined instruction is detected and the time when the predetermined time elapses. As a result, the processing load of the communication device can be reduced.
決定部は、時間をカウントするための時間カウンタのカウントを初期値から開始することによって、第1の維持期間の終期を決定してもよい。延長部は、所定指示が検出された際に、時間カウンタの値を初期値に戻して、時間カウンタのカウントを初期値から再び開始することによって、第1の維持期間の終期を延長してもよい。時間カウンタの値が所定値に一致する際に、第1の維持期間の終期が到来してもよい。この構成によると、通信機器は、時間カウンタを利用して、第1の維持期間を適切に管理し得る。 The determination unit may determine the end of the first maintenance period by starting the counting of the time counter for counting the time from the initial value. The extension unit may extend the end of the first maintenance period by returning the time counter value to the initial value and restarting the time counter count from the initial value when a predetermined instruction is detected. Good. When the value of the time counter matches a predetermined value, the end of the first maintenance period may come. According to this configuration, the communication device can appropriately manage the first maintenance period by utilizing the time counter.
制御部は、さらに、第1の維持期間の終期が到来する前に、第1の外部機器が第1の無線ネットワークに子局として参加する場合に、時間カウンタのカウントを停止する停止部を備えていてもよい。 The control unit further includes a stop unit that stops counting the time counter when the first external device joins the first wireless network as a slave station before the end of the first maintenance period. You may be.
上記の通信機器を実現するための制御方法、コンピュータプログラム、及び、当該コンピュータプログラムを格納するコンピュータ読取可能記録媒体も、新規で有用である。また、上記の通信機器と外部機器(例えば、第1の外部機器、第2の外部機器等)とを備える通信システムも、新規で有用である。 A control method for realizing the above-mentioned communication device, a computer program, and a computer-readable recording medium for storing the computer program are also new and useful. Further, a communication system including the above-mentioned communication device and an external device (for example, a first external device, a second external device, etc.) is also new and useful.
(通信システム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 mobile terminals PT1 and PT2. Each device PR, PT1, PT2 has wireless communication according to the Wi-Fi method (hereinafter referred to as "Wi-Fi communication") and wireless communication according to the NFC (Near Field Communication) method (hereinafter, """NFCcommunication") and can be executed.
(プリンタ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 a printing function (that is, a peripheral device of each mobile terminal PT1 or PT2). The printer PR includes an
操作部12は、複数のボタンを備える。ユーザは、操作部12を操作することによって、様々な指示をプリンタPRに与えることができる。表示部14は、様々な情報を表示するためのディスプレイである。印刷実行部16は、インクジェット方式、レーザ方式等の印刷機構である。
The
無線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 /
NFCI/F30は、NFC方式に従ったNFC通信(即ちいわゆる近距離無線通信の一種)を実行するための無線I/Fある。NFC方式は、例えば、ISO/IEC21481又は18092の国際標準規格に基づく無線通信方式である。 The NFCI / F30 is a wireless I / F for executing NFC communication (that is, a kind of so-called short-range wireless communication) according to the NFC method. The NFC system is, for example, a wireless communication system based on the international standard of ISO / IEC21481 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 NFCI / F30 includes a
なお、NFC通信を実行するためのI/Fの種類として、NFCフォーラムデバイス(NFC Forum Device)と呼ばれるI/Fと、NFCフォーラムタグ(NFC Forum Tag)と呼ばれるI/Fと、が知られている。NFCI/F30は、NFCフォーラムタグであり、NFC方式のICタグとして機能する。 As the types of I / F for executing NFC communication, an I / F called an NFC Forum Device and an I / F called an NFC Forum Tag are known. There is. The NFCI / F30 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 one of P2P (abbreviation of Peer To Peer) mode, R / W (abbreviation of Reader / Writer) mode, and CE (abbreviation of Card Emulation) mode. Possible I / F. For example, if both the NFCI / F of the first device and the NFCI / F of the second device operate in P2P mode, the first and second devices execute bidirectional communication of data. can do. Further, for example, when the NFCI / F of the first device operates in the Reader mode of the R / W modes and the NFCI / F of the second device operates in the CE mode, the first device Can read data from the second device, i.e. receive data from the second device. Further, for example, when the NFCI / F of the first device operates in the Writer mode of the R / W modes and the NFCI / F of the second device operates in the CE mode, the first device Can execute data writing to the second device, that is, transmission of 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 (that is, the NFCI / F30 of the printer PR) is not an I / F that can selectively operate in any of the above three modes, but an I / F that functions only as an IC tag. .. For example, when the NFCI / F of the mobile terminal operates in the Reader mode of the R / W modes, the mobile terminal reads the radio profile WP from the NFCI / F30 of the printer PR, that is, the radio from the printer PR. The reception of the profile WP can be executed. The NFC forum tag (that is, the NFCI / F30 of the printer PR) is not an I / F that can selectively operate in any of the above three modes, and therefore has a simpler configuration than the NFC forum device. (That is, the configuration of the IC chip is simple). Generally speaking, an IC chip that functions as an NFC forum tag is cheaper 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 differences between the wireless LANI / F20 and the NFCI / F30 will be described. The communication speed of wireless communication via wireless LANI / F20 (for example, the maximum communication speed is 11 to 600 Mbps) is faster than the communication speed of wireless communication via NFCI / F30 (for example, the maximum communication speed is 100 to 424 kbps). .. Further, the frequency of the carrier wave in wireless communication via wireless LANI / F20 (for example, 2.4 GHz band or 5.0 GHz band) is different from the frequency of carrier wave in wireless communication via NFCI / F30 (for example, 13.56 MHz band). different. Further, the maximum distance at which wireless communication via wireless LANI / F20 can be executed (for example, about 100 m at maximum) is greater than the maximum distance at which wireless communication via NFCI / F30 can be executed (for example, about 10 cm at maximum). Is also big.
制御部40は、CPU42と、メインメモリ44と、を備える。CPU42は、メインメモリ44に格納されているプログラムPGに従って、様々な処理を実行するプロセッサである。メインメモリ44は、RAM、ROM等によって構成され、上記のプログラムPGの他に、G/OカウンタGCと、NFCカウンタNCと、管理リストMLと、を格納する。
The
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, and specifically, is 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 WFD type Group Owner state (hereinafter referred to as “G / O state”). Is. In the following, the situation where the operating 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, 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-related processing (see FIG. 4) according to the predetermined notification acquired from the NFCI / F30.
管理リストMLには、プリンタPRがG/O機器である無線ネットワーク(以下では「WFDNW」と記載する)に所属しているCL機器に関するCL情報が記述される。CL機器は、WFD方式のCL状態(即ちクライアント状態)で動作する機器である。CL情報は、例えば、CL機器のMACアドレスを含む。 In the management list ML, CL information regarding a CL device 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, the client state) of the WFD method. 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 mobile terminal PT1 and PT2)
The mobile terminals PT1 and PT2 are portable terminal devices such as mobile phones (for example, smartphones), PDAs, notebook PCs, tablet PCs, portable music playback devices, and portable moving image playback devices. Each mobile terminal PT1 and PT2 is provided with a wireless LAN I / F (not shown), and can execute Wi-Fi communication. In particular, the wireless LAN I / F of each mobile terminal PT1 and PT2 supports the WFD method. Further, each of the mobile terminals PT1 and PT2 is provided with an NFCI / F (not shown), and can execute NFC communication. The NFCI / F of each mobile terminal PT1 and PT2 is an NFC forum device, and in this embodiment, it 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 mobile 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 a mobile terminal PT1 to participate as a CL device in a WFDNW in which the printer PR operates as a G / O device, and transmitting print data to the printer PR using the WFDNW. The printer application PA may be installed on the mobile terminal PT1 from a server on the Internet provided by the vendor of the printer PR, or may be installed on the mobile terminal PT1 from the media shipped together with the printer PR. Further, the mobile terminal PT2 does not have the printer application PA.
(プロセッサ32の処理;図2)
続いて、図2を参照して、NFCI/F30のプロセッサ32によって実行される処理について説明する。図2の処理では、S10、S20、及び、S30の各監視ステップが順次実行される。
(Processing of
Subsequently, with reference to FIG. 2, the processing executed by the
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
S20では、プロセッサ32は、携帯端末(例えばPT1)からNFCセッションを確立するための要求信号であるPolling信号を受信することを監視する。プリンタPRのNFCI/F30と携帯端末のNFCI/Fとの間の距離(以下では「デバイス間距離」と呼ぶ)が所定距離(例えば10cm)よりも大きい状況から、デバイス間距離が所定距離以下である状況に変化すると、プロセッサ32は、携帯端末からPolling信号を受信し、S20でYESと判断して、S21に進む。
In S20, the
S21では、プロセッサ32は、Polling信号の受信に応じた所定通知を制御部40(即ちCPU42)に供給する。所定通知は、携帯端末から信号が受信されたことを示す通知である。S22では、プロセッサ32は、Polling信号に対する応答信号を携帯端末に送信する。これにより、プリンタPRのNFCI/F30と携帯端末のNFCI/Fとの間にNFCセッションが確立される。
In S21, the
次いで、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
S30では、プロセッサ32は、携帯端末から確認信号を受信することを監視する。確認信号は、NFCセッションが確立されている状態であるのか否かを確認するための信号である。プロセッサ32は、携帯端末から確認信号を受信する場合に、S30でYESと判断して、S32において、確認信号の受信に応じた所定通知を制御部40に供給する。S32で供給される所定通知は、S21及びS24で供給される所定通知と同じものである。そして、S34では、プロセッサ32は、確認信号に対する応答信号を携帯端末に送信する。S34が終了すると、S10に戻る。
In S30, the
携帯端末は、プリンタPRとのNFCセッションを確立した後に、上記のデバイス間距離が所定距離以下である状況が維持される限り、複数回に亘って確認信号をプリンタPRに送信する。従って、プリンタPRのプロセッサ32は、短時間の間に複数回に亘って確認信号を受信し得るので(S30でYES)、短時間の間に複数回に亘って所定通知を制御部40に供給し得る(S32)。そして、仮に、制御部40がプロセッサ32から所定通知を取得する毎に所定通知に応じた処理を実行する構成を採用すると、プリンタPRの処理負荷が高くなる。これを避けるために、本実施例では、NFCカウンタNCが設けられており、NFCカウンタNCによってカウントされている間に所定通知が取得されても、所定通知に応じた処理が実行されない。この結果、プリンタPRの処理負荷を軽減させることができる。
After establishing the NFC session with the printer PR, the mobile terminal transmits the confirmation signal to the printer PR a plurality of times as long as the above-mentioned situation where the distance between devices is not more than a predetermined distance is maintained. Therefore, since the
(CPU42のメイン処理;図3)
続いて、図3を参照して、制御部40のCPU42によって実行されるメイン処理について説明する。プリンタPRの電源がOFF状態からON状態に切替えられると、CPU42は、メイン処理を実行する。
(Main processing of
Subsequently, with reference to FIG. 3, the main process executed by the
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に記憶させる。
In S40, the
S41では、CPU42は、S40で準備された無線プロファイルWPを含む記憶指示をNFCI/F30に供給する。これにより、NFCI/F30のプロセッサ32は、記憶指示に含まれる無線プロファイルWPをI/Fメモリ34に書き込む(図2のS12参照)。
In S41, the
S42では、CPU42は、NFCI/F30(即ちプロセッサ32)から所定通知(図2のS21、S24、及び、S32参照)を取得することを監視する。CPU42は、NFCI/F30から所定通知を取得する場合に、S42でYESと判断して、S43に進む。
In S42, the
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
S44では、CPU42は、接続関係処理(後述の図4参照)を開始する。なお、CPU42は、第1の接続関係処理が実行されている間にS44を実行する際には、第1の接続関係処理とは別処理で、第2の接続関係処理を新たに開始する。即ち、CPU42は、複数個の接続関係処理を並列的に実行することができる。
In S44, the
S45では、CPU42は、メインメモリ44内のNFCカウンタNCの値を初期値である5(秒)にリセットして、NFCカウンタNCのカウントダウンを開始する。S45が終了すると、S42に戻る。
In S45, the
(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-related processing of
Subsequently, with reference to FIG. 4, the connection-related processing started in S44 of FIG. 3 will be described. In S50, the
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
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
また、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の各監視ステップを順次実行する。
Further, when the G / O counter GC is stopped at zero or 300 (seconds), the
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
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
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に進む。
In S64, the
また、CPU42は、G/OカウンタGCが300(秒)で停止している場合には、G/OカウンタGCをカウント中でないと判断して(S64でNO)、S66をスキップしてS68に進む。なお、S64の段階において、G/OカウンタGCがゼロで停止している状況はあり得ない。何故なら、G/OカウンタGCがゼロになると、終了イベントが発行され(図5のS86参照)、接続関係処理が終了するからである(図4のS76でYES)。
Further, when the G / O counter GC is stopped at 300 (seconds), the
S68では、CPU42は、印刷処理を実行する。具体的には、CPU42は、まず、プリンタPRがG/O機器であるWFDNWを利用して、CL機器である対象携帯端末から、無線LANI/F20を介して、印刷対象の画像を表わす印刷データを受信する。次いで、CPU42は、印刷データを印刷実行部16に供給して、画像の印刷を印刷実行部16に実行させる。
In S68, the
印刷データは、画像ファイル等であるので、比較的に大きいデータサイズを有する。そして、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. The communication speed of NFC communication is slower than the communication speed of Wi-Fi communication. Therefore, if a configuration is adopted in which wireless communication of print data is executed between the printer PR and the target mobile terminal according to NFC communication, the printer PR takes a long time to receive the print data. On the other hand, in the present embodiment, since the wireless communication of the print data is executed between the printer PR and the target mobile terminal according to the Wi-Fi communication, the printer PR can quickly receive the print data. ..
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
S74では、CPU42は、対象携帯端末のMACアドレスを含むCL情報、即ち、S62で記述されたCL情報を、メインメモリ44内の管理リストMLから削除する。これにより、対象携帯端末がWFDNWから離脱する。S74が終了すると、S60に戻る。このために、CPU42は、仮に、対象携帯端末から特定の接続要求を再び受信する場合(S60でYES)に、対象携帯端末とのWi−Fi接続を再び確立することができる(S62)。
In S74, the
一方、S76では、CPU42は、後述の図5の監視処理で終了イベント(S86参照)が発行されることを監視する。CPU42は、終了イベントが発行される場合に、S76でYESと判断して、図4の処理を終了する。
On the other hand, in S76, the
(CPU42の監視処理;図5)
続いて、図5を参照して、制御部40のCPU42によって実行される監視処理について説明する。プリンタPRの動作状態がデバイス状態からG/O状態に切替えられると(図4のS52参照)、CPU42は、監視処理を実行する。
(Monitoring process of
Subsequently, with reference to FIG. 5, the monitoring process executed by the
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
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
S84では、CPU42は、プリンタPRの動作状態をG/O状態からデバイス状態に移行させて、プリンタPRがG/O機器であるWFDNWを消滅させる。
In S84, the
S86では、CPU42は、終了イベントを発行する。この結果、現在実行されている1個以上の接続関係処理のそれぞれのS76(図4参照)でYESと判断され、当該1個以上の接続関係処理が終了する。
In S86, the
次いで、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,
一方、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
S96では、CPU42は、G/OカウンタGCのカウントダウンを開始する。G/OカウンタGCが300(秒)で停止しているので(S80でYES)、CPU42は、初期値である300(秒)からカウントダウンを開始する。S96が終了すると、S82に進む。
In S96, the
(ケース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 supply of the printer PR is switched from the OFF state to the ON state, the
携帯端末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 mobile terminal PT2 brings the mobile terminal PT2 closer to the printer PR. As a result, the distance between devices between the NFCI / F30 of the printer PR and the NFCI / F of the mobile terminal PT2 changes from a situation where the distance between devices is larger than a predetermined distance (for example, 10 cm) to a situation where the distance between devices is less than or equal to a predetermined distance. As a result, the NFCI / F30 of the printer PR receives the Polling signal 110 from the mobile terminal PT2 (YES in S20 of FIG. 2) and supplies the predetermined notification 110A to the control unit 40 (S21). Since the value of the NFC counter NC is zero at this point, the
第1のWFDNWが形成された時点では、第1のWFDNWに参加しているCL機器の数はゼロである。そして、上述したように、制御部40は、所定通知110Aを取得する際に、G/OカウンタGCのカウントダウンを300(秒)から開始する。これにより、制御部40は、所定通知110Aを取得する際に、CL機器の数がゼロである状況でプリンタPRの動作状態をG/O状態に維持するためのG/O維持期間の終期(即ち、所定通知110Aの取得から300(秒)後の時点)を決定することができる。
At the time when the first WFDNW is formed, the number of CL devices participating in the first WFDNW is zero. Then, as described above, the
また、プリンタ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 NFCI / F30 of the printer PR transmits a response signal 112 to the Polling signal 110 to the mobile terminal PT2 (S22 in FIG. 2). As a result, an NFC session is established between the NFCI / F30 of the printer PR and the NFCI / F of the mobile terminal PT2. After that, the NFCI / F30 receives the Read signal 114 from the mobile terminal PT2 using the NFC session (S23), and supplies the predetermined notification 114A to the control unit 40 (S24). However, since the value of the NFC counter NC is 4 (seconds) at this point, the
また、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 NFCI / F30 receives the confirmation signal 116 from the mobile 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, since the value of the NFC counter NC is 3 (seconds) at this point, the
上述したように、制御部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
携帯端末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 mobile terminal PT2 does not have the printer application PA, even if the wireless profile WP1 is received from the printer PR, the connection request cannot be transmitted to the printer PR, and the mobile terminal PT2 participates in the first WFDNW as a CL device. I can't. As a result, the countdown of the G / O counter GC proceeds while the situation where the number of CL devices of the first WFDNW 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 has arrived. In this case, the
次いで、制御部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
上述したように、本実施例では、プリンタ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 is reached, the printer PR shifts from the G / O state to the device state and extinguishes the first WFDNW. 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 LANI / F20. 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 that does not transmit the beacon signal. In this embodiment, when the end of the G / O maintenance period is reached, 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, the case B will be described with reference to FIG. 7. In the initial state of Case B, the radio profile WP1 is already stored in the NFCI / F30 (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 their description will be omitted. Also in Cases C and D of FIGS. 8 and 9 described later, the description of the Read signal and the confirmation signal will be omitted.
携帯端末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 mobile terminal PT1 brings the mobile terminal PT1 closer to the printer PR. As a result, the NFCI / F30 of the printer PR receives the Polling signal 210 from the mobile terminal PT1 (YES in S20 of FIG. 2) and supplies the predetermined notification 210A to the control unit 40 (S21). The
また、プリンタPRのNFCI/F30は、Polling信号210に対する応答信号212を携帯端末PT1に送信する(図2のS22)。この結果、プリンタPRのNFCI/F30と携帯端末PT1のNFCI/Fとの間にNFCセッションが確立される。その後、NFCI/F30は、NFCセッションを利用して、無線プロファイルWP1を携帯端末PT1に送信する(S25)。 Further, the NFCI / F30 of the printer PR transmits a response signal 212 to the Polling signal 210 to the mobile terminal PT1 (S22 in FIG. 2). As a result, an NFC session is established between the NFCI / F30 of the printer PR and the NFCI / F of the mobile terminal PT1. After that, the NFCI / F30 transmits the wireless profile WP1 to the mobile terminal PT1 by 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 mobile terminal PT1 includes the printer application PA, when receiving the wireless profile WP1 from the printer PR, the connection request 230 including the SSID in the wireless profile WP1 can be transmitted to the printer PR. As a result, the
その後、プリンタ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)。
After that, the
上述したように、携帯端末PT1が第1のWFDNWから離脱すると、第1のWFDNWに参加しているCL機器の数がゼロになる。そして、制御部40は、CL機器の数がゼロになる際に、G/OカウンタGCのカウントダウンを300(秒)から開始する。これにより、制御部40は、CL機器の数がゼロになる際に、G/O維持期間の終期(即ち、CL機器の数がゼロになってから300(秒)後の時点)を決定することができる。
As described above, when the mobile terminal PT1 leaves the first WFDNW, the number of CL devices participating in the first WFDNW becomes zero. Then, the
その後、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
上述したように、本実施例では、プリンタ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, the printer PR is printed data from the mobile terminal PT1 when the mobile terminal PT1 participates in the first WFDNW as a CL device before the end of the G / O maintenance period. The 240 can be received and the printing process can be appropriately executed. Further, the printer PR shifts from the G / O state to the device state when the end of the G / O maintenance period comes after the mobile terminal PT1 leaves the first WFDNW, and the first WFDNW disappears. Let me. Therefore, 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, the case C will be described with reference to FIG. In the initial state of Case C, the radio profile WP1 is already stored in the NFCI / F30 (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 executed between the printer PR and the mobile terminal PT2. Then, the
その後、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)。
After that, when 290 (seconds) have elapsed since the countdown of the G / O counter GC was started (that is, when the value of the G / O counter GC is 10 (seconds)), the printer PR and the mobile terminal PT1 NFC communication of the Polling signal 320, the response signal 322, and the radio profile WP1 is executed between them. Then, the
所定通知320Aが取得された時点では、第1のWFDNWに参加しているCL機器の数はゼロである。そして、上述したように、制御部40は、所定通知320Aを取得する際に、G/OカウンタGCを10(秒)から300(秒)にリセットして、G/OカウンタGCのカウントダウンを開始する。これにより、制御部40は、所定通知320Aを取得される際に、G/O維持期間の終期を延長して、G/O維持期間の新たな終期(即ち、所定通知320Aの取得から300(秒)後の時点)を決定することができる。
At the time when the predetermined notification 320A is acquired, the number of CL devices participating in the first WFDNW is zero. Then, as described above, the
その後、プリンタ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(秒)後の時点)を決定する。
After that, the communication of the connection request 330 and the establishment of the Wi-Fi connection are executed between the printer PR and the mobile terminal PT1, and the value of the G / O counter GC is 290 (seconds) to 300 (seconds). Will be reset to. Further, the print data 340 is communicated between the printer PR and the mobile terminal PT1, and then the mobile terminal PT1 leaves the first WFDNW without receiving the response signal to the PING signal 350 from the mobile terminal PT1. To do. Then, the
仮に、所定通知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 in response to the predetermined notification 320A, the printer PR has a value of 5 (for example, the value of the G / O counter GC is 5 (for example, the value of the G / O counter GC is near) when the end of the G / O maintenance period is approaching. At a time point), the connection request 330 can be received from the mobile 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 mobile terminal PT1 (that is, the value of the G / O counter GC may be zero). .. In this case, since the printer PR shifts from the G / O state to the device state (YES, S84 in S82 in FIG. 5), the Wi-Fi connection with the mobile terminal PT1 cannot be established, and the mobile terminal PT1 cannot establish a Wi-Fi connection. The print data 340 cannot be received. On the other hand, in the present embodiment, the printer PR extends the end of the G / O maintenance period in response to the predetermined notification 320A to determine a new end of the G / O maintenance period. Therefore, the printer PR can appropriately establish a Wi-Fi connection with the mobile terminal PT1 in response to the connection request 330 before the new end of the G / O maintenance period arrives. Therefore, the printer PR can receive the print data 340 from the mobile terminal PT1 and appropriately execute the print 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, which is a continuation of FIG. 8, will be described with reference to FIG. When 290 (seconds) have passed since the countdown of the G / O counter GC was started (that is, when the value of the G / O counter GC is 10 (seconds)), the user of the mobile terminal PT1 is set to the mobile terminal PT1. Is brought closer to the printer PR again. As a result, NFC communication of the Polling signal 420, the response signal 422, and the wireless profile WP1 is executed between the printer PR and the mobile terminal PT1. Then, the
所定通知420Aが取得された時点では、第1のWFDNWに参加しているCL機器の数はゼロである。そして、上述したように、制御部40は、所定通知420Aを取得する際に、G/OカウンタGCを10(秒)から300(秒)にリセットして、G/OカウンタGCのカウントダウンを開始する。これにより、制御部40は、所定通知420Aを取得する際に、G/O維持期間の終期を延長して、G/O維持期間の新たな終期(即ち、所定通知420Aの取得から300(秒)後の時点)を決定することができる。
At the time when the predetermined notification 420A is acquired, the number of CL devices participating in the first WFDNW is zero. Then, as described above, the
その後、プリンタ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, the communication of the connection request 430 and the establishment of the Wi-Fi connection are executed between the printer PR and the mobile terminal PT1, and the value of the G / O counter GC is 290 (seconds) to 300 (seconds). Will be reset to. Further, the print data 440 is communicated between the printer PR and the mobile terminal PT1, and then the mobile terminal PT1 leaves the first WFDNW without receiving the response signal to the PING signal 450 from the mobile terminal PT1. To do. Then, the
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
仮に、所定通知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 in response to the predetermined notification 420A, the printer PR receives the connection request 430 from the mobile terminal PT1 near the end of the G / O maintenance period. obtain. 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 mobile terminal PT1. In this case, since the printer PR shifts from the G / O state to the device state (YES, S84 in S82 in FIG. 5), the Wi-Fi connection with the mobile terminal PT1 cannot be established, and the mobile terminal PT1 cannot establish a Wi-Fi connection. The print data 440 cannot be received. On the other hand, in the present embodiment, the printer PR extends the end of the G / O maintenance period in response to the predetermined notification 420A to determine a new end of the G / O maintenance period. Therefore, the printer PR can appropriately establish a Wi-Fi connection with the mobile terminal PT1 in response to the connection request 430 before the new end of the G / O maintenance period arrives. Therefore, the printer PR can receive the print data 440 from the mobile terminal PT1 and appropriately execute the print 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)
The printer PR is an example of a "communication device". The mobile terminal PT1 is an example of a "first external device" and a "second external device". The wireless LANI / F20 and NFCI / F30 are examples of the "first interface" and the "second interface", respectively. G / O counters GC, 300 (seconds), and zero are examples of "time counter", "initial value", and "predetermined value", respectively. The first WFDNW is an example of a "first wireless network". The device state, G / O state, G / O device, and CL device are examples of "independent state", "master station state", "master station", and "slave 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 in FIG. 3 is an example of "detecting a predetermined instruction". Further, 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 to 8, the end of the G / O maintenance period determined according to the predetermined notifications 110A, 210A, 310A is an example of the “end of the first 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 in response 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 of FIG. 9 is an example of the “second target data”. The memory instruction 100 in FIG. 6 is an example of the “first memory instruction”. Further, the memory instruction 160 in FIG. 6, the memory instruction 260 in FIG. 7, and the memory instruction 460 in FIG. 9 are examples of the “second memory instruction”.
以上、本発明の具体例を詳細に説明したが、これらは例示にすぎず、特許請求の範囲を限定するものではない。特許請求の範囲に記載の技術には以上に例示した具体例を様々に変形、変更したものが含まれる。上記の実施例の変形例を以下に列挙する。 Although specific examples of the present invention have been described in detail above, these are merely examples and do not limit the scope of claims. The techniques described in the claims include various modifications and modifications of the specific examples illustrated above. Modifications of the above embodiment are listed below.
(変形例1)図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
(変形例2)上記の実施例では、図3のS42でYES及びS43でYESと判断することが、「所定指示を検出する」の一例である。これに代えて、例えば、CPU42は、携帯端末とのWi−Fi接続を確立するための操作がユーザによって操作部12に実行されることに応じて、「所定指示」を検出してもよい。また、例えば、CPU42は、無線LANI/F20を介して、携帯端末から接続要求を受信することに応じて、「所定指示」を検出してもよい。上記の実施例及び本変形例のように、「所定指示」は、例えば、外部機器との第1のインターフェイスを介した無線接続の確立に関係する指示であってもよい。ただし、「所定指示」の内容は特に限定されず、「所定指示」は、第1の維持期間を延長するためのトリガになり得る指示であればよい。
(Modification 2) In the above embodiment, determining YES in S42 and YES in S43 in FIG. 3 is an example of “detecting a predetermined instruction”. Instead, for example, the
(変形例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
(変形例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 NFCI / F30 of the printer PR receives a Polling signal (S20 in FIG. 2), a Read signal (S23), and a confirmation signal (S30) from a mobile terminal (for example, PT1). It is assumed that all three types of signals will be received. However, whether or not to transmit all of the above three types of signals depends on the mobile terminal. For example, the mobile terminal may transmit a Polling signal instead of the confirmation signal. In this case, the NFCI / F30 of the printer PR receives the Polling signal and the Read signal from the mobile terminal, but the confirmation signal. Do not receive. In this modification, the Polling signal and the Read signal are examples of "predetermined signals". In another modification, only one of the above three types of signals (for example, a Polling signal) may be an example of a "predetermined signal".
(変形例5)プリンタPRのNFCI/F30は、変形例4に記載の各信号を受信しても、所定通知を制御部40に供給しなくてもよい。例えば、NFCI/F30は、NFCI/F30と携帯端末のNFCI/Fとの間のデバイス間距離が所定距離より大きい状況から、デバイス間距離が所定距離以下である状況に変化することに起因して、NFCI/F30の近傍の磁界が変化する場合に、所定通知を制御部40に供給してもよい。即ち、「第2のインターフェイス」は、第1の状況から第2の状況に変化する場合に、所定通知を制御部に供給すればよい。
(Modification 5) The NFCI / F30 of the printer PR does not have to supply a predetermined notification to the
(変形例6)プリンタPRのNFCI/F30は、NFCフォーラムタグでなくてもよく、NFCフォーラムデバイスであってもよい。この場合、以下の変形例6−1及び変形例6−2を採用してもよい。 (Modification 6) The NFCI / F30 of the printer PR does not have to be an NFC forum tag, and may be an NFC forum device. In this case, the following modifications 6-1 and 6-2 may be adopted.
(変形例6−1)NFCI/F30は、例えば、携帯端末から所定信号を受信することに応じて、携帯端末とのNFCセッションを確立した後に、所定通知を制御部40に供給してもよい。本変形例も、「外部機器から所定信号を受信する際に、所定通知を制御部に供給する」の一例である。なお、本変形例では、NFCI/F30は、無線プロファイルを携帯端末に送信する前に、所定通知を制御部40に供給してもよいし、無線プロファイルを携帯端末に送信した後に、所定通知を制御部40に供給してもよい。
(Modification 6-1) The NFCI / F30 may supply a predetermined notification to the
(変形例6−2)プリンタPRのCPU42は、図3のS40、S41、図5のS88、及び、S90を実行しなくてもよい。この場合、プリンタPRのCPU42は、NFCI/F30から所定通知を取得した後に、無線プロファイルを準備して、当該無線プロファイルをNFCI/F30に供給してもよい。即ち、無線プロファイルは、携帯端末とのNFCセッションが確立される前にI/Fメモリ34内に予め記憶されていなくてもよい。本変形例では、「供給部」を省略可能である。
(Modification 6-2) The
(変形例7)プリンタPRは、NFCI/F30に代えて、他の近距離無線通信方式(例えば、TransferJet方式、BlueTooth(登録商標)方式等)に従った無線通信を実行するための無線インターフェイスを備えていてもよい。一般的に言うと、第2のインターフェイスを介した無線通信を実行可能な最大の距離である所定距離が、第1のインターフェイスを介した無線通信を実行可能な最大の距離よりも小さければよい。 (Modification 7) The printer PR provides a wireless interface for executing wireless communication according to another short-range wireless communication system (for example, TransferJet system, Bluetooth® system, etc.) instead of NFCI / F30. You may have it. Generally speaking, a 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.
(変形例8)G/OカウンタGCは、初期値である300(秒)からカウントダウンされるものでなくてもよく、例えば、初期値であるゼロからカウントアップされるものであってもよい。本変形例では、ゼロ、300(秒)が、それぞれ、「初期値」、「所定値」の一例である。なお、「所定値」は、300(秒)以外の値(例えば、100(秒)、500(秒)等)であってもよい。 (Modification 8) The G / O counter GC does not have to be counted down from the initial value of 300 (seconds), and may be counted up from the initial value of zero, for example. In this modification, zero and 300 (seconds) are examples of "initial value" and "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
(変形例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, in S52 of FIG. 4, the
また、プリンタ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の処理が実行されない。
Further, the
また、図5の処理に代えて、以下の処理が実行される。即ち、CPU42は、有効状態カウンタが0(秒)になることを監視し、有効状態カウンタが0(秒)になる場合には、無線LANI/F20の動作状態を有効状態から無効状態に変更する。これにより、無線LANI/F20を介した無線通信が実行不可能な状態になるので、CPU42は、携帯端末から無線LANI/F20を介して接続要求を受信することができず、この結果、携帯端末とのWi−Fi接続を確立することができない。その後、CPU42は、図5のS86と同様に、終了イベントを発行する。
Further, instead of the process of FIG. 5, the following process is executed. That is, the
上述したように、本変形例では、プリンタ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 /
(変形例11)「通信機器」は、プリンタPRでなくてもよく、例えば、スキャナであってもよい。本変形例では、例えば、スキャナは、上記の実施例と同様に、NFCI/Fと、無線LANI/Fと、を備えていてもよい。NFCI/Fは、無線プロファイルを記憶しており、当該無線プロファイルを携帯端末に送信してもよい。そして、スキャナのCPUは、スキャナがG/O機器であるWFDNWに携帯端末がCL機器として参加する場合に、WFDNWを利用して、スキャンデータを携帯端末に送信してもよい。本変形例では、スキャンデータが、「第1の対象データ」及び「第2の対象データ」の一例である。また、「通信機器」は、プリンタPR及びスキャナとは異なる機器(例えば、PC、コピー機、多機能機、サーバ、携帯端末等)であってもよい。 (Modification 11) The “communication device” does not have to be a printer PR, and may be, for example, a scanner. In this modification, for example, the scanner may include an NFCI / F and a wireless LANI / F, as in the above embodiment. The NFCI / F stores the radio profile and may transmit the radio profile to the mobile terminal. Then, the CPU of the scanner may transmit the scan data to the mobile terminal by using the WFDNW when the mobile terminal participates in the WFDNW which is a G / O device as a CL device. In this modification, the scan data is an example of "first target data" and "second target data". Further, the "communication device" may be a device different from the printer PR and the scanner (for example, a PC, a copier, a multifunctional machine, a server, a mobile terminal, etc.).
(変形例12)「外部機器」は、携帯端末PT1,PT2に限られず、PC、プリンタ、スキャナ、コピー機、多機能機、サーバ等であってもよい。 (Modification 12) The “external device” is not limited to the mobile terminals PT1 and PT2, and may be a PC, a printer, a scanner, a copier, a multifunctional machine, a server, or the like.
(変形例13)上記の実施例では、プリンタPRのCPU42がメインメモリ44内のプログラムPG(即ちソフトウェア)を実行することによって、図3〜図5の各処理が実現される。これに代えて、これらの各処理のうちの少なくとも1つの処理は、論理回路等のハードウェアによって実現されてもよい。
(Modification 13) In the above embodiment, each process of FIGS. 3 to 5 is realized by executing the program PG (that is, software) in the
以下の各項目は、本明細書によって開示される技術の一つの側面である。
(項目1)
通信機器であって、
無線通信を実行するための第1のインターフェイスと、
コンピュータと、
コンピュータ読取可能指示を記憶するメモリと、を備え
前記コンピュータ読取可能指示は、前記コンピュータによって実行される際に、前記通信機器に以下の動作を実行させる:
前記通信機器の動作状態が、前記第1のインターフェイスを介した無線通信を実行するための第1の無線ネットワークの親局として動作する親局状態であり、かつ、前記第1の無線ネットワークに子局として参加している外部機器の数である子局機器数が、ゼロである場合に、前記子局機器数がゼロである状況で前記通信機器の動作状態を前記親局状態に維持するための維持期間の終期を決定すること;
前記維持期間の前記終期が到来する際に、前記通信機器の前記動作状態を、前記親局状態から、無線ネットワークに所属していない無所属状態に変更して、前記第1の無線ネットワークを消滅させること;
前記維持期間の前記終期が到来する前に、特定の外部機器が前記第1の無線ネットワークに子局として参加する場合に、前記第1の無線ネットワークを利用して、前記第1のインターフェイスを介して、対象データの無線通信を前記特定の外部機器と実行すること;
所定指示を検出すること;及び
前記維持期間の前記終期が到来する前に、前記所定指示が検出される際に、前記維持期間の前記終期を延長して、前記維持期間の新たな終期を決定すること。
Each of the following items is one aspect of the technology disclosed herein.
(Item 1)
It ’s a communication device,
The first interface for performing wireless communication,
With a computer
With a memory for storing computer-readable instructions, the computer-readable instructions cause the communication device to perform the following operations when executed by the computer:
The operating state of the communication device is a master station state that operates as a master station of the first wireless network for executing wireless communication via the first interface, and is a child of the first wireless network. To maintain the operating 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 operating state of the communication device is changed from the master station state to an independent state that does not belong to the wireless network, and the first wireless network is extinguished. thing;
When a specific external device joins the first wireless network as a slave station before the end of the maintenance period arrives, the first wireless network is utilized and the first interface is used. To execute wireless communication of the target data with the specific external device;
Detecting a predetermined instruction; and before the end of the maintenance period arrives, when the predetermined instruction is detected, 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
The computer-readable instruction causes the communication device to further perform the following operations when executed by the computer:
To form the first wireless network by changing the operating state of the communication device from the independent state to the master station state.
Here, at the time when the first wireless network is formed, the number of slave station devices is zero.
Determining the end of the maintenance period means that when the first wireless network is formed, the operating state of the communication device is maintained in the master station state in a situation where the number of slave station devices is zero. Includes determining the end of the first maintenance period for.
(項目3)
項目2に記載の通信機器であって、
前記形成することは、前記通信機器の前記動作状態が前記無所属状態である状況で前記所定指示が検出される際に、前記通信機器の前記動作状態を前記無所属状態から前記親局状態に変更して、前記第1の無線ネットワークを形成することを含む。
(Item 3)
The communication device according to item 2.
The formation changes the operating state of the communication device from the independent state to the master station state when the predetermined instruction is detected in a situation where the operating state of the communication device is the independent state. This includes forming the first wireless network.
(項目4)
項目1から3のいずれかに記載の通信機器であって、
前記維持期間の前記終期を決定することは、前記子局機器数が1以上である状況から前記子局機器数がゼロになる際に、前記子局機器数がゼロである状況で前記通信機器の動作状態を前記親局状態に維持するための第2の維持期間の終期を決定することを含む。
(Item 4)
The communication device according to any one of
Determining the end of the maintenance period means that when the number of slave station devices becomes zero from the situation where the number of slave station devices is 1 or more, the communication device is determined when the number of slave station devices is zero. Includes determining the end of a second maintenance period for maintaining the operating state of.
(項目5)
通信機器であって、
無線通信を実行するための第1のインターフェイスと、
コンピュータと、
コンピュータ読取可能指示を記憶するメモリと、を備え
前記コンピュータ読取可能指示は、前記コンピュータによって実行される際に、前記通信機器に以下の動作を実行させる:
前記通信機器の動作状態が第1の状態とは異なる第2の状態である場合に、前記通信機器の動作状態を前記第2の状態に維持するための維持期間の終期を決定すること;
前記維持期間の前記終期が到来する際に、前記通信機器の前記動作状態を前記第2の状態から前記第1の状態に変更すること;
前記維持期間の前記終期が到来する前に、前記通信機器と第1の外部機器とが所属する第1の無線ネットワークが形成される場合に、前記第1の無線ネットワークを利用して、前記第1のインターフェイスを介して、第1の対象データの無線通信を前記第1の外部機器と実行すること;
所定指示を検出すること;及び
前記維持期間の前記終期が到来する前に、前記所定指示が検出される際に、前記維持期間の前記終期を延長して、前記維持期間の新たな終期を決定すること。
(Item 5)
It ’s a communication device,
The first interface for performing wireless communication,
With a computer
With a memory for storing computer-readable instructions, the computer-readable instructions cause the communication device to perform the following operations when executed by the computer:
Determining the end of the maintenance period for maintaining the operating state of the communication device in the second state when the operating state of the communication device is in a second state different from the first state;
When the end of the maintenance period is reached, the operating state of the communication device is changed from the second state to the first state;
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 arrives, the first wireless network is used to use the first wireless network. Performing wireless communication of the first target data with the first external device via the interface of 1;
Detecting a predetermined instruction; and before the end of the maintenance period arrives, when the predetermined instruction is detected, 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)
The communication device according to any one of
The communication device further
A predetermined distance, which is a second interface for executing wireless communication and is the maximum distance at which wireless communication via the second interface can be executed, executes wireless communication via the first interface. With the second interface, which is less than the maximum possible distance,
In the second interface, the distance between devices is equal to or less than the predetermined distance from the first situation in which the distance between devices, which is the distance between the second interface and any external device, is larger than the predetermined distance. When the situation changes to a certain second situation, the first wireless profile to be used in the first wireless network is transmitted to the external device, and the external device is transmitted.
The second interface further supplies a predetermined notification to the computer when the first situation changes to the second situation.
The detection includes detecting the predetermined instruction in response to the acquisition of the predetermined notification from the second interface.
(項目7)
項目6に記載の通信機器であって、
前記コンピュータ読取可能指示は、前記コンピュータによって実行される際に、前記通信機器に以下の動作をさらに実行させる:
前記第1の無線ネットワークが形成される前に、前記第1の無線プロファイルを前記第2のインターフェイスに記憶させるための第1の記憶指示を前記第2のインターフェイスに供給すること。
(Item 7)
The communication device according to item 6.
The computer-readable instruction causes the communication device to further perform the following operations when executed by the computer:
To supply the second interface with a first storage instruction for storing the first radio profile in the second interface before the first radio network is formed.
(項目8)
項目7に記載の通信機器であって、
前記コンピュータ読取可能指示は、前記コンピュータによって実行される際に、前記通信機器に以下の動作をさらに実行させる:
前記第1の無線ネットワークが消滅した後であって、前記通信機器が親局として動作すべき第2の無線ネットワークが形成される前に、前記第1の無線プロファイルに代えて、前記第2の無線ネットワークで利用されるべき第2の無線プロファイルを前記第2のインターフェイスに記憶させるための第2の記憶指示を前記第2のインターフェイスに供給すること。
(Item 8)
The communication device according to item 7.
The computer-readable instruction causes the communication device to further perform the following operations when executed by the computer:
After the disappearance of the first wireless network and before the formation of the second wireless network in which the communication device should operate as a master station, the second wireless profile is replaced with the second wireless profile. To supply the second interface with a second storage instruction for storing the second radio profile to be used in the radio network in the second interface.
(項目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 To do.
(項目10)
項目6から9のいずれかに記載の通信機器であって、
前記コンピュータは、前記第2のインターフェイスから前記所定通知が取得されることに応じて前記所定指示を検出してから所定時間が経過するまでの間に、前記第2のインターフェイスから前記所定通知が再び取得されても、前記所定指示を検出しない。
(Item 10)
The communication device according to any one of items 6 to 9.
The computer receives the predetermined notification from the second interface and receives the predetermined notification from the second interface again during the period from the detection of the predetermined instruction to the elapse of the predetermined time. Even if it is acquired, the predetermined instruction is not detected.
(項目11)
項目1から10のいずれかに記載の通信機器であって、
前記維持期間の前記終期を決定することは、時間をカウントするための時間カウンタのカウントを初期値から開始することを含み、
前記維持期間の前記新たな終期を決定することは、前記所定指示が検出された際に、前記時間カウンタの値を前記初期値に戻して、前記時間カウンタのカウントを前記初期値から再び開始することを含み、
前記時間カウンタの値が所定値に一致する際に、前記維持期間の前記終期が到来する。
(Item 11)
The communication device according to any one of
Determining the end of the maintenance period includes starting the counting of the time counter for counting the time from the initial value.
Determining the new end of the maintenance period returns the value of the time counter to the initial value and restarts the counting of the time counter from the initial value when the predetermined instruction is detected. Including that
When the value of the time counter matches a predetermined value, the end of the maintenance period arrives.
(項目12)
項目11に記載の通信機器であって、
前記コンピュータ読取可能指示は、前記コンピュータによって実行される際に、前記通信機器に以下の動作をさらに実行させる:
前記維持期間の前記終期が到来する前に、前記特定の外部機器が前記第1の無線ネットワークに前記子局として参加する場合に、前記時間カウンタのカウントを停止すること。
(Item 12)
The communication device according to item 11.
The computer-readable instruction causes the communication device to further perform the following operations when executed by the computer:
Stop counting 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 that stores computer-readable instructions for communication equipment.
The computer-readable instruction causes the communication device to perform the following operations when executed by a computer mounted on the communication device:
The operating state of the communication device is a master station state that operates as a master station of the first wireless network for executing wireless communication via the first interface of the communication device, and the first radio is used. When the number of slave station devices, which is the number of external devices participating as slave stations in the network, is zero, the operating state of the communication device is changed to the master station state in a situation where the number of slave station devices is zero. Determining the end of the maintenance period to maintain;
When the end of the maintenance period arrives, the operating state of the communication device is changed from the master station state to an independent state that does not belong to the wireless network, and the first wireless network is extinguished. thing;
When a specific external device joins the first wireless network as a slave station before the end of the maintenance period arrives, the first wireless network is utilized and the first interface is used. To execute wireless communication of the target data with the specific external device;
Detecting a predetermined instruction; and before the end of the maintenance period arrives, when the predetermined instruction is detected, 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 that stores computer-readable instructions for communication equipment.
The computer-readable instruction causes the communication device to perform the following operations when executed by a computer mounted on the communication device:
Determining the end of the maintenance period for maintaining the operating state of the communication device in the second state when the operating state of the communication device is in a second state different from the first state;
When the end of the maintenance period is reached, the operating state of the communication device is changed from the second state to the first state;
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 arrives, the communication is performed by using the first wireless network. Performing wireless communication of the first target data with the first external device via the first interface of the device;
Detecting a predetermined instruction; and before the end of the maintenance period arrives, when the predetermined instruction is detected, 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)
The correspondence between each element of the above embodiment and each element of each of the above items is listed below. The printer PR and the mobile terminal PT1 are examples of a "communication device" and a "specific external device", respectively. The
図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, print data 240, 340, and 440 are examples of “target data”. 6 to 8 show the end of the G / O maintenance period determined according to the predetermined notifications 110A, 210A, 310A, and FIGS. 7 to 9 determine 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 the maintenance period”. In FIGS. 6 to 8, the end of the G / O maintenance period determined according to the predetermined notifications 110A, 210A, 310A is an example of the “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”. The memory instruction 100 in FIG. 6 is an example of the “first memory instruction”. Further, the memory instruction 160 in FIG. 6, the memory instruction 260 in FIG. 7, and the memory instruction 460 in FIG. 9 are examples of the “second memory instruction”.
また、本明細書または図面に説明した技術要素は、単独であるいは各種の組合せによって技術的有用性を発揮するものであり、出願時請求項記載の組合せに限定されるものではない。また、本明細書または図面に例示した技術は複数目的を同時に達成するものであり、そのうちの一つの目的を達成すること自体で技術的有用性を持つものである。 In addition, the technical elements described in the present specification or the drawings exhibit technical usefulness alone or in various combinations, and are not limited to the combinations described in the claims at the time of filing. In addition, the techniques illustrated in this specification or drawings achieve a plurality of objectives at the same time, and achieving one of the objectives itself has technical usefulness.
2:通信システム、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: Memory 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
Claims (5)
無線通信を実行するための第1のインターフェイスと、
無線通信を実行するための第2のインターフェイスであって、前記第1のインターフェイスとは異なる前記第2のインターフェイスと、
制御部と、を備え、
前記制御部は、
前記第2のインターフェイスを介して、第1の外部機器との無線接続を確立する確立部と、
前記第1の外部機器との前記無線接続が確立される場合に、前記通信機器の動作状態を、無線ネットワークに所属していない無所属状態から、前記第1のインターフェイスを介した無線通信を実行するための第1の無線ネットワークの親局として動作する親局状態に変更して、前記第1の無線ネットワークを形成する形成部と、
前記第1の外部機器との前記無線接続が確立される場合に、前記第1の無線ネットワークで利用されるべき第1の無線プロファイルを前記第1の外部機器に送信する送信部と、
前記通信機器の前記動作状態が前記無所属状態から前記親局状態に変更される場合に、前記親局状態を終了すべきであることを示す所定条件が満たされるのか否かを判断する判断部であって、時間をカウントするための第1の時間カウンタのカウントを初期値から開始し、前記第1の時間カウンタが所定値に到達する場合に、前記所定条件が満たされると判断し、前記第1の時間カウンタが前記所定値に一致しない場合に、前記所定条件が満たされないと判断する判断部と、
前記所定条件が満たされると判断される場合に、前記通信機器の前記動作状態を前記親局状態から前記無所属状態に変更して、前記第1の無線ネットワークを消滅させる消滅部であって、前記所定条件が満たされないと判断される場合に、前記通信機器の前記動作状態が前記親局状態に維持される、前記消滅部と、
前記通信機器の前記動作状態が前記親局状態に維持されている状態において、前記第1の外部機器が前記第1の無線ネットワークに子局として参加する場合に、前記第1の無線ネットワークを利用して、前記第1のインターフェイスを介して、第1の対象データの無線通信を前記第1の外部機器と実行する通信実行部と、
前記第2のインターフェイスが第2の外部機器から信号を受信することに応じて前記第2のインターフェイスから所定通知が前記制御部に供給される場合であって、時間をカウントするための第2の時間カウンタが所定値に到達する場合に、所定指示を検出する検出部と、を備え、
前記判断部は、前記所定指示が検出された際に、前記第1の時間カウンタの値を前記初期値に戻して、前記第1の時間カウンタのカウントを前記初期値から再び開始する通信機器。 It ’s a communication device,
The first interface for performing wireless communication,
A second interface for performing wireless communication, which is different from the first interface, and the second interface.
With a control unit
The control unit
An establishment unit that establishes a wireless connection with a first external device via the second interface,
When the wireless connection with the first external device is established, the operating state of the communication device is changed from an unaffiliated state not belonging to the wireless network to wireless communication via the first interface. A forming unit that forms the first wireless network by changing to a master station state that operates as a master station of the first wireless network for the purpose.
A transmission unit that transmits the first wireless profile to be used in the first wireless network to the first external device when the wireless connection with the first external device is established.
A determination unit that determines whether or not a predetermined condition indicating that the master station state should be terminated is satisfied when the operating state of the communication device is changed from the independent state to the master station state. Therefore, counting of the first time counter for counting the time is started from the initial value, and when the first time counter reaches a predetermined value, it is determined that the predetermined condition is satisfied, and the first When the time counter of 1 does not match the predetermined value, the determination unit for determining that the predetermined condition is not satisfied, and the determination unit.
An extinguishing unit that changes the operating state of the communication device from the master station state to the independent state and extinguishes the first wireless network when it is determined that the predetermined condition is satisfied. When it is determined that the predetermined condition is not satisfied, the operating state of the communication device is maintained in the master station state, and the extinguished part
When the first external device participates in the first wireless network as a slave station while the operating state of the communication device is maintained in the master station state, the first wireless network is used. Then, via the first interface, a communication execution unit that executes wireless communication of the first target data with the first external device, and
Even if the previous SL second interfaces prescribed notification from said second interface in response to receiving a signal from the second external device is supplied to the control unit, the second to count the time When the time counter of the above reaches a predetermined value, a detection unit for detecting a predetermined instruction is provided.
The determination unit, when the predetermined instruction is detected, the first of the value of the time counter back to the initial value, the first time counter counts a communication device to start again from the initial value of.
前記第1の無線ネットワークが消滅した後であって、前記通信機器が親局状態として動作すべき第2の無線ネットワークであって、前記第1のインターフェイスを介した無線通信を実行するための前記第2の無線ネットワークが形成される前に、前記第1の無線プロファイルに代えて、前記第2の無線ネットワークで利用されるべき第2の無線プロファイルを準備する準備部を備える、請求項1に記載の通信機器。 The communication device further
The second wireless network in which the communication device should operate as a master station state after the first wireless network disappears, and for executing wireless communication via the first interface. The first aspect of claim 1 comprises a preparatory unit that prepares a second radio profile to be used in the second radio network in place of the first radio profile before the second radio network is formed. Described communication equipment.
前記第2のインターフェイスは、BlueTooth(登録商標)方式に従った無線通信を実行するためのインターフェイスである、請求項1から3のいずれか一項に記載の通信機器。 The first interface is an interface for executing wireless communication according to the Wi-Fi method.
The communication device according to any one of claims 1 to 3, wherein the second interface is an interface for executing wireless communication according to the Bluetooth (registered trademark) method.
前記コンピュータプログラムは、前記通信機器に搭載されるコンピュータに、以下の各処理、即ち、
前記通信機器の第2のインターフェイスを介して、第1の外部機器との無線接続を確立する確立処理と、
前記第1の外部機器との前記無線接続が確立される場合に、前記通信機器の動作状態を、無線ネットワークに所属していない無所属状態から、前記通信機器の第1のインターフェイスであって、前記第2のインターフェイスとは異なる前記第1のインターフェイスを介した無線通信を実行するための第1の無線ネットワークの親局として動作する親局状態に変更して、前記第1の無線ネットワークを形成する形成処理と、
前記第1の外部機器との前記無線接続が確立される場合に、前記第1の無線ネットワークで利用されるべき第1の無線プロファイルを前記第1の外部機器に送信する送信処理と、
前記通信機器の前記動作状態が前記無所属状態から前記親局状態に変更される場合に、前記親局状態を終了すべきであることを示す所定条件が満たされるのか否かを判断する判断処理であって、時間をカウントするための第1の時間カウンタのカウントを初期値から開始し、前記第1の時間カウンタが所定値に到達する場合に、前記所定条件が満たされると判断し、前記第1の時間カウンタが前記所定値に一致しない場合に、前記所定条件が満たされないと判断する判断処理と、
前記所定条件が満たされると判断される場合に、前記通信機器の前記動作状態を前記親局状態から前記無所属状態に変更して、前記第1の無線ネットワークを消滅させる消滅処理であって、前記所定条件が満たされないと判断される場合に、前記通信機器の前記動作状態が前記親局状態に維持される、前記消滅処理と、
前記通信機器の前記動作状態が前記親局状態に維持されている状態において、前記第1の外部機器が前記第1の無線ネットワークに子局として参加する場合に、前記第1の無線ネットワークを利用して、前記第1のインターフェイスを介して、第1の対象データの無線通信を前記第1の外部機器と実行する通信実行処理と、
前記第2のインターフェイスが第2の外部機器から信号を受信することに応じて前記第2のインターフェイスから所定通知が前記制御部に供給される場合であって、時間をカウントするための第2の時間カウンタが所定値に到達する場合に、所定指示を検出する検出部と、を実行させ、
前記判断処理は、前記所定指示が検出された際に、前記第1の時間カウンタの値を前記初期値に戻して、前記第1の時間カウンタのカウントを前記初期値から再び開始するコンピュータプログラム。 A computer program for communication equipment
The computer program applies the following processes, that is, to the computer mounted on the communication device.
An establishment process for establishing a wireless connection with a first external device via the second interface of the communication device, and
When the wireless connection with the first external device is established, the operating state of the communication device is changed from the non-affiliated state not belonging to the wireless network to the first interface of the communication device. The first wireless network is formed by changing to a master station state that operates as a master station of the first wireless network for executing wireless communication via the first interface different from the second interface. Forming process and
A transmission process for transmitting the first wireless profile to be used in the first wireless network to the first external device when the wireless connection with the first external device is established.
In a determination process for determining whether or not a predetermined condition indicating that the master station state should be terminated is satisfied when the operating state of the communication device is changed from the independent state to the master station state. Therefore, counting of the first time counter for counting the time is started from the initial value, and when the first time counter reaches a predetermined value, it is determined that the predetermined condition is satisfied, and the first Judgment processing for determining that the predetermined condition is not satisfied when the time counter of 1 does not match the predetermined value, and
The extinction process of changing the operating state of the communication device from the master station state to the independent state to extinguish the first wireless network when it is determined that the predetermined condition is satisfied. The extinction process in which the operating state of the communication device is maintained in the master station state when it is determined that the predetermined conditions are not satisfied.
When the first external device participates in the first wireless network as a slave station while the operating state of the communication device is maintained in the master station state, the first wireless network is used. Then, a communication execution process for executing wireless communication of the first target data with the first external device via the first interface, and
Even if the previous SL second interfaces prescribed notification from said second interface in response to receiving a signal from the second external device is supplied to the control unit, the second to count the time When the time counter of the above reaches a predetermined value, the detection unit that detects a predetermined instruction and the detection unit are executed.
The determination processing, when the predetermined instruction is detected, the first of the value of the time counter back to the initial value, the first time counter counts a computer program to start again from the initial value of.
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 JP2019071634A (en) | 2019-05-09 |
JP6842453B2 true 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) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2021093564A (en) * | 2019-12-06 | 2021-06-17 | ソニーグループ株式会社 | Communication control device, communication control method, and program |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5866812B2 (en) * | 2011-06-15 | 2016-02-24 | ブラザー工業株式会社 | Wireless communication device |
JP5966527B2 (en) * | 2012-03-30 | 2016-08-10 | ブラザー工業株式会社 | Communication device |
-
2018
- 2018-12-13 JP JP2018233328A patent/JP6842453B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2019071634A (en) | 2019-05-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11882607B2 (en) | Information processing apparatus, control method for information processing apparatus, and control method for communication system | |
US10419913B2 (en) | Communication device and non-transitory computer-readable recording medium | |
US10397963B2 (en) | Information processing apparatus, control method, and non-transitory computer-readable storage medium | |
JP6264815B2 (en) | Communication device | |
JP6451163B2 (en) | Communication equipment | |
US9210732B2 (en) | Wireless communication device registration in a wireless network | |
JP6536226B2 (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 | |
JP2014168215A (en) | Communication apparatus | |
US20150092231A1 (en) | Wireless Communication Apparatus | |
JP2013005188A (en) | Radio communication device | |
US9148904B2 (en) | Communication apparatus | |
JP6842453B2 (en) | Communication equipment | |
US20230247406A1 (en) | Information processing apparatus that establishes connection to a communication apparatus, control method, and non-transitory computer-readable storage medium storing program | |
JP6547870B2 (en) | Communication equipment | |
JP6179437B2 (en) | Function execution device | |
JP2018157572A (en) | Function execution apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A521 | Written amendment |
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 | Written amendment |
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 | Written amendment |
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 of reconsideration by examiner 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 | Removal of reconsideration by examiner before appeal (zenchi) |
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 | Written amendment |
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 |