JP2022040416A - Communication apparatus, control method, and program - Google Patents

Communication apparatus, control method, and program Download PDF

Info

Publication number
JP2022040416A
JP2022040416A JP2022008834A JP2022008834A JP2022040416A JP 2022040416 A JP2022040416 A JP 2022040416A JP 2022008834 A JP2022008834 A JP 2022008834A JP 2022008834 A JP2022008834 A JP 2022008834A JP 2022040416 A JP2022040416 A JP 2022040416A
Authority
JP
Japan
Prior art keywords
communication
nan
printer
communication device
wireless lan
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2022008834A
Other languages
Japanese (ja)
Other versions
JP7303913B2 (en
Inventor
航 立和
Wataru Tachiwa
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.)
Canon Inc
Original Assignee
Canon Inc
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
Priority claimed from JP2017164597A external-priority patent/JP7049086B2/en
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2022008834A priority Critical patent/JP7303913B2/en
Publication of JP2022040416A publication Critical patent/JP2022040416A/en
Application granted granted Critical
Publication of JP7303913B2 publication Critical patent/JP7303913B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

PROBLEM TO BE SOLVED: To establish a wireless connection between apparatuses with lower power consumption while suppressing the apparatus cost.
SOLUTION: A communication apparatus is configured to transmit Publish including a first Attribute relating to the Neighbor Awareness Network (NAN), which includes at least one of a Service ID or Service Info indicating a print service and to receive print data transmitted from another communication apparatus, according to the NAN. The communication apparatus further transmits a second Attribute relating to the NAN, which includes a BSSID to be used for establishing a wireless LAN connection, establishes a wireless LAN connection with the other communication apparatus in response to receiving a probe request destined for the BSSID from the other communication apparatus, and receives the print data via the established wireless LAN connection.
SELECTED DRAWING: Figure 1
COPYRIGHT: (C)2022,JPO&INPIT

Description

本発明は、通信相手の検索及び接続制御技術に関する。 The present invention relates to a communication partner search and connection control technique.

IEEE802.11規格シリーズに準拠した無線LANによる通信機能が、プリンタ等のサービスの提供に広く利用されている。特許文献1には、プリンタとユーザ機器との間の、無線LANの接続をセキュアに確立し、印刷データがその確立された接続によって伝送される技術が記載されている。また、特許文献2には、Bluetooth(登録商標) Low Energy(BLE)を用いて無線LANでの接続が可能なプリンタを検出してから、検出されたプリンタとの無線LANでの接続を確立する手法が記載されている。 The communication function by wireless LAN conforming to the IEEE802.11 standard series is widely used for providing services such as printers. Patent Document 1 describes a technique for securely establishing a wireless LAN connection between a printer and a user device, and transmitting print data by the established connection. Further, in Patent Document 2, Bluetooth (registered trademark) Low Energy (BLE) is used to detect a printer that can be connected by wireless LAN, and then establish a wireless LAN connection with the detected printer. The method is described.

特開2006-060578号公報Japanese Unexamined Patent Publication No. 2006-060578 特開2015-200989号公報JP-A-2015-200989

特許文献2に記載の技術によれば、無線LANでの接続を確立する前に接続可能なプリンタがBLEを用いて検出されるため、省電力化を図ることができる。なお、この手法を用いるには、通信を行う2つの装置が、共に、無線LANの通信機能のみならず、BLEの通信機能をも搭載する必要がある。しかしながら、BLEと無線LANとでは、物理層の信号形式やパケット構造が異なるため、これらの通信機能の両方を通信装置が利用可能とするためには、別の通信用回路を用意する必要があり、部品コストが増大するという課題があった。 According to the technique described in Patent Document 2, a printer that can be connected is detected by using BLE before establishing a connection by wireless LAN, so that power saving can be achieved. In order to use this method, it is necessary that both of the two devices that perform communication are equipped with not only the communication function of the wireless LAN but also the communication function of BLE. However, since the signal format and packet structure of the physical layer are different between BLE and wireless LAN, it is necessary to prepare another communication circuit in order for the communication device to use both of these communication functions. There was a problem that the cost of parts increased.

本発明は上記課題に鑑みなされたものであり、装置のコストを抑えながら、かつ、低消費電力で、装置間の無線接続の確立を実現する技術を提供することを目的とする。 The present invention has been made in view of the above problems, and an object of the present invention is to provide a technique for establishing a wireless connection between devices while suppressing the cost of the device and with low power consumption.

本発明の一態様による通信装置は、Neighbor Awareness Network(NAN)に基づいて、印刷サービスを示すService IDとService Infoとの少なくとも一方を含むNANに関連する第1のAttributeが含まれるPublishを送信する第1の通信手段と、他の通信装置から送信される印刷データを受信する第2の通信手段と、を有し、前記第1の通信手段は、無線LANの接続を確立するために用いられるBSSIDを含むNANに関連する第2のAttributeをさらに送信し、前記第2の通信手段は、前記他の通信装置から前記BSSIDを宛先としたプローブリクエストを受信したことに基づいて前記他の通信装置と無線LANの接続を確立し、当該確立された無線LANの接続を介して前記印刷データを受信する。 A communication device according to an aspect of the present invention transmits a Public containing a first Attribute related to a NAN including at least one of a Service ID indicating a printing service and a Service Info, based on the Neighborhood Awareness Network (NAN). It has a first communication means and a second communication means for receiving print data transmitted from another communication device, and the first communication means is used for establishing a wireless LAN connection. A second Attribute related to the NAN including the BSSID is further transmitted, and the second communication means receives a probe request destined for the BSSID from the other communication device. And establish a wireless LAN connection, and receive the print data via the established wireless LAN connection.

本発明によれば、装置のコストを抑えながら、かつ、低消費電力で、装置間の無線接続を確立することができる。 According to the present invention, it is possible to establish a wireless connection between devices while suppressing the cost of the devices and with low power consumption.

システムの構成例を示す図である。It is a figure which shows the configuration example of a system. SDFのフレーム構成を示す図である。It is a figure which shows the frame structure of SDF. ユーザ機器の構成例を示す図である。It is a figure which shows the configuration example of the user equipment. 制御部の処理の流れの例を示す図である。It is a figure which shows the example of the processing flow of a control part. ユーザ機器におけるアプリケーションの画面表示の例を示す図である。It is a figure which shows the example of the screen display of an application in a user device. プリンタ検索処理の流れの例を示す図である。It is a figure which shows the example of the flow of a printer search process. プリンタ検索結果として保存される情報の例を示す図である。It is a figure which shows the example of the information which is saved as a printer search result. プリンタ選択操作を受け付ける画面表示の例を示す図である。It is a figure which shows the example of the screen display which accepts a printer selection operation. ユーザ機器とプリンタの間の処理の流れの例を示す図である。It is a figure which shows the example of the processing flow between a user equipment and a printer. 制御部の処理の流れの例を示す図である。It is a figure which shows the example of the processing flow of a control part. ユーザ機器におけるアプリケーションの画面表示の例を示す図である。It is a figure which shows the example of the screen display of an application in a user device. 通信機能の許可/不許可を設定するための画面表示の例を示す図である。It is a figure which shows the example of the screen display for setting the permission / disapproval of a communication function.

以下、本発明の実施の形態について、図面を参照しながら説明する。なお、以下の実施形態では、IEEE802.11規格シリーズに準拠した無線LANの通信機能を有するユーザ機器とプリンタとの間で、通信を行う。このとき、ユーザ機器は、WiFi AllianceのNeighbor Awareness Network(NAN)によってプリンタを検出し、検出されたプリンタへ無線LANを用いて印刷データを送信する。NANでの通信は、所定の周期で所定の短期間のDiscovery Window(DW)が設定されることにより間欠的な通信であるため、消費電力を低く抑えることができる。また、NANでの通信は、IEEE802.11規格シリーズに準拠した通信であるため、IEEE802.11規格シリーズに準拠した無線LANでの他の通信のための通信用回路を用いて実行されうる。このため、BLE等の通信用回路を共用できない通信が用いられる場合と比して、通信装置のコストを低く抑えることもできる。以下では、まずシステム及び装置の構成について説明し、その後に処理の流れのいくつかの例について説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings. In the following embodiment, communication is performed between a user device having a wireless LAN communication function conforming to the IEEE802.11 standard series and a printer. At this time, the user device detects the printer by the WiFi Alliance's Neighborhood Awareness Network (NAN), and transmits the print data to the detected printer using the wireless LAN. Since the communication in NAN is intermittent communication by setting the Discovery Window (DW) for a predetermined short period in a predetermined cycle, the power consumption can be suppressed low. Further, since the communication in NAN is the communication conforming to the IEEE802.11 standard series, it can be executed by using the communication circuit for other communication in the wireless LAN conforming to the IEEE802.11 standard series. Therefore, the cost of the communication device can be kept low as compared with the case where communication that cannot share the communication circuit such as BLE is used. In the following, the configuration of the system and the device will be described first, and then some examples of the processing flow will be described.

(システム構成)
図1は、本実施形態に係る無線通信システムの構成例を示す図である。本無線通信システムは、例えば、ユーザ機器100、プリンタ101、及び他装置102を含む。これらの装置は本実施形態における通信装置の一例である。本実施形態では、これらの装置は、いずれも、IEEE802.11規格シリーズに準拠し、低消費電力のNANの通信機能と相対的に高消費電力の無線LANの通信機能とを有するものとする。なお、各装置は、IEEE802.11規格シリーズ以外の無線通信規格による無線通信機能を有していてもよい。すなわち、無線通信ハードウェアを共有可能な複数の無線通信方式であって、少なくとも1つが低消費電力の無線通信方式であるような複数の無線通信方式をサポートする通信装置であれば、以下の議論を適用することができる。
(System configuration)
FIG. 1 is a diagram showing a configuration example of a wireless communication system according to the present embodiment. The wireless communication system includes, for example, a user device 100, a printer 101, and another device 102. These devices are examples of communication devices in this embodiment. In the present embodiment, all of these devices conform to the IEEE802.11 standard series, and have a low power consumption NAN communication function and a relatively high power consumption wireless LAN communication function. In addition, each device may have a wireless communication function according to a wireless communication standard other than the IEEE802.11 standard series. That is, if it is a communication device that supports a plurality of wireless communication methods that can share wireless communication hardware and at least one of them is a low power consumption wireless communication method, the following discussion is made. Can be applied.

