JP2019154076A - Wireless communication device - Google Patents

Wireless communication device Download PDF

Info

Publication number
JP2019154076A
JP2019154076A JP2019113684A JP2019113684A JP2019154076A JP 2019154076 A JP2019154076 A JP 2019154076A JP 2019113684 A JP2019113684 A JP 2019113684A JP 2019113684 A JP2019113684 A JP 2019113684A JP 2019154076 A JP2019154076 A JP 2019154076A
Authority
JP
Japan
Prior art keywords
connection
value
wfd
wireless communication
state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2019113684A
Other languages
Japanese (ja)
Other versions
JP6852755B2 (en
Inventor
侑亮 島田
Yusuke Shimada
侑亮 島田
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
Family has litigation
First worldwide family litigation filed litigation Critical https://patents.darts-ip.com/?family=67947214&utm_source=google_patent&utm_medium=platform_link&utm_campaign=public_patent_search&patent=JP2019154076(A) "Global patent litigation dataset” by Darts-ip is licensed under a Creative Commons Attribution 4.0 International License.
Application filed by Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2019113684A priority Critical patent/JP6852755B2/en
Publication of JP2019154076A publication Critical patent/JP2019154076A/en
Application granted granted Critical
Publication of JP6852755B2 publication Critical patent/JP6852755B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

To provide a technology which allows a wireless communication device to form an appropriate connection state.SOLUTION: A printer 10 establishes non-WFD connection with an AP 4, by utilizing a non-WFD channel value Vap. Subsequently, the printer 10 determines a WFD channel value Vwfd matching the non-WFD channel value Vap, with reference to the non-WFD channel value Vap. The printer 10 performs WPS negotiation by utilizing the WFD channel value Vwfd, and establishes WFD connection with a portable terminal 8. Consequently, a state where both the WFD connection of the printer 10 with the portable terminal 8, and the non-WFD connection of the printer 10 with the AP 4 are established is formed.SELECTED DRAWING: Figure 4

Description

本明細書によって開示される技術は、無線通信装置に関する。   The technology disclosed by this specification is related with a radio | wireless communication apparatus.

非特許文献1には、Wi−Fi Allianceによって策定されたWi−Fi Direct(以下では「WFD」と呼ぶ)について記載されている。WFDの無線ネットワークは、Group Ownerとして動作する1個の機器(以下では「G/O機器」と呼ぶ)と、G/O機器によって管理されるクライアントとして動作する1個以上の機器(以下では「クライント機器」と呼ぶ)と、によって構成される。一対の機器の間でWFDに従った接続が確立されるべき場合に、一対の機器のそれぞれは、G/Oネゴシエーションを実行して、G/O及びクライアントのどちらで動作すべきかを決定する。   Non-Patent Document 1 describes Wi-Fi Direct (hereinafter referred to as “WFD”) formulated by Wi-Fi Alliance. The WFD wireless network includes one device that operates as a Group Owner (hereinafter referred to as “G / O device”) and one or more devices that operate as clients managed by the G / O device (hereinafter referred to as “G / O device”). Called a client device). When a connection according to WFD is to be established between a pair of devices, each of the pair of devices performs a G / O negotiation to determine whether to operate as a G / O or a client.

「Wi−Fi Peer−to−Peer(P2P) Technical Specification Version1.1」、Wi−Fi Alliance、2010年"Wi-Fi Peer-to-Peer (P2P) Technical Specification Version 1.1", Wi-Fi Alliance, 2010

本明細書では、無線通信装置が複数個のデバイスとの接続を確立すべき状況において、無線通信装置が適切な接続状態を形成し得る技術を提供する。   The present specification provides a technique that allows a wireless communication apparatus to form an appropriate connection state in a situation where the wireless communication apparatus should establish connections with a plurality of devices.

本明細書では、無線ネットワークの親局として機能する親局状態と、無線ネットワークの子局として機能する子局状態と、を含む複数の状態のうちのいずれかの状態で選択的に動作可能な無線通信装置を開示する。無線通信装置は、第1の接続部と第2の接続部と決定部とを備える。第1の接続部は、他のデバイス及び無線通信装置のうちの一方が親局状態で動作すべきことを決定すると共に、上記の他のデバイス及び無線通信装置のうちの他方が子局状態で動作すべきことを決定する状態決定処理を実行して、無線通信装置が状態決定処理で決定された状態で動作するように、上記の他のデバイスとの第1種の接続を確立する。第1の接続部は、第1のデバイスとの第1種の接続が確立されるべき場合に、第1の無線チャネルを利用して、第1のデバイスとの第1種の接続を確立する。第2の接続部は、他のデバイスとの第2種の接続を確立する。第2の接続部は、第1のデバイスとは異なる第2のデバイスとの第2種の接続が確立されるべき場合に、第2の無線チャネルを利用して、第2のデバイスとの第2種の接続を確立する。決定部は、第1のデバイスとの第1種の接続及び第2のデバイスとの第2種の接続のうちの一方の接続が確立されている状態で、第1のデバイスとの第1種の接続及び第2のデバイスとの第2種の接続のうちの他方の接続が確立されるべき特定の場合に、第1の無線チャネルの値と第2の無線チャネルの値とが一致するように、第1の無線チャネルの値と第2の無線チャネルの値とのうちの少なくとも一方を決定する。   In this specification, it is possible to selectively operate in any one of a plurality of states including a master station state that functions as a master station of a wireless network and a slave station state that functions as a slave station of a wireless network. A wireless communication device is disclosed. The wireless communication device includes a first connection unit, a second connection unit, and a determination unit. The first connection unit determines that one of the other device and the wireless communication apparatus should operate in the master station state, and the other of the other device and the wireless communication apparatus is in the slave station state. A state determination process for determining what to operate is executed to establish a first type of connection with the other device so that the wireless communication apparatus operates in the state determined in the state determination process. The first connection unit establishes the first type of connection with the first device using the first radio channel when the first type of connection with the first device is to be established. . The second connection unit establishes a second type of connection with another device. The second connection unit uses the second radio channel to establish a second connection with the second device when a second type of connection with a second device different from the first device is to be established. Establish two types of connections. The determination unit is configured to establish a first type with the first device in a state where one of the first type of connection with the first device and the second type of connection with the second device is established. The value of the first radio channel and the value of the second radio channel match in a specific case where the other of the second type of connection and the second type of connection with the second device is to be established. And determining at least one of a value of the first radio channel and a value of the second radio channel.

上記の技術では、無線通信装置は、特定の場合に、第1の無線チャネルの値と第2の無線チャネルの値とが一致するように、第1の無線チャネルの値と第2の無線チャネルの値とのうちの少なくとも一方を決定する。このために、無線通信装置は、第1のデバイスとの第1種の接続と、第2のデバイスとの第2種の接続と、の両方が確立されている状態を形成し得る。従って、無線通信装置は、特定の場合に、適切な接続状態を形成し得る。   In the above technique, the wireless communication device, in a specific case, matches the value of the first wireless channel and the value of the second wireless channel so that the value of the first wireless channel matches the value of the second wireless channel. And at least one of the values of. For this reason, the wireless communication apparatus may form a state in which both the first type of connection with the first device and the second type of connection with the second device are established. Accordingly, the wireless communication device can form an appropriate connection state in a specific case.

特定の場合は、第2のデバイスとの第2種の接続が確立されている状態で、第1のデバイスとの第1種の接続が確立されるべき場合であってもよい。決定部は、特定の場合に、第2のデバイスとの第2種の接続で利用されている第2の無線チャネルの値を参照して、第2の無線チャネルの値に一致する第1の無線チャネルの値を決定してもよい。この構成によると、無線通信装置は、特定の場合に、第2の無線チャネルの値に一致する第1の無線チャネルの値を適切に決定し得る。   The specific case may be a case where the first type of connection with the first device is to be established while the second type of connection with the second device is established. The determination unit refers to the value of the second radio channel used in the second type of connection with the second device in a specific case, and matches the value of the second radio channel. The value of the radio channel may be determined. According to this configuration, the wireless communication apparatus can appropriately determine the value of the first wireless channel that matches the value of the second wireless channel in a specific case.

第1の接続部は、特定の場合に、無線通信装置を親局状態で動作させるための特定の処理を実行してもよい。決定部は、特定の処理の後に、第2の無線チャネルの値を参照して、第2の無線チャネルの値に一致する第1の無線チャネルの値を決定してもよい。この構成によると、無線通信装置は、特定の場合に、第2の無線チャネルの値に一致する第1の無線チャネルの値を適切に決定し得る。   In a specific case, the first connection unit may execute a specific process for operating the wireless communication apparatus in the master station state. The determination unit may determine the value of the first radio channel that matches the value of the second radio channel with reference to the value of the second radio channel after the specific processing. According to this configuration, the wireless communication apparatus can appropriately determine the value of the first wireless channel that matches the value of the second wireless channel in a specific case.

第1の接続部は、さらに、第2のデバイスとの第2種の接続が確立されていない状態で、第1のデバイスとの第1種の接続が確立されるべき場合に、無線通信装置が保存する第1の設定値と、第1のデバイスが保存する設定値と、を比較することによって、状態決定処理を実行してもよい。第1の接続部は、特定の場合に、無線通信装置が保存する第2の設定値と、第1のデバイスが保存する設定値と、を比較することによって、状態決定処理を実行してもよい。第1の接続部は、特定の場合に、第1の設定値と比べて状態決定処理において無線通信装置が親局状態で動作すべきことが決定され易い第2の設定値を利用する特定の処理を実行してもよい。この構成によると、無線通信装置は、特定の場合に、無線通信装置を親局状態で動作させるための特定の処理を適切に実行し得る。   The first connection unit further includes a wireless communication apparatus when the first type of connection with the first device is to be established in a state where the second type of connection with the second device is not established. The state determination process may be executed by comparing the first setting value stored by the device with the setting value stored by the first device. In a specific case, the first connection unit may execute the state determination process by comparing the second setting value stored by the wireless communication apparatus with the setting value stored by the first device. Good. In a specific case, the first connection unit uses a second setting value that is easier to determine that the wireless communication device should operate in the master station state in the state determination process than the first setting value. Processing may be executed. According to this configuration, in a specific case, the wireless communication device can appropriately execute a specific process for operating the wireless communication device in the master station state.

第1の接続部は、特定の場合に、無線通信装置が親局状態で動作することを維持するための特定のモードに無線通信装置を設定するための特定の処理を実行してもよい。この構成によると、無線通信装置は、特定の場合に、無線通信装置を親局状態で動作させるための特定の処理を適切に実行し得る。   In a specific case, the first connection unit may execute a specific process for setting the wireless communication device to a specific mode for maintaining the wireless communication device to operate in the master station state. According to this configuration, in a specific case, the wireless communication device can appropriately execute a specific process for operating the wireless communication device in the master station state.

決定部は、さらに、第2のデバイスとの第2種の接続が確立されていない状態で、第1のデバイスとの第1種の接続が確立されるべき場合に、第2の無線チャネルの値を参照せずに、第1の無線チャネルの値を決定してもよい。この構成によると、無線通信装置は、状況に応じて、第1の無線チャネルの値を適切に決定し得る。   The determination unit further includes the second wireless channel when the first type connection with the first device is to be established in a state where the second type connection with the second device is not established. The value of the first radio channel may be determined without referring to the value. According to this configuration, the wireless communication apparatus can appropriately determine the value of the first wireless channel according to the situation.

無線通信装置は、さらに、特定の場合に、無線通信装置が利用可能な無線チャネルの値として、第2の無線チャネルの値のみを、第1のデバイスに通知する通知部を備えていてもよい。この構成によると、無線通信装置は、第1のデバイスとの第1種の接続を適切に確立し得る。   The wireless communication device may further include a notification unit that notifies the first device of only the value of the second wireless channel as the value of the wireless channel that can be used by the wireless communication device in a specific case. . According to this configuration, the wireless communication apparatus can appropriately establish the first type of connection with the first device.

通知部は、さらに、第2の無線チャネルの値のみを第1のデバイスに通知しても、第1のデバイスとの第1種の接続を確立することができない場合に、無線通信装置が利用可能な無線チャネルの値として、第2の無線チャネルの値とは異なる値を、第1のデバイスに通知してもよい。この構成によると、無線通信装置は、第1のデバイスとの第1種の接続を適切に確立し得る。   Further, the notification unit is used by the wireless communication apparatus when the first type of connection with the first device cannot be established even if only the value of the second wireless channel is notified to the first device. As a possible radio channel value, a value different from the value of the second radio channel may be notified to the first device. According to this configuration, the wireless communication apparatus can appropriately establish the first type of connection with the first device.

決定部は、特定の場合であり、かつ、無線通信装置が親局状態で動作すべきことが決定される場合に、第2の無線チャネルの値を参照して、第2の無線チャネルの値に一致する第1の無線チャネルの値を決定してもよい。無線通信装置は、さらに、特定の場合であり、かつ、無線通信装置が子局状態で動作すべきことが決定される場合に、第1の無線チャネルの値と第2の無線チャネルの値とが一致するのか否かを判断するチャネル判断部を備えていてもよい。第1の接続部は、第1の無線チャネルの値と第2の無線チャネルの値とが一致すると判断される場合に、第1の無線チャネルを利用して、第1のデバイスとの第1種の接続を確立してもよい。この構成によると、無線通信装置は、無線通信装置が動作すべき状態に応じた適切な処理を実行し得る。このために、無線通信装置は、第1のデバイスとの第1種の接続を適切に確立し得る。   The determining unit refers to the value of the second radio channel with reference to the value of the second radio channel when it is a specific case and when it is determined that the radio communication apparatus should operate in the master station state. The value of the first radio channel that matches the above may be determined. The wireless communication device further includes a value of the first wireless channel and a value of the second wireless channel in a specific case and when it is determined that the wireless communication device should operate in the slave station state. There may be provided a channel determination unit for determining whether or not match. When it is determined that the value of the first wireless channel matches the value of the second wireless channel, the first connection unit uses the first wireless channel to perform the first connection with the first device. A seed connection may be established. According to this configuration, the wireless communication apparatus can execute appropriate processing according to the state in which the wireless communication apparatus should operate. For this reason, the wireless communication apparatus can appropriately establish the first type of connection with the first device.

第2のデバイスは、アクセスポイントであってもよい。この構成によると、無線通信装置は、アクセスポイント(即ち第2のデバイス)との第2種の接続を適切に確立し得る。   The second device may be an access point. According to this configuration, the wireless communication apparatus can appropriately establish the second type of connection with the access point (ie, the second device).

第2の無線チャネルの値は、アクセスポイントによって決定される値であってもよい。この構成によると、無線通信装置は、アクセスポイントによって決定される第2の無線チャネルを利用して、アクセスポイント(即ち第2のデバイス)との第2種の接続を適切に確立し得る。   The value of the second radio channel may be a value determined by the access point. According to this configuration, the wireless communication apparatus can appropriately establish the second type of connection with the access point (ie, the second device) using the second wireless channel determined by the access point.

なお、上記の無線通信装置を実現するための制御方法、コンピュータプログラム、及び、当該コンピュータプログラムを格納するコンピュータ読取可能記録媒体も、新規で有用である。   Note that a control method, a computer program, and a computer-readable recording medium storing the computer program for realizing the wireless communication device are also novel and useful.

通信システムの構成の一例を示す。An example of a structure of a communication system is shown. 非WFD接続処理のフローチャートを示す。The flowchart of a non-WFD connection process is shown. WFD接続処理のフローチャートを示す。The flowchart of a WFD connection process is shown. 第1実施例で実現されるケースのシーケンス図を示す。The sequence diagram of the case implement | achieved in 1st Example is shown. 図4の続きのシーケンス図を示す。FIG. 5 shows a sequence diagram continued from FIG. 4. 第2実施例のWFD接続処理のフローチャートを示す。The flowchart of the WFD connection process of 2nd Example is shown. 第2実施例で実現されるケースのシーケンス図を示す。The sequence diagram of the case implement | achieved in 2nd Example is shown.

