JP2019041151A - Imaging device, control method and program - Google Patents

Imaging device, control method and program Download PDF

Info

Publication number
JP2019041151A
JP2019041151A JP2017159542A JP2017159542A JP2019041151A JP 2019041151 A JP2019041151 A JP 2019041151A JP 2017159542 A JP2017159542 A JP 2017159542A JP 2017159542 A JP2017159542 A JP 2017159542A JP 2019041151 A JP2019041151 A JP 2019041151A
Authority
JP
Japan
Prior art keywords
beacon
role
position information
receiving
photographing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2017159542A
Other languages
Japanese (ja)
Other versions
JP6918634B2 (en
Inventor
龍太 水森
Ryuta Mizumori
龍太 水森
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 JP2017159542A priority Critical patent/JP6918634B2/en
Publication of JP2019041151A publication Critical patent/JP2019041151A/en
Application granted granted Critical
Publication of JP6918634B2 publication Critical patent/JP6918634B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Position Fixing By Use Of Radio Waves (AREA)
  • Navigation (AREA)
  • Details Of Cameras Including Film Mechanisms (AREA)
  • Studio Devices (AREA)

Abstract

To increase probability in which position information can be imparted to a captured image in an imaging device having a radio communication function without complicating the structure of the device.SOLUTION: An imaging device having a radio communication function comprises: setting means for switching role of the imaging device to a role of receiving a beacon when radio connection with an external device is not established; receiving means for receiving the position information of the external device when set to the role of transmitting the beacon and receiving the beacon including the position information of a transmission source when set to the role of receiving the beacon; and imparting means for imparting the position information of the imaging device which is specified based on the received position information to the image obtained by the imaging means when the receiving means receives the position information and for imparting the position information of the imaging device which is specified based on the position information included in the received beacon to the image when the receiving means receives the beacon.SELECTED DRAWING: Figure 9

Description

本発明は、無線通信機能を有する撮影装置、制御方法及びプログラムに関する。   The present invention relates to a photographing apparatus having a wireless communication function, a control method, and a program.

従来、通信速度は遅いが、低消費電力で動作できるBluetooth(登録商標)という規格が知られている。特にVersion4.0以降は、低消費電力に注力することで幅広い分野の機器で採用が進んでいる。一般的にVersion4.0以降のBluetoothは、Bluetooth Low Energy(以下BLE)と呼ばれている。BLEは、デジタルカメラにも搭載されており、同じくBLEに対応するスマートフォンとBLEでの常時接続することで様々な機能・サービスを実現する。例えば、スマートフォンが保持する位置情報をBLE通信でデジタルカメラに送信する機能がある。これにより、測位機能を持たないデジタルカメラであっても画像データに位置情報を付与できる。   Conventionally, a standard called Bluetooth (registered trademark) that can operate with low power consumption but low communication speed is known. In particular, since version 4.0, it has been adopted in a wide range of devices by focusing on low power consumption. Generally, Bluetooth after Version 4.0 is called Bluetooth Low Energy (hereinafter referred to as BLE). BLE is also installed in digital cameras, and realizes various functions and services by always connecting with a BLE-compatible smartphone. For example, there is a function of transmitting position information held by a smartphone to a digital camera by BLE communication. Thereby, even a digital camera having no positioning function can provide position information to image data.

特許文献1には、GPS(Global Positioning Service)と近距離無線を有し、GPSによる位置測位電波を受信できない場合は、近距離無線を用いて近くの機器から位置情報を取得する技術が開示されている。位置情報取得のために複数の経路を用意することで、位置情報取得の確率を高めることができる。   Patent Document 1 discloses a technology that has GPS (Global Positioning Service) and short-range radio, and can acquire position information from nearby devices using short-range radio when GPS positioning signals cannot be received. ing. Providing a plurality of routes for acquiring position information can increase the probability of acquiring position information.

特開2004−125490号公報JP 2004-125490 A

BLEで接続したスマートフォンから位置情報を取得するカメラの場合には、スマートフォンがBLE通信圏内にいないとスマートフォンから位置情報を取得できず、撮影した画像に位置情報を付与することができない。この場合、特許文献1に記載されているように、BLEと異なる仕組みで位置情報を取得することも可能であるが、BLE以外の仕組みが必要になり、カメラの構造を複雑にしてしまうという問題がある。   In the case of a camera that acquires position information from a smartphone connected by BLE, the position information cannot be acquired from the smartphone unless the smartphone is within the BLE communication range, and the position information cannot be given to the captured image. In this case, as described in Patent Document 1, it is possible to acquire position information by a mechanism different from BLE. However, a mechanism other than BLE is required, which complicates the structure of the camera. There is.

本発明はこのような問題点に鑑みなされたもので、無線通信機能を有する撮影装置において、装置の構造を複雑にすることなく、撮影装置によって得られた撮影画像に位置情報を付与できる確率を高めることを目的とする。   The present invention has been made in view of such problems, and in a photographing apparatus having a wireless communication function, the probability that position information can be given to a photographed image obtained by the photographing apparatus without complicating the structure of the apparatus. The purpose is to increase.

そこで、本発明は、無線通信機能を有する撮影装置であって、被写体を撮影する撮影手段と、前記撮影装置の無線通信における役割として、前記撮影装置の存在を伝えるビーコンを送信する役割と、外部装置からビーコンを受信する役割のいずれかを設定し、前記ビーコンを送信する役割に設定されている状態において、外部装置との無線接続を確立中でない場合に、前記撮影装置の役割を、前記ビーコンを受信する役割に切り替える設定手段と、前記ビーコンを送信する役割に設定されている場合には、前記ビーコンを受信した外部装置から該外部装置の位置情報を受信し、前記ビーコンを受信する役割が設定されている場合には、送信元の位置情報を含んだビーコンを受信する受信手段と、前記受信手段が位置情報を受信した場合に、受信した位置情報に基づいて特定された前記撮影装置の位置情報を、前記撮影手段により得られた撮影画像に付与し、前記受信手段が前記ビーコンを受信した場合に、受信したビーコンに含まれる位置情報に基づいて特定された前記撮影装置の位置情報を、前記撮影画像に付与する付与手段とを有することを特徴とする。   Therefore, the present invention is an imaging device having a wireless communication function, and is an imaging unit for imaging a subject, and a role of transmitting a beacon indicating the presence of the imaging device as a role in wireless communication of the imaging device, and an external When one of the roles of receiving a beacon from a device is set and the wireless connection with an external device is not established in the state where the role of transmitting the beacon is set, the role of the photographing device is changed to the beacon. Setting means for switching to the role of receiving the beacon, and if the role of transmitting the beacon is set, the role of receiving the beacon is received from the external device that has received the beacon If it is set, the receiving means for receiving the beacon including the location information of the transmission source and the reception means when the receiving means receives the location information. Position information included in the received beacon when the receiving unit receives the beacon when the receiving unit receives the beacon from the position information of the image capturing device specified based on the position information And adding means for giving the position information of the photographing apparatus specified based on the photographed image to the photographed image.

本発明によれば、無線通信機能を有する撮影装置において、装置の構造を複雑にすることなく、撮影装置によって得られた撮影画像に位置情報を付与できる確率を高めることができる。   According to the present invention, in a photographing apparatus having a wireless communication function, it is possible to increase the probability that position information can be given to a photographed image obtained by the photographing apparatus without complicating the structure of the apparatus.

デジタルカメラを示す図である。It is a figure which shows a digital camera. 端末装置を示す図である。It is a figure which shows a terminal device. 無線アクセスポイントを示す図である。It is a figure which shows a wireless access point. システムの全体図である。1 is an overall view of a system. 位置情報受信処理を示すシーケンス図である。It is a sequence diagram which shows a positional information reception process. GATTサーバーを示す図である。It is a figure which shows a GATT server. 端末装置が位置情報を取得する処理を示すフローチャートである。It is a flowchart which shows the process in which a terminal device acquires position information. Advertiseのデータ構成の一例を示す図である。It is a figure which shows an example of a data structure of Advertise. 位置情報取得処理を示すフローチャートである。It is a flowchart which shows a positional information acquisition process. 第2の実施形態に係る位置情報取得処理を示すフローチャートである。It is a flowchart which shows the positional infomation acquisition process which concerns on 2nd Embodiment.

以下、本発明の実施形態について図面に基づいて説明する。
(第1の実施形態)
図1は、撮影装置としてのデジタルカメラ100を示す図である。101は、レンズで、被写体像をデジタルカメラ100内に取り込む。撮像部102は、CCDやCMOS等の撮像素子や各種電子機器を含み、レンズ101により光学的に取り込まれた被写体像をデジタルデータに変換する。制御部103は、デジタルカメラ100の全体を制御する。制御部103は、例えばCentral Processing Unit(CPU)である。画像処理部104は、撮像部102で取り込まれた静止画に対し画像処理を施す。符号化部105は、画像処理部104で処理された画像データに対して、所望の符号化方式に従った符号化処理を行う。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
(First embodiment)
FIG. 1 is a diagram illustrating a digital camera 100 as a photographing apparatus. Reference numeral 101 denotes a lens that captures a subject image into the digital camera 100. The imaging unit 102 includes an imaging device such as a CCD and a CMOS and various electronic devices, and converts a subject image optically captured by the lens 101 into digital data. The control unit 103 controls the entire digital camera 100. The control unit 103 is, for example, a central processing unit (CPU). The image processing unit 104 performs image processing on the still image captured by the imaging unit 102. The encoding unit 105 performs encoding processing on the image data processed by the image processing unit 104 according to a desired encoding method.

Read Only Memory(ROM)106は、書き換え可能な不揮発性メモリでOperating System(OS)などのプログラムや、外部装置から供給されるプログラムを保持する。Random Access Memory(RAM)107は揮発性メモリでプログラムや撮影された画像データや、通信データ等を一時記憶する。記憶部108は、デジタルカメラ100に着脱可能なメモリカードである。記憶部108は、デジタルカメラ100で撮影した画像データ・動画データを記憶することが可能である。なお、後述するデジタルカメラ100の機能や処理は、制御部103がROM106に格納されているプログラムを読み出し、このプログラムを実行することにより実現されるものである。   A Read Only Memory (ROM) 106 is a rewritable nonvolatile memory, and holds programs such as an operating system (OS) and programs supplied from an external device. A Random Access Memory (RAM) 107 is a volatile memory that temporarily stores programs, captured image data, communication data, and the like. The storage unit 108 is a memory card that can be attached to and detached from the digital camera 100. The storage unit 108 can store image data / moving image data captured by the digital camera 100. Note that the functions and processing of the digital camera 100 to be described later are realized by the control unit 103 reading a program stored in the ROM 106 and executing the program.

Bit Move Unit(BMU)109は、例えばメモリ間(例えば、RAM107と他のメモリとの間)や、メモリと各I/Oデバイス(例えば、無線部110)間においてシステムバス111を介して行われるデータ転送を制御する。無線部110は、近距離での機器間通信により端末装置200と通信する。   The Bit Move Unit (BMU) 109 is performed, for example, between memories (for example, between the RAM 107 and another memory) or between the memory and each I / O device (for example, the wireless unit 110) via the system bus 111. Control data transfer. The wireless unit 110 communicates with the terminal device 200 through device-to-device communication at a short distance.

無線部110は、Bluetooth(登録商標)により、近距離無線通信を行う。Bluetoothは、例えば無線LANよりも通信速度は遅いが消費電力は低いという特徴を持つ無線インターフェイスである。本実施形態においては、無線部110は、Bluetooth規格のバージョン4.0以降で規定されたBluetooth Low Energy規格(BLE)に準拠しているものとする。さらに、無線部110は、BLEにおける役割としてアドバタイザー、スキャナーのいずれの役割としても機能できるものとする。すなわち、無線部110は、アドバタイザーとしてAdvertiseを送信することで他の機器(外部装置)に自装置の存在を伝えることができ、かつ他の機器が発するAdvertiseをスキャナーとして受信することもできる。なお、アドバタイザーが送信するAdvertiseは、自装置の存在を伝えるビーコンの一例であり、アドバタイザーは、ビーコンを送信する役割の一例である。スキャナーは、外部装置からビーコンを受信する役割の一例である。システムバス111は、102〜110の各ブロックを通信可能に接続する。   The wireless unit 110 performs short-range wireless communication using Bluetooth (registered trademark). Bluetooth, for example, is a wireless interface having a feature that the communication speed is slower than that of a wireless LAN but the power consumption is low. In the present embodiment, the wireless unit 110 is assumed to be compliant with the Bluetooth Low Energy standard (BLE) defined in Bluetooth standard version 4.0 or later. Furthermore, it is assumed that the wireless unit 110 can function as either an advertiser or a scanner as a role in BLE. That is, the wireless unit 110 can transmit the advertisement as an advertiser to notify the other device (external device) of the presence of the own device, and can also receive the advertisement generated by the other device as a scanner. The Advertise transmitted by the advertiser is an example of a beacon that notifies the existence of the own device, and the advertiser is an example of a role of transmitting the beacon. A scanner is an example of a role of receiving a beacon from an external device. The system bus 111 connects the blocks 102 to 110 so that they can communicate with each other.

図2は、端末装置200を示す図である。端末装置200は、デジタルカメラ100とBLE接続する。なお、端末装置200は、単一のコンピュータ装置で実現してもよいし、必要に応じた複数のコンピュータ装置に各機能を分散して実現するようにしてもよい。制御部201は、端末装置200全体を制御する。制御部201は例えばCPUである。ROM202は、書き換え可能な不揮発性メモリでOS等のプログラムや、外部装置から供給されるプログラムを保持する。RAM203は、揮発性メモリでプログラムやデータを一時記憶する。記憶部204は、画像データなどを記憶する。記憶部204は、例えば端末装置200に固定して設置されたハードディスクドライブ(HDD)や、フラッシュメモリで構成されるソリッドステートドライブ(SSD)である。記憶部204はまた、ハードディスクとフラッシュメモリを併用したハイブリッドドライブやメモリカードであってもよい。なお、後述する端末装置200の機能や処理は、制御部201がROM202等に格納されているプログラムを読み出し、このプログラムを実行することにより実現されるものである。   FIG. 2 is a diagram illustrating the terminal device 200. The terminal device 200 is connected to the digital camera 100 by BLE. The terminal device 200 may be realized by a single computer device, or may be realized by distributing functions to a plurality of computer devices as necessary. The control unit 201 controls the entire terminal device 200. The control unit 201 is, for example, a CPU. The ROM 202 is a rewritable nonvolatile memory and holds programs such as an OS and programs supplied from an external device. The RAM 203 is a volatile memory and temporarily stores programs and data. The storage unit 204 stores image data and the like. The storage unit 204 is, for example, a hard disk drive (HDD) that is fixedly installed in the terminal device 200 or a solid state drive (SSD) that includes a flash memory. The storage unit 204 may also be a hybrid drive or a memory card using both a hard disk and a flash memory. Note that the functions and processes of the terminal device 200 described later are realized by the control unit 201 reading a program stored in the ROM 202 or the like and executing the program.

BMU205は、例えばメモリ間(例えば、VRAM206と他のメモリとの間)や、メモリと各I/Oデバイス(例えば、無線部209、無線LAN部210)間のデータ転送を制御する。Video R A M(VRAM)206は、液晶モニター208に表示する為の画像を描画する。このVRAM206に生成した画像は所定の規定に従って液晶モニター208に送信される。これにより液晶モニター208は画像を表示する。液晶モニター208はタッチセンサ207を有するタッチパネルである。タッチパネルは、液晶モニター208に重ね合わせて平面的に構成され、接触された位置に応じた座標情報が出力されるようにした入力デバイスである。制御部201は、タッチパネルへのユーザ操作に応じた指示を受け付ける。   The BMU 205 controls, for example, data transfer between memories (for example, between the VRAM 206 and another memory) and between the memory and each I / O device (for example, the wireless unit 209 and the wireless LAN unit 210). A video RAM (VRAM) 206 draws an image to be displayed on the liquid crystal monitor 208. The image generated in the VRAM 206 is transmitted to the liquid crystal monitor 208 according to a predetermined rule. Thereby, the liquid crystal monitor 208 displays an image. The liquid crystal monitor 208 is a touch panel having a touch sensor 207. The touch panel is an input device that is configured to be planar and overlapped with the liquid crystal monitor 208 so that coordinate information corresponding to the touched position is output. The control unit 201 receives an instruction corresponding to a user operation on the touch panel.

無線部209は、近距離無線通信によりデジタルカメラ100等の他の機器との無線通信を行う。無線部209は例えば、無線通信を介して、後述の無線アクセスポイントが送信する位置情報を受信する。無線部209は、デジタルカメラ100の無線部110と同様に、BLEに準拠しているものとする。ただし、無線部209は、BLEにおける役割としてスキャナーの役割で動作できればよい。無線部209は、他の機器が送信するAdvertiseを受信し、必要に応じてBLE接続を確立する。無線LAN部210は、無線アクセスポイントと通信することでインターネットへ接続する。   The wireless unit 209 performs wireless communication with other devices such as the digital camera 100 by short-range wireless communication. For example, the wireless unit 209 receives position information transmitted by a wireless access point described later via wireless communication. The wireless unit 209 is assumed to be compliant with the BLE similarly to the wireless unit 110 of the digital camera 100. However, the wireless unit 209 only needs to be able to operate in the role of a scanner as a role in BLE. The wireless unit 209 receives Advertise transmitted by another device, and establishes a BLE connection as necessary. The wireless LAN unit 210 connects to the Internet by communicating with a wireless access point.

GPS部211は、Global Positioning Serviceに準拠した位置測位を行う。GPS部211は、衛星からの電場を受信し、演算処理を行うことで端末装置200の正確な位置情報を算出する。GPSにより位置情報を算出するのは、屋外での位置測位に有効である。システムバス212は201〜211の各ブロックを通信可能に接続する。   The GPS unit 211 performs positioning based on the Global Positioning Service. The GPS unit 211 receives the electric field from the satellite and calculates the accurate position information of the terminal device 200 by performing arithmetic processing. Calculation of position information by GPS is effective for position measurement outdoors. The system bus 212 connects the blocks 201 to 211 in a communicable manner.

図3は、本実施例における無線アクセスポイント(AP)300を示す図である。無線AP300は単一のコンピュータ装置で実現してもよいし、必要に応じた複数のコンピュータ装置に各機能を分散して実現するようにしてもよい。制御部301は、無線AP300全体を制御する。制御部301は、例えばCPUである。ROM302は、書き換え可能な不揮発性メモリで、OSなどのプログラムや、外部装置から供給されるプログラムを保持する。RAM303は、揮発性メモリでプログラムやデータを一時記憶する。記憶部304は、無線AP300の設定や実行するプログラムなど記憶する。記憶部304は、例えば無線AP300に固定して設置されたHDD、SSD、ハードディスクとフラッシュメモリを併用したハイブリッドドライブやメモリカードなどである。BMU305は、例えばメモリ間(例えば、RAM303と他のメモリとの間)や、メモリと各I/Oデバイス(例えば、無線部306や無線LAN部307)間のデータ転送を制御する。   FIG. 3 is a diagram illustrating a wireless access point (AP) 300 in the present embodiment. The wireless AP 300 may be realized by a single computer device, or may be realized by distributing functions to a plurality of computer devices as necessary. The control unit 301 controls the entire wireless AP 300. The control unit 301 is a CPU, for example. A ROM 302 is a rewritable nonvolatile memory, and holds programs such as an OS and programs supplied from an external device. The RAM 303 is a volatile memory and temporarily stores programs and data. The storage unit 304 stores settings of the wireless AP 300 and programs to be executed. The storage unit 304 is, for example, an HDD, an SSD, a hybrid drive using a combination of a hard disk and flash memory, a memory card, or the like fixedly installed on the wireless AP 300. The BMU 305 controls data transfer between memories (for example, between the RAM 303 and another memory) or between the memory and each I / O device (for example, the wireless unit 306 and the wireless LAN unit 307).

無線部306は、近距離無線通信により他の機器との無線通信を行う。無線部209は、無線部110等と同様に、BLEに準拠しているものとする。ただし、無線部306は、BLEにおける役割としてアドバタイザーの役割で動作できればよい。無線部306は、BLEのIndoor Positioning Service(IPS)に準拠したAdvertiseができる機能を有し、IPS準拠の位置情報を送信することができる。送信される位置情報は無線AP300の設置時に設定されているものとする。無線LAN部307は、端末装置200と接続して無線通信を行い、端末装置200に対しインターネットへのアクセスを提供する。システムバス308は、301〜307の各ブロックを通信可能に接続する。   The wireless unit 306 performs wireless communication with other devices by short-range wireless communication. The wireless unit 209 is assumed to be compliant with BLE similarly to the wireless unit 110 and the like. However, the wireless unit 306 only needs to be able to operate in the role of an advertiser as a role in BLE. The wireless unit 306 has a function capable of performing Advertise conforming to BLE's Interior Positioning Service (IPS), and can transmit location information conforming to IPS. It is assumed that the transmitted position information is set when the wireless AP 300 is installed. The wireless LAN unit 307 connects to the terminal device 200 to perform wireless communication, and provides the terminal device 200 with access to the Internet. The system bus 308 connects the blocks 301 to 307 so that they can communicate with each other.

なお、デジタルカメラ100、端末装置200及び無線AP300が利用する近距離無線通信は、Bluetoothに限定されるものではなく、これ以外の近距離無線通信の方式を用いることとしてもよい。   Note that the short-range wireless communication used by the digital camera 100, the terminal device 200, and the wireless AP 300 is not limited to Bluetooth, and other short-range wireless communication schemes may be used.

図4は、デジタルカメラ100が、撮影により得られた撮影画像に対し位置情報を付与する処理を実現するシステムの全体図である。デジタルカメラ100は、端末装置200とBLEで接続する。デジタルカメラ100は、低消費電力のBLEを利用することで常時接続が可能となり、端末装置200から位置情報を定期的に取得するだけでなく、撮影のタイミングで最新の位置情報を取得することができる。また、デジタルカメラ100は、無線AP300が送信する、位置情報を含んだAdvertiseを取得することで、Advertiseに含まれる位置情報を取得することもできる。   FIG. 4 is an overall view of a system that realizes a process in which the digital camera 100 assigns position information to a captured image obtained by imaging. The digital camera 100 is connected to the terminal device 200 by BLE. The digital camera 100 can always be connected by using BLE with low power consumption, and can acquire not only the position information from the terminal device 200 regularly but also the latest position information at the timing of shooting. it can. The digital camera 100 can also acquire the position information included in the Advertise by acquiring the Advertise including the position information transmitted by the wireless AP 300.

端末装置200は、デジタルカメラ100に提供する位置情報を、複数の方法により取得する。1つ目は、GPS衛星400が発するGPS電波をGPS部211で受信して位置情報を算出する方法である。これは、屋外での測位に効果を発揮する。2つ目は、無線AP300が送信する、位置情報を含むAdvertiseを受信する方法である。これは、GPS電波の届かない屋内で効果を発揮する。3つ目は、端末装置200が、無線AP300と無線LAN接続を通してインターネット401に接続し、位置情報管理サーバー402から無線AP300の位置情報を取得する方法である。位置情報管理サーバー402は、SSIDの情報とその位置情報を紐付けて管理している。端末装置200は、無線AP300を指し示すSSID(Service Set IDentifier)の情報を用い、位置情報管理サーバー402に対してインターネット401を経由して問い合わせることで位置情報を取得する。これも、GPS電波の届かないところで効果を発揮する。デジタルカメラ100は、端末装置200が取得した位置情報を受信する。このため、デジタルカメラ100は、GPS等の測位のための機能を有さなくとも、撮影画像に位置情報を付与することが可能になる。   The terminal device 200 acquires position information provided to the digital camera 100 by a plurality of methods. The first is a method in which the GPS unit 211 receives GPS radio waves emitted from the GPS satellite 400 and calculates position information. This is effective for positioning outdoors. The second method is a method for receiving Advertise including position information transmitted by the wireless AP 300. This is effective indoors where GPS radio waves do not reach. The third method is a method in which the terminal device 200 connects to the Internet 401 through a wireless LAN connection with the wireless AP 300 and acquires location information of the wireless AP 300 from the location information management server 402. The position information management server 402 manages the SSID information and the position information in association with each other. The terminal device 200 acquires location information by making an inquiry to the location information management server 402 via the Internet 401 using SSID (Service Set IDentifier) information indicating the wireless AP 300. This is also effective when GPS radio waves do not reach. The digital camera 100 receives the position information acquired by the terminal device 200. For this reason, the digital camera 100 can add position information to a captured image without having a positioning function such as GPS.

図5は、デジタルカメラ100が端末装置200から位置情報を受信する処理を示すシーケンス図である。本処理は、デジタルカメラ100と端末装置200がBLE未接続の状態において開始される。S501において、デジタルカメラ100が起動する。デジタルカメラ100は、例えば、利用者が撮影を行うために電源ボタンを押下する操作に応じて起動する。次に、S502において、デジタルカメラ100の制御部103は、BLEの規格に従ったAdvertiseを開始するよう制御する。具体的には、制御部103は、無線部110に対してAdvertise間隔等の設定値と、Advertiseのデータを設定する。これに対応し、無線部110は、Advertiseのパケットの送信を開始する。S502の処理により、デジタルカメラ100は、自装置の存在を周囲の機器に知らせることができる。Advertiseは、Advertise間隔に従い定期的に配信されるブロードキャストの形式をとり、配信間隔が長くなれば長時間Advertiseを配信し続けられる。デジタルカメラ100は、基本的にBLE接続に際しアドバタイザー機器として振る舞う。   FIG. 5 is a sequence diagram illustrating processing in which the digital camera 100 receives position information from the terminal device 200. This process is started when the digital camera 100 and the terminal device 200 are not connected to BLE. In S501, the digital camera 100 is activated. The digital camera 100 is activated in response to, for example, an operation in which a user presses a power button to take a picture. In step S <b> 502, the control unit 103 of the digital camera 100 performs control so as to start advertisement in accordance with the BLE standard. Specifically, the control unit 103 sets a setting value such as an Advertise interval and Advertise data for the wireless unit 110. In response to this, the wireless unit 110 starts transmitting an Advertise packet. Through the process of S502, the digital camera 100 can notify the peripheral devices of the presence of the own device. Advertise takes the form of a broadcast that is periodically distributed according to the Advertise interval. If the distribution interval becomes longer, Advertise can continue to be distributed for a long time. The digital camera 100 basically behaves as an advertiser device during BLE connection.

端末装置200の制御部201は、Advertiseを受信すると、S503において、Adevertiseに対する応答として、デジタルカメラ100に対して接続要求を送信するよう制御する。具体的には、制御部201は、無線部209に対して接続要求を設定する。これに対応し、無線部209は、接続要求を送信する。なお、他の例としては、制御部201は、Advertiseを受信し、かつユーザから接続指示を受け付けた場合に、接続要求を送信することとしてもよい。例えば、端末装置200は、Advertiseを受信した場合に、デジタルカメラ100の存在を示す情報を液晶モニター208に表示した上で、ユーザから接続指示を受け付けることとしてもよい。   When receiving the Advertise, the control unit 201 of the terminal device 200 controls to transmit a connection request to the digital camera 100 as a response to the Advertise in S503. Specifically, the control unit 201 sets a connection request for the wireless unit 209. In response to this, the wireless unit 209 transmits a connection request. As another example, the control unit 201 may transmit a connection request when receiving the Advertise and receiving a connection instruction from the user. For example, when receiving the advertisement, the terminal device 200 may display information indicating the presence of the digital camera 100 on the liquid crystal monitor 208 and then receive a connection instruction from the user.

次に、S504において、デジタルカメラ100の制御部103と端末装置200の制御部201は、BLEの接続を確立するよう制御する。これは、リンク層の接続である。S504において、制御部103及び制御部201の制御の下、無線部110と無線部209がBLEとしてのサポート機能に関する情報の交換などを行うことで、無線電波のやり取りが可能な状態となる。基本的にはS503において接続要求が送信されたことをきっかけとして、無線部110及び無線部209がBLEの規格に従いリンク層の接続確立を自動的に行う。制御部103及び制御部201は、それぞれ無線部110と無線部209の状態を監視することでBLE接続の完了を把握することができる。   In step S <b> 504, the control unit 103 of the digital camera 100 and the control unit 201 of the terminal device 200 perform control so as to establish a BLE connection. This is a link layer connection. In S504, under the control of the control unit 103 and the control unit 201, the wireless unit 110 and the wireless unit 209 exchange information related to the support function as BLE, and the wireless radio waves can be exchanged. Basically, the wireless unit 110 and the wireless unit 209 automatically establish a link layer connection in accordance with the BLE standard, triggered by the transmission of the connection request in S503. The control unit 103 and the control unit 201 can grasp the completion of the BLE connection by monitoring the states of the wireless unit 110 and the wireless unit 209, respectively.

次に、S505において、制御部103と制御部201は、ATTサービスでの接続を確立する。これは、アプリケーション層の接続である。制御部103及び制御部201は、S504において確立されたBLE接続を土台として、各種機能が提供できるATTでの接続を確立する。通信としてはATTが規定するプロトコルに従う。本処理は、デジタルカメラ100の制御部103が無線部110を、端末装置200の制御部201が無線部209を使ってリクエストやレスポンスのやり取りを行うことで実現できる。   Next, in step S505, the control unit 103 and the control unit 201 establish a connection with the ATT service. This is an application layer connection. The control unit 103 and the control unit 201 establish an ATT connection that can provide various functions based on the BLE connection established in S504. The communication follows the protocol specified by ATT. This processing can be realized when the control unit 103 of the digital camera 100 uses the wireless unit 110 and the control unit 201 of the terminal apparatus 200 exchanges requests and responses using the wireless unit 209.

本実施形態においては、デジタルカメラ100は、図6に示すような位置情報に関するサービスに対応しているものとする。GATT(General ATTribute Profile)に準拠したサーバー機能であるGATTサーバー601に位置情報受付サービス602が用意されている。GATTサーバー601は、制御部103で実行されるプログラムとしてRAM107上に存在する。位置情報受付サービス602はGATTサーバー601のプログラムが管理するデータとしてRAM107上に存在する。さらに位置情報受付サービス602は、それ自身を一意に特定するためのUUID(Universally Unique IDentifier)603を有している。さらに、位置情報受付サービス602は、実際の値としてハンドル604で識別可能な緯度値606と、ハンドル605で識別可能な経度値607を有している。デジタルカメラ100は、緯度値606及び経度値607を参照することで位置情報を活用できる。   In the present embodiment, it is assumed that the digital camera 100 is compatible with a service related to position information as shown in FIG. A location information reception service 602 is prepared in a GATT server 601 that is a server function compliant with GATT (General ATTribular Profile). The GATT server 601 exists on the RAM 107 as a program executed by the control unit 103. The location information reception service 602 exists on the RAM 107 as data managed by the program of the GATT server 601. Further, the location information reception service 602 has a UUID (Universally Unique IDentifier) 603 for uniquely identifying itself. Further, the position information reception service 602 has a latitude value 606 that can be identified by the handle 604 and a longitude value 607 that can be identified by the handle 605 as actual values. The digital camera 100 can utilize the position information by referring to the latitude value 606 and the longitude value 607.

図5に戻り、S505の処理の後、S506において、端末装置200の制御部201は、デジタルカメラ100にATTプロトコルに従った、位置情報の書き込みリクエストを送信するよう制御する。書き込みリクエストは、端末装置200がデジタルカメラ100の位置情報受付サービス602が管理する位置情報に対する更新を依頼するリクエストである。制御部201は、無線部209に対して書き込みリクエストを設定する。これに対応し、無線部209は、書き込みリクエストを送信する。書き込みリクエストとしては引数としてUUID603とハンドル604,605を組み合わせる。これにより、GATTサーバー601が管理する位置情報受付サービス602内の緯度値606、経度値607を一意に指定できる。また、制御部201は、最新の位置情報をRAM203に格納しておく。これにより、制御部201は、最新の位置情報を送信することができる。なお、端末装置200が位置情報を取得する処理については図7を参照しつつ後述する。   Returning to FIG. 5, after the processing of S505, in S506, the control unit 201 of the terminal device 200 controls the digital camera 100 to transmit a position information write request according to the ATT protocol. The write request is a request for the terminal device 200 to request an update of the position information managed by the position information reception service 602 of the digital camera 100. The control unit 201 sets a write request for the wireless unit 209. In response to this, the wireless unit 209 transmits a write request. As a write request, UUID 603 and handles 604 and 605 are combined as arguments. Thereby, the latitude value 606 and the longitude value 607 in the position information reception service 602 managed by the GATT server 601 can be uniquely specified. The control unit 201 stores the latest position information in the RAM 203. Accordingly, the control unit 201 can transmit the latest position information. Note that a process in which the terminal device 200 acquires position information will be described later with reference to FIG.

デジタルカメラ100が書き込みリクエストを受信すると、S507において、制御部103は位置情報を更新する。具体的には、制御部103で動作するGATTサーバー601は、無線部110で受信したリクエストから緯度、経度の情報を抽出する。そして、GATTサーバー601は、UUID603で書き込み対象となるサービスを特定し、ハンドル604,605に従いRAM107にある緯度値606と経度値607の領域にデータをコピーする。これによりデジタルカメラ100が取り扱える位置情報が更新される。   When the digital camera 100 receives the write request, the control unit 103 updates the position information in S507. Specifically, the GATT server 601 operating in the control unit 103 extracts latitude and longitude information from the request received by the wireless unit 110. Then, the GATT server 601 identifies the service to be written with the UUID 603 and copies the data to the latitude value 606 and longitude value 607 areas in the RAM 107 according to the handles 604 and 605. Thereby, the position information that can be handled by the digital camera 100 is updated.

次に、S508において、制御部103は、書き込みリクエストに対応する応答として、書き込みレスポンスを端末装置200に送信するよう制御する。具体的には、制御部103は、無線部110に書き込みレスポンスを設定する。これに対応し、無線部110は、書き込みレスポンスを端末装置200に送信する。ここまでの処理により、端末装置200は、BLEを用いてデジタルカメラ100に位置情報を提供することができる。基本的にBLEは常時接続であり、通信が行われない間は、デジタルカメラ100と端末装置200の間のBLEの接続は維持される。具体的には、デジタルカメラ100の制御部103及び端末装置200の制御部201は、空のパケットをやり取りすることでお互いに相手の存在を確認し続ける。   In step S <b> 508, the control unit 103 performs control so that a write response is transmitted to the terminal device 200 as a response corresponding to the write request. Specifically, the control unit 103 sets a write response in the wireless unit 110. In response to this, the wireless unit 110 transmits a write response to the terminal device 200. Through the processing so far, the terminal device 200 can provide position information to the digital camera 100 using BLE. Basically, the BLE is always connected, and the connection of the BLE between the digital camera 100 and the terminal device 200 is maintained while communication is not performed. Specifically, the control unit 103 of the digital camera 100 and the control unit 201 of the terminal device 200 continue to confirm each other's existence by exchanging empty packets.

次に、S509において、デジタルカメラ100の制御部103は、ユーザ操作に応じて撮影を行うよう制御する。撮影ボタンが押下されると、制御部103の制御の下、撮像部102は撮影を行う。制御部103は、撮影により得られた撮影画像に、BMU109を使って画像処理部104、符号化部105の処理を施し、所望の形式に従った撮影画像を得る。得られた撮影画像は、RAM107に一時保存される。次に、S510において、制御部103は、撮影画像に位置情報を付与する。具体的には、制御部103は、S507において取得しRAM107に格納した緯度値606と経度値607を撮影画像の所定の領域にコピーする。画像データの所定の領域としては、例えば、Exif(Exchangeable image file format)における位置情報の領域が挙げられる。S511において、制御部103は、位置情報が付与された撮影画像を記憶部108に格納する。具体的には、制御部103は、BMU109を使って、撮影画像をRAM107から記憶部108に移動させる。以上の処理により、デジタルカメラ100は、端末装置200とのBLE接続を介して位置情報を受信し、受信した位置情報を撮影画像に付与することができる。   Next, in step S509, the control unit 103 of the digital camera 100 performs control so that shooting is performed according to a user operation. When the shooting button is pressed, the imaging unit 102 performs shooting under the control of the control unit 103. The control unit 103 performs processing of the image processing unit 104 and the encoding unit 105 on the photographed image obtained by photographing using the BMU 109 to obtain a photographed image according to a desired format. The obtained captured image is temporarily stored in the RAM 107. Next, in S510, the control unit 103 provides position information to the captured image. Specifically, the control unit 103 copies the latitude value 606 and the longitude value 607 acquired in S507 and stored in the RAM 107 to a predetermined area of the captured image. An example of the predetermined area of the image data is an area of position information in Exif (Exchangeable image file format). In step S <b> 511, the control unit 103 stores the captured image to which the position information is added in the storage unit 108. Specifically, the control unit 103 uses the BMU 109 to move the captured image from the RAM 107 to the storage unit 108. Through the above processing, the digital camera 100 can receive the position information via the BLE connection with the terminal device 200, and can add the received position information to the captured image.

次に、図7を参照しつつ、端末装置200が位置情報を取得する処理について説明する。端末装置200は、3つの方法で、位置情報を取得する。端末装置200が取得した位置情報は、デジタルカメラ100に送信される。位置情報を取得する処理の1つ目は、GPSを利用した処理である。S701において、端末装置200の制御部201は、GPS情報を取得することで位置情報を取得できる。具体的には、GPS部211は、GPS衛星400からの電波を受信できる条件下において位置情報の算出を行う。制御部201は、GPS部211が算出した位置情報をGPS部211から読み出すことで位置情報を取得する。制御部201は、本処理を定期的に実行することで、屋外などGPS電波が受信できる条件のもとで、最新の位置情報を取得し続けることができる。   Next, a process in which the terminal device 200 acquires position information will be described with reference to FIG. The terminal device 200 acquires position information by three methods. The position information acquired by the terminal device 200 is transmitted to the digital camera 100. The first process for acquiring position information is a process using GPS. In step S <b> 701, the control unit 201 of the terminal device 200 can acquire position information by acquiring GPS information. Specifically, the GPS unit 211 calculates position information under conditions where radio waves from the GPS satellite 400 can be received. The control unit 201 acquires the position information by reading the position information calculated by the GPS unit 211 from the GPS unit 211. By executing this process periodically, the control unit 201 can continue to acquire the latest position information under conditions that allow GPS radio waves to be received, such as outdoors.

2つ目は、BLEを利用した処理である。S711において、無線AP300の無線部306は、BLEのIPSに準拠したAdvertiseを行う。制御部301は、無線部306にAdvertise間隔などの設定値と、Advertiseのデータとして無線AP300の位置情報を設定する。これに対応し、無線部306は、位置情報を含んだAdvertiseのパケットを送信する。   The second is processing using BLE. In step S <b> 711, the wireless unit 306 of the wireless AP 300 performs advertisement based on BLE IPS. The control unit 301 sets a setting value such as an Advertise interval in the wireless unit 306 and position information of the wireless AP 300 as Advertise data. In response to this, the wireless unit 306 transmits an Advertise packet including position information.

図8は、IPSに準拠するAdvertiseのデータ構成の一例を示す図である。Advertise800は、IPSの規格で規定されている情報である。データ長801は、Advertiseのデータ長である。アドバタイズタイプ802は、Advertiseの種別を示す識別子である。IPSのAdvertiseの場合には、アドバタイズタイプ802は、「0x25」の値となる。フラグ803は、Advertiseに含まれる情報の種類を示す。図8の例では、フラグ803には、「0x05」が設定されている。これは、WGS84(World Geodetic System 1984)に準拠した測地系に従う緯度と経度からなる位置情報とAdvertiseの電波強度情報を含むことを意味する。804は、緯度情報である。805は、緯度情報である。806は、Advertiseの電波強度である。この位置情報は無線AP300を設置するときにあらかじめ設定しておく情報とする。   FIG. 8 is a diagram illustrating an example of an Advertise data structure compliant with IPS. Advertise 800 is information defined by the IPS standard. The data length 801 is an Advertise data length. The advertisement type 802 is an identifier indicating the type of Advertise. In the case of IPS Advertise, the advertisement type 802 has a value of “0x25”. A flag 803 indicates the type of information included in the Advertise. In the example of FIG. 8, “0x05” is set in the flag 803. This means that it includes position information composed of latitude and longitude according to a geodetic system conforming to WGS84 (World Geometric System 1984) and radio wave intensity information of Advertise. Reference numeral 804 denotes latitude information. Reference numeral 805 denotes latitude information. Reference numeral 806 denotes Advertise radio field intensity. This position information is information set in advance when the wireless AP 300 is installed.

図7に戻り、端末装置200の制御部201は、S711において送信された、位置情報を含んだAdvertiseを受信したか否かを確認する。具体的には、制御部201は、Advertiseを受信すると、受信したAdvertiseのアドバタイズタイプ802に「0x25」が設定されているか否かを確認する。制御部201は、アドバタイズタイプ802に「0x25」が設定されている場合に、位置情報を含んだAdvertiseを受信したと判断する。そして、この場合には、制御部201は、Advertiseから緯度804と経度805を抽出し、これらをRAM203に格納する。制御部201は、本処理を定期的に実行することで、屋内などGPS電波が受信できない条件でも、最新の位置情報を取得し続けられる。   Returning to FIG. 7, the control unit 201 of the terminal device 200 confirms whether or not the advertise including the position information transmitted in S <b> 711 has been received. Specifically, when receiving the Advertise, the control unit 201 confirms whether “0x25” is set in the advertisement type 802 of the received Advertise. When “0x25” is set in the advertisement type 802, the control unit 201 determines that an advertise including position information has been received. In this case, the control unit 201 extracts latitude 804 and longitude 805 from the Advertise and stores them in the RAM 203. The control unit 201 can continuously acquire the latest position information even when the GPS radio wave cannot be received, such as indoors, by periodically executing this process.

3つ目は、無線LANを利用した処理である。S721において、無線AP300の制御部301は、無線LAN機能のアクセスポイントモードでビーコンを定期送信している。具体的には、制御部301は、無線LAN部307にSSIDなどの設定値を書き込む。これに対応し、無線LAN部307は、ビーコンを送信する。一方、S722において、端末装置200の制御部201は、ビーコンのスキャンを行う。具体的には、制御部201が無線LAN部210に問い合わせる。制御部201は、ビーコンを検出すると、次に、S723において、端末装置200の制御部201及び無線AP300の制御部301は、無線LANでの接続を行う。S723の処理は、リンク層の接続を確立する処理であり、制御部201及び制御部301は、認証処理などを行い、保護された通信路を確立する。なお、他の例としては、端末装置200上の液晶モニター208に利用可能なアクセスポイントの一覧を表示して、ユーザから所望の無線AP300の選択を受け付けた場合に、S723の処理が実行されるものとしてもよい。   The third is processing using a wireless LAN. In S721, the control unit 301 of the wireless AP 300 periodically transmits a beacon in the access point mode of the wireless LAN function. Specifically, the control unit 301 writes a setting value such as an SSID in the wireless LAN unit 307. In response to this, the wireless LAN unit 307 transmits a beacon. On the other hand, in S722, the control unit 201 of the terminal device 200 performs a beacon scan. Specifically, the control unit 201 makes an inquiry to the wireless LAN unit 210. When the control unit 201 detects the beacon, next, in step S723, the control unit 201 of the terminal device 200 and the control unit 301 of the wireless AP 300 perform connection via a wireless LAN. The process of S723 is a process of establishing a link layer connection, and the control unit 201 and the control unit 301 perform an authentication process and establish a protected communication path. As another example, when a list of available access points is displayed on the liquid crystal monitor 208 on the terminal device 200 and selection of a desired wireless AP 300 is received from the user, the process of S723 is executed. It may be a thing.

無線LANでの接続確立後、S724において、端末装置200の制御部201は、位置情報の問い合わせ要求を送信する。問い合わせ要求は、無線AP300を経由して位置情報管理サーバー402へ送信される。問い合わせ要求は、引数としてSSIDが用いられ、SSIDに合致する位置情報を問い合わせる情報である。問い合わせ要求の送信は、HTTP(Hyper Text Transport Protocol)のPOST処理により実現可能である。制御部201は、RAM203に要求メッセージを作成し、BMU205を用いてRAM203から無線LAN部210にデータを送り込むことで問い合わせ要求を送信できる。無線AP300の制御部301は、受け取った問い合わせ要求をインターネット401に送信する。   After establishing the connection in the wireless LAN, in step S724, the control unit 201 of the terminal device 200 transmits a position information inquiry request. The inquiry request is transmitted to the location information management server 402 via the wireless AP 300. The inquiry request is information in which an SSID is used as an argument and an inquiry is made for position information that matches the SSID. The transmission of the inquiry request can be realized by a POST process of HTTP (Hyper Text Transport Protocol). The control unit 201 can transmit an inquiry request by creating a request message in the RAM 203 and sending data from the RAM 203 to the wireless LAN unit 210 using the BMU 205. The control unit 301 of the wireless AP 300 transmits the received inquiry request to the Internet 401.

次に、S725において、位置情報管理サーバー402は、受信した問い合わせ要求に対する応答として、位置情報を示す位置情報通知を送信する。具体的には、位置情報管理サーバー402は、要求されたSSIDに合致する位置情報をデータベースから取得し、取得した位置情報をHTTPのレスポンスメッセージに付与し、これを端末装置200に送信する。応答メッセージは、無線AP300を経由して端末装置200に送られる。端末装置200の制御部201は、無線LAN部210を介して位置情報通知を取得できる。   Next, in S725, the location information management server 402 transmits a location information notification indicating the location information as a response to the received inquiry request. Specifically, the location information management server 402 acquires location information that matches the requested SSID from the database, assigns the acquired location information to an HTTP response message, and transmits this to the terminal device 200. The response message is sent to the terminal device 200 via the wireless AP 300. The control unit 201 of the terminal device 200 can acquire the position information notification via the wireless LAN unit 210.

このように、端末装置200は、上述の3つの方法で、位置情報の取得を試みることで、可能な限り正確な自装置の位置情報を保持する。そして、端末装置200は、BLEで常時接続しているデジタルカメラ100に対して位置情報を提供する。デジタルカメラ100は、端末装置200とのBLE接続を維持する限り、撮影画像に最新の位置情報を付与することができる。   In this way, the terminal device 200 holds the position information of the device as accurate as possible by trying to acquire the position information by the three methods described above. The terminal device 200 provides position information to the digital camera 100 that is always connected by BLE. As long as the digital camera 100 maintains the BLE connection with the terminal device 200, the digital camera 100 can give the latest position information to the captured image.

図9は、デジタルカメラ100による位置情報取得処理を示すフローチャートである。図5を参照しつつ説明した処理では、デジタルカメラ100は、端末装置200とBLE接続できない状況では、最新の位置情報を取得できない。このため、例えば、デジタルカメラ100と端末装置200を1人のユーザが携帯し、外出先で端末装置200のバッテリーがきれた場合には、デジタルカメラ100により得られた撮影画像に位置情報を付与することができなくなってしまう。そこで、デジタルカメラ100は、図9に示す処理により位置情報の取得を試みる。なお、処理の前提として、デジタルカメラ100は、アドバタイザーに設定されているものとする。   FIG. 9 is a flowchart showing position information acquisition processing by the digital camera 100. In the process described with reference to FIG. 5, the digital camera 100 cannot acquire the latest position information in a situation where BLE connection with the terminal device 200 is not possible. For this reason, for example, when one user carries the digital camera 100 and the terminal device 200 and the battery of the terminal device 200 runs out on the go, position information is given to the captured image obtained by the digital camera 100. You will not be able to. Therefore, the digital camera 100 attempts to acquire position information by the process shown in FIG. As a premise of processing, it is assumed that the digital camera 100 is set as an advertiser.

S901において、デジタルカメラ100の制御部103は、デジタルカメラ100の動作モードを撮影モードに設定する。ここで、撮影モードは、撮像部102による撮影機能を有効にする動作モードである。撮影モードにおいては、撮像部102は、利用者により撮影ボタンが押下されることに応じて撮影を行うことができる。すなわち、S902の処理は、撮影部による撮影機能を有効に機能設定する処理の一例である。   In step S901, the control unit 103 of the digital camera 100 sets the operation mode of the digital camera 100 to the shooting mode. Here, the shooting mode is an operation mode for enabling the shooting function of the imaging unit 102. In the shooting mode, the imaging unit 102 can perform shooting in response to the user pressing the shooting button. That is, the process of S902 is an example of a process for effectively setting a shooting function by the shooting unit.

次に、S902において、制御部103は、デジタルカメラ100と端末装置200の間のBLE接続(無線接続)が確立中であるか否かを確認する。具体的には、制御部103は、無線部110がS508(図5)において説明した空パケットのやり取りを実行中の場合にBLE接続が確立中と判断する。また、他の例としては、制御部103は、無線部110がアドバタイザーとしてAdvertiseを実行している場合にBLE接続が確立していると判断してもよい。制御部103は、BLE接続確認中と判断した場合には(S902でYes)、処理をS903へ進める。制御部103は、BLE接続確立中でないと判断した場合には(S902でNo)、処理をS911へ進める。   In step S <b> 902, the control unit 103 confirms whether a BLE connection (wireless connection) between the digital camera 100 and the terminal device 200 is being established. Specifically, the control unit 103 determines that the BLE connection is being established when the wireless unit 110 is executing the exchange of empty packets described in S508 (FIG. 5). As another example, the control unit 103 may determine that a BLE connection is established when the wireless unit 110 is executing Advertise as an advertiser. If the control unit 103 determines that the BLE connection is being confirmed (Yes in S902), the control unit 103 advances the process to S903. If the control unit 103 determines that the BLE connection is not established (No in S902), the control unit 103 advances the process to S911.

S903において、制御部103は、端末装置200から位置情報を受信する。次に、S904において、制御部103は、RAM107に格納された位置情報を、S903において受信した位置情報に更新する。S903及びS904の処理は、図5のS506〜S508の処理に対応する。次に、S905において、制御部103は、撮影が行われたか否かを確認する。撮影処理は、図5のS509の処理に対応する。制御部103は、例えば、ユーザによりシャッターボタンが押下されたか否かに応じて撮影が行われたか否かを確認する。制御部103は、撮影が行われたと判断した場合には(S905でYes)、処理をS906へ進める。制御部103は、撮影が行われなかったと判断した場合には(S905でNo)、処理をS908へ進める。S906において、制御部103は、S904において更新された位置情報を、デジタルカメラ100の位置として、撮影画像に付与する。次に、S907において、制御部103は、位置情報が付与された撮影画像を記憶部108に格納し、その後処理をS902へ進める。ここで、S906及びS907の処理は、図5のS510及びS511の処理に対応する。   In step S <b> 903, the control unit 103 receives position information from the terminal device 200. In step S904, the control unit 103 updates the position information stored in the RAM 107 to the position information received in step S903. The processes of S903 and S904 correspond to the processes of S506 to S508 in FIG. Next, in step S905, the control unit 103 confirms whether shooting has been performed. The shooting process corresponds to the process of S509 in FIG. For example, the control unit 103 checks whether or not shooting has been performed depending on whether or not the shutter button has been pressed by the user. If the control unit 103 determines that shooting has been performed (YES in step S905), the control unit 103 advances the process to step S906. If the control unit 103 determines that no shooting has been performed (No in S905), the control unit 103 advances the process to S908. In step S906, the control unit 103 adds the position information updated in step S904 to the captured image as the position of the digital camera 100. In step S907, the control unit 103 stores the captured image to which the position information is added in the storage unit 108, and then advances the processing to step S902. Here, the processing of S906 and S907 corresponds to the processing of S510 and S511 of FIG.

また、S908において、制御部103は、撮影モードが終了したか否かを確認する。なお、制御部103は、ユーザ操作に応じて撮影モードの終了指示を受け付けた場合に撮影モードを終了する。制御部103は、撮影モードが終了したと判断した場合には(S908でYes)、処理を終了する。制御部103は、撮影モードが終了していないと判断した場合には(S908でNo)、処理をS902へ進める。   In step S908, the control unit 103 confirms whether the shooting mode has ended. Note that the control unit 103 ends the shooting mode when receiving an instruction to end the shooting mode in response to a user operation. When the control unit 103 determines that the shooting mode has ended (Yes in S908), the control unit 103 ends the process. If the control unit 103 determines that the shooting mode has not ended (No in S908), the control unit 103 advances the process to S902.

一方、S911においては、制御部103は、BLE無線通信における役割をアドバタイザーからスキャナーに切り替える。本処理は、無線通信における役割を設定する設定処理の一例である。次に、S912において、制御部103は、BLEのIPSに準拠したAdvertiseを受信したか否かを確認する。制御部103は、アドバタイズタイプが「0x25」のAdvertiseを受信した場合に、ISPに準拠したAdvertiseを受信したと判断する。制御部103は、ISPに準拠したAdvertiseを受信したと判断した場合には(S912でYes)、処理をS913へ進める。制御部103は、ISPに準拠したAdvertiseを受信しなかったと判断した場合には(S912でNo)、処理をS915へ進める。   On the other hand, in S911, the control unit 103 switches the role in BLE wireless communication from the advertiser to the scanner. This process is an example of a setting process for setting a role in wireless communication. Next, in S912, the control unit 103 confirms whether or not Advertise compliant with BLE IPS has been received. The control unit 103 determines that the Advertise conforming to the ISP has been received when the Advertise with the advertisement type “0x25” is received. If the control unit 103 determines that an Advertise compliant with ISP has been received (Yes in S912), the control unit 103 advances the process to S913. If the control unit 103 determines that the Advertise conforming to the ISP has not been received (No in S912), the control unit 103 advances the process to S915.

S913において、制御部103は、受信したAdvertiseに含まれる位置情報を取得する。次に、S914において、制御部103は、RAM107に格納された位置情報をAdvertiseから取得した位置情報で更新する。具体的には、制御部103は、Advertiseのフラグ803により緯度804と経度805が存在することを確認し、これらのデータで、RAM107の緯度値606、経度値607を上書きする。なお、S913の処理時点においては、デジタルカメラ100と端末装置200の間のBLE接続は確立していないため、GATTサーバー601や位置情報受付サービス602は無効になっている。このため、図5を参照しつつ説明した処理において、端末装置200がATTプロトコルに従い緯度値606、経度値607に対して書き込みリクエストを送信することはない。一方で、デジタルカメラ100と端末装置200のBLE接続が確立中の場合には、S911〜S914の処理が実行されることはない。すなわち、RAM107の緯度値606、経度値607は、BLE接続が確立中とそうでない場合とにおいて、排他的に利用される。   In step S <b> 913, the control unit 103 acquires position information included in the received Advertise. Next, in S914, the control unit 103 updates the position information stored in the RAM 107 with the position information acquired from Advertise. Specifically, the control unit 103 confirms that the latitude 804 and longitude 805 exist based on the Advertise flag 803, and overwrites the latitude value 606 and longitude value 607 of the RAM 107 with these data. Note that since the BLE connection between the digital camera 100 and the terminal device 200 has not been established at the time of the processing in S913, the GATT server 601 and the location information reception service 602 are invalid. For this reason, in the process described with reference to FIG. 5, the terminal device 200 does not transmit a write request to the latitude value 606 and the longitude value 607 according to the ATT protocol. On the other hand, when the BLE connection between the digital camera 100 and the terminal device 200 is being established, the processes of S911 to S914 are not executed. That is, the latitude value 606 and the longitude value 607 of the RAM 107 are exclusively used when the BLE connection is being established and when it is not.

次に、S915において、制御部103は、撮影が行われたか否かを確認する。本処理は、S905の処理と同様である。制御部103は、撮影が行われたと判断した場合には(S915でYes)、処理をS916へ進める。制御部103は、撮影が行われなかったと判断した場合には(S915でNo)、処理をS919へ進める。   In step S <b> 915, the control unit 103 confirms whether shooting has been performed. This process is the same as the process of S905. If the control unit 103 determines that shooting has been performed (Yes in S915), the control unit 103 advances the process to S916. If the control unit 103 determines that no shooting has been performed (No in S915), the control unit 103 advances the process to S919.

次に、S916において、制御部103は、RAM107に更新後の位置情報が記憶されているか否かを確認する。後述するようにS912〜S919の処理は、ループ処理であり、S912〜S914は複数回実行される。制御部103は、このループ処理において、S916の処理の直前に実行されたS912の処理においてYesと判断されS914が実行された場合に、RAM107に更新後の位置情報が記憶されていると判断する。他の例としては、制御部103は、RAM107に記憶されている位置情報の更新のタイミングに応じて、更新された位置情報があるか否かを判断してもよい。すなわち、制御部103は、更新のタイミングからS916の処理実行時までの期間が閾値未満の場合に更新後の位置情報が記憶されていると判断する。   In step S <b> 916, the control unit 103 confirms whether the updated position information is stored in the RAM 107. As will be described later, the processing of S912 to S919 is a loop processing, and S912 to S914 are executed a plurality of times. In this loop process, the control unit 103 determines that the updated position information is stored in the RAM 107 when Yes is determined in S912 executed immediately before the process of S916 and S914 is executed. . As another example, the control unit 103 may determine whether there is updated position information according to the update timing of the position information stored in the RAM 107. That is, the control unit 103 determines that the updated position information is stored when the period from the update timing to the time when the process of S916 is executed is less than the threshold.

制御部103は、更新後の位置情報が記憶されていると判断した場合には(S916でYes)、処理をS917へ進める。制御部103は、更新された位置情報が記憶されていないと判断した場合には(S916でNo)、処理をS918へ進める。S917において、制御部103は、撮影処理により得られた撮影画像に対し、S906において更新された位置情報を、デジタルカメラの位置として付与する。次に、S918において、制御部103は、位置情報が付与された撮影画像を記憶部108に格納し、その後処理をS912へ進める。   If the control unit 103 determines that the updated position information is stored (Yes in S916), the control unit 103 advances the process to S917. If the control unit 103 determines that the updated position information is not stored (No in S916), the process proceeds to S918. In step S917, the control unit 103 gives the position information updated in step S906 as the position of the digital camera to the captured image obtained by the capturing process. Next, in S918, the control unit 103 stores the captured image to which the position information is added in the storage unit 108, and then advances the processing to S912.

S919において、制御部103は、撮影モードが終了したか否かを確認する。制御部103は、撮影モードが終了したと判断した場合には(S919でYes)、処理をS920へ進める。制御部103は、撮影モードが終了していないと判断した場合には(S919でNo)、処理をS912へ進める。S920において、制御部103は、デジタルカメラ100のBLEの役割をアドバタイザーに設定し、その後処理を終了する。   In step S919, the control unit 103 confirms whether the shooting mode has ended. When the control unit 103 determines that the shooting mode has ended (Yes in S919), the control unit 103 advances the process to S920. If the control unit 103 determines that the shooting mode has not ended (No in S919), the control unit 103 advances the process to S912. In step S920, the control unit 103 sets the role of BLE of the digital camera 100 to the advertiser, and then ends the process.

以上のように、本実施形態のデジタルカメラ100は、端末装置200とBLEによる常時接続を行うことで、撮影画像に適切な位置情報を付与することができる。さらに、デジタルカメラ100は、端末装置200とBLE接続できない場合には、自装置の無線通信における役割をアドバタイザーからスキャナーに切り替える。そして、デジタルカメラ100は、IPSに準拠したAdvertiseを受信することで、Advertiseに含まれる位置情報を取得することができる。すなわち、デジタルカメラ100は、無線通信における役割を切り替えることで、BLEという1つの通信手段以外の構成を要することなく、撮影画像に位置情報を付与できる確率を高めることができる。すなわち、デジタルカメラ100は、BLE等の近距離無線通信機能を有する撮影装置が外部装置から位置情報を取得する可能性を高めることで、装置の構造を複雑にすることなく、撮影画像に位置情報を付与できる確率を高めることができる。   As described above, the digital camera 100 according to the present embodiment can give appropriate position information to a captured image by performing a continuous connection with the terminal device 200 using BLE. Furthermore, when the BLE connection with the terminal device 200 cannot be established, the digital camera 100 switches its role in wireless communication from the advertiser to the scanner. And the digital camera 100 can acquire the positional information contained in Advertise by receiving Advertise based on IPS. That is, the digital camera 100 can increase the probability that position information can be added to a captured image without requiring a configuration other than one communication unit called BLE by switching roles in wireless communication. That is, the digital camera 100 increases the possibility that a photographing apparatus having a short-range wireless communication function such as BLE acquires position information from an external apparatus, so that the positional information is not included in the photographed image without complicating the structure of the apparatus. The probability that can be given can be increased.

第1の実施形態の第1の変形例について説明する。実施形態においては、デジタルカメラ100は、撮影モードに設定されたことを条件として、図9のS902の処理を実行することとした。ただし、S902の処理は所定の条件を満たす場合に実行されればよく、所定の条件は実施形態に限定されるものではない。他の例としては、デジタルカメラ100は、デジタルカメラ100の電源がオンされたことを条件としてS902を実行することとしてもよい。この場合には、制御部103は、デジタルカメラ100に電源が投入され、制御部103が起動した時点でS902を実行すればよい。   A first modification of the first embodiment will be described. In the embodiment, the digital camera 100 executes the process of S902 in FIG. 9 on condition that the shooting mode is set. However, the process of S902 may be executed when a predetermined condition is satisfied, and the predetermined condition is not limited to the embodiment. As another example, the digital camera 100 may execute S902 on the condition that the power of the digital camera 100 is turned on. In this case, the control unit 103 may execute S902 when the digital camera 100 is powered on and the control unit 103 is activated.

また、第2の変形例について説明する。実施形態においては、デジタルカメラ100は、S911においてBLEの役割がスキャナーに設定された場合に、撮影モードの終了を条件として、BLEの役割をアドバタイザーに戻すこととした。ただし、BLEの役割を戻す処理は所定の条件を満たす場合に実行されればよく、所定の条件は、実施形態に限定されるものではない。他の例としては、デジタルカメラ100は、ユーザ操作に応じて電源オフの指示を受け付けた場合に、電源オフの前に無線通信の役割をアドバタイザーに設定してもよい。   A second modification will be described. In the embodiment, when the role of BLE is set in the scanner in S911, the digital camera 100 returns the role of BLE to the advertiser on condition that the shooting mode ends. However, the process of returning the role of BLE may be executed when a predetermined condition is satisfied, and the predetermined condition is not limited to the embodiment. As another example, when the digital camera 100 receives a power-off instruction in response to a user operation, the digital camera 100 may set the role of wireless communication to the advertiser before the power is turned off.

第3の変形例としては、デジタルカメラ100の無線部110は、時分割でアドバタイザーとスキャナーを切り替えながら動作できるものであってもよい。さらに、この場合には、制御部103は、デジタルカメラ100をアドバタイザー及びスキャナーの両方の役割を並行して動作させる。そして、制御部103は、BLE接続確立中でないと判断され、S911以降の処理を実行中に、デジタルカメラ100がアドバタイザーとしてBLE接続が確立した場合には、S911以降の処理を停止し、S903以降の処理を行うこととしてもよい。これにより、BLE接続が復活した場合に、即座にS903以降の処理を再開することができる。   As a third modification, the wireless unit 110 of the digital camera 100 may be operable while switching between the advertiser and the scanner in a time division manner. Further, in this case, the control unit 103 causes the digital camera 100 to operate in the roles of both an advertiser and a scanner in parallel. The control unit 103 determines that the BLE connection is not established, and when the digital camera 100 establishes the BLE connection as the advertiser while executing the processing after S911, the control unit 103 stops the processing after S911, and S903. The subsequent processing may be performed. As a result, when the BLE connection is restored, the processing after S903 can be resumed immediately.

第4の変形例としては、デジタルカメラ100は、S912において複数のAdvertiseを受信した場合に、各Advertiseの電波強度に従い、デジタルカメラ100の位置情報を特定してもよい。具体的には、デジタルカメラ100の制御部103は、Advertiseの電波強度と、このAdvertiseに含まれる電波強度806(図8)の差からこのAdvertiseの送信元とデジタルカメラ100の間の距離を推測する。制御部103は、これを複数のAdvertiseそれぞれに対して行う。そして、制御部103は、各Advertiseの送信元の位置情報と、推測した距離と、を用いて、三角測量や加重平均といった演算を行うことでより正確な位置情報を算出してもよい。   As a fourth modification, when the digital camera 100 receives a plurality of advertisements in step S912, the digital camera 100 may specify the position information of the digital camera 100 according to the radio field intensity of each advertisement. Specifically, the control unit 103 of the digital camera 100 estimates the distance between the source of the Advertise and the digital camera 100 from the difference between the Advertise radio field intensity and the radio field intensity 806 (FIG. 8) included in the Advertise. To do. The control unit 103 performs this for each of the plurality of Advertises. Then, the control unit 103 may calculate more accurate position information by performing calculations such as triangulation and weighted average using the position information of the transmission source of each Advertise and the estimated distance.

第5の変形例としては、デジタルカメラ100と外部装置との間の無線通信は、比較的近距離の無線通信であればよく、BLE通信に限定されるものではない。デジタルカメラ100と外部装置との間の無線通信は、例えば無線LANであってもよい。この場合、デジタルカメラ100の制御部103は、図9のS902においては、無線LAN接続の確立中か否かを確認する。なお、無線LAN接続の確立中でない場合とは、デジタルカメラ100がAPモードでビーコンを送信している状態である。この場合、S911において、デジタルカメラ100は、無線LANでの役割をステーションモードに切り替え、他の無線APが発行するビーコンの検出を試みる。そして、ビーコンが検出された場合には、図7の3つ目の位置情報取得の手順に従い、位置情報を取得することができる。   As a fifth modification, the wireless communication between the digital camera 100 and the external device may be a relatively short-range wireless communication, and is not limited to BLE communication. The wireless communication between the digital camera 100 and the external device may be, for example, a wireless LAN. In this case, the control unit 103 of the digital camera 100 confirms whether or not a wireless LAN connection is being established in S902 of FIG. The case where the wireless LAN connection is not being established is a state where the digital camera 100 is transmitting a beacon in the AP mode. In this case, in S911, the digital camera 100 switches the role in the wireless LAN to the station mode and tries to detect a beacon issued by another wireless AP. When a beacon is detected, the position information can be acquired according to the third position information acquisition procedure of FIG.

(第2の実施形態)
次に、第2の実施形態に係るデジタルカメラ100について、第1の実施形態に係るデジタルカメラ100と異なる点を説明する。図10は、第2の実施形態に係るデジタルカメラ100による、位置情報取得処理を示すフローチャートである。なお、図9に示す位置情報取得処理の各処理のうち、図5を参照しつつ説明した第1の実施形態に係る位置情報取得処理の各処理と同一の処理には、同一の番号を付している。
(Second Embodiment)
Next, the difference between the digital camera 100 according to the second embodiment and the digital camera 100 according to the first embodiment will be described. FIG. 10 is a flowchart showing position information acquisition processing by the digital camera 100 according to the second embodiment. Of the processes in the position information acquisition process shown in FIG. 9, the same processes as those in the position information acquisition process according to the first embodiment described with reference to FIG. doing.

S904の処理の後、制御部103は、処理をS1001へ進める。S1001において、制御部103は、動画撮影(録画)が開始されたか否かを確認する。制御部103は、例えば、ユーザにより録画ボタンが押下されたか否かに応じて録画が開始されたか否かを確認する。なお、録画が開始すると、制御部103は、記憶部108に動画ファイルを生成し、撮像部102で取得した動画を画像処理部104、符号化部105で処理した後、記憶部108の動画ファイルに順次記録していく。制御部103は、録画が開始したと判断した場合には(S1001でYes)、処理をS1002へ進める。制御部103は、録画が開始していない場合には(S1001でNo)、処理をS902へ進める。   After the process of S904, the control unit 103 advances the process to S1001. In step S1001, the control unit 103 confirms whether moving image shooting (recording) has started. For example, the control unit 103 confirms whether or not the recording is started depending on whether or not the recording button is pressed by the user. When recording starts, the control unit 103 generates a moving image file in the storage unit 108, processes the moving image acquired by the imaging unit 102 by the image processing unit 104 and the encoding unit 105, and then stores the moving image file in the storage unit 108. Record sequentially. If the control unit 103 determines that the recording has started (Yes in S1001), the control unit 103 advances the process to S1002. If the recording has not started (No in S1001), the control unit 103 advances the process to S902.

S1002において、制御部103は、動画に位置情報を付与する。具体的には、制御部103は、RAM107に格納されている位置情報(緯度値606と経度値607)を記憶部108に記憶されている動画の管理領域に書き込む。次に、S1003において、制御部103は、録画が終了したか否かを確認する。制御部103は、例えば、ユーザ操作に応じて録画の終了指示を受け付けた場合に、録画を終了する。制御部103は、録画が終了するまで待機し、録画が終了したと判断した場合には(S1003でYes)、処理を終了する。   In S1002, the control unit 103 adds position information to the moving image. Specifically, the control unit 103 writes the position information (latitude value 606 and longitude value 607) stored in the RAM 107 in the moving image management area stored in the storage unit 108. In step S <b> 1003, the control unit 103 confirms whether recording has ended. For example, the control unit 103 ends the recording when receiving an instruction to end the recording in response to a user operation. The control unit 103 waits until the recording is finished, and when it is determined that the recording is finished (Yes in S1003), the process is finished.

一方、S914の処理の後、制御部103は、処理をS1011へ進める。S1011において、制御部103は、録画開始されたか否かを確認する。本処理は、S1001の処理と同様である。制御部103は、録画が開始したと判断した場合には(S1011でYes)、処理をS1012へ進める。制御部103は、録画が開始していない場合には(S1011でNo)、処理をS912へ進める。S1012において、制御部103は、RAM107に更新後の位置情報が格納されているか否かを確認する。S1012の処理は、図9のS916の処理と同様である。制御部103は、更新後の位置情報が記憶されていると判断した場合には(S1012でYes)、処理をS1013へ進める。制御部103は、更新された位置情報が記憶されていないと判断した場合には(S1012でNo)、処理をS912へ進める。   On the other hand, after the process of S914, the control unit 103 advances the process to S1011. In step S1011, the control unit 103 confirms whether recording has started. This process is the same as the process of S1001. If the control unit 103 determines that the recording has started (Yes in S1011), the control unit 103 advances the process to S1012. If the recording has not started (No in S1011), the control unit 103 advances the process to S912. In step S <b> 1012, the control unit 103 confirms whether or not the updated position information is stored in the RAM 107. The process of S1012 is the same as the process of S916 of FIG. When the control unit 103 determines that the updated position information is stored (Yes in S1012), the control unit 103 advances the process to S1013. When the control unit 103 determines that the updated position information is not stored (No in S1012), the control unit 103 advances the process to S912.

S1013において、制御部103は、動画に位置情報を付与する。S1013の処理は、S1002の処理と同様である。次に、S1014において、制御部103は、デジタルカメラ100のBLEの役割をアドバタイザーに設定する。次に、S1015において、制御部103は、録画が終了したか否かを確認する。S1015の処理は、S1003の処理と同様である。すなわち、制御部103は、録画が終了するまで待機し、録画が終了したと判断した場合にはS1015でYes)、処理を終了する。なお、第2の実施形態のデジタルカメラ100のこれ以外の構成及び処理は、第1の実施形態に係るデジタルカメラ100の構成及び処理と同様である。   In step S1013, the control unit 103 adds position information to the moving image. The process of S1013 is the same as the process of S1002. In step S <b> 1014, the control unit 103 sets the role of BLE of the digital camera 100 to the advertiser. Next, in S1015, the control unit 103 confirms whether or not the recording is finished. The process of S1015 is the same as the process of S1003. In other words, the control unit 103 waits until the recording is finished, and when it is determined that the recording is finished (Yes in S1015), the process is finished. Other configurations and processes of the digital camera 100 according to the second embodiment are the same as those of the digital camera 100 according to the first embodiment.