ユーザ機器100は、例えば、液晶画面とタッチパネル等のユーザインタフェースを有し、電池駆動のモバイル機器であるがこれに限られない。ユーザ機器100は、例えば、可搬型の又は据え置き型の、主電源に接続された又は電池駆動の、通信機能付きの任意のタイプの装置でありうる。ユーザ機器100として用いられうるモバイル機器は、例として、スマートフォン、携帯電話、タブレットPC(Personal Computer)、ラップトップPC、ノートPC、携帯ゲーム機でありうる。また、本実施形態では、ユーザ機器100は、周辺のプリンタを検索し、検出したプリンタへ画像などのコンテンツデータを送信して印刷させる機能を有する。この機能を実現するための処理等のユーザ機器100において実行される処理は、OS(Operating System)及びその上で動作するアプリケーションのソフトウェアを、プロセッサ等のハードウェアによって動作させることにより実現されうる。 The user device 100 has, for example, a user interface such as a liquid crystal screen and a touch panel, and is a battery-powered mobile device, but is not limited thereto. The user device 100 can be, for example, any type of portable or stationary, mains connected or battery-powered device with communication capabilities. The mobile device that can be used as the user device 100 may be, for example, a smartphone, a mobile phone, a tablet PC (Personal Computer), a laptop PC, a notebook PC, or a portable game machine. Further, in the present embodiment, the user device 100 has a function of searching for peripheral printers and transmitting content data such as images to the detected printers for printing. The processing executed in the user device 100 such as the processing for realizing this function can be realized by operating the software of the OS (Operating System) and the application running on the OS by hardware such as a processor.

プリンタ101は、ユーザ機器100等の他の装置に対して印刷サービスを提供する。なお、プリンタ101は、無線通信機能のみならず、有線通信機能を有していてもよく、有線ネットワークを介して接続された装置による印刷要求に応じて、印刷サービスを提供しうる。なお、本実施形態では、印刷サービスを提供するプリンタ101が用いられる例について説明するが、プリンタ101は、例えばデータを蓄積するストレージサービスを実行する記憶装置等、他の任意のサービスを提供する装置と置き換えられてもよい。 The printer 101 provides a printing service to other devices such as the user device 100. The printer 101 may have not only a wireless communication function but also a wired communication function, and can provide a printing service in response to a printing request by a device connected via a wired network. In this embodiment, an example in which a printer 101 that provides a printing service is used will be described. The printer 101 is a device that provides other arbitrary services such as a storage device that executes a storage service for storing data. May be replaced with.

上述のように、ユーザ機器100は、プリンタの検索に係る通信を低消費電力のNANで行い、印刷データの送信に係る通信を高速で相対的に消費電力の大きい無線LANで行う。ユーザ機器100と検索対象のプリンタとによるNANの通信は、2.4GHzの周波数帯域のチャネル6(2.437GHz)において、周期的に到来する所定長の期間として設定されるDWにおいて、双方向通信として実行される。なお、DWのスケジュールを共有している通信装置の集合は、NANクラスタと呼ばれる。DWは、512TUごとに16TUの期間として設定される。なお、「TU」は、Time Unitの頭字語であり、1TUは1024マイクロ秒である。ユーザ機器100とプリンタ101とが同じNANクラスタ110に属するときに、ユーザ機器100は、プリンタ101とDW期間において通信を行うことができる。なお、図1における1つ以上の他装置102も、同一のNANクラスタ110に属しうる。 As described above, the user device 100 performs communication related to printer search with a low power consumption NAN, and performs communication related to print data transmission with a high-speed wireless LAN having relatively high power consumption. The NAN communication between the user device 100 and the printer to be searched is bidirectional communication in the channel 6 (2.437 GHz) in the frequency band of 2.4 GHz and in the DW set as a period of a predetermined length that arrives periodically. Is executed as. The set of communication devices sharing the DW schedule is called a NAN cluster. The DW is set as a period of 16 TU for every 512 TU. "TU" is an acronym for Time Unit, and 1TU is 1024 microseconds. When the user equipment 100 and the printer 101 belong to the same NAN cluster 110, the user equipment 100 can communicate with the printer 101 during the DW period. It should be noted that one or more other devices 102 in FIG. 1 may also belong to the same NAN cluster 110.

NANクラスタには、NANクラスタに属していない端末に当該NANクラスタを認識させるための信号であるDiscovery Beaconを繰り返し送信する役割であるMasterとして動作する装置が含まれる。Discovery Beaconは、例えば100msごとにDW期間外のタイミングで送信される。また、Masterとして動作する装置は、各端末がDWを識別し、同期するためのビーコンであるSynchronization Beacon(以下では、Sync Beaconと呼ぶ。)をDW期間内に送信する。また、NANでは、Masterの他に、Non-Master Sync、Non-Master Non-Syncといった役割が定義されているが、ここでは説明を省略する。 The NAN cluster includes a device that operates as a master that repeatedly transmits a Discovery Beacon, which is a signal for making a terminal that does not belong to the NAN cluster recognize the NAN cluster. The Discovery Beacon is transmitted, for example, every 100 ms at a timing outside the DW period. In addition, the device operating as a master transmits a Synchronization Beacon (hereinafter referred to as a Sync Beacon), which is a beacon for each terminal to identify and synchronize the DW, within the DW period. Further, in NAN, roles such as Non-Master Sync and Non-Master Non-Sync are defined in addition to Master, but the description thereof is omitted here.

本実施形態では、プリンタ101がNANクラスタ110のMasterとして動作するものとする。ユーザ機器100は、プリンタ101からDiscovery Beaconを受信することによってNANクラスタ110を認識し、さらにSync Beaconを受信することによってNANクラスタ110のDW期間を検出する。なお、NANクラスタ内でMasterとして動作する装置の変更は許容されているため、この後に、ユーザ機器100がMasterとして動作しうる。また、ユーザ機器100が、MasterとしてDiscovery Beaconを送信し、近くに存在するプリンタがそのDiscovery Beaconを受信することにより、NANクラスタ110が構成されてもよい。また、他装置102がMasterとして動作し、プリンタ101とユーザ機器100が他装置102から送信されたDiscovery Beaconを受信して、NANクラスタ110に参加するようにしてもよい。 In this embodiment, it is assumed that the printer 101 operates as a master of the NAN cluster 110. The user device 100 recognizes the NAN cluster 110 by receiving the Discovery Beacon from the printer 101, and further detects the DW period of the NAN cluster 110 by receiving the Sync Beacon. Since it is permissible to change the device that operates as a Master in the NAN cluster, the user device 100 can operate as a Master after this. Further, the NAN cluster 110 may be configured by the user device 100 transmitting the Discovery Beacon as the Master and the nearby printer receiving the Discovery Beacon. Further, the other device 102 may operate as a master, and the printer 101 and the user device 100 may receive the Discovery Beacon transmitted from the other device 102 and participate in the NAN cluster 110.

ユーザ機器100とプリンタ101は、NANクラスタ110のDW期間内に印刷サービスの有無に関する情報を送受信する。ユーザ機器100は、サービスを検出または要求するためのメッセージであるSubscribeメッセージをDW期間内に送信することにより、印刷サービスを提供中の機器を検索していることを通知する。これに対して、プリンタ101は、サービスを提供していることを通知するためのメッセージであるPublishメッセージをDW期間内に送信することにより、印刷サービスを提供していることをユーザ機器100へ通知する。ユーザ機器100とプリンタ101は、さらに、追加の情報をFollow-upメッセージによって送受信してもよい。Publish、Subscribe、Follow-upといったメッセージは、Service Discovery Frame(SDF)と呼ばれるフレーム形式で送信される。なお、ユーザ機器100は、印刷サービスではないサービスを提供中の機器を検索する場合には、そのサービスを指定したSubscribeメッセージを送信する。それに対して、そのサービスを提供中の機器は、サービス提供中であることを示すPublishメッセージを送信する。 The user equipment 100 and the printer 101 transmit and receive information regarding the presence or absence of the print service within the DW period of the NAN cluster 110. The user device 100 notifies that the device providing the print service is being searched for by transmitting a Subscribing message, which is a message for detecting or requesting the service, within the DW period. On the other hand, the printer 101 notifies the user device 100 that the print service is provided by transmitting a Public message, which is a message for notifying that the service is being provided, within the DW period. do. The user equipment 100 and the printer 101 may further send and receive additional information by a Follow-up message. Messages such as Publish, Subscribe, and Follow-up are transmitted in a frame format called Service Discovery Frame (SDF). When the user device 100 searches for a device that is providing a service other than the printing service, the user device 100 transmits a Subscribing message that specifies the service. On the other hand, the device providing the service sends a Public message indicating that the service is being provided.

図2に、SDF200のフレーム構成を示す。SDF200は、IEEE802.11規格シリーズで規定されるMACフレームの一種であり、その送信元のNANデバイスのアドレスであるTransmitter Address201と、1つ以上のNAN Attribute202とを含む。なお、以下では、Transmitter AddressをTAと表記する。NAN Attributeには、複数の種別があり、その種別はAttribute IDにより定義され、種別ごとにAttribute Body Fieldの内容が定められる。Attribute IDの値が0x03のときのNAN Attributeは、Service Descriptor Attributeと呼ばれる。Service Descriptor AttributeのAttribute Body Fieldには、Service ID、Service Control、及び、Service Infoの各フィールドが含まれる。Service IDには、印刷サービス等のサービスの種別を表す情報を含めることができる。Service Controlには、Publish、Subscribe、Follow-upといったメッセージ種別を表す情報を含めることができる。Service Infoには、任意の情報を含めることができる。また、他の情報を送るためのNAN Attributeも定義されている。 FIG. 2 shows the frame configuration of the SDF200. The SDF200 is a type of MAC frame defined in the IEEE802.11 standard series, and includes a Transmitter Addless 201 which is an address of a NAN device whose source is NAN device, and one or more NAN Attribute 202. In the following, Transmitter Address will be referred to as TA. There are a plurality of types of NAN Attribute, the types are defined by Attribute ID, and the contents of Attribute Body Field are defined for each type. The NAN Attribute when the value of the Attribute ID is 0x03 is called a Service Descriptor Attribute. The Attribute Body Field of the Attribute Descriptor Attribute includes the Service ID, Service Control, and Service Info fields. The Service ID can include information indicating the type of service such as a print service. The Service Control can include information indicating a message type such as Publish, Subscribe, and Follow-up. The Service Info can contain arbitrary information. It also defines a NAN Attribute for sending other information.