(第1実施例)
(システムの構成)
図1に示されるように、通信システム2は、アクセスポイント(以下では「AP」と呼ぶ)4と、PC6と、携帯端末8と、プリンタ10(PC6、携帯端末8等の周辺機器)と、を備える。携帯端末8とプリンタ10とは、それぞれ、後述のWi−Fi Directに従った無線通信機能を実行可能である。なお、以下では、Wi−Fi Directのことを「WFD」と呼び、WFDに従った接続のことを「WFD接続」と呼ぶ。プリンタ10は、携帯端末8とのWFD接続を確立可能であり、これにより、WFDネットワークが構築される。この結果、携帯端末8とプリンタ10とは、印刷データ等の通信対象の対象データの無線通信を実行可能になる。
(First embodiment)
(System configuration)
As shown in FIG. 1, the communication system 2 includes an access point (hereinafter referred to as “AP”) 4, a PC 6, a mobile terminal 8, a printer 10 (peripheral devices such as the PC 6 and the mobile terminal 8), Is provided. Each of the portable terminal 8 and the printer 10 can execute a wireless communication function according to Wi-Fi Direct described later. Hereinafter, Wi-Fi Direct is referred to as “WFD”, and connection in accordance with WFD is referred to as “WFD connection”. The printer 10 can establish a WFD connection with the mobile terminal 8, and thereby a WFD network is constructed. As a result, the portable terminal 8 and the printer 10 can execute wireless communication of target data to be communicated such as print data.

プリンタ10は、WFDに従った無線通信機能に加えて、通常の無線通信機能(例えば、IEEE802.11に従った無線通信)を実行可能である。即ち、プリンタ10は、AP4との接続(以下では「非WFD接続」と呼ぶ)を確立可能であり、これにより、非WFDネットワークが構築される。なお、PC6も、AP4との非WFD接続を確立可能である。この結果、プリンタ10とPC6とは、AP4を介して、印刷データ等の通信対象の対象データの無線通信を実行可能になる。   The printer 10 can execute a normal wireless communication function (for example, wireless communication according to IEEE 802.11) in addition to the wireless communication function according to WFD. In other words, the printer 10 can establish a connection with the AP 4 (hereinafter referred to as “non-WFD connection”), and thereby a non-WFD network is constructed. Note that the PC 6 can also establish a non-WFD connection with the AP 4. As a result, the printer 10 and the PC 6 can execute wireless communication of target data to be communicated such as print data via the AP 4.

本実施例では、AP4とPC6とプリンタ10とが、例えば、特定の会社内に据え置きされる状況を想定している。即ち、特定の会社内では、AP4とPC6とプリンタ10とを含む非WFDネットワークが構築される。このために、PC6のユーザ(例えば特定の会社の社員)は、AP4を介して、プリンタ10に印刷を実行させることができる。そして、例えば、携帯端末8のユーザ(例えば特定の会社を訪問した者)は、携帯端末8とプリンタ10との間にWFD接続を一時的に確立することができる。即ち、携帯端末8のユーザは、携帯端末8とプリンタ10とを含むWFDネットワークを一時的に構築させることができる。これにより、携帯端末8のユーザは、AP4を介さずに、プリンタ10に印刷を実行させることができる。このように、本実施例では、非WFDネットワークが定常的に構築されるべきネットワークであり、WFDネットワークが一時的に構築されるべきネットワークである状況を想定している。   In this embodiment, it is assumed that the AP 4, the PC 6, and the printer 10 are deferred in a specific company, for example. That is, in a specific company, a non-WFD network including the AP 4, the PC 6, and the printer 10 is constructed. For this reason, a user of the PC 6 (for example, an employee of a specific company) can cause the printer 10 to execute printing via the AP 4. For example, a user of the mobile terminal 8 (for example, a person who visited a specific company) can temporarily establish a WFD connection between the mobile terminal 8 and the printer 10. That is, the user of the mobile terminal 8 can temporarily construct a WFD network including the mobile terminal 8 and the printer 10. Thereby, the user of the portable terminal 8 can cause the printer 10 to execute printing without using the AP 4. As described above, in this embodiment, it is assumed that the non-WFD network is a network that is to be constantly constructed and the WFD network is a network that is to be temporarily constructed.

(プリンタ10の構成)
プリンタ10は、操作部12と、表示部14と、印刷実行部16と、無線インターフェイス18と、制御部20と、を備える。上記の各部12〜20は、バス線(符号省略)に接続されている。操作部12は、複数のキーによって構成される。ユーザは、操作部12を操作して、様々な指示をプリンタ10に与えることができる。表示部14は、様々な情報を表示するためのディスプレイである。印刷実行部16は、インクジェット方式、レーザ方式等の印刷機構を備え、制御部20からの指示に従って印刷を実行する。
(Configuration of Printer 10)
The printer 10 includes an operation unit 12, a display unit 14, a print execution unit 16, a wireless interface 18, and a control unit 20. Each of the above-described units 12 to 20 is connected to a bus line (reference numeral omitted). The operation unit 12 includes a plurality of keys. The user can give various instructions to the printer 10 by operating the operation unit 12. The display unit 14 is a display for displaying various information. The printing execution unit 16 includes a printing mechanism such as an inkjet method or a laser method, and executes printing in accordance with an instruction from the control unit 20.

無線インターフェイス18は、制御部20が無線通信を実行する際に利用されるインターフェイスである。無線インターフェイス18は、物理的には1個のインターフェイスである。ただし、無線インターフェイス18には、WFD接続で利用されるべきMACアドレスと、非WFD接続で利用されるべきMACアドレスと、の両方が割り当てられている。従って、制御部20は、無線インターフェイス18を利用して、WFDに従った無線通信機能と通常の無線通信機能との両方を同時的に実行し得る。この結果、後で詳しく説明するが、制御部20は、WFD接続と非WFD接続との両方が確立されている状態を形成し得る。   The wireless interface 18 is an interface used when the control unit 20 executes wireless communication. The radio interface 18 is physically one interface. However, both the MAC address to be used for the WFD connection and the MAC address to be used for the non-WFD connection are assigned to the wireless interface 18. Therefore, the control unit 20 can simultaneously execute both the wireless communication function according to the WFD and the normal wireless communication function using the wireless interface 18. As a result, as will be described in detail later, the control unit 20 can form a state in which both the WFD connection and the non-WFD connection are established.

制御部20は、CPU22とメモリ24とを備える。CPU22は、メモリ24に格納されているプログラムに従って、様々な処理を実行する。メモリ24は、ROM、RAM、ハードディスク等によって構成される。メモリ24は、CPU22によって実行される上記のプログラムを格納したり、CPU22が処理を実行する過程で取得又は生成されるデータを格納したりする。CPU22が上記のプログラムに従って処理を実行することによって、第1の接続部30、第2の接続部32、決定部34、通知部36、及び、チャネル判断部38の各機能が実現される。   The control unit 20 includes a CPU 22 and a memory 24. The CPU 22 executes various processes according to programs stored in the memory 24. The memory 24 includes a ROM, a RAM, a hard disk, and the like. The memory 24 stores the above-described program executed by the CPU 22 and stores data acquired or generated in the process of the CPU 22 executing the process. When the CPU 22 executes processing according to the above-described program, the functions of the first connection unit 30, the second connection unit 32, the determination unit 34, the notification unit 36, and the channel determination unit 38 are realized.

詳しくは後述するが、第1の接続部30は、WFDに従った無線通信機能を実行するためのユニットである。例えば、第1の接続部30は、携帯端末8とのWFD接続を確立する。また、第2の接続部32は、WFDに従った無線通信機能ではなく、通常の無線通信機能を実行するためのユニットである。例えば、第2の接続部32は、AP4との非WFD接続を確立する。   As will be described in detail later, the first connection unit 30 is a unit for executing a wireless communication function in accordance with WFD. For example, the first connection unit 30 establishes a WFD connection with the mobile terminal 8. The second connection unit 32 is a unit for executing a normal wireless communication function, not a wireless communication function according to WFD. For example, the second connection unit 32 establishes a non-WFD connection with the AP 4.

(PC6の構成)
PC6は、WFDに従った無線通信機能を実行不可能である。ただし、変形例では、PC6は、WFDに従った無線通信機能を実行可能であってもよい。PC6は、AP4との非WFD接続を確立することができる。PC6は、図示省略のCPU、メモリ、ディスプレイ等を備える。PC6のメモリは、プリンタ10のためのプリンタドライバプログラムを格納している。PC6のCPUは、プリンタドライバプログラムを利用して、印刷対象の印刷データを生成することができる。プリンタ10とAP4との間に非WFD接続が確立されていると共に、PC6とAP4との間に非WFD接続が確立されている状態では、PC6は、AP4を介して、印刷データをプリンタ10に無線で送信可能である。
(Configuration of PC6)
The PC 6 cannot execute a wireless communication function according to WFD. However, in a modification, the PC 6 may be capable of executing a wireless communication function according to WFD. The PC 6 can establish a non-WFD connection with the AP 4. The PC 6 includes a CPU, a memory, a display, etc. (not shown). The memory of the PC 6 stores a printer driver program for the printer 10. The CPU of the PC 6 can generate print data to be printed using a printer driver program. In a state where a non-WFD connection is established between the printer 10 and the AP 4 and a non-WFD connection is established between the PC 6 and the AP 4, the PC 6 sends print data to the printer 10 via the AP 4. It can be transmitted wirelessly.

(携帯端末8の構成)
携帯端末8は、可搬型の端末であり、例えば、スマートフォン、PDA端末、ノートPC、タブレットPC等を含む。携帯端末8は、WFDに従った無線通信機能を実行可能である。携帯端末8は、プリンタ10とのWFD接続を確立可能である。携帯端末8は、図示省略のCPU、メモリ、ディスプレイ等を備える。携帯端末8のメモリは、プリンタ10のためのプリンタドライバプログラムを格納している。携帯端末8のCPUは、プリンタドライバプログラムを利用して、印刷対象の印刷データを生成することができる。プリンタ10と携帯端末8との間にWFD接続が確立されている状態では、携帯端末8は、AP4を介さずに、印刷データをプリンタ10に無線で送信可能である。
(Configuration of mobile terminal 8)
The portable terminal 8 is a portable terminal and includes, for example, a smartphone, a PDA terminal, a notebook PC, a tablet PC, and the like. The portable terminal 8 can execute a wireless communication function according to WFD. The mobile terminal 8 can establish a WFD connection with the printer 10. The portable terminal 8 includes a CPU, a memory, a display, etc. (not shown). The memory of the portable terminal 8 stores a printer driver program for the printer 10. The CPU of the portable terminal 8 can generate print data to be printed using a printer driver program. In a state where the WFD connection is established between the printer 10 and the mobile terminal 8, the mobile terminal 8 can wirelessly transmit print data to the printer 10 without using the AP 4.

(WFD)
WFDは、Wi−Fi Allianceによって策定された規格である。WFDは、Wi−Fi Allianceによって作成された「Wi−Fi Peer−to−Peer(P2P) Technical Specification Version1.1」に記述されている。
(WFD)
WFD is a standard established by the Wi-Fi Alliance. WFD is described in “Wi-Fi Peer-to-Peer (P2P) Technical Specification Version 1.1” created by Wi-Fi Alliance.

上述したように、プリンタ10と携帯端末8とは、それぞれ、WFDに従った無線通信機能を実行可能である。以下では、WFDに従った無線通信機能を実行可能な機器のことを「WFD対応機器」と呼ぶ。WFDの規格では、WFD対応機器の状態として、Group Owner状態(以下では「G/O状態」と呼ぶ)、クライアント状態、及び、デバイス状態の3つの状態が定義されている。WFD対応機器は、上記の3つの状態のうちの1つの状態で選択的に動作可能である。   As described above, the printer 10 and the mobile terminal 8 can each execute a wireless communication function according to WFD. Hereinafter, a device capable of executing a wireless communication function according to WFD is referred to as “WFD-compatible device”. In the WFD standard, three states of a Group Owner state (hereinafter referred to as “G / O state”), a client state, and a device state are defined as states of a WFD-compatible device. The WFD compatible device can selectively operate in one of the above three states.

G/O状態の機器とクライアント状態の機器とによって、1個のWFDネットワークが構成される。1個のWFDネットワークでは、G/O状態の機器が1個しか存在し得ないが、クライアント状態の機器が1個以上存在し得る。G/O状態の機器は、1個以上のクライアント状態の機器を管理する。具体的に言うと、G/O状態の機器は、1個以上のクライアント状態の機器のそれぞれの識別情報(即ちMACアドレス)が記述された管理リストを生成する。G/O状態の機器は、クライアント状態の機器がWFDネットワークに新たに参加すると、当該機器の識別情報を管理リストに追加し、クライアント状態の機器がWFDネットワークから離脱すると、当該機器の識別情報を管理リストから削除する。   One WFD network is configured by the devices in the G / O state and the devices in the client state. In one WFD network, there can be only one device in the G / O state, but there can be one or more devices in the client state. A device in the G / O state manages one or more devices in the client state. More specifically, the G / O state device generates a management list in which identification information (that is, MAC address) of each of one or more client state devices is described. When a device in the client state newly joins the WFD network, the device in the G / O state adds the identification information of the device to the management list, and when the device in the client state leaves the WFD network, the identification information of the device is added. Delete from the management list.

G/O状態の機器は、管理リストに登録されている機器、即ち、クライアント状態の機器との間で、通信対象の対象データ(例えば、OSI参照モデルのネットワーク層の情報を含むデータ(印刷データ等))の無線通信を実行可能である。しかしながら、G/O状態の機器は、管理リストに登録されていない機器との間で、WFDネットワークに参加するためのデータ(例えば、ネットワーク層の情報を含まないデータ(Probe Request信号、Probe Response信号等の物理層のデータ)の無線通信を実行可能であるが、上記の対象データの無線通信を実行不可能である。例えば、G/O状態のプリンタ10は、管理リストに登録されている携帯端末8(即ち、クライアント状態の携帯端末8)から印刷データを無線で受信可能であるが、管理リストに登録されていない機器から印刷データを無線で受信不可能である。   A device in the G / O state communicates with a device registered in the management list, that is, a device in a client state (for example, data including information on the network layer of the OSI reference model (print data). Etc.)) is possible. However, a device in the G / O state is not allowed to participate in the WFD network with a device that is not registered in the management list (for example, data not including network layer information (Probe Request signal, Probe Response signal). For example, the printer 10 in the G / O state is not registered in the management list, but the wireless communication of the target data cannot be performed. Although print data can be received wirelessly from the terminal 8 (that is, the mobile terminal 8 in the client state), print data cannot be received wirelessly from a device that is not registered in the management list.

また、G/O状態の機器は、複数個のクライアント状態の機器の間の対象データ(印刷データ等)の無線通信を中継可能である。例えば、クライアント状態の携帯端末8がクライアント状態の他のプリンタに印刷データを無線で送信すべき場合には、携帯端末8は、まず、印刷データをG/O状態のプリンタ10に無線で送信する。この場合、プリンタ10は、携帯端末8から印刷データを無線で受信して、上記の他のプリンタに印刷データを無線で送信する。即ち、G/O状態の機器は、無線ネットワークのAP(アクセスポイント)の機能を実行可能である。   In addition, a G / O state device can relay wireless communication of target data (print data, etc.) between a plurality of client state devices. For example, when the mobile terminal 8 in the client state should wirelessly transmit print data to another printer in the client state, the mobile terminal 8 first wirelessly transmits the print data to the printer 10 in the G / O state. . In this case, the printer 10 wirelessly receives print data from the portable terminal 8 and transmits the print data wirelessly to the other printer. That is, a device in the G / O state can execute a function of an AP (access point) of the wireless network.

なお、WFDネットワークに参加していないWFD対応機器(即ち、管理リストに登録されていない機器)が、デバイス状態の機器である。デバイス状態の機器は、WFDネットワークに参加するためのデータ(Probe Request信号、Probe Response信号等の物理層のデータ等)の無線通信を実行可能であるが、WFDネットワークを介して対象データ(印刷データ等)の無線通信を実行不可能である。   Note that a WFD compatible device that does not participate in the WFD network (that is, a device that is not registered in the management list) is a device in a device state. The device in the device state can execute wireless communication of data (physical layer data such as a probe request signal and a probe response signal) for participating in the WFD network, but the target data (print data) is transmitted via the WFD network. Etc.) cannot be performed.

(非WFD接続処理;図2)
続いて、プリンタ10によって実行される処理の内容について説明する。まず、図2を参照して、プリンタ10によって実行される非WFD接続処理の内容を説明する。ユーザが予め決められている非WFD接続指示を操作部12に入力する場合に、制御部20は、図2の非WFD接続処理を開始する。
(Non-WFD connection processing; Fig. 2)
Next, the contents of processing executed by the printer 10 will be described. First, the contents of the non-WFD connection process executed by the printer 10 will be described with reference to FIG. When the user inputs a predetermined non-WFD connection instruction to the operation unit 12, the control unit 20 starts the non-WFD connection process of FIG.

