JP6521035B2 - Wireless communication device - Google Patents

Wireless communication device Download PDF

Info

Publication number
JP6521035B2
JP6521035B2 JP2017224722A JP2017224722A JP6521035B2 JP 6521035 B2 JP6521035 B2 JP 6521035B2 JP 2017224722 A JP2017224722 A JP 2017224722A JP 2017224722 A JP2017224722 A JP 2017224722A JP 6521035 B2 JP6521035 B2 JP 6521035B2
Authority
JP
Japan
Prior art keywords
wireless connection
wireless
wireless communication
target device
disconnection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2017224722A
Other languages
Japanese (ja)
Other versions
JP2018038084A (en
Inventor
柴田 寛
寛 柴田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2017224722A priority Critical patent/JP6521035B2/en
Publication of JP2018038084A publication Critical patent/JP2018038084A/en
Application granted granted Critical
Publication of JP6521035B2 publication Critical patent/JP6521035B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

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

特許文献1には、複数の通信装置を含むネットワークが開示されている。ネットワークを管理する通信装置(以下では「管理通信装置」と呼ぶ)は、当該ネットワーク外の通信装置から接続要求を受信すると、ネットワークに現在接続されている通信装置の接続台数を確認する。第3実施形態では、管理通信装置は、接続台数が所定値を超える場合に、非通信状態の通信装置が存在するのか否かを判定し、非通信状態の通信装置をネットワークから切断する。なお、ネットワークから切断されるべき通信装置を選択するための変形例として、ネットワークに接続されている時間が最も長い通信装置を選択すること、ネットワークにアクセスしていない時間が最も長い通信装置を選択すること、データ送出量が最も少ない通信装置を選択すること、通信優先度が最も低い通信装置を選択すること等が開示されている。   Patent Document 1 discloses a network including a plurality of communication devices. When receiving a connection request from a communication device outside the network, the communication device that manages the network (hereinafter referred to as “management communication device”) confirms the number of connected communication devices currently connected to the network. In the third embodiment, when the number of connected devices exceeds a predetermined value, the management communication device determines whether a communication device in a non-communication state exists, and disconnects the communication device in a non-communication state from the network. In addition, as a modification for selecting a communication device to be disconnected from the network, selecting a communication device with the longest time connected to the network, and selecting a communication device with the longest time of not accessing the network It is disclosed that the user selects the communication device with the smallest amount of data transmission, selects the communication device with the lowest communication priority, and the like.

特開2001−326658号公報JP 2001-326658 A

無線ネットワークには様々な種類の機器が所属し得る。本明細書では、無線通信装置が親局として動作する無線ネットワークに様々な種類の機器が所属している状況で、無線通信装置が、接続数が上限数に一致する状態で、特定機器から無線接続要求を受信する場合に、新規な手法を利用して、特定機器との無線接続を確立し得る技術を提供する。   Various types of devices may belong to the wireless network. In this specification, in a situation where various types of devices belong to a wireless network in which the wireless communication device operates as a master station, the wireless communication device wirelessly transmits from a specific device in a state where the number of connections matches the upper limit number. When receiving a connection request, a novel technique is used to provide a technology capable of establishing a wireless connection with a specific device.

本明細書によって開示される無線通信装置は、受信部と、選択部と、切断部と、確立部と、を備える。受信部は、無線ネットワークの親局として動作する無線通信装置が現在確立している無線接続の数である接続数が上限数に一致する状態で、第1の特定機器から第1の無線接続要求を受信する。選択部は、第1の特定機器から第1の無線接続要求が受信される場合に、無線通信装置との無線接続を現在確立しているN1個(N1は2以上の整数)の機器の中から、無線接続が切断されるべき第1の対象機器を選択する。選択部は、N1個の機器が、特定の無線通信方式に従って動作不可能な第1種の機器と、特定の無線通信方式に従って動作可能な第2種の機器と、を含む複数種類の機器を含む場合に、複数種類の機器に対して予め決められている切断優先度に基づいて、最も高い切断優先度を有する種類の機器を、第1の対象機器として優先的に選択する。切断部は、第1の切断要求を第1の対象機器に送信して、第1の対象機器との無線接続を切断する。確立部は、第1の対象機器との無線接続が切断された後に、第1の特定機器との無線接続を確立する。   A wireless communication device disclosed by the present specification includes a receiving unit, a selecting unit, a disconnecting unit, and an establishing unit. The reception unit requests the first wireless connection from the first specific device in a state where the number of connections, which is the number of wireless connections currently established by the wireless communication device operating as a master station of the wireless network, matches the upper limit number. Receive Among the N1 (N1 is an integer of 2 or more) devices currently establishing wireless connection with the wireless communication device when the first wireless connection request is received from the first specific device. And select the first target device from which the wireless connection is to be disconnected. The selection unit includes a plurality of types of devices including a first type of device in which N1 devices can not operate according to a specific wireless communication scheme, and a second type of device operable according to the specific wireless communication scheme. In the case where it is included, based on the disconnection priorities predetermined for a plurality of types of devices, the device of the type having the highest disconnection priority is preferentially selected as the first target device. The disconnection unit transmits the first disconnection request to the first target device to disconnect the wireless connection with the first target device. The establishment unit establishes a wireless connection with the first specific device after the wireless connection with the first target device is disconnected.

上記の構成によると、無線通信装置は、接続数が上限数に一致する状態で、第1の特定機器から第1の無線接続要求を受信する場合に、N1個の機器の中から第1の対象機器を選択して、第1の対象機器との無線接続を切断する。この結果、接続数が上限数未満になるので、無線通信装置は、第1の特定機器との無線接続を確立する。特に、N1個の機器が、特定の無線通信方式に従って動作不可能な第1種の機器と、特定の無線通信方式に従って動作可能な第2種の機器と、を含む複数種類の機器を含む場合に、無線通信装置は、最も高い切断優先度を有する種類の機器を、第1の対象機器として優先的に選択する。このために、無線通信装置は、特定の無線通信方式に従って動作可能であるのか否かという新規な観点で予め決定されている切断優先度に基づいて、第1の対象機器を適切に選択し得る。即ち、無線通信装置は、従来とは異なる適切な手法を利用して、第1の特定機器との無線接続を確立し得る。   According to the above configuration, when the wireless communication device receives the first wireless connection request from the first specific device in a state where the number of connections matches the upper limit number, the first wireless communication device among the N1 devices can receive the first wireless connection request. The target device is selected, and the wireless connection with the first target device is disconnected. As a result, since the number of connections is less than the upper limit number, the wireless communication apparatus establishes a wireless connection with the first specific device. In particular, when N1 devices include multiple types of devices including a first type of device that can not operate according to a specific wireless communication scheme and a second type of device that can operate according to a specific wireless communication scheme In addition, the wireless communication device preferentially selects, as the first target device, the type of device having the highest disconnection priority. To this end, the wireless communication device may appropriately select the first target device based on the disconnection priority predetermined in the novel aspect of whether or not it is operable according to the specific wireless communication scheme. . That is, the wireless communication apparatus can establish a wireless connection with the first specific device using an appropriate method different from the conventional one.

無線通信装置は、さらに、第1の対象機器として第1種の機器が選択されて、第1の対象機器との無線接続が切断されてから所定期間が経過する前に、接続数が上限数に一致する状態で、第1の対象機器から無線接続要求が受信される場合に、無線通信装置が現在確立している無線接続を切断することを許容せず、第1の対象機器として第1種の機器が選択されて、第1の対象機器との無線接続が切断されてから所定期間が経過した後に、接続数が上限数に一致する状態で、第1の対象機器から無線接続要求が受信される場合に、無線通信装置が現在確立している無線接続を切断することを許容する切断制御部を備えていてもよい。第1種の機器は、無線通信装置から切断要求を受信することに起因して、無線通信装置との無線接続が切断された後に、ユーザから指示が与えられなくても、無線接続要求を無線通信装置に自動的に送信する機能を有する。この構成によると、無線通信装置は、上記の所定期間が経過する前に、接続数が上限数に一致する状態で、第1種の機器である第1の対象機器から自動的に送信される無線接続要求を受信しても、他の機器との無線接続を切断しない。このために、第1種の機器との無線接続が切断されてから短時間しか経過していない状況で、第1種の機器から自動的に送信される無線接続要求に応じて、他の機器との無線接続が切断されるという事象の発生を抑制することができる。また、無線通信装置は、上記の所定期間が経過した後に、接続数が上限数に一致する状態で、第1種の機器である第1の対象機器から自動的に送信される無線接続要求を受信する場合に、他の機器との無線接続を切断し得る。このために、無線通信装置は、第1の対象機器との無線接続を再確立し得る。   The wireless communication apparatus further selects the first type of device as the first target device, and after the wireless connection with the first target device is disconnected, the number of connections is limited before the predetermined period elapses. When the wireless connection request is received from the first target device in a state in which the wireless communication apparatus is in a state of matching with the first target device, the first communication device is not permitted to disconnect the currently established wireless connection. After a predetermined period of time has elapsed since the type of device was selected and the wireless connection with the first target device has been disconnected, the wireless connection request from the first target device is in a state where the number of connections matches the upper limit number. A disconnection control unit may be provided that allows the wireless communication device to disconnect the currently established wireless connection when it is received. The first type of device wirelessly transmits a wireless connection request even if the user does not receive an instruction after the wireless connection with the wireless communication device is disconnected due to the reception of the disconnection request from the wireless communication device. It has a function of automatically transmitting to the communication device. According to this configuration, the wireless communication device is automatically transmitted from the first target device, which is the first type of device, in a state where the number of connections matches the upper limit number, before the predetermined period described above elapses. Even when a wireless connection request is received, the wireless connection with another device is not disconnected. For this reason, in a situation where only a short time has passed since the wireless connection with the first type of device was disconnected, another device is transmitted according to the wireless connection request automatically transmitted from the first type of device. It is possible to suppress the occurrence of an event that the wireless connection with the terminal is disconnected. Also, after the predetermined period has elapsed, the wireless communication device automatically transmits a wireless connection request transmitted from the first target device, which is the first type of device, in a state where the number of connections matches the upper limit number. When receiving, it may disconnect the wireless connection with another device. To this end, the wireless communication device may reestablish a wireless connection with the first target device.

確立部は、さらに、第1の対象機器として第1種の機器が選択されて、第1の対象機器との無線接続が切断されてから所定期間が経過する前に、接続数が上限数未満である状態で、第1の対象機器から無線接続要求が受信される場合に、第1の対象機器との無線接続を再確立してもよい。この構成によると、無線通信装置は、接続数が上限数未満である状態では、上記の所定期間が経過する前に、第1の対象機器との無線接続を適切に再確立することができる。   The establishment unit further selects the first type of device as the first target device, and after the wireless connection with the first target device is disconnected, the number of connections is less than the upper limit number before the predetermined period elapses. In this state, when the wireless connection request is received from the first target device, the wireless connection with the first target device may be reestablished. According to this configuration, in the state where the number of connections is less than the upper limit number, the wireless communication device can appropriately reestablish wireless connection with the first target device before the predetermined period has elapsed.

選択部は、第1の対象機器として、第2種の機器と比べて第1種の機器を優先的に選択してもよい。この構成によると、無線通信装置は、第1の対象機器を適切に選択し得る。   The selection unit may preferentially select the first type of device as the first target device as compared to the second type of device. According to this configuration, the wireless communication device can appropriately select the first target device.

第2種の機器は、無線ネットワークへの参加を促す所定コマンドをサポートしているサポート機器と、所定コマンドをサポートしていない非サポート機器と、を含んでいてもよい。選択部は、N1個の機器がサポート機器と非サポート機器とを含む場合に、第1の対象機器として、非サポート機器と比べてサポート機器を優先的に選択してもよい。この構成によると、無線通信装置は、第1の対象機器を適切に選択し得る。   The second type of device may include a support device that supports a predetermined command for joining the wireless network and a non-support device that does not support the predetermined command. When the N1 devices include the support device and the non-support device, the selection unit may preferentially select the support device as the first target device as compared to the non-support device. According to this configuration, the wireless communication device can appropriately select the first target device.

確立部は、さらに、第1の対象機器としてサポート機器が選択されて、第1の特定機器との無線接続が確立された後に、接続数が上限数に一致する状態から接続数が上限数未満である状態に移行する場合に、所定コマンドを第1の対象機器に送信して、第1の対象機器との無線接続を再確立してもよい。この構成によると、無線通信装置は、サポート機器である第1の対象機器との無線接続を適切に再確立することができる。   The establishing unit further selects a support device as the first target device, and after the wireless connection with the first specific device is established, the number of connections is less than the upper limit number from the state where the number of connections matches the upper limit number When transitioning to the state, the predetermined command may be transmitted to the first target device to reestablish wireless connection with the first target device. According to this configuration, the wireless communication device can appropriately reestablish wireless connection with the first target device, which is the support device.

受信部は、さらに、第1の特定機器との無線接続が確立された後に、接続数が上限数に一致する状態で、第2の特定機器から第2の無線接続要求を受信してもよい。選択部は、さらに、第2の特定機器から第2の無線接続要求が受信される場合に、無線通信装置との無線接続を現在確立しているN2個(N2は2以上の整数)の機器の中から、無線接続が切断されるべき第2の対象機器を選択してもよい。切断部は、さらに、第2の切断要求を第2の対象機器に送信して、第2の対象機器との無線接続を切断してもよい。確立部は、さらに、第2の対象機器との無線接続が切断された後に、第2の特定機器との無線接続を確立してもよい。確立部は、さらに、第1の対象機器として第1種の機器が選択されて、第1の特定機器との無線接続が確立され、かつ、第2の対象機器としてサポート機器が選択されて、第2の特定機器との無線接続が確立された後に、接続数が上限数に一致する状態から接続数が上限数未満である状態に移行する場合に、第1種の機器である第1の対象機器と比べて、サポート機器である第2の対象機器との無線接続を優先的に再確立してもよい。この構成によると、無線通信装置は、無線接続を再確立すべき複数個の機器(即ち第1及び第2の対象機器)が存在する場合に、接続数が上限数未満である状態に移行した後に、無線接続を迅速に再確立し得る。   The receiver may further receive the second wireless connection request from the second specific device in a state where the number of connections matches the upper limit number after wireless connection with the first specific device is established. . The selection unit further selects N2 (N2 is an integer of 2 or more) devices currently establishing wireless connection with the wireless communication device when the second wireless connection request is received from the second specific device. The second target device from which the wireless connection is to be disconnected may be selected. The disconnection unit may further transmit a second disconnection request to the second target device to disconnect the wireless connection with the second target device. The establishing unit may further establish a wireless connection with the second specific device after the wireless connection with the second target device is disconnected. The establishing unit further selects the first type of device as the first target device, establishes wireless connection with the first specific device, and selects the support device as the second target device. When transitioning from a state where the number of connections is equal to the upper limit number to a state where the number of connections is less than the upper limit number after the wireless connection with the second specific device is established, the first type of device being the first type of device The wireless connection with the second target device, which is the support device, may be preferentially reestablished compared to the target device. According to this configuration, the wireless communication device transitions to a state in which the number of connections is less than the upper limit number when there are a plurality of devices (that is, the first and second target devices) for which wireless connection is to be reestablished. Later, the wireless connection may be quickly reestablished.

確立部は、さらに、第1の対象機器としてサポート機器が選択されて、第1の特定機器との無線接続が確立され、かつ、第2の対象機器としてサポート機器が選択されて、第2の特定機器との無線接続が確立された後に、接続数が上限数に一致する状態から接続数が上限数未満である状態に移行する場合に、第1の対象機器と第2の対象機器とのうち、無線通信装置との無線接続が先に切断された対象機器との無線接続を優先的に再確立してもよい。この構成によると、無線通信装置は、第1の対象機器と第2の対象機器との双方がサポート機器である場合に、無線接続が先に切断された第1の対象機器との無線接続を優先的に再確立する。このために、無線接続が先に切断された第1の対象機器との無線接続が長期間に亘って再確立されないという事象の発生を抑制することができる。   The establishing unit further selects a support device as a first target device, establishes a wireless connection with the first specific device, and selects a support device as a second target device. When transitioning from a state where the number of connections matches the upper limit number to a state where the number of connections is less than the upper limit after wireless connection with a specific device is established, between the first target device and the second target device Among them, the wireless connection with the target device for which the wireless connection with the wireless communication device has been disconnected may be preferentially reestablished. According to this configuration, when both of the first target device and the second target device are the support devices, the wireless communication device performs the wireless connection with the first target device whose wireless connection is disconnected first. Re-establish priority. For this reason, it is possible to suppress the occurrence of an event that the wireless connection with the first target device whose wireless connection has been previously disconnected is not reestablished over a long period of time.

特定の無線通信方式は、一対の機器の間に無線接続が確立されて、無線ネットワークが形成されるべき際に、一対の機器が無線ネットワークの親局及び子局を決定するための無線通信を実行する仕組みを有する無線通信方式であってもよい。   In a specific wireless communication method, when a wireless connection is established between a pair of devices and a wireless network is to be formed, the pair of devices perform wireless communication for determining a master station and a slave station of the wireless network. It may be a wireless communication method having a mechanism to execute.

N1個の機器は、無線通信装置との無線接続を現在確立している全ての機器のうち、無線通信装置に画像処理機能を実行させるためのアプリケーションが起動中でない機器であってもよい。この構成によると、無線通信装置は、上記のアプリケーションが起動中でないN1個の機器、即ち、画像処理機能を実行させるための通信を無線通信装置と実行する可能性が低いN1個の機器の中から、無線接続が切断されるべき第1の対象機器を選択することができる。   Among all the devices currently establishing wireless connection with the wireless communication device, the N1 devices may be devices for which an application for causing the wireless communication device to execute the image processing function is not running. According to this configuration, the wireless communication apparatus is among N1 devices whose application is not running, that is, among the N1 devices that are unlikely to execute communication with the wireless communication apparatus to execute the image processing function. From which the first target device for which the wireless connection is to be disconnected can be selected.

上記の無線通信装置の機能を実現するための制御方法、コンピュータプログラム、及び、当該コンピュータプログラムを格納するコンピュータ読取可能記録媒体も、新規で有用である。また、上記の無線通信装置と、いずれかの機器(例えば第1の特定機器)と、を備えるシステムも、新規で有用である。   A control method for realizing the functions of the wireless communication device, a computer program, and a computer readable recording medium storing the computer program are also novel and useful. Also, a system including the above-described wireless communication device and any device (for example, the first specific device) is novel and useful.

通信システムの構成を示す。1 shows the configuration of a communication system. プリンタがIVサポート機器との無線接続を確立する様子を表わすシーケンス図を示す。FIG. 6 shows a sequence diagram illustrating how a printer establishes a wireless connection with an IV support device. プリンタがレガシー機器との無線接続を確立する様子を表わすシーケンス図を示す。FIG. 6 shows a sequence diagram illustrating how a printer establishes a wireless connection with a legacy device. プリンタの応答処理のフローチャートを示す。6 shows a flowchart of printer response processing. プリンタの機器選択処理のフローチャートを示す。5 shows a flowchart of device selection processing of a printer. プリンタの監視処理のフローチャートを示す。5 shows a flowchart of printer monitoring processing. レガシー機器に切断要求を送信するケースAのシーケンス図を示す。FIG. 16 shows a sequence diagram of Case A in which a disconnection request is sent to a legacy device. レガシー機器に切断要求を送信するケースBのシーケンス図を示す。FIG. 16 shows a sequence diagram of Case B in which a disconnection request is sent to a legacy device. IVサポート機器に切断要求を送信するケースCのシーケンス図を示す。The sequence diagram of Case C which transmits a cutting demand to IV support apparatus is shown. 2個の機器に切断要求を送信するケースDのシーケンス図を示す。The sequence diagram of Case D which transmits a cutting request | requirement to two apparatuses is shown. 図10の続きのシーケンス図であり、IVサポート機器との無線接続を優先的に再確立する様子を示す。FIG. 11 is a sequence diagram of the continuation of FIG. 10, which shows how to preferentially reestablish wireless connection with an IV support device. 先に無線接続が切断された機器との無線接続を優先的に再確立するケースEのシーケンス図を示す。FIG. 16 shows a sequence diagram of Case E in which a wireless connection with a device whose wireless connection has been previously disconnected is preferentially reestablished.

(システムの構成;図1)
本実施例の通信システム2は、プリンタPRと、複数個の携帯端末Ta〜Tfと、を備える。プリンタPRと各携帯端末Ta〜Tfとは、Wi−Fi Allianceによって策定されたWi−Fi方式に従った無線通信であるWi−Fi通信を実行可能である。
(System configuration; Fig. 1)
The communication system 2 of the present embodiment includes a printer PR and a plurality of portable terminals Ta to Tf. The printer PR and each of the mobile terminals Ta to Tf can execute Wi-Fi communication which is wireless communication in accordance with the Wi-Fi scheme formulated by the Wi-Fi Alliance.

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

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

無線LANI/F20は、Wi−Fi方式に従ったWi−Fi通信を実行するためのインターフェースである。Wi−Fi方式は、例えば、IEEE(The Institute of Electrical and Electronics Engineers, Inc.の略)の802.11の規格、及び、それに準ずる規格(例えば、802.11a,11b,11g,11n等)に従って、無線通信を実行するための無線通信方式である。より具体的に言うと、無線LANI/F20は、Wi−Fi Allianceによって策定されたWFD(Wi-Fi Directの略)方式をサポートしているI/Fである。従って、制御部30は、WFD方式の無線ネットワーク(以下では「WFDNW」と呼ぶ)を利用して、無線LANI/F20を介して、Wi−Fi通信を実行することができる。   The wireless LAN I / F 20 is an interface for executing Wi-Fi communication in accordance with the Wi-Fi scheme. The Wi-Fi scheme is, for example, according to the IEEE (abbreviated as the Institute of Electrical and Electronics Engineers, Inc.) 802.11 standard and a standard conforming thereto (for example, 802.11a, 11b, 11g, 11n, etc.) Wireless communication method for executing wireless communication. More specifically, the wireless LAN I / F 20 is an I / F that supports the WFD (abbreviation of Wi-Fi Direct) scheme formulated by the Wi-Fi Alliance. Therefore, the control unit 30 can execute Wi-Fi communication via the wireless LAN I / F 20 using a WFD wireless network (hereinafter referred to as “WFDNW”).

制御部30は、CPU32と、メモリ34と、を備える。CPU32は、メモリ34に記憶されているプログラム36に従って、様々な処理を実行するプロセッサである。メモリ34は、プログラム36のみならず、機器リスト50を記憶することができる。   The control unit 30 includes a CPU 32 and a memory 34. The CPU 32 is a processor that executes various processes in accordance with the program 36 stored in the memory 34. The memory 34 can store not only the program 36 but also the device list 50.

機器リスト50は、プリンタPRが無線接続を確立した各携帯端末(例えばTa)の各関連情報が記述されるリストである。各関連情報は、MACアドレスと、接続時刻と、使用状況と、切断時刻と、機器タイプと、禁止フラグと、が関連付けられた情報である。「MACアドレス」は、携帯端末のMACアドレスである。「接続時刻」は、プリンタPRが携帯端末との無線接続を確立した時刻である。「使用状況」は、携帯端末にインストールされている所定のアプリケーションプログラム(以下では「印刷アプリ」と呼ぶ)に従った印刷データの通信状況を示す。印刷アプリは、印刷データをプリンタPRに供給して、プリンタPRに印刷機能を実行させるためのアプリケーションプログラムである。「切断時刻」は、プリンタPRが携帯端末との無線接続を切断した時刻である。「機器タイプ」は、携帯端末のタイプを示す。「禁止フラグ」は、プリンタPRが携帯端末から接続要求を受信する場合に、携帯端末との無線接続を確立可能であるのか(即ち「ON」)、無線接続を確立不可能であるのか(即ち「OFF」)を示すフラグである。   The device list 50 is a list in which pieces of related information of each portable terminal (for example, Ta) with which the printer PR has established a wireless connection are described. Each piece of related information is information in which a MAC address, a connection time, a use status, a disconnection time, a device type, and a prohibition flag are associated. The "MAC address" is the MAC address of the mobile terminal. The “connection time” is a time when the printer PR establishes a wireless connection with the portable terminal. The “usage status” indicates the communication status of print data according to a predetermined application program (hereinafter referred to as “print application”) installed in the mobile terminal. The print application is an application program for supplying print data to the printer PR and causing the printer PR to execute a print function. The “disconnection time” is the time when the printer PR has disconnected the wireless connection with the portable terminal. "Device type" indicates the type of mobile terminal. The "prohibition flag" indicates that, when the printer PR receives a connection request from the portable terminal, can the wireless connection with the portable terminal be established (ie, "ON") or the wireless connection can not be established (ie,? It is a flag indicating "OFF".

携帯端末のタイプは、レガシー機器と、WFD機器と、に大別される。また、WFD機器は、IV(Invitationの略)サポート機器と、IV非サポート機器と、に分類される。レガシー機器は、WFD方式に従って動作不可能な機器である。WFD機器(即ちIVサポート機器及びIV非サポート機器)は、WFD方式に従って動作可能な機器である。IVサポート機器は、Invitation Request信号をサポートしている機器、即ち、Invitation Request信号に応じて無線接続を確立可能な機器である。IV非サポート機器は、Invitation Request信号をサポートしていない機器、即ち、Invitation Request信号に応じて無線接続を確立不可能な機器である。機器リスト50内の「機器タイプ」には、「レガシー」と、「IVサポート」と、「IV非サポート」と、のいずれかが記述される。なお、機器リスト50では、機器タイプ「レガシー」に関連付けて禁止フラグが記述されるが、機器タイプ「IVサポート」又は「IV非サポート」に関連付けて禁止フラグが記述されない。   The types of mobile terminals are roughly classified into legacy devices and WFD devices. In addition, WFD devices are classified into IV (abbreviation for Invitation) support devices and IV non-support devices. Legacy devices are devices that can not operate according to the WFD scheme. WFD devices (ie, IV support devices and IV non-support devices) are devices that can operate according to the WFD scheme. The IV support device is a device that supports the Invitation Request signal, that is, a device capable of establishing a wireless connection in response to the Invitation Request signal. An IV non-support device is a device that does not support the Invitation Request signal, that is, a device that can not establish a wireless connection in response to the Invitation Request signal. In the “device type” in the device list 50, any one of “legacy”, “IV support”, and “IV non-support” is described. In the device list 50, the prohibition flag is described in association with the device type “legacy”, but the prohibition flag is not described in association with the device type “IV support” or “IV non-support”.

(携帯端末Ta〜Tfの構成)
各携帯端末Ta〜Tfは、携帯電話(例えばスマートフォン)、PDA、ノートPC、タブレットPC、携帯型音楽再生装置、携帯型動画再生装置等の可搬型の端末装置である。以下では、各携帯端末Ta〜Tfの各MACアドレスのことを「MACa」〜「MACf」と記載する。
(Configuration of portable terminals Ta to Tf)
Each of the mobile terminals Ta to Tf is a portable terminal device such as a mobile phone (for example, a smartphone), a PDA, a notebook PC, a tablet PC, a mobile music player, a mobile video player, and the like. Below, the thing of each MAC address of each portable terminal Ta-Tf is described as "MACa"-"MACf."

携帯端末Taは、レガシー機器であり、携帯端末Tb〜Tfは、WFD機器である。また、携帯端末Tb,Tcは、IVサポート機器であり、携帯端末Td〜Tfは、IV非サポート機器である。   The portable terminal Ta is a legacy device, and the portable terminals Tb to Tf are WFD devices. The portable terminals Tb and Tc are IV support devices, and the portable terminals Td to Tf are IV non-support devices.

(WFD(Wi-Fi Directの略)方式)
続いて、WFD方式について説明する。WFD方式は、Wi−Fi Allianceによって作成された規格書「Wi−Fi Peer−to−Peer(P2P) Technical Specification Version1.1(Wi−Fi Alliance、2010年)」に記述されている無線通信方式である。
(WFD (short for Wi-Fi Direct) method)
Subsequently, the WFD method will be described. The WFD method is a wireless communication method described in the standard "Wi-Fi Peer-to-Peer (P2P) Technical Specification Version 1.1 (Wi-Fi Alliance, 2010)" prepared by the Wi-Fi Alliance. is there.

上記のWFDの規格書では、WFD機器の状態として、Group Owner状態(以下では「G/O状態」と呼ぶ)、クライアント状態(以下では「CL状態」と呼ぶ)、及び、デバイス状態の3つの状態が定義されている。WFD機器は、上記の3つの状態のうちの1つの状態で選択的に動作可能である。   In the above WFD specifications, there are three WFD device states: Group Owner state (hereinafter referred to as “G / O state”), client state (hereinafter referred to as “CL state”), and device state The state is defined. The WFD device is selectively operable in one of the above three states.

G/O状態のWFD機器(即ちG/O機器)は、当該WFD機器が親局として動作する無線ネットワーク(即ちWFDNW)を形成する機器である。CL状態のWFD機器(即ちCL機器)は、WFDNWの子局として動作する機器である。デバイス状態のWFD機器(即ちデバイス機器)は、WFDNWに所属していない機器である。   A WFD device in the G / O state (ie, G / O device) is a device that forms a wireless network (ie, WFD NW) in which the WFD device operates as a master station. A WFD device in the CL state (ie, a CL device) is a device that operates as a slave station of the WFD NW. The WFD device in the device state (ie, the device device) is a device not belonging to the WFD NW.

G/O機器とCL機器との双方が所属しているWFDNWは、例えば、以下の2つの手順のいずれかによって形成される。第1の手順では、一対のデバイス機器は、G/Oネゴシエーションと呼ばれる無線通信を実行する。これにより、当該一対のデバイス機器のうちの一方は、G/O状態(即ちG/O機器)になることを決定し、他方は、CL状態(即ちCL機器)になることを決定する。そして、G/O機器は、WFDNWを形成して、CL機器との無線接続を確立する。これにより、G/O機器とCL機器との双方が所属しているWFDNWが形成される。このように、WFD方式は、G/Oネゴシエーションの仕組みを有する無線通信方式である。   The WFD NW to which both the G / O device and the CL device belong is formed, for example, by either of the following two procedures. In the first procedure, a pair of device devices performs wireless communication called G / O negotiation. Thereby, one of the pair of device devices determines to be in the G / O state (ie, G / O device), and the other determines to be in the CL state (ie, CL device). Then, the G / O device forms a WFD NW and establishes a wireless connection with the CL device. Thus, the WFD NW to which both the G / O device and the CL device belong is formed. Thus, the WFD scheme is a wireless communication scheme having a mechanism of G / O negotiation.

第2の手順では、デバイス機器は、G/Oネゴシエーションを実行せずに、自発的にG/O状態に移行して、WFDNWを形成する。この場合、WFDNWが形成された後に、他のデバイス機器は、G/Oネゴシエーションを実行せずに、CL状態に移行して、G/O機器との無線接続を確立する。これにより、G/O機器とCL機器との双方が所属しているWFDNWが形成される。   In the second procedure, the device device spontaneously transitions to the G / O state to form the WFD NW without performing G / O negotiation. In this case, after the WFD NW is formed, the other device devices shift to the CL state without establishing G / O negotiation, and establish wireless connection with the G / O device. Thus, the WFD NW to which both the G / O device and the CL device belong is formed.

G/O機器は、他の機器を介さずに、CL機器と対象データの無線通信を実行可能である。対象データは、OSI参照モデルのネットワーク層の情報、及び、ネットワーク層よりも上位層(例えばアプリケーション層)の情報を含むデータであり、例えば、印刷対象の画像を表わす印刷データを含む。また、G/O機器は、複数個のCL機器が当該G/O機器によって形成されているWFDNWに参加している場合に、一対のCL機器の間の対象データの無線通信を中継可能である。このように、WFDNWでは、各機器は、当該各機器とは別体に構成されているアクセスポイント(以下では「AP」と呼ぶ)を介さずに、対象データの無線通信を実行することができる。即ち、WFD方式は、APが利用されない無線通信方式であると言える。   The G / O device can execute wireless communication of target data with the CL device without passing through another device. The target data is data including information of the network layer of the OSI reference model and information of a layer higher than the network layer (for example, application layer), and includes, for example, print data representing an image to be printed. Also, the G / O device can relay wireless communication of target data between a pair of CL devices when a plurality of CL devices participate in the WFD NW formed by the G / O devices. . Thus, in the WFD NW, each device can execute wireless communication of target data without going through an access point (hereinafter referred to as “AP”) configured separately from the each device. . That is, it can be said that the WFD scheme is a wireless communication scheme in which an AP is not used.

また、G/O機器は、WFDNWに所属していないデバイス機器と対象データの無線通信を実行することができないが、デバイス機器と接続用データの無線通信を実行して、デバイス機器との無線接続を確立することができる。これにより、G/O機器は、デバイス機器をWFDNWに参加させることができる。   Also, although the G / O device can not perform wireless communication of target data with device devices that do not belong to the WFD NW, it performs wireless communication of connection data with the device devices to wirelessly connect with the device devices. Can be established. Thus, the G / O device can cause the device device to participate in the WFD NW.

G/O機器は、さらに、WFDNWに所属していないレガシー機器と接続用データの無線通信を実行して、レガシー機器との無線接続を確立することもできる。これにより、G/O機器は、レガシー機器をWFDNWに参加させることができる。   The G / O device can also perform wireless communication of connection data with a legacy device not belonging to the WFD NW to establish a wireless connection with the legacy device. Thereby, the G / O device can cause the legacy device to participate in the WFD NW.

上記の接続用データは、OSI参照モデルのネットワーク層よりも下位層(例えば、物理層、データリンク層等)の情報を含むデータ(即ち、ネットワーク層の情報を含まないデータ)である。より具体的に言うと、上記の接続用データは、WFD方式に特有である特有データを含まない通常接続用データと、当該特有データを含むWFD接続用データと、のどちらかに分類される。   The connection data described above is data including information on a layer lower than the network layer of the OSI reference model (eg, physical layer, data link layer, etc.) (ie, data not including information on the network layer). More specifically, the connection data described above is classified into either normal connection data that does not include specific data specific to the WFD system, or WFD connection data that includes the specific data.

通常接続用データは、例えば、Probe Request/Response信号、Authentication Request/Response信号、Association Request/Response信号、WSC Exchange、4-Way Handshake等を含む。Probe Request信号は、無線ネットワークの親局として動作する機器(例えば、G/O機器、AP)をサーチするための信号であり、Probe Response信号は、その応答信号である。Authentication Request信号は、認証方式を確認するための信号であり、Authentication Response信号は、その応答信号である。Association Request信号は、接続を要求するための信号であり、Association Response信号は、その応答信号である。WSC Exchangeは、認証情報等の各種情報を供給するための信号である。4-Way Handshakeは、認証を実行するための信号である。   The normal connection data includes, for example, a Probe Request / Response signal, an Authentication Request / Response signal, an Association Request / Response signal, WSC Exchange, 4-Way Handshake, and the like. The Probe Request signal is a signal for searching a device (for example, a G / O device, AP) operating as a master station of the wireless network, and the Probe Response signal is a response signal. The Authentication Request signal is a signal for confirming an authentication method, and the Authentication Response signal is a response signal. The Association Request signal is a signal for requesting a connection, and the Association Response signal is its response signal. WSC Exchange is a signal for supplying various information such as authentication information. 4-Way Handshake is a signal for performing authentication.

また、WFD接続用データは、上記の通常接続用データに加えて、WFD方式に特有である特有データとして、例えば、Invitation Request/Response、Provision Discovery Request/Response信号等を含む。Invitation Request信号は、WFDNWへの参加を促す信号であり、Invitation Responseは、その応答信号である。Provision Discovery Request信号は、WPS(Wi-Fi Protected Setupの略)の方式(例えば、プッシュボタン方式、PINコード方式等)を確認するための信号であり、Provision Discovery Response信号は、その応答信号である。なお、以下では、「Request」、「Response」のことを、それぞれ、「Req.」、「Res.」と記載する。   Further, the WFD connection data includes, for example, an Invitation Request / Response, a Provision Discovery Request / Response signal, and the like as specific data specific to the WFD method, in addition to the above-described normal connection data. The Invitation Request signal is a signal prompting participation in the WFD NW, and the Invitation Response is its response signal. The Provision Discovery Request signal is a signal for confirming the method (for example, push button method, PIN code method, etc.) of WPS (abbreviation of Wi-Fi Protected Setup), and the Provision Discovery Response signal is a response signal thereof. . In the following, “Request” and “Response” will be described as “Req.” And “Res.”, Respectively.

即ち、レガシー機器は、APと通常接続用データの無線通信を実行して、APとの無線接続を確立し、APによって形成されている無線ネットワークにいわゆるステーションとして参加することができる。これと同様に、レガシー機器は、G/O機器と通常接続用データの無線通信を実行して、G/O機器との無線接続を確立し、WFDNWにステーションとして参加することができる。   That is, the legacy device can perform wireless communication of data for normal connection with the AP, establish wireless connection with the AP, and participate as a so-called station in a wireless network formed by the AP. Similarly, the legacy device can perform wireless communication of data for normal connection with the G / O device, establish wireless connection with the G / O device, and participate in the WFD NW as a station.

デバイス機器(即ち、WFD方式に従って動作可能な機器)は、状況に応じて、通常接続用データ及びWFD接続用データのどちらかの無線通信をG/O機器と実行して、G/O機器との無線接続を確立し、WFDNWに参加することができる。デバイス機器が通常接続用データのみの無線通信を実行する場合には、デバイス機器は、WFDNWにステーションとして参加すると言える。デバイス機器は、WFD方式の特有データの無線通信を実行しないからである。一方において、デバイス機器がWFD接続用データの無線通信を実行する場合には、デバイス機器は、WFDNWにCL機器として参加すると言える。   Depending on the situation, the device device (that is, a device operable according to the WFD scheme) executes wireless communication of either the normal connection data or the WFD connection data with the G / O device to communicate with the G / O device. Establish a wireless connection and can join WFD NW. When the device device performs the wireless communication only for the normal connection data, it can be said that the device device participates in the WFD NW as a station. This is because the device device does not execute the wireless communication of the WFD scheme specific data. On the other hand, when the device performs wireless communication of WFD connection data, it can be said that the device participates in the WFD NW as a CL device.

上述したように、デバイス機器は、WFDNWにステーションとして参加することもできるし、WFDNWにCL機器として参加することもできる。ただし、以下では、ステーションとCL機器とを区別することなく「子局」と呼ぶ。   As described above, the device apparatus can participate in the WFD NW as a station or can participate in the WFD NW as a CL apparatus. However, in the following, the station and the CL device are referred to as "child stations" without distinction.

G/O機器では、通常、当該G/O機器によって形成されているWFDNWに所属可能な子局の数の上限数が、予め決められている。換言すると、G/O機器では、G/O機器が同時的に確立可能な無線接続の数の上限数が、無線LANI/Fのメモリ量等に基づいて予め決められている。本実施例では、MFP10は、G/O機器として動作して、WFDNWを形成することができる。そして、G/O機器であるMFP10が同時的に確立可能な無線接続の数の上限数は、「4」である。ただし、変形例では、上限数は、「4」でなくてもよく、「2」以上の整数であれば、どのような値であってもよい。   In the G / O device, the upper limit number of the number of child stations that can belong to the WFD NW formed by the G / O device is usually determined in advance. In other words, in the G / O device, the upper limit number of wireless connections that can be established simultaneously by the G / O device is determined in advance based on the memory amount of the wireless LAN I / F or the like. In the present embodiment, the MFP 10 can operate as a G / O device to form a WFD NW. The upper limit number of wireless connections that can be established simultaneously by the MFP 10, which is a G / O device, is “4”. However, in the modification, the upper limit number may not be “4”, and may be any value as long as it is an integer of “2” or more.

(プリンタPRがIVサポート機器との無線接続を確立する処理;図2)
続いて、図2を参照して、プリンタPRがIVサポート機器である携帯端末Tbとの無線接続を確立する処理について説明する。本実施例では、プリンタPRのCPU32は、プリンタPRの電源がONされることをトリガとして、G/Oネゴシエーションを実行せずに、プリンタPRの状態をデバイス状態からG/O状態に移行させて、WFDNWを形成する。この段階では、WFDNWに1個の子局も所属していない。即ち、G/O機器であるプリンタPRのみが所属しているWFDNWが形成される。
(Process in which the printer PR establishes a wireless connection with the IV support device; FIG. 2)
Next, with reference to FIG. 2, a process of establishing wireless connection with the portable terminal Tb, which is the IV support device, of the printer PR will be described. In this embodiment, the CPU 32 of the printer PR causes the status of the printer PR to transition from the device status to the G / O status without executing G / O negotiation, triggered by the power ON of the printer PR. , Form WFDNW. At this stage, no slave station belongs to the WFD NW. That is, a WFD NW to which only the printer PR which is a G / O device belongs is formed.

T10では、携帯端末Tbのユーザは、プリンタPRの操作部12に所定の操作を実行する。上記の所定の操作は、プリンタPRに無線接続を確立させるための操作であり、例えば、WPS(即ちいわゆる自動無線設定)のプッシュボタン方式に従った操作である。   At T10, the user of the portable terminal Tb executes a predetermined operation on the operation unit 12 of the printer PR. The predetermined operation described above is an operation for causing the printer PR to establish a wireless connection, and is, for example, an operation according to the push button method of WPS (that is, so-called automatic wireless setting).

T11では、携帯端末Tbのユーザは、さらに、印刷アプリを起動するための起動操作と、プリンタPRで印刷されるべき画像を表わす印刷データを指定するための印刷操作と、を携帯端末Tbに実行する。   At T11, the user of the portable terminal Tb further executes, on the portable terminal Tb, an activation operation for activating a print application and a printing operation for specifying print data representing an image to be printed by the printer PR. Do.

T12では、携帯端末Tbは、Probe Req.信号をプリンタPRに送信する。Probe Req.信号は、携帯端末TbのMACアドレスであるMACbと、携帯端末TbがWFD機器であることを示すP2P(peer to peerの略)情報と、を含む。   At T12, the portable terminal Tb transmits a Probe Req. Signal to the printer PR. The Probe Req. Signal includes MACb, which is the MAC address of the portable terminal Tb, and P2P (abbreviation of peer to peer) information indicating that the portable terminal Tb is a WFD device.

T14では、プリンタPRのCPU32は、携帯端末TbからProbe Req.信号を受信する場合に、Probe Res.信号を携帯端末Tbに送信する。   At T14, when receiving the Probe Req. Signal from the portable terminal Tb, the CPU 32 of the printer PR transmits a Probe Res. Signal to the portable terminal Tb.

T16では、携帯端末Tbは、プリンタPRからProbe Res.信号を受信する場合に、Provision Discovery Req.信号を携帯端末Tbに送信する。Provision Discovery Req.信号は、携帯端末TbがInvitation Req.信号をサポートしていることを示すサポート情報を含む。なお、仮に、携帯端末TbがIV非サポート機器である場合には、Provision Discovery Req.信号は、上記のサポート情報を含まない。   In T16, when receiving the Probe Res. Signal from the printer PR, the mobile terminal Tb transmits a Provision Discovery Req. Signal to the mobile terminal Tb. The Provision Discovery Req. Signal includes support information indicating that the mobile terminal Tb supports the Invitation Req. Signal. If the portable terminal Tb is an IV non-supporting device, the Provision Discovery Req. Signal does not include the above support information.

T18では、プリンタPRのCPU32は、携帯端末TbからProvision Discovery Req.信号を受信する場合に、Provision Discovery Res.信号を携帯端末Tbに送信する。   At T18, when receiving the Provision Discovery Req. Signal from the portable terminal Tb, the CPU 32 of the printer PR transmits a Provision Discovery Res. Signal to the portable terminal Tb.

T20では、携帯端末Tbは、プリンタPRからProvision Discovery Res.信号を受信する場合に、図示省略のAuthentication Request信号及びAuthentication Response信号の通信の終了後に、接続要求(即ちAssociation Request信号)をプリンタPRに送信する。   In T20, when the portable terminal Tb receives a Provision Discovery Res. Signal from the printer PR, a connection request (that is, an Association Request signal) is sent to the printer PR after communication of an authentication request signal and an authentication response signal (not shown) ends. Send.

T22では、プリンタPRのCPU32は、携帯端末Tbから接続要求を受信する場合に、無線接続を確立するための様々な信号の通信(例えば、Association Response信号、WSC Exchange、4-Way Handshake)を携帯端末Tbと実行する。これにより、CPU32は、携帯端末Tbとの無線接続を確立して、プリンタPRがG/O機器として動作するWFDNWに携帯端末Tbを子局(より具体的にはCL機器)として参加させることができる。   In T22, when the CPU 32 of the printer PR receives a connection request from the portable terminal Tb, it carries out communication of various signals (for example, Association Response signal, WSC Exchange, 4-Way Handshake) for establishing a wireless connection. Execute with terminal Tb. Thereby, the CPU 32 establishes a wireless connection with the portable terminal Tb, and causes the portable terminal Tb to participate as a slave station (more specifically, a CL device) in the WFD NW in which the printer PR operates as a G / O device. it can.

T24では、プリンタPRのCPU32は、携帯端末Tbの関連情報を機器リスト50(図1参照)に登録する。具体的には、CPU32は、「MACアドレス」、「接続時刻」、「使用状況」として、それぞれ、T12のProbe Req.信号に含まれる「MACb」、「現在時刻」、「未使用」を記述する。また、CPU32は、T16のProvision Discovery Req.信号に含まれるサポート情報に基づいて、「機器タイプ」として、「IVサポート」を記述する。なお、仮に、携帯端末TbがIV非サポート機器である場合には、Provision Discovery Req.信号が上記のサポート情報を含まないので、CPU32は、「機器タイプ」として、「IV非サポート」を記述する。T24では、CPU32は、「切断時刻」を記述しない。また、CPU32は、携帯端末Tbがレガシー機器ではないので、「禁止フラグ」を記述しない。   At T24, the CPU 32 of the printer PR registers related information of the portable terminal Tb in the device list 50 (see FIG. 1). Specifically, the CPU 32 describes “MACb”, “current time”, and “not in use” included in the Probe Req. Signal of T12 as “MAC address”, “connection time”, and “usage status”, respectively. Do. In addition, the CPU 32 describes “IV support” as the “device type” based on the support information included in the T 16 Provision Discovery Req. Signal. If the portable terminal Tb is an IV non-supporting device, the Provision Discovery Req. Signal does not include the above support information, so the CPU 32 describes “IV non-support” as the “device type”. . At T24, the CPU 32 does not describe the "disconnection time". In addition, the CPU 32 does not describe the "prohibition flag" because the portable terminal Tb is not a legacy device.

T26では、携帯端末Tbは、WFDNWを利用して、T11の印刷操作で指定された印刷データをプリンタPRに送信する。印刷データは、携帯端末TbのMACbを含む。   At T26, the portable terminal Tb transmits the print data designated by the printing operation at T11 to the printer PR using the WFD NW. The print data includes the MACb of the portable terminal Tb.

T28では、プリンタPRのCPU32は、携帯端末TbからMACbを含む印刷データを受信する場合に、機器リスト50でMACbに関連付けられている「使用状況」、即ち、携帯端末Tbの関連情報に含まれる「使用状況」を、「未使用」から「使用中」に変更する。そして、T30では、CPU32は、受信済みの印刷データによって表わされる画像の印刷を印刷実行部16に開始させる。   In T28, when the CPU 32 of the printer PR receives the print data including the MACb from the portable terminal Tb, the CPU 32 is included in the "usage status" associated with the MACb in the device list 50, that is, the related information of the portable terminal Tb. Change "Usage Status" from "Unused" to "In Use". Then, at T30, the CPU 32 causes the print execution unit 16 to start printing the image represented by the received print data.

T32では、CPU32は、携帯端末Tbからの全ての印刷データの受信が完了したことを検出する。この場合、T34では、プリンタPRのCPU32は、機器リスト50でMACbに関連付けられている「使用状況」、即ち、携帯端末Tbの関連情報に含まれる「使用状況」を、「使用中」から「使用済み」に変更する。   At T32, the CPU 32 detects that the reception of all print data from the portable terminal Tb is completed. In this case, in T34, the CPU 32 of the printer PR changes the "usage status" associated with the MACb in the device list 50, that is, the "usage status" included in the related information of the portable terminal Tb from "in use" to "in use". Change to "used".

(プリンタがレガシー機器との無線接続を確立する処理;図3)
続いて、図3を参照して、プリンタPRが、レガシー機器である携帯端末Taとの無線接続を確立する処理について説明する。T110,T111は、図2のT10,T11と同様である。
(Process in which the printer establishes a wireless connection with the legacy device; Fig. 3)
Subsequently, with reference to FIG. 3, processing in which the printer PR establishes a wireless connection with the portable terminal Ta, which is a legacy device, will be described. T110 and T111 are the same as T10 and T11 in FIG.

T112では、携帯端末Taは、Probe Req.信号をプリンタPRに送信する。Probe Req.信号は、携帯端末TaのMACアドレスであるMACaを含むが、携帯端末Taがレガシー機器であるので、P2P情報を含まない。T114,T120は、図2のT14,T20と同様である。携帯端末Taがレガシー機器であるので、図2のケースとは異なり、WFD方式の特有データであるProvision Discovery Req.信号及びProvision Discovery Res.信号が通信されない。T122は、図2のT22と同様である。これにより、CPU32は、携帯端末Taとの無線接続を確立して、プリンタPRがG/O機器として動作するWFDNWに携帯端末Taを子局(より具体的にはステーション)として参加させることができる。   At T112, the portable terminal Ta transmits a Probe Req. Signal to the printer PR. The Probe Req. Signal includes MACa, which is the MAC address of the portable terminal Ta, but does not include P2P information because the portable terminal Ta is a legacy device. T114 and T120 are the same as T14 and T20 in FIG. Since the portable terminal Ta is a legacy device, unlike the case of FIG. 2, the Provision Discovery Req. Signal and the Provision Discovery Res. Signal, which are WFD specific data, are not communicated. T122 is the same as T22 in FIG. Thereby, the CPU 32 can establish a wireless connection with the portable terminal Ta and allow the portable terminal Ta to participate as a slave station (more specifically, a station) in the WFD NW where the printer PR operates as a G / O device. .

T124では、プリンタPRのCPU32は、携帯端末Taの関連情報を機器リスト50(図1参照)に登録する。具体的には、CPU32は、「MACアドレス」、「接続時刻」、「使用状況」として、それぞれ、T112のProbe Req.信号に含まれる「MACa」、「現在時刻」、「未使用」を記述する。また、CPU32は、T112のProbe Req.信号にP2P情報が含まれていないことに基づいて、「機器タイプ」として、「レガシー機器」を記述する。また、CPU32は、「禁止フラグ」として、「OFF」を記述する。T124では、CPU32は、「切断時刻」を記述しない。T126〜T134は、図2のT26〜T34と同様である。   At T124, the CPU 32 of the printer PR registers the related information of the portable terminal Ta in the device list 50 (see FIG. 1). Specifically, the CPU 32 describes “MACa”, “current time”, and “not in use” included in the Probe Req. Signal of T112 as “MAC address”, “connection time”, and “usage status”, respectively. Do. In addition, the CPU 32 describes “legacy device” as “device type” based on the fact that P2P information is not included in the Probe Req. Signal at T112. Also, the CPU 32 describes "OFF" as the "prohibition flag". At T124, the CPU 32 does not describe the "disconnection time". T126 to T134 are the same as T26 to T34 in FIG.

(プリンタの応答処理;図4)
続いて、図4を参照して、プリンタPRのCPU32が実行する応答処理について説明する。S2では、CPU32は、特定の携帯端末(例えば携帯端末Ta〜Tf)から接続要求(即ちAssociation Request信号、図2のT20、図3のT120参照)を受信することを監視する。CPU32は、特定の携帯端末から接続要求を受信する場合に、S2でYESと判断して、S4に進む。
(Printer response process; Fig. 4)
Subsequently, the response processing executed by the CPU 32 of the printer PR will be described with reference to FIG. In S2, the CPU 32 monitors reception of a connection request (that is, an Association Request signal, T20 in FIG. 2, and T120 in FIG. 3) from a specific portable terminal (for example, portable terminals Ta to Tf). When the CPU 32 receives a connection request from a specific portable terminal, the CPU 32 determines YES in S2, and proceeds to S4.

S4では、CPU32は、プリンタPRが現在確立している無線接続の数(以下では「接続数」と呼ぶ)が、上限数「4」に一致するのか否かを判断する。具体的には、CPU32は、まず、機器リスト50から、切断時刻が記述されていない関連情報の数を抽出する。抽出される関連情報の数は、プリンタPRの接続数に一致する。そして、CPU32は、抽出される関連情報の数が「4」未満である場合に、接続数が上限数に一致しないと判断し(S4でNO)、S6〜S60をスキップしてS62に進む。一方において、CPU32は、抽出される関連情報の数が「4」である場合に、接続数が上限数に一致すると判断し(S4でYES)、S6に進む。   In S4, the CPU 32 determines whether the number of wireless connections currently established by the printer PR (hereinafter referred to as "the number of connections") matches the upper limit number "4". Specifically, the CPU 32 first extracts, from the device list 50, the number of pieces of related information in which the disconnection time is not described. The number of related information extracted corresponds to the number of printer PR connections. Then, when the number of related information to be extracted is less than "4", the CPU 32 determines that the number of connections does not match the upper limit number (NO in S4), skips S6 to S60, and proceeds to S62. On the other hand, when the number of related information to be extracted is "4", the CPU 32 determines that the number of connections matches the upper limit number (YES in S4), and proceeds to S6.

S6では、CPU32は、機器リスト50を参照して、特定の携帯端末の関連情報に含まれる「禁止フラグ」が「ON」であるのか否かを判断する。S2で特定の携帯端末から受信される接続要求は、特定の携帯端末のMACアドレスを含む。CPU32は、接続要求に含まれるMACアドレスに関連付けて、「禁止フラグ」として「ON」が記述されている場合には、S6でYESと判断して、S8に進む。   In S6, the CPU 32 refers to the device list 50 and determines whether the "prohibition flag" included in the related information of the specific portable terminal is "ON". The connection request received from the specific portable terminal in S2 includes the MAC address of the specific portable terminal. If "ON" is described as the "prohibition flag" in association with the MAC address included in the connection request, the CPU 32 determines YES in S6 and proceeds to S8.

S8では、CPU32は、特定の携帯端末との無線接続を確立不可能であると決定して、拒否通知を特定の携帯端末に送信する。即ち、CPU32は、S2で受信される接続要求に応じて、特定の携帯端末との無線接続を確立しない。S8が終了すると、応答処理が終了する。   In S8, the CPU 32 determines that wireless connection with a specific portable terminal can not be established, and transmits a rejection notification to the specific portable terminal. That is, the CPU 32 does not establish a wireless connection with a specific portable terminal in response to the connection request received in S2. When S8 ends, the response process ends.

一方において、S6において、CPU32は、接続要求に含まれるMACアドレスに関連付けられている「禁止フラグ」が「ON」でない場合には、S6でNOと判断して、S10に進む。CPU32は、接続要求に含まれるMACアドレスが機器リスト50に存在しない場合、接続要求に含まれるMACアドレスに関連付けられている「禁止フラグ」が「OFF」である場合、又は、接続要求に含まれるMACアドレスに関連付けて「禁止フラグ」自体が記述されていない場合には、S6でNOと判断する。   On the other hand, when the "prohibition flag" associated with the MAC address included in the connection request is not "ON" at S6, the CPU 32 determines NO at S6 and proceeds to S10. If the MAC address included in the connection request does not exist in the device list 50, the CPU 32 determines that the “prohibition flag” associated with the MAC address included in the connection request is “OFF”, or is included in the connection request. If the "prohibition flag" itself is not described in association with the MAC address, NO is determined in S6.

S10では、CPU32は、機器リスト50を参照して、機器選択処理を実行する。即ち、CPU32は、プリンタPRとの無線接続が確立されている各携帯端末の中から、無線接続が切断されるべき切断対象の携帯端末を選択することを試みる。   At S10, the CPU 32 executes the device selection process with reference to the device list 50. That is, the CPU 32 attempts to select a portable terminal to be disconnected from which wireless connection should be disconnected, from among the portable terminals in which wireless connection with the printer PR is established.

S50では、CPU32は、S10の機器選択処理において、切断対象の携帯端末を選択することができたのか否かを判断する。CPU32は、切断対象の携帯端末を選択することができなかった場合には、S50でNOと判断して、S8に進む。一方において、CPU32は、切断対象の携帯端末を選択することができた場合、即ち、機器リスト50から切断対象の携帯端末の関連情報を選択することができた場合には、S50でYESと判断し、S52に進む。以下では、S10で選択された関連情報のことを「選択済みの関連情報」と呼ぶ。   In S50, the CPU 32 determines whether or not the portable terminal to be disconnected has been selected in the device selection process of S10. When the CPU 32 can not select the portable terminal to be disconnected, the CPU 32 determines NO in S50, and proceeds to S8. On the other hand, when the CPU 32 can select the portable terminal to be disconnected, that is, when it is possible to select the relevant information of the portable terminal to be disconnected from the device list 50, it is determined YES in S50. And proceed to S52. Hereinafter, the related information selected in S10 will be referred to as “selected related information”.

S52では、CPU32は、切断対象の携帯端末との無線接続を切断する。具体的には、CPU32は、選択済みの関連情報に含まれるMACアドレスを含む切断要求を切断対象の携帯端末に送信して、切断対象の携帯端末から応答信号を受信する。これにより、プリンタPRと切断対象の携帯端末との間の無線接続が切断され、プリンタPRの接続数が上限数「4」未満になる。   At S52, the CPU 32 disconnects the wireless connection with the portable terminal to be disconnected. Specifically, the CPU 32 transmits a disconnection request including the MAC address included in the selected related information to the disconnection target portable terminal, and receives a response signal from the disconnection target portable terminal. As a result, the wireless connection between the printer PR and the portable terminal to be disconnected is disconnected, and the number of connections of the printer PR becomes less than the upper limit number “4”.

S54では、CPU32は、選択済みの関連情報を参照して、切断対象の携帯端末(即ちS52で無線接続が切断された携帯端末)の機器タイプを判断する。機器タイプが「レガシー」である場合にはS56に進み、機器タイプが「IVサポート」である場合にはS58に進み、機器タイプが「IV非サポート」である場合にはS60に進む。   In S54, the CPU 32 refers to the selected related information to determine the device type of the portable terminal to be disconnected (that is, the portable terminal whose wireless connection has been disconnected in S52). If the device type is "legacy", the process proceeds to S56. If the device type is "IV support", the process proceeds to S58. If the device type is "IV non-support", the process proceeds to S60.

S56、S58、及び、S60では、CPU32は、機器リスト50を更新する。具体的には、S56では、CPU32は、選択済みの関連情報に含まれる「切断時刻」として現在時刻を記述し、さらに、選択済みの関連情報に含まれる「禁止フラグ」を「OFF」から「ON」に変更する。S58では、CPU32は、選択済みの関連情報に含まれる「切断時刻」として現在時刻を記述する。また、S60では、CPU32は、機器リスト50から選択済みの関連情報を消去する。S56、S58、又は、S60が終了すると、S62に進む。   At S56, S58, and S60, the CPU 32 updates the device list 50. Specifically, in S56, the CPU 32 describes the current time as the "disconnection time" included in the selected related information, and further, from "OFF" the "prohibition flag" included in the selected related information Change to "ON". In S58, the CPU 32 describes the current time as the "disconnection time" included in the selected related information. Further, in S60, the CPU 32 deletes the selected related information from the device list 50. When S56, S58, or S60 ends, the process proceeds to S62.

S62では、CPU32は、無線接続を確立するための通信(図2のT22、図3のT122参照)を特定の携帯端末と実行する。これにより、CPU32は、特定の携帯端末との無線接続を確立して、プリンタPRがG/O機器として動作するWFDNWに特定の携帯端末を子局として参加させることができる。   In S62, the CPU 32 executes communication (see T22 in FIG. 2 and T122 in FIG. 3) for establishing a wireless connection with a specific portable terminal. As a result, the CPU 32 can establish a wireless connection with a specific portable terminal, and allow the specific portable terminal to participate as a slave station in the WFD NW where the printer PR operates as a G / O device.

次いで、S64では、CPU32は、特定の携帯端末の関連情報を機器リスト50に登録する。この処理は、図2のT24及び図3のT124で説明したとおりである。   Next, in S64, the CPU 32 registers related information of a specific portable terminal in the device list 50. This process is as described in T24 of FIG. 2 and T124 of FIG.

(機器選択処理:図5)
図5を参照して、図4のS10の機器選択処理の内容を説明する。以下では、CPU32は、機器リスト50を参照して、各処理を実行する。
(Device selection process: Fig. 5)
The contents of the device selection process of S10 of FIG. 4 will be described with reference to FIG. Hereinafter, the CPU 32 executes each process with reference to the device list 50.

S12では、CPU32は、プリンタPRとの無線接続を確立している各機器のうちの使用済みのレガシー機器の数を判断する。具体的には、CPU32は、機器リスト50を参照して、切断時刻が記述されておらず、かつ、使用状況「使用済み」が記述されており、かつ、機器タイプ「レガシー」が記述されている関連情報を抽出する。CPU32は、抽出される関連情報の数(即ち使用済みのレガシー機器の数)が「0」であると判断する場合には、S22に進む。   In S12, the CPU 32 determines the number of used legacy devices among the devices establishing wireless connection with the printer PR. Specifically, the CPU 32 refers to the device list 50, the disconnection time is not described, the usage status "used" is described, and the device type "legacy" is described. Extract relevant information. If the CPU 32 determines that the number of related information to be extracted (that is, the number of used legacy devices) is “0”, the process proceeds to S22.

S12において、CPU32は、1個の関連情報のみが抽出されると判断する場合には、S14において、当該1個の関連情報を選択することによって、切断対象の携帯端末として1個の使用済みのレガシー機器を選択する。   When the CPU 32 determines that only one piece of related information is extracted in S12, the CPU 32 selects one piece of related information in S14 to thereby use one used portable terminal to be disconnected. Select legacy equipment.

また、S12において、CPU32は、2個以上の関連情報が抽出されると判断する場合には、S16において、切断対象の携帯端末を選択するための選択肢である選択対象の機器として、各使用済みのレガシー機器を決定する。具体的には、CPU32は、S40〜S44で利用されるべき関連情報として当該2個以上の関連情報を決定する。S16が終了すると、S40に進む。   In S12, when the CPU 32 determines that two or more pieces of related information are extracted, each used as a selection target device as an option for selecting a portable terminal to be disconnected in S16. Determine your legacy equipment. Specifically, the CPU 32 determines the two or more pieces of related information as the related information to be used in S40 to S44. When S16 ends, the process proceeds to S40.

S22では、CPU32は、プリンタPRとの無線接続が確立されている各機器のうちの使用済みのIVサポート機器の数を判断する。具体的には、CPU32は、機器リスト50を参照して、切断時刻が記述されておらず、かつ、使用状況「使用済み」が記述されており、かつ、機器タイプ「IVサポート」が記述されている関連情報を抽出する。CPU32は、抽出される関連情報の数(即ち使用済みのIVサポート機器の数)が「0」であると判断する場合には、S32に進む。   In S22, the CPU 32 determines the number of used IV support devices among the devices for which a wireless connection with the printer PR has been established. Specifically, the CPU 32 refers to the device list 50, the disconnection time is not described, the usage status "used" is described, and the device type "IV support" is described. Extract relevant information. If the CPU 32 determines that the number of related information to be extracted (that is, the number of used IV support devices) is “0”, the process proceeds to S32.

S22において、CPU32は、1個の関連情報のみが抽出されると判断する場合には、S24において、当該1個の関連情報を選択することによって、切断対象の携帯端末として1個の使用済みのIVサポート機器を選択する。   When the CPU 32 determines in S22 that only one piece of related information is extracted, the CPU 32 selects one piece of related information in S24 to thereby use one used portable terminal to be disconnected. Select IV support device.

また、S22において、CPU32は、2個以上の関連情報が抽出されると判断する場合には、S26において、切断対象の携帯端末を選択するための選択肢である選択対象の機器として、各使用済みのIVサポート機器を決定する。S26が終了すると、S40に進む。   Further, if the CPU 32 determines in S22 that two or more pieces of related information are to be extracted, each used as a selection target device as an option for selecting a portable terminal to be disconnected in S26. Determine your IV support equipment. When S26 ends, the process proceeds to S40.

S32では、CPU32は、プリンタPRとの無線接続が確立されている各機器のうちの使用済みのIV非サポート機器の数を判断する。具体的には、CPU32は、機器リスト50から、使用状況「使用済み」が記述されており、かつ、機器タイプ「IV非サポート」が記述されている関連情報を抽出する。CPU32は、抽出される関連情報の数(即ち使用済みのIV非サポート機器の数)が「0」であると判断する場合には、切断対象の携帯端末を選択することなく、図5の処理を終了する。この場合、図4のS50でNOと判断される。   In S32, the CPU 32 determines the number of used IV non-supporting devices among the devices for which a wireless connection with the printer PR has been established. Specifically, the CPU 32 extracts, from the device list 50, related information in which the usage status "used" is described and the device type "IV non-support" is described. When the CPU 32 determines that the number of related information to be extracted (that is, the number of non-supporting IV devices used) is “0”, the process of FIG. 5 is performed without selecting the portable terminal to be disconnected. Finish. In this case, NO is determined in S50 of FIG.

S32において、CPU32は、1個の関連情報のみが抽出されると判断する場合には、S34において、当該1個の関連情報を選択することによって、切断対象の携帯端末として1個の使用済みのIV非サポート機器を選択する。   When the CPU 32 determines in S32 that only one piece of related information is extracted, the CPU 32 selects one piece of related information in S34 to thereby use one used portable terminal to be disconnected. Select the IV non-support device.

また、S32において、CPU32は、2個以上の関連情報が抽出されると判断する場合には、S36において、切断対象の携帯端末を選択するための選択肢である選択対象の機器として、各使用済みのIV非サポート機器を決定する。S36が終了すると、S40に進む。   When the CPU 32 determines in S32 that two or more pieces of related information are to be extracted, each used as a selection target device as an option for selecting a portable terminal to be disconnected in S36. Determine the IV non-supporting equipment. When S36 ends, the process proceeds to S40.

S40〜S44では、CPU32は、2個以上の選択対象の機器(即ち、2個以上の使用済みのレガシー機器、2個以上の使用済みのIVサポート機器、又は、2個以上の使用済みのIV非サポート機器)の中から、1個の機器を選択する。具体的には、CPU32は、2個以上の選択対象の機器のそれぞれの電波強度(必要であればさらに接続時刻)を参照して、1個の機器を選択する。   In S40 to S44, the CPU 32 selects two or more selected devices (ie, two or more used legacy devices, two or more used IV support devices, or two or more used IVs Select one of the non-support devices). Specifically, the CPU 32 selects one device by referring to the radio wave intensity (further, the connection time if necessary) of each of two or more devices to be selected.

S40では、CPU32は、2個以上の選択対象の機器のうち、電波強度が最も弱い機器の数を判断する。例えば、CPU32は、2個以上の抽出済みの関連情報に含まれる2個以上のMACアドレスのそれぞれについて、当該MACアドレスを送信先として所定の信号を送信して、応答信号を受信する。これにより、CPU32は、2個以上の選択対象の機器のそれぞれの電波強度を測定することができる。電波強度は、「強」、「中」、「弱」の3段階で表現される。CPU32は、2個以上の選択対象の機器のそれぞれの電波強度を参照して、電波強度が最も弱い機器の数が「1」であるのか「2」以上であるのかを判断する。   In S40, the CPU 32 determines the number of devices having the weakest radio wave intensity among the two or more devices to be selected. For example, for each of two or more MAC addresses included in two or more extracted related information, the CPU 32 transmits a predetermined signal using the MAC address as a transmission destination, and receives a response signal. Thus, the CPU 32 can measure the radio wave intensity of each of two or more devices to be selected. The radio wave intensity is expressed in three stages of "strong", "medium" and "weak". The CPU 32 determines whether the number of devices with the weakest radio wave intensity is “1” or “2” or more with reference to the radio wave intensities of two or more selected devices.

S40において、CPU32は、電波強度が最も弱い機器の数が「1」であると判断する場合には、S42に進む。例えば、第1の機器、第2の機器、第3の機器が、それぞれ、「強」、「中」、「弱」であれば、電波強度が最も弱い機器の数が「1」であるので、S42に進む。   When the CPU 32 determines in S40 that the number of devices with the weakest radio wave intensity is "1", the process proceeds to S42. For example, if the first device, the second device, and the third device are “strong”, “medium”, and “weak”, respectively, the number of devices with the weakest radio wave intensity is “1”. , S42.

S42では、CPU32は、電波強度が最も弱い1個の機器の関連情報を選択する。即ち、CPU32は、切断対象の携帯端末として、電波強度が最も弱い1個の機器を選択する。S42が終了すると、図5の処理が終了する。   In S42, the CPU 32 selects related information of one device with the weakest radio wave intensity. That is, the CPU 32 selects one device with the weakest radio wave intensity as the portable terminal to be disconnected. When S42 ends, the process of FIG. 5 ends.

また、S40において、CPU32は、電波強度が最も弱い機器の数が「2」以上であると判断する場合には、S44に進む。例えば、第1の機器、第2の機器、第3の機器が、それぞれ、「強」、「中」、「中」であれば、電波強度が最も弱い機器の数が「2」であるので、S44に進む。   If the CPU 32 determines in S40 that the number of devices with the weakest radio wave intensity is "2" or more, the process proceeds to S44. For example, if the first device, the second device, and the third device are “strong”, “middle”, and “middle”, respectively, the number of devices with the weakest radio wave intensity is “2”. , S44.

S44では、CPU32は、電波強度が最も弱い2個以上の機器の2個以上の関連情報の中から、「接続時刻」として最も古い時刻が記述されている1個の機器の関連情報を選択する。即ち、CPU32は、切断対象の携帯端末として、接続時刻が最も古い1個の機器を選択する。S44が終了すると、図5の処理が終了する。   In S44, the CPU 32 selects, from among two or more pieces of related information of two or more pieces of equipment having the weakest radio field strength, pieces of related information of one piece of equipment in which the oldest time is described as "connection time". . That is, the CPU 32 selects one device with the oldest connection time as the portable terminal to be disconnected. When S44 ends, the process of FIG. 5 ends.

(図5の選択手法を採用している理由)
上述したように、図5の処理では、切断対象の携帯端末として、使用状況「使用済み」を有する機器が選択され得るが、使用状況「未使用」又は「使用中」を有する機器が選択されない(即ち、S12で「0」個、かつ、S22で「0」個、かつ、S32で「0」個の場合、切断対象の携帯端末が選択されない)。使用済みの機器では、全ての印刷データの通信が終了しているので、その後にさらなる通信がプリンタPRと実行される可能性が低い。このために、使用済みの機器との無線接続を切断しても、当該機器のユーザが不便に感じる可能性が低い。また、未使用の機器では、プリンタPRとの無線接続が確立されたが、印刷データの通信がまだ開始されていないので、当該機器のユーザがプリンタPRに印刷機能を実行させることを望む可能性が高い。また、使用中の機器では、当該機器とプリンタPRとの間で印刷データの通信が実行されている。このために、仮に、未使用又は使用中の機器との無線接続を切断すると、当該機器のユーザが不便に感じる可能性が高いので、当該機器との無線接続を切断しない手法を採用している。
(The reason for adopting the selection method in Figure 5)
As described above, in the process of FIG. 5, a device having the usage status “used” may be selected as the portable terminal to be disconnected, but a device having the usage status “not in use” or “in use” is not selected. (Ie, in the case where “0” in S12, “0” in S22, and “0” in S32, portable terminals to be disconnected are not selected). In the used device, since communication of all print data has been completed, it is unlikely that further communication will be performed with the printer PR thereafter. For this reason, even if the wireless connection with the used device is disconnected, the user of the device is unlikely to feel inconvenient. Also, with an unused device, a wireless connection with the printer PR has been established, but since communication of print data has not yet started, there is a possibility that the user of the device wants the printer PR to execute the printing function. Is high. In the device in use, communication of print data is executed between the device and the printer PR. For this reason, if the wireless connection with the unused or in-use device is disconnected, the user of the device is likely to feel inconvenient, so a method is adopted in which the wireless connection with the device is not disconnected. .

レガシー機器が、IVサポート機器及びIV非サポート機器(即ちWFD機器)と比べて、切断対象の携帯端末として優先的に選択される(即ち、S12の処理が、S22及びS32の処理よりも先に実行される)。レガシー機器は、プリンタPRから切断要求を受信することに起因して、プリンタPRとの無線接続が切断された後に、ユーザから指示(例えば図3のT111の操作)が与えられなくても、接続要求をプリンタPRに自動的に送信することができる。一方において、WFD機器は、プリンタPRから切断要求を受信することに起因して、プリンタPRとの無線接続が切断された後に、ユーザから指示(例えば図2のT11の操作)が与えられたり、プリンタPRからInvitation Req.信号を受信したりしなければ、接続要求をプリンタPRに送信することができない。このように、レガシー機器は、接続要求をプリンタPRに自動的に送信するので、WFD機器と比べると、プリンタPRとの無線接続を比較的に容易に再確立することができる。このために、切断対象の携帯端末として、レガシー機器を優先的に選択する手法を採用している。   Legacy devices are preferentially selected as portable terminals to be disconnected compared with IV support devices and IV non-support devices (ie, WFD devices) (ie, the process of S12 precedes the process of S22 and S32) To be executed). The legacy device is connected even if the user does not receive an instruction (for example, the operation of T111 in FIG. 3) after the wireless connection with the printer PR is disconnected due to the reception of the disconnection request from the printer PR. The request can be sent automatically to the printer PR. On the other hand, the WFD device is instructed by the user (for example, the operation of T11 in FIG. 2) after the wireless connection with the printer PR is disconnected due to the reception of the disconnection request from the printer PR. A connection request can not be sent to the printer PR without receiving an Invitation Req. Signal from the printer PR. As described above, since the legacy device automatically transmits the connection request to the printer PR, the wireless connection with the printer PR can be relatively easily reestablished compared to the WFD device. For this purpose, a method of preferentially selecting legacy devices as portable terminals to be disconnected is employed.

IVサポート機器が、IV非サポート機器と比べて、切断対象の携帯端末として優先的に選択される(即ち、S22の処理が、S32の処理よりも先に実行される)。IVサポート機器は、Invitation Req.信号に応じて、プリンタPRとの無線接続を再確立することができる。一方において、IV非サポート機器は、Invitation Req.信号に応じて、プリンタPRとの無線接続を再確立することができない。このように、IVサポート機器は、非IVサポート機器と比べて、プリンタPRとの無線接続を比較的に容易に再確立することができる。このために、切断対象の携帯端末として、IVサポート機器を優先的に選択する手法を採用している。   The IV support device is preferentially selected as the portable terminal to be disconnected compared with the IV non-support device (that is, the process of S22 is executed prior to the process of S32). The IV support device can reestablish wireless connection with the printer PR in response to the Invitation Req. Signal. On the other hand, the IV non-supporting device can not reestablish wireless connection with the printer PR in response to the Invitation Req. Signal. In this way, the IV support device can relatively easily reestablish wireless connection with the printer PR as compared to the non-IV support device. For this purpose, a method of preferentially selecting an IV support device as a portable terminal to be disconnected is adopted.

電波強度が最も弱い機器が、切断対象の携帯端末として優先的に選択される(S40参照)。電波強度が弱い機器は、プリンタPRから離れた場所に存在している可能性が高い。従って、当該機器のユーザが、プリンタPRに印刷機能を実行させることを望む可能性が低い。このために、当該機器との無線接続を切断しても、当該機器のユーザが不便に感じる可能性が低い。このために、切断対象の携帯端末として、電波強度が最も弱い機器を優先的に選択する手法を採用している。   The device with the weakest radio wave intensity is preferentially selected as the portable terminal to be disconnected (see S40). The device with weak radio wave intensity is likely to be present at a place away from the printer PR. Therefore, the user of the device is unlikely to want the printer PR to execute the printing function. Therefore, even if the wireless connection with the device is disconnected, the user of the device is unlikely to feel inconvenience. For this purpose, a method of preferentially selecting a device having the weakest radio wave intensity as a portable terminal to be disconnected is adopted.

接続時刻が最も古い機器が、切断対象の携帯端末として優先的に選択される(S44参照)。接続時刻が新しい機器のユーザは、例えば、プリンタPRでの印刷結果に満足しなかった場合には、プリンタPRに印刷機能を再び実行させる可能性が高い。このために、仮に、接続時刻が新しい機器との無線接続を切断すると、当該機器のユーザが不便に感じる可能性が高い。このために、切断対象の携帯端末として、接続時刻が最も古い機器を優先的に選択する手法を採用している。   The device with the oldest connection time is preferentially selected as the portable terminal to be disconnected (see S44). If the user of the device whose connection time is new is not satisfied with the print result on the printer PR, for example, the user is likely to cause the printer PR to execute the print function again. Therefore, if the wireless connection with the device whose connection time is new is disconnected, the user of the device is likely to feel inconvenient. For this purpose, a method of preferentially selecting a device with the oldest connection time is adopted as a portable terminal to be disconnected.

(プリンタの監視処理;図6)
続いて、図6を参照して、プリンタPRのCPU32が実行する監視処理の内容を説明する。監視処理では、CPU32は、イベントに応じて、機器リスト50(図1参照)を更新する。これにより、CPU32は、レガシー機器又はIVサポート機器との無線接続を再確立し得る。
(Printer monitoring process; Fig. 6)
Next, the contents of the monitoring process executed by the CPU 32 of the printer PR will be described with reference to FIG. In the monitoring process, the CPU 32 updates the device list 50 (see FIG. 1) according to the event. Thereby, the CPU 32 can reestablish wireless connection with the legacy device or the IV support device.

S102では、CPU32は、切断時刻から所定期間(例えば5分)が経過したレガシー機器が存在するのか否かを判断する。具体的には、CPU32は、まず、機器リスト50から、機器タイプ「レガシー」が記述されている1個以上の関連情報を取得する。そして、CPU32は、当該1個以上の関連情報のそれぞれについて、当該関連情報に含まれる「切断時刻」と現在時刻との差分を算出する。そして、CPU32は、当該1個以上の関連情報の中に、上記の差分が上記の所定期間よりも大きい関連情報(以下では「対象の関連情報」と呼ぶ)が存在する場合には、S102でYESと判断して、S104に進む。CPU32は、当該1個以上の関連情報の中に対象の関連情報が存在しない場合には、S102でNOと判断して、S106に進む。   In S102, the CPU 32 determines whether there is a legacy device for which a predetermined period (for example, 5 minutes) has elapsed since the disconnection time. Specifically, the CPU 32 first acquires, from the device list 50, one or more pieces of related information in which the device type “legacy” is described. Then, the CPU 32 calculates, for each of the one or more pieces of related information, the difference between the “disconnection time” included in the related information and the current time. Then, if there is related information (hereinafter referred to as “target related information”) in which the above-mentioned difference is larger than the above-mentioned predetermined period in the one or more related information, the CPU 32 proceeds to S102. It is determined as YES, and the process proceeds to S104. If the target related information does not exist in the one or more related information, the CPU 32 determines NO in S102, and proceeds to S106.

S104では、CPU32は、対象の関連情報を機器リスト50から消去する。即ち、CPU32は、切断時刻から所定期間が経過したレガシー機器の関連情報を機器リスト50から消去する。これにより、禁止フラグ「ON」が記述されていたレガシー機器について、図4のS6でYESと判断されなくなる。この結果、プリンタPRは、禁止フラグが存在する場合(即ち禁止フラグ「ON」である場合)には、禁止フラグの存在に基づいてレガシー機器からの接続要求を拒否するが、禁止フラグが機器リスト50から消去されることによって、当該レガシー機器からの接続要求に応じて当該レガシー機器との無線接続を確立することができる。S104が終了すると、S102に戻る。   In S104, the CPU 32 deletes the related information of interest from the device list 50. That is, the CPU 32 deletes, from the device list 50, related information of the legacy device for which a predetermined period has elapsed from the disconnection time. As a result, for the legacy device in which the prohibition flag "ON" is described, it is not determined YES in S6 of FIG. As a result, when the prohibition flag exists (that is, the prohibition flag is "ON"), the printer PR rejects the connection request from the legacy device based on the existence of the prohibition flag, but the prohibition flag indicates the device list. By deleting from 50, it is possible to establish a wireless connection with the legacy device in response to a connection request from the legacy device. When S104 ends, the process returns to S102.

S106では、CPU32は、プリンタPRとの無線接続を確立しているいずれかの携帯端末との無線接続の切断が検出されたのか否かを判断する。具体的には、CPU32は、いずれかの携帯端末から切断要求を受信する場合に、S106でYESと判断する。なお、当該切断要求は、携帯端末のMACアドレスを含む。また、CPU32は、図示省略の処理において、接続確認信号を定期的に送信して、プリンタPRとの無線接続を確立している各携帯端末から応答信号を受信することを監視している。当該応答信号は、携帯端末のMACアドレスを含む。従って、CPU32は、機器リスト50に登録されている各MACアドレスと、各応答信号に含まれる各MACアドレスと、を比較することによって、応答信号を送信しなかった携帯端末(即ちMACアドレス)を特定することができる。CPU32は、応答信号を送信しなかった携帯端末を特定した場合に、S106でYESと判断する。   In S106, the CPU 32 determines whether or not disconnection of the wireless connection with any of the portable terminals that have established a wireless connection with the printer PR has been detected. Specifically, the CPU 32 determines YES in S106 when receiving a disconnection request from any of the mobile terminals. The disconnection request includes the MAC address of the portable terminal. Further, the CPU 32 periodically transmits a connection confirmation signal and monitors reception of a response signal from each portable terminal that has established a wireless connection with the printer PR, in a process not shown. The response signal includes the MAC address of the portable terminal. Therefore, the CPU 32 compares the MAC address registered in the device list 50 with each MAC address included in each response signal to transmit the portable terminal that did not transmit the response signal (that is, the MAC address). It can be identified. When the CPU 32 specifies a portable terminal that has not transmitted a response signal, the CPU 32 determines YES in S106.

S108では、CPU32は、機器リスト50から、無線接続の切断が検出された携帯端末の関連情報を消去する。即ち、CPU32は、無線接続の切断が検出された携帯端末のMACアドレスを含む関連情報を消去する。   In S108, the CPU 32 deletes, from the device list 50, the relevant information of the portable terminal whose disconnection of the wireless connection has been detected. That is, the CPU 32 deletes the related information including the MAC address of the portable terminal whose disconnection of the wireless connection has been detected.

次いで、S110では、CPU32は、無線接続を再確立すべき1個以上の携帯端末が存在するのか否かを判断する。具体的には、CPU32は、機器リスト50を参照して、切断時刻が記述されている1個以上の関連情報(以下では「切断関連情報」と呼ぶ)が存在する場合には、無線接続を再確立すべき1個以上の携帯端末が存在すると判断して(S110でYES)、S112に進む。一方において、CPU32は、切断関連情報が存在しない場合には、無線接続を再確立すべき携帯端末が存在しないと判断して(S110でNO)、S102に戻る。なお、上述したように、機器リスト50では、レガシー機器又はIVサポート機器の関連情報には切断時刻が記述され得るが(図4のS56、S58参照)、IV非サポート機器の関連情報には切断時刻が記述されない(S60参照)。   Next, in S110, the CPU 32 determines whether there is one or more portable terminals to re-establish the wireless connection. Specifically, the CPU 32 refers to the device list 50, and when there is one or more related information (hereinafter referred to as “disconnect related information”) in which the disconnection time is described, wireless connection is performed. It is determined that there is one or more portable terminals to be reestablished (YES in S110), and the process proceeds to S112. On the other hand, when the disconnection related information does not exist, the CPU 32 determines that there is no portable terminal to reestablish the wireless connection (NO in S110), and returns to S102. As described above, in the device list 50, the disconnection time may be described in the related information of the legacy device or the IV support device (see S56 and S58 in FIG. 4), but in the related information of the IV non-support device The time is not described (see S60).

S112では、CPU32は、無線接続を再確立すべき1個以上のIVサポート機器が存在するのか否かを判断する。具体的には、CPU32は、1個以上の切断関連情報の中に、機器タイプ「IVサポート」が記述されている1個以上の関連情報(以下では「サポート切断関連情報」と呼ぶ)が存在する場合には、無線接続を再確立すべき1個以上のIVサポート機器が存在すると判断して(S112でYES)、S114に進む。一方において、CPU32は、サポート切断関連情報が存在しない場合には、無線接続を再確立すべきIVサポート機器が存在しないと判断して(S112でNO)、S118に進む。   In S112, the CPU 32 determines whether or not there is one or more IV support devices to reestablish the wireless connection. Specifically, in one or more disconnection related information, the CPU 32 includes one or more related information (hereinafter referred to as “support disconnection related information”) in which the device type “IV support” is described. If yes, it is determined that there is one or more IV support devices to reestablish wireless connection (YES in S112), and the process proceeds to S114. On the other hand, when there is no support disconnection related information, the CPU 32 determines that there is no IV support device to reestablish the wireless connection (NO in S112), and proceeds to S118.

S114では、CPU32は、無線接続を再確立すべき1個以上のIVサポート機器のうちの1個のIVサポート機器にInvitation Req.信号を送信する。具体的には、CPU32は、1個のサポート切断関連情報のみが存在する場合には、当該1個のサポート切断関連情報に含まれるMACアドレスを送信先として、Invitation Req.信号を送信する。また、CPU32は、2個以上のサポート切断関連情報が存在する場合には、当該2個のサポート切断関連情報に含まれる2個以上のMACアドレスのうち、最も古い切断時刻に関連付けられているMACアドレスを送信先として、Invitation Req.信号を送信する。   In S114, the CPU 32 transmits an Invitation Req. Signal to one IV support device of the one or more IV support devices whose wireless connection should be reestablished. Specifically, when only one piece of support disconnection related information exists, the CPU 32 transmits an Invitation Req. Signal to a MAC address included in the one piece of support disconnection related information as a transmission destination. In addition, when there is two or more support disconnection related information, the CPU 32 selects the MAC associated with the oldest disconnection time among the two or more MAC addresses included in the two support disconnection related information. Send an Invitation Req. Signal with the address as the destination.

次いで、S116では、CPU32は、機器リスト50から、S114のInvitation Req.信号の送信先のMACアドレスを含む関連情報を消去する。即ち、CPU32は、Invitation Req.信号の送信先のIVサポート機器の関連情報を消去する。S116が終了すると、S102に戻る。   Next, in S116, the CPU 32 deletes, from the device list 50, related information including the MAC address of the transmission destination of the Invitation Req. Signal of S114. That is, the CPU 32 erases the related information of the IV support device of the transmission destination of the Invitation Req. Signal. When S116 ends, the process returns to S102.

なお、CPU32は、Invitation Req.信号をIVサポート機器に送信する場合に、通常、IVサポート機器からInvitation Res.信号を受信する。その後、CPU32は、IVサポート機器から接続要求(即ちAssociation Req.信号)を受信するので、図4のS2でYESと判断する。この結果、CPU32は、IVサポート機器との無線接続を再確立し得る(図4のS62)。   When transmitting the Invitation Req. Signal to the IV support device, the CPU 32 normally receives the Invitation Res. Signal from the IV support device. Thereafter, since the CPU 32 receives a connection request (that is, an Association Req. Signal) from the IV support device, the CPU 32 determines YES in S2 of FIG. As a result, the CPU 32 can re-establish wireless connection with the IV support device (S62 in FIG. 4).

S118(即ち無線接続を再確立すべきIVサポート機器が存在しない場合)が実行される段階では、1個以上の切断関連情報の全ては、機器タイプ「レガシー」を含む。S112において、機器タイプ「IVサポート」を含む切断関連情報が存在しないと判断されており、しかも、図4のS60では、無線接続が切断されたIV非サポート機器の関連情報が消去されるからである。また、S118が実行される段階では、1個以上の切断関連情報の全ては、切断時刻から上記の所定期間(S102参照)が経過していないレガシー機器の関連情報である。切断時刻から上記の所定期間が経過したレガシー機器の関連情報は、S104で消去されるからである。   At the stage where S118 (ie, when there is no IV support device to reestablish the wireless connection) is performed, all of the one or more disconnection related information include the device type “legacy”. In S112, it is determined that there is no disconnection related information including the device type “IV support”, and in S60 of FIG. 4, the related information of the IV non-supporting device whose wireless connection is disconnected is deleted. is there. Further, at the stage where S118 is executed, all of the one or more disconnection related information are related information of the legacy device for which the predetermined period (see S102) has not elapsed from the disconnection time. This is because related information of the legacy device for which the predetermined period has elapsed from the disconnection time is erased in S104.

S118では、CPU32は、1個の切断関連情報のみが存在する場合には、当該1個の切断関連情報を機器リスト50から消去する。また、CPU32は、2個以上の切断関連情報が存在する場合には、当該2個以上の切断関連情報のうち、最も古い切断時刻を含む1個の切断関連情報を機器リスト50から消去する。これにより、CPU32は、切断時刻から上記の所定期間が経過していないレガシー機器の関連情報を機器リスト50から消去することができる。この結果、プリンタPRは、当該レガシー機器から接続要求を受信する場合(図4のS2でYES)に、当該レガシー機器との無線接続を再確立することができる(S6でNO)。S118が終了すると、S102に戻る。   In S118, when only one piece of disconnection related information exists, the CPU 32 deletes the one piece of disconnection related information from the device list 50. In addition, when there are two or more pieces of disconnection related information, the CPU 32 deletes one piece of disconnection related information including the oldest disconnection time out of the two or more pieces of disconnection related information from the device list 50. As a result, the CPU 32 can delete, from the device list 50, related information of legacy devices for which the predetermined period has not elapsed from the disconnection time. As a result, when the printer PR receives a connection request from the legacy device (YES in S2 of FIG. 4), the printer PR can reestablish wireless connection with the legacy device (NO in S6). When S118 ends, the process returns to S102.

上述したように、図6の処理では、プリンタPRは、無線接続を再確立すべきIVサポート機器及びレガシー機器の双方が存在する場合に、IVサポート機器との無線接続を優先的に再確立する(S112でYES)。その理由は以下のとおりである。仮に、レガシー機器との無線接続を優先的に再確立する手法を採用すると、プリンタPRは、レガシー機器から接続要求が自動的に送信されるまで、レガシー機器との無線接続を再確立することができない。これに対し、IVサポート機器との無線接続を優先的に再確立する手法を採用すると、プリンタPRは、プリンタPRの接続数が上限数未満になった直後に、Invitation Req.信号をIVサポート機器に送信することができ(S114)、この結果、IVサポート機器との無線接続を迅速に再確立することができる。本実施例によると、プリンタPRは、プリンタPRの接続数が上限数未満になった後に、無線接続を再確立すべき機器(即ちIVサポート機器)との無線接続を迅速に再確立することができる。   As described above, in the process of FIG. 6, the printer PR preferentially reestablishes the wireless connection with the IV support device when there is both the IV support device and the legacy device for which the wireless connection is to be reestablished. (YES in S112). The reason is as follows. Assuming that the method of preferentially reestablishing the wireless connection with the legacy device is adopted, the printer PR may reestablish the wireless connection with the legacy device until the connection request is automatically transmitted from the legacy device. Can not. On the other hand, when adopting a method of preferentially reestablishing the wireless connection with the IV support device, the printer PR immediately sends the Invitation Req. Signal to the IV support device immediately after the number of printer PR connections falls below the upper limit number. (S114), and as a result, wireless connection with the IV support device can be quickly reestablished. According to the present embodiment, the printer PR can quickly reestablish a wireless connection with a device (that is, an IV support device) whose wireless connection should be reestablished after the number of printer PR connections is less than the upper limit number. it can.

(ケースA;図7)
続いて、図2〜図6を参照して説明したプリンタPRの動作によって実現される具体的な様々なケースを説明する。図7の初期状態では、プリンタPRは、4個の携帯端末Ta〜Tdのそれぞれとの無線接続を確立している。即ち、プリンタPRの接続数は、上限数「4」に達している。
(Case A; FIG. 7)
Subsequently, various specific cases realized by the operation of the printer PR described with reference to FIGS. 2 to 6 will be described. In the initial state of FIG. 7, the printer PR establishes a wireless connection with each of the four portable terminals Ta to Td. That is, the number of connected printers PR has reached the upper limit number "4".

T210では、プリンタPRは、携帯端末Teから接続要求を受信する場合(図4のS2でYES)に、プリンタPRの接続数が上限数に一致すると判断し(S4でYES)、携帯端末Teの禁止フラグが「ON」でないと判断する(S6でNO)。この場合、T212では、プリンタPRは、図7の上側の機器リスト50を参照して、切断対象の携帯端末を選択する(S10)。具体的には、T212では、プリンタPRは、使用済みのレガシー機器である携帯端末Ta(即ち「MACa」を含む関連情報)を選択する(図5のS12で「1個」、S14)。   In T210, when the printer PR receives a connection request from the portable terminal Te (YES in S2 of FIG. 4), the printer PR determines that the number of connections of the printer PR matches the upper limit number (YES in S4). It is determined that the prohibition flag is not "ON" (NO in S6). In this case, in T212, the printer PR refers to the device list 50 on the upper side of FIG. 7 to select the portable terminal to be disconnected (S10). Specifically, in T212, the printer PR selects a portable terminal Ta (that is, related information including “MACa”) which is a used legacy device (“one” in S12 of FIG. 5, S14).

T214では、プリンタPRは、切断要求を携帯端末Taに送信して、携帯端末Taとの無線接続を切断する(図4のS52)。これにより、プリンタPRの接続数が上限数未満になる。そして、T216では、プリンタPRは、携帯端末Taの関連情報において、切断時刻及び禁止フラグ「ON」を記述する(S56)。   At T214, the printer PR transmits a disconnection request to the portable terminal Ta, and disconnects the wireless connection with the portable terminal Ta (S52 in FIG. 4). As a result, the number of connection of the printer PR becomes less than the upper limit number. Then, at T216, the printer PR describes the disconnection time and the prohibition flag "ON" in the related information of the portable terminal Ta (S56).

T220では、プリンタPRは、無線接続を確立するための様々な信号の通信を携帯端末Teと実行して、携帯端末Teとの無線接続を確立する(図4のS62)。これにより、プリンタPRの接続数が再び上限数に達する。そして、T222では、プリンタPRは、携帯端末Teの関連情報を機器リスト50に登録する(S64)。   At T220, the printer PR executes communication of various signals for establishing wireless connection with the portable terminal Te to establish wireless connection with the portable terminal Te (S62 in FIG. 4). As a result, the number of printer PR connections reaches the upper limit number again. Then, at T222, the printer PR registers related information of the portable terminal Te in the device list 50 (S64).

レガシー機器である携帯端末Taは、プリンタPRから切断要求(T214)を受信することに起因して、プリンタPRとの無線接続が切断された後に、ユーザから指示が与えられなくても、接続要求をプリンタPRに自動的に送信する。   The portable terminal Ta, which is a legacy device, receives the disconnection request (T214) from the printer PR, and after the wireless connection with the printer PR is disconnected, the connection request is issued even if the user does not receive an instruction. Is automatically sent to the printer PR.

T224では、プリンタPRは、携帯端末Taから接続要求を受信する場合(図4のS2でYES)、プリンタPRの接続数が上限数に一致すると判断し(S4でYES)、携帯端末Taの禁止フラグが「ON」であると判断する(S6でYES)。従って、T226では、プリンタPRは、拒否通知を携帯端末Taに送信して、携帯端末Taとの無線接続を確立しない。   In T224, when the printer PR receives a connection request from the portable terminal Ta (YES in S2 of FIG. 4), it determines that the number of connections of the printer PR matches the upper limit number (YES in S4) and prohibits the portable terminal Ta. It is determined that the flag is "ON" (YES in S6). Therefore, in T226, the printer PR transmits a refusal notification to the portable terminal Ta, and does not establish a wireless connection with the portable terminal Ta.

上述したように、本実施例では、プリンタPRは、レガシー機器である携帯端末Taとの無線接続を切断してから所定期間が経過する前に、プリンタPRの接続数が上限数に一致する状態で、携帯端末Taから接続要求を受信しても(T224)、他の機器との無線接続を切断しない。このために、携帯端末Taとの無線接続が切断されてから短時間しか経過していない状況で、携帯端末Taから自動的に送信される接続要求に応じて、他の機器との無線接続が切断されるという事象の発生を抑制することができる。   As described above, in the present embodiment, after the wireless connection with the portable terminal Ta, which is a legacy device, is disconnected from the printer PR, the number of connected printers PR matches the upper limit number before the predetermined period elapses. Then, even if a connection request is received from the portable terminal Ta (T224), the wireless connection with another device is not disconnected. For this reason, in a situation where only a short time has passed since the wireless connection with the portable terminal Ta was disconnected, the wireless connection with another device is made in response to the connection request automatically transmitted from the portable terminal Ta. It is possible to suppress the occurrence of the event of being disconnected.

T227では、プリンタPRは、レガシー機器である携帯端末Taとの無線接続を切断してから所定期間が経過したと判断し(図6のS102でYES)、携帯端末Taの関連情報を機器リスト50から消去する(S104)。   In T227, the printer PR determines that the predetermined period has elapsed since the wireless connection with the portable device Ta which is the legacy device is disconnected (YES in S102 of FIG. 6), and the device list of the related information of the portable device Ta is It erases from (S104).

その後、T228では、プリンタPRは、携帯端末Taから接続要求を受信する場合(図4のS2でYES)に、プリンタPRの接続数が上限数に一致すると判断し(S4でYES)、携帯端末Taの禁止フラグが「ON」でないと判断する(S6でNO)。T227において、携帯端末Taの当該禁止フラグを含む関連情報が機器リスト50から消去されたからである。この場合、T230では、プリンタPRは、図7の下側の機器リスト50を参照して、切断対象の携帯端末を選択する(S10)。具体的には、プリンタPRは、使用済みのIVサポート機器である携帯端末Tb(即ち「MACb」を含む関連情報)を選択する(図5のS22で「1個」、S24)。   Thereafter, in T228, when the printer PR receives a connection request from the portable terminal Ta (YES in S2 of FIG. 4), it determines that the number of connections of the printer PR matches the upper limit number (YES in S4). It is determined that the prohibition flag of Ta is not "ON" (NO in S6). This is because the relevant information including the prohibition flag of the portable terminal Ta has been deleted from the device list 50 at T227. In this case, in T230, the printer PR refers to the device list 50 on the lower side of FIG. 7 to select the portable terminal to be disconnected (S10). Specifically, the printer PR selects a portable terminal Tb (that is, related information including “MACb”) which is a used IV support device (“one” in S22 of FIG. 5, S24).

T232では、プリンタPRは、切断要求を携帯端末Tbに送信して、携帯端末Tbとの無線接続を切断する(図4のS52)。これにより、プリンタPRの接続数が上限数未満になる。そして、T234では、プリンタPRは、携帯端末Tbの関連情報において、切断時刻を記述する(S58)。   In T232, the printer PR transmits a disconnection request to the portable terminal Tb, and disconnects the wireless connection with the portable terminal Tb (S52 in FIG. 4). As a result, the number of connection of the printer PR becomes less than the upper limit number. Then, in T234, the printer PR describes the disconnection time in the related information of the portable terminal Tb (S58).

T236では、プリンタPRは、無線接続を確立するための様々な信号の通信を携帯端末Taと実行して、携帯端末Taとの無線接続を確立する(図4のS62)。これにより、プリンタPRの接続数が再び上限数に達する。そして、T238では、プリンタPRは、携帯端末Taの関連情報を機器リスト50に登録する(S64)。   In T236, the printer PR executes communication of various signals for establishing wireless connection with the portable terminal Ta to establish wireless connection with the portable terminal Ta (S62 in FIG. 4). As a result, the number of printer PR connections reaches the upper limit number again. Then, in T238, the printer PR registers the related information of the portable terminal Ta in the device list 50 (S64).

上述したように、本実施例では、プリンタPRは、レガシー機器である携帯端末Taとの無線接続を切断してから所定期間が経過した後に、プリンタPRの接続数が上限数に一致する状態で、携帯端末Taから接続要求を受信する場合(T228)に、携帯端末Tbとの無線接続を切断する(T232)。このために、プリンタPRは、携帯端末Taとの無線接続を適切に再確立することができる。   As described above, in the present embodiment, after the wireless connection with the portable terminal Ta, which is the legacy device, is disconnected from the wireless terminal, the number of printer PR connections matches the upper limit number after a predetermined period has elapsed. When receiving a connection request from the portable terminal Ta (T228), the wireless connection with the portable terminal Tb is disconnected (T232). For this reason, the printer PR can properly reestablish wireless connection with the portable terminal Ta.

(ケースB;図8)
図8の初期状態は、図7の初期状態と同様である。また、T310〜T322は、図7のT210〜T222と同様である。
(Case B; FIG. 8)
The initial state of FIG. 8 is the same as the initial state of FIG. Further, T310 to T322 are the same as T210 to T222 in FIG.

T324では、プリンタPRは、携帯端末Teから切断要求を受信して、携帯端末Teとの無線接続が切断されたことを検出する(図6のS106でYES)。これにより、プリンタPRの接続数が上限数未満になる。この場合、T326では、プリンタPRは、携帯端末Teの関連情報を機器リスト50から消去する(S108)。   In T324, the printer PR receives the disconnection request from the portable terminal Te, and detects that the wireless connection with the portable terminal Te has been disconnected (YES in S106 of FIG. 6). As a result, the number of connection of the printer PR becomes less than the upper limit number. In this case, in T326, the printer PR erases the related information of the portable terminal Te from the device list 50 (S108).

T328では、プリンタPRは、機器リスト50の中に切断時刻が記述されている1個の切断関連情報(即ち「MACa」を含む関連情報)が存在するので、無線接続を再確立すべき携帯端末Taが存在すると判断する(図6のS110でYES)。T328では、プリンタPRは、さらに、機器タイプ「IVサポート」を含む切断関連情報が存在しないので、無線接続を再確立すべきIVサポート機器が存在しないと判断する(S112でNO)。この結果、プリンタPRは、機器タイプ「レガシー」を含む切断関連情報、即ち、携帯端末Taの関連情報を機器リスト50から消去する(S118)。これにより、切断時刻から所定期間が経過する前に、携帯端末Taの関連情報を機器リスト50から消去することができる。   At T328, since the printer PR has one disconnection related information (i.e., related information including "MACa") in which the disconnection time is described in the device list 50, the portable terminal to reestablish the wireless connection It is determined that Ta exists (YES in S110 of FIG. 6). In T328, the printer PR further determines that there is no IV support device to re-establish the wireless connection because there is no disconnection related information including the device type “IV support” (NO in S112). As a result, the printer PR erases the disconnection related information including the device type “legacy”, that is, the related information of the portable terminal Ta from the device list 50 (S118). Thus, the related information of the portable terminal Ta can be deleted from the device list 50 before the predetermined period has elapsed from the disconnection time.

T330では、プリンタPRは、携帯端末Taから接続要求を受信する場合(図4のS2でYES)に、プリンタPRの接続数が上限数に一致しないと判断する(S4でNO)。そして、T332では、プリンタPRは、無線接続を確立するための様々な信号の通信を携帯端末Taと実行して、携帯端末Taとの無線接続を確立する(S62)。なお、ここでは、プリンタPR及び携帯端末Taに図3のT110及びT111に相当する各操作が実行されず、しかも、携帯端末Taは、プリンタPRとの無線接続を確立するための各種情報を既に取得している。従って、T332では、WSC Exchangeの通信が実行されない。T332が実行されると、プリンタPRの接続数が再び上限数に達する。そして、T334では、プリンタPRは、携帯端末Taの関連情報を機器リスト50に登録する(S64)。   In T330, when the printer PR receives a connection request from the portable terminal Ta (YES in S2 of FIG. 4), it determines that the number of connections of the printer PR does not match the upper limit number (NO in S4). Then, in T332, the printer PR executes communication of various signals for establishing wireless connection with the portable terminal Ta to establish wireless connection with the portable terminal Ta (S62). Here, the respective operations corresponding to T110 and T111 in FIG. 3 are not executed on the printer PR and the portable terminal Ta, and furthermore, the portable terminal Ta has already made various information for establishing wireless connection with the printer PR. I have acquired. Therefore, at T332, communication of WSC Exchange is not executed. When T332 is executed, the number of printer PR connections reaches the upper limit number again. Then, at T334, the printer PR registers the related information of the portable terminal Ta in the device list 50 (S64).

上述したように、本実施例では、プリンタPRは、レガシー機器である携帯端末Taとの無線接続を切断してから所定期間が経過する前に、プリンタPRの接続数が上限数未満である状態で、携帯端末Taから接続要求を受信する場合(T330)に、携帯端末Taとの無線接続を適切に再確立することができる(T332)。   As described above, in the present embodiment, after the wireless connection with the portable terminal Ta, which is a legacy device, is disconnected from the printer PR, the number of connection of the printer PR is less than the upper limit number before the predetermined period elapses. Then, when the connection request is received from the portable terminal Ta (T330), the wireless connection with the portable terminal Ta can be appropriately reestablished (T332).

(ケースC;図9)
図9の初期状態は、図7の初期状態と同様である。T410は、図7のT210と同様である。
(Case C; FIG. 9)
The initial state of FIG. 9 is the same as the initial state of FIG. T410 is the same as T210 in FIG.

T412では、プリンタPRは、図9の機器リスト50を参照して、切断対象の携帯端末を選択する(図4のS10)。具体的には、T412では、プリンタPRは、使用中のレガシー機器である携帯端末Ta(即ち「MACa」を含む関連情報)を選択せずに(図5のS12で「0個」)、使用済みのIVサポート機器である携帯端末Tb(即ち「MACb」を含む関連情報)を選択する(S22で「1個」、S24)。   At T412, the printer PR refers to the device list 50 of FIG. 9 to select a portable terminal to be disconnected (S10 of FIG. 4). Specifically, in T412, the printer PR does not select the portable terminal Ta (that is, the related information including “MACa”) which is the legacy device in use (“0” in S12 of FIG. 5), The portable terminal Tb (that is, the related information including "MACb") which is the IV support device already finished is selected ("one" in S22, S24).

T414では、プリンタPRは、切断要求を携帯端末Tbに送信して、携帯端末Tbとの無線接続を切断する(図4のS52)。これにより、プリンタPRの接続数が上限数未満になる。そして、T416では、プリンタPRは、携帯端末Tbの関連情報において、切断時刻を記述する(S58)。T420,T422は、図7のT220,T222と同様である。また、T424,T426は、図8のT324,T326と同様である。   In T414, the printer PR transmits a disconnection request to the portable terminal Tb, and disconnects the wireless connection with the portable terminal Tb (S52 in FIG. 4). As a result, the number of connection of the printer PR becomes less than the upper limit number. Then, at T416, the printer PR describes the disconnection time in the related information of the portable terminal Tb (S58). T420 and T422 are the same as T220 and T222 of FIG. Also, T424 and T426 are the same as T324 and T326 in FIG.

T427では、プリンタPRは、機器リスト50の中に切断時刻が記述されている1個の切断関連情報(即ち「MACb」を含む関連情報)が存在するので、無線接続を再確立すべき携帯端末Tbが存在すると判断する(図6のS110でYES)。T427では、プリンタPRは、さらに、機器タイプ「IVサポート」を含む切断関連情報が存在するので、無線接続を再確立すべきIVサポート機器が存在すると判断する(S112でYES)。この結果、プリンタPRは、Invitation Req.信号を携帯端末Tbに送信する(S114)。そして、T428では、プリンタPRは、携帯端末Tbの関連情報を機器リスト50から消去する(S116)。   In T427, since the printer PR has one disconnection related information (that is, related information including "MACb") in which the disconnection time is described in the device list 50, the portable terminal to which the wireless connection should be reestablished It is determined that Tb exists (YES in S110 of FIG. 6). At T427, the printer PR further determines that there is an IV support device to reestablish the wireless connection, since there is disconnection related information including the device type “IV support” (YES at S112). As a result, the printer PR transmits an Invitation Req. Signal to the portable terminal Tb (S114). Then, in T428, the printer PR erases the related information of the portable terminal Tb from the device list 50 (S116).

T430では、プリンタPRは、携帯端末Tbから接続要求を受信する場合(図4のS2でYES)に、プリンタPRの接続数が上限数に一致しないと判断する(S4でNO)。そして、T432では、プリンタPRは、無線接続を確立するための様々な信号の通信を携帯端末Tbと実行して、携帯端末Tbとの無線接続を確立する(S62)。これにより、プリンタPRの接続数が再び上限数に達する。そして、T434では、プリンタPRは、携帯端末Tbの関連情報を機器リスト50に登録する(S64)。   In T430, when the printer PR receives a connection request from the portable terminal Tb (YES in S2 of FIG. 4), it determines that the number of connections of the printer PR does not match the upper limit number (NO in S4). Then, in T432, the printer PR executes communication of various signals for establishing wireless connection with the portable terminal Tb, and establishes wireless connection with the portable terminal Tb (S62). As a result, the number of printer PR connections reaches the upper limit number again. Then, at T434, the printer PR registers the related information of the portable terminal Tb in the device list 50 (S64).

上述したように、本実施例では、プリンタPRは、IVサポート機器である携帯端末Tbとの無線接続を切断した後に、プリンタPRの接続数が上限数未満に移行する場合(T424)に、Invitation Req.信号を携帯端末Tbに送信して(T427)、携帯端末Tbとの無線接続を適切に再確立することができる(T430、T432)。   As described above, in the present embodiment, after the wireless connection with the portable terminal Tb, which is the IV support device, is disconnected by the printer PR, the number of connection of the printer PR shifts to less than the upper limit number (T424). The Req. Signal can be transmitted to the portable terminal Tb (T427), and the wireless connection with the portable terminal Tb can be appropriately reestablished (T430, T432).

(ケースD;図10)
図10の初期状態は、図7の初期状態と同様である。T510〜T522は、図7のT210〜T222と同様である。
(Case D; FIG. 10)
The initial state of FIG. 10 is the same as the initial state of FIG. T510 to T522 are the same as T210 to T222 in FIG.

T530では、プリンタPRは、さらに、携帯端末Tfから接続要求を受信する場合(図4のS2でYES)に、プリンタPRの接続数が上限数に一致すると判断し(S4でYES)、携帯端末Tfの禁止フラグが「ON」でないと判断する(S6でNO)。この場合、T532では、プリンタPRは、図10の下側の機器リスト50を参照して、切断対象の携帯端末を選択する(S10)。具体的には、T532では、プリンタPRは、使用済みのIVサポート機器である携帯端末Tb(即ち「MACb」を含む関連情報)を選択する(図5のS22で「1個」、S24)。なお、使用済みのレガシー機器である携帯端末Taは、無線接続が既に切断されているので(即ち切断時刻が記述されているので)、切断対象の携帯端末として選択されることはない(S12で「0個」)。T534,T536は、図9のT414,T416と同様である。   In T530, when the printer PR further receives a connection request from the portable terminal Tf (YES in S2 of FIG. 4), it determines that the number of connections of the printer PR matches the upper limit number (YES in S4). It is determined that the prohibition flag of Tf is not "ON" (NO in S6). In this case, in T532, the printer PR refers to the device list 50 on the lower side of FIG. 10 to select a portable terminal to be disconnected (S10). Specifically, in T532, the printer PR selects a portable terminal Tb (that is, related information including “MACb”) which is a used IV support device (“one” in S22 of FIG. 5, S24). Note that the portable terminal Ta, which is a used legacy device, is not selected as a portable terminal to be disconnected because the wireless connection has already been disconnected (that is, the disconnection time is described) (S12). "0 piece"). T534 and T536 are the same as T414 and T416 in FIG.

