JP6494835B2 - COMMUNICATION DEVICE AND ITS CONTROL METHOD - Google Patents

COMMUNICATION DEVICE AND ITS CONTROL METHOD Download PDF

Info

Publication number
JP6494835B2
JP6494835B2 JP2018082464A JP2018082464A JP6494835B2 JP 6494835 B2 JP6494835 B2 JP 6494835B2 JP 2018082464 A JP2018082464 A JP 2018082464A JP 2018082464 A JP2018082464 A JP 2018082464A JP 6494835 B2 JP6494835 B2 JP 6494835B2
Authority
JP
Japan
Prior art keywords
communication
power
ble
function
state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2018082464A
Other languages
Japanese (ja)
Other versions
JP2019012991A (en
Inventor
圭 財部
圭 財部
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 KR1020180071275A priority Critical patent/KR102210020B1/en
Priority to US16/016,790 priority patent/US10771648B2/en
Priority to EP18179807.5A priority patent/EP3422777B1/en
Priority to CN201810695708.1A priority patent/CN109218552B/en
Publication of JP2019012991A publication Critical patent/JP2019012991A/en
Application granted granted Critical
Publication of JP6494835B2 publication Critical patent/JP6494835B2/en
Priority to US16/988,750 priority patent/US11212410B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Description

本発明は、通信システムに関し、特に近距離無線通信部を搭載している情報処理装置と接続する通信装置およびその制御方法に関するものである。 The present invention relates to a communication system, and more particularly to a communication apparatus connected to an information processing apparatus equipped with a short-range wireless communication unit and a control method therefor.

近年、Bluetooth(登録商標)を用いた近距離無線通信が普及している。例えば、スマートフォン等の情報処理装置から当該通信によりプリンタ等の通信装置と近距離無線通信を行う、といったことがなされている。このBluetoothによる通信において、次のようにCentralとPeripheralといった役割が規定されている。Peripheral装置は自身のデバイス情報を示すAdvertisingパケットを周辺装置に対して周期的に発信することが可能であり、Central装置からの接続要求を待つ。また、Central装置はAdvertisingパケットを検知し、Peripheral装置に対して接続要求やスキャン要求を出すことが可能である。しかし、Bluetoothの規格上、Peripheral装置は同時に複数のCentral装置と接続することができない。そのため、ひとつのCentral装置と接続しているPeripheral装置を別のCentral装置へとBluetoothにより接続させたい場合、既に接続済みの通信を切断しなければならない。特許文献1では、無線LANやBluetoothなどの無線通信を様々な条件で切断する技術を提案している。 In recent years, short-range wireless communication using Bluetooth (registered trademark) has become widespread. For example, short-range wireless communication is performed with a communication device such as a printer by the communication from an information processing device such as a smartphone. In the communication by Bluetooth, roles such as Central and Peripheral are defined as follows. The peripheral device can periodically send an advertising packet indicating its own device information to the peripheral device, and waits for a connection request from the central device. The Central device can detect an Advertising packet and issue a connection request or a scan request to the Peripheral device. However, in accordance with the Bluetooth standard, the peripheral device cannot be connected to a plurality of central devices at the same time. Therefore, when a peripheral device connected to one Central device is to be connected to another Central device via Bluetooth, the already connected communication must be disconnected. Patent Document 1 proposes a technique for disconnecting wireless communication such as a wireless LAN or Bluetooth under various conditions.

特開2016―208418号公報JP 2016-208418 A

近年、プリンタのような通信機能を有する装置(以下、通信装置とも呼ぶ。)は、ユーザーの電源ボタン押下による電源ON・OFF以外にも、所定の条件を満たした場合に自動的に装置電源のON・OFFを実行する、といった自動電源ON・OFF機能が搭載されている。これらの機能はユーザーが有効・無効を設定することも可能である。自動電源ON機能が有効設定での電源OFF状態では、無線LANやBluetoothによる通信は可能であることが多く、これらの無線通信が実施された場合に、自動的に装置電源のONが実行されることが一般的である。 In recent years, an apparatus having a communication function such as a printer (hereinafter also referred to as a communication apparatus) automatically turns on the apparatus power supply when a predetermined condition is satisfied, in addition to power ON / OFF by a user pressing a power button. It is equipped with an automatic power ON / OFF function such as ON / OFF. These functions can be enabled / disabled by the user. In the power-off state with the automatic power-on function enabled, communication by wireless LAN or Bluetooth is often possible, and when these wireless communications are performed, the device power is automatically turned on. It is common.

特許文献1では第1の通信(無線LAN)が確立した場合に第2の通信(Bluetooth)を切断する、といった記載がなされているが、通信装置の電源状態によって無線通信の接続、切断を実行することについては言及されていない。前述したように、例えば、Bluetooth通信においては外部通信装置と同時に接続可能な数は1つである。そのため、プリンタ電源のOFFを実行した場合でも、外部通信装置とのBluetoothによる接続状態が維持されてしまい、他の端末からBluetoothによるプリンタとの接続ができないという課題がある。Bluetooth以外の通信方式においても、接続状態を適切に制御することは重要である。 Patent Document 1 describes that when the first communication (wireless LAN) is established, the second communication (Bluetooth) is disconnected, but the wireless communication is connected or disconnected depending on the power state of the communication device. There is no mention of what to do. As described above, for example, in Bluetooth communication, only one external communication device can be connected at a time. For this reason, even when the printer power is turned off, the connection state with the external communication device by Bluetooth is maintained, and there is a problem that the connection with the printer by Bluetooth cannot be performed from another terminal. It is important to appropriately control the connection state even in communication methods other than Bluetooth.

本発明は上記従来例に鑑みて成されたもので、接続状態を適切に制御することが可能となる通信装置およびその制御方法を提供することを目的とする。 The present invention has been made in view of the above-described conventional example, and an object thereof is to provide a communication device and a control method thereof that can appropriately control a connection state.

本発明は、上記の課題を解決するためになされたものであり、以下の構成を有する。 The present invention has been made to solve the above problems, and has the following configuration.

本発明の第一の側面によれば、
Bluetooth Low Energy (BLE)の通信方式に基づき外部装置と無線通信を行う通信手段と、
通信装置が電源オフ状態であっても、所定の条件により前記通信装置の電源をオンにする自動電源オン機能が有効に設定されているか判定する判定手段と、
を備え、
前記通信手段は、前記自動電源オン機能が有効に設定されていると判定された場合、電源オフの指示に応じて、前記BLEの通信方式に基づき確立された前記外部装置との接続を切断し、前記BLEの通信方式に基づく応答を受け付け可能なアドバタイズ情報を送信することを特徴とする。
According to a first aspect of the present invention,
A communication means for performing wireless communication with an external device based on the communication method of Bluetooth Low Energy (BLE);
A determination unit that determines whether an automatic power-on function for turning on the power of the communication device is set to be valid according to a predetermined condition even when the communication device is in a power-off state;
With
When it is determined that the automatic power-on function is set to be effective, the communication unit disconnects the connection with the external device established based on the BLE communication method in response to a power-off instruction. Advertised information capable of accepting a response based on the BLE communication method is transmitted.

本発明の第二の側面によれば
所定の通信方式に基づき外部装置と無線通信を行う通信手段と、
通信装置が電源オフ状態であっても、所定の条件により前記通信装置の電源をオンにする自動電源オン機能が有効に設定されているか判定する第1判定手段と、
電源オフの指示が、ユーザー操作に基づく指示か判定する第2判定手段と、
を備え、
前記通信手段は、前記自動電源オン機能が有効に設定されており、且つ、前記電源オフの指示がユーザー操作に基づく指示であると判定された場合、前記所定の通信方式に基づき確立された前記外部装置との接続を切断することを特徴とする。
According to a second aspect of the present invention, communication means for performing wireless communication with an external device based on a predetermined communication method,
First determination means for determining whether or not an automatic power-on function for turning on the power of the communication device is set to be effective according to a predetermined condition even when the communication device is in a power-off state;
Second determination means for determining whether the power-off instruction is an instruction based on a user operation;
With
When the automatic power-on function is set to be effective and it is determined that the power-off instruction is an instruction based on a user operation, the communication unit is established based on the predetermined communication method. The connection with the external device is cut off.

本発明によれば、接続状態を適切に制御することが可能となる。 According to the present invention, it is possible to appropriately control the connection state.

本発明の一実施例である通信システムの構成を示す図である。It is a figure which shows the structure of the communication system which is one Example of this invention. 通信装置151の操作表示部160の一例を示す図である。It is a figure which shows an example of the operation display part 160 of the communication apparatus 151. 本実施例における近距離無線通信部157の構成を示すブロック図である。It is a block diagram which shows the structure of the near field communication part 157 in a present Example. 本実施例におけるBluetoothでの接続処理を示すシーケンス図である。It is a sequence diagram which shows the connection process by Bluetooth in a present Example. 本実施例におけるBluetoothでの切断処理を示すシーケンス図である。It is a sequence diagram which shows the cutting process by Bluetooth in a present Example. 実施例1における電源OFF検知時のBluetoothの接続処理を示すフローチャートである。4 is a flowchart illustrating Bluetooth connection processing when power OFF is detected in the first embodiment. GATTのデータ形式を示す図である。It is a figure which shows the data format of GATT. 実施例2における電源ON中のBluetoothの接続処理を示すフローチャートである。12 is a flowchart illustrating a connection process of Bluetooth during power-on in the second embodiment. アドバタイズ情報の構造の一例である。It is an example of the structure of advertisement information.

以下に図面を参照して、本発明の好適な実施形態を例示的に説明する。ただし、本発明については、その趣旨を逸脱しない範囲で、当業者の通常の知識に基づいて、以下に記載する実施形態に対して適宜変更、改良が加えられたものについても本発明の範囲に入ることが理解されるべきである。
[第1の実施形態]
本実施形態の通信システムに含まれる情報処理装置及び通信装置について説明する。情報処理装置として、本実施形態ではスマートフォンを例示しているが、これに限定されず、携帯端末、ノートPC、タブレット端末、PDA(Personal Digital Assistant)、デジタルカメラ等、種々のものを適用可能である。また、通信装置として、本実施形態ではプリンタを例示しているが、これに限定されず、情報処理装置と無線通信を行うことが可能な通信機能を有する装置であれば、種々のものを適用可能である。例えば、プリンタであれば、インクジェットプリンタ、フルカラーレーザービームプリンタ、モノクロプリンタ等に適用することができる。また、プリンタのみならず複写機やファクシミリ装置、携帯端末、スマートフォン、ノートPC、タブレット端末、PDA、デジタルカメラ、音楽再生デバイス、テレビ等にも適用可能である。その他、複写機能、FAX機能、印刷機能等の複数の機能を備える複合機にも適用可能である。
DESCRIPTION OF EXEMPLARY EMBODIMENTS Hereinafter, exemplary embodiments of the invention will be described with reference to the drawings. However, within the scope of the present invention, the present invention includes modifications and improvements appropriately made to the embodiments described below based on the ordinary knowledge of those skilled in the art without departing from the spirit of the present invention. It should be understood to enter.
[First Embodiment]
An information processing apparatus and a communication apparatus included in the communication system according to the present embodiment will be described. As the information processing apparatus, a smartphone is exemplified in this embodiment, but the present invention is not limited to this, and various devices such as a portable terminal, a notebook PC, a tablet terminal, a PDA (Personal Digital Assistant), a digital camera, and the like can be applied. is there. In addition, although a printer is exemplified in this embodiment as a communication device, the present invention is not limited to this, and various devices can be used as long as they have a communication function capable of performing wireless communication with an information processing device. Is possible. For example, a printer can be applied to an ink jet printer, a full color laser beam printer, a monochrome printer, and the like. Further, it can be applied not only to a printer but also to a copying machine, a facsimile machine, a portable terminal, a smartphone, a notebook PC, a tablet terminal, a PDA, a digital camera, a music playback device, a television, and the like. In addition, the present invention can also be applied to a multifunction machine having a plurality of functions such as a copying function, a FAX function, and a printing function.

まず、本実施形態の情報処理装置と、本実施形態の情報処理装置と通信可能な通信装置とにより構成される情報処理システム或いは通信システムについて図1のブロック図を参照して説明する。また、本実施形態では以下の構成を例に記載するが、本実施形態は通信装置と通信を行うことが可能な装置に関して適用可能なものであり、特にこの図のとおりに機能を限定するものではない。 First, an information processing system or communication system including the information processing apparatus according to the present embodiment and a communication apparatus capable of communicating with the information processing apparatus according to the present embodiment will be described with reference to the block diagram of FIG. Further, in the present embodiment, the following configuration is described as an example. However, the present embodiment is applicable to a device capable of communicating with a communication device, and particularly has a function limited as shown in this figure. is not.

●情報処理装置101と通信装置151とを備えるシステムの構成
情報処理装置101は、本実施形態の情報処理装置である。情報処理装置101は、入力インタフェース102、CPU103、ROM104、RAM105、外部記憶装置106、出力インタフェース107、操作表示部108、通信部109、近距離無線通信部110、撮影装置111等を有する。情報処理装置101は、スマートフォンのようなデバイスを想定しているが、スマートフォンに限定するものではない。たとえばパーソナルコンピュータやいわゆるタブレット端末であってもよいし、通信機能を有するデジタルカメラなどであってもよい。
System configuration including information processing apparatus 101 and communication apparatus 151 The information processing apparatus 101 is the information processing apparatus of this embodiment. The information processing apparatus 101 includes an input interface 102, a CPU 103, a ROM 104, a RAM 105, an external storage device 106, an output interface 107, an operation display unit 108, a communication unit 109, a short-range wireless communication unit 110, a photographing device 111, and the like. The information processing apparatus 101 is assumed to be a device such as a smartphone, but is not limited to a smartphone. For example, it may be a personal computer or a so-called tablet terminal, or a digital camera having a communication function.

入力インタフェース102は、ユーザーからのデータ入力や動作指示を受け付けるためのインタフェースであり、物理キーボードやボタン、タッチパネル等で構成される。なお、後述の出力インタフェース107と入力インタフェース102とを同一の構成とし、画面の出力とユーザーからの操作の受け付けを同一の構成で行うような形態としても良い。 The input interface 102 is an interface for accepting data input and operation instructions from a user, and includes a physical keyboard, buttons, a touch panel, and the like. Note that an output interface 107 and an input interface 102, which will be described later, may have the same configuration, and screen output and operation reception from the user may be performed with the same configuration.

CPU103は、システム制御部であり、情報処理装置101の全体を制御する。ROM104は、CPU103が実行する制御プログラムやデータテーブル、組み込みオペレーティングシステム(以下、OSという。)プログラム等の固定データを格納する。本実施形態では、ROM104に格納されている各制御プログラムは、ROM104に格納されている組み込みOSの管理下で、スケジューリングやタスクスイッチ、割り込み処理等のソフトウエア実行制御を行う。 The CPU 103 is a system control unit and controls the entire information processing apparatus 101. The ROM 104 stores fixed data such as a control program executed by the CPU 103, a data table, and an embedded operating system (hereinafter referred to as OS) program. In the present embodiment, each control program stored in the ROM 104 performs software execution control such as scheduling, task switching, and interrupt processing under the management of the embedded OS stored in the ROM 104.

RAM105は、バックアップ電源を必要とするSRAM(Static Random Access Memory)等で構成される。なお、RAM105は、図示しないデータバックアップ用の1次電池によってデータが保持されているため、プログラム制御変数等の重要なデータを揮発させずに格納することができる。また、情報処理装置101の設定情報や情報処理装置101の管理データ等を格納するメモリエリアもRAM105に設けられている。また、RAM105は、CPU103の主メモリとワークメモリとしても用いられる。 The RAM 105 is configured by an SRAM (Static Random Access Memory) that requires a backup power source. Since the RAM 105 holds data by a primary battery for data backup (not shown), important data such as program control variables can be stored without being volatilized. The RAM 105 is also provided with a memory area for storing setting information of the information processing apparatus 101, management data of the information processing apparatus 101, and the like. The RAM 105 is also used as a main memory and work memory for the CPU 103.

外部記憶装置106は、印刷実行機能を提供するアプリケーション(以降、印刷アプリケーションと記載する)を実現するための、CPU103によって実行されるアプリケーションプログラムを格納している。また、外部記憶装置106は、通信装置151が解釈可能な印刷情報を生成する印刷情報生成プログラム、通信部109を介して接続している通信装置151との間で送受信する情報送受信制御プログラム等の各種プログラムを格納している。これらのプログラムが使用する各種情報を保存している。また、通信部を介して他の情報処理装置やインターネットから得た画像データも保存している。 The external storage device 106 stores an application program executed by the CPU 103 for realizing an application that provides a print execution function (hereinafter referred to as a print application). The external storage device 106 also includes a print information generation program that generates print information that can be interpreted by the communication device 151, an information transmission / reception control program that transmits and receives to / from the communication device 151 connected via the communication unit 109, and the like. Stores various programs. Various information used by these programs is stored. In addition, image data obtained from another information processing apparatus or the Internet via the communication unit is also stored.

出力インタフェース107は、操作表示部108がデータの表示や情報処理装置101の状態の通知を行うための制御を行うインタフェースである。 The output interface 107 is an interface that performs control for the operation display unit 108 to display data and notify the state of the information processing apparatus 101.

操作表示部108は、LED(発光ダイオード)やLCD(液晶ディスプレイ)などから構成され、データの表示や情報処理装置101の状態の通知を行う。なお、操作表示部108上に、数値入力キー、モード設定キー、決定キー、取り消しキー、電源キー等のキーを備えるソフトキーボードを設置することで、操作表示部108を介してユーザーからの入力を受け付けても良い。すなわち、操作表示部108からユーザー操作を受け付ける。 The operation display unit 108 includes an LED (light emitting diode), an LCD (liquid crystal display), and the like, and displays data and notifies the state of the information processing apparatus 101. In addition, by installing a soft keyboard having keys such as a numeric input key, a mode setting key, an enter key, a cancel key, and a power key on the operation display unit 108, input from the user via the operation display unit 108 is possible. It may be accepted. That is, a user operation is accepted from the operation display unit 108.

通信部109は、通信装置151等の装置と接続して、データ通信を実行するための構成である。なお本例の通信装置151はプリントエンジンを備えたプリンタである。例えば、通信部109は、通信装置151内のアクセスポイント(不図示)に接続可能である。通信部109と通信装置151内のアクセスポイントが接続することで、情報処理装置101と通信装置151は相互に通信可能となる。なお、通信部109は無線通信で通信装置151とダイレクトに通信しても良いし、情報処理装置101や通信装置151の外部に存在する外部アクセスポイント(アクセスポイント131)を介して通信しても良い。無線通信方式としては、例えば、IEEE 802.11シリーズ(IEEE 802.11aやIEEE 802.11b、IEEE 802.11g等)に準拠したWi−Fi(WirelessFidelity)(商標登録)やBluetooth(商標登録)等が挙げられる。また、アクセスポイント131としては、例えば、無線LANルーター等の機器などが挙げられる。なお、本実施形態において、情報処理装置101と通信装置151とが外部アクセスポイントを介さずにダイレクトに接続する方式をダイレクト接続方式という。また、情報処理装置101と通信装置151とが外部アクセスポイントを介して接続する方式をインフラストラクチャー接続方式という。 The communication unit 109 is configured to connect to a device such as the communication device 151 and execute data communication. The communication device 151 of this example is a printer provided with a print engine. For example, the communication unit 109 can be connected to an access point (not shown) in the communication device 151. When the communication unit 109 and the access point in the communication device 151 are connected, the information processing device 101 and the communication device 151 can communicate with each other. The communication unit 109 may communicate directly with the communication device 151 by wireless communication, or may communicate with the information processing device 101 or an external access point (access point 131) existing outside the communication device 151. good. As a wireless communication system, for example, Wi-Fi (Wireless Fidelity) (trademark registration), Bluetooth (trademark registration), etc. conforming to the IEEE 802.11 series (IEEE 802.11a, IEEE 802.11b, IEEE 802.11g, etc.), etc. Is mentioned. Examples of the access point 131 include devices such as a wireless LAN router. In the present embodiment, a method in which the information processing apparatus 101 and the communication apparatus 151 are directly connected without using an external access point is referred to as a direct connection method. A method in which the information processing apparatus 101 and the communication apparatus 151 are connected via an external access point is referred to as an infrastructure connection method.

近距離無線通信部110は、通信装置151等の、近距離無線通信部を備えた装置と近距離で無線接続して、データ通信を実行するためのデバイスであり、通信部109とは異なる通信方式によって通信を行う。近距離無線通信部110は、通信装置151内の近距離無線通信部157と接続可能である。近距離無線通信とは、所定の距離よりも近い距離で無線通信を行う通信方式であり、本実施形態では、近距離無線通信部110の通信方式として、Bluetooth(登録商標) Low Energy(ブルートゥース(登録商標)ロウエナジー、BLE)が用いられる。 The short-range wireless communication unit 110 is a device for performing data communication by wirelessly connecting to a device including the short-range wireless communication unit such as the communication device 151, and communication different from that of the communication unit 109. Communication is performed according to the method. The short-range wireless communication unit 110 can be connected to the short-range wireless communication unit 157 in the communication device 151. Short-range wireless communication is a communication method that performs wireless communication at a distance closer than a predetermined distance. In this embodiment, Bluetooth (registered trademark) Low Energy (Bluetooth (Bluetooth)) is used as the communication method of the short-range wireless communication unit 110. (Registered trademark) Lowenergy, BLE).