ユーザ機器100は、プリンタ101から印刷サービスを提供中であることを示すPublishメッセージをDW期間内に受信すると、NANとは別の無線LAN接続をプリンタ101と確立する。例えば、プリンタ101が無線LANのアクセスポイント(AP)として動作し、ユーザ機器100が無線LANのステーション(STA)として動作してプリンタ101に接続しうる。なお、プリンタ101がSTAとして動作すると共にユーザ機器100がAPとして動作してもよいし、ユーザ機器100とプリンタ101が共にSTAとして動作して外部のAPに接続してもよい。すなわち、ユーザ機器100とプリンタ101とのうち、一方がアクセスポイントとして動作し、他方がステーションとして動作して通信することができれば足り、どちらがアクセスポイントとして動作するかについては限定されない。さらに、ユーザ機器100とプリンタ101は、Wi-Fi Direct規格に基づいて、P2P接続(直接接続)してもよい。このように、NANで接続相手を発見した後にNANとは別のネットワークにおいてデータ通信用の無線接続を確立することを、一般にPost NANと呼ぶ。ユーザ機器100とプリンタ101は、Post NANの無線接続を用いて、ユーザ機器100からプリンタ101へ印刷データを伝送する。なお、ユーザ機器100とプリンタ101は、NANのDW期間内の通信によってタイミング情報を交換し、好感されたタイミング情報に基づいてDW期間外で印刷データの通信を行うように構成されてもよい。すなわち、Post NANの無線接続を用いて印刷データを送信するのではなく、NANによる通信を用いて印刷データが送信されてもよい。このとき、DWの通信で用いられていた周波数チャネル(例えば6ch)が継続して用いられてもよいし、異なる周波数チャネルが用いられてもよい。異なる周波数チャネルが用いられることにより、印刷データの通信期間の一部がDWと重なってしまっても、信号の干渉による影響を抑えることができる。 When the user device 100 receives the Public message indicating that the print service is being provided from the printer 101 within the DW period, the user device 100 establishes a wireless LAN connection different from the NAN with the printer 101. For example, the printer 101 may operate as a wireless LAN access point (AP), and the user device 100 may operate as a wireless LAN station (STA) to connect to the printer 101. The printer 101 may operate as an STA and the user device 100 may operate as an AP, or the user device 100 and the printer 101 may both operate as an STA and connect to an external AP. That is, it suffices if one of the user device 100 and the printer 101 operates as an access point and the other operates as a station and can communicate with each other, and which one operates as an access point is not limited. Further, the user equipment 100 and the printer 101 may be P2P connected (directly connected) based on the Wi-Fi Direct standard. In this way, establishing a wireless connection for data communication in a network different from NAN after discovering a connection partner by NAN is generally called Post NAN. The user device 100 and the printer 101 transmit print data from the user device 100 to the printer 101 using the wireless connection of Post NAN. The user equipment 100 and the printer 101 may be configured to exchange timing information by communication within the DW period of NAN and to communicate print data outside the DW period based on the favorable timing information. That is, the print data may be transmitted using communication by NAN instead of transmitting the print data using the wireless connection of Post NAN. At this time, the frequency channel (for example, 6ch) used in the DW communication may be continuously used, or a different frequency channel may be used. By using different frequency channels, even if a part of the communication period of the print data overlaps with the DW, the influence of signal interference can be suppressed.

印刷データの送信にPost NANを用いる場合は、ユーザ機器100とプリンタ101は、NANの規格に基づいて、Post NANで無線接続を確立するために必要な情報をSDFでやり取りする。例えば、プリンタ101が無線LANのAPである場合、プリンタ101は、SDFにNAN Attributeの一種であるWLAN Infrastructure Attributeを含める。そして、プリンタ101は、そのAttribute Body FieldにBSSID(Basic Service Set Identifier)を含めたSDFを送信する。ユーザ機器100は、受信したSDFに含まれているそれらの情報を用いて無線LAN接続を確立する。NAN Attributeの別の一種であるService Descriptor Attribute内のService InfoにBSSIDが含められてもよい。また、BSSID以外の、無線接続を確立するために必要な接続設定情報についても、NANの規格に基づいてSDFでやり取りされうる。 When the Post NAN is used for transmitting the print data, the user equipment 100 and the printer 101 exchange information necessary for establishing a wireless connection with the Post NAN by SDF based on the NAN standard. For example, when the printer 101 is an AP of a wireless LAN, the printer 101 includes a WLAN Infrastructure Attribute, which is a kind of NAN Infrastructure, in the SDF. Then, the printer 101 transmits an SDF including a BSSID (Basic Service Set Identifier) in the Attribute Body Field. The user device 100 establishes a wireless LAN connection by using the information contained in the received SDF. BSSID may be included in the Service Info in the Service Descriptor Attribute, which is another type of NAN Attribute. In addition, connection setting information other than BSSID, which is necessary for establishing a wireless connection, can also be exchanged by SDF based on the NAN standard.

(ユーザ機器の構成)
続いて、ユーザ機器100の構成例について、図3を用いて説明する。ユーザ機器100は、一例において、制御部301、無線通信部302、表示部303、入力部304、タイマ305、メモリ306を有する。
(Configuration of user equipment)
Subsequently, a configuration example of the user device 100 will be described with reference to FIG. As an example, the user device 100 has a control unit 301, a wireless communication unit 302, a display unit 303, an input unit 304, a timer 305, and a memory 306.

制御部301は、例えば1つ以上のプロセッサによって構成され、メモリ306に記憶されている制御プログラムを実行することにより、ユーザ機器100全体を制御する。プロセッサは、一例において、CPU(Central Processing Unit)やMPU(Micro Processing Unit)であるが、これに限られない。例えば、FPGA(Field Programmable Gate Array)や、DSP(Digital Signal Processor)がプロセッサとして用いられてもよい。例えば、制御部301は、所定のコンパイラ及び所定の処理に対応するプログラムを用いてFPGA等のGate Array上の専用回路を自動的に生成して実行するように構成されうる。また、例えば、一部の処理をFPGA等によって実現し、他の処理をCPU等で実現するなど、複数のプロセッサ等の組み合わせによって制御部301が構成されてもよい。なお、制御部301は、制御プログラムを実行中に変数の値を記憶する際等、情報を記憶する様々な状況において1つ以上のメモリ306を使用することができ、また、メモリ306以外の記憶装置や、制御部301に内蔵されたメモリに情報を記憶させてもよい。また、制御部301は、タイマ305を用いて時間を計測することができる。 The control unit 301 is composed of, for example, one or more processors, and controls the entire user device 100 by executing a control program stored in the memory 306. The processor is, for example, a CPU (Central Processing Unit) or an MPU (Micro Processing Unit), but is not limited thereto. For example, FPGA (Field Programmable Gate Array) or DSP (Digital Signal Processor) may be used as a processor. For example, the control unit 301 may be configured to automatically generate and execute a dedicated circuit on a Gate Array such as an FPGA by using a predetermined compiler and a program corresponding to a predetermined process. Further, the control unit 301 may be configured by a combination of a plurality of processors or the like, for example, a part of the processing is realized by an FPGA or the like and another processing is realized by a CPU or the like. The control unit 301 can use one or more memories 306 in various situations for storing information, such as when storing a variable value during execution of a control program, and also stores other than the memory 306. Information may be stored in a device or a memory built in the control unit 301. Further, the control unit 301 can measure the time by using the timer 305.

無線通信部302は、制御部301の制御により、無線LANおよびNANの規格に準拠した通信方式によって、他の装置(例えばプリンタ101)との間で、データの送信と受信との少なくともいずれかを行う。無線通信部302は、例えば、アンテナ、変復調回路、メディアアクセス制御等のためのプロセッサ等、無線LANおよびNANによる通信を行うために必須の構成及び機能を有する。上述の通り、無線LANによる通信及びNANによる通信では、無線通信部302を構成する通信用回路やアンテナ等の少なくとも一部が共用される。 Under the control of the control unit 301, the wireless communication unit 302 transmits or receives at least one of data to and from another device (for example, the printer 101) by a communication method compliant with the wireless LAN and NAN standards. conduct. The wireless communication unit 302 has, for example, an antenna, a modulation / demodulation circuit, a processor for media access control, and the like, and has essential configurations and functions for performing communication by wireless LAN and NAN. As described above, in the communication by wireless LAN and the communication by NAN, at least a part of the communication circuit, the antenna, and the like constituting the wireless communication unit 302 are shared.

表示部303は、制御部301の制御により、画像などのコンテンツ情報や、ユーザが入力部304を用いてユーザ機器100を操作するために必要な情報等の任意の情報をユーザに対して視覚的に提示する。例えば、表示部303は液晶画面や有機ELディスプレイである。なお、表示部303は、ディスプレイに代えて又はこれに加えて、聴覚や触覚等を通じてユーザに情報を提示するスピーカや振動子をさらに有してもよい。入力部304は、ユーザによる操作を受け付ける受付機能を有する任意のハードウェアでありうる。例えば、入力部304は、キーボードやマウスでありうる。また、入力部304と表示部303が一体化されたタッチパネル式ディスプレイが用いられてもよい。タイマ305は、例えば、制御部301によって与えられた契機により計時を開始し、計時開始時からの経過時間を測定する一般的なタイマである。メモリ306は、制御部301の制御プログラム、制御部301が制御プログラムを実行中に出力される変数の値、及び、画像等のコンテンツ情報等、様々な情報を保持する。 Under the control of the control unit 301, the display unit 303 visually provides the user with arbitrary information such as content information such as an image and information necessary for the user to operate the user device 100 using the input unit 304. Present to. For example, the display unit 303 is a liquid crystal screen or an organic EL display. The display unit 303 may further include a speaker or a vibrator that presents information to the user through hearing, tactile sensation, or the like, in place of or in addition to the display. The input unit 304 may be any hardware having a reception function for accepting operations by the user. For example, the input unit 304 may be a keyboard or a mouse. Further, a touch panel type display in which the input unit 304 and the display unit 303 are integrated may be used. The timer 305 is, for example, a general timer that starts timing by a trigger given by the control unit 301 and measures the elapsed time from the start of timing. The memory 306 holds various information such as the control program of the control unit 301, the values of variables output while the control unit 301 is executing the control program, and content information such as images.

(処理の流れ)
続いて、上述のシステム及び装置の構成において実行される処理の流れのいくつかの例について、主としてユーザ機器100の観点から説明する。本処理は、例えば、ユーザ機器100において所定のアプリケーションが実行されたことに応じて開始される。
(Process flow)
Subsequently, some examples of the flow of processing executed in the above-mentioned system and device configuration will be described mainly from the viewpoint of the user equipment 100. This process is started, for example, in response to the execution of a predetermined application on the user device 100.