S10において、第2の接続部32は、プリンタ10の周囲に存在する各APを検索するためのScan処理を実行する。次いで、S12において、第2の接続部32は、Scan処理で見つかった各APに関する情報(例えば、SSID等)を含むAPリストを、表示部14に表示させる。プリンタ10のユーザは、APリストの中から、プリンタ10との接続が確立されるべきAPを指定する。第2の接続部32は、ユーザの指示に従って、APを選択する。以下では、AP4が選択された場合を例として、説明を続ける。   In S <b> 10, the second connection unit 32 executes a Scan process for searching for each AP existing around the printer 10. Next, in S <b> 12, the second connection unit 32 causes the display unit 14 to display an AP list including information (for example, SSID and the like) related to each AP found in the Scan process. The user of the printer 10 designates an AP with which a connection with the printer 10 should be established from the AP list. The second connection unit 32 selects an AP according to a user instruction. Hereinafter, the description will be continued by taking the case where AP4 is selected as an example.

詳しくは後述するが、第1の接続部30は、G/Oネゴシエーション(図3のS42等参照)を実行して、WFD接続を確立する。これに対し、第2の接続部32は、G/Oネゴシエーションを実行しない。AP4は、1〜14chの中から、非WFD接続で利用されるべき無線チャネルの値(以下では「非WFDチャネル値Vap」と呼ぶ)を決定する。AP4は、非WFDチャネル値Vapをプリンタ10に送信する。この結果、S13において、第2の接続部32は、AP4から非WFDチャネル値Vapを受信する。第2の接続部32は、非WFDチャネル値Vapを、メモリ24に記憶させる。   As will be described in detail later, the first connection unit 30 executes G / O negotiation (see S42 and the like in FIG. 3) to establish a WFD connection. On the other hand, the 2nd connection part 32 does not perform G / O negotiation. The AP 4 determines a value of a wireless channel to be used for non-WFD connection (hereinafter referred to as “non-WFD channel value Vap”) from 1 to 14 ch. The AP 4 transmits the non-WFD channel value Vap to the printer 10. As a result, in S13, the second connection unit 32 receives the non-WFD channel value Vap from the AP 4. The second connection unit 32 stores the non-WFD channel value Vap in the memory 24.

次いで、S14において、第2の接続部32は、プリンタ10と携帯端末8との間にWFD接続が確立されているのか否かを判断する。WFD接続が確立されている場合(S14でYESの場合)には、S16に進み、WFD接続が確立されていない場合(S14でNOの場合)には、S20に進む。   Next, in S <b> 14, the second connection unit 32 determines whether a WFD connection is established between the printer 10 and the mobile terminal 8. If the WFD connection has been established (YES in S14), the process proceeds to S16. If the WFD connection has not been established (NO in S14), the process proceeds to S20.

S20では、第2の接続部32は、S13で受信された非WFDチャネル値Vapを利用して、認証のための通信をAP4と実行する。ここで実行される通信では、第2の接続部32は、認証方式、暗号化方式、パスワード等のデータを、AP4に送信する。これにより、AP4は、認証方式、暗号化方式、パスワード等の認証を実行して、認証が成功すれば、認証成功を示すデータを、プリンタ10に送信する。これにより、プリンタ10とAP4との間に非WFD接続が確立される。この結果、プリンタ10(即ち第2の接続部32)は、非WFDチャネル値Vapを利用して、AP4を介して、通信対象の対象データ(印刷データ等)の通信をPC6と実行することができる。S20が終了すると、図2の非WFD接続処理が終了する。   In S20, the 2nd connection part 32 performs communication for authentication with AP4 using the non-WFD channel value Vap received by S13. In the communication executed here, the second connection unit 32 transmits data such as an authentication method, an encryption method, and a password to the AP 4. As a result, the AP 4 executes authentication such as an authentication method, an encryption method, and a password, and transmits data indicating the authentication success to the printer 10 if the authentication is successful. Thereby, a non-WFD connection is established between the printer 10 and the AP 4. As a result, the printer 10 (that is, the second connection unit 32) can communicate the target data (print data, etc.) to be communicated with the PC 6 via the AP 4 by using the non-WFD channel value Vap. it can. When S20 ends, the non-WFD connection process of FIG. 2 ends.

一方において、S16では、第2の接続部32は、携帯端末8とのWFD接続が切断されることを示す情報を、表示部14に表示させる。次いで、S18において、第1の接続部30は、プリンタ10の状態をG/O状態又はクライアントからデバイス状態に変更する。例えば、プリンタ10の現在の状態がG/O状態である場合には、第1の接続部30は、G/O状態のプリンタ10が保存している管理リストと、WFD接続で現在利用されている無線チャネルの値(以下では「WFDチャネル値Vwfd」と呼ぶ)と、をメモリ24から消去する。これにより、プリンタ10は、G/O状態からデバイス状態に移行し、この結果、プリンタ10と携帯端末8との間のWFD接続が切断される。また、例えば、プリンタ10の現在の状態がクライアント状態である場合には、第1の接続部30は、WFDチャネル値Vwfdをメモリ24から消去する。これにより、プリンタ10は、クライアント状態からデバイス状態に移行し、この結果、プリンタ10と携帯端末8との間のWFD接続が切断される。   On the other hand, in S <b> 16, the second connection unit 32 causes the display unit 14 to display information indicating that the WFD connection with the mobile terminal 8 is disconnected. Next, in S18, the first connection unit 30 changes the state of the printer 10 from the G / O state or the client state to the device state. For example, when the current state of the printer 10 is the G / O state, the first connection unit 30 uses the management list stored in the G / O state printer 10 and the WFD connection. The wireless channel value (hereinafter referred to as “WFD channel value Vwfd”) is deleted from the memory 24. As a result, the printer 10 shifts from the G / O state to the device state, and as a result, the WFD connection between the printer 10 and the portable terminal 8 is disconnected. For example, when the current state of the printer 10 is the client state, the first connection unit 30 deletes the WFD channel value Vwfd from the memory 24. As a result, the printer 10 shifts from the client state to the device state, and as a result, the WFD connection between the printer 10 and the portable terminal 8 is disconnected.

S18を終えると、S20において、第2の接続部32は、上記と同様に、S13で受信された非WFDチャネル値Vapを利用して、AP4との非WFD接続を確立する。S18で携帯端末8とのWFD接続が切断されるために、AP4との非WFD接続のみが確立されている状態が形成される。   When S18 ends, in S20, the second connection unit 32 establishes a non-WFD connection with the AP 4 using the non-WFD channel value Vap received in S13, as described above. Since the WFD connection with the mobile terminal 8 is disconnected in S18, a state in which only the non-WFD connection with the AP 4 is established is formed.

例えば、携帯端末8とのWFD接続が確立中である場合(S14でYESの場合)に、携帯端末8とのWFD接続を切断せずに、携帯端末8とのWFD接続と、AP4との非WFD接続と、の両方が確立されている状態を形成する構成を採用することが考えられる。しかしながら、無線インターフェイス18は、物理的には1個のインターフェイスである。従って、仮に、WFDチャネル値Vwfdと非WFDチャネル値Vapとが異なる場合には、プリンタ10は、WFD接続を利用した無線通信と、非WFD接続を利用した無線通信と、を同時的に適切に実行することができない。このような状況が発生することを避けるために、本実施例では、S14でYESの場合に、携帯端末8とのWFD接続を切断して(S18)、AP4との非WFD接続のみが確立されている状態を形成する構成を採用している。   For example, when the WFD connection with the mobile terminal 8 is being established (YES in S14), the WFD connection with the mobile terminal 8 and the AP 4 are not disconnected without disconnecting the WFD connection with the mobile terminal 8. It is conceivable to adopt a configuration that forms a state where both the WFD connection and the WFD connection are established. However, the wireless interface 18 is physically one interface. Therefore, if the WFD channel value Vwfd and the non-WFD channel value Vap are different, the printer 10 appropriately performs wireless communication using the WFD connection and wireless communication using the non-WFD connection simultaneously. Cannot be executed. In order to avoid such a situation, in this embodiment, in the case of YES in S14, the WFD connection with the mobile terminal 8 is disconnected (S18), and only the non-WFD connection with the AP 4 is established. The structure which forms the state is adopted.

なお、WFD接続が確立中である場合(S14でYESの場合)に、AP4との非WFD接続を確立せずに、携帯端末8とのWFD接続を維持する構成(即ち、携帯端末8とのWFD接続のみが確立されている状態を形成する構成)を採用することが考えられる。しかしながら、上述したように、非WFDネットワークは、定常的に構築されるべきネットワークであり、このようなネットワークが切断されると、PC6のユーザは、プリンタ10に印刷を実行させることができなくなる。このような事象が発生するのを抑制するために、本実施例では、S14でYESの場合に、一時的に確立されるべき携帯端末8とのWFD接続を切断して、定常的に確立されるべきAP4との非WFD接続のみが確立されている状態を形成する構成を採用している。即ち、本実施例では、定常的に確立されるべきAP4との非WFD接続を優先する構成を採用している。   In addition, when the WFD connection is being established (in the case of YES in S14), the configuration for maintaining the WFD connection with the portable terminal 8 without establishing the non-WFD connection with the AP 4 (that is, with the portable terminal 8) It is conceivable to adopt a configuration in which only a WFD connection is established. However, as described above, the non-WFD network is a network that should be constantly constructed. When such a network is disconnected, the user of the PC 6 cannot cause the printer 10 to execute printing. In order to suppress the occurrence of such an event, in this embodiment, in the case of YES in S14, the WFD connection with the mobile terminal 8 to be temporarily established is disconnected and is established constantly. A configuration is adopted in which only a non-WFD connection with the AP 4 to be established is established. In other words, this embodiment employs a configuration that prioritizes non-WFD connection with the AP 4 that should be steadily established.

(WFD接続処理;図3)
続いて、図3を参照して、デバイス状態のプリンタ10によって実行されるWFD接続処理の内容を説明する。ユーザが予め決められているWFD接続指示を操作部12に入力する場合に、制御部20は、図3のWFD接続処理を開始する。
(WFD connection processing; Fig. 3)
Next, the contents of the WFD connection process executed by the printer 10 in the device state will be described with reference to FIG. When the user inputs a predetermined WFD connection instruction to the operation unit 12, the control unit 20 starts the WFD connection process of FIG.

S40では、第1の接続部30は、プリンタ10とAP4との間に非WFD接続が確立されているのか否かを判断する。非WFD接続が確立されている場合(S40でYESの場合)には、S46に進み、非WFD接続が確立されていない場合(S40でNOの場合)には、S42に進む。   In S <b> 40, the first connection unit 30 determines whether a non-WFD connection is established between the printer 10 and the AP 4. If a non-WFD connection has been established (YES in S40), the process proceeds to S46, and if a non-WFD connection has not been established (NO in S40), the process proceeds to S42.

なお、図3のフローチャートでは図示省略しているが、第1の接続部30は、S40でYES及びNOのどちらの場合であっても、プリンタ10の周囲に存在するデバイス状態の各機器(例えば携帯端末8)を検索するためのSearch処理を実行する。さらに、第1の接続部30は、Search処理で見つかった各機器に関する情報(例えば、デバイス名、機種名、MACアドレス等)を含む機器リストを、表示部14に表示させる。プリンタ10のユーザは、機器リストの中から、プリンタ10との接続が確立されるべき機器を指定する。第1の接続部30は、ユーザの指示に従って、機器を選択する。以下では、携帯端末8が選択された場合を例として、説明を続ける。   Although not shown in the flowchart of FIG. 3, the first connection unit 30 is not limited to either YES or NO in S40. Search processing for searching for the portable terminal 8) is executed. Further, the first connection unit 30 causes the display unit 14 to display a device list including information (for example, device name, model name, MAC address, etc.) regarding each device found in the search process. The user of the printer 10 designates a device to be connected to the printer 10 from the device list. The first connection unit 30 selects a device according to a user instruction. Hereinafter, the description will be continued by taking the case where the mobile terminal 8 is selected as an example.

また、デバイス状態の携帯端末8は、WFD接続指示が携帯端末8に入力される場合に、プリンタ10と同様に、Search処理を実行する。これにより、携帯端末8の表示部に、プリンタ10に関する情報を含む機器リストが表示される。携帯端末8のユーザは、機器リストの中から、携帯端末8との接続が確立されるべき機器を選択する。以下では、プリンタ10が選択された場合を例として、説明を続ける。   Further, the mobile terminal 8 in the device state executes the search process in the same manner as the printer 10 when the WFD connection instruction is input to the mobile terminal 8. As a result, a device list including information related to the printer 10 is displayed on the display unit of the mobile terminal 8. The user of the mobile terminal 8 selects a device to be connected to the mobile terminal 8 from the device list. Hereinafter, the description will be continued by taking the case where the printer 10 is selected as an example.

S42では、第1の接続部30は、G/Oネゴシエーションを実行して、プリンタ10及び携帯端末8のうちの一方の機器をG/Oとして決定し、プリンタ10及び携帯端末8のうちの他方の機器をクライアントとして決定する。具体的に言うと、第1の接続部30は、まず、メモリ24に保存されているプリンタ10のIntent値を、携帯端末8に送信する。また、第1の接続部30は、携帯端末8に保存されている携帯端末8のIntent値を、携帯端末8から受信する。Intent値は、G/Oになるべき程度を示す設定値である。Intent値は、0〜15の数値範囲の中のいずれかの値である。Intent値が大きい程、G/Oになり易い。換言すると、Intent値が小さい程、クライアントになり易い。   In S <b> 42, the first connection unit 30 executes G / O negotiation to determine one of the printer 10 and the mobile terminal 8 as G / O, and the other of the printer 10 and the mobile terminal 8. Is determined as a client. Specifically, the first connection unit 30 first transmits the Intent value of the printer 10 stored in the memory 24 to the mobile terminal 8. In addition, the first connection unit 30 receives the Intent value of the mobile terminal 8 stored in the mobile terminal 8 from the mobile terminal 8. The Intent value is a set value indicating the degree to which G / O should be achieved. The Intent value is any value within a numerical range of 0 to 15. The larger the Intent value, the more likely it is G / O. In other words, the smaller the Intent value, the easier it is to become a client.

例えば、CPU及びメモリの能力が比較的に高い機器(例えばPC)は、G/Oとして動作しながら、他の処理を高速で実行することができる。従って、このような機器には、通常、G/Oになり易いように、比較的に大きなIntent値が設定される。一方において、例えば、CPU及びメモリの能力が比較的に低い機器は、G/Oとして動作しながら、他の処理を高速で実行することができない可能性がある。従って、このような機器には、通常、G/Oになり難いように(即ち、クライアントになり易いように)、比較的に小さなIntent値が設定される。   For example, a device (for example, a PC) having relatively high CPU and memory capabilities can perform other processing at high speed while operating as a G / O. Therefore, a relatively large Intent value is usually set in such a device so that it is likely to be G / O. On the other hand, for example, a device having relatively low CPU and memory capabilities may not be able to execute other processes at high speed while operating as a G / O. Therefore, a relatively small Intent value is usually set in such a device so that it is difficult to become G / O (that is, easy to become a client).

本実施例では、S42のG/Oネゴシエーションでは、プリンタ10のIntent値(即ちデフォルトのIntent値)として、「2」が利用される。プリンタ10は、通常、PC等と比べて、CPU及びメモリの能力が比較的に低い。このために、プリンタ10には、比較的に小さいデフォルトのIntent値が設定される。従って、S42では、第1の接続部30は、プリンタ10のIntent値「2」を携帯端末8に送信する。   In the present embodiment, “2” is used as the Intent value (that is, the default Intent value) of the printer 10 in the G / O negotiation in S42. The printer 10 usually has relatively low CPU and memory capabilities compared to a PC or the like. For this reason, a relatively small default Intent value is set in the printer 10. Accordingly, in S <b> 42, the first connection unit 30 transmits the Intent value “2” of the printer 10 to the mobile terminal 8.