以上のように、デジタルカメラ100は、BLE等の近距離無線通信機能を有する撮影装置が外部装置から位置情報を取得する可能性を高めることで、装置の構造を複雑にすることなく、動画に対しても、位置情報を付与できる確率を高めることができる。   As described above, the digital camera 100 increases the possibility that a photographing apparatus having a short-range wireless communication function such as BLE acquires position information from an external apparatus, so that the structure of the apparatus is not complicated. In contrast, the probability that position information can be given can be increased.

以上、本発明の好ましい実施形態について詳述したが、本発明は係る特定の実施形態に限定されるものではなく、特許請求の範囲に記載された本発明の要旨の範囲内において、種々の変形・変更が可能である。   The preferred embodiments of the present invention have been described in detail above, but the present invention is not limited to such specific embodiments, and various modifications can be made within the scope of the gist of the present invention described in the claims.・ Change is possible.

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

100 カメラ
200 端末装置
300 無線AP
100 Camera 200 Terminal device 300 Wireless AP

Claims (10)

無線通信機能を有する撮影装置であって、
被写体を撮影する撮影手段と、
前記撮影装置の無線通信における役割として、前記撮影装置の存在を伝えるビーコンを送信する役割と、外部装置からビーコンを受信する役割のいずれかを設定し、前記ビーコンを送信する役割に設定されている状態において、外部装置との無線接続を確立中でない場合に、前記撮影装置の役割を、前記ビーコンを受信する役割に切り替える設定手段と、
前記ビーコンを送信する役割に設定されている場合には、前記ビーコンを受信した外部装置から該外部装置の位置情報を受信し、前記ビーコンを受信する役割が設定されている場合には、送信元の位置情報を含んだビーコンを受信する受信手段と、
前記受信手段が位置情報を受信した場合に、受信した位置情報に基づいて特定された前記撮影装置の位置情報を、前記撮影手段により得られた撮影画像に付与し、前記受信手段が前記ビーコンを受信した場合に、受信したビーコンに含まれる位置情報に基づいて特定された前記撮影装置の位置情報を、前記撮影画像に付与する付与手段と
を有することを特徴とする撮影装置。
An imaging device having a wireless communication function,
Photographing means for photographing the subject;
The role of the photographing device in wireless communication is set to the role of transmitting the beacon by setting either the role of transmitting a beacon indicating the presence of the photographing device or the role of receiving a beacon from an external device. In the state, when the wireless connection with the external device is not established, setting means for switching the role of the photographing device to the role of receiving the beacon;
When the role of transmitting the beacon is set, the position information of the external device is received from the external device that has received the beacon, and when the role of receiving the beacon is set, the transmission source Receiving means for receiving a beacon including the location information;
When the receiving means receives the position information, the position information of the photographing device specified based on the received position information is added to the photographed image obtained by the photographing means, and the receiving means transmits the beacon. An imaging apparatus, comprising: an attaching unit that, when received, adds position information of the imaging apparatus specified based on position information included in the received beacon to the captured image.
前記付与手段は、前記受信手段が前記位置情報を受信した場合に、前記受信手段が受信した位置情報を前記撮影装置の位置情報として前記画像に付与し、前記受信手段が前記ビーコンを受信した場合に、前記ビーコンに含まれる位置情報を前記撮影装置の位置情報として前記画像に付与することを特徴とする請求項1に記載の撮影装置。   When the receiving unit receives the position information, the adding unit adds the position information received by the receiving unit to the image as the position information of the photographing apparatus, and the receiving unit receives the beacon. The imaging apparatus according to claim 1, wherein position information included in the beacon is added to the image as position information of the imaging apparatus. 前記受信手段は、異なる外部装置から送信された複数のビーコンを受信し、
前記受信手段が受信した複数の前記ビーコンそれぞれの電波強度と、複数の前記ビーコンそれぞれの位置情報と、に基づいて、前記撮影装置の位置を特定する特定手段をさらに有し、
前記付与手段は、前記ビーコンを受信した場合に、前記特定手段により特定された位置を示す位置情報を前記画像に付与することを特徴とする請求項1に記載の撮影装置。
The receiving means receives a plurality of beacons transmitted from different external devices,
Further comprising specifying means for specifying the position of the imaging device based on the radio field intensity of each of the plurality of beacons received by the receiving means and the position information of each of the plurality of beacons.
The imaging apparatus according to claim 1, wherein when the beacon is received, the adding unit adds position information indicating the position specified by the specifying unit to the image.
前記撮影装置の役割として前記ビーコンを送信する役割が設定されており、かつ所定の条件を満たす場合に、外部装置との無線接続が確立中か否かを確認する確認手段をさらに有することを特徴とする請求項1乃至3の何れか1項に記載の撮影装置。   When the role of transmitting the beacon is set as the role of the photographing device and when a predetermined condition is satisfied, the image capturing device further includes confirmation means for confirming whether a wireless connection with the external device is being established. The imaging device according to any one of claims 1 to 3. 前記所定の条件は、前記撮影手段の機能が有効に設定されたことであることを特徴とする請求項4に記載の撮影装置。   The photographing apparatus according to claim 4, wherein the predetermined condition is that the function of the photographing unit is set to be valid. 前記所定の条件は、前記撮影装置の電源がオンされたことであることを特徴とする請求項4に記載の撮影装置。   The imaging apparatus according to claim 4, wherein the predetermined condition is that the imaging apparatus is powered on. 前記設定手段は、前記撮影装置の役割として前記ビーコンを受信する役割が設定されている場合に、前記撮影手段の機能が無効に設定されたことを条件として、前記撮影装置の役割を、前記ビーコンを送信する役割に切り替えることを特徴とする請求項1乃至6の何れか1項に記載の撮影装置。   When the role of receiving the beacon is set as the role of the photographing device, the setting means changes the role of the photographing device to the beacon on the condition that the function of the photographing means is set to be invalid. The imaging apparatus according to claim 1, wherein the imaging apparatus is switched to a role of transmitting a message. 前記設定手段は、前記撮影装置の役割として前記ビーコンを受信する役割が設定されている場合に、前記撮影装置の電源オフの指示を受け付けたことを条件として、前記撮影装置の役割を、前記ビーコンを送信する役割に切り替えることを特徴とする請求項1乃至6の何れか1項に記載の撮影装置。   When the role of receiving the beacon is set as the role of the imaging device, the setting means changes the role of the imaging device to the beacon on condition that an instruction to turn off the imaging device is received. The imaging apparatus according to claim 1, wherein the imaging apparatus is switched to a role of transmitting a message. 無線通信機能を有する撮影装置が実行する制御方法であって、
被写体を撮影する撮影ステップと、
前記撮影装置の無線通信における役割として、前記撮影装置の存在を伝えるビーコンを送信する役割と、外部装置からビーコンを受信する役割のいずれかを設定し、前記ビーコンを送信する役割に設定されている状態において、外部装置との無線接続を確立中でない場合に、前記撮影装置の役割を、前記ビーコンを受信する役割に切り替える設定ステップと、
前記ビーコンを送信する役割に設定されている場合には、前記ビーコンを受信した外部装置から該外部装置の位置情報を受信し、前記ビーコンを受信する役割に設定されている場合には、送信元の位置情報を含んだビーコンを受信する受信ステップと、
前記受信ステップにおいて位置情報を受信した場合に、受信した位置情報に基づいて特定された前記撮影装置の位置情報を、前記撮影ステップにおいて得られた撮影画像に付与し、前記受信ステップにおいて前記ビーコンを受信した場合に、受信したビーコンに含まれる位置情報に基づいて特定された前記撮影装置の位置情報を、前記撮影画像に付与する付与ステップと
を含むことを特徴とする制御方法。
A control method executed by a photographing apparatus having a wireless communication function,
A shooting step for shooting the subject;
The role of the photographing device in wireless communication is set to the role of transmitting the beacon by setting either the role of transmitting a beacon indicating the presence of the photographing device or the role of receiving a beacon from an external device. In the state, when the wireless connection with the external device is not established, the setting step of switching the role of the photographing device to the role of receiving the beacon;
When the role of transmitting the beacon is set, the position information of the external device is received from the external device that has received the beacon, and when the role of receiving the beacon is set, the transmission source A receiving step for receiving a beacon including the location information;
When the positional information is received in the receiving step, the positional information of the imaging device specified based on the received positional information is added to the captured image obtained in the imaging step, and the beacon is transmitted in the receiving step. And a granting step of granting, to the photographed image, the position information of the photographing device specified based on the position information contained in the received beacon.
無線通信機能を有する撮影装置のコンピュータを、
前記撮影装置の無線通信における役割として、前記撮影装置の存在を伝えるビーコンを送信する役割と、外部装置からビーコンを受信する役割のいずれかを設定し、前記ビーコンを送信する役割に設定されている状態において、外部装置との無線接続を確立中でない場合に、前記撮影装置の役割を、前記ビーコンを受信する役割に切り替える設定手段と、
前記ビーコンを送信する役割に設定されている場合には、前記ビーコンを受信した外部装置から該外部装置の位置情報を受信し、前記ビーコンを受信する役割に設定されている場合には、送信元の位置情報を含んだビーコンを受信する受信手段と、
前記受信手段が位置情報を受信した場合に、受信した位置情報に基づいて特定された前記撮影装置の位置情報を、撮影手段により得られた撮影画像に付与し、前記受信手段が前記ビーコンを受信した場合に、受信したビーコンに含まれる位置情報に基づいて特定された前記撮影装置の位置情報を、前記撮影画像に付与する付与手段と
して機能させるためのプログラム。
A computer of a photographing apparatus having a wireless communication function,
The role of the photographing device in wireless communication is set to the role of transmitting the beacon by setting either the role of transmitting a beacon indicating the presence of the photographing device or the role of receiving a beacon from an external device. In the state, when the wireless connection with the external device is not established, setting means for switching the role of the photographing device to the role of receiving the beacon;
When the role of transmitting the beacon is set, the position information of the external device is received from the external device that has received the beacon, and when the role of receiving the beacon is set, the transmission source Receiving means for receiving a beacon including the location information;
When the receiving means receives the position information, the position information of the photographing apparatus specified based on the received position information is added to the photographed image obtained by the photographing means, and the receiving means receives the beacon. In this case, a program for causing the position information of the photographing apparatus specified based on the position information included in the received beacon to function as an attaching unit that assigns the photographed image.
JP2017159542A 2017-08-22 2017-08-22 Imaging equipment, control methods and programs Active JP6918634B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017159542A JP6918634B2 (en) 2017-08-22 2017-08-22 Imaging equipment, control methods and programs

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017159542A JP6918634B2 (en) 2017-08-22 2017-08-22 Imaging equipment, control methods and programs