T540では、プリンタPRは、無線接続を確立するための様々な信号の通信を携帯端末Tfと実行して、携帯端末Tfとの無線接続を確立する(図4のS62)。これにより、プリンタPRの接続数が再び上限数に達する。そして、T542では、プリンタPRは、携帯端末Tfの関連情報を機器リスト50に登録する(S64)。   In T540, the printer PR executes communication of various signals for establishing wireless connection with the portable terminal Tf to establish wireless connection with the portable terminal Tf (S62 in FIG. 4). As a result, the number of printer PR connections reaches the upper limit number again. Then, in T542, the printer PR registers the related information of the portable terminal Tf in the device list 50 (S64).

(図10の続き;図11)
図11は、図10の続きのシーケンス図を示す。T600では、プリンタPRは、携帯端末Tcから切断要求を受信して、携帯端末Tcとの無線接続が切断されたことを検出する(図6のS106でYES)。これにより、プリンタPRの接続数が上限数未満になる。この場合、T602では、プリンタPRは、携帯端末Tcの関連情報を機器リスト50から消去する(S108)。
(Continuation of Figure 10; Figure 11)
FIG. 11 shows a sequence diagram of the continuation of FIG. In T600, the printer PR receives the disconnection request from the portable terminal Tc, and detects that the wireless connection with the portable terminal Tc is disconnected (YES in S106 of FIG. 6). As a result, the number of connection of the printer PR becomes less than the upper limit number. In this case, in T602, the printer PR erases the related information of the portable terminal Tc from the device list 50 (S108).