撮影装置111は撮影素子で撮影した画像をデジタルデータに変換する装置である。デジタルデータは一度RAM105に格納する。その後、CPU104が実行するプログラムで所定の画像フォーマットに変換し、画像データとして外部記憶装置106に保存する。 The photographing device 111 is a device that converts an image photographed by the photographing element into digital data. The digital data is once stored in the RAM 105. Thereafter, the image is converted into a predetermined image format by a program executed by the CPU 104 and stored in the external storage device 106 as image data.

一方、通信装置151は、本実施形態の通信装置である。通信装置151は、ROM152、RAM153、CPU154、プリントエンジン155、通信部156、近距離無線通信部157、入力インタフェース158、出力インタフェース159、操作表示部160、等を有する。通信装置151は、MFPのようなデバイスを想定しているが、MFPに限定するものではない。たとえば単機能プリンタやスキャナ等の入出力デバイスのほか、ストレージ装置や、特定の機能を有する専用デバイスなどであってもよい。 On the other hand, the communication device 151 is a communication device of the present embodiment. The communication device 151 includes a ROM 152, a RAM 153, a CPU 154, a print engine 155, a communication unit 156, a short-range wireless communication unit 157, an input interface 158, an output interface 159, an operation display unit 160, and the like. The communication apparatus 151 is assumed to be a device such as an MFP, but is not limited to the MFP. For example, in addition to an input / output device such as a single function printer or scanner, a storage device or a dedicated device having a specific function may be used.

通信部156は、通信装置151内部のアクセスポイントとして、情報処理装置101等の装置と接続するためのアクセスポイントを有している(不図示)。なお、該アクセスポイントは、情報処理装置101の通信部109に接続可能である。なお、通信部156は無線通信で情報処理装置101とダイレクトに通信しても良いし、内蔵のアクセスポイントではなく外部のアクセスポイント131を介して通信しても良い。通信方式としては、例えば、IEEE 802.11シリーズ(IEEE 802.11aやIEEE 802.11b、IEEE 802.11g等)に準拠したWi−Fi(商標登録)やBluetooth(登録商標)等が挙げられる。また、通信部156は、アクセスポイントとして機能するハードウェアを備えていてもよいし、アクセスポイントとして機能させるためのソフトウエアにより、アクセスポイントとして動作してもよい。 The communication unit 156 has an access point for connecting to a device such as the information processing device 101 as an access point inside the communication device 151 (not shown). Note that the access point can be connected to the communication unit 109 of the information processing apparatus 101. Note that the communication unit 156 may communicate directly with the information processing apparatus 101 by wireless communication, or may communicate via the external access point 131 instead of the built-in access point. Examples of the communication method include Wi-Fi (registered trademark), Bluetooth (registered trademark), and the like conforming to the IEEE 802.11 series (IEEE 802.11a, IEEE 802.11b, IEEE 802.11g, etc.). Further, the communication unit 156 may include hardware that functions as an access point, or may operate as an access point by software for causing it to function as an access point.