<処理例1>
ユーザ機器100によって実行される処理の第1の例について、図4を用いて説明する。処理が開始されると、制御部301は、無線通信部302を制御して無線LANをオフの状態とし、ユーザによるプリンタ検索操作を待ち受ける(S401、S402)。なお、ここでオフとされる対象は無線LANの一部の通信機能、例えば高速大容量通信機能のみであってもよいが、NANの通信機能もオフとされてもよい。制御部301は、S402において、アプリケーションの終了操作や、印刷等の所定のサービスに関する所定の終了処理が行われたと判定した場合には、図4の処理を終了する。このときの表示部303の表示内容の一例を、図5(A)及び図5(B)を用いて説明する。図5(A)の画面500は、所定のアプリケーションXが実行され、画像コンテンツが表示されている時の表示部303の表示内容である。図4の処理は、例えばこのアプリケーションXが開始されることによって、又は、このアプリケーションXにおいて画像コンテンツが表示された等の所定の処理が行われたことに応じて、開始されうる。制御部301は、表示中の画像コンテンツに対する操作を行うためのメニューボタン501がタップされると、表示部303を制御して図5(B)の画面502に遷移してメニューを表示させる。さらに、メニューの中の印刷ボタン503がタップされると、制御部301は、ユーザによってプリンタ検索操作が行われたと判定する。
<Processing example 1>
A first example of the process executed by the user device 100 will be described with reference to FIG. When the process is started, the control unit 301 controls the wireless communication unit 302 to turn off the wireless LAN and waits for the printer search operation by the user (S401, S402). The target to be turned off here may be only a part of the communication function of the wireless LAN, for example, the high-speed large-capacity communication function, but the communication function of the NAN may also be turned off. When the control unit 301 determines in S402 that the application termination operation or the predetermined termination processing related to the predetermined service such as printing has been performed, the control unit 301 terminates the processing of FIG. An example of the display content of the display unit 303 at this time will be described with reference to FIGS. 5 (A) and 5 (B). The screen 500 of FIG. 5A is the display content of the display unit 303 when the predetermined application X is executed and the image content is displayed. The process of FIG. 4 may be started, for example, by starting the application X, or in response to a predetermined process such as displaying image content in the application X. When the menu button 501 for performing an operation on the image content being displayed is tapped, the control unit 301 controls the display unit 303 to transition to the screen 502 of FIG. 5B and display the menu. Further, when the print button 503 in the menu is tapped, the control unit 301 determines that the printer search operation has been performed by the user.

制御部301は、プリンタ検索操作を検出すると、無線通信部302を制御してNANクラスタに参加させ、Discovery BeaconとSync Beaconとを受信してDW期間を検出させる(S403)。続いて、制御部301は、無線通信部302を制御して、そのDW期間に行う通信において、このNANクラスタに存在するプリンタを検索させる(S404)。ここで、S404で実行されるプリンタ検索処理について、図6を用いて説明する。 When the control unit 301 detects the printer search operation, it controls the wireless communication unit 302 to join the NAN cluster, receives the Discovery Beacon and the Sync Beacon, and detects the DW period (S403). Subsequently, the control unit 301 controls the wireless communication unit 302 to search for a printer existing in this NAN cluster in the communication performed during the DW period (S404). Here, the printer search process executed in S404 will be described with reference to FIG.

制御部301は、まず、メモリ306にあらかじめ保持されている印刷サービスを表す文字列を読み出す(S601)。この文字列は、NAN規格においてService Nameと呼ばれる文字列である。文字列は、例えば「print_service」でありうるが、他の文字列が用いられてもよい。また、例えば、「org.organization_xxx.print_service」のようにドメイン名を含む文字列が用いられてもよい。続いて、制御部301は、この文字列についてのハッシュ値を計算する(S602)。制御部301は、例えば、文字列をハッシュ関数SHA-256の入力とし、このハッシュ関数の出力結果の先頭48ビット(6バイト)を、ハッシュ値としうる。なお、ハッシュ値の計算は、制御部301が行うのではなく、無線通信部302が行うようにしてもよい。また、別の計算方法によってハッシュ値が計算されてもよい。また、場合によっては、文字列そのもの等の、文字列に対応するがハッシュ値ではない所定の値が用いられてもよい。 First, the control unit 301 reads out a character string representing the print service previously stored in the memory 306 (S601). This character string is a character string called Service Name in the NAN standard. The character string may be, for example, "print_service", but other character strings may be used. Further, for example, a character string including a domain name such as "org.organization_xxx.print_service" may be used. Subsequently, the control unit 301 calculates a hash value for this character string (S602). For example, the control unit 301 may use a character string as an input of the hash function SHA-256 and the first 48 bits (6 bytes) of the output result of this hash function as a hash value. The hash value may be calculated by the wireless communication unit 302 instead of the control unit 301. Further, the hash value may be calculated by another calculation method. Further, in some cases, a predetermined value corresponding to the character string but not a hash value, such as the character string itself, may be used.

次に、制御部301は、タイマを起動し(S603)、所定期間の間、以下のS604~S607の処理を繰り返し実行する。S604では、所定期間は、例えば10秒間であるが、これに限られず、任意の時間長が所定期間として用いられうる。制御部301は、無線通信部302を制御して、DW期間において、Subscribeメッセージを送信させる(S604)。ここでのSubscribeメッセージは、Service ControlにSubscribeメッセージであることを特定する情報が設定され、S602で取得したハッシュ値と一致するService IDを含んだSDFによって送信される。 Next, the control unit 301 starts the timer (S603) and repeatedly executes the following processes S604 to S607 for a predetermined period. In S604, the predetermined period is, for example, 10 seconds, but the predetermined period is not limited to this, and any time length can be used as the predetermined period. The control unit 301 controls the wireless communication unit 302 to transmit a Subscribing message during the DW period (S604). The Subscribing message here is transmitted by an SDF including a Service ID that matches the hash value acquired in S602, with information for identifying the Subscribing message set in the Service Control.

続いて、制御部301は、無線通信部302を制御して、DW期間において、上述のハッシュ値と一致するService IDを含んだPublishメッセージを受信させる(S605)。例えば、無線通信部302は、Service IDに基づいてフィルタする機能を有する場合には、上述のハッシュ値をService IDに設定されていないPublishメッセージを遮断するように設定されうる。無線通信部302は、Service IDが一致するPublishメッセージを受信すると、そのことを制御部301に通知する。制御部301は、無線通信部302からこの通知を受け取ると、そのPublishメッセージの送信元の装置が印刷サービスを提供しているプリンタであると判定する。そして、制御部301は、このPublishメッセージのTAと、同じTAから受信したNAN Attributeの内容とを関連付けてメモリ306に記憶させ、これをプリンタ検索結果として保存する。制御部301は、所定時間の間、S604~S607の処理を実行した後に図6の処理を終了する。 Subsequently, the control unit 301 controls the wireless communication unit 302 to receive a Public message including a Service ID that matches the hash value described above during the DW period (S605). For example, when the wireless communication unit 302 has a function of filtering based on the Service ID, the wireless communication unit 302 may be set to block the Public message in which the above-mentioned hash value is not set in the Service ID. When the wireless communication unit 302 receives the Public message with the matching Service ID, the wireless communication unit 302 notifies the control unit 301 of that. Upon receiving this notification from the wireless communication unit 302, the control unit 301 determines that the device from which the Public message is transmitted is a printer that provides a printing service. Then, the control unit 301 associates the TA of this Public message with the content of the NAN Attribute received from the same TA and stores it in the memory 306, and stores this as a printer search result. The control unit 301 ends the process of FIG. 6 after executing the processes of S604 to S607 for a predetermined time.

なお、NANの規格では、Publishメッセージの送信方法として、2つの動作が規定されている。Subscribe信号に応答する形でPublish信号が送信されるSolicited Publishと、Subscribe信号がなくても繰り返しPublish信号が送信されるUnsolicited Publishである。図6の処理において、Unsolicited Publishを行うプリンタのみを検索する場合は、S604におけるSubscribeメッセージの送信は省略されてもよい。 The NAN standard defines two operations as a method for transmitting a Public message. A Solidified Public in which a Public signal is transmitted in response to a Subscribing signal, and a Unified Public in which a Public signal is repeatedly transmitted without a Subscribing signal. In the process of FIG. 6, when searching only the printer performing Unified Public, the transmission of the Subscribing message in S604 may be omitted.

図7に、S404のプリンタ検索処理によってメモリに保存されるプリンタ検索結果700の例を示す。例えば、TA=01-23-45-67-89-BBの装置から、S602で計算されたハッシュ値と一致するService IDを含むPublishメッセージを受信したものとする。さらに、このPublishメッセージのService Infoに、プリンタ名を表す情報として「13階オフィス南側プリンタ」という文字列が含まれていたものとする。また、同じTAの送信元から、NAN Attributeの1つであるWLAN Infrastructure Attributeにおいて、BSSID=「BB-BB-BB-BB-BB-BB」という情報を受信したものとする。この場合、情報701に示すように、TA、プリンタ名、及びBSSIDが関連付けられた情報がメモリ306に保存される。他のTAの装置からも同様の情報を受信した場合は、TAごとに、情報701のような情報を記憶する。保存されるNAN Attributeの内容は、受信した情報の一部または全部でありうる。図7のプリンタ検索結果700は、4台のプリンタが発見された場合の例である。 FIG. 7 shows an example of the printer search result 700 stored in the memory by the printer search process of S404. For example, it is assumed that a Public message including a Service ID that matches the hash value calculated in S602 is received from the device of TA = 01-23-45-67-89-BB. Further, it is assumed that the Service Info of this Public message contains the character string "Printer on the south side of the office on the 13th floor" as information representing the printer name. Further, it is assumed that the information BSSID = "BB-BB-BB-BB-BB-BB" is received from the same TA source in the WLAN Infrastructure Attribute, which is one of the NAN Infrastructure. In this case, as shown in the information 701, the information associated with the TA, the printer name, and the BSSID is stored in the memory 306. When similar information is received from other TA devices, information such as information 701 is stored for each TA. The contents of the stored NAN Attribute can be part or all of the received information. The printer search result 700 of FIG. 7 is an example when four printers are found.

