JP2019161552A - Communication device and control method therefor - Google Patents

Communication device and control method therefor Download PDF

Info

Publication number
JP2019161552A
JP2019161552A JP2018048396A JP2018048396A JP2019161552A JP 2019161552 A JP2019161552 A JP 2019161552A JP 2018048396 A JP2018048396 A JP 2018048396A JP 2018048396 A JP2018048396 A JP 2018048396A JP 2019161552 A JP2019161552 A JP 2019161552A
Authority
JP
Japan
Prior art keywords
communication
power saving
power
service
communication device
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.)
Pending
Application number
JP2018048396A
Other languages
Japanese (ja)
Inventor
昂 市原
Takashi Ichihara
昂 市原
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
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2018048396A priority Critical patent/JP2019161552A/en
Publication of JP2019161552A publication Critical patent/JP2019161552A/en
Pending legal-status Critical Current

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

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Facsimiles In General (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

To provide a communication device and a control method therefor that implement both of NAN and a power saving function.SOLUTION: A communication device comprises radio communication means, the radio communication means comprising notification means for notifying, using a first communication mode, an external device of information on a service that the communication device can provide. The communication device includes: power control means for controlling a power state of the communication device; and control means for performing control so that the radio communication means does not execute the notification means in a state in which the power control means has made the communication device transit into a power saving state.SELECTED DRAWING: Figure 6

Description

本発明は、NANを用いて通信を行う通信装置およびその制御方法に関する。   The present invention relates to a communication apparatus that performs communication using a NAN and a control method thereof.

複合機やプリンタ等の印刷装置において、無線LAN機能を備えるものが増えている。無線LAN機能を備える印刷装置は、無線通信によってモバイル端末等の外部装置から印刷データを受信し、そして受信した印刷データに基づいて印刷処理を実行する。Wi−Fi Allianceの認定プログラムWi−Fi Awareでは、近傍端末が提供するサービスを検出することのできるNAN(Neighbor Awareness Networking)が規定されている。NANを用いてプリントサービスやスキャンサービスを周囲のモバイル端末等の外部装置に通知することができる印刷装置が考えられる。特許文献1ではNANを用いてチャットサービスを検出し、その後データリンクを確立しチャットアプリケーションを実行する印刷装置が記載されている。   An increasing number of printing apparatuses such as multifunction peripherals and printers have a wireless LAN function. A printing apparatus having a wireless LAN function receives print data from an external apparatus such as a mobile terminal by wireless communication, and executes print processing based on the received print data. In the Wi-Fi Alliance certification program Wi-Fi Aware, NAN (Neighbor Awareness Networking) capable of detecting a service provided by a nearby terminal is defined. A printing apparatus capable of notifying an external apparatus such as a surrounding mobile terminal of a print service or a scan service using NAN can be considered. Patent Document 1 describes a printing apparatus that detects a chat service using a NAN, then establishes a data link, and executes a chat application.

特開2017−63312号公報JP 2017-63312 A

近年、通信装置の消費電力を削減するため、稼働していない状態が一定時間以上続いた場合には、電力の供給を機器の一部に限定し低電力で動作する、スリープ状態(省電力状態)へ遷移する省電力機能が進歩している。印刷装置においてもこのような省電力機能の要求が高まっている。   In recent years, in order to reduce the power consumption of communication devices, when the device has not been operated for a certain period of time or longer, the power supply is limited to a part of the device and operates at low power. The power saving function that makes the transition to) is progressing. There is an increasing demand for such a power saving function in a printing apparatus.

しかしながら、省電力状態で制御部への電力の供給も停止される場合、印刷装置はモバイル端末から送信される接続要求に対して応答することができず、モバイル端末はタイムアウトによって接続要求の送信を検出するまで待機することになる。そのため、ユーザにとっては省電力状態とNANの機能との両立が困難であった。   However, when the power supply to the control unit is also stopped in the power saving state, the printing apparatus cannot respond to the connection request transmitted from the mobile terminal, and the mobile terminal transmits the connection request due to a timeout. It will wait until it detects it. Therefore, it is difficult for the user to achieve both the power saving state and the NAN function.

本発明は上記課題に鑑みなされたものであり、NANと省電力機能を好ましく両立させた通信装置およびその制御方法を提供することを目的とする。   The present invention has been made in view of the above problems, and an object of the present invention is to provide a communication apparatus and a control method therefor that preferably achieve both NAN and power saving functions.

上記目的を達成するために本発明の一態様に係る通信装置は以下のような構成を備える。すなわち、本発明は、例えば、無線通信手段を備える通信装置であって、前記無線通信手段は、前記通信装置が提供可能なサービスに関する情報を、第一の通信モードによって外部装置に通知する通知手段を備え、前記通信装置の電力状態を制御する電力制御手段と、前記電力制御手段が前記通信装置を省電力状態へ遷移させた状態において、前記無線通信手段が前記通知手段を実行しないよう制御する制御手段と、を有することを特徴とする。   In order to achieve the above object, a communication apparatus according to an aspect of the present invention has the following arrangement. That is, the present invention is, for example, a communication device including a wireless communication unit, and the wireless communication unit notifies the external device of information related to a service that can be provided by the communication device in a first communication mode. A power control unit that controls a power state of the communication device; and the power control unit controls the wireless communication unit not to execute the notification unit in a state where the communication device is shifted to the power saving state. And a control means.

本発明によれば、NANと省電力機能を好ましく両立させた通信装置およびその制御方法を提供することができる。   ADVANTAGE OF THE INVENTION According to this invention, the communication apparatus which preferably made NAN and a power saving function compatible preferably, and its control method can be provided.

NANクラスタについて説明する図である。It is a figure explaining a NAN cluster. 本実施形態に係る印刷装置のハードウェア構成図である。It is a hardware block diagram of the printing apparatus which concerns on this embodiment. 第一の実施形態に係る印刷装置の基本設定画面およびNAN設定画面例を示す図である。FIG. 3 is a diagram illustrating an example of a basic setting screen and a NAN setting screen of the printing apparatus according to the first embodiment. 第一の実施形態に係る印刷装置の起動処理を説明するフローチャートである。6 is a flowchart for explaining a startup process of the printing apparatus according to the first embodiment. 第一の実施形態に係る印刷装置が行うサービス通知およびP2P接続処理を説明するフローチャートである。6 is a flowchart illustrating service notification and P2P connection processing performed by the printing apparatus according to the first embodiment. 第一の実施形態に係る印刷装置が行う省電力判定処理を説明するフローチャートである。6 is a flowchart illustrating power saving determination processing performed by the printing apparatus according to the first embodiment. 第二の実施形態に係る印刷装置の操作画面例を示す図である。It is a figure which shows the example of an operation screen of the printing apparatus which concerns on 2nd embodiment. 第三の実施形態に係る印刷装置のP2P接続処理を説明するフローチャートである。10 is a flowchart illustrating P2P connection processing of the printing apparatus according to the third embodiment.

以下、本発明を実施するための最良の形態について図面を用いて説明する。なお、以下の実施の形態は特許請求の範囲に係る発明を限定するものでなく、また実施の形態で説明されている特徴の組み合わせの全てが発明の解決手段に必須のものとは限らない。   The best mode for carrying out the present invention will be described below with reference to the drawings. The following embodiments do not limit the invention according to the claims, and all combinations of features described in the embodiments are not necessarily essential to the solution means of the invention.

図1を参照し、形成されたNANクラスタについて説明する。印刷装置(通信装置)100、モバイル端末110および120はNANに対応した無線LANインターフェースを備える。以下においては印刷装置およびモバイル端末を総称して端末と称する。   The formed NAN cluster will be described with reference to FIG. The printing apparatus (communication apparatus) 100 and the mobile terminals 110 and 120 each include a wireless LAN interface corresponding to NAN. Hereinafter, the printing apparatus and the mobile terminal are collectively referred to as a terminal.