RAM153は、バックアップ電源を必要とするDRAM等で構成される。なお、RAM153は、図示しないデータバックアップ用の電源が供給されることによってデータが保持されているため、プログラム制御変数等の重要なデータを揮発させずに格納することができる。また、RAM153は、CPU154の主メモリとワークメモリとしても用いられ、情報処理装置101等から受信した印刷情報を一旦保存するための受信バッファや各種の情報を保存する。 The RAM 153 is configured by a DRAM or the like that requires a backup power source. Note that the RAM 153 stores data by supplying power for data backup (not shown), and thus can store important data such as program control variables without volatilization. The RAM 153 is also used as a main memory and work memory of the CPU 154, and stores a reception buffer for temporarily storing print information received from the information processing apparatus 101 and various information.

ROM152は、CPU154が実行する制御プログラムやデータテーブル、OSプログラム等の固定データを格納する。本実施形態では、ROM152に格納されている各制御プログラムは、ROM152に格納されている組み込みOSの管理下で、スケジューリングやタスクスイッチ、割り込み処理等のソフトウエア実行制御を行う。この制御プログラムには、たとえば図6や図8に示した手続を実行するためのプログラムも含まれる。また、通信装置151の設定情報や通信装置151の管理データ等の電源供給がされていない場合も保持する必要があるデータを格納するメモリエリアもROM152に設けられている。CPU154は、システム制御部であり、通信装置151の全体を制御する。 The ROM 152 stores fixed data such as a control program executed by the CPU 154, a data table, and an OS program. In this embodiment, each control program stored in the ROM 152 performs software execution control such as scheduling, task switching, and interrupt processing under the management of the embedded OS stored in the ROM 152. This control program includes a program for executing the procedure shown in FIGS. 6 and 8, for example. The ROM 152 is also provided with a memory area for storing data that needs to be retained even when the setting information of the communication device 151 and the management data of the communication device 151 are not supplied. The CPU 154 is a system control unit and controls the entire communication device 151.

プリントエンジン155は、RAM153に保存された情報や情報処理装置101等から受信した印刷ジョブに基づき、インク等の記録剤を用いて紙等の記録媒体上に画像形成し、印刷結果を出力する。このとき、情報処理装置101等から送信される印刷ジョブは、送信データ量が大きく、高速な通信が求められるため、近距離無線通信部157よりも高速に通信可能な通信部156を介して受信する。近距離無線通信部157の詳細については、図3を用いて後述する。 The print engine 155 forms an image on a recording medium such as paper using a recording agent such as ink based on information stored in the RAM 153 and a print job received from the information processing apparatus 101 and outputs a printing result. At this time, the print job transmitted from the information processing apparatus 101 or the like has a large transmission data amount and requires high-speed communication. To do. Details of the short-range wireless communication unit 157 will be described later with reference to FIG.

入力インタフェース158は、ユーザーからのデータ入力や動作指示を受け付けるためのインタフェースであり、電源キー等の物理キー、物理キーボード、ボタン、タッチパネル等で構成される。なお、後述の出力インタフェース159と入力インタフェース158とを同一の構成とし、画面の出力とユーザーからの操作の受け付けを同一の構成で行うような形態としても良い。出力インタフェース159は、操作表示部160がデータの表示や通信装置151の状態の通知を行うための制御を行うインタフェースである。 The input interface 158 is an interface for accepting data input and operation instructions from a user, and includes a physical key such as a power key, a physical keyboard, a button, and a touch panel. Note that an output interface 159 and an input interface 158, which will be described later, may have the same configuration, and screen output and operation reception from the user may be performed with the same configuration. The output interface 159 is an interface that performs control for the operation display unit 160 to display data and notify the state of the communication device 151.

操作表示部160は、LED(発光ダイオード)やLCD(液晶ディスプレイ)などから構成され、データの表示や通信装置151の状態の通知を行う。なお、操作表示部160上に、数値入力キー、モード設定キー、決定キー、取り消しキー、電源キー等のキーを備えるソフトキーボードを設置することで、操作表示部160を介してユーザーからの入力を受け付けても良い。 The operation display unit 160 includes an LED (light emitting diode), an LCD (liquid crystal display), and the like, and displays data and notifies the state of the communication device 151. In addition, by installing a soft keyboard having keys such as a numeric input key, a mode setting key, an enter key, a cancel key, and a power key on the operation display unit 160, input from the user via the operation display unit 160 is possible. It may be accepted.

●ユーザインタフェース画面例
図2は、通信装置151の操作表示部160の画面表示の一例を模式的に示した図である。図2(a)は、通信装置151が電源ONし印刷やスキャン等の動作をしていない状態(アイドル状態)を示すホーム画面である。キー操作やタッチパネル操作によりコピーやスキャン、インターネット通信を利用したクラウド機能のメニュー表示や各種設定、機能実行が可能である。図2(a)のホーム画面からキー操作やタッチパネルの操作によってシームレスに図2(a)とは異なる機能を表示することができる。図2(b)は、その一例であり、プリントやLAN設定の実行や電源設定の変更が実行可能な画面である。図2(c)は、図2(b)の画面において、電源設定を選択した際に表示される画面である。この画面から自動電源ON機能や自動電源OFF機能設定の変更が実行可能な画面である。図2(c)では、電源設定として、240分後の自動電源オフが選択されており、また、自動電源オンが選択されている。つまり、図2(c)の場合、自動電源OFF機能及び自動電源ON機能のどちらも「有効」に設定されている。なお、図2のユーザインタフェースを介した設定は例えばRAM153やROM152に保存される。
User Interface Screen Example FIG. 2 is a diagram schematically showing an example of a screen display of the operation display unit 160 of the communication device 151. FIG. 2A is a home screen showing a state (idle state) in which the communication device 151 is turned on and does not perform operations such as printing and scanning. Menu display, various settings, and function execution of the cloud function using copy and scan and Internet communication can be performed by key operation and touch panel operation. Functions different from those in FIG. 2A can be displayed seamlessly by key operations and touch panel operations from the home screen in FIG. FIG. 2B is an example thereof, and is a screen on which execution of printing, LAN setting, and change of power setting can be executed. FIG. 2C is a screen displayed when power setting is selected on the screen of FIG. From this screen, the automatic power ON function and automatic power OFF function setting can be changed. In FIG. 2C, automatic power off after 240 minutes is selected as the power setting, and automatic power on is selected. That is, in the case of FIG. 2C, both the automatic power OFF function and the automatic power ON function are set to “valid”. 2 is stored in, for example, the RAM 153 or the ROM 152.

「自動電源OFF機能が有効」設定とは、自動的に通信装置151が電源オフ状態になる設定を示す。具体的には、所定の時間外部からの動作要求がなく印刷機能や読み取り機能等の各機能が使用されていない場合など、所定の条件が満たされたときに、電源キーが押下されなくても、自動的に電源がオフ状態になる設定を示す。 The “automatic power OFF function is enabled” setting indicates a setting in which the communication device 151 is automatically turned off. Specifically, the power key may not be pressed when a predetermined condition is satisfied, such as when there is no operation request from the outside for a predetermined time and each function such as a printing function and a reading function is not used. , The setting that automatically turns off the power.

「自動電源ON機能が有効」設定とは、通信装置151がデータを受信した場合など所定の条件が満たされたときに、電源キーが押下されなくても、自動的に通信装置151が電源オン状態になる設定を示す。所定の条件とは、例えば、通信装置151が、印刷ジョブや印刷のための指示を受信した場合や、通信装置151の起動指示や起動のための情報を受信した場合を示す。また、電源オン状態とは、通常電力状態(通常電力モード)を示し、通信装置151の各構成に電力が供給されている状態である。この電源オン状態では、印刷機能等のすべての通信装置151の機能が実行可能な状態である。 The “automatic power ON function is enabled” setting means that the communication device 151 is automatically turned on even if the power key is not pressed when a predetermined condition is satisfied such as when the communication device 151 receives data. Indicates the setting that goes into the state. The predetermined condition indicates, for example, the case where the communication device 151 receives a print job or an instruction for printing, or the case where the communication device 151 receives an activation instruction or information for activation. The power-on state indicates a normal power state (normal power mode) and is a state in which power is supplied to each component of the communication device 151. In the power-on state, all the functions of the communication device 151 such as the printing function can be executed.

また、通信装置151の電源オフ状態とは、厳密な意味で、全ての要素(手段)に電力が全く供給されない状態ではない。つまり、プリントエンジン等には電力が供給されないが、少なくとも通信装置151のメインCPU(CPU154)には電力が供給され、電源キーの押下を検出可能(あるいは検知可能)な状態となっている。また、自動電源OFF機能による電源オフ状態と、ユーザーの電源キー押下による電源オフ状態とは、基本的に同じである。ただし、自動電源ON機能が有効になっているかどうかで、電源オフ状態における電力供給状態が異なる。自動電源ON機能が有効な場合の電源オフ状態では、CPU154だけでなく、外部との通信を行うデバイスにも電力が供給される(つまり通信を行うデバイスが起動している)。これを第2の電源オフ状態ということもある。一方、自動電源ON機能が無効に設定されている場合の電源オフ状態では、外部との通信を行うデバイスには電力が供給されない。これを第1の電源オフ状態ということもある。通信装置151は、自動電源ON機能が有効な設定で電源オフ状態となった場合、CPU154はACコンセントが差し込まれている状態で、電源キーの押下や、外部からの通信や操作要求を待つ。よって、この場合の電源オフ状態は、「省電力状態(通常電力状態よりも消費電力の小さい)」ともいえる。 Further, the power-off state of the communication device 151 is not a state in which no power is supplied to all elements (means) in a strict sense. That is, power is not supplied to the print engine or the like, but power is supplied to at least the main CPU (CPU 154) of the communication device 151 so that pressing of the power key can be detected (or detected). The power-off state by the automatic power-off function and the power-off state by the user pressing the power key are basically the same. However, the power supply state in the power-off state differs depending on whether the automatic power-on function is enabled. In the power-off state when the automatic power-on function is valid, power is supplied not only to the CPU 154 but also to a device that communicates with the outside (that is, the device that performs communication is activated). This is sometimes referred to as a second power-off state. On the other hand, in the power-off state when the automatic power-on function is disabled, power is not supplied to devices that communicate with the outside. This is sometimes referred to as a first power-off state. When the communication apparatus 151 is in a power-off state with the automatic power-on function enabled, the CPU 154 waits for a press of a power key, communication from the outside, or an operation request with an AC outlet plugged in. Therefore, it can be said that the power-off state in this case is “a power saving state (power consumption is smaller than that in the normal power state)”.

具体的には、自動電源ON機能が有効な場合の電源オフ状態では、BLE通信を行う近距離無線通信部157にも電力が供給される。また、無線LAN通信を行う通信部156についても、無線LAN機能がONになっている場合は、自動電源ON機能が有効な場合の電源オフ状態において電力供給される。ただし、無線LAN機能がOFFになっている場合は、通信部156には電力供給されない。なお、近距離無線通信部157についても通信部156同様に、BLE通信機能がオフ設定になっている場合は電力が供給されない構成にしてもよい。 Specifically, in the power-off state when the automatic power-on function is valid, power is also supplied to the short-range wireless communication unit 157 that performs BLE communication. Also, the communication unit 156 that performs wireless LAN communication is supplied with power in the power-off state when the automatic power-on function is valid when the wireless LAN function is ON. However, when the wireless LAN function is OFF, power is not supplied to the communication unit 156. Note that the short-range wireless communication unit 157 may be configured such that power is not supplied when the BLE communication function is set to OFF, as with the communication unit 156.

