JP6852755B2 - Wireless communication device - Google Patents

Wireless communication device Download PDF

Info

Publication number
JP6852755B2
JP6852755B2 JP2019113684A JP2019113684A JP6852755B2 JP 6852755 B2 JP6852755 B2 JP 6852755B2 JP 2019113684 A JP2019113684 A JP 2019113684A JP 2019113684 A JP2019113684 A JP 2019113684A JP 6852755 B2 JP6852755 B2 JP 6852755B2
Authority
JP
Japan
Prior art keywords
connection
wireless communication
wfd
value
printer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2019113684A
Other languages
Japanese (ja)
Other versions
JP2019154076A (en
Inventor
侑亮 島田
侑亮 島田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
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=JP6852755(B2) "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

Description

本明細書によって開示される技術は、無線通信装置に関する。 The techniques disclosed herein relate to wireless communication devices.

非特許文献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 the Wi-Fi Direct (hereinafter referred to as "WFD") formulated by the Wi-Fi Alliance. The WFD wireless network consists of 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, "G / O device"). It is composed of "client equipment"). When a WFD-compliant connection should be established between a pair of devices, each of the pair of devices performs a G / O negotiation to determine whether it should operate on the G / O or the 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 in which a wireless communication device can form an appropriate connection state in a situation where the wireless communication device should establish a connection 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 the present 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. Disclose the wireless communication device. The wireless communication device includes a first connection unit, a second connection unit, and a determination unit. The first connection determines that one of the other device and the wireless communication device should operate in the master station state, and the other of the other devices and the wireless communication device described above is in the slave station state. A state-determining process for determining what to operate is performed to establish a first-class connection with the other device described above so that the wireless communication device operates in the state determined by the state-determining process. The first connection portion utilizes the first radio channel to establish a first-class connection with the first device when a first-class connection with the first device should be established. .. The second connection establishes a second type of connection with another device. The second connection uses the second radio channel to connect to the second device when a second type of connection with a second device different from the first device should be established. Establish two types of connections. The determination unit is in a state where one of the first-class connection with the first device and the second-class connection with the second device is established, and the first-class connection with the first device is established. The value of the first radio channel matches the value of the second radio channel in certain cases where the other connection of the connection and the second type connection with the second device should be established. At least one of the value of the first radio channel and the value of the second radio channel is determined.

上記の技術では、無線通信装置は、特定の場合に、第1の無線チャネルの値と第2の無線チャネルの値とが一致するように、第1の無線チャネルの値と第2の無線チャネルの値とのうちの少なくとも一方を決定する。このために、無線通信装置は、第1のデバイスとの第1種の接続と、第2のデバイスとの第2種の接続と、の両方が確立されている状態を形成し得る。従って、無線通信装置は、特定の場合に、適切な接続状態を形成し得る。 In the above technique, the wireless communication device has a value of the first radio channel and a value of the second radio channel so that the value of the first radio channel and the value of the second radio channel match in a specific case. Determine at least one of the values of. For this reason, the wireless communication device can form a state in which both a first-class connection with the first device and a second-class connection with the second device are established. Therefore, 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の無線チャネルの値を適切に決定し得る。 In a specific case, it may be the case that the first type connection with the first device should be established while the second type 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 the first unit matches the value of the second radio channel. The value of the radio channel may be determined. According to this configuration, the radio communication device can appropriately determine the value of the first radio channel that matches the value of the second radio channel in a specific case.

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

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

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

決定部は、さらに、第2のデバイスとの第2種の接続が確立されていない状態で、第1のデバイスとの第1種の接続が確立されるべき場合に、第2の無線チャネルの値を参照せずに、第1の無線チャネルの値を決定してもよい。この構成によると、無線通信装置は、状況に応じて、第1の無線チャネルの値を適切に決定し得る。 The determination unit further determines that the second radio channel should have a first-class connection with the first device without a second-class connection with the second device being established. The value of the first radio channel may be determined without reference to the value. According to this configuration, the wireless communication device can appropriately determine the value of the first wireless channel depending on 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 available to the wireless communication device in a specific case. .. According to this configuration, the wireless communication device can properly establish a first-class connection with the first device.

通知部は、さらに、第2の無線チャネルの値のみを第1のデバイスに通知しても、第1のデバイスとの第1種の接続を確立することができない場合に、無線通信装置が利用可能な無線チャネルの値として、第2の無線チャネルの値とは異なる値を、第1のデバイスに通知してもよい。この構成によると、無線通信装置は、第1のデバイスとの第1種の接続を適切に確立し得る。 The notification unit is further used by the wireless communication device when it is not possible to establish a first-class connection with the first device 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 device can properly establish a first-class connection with the first device.

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

第2のデバイスは、アクセスポイントであってもよい。この構成によると、無線通信装置は、アクセスポイント(即ち第2のデバイス)との第2種の接続を適切に確立し得る。 The second device may be an access point. According to this configuration, the wireless communication device can properly establish a second type connection with the access point (that is, 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 device can appropriately establish a second type connection with the access point (that is, the second device) by utilizing the second wireless channel determined by the access point.

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

通信システムの構成の一例を示す。An example of the configuration of the communication system is shown. 非WFD接続処理のフローチャートを示す。The flowchart of non-WFD connection processing is shown. WFD接続処理のフローチャートを示す。The flowchart of WFD connection processing is shown. 第1実施例で実現されるケースのシーケンス図を示す。The sequence diagram of the case realized in the 1st Example is shown. 図4の続きのシーケンス図を示す。The sequence diagram which continued with FIG. 4 is shown. 第2実施例のWFD接続処理のフローチャートを示す。The flowchart of the WFD connection processing of the 2nd Example is shown. 第2実施例で実現されるケースのシーケンス図を示す。The sequence diagram of the case realized in the 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 Example)
(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), and the like. To be equipped. The mobile terminal 8 and the printer 10 can each execute a wireless communication function according to the Wi-Fi Direct described later. In the following, the Wi-Fi Direct will be referred to as "WFD", and the connection according to WFD will be referred to as "WFD connection". The printer 10 can establish a WFD connection with the mobile terminal 8, thereby constructing a WFD network. As a result, the mobile terminal 8 and the printer 10 can execute wireless communication of the 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 IEEE802.11) in addition to the wireless communication function according to WFD. That is, the printer 10 can establish a connection with the AP4 (hereinafter referred to as "non-WFD connection"), whereby a non-WFD network is constructed. The PC6 can also establish a non-WFD connection with the AP4. As a result, the printer 10 and the PC 6 can execute wireless communication of the target data to be communicated such as print data via the AP4.