T627では、プリンタPRは、プリンタPRは、機器リスト50の中に切断時刻が記述されている2個の切断関連情報(即ち、「MACa」を含む関連情報、「MACb」を含む関連情報)が存在するので、無線接続を再確立すべき2個の携帯端末Ta,Tbが存在すると判断する(図6のS110でYES)。T627では、プリンタPRは、さらに、機器タイプ「IVサポート」を含む切断関連情報(即ち「MACb」を含む関連情報)が存在するので、無線接続を再確立すべきIVサポート機器が存在すると判断する(S112でYES)。この結果、プリンタPRは、Invitation Req.信号を携帯端末Tbに送信する(S114)。T628〜T634は、図9のT428〜T434と同様である。   At T627, the printer PR sends two disconnection related information (ie, related information including “MACa”, related information including “MACb”) in which the disconnection time is described in the device list 50. Since it exists, it is determined that there are two portable terminals Ta and Tb for which the wireless connection should be reestablished (YES in S110 of FIG. 6). In T627, the printer PR further determines that there is an IV support device to reestablish the wireless connection, since there is disconnection related information including the device type “IV support” (ie, related information including “MACb”). (YES in S112). As a result, the printer PR transmits an Invitation Req. Signal to the portable terminal Tb (S114). T628 to T634 are the same as T428 to T434 in FIG.