●近距離無線通信部の概要
近距離無線通信部157の詳細を図3に示す。近距離無線通信部157は、情報処理装置101等の装置と近距離で無線接続するための通信デバイスである。近距離無線通信の制御を行うことから、通信制御部ということもできる。本実施形態では、近距離無線通信部157の通信方式として、Bluetooth Low Energy(BLE)が用いられる。近距離無線通信部157とCPU154は、I2C等のバスインタフェースを介して通信を行う。また、近距離無線通信部157内には、CPU201と記憶領域202とROM203とRAM204とを備えている。記憶領域202は、CPU154からアクセス可能な例えばRAMなどに設けた領域である。また、記憶領域202には近距離無線通信部110を介して情報処理装置101からもアクセス可能である。RAM204は、バックアップを必要とするDRAM等で構成される。なお、RAM204は、図示しないデータバックアップ用の電源が供給されることによってデータが保持されているため、プログラム制御変数等の重要なデータを揮発させずに格納することができる。また、RAM204は、CPU201の主メモリとワークメモリとしても用いられる。ROM203は、CPU201が実行する制御プログラムやデータテーブル、OSプログラム等の固定データを格納する。
● Outline of near field communication unit The details of the near field communication unit 157 are shown in FIG. The short-range wireless communication unit 157 is a communication device for wirelessly connecting to a device such as the information processing apparatus 101 at a short distance. Since near field communication is controlled, it can also be called a communication control unit. In the present embodiment, Bluetooth Low Energy (BLE) is used as the communication method of the short-range wireless communication unit 157. The short-range wireless communication unit 157 and the CPU 154 communicate via a bus interface such as I2C. The short-range wireless communication unit 157 includes a CPU 201, a storage area 202, a ROM 203, and a RAM 204. The storage area 202 is an area provided in, for example, a RAM accessible from the CPU 154. The storage area 202 can also be accessed from the information processing apparatus 101 via the short-range wireless communication unit 110. The RAM 204 is configured by a DRAM or the like that requires backup. Since the RAM 204 holds data by supplying power for data backup (not shown), important data such as program control variables can be stored without being volatilized. The RAM 204 is also used as a main memory and work memory for the CPU 201. The ROM 203 stores fixed data such as a control program executed by the CPU 201, a data table, and an OS program.

なお、通信装置151には、外付けHDDやSDカード等のメモリがオプション機器として装着されてもよく、通信装置151に保存される情報は、当該メモリに保存されても良い。 Note that a memory such as an external HDD or an SD card may be attached as an optional device to the communication device 151, and information stored in the communication device 151 may be stored in the memory.

ここでは、例として情報処理装置101と通信装置151との処理分担を上記のように示したが、特にこの分担形態に限らず他の形態であってもよい。 Here, as an example, the processing sharing between the information processing apparatus 101 and the communication apparatus 151 is shown as described above. However, the present invention is not limited to this sharing form, and other forms may be used.

●Advertisingパケット(アドバタイズ情報)の概要
ここで、BLE規格におけるAdvertisingパケットの概要について説明する。BLEの通信の初めに、サービスを提供するペリフェラル装置(Peripheral装置、本例では通信装置151)はAdvertising(アドバタイジング)パケットを周期的に送信する。Advertisingパケットを検知しているセントラル装置(Central装置、本例では情報処理装置101)がAdvertisingパケットの内容を確認し、接続する場合にConnect Request(接続要求)パケットを送出して接続状態になる。
Outline of Advertising Packet (Advertising Information) Here, an outline of the Advertising packet in the BLE standard will be described. At the beginning of BLE communication, a peripheral device (Peripheral device, in this example, a communication device 151) that provides a service periodically transmits an Advertising packet. The central device (Central device, in this example, the information processing device 101) that detects the Advertising packet confirms the contents of the Advertising packet, and when connected, sends out a Connect Request (connection request) packet to enter a connected state.

図9は、Peripheral装置の近距離無線通信部157が、通信装置151の周辺にブロードキャストするAdvertisingパケット(アドバタイズ情報)の構造の一例である。 FIG. 9 is an example of the structure of advertising packet (advertisement information) that the short-range wireless communication unit 157 of the peripheral device broadcasts to the periphery of the communication device 151.

Peripheral装置は、アドバタイジング状態となると、アドバタイズ間隔に基づいて定期的にAdvertisingパケットを周辺にブロードキャストする。Advertisingパケットは、ヘッダ901とペイロード902から構成される。Central装置は、このAdvertisingパケットを受信することで、Peripheral装置の存在を認識することができる。AdvertisingパケットのPDUHeader(PDUヘッダ901)にはアドバタイジングパケットのタイプを指定するAdv PDU情報や、ペイロード902の大きさの情報などが含まれている。AdvPDU情報では、ADV_IND、ADV_DIRECT_IND、ADV_NONCONN_IND、ADV_SCAN_INDの4種類のタイプのいずれかが指定される。 When the peripheral device enters the advertising state, it periodically broadcasts an advertising packet to the surroundings based on the advertising interval. The Advertising packet is composed of a header 901 and a payload 902. The Central device can recognize the presence of the Peripheral device by receiving this Advertising packet. The PDU Header (PDU header 901) of the Advertising packet includes Adv PDU information that specifies the type of the advertising packet, information on the size of the payload 902, and the like. In the AdvPDU information, one of four types of ADV_IND, ADV_DIRECT_IND, ADV_NONCONN_IND, and ADV_SCAN_IND is designated.

ADV_IND、又はADV_SCAN_INDのPDU情報が指定されたAdvertisingパケットを送信した場合、Peripheral装置はCentral装置からのConnect Request(接続要求)やScan Request(スキャン要求)を受信するために一定時間待ち状態になる。Central装置は、この待ち状態のときに、Scan Requestを受けると、スキャンレスポンス情報を送信する。そして、Peripheral装置は、このスキャンレスポンス情報を受けたCentral装置からのConnect Request情報に応答することで、Central装置と接続状態となる。スキャンレスポンス情報は、基本的にアドバタイズ情報と同様の構造を備え、スキャンレスポンス情報のヘッダ901に含まれるPDUタイプはSCAN_RSPである。
ADV_NONCONN_INDが指定されたAdvertisingパケットを送信した場合、Peripheral装置はCentral装置からのConnect RequestやScan Request情報の受信するための待ち状態にならない。そのため、Central装置からConnection Requestが要求されたとしても応答しないため、Central装置と接続状態にはならない。他のタイプであるADV_DIRECT_INDについては本実施例と関連しないため、ここでは説明を省略する。
When an Advertising packet in which PDU information of ADV_IND or ADV_SCAN_IND is specified is transmitted, the Peripheral device waits for a certain period of time to receive a Connect Request (connection request) or a Scan Request (scan request) from the Central device. When the Central device receives a Scan Request in this waiting state, it transmits scan response information. The peripheral device is connected to the central device by responding to the connect request information from the central device that has received the scan response information. The scan response information basically has the same structure as the advertisement information, and the PDU type included in the header 901 of the scan response information is SCAN_RSP.
When an advertising packet in which ADV_NONCONN_IND is specified is transmitted, the peripheral device does not enter a waiting state for receiving a connect request or scan request information from the central device. For this reason, even if a connection request is requested from the central device, no response is made, and the central device is not connected. Other types of ADV_DIRECT_IND are not related to the present embodiment, and thus description thereof is omitted here.

ペイロード902は、識別情報としてのデバイス名903や搭載プロファイル情報、通信装置151とBLE接続するための接続情報904、アドバタイズ情報の送信電力(Tx Power)905等の情報を格納する。なお、通信装置の識別情報906をアドバタイズ情報に含めても良い。通信装置の識別情報906としては、通信装置のMACアドレスや、通信装置のサービス情報、通信装置が備える操作パネル(操作画面)の有無、通信装置内のアクセスポイントのSSID、パスワード等が該当する。なお、スキャンレスポンス情報のペイロード902に格納する情報は必要に応じてアドバタイズ情報と異なる情報を格納してもよい。 The payload 902 stores information such as device name 903 and mounting profile information as identification information, connection information 904 for BLE connection with the communication apparatus 151, and transmission power (Tx Power) 905 of advertisement information. Note that the communication device identification information 906 may be included in the advertisement information. The communication device identification information 906 corresponds to a MAC address of the communication device, service information of the communication device, presence / absence of an operation panel (operation screen) provided in the communication device, an SSID of an access point in the communication device, a password, and the like. The information stored in the payload 902 of the scan response information may store information different from the advertisement information as necessary.

なお、上記では、アドバタイズ情報(Advertisingパケット)とスキャンレスポンス情報(SCAN_RSP)とを分けて記載したが、スキャンレスポンス情報は、基本的にアドバタイズ情報と同様の構造を備える。よって、第1アドバタイズ情報(第1アドバタイズ情報)に対するレスポンスとして送信されるスキャンリクエスト情報を第2アドバタイズ情報と呼ぶこともある。例えば、第1アドバタイズ情報は、通信装置151のIPアドレス、印刷に使用されるポート、特定の印刷サービスを示す情報、アドバタイズ情報の送信電力に関する情報や近距離無線通信部157の識別情報等を含むものとする。そして、第2アドバタイズ情報は、通信装置151の識別情報(UUID)や、通信装置151が備えている機能やハードウェアに関する情報(例えば、上述した操作パネルを備えるか否かを示す操作パネル情報)等を含むものとする。このような形態の場合、例えば印刷アプリケーションは、第2アドバタイズ情報をハンドリングするものとして設計される。そのため、以下の説明において印刷アプリケーションがハンドリングするアドバタイズ情報は、第2アドバタイズ情報であるものとする。 In the above description, the advertisement information (Advertising packet) and the scan response information (SCAN_RSP) are described separately, but the scan response information basically has the same structure as the advertisement information. Therefore, the scan request information transmitted as a response to the first advertisement information (first advertisement information) may be referred to as second advertisement information. For example, the first advertisement information includes the IP address of the communication device 151, the port used for printing, information indicating a specific print service, information on the transmission power of the advertisement information, identification information of the short-range wireless communication unit 157, and the like. Shall be. The second advertisement information includes identification information (UUID) of the communication device 151 and information on functions and hardware provided in the communication device 151 (for example, operation panel information indicating whether or not the above-described operation panel is provided). Etc. In the case of such a form, for example, the print application is designed to handle the second advertisement information. Therefore, in the following description, it is assumed that the advertisement information handled by the print application is the second advertisement information.

●GATT通信の概要
次に、BLE規格におけるGATT(Generic Attribute Profile)による通信の概要について説明する。本実施形態において、BLE規格における「接続」とは、GATT通信による接続を意味する。
Outline of GATT Communication Next, an outline of communication by GATT (Generic Attribute Profile) in the BLE standard will be described. In the present embodiment, “connection” in the BLE standard means connection by GATT communication.

GATTは、データの転送元と転送先に基づいて以下の2つのロールを定義している。(1)クライアント
クライアントはサーバーにリクエストを送信し、サーバーからの応答を受信する。本実施例では、情報処理装置101がGATTクライアントとなる。
(2)サーバー
クライアントからの要求を受信すると、応答を返す。本実施例では、通信装置151がGATTサーバーとなる。
GATT defines the following two roles based on the data transfer source and transfer destination. (1) The client client sends a request to the server and receives a response from the server. In this embodiment, the information processing apparatus 101 is a GATT client.
(2) When a request from the server client is received, a response is returned. In this embodiment, the communication device 151 is a GATT server.

GATTサーバーは、データまたは状態情報を格納するデバイスである。GATTクライアントは、GATTサーバーに対して、データのリード・ライトを実行することが出来る。 A GATT server is a device that stores data or status information. The GATT client can read / write data from / to the GATT server.