図4に戻り、プリンタ検索処理によって1台以上のプリンタを検出した場合(S405でYES)、制御部301は、その検索結果に基づいてプリンタ選択画面を表示部303に表示させ、接続すべきプリンタのユーザ選択を待ち受ける(S406)。そして、制御部301は、無線通信部302を制御して、S401においてオフとしていた無線LANの高速大容量の通信機能をオンとして、ユーザに選択されたプリンタとのNANとは別の無線LANの接続を確立する(S407)。なお、プリンタ検索処理(S404)でプリンタが検出されなかった場合(S405でNO)、制御部301は、プリンタが発見されなかったことを、例えば表示部303を介した情報提示によって、ユーザに通知し(S409)、処理をS401に戻す。 Returning to FIG. 4, when one or more printers are detected by the printer search process (YES in S405), the control unit 301 displays the printer selection screen on the display unit 303 based on the search result, and the printer to be connected. Waits for user selection (S406). Then, the control unit 301 controls the wireless communication unit 302 to turn on the high-speed and large-capacity communication function of the wireless LAN that was turned off in S401, and the wireless LAN different from the NAN with the printer selected by the user. Establish a connection (S407). When the printer is not detected in the printer search process (S404) (NO in S405), the control unit 301 notifies the user that the printer has not been found, for example, by presenting information via the display unit 303. (S409), and the process is returned to S401.

図8(A)に、S406で表示されるプリンタ選択画面800の例を示す。プリンタ選択画面800では、プリンタ検索結果700として記憶されているNAN Attributeのプリンタ名の情報が、TA別に一覧表示される。これらの情報は、アルファベット順や文字コード順等の任意の順序で表示されうる。また、制御部301は、過去にユーザに選択されたTAをメモリ306に記憶しておき、選択されたことのあるTAを最上位に示す等の選択が容易になる形式で表示するようにしてもよい。すなわち、過去の接続履歴情報に基づく表示制御を行ってもよい。制御部301は、ユーザが表示された情報のうちの1つの情報801をタップしたことを検出すると、プリンタ検索結果700のうちの対応する情報701を参照し、その情報701に対応するBSSIDを取得する。そして、制御部301は、無線通信部302を制御して、このBSSIDを宛先とするProbe Requestを送信させる。無線通信部302は、その後、Probe Responseを受信し、それに続いて、AuthenticationとAssociationの手続きを行うことによって、無線LANの接続を確立する。なお、Probe Requestの送信等、無線LANの接続確立のための手続きは、一般的な無線LANの接続手順と同様であるため、説明を省略する。なお、無線通信部302は、ここで用いるセキュリティキーとして、NAN Attributeによってプリンタ101から受信されたものを用いてもよいし、入力部304を介したユーザ入力によって取得されたものを用いてもよい。また、取得されたセキュリティキーは、BSSIDと関連付けてメモリ306に保持されてもよい。この場合、無線通信部302は、後に同じBSSIDのプリンタと接続する際にメモリ306を参照することにより、2回目以降のユーザ入力を省略することができる。 FIG. 8A shows an example of the printer selection screen 800 displayed in S406. On the printer selection screen 800, the information of the printer name of NAN Attribute stored as the printer search result 700 is displayed in a list by TA. This information may be displayed in any order such as alphabetical order or character code order. Further, the control unit 301 stores the TA selected by the user in the past in the memory 306, and displays the TA that has been selected at the top in a format that facilitates selection. May be good. That is, display control may be performed based on the past connection history information. When the control unit 301 detects that the user has tapped the information 801 of the displayed information, the control unit 301 refers to the corresponding information 701 of the printer search results 700 and acquires the BSSID corresponding to the information 701. do. Then, the control unit 301 controls the wireless communication unit 302 to transmit a probe request addressed to this BSSID. After that, the wireless communication unit 302 receives the Probe Response, and subsequently performs the procedures of Authentication and Association to establish the wireless LAN connection. Since the procedure for establishing a wireless LAN connection, such as the transmission of the Probe Request, is the same as the general wireless LAN connection procedure, the description thereof will be omitted. As the security key used here, the wireless communication unit 302 may use one received from the printer 101 by the NAN Attribute, or may use one acquired by user input via the input unit 304. .. Further, the acquired security key may be held in the memory 306 in association with the BSSID. In this case, the wireless communication unit 302 can omit the second and subsequent user inputs by referring to the memory 306 when connecting to the printer of the same BSSID later.

なお、制御部301は、S406において表示される画面として、図8(B)に示すような、プリンタのみならず、その他の種別の機器についての検索結果をも含んだ画面810を表示させてもよい。プリンタ以外の種類の機器は、図6のS604およびS605で用いられるハッシュ値の計算に入力する文字列を、プロジェクタやスピーカ等、印刷サービス以外のサービスに対応する文字列とすることによって検索される。その他の処理はプリンタの検索処理の場合と同様である。このとき、検索処理が文字列ごとに行われるため、制御部301は、プリンタとそれ以外の機器の検索結果を、画面810に示すように、それぞれ別個に表示することができる。また、S406では、S607におけるタイムアウトを待ってから検索結果を表示するのではなく、所望のサービスを提供している装置が発見された時点で、その都度、検索結果の表示を行うようにしてもよい。その場合、例えば、図8(A)で表示される検索結果の一覧は、リアルタイムに更新されていくように表示されることになる。このように表示することで、S607のタイムアウトの経過を待たなくとも、ユーザは使用するプリンタを選択できるようになる。 The control unit 301 may display a screen 810 including search results for not only the printer but also other types of devices as shown in FIG. 8B as the screen displayed in S406. good. Devices other than the printer are searched by setting the character string input in the calculation of the hash value used in S604 and S605 of FIG. 6 as a character string corresponding to a service other than the printing service such as a projector and a speaker. .. Other processes are the same as in the case of the printer search process. At this time, since the search process is performed for each character string, the control unit 301 can display the search results of the printer and other devices separately as shown on the screen 810. Further, in S406, instead of waiting for the timeout in S607 and then displaying the search result, the search result is displayed each time a device providing the desired service is found. good. In that case, for example, the list of search results displayed in FIG. 8A will be displayed so as to be updated in real time. By displaying in this way, the user can select the printer to be used without waiting for the timeout of S607 to elapse.

制御部301は、S407の無線LANの接続確立の後、さらに無線通信部302を制御して、その無線接続を用いてプリンタに印刷データを送信する(S408)。制御部301は、印刷データの送信を完了すると、処理をS401に戻す。ここで送信される印刷データは、例えば、図5の画面500でプリンタ検索操作がなされた場合、画面500に含まれる画像コンテンツである。なお、印刷データは、図5の画面500によらない方法でプリンタ検索操作がなされた場合、S408の時点で確定していない場合がありうる。この場合、制御部301は、S408において、印刷対象をユーザに選択させるメニューを表示部303に表示させてもよい。また、この場合、制御部301は、メニューを表示させた後に所定時間にわたって印刷すべきデータが確定されない場合や、ユーザがキャンセル操作を行った場合に、印刷データを送信せずに処理をS401に戻してもよい。また、制御部301は、S408において印刷すべきデータの選択を受け付けるメニューを表示するのではなく、S407の無線LANの接続処理の前にメニューを表示するように制御を行ってもよい。この場合、制御部301は、印刷データが確定されるまで、S407の無線LANの接続処理を実行せずに待機するように無線通信部302を制御してもよい。 After establishing the wireless LAN connection of S407, the control unit 301 further controls the wireless communication unit 302 and transmits print data to the printer using the wireless connection (S408). When the control unit 301 completes the transmission of the print data, the control unit 301 returns the process to S401. The print data transmitted here is, for example, image content included in the screen 500 when the printer search operation is performed on the screen 500 of FIG. The print data may not be fixed at the time of S408 when the printer search operation is performed by a method not based on the screen 500 of FIG. In this case, the control unit 301 may display the display unit 303 on the display unit 303 to display a menu for the user to select a print target in S408. Further, in this case, the control unit 301 performs the process to S401 without transmitting the print data when the data to be printed is not determined for a predetermined time after displaying the menu or when the user performs a cancel operation. You may put it back. Further, the control unit 301 may control to display the menu before the wireless LAN connection process of S407, instead of displaying the menu for accepting the selection of the data to be printed in S408. In this case, the control unit 301 may control the wireless communication unit 302 so as to stand by without executing the wireless LAN connection process of S407 until the print data is confirmed.

続いて、無線通信システムにおける処理の流れの例について、図9を用いて説明する。図9の開始時点において、プリンタ101は、Discovery BeaconとSync Beaconとを繰り返し送信しており、またユーザ機器の無線LANはオフの状態である(F901、S401)。その後、ユーザが、ユーザ機器100に対してプリンタ検索操作を実行する(F902)。ユーザ機器100は、このプリンタ検索操作に応答して、Discovery BeaconとSync Beaconとを受信し(F903、F904)、DW期間を検出し、NANクラスタに参加する(S402、S403)。そして、ユーザ機器100は、DW期間においてSubscribeメッセージを送信し(F905)、Publishメッセージを受信する(F906)ことにより、プリンタを検索する(S404)。そして、ユーザ機器100は、プリンタを検索した結果を表示し(F907)、ユーザのプリンタ選択操作を待ち受ける(S406)。そして、ユーザ機器100は、プリンタ選択操作を検出すると(F908)、無線LANの高速大容量通信機能をオンにして、プリンタ101に対してProbe Requestを送信する(F909)。その後、ユーザ機器100は、Probe Responseを受信して(F910)、プリンタ101との間で無線LANの高速大容量通信のための接続を確立し(F911、S407)、印刷データを送信する(F912、S408)。そして、ユーザ機器100は、印刷データの送信を完了すると、無線LANをオフとして(S401)、ユーザによるプリンタ検索操作を待ち受ける状態に戻る(S402)。なお、F909~F912のPost NANの接続は、プリンタ101が無線LANのAP、ユーザ機器100が無線LANのSTAとして確立されうるが、これに限られない。例えば、ユーザ機器100とプリンタ101は、Attribute ID=0x06のNAN AttributeによってP2P Device Role等のP2P接続に必要な情報を取得し、この情報を用いて無線LANのP2P接続を行ってもよい。また、Post NANを用いずにNANの接続を用いて印刷データの送信を行ってもよい。すなわち、ユーザ機器100とプリンタ101は、NAN Attributeによって通信タイミング情報をやりとりし、無線LAN接続を確立することに代えて、NANの接続を維持して、DW期間外の期間において印刷データの伝送を行ってもよい。 Subsequently, an example of the processing flow in the wireless communication system will be described with reference to FIG. At the start of FIG. 9, the printer 101 repeatedly transmits the Discovery Beacon and the Sync Beacon, and the wireless LAN of the user device is in the off state (F901, S401). After that, the user executes a printer search operation for the user device 100 (F902). In response to this printer search operation, the user device 100 receives the Discovery Beacon and the Sync Beacon (F903, F904), detects the DW period, and participates in the NAN cluster (S402, S403). Then, the user device 100 searches for a printer by transmitting a Subscribing message (F905) and receiving a Public message (F906) during the DW period (S404). Then, the user device 100 displays the result of searching for the printer (F907) and waits for the user's printer selection operation (S406). Then, when the user device 100 detects the printer selection operation (F908), it turns on the high-speed large-capacity communication function of the wireless LAN and transmits a probe request to the printer 101 (F909). After that, the user device 100 receives the probe response (F910), establishes a connection for high-speed and large-capacity wireless LAN communication with the printer 101 (F911, S407), and transmits print data (F912). , S408). Then, when the user device 100 completes the transmission of the print data, the wireless LAN is turned off (S401), and the user device 100 returns to the state of waiting for the printer search operation by the user (S402). The connection of the Post NAN of F909 to F912 can be established with the printer 101 as the AP of the wireless LAN and the user device 100 as the STA of the wireless LAN, but the connection is not limited to this. For example, the user equipment 100 and the printer 101 may acquire information necessary for P2P connection such as P2P Device Role by NAN Attribute with Attribute ID = 0x06, and may make P2P connection of wireless LAN using this information. Further, the print data may be transmitted using the connection of NAN without using Post NAN. That is, the user equipment 100 and the printer 101 exchange communication timing information by NAN Attribute, and instead of establishing a wireless LAN connection, maintain the NAN connection and transmit print data in a period outside the DW period. You may go.