Publications (2)

Publication Number Publication Date
JP2019041151A true JP2019041151A (en) 2019-03-14
JP6918634B2 JP6918634B2 (en) 2021-08-11

Family

ID=65726692

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017159542A Active JP6918634B2 (en) 2017-08-22 2017-08-22 Imaging equipment, control methods and programs

Country Status (1)

Country Link
JP (1) JP6918634B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113630553A (en) * 2021-08-02 2021-11-09 上海停格网络科技有限公司 Geographic information acquisition method and photographing device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160366290A1 (en) * 2015-06-11 2016-12-15 Casio Computer Co., Ltd. Image shooting apparatus for adding information to image
JP2017005679A (en) * 2015-06-11 2017-01-05 カシオ計算機株式会社 Imaging apparatus, information acquisition device, information acquisition system, transmission control method, information acquisition method and program
JP2017092533A (en) * 2015-11-02 2017-05-25 株式会社デンソー On-vehicle unit and user approach/separation estimation system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160366290A1 (en) * 2015-06-11 2016-12-15 Casio Computer Co., Ltd. Image shooting apparatus for adding information to image
JP2017005679A (en) * 2015-06-11 2017-01-05 カシオ計算機株式会社 Imaging apparatus, information acquisition device, information acquisition system, transmission control method, information acquisition method and program
JP2017092533A (en) * 2015-11-02 2017-05-25 株式会社デンソー On-vehicle unit and user approach/separation estimation system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
岩見 泰周: "セントラルモード・ペリフェラルモードを併用したBLEによる位置精度向上手法", マルチメディア,分散,協調とモバイル(DICOMO2016)シンポジウム論文集 情報処理学会シンポジ, vol. 第2016巻 第1号, JPN6021023686, 6 July 2016 (2016-07-06), JP, pages 876 - 880, ISSN: 0004530475 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113630553A (en) * 2021-08-02 2021-11-09 上海停格网络科技有限公司 Geographic information acquisition method and photographing device

