JP2019161552A - Communication device and control method therefor - Google Patents
Communication device and control method therefor Download PDFInfo
- 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
Links
Images
Classifications
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing 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
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.
近年、通信装置の消費電力を削減するため、稼働していない状態が一定時間以上続いた場合には、電力の供給を機器の一部に限定し低電力で動作する、スリープ状態(省電力状態)へ遷移する省電力機能が進歩している。印刷装置においてもこのような省電力機能の要求が高まっている。 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.
以下、本発明を実施するための最良の形態について図面を用いて説明する。なお、以下の実施の形態は特許請求の範囲に係る発明を限定するものでなく、また実施の形態で説明されている特徴の組み合わせの全てが発明の解決手段に必須のものとは限らない。 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
端末群は、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
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
印刷装置100は、プリントインタフェース(I/F)206を介してシステムバス205に接続されるプリンタ207、スキャンI/F212を介してシステムバスに接続されるスキャナ213を備える。印刷装置100では、外部装置から受信した印刷データやスキャナ213よって生成されたスキャン画像等に基づいて、プリンタ207によって印刷処理が実行される。スキャナ213は、原稿を読み取ってスキャン画像(読取画像データ)を生成する。スキャナ213によって生成されたスキャン画像は、プリンタ207によって印刷または、HDD204に記憶される。
The
操作パネルI/F208を介してシステムバスに接続される操作部209は、タッチパネル機能を有する表示部やキーボードを備え、後述する各種画面を表示する。ユーザは、操作部209を介して印刷装置100に対して指示や情報を入力することができる。
An
また、印刷装置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
電力制御部216は、上述した各構成要素に対する電力給電を制御する。また、後述の省電力状態においては、電力制御部216は少なくとも1つの構成要素への給電を停止し、印刷装置100の消費電力を抑えるよう動作する。
The
次に、図3を参照して、印刷装置100の設定画面の一例を説明する。
Next, an example of the setting screen of the
設定画面301は印刷装置100の基本動作の設定を行う設定画面である。省電力機能は有効3011または無効3012の何れか1つが選択可能である。省電力待機時間3013は、省電力機能が有効3011に設定され、印刷装置100が稼働しない場合に、印刷装置100が省電力状態に遷移する所定の時間である。省電力待機時間3013には任意の時間が設定可能であり、設定画面301では省電力待機時間3013が20分に設定されている。すなわち、省電力待機時間3013で設定された20分が経過した場合、後述する省電力判定処理が実行されうる。
A
有線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
設定画面302はNANに関する設定を行う設定画面である。設定画面302におけるパスワード3021は任意の文字列を設定することができる。パスワード3021は後述のNAN P2P接続に使用される。常時通知モードは有効3022または無効3023の何れか1つが設定可能である。常時通知モードに関する詳細は後述する。通知サービスはプリント3024、スキャン3025およびFAX3026のそれぞれについて有効または無効の何れか1つが設定可能である。通知サービスとは印刷装置100が送信する、NANにおけるPublish信号の中に含めるサービスである。つまり、通知サービスは、印刷装置100によって近傍の端末に提供可能であることを通知されるサービスである。
A
当該サービスは例えばプリントサービスであり、この場合、印刷装置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
次に、図4のフローチャートを用いて、第一の実施形態に係る印刷装置100の起動処理について説明する。図4のフローチャートに示す各ステップは、CPU201がROM203等のメモリに格納された制御プログラムをRAM202に展開して実行することによって処理される。
Next, the activation process of the
印刷装置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
S405においてCPU201は、RAM202に記憶されている内容に基づいてNAN設定が有効か無効かを判定する。NAN設定が有効であると判断された場合には、S406においてCPU201は無線LANチップ211に対してNANに関する設定を行い、図5で説明するNANに関する通信処理を開始する。当該設定は具体的には、無線LANチップ211に対する前述の常時通知モードおよび通知サービスの設定である。ユーザの入力等によって常時通知モードまたは通知サービスの設定が変更された場合には、CPU201はS406を再び実行してもよい。
In step S <b> 405, the
S407においてCPU201は、設定画面301で省電力機能が有効或いは無効に設定されていたかどうかを判定する。省電力設定が有効であると判定された場合にはS408においてCPU201は省電力タイマによる計時を開始するとともに省電力判定処理を開始する。当該省電力判定処理はその他の処理と並列して実行される処理であり、詳細については後に図6を用いて説明する。
In step S <b> 407, the
次に、図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
まず、S501においてCPU201は無線LANチップ211を介してDiscovery BeaconおよびSync Beaconを送信し、DWを開始する。なお、本実施形態では、印刷装置100はMasterノードとして動作するため、S501の処理を行うが、印刷装置100の役割によってS501は変更されてもよい。
First, in step S501, the
次に、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
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
上述したサービス通知に関する通信は、印刷装置100の無線LANチップ211がCPU201に制御されることなく行うことができてもよい。
The communication related to the service notification described above may be performed without the
S505においてCPU201は対向端末に対して、無線LANインターフェース210を介してP2P接続応答を送信する。P2P接続応答は、正常にP2P接続要求を受信できたことを通知する信号であり、当該信号が送信されない場合には対向端末は自身が送信した要求が受理されたか否かの判定を行えず、タイムアウトするまで待機し続けることになる。
In step S <b> 505, the
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
以上サービス提供の通知およびP2P接続の確立フローについて説明した。印刷装置100は確立したP2P接続を介してサービスの実行に必要な情報の送受信を行い、サービスを実行する。このようにして、印刷装置100はP2P接続の確立後にサービスの実行を行うが、並行してサービス提供の通知およびP2P接続の確立フローを実行し続ける。あるいは、CPU201はサービスの実行を行うプロセスと、サービス提供の通知およびP2P接続の確率フローを実行するプロセスとを時分割で実行してもよい。
The service provision notification and the P2P connection establishment flow have been described above. The
次に、図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
第一の実施形態では、省電力状態においては、電力制御部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
省電力状態において電力制御部216は省電力状態終了イベントを監視する。当該省電力状態終了イベントは、一例では操作部209による任意の操作の検出である。省電力状態を終了する場合、電力制御部216は、給電を停止していた構成要素に対して給電を再開する。無線LANチップ211への給電が停止されていた場合、省電力状態終了イベントに伴い無線LANチップ211に対する給電も再開され、図5を用いて説明したNANに関する通信も再開される。また、省電力状態でCPU201への給電が停止されていた場合、給電が再開されたCPU201は省電力判定処理を再開する。
In the power saving state, the
あるいは、操作部209が操作を検出すること以外の任意の要因によっても省電力状態が終了されてよい。例えば、省電力状態においても有線LANチップ215への給電は停止されず、有線LANチップ215が一定以上の大きさのデータまたは特定のパケットを受信した際に電力制御部216に信号を送信し、省電力状態を終了するよう制御してもよい。
Alternatively, the power saving state may be terminated by any factor other than the
以上説明したように第一の実施形態に係る通信装置は、省電力状態に遷移した場合、通信モード制御部によって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
印刷装置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
図7は、第二の実施形態に係る印刷装置200の操作部209に表示される設定画面の一例を示す図である。設定画面701は印刷装置200の基本動作の設定を行う設定画面である。NANが有効化されている状態においては省電力状態に遷移しないため、省電力機能の設定自体が無効となる。設定画面701はNAN設定に有効が設定されている状態を示しており、省電力機能は網掛け表示711で無効化されている。
FIG. 7 is a diagram illustrating an example of a setting screen displayed on the
以上、説明したように第二の実施形態に係る通信装置は、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
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
以下、図8のシーケンス図を参照し、印刷装置300が省電力状態を終了する処理について説明する。なお、Sync信号や、DWの間に送信されるDiscovery Beaconは、第一の実施形態と同様のため、説明は省略する。
Hereinafter, a process for the
S801で、印刷装置300は省電力状態に遷移する。第三の実施形態では、印刷装置300が行う省電力状態への遷移は、無線LANチップ211への給電を停止しない。S802で、無線LANチップ211は外部端末であるモバイル端末110からSubscribe信号を受信する。Subscribe信号の受信をトリガとしてS803の処理が実行される。
In step S801, the
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
印刷装置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
以上、NANに関する通信をトリガとして省電力状態から復帰する印刷装置300について説明した。印刷装置300はSubscribe信号の受信をトリガとして省電力状態の復帰を開始し、省電力状態からの復帰処理が完了した後にPublish信号を送信する。これにより、後にP2P接続要求を受信した場合にはすぐにP2P接続応答を返答することが可能になる。そのため、モバイル端末がP2P接続要求を送信した後の待機時間が長くなる、またはタイムアウトすることを防ぐことが可能となる。
Heretofore, the
<第四の実施形態>
第四の実施形態では、第三の実施形態を発展させ、複数のスリープモードを有する印刷装置を説明する。
<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
また、別のモードでは、無線LANチップ211を除き、スキャンI/F212、スキャナ213、プリントI/F206、プリンタ207、およびCPU201への給電が停止される。このモードにおいては、対向端末からSubscribe信号を受信した場合、無線LANチップ211は、第三の実施形態で説明したように、省電力状態からの復帰処理を行うが、当該Subscribe信号への応答を送信しない。そして、省電力状態からの復帰処理が完了した後にPublish信号を送信する。
In another mode, except for the
このように、印刷装置が複数のスリープモードを有する場合、印刷装置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
以上説明したように第四の実施形態に係る通信装置は、複数の省電力状態を有し、設定または稼働状況に基づいていずれの省電力状態に遷移するかを判断する。これによって、通信装置の利用状況に合わせて省電力状態における消費電力の削減が可能となる。 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:
前記無線通信手段が、前記サービスに関する情報を要求する通信を受信した場合に、前記省電力状態を終了させる復帰処理を開始することを特徴とする請求項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.
前記通信装置が提供可能なサービスに関する情報を第一の通信モードによって外部装置に通知する通知工程と、
前記通信装置の電力状態を制御する電力制御工程と、
前記電力制御工程で前記通信装置を省電力状態へ遷移させた状態において、前記通知工程を実行しないよう制御する制御工程と、
を有することを特徴とする制御方法。 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:
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) |
-
2018
- 2018-03-15 JP JP2018048396A patent/JP2019161552A/en active Pending
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 |