上述したように、本実施例では、プリンタPRは、無線接続を再確立すべきIVサポート機器及びレガシー機器の双方が存在する場合に、IVサポート機器である携帯端末Tbとの無線接続を優先的に再確立する。これにより、プリンタPRは、プリンタPRの接続数が上限数未満になった後に、無線接続を再確立すべき機器(即ちIVサポート機器)との無線接続を迅速に再確立することができる。   As described above, in the present embodiment, the printer PR gives priority to the wireless connection with the portable terminal Tb, which is the IV support device, when there is both the IV support device and the legacy device to reestablish the wireless connection. Re-establish. This enables the printer PR to quickly reestablish wireless connection with the device (that is, the IV support device) whose wireless connection should be re-established after the number of printer PR connections is less than the upper limit number.

(ケースE;図12)
図12の初期状態では、プリンタPRは、4個の携帯端末Ta,Td〜Tfのそれぞれとの無線接続を確立している。即ち、プリンタPRの接続数は、上限数「4」に達している。また、プリンタPRは、過去に、各携帯端末Tb,Tcに切断要求を送信して、無線接続を切断している。このために、機器リスト50では、各携帯端末Tb,Tcの各関連情報において、切断時刻が記述されている。
(Case E; FIG. 12)
In the initial state of FIG. 12, the printer PR establishes a wireless connection with each of the four portable terminals Ta and Td to Tf. That is, the number of connected printers PR has reached the upper limit number "4". In addition, the printer PR transmits a disconnection request to the portable terminals Tb and Tc in the past, and disconnects the wireless connection. For this reason, in the device list 50, the disconnection time is described in each related information of each mobile terminal Tb, Tc.