端末群は、Discovery Window(以下では、DWと称する。)と呼ばれる期間中にサービス情報を送受信する。このDW期間のスケジュールを共有している端末群をNANクラスタと称する。本実施形態では、印刷装置100、モバイル端末110および120がNANクラスタ10を形成する。なお、DWは一定周期で繰り返される一定の長さの期間であり、例えば、当該周期は512msecであり、当該期間の長さは16msecである。NANクラスタ10における各端末は、Master、Non−Master SyncおよびNon−Master Non−Syncの3つの役割のうちの1つの役割を担当する。各役割は複数の端末によって担当されてよい。また、複数の端末夫々が担当する役割は動的に変化してもよい。なお、各NANクラスタにおいて、少なくとも1台の端末がMasterとして動作する。Masterとして動作する端末は、後述するDiscovery Beaconと、同じく後述するSynchronization Beaconとの両方を送信する端末を示す。Non−Master Syncとして動作する端末は、Discovery Beaconは送信せず、Synchronization Beaconを送信する端末を示す。Non−Master Non−Syncとして動作する端末は、Discovery BeaconもSynchronization Beaconも送信しない端末を示す。Discovery Beaconは、NANクラスタに参加していない近傍の端末にNANクラスタの存在を通知するためにDW外に送信される信号である。Synchronization Beaconは、NANクラスタ内の端末間の同期をとるために、DW内に送信される信号である。ここまで説明した方法によって各端末はNANクラスタを形成および維持する。   The terminal group transmits and receives service information during a period called Discovery Window (hereinafter referred to as DW). A group of terminals sharing this DW period schedule is referred to as a NAN cluster. In the present embodiment, the printing apparatus 100 and the mobile terminals 110 and 120 form the NAN cluster 10. Note that DW is a period of a certain length that is repeated at a certain period. For example, the period is 512 msec, and the period is 16 msec. Each terminal in the NAN cluster 10 is responsible for one of the three roles of Master, Non-Master Sync, and Non-Master Non-Sync. Each role may be assigned by a plurality of terminals. Also, the roles assigned to each of the plurality of terminals may change dynamically. In each NAN cluster, at least one terminal operates as a master. A terminal that operates as a master indicates a terminal that transmits both a Discovery Beacon, which will be described later, and a Synchronization Beacon, which will also be described later. A terminal that operates as a non-master sync indicates a terminal that transmits a synchronization beacon without transmitting a discovery beacon. A terminal operating as a non-master non-sync indicates a terminal that does not transmit a discovery beacon or a synchronization beacon. The Discovery Beacon is a signal transmitted outside the DW to notify a nearby terminal not participating in the NAN cluster that the NAN cluster exists. The synchronization beacon is a signal transmitted in the DW in order to synchronize the terminals in the NAN cluster. Each terminal forms and maintains a NAN cluster by the method described so far.

NANクラスタに参加する各端末は、ここまで説明したNANクラスタの形成および維持に関わる通信の他に、DW内においてサービスを提供または探索するための通信を行うことができる。サービスを探索する端末は、当該端末が所属するNANクラスタに対して、DW内にサービスを探索していることを通知するSubscribe信号を送信する。これは、端末が、探索したいサービスを表す文字列(以下サービス名)を信号内に含むSubscribe信号を送信することによって実現されうる。例えば、当該サービスはたとえばデータを紙に印刷するプリントサービスである場合、当該サービス名は"PRINT―0001"である。サービスを提供可能な端末は、当該端末が所属するNANクラスタに対して、DW内にサービスを提供可能なことを通知するPublish信号を送信する。Publish信号は提供可能なサービスを表すサービス名を信号内に含む。   Each terminal participating in the NAN cluster can perform communication for providing or searching for a service in the DW in addition to the communication related to the formation and maintenance of the NAN cluster described so far. A terminal that searches for a service transmits a Subscribe signal notifying that the service is being searched for in the DW to the NAN cluster to which the terminal belongs. This can be realized by transmitting a Subscribe signal including a character string (hereinafter referred to as a service name) representing a service to be searched for in the signal. For example, when the service is a print service that prints data on paper, the service name is “PRINT-0001”. A terminal that can provide a service transmits a Publish signal that notifies the NAN cluster to which the terminal belongs that the service can be provided in the DW. The Publish signal includes a service name representing a service that can be provided in the signal.

サービスを探索する端末がPublish信号を受け取った際、当該信号中に含まれるサービス名が、当該端末が探索しているサービス名であった場合には、当該端末はサービスを検出することができる。サービスを提供する端末がSubscribe信号を受け取った際、当該信号中に含まれるサービス名が、当該端末が提供しているサービス名であった場合には、当該端末はサービスを通知するためにPublish信号を送信することができる。このPublish信号によりSubscribe信号を送信した端末はサービスを発見することができる。   When a terminal searching for a service receives a Publish signal, if the service name included in the signal is the name of the service searched for by the terminal, the terminal can detect the service. When a terminal providing a service receives a Subscribe signal, if the service name included in the signal is a service name provided by the terminal, the terminal sends a Publish signal to notify the service. Can be sent. A terminal that has transmitted a Subscribe signal using this Publish signal can discover a service.

サービスを提供する端末が、Subscribe信号を受信するまでPublish信号を送信しない動作モードをSolicitedモードと呼ぶ。また、サービスを提供する端末がSubscribeを受信しなくても一定間隔でPublish信号を送信する動作モードをUnsolicitedモード、もしくは常時通知モードと呼ぶ。   An operation mode in which a terminal that provides a service does not transmit a Publish signal until it receives a Subscribe signal is called a solicited mode. In addition, an operation mode in which a terminal that provides a service transmits a publish signal at a constant interval without receiving a subscription is referred to as an unsolicited mode or a constant notification mode.

サービスを探索する端末が、Publish信号を受信してサービスを検出した後に、サービスを提供する端末に接続要求を送信し、P2P接続を確立すれば、当該接続を用いて任意の通信を行い、サービスを提供する端末からサービスを受けることができる。   After a terminal that searches for a service receives a Publish signal and detects a service, it transmits a connection request to the terminal that provides the service, and establishes a P2P connection. Service can be received from the terminal that provides the service.

以上NANについて説明した。以下では省電力機能とNANを両立させることのできる各実施例を説明する。   The NAN has been described above. In the following, each embodiment capable of achieving both the power saving function and the NAN will be described.

<第一の実施形態>
第一の実施形態では、省電力状態に遷移すると、NANに関わるサービスの通知を停止する印刷装置について説明する。
<First embodiment>
In the first embodiment, a description will be given of a printing apparatus that stops notification of services related to a NAN upon transition to a power saving state.

図2は印刷装置100のハードウェア構成図である。印刷装置100を構成する各構成要素はシステムバス205を介して通信を行う。CPU201はROM203が記憶している制御プログラムを読み出して、印刷装置100の動作を制御するための様々な処理を実行する。一例では、CPU201は、後述する無線LANチップの動作(通信モード)を制御する、通信モード制御部としての機能を有する。ROM203は、制御プログラムを記憶する。RAM202は、CPU201の主メモリ、ワークエリア等の一時記憶領域として用いられる。HDD204は、印刷データやスキャン画像等の様々なデータを記憶する。なお、印刷装置100の場合、1つのCPU201が後述するフローチャートに示す各処理を実行するものとするが、他の態様であっても構わない。例えば、複数のCPUが協働して後述するフローチャートに示す各処理を実行するように構成してもよい。   FIG. 2 is a hardware configuration diagram of the printing apparatus 100. Each component constituting the printing apparatus 100 communicates via the system bus 205. The CPU 201 reads a control program stored in the ROM 203 and executes various processes for controlling the operation of the printing apparatus 100. In one example, the CPU 201 has a function as a communication mode control unit that controls an operation (communication mode) of a wireless LAN chip described later. The ROM 203 stores a control program. The RAM 202 is used as a temporary storage area such as a main memory or work area of the CPU 201. The HDD 204 stores various data such as print data and scanned images. In the case of the printing apparatus 100, it is assumed that one CPU 201 executes each process shown in the flowchart described later, but other modes may be used. For example, a plurality of CPUs may cooperate to execute each process shown in a flowchart described later.