Also Published As

Publication number Publication date
JP6918634B2 (en) 2021-08-11

Similar Documents

Publication Publication Date Title
JP6465541B2 (en) COMMUNICATION DEVICE, REPRODUCTION DEVICE, ITS METHOD, AND PROGRAM
JP6987556B2 (en) Communication equipment, information processing methods and programs
JP6433265B2 (en) Information processing apparatus, electronic device, control method thereof, program, and storage medium
JP6918634B2 (en) Imaging equipment, control methods and programs
JP6415232B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
JP2015164240A (en) Communication apparatus, imaging apparatus, server, communication system, communication method, and communication program
JP6433231B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
JP6976127B2 (en) Image pickup device, information processing device, their control method, and information processing system
JP6819389B2 (en) Information processing system, client terminal and program
JP2018207423A (en) Communication system
JP7286842B2 (en) UPDATE SYSTEM, UPDATE SYSTEM CONTROL METHOD AND PROGRAM
JP2015012582A (en) Imaging device, information processing method, and program
JP7073570B2 (en) Communication equipment, control methods and programs for communication equipment
JP2013254301A (en) Information processing device, information processing terminal, program and information processing system
JP2016058970A (en) Radio communication equipment, control method for radio communication equipment, and program
JP6386862B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
JP2020057899A (en) Wireless communication system and wireless communication terminal control method
JP7091570B1 (en) Communication equipment, control methods and programs for communication equipment
JP2016054390A (en) Communication apparatus, control method for the communication apparatus, and program
JP2016046596A (en) Communication device, control method, and program
JP2014165639A (en) Information terminal device, communication system, and method
US11496685B2 (en) Information processing system, information processing method, medium, and management device
JP2012058473A (en) Position information acquisition device, imaging device, and control method for them
JP6936652B2 (en) Communication device, control method of communication device, and program
JP2016206802A (en) Information processing system and information processing device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200708

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210428

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210721

R151 Written notification of patent or utility model registration

Ref document number: 6918634

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151