T800では、プリンタPRは、携帯端末Taから切断要求を受信して、携帯端末Taとの無線接続が切断されたことを検出する(図6のS106でYES)。これにより、プリンタPRの接続数が上限数未満になる。この場合、T802では、プリンタPRは、携帯端末Taの関連情報を機器リスト50から消去する(S108)。   In T800, the printer PR receives the disconnection request from the portable terminal Ta, and detects that the wireless connection with the portable terminal Ta has been disconnected (YES in S106 of FIG. 6). As a result, the number of connection of the printer PR becomes less than the upper limit number. In this case, in T802, the printer PR erases the related information of the portable terminal Ta from the device list 50 (S108).

T827では、プリンタPRは、機器リスト50の中に切断時刻が記述されている2個の切断関連情報(即ち、「MACb」を含む関連情報、「MACc」を含む関連情報)が存在するので、無線接続を再確立すべき2個の携帯端末Tb,Tcが存在すると判断する(図6のS110でYES)。T827では、プリンタPRは、さらに、機器タイプ「IVサポート」を含む2個の切断関連情報が存在するので、無線接続を再確立すべき2個のIVサポート機器が存在すると判断する(S112でYES)。従って、T827では、プリンタPRは、機器タイプ「IVサポート」を含む2個の切断関連情報のうち、最も古い切断時刻が記述されている1個の切断関連情報(即ち「MACb」を含む関連情報)を選択して、Invitation Req.信号を携帯端末Tbに送信する(S114)。T828〜T834は、図9のT428〜T434と同様である。   In T827, since the printer PR has two disconnection related information in which the disconnection time is described in the device list 50 (that is, related information including “MACb”, related information including “MACc”), It is determined that there are two mobile terminals Tb and Tc to reestablish wireless connection (YES in S110 of FIG. 6). At T827, the printer PR further determines that there are two IV support devices to reestablish the wireless connection because there are two disconnection related information including the device type “IV support” (YES at S112). ). Therefore, in T827, the printer PR selects one of the two disconnection related information including the device type “IV support”, in which the oldest disconnection time is described, that is, the related information including “MACb”. Is selected, and an Invitation Req. Signal is transmitted to the portable terminal Tb (S114). T828 to T834 are the same as T428 to T434 in FIG. 9.