印刷装置100は、プリントインタフェース(I/F)206を介してシステムバス205に接続されるプリンタ207、スキャンI/F212を介してシステムバスに接続されるスキャナ213を備える。印刷装置100では、外部装置から受信した印刷データやスキャナ213よって生成されたスキャン画像等に基づいて、プリンタ207によって印刷処理が実行される。スキャナ213は、原稿を読み取ってスキャン画像(読取画像データ)を生成する。スキャナ213によって生成されたスキャン画像は、プリンタ207によって印刷または、HDD204に記憶される。   The printing apparatus 100 includes a printer 207 connected to the system bus 205 via a print interface (I / F) 206 and a scanner 213 connected to the system bus via a scan I / F 212. In the printing apparatus 100, print processing is executed by the printer 207 based on print data received from an external apparatus, a scan image generated by the scanner 213, and the like. The scanner 213 reads a document and generates a scanned image (read image data). A scan image generated by the scanner 213 is printed by the printer 207 or stored in the HDD 204.

操作パネルI/F208を介してシステムバスに接続される操作部209は、タッチパネル機能を有する表示部やキーボードを備え、後述する各種画面を表示する。ユーザは、操作部209を介して印刷装置100に対して指示や情報を入力することができる。   An operation unit 209 connected to the system bus via the operation panel I / F 208 includes a display unit having a touch panel function and a keyboard, and displays various screens to be described later. A user can input instructions and information to the printing apparatus 100 via the operation unit 209.

また、印刷装置100は、無線LAN I/F210を介してシステムバス205に接続される無線LANチップ211、および有線LAN I/F214を介してシステムバス205に接続される有線LANチップ215を備える。無線LAN I/F210は、モバイル端末やPC端末等の外部装置との間で無線LANチップ211を介して無線通信を行うための複数の通信モードで動作可能である。該通信モードは例えばNANに関する通信を含む。また、無線子機として動作するインフラモードや、親機として動作するアクセスポイントモード、またはWi−Fi Allianceで規定されるWi−Fi Directのような通信モードで動作してもよい。有線LAN I/F214は、外部装置との間で有線LANチップ215を介して有線LANで通信を実行する。   The printing apparatus 100 also includes a wireless LAN chip 211 connected to the system bus 205 via the wireless LAN I / F 210 and a wired LAN chip 215 connected to the system bus 205 via the wired LAN I / F 214. The wireless LAN I / F 210 can operate in a plurality of communication modes for performing wireless communication with an external device such as a mobile terminal or a PC terminal via the wireless LAN chip 211. The communication mode includes communication related to NAN, for example. Moreover, you may operate | move in communication modes like the infrastructure mode which operate | moves as a radio | wireless subunit | mobile_unit, the access point mode which operate | moves as a main | base station, or Wi-Fi Direct prescribed | regulated by Wi-Fi Alliance. The wired LAN I / F 214 performs communication with the external device via the wired LAN chip 215 via the wired LAN.

電力制御部216は、上述した各構成要素に対する電力給電を制御する。また、後述の省電力状態においては、電力制御部216は少なくとも1つの構成要素への給電を停止し、印刷装置100の消費電力を抑えるよう動作する。   The power control unit 216 controls power supply to each component described above. Further, in a power saving state described later, the power control unit 216 operates to stop power supply to at least one component and suppress power consumption of the printing apparatus 100.

次に、図3を参照して、印刷装置100の設定画面の一例を説明する。   Next, an example of the setting screen of the printing apparatus 100 will be described with reference to FIG.

設定画面301は印刷装置100の基本動作の設定を行う設定画面である。省電力機能は有効3011または無効3012の何れか1つが選択可能である。省電力待機時間3013は、省電力機能が有効3011に設定され、印刷装置100が稼働しない場合に、印刷装置100が省電力状態に遷移する所定の時間である。省電力待機時間3013には任意の時間が設定可能であり、設定画面301では省電力待機時間3013が20分に設定されている。すなわち、省電力待機時間3013で設定された20分が経過した場合、後述する省電力判定処理が実行されうる。   A setting screen 301 is a setting screen for setting basic operations of the printing apparatus 100. For the power saving function, one of valid 3011 and invalid 3012 can be selected. The power saving standby time 3013 is a predetermined time when the printing apparatus 100 transitions to the power saving state when the power saving function is set to valid 3011 and the printing apparatus 100 does not operate. An arbitrary time can be set as the power saving standby time 3013, and the power saving standby time 3013 is set to 20 minutes on the setting screen 301. That is, when 20 minutes set in the power saving standby time 3013 have elapsed, a power saving determination process described later can be executed.

有線LANは有効3014または無効3015の何れか1つが選択可能である。該設定において有効3014が選択されている場合には、印刷装置100は有線LANチップ215を介して有線通信を実行する。また、無線LANについても同様に、有効3016または無効3017の何れか1つが選択可能であり、該設定において有効3016が選択されている場合には、印刷装置100は無線LANチップ211を介して無線通信を実行する。NANは有効3018または無効3019の何れか1つが選択可能である。有効3018が選択されている場合には無線LAN I/F214は前述のNANを実行する。NANの動作の詳細については後述する。   As the wired LAN, either one of valid 3014 and invalid 3015 can be selected. When the valid 3014 is selected in the setting, the printing apparatus 100 executes wired communication via the wired LAN chip 215. Similarly, for the wireless LAN, either one of valid 3016 or invalid 3017 can be selected, and when valid 3016 is selected in the setting, the printing apparatus 100 wirelessly transmits via the wireless LAN chip 211. Execute communication. Either one of valid 3018 and invalid 3019 can be selected as the NAN. When the valid 3018 is selected, the wireless LAN I / F 214 executes the NAN described above. Details of the operation of the NAN will be described later.

設定画面302はNANに関する設定を行う設定画面である。設定画面302におけるパスワード3021は任意の文字列を設定することができる。パスワード3021は後述のNAN P2P接続に使用される。常時通知モードは有効3022または無効3023の何れか1つが設定可能である。常時通知モードに関する詳細は後述する。通知サービスはプリント3024、スキャン3025およびFAX3026のそれぞれについて有効または無効の何れか1つが設定可能である。通知サービスとは印刷装置100が送信する、NANにおけるPublish信号の中に含めるサービスである。つまり、通知サービスは、印刷装置100によって近傍の端末に提供可能であることを通知されるサービスである。   A setting screen 302 is a setting screen for performing settings related to the NAN. An arbitrary character string can be set for the password 3021 on the setting screen 302. The password 3021 is used for the NAN P2P connection described later. Either one of valid 3022 or invalid 3023 can be set as the constant notification mode. Details regarding the constant notification mode will be described later. The notification service can be set to either valid or invalid for each of the print 3024, scan 3025, and FAX 3026. The notification service is a service included in the Publish signal in the NAN that is transmitted by the printing apparatus 100. That is, the notification service is a service notified by the printing apparatus 100 that it can be provided to nearby terminals.

当該サービスは例えばプリントサービスであり、この場合、印刷装置100はモバイル端末(以下対向端末)から印刷ジョブデータを受信する。当該ジョブデータは文書や絵から構成される印刷データの内容と、片面もしくは両面設定や、白黒もしくはカラー設定等の印刷設定とを含むジョブデータである。印刷装置100は、受信したジョブデータに含まれる印刷設定に従い印刷データをプリントする。あるいは、当該サービスはたとえばスキャンサービスであり、この場合印刷装置100はそのスキャントレイに設置された原稿用紙の内容をスキャンし、画像データにしたうえで対向端末に送信する。あるいは、当該サービスは例えばFAXサービスであり、この場合、印刷装置100は対向端末からFAXの宛先情報を受信し、印刷装置100のスキャントレイに設置された原稿用紙の内容をスキャンし、画像データにしたうえで当該宛先にFAX送信する。もしくは、対向端末からFAXジョブデータを受信する。当該ジョブデータは文書や絵から構成されるFAXデータの内容と、FAXの宛先である送信先情報と、印刷設定とを含むジョブデータである。印刷装置100は受信したジョブデータに含まれる印刷設定を用いて、宛先に印刷データをFAX送信する。これら設定画面301、302で設定された内容はRAM202に記憶される。   The service is, for example, a print service. In this case, the printing apparatus 100 receives print job data from a mobile terminal (hereinafter referred to as an opposite terminal). The job data is job data including the contents of print data composed of documents and pictures, and print settings such as single-sided / double-sided settings and black-and-white or color settings. The printing apparatus 100 prints the print data according to the print settings included in the received job data. Alternatively, the service is, for example, a scan service. In this case, the printing apparatus 100 scans the content of the original sheet placed on the scan tray, converts it to image data, and transmits the image data to the opposite terminal. Alternatively, the service is, for example, a FAX service. In this case, the printing apparatus 100 receives FAX destination information from the opposite terminal, scans the content of the original paper placed on the scan tray of the printing apparatus 100, and converts it into image data. After that, the fax is sent to the destination. Alternatively, FAX job data is received from the opposite terminal. The job data is job data including the contents of FAX data composed of documents and pictures, transmission destination information that is a FAX destination, and print settings. The printing apparatus 100 transmits the print data to the destination by fax using the print settings included in the received job data. The contents set on these setting screens 301 and 302 are stored in the RAM 202.