S42では、第1の接続部30は、さらに、プリンタ10のIntent値と、携帯端末8のIntent値と、を比較して、G/O及びクライアントを決定する。例えば、プリンタ10のIntent値が、携帯端末8のIntent値よりも大きい場合には、第1の接続部30は、プリンタ10がG/Oになるべきことを決定すると共に、携帯端末8がクライアントになるべきことを決定する。また、例えば、プリンタ10のIntent値が、携帯端末8のIntent値よりも小さい場合には、第1の接続部30は、プリンタ10がクライアントになるべきことを決定すると共に、携帯端末8がG/Oになるべきことを決定する。なお、第1の接続部30は、プリンタ10のIntent値と、携帯端末8のIntent値と、が一致する場合には、プリンタ10のIntent値を変更し、変更後のIntent値を利用して、G/Oネゴシエーションを再び実行してもよいし、WFD接続を確立することができないことを示す情報を、表示部14に表示させてもよい。   In S <b> 42, the first connection unit 30 further compares the Intent value of the printer 10 with the Intent value of the mobile terminal 8 to determine G / O and a client. For example, when the Intent value of the printer 10 is larger than the Intent value of the mobile terminal 8, the first connection unit 30 determines that the printer 10 should be G / O, and the mobile terminal 8 is a client. Decide what should be. For example, when the Intent value of the printer 10 is smaller than the Intent value of the mobile terminal 8, the first connection unit 30 determines that the printer 10 should be a client, and the mobile terminal 8 Decide what should be / O. Note that if the Intent value of the printer 10 and the Intent value of the portable terminal 8 match, the first connection unit 30 changes the Intent value of the printer 10 and uses the changed Intent value. The G / O negotiation may be executed again, or information indicating that the WFD connection cannot be established may be displayed on the display unit 14.

携帯端末8は、プリンタ10と同じ手法を利用して、プリンタ10のIntent値と携帯端末8のIntent値とに基づいて、G/O及びクライアントを決定する。   The portable terminal 8 determines the G / O and the client based on the Intent value of the printer 10 and the Intent value of the portable terminal 8 using the same method as the printer 10.

なお、S42のG/Oネゴシエーションの過程において、通知部36は、プリンタ10がWFD接続で利用可能な無線チャネルの値として、1〜14chの全ての値を含むチャネルリスト(以下では「通常リスト」と呼ぶ)を、携帯端末8に通知(即ち送信)する。同様に、携帯端末8は、携帯端末8がWFD接続で利用可能な無線チャネルの値を含むチャネルリストを、プリンタ10に通知(即ち送信)する。これにより、第1の接続部30は、携帯端末8のチャネルリストを取得することができる。S42のG/Oネゴシエーションが終了すると、S44に進む。   In the G / O negotiation process of S42, the notification unit 36 includes a channel list (hereinafter referred to as a “normal list”) that includes all values of 1 to 14ch as wireless channel values that the printer 10 can use in the WFD connection. Is called (that is, transmitted) to the portable terminal 8. Similarly, the mobile terminal 8 notifies (i.e., transmits) a channel list including values of wireless channels that can be used by the mobile terminal 8 in the WFD connection to the printer 10. Thereby, the first connection unit 30 can acquire the channel list of the mobile terminal 8. When the G / O negotiation in S42 ends, the process proceeds to S44.

S44では、S42のG/Oネゴシエーションの結果に応じた処理が実行される。例えば、プリンタ10がG/Oになるべきことが決定された場合には、S44では、決定部34は、WFD接続で利用されるべきWFDチャネル値Vwfdを決定する。具体的に言うと、決定部34は、S42で携帯端末8に通知された通常リストに含まれる無線チャネルの値(1〜14ch)のうち、S42で携帯端末8から通知されたチャネルリストに含まれる1個の無線チャネルの値を、WFDチャネル値Vwfdとして決定する。本実施例では、携帯端末8から通知されたチャネルリストに「11ch」が含まれていれば、決定部34は、WFDチャネル値Vwfdとして、「11ch」を決定する。ただし、携帯端末8から通知されたチャネルリストに「11ch」が含まれていなければ、決定部34は、WFDチャネル値Vwfdとして、他の値(例えば「10ch」)を決定する。   In S44, processing according to the result of the G / O negotiation in S42 is executed. For example, if it is determined that the printer 10 should be G / O, in S44, the determination unit 34 determines the WFD channel value Vwfd to be used in the WFD connection. Specifically, the determination unit 34 includes the channel values notified from the mobile terminal 8 in S42 among the wireless channel values (1 to 14ch) included in the normal list notified to the mobile terminal 8 in S42. The value of one radio channel to be determined is determined as the WFD channel value Vwfd. In the present embodiment, if “11ch” is included in the channel list notified from the mobile terminal 8, the determination unit 34 determines “11ch” as the WFD channel value Vwfd. However, if “11ch” is not included in the channel list notified from the mobile terminal 8, the determining unit 34 determines another value (for example, “10ch”) as the WFD channel value Vwfd.

次いで、第1の接続部30は、決定済みのWFDチャネル値Vwfdを、携帯端末8に送信(即ち通知)する。これにより、携帯端末8は、WFDチャネル値Vwfdを知ることができ、以降の通信において、WFDチャネル値Vwfdを利用することができる。なお、第1の接続部30は、決定済みのWFDチャネル値Vwfdを、プリンタ10のメモリ24に記憶させる。   Next, the first connection unit 30 transmits (that is, notifies) the determined WFD channel value Vwfd to the mobile terminal 8. Thereby, the portable terminal 8 can know the WFD channel value Vwfd, and can use the WFD channel value Vwfd in subsequent communications. The first connection unit 30 stores the determined WFD channel value Vwfd in the memory 24 of the printer 10.

一方において、プリンタ10がクライアントになるべきことが決定された場合には、S44では、決定部34は、WFDチャネル値Vwfdを決定しない。この場合、第1の接続部30は、G/O状態の携帯端末8から、携帯端末8によって決定されたWFDチャネル値Vwfdを受信する。この場合、第1の接続部30は、受信済みのWFDチャネル値Vwfdを、プリンタ10のメモリ24に記憶させる。   On the other hand, if it is determined that the printer 10 should be a client, the determination unit 34 does not determine the WFD channel value Vwfd in S44. In this case, the first connection unit 30 receives the WFD channel value Vwfd determined by the mobile terminal 8 from the mobile terminal 8 in the G / O state. In this case, the first connection unit 30 stores the received WFD channel value Vwfd in the memory 24 of the printer 10.

S44では、さらに、第1の接続部30は、WPS(Wi-Fi Protected Setup)ネゴシエーションを実行して、携帯端末8とのWFD接続を確立する。なお、プリンタ10がG/Oになるべきことが決定された場合には、第1の接続部30は、G/O状態用のWPSネゴシエーションを実行する。一方において、プリンタ10がクライアントになるべきことが決定された場合には、第1の接続部30は、クライアント状態用のWPSネゴシエーションを実行する。   In S44, the first connection unit 30 further performs WPS (Wi-Fi Protected Setup) negotiation to establish a WFD connection with the mobile terminal 8. If it is determined that the printer 10 should be G / O, the first connection unit 30 executes WPS negotiation for the G / O state. On the other hand, when it is determined that the printer 10 is to become a client, the first connection unit 30 executes WPS negotiation for the client state.

(G/O状態用のWPSネゴシエーション)
G/O状態用のWPSネゴシエーションでは、第1の接続部30は、WFD接続を確立するために必要な無線プロファイル(SSID、認証方式、暗号化方式、パスワード等)を示すデータを生成する。なお、認証方式及び暗号化方式は、予め決められている。また、第1の接続部30は、S44の処理の際にパスワードを生成する。なお、SSIDは、S44の処理の際に、第1の接続部30によって生成されてもよいし、予め決められていてもよい。続いて、第1の接続部30は、WFDチャネル値Vwfdを利用して、無線プロファイルを示すデータを、携帯端末8に送信する。
(WPS negotiation for G / O state)
In the WPS negotiation for the G / O state, the first connection unit 30 generates data indicating a wireless profile (SSID, authentication method, encryption method, password, etc.) necessary for establishing a WFD connection. Note that the authentication method and the encryption method are determined in advance. Further, the first connection unit 30 generates a password during the process of S44. The SSID may be generated by the first connection unit 30 during the process of S44, or may be determined in advance. Subsequently, the first connection unit 30 transmits data indicating the wireless profile to the mobile terminal 8 using the WFD channel value Vwfd.

無線プロファイルがプリンタ10から携帯端末8に送信されることにより、プリンタ10及び携帯端末8が同じ無線プロファイルを利用することができる。第1の接続部30は、無線プロファイルを利用して、Authentication Request、Authentication Response、Association Request、Association Response、及び、4way handshakeの無線通信(以下では「特定の無線通信」と呼ぶ)を、携帯端末8と実行する。なお、上記の特定の無線通信でも、WFDチャネル値Vwfdが利用される。上記の特定の無線通信の過程で、SSIDの認証、認証方式及び暗号化方式の認証、パスワードの認証等の様々な認証処理が実行される。全ての認証が成功した場合に、プリンタ10及び携帯端末8の間にWFD接続が確立される。   By transmitting the wireless profile from the printer 10 to the portable terminal 8, the printer 10 and the portable terminal 8 can use the same wireless profile. The first connection unit 30 uses a wireless profile to perform an authentication request, an authentication response, an association request, an association response, and a 4-way handshake wireless communication (hereinafter referred to as “specific wireless communication”). 8 and execute. Note that the WFD channel value Vwfd is also used in the specific wireless communication. In the process of the specific wireless communication, various authentication processes such as SSID authentication, authentication method and encryption method authentication, and password authentication are executed. When all the authentications are successful, a WFD connection is established between the printer 10 and the portable terminal 8.

次いで、第1の接続部30は、携帯端末8の識別情報(即ち、携帯端末8のMACアドレス)を管理リストに追加する。これにより、G/O状態のプリンタ10(即ち第1の接続部30)は、クライアント状態の携帯端末8との間で、WFDチャネル値Vwfdを利用して、通信対象の対象データ(印刷データ等)の通信を実行することが。なお、対象データは、OSI参照モデルの物理層よりも上位層であるネットワーク層のデータを含む。従って、G/O状態のプリンタ10(即ち第1の接続部30)は、クライアント状態の携帯端末8との間で、ネットワーク層の無線通信を実行することができる。さらに、G/O状態のプリンタ10(即ち第1の接続部30)は、クライアント状態の携帯端末8と、管理リストに登録されているクライアント状態の他の機器と、の間の無線通信を中継することができる。   Next, the first connection unit 30 adds the identification information of the mobile terminal 8 (that is, the MAC address of the mobile terminal 8) to the management list. Thus, the G / O state printer 10 (that is, the first connection unit 30) uses the WFD channel value Vwfd to communicate with the target data (print data or the like) with the portable terminal 8 in the client state. ) To perform communication. Note that the target data includes data in the network layer that is higher than the physical layer of the OSI reference model. Accordingly, the printer 10 (that is, the first connection unit 30) in the G / O state can execute wireless communication in the network layer with the mobile terminal 8 in the client state. Further, the printer 10 (that is, the first connection unit 30) in the G / O state relays wireless communication between the portable terminal 8 in the client state and other devices in the client state registered in the management list. can do.

上述したように、第1の接続部30は、G/Oネゴシエーションでプリンタ10がG/Oになるべきことが決定される場合に、プリンタ10がG/O状態で動作するように、WFDチャネル値Vwfdを利用して、携帯端末8とのWFD接続を確立する。   As described above, the first connection unit 30 uses the WFD channel so that the printer 10 operates in the G / O state when the G / O negotiation determines that the printer 10 should be G / O. A WFD connection with the mobile terminal 8 is established using the value Vwfd.

(クライアント状態用のWPSネゴシエーション)
一方において、クライアント状態用のWPSネゴシエーションでは、第1の接続部30は、WFDチャネル値Vwfdを利用して、無線プロファイルを示すデータを、携帯端末8から受信する。次いで、第1の接続部30は、無線プロファイルを利用して、上記の特定の無線通信を、携帯端末8と実行する。これにより、プリンタ10及び携帯端末8の間にWFD接続が確立される。
(WPS negotiation for client state)
On the other hand, in the WPS negotiation for the client state, the first connection unit 30 receives data indicating the wireless profile from the mobile terminal 8 by using the WFD channel value Vwfd. Next, the first connection unit 30 performs the specific wireless communication with the mobile terminal 8 using the wireless profile. Thereby, a WFD connection is established between the printer 10 and the portable terminal 8.

なお、携帯端末8は、プリンタ10の識別情報(即ち、プリンタ10のMACアドレス)を管理リストに追加する。これにより、クライアント状態のプリンタ10(即ち第1の接続部30)は、G/O状態の携帯端末8との間で、WFDチャネル値Vwfdを利用して、通信対象の対象データ(印刷データ等)の通信を実行することができる。   The portable terminal 8 adds the identification information of the printer 10 (that is, the MAC address of the printer 10) to the management list. As a result, the client-state printer 10 (that is, the first connection unit 30) uses the WFD channel value Vwfd to communicate with the target data (print data, etc.) with the portable terminal 8 in the G / O state. ) Communication can be executed.

上述したように、第1の接続部30は、G/Oネゴシエーションでプリンタ10がクライアントになるべきことが決定される場合に、プリンタ10がクライアント状態で動作するように、WFDチャネル値Vwfdを利用して、携帯端末8とのWFD接続を確立する。S44が終了すると、図3のWFD接続処理が終了する。   As described above, the first connection unit 30 uses the WFD channel value Vwfd so that the printer 10 operates in the client state when it is determined in the G / O negotiation that the printer 10 should be a client. Then, the WFD connection with the mobile terminal 8 is established. When S44 ends, the WFD connection process of FIG. 3 ends.

続いて、S40でYESの場合(非WFD接続が現在確立されている場合)に実行されるS46以降の処理の内容を説明する。S46では、第1の接続部30は、図3のWFD接続処理が開始されてから、1回目のG/Oネゴシエーションが実行されるべき状況であるのか否かを判断する。1回目のG/Oネゴシエーションが実行されるべき状況である場合(S46でYESの場合)には、S48に進み、2回目以降のG/Oネゴシエーションが実行されるべき状況である場合(S46でNOの場合)には、S50に進む。   Next, the contents of the processing after S46, which is executed when S40 is YES (when a non-WFD connection is currently established), will be described. In S46, the first connection unit 30 determines whether or not the first G / O negotiation is to be executed after the WFD connection process of FIG. 3 is started. When the first G / O negotiation is to be executed (YES in S46), the process proceeds to S48, and when the second and subsequent G / O negotiations are to be executed (S46). If NO, the process proceeds to S50.

S48では、第1の接続部30は、S42と同様に、G/Oネゴシエーションを実行する。ただし、S48のG/Oネゴシエーションは、以下の点において、S42とは異なる。S48のG/Oネゴシエーションでは、プリンタ10のIntent値として、「14」が採用される。従って、S48では、第1の接続部30は、プリンタ10のIntent値「14」を携帯端末8に送信する。また、S48では、通知部36は、プリンタ10がWFD接続で利用可能な無線チャネルの値として、現在確立されている非WFD接続で利用されている非WFDチャネル値Vap(即ちメモリ24内の非WFDチャネル値Vap)のみを含むチャネルリスト(以下では「制限リスト」と呼ぶ)を、携帯端末8に通知(即ち送信)する。S48のG/Oネゴシエーションが終了すると、S52に進む。   In S48, the first connection unit 30 performs G / O negotiation in the same manner as in S42. However, the G / O negotiation in S48 is different from S42 in the following points. In the G / O negotiation in S <b> 48, “14” is adopted as the Intent value of the printer 10. Therefore, in S <b> 48, the first connection unit 30 transmits the Intent value “14” of the printer 10 to the mobile terminal 8. In S48, the notification unit 36 uses the non-WFD channel value Vap used in the currently established non-WFD connection as the value of the wireless channel that the printer 10 can use in the WFD connection (that is, the non-WFD channel value Vap in the memory 24). A channel list (hereinafter referred to as “restriction list”) including only the WFD channel value Vap) is notified (ie, transmitted) to the mobile terminal 8. When the G / O negotiation in S48 ends, the process proceeds to S52.

S52では、第1の接続部30は、G/Oネゴシエーションが成功したのか否かを判断する。例えば、プリンタ10と携帯端末8との間の通信環境が悪い場合には、プリンタ10と携帯端末8との間でG/Oネゴシエーションのための通信を実行することができない。この場合、第1の接続部30は、S52でNOと判断する。また、例えば、S48のG/Oネゴシエーションにおいて、制限リスト(即ち非WFDチャネル値Vap)が携帯端末8に通知される場合には、以下の事象が起こる可能性がある。即ち、携帯端末8から通知されるチャネルリストの中に、非WFDチャネル値Vapが含まれない場合には、プリンタ10及び携帯端末8が共通の無線チャネルを利用することができない。従って、この場合も、第1の接続部30は、S52でNOと判断する。S52でNOの場合には、S54に進む。   In S52, the first connection unit 30 determines whether the G / O negotiation is successful. For example, when the communication environment between the printer 10 and the portable terminal 8 is bad, communication for G / O negotiation cannot be performed between the printer 10 and the portable terminal 8. In this case, the first connection unit 30 determines NO in S52. For example, in the G / O negotiation of S48, when the restriction list (that is, the non-WFD channel value Vap) is notified to the mobile terminal 8, the following events may occur. That is, if the non-WFD channel value Vap is not included in the channel list notified from the mobile terminal 8, the printer 10 and the mobile terminal 8 cannot use a common wireless channel. Therefore, also in this case, the first connection unit 30 determines NO in S52. If NO in S52, the process proceeds to S54.