次に、GATTのデータ形式について説明する。GATTのデータは、サービス、キャラクタリスティック、ディスクリプタと呼ばれる3つの要素から構成される。これら3つの要素の関係を図7に示す。ただし、ディスクリプタは存在していなくてもかまわない。 Next, the GATT data format will be described. GATT data is composed of three elements called service, characteristic, and descriptor. The relationship between these three elements is shown in FIG. However, the descriptor does not have to exist.

サービス、キャラクタリスティック、ディスクリプタは32桁のUUID(Universally Unique Identifier)で識別することができる。ただし、Bluetooth SIGの標準で定義されているものについては4桁で表現される。ここで言うUUIDとは、ソフトウエア上でオブジェクトを一意に識別するための識別子として使用されるものである。UUIDは128ビットの数値だが、通常は16進数で550e8400−e29b−41d4−a716−446655440000のように表現する。 The service, characteristic, and descriptor can be identified by a 32-digit UUID (Universally Unique Identifier). However, what is defined in the Bluetooth SIG standard is expressed in four digits. The UUID mentioned here is used as an identifier for uniquely identifying an object on software. Although UUID is a numerical value of 128 bits, it is normally expressed as a hexadecimal number such as 550e8400-e29b-41d4-a716-4466545440000.

キャラクタリスティックは、キャラクタリスティック毎に単一の値を持つ。ディスクリプタは、キャラクタリスティックに付加情報が必要な際に用いられる属性値を持つ。サービス、キャラクタリスティック、ディスクリプタは、それぞれ、GATTクライアントに対する、リード・ライトの属性やセキュリティーの属性を設定することが出来る。 A characteristic has a single value for each characteristic. The descriptor has an attribute value used when additional information is required for the characteristic. Each of the service, characteristic, and descriptor can set read / write attributes and security attributes for the GATT client.

GATTクライアントは、サービス、キャラクタリスティックそれぞれのUUIDを指定することで、キャラクタリスティック毎に持っている値に対して、リード・ライトを実行することが出来る。ただし、リード・ライトが実行できるかは、各サービス、キャラクタリスティックに設定されている、リード・ライト属性に従う。 The GATT client can read / write the value possessed by each characteristic by designating the UUID of each service and characteristic. However, whether or not read / write can be executed depends on the read / write attribute set in each service and characteristic.

次に、BLEにおけるペアリングの概要について説明する。キャラクタリスティックに設定されているセキュリティー属性に応じて、該当するキャラクタリスティックがペアリング必須であるか否かが決定される。キャラクタリスティックに設定されているセキュリティー属性がペアリング必須である場合、該当するキャラクタリスティックがリード可能であったとしても、ペアリング未実施ではリードすることが出来ない。このようなセキュリティー属性に応じたBLE通信を成立させるため、BLEの親機と子機は相互に登録して鍵を交換・保存する必要があり、この手順を「ペアリング」と呼ぶ。 Next, an outline of pairing in BLE will be described. Whether or not the corresponding characteristic is required to be paired is determined according to the security attribute set in the characteristic. When the security attribute set in the characteristic is mandatory for pairing, even if the corresponding characteristic can be read, it cannot be read if the pairing is not performed. In order to establish BLE communication according to such security attributes, it is necessary for the parent device and the child device of BLE to register each other and exchange / save the key. This procedure is called “pairing”.

●処理シーケンスの概要
図4、図5を用いて通信装置151、近距離無線通信部157、情報処理装置101におけるAdvertisingパケット送信や接続、切断処理のシーケンスを説明する。図4、図5において、通信装置151は前述のPeripheral、情報処理装置101は前述のCentralの役割にあたる。なお、近距離無線通信部157は通信装置151の内部に含まれるが、ここでは説明を明確にするため、近距離無線通信部157を、通信装置151と別個に示している。具体的には、図4、5における通信装置151は、通信装置151内のCPU154を示すものとする。よって、図4、5は、通信装置151のCPU154と、通信装置151の近距離無線通信部157と、情報処理装置101と、の間の処理シーケンスを示すものと言える。
Overview of Processing Sequence A sequence of advertising packet transmission, connection, and disconnection processing in the communication device 151, the short-range wireless communication unit 157, and the information processing device 101 will be described with reference to FIGS. 4 and 5, the communication device 151 serves as the above-described peripheral, and the information processing device 101 serves as the above-described central. Although the short-range wireless communication unit 157 is included in the communication device 151, the short-range wireless communication unit 157 is shown separately from the communication device 151 for the sake of clarity. Specifically, the communication device 151 in FIGS. 4 and 5 indicates the CPU 154 in the communication device 151. 4 and 5 can be said to show processing sequences among the CPU 154 of the communication apparatus 151, the short-range wireless communication unit 157 of the communication apparatus 151, and the information processing apparatus 101.

図4は通信装置151と情報処理装置101のBLEの接続処理シーケンスである。本処理は、例えば、通信装置151内のCPU154と、通信装置151の近距離無線通信部157内のCPU201と、情報処理装置101内のCPU103のそれぞれが、ROM、RAM等の記憶領域に格納された各種プログラムを読み出して実行することにより実現される。最初、通信装置151と情報処理装置101は未接続状態である。 FIG. 4 is a BLE connection processing sequence between the communication apparatus 151 and the information processing apparatus 101. In this processing, for example, the CPU 154 in the communication device 151, the CPU 201 in the short-range wireless communication unit 157 of the communication device 151, and the CPU 103 in the information processing device 101 are stored in storage areas such as ROM and RAM, respectively. This is realized by reading and executing various programs. Initially, the communication device 151 and the information processing device 101 are not connected.

S401で通信装置151が近距離無線通信部157に対してADV_INDタイプのAdvertisingパケットの送信を要求する。送信要求を受けた近距離無線通信部157は、S402でADV_INDタイプのAdvertisingパケットの送信を開始(ブロードキャスト)し、パケット送信後は所定時間の接続待ち状態になる。近距離無線通信部157はS402の一連の処理を周期的に実施する。 In step S401, the communication device 151 requests the short-range wireless communication unit 157 to transmit an ADV_IND type advertising packet. Upon receiving the transmission request, the short-range wireless communication unit 157 starts (broadcasts) transmission of an ADV_IND type advertising packet in S402, and enters a connection waiting state for a predetermined time after packet transmission. The short-range wireless communication unit 157 periodically performs a series of processes in S402.

S403では、近距離無線通信部157は、S402と同様にAdvertisingパケットを送信し、所定時間接続待ち状態になる。このとき情報通信装置101がAdvertisingパケットを検知し、Advertisingパケットを送信したデバイス(通信装置)が、接続対象のデバイスであると判断した場合は、S404で近距離無線通信部157に対してConnect Request情報を送信する。なお、情報処理装置101は、接続対象のデバイスであるかの判定として、受信したAdvertisingパケット内に、所定の通信装置151であることを示す識別情報が含まれる場合に、接続対象のデバイスであると判定するとよい。 In S403, the short-range wireless communication unit 157 transmits an Advertising packet as in S402, and enters a connection waiting state for a predetermined time. At this time, when the information communication apparatus 101 detects the advertising packet and determines that the device (communication apparatus) that transmitted the advertising packet is a connection target device, in S404, the short distance wireless communication unit 157 is connected to the connect request. Send information. Note that the information processing apparatus 101 is a connection target device when the received advertising packet includes identification information indicating that the communication apparatus 151 is a predetermined communication apparatus as a determination as to whether the information processing apparatus 101 is a connection target device. It is good to judge.

近距離無線通信部157は、接続待ち区間にConnect Request情報を受信した場合、S405でAdvertisingパケットの送信を停止し、S406で情報処理装置101との接続処理を実施する。S406の接続処理が完了した場合(GATT通信による接続が確立した場合)、S407で近距離無線通信部157は通信装置151に対して接続通知を実施する。 When the short-range wireless communication unit 157 receives the Connect Request information in the connection waiting section, the short-range wireless communication unit 157 stops transmitting the Advertising packet in S405, and performs the connection process with the information processing apparatus 101 in S406. When the connection process of S406 is completed (when the connection by GATT communication is established), the short-range wireless communication unit 157 performs a connection notification to the communication device 151 in S407.

なお、この場合、同時に接続可能な通信は1つであるため、接続待ち状態にならないADV_NONCONN_INDタイプのAdvertisingパケットを近距離無線通信部157は送信する必要がある。そのため、S408で通信装置151は近距離無線通信部157に対してADV_NONCONN_INDタイプのAdvertisingパケットの送信要求を実施する。送信要求を受信した近距離無線通信部157はS409でADV_NONCONN_INDタイプのAdvertisingパケットの送信を開始する。パケット送信後、近距離無線通信部157は情報通信装置101からの接続待ち状態にはならない。近距離無線通信部157はS409の一連の処理を周期的に実施する。 In this case, since there is only one communication that can be connected at the same time, the short-range wireless communication unit 157 needs to transmit an ADV_NONCONN_IND type advertising packet that does not enter a connection waiting state. Therefore, in step S408, the communication apparatus 151 makes a transmission request for an ADV_NONCONN_IND type advertising packet to the short-range wireless communication unit 157. In step S409, the short-range wireless communication unit 157 that has received the transmission request starts transmission of an ADV_NONCONN_IND type advertising packet. After the packet transmission, the short-range wireless communication unit 157 does not enter a connection waiting state from the information communication apparatus 101. The short-range wireless communication unit 157 periodically performs a series of processes in S409.

図5は通信装置151と情報処理装置101のBLEの切断処理シーケンスである。なお、近距離無線通信部157は通信装置151の内部に含まれるが、ここでは説明を明確にするため、図4と同様に、近距離無線通信部157を、通信装置151と別個に示している。つまり、図5は、通信装置151のCPU154と、通信装置151の近距離無線通信部157と、情報処理装置101と、の間の処理シーケンスを示すものと言える。また、本処理は、例えば、通信装置151内のCPU154と、通信装置151の近距離無線通信部157内のCPU201と、情報処理装置101内のCPU103のそれぞれが、ROM、RAM等の記憶領域に格納された各種プログラムを読み出して実行することにより実現される。 FIG. 5 is a BLE disconnection processing sequence of the communication apparatus 151 and the information processing apparatus 101. Note that the short-range wireless communication unit 157 is included in the communication device 151, but for the sake of clarity, the short-range wireless communication unit 157 is illustrated separately from the communication device 151, as in FIG. Yes. That is, FIG. 5 can be said to indicate a processing sequence among the CPU 154 of the communication device 151, the short-range wireless communication unit 157 of the communication device 151, and the information processing device 101. In addition, for example, the CPU 154 in the communication device 151, the CPU 201 in the short-range wireless communication unit 157 of the communication device 151, and the CPU 103 in the information processing device 101 are each stored in a storage area such as a ROM or a RAM. This is realized by reading and executing various stored programs.

通信装置151と情報処理装置101は接続状態であるため、S501で通信装置151が近距離無線通信部157に対してADV_NONCONN_INDタイプのAdvertisingパケットの送信を要求する。送信要求を受けた近距離無線通信部157は、S502でADV_NONCONN_INDタイプのAdvertisingパケットの送信を開始する。パケット送信後、近距離無線通信部157は接続待ち状態にはならない。近距離無線通信部157はS502の一連の処理を周期的に実施する。S503ではS502と同様にAdvertisingパケットの送信処理を実施する。 Since the communication apparatus 151 and the information processing apparatus 101 are in a connected state, the communication apparatus 151 requests the short-range wireless communication unit 157 to transmit an ADV_NONCONN_IND type Advertising packet in S501. Upon receiving the transmission request, the short-range wireless communication unit 157 starts transmitting an ADV_NONCONN_IND type advertising packet in S502. After the packet transmission, the short-range wireless communication unit 157 does not enter a connection waiting state. The short-range wireless communication unit 157 periodically performs a series of processes in S502. In step S503, an advertising packet transmission process is performed in the same manner as in step S502.