次に、図4のフローチャートを用いて、第一の実施形態に係る印刷装置100の起動処理について説明する。図4のフローチャートに示す各ステップは、CPU201がROM203等のメモリに格納された制御プログラムをRAM202に展開して実行することによって処理される。   Next, the activation process of the printing apparatus 100 according to the first embodiment will be described using the flowchart of FIG. Each step shown in the flowchart of FIG. 4 is processed by the CPU 201 developing and executing a control program stored in a memory such as the ROM 203 on the RAM 202.

印刷装置100の電源が入れられた後、S401においてCPU201は、設定画面301を介して設定されRAM202に記憶されている内容を参照し、有線LAN設定が有効か無効かを判定する。当該設定が有効である場合、S402においてCPU201は有線LAN I/F210を有効化する。また、S403においてCPU201は、RAM202に記憶されている内容に基づいて無線LAN設定が有効か無効かを判定する。当該設定が有効である場合、S404においてCPU201は無線LAN I/F214を有効化する。ここで、インターフェースの有効化とは該インターフェースのデータリンク層までを有効化し、更に各インターフェースに対して有効なIPアドレスを割り当てTCP/IP通信を行うことができるようにする処理である。   After the printing apparatus 100 is turned on, in step S401, the CPU 201 refers to the contents set via the setting screen 301 and stored in the RAM 202, and determines whether the wired LAN setting is valid or invalid. If the setting is valid, the CPU 201 validates the wired LAN I / F 210 in S402. In step S <b> 403, the CPU 201 determines whether the wireless LAN setting is valid or invalid based on the content stored in the RAM 202. If the setting is valid, the CPU 201 validates the wireless LAN I / F 214 in S404. Here, the interface validation is a process for validating up to the data link layer of the interface and further assigning a valid IP address to each interface so that TCP / IP communication can be performed.

S405においてCPU201は、RAM202に記憶されている内容に基づいてNAN設定が有効か無効かを判定する。NAN設定が有効であると判断された場合には、S406においてCPU201は無線LANチップ211に対してNANに関する設定を行い、図5で説明するNANに関する通信処理を開始する。当該設定は具体的には、無線LANチップ211に対する前述の常時通知モードおよび通知サービスの設定である。ユーザの入力等によって常時通知モードまたは通知サービスの設定が変更された場合には、CPU201はS406を再び実行してもよい。   In step S <b> 405, the CPU 201 determines whether the NAN setting is valid or invalid based on the content stored in the RAM 202. If it is determined that the NAN setting is valid, in step S406, the CPU 201 performs setting related to the NAN for the wireless LAN chip 211, and starts communication processing related to the NAN described in FIG. Specifically, the setting is the above-described constant notification mode and notification service setting for the wireless LAN chip 211. When the setting of the continuous notification mode or the notification service is changed by a user input or the like, the CPU 201 may execute S406 again.

S407においてCPU201は、設定画面301で省電力機能が有効或いは無効に設定されていたかどうかを判定する。省電力設定が有効であると判定された場合にはS408においてCPU201は省電力タイマによる計時を開始するとともに省電力判定処理を開始する。当該省電力判定処理はその他の処理と並列して実行される処理であり、詳細については後に図6を用いて説明する。   In step S <b> 407, the CPU 201 determines whether the power saving function has been set to valid or invalid on the setting screen 301. If it is determined that the power saving setting is valid, in step S408, the CPU 201 starts timing by the power saving timer and starts the power saving determination process. The power saving determination process is a process executed in parallel with other processes, and details will be described later with reference to FIG.

次に、図5を参照して、NANに関する通信処理の詳細を説明する。当該処理は、NAN設定が有効である場合に、無線LANチップ211またはCPU201によって実行される。   Next, with reference to FIG. 5, the details of the communication processing related to the NAN will be described. This process is executed by the wireless LAN chip 211 or the CPU 201 when the NAN setting is valid.

まず、S501においてCPU201は無線LANチップ211を介してDiscovery BeaconおよびSync Beaconを送信し、DWを開始する。なお、本実施形態では、印刷装置100はMasterノードとして動作するため、S501の処理を行うが、印刷装置100の役割によってS501は変更されてもよい。   First, in step S501, the CPU 201 transmits Discovery Beacon and Sync Beacon via the wireless LAN chip 211, and starts DW. In this embodiment, since the printing apparatus 100 operates as a master node, the process of S501 is performed. However, S501 may be changed depending on the role of the printing apparatus 100.

次に、S502において無線LANチップ211は常時通知モードが有効か無効かを判定する。常時通知モードが有効である場合には、CPU201はS503で無線LANチップ211を介してPublish信号を送信する。このとき、Publish信号は設定画面302で有効と設定された通知サービスに対応するサービス名を含む。複数の通知サービスが有効である場合には、Publish信号を送信する毎に、当該Publish信号に含めるサービス名を有効に設定されている他の通知サービスのものに切り替える。言い換えれば、複数のサービスを時分割で通知する。続いて、S504において無線LANチップ211は無線LAN I/F210を介してP2P接続要求を受信しているか否かを判定する。当該P2P接続要求は例えばモバイル端末からのP2P接続要求である。P2P接続要求を受信していた場合には処理をS505に進め、そうでない場合には処理をS501に進める。   Next, in S502, the wireless LAN chip 211 determines whether the continuous notification mode is valid or invalid. If the continuous notification mode is valid, the CPU 201 transmits a Publish signal via the wireless LAN chip 211 in S503. At this time, the Publish signal includes a service name corresponding to the notification service set as valid on the setting screen 302. When a plurality of notification services are valid, each time a Publish signal is transmitted, the service name included in the Publish signal is switched to that of another notification service that is set to be valid. In other words, a plurality of services are notified in a time division manner. In step S504, the wireless LAN chip 211 determines whether a P2P connection request is received via the wireless LAN I / F 210. The P2P connection request is a P2P connection request from a mobile terminal, for example. If a P2P connection request has been received, the process proceeds to S505; otherwise, the process proceeds to S501.

S501で常時通知モードが無効であると判定された場合には、S506において無線LANチップ211は対向端末からSubscribe信号を受信するまで待機する。対向端末からのSubscribe信号を受信した場合には、S507において、無線LANチップ211は受信したSubscribe信号に含まれるサービス名が、設定されている通知サービスに対応するサービス名と同一であるかどうかを判定する。S506で規定時間Subscribe信号を受信しなかった場合、またはS506で受信したSubscribe信号がS507において通知可能サービスではないと判定された場合には、CPU201は処理をS501に進める。S506で受信したSubscribe信号がS507において通知可能サービスであると判定された場合、S508において無線LANチップ211は当該サービス名を含むPublish信号を送信する。S509において無線LANチップ211はP2P接続要求の受信を待機する。当該P2P接続要求はSubscribe信号を送信していた対向端末からのP2P接続要求である。所定時間、P2P接続要求を受信しなかった場合、タイムアウトと判定して処理をS501に進める。当該所定時間は制御プログラムまたはユーザによって設定される任意の値であり、一例では5秒である。無線LANチップ211がP2P接続要求を受信した場合には、CPU201は処理をS505に進める。   If it is determined in S501 that the constant notification mode is invalid, in S506, the wireless LAN chip 211 waits until a Subscribe signal is received from the opposite terminal. When receiving the Subscribe signal from the opposite terminal, in S507, the wireless LAN chip 211 determines whether or not the service name included in the received Subscribe signal is the same as the service name corresponding to the set notification service. judge. If it is determined in S506 that the Subscribe signal has not been received for the specified time, or if the Subscribe signal received in S506 is determined not to be a service that can be notified in S507, the CPU 201 advances the process to S501. If the Subscribe signal received in S506 is determined to be a service that can be notified in S507, the wireless LAN chip 211 transmits a Publish signal including the service name in S508. In step S509, the wireless LAN chip 211 waits for reception of a P2P connection request. The P2P connection request is a P2P connection request from the opposite terminal that has transmitted the Subscribe signal. If no P2P connection request is received for a predetermined time, it is determined that a timeout has occurred, and the process proceeds to S501. The predetermined time is an arbitrary value set by the control program or the user, and is 5 seconds in one example. When the wireless LAN chip 211 receives the P2P connection request, the CPU 201 advances the process to step S505.