S54では、第1の接続部30は、G/Oネゴシエーションが実行された回数が閾値(閾値は2以上の整数)以上であるのか否かを判断する。G/Oネゴシエーションの実行回数が閾値以上である場合(S54でYESの場合)には、S56において、第1の接続部30は、WFD接続を確立することができないことを示す情報を、表示部14に表示させる。この場合、第1の接続部30は、携帯端末8とのWFD接続を確立しない。従って、AP4との非WFD接続のみが確立されている状態が維持される。S56が終了すると、図3のWFD接続処理が終了する。   In S54, the first connection unit 30 determines whether or not the number of times that the G / O negotiation has been executed is equal to or greater than a threshold value (the threshold value is an integer equal to or greater than 2). If the number of executions of the G / O negotiation is equal to or greater than the threshold (YES in S54), in S56, the first connection unit 30 displays information indicating that the WFD connection cannot be established on the display unit. 14 is displayed. In this case, the first connection unit 30 does not establish a WFD connection with the mobile terminal 8. Therefore, the state where only the non-WFD connection with the AP 4 is established is maintained. When S56 ends, the WFD connection process of FIG. 3 ends.

一方において、G/Oネゴシエーションの実行回数が閾値未満である場合(S54でNOの場合)には、S46に戻る。この場合、第1の接続部30は、S46でNOと判断して、S50に進む。   On the other hand, when the number of execution times of G / O negotiation is less than the threshold value (NO in S54), the process returns to S46. In this case, the first connecting unit 30 determines NO in S46, and proceeds to S50.

S50では、第1の接続部30は、S42と同様に、G/Oネゴシエーションを実行する。ただし、S50のG/Oネゴシエーションでは、プリンタ10のIntent値として、「14」が採用される。従って、S50では、第1の接続部30は、プリンタ10のIntent値「14」を携帯端末8に送信する。なお、S50では、通知部36は、通常リスト(1〜14ch)を携帯端末8に通知する。即ち、通知部36は、S48のG/Oネゴシエーションが成功しない場合に、非WFDチャネル値Vapとは異なる値を携帯端末8に通知する。   In S50, the 1st connection part 30 performs G / O negotiation similarly to S42. However, “14” is adopted as the Intent value of the printer 10 in the G / O negotiation of S50. Therefore, in S <b> 50, the first connection unit 30 transmits the Intent value “14” of the printer 10 to the mobile terminal 8. In S50, the notification unit 36 notifies the mobile terminal 8 of the normal list (1 to 14ch). That is, the notification unit 36 notifies the mobile terminal 8 of a value different from the non-WFD channel value Vap when the G / O negotiation in S48 is not successful.

なお、変形例では、S48及びS50において、第1の接続部30は、プリンタ10のIntent値として、「14」とは異なる値(例えば「13」、「15」等)を利用してもよい。即ち、S48及びS50では、第1の接続部30は、S42で利用されるプリンタ10のIntent値(即ちデフォルトのIntent値)よりも大きいIntent値を利用すればよい。   In the modified example, in S48 and S50, the first connection unit 30 may use a value different from “14” (for example, “13”, “15”, etc.) as the Intent value of the printer 10. . That is, in S48 and S50, the first connection unit 30 may use an Intent value that is larger than the Intent value (that is, the default Intent value) of the printer 10 used in S42.

上述したように、S48のG/Oネゴシエーションでは、制限リストが携帯端末8に通知されるために、S52でNOと判断され得る。この場合、S50のG/Oネゴシエーションが再び実行されると、制限リストに代えて通常リストが携帯端末8に通知されるために、S52でYESと判断され得る。S52でYESの場合には、S58に進む。   As described above, in the G / O negotiation in S48, since the restriction list is notified to the mobile terminal 8, NO can be determined in S52. In this case, when the G / O negotiation in S50 is executed again, the mobile terminal 8 is notified of the normal list instead of the restriction list, so that YES can be determined in S52. If YES in S52, the process proceeds to S58.

S58では、第1の接続部30は、S48又はS50のG/Oネゴシエーションにおいて、プリンタ10がG/Oになるべきことが決定されたのか否かを判断する。S48又はS50のG/Oネゴシエーションでは、プリンタ10のIntent値「14」が利用されるために、通常、プリンタ10がG/Oになるべきことが決定される。この場合、第1の接続部30は、S58でYESと判断して、S64に進む。   In S58, the first connection unit 30 determines whether or not the printer 10 is determined to be G / O in the G / O negotiation in S48 or S50. In the G / O negotiation of S48 or S50, since the Intent value “14” of the printer 10 is used, it is usually determined that the printer 10 should be G / O. In this case, the first connecting unit 30 determines YES in S58, and proceeds to S64.

S64では、決定部34は、現在確立されている非WFD接続で利用されている非WFDチャネル値Vap(即ちメモリ24内の非WFDチャネル値Vap)を参照して、非WFDチャネル値Vapに一致するWFDチャネル値Vwfdを決定する。そして、決定部34は、決定済みのWFDチャネル値Vwfdを、携帯端末8に送信(即ち通知)する。なお、第1の接続部30は、決定済みのWFDチャネル値Vwfdを、プリンタ10のメモリ24に記憶させる。上述したように、S64では、WFDチャネル値Vwfdと非WFDチャネル値Vapとが一致するように、WFDチャネル値Vwfdが決定される。これにより、WFD接続を利用した通信と、非WFD接続を利用した通信と、を同時的に適切に実行することが実現される。   In S64, the determination unit 34 refers to the non-WFD channel value Vap (that is, the non-WFD channel value Vap in the memory 24) used in the currently established non-WFD connection, and matches the non-WFD channel value Vap. The WFD channel value Vwfd to be determined is determined. Then, the determination unit 34 transmits (that is, notifies) the determined WFD channel value Vwfd to the mobile terminal 8. The first connection unit 30 stores the determined WFD channel value Vwfd in the memory 24 of the printer 10. As described above, in S64, the WFD channel value Vwfd is determined so that the WFD channel value Vwfd matches the non-WFD channel value Vap. Accordingly, it is possible to appropriately and appropriately execute communication using the WFD connection and communication using the non-WFD connection simultaneously.

S64を経て実行されるS66では、第1の接続部30は、G/O状態用のWPSネゴシエーションを実行する。これにより、第1の接続部30は、S64で決定されたWFDチャネル値Vwfdを利用して、携帯端末8とのWFD接続を確立する。AP4との非WFD接続が既に確立されているために、AP4との非WFD接続と、携帯端末8とのWFD接続と、の両方が確立されている状態が形成される。これにより、図3のWFD接続処理が終了する。   In S66 executed through S64, the first connection unit 30 executes WPS negotiation for the G / O state. Thereby, the first connection unit 30 establishes a WFD connection with the mobile terminal 8 using the WFD channel value Vwfd determined in S64. Since the non-WFD connection with the AP 4 has already been established, a state is formed in which both the non-WFD connection with the AP 4 and the WFD connection with the mobile terminal 8 are established. Thereby, the WFD connection process of FIG. 3 ends.

一方において、携帯端末8のIntent値が「15」である場合には、S48又はS50のG/Oネゴシエーションにおいて、プリンタ10がクライントになるべきことが決定される。この場合、第1の接続部30は、S58でNOと判断して、S60に進む。   On the other hand, when the Intent value of the mobile terminal 8 is “15”, it is determined in the G / O negotiation of S48 or S50 that the printer 10 should become a client. In this case, the first connection unit 30 determines NO in S58 and proceeds to S60.

S60では、第1の接続部30は、G/O状態の携帯端末8から、携帯端末8によって決定されたWFDチャネル値Vwfdを受信する。そして、チャネル判断部38は、受信済みのWFDチャネル値Vwfdと、現在確立されている非WFD接続で利用されている非WFDチャネル値Vapと、が一致するのか否かを判断する。   In S60, the first connection unit 30 receives the WFD channel value Vwfd determined by the mobile terminal 8 from the mobile terminal 8 in the G / O state. Then, the channel determination unit 38 determines whether or not the received WFD channel value Vwfd matches the non-WFD channel value Vap used in the currently established non-WFD connection.

例えば、S48のG/Oネゴシエーションでは制限リストが携帯端末8に通知されるために、S48のG/Oネゴシエーションが成功した場合には、携帯端末8は、WFDチャネル値Vwfdを、制限リストに含まれる非WFDチャネル値Vapに一致する値に決定する。この場合、S60では、第1の接続部30は、携帯端末8から、非WFDチャネル値Vapに一致するWFDチャネル値Vwfdを受信し、この結果、チャネル判断部38は、S60でYESと判断する。   For example, since the restriction list is notified to the portable terminal 8 in the G / O negotiation in S48, when the G / O negotiation in S48 is successful, the portable terminal 8 includes the WFD channel value Vwfd in the restriction list. Determined to be equal to the non-WFD channel value Vap. In this case, in S60, the first connection unit 30 receives the WFD channel value Vwfd that matches the non-WFD channel value Vap from the mobile terminal 8, and as a result, the channel determination unit 38 determines YES in S60. .

S60でYESの場合には、S66において、第1の接続部30は、クライアント状態用のWPSネゴシエーションを実行する。これにより、第1の接続部30は、携帯端末8から受信されたWFDチャネル値Vwfd(即ち、非WFDチャネル値Vapに一致する値)を利用して、携帯端末8とのWFD接続を確立する。AP4との非WFD接続が既に確立されているために、AP4との非WFD接続と、携帯端末8とのWFD接続と、の両方が確立されている状態が形成される。これにより、図3のWFD接続処理が終了する。   In the case of YES in S60, in S66, the first connection unit 30 executes WPS negotiation for the client state. Thereby, the first connection unit 30 establishes a WFD connection with the mobile terminal 8 by using the WFD channel value Vwfd received from the mobile terminal 8 (that is, a value that matches the non-WFD channel value Vap). . Since the non-WFD connection with the AP 4 has already been established, a state is formed in which both the non-WFD connection with the AP 4 and the WFD connection with the mobile terminal 8 are established. Thereby, the WFD connection process of FIG. 3 ends.

一方において、S50のG/Oネゴシエーションでは通常リストが携帯端末8に通知されるために、S50のG/Oネゴシエーションが成功した場合には、携帯端末8は、WFDチャネル値Vwfdを、非WFDチャネル値Vapに一致しない値に決定し得る。この場合、S60では、第1の接続部30は、携帯端末8から、非WFDチャネル値Vapに一致しないWFDチャネル値Vwfdを受信し得るために、この結果、チャネル判断部38は、S60でNOと判断し得る。   On the other hand, since the normal list is notified to the mobile terminal 8 in the G / O negotiation in S50, when the G / O negotiation in S50 is successful, the mobile terminal 8 sets the WFD channel value Vwfd to the non-WFD channel. A value that does not match the value Vap may be determined. In this case, in S60, the first connection unit 30 can receive the WFD channel value Vwfd that does not match the non-WFD channel value Vap from the mobile terminal 8, and as a result, the channel determination unit 38 determines NO in S60. It can be judged.

S60でNOの場合には、S62において、第1の接続部30は、WFD接続を確立することができないことを示す情報を、表示部14に表示させる。この場合、第1の接続部30は、携帯端末8とのWFD接続を確立しない。従って、AP4との非WFD接続のみが確立されている状態が維持される。ここでも、定常的に構築されるべき非WFDネットワークを優先する構成を採用している。S62が終了すると、図3のWFD接続処理が終了する。   In the case of NO in S60, in S62, the first connection unit 30 causes the display unit 14 to display information indicating that the WFD connection cannot be established. In this case, the first connection unit 30 does not establish a WFD connection with the mobile terminal 8. Therefore, the state where only the non-WFD connection with the AP 4 is established is maintained. Also here, a configuration in which priority is given to a non-WFD network to be constantly constructed is adopted. When S62 ends, the WFD connection process of FIG. 3 ends.

(具体例;図4及び図5)
続いて、図4及び図5を参照して、各機器4,8,10が実行する処理の様々なケースについて説明する。なお、図4及び図5のシーケンスは、プリンタ10が図2及び図3のフローチャートに従って処理を実行することによって実現される。
(Specific examples: FIGS. 4 and 5)
Next, with reference to FIGS. 4 and 5, various cases of processing executed by the devices 4, 8, and 10 will be described. 4 and 5 is realized when the printer 10 executes processing according to the flowcharts of FIGS. 2 and 3.

図4のケースは、プリンタ10とAP4との間に非WFD接続を確立させ、その後、プリンタ10と携帯端末8との間にWFD接続を確立させるケースを示す。   The case of FIG. 4 shows a case where a non-WFD connection is established between the printer 10 and the AP 4 and then a WFD connection is established between the printer 10 and the portable terminal 8.

プリンタ10に非WFD接続指示が入力されると、プリンタ10は、AP4から非WFDチャネル値Vapを受信し(図2のS13)、受信済みの非WFDチャネル値Vapを利用して、認証のための通信を実行する(S20)。これにより、プリンタ10とAP4との間に非WFD接続が確立される。   When a non-WFD connection instruction is input to the printer 10, the printer 10 receives the non-WFD channel value Vap from the AP 4 (S13 in FIG. 2), and uses the received non-WFD channel value Vap for authentication. (S20). Thereby, a non-WFD connection is established between the printer 10 and the AP 4.

続いて、プリンタ10にWFD接続指示が入力されると、プリンタ10は、図3のS40でYESと判断して、S48のG/Oネゴシエーションを実行する。ここでは、プリンタ10のIntent値として「14」が利用されると共に、非WFDチャネル値Vapのみを含む制限リストが携帯端末8に通知される。   Subsequently, when a WFD connection instruction is input to the printer 10, the printer 10 determines YES in S40 of FIG. 3, and executes the G / O negotiation of S48. Here, “14” is used as the Intent value of the printer 10 and a restriction list including only the non-WFD channel value Vap is notified to the portable terminal 8.

S48のG/Oネゴシエーションが成功すると(S52でYES)、プリンタ10は、通常、プリンタ10がG/Oになるべきことを決定する。S48のG/Oネゴシエーションでは、プリンタ10のIntent値として「14」が利用されるからである。この場合、プリンタ10は、S58でYESと判断し、非WFDチャネル値Vapを参照して、非WFDチャネル値Vapに一致するWFDチャネル値Vwfdを決定する(S64)。   If the G / O negotiation in S48 is successful (YES in S52), the printer 10 normally determines that the printer 10 should be G / O. This is because “14” is used as the Intent value of the printer 10 in the G / O negotiation in S48. In this case, the printer 10 determines YES in S58, refers to the non-WFD channel value Vap, and determines the WFD channel value Vwfd that matches the non-WFD channel value Vap (S64).

次いで、プリンタ10は、決定済みのWFDチャネル値Vwfdを利用して、G/O状態用のWPSネゴシエーションを実行する(S66)。これにより、プリンタ10と携帯端末8との間にWFD接続が確立される。この結果、AP4との非WFD接続と、携帯端末8とのWFD接続と、の両方が確立されている状態(以下では「両方接続状態」と呼ぶ)が形成される。   Next, the printer 10 uses the determined WFD channel value Vwfd to execute WPS negotiation for the G / O state (S66). Thereby, a WFD connection is established between the printer 10 and the portable terminal 8. As a result, a state in which both the non-WFD connection with the AP 4 and the WFD connection with the mobile terminal 8 are established (hereinafter referred to as “both connection state”) is formed.