本実施例では、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 AP4, the PC6, and the printer 10 are deferred in a specific company, for example. That is, within a specific company, a non-WFD network including AP4, PC6, and a printer 10 is constructed. For this purpose, a user of the PC 6 (for example, an employee of a specific company) can have the printer 10 execute printing via the AP4. Then, for example, a user of the mobile terminal 8 (for example, a person who visits 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. As a result, the user of the mobile terminal 8 can have the printer 10 execute printing without going through the AP4. As described above, in this embodiment, it is assumed that the non-WFD network is a network to be constantly constructed and the WFD network is a network 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 parts 12 to 20 is connected to a bus line (reference numeral omitted). The operation unit 12 is composed of a plurality of keys. The user can operate the operation unit 12 to give various instructions to the printer 10. The display unit 14 is a display for displaying various information. The print execution unit 16 includes a printing mechanism such as an inkjet method or a laser method, and executes printing according to 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 wireless interface 18 is physically one interface. However, the wireless interface 18 is assigned both a MAC address that should be used in the WFD connection and a MAC address that should be used in the non-WFD connection. Therefore, the control unit 20 can simultaneously execute both the wireless communication function according to the WFD and the normal wireless communication function by 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 the program stored in the memory 24. The memory 24 is composed of a ROM, a RAM, a hard disk, and the like. The memory 24 stores the above-mentioned 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 the process according to the above 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 according to the WFD. For example, the first connection unit 30 establishes a WFD connection with the mobile terminal 8. Further, 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 32 establishes a non-WFD connection with the AP4.

(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 the wireless communication function according to the WFD. However, in the modified example, the PC 6 may be capable of executing the wireless communication function according to the WFD. PC6 can establish a non-WFD connection with AP4. The PC 6 includes a CPU, a memory, a display, and the like (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 by using a printer driver program. In a state where a non-WFD connection is established between the printer 10 and the AP4 and a non-WFD connection is established between the PC6 and the AP4, the PC6 transfers print data to the printer 10 via the AP4. 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 mobile 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 mobile terminal 8 can execute a wireless communication function according to the WFD. The mobile terminal 8 can establish a WFD connection with the printer 10. The mobile terminal 8 includes a CPU, a memory, a display, and the like (not shown). The memory of the mobile terminal 8 stores a printer driver program for the printer 10. The CPU of the mobile terminal 8 can generate print data to be printed by using a printer driver program. In a state where a 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 going through the AP4.

(WFD)
WFDは、Wi−Fi Allianceによって策定された規格である。WFDは、Wi−Fi Allianceによって作成された「Wi−Fi Peer−to−Peer(P2P) Technical Specification Version1.1」に記述されている。
(WFD)
WFD is a standard developed 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 the wireless communication function according to the WFD. Hereinafter, a device capable of executing a wireless communication function according to WFD will be referred to as a "WFD compatible device". The WFD standard defines three states as the state of the WFD-compatible device: the Group Owner state (hereinafter referred to as "G / O state"), the client state, and the device state. 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 composed of a device in the G / O state and a device 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. The device in the G / O state manages one or more devices in the client state. Specifically, the device in the G / O state generates a management list in which the identification information (that is, the MAC address) of each of the devices in the one or more client states 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. Remove from the management list.

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

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

なお、WFDネットワークに参加していないWFD対応機器(即ち、管理リストに登録されていない機器)が、デバイス状態の機器である。デバイス状態の機器は、WFDネットワークに参加するためのデータ(Probe Request信号、Probe Response信号等の物理層のデータ等)の無線通信を実行可能であるが、WFDネットワークを介して対象データ(印刷データ等)の無線通信を実行不可能である。 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 the device state. The device in the device state can execute wireless communication of data for joining the WFD network (physical layer data such as Probe Request signal, Probe Response signal, etc.), but the target data (print data) via the WFD network. Etc.) wireless communication is not feasible.

(非WFD接続処理;図2)
続いて、プリンタ10によって実行される処理の内容について説明する。まず、図2を参照して、プリンタ10によって実行される非WFD接続処理の内容を説明する。ユーザが予め決められている非WFD接続指示を操作部12に入力する場合に、制御部20は、図2の非WFD接続処理を開始する。
(Non-WFD connection processing; Fig. 2)
Subsequently, the contents of the 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 shown in FIG.

S10において、第2の接続部32は、プリンタ10の周囲に存在する各APを検索するためのScan処理を実行する。次いで、S12において、第2の接続部32は、Scan処理で見つかった各APに関する情報(例えば、SSID等)を含むAPリストを、表示部14に表示させる。プリンタ10のユーザは、APリストの中から、プリンタ10との接続が確立されるべきAPを指定する。第2の接続部32は、ユーザの指示に従って、APを選択する。以下では、AP4が選択された場合を例として、説明を続ける。 In S10, the second connection unit 32 executes a Scan process for searching each AP existing around the printer 10. Next, in S12, the second connection unit 32 causes the display unit 14 to display an AP list including information (for example, SSID, etc.) about each AP found in the Scan process. The user of the printer 10 specifies the AP from which the connection with the printer 10 should be established from the AP list. The second connection unit 32 selects the AP according to the user's instruction. In the following, 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 second connection unit 32 does not execute G / O negotiation. The AP4 determines the value of the radio channel to be used in the non-WFD connection (hereinafter referred to as "non-WFD channel value Vap") from 1 to 14 channels. AP4 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 AP4. 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 S14, the second connection unit 32 determines whether or not a WFD connection has been established between the printer 10 and the mobile terminal 8. If the WFD connection is established (YES in S14), the process proceeds to S16, and if the WFD connection is not 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 second connection unit 32 uses the non-WFD channel value Vap received in S13 to execute communication for authentication with AP4. 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 AP4. As a result, the AP4 executes authentication such as an authentication method, an encryption method, and a password, and if the authentication is successful, transmits data indicating the success of the authentication to the printer 10. This establishes a non-WFD connection between the printer 10 and the AP4. 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 AP4 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 S16, 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 to the device state. For example, when the current state of the printer 10 is the G / O state, the first connection unit 30 is currently used for the management list saved by the printer 10 in the G / O state and the WFD connection. The value of the radio channel (hereinafter referred to as "WFD channel value Vwfd") and the value of the radio channel are erased 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 mobile terminal 8 is disconnected. Further, for example, when the current state of the printer 10 is the client state, the first connection unit 30 erases 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 mobile terminal 8 is disconnected.

S18を終えると、S20において、第2の接続部32は、上記と同様に、S13で受信された非WFDチャネル値Vapを利用して、AP4との非WFD接続を確立する。S18で携帯端末8とのWFD接続が切断されるために、AP4との非WFD接続のみが確立されている状態が形成される。 After finishing S18, in S20, the second connection unit 32 establishes a non-WFD connection with AP4 by utilizing the non-WFD channel value Vap received in S13 in the same manner 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 AP4 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 non-AP4 are not disconnected without disconnecting the WFD connection with the mobile terminal 8. It is conceivable to adopt a configuration that forms a state in which 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 at the same time. Cannot be executed. In order to avoid such a situation, in this embodiment, when YES in S14, the WFD connection with the mobile terminal 8 is disconnected (S18), and only the non-WFD connection with the AP4 is established. It adopts a structure that forms a state of being.

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

(WFD接続処理;図3)
続いて、図3を参照して、デバイス状態のプリンタ10によって実行されるWFD接続処理の内容を説明する。ユーザが予め決められているWFD接続指示を操作部12に入力する場合に、制御部20は、図3のWFD接続処理を開始する。
(WFD connection processing; Fig. 3)
Subsequently, 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 S40, the first connection unit 30 determines whether or not a non-WFD connection has been established between the printer 10 and the AP4. If the non-WFD connection is established (YES in S40), the process proceeds to S46, and if the non-WFD connection is not 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 portion 30 is a device state device (for example,) existing around the printer 10 regardless of whether it is YES or NO in S40. The search process for searching the mobile 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.) about each device found in the search process. The user of the printer 10 specifies a device from which the connection with the printer 10 should be established from the device list. The first connection unit 30 selects a device according to a user's instruction. In the following, 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 about the printer 10 is displayed on the display unit of the mobile terminal 8. The user of the mobile terminal 8 selects a device from which the connection with the mobile terminal 8 should be established from the device list. In the following, 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 S42, the first connection unit 30 executes G / O negotiation to determine one of the printer 10 and the mobile terminal 8 as the G / O, and the other of the printer 10 and the mobile terminal 8. Determine the device as the client. Specifically, the first connection unit 30 first transmits the INT value of the printer 10 stored in the memory 24 to the mobile terminal 8. Further, the first connection unit 30 receives the INT 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 in the numerical range of 0 to 15. The larger the Intent value, the more likely it is to become 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 a relatively high CPU and memory capacity can execute other processes at high speed while operating as a G / O. Therefore, in such a device, a relatively large Intent value is usually set so that G / O is likely to occur. On the other hand, for example, a device having a relatively low CPU and memory capacity may not be able to execute other processes at high speed while operating as a G / O. Therefore, such a device is usually set with a relatively small Intent value so that it is unlikely to be a G / O (that is, it is easy to be a client).

本実施例では、S42のG/Oネゴシエーションでは、プリンタ10のIntent値(即ちデフォルトのIntent値)として、「2」が利用される。プリンタ10は、通常、PC等と比べて、CPU及びメモリの能力が比較的に低い。このために、プリンタ10には、比較的に小さいデフォルトのIntent値が設定される。従って、S42では、第1の接続部30は、プリンタ10のIntent値「2」を携帯端末8に送信する。 In this embodiment, in the G / O negotiation of S42, "2" is used as the INT value of the printer 10 (that is, the default INT value). The printer 10 usually has a relatively low CPU and memory capacity as compared with a PC or the like. For this purpose, the printer 10 is set with a relatively small default Intent value. Therefore, in S42, the first connection unit 30 transmits the INT 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 S42, 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 the G / O and the 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 portion 30 determines that the printer 10 should be a G / O, and the mobile terminal 8 is a client. Decide what to be. Further, for example, when the INT value of the printer 10 is smaller than the INT 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 is G. Decide what should be / O. When the INT value of the printer 10 and the Int value of the mobile terminal 8 match, the first connection unit 30 changes the Int value of the printer 10 and uses the changed Int value. , 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 mobile terminal 8 determines the G / O and the client based on the Intent value of the printer 10 and the Intent value of the mobile terminal 8 by 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 process of G / O negotiation in S42, the notification unit 36 includes a channel list (hereinafter, "normal list") including all values of channels 1 to 14 as the values of the wireless channels that the printer 10 can use in the WFD connection. Is notified (that is, transmitted) to the mobile terminal 8. Similarly, the mobile terminal 8 notifies (that is, transmits) to the printer 10 a channel list including the values of the radio channels that the mobile terminal 8 can use in the WFD connection. As a result, the first connection unit 30 can acquire the channel list of the mobile terminal 8. When the G / O negotiation of S42 is completed, 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 G / O negotiation in S42 is executed. For example, when 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 is included in the channel list notified from the mobile terminal 8 in S42 among the wireless channel values (1 to 14 channels) included in the normal list notified to the mobile terminal 8 in S42. The value of one radio channel is determined as the WFD channel value Vwfd. In this 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 determination 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. As a result, the mobile terminal 8 can know the WFD channel value Vwfd, and can use the WFD channel value Vwfd in the subsequent communication. 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, when it is determined that the printer 10 should be the client, in S44, the determination unit 34 does not determine the WFD channel value Vwfd. 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 executes WPS (Wi-Fi Protected Setup) negotiation to establish a WFD connection with the mobile terminal 8. When 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, if it is determined that the printer 10 should be the client, the first connection 30 performs 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 radio profile (SSID, authentication method, encryption method, password, etc.) necessary for establishing a WFD connection. The authentication method and the encryption method are predetermined. Further, the first connection unit 30 generates a password at the time of processing S44. The SSID may be generated by the first connection unit 30 during the processing of S44, or may be predetermined. Subsequently, the first connection unit 30 uses the WFD channel value Vwfd to transmit data indicating the wireless profile to the mobile terminal 8.

無線プロファイルがプリンタ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 mobile terminal 8, the printer 10 and the mobile terminal 8 can use the same wireless profile. The first connection unit 30 uses a wireless profile to perform wireless communication of Authentication Request, Authentication Response, Authentication Request, Association Response, and 4-way handshake (hereinafter referred to as "specific wireless communication"). Execute with 8. The WFD channel value Vwfd is also used in the above-mentioned specific wireless communication. In the process of the specific wireless communication described above, various authentication processes such as SSID authentication, authentication method and encryption method authentication, and password authentication are executed. If all the authentications are successful, a WFD connection is established between the printer 10 and the mobile 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. As a result, the printer 10 in the G / O state (that is, the first connection unit 30) uses the WFD channel value Vwfd with the mobile terminal 8 in the client state to communicate with the target data (print data, etc.). ) Can be executed. The target data includes data of the network layer, which is a layer higher than the physical layer of the OSI reference model. Therefore, the printer 10 in the G / O state (that is, the first connection unit 30) can execute wireless communication in the network layer with the mobile terminal 8 in the client state. Further, the printer 10 in the G / O state (that is, the first connection unit 30) relays wireless communication between the mobile terminal 8 in the client state and another device 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 30 is a WFD channel such that the printer 10 operates in the G / O state when the G / O negotiation determines that the printer 10 should be G / O. The value Vwfd is used to establish a WFD connection with the mobile terminal 8.