上述したサービス通知に関する通信は、印刷装置100の無線LANチップ211がCPU201に制御されることなく行うことができてもよい。   The communication related to the service notification described above may be performed without the wireless LAN chip 211 of the printing apparatus 100 being controlled by the CPU 201.

S505においてCPU201は対向端末に対して、無線LANインターフェース210を介してP2P接続応答を送信する。P2P接続応答は、正常にP2P接続要求を受信できたことを通知する信号であり、当該信号が送信されない場合には対向端末は自身が送信した要求が受理されたか否かの判定を行えず、タイムアウトするまで待機し続けることになる。   In step S <b> 505, the CPU 201 transmits a P2P connection response to the opposite terminal via the wireless LAN interface 210. The P2P connection response is a signal notifying that the P2P connection request has been successfully received. If the signal is not transmitted, the opposite terminal cannot determine whether the request transmitted by itself is accepted, It will continue to wait until it times out.

S511においてCPU201は現在P2P接続している端末の数が最大接続数であるかどうかを判定する。当該最大接続数は例えば5である。P2P接続している端末の数が最大接続数であった場合には、S516においてCPU201は対向端末に対して接続不可であることを通知しS501に処理を戻す。CPU201がS511において現在P2P接続している端末の数が最大接続数より少ないと判定した場合、S512においてCPU201は対向端末の情報がキャッシュされているかどうかを判定する。そして、当該端末の情報がキャッシュされていると判定した場合にはCPU201は処理をS515に進める。S512において当該端末の情報がキャッシュされていないとCPU201が判定した場合、S513において印刷装置100と前記端末とは事前共有鍵を用いて認証を行い、CPU201は処理をS514に進める。当該事前共有鍵は設定画面302で設定されるパスワードである。S514でCPU201はHDD204に端末の情報をキャッシュし、S515においてCPU201は現在の接続数を1増加させ、処理をS501に進める。   In step S511, the CPU 201 determines whether or not the number of terminals currently connected by P2P is the maximum number of connections. The maximum number of connections is 5, for example. If the number of terminals connected in P2P is the maximum number of connections, the CPU 201 notifies the opposite terminal that connection is not possible in S516, and returns the process to S501. When the CPU 201 determines in S511 that the number of terminals currently connected in P2P is smaller than the maximum number of connections, the CPU 201 determines in S512 whether the information on the opposite terminal is cached. If the CPU 201 determines that the terminal information is cached, the CPU 201 advances the process to step S515. If the CPU 201 determines that the information of the terminal is not cached in S512, the printing apparatus 100 and the terminal authenticate using the pre-shared key in S513, and the CPU 201 advances the process to S514. The pre-shared key is a password set on the setting screen 302. In step S514, the CPU 201 caches terminal information in the HDD 204. In step S515, the CPU 201 increments the current number of connections by 1, and advances the process to step S501.

以上サービス提供の通知およびP2P接続の確立フローについて説明した。印刷装置100は確立したP2P接続を介してサービスの実行に必要な情報の送受信を行い、サービスを実行する。このようにして、印刷装置100はP2P接続の確立後にサービスの実行を行うが、並行してサービス提供の通知およびP2P接続の確立フローを実行し続ける。あるいは、CPU201はサービスの実行を行うプロセスと、サービス提供の通知およびP2P接続の確率フローを実行するプロセスとを時分割で実行してもよい。   The service provision notification and the P2P connection establishment flow have been described above. The printing apparatus 100 transmits and receives information necessary for executing the service via the established P2P connection, and executes the service. In this way, the printing apparatus 100 executes the service after the P2P connection is established, but continues to execute the service provision notification and the P2P connection establishment flow in parallel. Alternatively, the CPU 201 may execute the process of executing the service and the process of executing the service provision notification and the probability flow of the P2P connection in a time division manner.

次に、図6を参照し省電力判定処理を説明する。当該省電力判定処理はその他の処理と並行して実行される処理である。S601で、CPU201は、設定画面301を介して設定された省電力機能の設定が有効か無効かを判定する。省電力設定が有効であると判定された場合には、S602においてCPU201は現在の接続数が0であるか否かを判定する。当該接続数は前述の確立されているNAN P2P接続の数である。S602において接続数が0でないと判定された場合、S603においてCPU201は省電力タイマのカウントをリセットする。すなわち、CPU201は対向端末とP2P接続を確立している間は省電力状態に遷移しない。S602において接続数が0であると判定された場合には、S604でCPU201は省電力カウントが省電力待機時間以上であるか否かを判定する。当該省電力待機時間は、設定画面301で設定される値である。S604において省電力タイマのカウントが省電力待機時間よりも大きいと判定された場合、S605においてCPU201は電力制御部216に対して省電力状態への遷移を指示し、省電力判定処理を終了する。電力制御部216は省電力状態への遷移が指示されると、CPU201を含む印刷装置100を構成する少なくとも1以上の構成要素に対する給電を停止させる。   Next, the power saving determination process will be described with reference to FIG. The power saving determination process is a process executed in parallel with other processes. In step S <b> 601, the CPU 201 determines whether the setting of the power saving function set via the setting screen 301 is valid or invalid. If it is determined that the power saving setting is valid, in step S602, the CPU 201 determines whether the current number of connections is zero. The number of connections is the number of NAN P2P connections established as described above. When it is determined in S602 that the number of connections is not 0, in S603, the CPU 201 resets the count of the power saving timer. That is, the CPU 201 does not transition to the power saving state while establishing the P2P connection with the opposite terminal. If it is determined in S602 that the number of connections is 0, in S604, the CPU 201 determines whether or not the power saving count is equal to or greater than the power saving standby time. The power saving standby time is a value set on the setting screen 301. If it is determined in S604 that the count of the power saving timer is greater than the power saving standby time, the CPU 201 instructs the power control unit 216 to transition to the power saving state in S605 and ends the power saving determination process. When the power control unit 216 is instructed to transition to the power saving state, the power control unit 216 stops power supply to at least one or more constituent elements included in the printing apparatus 100 including the CPU 201.

第一の実施形態では、省電力状態においては、電力制御部216以外の全ての構成要素への給電も停止されており、無線LANチップ211への給電が行われないことから図5を用いて説明したNANに関する通信の全てが行われない。しかしながら、一例では、無線LANチップ211に対する給電は停止されないが、図5を用いて説明したサービスを通知するためのNANに関する通信の全てが停止されてもよい。このため、対向端末に対してPublish信号が送信されることがなくなり、対向端末は無駄なP2P接続要求を印刷装置100に送信することがなくなる。これにより、対向端末がP2P接続応答を受信できずにタイムアウトを待ち続けるといった事態を防ぐことができる。なお、省電力状態においては操作部209の少なくとも一部には給電が停止されずに、任意の操作の検知に必要な電力のみが給電される。   In the first embodiment, in the power saving state, power supply to all the components other than the power control unit 216 is also stopped, and power supply to the wireless LAN chip 211 is not performed, so that FIG. 5 is used. All of the communication related to the described NAN is not performed. However, in one example, power supply to the wireless LAN chip 211 is not stopped, but all communication related to the NAN for notifying the service described with reference to FIG. 5 may be stopped. For this reason, the Publish signal is not transmitted to the opposite terminal, and the opposite terminal does not transmit a useless P2P connection request to the printing apparatus 100. As a result, it is possible to prevent a situation in which the opposite terminal cannot receive a P2P connection response and continues to wait for a timeout. In the power saving state, power supply is not stopped to at least a part of the operation unit 209, and only power necessary for detecting an arbitrary operation is supplied.