図9を用いて説明したように、ユーザ機器100は、プリンタ選択操作の後から印刷データの送信を完了するまでの期間でのみ、無線LANの高速大容量通信機能をオンとしており、それ以外の期間ではこの機能はオフとされる。また、ユーザ機器100は、プリンタ検索操作の際に周辺にプリンタが存在しない場合は、無線LANの高速大容量通信機能はオンとはならない。すなわち、ユーザ機器100の無線LANの機能のうち、比較的消費電力の大きい機能は、プリンタと接続する必要があり、かつ、プリンタと接続可能な期間においてのみオンとなる。また、ユーザ機器100は、通信用回路等を共有できないBLE等の他の無線通信方式を用いずに、プリンタ等の接続相手装置の検出を行う。したがって、本処理例のユーザ機器100は、装置のコストを抑えながら、かつ、低消費電力で、通信相手装置(例えばプリンタ101)との無線接続を確立することができる。また、その後に通信方式を切り替えて大容量のデータの伝送を行うことができる。 As described with reference to FIG. 9, the user device 100 turns on the high-speed large-capacity communication function of the wireless LAN only during the period from the printer selection operation to the completion of the transmission of print data, and other than that. This feature is turned off during the period. Further, in the user device 100, if there is no printer in the vicinity during the printer search operation, the high-speed large-capacity communication function of the wireless LAN is not turned on. That is, among the functions of the wireless LAN of the user device 100, the function having a relatively large power consumption needs to be connected to the printer and is turned on only during the period in which the printer can be connected. Further, the user device 100 detects a connection partner device such as a printer without using another wireless communication method such as BLE that cannot share a communication circuit or the like. Therefore, the user device 100 of this processing example can establish a wireless connection with a communication partner device (for example, a printer 101) while suppressing the cost of the device and with low power consumption. Further, after that, the communication method can be switched to transmit a large amount of data.

なお、本処理例では、ユーザ機器100は、DW期間に送信されたSDFによって、Service IDを含むNAN Attributeを受信し、そのService IDの値に基づいてプリンタを検索するものとした。しかしながら、Discovery BeaconやSync Beaconにも、Service IDを伴うNAN Attributeが含められる場合がある。このため、ユーザ機器100は、Discovery BeaconやSync Beaconを受信した際にService IDを検出した場合、そのBeaconに含まれるTAとService IDとを、プリンタ検索結果700に加えてもよい。これにより、ユーザ機器100は、Discovery BeaconやSync BeaconでService IDを送信しているプリンタを発見することができる。 In this processing example, the user device 100 receives the NAN Attribute including the Service ID by the SDF transmitted during the DW period, and searches for the printer based on the value of the Service ID. However, the Discovery Beacon and the Sync Beacon may also include a NAN Attribute with a Service ID. Therefore, when the user device 100 detects the Service ID when receiving the Discovery Beacon or the Sync Beacon, the TA and the Service ID included in the Beacon may be added to the printer search result 700. As a result, the user device 100 can find the printer transmitting the Service ID on the Discovery Beacon or the Sync Beacon.

なお、上での説明では、アプリケーションXが開始されることによって、又は、このアプリケーションXにおいて画像コンテンツが表示された等の所定の処理が行われたことに応じて、図4の処理が開始されると説明したが、これに限られない。例えば、ユーザ機器100の電源が投入されたことやスリープ状態からの復帰操作によって、図4の処理が開始されてもよい。また、上での説明では、ユーザによるプリンタ検索操作が明示的に行われるものとしたが、これに限られない。例えば、上述の図4の処理が開始される条件が満たされたことによってプリンタ検索操作があったものとみなし、例えばユーザ機器100が動作している間は常にNANクラスタに参加した状態を維持してもよい。この場合、制御部301は、例えば印刷データが確定したことに応じて、S404のプリンタ検索操作を実行してもよい。また、S404のプリンタ検索操作のうちのS604~S606の処理をバックグラウンド処理として行っておき、制御部301は、印刷データが確定した時点で、S405の処理を実行するようにしてもよい。 In the above description, the process of FIG. 4 is started by starting the application X or by performing a predetermined process such as displaying the image content in the application X. However, it is not limited to this. For example, the process of FIG. 4 may be started when the power of the user device 100 is turned on or the operation of returning from the sleep state is performed. Further, in the above description, the printer search operation by the user is explicitly performed, but the present invention is not limited to this. For example, it is considered that the printer search operation has been performed because the condition for starting the process of FIG. 4 described above is satisfied. For example, while the user device 100 is operating, the state of participating in the NAN cluster is always maintained. You may. In this case, the control unit 301 may execute the printer search operation of S404, for example, when the print data is confirmed. Further, the processes of S604 to S606 in the printer search operation of S404 may be performed as background processes, and the control unit 301 may execute the processes of S405 when the print data is confirmed.

<処理例2>
本処理例では、ユーザ機器100が、過去に無線LANの高速大容量通信機能を用いて通信を行ったことがあるプリンタが存在する場合に、まずそのプリンタとの接続を試行して、接続の確立に成功しなかった場合に、図4と同様の処理を実行する。一方、ユーザ機器100が、過去に無線LANの高速大容量通信機能を用いて通信を行ったことがあるプリンタとの接続の確立に成功した場合、図4のような処理を実行せずに、そのプリンタに対して印刷データを送信する。これにより、不必要にプリンタを探索することがなくなる。この処理の流れについて、図10を用いて説明する。
<Processing example 2>
In this processing example, when the user device 100 has a printer that has communicated with the high-speed and large-capacity communication function of the wireless LAN in the past, it first tries to connect to the printer and connects. If the establishment is not successful, the same process as in FIG. 4 is executed. On the other hand, when the user device 100 succeeds in establishing a connection with a printer that has communicated using the high-speed and large-capacity communication function of the wireless LAN in the past, the process as shown in FIG. 4 is not executed. Send print data to the printer. This eliminates the need to search for a printer unnecessarily. The flow of this process will be described with reference to FIG.

制御部301は、S402においてプリンタ検索操作を検出すると、無線LANの高速通信機能をオンにして、過去に高速大容量通信機能によって接続したプリンタとの接続を試行する(S1001)。ここで、過去に接続したプリンタが複数存在する場合には、直近に接続したプリンタから優先的に接続を試行するようにしてもよい。又は、過去に接続した複数のプリンタを表示し、接続を試行するプリンタをユーザに選択させるようにしてもよい。そして、制御部301は、S1001における接続に成功した場合(S1002でYES)、その接続によってプリンタに印刷データを送信する(S408)。一方、制御部301は、この接続に成功しなかった場合(S1002でNO)は、無線LANの高速通信機能をオフとする(S1003)。そして、制御部301は、処理例1と同様に、NANによってプリンタを検索し、発見したプリンタと高速大容量通信機能による接続を確立して印刷データを送信する(S403~S408)。制御部301は、プリンタに印刷データを送信した後に、無線LANをオフとする前に、このプリンタとの接続を確立した際に使用した接続設定情報をメモリに保存する(S1004)。 When the control unit 301 detects the printer search operation in S402, it turns on the high-speed communication function of the wireless LAN and tries to connect to the printer connected by the high-speed large-capacity communication function in the past (S1001). Here, if there are a plurality of printers connected in the past, the most recently connected printer may be preferentially tried to connect. Alternatively, a plurality of printers connected in the past may be displayed, and the user may be made to select a printer to try the connection. Then, when the connection in S1001 is successful (YES in S1002), the control unit 301 transmits the print data to the printer by the connection (S408). On the other hand, if the control unit 301 does not succeed in this connection (NO in S1002), the control unit 301 turns off the high-speed communication function of the wireless LAN (S1003). Then, the control unit 301 searches for a printer by NAN, establishes a connection with the found printer by the high-speed large-capacity communication function, and transmits print data (S403 to S408), as in the process example 1. After transmitting the print data to the printer, the control unit 301 saves the connection setting information used when establishing the connection with the printer in the memory before turning off the wireless LAN (S1004).

このように、本処理例2では、ユーザ機器100が、ユーザ機器が以前接続したことがあるプリンタと通信可能な場所に存在する場合は、S403~S407の処理を省略する。これにより、ユーザ機器100は、より短時間でプリンタと接続確立して印刷を行うことができる。また、ユーザによるプリンタ選択も省略されうるため、ユーザの操作を簡略化することができる。なお、S1004において保存する情報には、プリンタ検索結果700のようにNAN Attributeで取得したプリンタ名などの情報が追加されてもよい。 As described above, in the present processing example 2, when the user equipment 100 exists in a place where the user equipment can communicate with the printer to which the user equipment has been connected before, the processing of S403 to S407 is omitted. As a result, the user device 100 can establish a connection with the printer and perform printing in a shorter time. Further, since the printer selection by the user can be omitted, the user's operation can be simplified. Information such as the printer name acquired by NAN Attribut may be added to the information stored in S1004, such as the printer search result 700.