(クライアント状態用の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 the data indicating the radio profile from the mobile terminal 8 by using the WFD channel value Vwfd. Next, the first connection unit 30 uses the wireless profile to execute the above-mentioned specific wireless communication with the mobile terminal 8. As a result, a WFD connection is established between the printer 10 and the mobile terminal 8.

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

上述したように、第1の接続部30は、G/Oネゴシエーションでプリンタ10がクライアントになるべきことが決定される場合に、プリンタ10がクライアント状態で動作するように、WFDチャネル値Vwfdを利用して、携帯端末8とのWFD接続を確立する。S44が終了すると、図3のWFD接続処理が終了する。 As described above, the first connection 30 uses the WFD channel value Vwfd so that the printer 10 operates in the client state when the G / O negotiation determines that the printer 10 should be the 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に進む。 Subsequently, the contents of the processing after S46 executed when YES in S40 (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 should be executed after the WFD connection process of FIG. 3 is started. If the situation is such that the first G / O negotiation should be executed (YES in S46), the process proceeds to S48, and if the situation is such that the second and subsequent G / O negotiations should be executed (in 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 portion 30 executes G / O negotiation as in S42. However, the G / O negotiation of S48 is different from S42 in the following points. In the G / O negotiation of S48, "14" is adopted as the Intent value of the printer 10. Therefore, in S48, the first connection unit 30 transmits the INT value “14” of the printer 10 to the mobile terminal 8. Further, in S48, the notification unit 36 uses the non-WFD channel value Vap (that is, the non-in the memory 24) used in the currently established non-WFD connection as the value of the radio channel that the printer 10 can use in the WFD connection. A channel list (hereinafter referred to as a "restricted list") including only the WFD channel value Vap) is notified (that is, transmitted) to the mobile terminal 8. When the G / O negotiation of S48 is completed, 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 or not the G / O negotiation is successful. For example, when the communication environment between the printer 10 and the mobile terminal 8 is poor, communication for G / O negotiation cannot be executed between the printer 10 and the mobile terminal 8. In this case, the first connection portion 30 determines NO in S52. Further, 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, when 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 the common wireless channel. Therefore, also in this case, the first connection portion 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 G / O negotiation is executed is equal to or greater than a threshold value (threshold value is an integer of 2 or more). When the number of G / O negotiation executions is equal to or greater than the threshold value (YES in S54), in S56, the first connection unit 30 displays information indicating that the WFD connection cannot be established. It is displayed on 14. In this case, the first connection unit 30 does not establish a WFD connection with the mobile terminal 8. Therefore, the state in which only the non-WFD connection with AP4 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 executions of G / O negotiation is less than the threshold value (NO in S54), the process returns to S46. In this case, the first connection portion 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 first connection portion 30 executes G / O negotiation as in S42. However, in the G / O negotiation of S50, "14" is adopted as the Intent value of the printer 10. Therefore, in S50, the first connection unit 30 transmits the INT 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 14 channels). That is, when the G / O negotiation of S48 is not successful, the notification unit 36 notifies the mobile terminal 8 of a value different from the non-WFD channel value Vap.

なお、変形例では、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 portion 30 may use a value different from “14” (for example, “13”, “15”, etc.) as the INT value of the printer 10. .. That is, in S48 and S50, the first connection portion 30 may use an INT value larger than the INT value of the printer 10 used in S42 (that is, the default INT value).

上述したように、S48のG/Oネゴシエーションでは、制限リストが携帯端末8に通知されるために、S52でNOと判断され得る。この場合、S50のG/Oネゴシエーションが再び実行されると、制限リストに代えて通常リストが携帯端末8に通知されるために、S52でYESと判断され得る。S52でYESの場合には、S58に進む。 As described above, in the G / O negotiation of S48, since the restriction list is notified to the mobile terminal 8, it may be determined as NO in S52. In this case, when the G / O negotiation of S50 is executed again, the mobile terminal 8 is notified of the normal list instead of the restricted list, so that it can be determined as YES 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 30 determines in the G / O negotiation of S48 or S50 whether it has been determined that the printer 10 should be the G / O. In the G / O negotiation of S48 or S50, it is usually determined that the printer 10 should be the G / O because the INT value “14” of the printer 10 is used. In this case, the first connection portion 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 used 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 and the non-WFD channel value Vap match. As a result, it is possible to appropriately execute communication using the WFD connection and communication using the non-WFD connection at the same time.

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

一方において、携帯端末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 that the printer 10 should be the client in the G / O negotiation of S48 or S50. In this case, the first connection portion 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 and the currently established non-WFD channel value Vap used in the non-WFD connection match.

例えば、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, in the G / O negotiation of S48, the restriction list is notified to the mobile terminal 8, so that when the G / O negotiation of S48 is successful, the mobile terminal 8 includes the WFD channel value Vwfd in the restriction list. The value that matches the non-WFD channel value Vap is determined. In this case, in S60, the first connection unit 30 receives the WFD channel value Vwfd matching 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接続処理が終了する。 If YES in S60, in S66, the first connection 30 executes WPS negotiation for the client state. As a result, the first connection unit 30 establishes a WFD connection with the mobile terminal 8 by using the WFD channel value Vwfd (that is, a value corresponding to the non-WFD channel value Vap) received from the mobile terminal 8. .. Since the non-WFD connection with the AP4 has already been established, a state in which both the non-WFD connection with the AP4 and the WFD connection with the mobile terminal 8 are established is formed. As a result, the WFD connection process of FIG. 3 is completed.

一方において、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, in the G / O negotiation of S50, the normal list is notified to the mobile terminal 8, so that when the G / O negotiation of S50 is successful, the mobile terminal 8 sets the WFD channel value Vwfd to the non-WFD channel. It can be determined to be a value that does not match the value Vap. 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 is NO in S60. 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 in which only the non-WFD connection with AP4 is established is maintained. Here, too, a configuration that prioritizes the non-WFD network that should be constructed constantly 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 example; FIG. 4 and FIG. 5)
Subsequently, various cases of processing executed by the respective devices 4, 8 and 10 will be described with reference to FIGS. 4 and 5. The sequence of FIGS. 4 and 5 is realized by the printer 10 executing the process according to the flowcharts of FIGS. 2 and 3.

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

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