省電力状態において電力制御部216は省電力状態終了イベントを監視する。当該省電力状態終了イベントは、一例では操作部209による任意の操作の検出である。省電力状態を終了する場合、電力制御部216は、給電を停止していた構成要素に対して給電を再開する。無線LANチップ211への給電が停止されていた場合、省電力状態終了イベントに伴い無線LANチップ211に対する給電も再開され、図5を用いて説明したNANに関する通信も再開される。また、省電力状態でCPU201への給電が停止されていた場合、給電が再開されたCPU201は省電力判定処理を再開する。   In the power saving state, the power control unit 216 monitors a power saving state end event. The power saving state end event is, for example, detection of an arbitrary operation by the operation unit 209. When ending the power saving state, the power control unit 216 resumes power feeding for the components that have stopped power feeding. When the power supply to the wireless LAN chip 211 is stopped, the power supply to the wireless LAN chip 211 is restarted in response to the power saving state end event, and the communication related to the NAN described with reference to FIG. 5 is also restarted. When power supply to the CPU 201 is stopped in the power saving state, the CPU 201 that has resumed power supply restarts the power saving determination process.

あるいは、操作部209が操作を検出すること以外の任意の要因によっても省電力状態が終了されてよい。例えば、省電力状態においても有線LANチップ215への給電は停止されず、有線LANチップ215が一定以上の大きさのデータまたは特定のパケットを受信した際に電力制御部216に信号を送信し、省電力状態を終了するよう制御してもよい。   Alternatively, the power saving state may be terminated by any factor other than the operation unit 209 detecting the operation. For example, power supply to the wired LAN chip 215 is not stopped even in the power saving state, and when the wired LAN chip 215 receives data of a certain size or more or a specific packet, a signal is transmitted to the power control unit 216, You may control to complete | finish a power saving state.

以上説明したように第一の実施形態に係る通信装置は、省電力状態に遷移した場合、通信モード制御部によってPublish信号の送信を行わないよう制御される無線LANチップを備える。これによって、Publish信号を受信してP2P接続の接続要求を送信した対向端末が接続要求に対する応答を待ち、タイムアウトが発生することを防ぐことができる。   As described above, the communication device according to the first embodiment includes the wireless LAN chip that is controlled so as not to transmit the Publish signal by the communication mode control unit when the state is changed to the power saving state. Accordingly, it is possible to prevent the opposite terminal that has received the Publish signal and transmitted the connection request for the P2P connection from waiting for a response to the connection request and causing a timeout.

また第一の実施形態に係る通信装置は、省電力状態に遷移した場合、無線LANチップへの給電を停止する電力制御部を有する。これによって、省電力状態における消費電力を抑えることができる。   In addition, the communication device according to the first embodiment includes a power control unit that stops power supply to the wireless LAN chip when transitioning to the power saving state. Thereby, power consumption in the power saving state can be suppressed.

<第二の実施形態>
第二の実施形態では、第一の実施形態の変形例である、NANが有効化されている状態においては省電力状態に遷移しない印刷装置200について説明する。印刷装置200のハードウェア構成は第一の実施形態の印刷装置100と同様であるため説明を省略する。また、印刷装置200が行う起動処理、サービス提供通知、P2P接続処理および省電力判定処理は、第一の実施形態に係る印刷装置100が行う処理と異なる点についてのみ説明する。
<Second Embodiment>
In the second embodiment, a printing apparatus 200 that is a modified example of the first embodiment and does not transition to the power saving state in a state where the NAN is enabled will be described. Since the hardware configuration of the printing apparatus 200 is the same as that of the printing apparatus 100 of the first embodiment, the description thereof is omitted. In addition, the activation process, service provision notification, P2P connection process, and power saving determination process performed by the printing apparatus 200 will be described only with respect to differences from the process performed by the printing apparatus 100 according to the first embodiment.

印刷装置200はNANが有効化されている状態においては省電力状態に遷移しない。具体的には図4の起動処理において、S405においてNANが有効に設定されていると判定された場合には、S407およびS408が実行されない。一例では、起動処理時以外においても、NAN設定が変更された際に、省電力判定処理は停止または開始されうる。具体的には、NAN設定が無効から有効に変更された際には、CPU201は図6で説明した省電力判定処理を停止し、NAN設定が有効から無効に変更された場合に省電力判定処理を開始してもよい。   The printing apparatus 200 does not transition to the power saving state when the NAN is enabled. Specifically, in the activation process of FIG. 4, if it is determined in S405 that the NAN is set to be valid, S407 and S408 are not executed. In one example, the power saving determination process can be stopped or started when the NAN setting is changed even when the activation process is not performed. Specifically, when the NAN setting is changed from invalid to valid, the CPU 201 stops the power saving determination process described in FIG. 6, and when the NAN setting is changed from valid to invalid, the power saving determination process is performed. May start.

図7は、第二の実施形態に係る印刷装置200の操作部209に表示される設定画面の一例を示す図である。設定画面701は印刷装置200の基本動作の設定を行う設定画面である。NANが有効化されている状態においては省電力状態に遷移しないため、省電力機能の設定自体が無効となる。設定画面701はNAN設定に有効が設定されている状態を示しており、省電力機能は網掛け表示711で無効化されている。   FIG. 7 is a diagram illustrating an example of a setting screen displayed on the operation unit 209 of the printing apparatus 200 according to the second embodiment. A setting screen 701 is a setting screen for setting basic operations of the printing apparatus 200. Since the transition to the power saving state is not performed in a state where the NAN is enabled, the power saving function setting itself is invalid. The setting screen 701 shows a state in which “valid” is set in the NAN setting, and the power saving function is disabled by the shaded display 711.

以上、説明したように第二の実施形態に係る通信装置は、NAN設定が有効である場合には省電力状態に遷移しない。そのため、対向端末からP2P接続要求を受信した場合にP2P接続応答を送信することが可能であり、対向端末がP2P接続要求を送信してP2P接続応答を待機することを防ぐことができる。   As described above, the communication device according to the second embodiment does not transition to the power saving state when the NAN setting is valid. Therefore, it is possible to transmit a P2P connection response when a P2P connection request is received from the opposite terminal, and it is possible to prevent the opposite terminal from waiting for the P2P connection response by transmitting the P2P connection request.

<第三の実施形態>
第三の実施形態ではNANに関する通信をトリガとして、省電力状態から復帰する印刷装置300について説明する。第三の実施形態に係る印刷装置300の構成は第一の実施形態に係る印刷装置100と同様であるため説明を省略する。また、第三の実施形態に係る印刷装置300が行う起動処理、サービス提供通知、P2P接続処理、および省電力判定処理は、第一または第二の実施形態と同様の処理を行うものは同一の参照番号を用いて説明を省略し、異なる点についてのみ説明する。
<Third embodiment>
In the third embodiment, a printing apparatus 300 that returns from a power saving state using communication related to NAN as a trigger will be described. Since the configuration of the printing apparatus 300 according to the third embodiment is the same as that of the printing apparatus 100 according to the first embodiment, the description thereof is omitted. In addition, the start processing, service provision notification, P2P connection processing, and power saving determination processing performed by the printing apparatus 300 according to the third embodiment are the same as those performing the same processing as in the first or second embodiment. Description will be omitted using reference numerals, and only different points will be described.

S605において省電力状態へ遷移する際に、電力制御部216は、CPU201を含むが無線LANチップ211および電力制御部216を含まない、印刷装置300の1以上の構成要素への給電を停止しうる。また、電力制御部216は無線LANチップ211によるSubscribe信号の受信を省電力状態終了イベントとして扱う。すなわち、省電力状態においても無線LANチップ211は図5におけるサービス通知に関する通信(S501〜S504、およびS506〜S510)を実行し、Subscribe信号を受信した場合に省電力状態を終了する。   When transitioning to the power saving state in step S605, the power control unit 216 can stop power supply to one or more components of the printing apparatus 300 including the CPU 201 but not including the wireless LAN chip 211 and the power control unit 216. . Further, the power control unit 216 handles reception of the Subscribe signal by the wireless LAN chip 211 as a power saving state end event. That is, even in the power saving state, the wireless LAN chip 211 executes communication (S501 to S504 and S506 to S510) related to the service notification in FIG. 5, and ends the power saving state when receiving the Subscribe signal.