このとき情報通信装置101がAdvertisingパケットを検知し、切断したいデバイスであると判断した場合は、S504で情報処理装置101は近距離無線通信部157に対してDisconnect Request(切断要求)情報を送信する。 At this time, if the information communication apparatus 101 detects the advertising packet and determines that the device is the device to be disconnected, the information processing apparatus 101 transmits disconnect request information to the short-range wireless communication unit 157 in step S504. .

近距離無線通信部157はDisconnect Request情報を受信した場合、S505でAdvertisingパケットの送信を停止し、S406で情報処理装置101との切断処理を実施する。 When the short-range wireless communication unit 157 receives the disconnect request information, the short-range wireless communication unit 157 stops transmitting the advertising packet in step S505, and performs a disconnection process with the information processing apparatus 101 in step S406.

S506の切断処理が完了した場合、S507で近距離無線通信部157は通信装置151に対して切断通知を実施する。切断後は再びBLEでの接続が可能になるため、接続待ち状態になるADV_INDタイプのAdvertisingパケットを送信する必要がある。そのため、S508で通信装置151は近距離無線通信部157に対してADV_INDタイプのAdvertisingパケットの送信要求を実施する。送信要求を受信した近距離無線通信部157はS509でADV_INDタイプのAdvertisingパケットの送信を開始する。パケット送信後、近距離無線通信部157は所定時間の接続待ち状態になる。近距離無線通信部157はS509の一連の処理を周期的に実施する。 When the disconnection process of S506 is completed, the short-range wireless communication unit 157 performs a disconnection notification to the communication device 151 in S507. Since connection with BLE becomes possible again after disconnection, it is necessary to transmit an ADV_IND type advertising packet that enters a connection waiting state. Therefore, in S508, the communication device 151 makes a transmission request for an ADV_IND type Advertising packet to the short-range wireless communication unit 157. Upon receiving the transmission request, the short-range wireless communication unit 157 starts transmitting an ADV_IND type advertising packet in step S509. After the packet transmission, the short-range wireless communication unit 157 enters a connection waiting state for a predetermined time. The short-range wireless communication unit 157 periodically performs a series of processes in S509.

ここでは、例として情報処理装置101、近距離無線通信部157、通信装置151とのAdvertisingパケット送信や接続、切断処理を上記のように示したが、特にこの分担形態に限らず他の形態であってもよい。 Here, as an example, the advertising packet transmission, connection, and disconnection processing with the information processing apparatus 101, the short-range wireless communication unit 157, and the communication apparatus 151 has been described as described above. There may be.

●電源オフ処理
図6を用いて、本実施形態に関する処理の説明を行う。図6は、通信装置151の電源OFF検知処理のシーケンスである。電源オフ時には、図6の手順を実行した後で通信装置151の電源がオフにされる。なお、本処理は、例えば、通信装置151内のCPU154と、通信装置151の近距離無線通信部157内のCPU201と、のそれぞれが、ROM、RAM等の記憶領域に格納された各種プログラムを読み出して実行することにより実現される。すなわち、これらのCPUが電源制御部として機能することになる。
Power-off processing Processing relating to the present embodiment will be described with reference to FIG. FIG. 6 is a sequence of power-off detection processing of the communication device 151. When the power is turned off, the communication apparatus 151 is turned off after the procedure of FIG. 6 is executed. In this process, for example, the CPU 154 in the communication device 151 and the CPU 201 in the short-range wireless communication unit 157 of the communication device 151 each read various programs stored in a storage area such as a ROM or a RAM. It is realized by executing. That is, these CPUs function as a power supply control unit.

S601で、通信装置151のCPU154は、電源OFFの要求を検知する。この検知は、ユーザーが通信装置151の電源ボタンを押下した場合や、所定の時間経過による自動電源OFF機能が実施された場合など、全ての電源OFF要求を検知する。なお図6の手順が、電源オフの要求の検知をきっかけに開始されてもよい。 In step S601, the CPU 154 of the communication device 151 detects a power-off request. This detection detects all power-off requests, such as when the user presses the power button of the communication device 151 or when an automatic power-off function is performed after a predetermined time has elapsed. Note that the procedure of FIG. 6 may be started in response to detection of a power-off request.

電源OFF要求の検知後、S602で、通信装置151のCPU154は、自動電源ON機能の有効・無効の設定値を判定する。自動電源ON機能が無効の場合は、図6の処理を終了し、通信装置151の電源をOFFする(メインCPUには電力供給は維持したまま)。つまり、S602で、自動電源ON機能が有効でない(自動電源ON機能は無効)と判定された場合、図6におけるS603〜S606の処理は実施せずに図6のシーケンスを終了する。そして、その後、通信装置151の通常の電源OFF処理(第1の電源OFF処理)を実施する。第1の電源OFF処理の場合、CPU154へは電力が供給されるが、近距離無線通信部157には電力が供給されない。よって、近距離無線通信部157によるBLE通信は停止され、アドバタイズ情報の送信もGATT通信も行われない。これに対して、自動電源ON機能が有効の場合、S603へ進む。 After detecting the power OFF request, in S602, the CPU 154 of the communication device 151 determines a setting value for enabling / disabling the automatic power ON function. If the automatic power ON function is disabled, the processing in FIG. 6 is terminated, and the power of the communication device 151 is turned OFF (main power supply is maintained for the main CPU). That is, if it is determined in S602 that the automatic power ON function is not valid (the automatic power ON function is invalid), the processing of S603 to S606 in FIG. 6 is not performed and the sequence of FIG. Thereafter, a normal power-off process (first power-off process) of the communication device 151 is performed. In the case of the first power-off process, power is supplied to the CPU 154, but power is not supplied to the short-range wireless communication unit 157. Therefore, BLE communication by the short-range wireless communication unit 157 is stopped, and neither transmission of advertisement information nor GATT communication is performed. On the other hand, if the automatic power ON function is valid, the process proceeds to S603.

S603では、通信装置151のCPU154は、電源OFFの要求方法を判定する。すなわち、S601で検知した電源オフの指示が何をトリガとしているか判定するということもできる。電源OFFの要求方法としては、時間経過による自動電源OFF機能の実行と、ユーザーが通信装置151の電源ボタンを押下した場合と、が挙げられる。ステップS603でNOと判定された場合、すなわち時間経過による自動電源OFF機能が実施された場合は、図6におけるS604〜S606の処理は実施せずにシーケンスを終了する。これは、ユーザーが通信装置151を使用予定なのに意図せず電源がOFFされた可能性があるため、近距離無線通信部157によるBLE接続があればそれを維持する必要があるためである。よって、この場合には、図6の処理後、第2の電源オフ処理を実行する。第2の電源OFF処理においては、近距離無線通信部157への電力供給は維持される。つまり、自動電源ON機能が有効である場合の、自動電源OFF機能による電源OFF処理(第2の電源OFF処理)では、CPU154に加え、近距離無線通信部157にも電力が供給される。つまり、通信装置と外部の装置との間でBLE接続は可能な状態である。よって、第2の電源OFF状態は、「省電力モード」とも言える。S603で、ユーザーが電源ボタンを押下したことによる電源OFF要求であると判定された場合、S604へ進む。この場合は、ユーザーが通信装置151を使用しないことの明確な意思表示であると判断できるためである。 In step S603, the CPU 154 of the communication device 151 determines a power-off request method. That is, it can be determined what the power-off instruction detected in S601 is a trigger. Examples of the power-off request method include execution of an automatic power-off function over time and a case where the user presses the power button of the communication device 151. If it is determined NO in step S603, that is, if the automatic power-off function with the passage of time is performed, the sequence is terminated without performing the processing of S604 to S606 in FIG. This is because there is a possibility that the user intends to use the communication device 151 but the power is unintentionally turned off, so that if there is a BLE connection by the short-range wireless communication unit 157, it is necessary to maintain it. Therefore, in this case, the second power-off process is executed after the process of FIG. In the second power OFF process, power supply to the short-range wireless communication unit 157 is maintained. That is, in the power-off process (second power-off process) by the automatic power-off function when the automatic power-on function is valid, power is supplied to the short-range wireless communication unit 157 in addition to the CPU 154. That is, the BLE connection is possible between the communication device and the external device. Therefore, it can be said that the second power OFF state is a “power saving mode”. If it is determined in S603 that the power-off request is due to the user pressing the power button, the process proceeds to S604. This is because it can be determined that the user has a clear intention to not use the communication device 151.

S604では、通信装置151のCPU154は、情報処理装置101と通信装置151がBLE接続の状態か(GATT通信状態か)を判定する。S604でBLE接続状態ではないと判定された場合、S605及びS606を実行せずに図6の処理を終了する。その後、近距離無線通信部157への電力供給が維持された第2の電源OFF処理が行われる。 In step S604, the CPU 154 of the communication device 151 determines whether the information processing device 101 and the communication device 151 are in a BLE connection state (GATT communication state). If it is determined in S604 that the BLE connection state is not established, the processing of FIG. 6 is terminated without executing S605 and S606. Thereafter, a second power-off process is performed in which power supply to the short-range wireless communication unit 157 is maintained.

一方で、S604で、情報処理装置101と通信装置151がBLE接続状態(GATT通信状態)であると判定された場合、S605へ進む。自動電源ON機能が有効設定では、通信装置151の電源はOFFされたとしても近距離無線通信部157による通信は可能となっている。そのため、ユーザーは通信装置151の電源ボタン押下により電源OFFしたつもりでも、近距離無線通信部157によるBLE接続が維持されたままとなる。よって、接続の切断処理を実施しないと情報処理装置101との接続状態が維持されたままとなり、別の外部通信装置との接続処理が実施できない。 On the other hand, if it is determined in S604 that the information processing apparatus 101 and the communication apparatus 151 are in the BLE connection state (GATT communication state), the process proceeds to S605. When the automatic power ON function is enabled, communication by the short-range wireless communication unit 157 is possible even when the power of the communication device 151 is turned off. Therefore, even if the user intends to turn off the power by pressing the power button of the communication device 151, the BLE connection by the short-range wireless communication unit 157 remains maintained. Therefore, unless connection disconnection processing is performed, the connection state with the information processing apparatus 101 remains maintained, and connection processing with another external communication device cannot be performed.

そこで、S604でBLE接続状態と判定された場合、S605で、CPU154からの切断要求に基づき近距離無線通信部157のCPU201は、情報処理装置101とのBLE接続を切断する。この状態では、アドバタイズ情報を送信できる。すなわち第2の電源オフ状態では、BLEの通信方式によるアドバタイズ情報が送信可能である。 Therefore, when it is determined in S604 that the BLE connection state is established, the CPU 201 of the short-range wireless communication unit 157 disconnects the BLE connection with the information processing apparatus 101 in S605 based on the disconnection request from the CPU 154. In this state, advertisement information can be transmitted. That is, in the second power-off state, advertisement information by the BLE communication method can be transmitted.

そして、S606では、近距離無線通信部157のCPU201は、ADV_INDタイプのAdvertisingパケットを発信する。すなわち、接続要求を待機中である(すなわち接続待ちである)ことを示すアドバタイズ情報をブロードキャストする。ADV_INDのAdvertisingパケットを発信することで、通信装置151は接続待ち状態に遷移することができるため、情報処理装置101以外の外部装置ともBLEによる接続が可能になる。なおステップS606以降は、図4に示したS404以降の処理により情報処理装置101以外の外部装置との間でBLE接続が確立される。 In step S606, the CPU 201 of the short-range wireless communication unit 157 transmits an ADV_IND type advertising packet. That is, the advertising information indicating that the connection request is waiting (that is, waiting for connection) is broadcast. Since the ADV_IND advertising packet is transmitted, the communication device 151 can transit to the connection waiting state, and therefore, the external device other than the information processing device 101 can be connected by BLE. In step S606 and subsequent steps, a BLE connection is established with an external device other than the information processing apparatus 101 by the processing in step S404 and subsequent steps shown in FIG.

以上のように、本実施形態では、自動電源オン機能が有効として設定されている場合、すなわち、BLEによる無線通信をきっかけとして電源オンされる可能性がある場合には、電源オフの指示があっても、近距離無線通信部157への電力供給は維持する。 As described above, in this embodiment, when the automatic power-on function is set to be effective, that is, when there is a possibility of power-on due to wireless communication by BLE, there is an instruction to turn off the power. However, the power supply to the short-range wireless communication unit 157 is maintained.