続いて、プリンタ10にWFD接続指示が入力されると、プリンタ10は、図3のS40でYESと判断して、S48のG/Oネゴシエーションを実行する。ここでは、プリンタ10のIntent値として「14」が利用されると共に、非WFDチャネル値Vapのみを含む制限リストが携帯端末8に通知される。 Subsequently, when the 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 INT value of the printer 10, and the mobile terminal 8 is notified of the restriction list including only the non-WFD channel value Vap.

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 of S48 is successful (YES in S52), the printer 10 usually 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 of 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). As a result, a WFD connection is established between the printer 10 and the mobile terminal 8. As a result, a state in which both the non-WFD connection with the AP4 and the WFD connection with the mobile terminal 8 are established (hereinafter referred to as "both connected 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 of 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 the client. To do. In this case, the printer 10 determines NO in S58, but in S60, normally, the printer 10 receives the WFD channel value Vwfd corresponding to the non-WFD channel value Vap from the mobile terminal 8. In the G / O negotiation of S48, since the mobile terminal 8 is notified of the restriction list containing only the non-WFD channel value Vap, the mobile terminal 8 usually determines the WFD channel value Vwfd that matches the non-WFD channel value Vap. Because it does. Therefore, the printer 10 determines YES in S60.

次いで、プリンタ10は、受信済みのWFDチャネル値Vwfd(即ち非WFDチャネル値Vapに一致する値)を利用して、クライアント状態用のWPSネゴシエーションを実行する(S66)。これにより、プリンタ10と携帯端末8との間にWFD接続が確立される。この結果、両方接続状態が形成される。 The printer 10 then uses the received WFD channel value Vwfd (ie, a value that matches the non-WFD channel value Vap) to perform WPS negotiation for the client state (S66). As a result, a WFD connection is established between the printer 10 and the mobile terminal 8. As a result, both connected 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, in the G / O negotiation of S48, if the channel list of the mobile terminal 8 does not include the non-WFD channel value Vap, the G / O negotiation of 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 INT value of the printer 10, and the mobile terminal 8 is notified of a normal list including all the values of channels 1 to 14. As a result, the G / O negotiation of S50 is usually 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 of S50 is successful (YES in S52), the printer 10 usually 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 of 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). As a result, a WFD connection is established between the printer 10 and the mobile terminal 8. As a result, both connected 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 of 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 the client. To do. In this case, the printer 10 determines NO in S58, and normally receives the 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 of S50, the mobile terminal 8 usually determines the WFD channel value Vwfd that does not match the non-WFD channel value Vap because the list is notified to the mobile terminal 8. Therefore, 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 AP4. Therefore, a state in which only a non-WFD connection with AP4 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を介して印刷データを受信することができる。
(Effect 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 should be established in the state where the non-WFD connection is established, and the non-WFD connection is established. A WFD channel value Vwfd that matches the channel value Vap is determined. As a result, the printer 10 can appropriately form both connected states. Therefore, the printer 10 can receive the print data from the mobile terminal 8 by using the WFD connection, and can receive the print data from the PC 6 via the AP4 by 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は、適切な接続状態を形成することができる。 Due to the configuration of the wireless interface 18, the printer 10 cannot perform appropriate wireless communication by using two different channel values. Therefore, as shown in the case of FIG. 5, in the printer 10, when the WFD connection should be established in the state where the non-WFD connection is established, the WFD channel value Vwfd and the non-WFD channel value Vap match. Otherwise, it forms a single connection state in which only non-WFD connections are established. Further, as shown in the flowchart of FIG. 2, the printer 10 disconnects the WFD connection when the non-WFD connection should be established (YES in S14) while the WFD connection is established. , Form a single connection state in which only non-WFD connections are established. As a result, the printer 10 can appropriately receive print data from the PC 6 via the AP4 by utilizing the non-WFD connection. In particular, the printer 10 forms a single connection state, giving priority to non-WFD connections that should be established steadily. Therefore, in an environment in which the printer 10 and the PC 6 are installed (for example, in the above-mentioned specific company), it is possible to suppress an event that the user of the PC 6 cannot execute printing on the printer 10. Can be done. 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 INT 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 the client. Therefore, it is possible to appropriately establish a WFD connection between the printer 10 and the mobile 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 INT value of the printer 10 when the WFD connection should be established in the state where the non-WFD connection is established. Use "14" (S48 or S50 in FIG. 3). For this reason, it is easy to determine that the printer 10 should be a 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 connected 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 be the client, the printer 10 can notify the mobile terminal 8 of the restriction list (S48 in FIG. 3). Therefore, the printer 10 can receive the WFD channel value Vwfd that matches the non-WFD channel value Vap from the mobile terminal 8 (YES in S60). As a result, the printer 10 can appropriately form both connected states. Further, if the G / O negotiation fails (NO in S52) even if the printer 10 notifies the mobile terminal 8 of the restriction list, the printer 10 usually includes a channel value different from the non-WFD channel value Vap. Notify the mobile terminal 8 of the list (S50). As a result, in order for the G / O negotiation to be successful (YES in S52), the printer 10 can properly establish a WFD connection with the mobile 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 mobile terminal 8, and the AP4 are examples of a "wireless communication device," a "first device," and a "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". The INTENT value "2" and the INTENT value "14" are examples of the "first set value" and the "second set value", respectively. Using "14" as the INT value of the printer 10 in S48 and S50 of FIG. 3 is an example of "specific processing". WFD connection and non-WFD connection are examples of "type 1 connection" and "type 2 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 Example)
The points different 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 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 the operation in the G / O state. Therefore, although the WFD connection has not been established at the stage of S60, the printer 10 is set to the G / O state. At this stage, the management list managed by the printer 10 does not describe the identification information of the device in the client state.

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 the G / O negotiation. As described above, when the WFD connection instruction is input to the mobile terminal 8, the mobile terminal 8 executes a search process for searching for a client-state device existing around the mobile terminal 8. In addition, the mobile terminal 8 executes a search process. The Scan process for searching the G / O state device (that is, the printer 10) existing around the mobile terminal 8 is executed. As a result, a device list including information about 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 be the 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 the WFD channel value Vwfd that matches the non-WFD channel value Vap. Next, in S66, the first connection unit 30 uses the WFD channel value Vwfd to execute WPS negotiation for the G / O state. As a result, a WFD connection is established between the printer 10 and the mobile 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 this embodiment, the case of FIG. 7 is realized instead of the case 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 of FIG. 6, the printer 10 sets the printer 10 to the autonomous G / O mode. Therefore, 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 executes WPS negotiation for the G / O state using the WFD channel value Vwfd, and establishes a WFD connection with the mobile terminal 8 (S66). As a result, both connected 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 should be established in the 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. As a result, the printer 10 can appropriately form both connected 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".

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

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

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

(変形例3)「第2種の接続」は、AP4との非WFD接続に限られず、例えば、PC等とのWFD接続であってもよい。即ち、「第1種の接続」と「第2種の接続」とは、同じ種類の接続であってもよい。また、「第2種の接続」は、例えば、PC等とのアドホックの接続であってもよい。 (Modification 3) The “type 2 connection” is not limited to the non-WFD connection with the AP4, and may be, for example, a WFD connection with a PC or the like. That is, the "type 1 connection" and the "type 2 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 of the following configurations 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) A WFD connection with the mobile terminal 8 should be established in a state where an ad hoc connection with the PC 6 is established (“Vad” is used as the value of the ad hoc wireless channel). Imagine a situation. For example, when it is determined by G / O negotiation that the printer 10 should be G / O, the determination unit 34 first determines the WFD channel value Vwfd, and then further matches the WFD channel value Vwfd. Determines the value of the ad hoc radio channel Vad'(Vad' is different from Vad). In this case, the first connection unit 30 uses the WFD channel value Vwfd to establish a WFD connection with the mobile terminal 8. Further, the second connection unit 32 reestablishes the ad hoc connection with the PC 6 by utilizing the value Vad'of the ad hoc radio channel. That is, generally speaking, the determination unit is in a state where the second type connection with the second device is established, and the first type connection with the first device should be established. Both the value of the first radio channel (Vwfd in this modification) and the value of the second radio channel (Vad'in this 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 is established (“Vad” is used as the value of the ad hoc wireless channel). Imagine a 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. After that, the determination unit 34 may determine the value of the ad hoc radio channel Vad'(Vad' is different from Vad) that matches the WFD channel value Vwfd. In this case, the first connection unit 30 uses the WFD channel value Vwfd to establish a WFD connection with the mobile terminal 8. Further, the second connection unit 32 reestablishes the ad hoc connection with the PC 6 by utilizing the value Vad'of the ad hoc radio channel. That is, generally speaking, the determination unit is in a state where the second type connection with the second device is established, and the first type connection with the first device should be established. The value of the second radio channel (Vad'in this variant) may be determined.

(変形例4−3)携帯端末8とのWFD接続が確立されている状態で、PC6とのアドホックの接続が確立されるべき状況を想定する。この場合、決定部34は、WFDチャネル値Vwfdに一致するアドホックの無線チャネルの値Vadを決定してもよい。この場合、第2の接続部32は、アドホックの無線チャネルの値Vadを利用して、PC6とのアドホックの接続を確立する。即ち、一般的に言うと、決定部は、第1のデバイスとの第1種の接続が確立されている状態で、第2のデバイスとの第2種の接続が確立されるべき場合に、第2の無線チャネルの値(本変形例ではVad)を決定してもよい。 (Modification Example 4-3) It is assumed that the ad hoc connection with the PC 6 should be established while the WFD connection with the mobile terminal 8 is established. In this case, the determination unit 34 may determine the value Vad of the ad hoc radio channel 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 value Vad of the ad hoc radio channel. That is, generally speaking, the determination unit is in a state where the first type connection with the first device is established, and the second type connection with the second device should 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の無線チャネルの値とのうちの少なくとも一方を決定すればよい。 As is clear from the first and second embodiments described above and each of the modified examples 4-1 to 4-3 described above, generally speaking, the determination unit is the first radio in a particular case. At least one of the value of the first radio channel and the value of the second radio channel may be determined so that the value of the channel and the value of the second radio channel match.

(変形例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 and the like in FIG. 3), the INT value of the printer 10 of the first connection portion 30 is larger than the INT value of the mobile terminal 8. If so, determine that the printer 10 should be a 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 above first embodiment, the "second set value" is a value larger than the "first set value", but in this modification, the "second set value" is the "first set value". It may be a value 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 portion 30 is an INTENT of the printer 10 so that it can be easily determined that the printer 10 should be a G / O. Use "14" as the value. Instead, the first connection unit 30 may receive the INT value of the mobile terminal 8 from the mobile terminal 8 before transmitting the INT value of the printer 10 to the mobile terminal 8. Then, the first connection unit 30 may determine the Intent value of the printer 10 that is larger than the Intent value of the mobile terminal 8, and may transmit the determined Intent value of the printer 10 to the mobile terminal 8. Also in this case, it becomes easy to determine that the printer 10 should be G / O. In this modification, using the INT 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 values of the radio channel. This is a specification used in Japan. Instead, 1ch to 11ch may be used (US specification), 1ch to 13ch may be used (European specification), and other ranges may be used as the range of wireless channel values. May be done.

(変形例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 above embodiments, in a situation where a non-WFD connection should be established in a state where a WFD connection is established (when YES in S14 of FIG. 2), the first connection portion 30 is used. A configuration is adopted in which the WFD connection is always disconnected. Instead, the first connection unit 30 may disconnect the WFD connection when the printer 10 is operating in the client state in the above situation. Further, in the first connection unit 30, in the above situation, the printer 10 is operating in the G / O state, and the WFD channel value currently used in the WFD connection is received in S13 of FIG. If the non-WFD channel value matches, the WFD connection may be maintained without disconnection. 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. You may.

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

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

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

Claims (16)

無線通信装置であって、
操作部と、
第1種の接続で利用されるべきMACアドレスと、第2種の接続で利用されるべきMACアドレスと、の両方が割り当てられている物理的に1個のインターフェースと、
前記操作部を介して、前記第1種の接続を確立するための第1の指示が入力される場合に、複数個の無線チャネルのうちの第1の無線チャネルを利用することを決定する決定部と、
前記決定部によって決定された前記第1の無線チャネルを利用して、前記インターフェースを介して、特定デバイスとの前記第1種の接続を確立する第1の接続部と、
前記操作部を介して、前記第2種の接続を確立するための第2の指示が入力される場合に、前記複数個の無線チャネルのうちの第2の無線チャネルを利用して、前記インターフェースを介して、前記特定デバイスとは異なるアクセスポイントとの前記第2種の接続を確立する第2の接続部と、
前記アクセスポイントとの前記第2種の接続が確立されている状態で、前記操作部を介して前記第1の指示が入力される場合に、前記無線通信装置を子局として動作させることなく親局として動作させることを設定する動作設定部と、を備え、
前記決定部は、前記アクセスポイントとの前記第2種の接続が確立されている状態で、前記操作部を介して前記第1の指示が入力され、前記無線通信装置を前記親局として動作させることが設定される場合に、前記第2の無線チャネルの値に一致する値を前記第1の無線チャネルの値として決定する、無線通信装置。
It ’s a wireless communication device,
Operation unit and
A physically one interface to which both the MAC address to be used for the first type connection and the MAC address to be used for the second type connection are assigned.
A determination to determine to utilize the first radio channel among the plurality of radio channels when the first instruction for establishing the first type connection is input via the operation unit. Department and
A first connection unit that establishes the first type of connection with a specific device via the interface by utilizing the first radio channel determined by the determination unit.
When a second instruction for establishing the second type of connection is input via the operation unit, the interface is utilized by utilizing the second radio channel among the plurality of radio channels. A second connection unit that establishes the second type of connection to an access point different from the specific device via
When the first instruction is input via the operation unit in a state where the second type connection with the access point is established, the parent without operating the wireless communication device as a slave station. It is equipped with an operation setting unit that sets the operation as a station.
The determination unit receives the first instruction via the operation unit in a state where the second type connection with the access point is established, and operates the wireless communication device as the master station. A wireless communication device that determines as a value of the first wireless channel a value that matches the value of the second wireless channel when the above is set.
前記第2の接続部は、前記アクセスポイントから受信された前記第2の無線チャネルを利用して、アクセスポイントとの前記第2種の接続を確立する、請求項1に記載の無線通信装置。 The wireless communication device according to claim 1, wherein the second connection unit uses the second wireless channel received from the access point to establish the second type of connection with the access point. 前記無線通信装置は、さらに、
前記特定デバイスとの前記第1種の接続が確立されている状態で、前記操作部を介して前記第2の指示が入力される場合に、前記特定デバイスとの前記第1種の接続を切断する切断部を備え、
前記第2の接続部は、前記特定デバイスとの前記第1種の接続が切断された後に、前記アクセスポイントとの前記第2種の接続を確立する、請求項1又は2に記載の無線通信装置。
The wireless communication device further
When the second instruction is input via the operation unit while the first-class connection with the specific device is established, the first-class connection with the specific device is disconnected. Equipped with a cutting part to
The wireless communication according to claim 1 or 2, wherein the second connection portion establishes the second type connection with the access point after the first type connection with the specific device is disconnected. apparatus.
前記切断部は、
前記特定デバイスとの前記第1種の接続が確立されている状態で、前記操作部を介して前記第2の指示が入力され、かつ、前記第1種の接続で利用されている前記第1の無線チャネルの値と、前記アクセスポイントから受信された前記第2の無線チャネルの値と、が一致しない場合に、前記特定デバイスとの前記第1種の接続を切断し、
前記特定デバイスとの前記第1種の接続が確立されている状態で、前記操作部を介して前記第2の指示が入力され、かつ、前記第1種の接続で利用されている前記第1の無線チャネルの値と、前記アクセスポイントから受信された前記第2の無線チャネルの値と、が一致する場合に、前記特定デバイスとの前記第1種の接続を切断しない、請求項3に記載の無線通信装置。
The cut portion is
The first type of connection to the specific device is established, the second instruction is input via the operation unit, and the first type of connection is used in the first type of connection. When the value of the radio channel of the above and the value of the second radio channel received from the access point do not match, the connection of the first type with the specific device is disconnected.
The first type of connection to the specific device is established, the second instruction is input via the operation unit, and the first type of connection is used in the first type of connection. 3. The first type of connection with the specific device is not disconnected when the value of the radio channel and the value of the second radio channel received from the access point match. Wireless communication device.
前記親局及び前記子局のそれぞれは、Wi−Fi Direct(登録商標)に準拠するものである、請求項1から4のいずれか一項に記載の無線通信装置。The wireless communication device according to any one of claims 1 to 4, wherein each of the master station and the slave station conforms to Wi-Fi Direct (registered trademark). 前記親局は、前記Wi−Fi DirectのGroup Ownerであり、The master station is the Group Owner of the Wi-Fi Direct.
前記子局は、前記Wi−Fi Directのクライアントである、請求項5に記載の無線通信装置。The wireless communication device according to claim 5, wherein the slave station is a client of the Wi-Fi Direct.
前記無線通信装置は、さらに、The wireless communication device further
前記アクセスポイントとの前記第2種の接続が確立されていない状態で、前記操作部を介して前記第1の指示が入力される場合に、前記インターフェースを介して、状態決定通信を前記特定デバイスと実行する状態決定通信実行部であって、前記状態決定通信は、前記無線通信装置と前記特定デバイスとのうちの一方が親局として動作し、前記無線通信装置と前記特定デバイスとのうちの他方が子局として動作することを決定するための通信である、前記状態決定通信実行部を備え、When the first instruction is input via the operation unit in a state where the connection of the second type with the access point is not established, the state determination communication is transmitted to the specific device via the interface. In the state determination communication, one of the wireless communication device and the specific device operates as a master station, and the wireless communication device and the specific device are executed. It is provided with the state determination communication execution unit, which is communication for determining that the other station operates as a slave station.
前記第1の接続部は、前記状態決定通信が実行された後に、前記特定デバイスとの前記第1種の接続を確立する、請求項1から6のいずれか一項に記載の無線通信装置。The wireless communication device according to any one of claims 1 to 6, wherein the first connection unit establishes the first type of connection with the specific device after the state determination communication is executed.
前記状態決定通信は、Wi−Fi Direct(登録商標)のGroup Owner Negotiationである、請求項7に記載の無線通信装置。The wireless communication device according to claim 7, wherein the state determination communication is a Group Owner Negotiation of Wi-Fi Direct (registered trademark). 前記第1の接続部は、前記特定デバイスとの前記第1種の接続を確立する際に、前記決定部によって決定された前記第1の無線チャネルを利用して、前記インターフェースを介して、Wi−Fi Protected Setupネゴシエーションを実行する、請求項1から8のいずれか一項に記載の無線通信装置。The first connection unit utilizes the first radio channel determined by the determination unit when establishing the first type of connection with the specific device, and Wi-Fi via the interface. -The wireless communication device according to any one of claims 1 to 8, which performs Fi Protected Interface negotiation. 前記Wi−Fi Protected Setupネゴシエーションは、The Wi-Fi Protected Setup negotiation
前記決定部によって決定された前記第1の無線チャネルを利用して、前記インターフェースを介して、無線プロファイルを前記特定デバイスに送信することと、Using the first radio channel determined by the determination unit to transmit the radio profile to the specific device via the interface.
前記決定部によって決定された前記第1の無線チャネル及び前記無線プロファイルを利用して、前記インターフェースを介して、前記特定デバイスとの特定の無線通信を実行することと、Using the first radio channel and the radio profile determined by the determination unit to perform a specific radio communication with the specific device via the interface.
を含み、Including
前記特定の無線通信は、Authentication Request、Authentication Response、Association Request、Association Response、及び、4way handshakeのうちの少なくとも一つの無線通信を含む、請求項9に記載の無線通信装置。The wireless communication device according to claim 9, wherein the specific wireless communication includes at least one wireless communication among an Authentication Request, an Authentication Response, an Authentication Request, an Authentication Response, and a 4-way handshake.
前記無線通信装置は、さらに、The wireless communication device further
前記特定デバイスとの前記第1種の接続を確立することに応じて、前記特定デバイスの識別情報を管理リストに追加する管理制御部を備える、請求項1から10のいずれか一項に記載の無線通信装置。 The invention according to any one of claims 1 to 10, further comprising a management control unit that adds identification information of the specific device to the management list in response to establishing the first-class connection with the specific device. Wireless communication device.
前記無線通信装置は、前記特定デバイスの前記識別情報が前記管理リストに追加された後に、前記特定デバイスと前記管理リストに登録されている他の機器との間の無線通信を中継する、請求項11に記載の無線通信装置。A claim that the wireless communication device relays wireless communication between the specific device and another device registered in the management list after the identification information of the specific device is added to the management list. 11. The wireless communication device according to 11. 前記識別情報は、MACアドレスである、請求項11又は12に記載の無線通信装置。The wireless communication device according to claim 11 or 12, wherein the identification information is a MAC address. 前記第2種の接続は、IEEE802.11に準拠する無線通信を実行するための無線接続である、請求項1から13のいずれか一項に記載の無線通信装置。The wireless communication device according to any one of claims 1 to 13, wherein the second type connection is a wireless connection for executing wireless communication conforming to IEEE802.11. 前記第1種の接続は、Wi−Fi Direct(登録商標)に準拠する無線通信を実行するための無線接続である、請求項1から14のいずれか一項に記載の無線通信装置。The wireless communication device according to any one of claims 1 to 14, wherein the first type connection is a wireless connection for executing wireless communication conforming to Wi-Fi Direct (registered trademark). 無線通信装置のためのコンピュータプログラムであって、
前記無線通信装置に搭載されるコンピュータに、以下の各処理、即ち、
前記無線通信装置の操作部を介して、前記第1種の接続を確立するための第1の指示が入力される場合に、複数個の無線チャネルのうちの第1の無線チャネルを利用することを決定する決定処理と、
前記決定処理によって決定された前記第1の無線チャネルを利用して、前記無線通信装置のインターフェースを介して、特定デバイスとの前記第1種の接続を確立する第1の接続処理であって、前記インターフェースは、前記第1種の接続で利用されるべきMACアドレスと、第2種の接続で利用されるべきMACアドレスと、の両方が割り当てられている物理的に1個のインターフェースである、前記第1の接続処理と、
前記操作部を介して、前記第2種の接続を確立するための第2の指示が入力される場合に、前記複数個の無線チャネルのうちの第2の無線チャネルを利用して、前記インターフェースを介して、前記特定デバイスとは異なるアクセスポイントとの前記第2種の接続を確立する第2の接続処理と、
前記アクセスポイントとの前記第2種の接続が確立されている状態で、前記操作部を介して前記第1の指示が入力される場合に、前記無線通信装置を子局として動作させることなく親局として動作させることを設定する動作設定処理と、を実行させ、
前記決定処理は、前記アクセスポイントとの前記第2種の接続が確立されている状態で、前記操作部を介して前記第1の指示が入力され、前記無線通信装置を前記親局として動作させることが設定される場合に、前記第2の無線チャネルの値に一致する値を前記第1の無線チャネルの値として決定する、コンピュータプログラム。
A computer program for wireless communication devices
The computer mounted on the wireless communication device is subjected to the following processing, that is,
When the first instruction for establishing the first type connection is input via the operation unit of the wireless communication device, the first wireless channel among the plurality of wireless channels is used. And the decision process to determine
The first connection process for establishing the first type of connection with a specific device via the interface of the wireless communication device by using the first wireless channel determined by the determination process. The interface is a physically single interface to which both the MAC address to be used in the first-class connection and the MAC address to be used in the second-class connection are assigned. The first connection process and
When a second instruction for establishing the second type of connection is input via the operation unit, the interface is utilized by utilizing the second radio channel among the plurality of radio channels. A second connection process for establishing the second type of connection with an access point different from the specific device via
When the first instruction is input via the operation unit in a state where the second type connection with the access point is established, the parent without operating the wireless communication device as a slave station. Execute the operation setting process that sets the operation as a station,
In the determination process, the first instruction is input via the operation unit in a state where the second type connection with the access point is established, and the wireless communication device is operated as the master station. A computer program that, when set to , determines a value that matches the value of the second radio channel as the value of the first radio channel.
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 JP2019154076A (en) 2019-09-12
JP6852755B2 true 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)

Family Cites Families (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
US8744516B2 (en) * 2004-02-05 2014-06-03 Sri International Generic client for communication devices
JP4349142B2 (en) * 2004-02-09 2009-10-21 ソニー株式会社 Wireless communication apparatus, wireless communication method, and computer program
KR100904003B1 (en) * 2004-06-29 2009-06-22 노키아 코포레이션 Control of a short-range wireless terminal
JP2012019487A (en) * 2010-07-09 2012-01-26 Canon Inc Communication device and control method
JP5868147B2 (en) * 2011-12-01 2016-02-24 キヤノン株式会社 COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM

Also Published As

Publication number Publication date
JP2019154076A (en) 2019-09-12

Similar Documents

Publication Publication Date Title
US11575802B2 (en) Communication apparatus and printer for performing wireless communication of image data representing image of print target
JP5945910B2 (en) Wireless communication device
JP5899971B2 (en) Wireless communication device
JP5994261B2 (en) Communication device
JP5754254B2 (en) Wireless communication device
JP6503968B2 (en) Communication device and computer program for communication device
JP2014027384A (en) Communication device and mobile terminal
EP2713672B1 (en) Wireless slave devices configuration and communication therewith
JP6365594B2 (en) Wireless communication device
JP7347588B2 (en) Communication equipment and mobile terminals
JP6852755B2 (en) Wireless communication device
JP2021090229A (en) Wireless communication device
JP6544468B2 (en) Wireless communication device
JP7327600B2 (en) wireless communication device
JP6376250B2 (en) Wireless communication device
JP6164322B2 (en) Wireless communication device
JP2016036190A (en) Communication device
JP2017028738A (en) Communication device and mobile terminal
JP6601463B2 (en) Communication device
JP2019075833A (en) Communication device and mobile terminal
JP2018029401A (en) Communication device and mobile terminal
JP2018050350A (en) 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