以下、図8のシーケンス図を参照し、印刷装置300が省電力状態を終了する処理について説明する。なお、Sync信号や、DWの間に送信されるDiscovery Beaconは、第一の実施形態と同様のため、説明は省略する。   Hereinafter, a process for the printing apparatus 300 to end the power saving state will be described with reference to the sequence diagram of FIG. Note that the Sync signal and the Discovery Beacon transmitted during DW are the same as those in the first embodiment, and thus description thereof is omitted.

S801で、印刷装置300は省電力状態に遷移する。第三の実施形態では、印刷装置300が行う省電力状態への遷移は、無線LANチップ211への給電を停止しない。S802で、無線LANチップ211は外部端末であるモバイル端末110からSubscribe信号を受信する。Subscribe信号の受信をトリガとしてS803の処理が実行される。   In step S801, the printing apparatus 300 transitions to a power saving state. In the third embodiment, the transition to the power saving state performed by the printing apparatus 300 does not stop the power supply to the wireless LAN chip 211. In step S802, the wireless LAN chip 211 receives a subscribe signal from the mobile terminal 110, which is an external terminal. The processing of S803 is executed with the reception of the Subscribe signal as a trigger.

S803では、電力制御部216はCPU201を含む、印刷装置300を構成する構成要素に対して給電を再開し、復帰処理を開始する。復帰処理を開始するタイミングをシーケンス図上にret−startとして示している。また、復帰処理を完了するタイミングをシーケンス図上にret−endとして示している。ret−startとret−endの間の時間において、印刷装置300は復帰処理中状態にある。復帰処理中状態においてCPU201は復帰処理中であるため、無線LAN I/F210を介してP2P接続応答を送信することができない。S804およびS805では、印刷装置300は復帰処理中であるため、対向端末からSubscribe信号を受信しても応答をしなくてもよい。   In step S <b> 803, the power control unit 216 restarts power supply to the components included in the printing apparatus 300 including the CPU 201, and starts recovery processing. The timing for starting the return processing is shown as ret-start on the sequence diagram. Further, the timing for completing the return processing is shown as ret-end on the sequence diagram. During the time between ret-start and ret-end, the printing apparatus 300 is in the return process state. Since the CPU 201 is performing the recovery process in the recovery process in progress state, the P2P connection response cannot be transmitted via the wireless LAN I / F 210. In S804 and S805, since the printing apparatus 300 is in the return process, it does not need to respond even if it receives the Subscribe signal from the opposite terminal.

印刷装置300は、常時通知モードが無効である場合には、復帰処理開始のトリガとなったS802のSubscribe信号に対するPublish信号をS807で送信する。もしくは、復帰処理完了後にS806で受信したsubscribe信号に対してPublish信号を送信してもよい。また、常時通知モードが有効である場合には復帰処理完了後のDWからPublish信号の送信を開始する。S808において印刷装置300はモバイル端末110とP2P接続を確立する。S808の処理は図5のS505およびS511〜S516の処理に相当する。   If the continuous notification mode is invalid, the printing apparatus 300 transmits a Publish signal corresponding to the Subscribe signal in S802, which triggers the return process, in S807. Alternatively, the Publish signal may be transmitted in response to the subscribe signal received in S806 after the return process is completed. If the continuous notification mode is valid, transmission of the Publish signal is started from the DW after completion of the return process. In step S808, the printing apparatus 300 establishes a P2P connection with the mobile terminal 110. The process of S808 corresponds to the processes of S505 and S511 to S516 in FIG.

以上、NANに関する通信をトリガとして省電力状態から復帰する印刷装置300について説明した。印刷装置300はSubscribe信号の受信をトリガとして省電力状態の復帰を開始し、省電力状態からの復帰処理が完了した後にPublish信号を送信する。これにより、後にP2P接続要求を受信した場合にはすぐにP2P接続応答を返答することが可能になる。そのため、モバイル端末がP2P接続要求を送信した後の待機時間が長くなる、またはタイムアウトすることを防ぐことが可能となる。   Heretofore, the printing apparatus 300 that returns from the power saving state using communication related to the NAN as a trigger has been described. The printing apparatus 300 starts to return to the power saving state by using the reception of the Subscribe signal as a trigger, and transmits the Publish signal after the return processing from the power saving state is completed. As a result, when a P2P connection request is received later, a P2P connection response can be immediately returned. Therefore, it is possible to prevent the waiting time after the mobile terminal transmits the P2P connection request from being extended or timed out.

<第四の実施形態>
第四の実施形態では、第三の実施形態を発展させ、複数のスリープモードを有する印刷装置を説明する。
<Fourth embodiment>
In the fourth embodiment, a printing apparatus having a plurality of sleep modes will be described by developing the third embodiment.

例えば、モードの1つでは、CPU201、無線LANチップ211、スキャンI/F212、スキャナ213、プリントI/F206、およびプリンタ207への給電が停止される。が、少なくともCPU201および無線LANチップ211への給電は停止されない。このモードにおいては、スリープモードでも給電される操作部209を介した操作が検出されるなどして、印刷装置がスリープモードから復帰した後に対向端末からSubscribe信号を受信してもよい。   For example, in one mode, power supply to the CPU 201, the wireless LAN chip 211, the scan I / F 212, the scanner 213, the print I / F 206, and the printer 207 is stopped. However, power supply to at least the CPU 201 and the wireless LAN chip 211 is not stopped. In this mode, a Subscribe signal may be received from the opposite terminal after the printing apparatus returns from the sleep mode, for example, by detecting an operation via the operation unit 209 that is powered even in the sleep mode.

また、別のモードでは、無線LANチップ211を除き、スキャンI/F212、スキャナ213、プリントI/F206、プリンタ207、およびCPU201への給電が停止される。このモードにおいては、対向端末からSubscribe信号を受信した場合、無線LANチップ211は、第三の実施形態で説明したように、省電力状態からの復帰処理を行うが、当該Subscribe信号への応答を送信しない。そして、省電力状態からの復帰処理が完了した後にPublish信号を送信する。   In another mode, except for the wireless LAN chip 211, power supply to the scan I / F 212, the scanner 213, the print I / F 206, the printer 207, and the CPU 201 is stopped. In this mode, when receiving the Subscribe signal from the opposite terminal, the wireless LAN chip 211 performs the return processing from the power saving state as described in the third embodiment, but does not respond to the Subscribe signal. Do not send. Then, after the return processing from the power saving state is completed, the Publish signal is transmitted.

このように、印刷装置が複数のスリープモードを有する場合、印刷装置100は、それぞれのスリープモードに遷移する時間を設定できてもよい。一例では、図3の省電力待機時間3013に、複数のスリープモードのそれぞれに遷移するための複数の時間間隔が設定できてもよい。別の例では、図3の省電力待機時間3013は、省電力状態に遷移するための1つの時間間隔が設定され、いずれのスリープモードに遷移するかは印刷装置100が判断してもよい。いずれのスリープモードに遷移するかの判断は、例えば、過去一日などの所定期間における、受信したP2P接続要求の数、または受信したSubscribe信号の数などの無線LANチップ211の稼働状況に関する情報から決定されうる。   In this way, when the printing apparatus has a plurality of sleep modes, the printing apparatus 100 may be able to set the time for transitioning to each sleep mode. In one example, a plurality of time intervals for transition to each of a plurality of sleep modes may be set in the power saving standby time 3013 of FIG. In another example, the power saving standby time 3013 in FIG. 3 is set with one time interval for transition to the power saving state, and the printing apparatus 100 may determine which sleep mode to transition to. The determination as to which sleep mode is to be made is made, for example, from information regarding the operating status of the wireless LAN chip 211 such as the number of received P2P connection requests or the number of received subscribe signals in a predetermined period such as the past day. Can be determined.