上述したように、本実施例では、プリンタPRは、無線接続を再確立すべき2個以上のIVサポート機器が存在する場合に、プリンタPRとの無線接続が先に切断された携帯端末Tbとの無線接続を優先的に再確立する。このために、携帯端末Tbとの無線接続が長期間に亘って再確立されないという事象の発生を抑制することができる。   As described above, in the present embodiment, when there are two or more IV support devices whose wireless connection should be reestablished, the printer PR and the portable terminal Tb whose wireless connection with the printer PR is disconnected first Re-establish wireless connection preferentially. For this reason, it is possible to suppress the occurrence of an event that the wireless connection with the portable terminal Tb is not reestablished over a long period of time.

(対応関係)
プリンタPR、印刷機能が、それぞれ、「無線通信装置」、「画像処理機能」の一例である。レガシー機器、WFD機器(即ちIVサポート機器及びIV非サポート機器)が、それぞれ、「第1種の機器」、「第2種の機器」の一例である。IVサポート機器、IV非サポート機器が、それぞれ、「サポート機器」、「非サポート機器」の一例である。WFD方式が、「特定の無線通信方式」の一例である。WFD方式のG/Oネゴシエーションが、「無線ネットワークの親局及び子局を決定するための無線通信を実行する仕組み」の一例である。Invitation Req.信号が、「所定コマンド」の一例である。
(Correspondence relationship)
The printer PR and the printing function are examples of the “wireless communication device” and the “image processing function”, respectively. The legacy device and the WFD device (that is, the IV support device and the IV non-support device) are examples of the “first type device” and the “second type device”, respectively. The IV support device and the IV non-support device are examples of the “support device” and the “non-support device”, respectively. The WFD scheme is an example of the “specific wireless communication scheme”. The WFD scheme G / O negotiation is an example of “a mechanism for executing wireless communication for determining a master station and a slave station of a wireless network”. The Invitation Req. Signal is an example of the “predetermined command”.