ここでは、S402におけるプリンタ検索操作を待つ際の画面表示は、図5(A)の画面500に代えて、図11(A)の画面1100のようなものが用いられうる。図5(A)のアプリケーションXでは、コンテンツが選択された後にユーザ機器100がプリンタと接続するが、図11(A)のアプリケーションYでは、ユーザ機器100がプリンタと接続した後にコンテンツが選択される。制御部301は、例えば、S402において図11(A)のアプリケーションYが起動されたことにより、プリンタ検索操作が行われたと認識しうる。そして、制御部301は、前回接続したプリンタとの接続を試行し(S1001)、成功した場合(S1002でYES)に、情報1101のように、接続が確立されたプリンタの情報を画面に表示させる。このとき、情報1101として、例えばS1004で保存されたNAN Attributeの情報を参照して、プリンタ名などが表示されてもよい。 Here, as the screen display when waiting for the printer search operation in S402, the screen 1100 of FIG. 11 (A) may be used instead of the screen 500 of FIG. 5 (A). In the application X of FIG. 5A, the user device 100 connects to the printer after the content is selected, but in the application Y of FIG. 11A, the content is selected after the user device 100 connects to the printer. .. The control unit 301 can recognize that the printer search operation has been performed, for example, by activating the application Y of FIG. 11A in S402. Then, when the control unit 301 tries to connect to the previously connected printer (S1001) and succeeds (YES in S1002), the control unit 301 displays the information of the printer to which the connection is established on the screen like the information 1101. .. At this time, as the information 1101, for example, the printer name or the like may be displayed by referring to the information of the NAN Attribute saved in S1004.

S408で送信する印刷データは、メニュー1103においてユーザが選択した内容に基づいて決定される。なお、ユーザ機器100は、確立された接続によって、印刷データをプリンタへ送信することに代えて、プリンタでスキャンした画像等のコンテンツデータをプリンタから受信するように構成されてもよい。 The print data to be transmitted in S408 is determined based on the content selected by the user in the menu 1103. The user device 100 may be configured to receive content data such as an image scanned by the printer from the printer instead of transmitting the print data to the printer by the established connection.

また、ユーザ機器100は、画面1100にボタン1102を設け、他のプリンタを検索する操作が検出された場合に、処理をS403に移行させて、プリンタ検索処理を実行するようにしてもよい。さらに、ユーザ機器100は、プリンタ検索処理を開始する前に、図11(B)の画面1110を表示し、複数のプリンタ検索手法の中でNANが選択された場合に、S403以降の処理を行うようにしてもよい。 Further, the user device 100 may provide a button 1102 on the screen 1100, and when an operation for searching another printer is detected, the process may be shifted to S403 to execute the printer search process. Further, the user device 100 displays the screen 1110 of FIG. 11B before starting the printer search process, and performs the process after S403 when NAN is selected among the plurality of printer search methods. You may do so.

<処理例3>
本処理例では、ユーザ機器100は、NAN機能の許可/不許可や、NAN機器を検索するための端末設定メニューを有するように構成される。本処理例では、制御部301は、図4のS402でプリンタ検索操作を待ち受ける際に、所定の操作に応じて、図12(A)の画面1200に示すような、端末設定メニューを開くように制御する。例えば、ユーザ機器100がスマートフォンである場合、図5(A)の画面500の上部をフリックすることにより、図12(A)の画面1200のような端末設定メニューが開かれるような制御が行われる。また、例えば図5(A)の画面500において、端末設定メニューに対応するボタンを表示し、そのボタンがタップされたときに端末設定メニューを開くなど、他の方法で端末設定メニューが開くようにユーザ機器100が構成されてもよい。なお、画面1200は、端末設定メニューの表示例に過ぎず、同様の趣旨の情報を提示する他の表示が行われてもよい。
<Processing example 3>
In this processing example, the user device 100 is configured to have a terminal setting menu for permitting / disallowing the NAN function and searching for the NAN device. In this processing example, when the control unit 301 waits for the printer search operation in S402 of FIG. 4, the control unit 301 opens the terminal setting menu as shown in the screen 1200 of FIG. 12A in response to a predetermined operation. Control. For example, when the user device 100 is a smartphone, by flicking the upper part of the screen 500 of FIG. 5A, control is performed so that the terminal setting menu as shown in the screen 1200 of FIG. 12A is opened. .. Further, for example, on the screen 500 of FIG. 5A, a button corresponding to the terminal setting menu is displayed, and the terminal setting menu is opened when the button is tapped, so that the terminal setting menu can be opened by another method. The user device 100 may be configured. It should be noted that the screen 1200 is merely a display example of the terminal setting menu, and other displays that present information to the same effect may be performed.

画面1200において、「アイコン3」は、NANを示すアイコンであり、この「アイコン3」のタップが検出される度に、ユーザ機器100におけるNAN機能の許可/不許可が変更される。例えば、許可状態のときは、画面1210のように、アイコン3はそのまま表示され、不許可状態のときには、画面1200のように、アイコン3に斜線1201が重ねられた表示が行われる。制御部301は、これにより、ユーザに対して、現在のNAN機能が有効とされているか否かの状態を提示する。なお、画面1200及び画面1210は一例に過ぎず、例えばアイコンをグレーアウト表示するなど、他の任意の表示手法によって、NAN機能の許可/不許可の状態が提示されてもよい。制御部301は、例えば、メモリ306に、NANの許可/不許可の状態を示す情報を記憶しておき、例えば図4のS402でプリンタ検索操作が行われたことを検出した際にNAN機能が不許可状態である場合、処理をS403に進めずにS409へ進める。また、この場合、制御部301は、S409において、プリンタが発見されない理由として、NAN機能が不許可状態であることを示す情報をユーザに提示してもよい。また、この場合、制御部301は、S409において、画面1200をポップアップ表示して、NAN機能を有効化するようにユーザに促してもよい。 On the screen 1200, the "icon 3" is an icon indicating NAN, and each time the tap of the "icon 3" is detected, the permission / non-permission of the NAN function in the user device 100 is changed. For example, in the permitted state, the icon 3 is displayed as it is as in the screen 1210, and in the disallowed state, the icon 3 is displayed with the diagonal line 1201 superimposed as in the screen 1200. As a result, the control unit 301 presents to the user a state of whether or not the current NAN function is enabled. It should be noted that the screen 1200 and the screen 1210 are merely examples, and the permission / disapproval state of the NAN function may be presented by any other display method such as displaying an icon in gray out. For example, the control unit 301 stores information indicating the permission / non-permission state of NAN in the memory 306, and when it detects that the printer search operation is performed in S402 of FIG. 4, for example, the NAN function is activated. If it is in the unauthorized state, the process proceeds to S409 without proceeding to S403. Further, in this case, the control unit 301 may present to the user in S409 information indicating that the NAN function is not permitted as the reason why the printer is not found. Further, in this case, the control unit 301 may pop up the screen 1200 in S409 and urge the user to enable the NAN function.

また、制御部301は、画面1200の「アイコン1」により、無線LANの高速大容量通信の許可/不許可を変更できるようにしうる。この場合、制御部301は、無線LANの高速大容量通信の許可/不許可の状態を示す情報を記憶しておく。そして、制御部301は、無線LANの高速大容量通信機能が不許可状態の場合、図4のS407において、この機能をオンにせずに処理を終了してもよい。また、この場合に、制御部301は、無線LANの高速大容量通信機能がオンとされなかった理由として、無線LANの高速大容量通信が不許可状態であることを表示してもよい。また、制御部301は、NAN機能の許可/不許可と無線LANの高速大容量通信機能の許可/不許可とについて、同一のアイコンによって情報の提示又はその切り替え操作の受付を行ってもよい。また、画面1200におけるNAN機能を表す文字またはボタン1202は、無線LANの高速大容量通信機能と共用とされてもよい。すなわち、制御部301は、ボタン1202によって、NAN機能や無線LANの高速大容量通信機能等の機能種別の選択を受け付け、アイコンがタップされたことに応じて、選択された機能の許可/不許可を切り替える制御を行ってもよい。 Further, the control unit 301 may enable / disallow the high-speed large-capacity communication of the wireless LAN by the "icon 1" on the screen 1200. In this case, the control unit 301 stores information indicating the permission / non-permission status of the high-speed large-capacity communication of the wireless LAN. Then, when the high-speed large-capacity communication function of the wireless LAN is in a disallowed state, the control unit 301 may end the process without turning on this function in S407 of FIG. Further, in this case, the control unit 301 may display that the high-speed large-capacity communication of the wireless LAN is in an unauthorized state as the reason why the high-speed large-capacity communication function of the wireless LAN is not turned on. Further, the control unit 301 may present information or accept a switching operation with the same icon regarding the permission / non-permission of the NAN function and the permission / disapproval of the high-speed large-capacity communication function of the wireless LAN. Further, the character or button 1202 representing the NAN function on the screen 1200 may be shared with the high-speed large-capacity communication function of the wireless LAN. That is, the control unit 301 accepts the selection of the function type such as the NAN function and the high-speed large-capacity communication function of the wireless LAN by the button 1202, and permits / disallows the selected function according to the tapping of the icon. You may control to switch between.

なお、制御部301は、画面1200においてNANを表す文字またはボタン1202がタップされた場合、プリンタ検索操作が行われたと判定して、図4のS403以降の処理を行うように制御してもよい。すなわち、制御部301は、NAN機能が有効化されるという、NANによる周辺機器の検索を開始するための操作があったことに応じて、図4のS403以降の処理を行いうる。 When the character representing NAN or the button 1202 is tapped on the screen 1200, the control unit 301 may determine that the printer search operation has been performed and control the screen 1200 to perform the processing after S403. .. That is, the control unit 301 can perform the processing after S403 in FIG. 4 in response to the operation for starting the search for peripheral devices by NAN, that is, the NAN function is activated.

本処理例によれば、航空機内や病院など、電波の発信を抑制すべき場所において、ユーザの意図に反してユーザ機器からNANや無線LANの通信のための電波が発信されることを抑制することができる。 According to this processing example, it is possible to suppress the transmission of radio waves for NAN or wireless LAN communication from the user device against the intention of the user in a place where the transmission of radio waves should be suppressed, such as in an aircraft or a hospital. be able to.

なお、上述の各処理例では、NAN Attributeに含まれるService IDに基づいて、所定のサービスを提供する装置を検索する例について説明したが、これに限られない。例えば、NAN Attributeに含まれるService Infoの値に基づいて、所定のサービスを提供する装置が検索されてもよい。また、上述の各処理例では、Service IDやService Infoの情報が、ユーザ機器100の保持する所定値のハッシュ値と一致するか否かの判定を行ったが、これに限られない。すなわち、Service IDやService Infoの情報が、ハッシュ値とは異なる所定の値であるか否か等、他の基準で判定が行われてもよい。 In each of the above processing examples, an example of searching for a device that provides a predetermined service based on the Service ID included in the NAN Attribute has been described, but the present invention is not limited to this. For example, a device that provides a predetermined service may be searched based on the value of Service Info included in NAN Attribute. Further, in each of the above-mentioned processing examples, it is determined whether or not the Service ID and Service Info information match the hash value of the predetermined value held by the user device 100, but the present invention is not limited to this. That is, the determination may be made based on other criteria such as whether or not the Service ID and Service Info information is a predetermined value different from the hash value.