以上説明したように第四の実施形態に係る通信装置は、複数の省電力状態を有し、設定または稼働状況に基づいていずれの省電力状態に遷移するかを判断する。これによって、通信装置の利用状況に合わせて省電力状態における消費電力の削減が可能となる。   As described above, the communication device according to the fourth embodiment has a plurality of power saving states, and determines which power saving state to transition to based on the setting or the operating status. As a result, it is possible to reduce power consumption in the power saving state in accordance with the usage status of the communication device.

<その他の実施形態>
第一乃至第四の実施形態は、任意に組み合わせることができる。例えば、無線LANチップへの給電を停止する省電力状態と無線LANチップへの給電を停止しない省電力状態とに遷移可能な印刷装置は、NANが有効に設定されている場合には無線LANチップへの給電を停止しないよう設定されてもよい。これによって、ユーザがNANを用いる通信の有無を意識することなく、省電力状態の設定を行うことができる。
<Other embodiments>
The first to fourth embodiments can be arbitrarily combined. For example, a printing apparatus capable of transitioning between a power saving state in which power supply to the wireless LAN chip is stopped and a power saving state in which power supply to the wireless LAN chip is not stopped is a wireless LAN chip when the NAN is effectively set. It may be set not to stop the power supply to the. Thus, the power saving state can be set without the user being aware of the presence or absence of communication using the NAN.

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

10:NANクラスタ、100:印刷装置、110:モバイル端末、120:モバイル端末、201:CPU、202:RAM、203:ROM、204:HDD、205:バス、206:プリントI/F、207:プリンタ、208:操作パネルI/F、209:操作部、210:無線LANI/F、211:無線LANチップ、212:スキャンI/F、213:スキャナ、214:有線LANI/F、215:有線LANチップ、216:電力制御部 10: NAN cluster, 100: printing device, 110: mobile terminal, 120: mobile terminal, 201: CPU, 202: RAM, 203: ROM, 204: HDD, 205: bus, 206: print I / F, 207: printer 208: Operation panel I / F, 209: Operation unit, 210: Wireless LAN I / F, 211: Wireless LAN chip, 212: Scan I / F, 213: Scanner, 214: Wired LAN I / F, 215: Wired LAN chip 216: Power control unit

Claims (9)

無線通信手段を備える通信装置であって、
前記無線通信手段は、前記通信装置が提供可能なサービスに関する情報を、第一の通信モードによって外部装置に通知する通知手段を備え、
前記通信装置の電力状態を制御する電力制御手段と、
前記電力制御手段が前記通信装置を省電力状態へ遷移させた状態において、前記無線通信手段が前記通知手段を実行しないよう制御する制御手段と、
を有することを特徴とする通信装置。
A communication device comprising wireless communication means,
The wireless communication means includes notification means for notifying an external device of information related to services that can be provided by the communication device, in a first communication mode,
Power control means for controlling the power state of the communication device;
Control means for controlling the wireless communication means not to execute the notification means in a state where the power control means causes the communication device to transition to a power saving state;
A communication apparatus comprising:
前記第一の通信モードは、NAN(Neighbor Awareness Networking)であることを特徴とする請求項1に記載の通信装置。   The communication apparatus according to claim 1, wherein the first communication mode is NAN (Neighbor Awareness Networking). 前記通知手段が実行された場合に、前記無線通信手段がPublish信号を送信することを特徴とする請求項2に記載の通信装置。   The communication apparatus according to claim 2, wherein when the notification unit is executed, the wireless communication unit transmits a Publish signal. 前記電力制御手段は、前記提供可能なサービスを提供するための第二の通信モードによる接続がなく、所定の時間を経過した後に前記通信装置を前記省電力状態へ遷移させることを特徴とする請求項1乃至3の何れか1項に記載の通信装置。   The power control means is characterized in that there is no connection in the second communication mode for providing the service that can be provided, and the communication device is shifted to the power saving state after a predetermined time has elapsed. Item 4. The communication device according to any one of Items 1 to 3. 前記無線通信手段は、前記省電力状態において、前記第一の通信モードによる通信を停止することを特徴とする請求項1乃至4の何れか1項に記載の通信装置。   5. The communication apparatus according to claim 1, wherein the wireless communication unit stops communication in the first communication mode in the power saving state. 6. 前記電力制御手段は、前記省電力状態において前記無線通信手段に対する給電を停止することを特徴とする請求項1乃至5の何れか1項に記載の通信装置。   The communication apparatus according to claim 1, wherein the power control unit stops power supply to the wireless communication unit in the power saving state. 前記電力制御手段は、前記省電力状態において前記無線通信手段に対する給電を停止せず、
前記無線通信手段が、前記サービスに関する情報を要求する通信を受信した場合に、前記省電力状態を終了させる復帰処理を開始することを特徴とする請求項1乃至4の何れか1項に記載の通信装置。
The power control means does not stop power supply to the wireless communication means in the power saving state,
5. The return process for ending the power saving state is started when the wireless communication unit receives a communication requesting information about the service. 6. Communication device.
前記サービスに関する情報を要求する通信は、Subscribe信号であることを特徴とする請求項7に記載の通信装置。   The communication apparatus according to claim 7, wherein the communication requesting information related to the service is a Subscribe signal. 通信装置の制御方法であって、
前記通信装置が提供可能なサービスに関する情報を第一の通信モードによって外部装置に通知する通知工程と、
前記通信装置の電力状態を制御する電力制御工程と、
前記電力制御工程で前記通信装置を省電力状態へ遷移させた状態において、前記通知工程を実行しないよう制御する制御工程と、
を有することを特徴とする制御方法。
A communication device control method comprising:
A notification step of notifying an external device of information related to services that can be provided by the communication device in a first communication mode;
A power control step for controlling a power state of the communication device;
A control step for controlling not to execute the notification step in a state where the communication device is shifted to a power saving state in the power control step;
A control method characterized by comprising:
JP2018048396A 2018-03-15 2018-03-15 Communication device and control method therefor Pending JP2019161552A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018048396A JP2019161552A (en) 2018-03-15 2018-03-15 Communication device and control method therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018048396A JP2019161552A (en) 2018-03-15 2018-03-15 Communication device and control method therefor

Publications (1)

Publication Number Publication Date
JP2019161552A true JP2019161552A (en) 2019-09-19

Family

ID=67996415

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018048396A Pending JP2019161552A (en) 2018-03-15 2018-03-15 Communication device and control method therefor

Country Status (1)

Country Link
JP (1) JP2019161552A (en)

Similar Documents

Publication Publication Date Title
CN109218552B (en) Communication apparatus and control method thereof
JP6562867B2 (en) Information processing apparatus, control method, and program
JP7505061B2 (en) PROGRAM, INFORMATION PROCESSING APPARATUS, AND COMMUNICATION SYSTEM
JP6333224B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, AND PROGRAM
JP6494835B2 (en) COMMUNICATION DEVICE AND ITS CONTROL METHOD
JP5772807B2 (en) Printing system, image forming apparatus, proxy response method, and program
JP2016143999A (en) Communication apparatus, control method, and program
JP2010244464A (en) Information processing apparatus, network interface device, control method thereof, and program
JP2017016373A (en) Information processing apparatus, control method, and program
JP6873660B2 (en) Information processing equipment, communication equipment, programs and control methods
JP2017041832A (en) Information processing device, control method and program therefor, and storage medium
JP2017022655A (en) Information transmitter, control method, and program
US10271368B2 (en) Communication apparatus having parallel wireless connection, communication method, and non-transitory computer-readable storage medium
JP2019134322A (en) Communication device, control method, and program
JP2017188875A (en) Communication device, control method of information processing apparatus, program, and communication system
JP2014143635A (en) Communication apparatus, method for controlling communication apparatus, and program
JP2019161552A (en) Communication device and control method therefor
JP2023016993A (en) Information processing device and information processing method
JP6463163B2 (en) COMMUNICATION DEVICE, ITS CONTROL METHOD, AND PROGRAM
JP6888037B2 (en) Information processing equipment, control methods and programs
US11368989B2 (en) Information processing apparatus, method of controlling the same, and program
JP2017144627A (en) Image formation apparatus, control method, and program of the same
JP2010217983A (en) Image forming system, image forming apparatus, and instruction generating device
JP6852124B2 (en) Information processing device, control method, program
JP2020067950A (en) Information processing apparatus, device, system, control method, and program

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20210103

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210113