図7のケースAでは、携帯端末Te、携帯端末Taが、それぞれ、「第1の特定機器」、「第1の対象機器」の一例である。T210の接続要求、T214の切断要求が、それぞれ、「第1の無線接続要求」、「第1の切断要求」の一例である。T224の接続要求を受信する場合が、「所定期間が経過する前に、接続数が上限数に一致する状態で、第1の対象機器から無線接続要求が受信される場合」の一例である。T228の接続要求を受信する場合が、「所定期間が経過した後に、接続数が上限数に一致する状態で、第1の対象機器から無線接続要求が受信される場合」の一例である。   In case A of FIG. 7, the portable terminal Te and the portable terminal Ta are examples of the “first specific device” and the “first target device”, respectively. The connection request of T210 and the disconnection request of T214 are examples of the “first wireless connection request” and the “first disconnection request”, respectively. The case where the connection request is received in T224 is an example of “when the wireless connection request is received from the first target device in a state where the number of connections matches the upper limit number before the predetermined period elapses”. The case of receiving the connection request at T228 is an example of “when the wireless connection request is received from the first target device in a state where the number of connections matches the upper limit number after the predetermined period has elapsed”.

図8のケースBでは、T330の接続要求を受信する場合が、「所定期間が経過する前に、接続数が上限数未満である状態で、第1の対象機器から無線接続要求が受信される場合」の一例である。   In the case B of FIG. 8, when the connection request of T330 is received, “the wireless connection request is received from the first target device in a state where the number of connections is less than the upper limit number before the predetermined period elapses. "Case" is an example.

図10のケースDでは、携帯端末Te、携帯端末Tf、携帯端末Ta、携帯端末Tbが、それぞれ、「第1の特定機器」、「第2の特定機器」、「第1の対象機器」、「第2の対象機器」の一例である。T510の接続要求、T530の接続要求、T514の切断要求、T534の切断要求が、それぞれ、「第1の無線接続要求」、「第2の無線接続要求」、「第1の切断要求」、「第2の切断要求」の一例である。   In case D of FIG. 10, the mobile terminal Te, the mobile terminal Tf, the mobile terminal Ta, and the mobile terminal Tb are respectively “first specified device”, “second specified device”, “first target device”, This is an example of the “second target device”. The connection request of T510, the connection request of T530, the disconnection request of T514, and the disconnection request of T534 are respectively "first wireless connection request", "second wireless connection request", "first disconnection request", " This is an example of the “second disconnection request”.

図4のS2の処理、S10の処理(即ち図5の処理)、S52の処理、S62の処理が、それぞれ、「受信部」、「選択部」、「切断部」、「確立部」によって実行される処理の一例である。また、図4のS6の処理、S8の処理、S56の処理、図6のS102の処理、及び、S104の処理が、「切断制御部」によって実行される処理の一例である。   The process of S2 of FIG. 4, the process of S10 (ie, the process of FIG. 5), the process of S52, and the process of S62 are respectively executed by the “reception unit”, “selection unit”, “disconnection unit”, and “establishment unit” Is an example of the process to be performed. Further, the process of S6 of FIG. 4, the process of S8, the process of S56, the process of S102 of FIG. 6, and the process of S104 are an example of the process executed by the “cutting control unit”.

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

(変形例1)
上記の実施例では、図5の処理において、プリンタPRのCPU32は、切断対象の携帯端末として、未使用又は使用中の機器を選択せずに、使用済みの機器を選択する。これに代えて、CPU32は、使用中の機器を選択せずに、未使用又は使用済みの機器を選択してもよい。また、別の変形例では、CPU32は、使用状況に関わらず、切断対象の携帯端末を選択してもよい。即ち、「N1個の機器」は、アプリケーションが起動中である機器を含んでいてもよい。
(Modification 1)
In the above embodiment, in the process of FIG. 5, the CPU 32 of the printer PR selects a used device as a portable terminal to be disconnected without selecting an unused or in-use device. Alternatively, the CPU 32 may select an unused or used device without selecting an in-use device. In another modification, the CPU 32 may select a portable terminal to be disconnected regardless of the use status. That is, “N1 devices” may include devices for which an application is being activated.

(変形例2)
上記の実施例では、図5の処理において、プリンタPRのCPU32は、切断対象の携帯端末として、IVサポート機器と比べて、レガシー機器を優先的に選択する。これに代えて、CPU32、切断対象の携帯端末として、レガシー機器と比べて、IVサポート機器を優先的に選択してもよい。プリンタPRは、レガシー機器から自動的に送信される接続要求を受信しなければ、レガシー機器との無線接続を再確立することができない。従って、仮に、レガシー機器において、接続要求を自動的に送信する機能が無効化されている場合には、プリンタPRは、レガシー機器から自動的に接続要求を受信することができず、レガシー機器との無線接続を再確立することができない。これに対し、プリンタPRは、IVサポート機器との無線接続を切断した後に、Invitation Req.信号をIVサポート機器に送信することができる。これにより、プリンタPRは、IVサポート機器との無線接続を適切に再確立することができる。即ち、プリンタPRは、無線接続の再確立の可能性を高めるために、切断対象の携帯端末として、レガシー機器と比べて、IVサポート機器を優先的に選択してもよい。一般的に言うと、「選択部」は、第1の対象機器として、第1種の機器と比べて第2種の機器を優先的に選択してもよい。
(Modification 2)
In the above embodiment, in the processing of FIG. 5, the CPU 32 of the printer PR preferentially selects a legacy device as a portable terminal to be disconnected, as compared with the IV support device. Instead of this, the IV support device may be preferentially selected as the CPU 32 and the portable terminal to be disconnected, compared with the legacy device. The printer PR can not reestablish the wireless connection with the legacy device without receiving the connection request automatically transmitted from the legacy device. Therefore, if the function to automatically transmit the connection request is disabled in the legacy device, the printer PR can not automatically receive the connection request from the legacy device, and the printer PR can not receive the connection request from the legacy device. Unable to re-establish wireless connection. On the other hand, the printer PR can transmit an Invitation Req. Signal to the IV support device after disconnecting the wireless connection with the IV support device. Thus, the printer PR can properly reestablish wireless connection with the IV support device. That is, the printer PR may preferentially select the IV support device as the portable terminal to be disconnected, as compared with the legacy device, in order to increase the possibility of reestablishment of the wireless connection. Generally speaking, the “selection unit” may preferentially select the second type of device as the first target device as compared to the first type of device.

(変形例3)
図6の処理において、プリンタPRのCPU32は、S102及びS104の処理を実行しなくてもよい。即ち、「確立部」は、所定期間が経過する前に、接続数が上限数未満である状態で、第1の対象機器から無線接続要求が受信される場合に、第1の対象機器との無線接続を再確立しなくてもよい、
(Modification 3)
In the process of FIG. 6, the CPU 32 of the printer PR may not execute the processes of S102 and S104. That is, the “establishment unit” is a unit with the first target device when the wireless connection request is received from the first target device in a state where the number of connections is less than the upper limit number before the predetermined period elapses. You do not have to re-establish the wireless connection,

(変形例4)
図6の処理において、プリンタPRのCPU32は、無線接続を再確立すべきIVサポート機器及びレガシー機器の双方が存在する場合に、IVサポート機器との無線接続を優先的に再確立する。これに代えて、CPU32は、レガシー機器との無線接続を優先的に再確立してもよい。例えば、プリンタPRとの通信を頻繁に実行し得る機器(例えば、PC、サーバ等)がレガシー機器として利用される環境であれば、レガシー機器との無線接続を優先的に再確立する構成を採用するのが好ましい。即ち、「確立部」は、サポート機器である第2の対象機器と比べて、第1種の機器である第1の対象機器との無線接続を優先的に再確立してもよい。
(Modification 4)
In the process of FIG. 6, the CPU 32 of the printer PR preferentially reestablishes the wireless connection with the IV support device, when there is both the IV support device and the legacy device to reestablish the wireless connection. Alternatively, the CPU 32 may preferentially reestablish wireless connection with the legacy device. For example, in an environment where a device (for example, a PC, a server, etc.) capable of frequently executing communication with the printer PR is used as a legacy device, a configuration for preferentially reestablishing a wireless connection with the legacy device is adopted. It is preferable to do. That is, the “establishment unit” may preferentially reestablish wireless connection with the first target device, which is the first type of device, compared to the second target device, which is the support device.

(変形例5)
プリンタPRのCPU32は、プリンタPRをWFD方式のG/O機器として動作させる代わりに、いわゆるSoftAPを起動して、プリンタPRを疑似的なAPとして動作させてもよい。本変形例でも、CPU32は、プリンタPRが親局として動作する無線ネットワークを形成することができる。
(Modification 5)
Instead of operating the printer PR as a WFD G / O device, the CPU 32 of the printer PR may activate a so-called Soft AP to operate the printer PR as a pseudo AP. Also in this modification, the CPU 32 can form a wireless network in which the printer PR operates as a master station.

(変形例6)
「無線通信装置」は、プリンタPRに限られず、他の種類の機器(例えば、スキャナ、ファクシミリ、電話機、多機能機、無線アクセスポイント、PC、携帯端末等)であってもよい。一般的に言うと、「無線通信装置」は、無線ネットワークの親局として動作して、外部機器との無線接続を確立可能な機器であれば、どのような種類の機器であってもよい。例えば、「無線通信装置」としてスキャナが採用される場合には、スキャン機能が「画像処理機能」の一例である。
(Modification 6)
The “wireless communication device” is not limited to the printer PR, but may be another type of device (for example, a scanner, a facsimile, a telephone, a multi-function device, a wireless access point, a PC, a portable terminal, etc.). Generally speaking, the “wireless communication device” may be any type of device as long as it operates as a master station of a wireless network and can establish wireless connection with an external device. For example, when a scanner is employed as the "wireless communication apparatus", the scan function is an example of the "image processing function".

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

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

2:通信システム、12:操作部、14:表示部、16:印刷実行部、20:無線LANI/F、30:制御部、32:CPU、34:メモリ、36:プログラム、50:機器リスト、PR:プリンタ、Ta〜Tf:携帯端末、MACa〜MACf:MACアドレス   2: communication system, 12: operation unit, 14: display unit, 16: print execution unit, 20: wireless LAN I / F, 30: control unit, 32: CPU, 34: memory, 36: program, 50: device list, PR: Printer, Ta to Tf: Mobile terminal, MACa to MACf: MAC address

Claims (17)