一方において、S48のG/Oネゴシエーションが成功しても(S52でYES)、携帯端末8のIntent値が「15」である場合には、プリンタ10は、プリンタ10がクライアントになるべきことを決定する。この場合、プリンタ10は、S58でNOと判断するが、S60において、通常、携帯端末8から、非WFDチャネル値Vapに一致するWFDチャネル値Vwfdを受信する。S48のG/Oネゴシエーションでは、非WFDチャネル値Vapのみを含む制限リストが携帯端末8に通知されるために、携帯端末8が、通常、非WFDチャネル値Vapに一致するWFDチャネル値Vwfdを決定するからである。従って、プリンタ10は、S60でYESと判断する。   On the other hand, even if the G / O negotiation in S48 is successful (YES in S52), if the Intent value of the mobile terminal 8 is “15”, the printer 10 determines that the printer 10 should be a client. To do. In this case, the printer 10 determines NO in S58, but normally receives the WFD channel value Vwfd that matches the non-WFD channel value Vap from the portable terminal 8 in S60. In the G / O negotiation of S48, since the restriction list including only the non-WFD channel value Vap is notified to the portable terminal 8, the portable terminal 8 normally determines the WFD channel value Vwfd that matches the non-WFD channel value Vap. Because it does. Accordingly, the printer 10 determines YES in S60.

次いで、プリンタ10は、受信済みのWFDチャネル値Vwfd(即ち非WFDチャネル値Vapに一致する値)を利用して、クライアント状態用のWPSネゴシエーションを実行する(S66)。これにより、プリンタ10と携帯端末8との間にWFD接続が確立される。この結果、両方接続状態が形成される。   Next, the printer 10 uses the received WFD channel value Vwfd (that is, a value matching the non-WFD channel value Vap) to execute WPS negotiation for the client state (S66). Thereby, a WFD connection is established between the printer 10 and the portable terminal 8. As a result, both connection states are formed.

例えば、S48のG/Oネゴシエーションにおいて、携帯端末8のチャネルリストに、非WFDチャネル値Vapが含まれない場合には、S48のG/Oネゴシエーションが失敗する(S52でNO)。この場合、図5に示されるように、プリンタ10は、S50のG/Oネゴシエーションを実行する。ここでは、プリンタ10のIntent値として「14」が利用されると共に、1〜14chの全ての値を含む通常リストが携帯端末8に通知される。これにより、通常、S50のG/Oネゴシエーションが成功する。   For example, if the non-WFD channel value Vap is not included in the channel list of the portable terminal 8 in the G / O negotiation in S48, the G / O negotiation in S48 fails (NO in S52). In this case, as shown in FIG. 5, the printer 10 executes the G / O negotiation of S50. Here, “14” is used as the Intent value of the printer 10, and a normal list including all values of 1 to 14 ch is notified to the mobile terminal 8. Thereby, the G / O negotiation of S50 is normally successful.

S50のG/Oネゴシエーションが成功すると(S52でYES)、プリンタ10は、通常、プリンタ10がG/Oになるべきことを決定する。S50のG/Oネゴシエーションでは、プリンタ10のIntent値として「14」が利用されるからである。この場合、プリンタ10は、S58でYESと判断し、非WFDチャネル値Vapを参照して、非WFDチャネル値Vapに一致するWFDチャネル値Vwfdを決定する(S64)。   If the G / O negotiation in S50 is successful (YES in S52), the printer 10 normally determines that the printer 10 should be G / O. This is because “14” is used as the Intent value of the printer 10 in the G / O negotiation in S50. In this case, the printer 10 determines YES in S58, refers to the non-WFD channel value Vap, and determines the WFD channel value Vwfd that matches the non-WFD channel value Vap (S64).

次いで、プリンタ10は、決定済みのWFDチャネル値Vwfdを利用して、G/O状態用のWPSネゴシエーションを実行する(S66)。これにより、プリンタ10と携帯端末8との間にWFD接続が確立される。この結果、両方接続状態が形成される。   Next, the printer 10 uses the determined WFD channel value Vwfd to execute WPS negotiation for the G / O state (S66). Thereby, a WFD connection is established between the printer 10 and the portable terminal 8. As a result, both connection states are formed.

一方において、S50のG/Oネゴシエーションが成功しても(S52でYES)、携帯端末8のIntent値が「15」である場合には、プリンタ10は、プリンタ10がクライアントになるべきことを決定する。この場合、プリンタ10は、S58でNOと判断し、通常、携帯端末8から、非WFDチャネル値Vapに一致しないWFDチャネル値Vwfdを受信する。S50のG/Oネゴシエーションでは、通常リストが携帯端末8に通知されるために、携帯端末8が、通常、非WFDチャネル値Vapに一致しないWFDチャネル値Vwfdを決定するからである。従って、プリンタ10は、S60でNOと判断する。   On the other hand, even if the G / O negotiation in S50 is successful (YES in S52), if the Intent value of the mobile terminal 8 is “15”, the printer 10 determines that the printer 10 should be a client. To do. In this case, the printer 10 determines NO in S <b> 58 and normally receives a WFD channel value Vwfd that does not match the non-WFD channel value Vap from the mobile terminal 8. This is because in the G / O negotiation at S50, the normal list is notified to the mobile terminal 8, and thus the mobile terminal 8 normally determines the WFD channel value Vwfd that does not match the non-WFD channel value Vap. Accordingly, the printer 10 determines NO in S60.

次いで、プリンタ10は、WFD接続を確立することができないことを示す情報を、表示部14に表示させる(S62)。この場合、プリンタ10は、携帯端末8とのWFD接続を確立しない。ただし、プリンタ10は、AP4との非WFD接続を維持する。従って、AP4との非WFD接続のみが確立されている状態(以下では「単一接続状態」と呼ぶ)が形成される。   Next, the printer 10 causes the display unit 14 to display information indicating that the WFD connection cannot be established (S62). In this case, the printer 10 does not establish a WFD connection with the mobile terminal 8. However, the printer 10 maintains a non-WFD connection with the AP 4. Therefore, a state in which only a non-WFD connection with the AP 4 is established (hereinafter referred to as a “single connection state”) is formed.

(第1実施例の効果)
図4及び図5のケースに示されるように、プリンタ10は、非WFD接続が確立されている状態で、WFD接続が確立されるべき場合に、非WFDチャネル値Vapを参照して、非WFDチャネル値Vapに一致するWFDチャネル値Vwfdを決定する。これにより、プリンタ10は、両方接続状態を適切に形成することができる。従って、プリンタ10は、WFD接続を利用して、携帯端末8から印刷データを受信することができると共に、非WFD接続を利用して、PC6からAP4を介して印刷データを受信することができる。
(Effects of the first embodiment)
As shown in the cases of FIGS. 4 and 5, the printer 10 refers to the non-WFD channel value Vap when the WFD connection is to be established in a state where the non-WFD connection is established. A WFD channel value Vwfd that matches the channel value Vap is determined. Thereby, the printer 10 can appropriately form both connection states. Therefore, the printer 10 can receive print data from the portable terminal 8 using the WFD connection, and can receive print data from the PC 6 via the AP 4 using the non-WFD connection.

なお、プリンタ10は、無線インターフェイス18の構成上、異なる2個のチャネル値を利用して、適切な無線通信を実行することができない。従って、図5のケースに示されるように、プリンタ10は、非WFD接続が確立されている状態で、WFD接続が確立されるべき場合に、WFDチャネル値Vwfdと非WFDチャネル値Vapとが一致しないと、非WFD接続のみが確立されている単一接続状態を形成する。また、図2のフローチャートに示されるように、プリンタ10は、WFD接続が確立されている状態で、非WFD接続が確立されるべき場合(S14でYESの場合)に、WFD接続を切断して、非WFD接続のみが確立されている単一接続状態を形成する。これにより、プリンタ10は、非WFD接続を利用して、PC6からAP4を介して印刷データを適切に受信することができる。特に、プリンタ10は、定常的に確立されるべき非WFD接続を優先して、単一接続状態を形成する。このために、プリンタ10及びPC6が設置されている環境(例えば上記の特定の会社内)において、PC6のユーザが、プリンタ10で印刷を実行させることができないという事象が発生するのを抑制することができる。本実施例によると、プリンタ10は、適切な接続状態を形成することができる。   Note that the printer 10 cannot execute appropriate wireless communication using two different channel values due to the configuration of the wireless interface 18. Therefore, as shown in the case of FIG. 5, the printer 10 matches the WFD channel value Vwfd and the non-WFD channel value Vap when the WFD connection should be established in a state where the non-WFD connection is established. Otherwise, it forms a single connection state where only non-WFD connections are established. As shown in the flowchart of FIG. 2, the printer 10 disconnects the WFD connection when the WFD connection is established and the non-WFD connection should be established (YES in S14). Form a single connection state where only non-WFD connections are established. Accordingly, the printer 10 can appropriately receive print data from the PC 6 via the AP 4 using a non-WFD connection. In particular, the printer 10 gives priority to non-WFD connections that are to be established constantly and forms a single connection state. For this reason, in the environment where the printer 10 and the PC 6 are installed (for example, in the above specific company), the occurrence of an event that the user of the PC 6 cannot execute printing with the printer 10 is suppressed. Can do. According to this embodiment, the printer 10 can form an appropriate connection state.

なお、プリンタ10は、非WFD接続が確立されていない状態で、WFD接続が確立されるべき場合に、比較的に小さいプリンタ10のIntent値「2」を利用する(図3のS42)。このために、プリンタ10がクライアントになるべきことが決定され易い。従って、プリンタ10の処理負荷の増加を抑制しつつ、プリンタ10と携帯端末8との間にWFD接続を適切に確立させることができる。   The printer 10 uses the relatively small Intent value “2” of the printer 10 when the WFD connection should be established in a state where the non-WFD connection is not established (S42 in FIG. 3). For this reason, it is easy to determine that the printer 10 should be a client. Therefore, it is possible to appropriately establish a WFD connection between the printer 10 and the portable terminal 8 while suppressing an increase in the processing load of the printer 10.

一方において、図4及び図5のケースに示されるように、プリンタ10は、非WFD接続が確立されている状態で、WFD接続が確立されるべき場合に、比較的に大きいプリンタ10のIntent値「14」を利用する(図3のS48又はS50)。このために、プリンタ10がG/Oになるべきことが決定され易い。従って、プリンタ10は、非WFDチャネル値Vapを参照して、非WFDチャネル値Vapに一致するWFDチャネル値Vwfdを適切に決定することができる。この結果、プリンタ10は、両方接続状態を適切に形成することができる。   On the other hand, as shown in the cases of FIGS. 4 and 5, the printer 10 has a relatively large Intent value of the printer 10 when the WFD connection should be established in a state where the non-WFD connection is established. “14” is used (S48 or S50 in FIG. 3). For this reason, it is easy to determine that the printer 10 should be G / O. Therefore, the printer 10 can appropriately determine the WFD channel value Vwfd that matches the non-WFD channel value Vap with reference to the non-WFD channel value Vap. As a result, the printer 10 can appropriately form both connection states.

なお、仮に、プリンタ10がクライアントになるべきことが決定されても、プリンタ10は、制限リストを携帯端末8に通知し得る(図3のS48)。このために、プリンタ10は、携帯端末8から、非WFDチャネル値Vapに一致するWFDチャネル値Vwfdを受信することができる(S60でYES)。この結果、プリンタ10は、両方接続状態を適切に形成することができる。また、プリンタ10が制限リストを携帯端末8に通知しても、G/Oネゴシエーションが失敗する場合(S52でNO)には、プリンタ10は、非WFDチャネル値Vapとは異なるチャネル値を含む通常リストを、携帯端末8に通知する(S50)。この結果、G/Oネゴシエーションが成功し得るために(S52でYES)に、プリンタ10は、携帯端末8とのWFD接続を適切に確立し得る。   Even if it is determined that the printer 10 should become a client, the printer 10 can notify the portable terminal 8 of the restriction list (S48 in FIG. 3). For this reason, the printer 10 can receive the WFD channel value Vwfd that matches the non-WFD channel value Vap from the portable terminal 8 (YES in S60). As a result, the printer 10 can appropriately form both connection states. Further, even if the printer 10 notifies the portable terminal 8 of the restriction list, if the G / O negotiation fails (NO in S52), the printer 10 normally includes a channel value different from the non-WFD channel value Vap. The list is notified to the portable terminal 8 (S50). As a result, since the G / O negotiation can be successful (YES in S52), the printer 10 can appropriately establish a WFD connection with the portable terminal 8.

(対応関係)
プリンタ10、携帯端末8、AP4が、それぞれ、「無線通信装置」、「第1のデバイス」、「第2のデバイス」の一例である。G/O状態、クライアント状態が、それぞれ、「親局状態」、「子局状態」の一例である。G/Oネゴシエーションが、「状態決定処理」の一例である。Intent値「2」、Intent値「14」が、それぞれ、「第1の設定値」、「第2の設定値」の一例である。図3のS48及びS50でプリンタ10のIntent値として「14」を利用することが、「特定の処理」の一例である。WFD接続、非WFD接続が、それぞれ、「第1種の接続」、「第2種の接続」の一例である。WFDチャネル値Vwfd、非WFDチャネル値Vapが、それぞれ、「第1の無線チャネルの値」、「第2の無線チャネルの値」の一例である。
(Correspondence)
The printer 10, the portable terminal 8, and the AP 4 are examples of “wireless communication apparatus”, “first device”, and “second device”, respectively. The G / O state and the client state are examples of the “master station state” and the “slave station state”, respectively. G / O negotiation is an example of “state determination processing”. Intent value “2” and Intent value “14” are examples of “first setting value” and “second setting value”, respectively. Using “14” as the Intent value of the printer 10 in S48 and S50 of FIG. 3 is an example of “specific processing”. The WFD connection and the non-WFD connection are examples of “first type connection” and “second type connection”, respectively. The WFD channel value Vwfd and the non-WFD channel value Vap are examples of the “first radio channel value” and the “second radio channel value”, respectively.

(第2実施例)
第1実施例と異なる点を説明する。本実施例では、図3のWFD接続処理の代わりに、図6のWFD接続処理が実行される。図6のS40〜S44は、図3のS40〜S44と同様である。S40でYESの場合、S61において、第1の接続部30は、プリンタ10を自律G/Oモードに設定する。自律G/Oモードは、G/O状態で動作することをプリンタ10に維持させるモードである。従って、S60の段階ではWFD接続が確立されていないが、プリンタ10は、G/O状態に設定されている。この段階では、プリンタ10が管理している管理リストには、クライアント状態の機器の識別情報が記述されていない。
(Second embodiment)
Differences from the first embodiment will be described. In this embodiment, the WFD connection process of FIG. 6 is executed instead of the WFD connection process of FIG. S40 to S44 in FIG. 6 are the same as S40 to S44 in FIG. If YES in S40, in S61, the first connection unit 30 sets the printer 10 to the autonomous G / O mode. The autonomous G / O mode is a mode in which the printer 10 maintains operation in the G / O state. Accordingly, the WFD connection is not established at the stage of S60, but the printer 10 is set to the G / O state. At this stage, the identification information of the device in the client state is not described in the management list managed by the printer 10.

S60でプリンタ10が自律G/Oモードに設定されると、プリンタ10は、G/Oネゴシエーションを実行しない。上述したように、携帯端末8は、WFD接続指示が携帯端末8に入力される場合に、携帯端末8の周囲に存在するクライアント状態の機器を検索するSearch処理を実行するが、それに加えて、携帯端末8の周囲に存在するG/O状態の機器(即ちプリンタ10)を検索するScan処理を実行する。これにより、携帯端末8の表示部に、プリンタ10に関する情報を含む機器リストが表示される。携帯端末8のユーザが機器リストの中からG/O状態のプリンタ10を選択すると、携帯端末8は、G/Oネゴシエーションを実行せずに、携帯端末8がクライアントになるべきことを決定する。   When the printer 10 is set to the autonomous G / O mode in S60, the printer 10 does not execute G / O negotiation. As described above, when the WFD connection instruction is input to the mobile terminal 8, the mobile terminal 8 executes the search process for searching for the client-state devices that exist around the mobile terminal 8. Scan processing for searching for a device in the G / O state (that is, the printer 10) existing around the portable terminal 8 is executed. As a result, a device list including information related to the printer 10 is displayed on the display unit of the mobile terminal 8. When the user of the mobile terminal 8 selects the printer 10 in the G / O state from the device list, the mobile terminal 8 determines that the mobile terminal 8 should become a client without executing the G / O negotiation.

なお、図6のS64及びS66は、図3のS64及びS66と同様である。即ち、S64では、決定部34は、非WFDチャネル値Vapを参照して、非WFDチャネル値Vapに一致するWFDチャネル値Vwfdを決定する。次いで、S66では、第1の接続部30は、WFDチャネル値Vwfdを利用して、G/O状態用のWPSネゴシエーションを実行する。これにより、プリンタ10と携帯端末8との間にWFD接続が確立される。   Note that S64 and S66 in FIG. 6 are the same as S64 and S66 in FIG. That is, in S64, the determination unit 34 refers to the non-WFD channel value Vap to determine a WFD channel value Vwfd that matches the non-WFD channel value Vap. Next, in S66, the first connection unit 30 performs WPS negotiation for the G / O state using the WFD channel value Vwfd. Thereby, a WFD connection is established between the printer 10 and the portable terminal 8.