また、自動電源オン機能が有効設定となっており、且つ、自動電源オフ機能による電源オフの指示の場合には、近距離無線通信部157への電力供給及びBLE接続の状態を維持する。一方、自動電源オン機能が有効設定となっており、且つ、電源ボタンの操作による電源オフの指示の場合には、現在、BLE接続(GATT通信)している状態かを判定する。そして、BLE接続状態である場合には、BLE接続を切断する。これにより、自動電源オンの設定が有効な場合に例えば操作者が電源オフ操作をすると、既に接続されていたBLE接続は切断され、別の装置によるBLE接続を行う余地ができる。つまり、切断された通信装置は、BLE接続(GATT通信)の切断後、ADV_INDのアドバタイズ情報のブロードキャストを行うため、別の装置によるBLE接続が可能となる。 In addition, when the automatic power-on function is enabled and the power-off instruction is issued by the automatic power-off function, the power supply to the short-range wireless communication unit 157 and the state of BLE connection are maintained. On the other hand, if the automatic power-on function is enabled and the power-off instruction is given by operating the power button, it is determined whether the BLE connection (GATT communication) is currently in progress. When the BLE connection state is established, the BLE connection is disconnected. Accordingly, when the automatic power-on setting is valid, for example, when the operator performs a power-off operation, the BLE connection that has already been connected is disconnected, and there is room for BLE connection by another device. That is, since the disconnected communication apparatus broadcasts the advertisement information of ADV_IND after disconnecting the BLE connection (GATT communication), the BLE connection by another apparatus becomes possible.

なお、本実施形態において、電源OFF状態おいて、無線LANによる接続を行う通信部156の動作は、BLE接続を行う近距離無線通信部157の動作と異なり、以下の動作を行う。すなわち、自動電源ON機能が有効、且つ、無線LAN機能が有効な場合での電源オフ状態では、通信部156は一旦再起動し、再起動後に無線LAN機能の動作が可能となる。再起動が完了するまでは通信部156からのBeacon送信は停止される。自動電源ON機能が有効、且つ、無線LAN機能が無効な場合での電源オフ状態では、元々通信部156は停止状態のためその状態が維持される。自動電源ON機能が無効、且つ、無線LAN機能が有効な場合での電源オフ状態では、通信部156への電力供給はストップし、通信部156による通信は停止する。自動電源ON機能が無効、且つ、無線LAN機能も無効な場合での電源オフ状態では、元々通信部156は停止状態のためその状態が維持される。つまり、電源ON機能が有効かどうか、無線LAN機能が有効かどうかにより、通信部156へ電力が供給されるかどうかが変わる。 In this embodiment, the operation of the communication unit 156 that performs connection by wireless LAN in the power-off state is different from the operation of the short-range wireless communication unit 157 that performs BLE connection, and performs the following operation. That is, in the power-off state when the automatic power ON function is valid and the wireless LAN function is valid, the communication unit 156 is restarted once, and the wireless LAN function can be operated after the restart. Until the restart is completed, the Beacon transmission from the communication unit 156 is stopped. In the power-off state when the automatic power-on function is valid and the wireless LAN function is invalid, the communication unit 156 is originally in a stopped state, and the state is maintained. In the power-off state when the automatic power-on function is invalid and the wireless LAN function is valid, power supply to the communication unit 156 is stopped and communication by the communication unit 156 is stopped. In the power-off state when the automatic power-on function is invalid and the wireless LAN function is also invalid, the communication unit 156 is originally in a stopped state, and the state is maintained. That is, whether power is supplied to the communication unit 156 varies depending on whether the power ON function is valid and whether the wireless LAN function is valid.

[第2の実施形態]
次に、第2の実施形態について説明する。なお、通信装置151及び情報処理装置101の構成や、接続の処理フローは第1の実施形態と同様であるため説明を省略する。以下では、第1の実施形態1と異なる部分を中心に説明する。本実施形態ではBLE接続の切断処理のフローが第1の実施形態と異なる。
[Second Embodiment]
Next, a second embodiment will be described. Note that the configurations of the communication device 151 and the information processing device 101 and the connection processing flow are the same as those in the first embodiment, and thus the description thereof is omitted. Below, it demonstrates centering on a different part from 1st Embodiment. In this embodiment, the flow of BLE connection disconnection processing is different from that in the first embodiment.

図8を用いて、通信装置151のBLE接続の切断処理に関する第2の実施形態について説明を行う。第1の実施形態の切断処理では、図6にて説明したとおり通信装置151が電源OFF要求を検知した際に切断処理のための判定を行うシーケンスであるが、本実施形態では、通信装置151が電源ON状態において情報処理装置101との切断処理のための判定を行う。図8において、通信装置151と情報処理装置101は前述したBLEのペアリングが完了し、ペアリング必須のセキュリティー属性の領域についてのGATT通信が可能な状態であることを前提とする。また、図8の処理は、例えば、通信装置151内のCPU154と、通信装置151の近距離無線通信部157内のCPU201と、のそれぞれが、ROM、RAM等の記憶領域に格納された各種プログラムを読み出して実行することにより実現される。 With reference to FIG. 8, a second embodiment relating to the BLE connection disconnection process of the communication device 151 will be described. In the disconnection process of the first embodiment, as described with reference to FIG. 6, the communication apparatus 151 performs a determination for the disconnection process when detecting a power-off request, but in the present embodiment, the communication apparatus 151 Makes a determination for disconnection processing with the information processing apparatus 101 in the power-on state. In FIG. 8, it is assumed that the communication device 151 and the information processing device 101 have completed the above-described BLE pairing and are in a state in which GATT communication is possible for the security attribute area that requires pairing. 8 includes various programs stored in a storage area such as a ROM and a RAM by the CPU 154 in the communication device 151 and the CPU 201 in the short-range wireless communication unit 157 of the communication device 151, for example. This is realized by reading and executing.

まず、S801で、CPU154の指示に応じて近距離無線通信部157は、GATT通信を用いてユーザーの情報処理装置101の使用情報を収集する。具体的には、ユーザーの使用情報として、ユーザーが情報処理装置101を未使用の時間(ユーザーにより操作されていない時間)の情報を取得する。ユーザーが情報処理装置101を操作していない未使用時間の情報を、GATT通信を用いて情報処理装置101から通信装置151に周期的に送信することで、通信装置151は情報処理装置101の未使用時間の情報収集が可能である。未使用の時間とは、たとえば連続して未使用の時間で良く、いったん操作された場合には、その時点から未使用時間を計測し直してよい。 First, in step S801, in response to an instruction from the CPU 154, the short-range wireless communication unit 157 collects usage information of the information processing apparatus 101 of the user using GATT communication. Specifically, information on a time when the user does not use the information processing apparatus 101 (time not operated by the user) is acquired as user usage information. By periodically transmitting information on the unused time during which the user is not operating the information processing apparatus 101 from the information processing apparatus 101 to the communication apparatus 151 using GATT communication, the communication apparatus 151 determines whether the information processing apparatus 101 has not been used. Usage time information can be collected. The unused time may be, for example, continuously unused time, and once operated, the unused time may be measured again from that point.

S801で未使用時間の情報を収集後、S802で、通信装置151内のCPU154は、情報処理装置101のユーザーの未使用時間が一定時間経過しているかどうかを判定する。一定時間が経過しているかどうかは、情報処理装置101から送信された未使用時間情報から判定する方法が挙げられる。若しくは、情報処理装置101からGATT通信によって周期的に送信される未使用時間の情報が送信されなくなった時間を計測あるいは測定することによって一定時間経過しているかどうかを判定することも可能である。 After collecting the unused time information in S801, in S802, the CPU 154 in the communication apparatus 151 determines whether or not the unused time of the user of the information processing apparatus 101 has passed for a fixed time. A method of determining whether or not a certain time has elapsed from unused time information transmitted from the information processing apparatus 101 can be used. Alternatively, it is also possible to determine whether or not a fixed time has elapsed by measuring or measuring the time at which the unused time information periodically transmitted from the information processing apparatus 101 by GATT communication is not transmitted.

S802でユーザーが情報処理装置101を使用していない時間が一定時間経過していないと判定された場合、再びS801の時間情報の収集を実施する。S802で情報処理装置101のユーザーの未使用時間が一定時間経過していると判定された場合、S803で、CPU154の切断要求に応じて近距離無線通信部157は、情報処理装置101とのBLE接続を切断する。 If it is determined in S802 that the user has not used the information processing apparatus 101 for a certain period of time, the time information is collected again in S801. If it is determined in S802 that the user's unused time of the information processing apparatus 101 has passed a certain time, the short-range wireless communication unit 157 responds to the disconnection request from the CPU 154 in S803, and the BLE with the information processing apparatus 101 is determined. Disconnect the connection.

そして、S804で、CPU154の指示に応じて近距離無線通信部157は、ADV_INDタイプのAdvertisingパケットを発信する。ADV_INDタイプのAdvertisingパケットを発信することで、通信装置151は接続待ち状態に遷移することができるため、情報処理装置101以外の外部通信装置とBLEによる接続が可能になる。 In step S804, the short-range wireless communication unit 157 transmits an ADV_IND type advertising packet in response to an instruction from the CPU 154. By transmitting an ADV_IND type advertising packet, the communication device 151 can transit to a connection waiting state, and therefore, connection with an external communication device other than the information processing device 101 by BLE becomes possible.

なお、図8の処理手順は、未使用時間が一定時間を経過したことをきっかけとするペアリングの解除について着目したものであって、ステップS801−S802のループが行われている間であっても、情報処理装置101との通信や、機能の提供等、通信装置151の本来の処理は並行して実行されている。 Note that the processing procedure in FIG. 8 focuses on the cancellation of pairing triggered by the fact that the unused time has passed for a certain period of time, and is during the loop of steps S801 to S802. In addition, the original processing of the communication device 151 such as communication with the information processing device 101 and provision of functions is performed in parallel.

以上の構成により、ユーザーが通信装置151や情報処理装置101を使用しない状況を判断し、BLEによる接続を切断することで、別の外部通信装置との接続を可能にする。切断後に再び情報処理装置101を使用すれば通信装置151とBLEでの再接続が可能であるため、ユーザーに接続・切断を意識させることなくBLEの機能を提供できるため、ユーザビリティを向上できる。 With the above configuration, the user determines the situation in which the communication device 151 or the information processing device 101 is not used, and disconnects by BLE, thereby enabling connection with another external communication device. If the information processing apparatus 101 is used again after disconnection, it is possible to reconnect the communication apparatus 151 to the BLE. Therefore, the BLE function can be provided without making the user aware of the connection / disconnection, thereby improving usability.

尚、本発明は、上記実施形態のみに限定されるものではなく、本発明の技術的思想に基づく限りにおいて、特許請求の範囲内および当該範囲と均等の範囲内で適宜に変更することが可能である。 It should be noted that the present invention is not limited to the above-described embodiment, and can be appropriately modified within the scope of the claims and a range equivalent to the scope as long as it is based on the technical idea of the present invention. It is.

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

101 情報処理装置、102 入力インタフェース、103,154,201 CPU、104,152,203 ROM、105,153,204 RAM、106 外部記憶装置、107 出力インタフェース、108 操作表示部、109,156 通信部、110,157 近距離無線通信部、111 撮影装置、131 アクセスポイント 101 information processing apparatus, 102 input interface, 103, 154, 201 CPU, 104, 152, 203 ROM, 105, 153, 204 RAM, 106 external storage device, 107 output interface, 108 operation display section, 109, 156 communication section, 110,157 Short-range wireless communication unit, 111 photographing device, 131 access point

Claims (14)

