JP7328754B2 - COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, AND PROGRAM - Google Patents

COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, AND PROGRAM Download PDF

Info

Publication number
JP7328754B2
JP7328754B2 JP2018221678A JP2018221678A JP7328754B2 JP 7328754 B2 JP7328754 B2 JP 7328754B2 JP 2018221678 A JP2018221678 A JP 2018221678A JP 2018221678 A JP2018221678 A JP 2018221678A JP 7328754 B2 JP7328754 B2 JP 7328754B2
Authority
JP
Japan
Prior art keywords
version
communication
communication device
signal
digital camera
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
JP2018221678A
Other languages
Japanese (ja)
Other versions
JP2019161637A5 (en
JP2019161637A (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 US16/295,340 priority Critical patent/US11057951B2/en
Publication of JP2019161637A publication Critical patent/JP2019161637A/en
Publication of JP2019161637A5 publication Critical patent/JP2019161637A5/ja
Application granted granted Critical
Publication of JP7328754B2 publication Critical patent/JP7328754B2/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

Landscapes

  • Communication Control (AREA)
  • Mobile Radio Communication Systems (AREA)

Description

本発明は、所定の通信方式に従って動作する通信装置の技術に関する。 The present invention relates to technology for communication devices that operate according to a predetermined communication scheme.

近距離無線通信規格であるBluetooth(商標登録)の仕様では、周囲の複数の装置に対して自身の存在を示すためにアドバタイズ処理を行うこと(アドバタイジングパケットを送信すること)が規定されている。当該規格では、アドバタイジングパケットを送信する側の装置をペリフェラル機器、アドバタイジングパケットを受信する側の装置をセントラル機器と称する。 The specifications of Bluetooth (registered trademark), which is a short-range wireless communication standard, stipulate that an advertising process (transmitting an advertising packet) is performed to indicate the existence of itself to a plurality of surrounding devices. In this standard, a device that transmits an advertising packet is called a peripheral device, and a device that receives an advertising packet is called a central device.

近年、Bluetoothの新しいバージョンとして、Bluetoothバージョン5(以下、BT5と称す)の仕様が規定された。このBT5と、既に仕様が規定されていた、Bluetoothバージョン4(以下、BT4と称す)では、例えば、アドバタイジングパケットで通知できるデータのサイズが異なる。例えば、BT4では、アドバタイジングパケットで通知できるデータは、最大31バイトであった。一方、BT5では、新しいアドバタイジングパケットが定義され、最大251バイトのデータを通知することができる。また、BT5の仕様では、BT4に従うアドバタイズ処理と、BT5で新たに規定されたアドバタイズ処理を並行して実行することが認められている。 In recent years, as a new version of Bluetooth, specifications for Bluetooth version 5 (hereinafter referred to as BT5) have been defined. BT5 and Bluetooth version 4 (hereinafter referred to as BT4) whose specifications have already been defined differ, for example, in the size of data that can be notified by an advertising packet. For example, in BT4, the maximum data that can be notified by an advertising packet is 31 bytes. On the other hand, in BT5, a new advertising packet is defined, and data of up to 251 bytes can be notified. In addition, the BT5 specification allows parallel execution of an advertising process conforming to BT4 and an advertising process newly defined in BT5.

ところで、BT5に従うアドバタイズ処理は、下位互換性を持たないため、BT4をサポートし、BT5をサポートしないセントラル機器は、BT5で規定されるアドバタイジングパケットを受信することができない。一方、BT5サポートするセントラル機器は、BT4で規定されるアドバタイジングパケットを受信し、解析することができる。また、BT5をサポートするペリフェラル機器は、BT4とBT5で規定されるアドバタイジングパケットを並行して送信することができる。 By the way, since the advertising process according to BT5 is not backward compatible, central equipment that supports BT4 but does not support BT5 cannot receive advertising packets defined in BT5. On the other hand, a central device that supports BT5 can receive and analyze advertising packets defined in BT4. Also, a peripheral device that supports BT5 can transmit advertising packets defined by BT4 and BT5 in parallel.

特開2013-156858号公報JP 2013-156858 A 特開2009-188680号公報JP 2009-188680 A

セントラル機器がサポートするBluetoothバージョンを、BT4またはBT5のいずれかに統一できる場合がある。このような状況では、ペリフェラル機器がBT4およびBT5に従うアドバタイズ処理を両方行い続けることは、ペリフェラル機器における消費電力、またネットワークリソースの有効利用の観点から好ましくない。他方、セントラル機器がサポートするBluetoothバージョンを統一できない場合がある。このような状況では、ペリフェラル機器がBT4およびBT5に従うアドバタイズ処理を行うことにより、いずれのバージョンをサポートするセントラル機器とも通信を行うことが可能となり、機器の相互接続性が向上する。これらの観点からすれば、ペリフェラル機器は、対向のセントラル機器のサポート状態に応じて、実行するアドバタイズ処理を切り替えることが望ましい。 In some cases, the Bluetooth version supported by the central equipment can be unified to either BT4 or BT5. In such a situation, it is not preferable from the viewpoint of power consumption in the peripheral device and efficient use of network resources for the peripheral device to continue performing both advertising processes according to BT4 and BT5. On the other hand, it may not be possible to unify the Bluetooth versions supported by the central device. In such a situation, the peripheral device performs advertising processing according to BT4 and BT5, thereby enabling communication with the central device supporting either version, thereby improving the interoperability of the devices. From these points of view, it is desirable that the peripheral device switches the advertising process to be executed according to the support state of the opposing central device.

特許文献1および特許文献2において、対向機がサポートする通信プロトコルを判定して、自らが送信するパケットの種別を切り替える技術が開示されている。特許文献1ではUPnP(Universal Plug and Play)とmDNS(Multicast Domain Name System)の2つの通信プロトコルについて、対向機がサポートしない通信プロトコルの処理を停止する技術が開示されている。特許文献2では、無線LANの802.11b規格と802.11n規格について、対向機がサポートする規格でネットワークを生成する技術が開示されている。しかしながらいずれの文献においても、Bluetooth通信等の所定の通信方式で複数のバージョンが存在する場合に、対向機がサポートするバージョンを判定し、判定結果に応じて通信を行うことについては開示されていない。 Japanese Unexamined Patent Application Publication Nos. 2005-100002 and 2004-200010 disclose a technique of determining the communication protocol supported by the counterpart device and switching the type of packet to be transmitted by itself. Patent Literature 1 discloses a technique for stopping processing of communication protocols that are not supported by a counterpart device for two communication protocols, UPnP (Universal Plug and Play) and mDNS (Multicast Domain Name System). Patent Literature 2 discloses a technique for creating a network based on the 802.11b standard and the 802.11n standard of wireless LAN, which are supported by counterpart devices. However, none of these documents disclose determining the version supported by the other device and performing communication according to the determination result when multiple versions exist in a predetermined communication method such as Bluetooth communication. .

本発明は上記課題に鑑みてなされたものであり、対向機がサポートする通信方式のバージョンに応じて効率的な通信を行うことを目的とする。 SUMMARY OF THE INVENTION The present invention has been made in view of the above problems, and an object of the present invention is to perform efficient communication according to the version of the communication system supported by the counterpart device.

上記課題を解決するため、本発明の通信装置は、所定の通信方式の第1のバージョンまたは当該第1のバージョンとは異なる第2のバージョンをサポートする他の通信装置と通信を行う通信装置であって、前記他の通信装置がサポートする前記通信方式のバージョンを登録する登録手段と、前記登録手段により、前記他の通信装置がサポートする前記通信方式のバージョンが登録されている場合、当該登録されている、前記第1のバージョンまたは前記第2のバージョンに従う信号を送信し、前記登録手段により、前記他の通信装置がサポートする前記通信方式のバージョンが登録されていない場合、前記第1のバージョンに従う信号および前記第2のバージョンに従う信号の双方を送信する送信手段と、を有し、前記第1のバージョンに従う信号は、Bluetoothバージョン4に従うアドバタイジングパケットであり、前記第2のバージョンに従う信号は、Bluetoothバージョン5に従うアドバタイジングパケットであるIn order to solve the above problems, a communication device of the present invention is a communication device that communicates with another communication device that supports a first version of a predetermined communication system or a second version different from the first version. registration means for registering the version of the communication method supported by the other communication device; and when the version of the communication method supported by the other communication device is registered by the registration means, the registration and transmitting a signal according to the first version or the second version, and if the version of the communication scheme supported by the other communication device is not registered by the registration means, the first and transmitting means for transmitting both a version compliant signal and the second version compliant signal, wherein the first version compliant signal is an advertising packet compliant with Bluetooth version 4, and the second version compliant signal is a , advertising packets according to Bluetooth version 5 .

本発明によれば、対向機がサポートする通信方式のバージョンに応じて効率的な通信を行うことが可能となる。 According to the present invention, it is possible to perform efficient communication according to the version of the communication system supported by the counterpart device.

ペリフェラル機器として動作する通信装置1のハードウェア構成例を示す。1 shows a hardware configuration example of a communication device 1 operating as a peripheral device. ペリフェラル機器として動作する通信装置1の機能構成例を示す。1 shows a functional configuration example of a communication device 1 operating as a peripheral device. BT4で規定されるアドバタイズ処理の模式図である。It is a schematic diagram of the advertising process prescribed|regulated by BT4. BT4で規定されるアドバタイズ処理のためのアドバタイジングパケットの構成例を示す。A configuration example of an advertising packet for advertising processing defined in BT4 is shown. BT5で規定されるアドバタイズ処理の模式図である。It is a schematic diagram of the advertising process prescribed|regulated by BT5. BT5で規定されるアドバタイズ処理のためのアドバタイジングパケットの構成例を示す。A configuration example of an advertising packet for advertising processing defined by BT5 is shown. 第1実施形態におけるデジタルカメラ810による処理を表すフローチャートである。8 is a flowchart showing processing by the digital camera 810 in the first embodiment; 第1実施形態における通信システム800の模式図である。1 is a schematic diagram of a communication system 800 in the first embodiment; FIG. 第1実施形態において通信装置が記憶する対向機情報の構成を例示する図である。4 is a diagram illustrating the configuration of counterpart device information stored in the communication device in the first embodiment; FIG. 第1実施形態におけるデジタルカメラ810-スマートフォン820の通信シーケンスの一例である。It is an example of a communication sequence between a digital camera 810 and a smartphone 820 in the first embodiment. 第1実施形態におけるデジタルカメラ810-スマートフォン820の通信シーケンスの別の例である。It is another example of the communication sequence between the digital camera 810 and the smart phone 820 in the first embodiment. 第1実施形態におけるデジタルカメラ810-スマートフォン830の通信シーケンスの一例である。It is an example of a communication sequence between a digital camera 810 and a smartphone 830 in the first embodiment. 第1実施形態におけるデジタルカメラ810-スマートフォン830の通信シーケンスの別の例である。It is another example of the communication sequence between the digital camera 810 and the smart phone 830 in the first embodiment. BT4で規定されるスキャン処理を表すシーケンス図である。FIG. 10 is a sequence diagram showing scan processing defined by BT4; 図14に示すSCAN_REQパケットおよびSCAN_RSPパケットの構成例を示す。FIG. 15 shows a configuration example of the SCAN_REQ packet and the SCAN_RSP packet shown in FIG. 14; FIG. BT5で規定されるスキャン処理を表すシーケンス図である。FIG. 4 is a sequence diagram showing scan processing defined by BT5; 第2実施形態におけるデジタルカメラ810による処理を表すフローチャートである。9 is a flowchart showing processing by a digital camera 810 in the second embodiment; 第2実施形態におけるデジタルカメラ810-スマートフォン820の通信シーケンスの一例である。It is an example of a communication sequence between a digital camera 810 and a smartphone 820 in the second embodiment. 第2実施形態におけるデジタルカメラ810-スマートフォン830の通信シーケンスの一例である。It is an example of a communication sequence between a digital camera 810 and a smartphone 830 in the second embodiment. 第3実施形態におけるデジタルカメラ810による処理を表すフローチャートである。10 is a flow chart showing processing by a digital camera 810 in the third embodiment; 第3実施形態におけるデジタルカメラ810-スマートフォン820、830の通信シーケンスの一例である。It is an example of a communication sequence between a digital camera 810 and smartphones 820 and 830 in the third embodiment.

以下、添付の図面を参照して、本発明をその実施形態の一例に基づいて詳細に説明する。なお、以下の実施形態において示す構成は一例に過ぎず、本発明は図示された構成に限定されるものではない。 BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, the present invention will be described in detail based on an example of its embodiment with reference to the accompanying drawings. Note that the configurations shown in the following embodiments are merely examples, and the present invention is not limited to the illustrated configurations.

[第1の実施形態]
(BT4とBT5のアドバタイズ処理)
まず、BT4で規定されるアドバタイズ処理について、図3と図4を参照して説明する。図3は、BT4で規定されるアドバタイズ処理の模式図を示す。図3では、縦軸が通信チャネル、横軸が時間経過を表す。ADV_INDパケット310~350はアドバタイジングパケットである。アドバタイズ処理を行うペリフェラル機器は、ADV_INDパケット310~350を、37~39Chのそれぞれのチャネル(周波数チャネル)で送信する。ADV_INDパケット310~330には、ペリフェラル機器(アドバタイジングパケット送信元)の識別子と、最大31オクテットのアドバタイズデータが含まれる。ペリフェラル機器は、ADV_INDパケット310~350を1セットとして、この1セットの送信を周期的に行う。
[First embodiment]
(Advertisement processing of BT4 and BT5)
First, the advertising process defined by BT4 will be described with reference to FIGS. 3 and 4. FIG. FIG. 3 shows a schematic diagram of the advertising process defined by BT4. In FIG. 3, the vertical axis represents the communication channel, and the horizontal axis represents the passage of time. ADV_IND packets 310-350 are advertising packets. A peripheral device that performs advertising processing transmits ADV_IND packets 310 to 350 on respective channels (frequency channels) of 37 to 39 Ch. ADV_IND packets 310 to 330 contain the identifier of the peripheral device (advertising packet transmission source) and advertising data of up to 31 octets. The peripheral device sets ADV_IND packets 310 to 350 as one set and periodically transmits this one set.

図4は、図3に示すADV_INDパケットの構成例を示す。ADV_INDパケットは、Advertising Channel PDU400で示すフォーマットに従って生成され、Header部401とPayload部402から構成される。 FIG. 4 shows a configuration example of the ADV_IND packet shown in FIG. The ADV_IND packet is generated according to the format indicated by the Advertising Channel PDU 400 and consists of a Header section 401 and a Payload section 402 .

Header部401は、PDU Type403、RFU404、ChSel405、TxAdd406、RxAdd407、Length408のデータフィールドから構成される。PDU Type403は、Bluetoothパケットの種別を表すフィールドで、ADV_INDの場合は0000bが指定される。RFU404は、予約領域であり、使用されない。ChSel405は、コネクションやアドバタイズで用いる通信チャネルを選択するアルゴリズム(Channel Selection Algorithm #2)をサポートするかどうかを表すビットフラグである。TxAdd406は、後に示すAdvA411に指定するアドレスがパブリックな値なのかランダムな値なのかを表すビットフラグである。RxAdd407フィールドは、ADV_INDパケットでは利用されない。Length408には、Payload部402の長さ(オクテット)が指定される。 Header part 401 is composed of data fields of PDU Type 403, RFU 404, ChSel 405, TxAdd 406, RxAdd 407, and Length 408. PDU Type 403 is a field indicating the type of Bluetooth packet, and 0000b is specified for ADV_IND. RFU 404 is a reserved area and is not used. ChSel 405 is a bit flag indicating whether an algorithm (Channel Selection Algorithm #2) for selecting a communication channel used for connection or advertisement is supported. TxAdd 406 is a bit flag indicating whether the address specified in AdvA 411 described later is a public value or a random value. The RxAdd 407 field is not used in ADV_IND packets. The Length 408 specifies the length (octet) of the Payload section 402 .

Payload部402(ADV_IND Payload410)は、AdvA411とAdvData412のデータフィールドから構成される。AdvA411には、ペリフェラル機器のアドレスが指定される。AdvData412には、ペリフェラル機器で指定する、最大31オクテットのアドバタイズデータが指定される。 The payload section 402 (ADV_IND Payload 410) is composed of AdvA 411 and AdvData 412 data fields. The AdvA 411 is designated with the address of the peripheral device. AdvData 412 specifies advertisement data of up to 31 octets specified by the peripheral device.

続いて、BT5で規定されるアドバタイズ処理について、図5と図6を参照して説明する。図5は、BT5で規定されるアドバタイズ処理の模式図を示す。図5では、図3と同様に、縦軸が通信チャネル、横軸が時間経過を表す。ADV_EXT_INDパケット510~530、AUX_AND_INDパケット540、AUX_CHAIN_INDパケット550は、アドバタイジングパケットである。アドバタイズ処理を行うペリフェラル機器は、ADV_EXT_INDパケット510~530を、37~39Chでそれぞれ送信する。ADV_EXT_INDパケット510~530には、アドバタイズセットの識別子、次に送信するAUX_ADV_INDパケット540の送信チャネルと送信タイミングなどの情報が指定される。ペリフェラル機器は、ADV_EXT_INDパケット510~530を送信後、ADV_EXT_INDパケット510~530で指定したチャネル(0~36Ch)で、AUX_ADV_INDパケット540を送信する。AUX_ADV_INDパケット540には、ペリフェラル機器で動作するソフトウェアが指定するアドバタイズデータが指定される。当該アドバタイズデータがAUX_ADV_INDパケット540に入りきらない場合、ペリフェラル機器は、残りのデータを、続くAUX_CHAIN_INDパケット550で送信する。以降、ペリフェラル機器は、ADV_EXT_INDパケットとAUX_ADV_INDパケット540(とAUX_CHAIN_INDパケット550)を1セットとして、この1セットの送信を周期的に行う。 Next, the advertising process defined by BT5 will be described with reference to FIGS. 5 and 6. FIG. FIG. 5 shows a schematic diagram of the advertising process defined by BT5. In FIG. 5, as in FIG. 3, the vertical axis represents the communication channel, and the horizontal axis represents the passage of time. ADV_EXT_IND packets 510-530, AUX_AND_IND packet 540, and AUX_CHAIN_IND packet 550 are advertising packets. A peripheral device that performs advertising processing transmits ADV_EXT_IND packets 510 to 530 on 37 to 39 Ch, respectively. ADV_EXT_IND packets 510 to 530 specify information such as the identifier of the Advertise Set, and the transmission channel and transmission timing of AUX_ADV_IND packet 540 to be transmitted next. After transmitting the ADV_EXT_IND packets 510-530, the peripheral device transmits an AUX_ADV_IND packet 540 on the channel (0-36Ch) specified by the ADV_EXT_IND packets 510-530. The AUX_ADV_IND packet 540 specifies advertisement data specified by software operating on the peripheral device. If the advertised data does not fit in AUX_ADV_IND packet 540 , the peripheral device transmits the remaining data in subsequent AUX_CHAIN_IND packet 550 . Thereafter, the peripheral device sets the ADV_EXT_IND packet and the AUX_ADV_IND packet 540 (and the AUX_CHAIN_IND packet 550) as one set, and periodically transmits this one set.

図6は、図3に示すADV_EXT_INDパケット、AUX_ADV_INDパケット、AUX_CHAIN_INDパケットの構成例を示す。これらのパケットはそれぞれ、Advertising Channel PDU600で示すフォーマットに従って生成され、Header部601とPayload部602から構成される。 FIG. 6 shows a configuration example of the ADV_EXT_IND packet, AUX_ADV_IND packet, and AUX_CHAIN_IND packet shown in FIG. Each of these packets is generated according to the format indicated by the Advertising Channel PDU 600 and consists of a Header section 601 and a Payload section 602 .

Header部601は、PDU Type603、RFU604、ChSel605、TxAdd606、RxAdd607、Length608のデータフィールドから構成される。PDU Type603は、Bluetoothパケットの種別を表すフィールドで、ADV_EXT_IND、AUX_ADV_IND、AUX_CHAIN_INDの場合は、いずれも0111bが指定される。RFU604、ChSel605、TxAdd606、RxAdd607は、これらのパケットにおいては使用されない。Length608には、Payload部602の長さ(オクテット)が指定される。 Header part 601 is composed of data fields of PDU Type 603 , RFU 604 , ChSel 605 , TxAdd 606 , RxAdd 607 and Length 608 . PDU Type 603 is a field representing the type of Bluetooth packet, and 0111b is specified for ADV_EXT_IND, AUX_ADV_IND, and AUX_CHAIN_IND. RFU 604, ChSel 605, TxAdd 606, RxAdd 607 are not used in these packets. Length 608 specifies the length (octet) of the payload section 602 .

Payload部602(Common Extended Acvertising Payload610)は、Ext. Header Length611、AdvMode612、Ext. Header613、AdvData614のデータフィールドから構成される。Ext. Header Length611には、Ext. Header613の長さ(オクテット)が指定される。AdvMode612は、アドバタイズのモードを示す領域で、当該アドバタイズが接続可能か否か、検索可能か否かを示すビットフラグを持つ。AdvData614には、ペリフェラル機器で指定する、最大251オクテットのアドバタイズデータが指定される。Ext. Header613は、Ext. Header Flags620、AdvA621、TargetA622、RFU623、AdvData Info624のデータフィールドを含む。Ext. Header613は、更にAuxPtr625、SyncInfo626、TxPower627、ACAD628のデータフィールドを含む。Ext. Header Flags620は、AdvA621からTxPower627までのデータフィールドのうち、どのデータフィールドを含むのかを表すビットフラグである。ADV_EXT_INDパケットおよびAUX_ADV_INDパケットのAdvA621には、ペリフェラル機器のアドレスが指定される。アドバタイズ処理を特定のセントラル機器に対して行う場合、ADV_EXT_INDパケットおよびAUX_ADV_INDパケットのTargetA622には、当該セントラル機器のアドレスが指定される。RFU623は、予約領域であり、使用されない。AdvData Info624フィールドには、パケットのAdvDataを識別する12bitの値と、一連のアドバタイズデータセットを識別する4bitの値が指定される。AuxPtr625には、後に続くアドバタイジングパケットの送信チャネル、送信タイミング、送信PHYの種別、ペリフェラル機器の動作クロックの精度の情報が指定される。SyncInfo626は、図5に示すアドバタイズ処理においては使用されない。TxPower627には、パケットの送信出力を表すデータが指定される。ACAD628には、拡張データが指定される。 The payload section 602 (Common Extended Activating Payload 610) includes Ext. Header Length 611, AdvMode 612, Ext. It is composed of data fields of Header 613 and AdvData 614 . Ext. Header Length 611 includes Ext. The length (octet) of Header 613 is specified. AdvMode 612 is an area indicating the mode of advertisement, and has bit flags indicating whether the advertisement is connectable or searchable. AdvData 614 specifies advertisement data of up to 251 octets specified by the peripheral device. Ext. Header 613 is Ext. Data fields of Header Flags 620, AdvA 621, TargetA 622, RFU 623 and AdvData Info 624 are included. Ext. Header 613 further includes AuxPtr 625, SyncInfo 626, TxPower 627, and ACAD 628 data fields. Ext. Header Flags 620 is a bit flag indicating which data field is included among data fields from AdvA 621 to TxPower 627 . AdvA 621 of the ADV_EXT_IND packet and AUX_ADV_IND packet specifies the address of the peripheral device. When advertising processing is performed for a specific central device, the address of the central device is specified in Target A622 of the ADV_EXT_IND packet and AUX_ADV_IND packet. RFU 623 is a reserved area and is not used. The AdvData Info 624 field specifies a 12-bit value identifying the AdvData of the packet and a 4-bit value identifying a series of advertising data sets. The AuxPtr 625 specifies information about the transmission channel, transmission timing, type of transmission PHY, and precision of the operating clock of the peripheral device of the subsequent advertising packet. SyncInfo 626 is not used in the advertising process shown in FIG. The TxPower 627 is designated with data representing the transmission power of the packet. Extension data is specified in ACAD 628 .

(ペリフェラル機器の構成)
次に、本実施形態においてペリフェラル機器として動作する通信装置1の構成について説明する。まず、ハードウェア構成について説明する。図1は、通信装置1のハードウェア構成例を示す。本実施形態では、通信装置1は、通信機能を有するデジタルカメラを想定する。通信装置1は、Host部10とBluetooth Controller部15で構成される。
(Configuration of peripheral equipment)
Next, the configuration of the communication device 1 that operates as a peripheral device in this embodiment will be described. First, the hardware configuration will be explained. FIG. 1 shows an example hardware configuration of a communication device 1 . In this embodiment, the communication device 1 is assumed to be a digital camera having a communication function. The communication device 1 is composed of a host section 10 and a Bluetooth controller section 15 .

Host部10は、表示部100、操作部101、記憶部102、電源部103、BT Controller I/F104、制御部105、ROM106、RAM107、撮像部108、無線LANアンテナ制御部109、無線LANアンテナ110を含んで構成される。 The host unit 10 includes a display unit 100, an operation unit 101, a storage unit 102, a power supply unit 103, a BT controller I/F 104, a control unit 105, a ROM 106, a RAM 107, an imaging unit 108, a wireless LAN antenna control unit 109, and a wireless LAN antenna 110. Consists of

表示部100および操作部101は、アプリケーションの表示や実行等を行う。記憶部102は、無線通信ネットワーク情報、データ送受信情報、画像データなど各種データを記憶し、管理する。電源部103は、例えばバッテリであり、Host部10の電源を供給する。BT Controller I/F104は、Bluetooth Controller部15と接続するインタフェースである。制御部105は、例えばCPUであり、スマートフォン1の各構成要素の動作を制御する。ROM106は、制御命令つまり制御プログラムを格納する。RAM107は、プログラムを実行する際のワークメモリやデータの一時保存などに利用される。撮像部108は、写真や動画の撮影を行う。無線LANアンテナ制御部109は、無線LANアンテナ110を制御し、無線LAN通信を行う。 A display unit 100 and an operation unit 101 display and execute applications. The storage unit 102 stores and manages various data such as wireless communication network information, data transmission/reception information, and image data. The power supply unit 103 is, for example, a battery, and supplies power to the host unit 10 . A BT controller I/F 104 is an interface that connects with the Bluetooth controller unit 15 . The control unit 105 is a CPU, for example, and controls the operation of each component of the smartphone 1 . ROM 106 stores control instructions, that is, control programs. The RAM 107 is used as a work memory when executing a program and for temporary storage of data. The imaging unit 108 takes pictures and videos. A wireless LAN antenna control unit 109 controls a wireless LAN antenna 110 to perform wireless LAN communication.

Bluetooth Controller部15は、Host I/F150、電源部151、ROM152、RAM153、制御部154、BTアンテナ制御部155、BTアンテナ156を含んで構成される。 The Bluetooth controller section 15 includes a Host I/F 150 , a power supply section 151 , a ROM 152 , a RAM 153 , a control section 154 , a BT antenna control section 155 and a BT antenna 156 .

Host I/F150は、Host部10と接続するインタフェースである。電源部151は、例えばバッテリであり、BLE Controller部15の電源を供給する。ROM152は、制御命令つまり制御プログラムを格納するものであり、ここでは特にBLE通信に係るプログラムを格納する。RAM153は、プログラムを実行する際のワークメモリやデータの一時保存などに利用される。制御部154は、例えばCPUであり、BLE Controller部15の各構成要素の動作を制御する。BTアンテナ制御部155は、BTアンテナ156を制御し、Bluetooth通信を行う。 The Host I/F 150 is an interface that connects with the Host section 10 . The power supply unit 151 is, for example, a battery, and supplies power to the BLE controller unit 15 . The ROM 152 stores control instructions, that is, control programs, and particularly stores programs related to BLE communication here. The RAM 153 is used as a work memory when executing a program and for temporary storage of data. The control unit 154 is a CPU, for example, and controls the operation of each component of the BLE controller unit 15 . The BT antenna control unit 155 controls the BT antenna 156 and performs Bluetooth communication.

続いて、ペリフェラル機器として動作する通信装置1の機能構成について説明する。図2は、通信装置1の機能構成例を示す。なお、本実施形態においては、以下に示す機能構成の各構成要素はソフトウェアプログラムとして機能が実施されるものとするが、本機能構成に含まれる一部または全部がハードウェア化されていてもよい。 Next, a functional configuration of the communication device 1 operating as a peripheral device will be described. FIG. 2 shows an example of the functional configuration of the communication device 1. As shown in FIG. In this embodiment, each component of the functional configuration shown below functions as a software program, but part or all included in this functional configuration may be implemented as hardware. .

BT通信制御部210は、BTアンテナ制御部155を介したBluetooth通信を制御する。BT通信制御部210は、BT4通信制御部211とBT5通信制御部212により構成される。BT4通信制御部211は、BT4に従うBluetooth通信を制御し、図3、図4を用いて詳述したアドバタイズ処理を実行する。BT5通信制御部212は、BT5に従うBluetooth通信を制御し、図5、図6を用いて詳述したアドバタイズ処理を実行する。 The BT communication control section 210 controls Bluetooth communication via the BT antenna control section 155 . The BT communication control section 210 is composed of a BT4 communication control section 211 and a BT5 communication control section 212 . The BT4 communication control unit 211 controls Bluetooth communication conforming to BT4, and executes the advertising process detailed with reference to FIGS. 3 and 4 . The BT5 communication control unit 212 controls Bluetooth communication conforming to BT5, and executes the advertising process detailed with reference to FIGS.

アドバタイズ状態管理部220は、BT4とBT5のいずれかに従うアドバタイズ処理を実行するのかをBT通信制御部210に指示する。また、アドバタイズ状態管理部220は、BT通信制御部210におけるアドバタイズ処理の実行状態を管理する。 The advertising state management unit 220 instructs the BT communication control unit 210 as to whether the advertising process according to either BT4 or BT5 is to be executed. Also, the advertising state management unit 220 manages the execution state of advertising processing in the BT communication control unit 210 .

対対向機情報管理部230は、通信装置1がBluetoothおよび無線LANで通信する対向機の機器情報を、例えばテーブルを用いて管理する。図9に、対向機情報管理部230が対向機の機器情報を管理するために用いる対向機管理テーブル900の一例を示す。なお、本実施形態では、通信装置1は、1台の対向機の機器情報を管理できるものとする。対向機管理テーブル900は、対向機を一意に識別する識別情報920、対向機がサポートするBluetoothのバージョンを表すサポートBLEバージョン情報930を含んで構成される。本実施形態において、識別情報920は、例えば、対向機のUUID(Universally Unique Identifier)である。また、サポートBLEバージョン情報930は、BT4またはBT5を表す値に対応する。 The counterpart device information management unit 230 manages the device information of the counterpart device with which the communication device 1 communicates via Bluetooth and wireless LAN, using a table, for example. FIG. 9 shows an example of a counterpart device management table 900 used by the counterpart device information management unit 230 to manage the device information of the counterpart device. In this embodiment, it is assumed that the communication device 1 can manage the device information of one counterpart device. The counterpart device management table 900 includes identification information 920 that uniquely identifies the counterpart device, and support BLE version information 930 that indicates the version of Bluetooth supported by the counterpart device. In this embodiment, the identification information 920 is, for example, the UUID (Universally Unique Identifier) of the counterpart device. Also, the supported BLE version information 930 corresponds to a value representing BT4 or BT5.

図2に戻り、無線LAN通信制御部240は、無線LANアンテナ制御部109を介した無線LAN通信を制御する。表示制御部250は、表示部100への各種表示制御を行う。 Returning to FIG. 2 , the wireless LAN communication control section 240 controls wireless LAN communication via the wireless LAN antenna control section 109 . The display control unit 250 performs various display controls on the display unit 100 .

(システム構成)
続いて、本実施形態において想定する通信システムの構成について説明する。図8は、本実施形態における通信システム800の模式図である。通信システム800は、デジタルカメラ810と、デジタルカメラ810に対向するスマートフォン820、830から構成される。デジタルカメラ810は、上記のように構成される、ペリフェラル機器として動作する通信装置1とする。また、スマートフォン820、830は、セントラル機器として動作し、スマートフォン820はBT5をサポートし、スマートフォン830はBT4をサポートし、BT5をサポートしないものとする。すなわち、スマートフォン820はBT5に対応し、スマートフォン830は、BT4に対応し、BT5に非対応とする。また、デジタルカメラ810とスマートフォン820、830は、Bluetooth通信840および無線LAN通信850を用いて互いに信号の通信を行うことができるものとする。なお、以下の説明において、スマートフォン820、830の(少なくとも)一方を総称して対向機とも称する。
(System configuration)
Next, the configuration of the communication system assumed in this embodiment will be described. FIG. 8 is a schematic diagram of a communication system 800 in this embodiment. A communication system 800 includes a digital camera 810 and smartphones 820 and 830 facing the digital camera 810 . The digital camera 810 is assumed to be the communication device 1 configured as described above and operating as a peripheral device. It is also assumed that smartphones 820 and 830 operate as central devices, smartphone 820 supports BT5, smartphone 830 supports BT4, and does not support BT5. That is, the smartphone 820 supports BT5, the smartphone 830 supports BT4, and does not support BT5. It is also assumed that the digital camera 810 and the smartphones 820 and 830 can perform signal communication with each other using Bluetooth communication 840 and wireless LAN communication 850 . In addition, in the following description, (at least) one of the smartphones 820 and 830 is also generically referred to as a counterpart device.

(処理の流れ)
次に図7を参照して、デジタルカメラ810の処理の流れを説明する。図7は、デジタルカメラ810による処理を表すフローチャートである。図7に示すフローチャートは、デジタルカメラ810の制御部105や制御部154がROM106やROM152に記憶されている制御プログラムを実行し、情報の演算および加工並びに各ハードウェアの制御を実行することにより実現され得る。本処理は、ユーザがデジタルカメラ810の操作部101を操作して、連携処理開始を指示することにより開始され得る。
(Processing flow)
Next, referring to FIG. 7, the processing flow of the digital camera 810 will be described. FIG. 7 is a flow chart showing processing by the digital camera 810 . The flowchart shown in FIG. 7 is realized by executing control programs stored in the ROM 106 and ROM 152 by the control unit 105 and the control unit 154 of the digital camera 810, and by executing calculation and processing of information and control of each hardware. can be This processing can be started by the user operating the operation unit 101 of the digital camera 810 to instruct the start of cooperative processing.

本処理が開始されると、デジタルカメラ810の対向機情報管理部230は、対向機管理テーブル900を参照し、対向機の機器情報(図9を参照)が登録されているかを確認する(S701)。対向機の機器情報が登録されていない場合(S701でNO)、BT通信制御部210は、BT4に従うアドバタイズ処理(図3、図4)と、BT5に従うアドバタイズ処理(図5、図6)を開始する(S702)。すなわち、BT通信制御部210は、BT4に従うアドバタイジングパケットとBT5に従うアドバタイジングパケットの双方を送信する。本処理において、デジタルカメラ810は、自身の識別子として、自身のUUIDをアドバタイジングパケットに設定して送信する。より具体的には、デジタルカメラ810は、ADV_INDパケットのAdvDataフィールド412、およびAUX_ADV_INDパケットのAdvDataフィールド614に、16ByteのUUIDデータを設定して送信する。 When this process is started, the counterpart device information management unit 230 of the digital camera 810 refers to the counterpart device management table 900 and checks whether device information (see FIG. 9) of the counterpart device is registered (S701). ). If the device information of the counterpart device is not registered (NO in S701), the BT communication control unit 210 starts advertising processing according to BT4 (FIGS. 3 and 4) and advertising processing according to BT5 (FIGS. 5 and 6). (S702). That is, BT communication control section 210 transmits both the advertising packet according to BT4 and the advertising packet according to BT5. In this process, the digital camera 810 sets its own UUID as its own identifier in the advertising packet and transmits it. More specifically, the digital camera 810 sets and transmits 16-byte UUID data in the AdvData field 412 of the ADV_IND packet and the AdvData field 614 of the AUX_ADV_IND packet.

続いて、BT通信制御部210は、対向機からのGATT(Generic Attribute)プロファイルに従う通信(以下「GATT通信」とする)による接続を待ち受ける(S703)。対向機とGATT通信で接続すると(S703でYES)、デジタルカメラ810のBT通信制御部210は、対向機の識別情報を取得する。そして、表示制御部250は、取得した識別情報と、接続した対向機を登録するかどうかをユーザに選択させるメニューとを表示部100に表示する(S704)。ユーザが操作部101を操作して、接続した対向機を登録しないメニューを選択した場合(S705でNO)、BT通信制御部210は、接続した対向機とのGATT通信の接続を切断して、S702のアドバタイズ処理を継続する。一方、ユーザが、接続した対向機を登録するメニューを選択した場合(S705でYES)、BT通信制御部210は、GATT通信を用いて、当該接続した対向機がサポートするBluetoothバージョンを取得する(S706)。取得した識別情報と、サポートするBluetoothバージョンは、それぞれ識別情報920とサポートBLEバージョン情報930として、対向機情報管理部230により対向機管理テーブル900に登録される。BT通信制御部210は、GATT通信を用いて、無線LAN通信制御部240が生成する無線LANネットワークの設定情報、およびデジタルカメラ810の動作状態を対向機に通知する(S707)。 Subsequently, the BT communication control unit 210 waits for connection from the counterpart device through communication conforming to a GATT (Generic Attribute) profile (hereinafter referred to as "GATT communication") (S703). When connected to the counterpart device by GATT communication (YES in S703), the BT communication control unit 210 of the digital camera 810 acquires the identification information of the counterpart device. Then, the display control unit 250 displays the acquired identification information and a menu for allowing the user to select whether or not to register the connected counterpart device on the display unit 100 (S704). When the user operates the operation unit 101 and selects a menu not to register the connected counterpart device (NO in S705), the BT communication control unit 210 disconnects the GATT communication connection with the connected counterpart device, The advertising process of S702 is continued. On the other hand, if the user selects the menu for registering the connected counterpart device (YES in S705), the BT communication control unit 210 uses GATT communication to acquire the Bluetooth version supported by the connected counterpart device ( S706). The acquired identification information and the supported Bluetooth version are registered in the counterpart device management table 900 by the counterpart device information management unit 230 as identification information 920 and supported BLE version information 930, respectively. The BT communication control unit 210 uses GATT communication to notify the wireless LAN network setting information generated by the wireless LAN communication control unit 240 and the operating state of the digital camera 810 to the counterpart device (S707).

続いて、BT通信制御部210がGATT通信で対向機から無線LAN開始要求メッセージを受信すると(S712)、無線LAN通信制御部240はアクセスポイントとして無線LANネットワークを生成する(S713)。この状態でデジタルカメラ810は、対向機からの無線LAN接続を待ち受ける。また、BT通信制御部210は、Bluetoothのアドバタイズ処理を停止する(S714)。無線LAN通信を用いた対向機との連携処理が終了すると(S715)、無線LAN通信制御部240は、アクセスポイント機能を停止し(S716)、対向機との無線LAN接続を切断する。次に、対向機情報管理部230は、対向機管理テーブル900に登録されている対向機のサポートBLEバージョン情報930を確認する(S717)。対向機がBT4をサポートする場合(S717でNO)、BT通信制御部210は、BT4に従うアドバタイズ処理を開始する(S718)。当該アドバタイズ処理では、デジタルカメラのUUIDを送信する。一方、対向機がBT5をサポートする場合(S717でYES)、BT通信制御部210はBT5に従うアドバタイズ処理を開始する(S719)。当該アドバタイズ処理では、デジタルカメラのUUID、無線LAN通信制御部240が生成する無線LANネットワークの設定情報、およびデジタルカメラ810の動作状態が送信される。 Subsequently, when the BT communication control unit 210 receives a wireless LAN start request message from the counterpart device through GATT communication (S712), the wireless LAN communication control unit 240 creates a wireless LAN network as an access point (S713). In this state, the digital camera 810 waits for wireless LAN connection from the counterpart device. The BT communication control unit 210 also stops the Bluetooth advertising process (S714). When the cooperative process with the counterpart device using wireless LAN communication ends (S715), the wireless LAN communication control unit 240 stops the access point function (S716) and disconnects the wireless LAN connection with the counterpart device. Next, the counterpart device information management unit 230 checks the supported BLE version information 930 of the counterpart device registered in the counterpart device management table 900 (S717). If the counterpart device supports BT4 (NO in S717), BT communication control section 210 starts advertising processing according to BT4 (S718). In the advertising process, the UUID of the digital camera is transmitted. On the other hand, if the counterpart device supports BT5 (YES in S717), the BT communication control unit 210 starts advertising processing according to BT5 (S719). In the advertising process, the UUID of the digital camera, wireless LAN network setting information generated by the wireless LAN communication control unit 240, and the operating state of the digital camera 810 are transmitted.

S701の確認処理で、対向機の機器情報が登録されていた場合(S701でYES)、対向機情報管理部230は、対向機管理テーブル900に登録されている対向機のサポートBLEバージョン情報930を確認する(S708)。対向機がBT4をサポートする場合(S708でNO)、BT通信制御部210はBT4に従うアドバタイズ処理を開始する(S709)。当該アドバタイズ処理では、デジタルカメラ810のUUIDを送信する。次にBT通信制御部210が対向からのGATT通信による接続を待ち受け(S710)、対向機とGATT通信で接続すると(S710でYES)、デジタルカメラ810は、上述したS707以降の処理を実施する。 In the confirmation process of S701, if the device information of the counterpart device is registered (YES in S701), the counterpart device information management unit 230 updates the supported BLE version information 930 of the counterpart device registered in the counterpart device management table 900. Confirm (S708). If the counterpart device supports BT4 (NO in S708), the BT communication control unit 210 starts advertising processing according to BT4 (S709). In the advertising process, the UUID of the digital camera 810 is transmitted. Next, when the BT communication control unit 210 waits for a connection from the other party via GATT communication (S710), and connects to the other device via GATT communication (YES at S710), the digital camera 810 performs the above-described processing from S707 onward.

一方、対向機がBT5をサポートする場合(S708でYES)、BT通信制御部210はBT5に従うアドバタイズ処理を開始する(S711)。当該アドバタイズ処理では、デジタルカメラのUUID、無線LAN通信制御部240が生成する無線LANネットワークの設定情報、およびデジタルカメラ810の動作状態が送信される。なお、ここで通知される無線LANネットワークの設定情報、およびデジタルカメラ810の動作状態のデータは、S707においてGATT通信で送信データと同一であり得る。続いてデジタルカメラ810は、上述したS712以降の処理を実施する。 On the other hand, if the counterpart device supports BT5 (YES in S708), the BT communication control unit 210 starts advertising processing according to BT5 (S711). In the advertising process, the UUID of the digital camera, wireless LAN network setting information generated by the wireless LAN communication control unit 240, and the operating state of the digital camera 810 are transmitted. Note that the setting information of the wireless LAN network and the data of the operating state of the digital camera 810 notified here can be the same as the data transmitted by the GATT communication in S707. Subsequently, the digital camera 810 performs the processes after S712 described above.

次に、図10~図13のシーケンスチャートを用いて、本実施形態におけるデジタルカメラ810とスマートフォン820、830との通信シーケンスの一例を詳述する。図10は、デジタルカメラ810とスマートフォン820が最初に接続する場合の通信シーケンスである。前述した通り、スマートフォン820はBT5をサポートするものとする。 Next, an example of a communication sequence between the digital camera 810 and smartphones 820 and 830 in this embodiment will be described in detail using sequence charts in FIGS. FIG. 10 shows a communication sequence when the digital camera 810 and the smart phone 820 are connected for the first time. As described above, smartphone 820 is assumed to support BT5.

ユーザがデジタルカメラ810を操作してスマートフォンとの連携処理開始を指示すると(S1001)、BT通信制御部210は、Bluetooth通信機能を起動し(S1002)、アドバタイズ処理を開始する。BT通信制御部210は、BT4に従うアドバタイジングパケット(S1003)およびBT5に従うアドバタイジングパケット(S1004)を、周期的に送信する(図3~図6を参照)。BT5をサポートするスマートフォン820は、BT5に従うアドバタイジングパケットを受信し(S1005)、デジタルカメラ810と接続するためのメニュー(デジタルカメラ810の存在)をユーザに対して表示する(S1006)。 When the user operates the digital camera 810 to give an instruction to start cooperation processing with a smartphone (S1001), the BT communication control unit 210 activates the Bluetooth communication function (S1002) and starts advertising processing. BT communication control section 210 periodically transmits an advertising packet (S1003) according to BT4 and an advertising packet (S1004) according to BT5 (see FIGS. 3 to 6). Smartphone 820 that supports BT5 receives the advertising packet conforming to BT5 (S1005), and displays a menu for connecting to digital camera 810 (existence of digital camera 810) to the user (S1006).

ユーザが、スマートフォン820においてデジタルカメラ810と接続する操作を行うと(S1007)、スマートフォン820は、デジタルカメラ810とGATT通信の接続を試みる(S1008)。デジタルカメラ810は、GATT通信接続(S1008)で取得したスマートフォン820の識別情報(アドレス情報)とスマートフォン820を登録するかどうかをユーザに選択させるメニューとを表示部100に表示する(S1009)。ユーザが、デジタルカメラ810において、スマートフォン820を登録するメニューを選択すると(S1010)、デジタルカメラ810は、GATT通信を用いてスマートフォン820がサポートするBluetoothのバージョンを要求するメッセージを送信する(S1011)。スマートフォン820はこれを受けて、自身がBT5をサポートすることを示す応答メッセージをデジタルカメラ810に送信する(S1012)。デジタルカメラ810はこれを受けて、スマートフォン820の識別情報とサポートするBluetoothバージョンを、それぞれ識別情報920とサポートBLEバージョン情報930として、対向機管理テーブル900に登録する(S1013)。 When the user performs an operation to connect to the digital camera 810 on the smartphone 820 (S1007), the smartphone 820 attempts to connect to the digital camera 810 via GATT communication (S1008). The digital camera 810 displays the identification information (address information) of the smartphone 820 acquired through the GATT communication connection (S1008) and a menu for allowing the user to select whether to register the smartphone 820 on the display unit 100 (S1009). When the user selects a menu for registering the smartphone 820 on the digital camera 810 (S1010), the digital camera 810 transmits a message requesting the Bluetooth version supported by the smartphone 820 using GATT communication (S1011). The smartphone 820 receives this and transmits a response message indicating that it supports BT5 to the digital camera 810 (S1012). In response to this, the digital camera 810 registers the identification information of the smartphone 820 and the supported Bluetooth version in the counterpart device management table 900 as the identification information 920 and the supported BLE version information 930, respectively (S1013).

次にスマートフォン820は、GATT通信でデジタルカメラ810からデジタルカメラ810の動作状態と無線LANネットワークの設定情報を取得し(S1014)、デジタルカメラ810と無線LAN接続できるかどうかを判定する(S1015)。スマートフォン820は、無線LAN接続できると判定すると、GATT通信でデジタルカメラ810に無線LAN機能の開始を要求するメッセージを送信する(S1016)。デジタルカメラ810はこれを受けて無線LAN機能を起動し(S1017)、Bluetoothのアドバタイズ処理を停止する(S1018)。スマートフォン820は、S1014で取得した設定情報を用いてデジタルカメラ810が生成したネットワークに無線LANで接続し(S1019)、無線LAN通信を用いたサービス連携処理を開始する(S1020)。 Next, the smartphone 820 acquires the operating state of the digital camera 810 and wireless LAN network setting information from the digital camera 810 via GATT communication (S1014), and determines whether wireless LAN connection with the digital camera 810 is possible (S1015). When determining that the wireless LAN connection is possible, the smartphone 820 transmits a message requesting the start of the wireless LAN function to the digital camera 810 via GATT communication (S1016). In response to this, the digital camera 810 activates the wireless LAN function (S1017) and stops the Bluetooth advertising process (S1018). The smartphone 820 uses the setting information acquired in S1014 to connect to the network generated by the digital camera 810 via the wireless LAN (S1019), and starts service cooperation processing using wireless LAN communication (S1020).

その後、ユーザがスマートフォン820を操作して当該サービス連携処理を終了させると(S1021)、スマートフォン820は、デジタルカメラ810との無線LAN接続を切断する(S1022)。デジタルカメラ810は、無線LANの切断を検知すると、無線LAN機能を停止し(S1023)、Bluetooth通信機能を起動する(S1024)。S1013でスマートフォン820がBT5をサポートすることを記憶したので、BT通信制御部210は、BT5に従うアドバタイジングパケットのみを周期的に送信する(S1025、S1026)。当該アドバタイジングパケットには、デジタルカメラ810のUUID、動作状態、およびデジタルカメラ810が生成する無線LANネットワークの設定情報が含まれ得る。 After that, when the user operates the smartphone 820 to end the service cooperation processing (S1021), the smartphone 820 disconnects the wireless LAN connection with the digital camera 810 (S1022). When detecting disconnection of the wireless LAN, the digital camera 810 stops the wireless LAN function (S1023) and activates the Bluetooth communication function (S1024). Since smartphone 820 has stored in S1013 that it supports BT5, BT communication control unit 210 periodically transmits only advertising packets conforming to BT5 (S1025, S1026). The advertising packet may include the UUID of digital camera 810 , operating status, and wireless LAN network setting information generated by digital camera 810 .

図11は、図10の処理が完了した後、デジタルカメラ810とスマートフォン820が2回目以降に接続する場合の通信シーケンスである。デジタルカメラ810は、スマートフォン820がBT5をサポートすることを記憶しているので、BT通信制御部210は、BT5に従うアドバタイジングパケットのみを周期的に送信する(S1101、S1102)。スマートフォン820は、当該アドバタイジングパケットを受信すると(S1103)、当該アドバタイジングパケットからデジタルカメラ810のUUID、動作状態、およびデジタルカメラ810が生成する無線LANネットワークの設定情報を取得する。スマートフォン820は、当該情報を用いてデジタルカメラ810との無線LAN接続可否を判定する(S1104)。接続可能であると判定した場合、スマートフォン820は、ユーザに接続の確認を促すメッセージを表示し、ユーザはスマートフォン820を操作してこれを確認する(S1105)。ユーザによる確認操作が行われると、スマートフォン820はデジタルカメラ810とGATT通信の接続を試みる(S1106)。以降S1107~S1117の処理は、図10で示したS1016~S1026と同一であるため、説明を省略する。 FIG. 11 shows a communication sequence when the digital camera 810 and the smart phone 820 are connected for the second time or later after the processing of FIG. 10 is completed. Since digital camera 810 stores that smart phone 820 supports BT5, BT communication control section 210 periodically transmits only advertising packets conforming to BT5 (S1101, S1102). Upon receiving the advertising packet (S1103), the smartphone 820 acquires the UUID of the digital camera 810, the operating state, and the wireless LAN network setting information generated by the digital camera 810 from the advertising packet. The smartphone 820 uses the information to determine whether wireless LAN connection with the digital camera 810 is possible (S1104). If it is determined that the connection is possible, the smartphone 820 displays a message prompting the user to confirm connection, and the user operates the smartphone 820 to confirm this (S1105). When the confirmation operation is performed by the user, the smartphone 820 attempts to connect the digital camera 810 and GATT communication (S1106). Since the processing of S1107 to S1117 is the same as that of S1016 to S1026 shown in FIG. 10, the description thereof is omitted.

図12は、デジタルカメラ810とスマートフォン830が最初に接続する場合の通信シーケンスである。前述したとおり、スマートフォン830はBT4をサポートし、BT55をサポートしないものとする。なお、以下では図10との差分についてのみ説明する。処理開始後、デジタルカメラ810の動作は図10と同一であるが、スマートフォン830はBT5をサポートしないので、BT4に従うアドバタイジングパケットを受信する(S1205)。以降、S1206~S1211の処理は、S1006~S1011と同一である。サポートバージョンの要求メッセージ(S1211)を受信したスマートフォン830は、自身がBT4をサポートすることを表す応答メッセージをデジタルカメラ810に送信する(S1212)。デジタルカメラ810はこれを受けて、スマートフォン830がBT4をサポートすることを対向機管理テーブル900に登録する(S1213)。以降、S1214~S1224の処理は、S1014~S1024と同一である。デジタルカメラ810はBluetooth通信機能を起動すると(S1224)、BT4に従うアドバタイジングパケットのみを周期的に送信する(S1225、S1226)。当該アドバタイジングパケットには、デジタルカメラ810のUUIDが含まれ得る。 FIG. 12 shows a communication sequence when digital camera 810 and smartphone 830 are first connected. As mentioned above, smartphone 830 supports BT4 and does not support BT55. Only differences from FIG. 10 will be described below. After the start of processing, the operation of digital camera 810 is the same as in FIG. 10, but since smart phone 830 does not support BT5, it receives an advertising packet conforming to BT4 (S1205). After that, the processing of S1206-S1211 is the same as that of S1006-S1011. Upon receiving the support version request message (S1211), the smartphone 830 transmits a response message indicating that it supports BT4 to the digital camera 810 (S1212). The digital camera 810 receives this and registers in the counterpart device management table 900 that the smartphone 830 supports BT4 (S1213). After that, the processing of S1214 to S1224 is the same as that of S1014 to S1024. When the digital camera 810 activates the Bluetooth communication function (S1224), it periodically transmits only advertising packets conforming to BT4 (S1225, S1226). The advertising packet may contain the UUID of the digital camera 810 .

図13は、図12の処理が完了した後、デジタルカメラ810とスマートフォン830が2回目以降に接続する場合の通信シーケンスである。デジタルカメラ810は、スマートフォン830がBT4をサポートすることを記憶しているので、BT通信制御部210は、BT4に従うアドバタイジングパケットのみを周期的に送信する(S1301、S1302)。スマートフォン830は、当該アドバタイジングパケットを受信すると(S1303)、当該アドバタイジングパケットからデジタルカメラ810のUUIDを取得し、デジタルカメラ810の存在をユーザに対して表示する。ユーザがスマートフォン830でデジタルカメラ810と接続する操作を行うと(S1304)、スマートフォン830はデジタルカメラ810とGATT通信の接続を試みる(S1305)。次にスマートフォン830は、GATT通信でデジタルカメラ810からデジタルカメラ810の動作状態とネットワーク設定を取得し(S1306)、デジタルカメラ810と無線LAN接続できるかどうかを判定する(S1307)。以降、S1308~S1318の処理は、図12で示したS1216~1226と同一であるため、説明を省略する。 FIG. 13 shows a communication sequence when the digital camera 810 and the smartphone 830 are connected for the second time or later after the processing of FIG. 12 is completed. Since digital camera 810 stores that smartphone 830 supports BT4, BT communication control section 210 periodically transmits only advertising packets conforming to BT4 (S1301, S1302). Upon receiving the advertising packet (S1303), smartphone 830 acquires the UUID of digital camera 810 from the advertising packet and displays the presence of digital camera 810 to the user. When the user performs an operation to connect the smartphone 830 to the digital camera 810 (S1304), the smartphone 830 attempts to connect the digital camera 810 and GATT communication (S1305). Next, the smartphone 830 acquires the operating state and network settings of the digital camera 810 from the digital camera 810 via GATT communication (S1306), and determines whether wireless LAN connection with the digital camera 810 is possible (S1307). After that, the processing of S1308 to S1318 is the same as that of S1216 to S1226 shown in FIG. 12, so the explanation is omitted.

以上説明したように、本実施形態によれば、通信装置は、対向機がサポートするBluetoothバージョンに応じて適切なアドバタイズパケットを送信することが出来る。これにより、通信装置における消費電力を低減することができる。 As described above, according to this embodiment, the communication device can transmit an appropriate advertisement packet according to the Bluetooth version supported by the counterpart device. As a result, power consumption in the communication device can be reduced.

(第2実施形態)
第1実施形態では、通信装置1(デジタルカメラ810)が対向機のサポートするBluetoothバージョンを判定する方法として、GATT通信を用いる方法(S706)を説明した。しかしながら、本発明はこの方法を制限するものではなく、他の方法を用いて判定しても良い。以下では、アドバタイジングパケットに対するスキャンパケットを用いて対向機のサポートするBluetoothバージョンを判定する例を示す。
(Second embodiment)
In the first embodiment, the method using GATT communication (S706) has been described as a method for the communication device 1 (digital camera 810) to determine the Bluetooth version supported by the counterpart device. However, the present invention does not limit this method, and other methods may be used for determination. An example of determining the Bluetooth version supported by the counterpart device using a scan packet for advertising packets will be described below.

(BT4とBT5のスキャン処理)
まず、BT4で規定されるスキャン処理について、図14と図15を参照して説明する。図14は、BT4で規定されるスキャン処理を表すシーケンス図である。アドバタイズ処理を行うペリフェラル機器1400が送信するADV_INDパケットをセントラル機器1410が受信すると(S1401)、セントラル機器1410はSCAN_REQパケットをペリフェラル機器1400に送信する(S1402)。このとき、セントラル機器1410は、ADV_INDパケットを受信したチャネルと同じチャネルでSCAN_REQパケットを送信する。SCAN_REQパケットを受信したペリフェラル機器1400は、SCAN_RSPパケットをセントラル機器1410に送信することでこれに応答する(S1403)。
(Scan processing of BT4 and BT5)
First, the scan processing specified by BT4 will be described with reference to FIGS. 14 and 15. FIG. FIG. 14 is a sequence diagram showing scan processing defined by BT4. When the central device 1410 receives an ADV_IND packet transmitted by the peripheral device 1400 that performs advertising processing (S1401), the central device 1410 transmits a SCAN_REQ packet to the peripheral device 1400 (S1402). At this time, central device 1410 transmits the SCAN_REQ packet on the same channel on which it received the ADV_IND packet. The peripheral device 1400 that has received the SCAN_REQ packet responds by transmitting a SCAN_RSP packet to the central device 1410 (S1403).

図15は、図14に示すSCAN_REQパケットおよびSCAN_RSPパケットの構成例を示す。SCAN_REQパケットおよびSCAN_RSPパケットは、Advertising Channel PDU1500で示すフォーマットに従って生成され、Header部1501とPayload部1502から構成される。なお、Header部1501の構成は、前述の第1実施形態の図4で説明したものと同一であるため、ここでは説明を省略する。なお、SCAN_REQパケットの場合はPDU Type1503に0011bが、SCAN_RSPパケットの場合はPDU Type1503に0100bがそれぞれ指定される。 FIG. 15 shows a configuration example of the SCAN_REQ packet and SCAN_RSP packet shown in FIG. The SCAN_REQ packet and the SCAN_RSP packet are generated according to the format indicated by Advertising Channel PDU 1500 and consist of Header section 1501 and Payload section 1502 . Note that the configuration of the Header section 1501 is the same as that described with reference to FIG. 4 of the first embodiment, so description thereof will be omitted here. Note that 0011b is specified in the PDU Type 1503 in the case of the SCAN_REQ packet, and 0100b is specified in the PDU Type 1503 in the case of the SCAN_RSP packet.

SCAN_REQ Payload1510は、SCAN_REQパケットのPayload部1502の構成を示す。SCAN_REQ Payload1510は、ScanA1511とAdvA1512のデータフィールドから構成される。ScanA1511には、SCAN_REQを送信するセントラル機器のアドレスが指定される。AdvA1512には、ADV_INDを送信したペリフェラル機器のアドレスが指定される。 A SCAN_REQ payload 1510 indicates the configuration of the payload section 1502 of the SCAN_REQ packet. The SCAN_REQ Payload 1510 is composed of ScanA 1511 and AdvA 1512 data fields. ScanA 1511 is designated with the address of the central device that transmits SCAN_REQ. AdvA 1512 specifies the address of the peripheral device that has sent ADV_IND.

SCAN_RSP Payload1520は、SCAN_RSPパケットのPayload部1502の構成を示す。SCAN_RSP Payload1520は、AdvA1521とScanRspData1522のデータフィールドから構成される。AdvA1521には、ペリフェラル機器のアドレスが指定される。ScanRspData1522には、ペリフェラル機器で指定する、最大31オクテットのレスポンスデータが指定される。 A SCAN_RSP payload 1520 indicates the configuration of the payload section 1502 of the SCAN_RSP packet. The SCAN_RSP Payload 1520 is composed of AdvA 1521 and ScanRspData 1522 data fields. AdvA 1521 specifies the address of the peripheral device. ScanRspData 1522 specifies response data of up to 31 octets specified by the peripheral device.

続いて、BT5で規定されるスキャン処理について、図16を参照して説明する。図16は、BT5で規定されるスキャン処理を表すシーケンス図である。ペリフェラル機器1600が送信するAUX_ADV_INDパケットをセントラル機器1610が受信すると(S1601)、セントラル機器1610はAUX_SCAN_REQパケットをペリフェラル機器1600に送信する(S1602)。このとき、セントラル機器1610は、AUX_ADV_INDパケットを受信したチャネルと同じチャネルでAUX_SCAN_REQパケットを送信する。AUX_SCAN_REQパケットを受信したペリフェラル機器1600は、応答メッセージデータを設定したAUX_SCAN_RSPパケットをセントラル機器1610に送信する(S1603)。また、応答メッセージデータがAUX_SCAN_RSPパケットに入りきらない場合、ペリフェラル機器1600は、残りのデータを、続くAUX_CHAIN_INDパケットで送信する(S1604)。 Next, the scan processing specified by BT5 will be described with reference to FIG. FIG. 16 is a sequence diagram showing scan processing defined by BT5. When the central device 1610 receives the AUX_ADV_IND packet sent by the peripheral device 1600 (S1601), the central device 1610 sends an AUX_SCAN_REQ packet to the peripheral device 1600 (S1602). At this time, central device 1610 transmits the AUX_SCAN_REQ packet on the same channel on which it received the AUX_ADV_IND packet. The peripheral device 1600 that has received the AUX_SCAN_REQ packet transmits an AUX_SCAN_RSP packet in which response message data is set to the central device 1610 (S1603). Also, if the response message data does not fit in the AUX_SCAN_RSP packet, the peripheral device 1600 transmits the remaining data in the subsequent AUX_CHAIN_IND packet (S1604).

AUX_SCAN_REQパケットのデータ構成は、前述の図15で説明したSCAN_REQパケットと同じであるため、ここでは説明を省略する。 Since the data configuration of the AUX_SCAN_REQ packet is the same as the SCAN_REQ packet described above with reference to FIG. 15, description thereof will be omitted here.

AUX_SCAN_RSPパケットは、前述の第1実施形態で図6を用いて説明したAdvertising Channel PDU600のフォーマットに従って生成される。Header部601に指定される値は、前述の第1実施形態で説明したADV_EXT_IND、AUX_ADV_IND、AUX_CHAIN_INDパケットのものと同じであるため、ここでは説明を省略する。Ext. Header Length611には、Ext. Header613の長さ(オクテット)が指定される。AdvMode612には00bが指定される。AdvData614には、ペリフェラル機器で指定する、最大251オクテットのレスポンスデータが指定される。Ext. Header Flags620は、AdvA621からTxPower627までのデータフィールドのうち、どのデータフィールドを含むのかを表すビットフラグが指定される。AdvA621には、ペリフェラル機器のアドレスが指定される。AUX_SCAN_RSPパケットではTargetA622、RFU623、AdvData Info624のフィールドは使用されない。AuxPtr625には、後に続くAUX_CHAIN_INDの送信チャネル、送信タイミング、送信PHYの種別、ペリフェラル機器の動作クロックの精度の情報が指定される。SyncInfo626は、AUX_SCAN_RSPパケットでは使用されない。TxPower627には、パケットの送信出力を表すデータが指定される。ACAD628には、拡張データが指定される。 The AUX_SCAN_RSP packet is generated according to the format of the Advertising Channel PDU 600 described with reference to FIG. 6 in the first embodiment. The values specified in the Header section 601 are the same as those of the ADV_EXT_IND, AUX_ADV_IND, and AUX_CHAIN_IND packets described in the first embodiment, so description thereof will be omitted here. Ext. Header Length 611 includes Ext. The length (octet) of Header 613 is specified. 00b is specified for AdvMode 612 . AdvData 614 specifies response data of up to 251 octets specified by the peripheral device. Ext. Header Flags 620 specifies a bit flag indicating which data field is included among the data fields from AdvA 621 to TxPower 627 . AdvA 621 is assigned the address of the peripheral device. The TargetA 622, RFU 623 and AdvData Info 624 fields are not used in the AUX_SCAN_RSP packet. In the AuxPtr 625, the following AUX_CHAIN_IND transmission channel, transmission timing, type of transmission PHY, and accuracy information of the operation clock of the peripheral device are specified. SyncInfo 626 is not used in AUX_SCAN_RSP packets. The TxPower 627 is designated with data representing the transmission power of the packet. Extension data is specified in ACAD 628 .

(ペリフェラル機器の構成とシステム構成)
本実施形態における通信装置1のハードウェア構成および機能構成は、第1実施形態で示した図1、図2と同様であるため、ここでは説明を省略する。また、想定するシステム構成も、第1実施形態で示した図8と同様であるため、ここでは説明を省略する。
(peripheral device configuration and system configuration)
The hardware configuration and functional configuration of the communication device 1 according to this embodiment are the same as those shown in FIGS. Further, the assumed system configuration is also the same as that of FIG. 8 shown in the first embodiment, so the description is omitted here.

(処理の流れ)
次に図17を参照して、デジタルカメラ810の処理の流れを説明する。図17は、デジタルカメラ810による処理を表すフローチャートである。図17に示すフローチャートは、デジタルカメラ810の制御部105や制御部154がROM106やROM152に記憶されている制御プログラムを実行し、情報の演算および加工並びに各ハードウェアの制御を実行することにより実現され得る。本処理は、ユーザがデジタルカメラ810の操作部101を操作して、連携処理開始を指示することにより開始され得る。また、本処理は、第1実施形態で説明した図7のS701で、対向機の機器情報が登録されていない場合(S701でNO)に、開始されても良い。
(Processing flow)
Next, with reference to FIG. 17, the processing flow of the digital camera 810 will be described. FIG. 17 is a flow chart showing processing by the digital camera 810 . The flowchart shown in FIG. 17 is realized by executing control programs stored in the ROM 106 and ROM 152 by the control unit 105 and the control unit 154 of the digital camera 810, and by executing calculation and processing of information and control of each hardware. can be This processing can be started by the user operating the operation unit 101 of the digital camera 810 to instruct the start of cooperative processing. Further, this process may be started when the device information of the counterpart device is not registered in S701 of FIG. 7 described in the first embodiment (NO in S701).

本処理が開始されると、デジタルカメラ810のBT通信制御部210は、BT4に従うアドバタイズ処理(図3、図4)と、BT5に従うアドバタイズ処理(図5、図6)を開始する(S1701、S1702)。すなわち、BT通信制御部210は、BT4に従うアドバタイジングパケットとBT5に従うアドバタイジングパケットの双方を送信する。本処理において、デジタルカメラ810は、自身の識別子として、自身のUUIDをBT4のアドバタイジングパケットに設定して送信する(S1701)。またデジタルカメラ810は、自身のUUIDと自身のステータス情報をBT5のアドバタイジングパケットに設定して送信する(S1702)。自身のステータス情報とは、デジタルカメラ810の撮影設定や動作モード、記憶部102の残記憶容量などを表す値である。なお本ステータス情報は、本実施形態では32Byte以上のサイズがあるものとし、BT4のアドバタイジングパケット(ADV_INDパケット)では送信できないサイズのデータであるものとする。BT通信制御部210は、対向機からスキャン要求信号としてのスキャン要求パケット(Scan Request)を受信するまでBT4およびBT5のアドバタイズ処理を継続する(S1703でNO)。 When this process starts, the BT communication control unit 210 of the digital camera 810 starts the advertising process (FIGS. 3 and 4) according to BT4 and the advertising process (FIGS. 5 and 6) according to BT5 (S1701, S1702). ). That is, BT communication control section 210 transmits both the advertising packet according to BT4 and the advertising packet according to BT5. In this process, the digital camera 810 sets its own UUID as its own identifier in the BT4 advertising packet and transmits it (S1701). Also, the digital camera 810 sets its own UUID and its own status information in the BT5 advertising packet and transmits it (S1702). The self status information is a value representing the shooting settings and operation mode of the digital camera 810, the remaining storage capacity of the storage unit 102, and the like. In the present embodiment, this status information has a size of 32 bytes or more, and is data of a size that cannot be transmitted in a BT4 advertising packet (ADV_IND packet). The BT communication control unit 210 continues the advertising processing of BT4 and BT5 until it receives a scan request packet (Scan Request) as a scan request signal from the counterpart device (NO in S1703).

対向機からスキャン要求パケットを受信すると(S1703でYES)、BT通信制御部210は、当該スキャン要求パケットがBT4のアドバタイズに対するものなのかBT5のアドバタイズに対するものなのかを判定する(S1704)。具体的には、受信したパケットがSCAN_REQパケットならばBT4のアドバタイズに対するスキャン要求であると判定し、AUX_SCAN_REQパケットならばBT5のアドバタイズに対するスキャン要求であると判定する。 When a scan request packet is received from the counterpart device (YES in S1703), the BT communication control unit 210 determines whether the scan request packet is for advertisement of BT4 or advertisement of BT5 (S1704). Specifically, if the received packet is a SCAN_REQ packet, it is determined that it is a scan request for advertisement of BT4, and if it is an AUX_SCAN_REQ packet, it is determined that it is a scan request for advertisement of BT5.

受信したパケットがSCAN_REQパケットの場合、対向機情報管理部230は。対向機のサポートするバージョンがBT4であるとして、対向機の識別情報920とサポートBLEバージョン情報930を対向機管理テーブル900に登録する(S1705)。続いてBT通信制御部210は、BT5に従うアドバタイズ処理を停止する(S1706)。続いてBT通信制御部210は、対向機からのGATT通信による接続待ち受けを開始する(S1707)。GATT通信による接続が完了している場合(S1707でYES)、BT通信制御部210は、デジタルカメラ810のステータス情報をGATTのNotifyパケットに設定して対向機に送信する(S1708)。ここで設定するステータス情報は、S1702でBT5のアドバタイジングパケットに指定したステータス情報と同様の情報である。以降BT通信制御部210は、対向機とのGATT通信が接続している限りにおいて、デジタルカメラ810のステータス情報をGATTのNotifyパケットで定期的に対向機に通知する。なお当該通知は、一定時間間隔で送られるとしても良いし、デジタルカメラ810のステータス情報が変化したことを契機に送られるとしても良い。また、GATT通信による接続が完了しているかどうかに関わらず、BT通信制御部210は、BT4に従うアドバタイズ処理を継続し(S1709)、周期的にBT4のアドバタイジングパケットを送信する。 If the received packet is a SCAN_REQ packet, the counterpart device information management unit 230 Assuming that the version supported by the counterpart device is BT4, the identification information 920 of the counterpart device and the supported BLE version information 930 are registered in the counterpart device management table 900 (S1705). Subsequently, BT communication control section 210 stops the advertising process according to BT5 (S1706). Subsequently, the BT communication control unit 210 starts waiting for connection by GATT communication from the counterpart device (S1707). If the connection via GATT communication has been completed (YES in S1707), the BT communication control unit 210 sets the status information of the digital camera 810 in a GATT Notify packet and transmits the packet to the counterpart device (S1708). The status information set here is the same information as the status information specified in the BT5 advertising packet in S1702. Thereafter, the BT communication control unit 210 periodically notifies the counterpart device of the status information of the digital camera 810 using a GATT Notify packet as long as the GATT communication with the counterpart device is connected. Note that the notification may be sent at regular time intervals, or may be sent when the status information of the digital camera 810 changes. Moreover, regardless of whether the connection by GATT communication is completed or not, the BT communication control unit 210 continues the advertising process according to BT4 (S1709), and periodically transmits BT4 advertising packets.

受信したパケットがAUX_SCAN_REQパケットの場合、対向機情報管理部230は、対向機のサポートするバージョンがBT5であるとして、対向機の識別情報920とサポートBLEバージョン情報930を対向機管理テーブル900に登録する(S1710)。続いてBT通信制御部210は、BT4に従うアドバタイズ処理を停止する(S1711)。以降、BT通信制御部210は、BT5に従うアドバタイズ処理を継続し(S1712)、周期的にBT5のアドバタイジングパケットを送信する。デジタルカメラ810のステータス情報が変化した際には、BT通信制御部210は、アドバタイジングパケットに指定するステータス情報を変更して、BT5のアドバタイズ処理を継続する。 When the received packet is an AUX_SCAN_REQ packet, the counterpart device information management unit 230 registers the counterpart device identification information 920 and the supported BLE version information 930 in the counterpart device management table 900 assuming that the version supported by the counterpart device is BT5. (S1710). Subsequently, the BT communication control unit 210 stops the advertising process according to BT4 (S1711). Thereafter, BT communication control section 210 continues the advertising process according to BT5 (S1712), and periodically transmits advertising packets of BT5. When the status information of the digital camera 810 changes, the BT communication control unit 210 changes the status information specified in the advertising packet and continues the advertising process of BT5.

次に、図18~図19のシーケンスチャートを用いて、本実施形態におけるデジタルカメラ810とスマートフォン820、830との通信シーケンスの一例を詳述する。図18は、デジタルカメラ810とスマートフォン820が通信する場合の通信シーケンスである。前述した通り、スマートフォン820はBT5をサポートするものとする。 Next, an example of the communication sequence between the digital camera 810 and the smartphones 820 and 830 in this embodiment will be described in detail using the sequence charts of FIGS. 18 and 19. FIG. FIG. 18 shows a communication sequence when the digital camera 810 and the smart phone 820 communicate. As described above, smartphone 820 is assumed to support BT5.

ユーザがデジタルカメラ810を操作してスマートフォンとの連携処理開始を指示すると(S1801)、BT通信制御部210は、Bluetooth通信機能を起動し(S1802)、アドバタイズ処理を開始する。BT通信制御部210は、BT4に従うアドバタイジングパケット(ADV_IND)およびBT5に従うアドバタイジングパケット(ADV_EXT_IND、AUX_ADV_IND)を、周期的に送信する(S1803、S1804)。BT5をサポートするスマートフォン820は、BT5に従うアドバタイジングパケットを受信し(S1805)、これに対するスキャン要求パケット(AUX_SCAN_REQ)を送信する(S1806)。スキャン要求パケットを受信したデジタルカメラ810は、スキャン応答パケット(AUX_SCAN_RSP)をスマートフォン820に送信する(S1807)。続いてデジタルカメラ810は、スマートフォン820がBT5をサポートする対向機であるとしてこれを記憶し(S1808)、BT4に従うアドバタイジングパケット(ADV_IND)の周期送信を停止する(S1809)。以降、デジタルカメラ810は、自身のステータス情報を指定したBT5に従うアドバタイジングパケット(ADV_EXT_IND、AUX_ADV_IND)を周期的に送信する(S1810、S1811)。またスマートフォン820は、当該アドバタイジングパケットに含まれるステータス情報を参照して、デジタルカメラ810の状態を逐次スマートフォン820の画面に表示する(S1812)。 When the user operates the digital camera 810 to give an instruction to start cooperation processing with a smartphone (S1801), the BT communication control unit 210 activates the Bluetooth communication function (S1802) and starts advertising processing. BT communication control section 210 periodically transmits an advertising packet (ADV_IND) according to BT4 and an advertising packet (ADV_EXT_IND, AUX_ADV_IND) according to BT5 (S1803, S1804). A smartphone 820 that supports BT5 receives an advertising packet conforming to BT5 (S1805), and transmits a scan request packet (AUX_SCAN_REQ) corresponding thereto (S1806). The digital camera 810 that received the scan request packet transmits a scan response packet (AUX_SCAN_RSP) to the smart phone 820 (S1807). Subsequently, digital camera 810 stores smartphone 820 as a counterpart device that supports BT5 (S1808), and stops periodic transmission of advertising packets (ADV_IND) conforming to BT4 (S1809). Thereafter, the digital camera 810 periodically transmits advertising packets (ADV_EXT_IND, AUX_ADV_IND) according to BT5 specifying its own status information (S1810, S1811). The smartphone 820 also refers to the status information included in the advertising packet and sequentially displays the status of the digital camera 810 on the screen of the smartphone 820 (S1812).

図19は、デジタルカメラ810とスマートフォン830が通信する場合の通信シーケンスである。前述した通り、スマートフォン830はBT4をサポートし、BT5をサポートしないものとする。 FIG. 19 shows a communication sequence when the digital camera 810 and the smart phone 830 communicate. As described above, smartphone 830 supports BT4 and does not support BT5.

ユーザがデジタルカメラ810を操作してスマートフォンとの連携処理開始を指示すると(S1901)、BT通信制御部210は、Bluetooth通信機能を起動し(S1902)、アドバタイズ処理を開始する。BT通信制御部210は、BT4に従うアドバタイジングパケット(ADV_IND)およびBT5に従うアドバタイジングパケット(ADV_EXT_IND、AUX_ADV_IND)を、周期的に送信する(S1903、S1904)。BT4をサポートするスマートフォン830は、BT4に従うアドバタイジングパケットを受信し(S1905)、これに対するスキャン要求パケット(SCAN_REQ)を送信する(S1906)。スキャン要求パケットを受信したデジタルカメラ810は、スキャン応答パケット(SCAN_RSP)をスマートフォン830に送信する(S1907)。続いてデジタルカメラ810は、スマートフォン830がBT4をサポートする対向機であるとしてこれを記憶し(S1908)、BT5に従うアドバタイジングパケット(ADV_EXT_IND、AUX_ADV_IND)の周期送信を停止する(S1909)。続いてデジタルカメラ810とスマートフォン830との間でGATT通信の接続処理が行われる(S1910)。以降、デジタルカメラ810はBT4に従うアドバタイジングパケット(ADV_IND)を、周期的に送信する(S1911、S1912)。また、デジタルカメラ810は、自身のステータスが変化する毎に、自身のステータス情報を指定したGATT通信のNotifyパケットをスマートフォン830に送信する(S1913)。またスマートフォン830は、当該Notifyパケットに含まれるステータス情報を参照して、デジタルカメラ810の状態を逐次デジタルカメラ830の画面に表示する(S1914)。 When the user operates the digital camera 810 to give an instruction to start cooperation processing with a smartphone (S1901), the BT communication control unit 210 activates the Bluetooth communication function (S1902) and starts advertising processing. BT communication control section 210 periodically transmits an advertising packet (ADV_IND) according to BT4 and an advertising packet (ADV_EXT_IND, AUX_ADV_IND) according to BT5 (S1903, S1904). A smartphone 830 that supports BT4 receives an advertising packet conforming to BT4 (S1905), and transmits a scan request packet (SCAN_REQ) corresponding thereto (S1906). The digital camera 810 that received the scan request packet transmits a scan response packet (SCAN_RSP) to the smart phone 830 (S1907). Subsequently, digital camera 810 stores smartphone 830 as a counterpart device that supports BT4 (S1908), and stops periodic transmission of advertising packets (ADV_EXT_IND, AUX_ADV_IND) conforming to BT5 (S1909). Subsequently, GATT communication connection processing is performed between the digital camera 810 and the smartphone 830 (S1910). Thereafter, digital camera 810 periodically transmits advertising packets (ADV_IND) conforming to BT4 (S1911, S1912). Also, the digital camera 810 transmits a GATT communication Notify packet designating its own status information to the smartphone 830 each time its own status changes (S1913). The smartphone 830 also refers to the status information included in the Notify packet and sequentially displays the status of the digital camera 810 on the screen of the digital camera 830 (S1914).

以上説明したように、本実施形態によれば、通信装置は、対向機がサポートするBluetoothバージョンに応じて適切なアドバタイズパケットを送信することが出来る。また、対向機がBT5をサポートする場合にGATT通信を行わないことにより、通信装置における消費電力を低減することができる。 As described above, according to this embodiment, the communication device can transmit an appropriate advertisement packet according to the Bluetooth version supported by the counterpart device. Moreover, power consumption in the communication device can be reduced by not performing GATT communication when the counterpart device supports BT5.

[第3実施形態]
前述の実施形態では、通信装置1(デジタルカメラ810)が同時に通信する対向機(スマートフォン)が1台であるものとして、その実施形態を説明した。しかしながら、本発明は対向機が複数台存在するような場合においても適用可能である。以下では、1台の通信装置に対して対向機が複数台存在する機器構成における実施形態を説明する。
[Third Embodiment]
In the above-described embodiment, the embodiment has been described assuming that the communication device 1 (digital camera 810) communicates with one device (smartphone) at the same time. However, the present invention can be applied even when there are a plurality of counterpart machines. An embodiment in a device configuration in which a plurality of counterpart devices exist for one communication device will be described below.

(ペリフェラル機器の構成とシステム構成)
本実施形態における通信装置1のハードウェア構成および機能構成は、第1実施形態で示した図1、図2と同様であるため、ここでは説明を省略する。また、想定するシステム構成も、第1実施形態で示した図8と同様であるため、ここでは説明を省略する。ただし、本実施形態においては、通信装置1の対向機情報管理部230は、対向機管理テーブル900で複数台の対向機の機器情報を管理できるものとする。すなわち、本実施形態における対向機管理テーブル900は、識別情報920およびサポートBLEバージョン情報930の組を1レコードとして、複数のレコードを記憶する管理テーブルである。
(peripheral device configuration and system configuration)
The hardware configuration and functional configuration of the communication device 1 according to this embodiment are the same as those shown in FIGS. Further, the assumed system configuration is also the same as that of FIG. 8 shown in the first embodiment, so the description is omitted here. However, in the present embodiment, the counterpart device information management unit 230 of the communication device 1 can manage the device information of a plurality of counterpart devices using the counterpart device management table 900 . That is, the counterpart device management table 900 in the present embodiment is a management table that stores a plurality of records, with each set of identification information 920 and supported BLE version information 930 set as one record.

(処理の流れ)
次に図20を参照して、デジタルカメラ810の処理の流れを説明する。図20は、デジタルカメラ810による処理を表すフローチャートである。図20に示すフローチャートは、デジタルカメラ810の制御部105や制御部154がROM106やROM152に記憶されている制御プログラムを実行し、情報の演算および加工並びに各ハードウェアの制御を実行することにより実現され得る。本処理は、ユーザがデジタルカメラ810の操作部101を操作して、連携処理開始を指示することにより開始され得る。また、本処理は、ユーザがデジタルカメラ810の操作部101を操作して連携処理終了を指示するまで、繰り返し実行され得る。また、本処理は、第1実施形態で説明した図7のS701で、対向機の機器情報が登録されていない場合(S701でNO)に、開始されても良い。
(Processing flow)
Next, referring to FIG. 20, the processing flow of the digital camera 810 will be described. FIG. 20 is a flow chart showing processing by the digital camera 810 . The flowchart shown in FIG. 20 is realized by executing the control programs stored in the ROM 106 and ROM 152 by the control unit 105 and the control unit 154 of the digital camera 810, and by executing the calculation and processing of information and the control of each hardware. can be This processing can be started by the user operating the operation unit 101 of the digital camera 810 to instruct the start of cooperative processing. In addition, this process can be repeatedly executed until the user operates the operation unit 101 of the digital camera 810 to give an instruction to end the cooperation process. Further, this process may be started when the device information of the counterpart device is not registered in S701 of FIG. 7 described in the first embodiment (NO in S701).

本処理が開始されると、デジタルカメラ810の対向機情報管理部230は、対向機管理テーブル900に新しく登録すべき対向機情報があるか判定処理を行う(S2001)。本実施形態において、対向機情報の登録は、ユーザがデジタルカメラ810の操作部101を操作して、対向機の識別情報とサポートBLEバージョンを入力することで行われ得る。新しく登録すべき対向機情報がある場合(S2001でYES)、対向機情報管理部230は、当該対向機情報を対向機管理テーブル900に登録する(S2002)。続いて対向機情報管理部230は、対向機管理テーブル900から削除すべき対向機情報があるか判定処理を行う(S2003)。本実施形態において、対向機情報の削除は、ユーザがデジタルカメラ810の操作部101を操作して、削除したい対向機の識別情報を選択することで行われ得る。削除すべき対向機情報がある場合(S2003でYES)、対向機情報管理部230は、当該対向機情報を対向機管理テーブル900から削除する(S2004)。 When this processing is started, the counterpart device information management unit 230 of the digital camera 810 determines whether or not there is counterpart device information to be newly registered in the counterpart device management table 900 (S2001). In this embodiment, the registration of counterpart device information can be performed by the user operating the operation unit 101 of the digital camera 810 and inputting the identification information and the supported BLE version of the counterpart device. If there is counterpart device information to be newly registered (YES in S2001), the counterpart device information management unit 230 registers the counterpart device information in the counterpart device management table 900 (S2002). Subsequently, the counterpart device information management unit 230 performs processing for determining whether there is counterpart device information to be deleted from the counterpart device management table 900 (S2003). In this embodiment, the deletion of the counterpart device information can be performed by the user operating the operation unit 101 of the digital camera 810 and selecting the identification information of the counterpart device to be deleted. If there is counterpart device information to be deleted (YES in S2003), the counterpart device information management unit 230 deletes the counterpart device information from the counterpart device management table 900 (S2004).

次に、対向機情報管理部230は、対向機管理テーブル900に登録されたレコードを検索し、登録されている対向機のサポートBLEバージョン情報を収集する(S2005)。対向機管理テーブル900に対向機情報の登録が無い場合、もしくはBT4をサポートする対向機とBT5をサポートする対向機が混在する場合、BT通信制御部210は、BT4・BT5双方のアドバタイズパケットを送信する(S2006、S2007)。本処理において、デジタルカメラ810は、自身の識別子として、自身のUUIDをBT4のアドバタイジングパケットに設定して送信する(S2006)。またデジタルカメラ810は、自身のUUIDと自身のステータス情報をBT5のアドバタイジングパケットに設定して送信する(S2007)。自身のステータス情報とは、デジタルカメラ810の撮影設定や動作モード、記憶部102の残記憶容量などを表す値である。なお本ステータス情報は、本実施形態では32Byte以上のサイズがあるものとし、BT4のアドバタイジングパケット(ADV_INDパケット)では送信できないサイズのデータであるものとする。次にBT通信制御部210は、BT4をサポートする対向機とのGATT接続の有無をチェックする(S2008)。GATT通信で対向機と接続されている場合(S2008でYES)、BT通信制御部210は、デジタルカメラ810のステータス情報を設定したGATTのNotifyパケットをすべてのBT4サポート対向機に対して送信する(S2009)。 Next, the counterpart device information management unit 230 searches records registered in the counterpart device management table 900, and collects support BLE version information of registered counterpart devices (S2005). When there is no counterpart device information registered in the counterpart device management table 900, or when a counterpart device supporting BT4 and a counterpart device supporting BT5 coexist, the BT communication control unit 210 transmits advertisement packets for both BT4 and BT5. (S2006, S2007). In this process, the digital camera 810 sets its own UUID as its own identifier in the BT4 advertising packet and transmits it (S2006). Also, the digital camera 810 sets its own UUID and its own status information in the BT5 advertising packet and transmits it (S2007). The self status information is a value representing the shooting settings and operation mode of the digital camera 810, the remaining storage capacity of the storage unit 102, and the like. In the present embodiment, this status information has a size of 32 bytes or more, and is data of a size that cannot be transmitted in a BT4 advertising packet (ADV_IND packet). Next, the BT communication control unit 210 checks whether or not there is a GATT connection with a counterpart device that supports BT4 (S2008). If the device is connected by GATT communication (YES in S2008), the BT communication control unit 210 transmits a GATT Notify packet in which the status information of the digital camera 810 is set to all BT4-supporting devices ( S2009).

対向機管理テーブル900に登録された対向機がすべてBT5をサポートする場合、BT通信制御部210は、デジタルカメラ810の識別子とステータス情報を設定したBT5のアドバタイジングパケットを送信する(S2010)。このとき、BT通信制御部210は、BT4のアドバタイジングパケットを送信しない。 If all the counterpart devices registered in the counterpart device management table 900 support BT5, the BT communication control unit 210 transmits a BT5 advertising packet in which the identifier and status information of the digital camera 810 are set (S2010). At this time, the BT communication control unit 210 does not transmit the BT4 advertising packet.

対向機管理テーブル900に登録された対向機がすべてBT4をサポートする場合、BT通信制御部210は、デジタルカメラ810の識別子を設定したBT4のアドバタイジングパケットを送信する(S2011)。このとき、BT通信制御部210は、BT5のアドバタイジングパケットを送信しない。またBT通信制御部210は、BT4をサポートする対向機とのGATT接続の有無をチェックする(S2012)。GATT通信で対向機と接続されている場合(S2012でYES)、BT通信制御部210は、デジタルカメラ810のステータス情報を設定したGATTのNotifyパケットをすべてのBT4サポート対向機に対して送信する(S2013)。 If all the counterpart devices registered in the counterpart device management table 900 support BT4, the BT communication control unit 210 transmits a BT4 advertising packet in which the identifier of the digital camera 810 is set (S2011). At this time, the BT communication control unit 210 does not transmit the BT5 advertising packet. Also, the BT communication control unit 210 checks whether or not there is a GATT connection with a counterpart device that supports BT4 (S2012). If the device is connected via GATT communication (YES in S2012), the BT communication control unit 210 transmits a GATT Notify packet in which the status information of the digital camera 810 is set to all BT4-supporting devices ( S2013).

次に、図21のシーケンスチャートを用いて、デジタルカメラ810とスマートフォン820、830との通信シーケンスの一例を詳述する。前述した通り、スマートフォン820はBT5をサポートし、スマートフォン830はBT4をサポートするものとする。 Next, an example of a communication sequence between the digital camera 810 and the smartphones 820 and 830 will be described in detail using the sequence chart of FIG. As described above, smartphone 820 supports BT5, and smartphone 830 supports BT4.

ユーザがデジタルカメラ810を操作してスマートフォンとの連携処理開始を指示すると(S2101)、BT通信制御部210は、Bluetooth通信機能を起動し(S2102)、アドバタイズ処理を開始する。BT通信制御部210は、BT4に従うアドバタイジングパケット(ADV_IND)およびBT5に従うアドバタイジングパケット(ADV_EXT_IND、AUX_ADV_IND)を、周期的に送信する(S2103、S2104)。続いてユーザがデジタルカメラ810を操作してスマートフォン820の登録操作を行い、スマートフォン820の識別子情報とBT5をサポートする対向機である旨をデジタルカメラ810に登録する(S2105)。これを受けてBT通信制御部210は、BT4に従うアドバタイジングパケット(ADV_IND)の送信を停止する(S2106)。 When the user operates the digital camera 810 to give an instruction to start cooperation processing with a smartphone (S2101), the BT communication control unit 210 activates the Bluetooth communication function (S2102) and starts advertising processing. BT communication control section 210 periodically transmits an advertising packet (ADV_IND) according to BT4 and an advertising packet (ADV_EXT_IND, AUX_ADV_IND) according to BT5 (S2103, S2104). Subsequently, the user operates the digital camera 810 to register the smartphone 820, and registers the identifier information of the smartphone 820 and the fact that it is a counterpart device that supports BT5 in the digital camera 810 (S2105). Upon receiving this, the BT communication control unit 210 stops transmission of advertising packets (ADV_IND) conforming to BT4 (S2106).

続いてユーザがスマートフォン820を操作してデジタルカメラ810との連携処理開始を指示すると(S2107)、スマートフォン820はBluetooth通信機能を起動する(S2108)。スマートフォン820はBT5に従うアドバタイジングパケット(ADV_EXT_IND/AUX_ADV_IND)を受信し(S2109)、これに対するスキャン要求パケット(AUX_SCAN_REQ)をデジタルカメラ810に送信する(S2110)。スキャン要求パケットを受信したデジタルカメラ810は、スキャン応答パケット(AUX_SCAN_RSP)をスマートフォン820に送信する(S2112)。以降、スマートフォン820は、当該アドバタイジングパケットに含まれるステータス情報を参照して、デジタルカメラ810の状態を逐次スマートフォン820の画面に表示する(S2112)。 Subsequently, when the user operates the smartphone 820 to instruct the start of cooperation processing with the digital camera 810 (S2107), the smartphone 820 activates the Bluetooth communication function (S2108). The smartphone 820 receives the advertising packet (ADV_EXT_IND/AUX_ADV_IND) conforming to BT5 (S2109), and transmits a corresponding scan request packet (AUX_SCAN_REQ) to the digital camera 810 (S2110). The digital camera 810 that received the scan request packet transmits a scan response packet (AUX_SCAN_RSP) to the smart phone 820 (S2112). After that, the smartphone 820 refers to the status information included in the advertising packet and sequentially displays the status of the digital camera 810 on the screen of the smartphone 820 (S2112).

続いてユーザがデジタルカメラ810を操作してスマートフォン830の登録操作を行い、スマートフォン830の識別子情報とBT4をサポートする対向機である旨をデジタルカメラ810に登録する(S2113)。これを受けてBT通信制御部210は、BT4に従うアドバタイジングパケット(ADV_IND)の送信を開始する(S2114)。BT通信制御部210は、BT4に従うアドバタイジングパケット(ADV_IND)およびBT5に従うアドバタイジングパケット(ADV_EXT_IND、AUX_ADV_IND)を、周期的に送信する(S2115、S2116)。 Subsequently, the user operates the digital camera 810 to register the smartphone 830, and registers the identifier information of the smartphone 830 and the fact that it is a counterpart device that supports BT4 in the digital camera 810 (S2113). In response to this, BT communication control section 210 starts transmitting an advertising packet (ADV_IND) conforming to BT4 (S2114). BT communication control section 210 periodically transmits an advertising packet (ADV_IND) according to BT4 and an advertising packet (ADV_EXT_IND, AUX_ADV_IND) according to BT5 (S2115, S2116).

続いてユーザがスマートフォン830を操作してデジタルカメラ810との連携処理開始を指示すると(S2117)、スマートフォン830はBluetooth通信機能を起動する(S2118)。スマートフォン830はBT4に従うアドバタイジングパケット(ADV_IND)を受信し(S2119)、これに対するスキャン要求パケット(SCAN_REQ)をデジタルカメラ810に送信する(S2120)。スキャン要求パケットを受信したデジタルカメラ810は、スキャン応答パケット(SCAN_RSP)をスマートフォン830に送信する(S2121)。続いてデジタルカメラ810とスマートフォン830との間でGATT通信の接続処理が行われる(S2122)。以降、デジタルカメラ810は、自身のステータスが変化する毎に、自身のステータス情報を指定したGATT通信のNotifyパケットをスマートフォン830に送信する(S2123)。またスマートフォン830は、当該Notifyパケットに含まれるステータス情報を参照して、デジタルカメラ810の状態を逐次スマートフォン830の画面に表示する(S2124)。 Subsequently, when the user operates the smartphone 830 to instruct the start of cooperation processing with the digital camera 810 (S2117), the smartphone 830 activates the Bluetooth communication function (S2118). The smartphone 830 receives the advertising packet (ADV_IND) conforming to BT4 (S2119), and transmits a corresponding scan request packet (SCAN_REQ) to the digital camera 810 (S2120). The digital camera 810 that received the scan request packet transmits a scan response packet (SCAN_RSP) to the smart phone 830 (S2121). Subsequently, GATT communication connection processing is performed between the digital camera 810 and the smartphone 830 (S2122). Thereafter, the digital camera 810 transmits a GATT communication Notify packet designating its own status information to the smartphone 830 every time its own status changes (S2123). The smartphone 830 also refers to the status information included in the Notify packet, and sequentially displays the status of the digital camera 810 on the screen of the smartphone 830 (S2124).

以上説明したように、本実施形態によれば、通信装置は、対向機が複数存在する場合においても適切なバージョンのアドバタイズパケットを送信することが出来る。また、対向機がBT5をサポートする場合にGATT通信を行わないことにより、通信装置における消費電力を低減することができる。GATT通信パケットはユニキャストで送信されるので、特にBT5をサポートする対向機が複数存在する場合において、より大きな消費電力の低減効果が期待できる。 As described above, according to this embodiment, the communication device can transmit an appropriate version of the advertisement packet even when there are a plurality of counterpart devices. Moreover, power consumption in the communication device can be reduced by not performing GATT communication when the counterpart device supports BT5. Since GATT communication packets are transmitted by unicast, a greater power consumption reduction effect can be expected especially when there are a plurality of partner devices that support BT5.

以上が本発明の代表的な実施形態の一例であるが、本発明は、明細書及び図面に示す実施形態に限定することなく、その要旨を変更しない範囲内で変形して実施できるものである。 The above is an example of a representative embodiment of the present invention, but the present invention is not limited to the embodiments shown in the specification and drawings, and can be modified and implemented without changing the gist thereof. .

例えば、上記実施形態において、通信装置1(デジタルカメラ810)が対向機のサポートするBluetoothバージョンを取得する幾つかの方法を示したが、本発明はこれを制限するものではない。例えば、通信装置1は、BT5に従うアドバタイジングパケットに対するスキャンパケットを一定時間送信してこなかった対向機は、BT5をサポートしないと判定してもよい。また、通信装置1は、BT5に従うアドバタイジングパケットで送信している情報をGATT通信で要求してきた対向機がBT5をサポートしないと判定してもよい。これを前述の第一の実施形態に当てはめれば、S702においてBT5に従うアドバタイジングパケットにおいて、無線LAN通信制御部240が生成する無線LANネットワークの設定情報、およびデジタルカメラ810の動作状態が含まれて送信される。その後、通信装置1は、GATT通信で当該情報を取得する要求を送信してきた対向機を、BT5をサポートしない対向機として対向機管理テーブル900に登録する。また、通信装置1は、GATT通信で当該情報に対する取得要求を送信せずに無線LAN開始要求を送信してきた対向機を、BT5をサポートする対向機として対向機管理テーブル900に登録する。 For example, in the above embodiment, several methods for the communication device 1 (digital camera 810) to acquire the Bluetooth version supported by the counterpart device were shown, but the present invention is not limited to this. For example, the communication device 1 may determine that a counterpart device that has not transmitted a scan packet for an advertising packet conforming to BT5 for a certain period of time does not support BT5. Further, the communication device 1 may determine that the counterpart device that has requested the information transmitted in the advertising packet conforming to BT5 through GATT communication does not support BT5. If this is applied to the above-described first embodiment, the wireless LAN network setting information generated by the wireless LAN communication control unit 240 and the operating state of the digital camera 810 are included in the advertising packet according to BT5 in S702. be done. After that, the communication device 1 registers the counterpart device that has transmitted the request to acquire the information through GATT communication in the counterpart device management table 900 as a counterpart device that does not support BT5. Further, the communication device 1 registers, in the counterpart device management table 900, the counterpart device that has transmitted the wireless LAN start request without transmitting the acquisition request for the information in the GATT communication as the counterpart device that supports BT5.

また、上記実施形態では、登録した対向機がサポートするBluetoothバージョンに応じて、実施するアドバタイズ処理を決定していたが、更なる追加条件を用いてアドバタイズ処理を決定しても良い。たとえば、デジタルカメラ810が対向機に通知したいデータのサイズが、ADV_INDパケットで送信できる31オクテットを超える場合にのみ、通信装置1は、BT5に従うアドバタイズ処理を実行するとしてもよい。さらには、通信装置1は、通知したいサイズが32~62オクテットの場合にはデータを分割してADV_INDパケットとSCAN_RESPパケットで通知し、63オクテットを超える場合にのみ、BT5に従うアドバタイズ処理を実行するとしても良い。 Further, in the above embodiment, the advertising process to be performed is determined according to the Bluetooth version supported by the registered counterpart device, but the advertising process may be determined using further additional conditions. For example, the communication device 1 may execute the advertising process according to BT5 only when the size of the data that the digital camera 810 wants to notify to the counterpart device exceeds 31 octets that can be transmitted in an ADV_IND packet. Furthermore, when the size to be notified is 32 to 62 octets, the communication device 1 divides the data and notifies it by ADV_IND packet and SCAN_RESP packet, and only when it exceeds 63 octets, executes the advertising process according to BT5. Also good.

また、上記実施形態では、Bluetoothを例に説明したが、他の所定の通信方式においても同様に、上記実施形態を適用することが可能である。 Further, in the above embodiment, Bluetooth is explained as an example, but the above embodiment can be similarly applied to other predetermined communication systems.

以上説明したように、これらの実施形態によれば、Bluetoothのセントラル機器においてサポートするバージョン(規格)に応じてアドバタイズ方法を切り替えることにより、ペリフェラル機器並びにセントラル機器の消費電力およびネットワーク負荷の低減を図ることが可能となる。 As described above, according to these embodiments, by switching the advertising method according to the version (standard) supported by the central device of Bluetooth, the power consumption and network load of the peripheral device and the central device are reduced. becomes possible.

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

1 通信装置、10 Host部、 15 Bluetooth Controller部、210 BT通信制御部、211 BT4通信制御部、212 BT5通信制御部、220 アドバタイズ状態部、230 対向機情報管理部、240 無線LAN通信制御部 1 communication device, 10 host unit, 15 Bluetooth controller unit, 210 BT communication control unit, 211 BT4 communication control unit, 212 BT5 communication control unit, 220 advertising state unit, 230 counterpart device information management unit, 240 wireless LAN communication control unit

Claims (13)

所定の通信方式の第1のバージョンまたは当該第1のバージョンとは異なる第2のバージョンをサポートする他の通信装置と通信を行う通信装置であって、
前記他の通信装置がサポートする前記通信方式のバージョンを登録する登録手段と、
前記登録手段により、前記他の通信装置がサポートする前記通信方式のバージョンが登録されている場合、当該登録されている、前記第1のバージョンまたは前記第2のバージョンに従う信号を送信し、
前記登録手段により、前記他の通信装置がサポートする前記通信方式のバージョンが登録されていない場合、前記第1のバージョンに従う信号および前記第2のバージョンに従う信号の双方を送信する送信手段と、
を有し、
前記第1のバージョンに従う信号は、Bluetoothバージョン4に従うアドバタイジングパケットであり、前記第2のバージョンに従う信号は、Bluetoothバージョン5に従うアドバタイジングパケットであることを特徴とする通信装置。
A communication device that communicates with another communication device that supports a first version of a predetermined communication method or a second version different from the first version,
registration means for registering the version of the communication method supported by the other communication device;
when the version of the communication method supported by the other communication device is registered by the registration means, transmitting a signal according to the registered first version or the second version;
transmission means for transmitting both a signal according to the first version and a signal according to the second version when the version of the communication system supported by the other communication device is not registered by the registration means;
has
A communication device, wherein the signal conforming to the first version is an advertising packet conforming to Bluetooth version 4, and the signal conforming to the second version is an advertising packet conforming to Bluetooth version 5.
前記他の通信装置がサポートする前記通信方式のバージョンの登録は、前記通信装置のユーザにより行われることを特徴とする請求項1に記載の通信装置。 2. The communication device according to claim 1, wherein registration of the version of the communication method supported by the other communication device is performed by a user of the communication device. 前記他の通信装置がサポートする前記通信方式のバージョンが登録されていない場合に、前記送信手段が前記第1のバージョンおよび前記第2のバージョンに従う信号の双方を送信したことに応じて、前記他の通信装置がサポートする前記通信方式のバージョンを取得する取得手段を更に有し、
前記登録手段は、前記取得手段により取得された前記通信方式のバージョンを登録することを特徴とする請求項1に記載の通信装置。
When the version of the communication scheme supported by the other communication device is not registered, the other communication device responds to the fact that the transmitting means has transmitted both the signals according to the first version and the second version. further comprising acquisition means for acquiring the version of the communication method supported by the communication device of
2. The communication apparatus according to claim 1, wherein said registration means registers the version of said communication method acquired by said acquisition means.
前記取得手段は、前記送信手段が前記第1のバージョンおよび前記第2のバージョンに従う信号を送信したことに応じて開始される接続を介して受信される信号に基づいて、前記他の通信装置がサポートする前記通信方式のバージョンを取得することを特徴とする請求項3に記載の通信装置。 The acquiring means determines, based on a signal received via a connection initiated in response to the transmitting means transmitting a signal according to the first version and the second version, that the other communication device 4. The communication device according to claim 3, wherein the version of said communication method to be supported is obtained. 前記接続を介して受信される信号に前記第2のバージョンを示す情報が含まれる場合に、前記取得手段は、前記他の通信装置がサポートする前記通信方式のバージョンを前記第2のバージョンとして取得することを特徴とする請求項4に記載の通信装置。 When information indicating the second version is included in the signal received via the connection, the acquisition means acquires the version of the communication method supported by the other communication device as the second version. 5. The communication device according to claim 4, wherein: 前記取得手段は、前記送信手段が前記第1のバージョンおよび前記第2のバージョンに従う信号を送信したことに応じて受信された信号が、前記第1のバージョンに従う信号に対応する第1の要求信号である場合に、前記他の通信装置がサポートする前記通信方式のバージョンを前記第1のバージョンとして取得し、前記受信された信号が、前記第2のバージョンに従う信号に対応する第2の要求信号である場合に、前記他の通信装置がサポートする前記通信方式のバージョンを前記第2のバージョンとして取得することを特徴とする請求項3に記載の通信装置。 The acquisition means receives a first request signal corresponding to a signal according to the first version, the signal received in response to the transmission means transmitting the signal according to the first version and the second version. , obtaining a version of the communication scheme supported by the other communication device as the first version, and obtaining a second request signal in which the received signal corresponds to a signal according to the second version. 4. The communication apparatus according to claim 3, wherein the version of the communication method supported by the other communication apparatus is obtained as the second version when . 前記取得手段が、前記他の通信装置がサポートする前記通信方式のバージョンを前記第1のバージョンとして取得した場合、前記送信手段は前記第2のバージョンに従う信号の送信を停止し、前記取得手段が、前記他の通信装置がサポートする前記通信方式のバージョンを前記第2のバージョンとして取得した場合、前記送信手段は前記第1のバージョンに従う信号の送信を停止することを特徴とする請求項6に記載の通信装置。 When the obtaining means obtains, as the first version, the version of the communication system supported by the other communication device, the transmitting means stops transmitting signals conforming to the second version, and the obtaining means 7. The method according to claim 6, wherein when the version of said communication system supported by said other communication device is obtained as said second version, said transmitting means stops transmitting signals according to said first version. Communication device as described. 前記取得手段は、前記送信手段により送信された前記第2のバージョンに従う信号の応答に基づいて、前記他の通信装置がサポートする前記通信方式のバージョンを取得することを特徴とする請求項3に記載の通信装置。 4. The apparatus according to claim 3, wherein said acquiring means acquires the version of said communication system supported by said other communication device based on a response to a signal conforming to said second version transmitted by said transmitting means. Communication device as described. 前記取得手段は、前記送信手段により送信された前記第2のバージョンに従う信号の応答を受けた場合に、前記他の通信装置がサポートする前記通信方式のバージョンを前記第2のバージョンとして取得することを特徴とする請求項8に記載の通信装置。 The obtaining means obtains, as the second version, the version of the communication method supported by the other communication device when receiving a response to the signal conforming to the second version transmitted by the transmitting means. 9. The communication device according to claim 8, characterized by: 前記送信手段により送信される前記第1のバージョンまたは前記第2のバージョンに従う信号は、前記通信装置の存在を示す信号であることを特徴とする請求項1から9のいずれか1項に記載の通信装置。 10. A signal according to any one of claims 1 to 9, wherein the signal according to the first version or the second version transmitted by the transmitting means is a signal indicating the presence of the communication device. Communication device. 所定の通信方式の第1のバージョンまたは当該第1のバージョンとは異なる第2のバージョンをサポートする他の通信装置と通信を行う通信装置の制御方法であって、
前記他の通信装置がサポートする前記通信方式のバージョンを登録する登録工程と、
前記登録工程において、前記他の通信装置がサポートする前記通信方式のバージョンが登録されている場合、当該登録されている、前記第1のバージョンまたは前記第2のバージョンに従う信号を送信し、
前記登録工程において、前記他の通信装置がサポートする前記通信方式のバージョンが登録されていない場合、前記第1のバージョンに従う信号および前記第2のバージョンに従う信号の双方を送信する送信工程と、
を有し、
前記第1のバージョンに従う信号は、Bluetoothバージョン4に従うアドバタイジングパケットであり、前記第2のバージョンに従う信号は、Bluetoothバージョン5に従うアドバタイジングパケットであることを特徴とする制御方法。
A control method for a communication device that communicates with another communication device that supports a first version of a predetermined communication method or a second version different from the first version, comprising:
a registration step of registering the version of the communication method supported by the other communication device;
in the registration step, if the version of the communication method supported by the other communication device is registered, transmitting a signal according to the registered first version or the second version;
a transmitting step of transmitting both a signal conforming to the first version and a signal conforming to the second version when the version of the communication method supported by the other communication device is not registered in the registering step;
has
A control method, wherein the signal conforming to the first version is an advertising packet conforming to Bluetooth version 4, and the signal conforming to the second version is an advertising packet conforming to Bluetooth version 5.
所定の通信方式の第1のバージョンまたは当該第1のバージョンとは異なる第2のバージョンをサポートする他の複数の通信装置と通信を行う通信装置の制御方法であって、
前記他の複数の通信装置がサポートする前記通信方式のバージョンを登録する登録工程と、
前記登録工程において登録された前記通信方式のバージョンが全て前記第1のバージョンである場合、前記第1のバージョンに従う信号を送信し、
前記登録工程において登録された前記通信方式のバージョンが全て前記第2のバージョンである場合、前記第2のバージョンに従う信号を送信し、
前記登録工程において何も登録されていない場合、または、前記登録工程において登録された前記通信方式のバージョンが前記第1のバージョンと前記第2のバージョンとを含む場合、前記第1のバージョンに従う信号および前記第2のバージョンに従う信号の双方を送信する送信工程と、
を有し、
前記第1のバージョンに従う信号は、Bluetoothバージョン4に従うアドバタイジングパケットであり、前記第2のバージョンに従う信号は、Bluetoothバージョン5に従うアドバタイジングパケットであることを特徴とする通信装置の制御方法。
A control method for a communication device that communicates with a plurality of other communication devices that support a first version of a predetermined communication method or a second version different from the first version, comprising:
a registration step of registering versions of the communication method supported by the plurality of other communication devices;
if all versions of the communication scheme registered in the registration step are the first version, transmitting a signal according to the first version;
if all versions of the communication scheme registered in the registration step are the second version, transmitting a signal according to the second version;
If nothing is registered in the registration step, or if the versions of the communication scheme registered in the registration step include the first version and the second version, a signal according to the first version and transmitting both signals according to said second version;
has
The method of controlling a communication device, wherein the signal conforming to the first version is an advertising packet conforming to Bluetooth version 4, and the signal conforming to the second version is an advertising packet conforming to Bluetooth version 5.
コンピュータを、請求項1から10のいずれか1項に記載の通信装置として機能させるためのプログラム。 A program for causing a computer to function as the communication device according to any one of claims 1 to 10 .
JP2018221678A 2018-03-12 2018-11-27 COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, AND PROGRAM Active JP7328754B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US16/295,340 US11057951B2 (en) 2018-03-12 2019-03-07 Communication apparatus, method of controlling communication apparatus, and non-transitory computer-readable storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2018044663 2018-03-12
JP2018044663 2018-03-12

Publications (3)

Publication Number Publication Date
JP2019161637A JP2019161637A (en) 2019-09-19
JP2019161637A5 JP2019161637A5 (en) 2022-01-06
JP7328754B2 true JP7328754B2 (en) 2023-08-17

Family

ID=67993586

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018221678A Active JP7328754B2 (en) 2018-03-12 2018-11-27 COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, AND PROGRAM

Country Status (1)

Country Link
JP (1) JP7328754B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7140719B2 (en) * 2019-07-04 2022-09-21 アンリツ株式会社 Measuring device and measuring method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014082756A (en) 2012-09-25 2014-05-08 Toshiba Corp Wireless communication apparatus and method
US20140342670A1 (en) 2013-05-16 2014-11-20 Samsung Electronics Co., Ltd. Communication method and device
US20150312703A1 (en) 2014-04-28 2015-10-29 International Business Machines Timed and variable duration for multiple device synching

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014082756A (en) 2012-09-25 2014-05-08 Toshiba Corp Wireless communication apparatus and method
US20140342670A1 (en) 2013-05-16 2014-11-20 Samsung Electronics Co., Ltd. Communication method and device
US20150312703A1 (en) 2014-04-28 2015-10-29 International Business Machines Timed and variable duration for multiple device synching

Also Published As

Publication number Publication date
JP2019161637A (en) 2019-09-19

Similar Documents

Publication Publication Date Title
JP6385205B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, AND PROGRAM
JP6184580B1 (en) Information processing apparatus, control method, and program
JP6532341B2 (en) Communication device, control method therefor, and program
JP6335466B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, AND PROGRAM
JP6338344B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, AND PROGRAM
US10028108B2 (en) Communication device and setting device for communicating a plurality of setting values related to a plurality of setting items
JP7328754B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, AND PROGRAM
JP6454120B2 (en) Communication device, control method, and program
JP6253250B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
US20190281643A1 (en) Communication apparatus, method of controlling communication apparatus, and non-transitory computer-readable storage medium
JP2020046756A (en) Information processing apparatus, method of controlling the same, and program
JP6161316B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
JP6300454B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM
JP6157190B2 (en) COMMUNICATION DEVICE, ITS CONTROL METHOD, PROGRAM
JP2008299694A (en) Peripheral device driver installation system
US9602579B2 (en) Communication apparatus, method for controlling the same, and program
JP6752329B2 (en) Communication equipment, its control method, and programs
JP6150551B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
JP6168867B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM
JP2015191320A (en) Information processor, device sharing system and device connection method
KR101561524B1 (en) System for managing Remote User Interface and Method thereof
JP2014203201A (en) Communication device, and control method and program of the same
JP6512882B2 (en) Communication device and control method thereof
JP5804794B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, AND PROGRAM
JP2018186341A (en) Communication device, control method of communication device, and program

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20210103

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210113

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20211125

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20211125

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20220930

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20221028

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20221226

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20230407

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230522

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230804

R151 Written notification of patent or utility model registration

Ref document number: 7328754

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151