(具体例;図7)
本実施例では、図4及び図5のケースの代わりに、図7のケースが実現される。非WFD接続が確立されるまでの各処理は、図4のケースと同様である。ただし、上述したように、図6のS61において、プリンタ10は、プリンタ10を自律G/Oモードに設定する。従って、プリンタ10は、非WFDチャネル値Vapを参照して、非WFDチャネル値Vapに一致するWFDチャネル値Vwfdを決定することができる(S64)。次いで、プリンタ10は、WFDチャネル値Vwfdを利用して、G/O状態用のWPSネゴシエーションを実行し、携帯端末8とのWFD接続が確立する(S66)。この結果、両方接続状態が形成される。
(Specific example: FIG. 7)
In the present embodiment, the case of FIG. 7 is realized instead of the cases of FIGS. 4 and 5. Each process until the non-WFD connection is established is the same as the case of FIG. However, as described above, in S61 in FIG. 6, the printer 10 sets the printer 10 to the autonomous G / O mode. Accordingly, the printer 10 can determine the WFD channel value Vwfd that matches the non-WFD channel value Vap with reference to the non-WFD channel value Vap (S64). Next, the printer 10 uses the WFD channel value Vwfd to execute WPS negotiation for the G / O state, and establishes a WFD connection with the mobile terminal 8 (S66). As a result, both connection states are formed.

(第2実施例の効果)
図7のケースに示されるように、プリンタ10は、非WFD接続が確立されている状態で、WFD接続が確立されるべき場合に、プリンタ10を自律G/Oモードに設定する。この結果、プリンタ10は、非WFDチャネル値Vapを参照して、非WFDチャネル値Vapに一致するWFDチャネル値Vwfdを適切に決定することができる。これにより、プリンタ10は、両方接続状態を適切に形成することができる。本実施例では、自律G/Oモードが「特定のモード」の一例である。そして、図6のS61でプリンタ10を自律G/Oモードに設定することが「特定の処理」の一例である。
(Effect of the second embodiment)
As shown in the case of FIG. 7, the printer 10 sets the printer 10 to the autonomous G / O mode when the WFD connection is to be established in a state where the non-WFD connection is established. As a result, the printer 10 can appropriately determine the WFD channel value Vwfd that matches the non-WFD channel value Vap with reference to the non-WFD channel value Vap. Thereby, the printer 10 can appropriately form both connection states. In this embodiment, the autonomous G / O mode is an example of a “specific mode”. Then, setting the printer 10 to the autonomous G / O mode in S61 of FIG. 6 is an example of “specific processing”.

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

(変形例1)「無線通信装置」は、プリンタ10に限られず、無線通信可能な他の機器(例えば、携帯端末、PC、サーバ、FAX装置、コピー機、スキャナ、多機能機等)であってもよい。また、「第1のデバイス」及び「第2のデバイス」は、携帯端末8及びAP4に限られず、無線通信可能な他の機器(例えば、PC、サーバ、プリンタ、FAX装置、コピー機、スキャナ、多機能機等)であってもよい。 (Modification 1) The “wireless communication apparatus” is not limited to the printer 10 and may be any other device capable of wireless communication (for example, a portable terminal, a PC, a server, a FAX device, a copier, a scanner, a multi-function device, etc.) May be. The “first device” and the “second device” are not limited to the portable terminal 8 and the AP 4, and other devices capable of wireless communication (for example, a PC, a server, a printer, a FAX apparatus, a copier, a scanner, A multi-function machine).

(変形例2)「親局状態」は、WFDのG/O状態に限られず、無線ネットワークを構成する他のデバイスを管理(例えば、他のデバイスに関する情報のリストを管理すること、他のデバイス間の無線通信を中継すること等)する状態であればよい。また、「子局状態」は、WFDのクライアント状態に限られず、親局状態の機器によって管理される状態であればよい。従って、「第1種の接続」は、WFD接続に限られず、無線通信装置が親局状態と子局状態とのうちの一方の状態で選択的に動作するための他の種類の接続であってもよい。 (Modification 2) The “master station state” is not limited to the G / O state of the WFD, but manages other devices configuring the wireless network (for example, managing a list of information on other devices, other devices) It may be in a state of relaying wireless communication between them). The “slave station state” is not limited to the WFD client state, but may be a state managed by a device in the parent station state. Therefore, the “first type connection” is not limited to the WFD connection, but is another type of connection for the wireless communication apparatus to selectively operate in one of the master station state and the slave station state. May be.

(変形例3)「第2種の接続」は、AP4との非WFD接続に限られず、例えば、PC等とのWFD接続であってもよい。即ち、「第1種の接続」と「第2種の接続」とは、同じ種類の接続であってもよい。また、「第2種の接続」は、例えば、PC等とのアドホックの接続であってもよい。 (Modification 3) The “second type connection” is not limited to the non-WFD connection with the AP 4 and may be, for example, a WFD connection with a PC or the like. That is, the “first type connection” and the “second type connection” may be the same type of connection. Further, the “second type connection” may be, for example, an ad hoc connection with a PC or the like.

(変形例4)例えば、「第2種の接続」がPC6とのアドホックの接続である場合には、以下の変形例4−1〜4−3のいずれかの構成を採用してもよい。 (Modification 4) For example, when the “second type connection” is an ad hoc connection with the PC 6, any one of the following modifications 4-1 to 4-3 may be adopted.

(変形例4−1)PC6とのアドホックの接続が確立されている状態(アドホックの無線チャネルの値として「Vad」が利用されている)で、携帯端末8とのWFD接続が確立されるべき状況を想定する。例えば、G/Oネゴシエーションでプリンタ10がG/Oになるべきことが決定される場合に、決定部34は、まず、WFDチャネル値Vwfdを決定し、その後、さらに、WFDチャネル値Vwfdに一致するアドホックの無線チャネルの値Vad’(Vad’はVadとは異なる)を決定する。この場合、第1の接続部30は、WFDチャネル値Vwfdを利用して、携帯端末8とのWFD接続を確立する。さらに、第2の接続部32は、アドホックの無線チャネルの値Vad’を利用して、PC6とのアドホックの接続を再確立する。即ち、一般的に言うと、決定部は、第2のデバイスとの第2種の接続が確立されている状態で、第1のデバイスとの第1種の接続が確立されるべき場合に、第1の無線チャネルの値(本変形例ではVwfd)と、第2の無線チャネルの値(本変形例ではVad’)と、の両方を決定してもよい。 (Modification 4-1) In a state where an ad hoc connection with the PC 6 has been established (“Vad” is used as the value of the ad hoc radio channel), a WFD connection with the mobile terminal 8 should be established. Assume the situation. For example, when it is determined in the G / O negotiation that the printer 10 should become G / O, the determination unit 34 first determines the WFD channel value Vwfd and then further matches the WFD channel value Vwfd. An ad hoc wireless channel value Vad ′ (Vad ′ is different from Vad) is determined. In this case, the first connection unit 30 establishes a WFD connection with the mobile terminal 8 by using the WFD channel value Vwfd. Further, the second connection unit 32 reestablishes the ad hoc connection with the PC 6 by using the ad hoc radio channel value Vad ′. That is, generally speaking, the determination unit is in a state where the first type of connection with the first device is to be established while the second type of connection with the second device is established. Both the value of the first radio channel (Vwfd in the present modification) and the value of the second radio channel (Vad ′ in the present modification) may be determined.

(変形例4−2)PC6とのアドホックの接続が確立されている状態(アドホックの無線チャネルの値として「Vad」が利用されている)で、携帯端末8とのWFD接続が確立されるべき状況を想定する。例えば、G/Oネゴシエーションでプリンタ10がクライアントになるべきことが決定される場合に、第1の接続部30は、携帯端末8から、携帯端末8によって決定されたWFDチャネル値Vwfdを受信する。その後、決定部34は、WFDチャネル値Vwfdに一致するアドホックの無線チャネルの値Vad’(Vad’はVadとは異なる)を決定してもよい。この場合、第1の接続部30は、WFDチャネル値Vwfdを利用して、携帯端末8とのWFD接続を確立する。さらに、第2の接続部32は、アドホックの無線チャネルの値Vad’を利用して、PC6とのアドホックの接続を再確立する。即ち、一般的に言うと、決定部は、第2のデバイスとの第2種の接続が確立されている状態で、第1のデバイスとの第1種の接続が確立されるべき場合に、第2の無線チャネルの値(本変形例ではVad’)を決定してもよい。 (Modification 4-2) A WFD connection with the mobile terminal 8 should be established in a state where an ad hoc connection with the PC 6 has been established (“Vad” is used as the value of the ad hoc radio channel). Assume the situation. For example, when it is determined by G / O negotiation that the printer 10 should be a client, the first connection unit 30 receives the WFD channel value Vwfd determined by the mobile terminal 8 from the mobile terminal 8. Thereafter, the determination unit 34 may determine an ad hoc radio channel value Vad ′ (Vad ′ is different from Vad) that matches the WFD channel value Vwfd. In this case, the first connection unit 30 establishes a WFD connection with the mobile terminal 8 by using the WFD channel value Vwfd. Further, the second connection unit 32 reestablishes the ad hoc connection with the PC 6 by using the ad hoc radio channel value Vad ′. That is, generally speaking, the determination unit is in a state where the first type of connection with the first device is to be established while the second type of connection with the second device is established. The value of the second radio channel (Vad ′ in this modification) may be determined.

(変形例4−3)携帯端末8とのWFD接続が確立されている状態で、PC6とのアドホックの接続が確立されるべき状況を想定する。この場合、決定部34は、WFDチャネル値Vwfdに一致するアドホックの無線チャネルの値Vadを決定してもよい。この場合、第2の接続部32は、アドホックの無線チャネルの値Vadを利用して、PC6とのアドホックの接続を確立する。即ち、一般的に言うと、決定部は、第1のデバイスとの第1種の接続が確立されている状態で、第2のデバイスとの第2種の接続が確立されるべき場合に、第2の無線チャネルの値(本変形例ではVad)を決定してもよい。 (Modification 4-3) A situation is assumed in which an ad hoc connection with the PC 6 is to be established in a state where the WFD connection with the mobile terminal 8 is established. In this case, the determination unit 34 may determine the ad hoc radio channel value Vad that matches the WFD channel value Vwfd. In this case, the second connection unit 32 establishes an ad hoc connection with the PC 6 by using the ad hoc wireless channel value Vad. That is, generally speaking, the determination unit is in a state where the first type of connection with the first device is established and the second type of connection with the second device is to be established. The value of the second radio channel (Vad in this modification) may be determined.

上記の第1及び第2実施例と、上記の各変形例4−1〜4−3と、から明らかなように、一般的に言うと、決定部は、特定の場合に、第1の無線チャネルの値と第2の無線チャネルの値とが一致するように、第1の無線チャネルの値と第2の無線チャネルの値とのうちの少なくとも一方を決定すればよい。   Generally speaking, as will be apparent from the first and second embodiments described above and the modifications 4-1 to 4-3 described above, the determination unit, in a specific case, performs the first wireless operation. What is necessary is just to determine at least one of the value of a 1st radio channel and the value of a 2nd radio channel so that the value of a channel and the value of a 2nd radio channel may correspond.

(変形例5)上記の各実施例では、G/Oネゴシエーション(図3のS44等参照)において、第1の接続部30は、プリンタ10のIntent値が、携帯端末8のIntent値よりも大きい場合に、プリンタ10がG/Oになるべきことを決定する。これに代えて、第1の接続部30は、プリンタ10のIntent値が、携帯端末8のIntent値よりも小さい場合に、プリンタ10がG/Oになるべきことを決定してもよい。上記の第1実施例では、「第2の設定値」が「第1の設定値」よりも大きい値であるが、本変形例では、「第2の設定値」が「第1の設定値」よりも小さい値であってもよい。 (Modification 5) In each of the above embodiments, in the G / O negotiation (see S44 in FIG. 3 and the like), the first connection unit 30 has the Intent value of the printer 10 larger than the Intent value of the mobile terminal 8. If so, it determines that the printer 10 should be G / O. Instead, the first connection unit 30 may determine that the printer 10 should be G / O when the Intent value of the printer 10 is smaller than the Intent value of the mobile terminal 8. In the first embodiment, the “second set value” is larger than the “first set value”. However, in the present modification, the “second set value” is “the first set value”. The value may be smaller than “”.

(変形例6)上記の第1実施例では、図3のS48,S50において、第1の接続部30は、プリンタ10がG/Oになるべきことが決定され易いように、プリンタ10のIntent値として「14」を利用する。これに代えて、第1の接続部30は、プリンタ10のIntent値を携帯端末8に送信する前に、携帯端末8から、携帯端末8のIntent値を受信してもよい。そして、第1の接続部30は、携帯端末8のIntent値よりも大きいプリンタ10のIntent値を決定し、決定済みのプリンタ10のIntent値を携帯端末8に送信してもよい。この場合も、プリンタ10がG/Oになるべきことが決定され易くなる。本変形例では、携帯端末8のIntent値よりも大きいプリンタ10のIntent値を利用することが、「特定の処理」の一例である。 (Modification 6) In the first embodiment described above, in S48 and S50 of FIG. 3, the first connection unit 30 determines that the printer 10 should be G / O so that the Intent of the printer 10 can be easily determined. “14” is used as the value. Instead, the first connection unit 30 may receive the Intent value of the mobile terminal 8 from the mobile terminal 8 before transmitting the Intent value of the printer 10 to the mobile terminal 8. Then, the first connection unit 30 may determine an Intent value of the printer 10 that is larger than the Intent value of the mobile terminal 8 and transmit the determined Intent value of the printer 10 to the mobile terminal 8. Also in this case, it is easy to determine that the printer 10 should be G / O. In the present modification, using the Intent value of the printer 10 that is larger than the Intent value of the mobile terminal 8 is an example of “specific processing”.

(変形例7)上記の各実施例では、無線チャネルの値の範囲として1ch〜14chが利用される。これは、日本で利用される仕様である。これに代えて、無線チャネルの値の範囲として、1ch〜11chが利用されてもよいし(米国の仕様)、1ch〜13chが利用されてもよいし(欧州の仕様)、他の範囲が利用されてもよい。 (Modification 7) In each of the above embodiments, 1ch to 14ch are used as the range of the radio channel value. This is a specification used in Japan. Instead, as the range of values of the radio channel, 1ch to 11ch may be used (US specification), 1ch to 13ch may be used (European specification), or other ranges may be used May be.

(変形例8)上記の各実施例では、WFD接続が確立されている状態で、非WFD接続が確立されるべき状況(図2のS14でYESの場合)において、第1の接続部30がWFD接続を必ず切断する構成を採用している。これに代えて、第1の接続部30は、上記の状況において、プリンタ10がクライアント状態で動作している場合には、WFD接続を切断してもよい。また、第1の接続部30は、上記の状況において、プリンタ10がG/O状態で動作しており、かつ、WFD接続で現在利用されているWFDチャネル値と、図2のS13で受信された非WFDチャネル値と、が一致する場合には、WFD接続を切断せずに維持してもよい。また、第1の接続部30は、上記の状況において、プリンタ10がG/O状態で動作しており、かつ、WFDチャネル値と非WFDチャネル値とが一致しない場合には、WFD接続を切断してもよい。 (Modification 8) In each of the embodiments described above, the first connection unit 30 is in a situation where a non-WFD connection is to be established in a state where the WFD connection is established (in the case of YES in S14 in FIG. 2). A configuration that always disconnects the WFD connection is adopted. Alternatively, the first connection unit 30 may disconnect the WFD connection when the printer 10 is operating in the client state in the above situation. In the above situation, the first connection unit 30 receives the WFD channel value currently used in the WFD connection and the SFD of FIG. 2 when the printer 10 is operating in the G / O state. If the non-WFD channel value matches, the WFD connection may be maintained without being disconnected. Further, in the above situation, the first connection unit 30 disconnects the WFD connection when the printer 10 is operating in the G / O state and the WFD channel value and the non-WFD channel value do not match. May be.