上述の各処理例によれば、ユーザ機器100は、少なくとも一部の通信用回路を共用できる複数の無線通信方式のうち、消費電力の低い第1の方式で所定のサービスを提供する他の装置を検索する。そして、ユーザ機器100は、検索した結果に基づいて、上述の複数の無線通信方式のうち、相対的に消費電力が高く、高速大容量通信が可能な第2の方式での接続を、発見された他の装置との間で確立して通信を行う。これにより、ユーザ機器100は、装置のコストを抑えながら、かつ、低消費電力で、通信相手装置を発見することができる。例えば、NANと無線LANの高速大容量通信とでは、物理層の構成やパケット構造が同じであるため、BLE等の別の無線通信方式を用いる場合と比較して、ユーザ機器100及びプリンタ101の部品コストを低減することができる。すなわち、無線LAN通信機能を有する無線チップは、ファームウェア更新によりNANにも対応できる場合がある。この場合、部品コストは増大しない。また、NANは間欠通信方式であるため、ユーザ機器側のバッテリ消費も、BLE等と同様に抑えることができる。 According to each of the above processing examples, the user device 100 is another device that provides a predetermined service by the first method having low power consumption among a plurality of wireless communication methods that can share at least a part of communication circuits. To search for. Then, based on the search result, the user device 100 is found to be connected by the second method, which has relatively high power consumption and is capable of high-speed and large-capacity communication, among the above-mentioned plurality of wireless communication methods. Establish and communicate with other devices. As a result, the user device 100 can find the communication partner device while suppressing the cost of the device and with low power consumption. For example, since the physical layer configuration and the packet structure are the same between NAN and wireless LAN high-speed large-capacity communication, the user device 100 and the printer 101 have the same physical layer configuration and packet structure as compared with the case of using another wireless communication method such as BLE. The cost of parts can be reduced. That is, a wireless chip having a wireless LAN communication function may be able to support NAN by updating the firmware. In this case, the component cost does not increase. Further, since NAN is an intermittent communication method, battery consumption on the user equipment side can be suppressed as in BLE and the like.

<その他の実施形態>
上述の各処理例では、プロセッサである制御部301が、メモリ306のような記憶装置に記憶されたプログラムを実行することによって、図4等の処理を実行すると説明したがこれに限られない。例えば、上述の各処理は、その一部又は全部が専用のハードウェアによって行われてもよい。また、例えば、無線通信部302に含まれるプロセッサ等の制御によって、上述の各処理例の一部又は全部が実行されてもよい。
<Other embodiments>
In each of the above-mentioned processing examples, it has been described that the control unit 301, which is a processor, executes the processing shown in FIG. 4 by executing the program stored in the storage device such as the memory 306, but the present invention is not limited to this. For example, each of the above-mentioned processes may be partially or wholly performed by dedicated hardware. Further, for example, a part or all of the above-mentioned processing examples may be executed by controlling the processor included in the wireless communication unit 302.

本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。 The present invention supplies a program that realizes one or more functions of the above-described embodiment to a system or device via a network or storage medium, and one or more processors in the computer of the system or device reads and executes the program. It can also be realized by the processing to be performed. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.

301:制御部、302:無線通信部、303:表示部、304:入力部、306:メモリ 301: Control unit, 302: Wireless communication unit, 303: Display unit, 304: Input unit, 306: Memory

Claims (8)

通信装置であって、
Neighbor Awareness Network(NAN)に基づいて、印刷サービスを示すService IDとService Infoとの少なくとも一方を含むNANに関連する第1のAttributeが含まれるPublishを送信する第1の通信手段と、
他の通信装置から送信される印刷データを受信する第2の通信手段と、
を有し、
前記第1の通信手段は、無線LANの接続を確立するために用いられるBSSIDを含むNANに関連する第2のAttributeをさらに送信し、
前記第2の通信手段は、前記他の通信装置から前記BSSIDを宛先としたプローブリクエストを受信したことに基づいて前記他の通信装置と無線LANの接続を確立し、当該確立された無線LANの接続を介して前記印刷データを受信することを特徴とする通信装置。
It ’s a communication device,
Based on the Network Awareness Network (NAN), a first communication means for transmitting a public including a first Attribute related to a NAN including at least one of a Service ID indicating a printing service and a Service Info.
A second communication means for receiving print data transmitted from another communication device,
Have,
The first means of communication further transmits a second Attribute associated with the NAN, including the BSSID used to establish a wireless LAN connection.
The second communication means establishes a wireless LAN connection with the other communication device based on receiving a probe request destined for the BSSID from the other communication device, and the established wireless LAN. A communication device characterized by receiving the print data via a connection.
前記第1の通信手段により行われる通信は、NAN規格に準拠したDiscovery Windowによって行われることを特徴とする請求項1に記載の通信装置。 The communication device according to claim 1, wherein the communication performed by the first communication means is performed by Discovery Window conforming to the NAN standard. 前記第1の通信手段と前記第2の通信手段は共にIEEE802.11規格シリーズに準拠した無線通信を行う、
ことを特徴とする請求項1または2に記載の通信装置。
Both the first communication means and the second communication means perform wireless communication conforming to the 802.11 standard series.
The communication device according to claim 1 or 2.
前記第2の通信手段は、前記他の通信装置との間でWi-Fi Direct規格に基づいて通信を行う、
ことを特徴とする請求項1から3のいずれか1項に記載の通信装置。
The second communication means communicates with the other communication device based on the Wi-Fi Direct standard.
The communication device according to any one of claims 1 to 3, wherein the communication device is characterized by the above.
前記第2の通信手段は、NAN規格におけるDiscovery Windowの期間外において通信を行う、
ことを特徴とする請求項1から4のいずれか1項に記載の通信装置。
The second communication means communicates outside the period of the Discovery Window in the NAN standard.
The communication device according to any one of claims 1 to 4, wherein the communication device is characterized by the above.
前記通信装置は、前記無線LANのネットワークを構築する役割として動作することを特徴とする請求項1から5のいずれか1項に記載の通信装置。 The communication device according to any one of claims 1 to 5, wherein the communication device operates as a role of constructing a network of the wireless LAN. 通信装置の通信方法であって、
Neighbor Awareness Network(NAN)に基づいて、印刷サービスを示すService IDとService Infoとの少なくとも一方を含むNANに関連する第1のAttributeが含まれるPublishを送信する第1の通信工程と、
他の通信装置から送信される印刷データを受信する第2の通信工程と、
を有し、
前記第1の通信工程において、無線LANの接続を確立するために用いられるBSSIDを含むNANに関連する第2のAttributeをさらに送信し、
前記第2の通信工程において、前記他の通信装置から前記BSSIDを宛先としたプローブリクエストを受信したことに基づいて前記他の通信装置と無線LANの接続を確立し、当該確立された無線LANの接続を介して前記印刷データを受信することを特徴とする通信装置の通信方法。
It is a communication method of a communication device.
Based on the Network Awareness Network (NAN), a first communication step of transmitting a Public containing a NAN-related first Attribution including at least one of a Service ID indicating a printing service and a Service Info, and a first communication step.
A second communication process that receives print data transmitted from other communication devices, and
Have,
In the first communication step, a second Attribute related to NAN including BSSID used for establishing a wireless LAN connection is further transmitted.
In the second communication step, a wireless LAN connection is established with the other communication device based on receiving a probe request destined for the BSSID from the other communication device, and the established wireless LAN is used. A communication method of a communication device, characterized in that the print data is received via a connection.
コンピュータを、請求項1から6のいずれか1項に記載の通信装置が有する各手段として機能させるためのプログラム。 A program for making a computer function as each means included in the communication device according to any one of claims 1 to 6.
JP2022008834A 2017-08-29 2022-01-24 Communication device, control method, and program Active JP7303913B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2022008834A JP7303913B2 (en) 2017-08-29 2022-01-24 Communication device, control method, and program

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2017164597A JP7049086B2 (en) 2017-08-29 2017-08-29 Communication equipment, control methods, and programs
JP2022008834A JP7303913B2 (en) 2017-08-29 2022-01-24 Communication device, control method, and program

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2017164597A Division JP7049086B2 (en) 2017-08-29 2017-08-29 Communication equipment, control methods, and programs

Publications (2)

Publication Number Publication Date
JP2022040416A true JP2022040416A (en) 2022-03-10
JP7303913B2 JP7303913B2 (en) 2023-07-05

Family

ID=86996638

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2022008834A Active JP7303913B2 (en) 2017-08-29 2022-01-24 Communication device, control method, and program

Country Status (1)

Country Link
JP (1) JP7303913B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017143438A (en) * 2016-02-10 2017-08-17 キヤノン株式会社 Communication device, control method, and program
JP2019047155A (en) * 2017-08-29 2019-03-22 キヤノン株式会社 Communication device, control method, and program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017143438A (en) * 2016-02-10 2017-08-17 キヤノン株式会社 Communication device, control method, and program
JP2019047155A (en) * 2017-08-29 2019-03-22 キヤノン株式会社 Communication device, control method, and program

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
NEIGHBOR AWARENESS NETWORKING TECHNICAL SPECIFICATION, vol. Version 1.0, JPN7021002854, May 2015 (2015-05-01), ISSN: 0004975343 *

Also Published As

Publication number Publication date
JP7303913B2 (en) 2023-07-05

Similar Documents

Publication Publication Date Title
JP7049086B2 (en) Communication equipment, control methods, and programs
KR101915314B1 (en) Method and apparatus for wi-fi connecting using wi-fi protected setup in a portable terminal
US10631155B2 (en) Communication apparatus
JP6558965B2 (en) Communication device, control method, and program
JP6333224B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, AND PROGRAM
JP7477589B2 (en) Method and terminal device for establishing a hotspot connection - Patents.com
JP2010268301A (en) Communication device, and method for controlling the same
KR20150087914A (en) A method for discovering devices based on a location information and apparatus thereof
JP7112203B2 (en) Communication device, control method, and program
KR20150124760A (en) Apparatus and method for managing instant connection based on wireless local area network
JP2016225949A (en) Communication device, method of controlling the same, and program
JP2012100171A (en) Communication device, its control method and program
JP7303913B2 (en) Communication device, control method, and program
KR101982199B1 (en) Method and apparatus for wi-fi connecting using wi-fi protected setup in a portable terminal
KR20190057254A (en) Method and apparatus for wi-fi connecting using wi-fi protected setup in a portable terminal

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220124

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20230127

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230320

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230623

R151 Written notification of patent or utility model registration

Ref document number: 7303913

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151