Bluetooth Low Energy (BLE)の通信方式に基づき外部装置と無線通信を行う通信手段と、
通信装置が電源オフ状態であっても、所定の条件により前記通信装置の電源をオンにする自動電源オン機能が有効に設定されているか判定する判定手段と、
を備え、
前記通信手段は、前記自動電源オン機能が有効に設定されていると判定された場合、電源オフの指示に応じて、前記BLEの通信方式に基づき確立された前記外部装置との接続を切断し、前記BLEの通信方式に基づく応答を受け付け可能なアドバタイズ情報を送信することを特徴とする通信装置。
A communication means for performing wireless communication with an external device based on the communication method of Bluetooth Low Energy (BLE);
A determination unit that determines whether an automatic power-on function for turning on the power of the communication device is set to be valid according to a predetermined condition even when the communication device is in a power-off state;
With
When it is determined that the automatic power-on function is set to be effective, the communication unit disconnects the connection with the external device established based on the BLE communication method in response to a power-off instruction. An advertisement information capable of accepting a response based on the BLE communication method is transmitted.
前記電源オフの指示が、ユーザー操作に基づく指示か判定する第2判定手段をさらに備え、
前記通信手段は、前記電源オン機能が有効に設定されていると判定され、且つ、前記電源オフの指示がユーザー操作に基づく指示であると判定された場合、前記BLEの通信方式に基づき確立された前記外部装置との接続を切断し、前記BLEの通信方式に基づく応答を受け付け可能なアドバタイズ情報を送信することを特徴とする請求項1に記載の通信装置。
A second determination unit for determining whether the power-off instruction is based on a user operation;
The communication means is established based on the communication method of the BLE when it is determined that the power-on function is set to be effective and the power-off instruction is determined to be an instruction based on a user operation. The communication apparatus according to claim 1, wherein the communication apparatus disconnects the connection with the external apparatus and transmits advertisement information that can accept a response based on the communication method of the BLE.
前記通信手段は、前記電源オン機能が有効に設定されていると判定され、且つ、前記電源オフの指示がユーザー操作に基づく指示でないと判定された場合、前記BLEの通信方式に基づき確立された前記外部装置との接続を切断しないことを特徴とする請求項1又は2に記載の通信装置。   The communication means is established based on the communication system of the BLE when it is determined that the power-on function is set to be valid and the power-off instruction is determined not to be an instruction based on a user operation. The communication apparatus according to claim 1, wherein the connection with the external apparatus is not disconnected. 前記応答を受け付け可能なアドバタイズ情報は、前記BLEの通信方式に基づく接続要求を受け付け可能なアドバタイズ情報であることを特徴とする請求項1から3のいずれか1項に記載の通信装置。   The communication apparatus according to any one of claims 1 to 3, wherein the advertisement information that can accept the response is advertisement information that can accept a connection request based on the communication method of the BLE. 前記電源オフの指示に基づき前記通信装置を電源オフ状態とする電源制御手段をさらに備え、
前記電源制御手段は、前記自動電源オン機能が有効に設定されていないと判定された場合、前記無線通信手段によるBLEの通信方式に基づく通信が行われない状態である第1の電源オフ状態とし、
前記電源制御手段は、前記自動電源オン機能が有効に設定されていると判定された場合、前記無線通信手段によるBLEの通信方式に基づく通信が可能な状態である第2の電源オフ状態とすることを特徴とする請求項1から4のいずれか1項に記載の通信装置。
Further comprising power control means for powering off the communication device based on the power-off instruction,
When it is determined that the automatic power-on function is not set to be effective, the power control unit sets a first power-off state in which communication based on the BLE communication method by the wireless communication unit is not performed. ,
When it is determined that the automatic power-on function is set to be effective, the power control unit sets a second power-off state in which communication based on the BLE communication method by the wireless communication unit is possible. The communication apparatus according to any one of claims 1 to 4, wherein the communication apparatus is characterized in that:
前記自動電源オン機能が有効に設定されていないと判定された場合、前記電源制御手段により、前記通信装置は前記第1の電源オフ状態となることにより、前記通信手段により前記BLEの通信方式に基づくアドバタイズ情報が送信されないことを特徴とする請求項5に記載の通信装置。   When it is determined that the automatic power-on function is not set to be effective, the communication control unit switches the communication device to the first power-off state by the power control unit, so that the communication unit switches to the BLE communication method. 6. The communication apparatus according to claim 5, wherein advertisement information based on the advertisement information is not transmitted. 前記第1の電源オフ状態は、前記通信装置の電源ボタンの押下を検知可能な状態であることを特徴とする請求項5又は6に記載の通信装置。   The communication device according to claim 5, wherein the first power-off state is a state in which pressing of a power button of the communication device can be detected. 前記第2の電源オフ状態とは、前記BLEの通信方式により前記アドバタイズ情報が送信可能な状態であることを特徴とする請求項5から7のいずれか1項に記載の通信装置。   The communication apparatus according to claim 5, wherein the second power-off state is a state in which the advertisement information can be transmitted by the BLE communication method. 前記所定の条件は、前記通信装置が所定の情報を受信ですることであることを特徴とする請求項1から8のいずれか1項に記載の通信装置。   The communication apparatus according to claim 1, wherein the predetermined condition is that the communication apparatus receives predetermined information. 前記ユーザー操作に基づく指示は、ユーザーによる電源ボタンの押下であることを特徴とする請求項2に記載の通信装置。   The communication apparatus according to claim 2, wherein the instruction based on the user operation is pressing of a power button by a user. 前記BLEの通信方式に基づき確立される接続は、Generic Attribute Profile (GATT)に基づく接続であることを特徴とする請求項1から10のいずれか1項に記載の通信装置。   The communication apparatus according to any one of claims 1 to 10, wherein the connection established based on the BLE communication method is a connection based on a generic attribute profile (GATT). Wi−Fiの通信方式に基づき外部装置と無線通信を行う第2通信手段をさらに備え、
前記第2通信手段は、前記自動電源ON機能が有効に設定されており、前記Wi−Fiの通信機能が有効に設定されている場合、前記装置が電源オフ状態であっても前記Wi−Fiの通信方式に基づく通信を実行可能であることを特徴とする請求項1から11のいずれか1項に記載の通信装置。
A second communication means for performing wireless communication with an external device based on a Wi-Fi communication method;
When the automatic power ON function is set to be effective and the Wi-Fi communication function is set to be effective, the second communication means has the Wi-Fi even if the device is in a power-off state. The communication device according to claim 1, wherein communication based on the communication method is executable.
所定の通信方式に基づき外部装置と無線通信を行う通信手段と、
通信装置が電源オフ状態であっても、所定の条件により前記通信装置の電源をオンにする自動電源オン機能が有効に設定されているか判定する第1判定手段と、
電源オフの指示が、ユーザー操作に基づく指示か判定する第2判定手段と、
を備え、
前記通信手段は、前記自動電源オン機能が有効に設定されており、且つ、前記電源オフの指示がユーザー操作に基づく指示であると判定された場合、前記所定の通信方式に基づき確立された前記外部装置との接続を切断することを特徴とする通信装置。
Communication means for performing wireless communication with an external device based on a predetermined communication method;
First determination means for determining whether or not an automatic power-on function for turning on the power of the communication device is set to be effective according to a predetermined condition even when the communication device is in a power-off state;
Second determination means for determining whether the power-off instruction is an instruction based on a user operation;
With
When the automatic power-on function is set to be effective and it is determined that the power-off instruction is an instruction based on a user operation, the communication unit is established based on the predetermined communication method. A communication device characterized by disconnecting a connection with an external device.
通信装置の制御方法であって、
Bluetooth Low Energy (BLE)の通信方式に基づき外部装置と無線通信を行う通信ステップと、
通信装置が電源オフ状態であっても、所定の条件により前記通信装置の電源をオンにする自動電源オン機能が有効に設定されているか判定する判定ステップと、
を備え、
前記自動電源オン機能が有効に設定されていると判定された場合、電源オフの指示に応じて、前記BLEの通信方式に基づき確立された前記外部装置との接続が切断され、前記BLEの通信方式に基づく応答を受け付け可能なアドバタイズ情報が送信されることを特徴とする制御方法。
A communication device control method comprising:
A communication step of performing wireless communication with an external device based on a communication method of Bluetooth Low Energy (BLE);
A determination step of determining whether or not an automatic power-on function for turning on the power of the communication device is set to be effective according to a predetermined condition even when the communication device is in a power-off state;
With
When it is determined that the automatic power-on function is set to be valid, the connection with the external device established based on the BLE communication method is disconnected according to the power-off instruction, and the BLE communication is performed. A control method characterized in that advertisement information capable of accepting a response based on a method is transmitted.
JP2018082464A 2017-06-29 2018-04-23 COMMUNICATION DEVICE AND ITS CONTROL METHOD Active JP6494835B2 (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
KR1020180071275A KR102210020B1 (en) 2017-06-29 2018-06-21 Communication apparatus and control method therefor
US16/016,790 US10771648B2 (en) 2017-06-29 2018-06-25 Communication apparatus and control method therefor
EP18179807.5A EP3422777B1 (en) 2017-06-29 2018-06-26 Communication apparatus and control method therefor
CN201810695708.1A CN109218552B (en) 2017-06-29 2018-06-29 Communication apparatus and control method thereof
US16/988,750 US11212410B2 (en) 2017-06-29 2020-08-10 Communication apparatus and control method therefor

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2017127834 2017-06-29
JP2017127834 2017-06-29

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2019038761A Division JP2019134443A (en) 2017-06-29 2019-03-04 Communication apparatus and control method thereof

Publications (2)

Publication Number Publication Date
JP2019012991A JP2019012991A (en) 2019-01-24
JP6494835B2 true JP6494835B2 (en) 2019-04-03

Family

ID=65226394

Family Applications (2)

Application Number Title Priority Date Filing Date
JP2018082464A Active JP6494835B2 (en) 2017-06-29 2018-04-23 COMMUNICATION DEVICE AND ITS CONTROL METHOD
JP2019038761A Pending JP2019134443A (en) 2017-06-29 2019-03-04 Communication apparatus and control method thereof

Family Applications After (1)

Application Number Title Priority Date Filing Date
JP2019038761A Pending JP2019134443A (en) 2017-06-29 2019-03-04 Communication apparatus and control method thereof

Country Status (1)

Country Link
JP (2) JP6494835B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7293704B2 (en) * 2019-02-13 2023-06-20 ブラザー工業株式会社 Computer program for function execution device and terminal device
JP7293705B2 (en) * 2019-02-13 2023-06-20 ブラザー工業株式会社 Computer program for function execution device and terminal device
US11416191B2 (en) 2019-02-13 2022-08-16 Brother Kogyo Kabushiki Kaisha Function executing device for executing communication of function execution information with terminal device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007006157A (en) * 2005-06-24 2007-01-11 Fuji Xerox Co Ltd Radio communication system
JP6727798B2 (en) * 2015-12-07 2020-07-22 キヤノン株式会社 Information processing apparatus, control method thereof, and program

Also Published As

Publication number Publication date
JP2019012991A (en) 2019-01-24
JP2019134443A (en) 2019-08-08

Similar Documents

Publication Publication Date Title
KR102210020B1 (en) Communication apparatus and control method therefor
US11659128B2 (en) Wireless communication processing in an information processing device
JP7230124B2 (en) Program, communication device, control method
JP6516491B2 (en) Communication apparatus, control method and program
JP6891024B2 (en) Information processing device control methods, programs and communication systems
JP6776055B2 (en) Communication equipment and programs
JP6494835B2 (en) COMMUNICATION DEVICE AND ITS CONTROL METHOD
JP6866209B2 (en) Information processing device, control method, program
JP6282364B2 (en) COMMUNICATION DEVICE, PROGRAM, AND COMMUNICATION SYSTEM
US11284237B2 (en) Information processing apparatus and control method
JP2019001106A (en) Communication device, control method, and program
JP6888037B2 (en) Information processing equipment, control methods and programs
JP2021072599A (en) Communication system, information processing device, communication device, and program

Legal Events

Date Code Title Description
TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20190204

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190305

R151 Written notification of patent or utility model registration

Ref document number: 6494835

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151