無線通信装置であって、
無線ネットワークの親局として動作する前記無線通信装置が現在確立している無線接続の数である接続数が上限数に一致する状態で、第1の特定機器から第1の無線接続要求を受信する受信部と、
前記第1の特定機器から前記第1の無線接続要求が受信される場合に、前記無線通信装置との無線接続を現在確立しているN1個(前記N1は2以上の整数)の機器の中から、無線接続が切断されるべき第1の対象機器を選択する選択部であって、前記N1個の機器が、Wi-Fi Direct方式に従って動作不可能な第1種の機器と、前記Wi-Fi Direct方式に従って動作可能な第2種の機器と、を含む複数種類の機器を含む場合に、前記複数種類の機器の種類毎に異なるように予め決められている切断優先度であって、前記無線接続の再確立が容易な順番に応じて予め決められている前記切断優先度に基づいて、最も高い切断優先度を有する種類の機器を、前記第1の対象機器として優先的に選択する前記選択部と、
第1の切断要求を前記第1の対象機器に送信して、前記第1の対象機器との無線接続を切断する切断部と、
前記第1の対象機器との前記無線接続が切断された後に、前記第1の特定機器との無線接続を確立する確立部と、
を備える無線通信装置。
A wireless communication device,
The first wireless connection request is received from the first specific device in a state where the number of connections, which is the number of wireless connections currently established by the wireless communication device operating as a master station of the wireless network, matches the upper limit number. A receiver,
Among the N1 (N1 is an integer of 2 or more) devices currently establishing a wireless connection with the wireless communication device when the first wireless connection request is received from the first specific device A selection unit for selecting a first target device from which the wireless connection is to be disconnected, wherein the N1 devices are a first type of device that can not operate according to the Wi-Fi Direct method; In the case of including a plurality of types of devices including a second type of device operable according to the Fi Direct method, a cutting priority predetermined to be different for each type of the plurality of types of devices , The device of the type having the highest disconnection priority is preferentially selected as the first target device based on the disconnection priority predetermined in accordance with the order in which re-establishment of wireless connection is easy. A selection unit,
A disconnection unit that transmits a first disconnection request to the first target device to disconnect a wireless connection with the first target device;
An establishing unit that establishes a wireless connection with the first specific device after the wireless connection with the first target device is disconnected;
Wireless communication device comprising:
無線通信装置であって、
無線ネットワークの親局として動作する前記無線通信装置が現在確立している無線接続の数である接続数が上限数に一致する状態で、第1の特定機器から第1の無線接続要求を受信する受信部と、
前記第1の特定機器から前記第1の無線接続要求が受信される場合に、前記無線通信装置との無線接続を現在確立しているN1個(前記N1は2以上の整数)の機器の中から、無線接続が切断されるべき第1の対象機器を選択する選択部であって、前記N1個の機器が、前記無線通信装置との無線接続を確立する際に、特定の無線通信方式のProvision Discovery Request信号を送信しない第1種の機器と、前記無線通信装置との無線接続を確立する際に、前記特定の無線通信方式の前記Provision Discovery Request信号を前記無線通信装置に送信する第2種の機器と、を含む複数種類の機器を含む場合に、前記複数種類の機器の種類毎に異なるように予め決められている切断優先度に基づいて、最も高い切断優先度を有する種類の機器を、前記第1の対象機器として優先的に選択する前記選択部と、
第1の切断要求を前記第1の対象機器に送信して、前記第1の対象機器との無線接続を切断する切断部と、
前記第1の対象機器との前記無線接続が切断された後に、前記第1の特定機器との無線接続を確立する確立部と、
を備える無線通信装置。
A wireless communication device,
The first wireless connection request is received from the first specific device in a state where the number of connections, which is the number of wireless connections currently established by the wireless communication device operating as a master station of the wireless network, matches the upper limit number. A receiver,
Among the N1 (N1 is an integer of 2 or more) devices currently establishing a wireless connection with the wireless communication device when the first wireless connection request is received from the first specific device A selection unit for selecting a first target device from which a wireless connection is to be disconnected, and when the N1 devices establish a wireless connection with the wireless communication device, When establishing a wireless connection between a first type of device that does not transmit a Provision Discovery Request signal and the wireless communication device, the second wireless device transmits the Provision Discovery Request signal of the specific wireless communication scheme to the wireless communication device. When a plurality of types of devices including a type of device are included, the type of device having the highest cutting priority based on the cutting priority predetermined to be different for each of the plurality of types of devices The first target device And the selection unit for selecting preferentially and,
A disconnection unit that transmits a first disconnection request to the first target device to disconnect a wireless connection with the first target device;
An establishing unit that establishes a wireless connection with the first specific device after the wireless connection with the first target device is disconnected;
Wireless communication device comprising:
前記特定の無線通信方式は、一対の機器の間に無線接続が確立されて、無線ネットワークが形成されるべき際に、前記一対の機器が前記無線ネットワークの親局及び子局を決定するための無線通信を実行する仕組みを有する無線通信方式である、請求項2に記載の無線通信装置。   In the specific wireless communication method, when a wireless connection is established between a pair of devices and a wireless network is to be formed, the pair of devices determine a master station and a slave station of the wireless network. The wireless communication apparatus according to claim 2, which is a wireless communication system having a mechanism for executing wireless communication. 前記無線通信装置は、さらに、
前記第1の対象機器として前記第1種の機器が選択されて、前記第1の対象機器との前記無線接続が切断されてから所定期間が経過する前に、前記接続数が前記上限数に一致する状態で、前記第1の対象機器から無線接続要求が受信される場合に、前記無線通信装置が現在確立している無線接続を切断することを許容せず、
前記第1の対象機器として前記第1種の機器が選択されて、前記第1の対象機器との前記無線接続が切断されてから前記所定期間が経過した後に、前記接続数が前記上限数に一致する状態で、前記第1の対象機器から無線接続要求が受信される場合に、前記無線通信装置が現在確立している無線接続を切断することを許容する切断制御部を備え、
前記第1種の機器は、前記無線通信装置から切断要求を受信することに起因して、前記無線通信装置との無線接続が切断された後に、ユーザから指示が与えられなくても、無線接続要求を前記無線通信装置に自動的に送信する機能を有する、請求項1から3のいずれか一項に記載の無線通信装置。
The wireless communication device may further
After the first type of device is selected as the first target device and the wireless connection with the first target device is disconnected before the predetermined period elapses, the number of connections is the upper limit number. When the wireless connection request is received from the first target device in the coincident state, the wireless communication device is not allowed to disconnect the currently established wireless connection,
When the first type of device is selected as the first target device and the wireless connection with the first target device is disconnected and the predetermined period has elapsed, the number of connections is the upper limit number. And a disconnection control unit that allows the wireless communication device to disconnect the currently established wireless connection when a wireless connection request is received from the first target device in a matching state.
The device of the first type is wirelessly connected even if the user does not receive an instruction after the wireless connection with the wireless communication device is disconnected due to the reception of the disconnection request from the wireless communication device. The wireless communication device according to any one of claims 1 to 3, having a function of automatically transmitting a request to the wireless communication device.
前記確立部は、さらに、前記第1の対象機器として前記第1種の機器が選択されて、前記第1の対象機器との前記無線接続が切断されてから前記所定期間が経過する前に、前記接続数が前記上限数未満である状態で、前記第1の対象機器から無線接続要求が受信される場合に、前記第1の対象機器との無線接続を再確立する、請求項4に記載の無線通信装置。   The establishment unit further selects the first type device as the first target device and disconnects the wireless connection with the first target device before the predetermined period elapses. The wireless connection with the first target device is reestablished when the wireless connection request is received from the first target device in a state where the number of connections is less than the upper limit number. Wireless communication device. 前記選択部は、前記第1の対象機器として、前記第2種の機器と比べて前記第1種の機器を優先的に選択する、請求項1から5のいずれか一項に記載の無線通信装置。   The wireless communication according to any one of claims 1 to 5, wherein the selection unit preferentially selects the first type of device as the first target device in comparison with the second type of device. apparatus. 前記第2種の機器は、無線ネットワークへの参加を促す所定コマンドをサポートしているサポート機器と、前記所定コマンドをサポートしていない非サポート機器と、を含み、
前記選択部は、前記N1個の機器が前記サポート機器と前記非サポート機器とを含む場合に、前記第1の対象機器として、前記非サポート機器と比べて前記サポート機器を優先的に選択する、請求項1から6のいずれか一項に記載の無線通信装置。
The second type device includes a support device that supports a predetermined command for joining a wireless network, and a non-support device that does not support the predetermined command.
When the N1 devices include the support device and the non-support device, the selection unit preferentially selects the support device as the first target device in comparison with the non-support device. The wireless communication device according to any one of claims 1 to 6.
前記確立部は、さらに、前記第1の対象機器として前記サポート機器が選択されて、前記第1の特定機器との前記無線接続が確立された後に、前記接続数が前記上限数に一致する状態から前記接続数が前記上限数未満である状態に移行する場合に、前記所定コマンドを前記第1の対象機器に送信して、前記第1の対象機器との無線接続を再確立する、請求項7に記載の無線通信装置。   The establishment unit further selects the support device as the first target device, and after the wireless connection with the first specific device is established, the number of connections matches the upper limit number. When transitioning to a state where the number of connections is less than the upper limit number, the predetermined command is transmitted to the first target device to reestablish wireless connection with the first target device. The wireless communication device according to 7. 前記第2種の機器は、無線ネットワークへの参加を促す所定コマンドをサポートしているサポート機器と、前記所定コマンドをサポートしていない非サポート機器と、を含み、
前記受信部は、さらに、前記第1の特定機器との前記無線接続が確立された後に、前記接続数が前記上限数に一致する状態で、第2の特定機器から第2の無線接続要求を受信し、
前記選択部は、さらに、前記第2の特定機器から前記第2の無線接続要求が受信される場合に、前記無線通信装置との無線接続を現在確立しているN2個(前記N2は2以上の整数)の機器の中から、無線接続が切断されるべき第2の対象機器を選択し、
前記切断部は、さらに、第2の切断要求を前記第2の対象機器に送信して、前記第2の対象機器との無線接続を切断し、
前記確立部は、さらに、前記第2の対象機器との前記無線接続が切断された後に、前記第2の特定機器との無線接続を確立し、
前記確立部は、さらに、前記第1の対象機器として前記第1種の機器が選択されて、前記第1の特定機器との前記無線接続が確立され、かつ、前記第2の対象機器として前記サポート機器が選択されて、前記第2の特定機器との前記無線接続が確立された後に、前記接続数が前記上限数に一致する状態から前記接続数が前記上限数未満である状態に移行する場合に、前記第1種の機器である前記第1の対象機器と比べて、前記サポート機器である前記第2の対象機器との無線接続を優先的に再確立する、請求項1から8のいずれか一項に記載の無線通信装置。
The second type device includes a support device that supports a predetermined command for joining a wireless network, and a non-support device that does not support the predetermined command.
Furthermore, after the wireless connection with the first specific device is established, the receiving unit further transmits a second wireless connection request from the second specific device in a state where the number of connections matches the upper limit number. Receive
The selection unit is further configured to establish N 2 wireless connections with the wireless communication apparatus when the second wireless connection request is received from the second specific device (the number of N 2 is two or more). Select the second target device from which the wireless connection should be disconnected from the devices
The disconnection unit further transmits a second disconnection request to the second target device, and disconnects the wireless connection with the second target device.
The establishment unit further establishes a wireless connection with the second specific device after the wireless connection with the second target device is disconnected.
The establishment unit further selects the first type device as the first target device, establishes the wireless connection with the first specific device, and the second target device. After the support device is selected and the wireless connection with the second specific device is established, the number of connections transitions from a state where the number of connections matches the number of upper limits to a state where the number of connections is less than the number of upper limits The wireless connection with the second target device, which is the support device, is preferentially reestablished in some cases, compared to the first target device, which is the first type device, The wireless communication device according to any one of the preceding claims.
無線通信装置であって、
無線ネットワークの親局として動作する前記無線通信装置が現在確立している無線接続の数である接続数が上限数に一致する状態で、第1の特定機器から第1の無線接続要求を受信する受信部と、
前記第1の特定機器から前記第1の無線接続要求が受信される場合に、前記無線通信装置との無線接続を現在確立しているN1個(前記N1は2以上の整数)の機器の中から、無線接続が切断されるべき第1の対象機器であって、予め決められている切断優先度に基づいて最も高い切断優先度を有する前記第1の対象機器を選択する選択部と、
第1の切断要求を前記第1の対象機器に送信して、前記第1の対象機器との無線接続を切断する切断部と、
前記第1の対象機器との前記無線接続が切断された後に、前記第1の特定機器との無線接続を確立する確立部と、
を備え、
前記N1個の機器は、Wi-Fi Direct方式に従って動作可能な第2種の機器を含み、
前記第2種の機器は、無線ネットワークへの参加を促す所定コマンドをサポートしているサポート機器と、前記所定コマンドをサポートしていない非サポート機器と、を含み、
前記選択部は、前記N1個の機器が前記サポート機器と前記非サポート機器とを含む場合に、前記切断優先度に基づいて、前記第1の対象機器として、前記サポート機器と前記非サポート機器のうちのいずれかの機器を優先的に選択する、無線通信装置。
A wireless communication device,
The first wireless connection request is received from the first specific device in a state where the number of connections, which is the number of wireless connections currently established by the wireless communication device operating as a master station of the wireless network, matches the upper limit number. A receiver,
Among the N1 (N1 is an integer of 2 or more) devices currently establishing a wireless connection with the wireless communication device when the first wireless connection request is received from the first specific device And a selection unit for selecting the first target device having the highest disconnection priority based on a predetermined disconnection priority, the first target device from which the wireless connection is to be disconnected.
A disconnection unit that transmits a first disconnection request to the first target device to disconnect a wireless connection with the first target device;
An establishing unit that establishes a wireless connection with the first specific device after the wireless connection with the first target device is disconnected;
Equipped with
The N1 devices include a second type of device operable according to the Wi-Fi Direct scheme,
The second type device includes a support device that supports a predetermined command for joining a wireless network, and a non-support device that does not support the predetermined command.
When the N1 devices include the support device and the non-support device, the selection unit selects the support device and the non-support device as the first target device based on the disconnection priority. A wireless communication device that preferentially selects one of the devices.
前記選択部は、前記N1個の機器が前記サポート機器と前記非サポート機器とを含む場合に、前記切断優先度に基づいて、前記第1の対象機器として、前記非サポート機器と比べて前記サポート機器を優先的に選択する、請求項10に記載の無線通信装置。   When the N1 devices include the support device and the non-support device, the selection unit performs the support as the first target device based on the disconnection priority, compared to the non-support device. The wireless communication apparatus according to claim 10, wherein the apparatus is selected preferentially. 前記確立部は、さらに、前記第1の対象機器として前記サポート機器が選択されて、前記第1の特定機器との前記無線接続が確立された後に、前記接続数が前記上限数に一致する状態から前記接続数が前記上限数未満である状態に移行する場合に、前記所定コマンドを前記第1の対象機器に送信して、前記第1の対象機器との無線接続を再確立する、請求項10又は11に記載の無線通信装置。   The establishment unit further selects the support device as the first target device, and after the wireless connection with the first specific device is established, the number of connections matches the upper limit number. When transitioning to a state where the number of connections is less than the upper limit number, the predetermined command is transmitted to the first target device to reestablish wireless connection with the first target device. The wireless communication device according to 10 or 11. 前記第2種の機器は、無線ネットワークへの参加を促す所定コマンドをサポートしているサポート機器と、前記所定コマンドをサポートしていない非サポート機器と、を含み、
前記受信部は、さらに、前記第1の特定機器との前記無線接続が確立された後に、前記接続数が前記上限数に一致する状態で、第2の特定機器から第2の無線接続要求を受信し、
前記選択部は、さらに、前記第2の特定機器から前記第2の無線接続要求が受信される場合に、前記無線通信装置との無線接続を現在確立しているN2個(前記N2は2以上の整数)の機器の中から、無線接続が切断されるべき第2の対象機器を選択し、
前記切断部は、さらに、第2の切断要求を前記第2の対象機器に送信して、前記第2の対象機器との無線接続を切断し、
前記確立部は、さらに、前記第2の対象機器との前記無線接続が切断された後に、前記第2の特定機器との無線接続を確立し、
前記確立部は、さらに、前記第1の対象機器として前記サポート機器が選択されて、前記第1の特定機器との前記無線接続が確立され、かつ、前記第2の対象機器として前記サポート機器が選択されて、前記第2の特定機器との前記無線接続が確立された後に、前記接続数が前記上限数に一致する状態から前記接続数が前記上限数未満である状態に移行する場合に、前記第1の対象機器と前記第2の対象機器とのうち、前記無線通信装置との無線接続が先に切断された前記第1の対象機器との無線接続を優先的に再確立する、請求項1から12のいずれか一項に記載の無線通信装置。
The second type device includes a support device that supports a predetermined command for joining a wireless network, and a non-support device that does not support the predetermined command.
Furthermore, after the wireless connection with the first specific device is established, the receiving unit further transmits a second wireless connection request from the second specific device in a state where the number of connections matches the upper limit number. Receive
The selection unit is further configured to establish N 2 wireless connections with the wireless communication apparatus when the second wireless connection request is received from the second specific device (the number of N 2 is two or more). Select the second target device from which the wireless connection should be disconnected from the devices
The disconnection unit further transmits a second disconnection request to the second target device, and disconnects the wireless connection with the second target device.
The establishment unit further establishes a wireless connection with the second specific device after the wireless connection with the second target device is disconnected.
The establishment unit further selects the support device as the first target device, establishes the wireless connection with the first specific device, and the support device as the second target device. When it is selected and the wireless connection with the second specific device is established, when the number of connections matches the upper limit number to shift to the state where the number of connections is less than the upper limit number, Of the first target device and the second target device, the wireless connection with the first target device, of which the wireless connection with the wireless communication device is disconnected first, is preferentially reestablished. The wireless communication device according to any one of Items 1 to 12.
前記N1個の機器は、前記無線通信装置との無線接続を現在確立している全ての機器のうち、前記無線通信装置に画像処理機能を実行させるためのアプリケーションが起動中でない機器である、請求項1から13のいずれか一項に記載の無線通信装置。   The N1 devices are, among all devices currently establishing wireless connection with the wireless communication device, devices for which an application for causing the wireless communication device to execute an image processing function is not running. The wireless communication device according to any one of Items 1 to 13. 無線通信装置のためのコンピュータプログラムであって、
前記無線通信装置に搭載されるコンピュータに、以下の各処理、即ち、
無線ネットワークの親局として動作する前記無線通信装置が現在確立している無線接続の数である接続数が上限数に一致する状態で、第1の特定機器から第1の無線接続要求を受信する受信処理と、
前記第1の特定機器から前記第1の無線接続要求が受信される場合に、前記無線通信装置との無線接続を現在確立しているN1個(前記N1は2以上の整数)の機器の中から、無線接続が切断されるべき第1の対象機器を選択する選択処理であって、前記N1個の機器が、Wi-Fi Direct方式に従って動作不可能な第1種の機器と、前記Wi-Fi Direct方式に従って動作可能な第2種の機器と、を含む複数種類の機器を含む場合に、前記複数種類の機器の種類毎に異なるように予め決められている切断優先度であって、前記無線接続の再確立が容易な順番に応じて予め決められている前記切断優先度に基づいて、最も高い切断優先度を有する種類の機器を、前記第1の対象機器として優先的に選択する前記選択処理と、
第1の切断要求を前記第1の対象機器に送信して、前記第1の対象機器との無線接続を切断する切断処理と、
前記第1の対象機器との前記無線接続が切断された後に、前記第1の特定機器との無線接続を確立する確立処理と、
を実行させるコンピュータプログラム。
A computer program for a wireless communication device, comprising
The following processes are performed on a computer mounted on the wireless communication device:
The first wireless connection request is received from the first specific device in a state where the number of connections, which is the number of wireless connections currently established by the wireless communication device operating as a master station of the wireless network, matches the upper limit number. Reception processing,
Among the N1 (N1 is an integer of 2 or more) devices currently establishing a wireless connection with the wireless communication device when the first wireless connection request is received from the first specific device A selection process for selecting a first target device from which the wireless connection is to be disconnected, wherein the N1 devices are a first type of device that can not operate according to the Wi-Fi Direct method; In the case of including a plurality of types of devices including a second type of device operable according to the Fi Direct method, a cutting priority predetermined to be different for each type of the plurality of types of devices , The device of the type having the highest disconnection priority is preferentially selected as the first target device based on the disconnection priority predetermined in accordance with the order in which re-establishment of wireless connection is easy. Selection processing,
A disconnection process of transmitting a first disconnection request to the first target device and disconnecting a wireless connection with the first target device;
Establishing processing for establishing a wireless connection with the first specific device after the wireless connection with the first target device is disconnected;
A computer program that runs
無線通信装置のためのコンピュータプログラムであって、
前記無線通信装置に搭載されるコンピュータに、以下の各処理、即ち、
無線ネットワークの親局として動作する前記無線通信装置が現在確立している無線接続の数である接続数が上限数に一致する状態で、第1の特定機器から第1の無線接続要求を受信する受信処理と、
前記第1の特定機器から前記第1の無線接続要求が受信される場合に、前記無線通信装置との無線接続を現在確立しているN1個(前記N1は2以上の整数)の機器の中から、無線接続が切断されるべき第1の対象機器を選択する選択処理であって、前記N1個の機器が、前記無線通信装置との無線接続を確立する際に、特定の無線通信方式のProvision Discovery Request信号を送信しない第1種の機器と、前記無線通信装置との無線接続を確立する際に、前記特定の無線通信方式のProvision Discovery Request信号を前記無線通信装置に送信する第2種の機器と、を含む複数種類の機器を含む場合に、前記複数種類の機器の種類毎に異なるように予め決められている切断優先度に基づいて、最も高い切断優先度を有する種類の機器を、前記第1の対象機器として優先的に選択する前記選択処理と、
第1の切断要求を前記第1の対象機器に送信して、前記第1の対象機器との無線接続を切断する切断処理と、
前記第1の対象機器との前記無線接続が切断された後に、前記第1の特定機器との無線接続を確立する確立処理と、
を実行させるコンピュータプログラム。
A computer program for a wireless communication device, comprising
The following processes are performed on a computer mounted on the wireless communication device:
The first wireless connection request is received from the first specific device in a state where the number of connections, which is the number of wireless connections currently established by the wireless communication device operating as a master station of the wireless network, matches the upper limit number. Reception processing,
Among the N1 (N1 is an integer of 2 or more) devices currently establishing a wireless connection with the wireless communication device when the first wireless connection request is received from the first specific device A selection process for selecting a first target device from which a wireless connection is to be disconnected, and when the N1 devices establish a wireless connection with the wireless communication device, A second type of transmitting a Provision Discovery Request signal of the specific wireless communication method to the wireless communication device when establishing a wireless connection between the first type of device that does not transmit the Provision Discovery Request signal and the wireless communication device The device of the type having the highest cutting priority based on the cutting priority predetermined to be different for each of the plurality of types of devices, With the first target device And the selection process for selecting preferentially Te,
A disconnection process of transmitting a first disconnection request to the first target device and disconnecting a wireless connection with the first target device;
Establishing processing for establishing a wireless connection with the first specific device after the wireless connection with the first target device is disconnected;
A computer program that runs
無線通信装置のためのコンピュータプログラムであって、
前記無線通信装置に搭載されるコンピュータに、以下の各処理、即ち、
無線ネットワークの親局として動作する前記無線通信装置が現在確立している無線接続の数である接続数が上限数に一致する状態で、第1の特定機器から第1の無線接続要求を受信する受信処理と、
前記第1の特定機器から前記第1の無線接続要求が受信される場合に、前記無線通信装置との無線接続を現在確立しているN1個(前記N1は2以上の整数)の機器の中から、無線接続が切断されるべき第1の対象機器であって、予め決められている切断優先度に基づいて最も高い切断優先度を有する前記第1の対象機器を選択する選択処理と、
第1の切断要求を前記第1の対象機器に送信して、前記第1の対象機器との無線接続を切断する切断処理と、
前記第1の対象機器との前記無線接続が切断された後に、前記第1の特定機器との無線接続を確立する確立処理と、
を実行させ、
前記N1個の機器は、Wi-Fi Direct方式に従って動作可能な第2種の機器を含み、
前記第2種の機器は、無線ネットワークへの参加を促す所定コマンドをサポートしているサポート機器と、前記所定コマンドをサポートしていない非サポート機器と、を含み、
前記選択処理は、前記N1個の機器が前記サポート機器と前記非サポート機器とを含む場合に、前記切断優先度に基づいて、前記第1の対象機器として、前記サポート機器と前記非サポート機器のうちのいずれかの機器を優先的に選択する、コンピュータプログラム。
A computer program for a wireless communication device, comprising
The following processes are performed on a computer mounted on the wireless communication device:
The first wireless connection request is received from the first specific device in a state where the number of connections, which is the number of wireless connections currently established by the wireless communication device operating as a master station of the wireless network, matches the upper limit number. Reception processing,
Among the N1 (N1 is an integer of 2 or more) devices currently establishing a wireless connection with the wireless communication device when the first wireless connection request is received from the first specific device And a selection process of selecting the first target device having the highest disconnection priority based on a predetermined disconnection priority, the first target device from which the wireless connection is to be disconnected.
A disconnection process of transmitting a first disconnection request to the first target device and disconnecting a wireless connection with the first target device;
Establishing processing for establishing a wireless connection with the first specific device after the wireless connection with the first target device is disconnected;
To run
The N1 devices include a second type of device operable according to the Wi-Fi Direct scheme,
The second type device includes a support device that supports a predetermined command for joining a wireless network, and a non-support device that does not support the predetermined command.
When the N1 devices include the support device and the non-support device, the selection process includes, as the first target device, the support device and the non-support device based on the disconnection priority. A computer program that preferentially selects one of the devices.
JP2017224722A 2017-11-22 2017-11-22 Wireless communication device Active JP6521035B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017224722A JP6521035B2 (en) 2017-11-22 2017-11-22 Wireless communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017224722A JP6521035B2 (en) 2017-11-22 2017-11-22 Wireless communication device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2013205408A Division JP6248515B2 (en) 2013-09-30 2013-09-30 Wireless communication device

Publications (2)

Publication Number Publication Date
JP2018038084A JP2018038084A (en) 2018-03-08
JP6521035B2 true JP6521035B2 (en) 2019-05-29

Family

ID=61567844

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017224722A Active JP6521035B2 (en) 2017-11-22 2017-11-22 Wireless communication device

Country Status (1)

Country Link
JP (1) JP6521035B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7063152B2 (en) * 2018-07-03 2022-05-09 ブラザー工業株式会社 Printing equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012070158A (en) * 2010-09-22 2012-04-05 Kyocera Corp Mobile communication system
JP5673436B2 (en) * 2011-08-17 2015-02-18 ブラザー工業株式会社 Wireless communication device
KR101915314B1 (en) * 2011-10-25 2018-11-07 삼성전자주식회사 Method and apparatus for wi-fi connecting using wi-fi protected setup in a portable terminal

Also Published As

Publication number Publication date
JP2018038084A (en) 2018-03-08

Similar Documents

Publication Publication Date Title
JP6248515B2 (en) Wireless communication device
JP6119481B2 (en) Function execution device
JP6536226B2 (en) Communication equipment
JP6368989B2 (en) Communication device
JP5857850B2 (en) Communication device
JP5945961B2 (en) Communication equipment
JP5907094B2 (en) Terminal device and function execution device
JP6546372B2 (en) Wireless communication device
EP2536247B1 (en) Wireless communication apparatus that operates as master station or remote station in wireless network and computer readable medium
JP6690321B2 (en) Communication device and computer program for the communication device
JP6172340B2 (en) Communication equipment
JP6015315B2 (en) Communication device
JP2019068204A (en) Communication apparatus and computer program for terminal device
JP6521035B2 (en) Wireless communication device
JP2016143167A (en) Communication equipment
JP6183445B2 (en) Communication device
JP2015023539A (en) Radio communication device
JP6115328B2 (en) Communication device
JP6398750B2 (en) Communication equipment
JP6544468B2 (en) Wireless communication device
JP7107415B2 (en) communication equipment
JP6171930B2 (en) Communication equipment
JP6601463B2 (en) Communication device
JP2014045379A (en) Communication device and computer program for mobile terminal
JP6525093B2 (en) Communication equipment

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20171211

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20171214

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180911

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20181102

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20190402

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190415

R150 Certificate of patent or registration of utility model

Ref document number: 6521035

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150