(変形例9)上記の各実施例では、プリンタ10のCPU22がソフトウェアに従って処理を実行することによって、各部30〜38が実現される。これに代えて、各部30〜38のうちの少なくとも一部は、論理回路等のハードウェアによって実現されてもよい。 (Modification 9) In each of the above-described embodiments, the units 30 to 38 are realized by the CPU 22 of the printer 10 executing processing according to software. Instead, at least a part of each of the units 30 to 38 may be realized by hardware such as a logic circuit.

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

2:通信システム、4:AP、6:PC、8:携帯端末、10:プリンタ、Vwfd:WFDチャネル値、Vap:非WFDチャネル値   2: communication system, 4: AP, 6: PC, 8: portable terminal, 10: printer, Vwfd: WFD channel value, Vap: non-WFD channel value

Claims (12)

無線ネットワークの親局として機能する親局状態と、前記無線ネットワークの子局として機能する子局状態と、を含む複数の状態のうちのいずれかの状態で選択的に動作可能な無線通信装置であって、
他のデバイス及び前記無線通信装置のうちの一方が前記親局状態で動作すべきことを決定すると共に、前記他のデバイス及び前記無線通信装置のうちの他方が前記子局状態で動作すべきことを決定する状態決定処理を実行して、前記無線通信装置が前記状態決定処理で決定された状態で動作するように、前記他のデバイスとの第1種の接続を確立する第1の接続部であって、第1のデバイスとの前記第1種の接続が確立されるべき場合に、第1の無線チャネルを利用して、前記第1のデバイスとの前記第1種の接続を確立する前記第1の接続部と、
他のデバイスとの第2種の接続を確立する第2の接続部であって、前記第1のデバイスとは異なる第2のデバイスとの前記第2種の接続が確立されるべき場合に、第2の無線チャネルを利用して、前記第2のデバイスとの前記第2種の接続を確立する前記第2の接続部と、
前記第1のデバイスとの前記第1種の接続及び前記第2のデバイスとの前記第2種の接続のうちの一方の接続が確立されている状態で、前記第1のデバイスとの前記第1種の接続及び前記第2のデバイスとの前記第2種の接続のうちの他方の接続が確立されるべき特定の場合に、前記第1の無線チャネルの値と前記第2の無線チャネルの値とが一致するように、前記第1の無線チャネルの値と前記第2の無線チャネルの値とのうちの少なくとも一方を決定する決定部と、
を備える無線通信装置。
A wireless communication apparatus capable of selectively operating in any one of a plurality of states including a master station state that functions as a master station of a wireless network and a slave station state that functions as a slave station of the wireless network There,
It is determined that one of the other device and the wireless communication apparatus should operate in the master station state, and the other of the other device and the wireless communication apparatus should operate in the slave station state. A first connection unit that establishes a first type of connection with the other device so that the wireless communication apparatus operates in the state determined in the state determination process. A first wireless channel is used to establish the first type of connection with the first device when the first type of connection with the first device is to be established. The first connecting portion;
A second connection for establishing a second type of connection with another device, wherein the second type of connection with a second device different from the first device is to be established; Using the second radio channel to establish the second type of connection with the second device; and
In a state where one of the first type connection with the first device and the second type connection with the second device is established, the first connection with the first device is established. The value of the first radio channel and the value of the second radio channel in a specific case where one type of connection and the other of the second type of connections with the second device are to be established. A determining unit that determines at least one of the value of the first radio channel and the value of the second radio channel so that the values match;
A wireless communication device comprising:
前記特定の場合は、前記第2のデバイスとの前記第2種の接続が確立されている状態で、前記第1のデバイスとの前記第1種の接続が確立されるべき場合であり、
前記決定部は、前記特定の場合に、前記第2のデバイスとの前記第2種の接続で利用されている前記第2の無線チャネルの値を参照して、前記第2の無線チャネルの値に一致する前記第1の無線チャネルの値を決定する、請求項1に記載の無線通信装置。
The specific case is a case where the first type of connection with the first device is to be established in a state where the second type of connection with the second device is established;
The determination unit refers to a value of the second radio channel with reference to a value of the second radio channel used in the second type of connection with the second device in the specific case. The wireless communication apparatus according to claim 1, wherein a value of the first wireless channel that matches the value is determined.
前記第1の接続部は、前記特定の場合に、前記無線通信装置を前記親局状態で動作させるための特定の処理を実行し、
前記決定部は、前記特定の処理の後に、前記第2の無線チャネルの値を参照して、前記第2の無線チャネルの値に一致する前記第1の無線チャネルの値を決定する、請求項2に記載の無線通信装置。
The first connection unit performs a specific process for operating the wireless communication device in the master station state in the specific case,
The determination unit, after the specific processing, refers to a value of the second radio channel, and determines a value of the first radio channel that matches a value of the second radio channel. 2. A wireless communication device according to 2.
前記第1の接続部は、さらに、前記第2のデバイスとの前記第2種の接続が確立されていない状態で、前記第1のデバイスとの前記第1種の接続が確立されるべき場合に、前記無線通信装置が保存する第1の設定値と、前記第1のデバイスが保存する設定値と、を比較することによって、前記状態決定処理を実行し、
前記第1の接続部は、前記特定の場合に、前記無線通信装置が保存する第2の設定値と、前記第1のデバイスが保存する設定値と、を比較することによって、前記状態決定処理を実行し、
前記第1の接続部は、前記特定の場合に、前記第1の設定値と比べて前記状態決定処理において前記無線通信装置が前記親局状態で動作すべきことが決定され易い前記第2の設定値を利用する前記特定の処理を実行する、請求項3に記載の無線通信装置。
The first connection unit is further configured to establish the first type of connection with the first device in a state where the second type of connection with the second device is not established. And performing the state determination process by comparing the first setting value stored by the wireless communication apparatus with the setting value stored by the first device,
In the specific case, the first connection unit compares the second setting value stored in the wireless communication apparatus with the setting value stored in the first device, thereby determining the state determination process. Run
In the specific case, the first connection unit is more likely to determine that the wireless communication apparatus should operate in the master station state in the state determination process than the first setting value. The wireless communication apparatus according to claim 3, wherein the specific process using a setting value is executed.
前記第1の接続部は、前記特定の場合に、前記無線通信装置が前記親局状態で動作することを維持するための特定のモードに前記無線通信装置を設定する前記特定の処理を実行する、請求項3に記載の無線通信装置。   In the specific case, the first connection unit executes the specific process of setting the wireless communication device to a specific mode for maintaining the wireless communication device to operate in the master station state. The wireless communication apparatus according to claim 3. 前記決定部は、さらに、前記第2のデバイスとの前記第2種の接続が確立されていない状態で、前記第1のデバイスとの前記第1種の接続が確立されるべき場合に、前記第2の無線チャネルの値を参照せずに、前記第1の無線チャネルの値を決定する、請求項2から5のいずれか一項に記載の無線通信装置。   The determination unit further includes the first type of connection with the first device in a state where the second type of connection with the second device is not established. The wireless communication apparatus according to claim 2, wherein the value of the first wireless channel is determined without referring to the value of the second wireless channel. 前記無線通信装置は、さらに、
前記特定の場合に、前記無線通信装置が利用可能な無線チャネルの値として、前記第2の無線チャネルの値のみを、前記第1のデバイスに通知する通知部を備える、請求項1から6のいずれか一項に記載の無線通信装置。
The wireless communication device further includes:
7. The notification unit according to claim 1, further comprising: a notification unit that notifies the first device of only the value of the second wireless channel as a value of a wireless channel that can be used by the wireless communication device in the specific case. The wireless communication device according to any one of the above.
前記通知部は、さらに、前記第2の無線チャネルの値のみを前記第1のデバイスに通知しても、前記第1のデバイスとの前記第1種の接続を確立することができない場合に、前記無線通信装置が利用可能な無線チャネルの値として、前記第2の無線チャネルの値とは異なる値を、前記第1のデバイスに通知する、請求項7に記載の無線通信装置。   The notifying unit further notifies the first device of only the value of the second wireless channel, but cannot establish the first type of connection with the first device. The wireless communication apparatus according to claim 7, wherein a value different from a value of the second wireless channel is notified to the first device as a wireless channel value that can be used by the wireless communication apparatus. 前記決定部は、前記特定の場合であり、かつ、前記無線通信装置が前記親局状態で動作すべきことが決定される場合に、前記第2の無線チャネルの値を参照して、前記第2の無線チャネルの値に一致する前記第1の無線チャネルの値を決定し、
前記無線通信装置は、さらに、
前記特定の場合であり、かつ、前記無線通信装置が前記子局状態で動作すべきことが決定される場合に、前記第1の無線チャネルの値と前記第2の無線チャネルの値とが一致するのか否かを判断するチャネル判断部を備え、
前記第1の接続部は、前記第1の無線チャネルの値と前記第2の無線チャネルの値とが一致すると判断される場合に、前記第1の無線チャネルを利用して、前記第1のデバイスとの前記第1種の接続を確立する、請求項1から8のいずれか一項に記載の無線通信装置。
The determining unit refers to the value of the second radio channel when the specific case is determined and when it is determined that the radio communication apparatus should operate in the master station state. Determining a value of the first radio channel that matches a value of two radio channels;
The wireless communication device further includes:
In the specific case, and when it is determined that the wireless communication apparatus should operate in the slave station state, the value of the first wireless channel matches the value of the second wireless channel. A channel determination unit that determines whether or not to
When it is determined that the value of the first wireless channel matches the value of the second wireless channel, the first connection unit uses the first wireless channel to The wireless communication apparatus according to claim 1, wherein the first type connection with a device is established.
前記第2のデバイスは、アクセスポイントである、請求項1から9のいずれか一項に記載の無線通信装置。   The wireless communication apparatus according to claim 1, wherein the second device is an access point. 前記第2の無線チャネルの値は、前記アクセスポイントによって決定される値である、請求項10に記載の無線通信装置。   The wireless communication apparatus according to claim 10, wherein the value of the second wireless channel is a value determined by the access point. 無線ネットワークの親局として機能する親局状態と、前記無線ネットワークの子局として機能する子局状態と、を含む複数の状態のうちのいずれかの状態で選択的に動作可能な無線通信装置のためのコンピュータプログラムであって、
前記無線通信装置に搭載されるコンピュータに、以下の各処理、即ち、
他のデバイス及び前記無線通信装置のうちの一方が前記親局状態で動作すべきことを決定すると共に、前記他のデバイス及び前記無線通信装置のうちの他方が前記子局状態で動作すべきことを決定する状態決定処理を実行して、前記無線通信装置が前記状態決定処理で決定された状態で動作するように、前記他のデバイスとの第1種の接続を確立する第1の接続処理であって、第1のデバイスとの前記第1種の接続が確立されるべき場合に、第1の無線チャネルを利用して、前記第1のデバイスとの前記第1種の接続を確立する前記第1の接続処理と、
他のデバイスとの第2種の接続を確立する第2の接続処理であって、前記第1のデバイスとは異なる第2のデバイスとの前記第2種の接続が確立されるべき場合に、第2の無線チャネルを利用して、前記第2のデバイスとの前記第2種の接続を確立する前記第2の接続処理と、
前記第1のデバイスとの前記第1種の接続及び前記第2のデバイスとの前記第2種の接続のうちの一方の接続が確立されている状態で、前記第1のデバイスとの前記第1種の接続及び前記第2のデバイスとの前記第2種の接続のうちの他方の接続が確立されるべき特定の場合に、前記第1の無線チャネルの値と前記第2の無線チャネルの値とが一致するように、前記第1の無線チャネルの値と前記第2の無線チャネルの値との少なくとも一方を決定する決定処理と、
を実行させる、コンピュータプログラム。
A wireless communication device capable of selectively operating in any one of a plurality of states including a master station state that functions as a master station of a wireless network and a slave station state that functions as a slave station of the wireless network A computer program for
In the computer mounted on the wireless communication device, the following processes, that is,
It is determined that one of the other device and the wireless communication apparatus should operate in the master station state, and the other of the other device and the wireless communication apparatus should operate in the slave station state. A first connection process for establishing a first type of connection with the other device so that the wireless communication apparatus operates in the state determined in the state determination process. A first wireless channel is used to establish the first type of connection with the first device when the first type of connection with the first device is to be established. The first connection processing;
A second connection process for establishing a second type of connection with another device, wherein the second type of connection with a second device different from the first device is to be established; Using the second wireless channel, the second connection processing for establishing the second type of connection with the second device;
In a state where one of the first type connection with the first device and the second type connection with the second device is established, the first connection with the first device is established. The value of the first radio channel and the value of the second radio channel in a specific case where one type of connection and the other of the second type of connections with the second device are to be established. A determination process for determining at least one of the value of the first radio channel and the value of the second radio channel so that the values match;
A computer program that executes
JP2019113684A 2019-06-19 2019-06-19 Wireless communication device Active JP6852755B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019113684A JP6852755B2 (en) 2019-06-19 2019-06-19 Wireless communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019113684A JP6852755B2 (en) 2019-06-19 2019-06-19 Wireless communication device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2018139677A Division JP6544468B2 (en) 2018-07-25 2018-07-25 Wireless communication device

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2021038291A Division JP7115580B2 (en) 2021-03-10 2021-03-10 wireless communication device

Publications (2)

Publication Number Publication Date
JP2019154076A true JP2019154076A (en) 2019-09-12
JP6852755B2 JP6852755B2 (en) 2021-03-31

Family

ID=67947214

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019113684A Active JP6852755B2 (en) 2019-06-19 2019-06-19 Wireless communication device

Country Status (1)

Country Link
JP (1) JP6852755B2 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004147015A (en) * 2002-10-23 2004-05-20 Canon Inc Radio communication equipment
JP2005223865A (en) * 2004-02-09 2005-08-18 Sony Corp Wireless communication system, wireless communication apparatus, wireless communication method, and computer program
JP2007527156A (en) * 2004-02-05 2007-09-20 パケットホップ,インコーポレイテッド General-purpose client for communication devices
US20080194201A1 (en) * 2004-06-29 2008-08-14 Nokia Corporation Control of a Short-Range Wireless Terminal
JP2012019487A (en) * 2010-07-09 2012-01-26 Canon Inc Communication device and control method
JP2013115806A (en) * 2011-12-01 2013-06-10 Canon Inc Communication device, control method therefor, and program

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004147015A (en) * 2002-10-23 2004-05-20 Canon Inc Radio communication equipment
JP2007527156A (en) * 2004-02-05 2007-09-20 パケットホップ,インコーポレイテッド General-purpose client for communication devices
JP2005223865A (en) * 2004-02-09 2005-08-18 Sony Corp Wireless communication system, wireless communication apparatus, wireless communication method, and computer program
US20080194201A1 (en) * 2004-06-29 2008-08-14 Nokia Corporation Control of a Short-Range Wireless Terminal
JP2012019487A (en) * 2010-07-09 2012-01-26 Canon Inc Communication device and control method
JP2013115806A (en) * 2011-12-01 2013-06-10 Canon Inc Communication device, control method therefor, and program

Also Published As

Publication number Publication date
JP6852755B2 (en) 2021-03-31

Similar Documents

Publication Publication Date Title
JP5945910B2 (en) Wireless communication device
JP5899971B2 (en) Wireless communication device
JP5736986B2 (en) Wireless communication device
JP5754254B2 (en) Wireless communication device
JP2013005096A (en) Radio communication device
JP2014027384A (en) Communication device and mobile terminal
US9307574B2 (en) Wireless communication system and wireless communication apparatus
EP2713672B1 (en) Wireless slave devices configuration and communication therewith
JP6171297B2 (en) Wireless communication device
JP6365594B2 (en) Wireless communication device
JP6376250B2 (en) Wireless communication device
JP6164322B2 (en) Wireless communication device
JP6852755B2 (en) Wireless communication device
JP6544468B2 (en) Wireless communication device
JP7435860B2 (en) wireless communication device
JP7115580B2 (en) wireless communication device
JP2016036190A (en) Communication device
JP6115328B2 (en) Communication device
JP6471775B2 (en) Wireless communication device
JP2017028738A (en) Communication device and mobile terminal
JP2019075833A (en) Communication device and mobile terminal
JP2018029401A (en) Communication device and mobile terminal
JP2018050350A (en) Communication device
JP2014072763A (en) Radio communication device

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190709

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190711

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200807

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200818

A601 Written request for extension of time

Free format text: JAPANESE INTERMEDIATE CODE: A601

Effective date: 20201013

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20201216

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210222

R150 Certificate of patent or registration of utility model

Ref document number: 6852755

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R157 Certificate of patent or utility model (correction)

Free format text: JAPANESE INTERMEDIATE CODE: R157