JP2020038345A - Imaging device, accessory device, and communication control method - Google Patents

Imaging device, accessory device, and communication control method Download PDF

Info

Publication number
JP2020038345A
JP2020038345A JP2019110936A JP2019110936A JP2020038345A JP 2020038345 A JP2020038345 A JP 2020038345A JP 2019110936 A JP2019110936 A JP 2019110936A JP 2019110936 A JP2019110936 A JP 2019110936A JP 2020038345 A JP2020038345 A JP 2020038345A
Authority
JP
Japan
Prior art keywords
accessory
communication
data
control unit
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.)
Granted
Application number
JP2019110936A
Other languages
Japanese (ja)
Other versions
JP7341741B2 (en
JP2020038345A5 (en
Inventor
杉田 淳
Atsushi Sugita
淳 杉田
和道 杉山
Kazumichi Sugiyama
和道 杉山
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 CN202211611066.5A priority Critical patent/CN116193247A/en
Priority to CN201910561404.0A priority patent/CN110661964A/en
Priority to US16/454,535 priority patent/US11303796B2/en
Publication of JP2020038345A publication Critical patent/JP2020038345A/en
Priority to US17/528,728 priority patent/US11706523B2/en
Publication of JP2020038345A5 publication Critical patent/JP2020038345A5/ja
Application granted granted Critical
Publication of JP7341741B2 publication Critical patent/JP7341741B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

To perform communication between a camera body and an accessory at higher speed or at a most suitable speed.SOLUTION: A camera control unit 205 of an imaging device receives, from an accessory device, an accessory transmittable size that indicates a data size continuously transmittable by the accessory device and an accessory receivable size that indicates a data size continuously receivable by the accessory device. The camera control unit sets a first continuously receivable data size on the basis of the data size continuously receivable by the camera control unit and accessory transmittable size, and sets a first continuously transmittable data size on the basis of the data size continuously transmittable by the camera control unit and accessory receivable size, and performs communication with the accessory device in a data size with the first continuously receivable data size and the first continuously transmittable data size set to upper limits.SELECTED DRAWING: Figure 1

Description

本発明は、相互に通信が可能な撮像装置(以下、カメラ本体という)と交換レンズやアダプタ等のアクセサリ装置(以下、単にアクセサリという)を含む撮像システムに関する。   The present invention relates to an imaging system including an imaging device (hereinafter, referred to as a camera body) capable of communicating with each other and an accessory device (hereinafter, simply referred to as an accessory) such as an interchangeable lens and an adapter.

レンズ交換型撮像システムでは、カメラ本体と交換レンズとの間にワイド/テレコンバータ、マウント変換アダプタおよびNDフィルタアダプタ等のアダプタ類(中間アクセサリ)が接続される場合がある。この場合に、高画質の撮像や滑らかなレンズ制御等を実現するためには、大容量データの送受信を、高速で行う必要がある。また、カメラ本体とアクセサリとの組み合わせにおいては、相互の互換性を保証しつつ、通信速度のより高速化や最適化が求められる。   In the interchangeable lens type imaging system, adapters (intermediate accessories) such as a wide / teleconverter, a mount conversion adapter, and an ND filter adapter may be connected between the camera body and the interchangeable lens. In this case, it is necessary to transmit and receive a large amount of data at a high speed in order to realize high-quality imaging and smooth lens control. Further, in the combination of the camera body and the accessory, it is required to further increase and optimize the communication speed while guaranteeing mutual compatibility.

特許文献1には、交換レンズとの間で通信を行うカメラ本体と交換レンズとの間に中間アクセサリが接続された場合に、中間アクセサリの光学情報に基づいて交換レンズの光学情報を補正する撮像システムが開示されている。この撮像システムでは、中間アクセサリが通信マスタとして通信スレーブである交換レンズの識別情報を取得することから光学情報の補正処理が開始される。   Patent Literature 1 discloses an image pickup device that corrects optical information of an interchangeable lens based on optical information of the intermediate accessory when an intermediate accessory is connected between a camera body that communicates with the interchangeable lens and the interchangeable lens. A system is disclosed. In this imaging system, the correction process of the optical information is started because the intermediate accessory acquires the identification information of the interchangeable lens that is the communication slave as the communication master.

また、通信マスタと複数の通信スレーブとの一対多通信を実現するための通信方式であるI2C通信方式では、シリアルクロックラインとシリアルデータラインの2線で一対多通信を可能としている。   Further, in the I2C communication system, which is a communication system for achieving one-to-many communication between a communication master and a plurality of communication slaves, one-to-many communication can be performed using two lines of a serial clock line and a serial data line.

特許第5208169号公報Japanese Patent No. 5208169

しかしながら、特許文献1にて開示された撮像システムのように中間アクセサリが通信マスタとなると、例えばカメラ本体と交換レンズとの間に複数の中間アクセサリが接続された場合には適切に処理を開始または実行することができない。さらに、この撮像システムでは、例えば「一対一」通信をカメラ本体とアクセサリとの間およびアクセサリ相互間で切り替えながら行うので、高速通信には不向きである。   However, when the intermediate accessory becomes a communication master as in the imaging system disclosed in Patent Document 1, for example, when a plurality of intermediate accessories are connected between the camera body and the interchangeable lens, the processing is appropriately started or Can't run. Furthermore, in this imaging system, for example, "one-to-one" communication is performed while switching between the camera body and the accessory and between the accessories, and thus is not suitable for high-speed communication.

一方、I2C通信方式は、クロック同期式のオープンドレイン通信であり、1データ通信ごとに受信側が送信側に到達確認(ACK)を返す必要があるため、高速通信が困難である。   On the other hand, the I2C communication system is a clock-synchronous open-drain communication, and the receiving side needs to return an acknowledgment (ACK) to the transmitting side for each data communication, so that high-speed communication is difficult.

本発明は、撮像装置とアクセサリ装置との間の通信を、より高速または最適な通信速度で行えるようにした撮像装置およびアクセサリ装置を提供する。   The present invention provides an imaging device and an accessory device capable of performing communication between the imaging device and the accessory device at a higher speed or an optimum communication speed.

本発明の一側面としての撮像装置は、アクセサリ装置が着脱可能に装着される。該撮像装置は、アクセサリ装置との間に通信経路を設けるメラ通信部と、カメラ通信部を介してアクセサリ装置と通信するカメラ制御部とを有する。カメラ制御部は、アクセサリ装置から、該アクセサリ装置が連続して送信可能なデータサイズを示すアクセサリ送信可能サイズと、アクセサリ装置が連続して受信可能なデータサイズを示すアクセサリ受信可能サイズとを受信する。そして、カメラ制御部が連続して受信可能なデータサイズとアクセサリ送信可能サイズに基づいて第1の連続受信可能データサイズに設定し、カメラ制御部が連続して送信可能なデータサイズとアクセサリ受信可能サイズに基づいて第1の連続送信可能データサイズに設定し、第1の連続受信可能データサイズおよび第1の連続送信可能データサイズを上限としたデータサイズでアクセサリ装置との通信を行うことを特徴とする。   In the imaging device according to one aspect of the present invention, an accessory device is detachably mounted. The imaging device includes a camera communication unit that provides a communication path with the accessory device, and a camera control unit that communicates with the accessory device via the camera communication unit. The camera control unit receives, from the accessory device, an accessory transmittable size indicating a data size that can be continuously transmitted by the accessory device, and an accessory receivable size indicating a data size that can be continuously received by the accessory device. . Then, the camera control unit sets the first continuously receivable data size based on the continuously receivable data size and the accessory transmittable size, and the camera control unit sets the continuously receivable data size and the accessory receiveable size. The first continuous transmittable data size is set based on the size, and communication with the accessory device is performed using the first continuous receivable data size and a data size having the first continuous transmittable data size as an upper limit. And

また、本発明の他の一側面としてのアクセサリ装置は、撮像装置に着脱可能に接続される。該アクセサリ装置は、撮像装置との間に通信経路を設けるアクセサリ通信部と、アクセサリ通信部を介して撮像装置および他のアクセサリ装置と通信するアクセサリ制御部とを有する。アクセサリ制御部は、該アクセサリ制御部が連続して送信可能なデータサイズを示すアクセサリ送信可能サイズと、アクセサリ制御部が連続して受信可能なデータサイズを示すアクセサリ受信可能サイズとを撮像装置に送信することを特徴とする。   An accessory device according to another aspect of the present invention is detachably connected to an imaging device. The accessory device has an accessory communication unit that provides a communication path with the imaging device, and an accessory control unit that communicates with the imaging device and other accessory devices via the accessory communication unit. The accessory control unit transmits, to the imaging device, an accessory transmittable size indicating a data size that can be continuously transmitted by the accessory control unit and an accessory receivable size indicating a data size that can be continuously received by the accessory control unit. It is characterized by doing.

また、本発明の他の一側面としての通信制御方法は、アクセサリ装置が着脱可能および通信可能に装着される撮像装置に適用される。該通信制御方法は、アクセサリ装置から、該アクセサリ装置が連続して送信可能なデータサイズを示すアクセサリ送信可能サイズと、アクセサリ装置が連続して受信可能なデータサイズを示すアクセサリ受信可能サイズとを受信するステップと、撮像装置が連続して受信可能なデータサイズとアクセサリ送信可能サイズに基づいて第1の連続受信可能データサイズに設定するステップと、撮像装置が連続して送信可能なデータサイズとアクセサリ受信可能サイズに基づいて第1の連続送信可能データサイズに設定するステップと、第1の連続受信可能データサイズおよび第1の連続送信可能データサイズを上限としたデータサイズでアクセサリ装置との通信を行うステップとを有することを特徴とする。   Further, a communication control method according to another aspect of the present invention is applied to an imaging device to which an accessory device is detachably and communicatively attached. The communication control method receives, from an accessory device, an accessory transmittable size indicating a data size that the accessory device can continuously transmit, and an accessory receivable size indicating a data size that the accessory device can continuously receive. Setting the first continuous receivable data size based on the data size and the accessory transmittable size that can be continuously received by the imaging device; and the data size and accessory that the image capture device can continuously transmit. Setting the first continuously transmittable data size based on the receivable size, and communicating with the accessory device using the first continuously receivable data size and a data size up to the first continuously transmittable data size. Performing the steps.

なお、上記撮像装置およびアクセサリ装置を含む撮像システムも、本発明の他の一側面を構成する。   Note that an imaging system including the imaging device and the accessory device also constitutes another aspect of the present invention.

また、本発明の他の一側面としての通信制御方法は、撮像装置に着脱可能および通信可能に装着されるアクセサリ装置に適用される。該通信制御方法は、アクセサリ装置が連続して送信可能なデータサイズを示すアクセサリ送信可能サイズを撮像装置に送信するステップと、アクセサリ装置が連続して受信可能なデータサイズを示すアクセサリ受信可能サイズを撮像装置に送信するステップとを有することを特徴とする。   Further, a communication control method according to another aspect of the present invention is applied to an accessory device detachably and communicatively attached to an imaging device. The communication control method includes: transmitting an accessory transmittable size indicating a data size that can be continuously transmitted by the accessory device to the imaging device; and transmitting an accessory receivable size indicating a data size that the accessory device can continuously receive. Transmitting to the imaging device.

なお、上記通信制御方法に従う処理を、撮像装置またはアクセサリ装置のコンピュータに実行させるコンピュータプログラムとしての通信制御プログラムも、本発明の他の一側面を構成する。   Note that a communication control program as a computer program for causing a computer of an imaging device or an accessory device to execute processing according to the communication control method also constitutes another aspect of the present invention.

本発明によれば、撮像装置とアクセサリ装置との間の通信を、より高速または最適な通信速度で行うことができる。   According to the present invention, communication between an imaging device and an accessory device can be performed at a higher speed or an optimum communication speed.

実施例1のカメラシステムの構成を説明するブロック図FIG. 2 is a block diagram illustrating the configuration of the camera system according to the first embodiment. 実施例1の第1通信のための構成を説明する図FIG. 4 is a diagram illustrating a configuration for first communication according to the first embodiment. 実施例1のアクセサリとの初期通信及び補正された光学情報を取得する処理の流れを示すフローチャート5 is a flowchart illustrating a flow of a process of acquiring initial optical information and corrected optical information with the accessory according to the first embodiment. 実施例1のカメラとレンズの初期通信処理を示すフローチャート5 is a flowchart illustrating initial communication processing between the camera and the lens according to the first embodiment. 実施例1のカメラとアクセサリの初期通信処理を示すフローチャート5 is a flowchart illustrating an initial communication process between the camera and the accessory according to the first embodiment. 実施例1の第1のアクセサリを決定する処理の流れを示すフローチャート5 is a flowchart illustrating a flow of a process of determining a first accessory according to the first embodiment. 実施例2の動的アクセサリを探索する処理の流れを示すフローチャート11 is a flowchart illustrating a flow of a process of searching for a dynamic accessory according to the second embodiment. 実施例2の動的アクセサリの操作に応じた光学情報の補正処理の流れを示すフローチャート11 is a flowchart illustrating a flow of a correction process of optical information according to the operation of the dynamic accessory according to the second embodiment 初期通信で通信される情報の例を示す図Diagram showing an example of information communicated in the initial communication 実施例3の補正識別情報を取得する処理と、補正識別情報を用いた補正処理の流れを示すフローチャート11 is a flowchart illustrating a flow of a process of acquiring correction identification information and a flow of a correction process using the correction identification information according to the third embodiment. 実施例1の第2通信のための構成を説明する図FIG. 4 is a diagram illustrating a configuration for second communication according to the first embodiment. 実施例1の第1通信の変形例を説明する図FIG. 7 is a diagram illustrating a modification of the first communication according to the first embodiment. 実施例4の末端が交換レンズである場合のカメラシステムの構成を説明するブロック図FIG. 14 is a block diagram illustrating a configuration of a camera system according to a fourth exemplary embodiment in a case where an end is an interchangeable lens. 実施例4の末端が中間アクセサリである場合のカメラシステムの構成を説明するブロック図FIG. 9 is a block diagram illustrating a configuration of a camera system when an end of the fourth embodiment is an intermediate accessory. 実施例4の第2通信の通信エラーを検出する処理の流れを示すフローチャート14 is a flowchart illustrating the flow of a process for detecting a communication error of the second communication according to the fourth embodiment. 本発明の実施例5におけるカメラ本体、交換レンズおよび中間アダプタを含むカメラシステムの構成を示すブロック図。FIG. 13 is a block diagram illustrating a configuration of a camera system including a camera body, an interchangeable lens, and an intermediate adapter according to a fifth embodiment of the present invention. 実施例5のカメラシステムにおける第1の通信回路の構成を示す図。FIG. 14 is a diagram illustrating a configuration of a first communication circuit in a camera system according to a fifth embodiment. 実施例5における通信データのフォーマットを示す波形図。FIG. 17 is a waveform chart showing a format of communication data in the fifth embodiment. 実施例5における第1の通信モードの通信波形を示す波形図。FIG. 19 is a waveform chart showing a communication waveform in a first communication mode in the fifth embodiment. 実施例5における第1の通信モードの通信波形を示す別の波形図。FIG. 17 is another waveform chart showing a communication waveform in the first communication mode in the fifth embodiment. 実施例5における第2の通信モードの通信波形を示す波形図。FIG. 17 is a waveform chart showing communication waveforms in a second communication mode in the fifth embodiment. 実施例5における通信モード切り換え時の通信波形を示す波形図。FIG. 17 is a waveform chart showing communication waveforms at the time of communication mode switching in the fifth embodiment. 実施例5における第1の通信モードでの処理手順を示すフローチャート。17 is a flowchart illustrating a processing procedure in a first communication mode according to the fifth embodiment. 実施例5における第1の通信モードでの処理手順を示す別のフローチャート。17 is another flowchart illustrating the processing procedure in the first communication mode according to the fifth embodiment. 実施例5における第2の通信モードでの処理手順を示すフローチャート。17 is a flowchart illustrating a processing procedure in a second communication mode according to the fifth embodiment. 実施例5における第2の通信モードでの処理手順を示す別のフローチャート。17 is another flowchart illustrating the processing procedure in the second communication mode in the fifth embodiment. 実施例5におけるカメラ本体の起動処理手順を示すフローチャート。15 is a flowchart illustrating a procedure for activating a camera body according to the fifth embodiment. 実施例5における通信コマンドごとのメモリマップのフォーマットを示す図。FIG. 18 is a diagram illustrating a format of a memory map for each communication command according to the fifth embodiment. 実施例5における通信コマンドのフォーマットを示す図。FIG. 18 is a diagram illustrating a format of a communication command according to the fifth embodiment. 実施例5におけるメモリマップを使用した通信処理手順を示すフローチャート。16 is a flowchart illustrating a communication processing procedure using a memory map according to the fifth embodiment. 実施例5におけるメモリマップを使用した他の通信処理手順を示すフローチャート。17 is a flowchart illustrating another communication processing procedure using a memory map according to the fifth embodiment. 本発明の実施例6における通信コマンドごとのメモリマップの拡張フォーマットを示す図。FIG. 17 is a diagram illustrating an extended format of a memory map for each communication command according to the sixth embodiment of the present invention.

以下、アクセサリとは、交換レンズもしくは中間アクセサリを示す。 Hereinafter, the accessory indicates an interchangeable lens or an intermediate accessory.

なお、以下の実施例において、カメラ本体、交換レンズ及び中間アクセサリの各々を総称してユニットとも称する。また、交換レンズ及び中間アクセサリの各々を総称してアクセサリとも称する。   In the following embodiments, each of the camera body, the interchangeable lens, and the intermediate accessory is also generally referred to as a unit. Further, each of the interchangeable lens and the intermediate accessory is also generally referred to as an accessory.

また、以下の実施例において、補正に関わるアクセサリとは、交換レンズ又は補正処理要否情報が「要」である中間アクセサリである。   In the following embodiments, the accessory related to correction is an interchangeable lens or an intermediate accessory whose correction processing necessity information is “necessary”.

また、以下の実施例において、補正に関わる中間アクセサリとは、交換レンズの光学情報の補正が必要な中間アクセサリである。   In the following embodiments, an intermediate accessory related to correction is an intermediate accessory that needs to correct optical information of an interchangeable lens.

また、以下の実施例において、第1のアクセサリとは、他の全アクセサリの光学情報を保持するアクセサリである。   In the following embodiments, the first accessory is an accessory that holds optical information of all other accessories.

また、以下の実施例において、第1の中間アクセサリとは、他の中間アクセサリの光学情報を有している中間アクセサリである。   Further, in the following embodiments, the first intermediate accessory is an intermediate accessory having optical information of another intermediate accessory.

また、以下の実施例において、第1のユニットとは、全アクセサリの光学情報を保持しているユニットである。   In the following embodiments, the first unit is a unit that holds optical information of all accessories.

なお。以下の実施例では各ユニットが他のユニットの光学情報を有しているか否かに着目するが、これは必ずしもユニットの発売日や製造日とは関係ない。例えば、ファームアップ等によって、ユニットの発売日や製造日によらず、各ユニットが記憶している光学情報は変わり得る。   In addition. In the following embodiments, attention is paid to whether each unit has optical information of another unit, but this is not necessarily related to the release date or the manufacture date of the unit. For example, the optical information stored in each unit may change irrespective of the release date or manufacturing date of the unit due to firmware upgrade or the like.

以下、実施例1について説明する。   Hereinafter, Example 1 will be described.

<カメラシステムの構成(図1)>
図1を用いて、本実施例のカメラシステムの構成を説明する。
<Configuration of camera system (Fig. 1)>
The configuration of the camera system according to the present embodiment will be described with reference to FIG.

カメラシステムはカメラ本体20から交換レンズ10への制御命令伝達の為、および交換レンズ10からカメラ本体20への操作情報および光学情報伝達の為の通信経路である第1の通信経路を有する。また、カメラ本体20と複数の中間アクセサリ30、40との操作情報および光学情報伝達の為の通信経路である第2の通信経路を有する。以後、第1の通信経路により行う通信を第1通信(第1の通信)、第2の通信経路により行う通信を第2通信(第2の通信)とも称する。   The camera system has a first communication path that is a communication path for transmitting control commands from the camera body 20 to the interchangeable lens 10 and for transmitting operation information and optical information from the interchangeable lens 10 to the camera body 20. Further, it has a second communication path which is a communication path for transmitting operation information and optical information between the camera body 20 and the plurality of intermediate accessories 30 and 40. Hereinafter, communication performed through the first communication path is also referred to as first communication (first communication), and communication performed through the second communication path is also referred to as second communication (second communication).

ここで、第1の通信経路はカメラ側の第1通信部207とレンズ側の第1通信部114との間で相互に行う通信を、後述のマウント202及び305、303及び405、403及び102を介して行う経路である。なお、カメラ側の第1通信部207とレンズ側の第1通信部114はそれぞれ通信制御手段の一例である。   Here, the first communication path is used to perform communication between the first communication unit 207 on the camera side and the first communication unit 114 on the lens side, and mounts 202 and 305, 303 and 405, 403, and 102 described later. This is a route performed through. The first communication unit 207 on the camera side and the first communication unit 114 on the lens side are examples of communication control means.

このように、あるユニットが当該ユニットとは異なる1つのユニットとの間で行う通信を、本実施例では一対一の通信とも称する。   As described above, communication performed by a certain unit with one unit different from the unit is also referred to as one-to-one communication in this embodiment.

また、ここで、第2の通信経路は、カメラ側の第2通信部208が各アクセサリの通信部と通信する経路である。その際、カメラ側の第2通信部208からマウント203及び306を介して行われるとともに、マウント304及び406、404及び103の少なくとも一部を介して、通信が実施される。第2通信経路によってカメラ側の通信部208は例えば、レンズ側の第2通信部115、中間アクセサリ側の第2通信部308、408との間で通信を行う。なお、カメラ側の通信部208、レンズ側の第2通信部115、中間アクセサリ側の第2通信部308、及び中間アクセサリ側の408は、それぞれ通信制御手段の一例である。   Here, the second communication path is a path in which the second communication unit 208 on the camera side communicates with the communication unit of each accessory. At this time, communication is performed from the second communication unit 208 on the camera side via the mounts 203 and 306, and communication is performed via at least a part of the mounts 304 and 406, 404 and 103. The communication unit 208 on the camera side communicates with, for example, the second communication unit 115 on the lens side and the second communication units 308 and 408 on the intermediate accessory side via the second communication path. The camera-side communication unit 208, the lens-side second communication unit 115, the intermediate accessory-side second communication unit 308, and the intermediate accessory-side 408 are each examples of communication control means.

このように、あるユニットが当該ユニットとは異なる複数のユニットとの間で行う通信を、本実施例では一対多の通信とも称する。   As described above, communication performed by a certain unit with a plurality of units different from the unit is also referred to as one-to-many communication in this embodiment.

図1において、交換レンズ10は、撮影に関する可動光学部材を制御する交換レンズである。カメラ本体20は、映像を撮影するカメラ本体である。中間アクセサリ30、中間アクセサリ40は、交換レンズ10とカメラ本体20との間に装着されたエクステンダー等の中間アクセサリである。   In FIG. 1, an interchangeable lens 10 is an interchangeable lens that controls a movable optical member for photographing. The camera body 20 is a camera body that captures an image. The intermediate accessory 30 and the intermediate accessory 40 are intermediate accessories such as extenders mounted between the interchangeable lens 10 and the camera body 20.

交換レンズ10、中間アクセサリ40、中間アクセサリ30、カメラ本体20は、マウント101と401、402と301、302と201がそれぞれ取り外し可能に取り付けられる。ここで、マウント101は交換レンズ10に設けられ、マウント401、マウント402は中間アクセサリ40に設けられ、マウント301、マウント302は中間アクセサリ30に設けられ、マウント201はカメラ本体20に設けられている。   The interchangeable lens 10, the intermediate accessory 40, the intermediate accessory 30, and the camera body 20 have detachable mounts 101 and 401, 402 and 301, and 302 and 201, respectively. Here, the mount 101 is provided on the interchangeable lens 10, the mounts 401 and 402 are provided on the intermediate accessory 40, the mounts 301 and 302 are provided on the intermediate accessory 30, and the mount 201 is provided on the camera body 20. .

マウント101、401、402、301、302、201にはそれぞれ、第1通信を行う為の1つ以上の接点を持つ接点端子群である第1通信接点群102、403、405、303、305、202が設けられている。ここで、第1通信接点群102、403、405、303、305、202は、交換レンズ10、中間アクセサリ30、中間アクセサリ40、カメラ本体20が接続された時に、導通する構成となっている。実施例1では、第1通信は、交換レンズ10の光学部材をカメラ本体20が制御する為にも用いられる。   Each of the mounts 101, 401, 402, 301, 302, and 201 has a first communication contact group 102, 403, 405, 303, 305, which is a contact terminal group having one or more contacts for performing first communication. 202 is provided. Here, the first communication contact groups 102, 403, 405, 303, 305, and 202 are configured to conduct when the interchangeable lens 10, the intermediate accessory 30, the intermediate accessory 40, and the camera body 20 are connected. In the first embodiment, the first communication is also used for controlling the optical member of the interchangeable lens 10 by the camera body 20.

更に、マウント101、401、402、301、302、201にはそれぞれ、第2通信を行う為の1つ以上の接点を持つ接点端子群である第2通信接点群103、404、406、304、306、203が設けられている。ここで、第2通信接点群103、404、406、304、306、203は、交換レンズ10、中間アクセサリ30、中間アクセサリ40、カメラ本体20が接続された時に、導通する構成となっている。実施例1では、第2通信は、カメラ本体20が中間アクセサリ30、中間アクセサリ40と、交換レンズ10とに対して一対多の通信を行うことが可能であるように構成されている。   Further, the mounts 101, 401, 402, 301, 302, and 201 respectively have second communication contact groups 103, 404, 406, 304, which are contact terminal groups having one or more contacts for performing the second communication. 306 and 203 are provided. Here, the second communication contact groups 103, 404, 406, 304, 306, and 203 are configured to conduct when the interchangeable lens 10, the intermediate accessory 30, the intermediate accessory 40, and the camera body 20 are connected. In the first embodiment, the second communication is configured such that the camera body 20 can perform one-to-many communication with the intermediate accessory 30, the intermediate accessory 40, and the interchangeable lens 10.

このように、カメラ本体20と交換レンズ10の一対一の通信である第1通信と、カメラ本体と複数のアクセサリとの一体多の通信を行う第2通信とのそれぞれに対応して、異なる第1の通信経路と第2の通信経路が設けられている。これにより、同一の通信経路を用いて通信を行う場合と比較して、例えば第1通信ではより意図したタイミングで交換レンズに交換レンズ制御命令伝達をする事が出来る。交換レンズ制御命令伝達をカメラ本体が意図したタイミングで直ぐに交換レンズに伝達できるので、交換レンズに実装された複数の光学部材を高速、高精度で制御することが出来る。   As described above, the first communication that is one-to-one communication between the camera body 20 and the interchangeable lens 10 and the second communication that performs integral communication between the camera body and the plurality of accessories correspond to different first communication. A first communication path and a second communication path are provided. Thus, compared to the case where communication is performed using the same communication path, for example, in the first communication, it is possible to transmit an interchangeable lens control command to the interchangeable lens at a more intended timing. Since the transmission of the interchangeable lens control command can be transmitted to the interchangeable lens immediately at the timing intended by the camera body, a plurality of optical members mounted on the interchangeable lens can be controlled at high speed and with high accuracy.

交換レンズ10は、光学系を構成するフォーカスレンズ104、ズームレンズ105、アイリス106、ぶれ補正レンズ107と、各光学部材を制御する制御部(108〜111)及び、レンズ全体を制御するレンズ制御部113を備える。さらに交換レンズ10は、第1の通信を行うレンズ側の第1通信部114、第2の通信を行うレンズ側の第2通信部115、ぶれ量を検出するぶれ量検出部112、交換レンズに設けられた操作部材であるレンズ操作部材116を備える。各構成について説明をする。   The interchangeable lens 10 includes a focus lens 104, a zoom lens 105, an iris 106, a blur correction lens 107, a control unit (108 to 111) for controlling each optical member, and a lens control unit for controlling the entire lens. 113 is provided. Further, the interchangeable lens 10 includes a first communication unit 114 on the lens side that performs the first communication, a second communication unit 115 on the lens side that performs the second communication, a blur amount detection unit 112 that detects a blur amount, and an interchangeable lens. A lens operation member 116 is provided as an operation member. Each configuration will be described.

フォーカスレンズ104は、撮影映像のピント状態を変化させるためのものである。ズームレンズ105は、撮影映像のズームを行う為のものである。アイリス106は、撮影映像の光量調整を行う為のものである。ぶれ補正レンズ107は、被写体像の像ぶれを補正する為のぶれ補正レンズである。   The focus lens 104 is for changing the focus state of a captured image. The zoom lens 105 is for zooming a captured image. The iris 106 is for adjusting the amount of light of a captured image. The blur correction lens 107 is a blur correction lens for correcting image blur of a subject image.

フォーカスレンズ制御部108は、フォーカスレンズ104の位置検出および駆動制御を行う。ズームレンズ制御部109は、ズームレンズ105の位置検出および駆動制御を行う。アイリス制御部110は、アイリス106の位置検出および駆動制御を行う。ぶれ補正制御部111は、ぶれ補正レンズ107の位置検出および駆動制御を行う為のぶれ補正制御部である。フォーカスレンズ制御部108、ズームレンズ制御部109、アイリス制御部110、ぶれ補正制御部111は、それぞれ例えば絶対値エンコーダ等の位置センサーと、超音波モータやステッピングモータ等の駆動モータにより構成される。ぶれ量検出部112は、交換レンズ10の振動量を検出するためのものであり、例えばジャイロセンサーで構成される。   The focus lens control unit 108 performs position detection and drive control of the focus lens 104. The zoom lens control unit 109 performs position detection and drive control of the zoom lens 105. The iris control unit 110 performs position detection and drive control of the iris 106. The shake correction control unit 111 is a shake correction control unit that performs position detection and drive control of the shake correction lens 107. Each of the focus lens control unit 108, the zoom lens control unit 109, the iris control unit 110, and the shake correction control unit 111 includes, for example, a position sensor such as an absolute encoder and a drive motor such as an ultrasonic motor or a stepping motor. The blur amount detection unit 112 detects the amount of vibration of the interchangeable lens 10, and is configured by, for example, a gyro sensor.

レンズ制御部113はレンズを制御する為のものであり、不図示のメモリを有している。レンズ制御部113は、通信制御部の一例である。レンズ側第1通信部114は、交換レンズ10にて第1通信を行う為のものである。レンズ側第2通信部115は、交換レンズ10にて第2通信を行う為のものである。   The lens control unit 113 controls the lens and has a memory (not shown). The lens control unit 113 is an example of a communication control unit. The lens side first communication unit 114 is for performing first communication with the interchangeable lens 10. The lens-side second communication unit 115 is for performing the second communication with the interchangeable lens 10.

レンズ制御部113が備えるメモリは、書き換え可能な不揮発メモリで構成され、CPUが実行する制御ソフトウェア(ファームウェア)、交換レンズ10に関する固有情報や状態情報を記憶する。固有情報は例えば機種名(識別情報)、光学特性、補正情報などである。また、状態情報は例えば動作状態(正常/セーフモード)、ズームレンズ105の位置情報(または倍率)、フォーカスレンズ104の位置情報、アイリス106のF値、ぶれ補正レンズ107の位置情報、ファームウェアのバージョンや更新状態などである。ただし、これらに限定されない。また、メモリには、後述するセーフモードで交換レンズ10を動作させる際に実行するプログラムも記憶されている。   The memory provided in the lens control unit 113 is constituted by a rewritable nonvolatile memory, and stores control software (firmware) executed by the CPU, and unique information and status information on the interchangeable lens 10. The unique information is, for example, a model name (identification information), optical characteristics, correction information, and the like. The state information includes, for example, an operation state (normal / safe mode), position information (or magnification) of the zoom lens 105, position information of the focus lens 104, F value of the iris 106, position information of the blur correction lens 107, firmware version, Update status. However, it is not limited to these. The memory also stores a program to be executed when operating the interchangeable lens 10 in a safe mode described later.

また、レンズ制御部113はCPUなどのプログラマブルプロセッサを有し、メモリからプログラムを読みだして実行することにより、後述する交換レンズ10の動作をはじめとした、各種の動作を実現する。例えばレンズ制御部113は、後述する第1通信でカメラ制御部205から受信した命令に応じた動作を実行する。命令に応じた動作とは、例えばフォーカスレンズ制御部108、ズームレンズ制御部109、アイリス制御部110、ぶれ補正制御部111の制御や、メモリに記憶されたファームウェアの更新を実行する。   The lens control unit 113 has a programmable processor such as a CPU, and realizes various operations including an operation of the interchangeable lens 10 described later by reading a program from a memory and executing the program. For example, the lens control unit 113 performs an operation according to a command received from the camera control unit 205 in first communication described below. The operation according to the command includes, for example, controlling the focus lens control unit 108, the zoom lens control unit 109, the iris control unit 110, and the blur correction control unit 111, and updating the firmware stored in the memory.

レンズ制御部113は、メモリに記憶されている古いファームウェアを、例えばカメラ本体20から第1通信で受信した新しいファームウェアで上書きすることによってファームウェアを更新する。また、レンズ制御部113は、ファームウェアの更新処理の状態を表すデータ(更新状態データ)をメモリに記録することで、更新処理を管理する。例えばレンズ制御部113はファームウェアの上書きを行う前に、更新状態データを「未完了」を示す値にし、ファームウェアの上書きが完了すると更新状態データを「完了」を示す値にする。なお、「完了」を示す値は「正常完了」を示す値と「異常完了」を示す値とで異なっていてもよい。また「異常完了」を示す値は、異常の原因に応じて異なる値であってよい。   The lens control unit 113 updates the firmware by overwriting the old firmware stored in the memory with, for example, the new firmware received from the camera body 20 in the first communication. The lens control unit 113 manages the update process by recording data (update status data) indicating the status of the firmware update process in the memory. For example, the lens control unit 113 sets the update state data to a value indicating “incomplete” before overwriting the firmware, and sets the update state data to a value indicating “completed” when the firmware overwrite is completed. Note that the value indicating “completed” may be different between the value indicating “normal completion” and the value indicating “abnormal completion”. The value indicating “abnormal completion” may be a different value depending on the cause of the abnormality.

例えば、ファームウェアの更新中に交換レンズ10が外された場合、交換レンズ10への電源供給が絶たれるため、更新状態データが「未完了」を示す値のまま更新処理が中断される。例えばレンズ制御部113は、電源が再び供給された際に更新状態データを確認し、未完了状態を示す値であった場合には、ファームウェアの更新が中断された状態であるため、動作が制限されたモード(セーフモード)に移行する。また、メモリが記憶している交換レンズ10の動作状態を、セーフモードに書き換える。セーフモードでは、ファームウェアの更新を行うために必要な処理を含む、制限された機能だけが実行可能である。ファームウェアの更新を行うために必要な処理とは、具体的には、交換レンズ10の識別情報と動作状態情報(あるいはファームウェア更新の要求)をカメラ本体20に送信する処理である。また、カメラ本体20から受信したファームウェアでメモリに記録しているファームウェアを更新する処理も、ファームウェアの更新を行うために必要な処理である。   For example, if the interchangeable lens 10 is detached during the firmware update, the power supply to the interchangeable lens 10 is cut off, and the update process is interrupted with the update state data indicating a value indicating “incomplete”. For example, the lens control unit 113 checks the update state data when the power is supplied again, and if the value indicates the incomplete state, the operation of the lens control unit 113 is limited because the firmware update is suspended. To the specified mode (safe mode). Further, the operation state of the interchangeable lens 10 stored in the memory is rewritten to the safe mode. In the safe mode, only limited functions including the processing required for updating the firmware can be executed. The processing required for updating the firmware is, specifically, processing for transmitting the identification information and the operation state information (or a request for updating the firmware) of the interchangeable lens 10 to the camera body 20. The process of updating the firmware recorded in the memory with the firmware received from the camera body 20 is also a process necessary for updating the firmware.

それ以外の処理、例えばフォーカスレンズ制御部108の制御などは行えない。   Other processes, such as control of the focus lens control unit 108, cannot be performed.

通常、メモリの容量はファームウェア全体を二重化して記憶できるほど大きくない。そのため、セーフモード用のプログラム記憶に利用できる容量は制限される。したがってセーフモードでは、交換レンズ10の動作状態の送信やファームウェアの更新といった必要最低限の機能を含む、限られた機能だけが提供される。レンズ制御部113はセーフモード中に第1通信で、セーフモードでは実行できない処理の要求、例えばフォーカスレンズ104の駆動要求などを受信した場合、要求を無視する。レンズ操作部材116は、交換レンズ10に備え付けられた操作部材であり、例えばスイッチ又は電子リングである。レンズ操作部材116が操作されると、操作信号がレンズ制御部113へ出力される。   Usually, the capacity of the memory is not large enough to store the entire firmware in duplicate. Therefore, the capacity available for storing the program for the safe mode is limited. Therefore, in the safe mode, only limited functions including the minimum necessary functions such as transmission of the operation state of the interchangeable lens 10 and update of firmware are provided. When the lens controller 113 receives a request for processing that cannot be executed in the safe mode, for example, a request for driving the focus lens 104, in the first communication during the safe mode, the request is ignored. The lens operation member 116 is an operation member provided on the interchangeable lens 10, and is, for example, a switch or an electronic ring. When the lens operation member 116 is operated, an operation signal is output to the lens control unit 113.

次に、カメラ本体20の構成の説明をする。カメラ本体20は、撮像素子204、カメラ本体を制御するカメラ制御部205、カメラ本体20が撮影した映像などを表示する映像表示部206、カメラ本体20に設けられた操作部材であるカメラ操作部材209を備える。さらに、カメラ本体20は、第1の通信及び第2の通信を制御するカメラ側第1通信部207、カメラ側第2通信部208を備える。各構成について説明をする。   Next, the configuration of the camera body 20 will be described. The camera body 20 includes an image sensor 204, a camera control unit 205 that controls the camera body, an image display unit 206 that displays images captured by the camera body 20, and a camera operation member 209 that is an operation member provided on the camera body 20. Is provided. Further, the camera body 20 includes a camera-side first communication unit 207 and a camera-side second communication unit 208 that control the first communication and the second communication. Each configuration will be described.

撮像素子204は映像を撮影する為の撮像素子であり、例えばCMOSイメージセンサーである。   The image sensor 204 is an image sensor for capturing an image, and is, for example, a CMOS image sensor.

カメラ制御部205は、カメラ本体を制御する為のものであり、不図示のメモリを有している。カメラ制御部205は通信制御部の一例である。カメラ側第1通信部207は、カメラ本体20にて第1通信を行う為のものである。カメラ側第2通信部208は、カメラ本体20にて第2通信を行う為のものである。カメラ制御部205、カメラ側第1通信部207、カメラ側第2通信部208は例えばカメラ本体20内のCPUを用いて構成されている。   The camera control unit 205 is for controlling the camera body and has a memory (not shown). The camera control unit 205 is an example of a communication control unit. The camera-side first communication unit 207 is for performing first communication in the camera body 20. The camera-side second communication unit 208 is for performing the second communication in the camera body 20. The camera control unit 205, the camera-side first communication unit 207, and the camera-side second communication unit 208 are configured using a CPU in the camera body 20, for example.

映像表示部206は例えば液晶モニタであり、カメラ本体20が撮影した映像や、記録媒体211に記録された画像データ、GUIなどの表示に用いられる。このとき、映像表示部206は、交換レンズ10もしくは中間アクセサリ30、40のファームウェア更新をユーザが指示するためのメニュー表示にも用いられる。また、カメラ制御部205は、装着されている交換レンズ10や中間アクセサリ30、40がセーフモードであることを検知すると、ファームウェアの更新が必要であることをメッセージ表示などによってユーザに報知することができる。   The image display unit 206 is, for example, a liquid crystal monitor, and is used for displaying an image captured by the camera body 20, image data recorded on the recording medium 211, a GUI, and the like. At this time, the video display unit 206 is also used to display a menu for a user to instruct firmware update of the interchangeable lens 10 or the intermediate accessories 30 and 40. When the camera control unit 205 detects that the attached interchangeable lens 10 and the intermediate accessories 30 and 40 are in the safe mode, the camera control unit 205 can notify the user of the necessity of updating the firmware by displaying a message or the like. .

カメラ操作部材209は撮影条件を設定する為のものであり、例えばダイアルリングやスイッチである。カメラ操作部材209が操作されると、操作信号がカメラ制御部205へ出力される。   The camera operation member 209 is for setting photographing conditions, and is, for example, a dial ring or a switch. When the camera operation member 209 is operated, an operation signal is output to the camera control unit 205.

メディアIF210は、例えば着脱可能なメモリーカードである記録媒体211に対してデータの記録や読み出しを行うためのインターフェースである。   The media IF 210 is an interface for recording and reading data on a recording medium 211 which is, for example, a removable memory card.

記録媒体211は、カメラ本体20での撮影によって得られた画像データや音声データの記録先として用いられる。また、記録媒体211は、カメラ本体20、交換レンズ10、中間アクセサリ30、40のファームウェア更新時には新しいファームウェアの供給元としても用いられる。   The recording medium 211 is used as a recording destination of image data and audio data obtained by photographing with the camera body 20. The recording medium 211 is also used as a new firmware supply source when updating the firmware of the camera body 20, the interchangeable lens 10, and the intermediate accessories 30, 40.

中間アクセサリ30、40のそれぞれは、中間アクセサリ光学部材307、407と、第2通信を行う中間アクセサリ側第2通信部308、408と、中間アクセサリの制御を行う309、409を備える。また、更に、中間アクセサリ30、40のそれぞれは、中間アクセサリに設けられた操作部材である中間アクセサリ操作部材310、410を備える。各構成について説明をする。   Each of the intermediate accessories 30, 40 includes intermediate accessory optical members 307, 407, an intermediate accessory-side second communication unit 308, 408 for performing the second communication, and 309, 409 for controlling the intermediate accessory. Further, each of the intermediate accessories 30, 40 includes intermediate accessory operation members 310, 410, which are operation members provided on the intermediate accessory. Each configuration will be described.

本実施例の中間アクセサリ光学部材307及び407は一例として、撮影映像に対して光学特性の変化をもたらす光学部材であり、例えば変倍レンズやNDフィルタである。   The intermediate accessory optical members 307 and 407 of the present embodiment are, for example, optical members that change the optical characteristics of a captured image, such as a variable power lens and an ND filter.

中間アクセサリ側第2通信部308及び408は、中間アクセサリ30、中間アクセサリ40にて第2通信を行う為の通信部である。   The intermediate accessory side second communication units 308 and 408 are communication units for performing the second communication with the intermediate accessory 30 and the intermediate accessory 40.

中間アクセサリ制御部309、409は、それぞれ中間アクセサリ30、中間アクセサリ40を制御する為の制御部であり、不図示のメモリを有している。中間アクセサリ制御部309、409は、各々が通信制御部の一例である。中間アクセサリ制御部309、409、中間アクセサリ側第2通信部308及び408は、中間アクセサリのCPUを用いて構成されている。   The intermediate accessory control units 309 and 409 are control units for controlling the intermediate accessory 30 and the intermediate accessory 40, respectively, and have a memory (not shown). Each of the intermediate accessory control units 309 and 409 is an example of a communication control unit. The intermediate accessory control units 309 and 409 and the intermediate accessory side second communication units 308 and 408 are configured using a CPU of the intermediate accessory.

中間アクセサリ制御部309、409が有するメモリは、書き換え可能な不揮発メモリで構成され、CPUが実行する制御ソフトウェア(ファームウェア)、中間アクセサリ30、40に関する固有情報や状態情報を記憶する。固有情報は例えば機種名(識別情報)、光学特性、補正情報などである。また、状態情報は例えば動作状態(正常/セーフモード)、中間アクセサリ操作部材310、410の操作情報(位置や速度)、ファームウェアのバージョンや更新状態などである。ただし、これらに限定されない。また、メモリには、後述するセーフモードで中間アクセサリ30、40を動作させる際に実行するプログラムも記憶されている。   The memory of the intermediate accessory control units 309 and 409 is configured by a rewritable nonvolatile memory, and stores control software (firmware) executed by the CPU, and unique information and status information on the intermediate accessories 30 and 40. The unique information is, for example, a model name (identification information), optical characteristics, correction information, and the like. The state information includes, for example, an operation state (normal / safe mode), operation information (position and speed) of the intermediate accessory operation members 310 and 410, a firmware version and an update state, and the like. However, it is not limited to these. The memory also stores a program to be executed when operating the intermediate accessories 30 and 40 in a safe mode described later.

また、中間アクセサリ制御部309、409はCPUなどのプログラマブルプロセッサを有し、メモリからプログラムを読みだして実行することにより、後述する中間アクセサリ30、40の動作をはじめとした、各種の動作を実現する。例えば中間アクセサリ制御部309、409は、後述する第2通信でカメラ制御部205から受信した命令に応じた動作、例えば中間アクセサリ操作部材310、410の操作情報の送信、メモリに記憶されたファームウェアの更新を実行する。   Further, the intermediate accessory control units 309 and 409 have a programmable processor such as a CPU, and realize various operations including an operation of the intermediate accessories 30 and 40 described later by reading a program from a memory and executing the program. I do. For example, the intermediate accessory control units 309 and 409 operate in accordance with a command received from the camera control unit 205 in the second communication described below, for example, transmission of operation information of the intermediate accessory operation members 310 and 410, and firmware of the firmware stored in the memory. Perform an update.

中間アクセサリ制御部309、409は、メモリに記憶されている古いファームウェアを、例えばカメラ本体20から第1通信で受信した新しいファームウェアで上書きすることによってファームウェアを更新する。また、中間アクセサリ制御部309、409は、ファームウェアの更新処理の状態を表すデータ(更新状態データ)をメモリに記録することで、更新処理を管理する。例えば中間アクセサリ制御部309、409はファームウェアの上書きを行う前に、更新状態データを「未完了」を示す値にし、ファームウェアの上書きが完了すると更新状態データを「完了」を示す値にする。なお、「完了」を示す値は「正常完了」を示す値と「異常完了」を示す値とで異なっていてもよい。また「異常完了」を示す値は、異常の原因に応じて異なる値であってよい。   The intermediate accessory control units 309 and 409 update the firmware by overwriting the old firmware stored in the memory with, for example, the new firmware received from the camera body 20 in the first communication. Further, the intermediate accessory control units 309 and 409 manage the update process by recording data (update status data) indicating the status of the firmware update process in the memory. For example, the intermediate accessory control units 309 and 409 set the update state data to a value indicating “incomplete” before overwriting the firmware, and set the update state data to a value indicating “completed” when the firmware overwrite is completed. Note that the value indicating “completed” may be different between the value indicating “normal completion” and the value indicating “abnormal completion”. The value indicating “abnormal completion” may be a different value depending on the cause of the abnormality.

例えば、ファームウェアの更新中に中間アクセサリ30、40が外された場合、中間アクセサリ30、40への電源供給が絶たれるため、更新状態データが「未完了」を示す値のまま更新処理が中断される。例えば中間アクセサリ制御部309、409は、電源が再び供給された際に更新状態データを確認し、未完了状態を示す値であった場合には、動作が制限されたモード(セーフモード)に移行する。また、メモリが記憶している中間アクセサリ30、40の動作状態を、セーフモードに書き換える。   For example, if the intermediate accessories 30 and 40 are removed during the firmware update, the power supply to the intermediate accessories 30 and 40 is cut off, so that the update process is interrupted with the update status data indicating a value indicating “incomplete”. You. For example, the intermediate accessory control units 309 and 409 check the update state data when the power is supplied again, and when the value indicates the incomplete state, shift to the mode in which the operation is restricted (safe mode). . Further, the operation state of the intermediate accessories 30 and 40 stored in the memory is rewritten to the safe mode.

セーフモードでは、ファームウェアの更新を行うために必要な処理を含む、制限された機能だけが実行可能である。ファームウェアの更新を行うために必要な処理とは、具体的には、中間アクセサリ30、40の識別情報とセーフモードであることを示す情報(あるいはファームウェア更新の要求)などの認証情報をカメラ本体20に送信する処理である。また、カメラ本体20から受信したファームウェアでメモリに記録されているファームウェアを更新する処理もファームウェアの更新を行うために必要な処理である。それ以外の処理、例えば中間アクセサリ操作部材310、410の操作情報の送信などは行えない。   In the safe mode, only limited functions including the processing required for updating the firmware can be executed. The processing required for updating the firmware is, specifically, the authentication information such as the identification information of the intermediate accessories 30 and 40 and the information indicating the safe mode (or a request for the firmware update) to the camera body 20. This is the transmission process. Further, the process of updating the firmware recorded in the memory with the firmware received from the camera body 20 is also a process necessary for updating the firmware. Other processes, such as transmission of operation information of the intermediate accessory operation members 310 and 410, cannot be performed.

通常、メモリの容量はファームウェア全体を二重化して記憶できるほど大きくない。そのため、セーフモード用のプログラム記憶に利用できる容量は制限される。したがってセーフモードでは、中間アクセサリ30、40の動作状態の送信やファームウェアの更新といった必要最低限の機能を含む、限られた機能だけが提供される。中間アクセサリ制御部309、409はセーフモード中に第2通信で、セーフモードでは実行できない処理の要求、例えば中間アクセサリ操作部材310、410の操作情報の送信受信した場合、要求を無視する。   Usually, the capacity of the memory is not large enough to store the entire firmware in duplicate. Therefore, the capacity available for storing the program for the safe mode is limited. Therefore, in the safe mode, only limited functions are provided, including minimum necessary functions such as transmission of the operation status of the intermediate accessories 30 and 40 and update of firmware. The intermediate accessory control units 309 and 409 ignore the request in the second communication during the safe mode when a request for a process that cannot be executed in the safe mode, for example, when transmission and reception of operation information of the intermediate accessory operation members 310 and 410 is received.

中間アクセサリ操作部材310、410は、それぞれ中間アクセサリ30、中間アクセサリ40に備え付けられた操作部材であり、例えばスイッチ又は電子リングである。中間アクセサリ操作部材310、410が操作されると、操作信号が中間アクセサリ制御部309、409へ出力される。   The intermediate accessory operation members 310 and 410 are operation members provided on the intermediate accessory 30 and the intermediate accessory 40, respectively, and are, for example, switches or electronic rings. When the intermediate accessory operation members 310 and 410 are operated, an operation signal is output to the intermediate accessory control units 309 and 409.

第2通信接続スイッチ311、第2通信接続スイッチ411は、それぞれ中間アクセサリ30、中間アクセサリ40の第2通信線上、かつ、中間アクセサリ側第2通信部よりレンズ側に備え付けられたスイッチである。第2通信接続スイッチ311、第2通信接続スイッチ411は、それぞれ中間アクセサリ制御部309および中間アクセサリ制御部409により短絡・開放を制御できる。これらを設けることにより、自身よりレンズ側の第2通信を遮断することが可能となる。つまり、これらのスイッチの短絡・解放を制御することで、第2通信の通信状態を変更することが可能である。   The second communication connection switch 311 and the second communication connection switch 411 are switches provided on the second communication line of the intermediate accessory 30 and the intermediate accessory 40, respectively, and on the lens side of the intermediate accessory side second communication unit. The second communication connection switch 311 and the second communication connection switch 411 can control short-circuiting / opening by the intermediate accessory control unit 309 and the intermediate accessory control unit 409, respectively. By providing these, the second communication on the lens side from itself can be cut off. That is, by controlling the short-circuit / release of these switches, the communication state of the second communication can be changed.

実施例1において、交換レンズ10に入射した光が、映像として出力されるまでの流れは以下の通りである。   In the first embodiment, the flow until the light incident on the interchangeable lens 10 is output as an image is as follows.

交換レンズ10に入射した光は、フォーカスレンズ104、ズームレンズ105、アイリス106、ぶれ補正レンズ107、中間アクセサリ光学部材407、307を通り撮像素子204で結像し、電気信号に変換される。撮像素子204から出力された電気信号は、カメラ制御部205にて映像信号に変化され、映像表示部206に出力される。   The light that has entered the interchangeable lens 10 passes through the focus lens 104, the zoom lens 105, the iris 106, the shake correction lens 107, the intermediate accessory optical members 407 and 307, forms an image on the image sensor 204, and is converted into an electric signal. The electric signal output from the imaging element 204 is converted into a video signal by the camera control unit 205 and output to the video display unit 206.

<第1通信(図2)>
次に、第1通信について図2を用いて説明する。
<First communication (FIG. 2)>
Next, the first communication will be described with reference to FIG.

図2の(A)は、第1通信を行う構成を示している。本実施例の第1通信はクロック同期通信を行う場合を例示するが、調歩同期式通信を行っても良い。調歩同期式通信については変形例として後述する。第1通信接点群102、403、405、303、305、202にはそれぞれ、カメラ側第1通信部207から出力されるクロックラインLCLKの端子である第1通信LCLK端子102a、403a、405a、303a、305a、202aが含まれている。本実施例ではまた、同様にクロック同期通信のカメラ側第1通信部207から出力されるデータラインDCLの端子である第1通信DCL端子102b、403b、405b、303b、305b、202bが含まれている。なお、第1通信DCL端子102b、403b、405b、303b、305b、202bの各々が、第1の通信端子の一例である。また、同様にクロック同期通信のレンズ側第1通信部114から出力されるデータラインDLCの端子である第1通信DLC端子102c、403c、405c、303c、305c、202cが含まれている。なお、第1通信DLC端子102c、403c、405c、303c、305c、202cの各々が、第3の通信端子の一例である。   FIG. 2A shows a configuration for performing the first communication. The first communication according to the present embodiment exemplifies a case in which clock synchronous communication is performed, but asynchronous communication may be performed. Asynchronous communication will be described later as a modification. The first communication contact groups 102, 403, 405, 303, 305, and 202 respectively have first communication LCLK terminals 102a, 403a, 405a, and 303a that are terminals of the clock line LCLK output from the camera-side first communication unit 207. , 305a, and 202a. The present embodiment also includes first communication DCL terminals 102b, 403b, 405b, 303b, 305b, and 202b, which are terminals of a data line DCL similarly output from the camera-side first communication unit 207 for clock synchronous communication. I have. Each of the first communication DCL terminals 102b, 403b, 405b, 303b, 305b, and 202b is an example of a first communication terminal. Similarly, first communication DLC terminals 102c, 403c, 405c, 303c, 305c, and 202c, which are terminals of a data line DLC output from the lens-side first communication unit 114 for clock synchronous communication, are included. Each of the first communication DLC terminals 102c, 403c, 405c, 303c, 305c, and 202c is an example of a third communication terminal.

図2の(A)が示す通り、クロックラインLCLK、データラインDCLは、交換レンズ10内でプルアップされている。またクロックラインLCLK、データラインDLCは、カメラ本体20内でプルアップされている。   As shown in FIG. 2A, the clock line LCLK and the data line DCL are pulled up in the interchangeable lens 10. The clock line LCLK and the data line DLC are pulled up in the camera body 20.

中間アクセサリ30、中間アクセサリ40内のクロックラインLCLK、データラインDCL、データラインDLCはそれぞれ第1通信接点403と405および303と305の間で短絡されている。   The clock line LCLK, the data line DCL, and the data line DLC in the intermediate accessory 30 and the intermediate accessory 40 are short-circuited between the first communication contacts 403 and 405 and between the first communication contacts 303 and 305, respectively.

図2の(B)は、第1通信が行われている時のクロックラインLCLK、データラインDCL、データラインDLCの波形を示している。カメラ側第1通信部207は、クロックラインLCLKにクロックを出力すると共に、クロックラインLCLKの立ち上がり信号に合わせてデータラインDCLにB7〜B0の8ビットのデータを出力する。同様にレンズ側第1通信部114は、クロックラインLCLKの立ち上がり信号に合わせてデータラインDLCにB7〜B0の8ビットのデータを出力する。更にカメラ側第1通信部207はクロックラインLCLKの立ち上がり信号に合わせてデータラインDLCのB7〜B0の8ビットのデータを受信する。同様にレンズ側第1通信部114はクロックラインLCLKの立ち上がり信号に合わせてデータラインDCLのB7〜B0の8ビットのデータを受信する。以上によりカメラ側第1通信部207およびレンズ側第1通信部114が通信データをお互いに交換する事が出来る。レンズ側第1通信部114は、データラインDCLのB7〜B0の8ビットのデータを受信すると、クロックラインLCLKをTbusyの時間LOW出力し、その後LOW出力を解除する。ここでTbusy時間は交換レンズ10が受信データを処理している時間であり、カメラ側第1通信部207はデータ送信後にクロックラインLCLKがLOWからHIGHに変化するまでデータ送信を行わない構成となっている。この信号制御により、第1通信のフロー制御を行う事ができる。以上の処理を繰り返す事で、第1通信によりカメラ側第1通信部207とレンズ側第1通信部114の間でデータの伝達を行う事が出来る。   FIG. 2B shows waveforms of the clock line LCLK, the data line DCL, and the data line DLC during the first communication. The camera-side first communication unit 207 outputs a clock to the clock line LCLK and outputs 8-bit data of B7 to B0 to the data line DCL in accordance with a rising signal of the clock line LCLK. Similarly, the lens-side first communication unit 114 outputs 8-bit data of B7 to B0 to the data line DLC in accordance with the rising signal of the clock line LCLK. Further, the camera-side first communication unit 207 receives 8-bit data of B7 to B0 of the data line DLC in accordance with the rising signal of the clock line LCLK. Similarly, the lens-side first communication unit 114 receives 8-bit data of B7 to B0 of the data line DCL in accordance with the rising signal of the clock line LCLK. As described above, the camera-side first communication unit 207 and the lens-side first communication unit 114 can exchange communication data with each other. Upon receiving the 8-bit data of B7 to B0 of the data line DCL, the lens-side first communication unit 114 outputs the clock line LCLK LOW for a period of Tbusy, and thereafter releases the LOW output. Here, the Tbusy time is a time during which the interchangeable lens 10 processes received data, and the camera-side first communication unit 207 does not perform data transmission until the clock line LCLK changes from LOW to HIGH after data transmission. ing. By this signal control, the flow control of the first communication can be performed. By repeating the above processing, data can be transmitted between the camera-side first communication unit 207 and the lens-side first communication unit 114 by the first communication.

<第2通信(図11)>
次に、図11の構成図を参照して、カメラ本体20と交換レンズ10と中間アクセサリ30と中間アクセサリ40との間に構成される「1対多」の通信が可能な通信回路の1つについて説明する。なお、通信回路は「1対多」の通信が可能であればこの限りではない。さらに、複数の通信回路を持つ場合は、他の通信回路についてはクロック同期式のシリアル通信やUART通信のような「1対1」の通信でも構わない。
<Second communication (FIG. 11)>
Next, referring to the configuration diagram of FIG. 11, one of communication circuits capable of performing “one-to-many” communication formed between the camera body 20, the interchangeable lens 10, the intermediate accessory 30, and the intermediate accessory 40 Will be described. Note that the communication circuit is not limited to this as long as one-to-many communication is possible. Further, when a plurality of communication circuits are provided, the other communication circuits may be one-to-one communication such as clock-synchronized serial communication or UART communication.

カメラ側第2通信部208、レンズ側第2通信部115、中間アクセサリ第2通信部308、408は、第1通信と同様に接点部を介して接続される。より具体的には、前述の第2通信接点群第2通信接点群103、404、406、304、306、203を介して接続される。本実施例において、第2通信接点群103、404、406、304、306、203は各々CS信号端子103a、404a、406a、304a、306a、203aとDATA信号端子103b、404b、406b、304b、306b、203bを有する。カメラ側第2通信部208、レンズ側第2通信部115、中間アクセサリ第2通信部308は、CS信号端子を介して接続されたCS信号線、DATA信号端子を介して接続されたDATA信号線を用いて通信を行う。   The camera-side second communication unit 208, the lens-side second communication unit 115, and the intermediate accessory second communication units 308 and 408 are connected via the contact unit similarly to the first communication. More specifically, they are connected via the above-mentioned second communication contact group 103, 404, 406, 304, 306, 203. In the present embodiment, the second communication contact groups 103, 404, 406, 304, 306, 203 are respectively CS signal terminals 103a, 404a, 406a, 304a, 306a, 203a and DATA signal terminals 103b, 404b, 406b, 304b, 306b. , 203b. The camera-side second communication unit 208, the lens-side second communication unit 115, and the intermediate accessory second communication unit 308 are a CS signal line connected via a CS signal terminal and a DATA signal line connected via a DATA signal terminal. Communication is performed using.

なお、第2通信接点群103、404、406、304、306、203が各々有するDATA信号端子は、第2の通信端子の一例である。   Note that the DATA signal terminals of the second communication contact groups 103, 404, 406, 304, 306, and 203 are examples of the second communication terminals.

カメラ通信回路は接地スイッチ221と入出力切り換えスイッチ222によって構成されている。レンズ通信回路は接地スイッチ121と入出力切り換えスイッチ122によって構成されている。中間アクセサリ通信回路は接地スイッチ321、421と入出力切り換えスイッチ322、422によって構成されている。   The camera communication circuit includes a ground switch 221 and an input / output switch 222. The lens communication circuit includes a ground switch 121 and an input / output switch 122. The intermediate accessory communication circuit includes ground switches 321 and 421 and input / output changeover switches 322 and 422.

信号線は、通信のフロー制御を行うための信号を伝搬するためのCS信号線(第1の信号線)と、送受信するデータを伝搬するためのDATA信号線(第2の信号線)の2本で構成される。   The signal lines include a CS signal line (first signal line) for transmitting a signal for performing communication flow control and a DATA signal line (second signal line) for transmitting data to be transmitted and received. It is composed of books.

CS信号線はカメラ側第2通信部208と中間アクセサリ第2通信部308、およびレンズ側第2通信部115に接続されており、信号線の状態(Hi/Low)を検出可能な構成としている。またCS信号線はカメラ本体内で不図示の電源にプルアップ接続されている。CS信号線は交換レンズ10の接地スイッチ121、カメラ本体20の接地スイッチ221、中間アダプタの接地スイッチ321、421を介してGNDと接続可能な構成としている(オープンドレイン接続)。この構成により、交換レンズ10、カメラ本体20、中間アクセサリ30、40はそれぞれ接地スイッチをオン(接続)することによりCS信号線の状態をLowにすることが可能である。一方、交換レンズ10、カメラ本体20、中間アクセサリ30、40の全てが各々の接続スイッチをオフ(遮断)することで、CS信号線の状態をHiとすることができる。CS信号線は、ブロードキャスト通信とP2P通信を区別するため、もしくはP2P通信における通信方向の切り替えなどに用いられる。   The CS signal line is connected to the camera-side second communication unit 208, the intermediate accessory second communication unit 308, and the lens-side second communication unit 115, and has a configuration capable of detecting the state (Hi / Low) of the signal line. . The CS signal line is connected to a power source (not shown) in the camera body by pull-up. The CS signal line is configured to be connectable to GND via the ground switch 121 of the interchangeable lens 10, the ground switch 221 of the camera body 20, and the ground switches 321 and 421 of the intermediate adapter (open drain connection). With this configuration, the state of the CS signal line of the interchangeable lens 10, the camera body 20, and the intermediate accessories 30 and 40 can be set to Low by turning on (connecting) the ground switches. On the other hand, when the interchangeable lens 10, the camera body 20, and the intermediate accessories 30, 40 all turn off (cut off) their connection switches, the state of the CS signal line can be set to Hi. The CS signal line is used to distinguish between broadcast communication and P2P communication, or to switch communication directions in P2P communication.

DATA信号線は、データの伝搬方向を切り換えながら使用可能な単線の双方向データ送信線である。DATA信号線は、交換レンズ10の入出力切り換えスイッチ122を介してレンズ側第2通信部115と接続可能である。また、DATA信号線は、カメラ本体20の入出力切り換えスイッチ222を介してカメラ側第2通信部208と接続可能である。また、DATA信号線は、中間アクセサリ30、40の入出力切り換えスイッチ322、422を介して中間アクセサリ第2通信部308、408とそれぞれ接続可能である。それぞれのマイコンにはデータを送信するためのデータ出力部(CMOS方式)とデータを受信するためのデータ入力部(CMOS方式)が備えられている。入出力切り換えスイッチを操作することでDATA信号線をデータ出力部に接続するかデータ入力部に接続するかを選択することができる。この構成により、交換レンズ10、カメラ本体20、中間アクセサリ30、40は自分がデータを送信する場合にはDATA信号線をデータ出力部と接続するように各々入出力切り換えスイッチを操作することでデータ送信が可能となる。一方、交換レンズ10、カメラ本体20、中間アクセサリ30、40は自分がデータを受信する場合にはDATA信号線をデータ入力部と接続するように各々入出力切り換えスイッチを操作することでデータ受信が可能となる。   The DATA signal line is a single bidirectional data transmission line that can be used while switching the data propagation direction. The DATA signal line can be connected to the lens side second communication unit 115 via the input / output switch 122 of the interchangeable lens 10. Further, the DATA signal line can be connected to the camera-side second communication unit 208 via the input / output switch 222 of the camera body 20. Further, the DATA signal line can be connected to the intermediate accessory second communication units 308 and 408 via the input / output changeover switches 322 and 422 of the intermediate accessories 30 and 40, respectively. Each microcomputer is provided with a data output unit (CMOS system) for transmitting data and a data input unit (CMOS system) for receiving data. By operating the input / output switch, it is possible to select whether to connect the DATA signal line to the data output unit or to the data input unit. With this configuration, when transmitting the data, the interchangeable lens 10, the camera body 20, and the intermediate accessories 30, 40 operate the input / output changeover switches so that the DATA signal line is connected to the data output unit. Transmission becomes possible. On the other hand, when receiving the data, the interchangeable lens 10, the camera body 20, and the intermediate accessories 30, 40 operate the respective input / output changeover switches so as to connect the DATA signal line to the data input unit. It becomes possible.

ここで、CS信号とデータ信号により行われるブロードキャスト通信とP2P通信について述べる。   Here, broadcast communication and P2P communication performed by the CS signal and the data signal will be described.

CS信号線はいずれかのユニットがGNDに接続するとLOWに落ちるので、ブロードキャスト通信のきっかけとして使用される。   The CS signal line falls to LOW when any unit connects to GND, and is used as a trigger for broadcast communication.

通信の主体であるカメラ本体がCS信号線をLOWに引くことでブロードキャスト通信が開始される。CS信号線がLOWの時にDATA線によりアクセサリが受信したデータは、ブロードキャストされたデータであると判断する。   Broadcast communication is started when the camera body, which is the main body of communication, pulls the CS signal line LOW. The data received by the accessory via the DATA line when the CS signal line is LOW is determined to be broadcast data.

また、各アクセサリがCS信号線をLOWに引くことでカメラ本体にブロードキャスト通信をリクエストすることができる。   Also, each accessory can request broadcast communication from the camera body by pulling the CS signal line LOW.

CS信号線のLOWを検知したユニットは、ブロードキャストの処理中は自身の接地スイッチを入れておくことで、ブロードキャスト通信に対する処理が継続していることを他のユニットに周知することが可能である。第2通信はブロードキャスト通信で始まり、ブロードキャスト通信で終わると規定することで、アクセサリのDATA信号線は基本的に受信状態を維持しておけばよい。カメラがアクセサリとP2P通信を行う場合には、まずブロードキャスト通信により通信対象のアクセサリを指定する。ブロードキャスト通信の送信を完了したカメラと指定されたアクセサリはP2P通信を行う。   The unit that has detected the LOW of the CS signal line can turn on its own grounding switch during the broadcast processing to notify other units that the processing for the broadcast communication is continuing. By defining that the second communication starts with the broadcast communication and ends with the broadcast communication, the DATA signal line of the accessory may basically maintain the receiving state. When the camera performs P2P communication with an accessory, first, an accessory to be communicated is designated by broadcast communication. The camera that has completed the transmission of the broadcast communication and the designated accessory perform the P2P communication.

P2P通信では、まずカメラがデータを送信し、それを受けたアクセサリがカメラへデータを送信する。以後、これが交互に行われる。P2P通信においては、通信中のCS信号はHIGHを維持することでブロードキャスト通信と区別される。P2P通信におけるCS信号はビジー信号として使用される。すなわち、カメラ及びアクセサリが相手に自身からのデータ送信が終了した旨を通知するためにLOWにし、データ受信の準備が整ったことを通知するためにHIGHにする。   In P2P communication, first, a camera transmits data, and an accessory receiving the data transmits the data to the camera. Thereafter, this is performed alternately. In P2P communication, a CS signal during communication is kept at HIGH to be distinguished from broadcast communication. The CS signal in P2P communication is used as a busy signal. That is, the camera and the accessory make LOW to notify the other party that the data transmission from themselves has ended, and make HIGH to notify that the preparation for data reception is completed.

P2P通信が終了したら、カメラがP2P通信の終了をブロードキャスト通信する。   When the P2P communication ends, the camera broadcasts the end of the P2P communication.

このようにして、カメラは複数のアクセサリと2本の通信ラインを介してデータ通信を行える。   In this way, the camera can perform data communication with a plurality of accessories via two communication lines.

なお、図1112では本発明における通信回路の一例について示したが、本発明はこれに限定されない。例えば、CS信号線をカメラ本体20内でGNDにプルダウン接続し、交換レンズ10の接地スイッチ121、カメラ本体20の接地スイッチ221、中間アクセサリ30、40の接地スイッチ321、421を介して不図示の電源と接続可能な構成としても良い。またDATA信号線は常に各々のデータ入力部に接続される構成とし、DATA信号線と各々のデータ出力部との接続/遮断をスイッチにより操作可能な構成としても良い。   Note that although FIG. 1112 illustrates an example of a communication circuit in the present invention, the present invention is not limited to this. For example, the CS signal line is connected to GND in the camera body 20 by pull-down connection, and is connected to the ground switch 121 of the interchangeable lens 10, the ground switch 221 of the camera body 20, and the ground switches 321 and 421 of the intermediate accessories 30 and 40 (not shown). It may be configured to be connectable to a power supply. Further, the DATA signal line may be always connected to each data input unit, and the connection / disconnection between the DATA signal line and each data output unit may be operated by a switch.

第2通信は、第1通信と同じ通信方式や、双方向の調歩同期通信、マスタ・スレーブ方式やトークンパッシング方式等で実現可能である。   The second communication can be realized by the same communication method as the first communication, bidirectional asynchronous communication, master / slave method, token passing method, or the like.

<アクセサリとの初期通信及び補正された光学情報の取得処理(図3)>
次に、カメラ本体20がアクセサリとの初期通信によりアクセサリの認証情報を取得し、さらに中間アクセサリ30および中間アクセサリ40の光学情報に基づいて補正された交換レンズ10の光学情報を取得する流れについて図3を用いて説明する。なお、中間アクセサリの光学情報とは、例えば中間アクセサリが変倍レンズを有する場合には、当該中間アクセサリの挿入により変化する倍率である。また、交換レンズ10の光学情報とは、例えば焦点距離、絞り、フォーカス敏感度、ピント補正量等の情報である。
<Initial communication with accessory and acquisition of corrected optical information (FIG. 3)>
Next, a flow in which the camera body 20 acquires the authentication information of the accessory by initial communication with the accessory, and further acquires the optical information of the interchangeable lens 10 corrected based on the optical information of the intermediate accessory 30 and the intermediate accessory 40 is shown. 3 will be described. The optical information of the intermediate accessory is, for example, a magnification that changes when the intermediate accessory is inserted when the intermediate accessory has a variable power lens. The optical information of the interchangeable lens 10 is, for example, information such as a focal length, an aperture, a focus sensitivity, and a focus correction amount.

図3は、中間アクセサリおよび交換レンズを装着して初めて電源を供給した後に、カメラ本体20が中間アクセサリ30および中間アクセサリ40の光学情報に基づいて補正された交換レンズ10の光学情報を取得する処理の流れを示している。   FIG. 3 shows a process in which the camera body 20 acquires the optical information of the interchangeable lens 10 corrected based on the optical information of the intermediate accessory 30 and the intermediate accessory 40 after the power is supplied for the first time after the intermediate accessory and the interchangeable lens are mounted. It shows the flow.

S301にてカメラ本体20が起動すると、S302に遷移する。   When the camera body 20 is activated in S301, the process proceeds to S302.

S302に遷移すると、カメラ本体20は、不図示の電源供給用マウント接点を介して、交換レンズ10、中間アクセサリ30、中間アクセサリ40に電源を供給し、S303およびS304に遷移する。   In step S302, the camera body 20 supplies power to the interchangeable lens 10, the intermediate accessory 30, and the intermediate accessory 40 via a power supply mounting contact (not shown), and the process proceeds to steps S303 and S304.

S303に遷移すると、カメラ制御部205は、第1通信にて交換レンズ10と初期通信を行う。当該初期通信では、交換レンズ10の認証情報を取得する。   In step S303, the camera control unit 205 performs initial communication with the interchangeable lens 10 in the first communication. In the initial communication, the authentication information of the interchangeable lens 10 is obtained.

ここで交換レンズ10の認証情報には、交換レンズ10の識別情報と動作状態情報が含まれている。交換レンズ識別情報は、交換レンズの種類(機種)の識別に用いられる機種ナンバー(ID)等の情報であってもよいし、交換レンズ固有の光学データを示す光学データ識別情報であってもよい。また、交換レンズが有する機能を示す情報や同一機種の中での個体を識別可能な製造ナンバー(シリアルナンバー)等の情報を含んでいてもよい。   Here, the authentication information of the interchangeable lens 10 includes the identification information of the interchangeable lens 10 and the operation state information. The interchangeable lens identification information may be information such as a model number (ID) used to identify the type (model) of the interchangeable lens, or may be optical data identification information indicating optical data unique to the interchangeable lens. . Further, the information may include information indicating a function of the interchangeable lens or information such as a manufacturing number (serial number) capable of identifying an individual in the same model.

動作状態情報は、交換レンズ10が正常に動作しているかセーフモードで動作しているかが識別できる情報であり、言い換えると、ファームウェアの更新が中断された状態である(セーフモードで動作)か、否か(正常動作)が識別できる情報である。   The operating state information is information that can identify whether the interchangeable lens 10 is operating normally or is operating in the safe mode. In other words, the operating state information is a state in which the update of the firmware is interrupted (operating in the safe mode) or not. (Normal operation) is information that can be identified.

第1通信にて交換レンズ10の認証情報を取得するサブプロセスS303の流れについては図4を用いて後述する。   The flow of the sub-process S303 for acquiring the authentication information of the interchangeable lens 10 in the first communication will be described later with reference to FIG.

S304に遷移すると、カメラ制御部205は、第2通信にてアクセサリと初期通信を行い、アクセサリの認証情報を取得する。   In step S304, the camera control unit 205 performs initial communication with the accessory through the second communication, and acquires authentication information of the accessory.

ここで、アクセサリの認証情報には、アクセサリの識別情報と補正処理要否情報と動作状態情報が含まれている。   Here, the accessory authentication information includes accessory identification information, correction processing necessity information, and operation state information.

中間アクセサリ識別情報は、中間アクセサリの種類(機種)の識別に用いられる機種ナンバー(ID)等の情報であってもよいし、中間アクセサリ固有の光学データを示す光学データ識別情報であってもよい。また、中間アクセサリが有する機能を示す情報や同一機種の中での個体を識別可能な製造ナンバー(シリアルナンバー)等の情報を含んでいてもよい。   The intermediate accessory identification information may be information such as a model number (ID) used for identifying the type (model) of the intermediate accessory, or may be optical data identification information indicating optical data unique to the intermediate accessory. . Further, the information may include information indicating a function of the intermediate accessory or information such as a manufacturing number (serial number) capable of identifying an individual in the same model.

また、補正処理要否情報とは、当該アクセサリの装着により、交換レンズ10の光学情報の補正が必要となるか否かを示す情報である。アクセサリが中間アクセサリの場合であって、交換レンズ10の光学系に影響を与えないものである場合は、補正処理は不要である。中間アクセサリ補正処理要否情報によりカメラ制御部205が該中間アクセサリの装着による補正処理が不要であることを事前に知れば、交換レンズ10の光学情報の取得処理において、カメラは該中間アクセサリを無視することができる。   The correction processing necessity information is information indicating whether the optical information of the interchangeable lens 10 needs to be corrected by mounting the accessory. If the accessory is an intermediate accessory and does not affect the optical system of the interchangeable lens 10, the correction process is not required. If the camera control unit 205 knows in advance from the intermediate accessory correction processing necessity information that the correction process by mounting the intermediate accessory is unnecessary, the camera ignores the intermediate accessory in the process of acquiring the optical information of the interchangeable lens 10. can do.

補正処理が不要な中間アクセサリとしては、例えば、自身の幅による光学系への影響を打ち消すように光学設計された光学部材を備え、操作部材を増設する目的で装着される中間アクセサリがある。また、フランジバックの短いマウントの交換レンズとカメラ本体との間に装着することでカメラ本体に適したフランジバック長に変化させるマウントコンバータなども挙げられる。   As an intermediate accessory that does not require correction processing, for example, there is an intermediate accessory that has an optical member optically designed to cancel the influence of its own width on the optical system and is attached for the purpose of increasing the number of operation members. Also, there is a mount converter that changes the flange back length suitable for the camera body by being mounted between the camera body and the interchangeable lens having a short flange back mount.

動作状態情報は、中間アクセサリ30、40が正常に動作しているかセーフモードで動作しているかが識別できる情報であり、言い換えると、ファームウェアの更新が中断された状態である(セーフモードで動作)か、否か(正常動作)が識別できる情報である。   The operating state information is information that can identify whether the intermediate accessories 30 and 40 are operating normally or operating in the safe mode. In other words, the operating state information is a state in which the firmware update is interrupted (operating in the safe mode), It is information that can be identified whether or not (normal operation).

第2通信にて中間アクセサリの認証情報を取得するサブプロセスS304の流れについては図5を用いて後述する。S303およびS304は、別の通信経路を使用するため、処理を並行して行ってもよいし、順次行ってもよい。   The flow of the sub-process S304 of acquiring the authentication information of the intermediate accessory by the second communication will be described later with reference to FIG. Since steps S303 and S304 use different communication paths, the processing may be performed in parallel or sequentially.

S303およびS304により交換レンズの認証情報、装着されているアクセサリの認証情報を取得すると、S305に遷移する。   When the authentication information of the interchangeable lens and the authentication information of the attached accessory are acquired in S303 and S304, the process proceeds to S305.

S305に遷移すると、カメラ制御部205は、S304にて取得した補正処理要否情報を元に、交換レンズの光学情報の補正が必要な中間アクセサリがあるかを判断する。補正処理要否情報が「要」の中間アクセサリ(補正に関わる中間アクセサリ、とも称する)が装着されていた場合には、S306に遷移する。   In step S305, the camera control unit 205 determines whether there is an intermediate accessory that needs to correct the optical information of the interchangeable lens based on the correction processing necessity information acquired in step S304. If an intermediate accessory whose correction processing necessity information is “necessary” (also referred to as an intermediate accessory related to correction) is attached, the process proceeds to S306.

S306に遷移すると、カメラ制御部205は、交換レンズおよびS305で補正処理要否情報が「要」であった中間アクセサリのうち、カメラ制御部205が光学情報を保有していないアクセサリがあるか否かを判断する。なお、交換レンズおよびS305で補正処理要否情報が「要」であった中間アクセサリを、補正に関わるアクセサリ、とも称する。カメラ制御部205は補正に関わるアクセサリのうち、カメラ制御部205が光学情報を保有していないアクセサリがある場合は、カメラ制御部205では交換レンズの光学情報の補正処理が行うことができない。この場合、補正処理の依頼先を探すため、S307に遷移する。   In step S306, the camera control unit 205 determines whether there is an accessory for which the camera control unit 205 does not have optical information among the interchangeable lenses and the intermediate accessories for which the correction processing necessity information is “necessary” in step S305. Judge. Note that the interchangeable lens and the intermediate accessory for which the correction processing necessity information is “necessary” in S305 are also referred to as accessories related to correction. If the camera control unit 205 does not have optical information among the accessories related to the correction, the camera control unit 205 cannot correct the optical information of the interchangeable lens. In this case, the process proceeds to S307 to search for a request destination of the correction process.

S307に遷移すると、カメラ制御部205は、補正に関わるアクセサリのうち、他の全アクセサリの光学情報を保持するアクセサリ(第1のアクセサリとも称する)を決定する。第1のアクセサリの決定方法としては、例えば、アクセサリから取得した識別情報により判断してもよいし、通信によってアクセサリに問い合わせてもよい。詳しくは図6を用いて後述する。   In step S307, the camera control unit 205 determines an accessory (also referred to as a first accessory) that holds optical information of all other accessories among the accessories related to the correction. As a method of determining the first accessory, for example, a determination may be made based on identification information acquired from the accessory, or an inquiry may be made to the accessory by communication. Details will be described later with reference to FIG.

S307により第1のアクセサリが確定すると、S308に遷移する。   When the first accessory is determined in S307, the process proceeds to S308.

S308に遷移すると、カメラ制御部205はS307により確定した第1のアクセサリに、その他の補正に関わるアクセサリの識別情報を送信するとともに、交換レンズ10の光学情報の補正処理を依頼する。本実施例では一例として、第1のアクセサリが交換レンズである場合には、第1通信にて通信を行う。第1のアクセサリが中間アクセサリである場合には、第2通信にて通信を行う。   In step S308, the camera control unit 205 transmits the identification information of the accessory related to other correction to the first accessory determined in step S307, and requests the first accessory to correct optical information of the interchangeable lens 10. In this embodiment, as an example, when the first accessory is an interchangeable lens, communication is performed by the first communication. When the first accessory is an intermediate accessory, communication is performed by the second communication.

S308により補正依頼を受けた第1のアクセサリの制御部は、保持しているその他の補正に関わるアクセサリの光学情報を用いて、交換レンズ10の光学情報の補正処理を行う。   The control unit of the first accessory that has received the correction request in S308 performs a correction process of the optical information of the interchangeable lens 10 using the stored optical information of the accessory related to other correction.

S309に遷移し、カメラ制御部205は、第1のアクセサリにより補正された光学情報を取得する。   In step S309, the camera control unit 205 acquires the optical information corrected by the first accessory.

一方、S306において、交換レンズおよびS305で補正処理要否情報が「要」であった中間アクセサリのうち、カメラ制御部205が光学情報を保有していないアクセサリがないとカメラ制御部205が判断した場合は、S310に遷移する。この場合、カメラ制御部205は全アクセサリの光学情報を保持している。   On the other hand, in step S306, the camera control unit 205 determines that the camera control unit 205 does not include any of the interchangeable lenses and the intermediate accessories for which the correction processing necessity information is “necessary” in step S305. In this case, the process proceeds to S310. In this case, the camera control unit 205 holds optical information of all accessories.

S310に遷移するとカメラ制御部205は自身が保持している交換レンズの光学情報および中間アクセサリの光学情報を用いて、カメラ制御部205が交換レンズの光学情報の補正を行う。   In step S310, the camera control unit 205 corrects the optical information of the interchangeable lens using the optical information of the interchangeable lens and the optical information of the intermediate accessory held by the camera control unit 205.

また、S305において、交換レンズの光学情報の補正が必要な中間アクセサリがないとカメラ制御部205が判断した場合には、中間アクセサリが装着されていない、または装着されている全中間アクセサリの補正処理要否情報が「否」である。したがって、交換レンズの光学情報を補正する必要はない場合の処理として、S311に遷移する。   In S305, if the camera control unit 205 determines that there is no intermediate accessory that requires correction of the optical information of the interchangeable lens, the correction processing of all the intermediate accessories that are not attached or that are attached. The necessity information is “no”. Therefore, the process proceeds to S311 as a process when it is not necessary to correct the optical information of the interchangeable lens.

S311に遷移すると、S303で取得した交換レンズ認証情報に含まれる交換レンズ10の識別情報により、カメラ本体20が交換レンズ10の光学情報を保持しているか否かを判断する。カメラ制御部205が交換レンズの光学情報を保持していない場合、S312に遷移する。   In step S311, it is determined whether or not the camera body 20 holds the optical information of the interchangeable lens 10 based on the identification information of the interchangeable lens 10 included in the interchangeable lens authentication information acquired in step S303. When the camera control unit 205 does not hold the optical information of the interchangeable lens, the process proceeds to S312.

S312に遷移すると、カメラ制御部205は第1通信にて交換レンズ10の光学情報をレンズ制御部113より取得する。   In step S312, the camera control unit 205 acquires the optical information of the interchangeable lens 10 from the lens control unit 113 through the first communication.

一方で、S311において交換レンズ10の光学情報を保持していると判断された場合は、カメラ制御部205はS313にてカメラ内のデータテーブルより光学情報を取得する。   On the other hand, if it is determined in S311 that the optical information of the interchangeable lens 10 is held, the camera control unit 205 acquires the optical information from the data table in the camera in S313.

S309、S310、S312、もしくはS313により光学情報を取得したのちにS314に遷移し、光学情報取得シーケンスは終了する。   After acquiring the optical information in S309, S310, S312, or S313, the process transits to S314, and the optical information acquisition sequence ends.

光学情報取得後は、第1の通信経路はカメラ本体20が交換レンズ10を制御するための通信に使われ、第2の通信経路はカメラ本体20が中間アクセサリ操作部材310、中間アクセサリ操作部材410の操作情報を定常的に取得するための通信に使われる。交換レンズの操作部材116の操作情報を定常的に取得するための通信は、各通信経路の占有率や通信および制御に必要とされる即時性を考慮して、第1の通信経路、第2の通信経路のいずれを用いてもよい。   After obtaining the optical information, the first communication path is used for communication for the camera body 20 to control the interchangeable lens 10, and the second communication path is used for the camera body 20 to operate the intermediate accessory operating member 310 and the intermediate accessory operating member 410. Is used for communication for constantly acquiring the operation information of. The communication for constantly acquiring the operation information of the operation member 116 of the interchangeable lens is performed in consideration of the occupancy of each communication path and the immediacy required for communication and control, by taking into consideration the first communication path and the second communication path. May be used.

<カメラと交換レンズの第1通信による初期通信処理(図4)>
図4は、実施例1のカメラシステムにおいて、カメラ本体20が交換レンズ10と行う初期通信であるサブプロセスS303の流れを示している。当該初期通信では、カメラ制御部205がレンズ制御部113から交換レンズ10の認証情報を取得する。
<Initial communication processing by first communication between camera and interchangeable lens (FIG. 4)>
FIG. 4 shows a flow of a sub-process S303 which is initial communication performed by the camera body 20 with the interchangeable lens 10 in the camera system of the first embodiment. In the initial communication, the camera control unit 205 acquires the authentication information of the interchangeable lens 10 from the lens control unit 113.

S401にてサブプロセスが開始されるとS402に遷移する。   When the sub process is started in S401, the process proceeds to S402.

S402に遷移すると、カメラ制御部205はレンズ制御部113に対して、第1通信にて交換レンズ認証情報送信要求(第1の送信要求に対応する)を送信する。   In step S402, the camera control unit 205 transmits an interchangeable lens authentication information transmission request (corresponding to the first transmission request) to the lens control unit 113 by the first communication.

ここで、本実施例の交換レンズ認証情報要求について、図910Aを用いて説明する。本実施例の交換レンズ認証情報要求は、交換レンズ10がカメラ制御部205に対して、認証情報である2つの情報を送信することを要求する情報である。認証情報要求には、交換レンズの識別情報要求と、動作状態情報要求とが含まれる。   Here, the interchangeable lens authentication information request according to the present embodiment will be described with reference to FIG. 910A. The interchangeable lens authentication information request according to the present embodiment is information that requests the interchangeable lens 10 to transmit two pieces of information, which are authentication information, to the camera control unit 205. The authentication information request includes a request for identification information of the interchangeable lens and a request for operation state information.

S403にて、レンズ制御部113が交換レンズ認証情報送信要求を受信するとS404に遷移する。そして、レンズ制御部113は第1通信にて交換レンズ認証情報(第1の情報に対応する)をカメラ制御部205に送信する。   In step S403, when the lens control unit 113 receives the interchangeable lens authentication information transmission request, the process proceeds to step S404. Then, the lens control unit 113 transmits the interchangeable lens authentication information (corresponding to the first information) to the camera control unit 205 by the first communication.

ここで、交換レンズ10がカメラ制御部205に送信する認証情報について、図910Bを用いて説明する。当該認証情報には、識別情報と、動作状態情報とが含まれる。   Here, the authentication information transmitted from the interchangeable lens 10 to the camera control unit 205 will be described with reference to FIG. 910B. The authentication information includes identification information and operation state information.

S405にてカメラ制御部205が交換レンズ認証情報を受信すると、S406に遷移し、受信した交換レンズ認証情報を記憶する。   When the camera control unit 205 receives the interchangeable lens authentication information in S405, the process proceeds to S406 and stores the received interchangeable lens authentication information.

S407を以て、サブプロセスS303は終了する。   With S407, the sub-process S303 ends.

<カメラと中間アクセサリの第2通信による初期通信処理(図5)>
図5は、実施例1のカメラシステムにおいて、カメラ本体20とアクセサリとが行う初期通信処理であるサブプロセスS304の流れを説明する図である。当該初期通信では、カメラ制御部205がアクセサリの認証情報を取得する。アクセサリの認証情報については後述する。
<Initial communication processing by the second communication between the camera and the intermediate accessory (FIG. 5)>
FIG. 5 is a diagram illustrating the flow of a sub-process S304, which is an initial communication process performed by the camera body 20 and the accessory in the camera system according to the first embodiment. In the initial communication, the camera control unit 205 acquires the authentication information of the accessory. The accessory authentication information will be described later.

S501にてサブプロセスが開始されるとS502に遷移する。   When the sub process is started in S501, the process proceeds to S502.

S502に遷移すると、カメラ制御部205は中間アクセサリ制御部309に対して、第2通信にてアクセサリの認証情報要求(第2の送信要求に対応する)を送信する。   In step S502, the camera control unit 205 transmits an accessory authentication information request (corresponding to the second transmission request) to the intermediate accessory control unit 309 by the second communication.

ここで、本実施例のアクセサリの認証情報要求について、図910Cを用いて説明する。アクセサリの認証情報要求は、アクセサリがカメラ制御部205に対して、アクセサリ認証情報を送信することを要求する情報である。本実施例で、アクセサリ認証情報には、アクセサリの識別情報と、動作状態情報と、補正処理要否情報と、終端情報とが含まれる。   Here, the authentication information request of the accessory according to the present embodiment will be described with reference to FIG. 910C. The accessory authentication information request is information requesting that the accessory transmit accessory authentication information to the camera control unit 205. In this embodiment, the accessory authentication information includes accessory identification information, operating state information, correction processing necessity information, and termination information.

S503にて中間アクセサリ制御部309がアクセサリ認証情報要求を受信すると、S506に遷移する。   When the intermediate accessory control unit 309 receives the accessory authentication information request in S503, the process proceeds to S506.

S506では、中間アクセサリ制御部309は、第2通信にて中間アクセサリ30の認証情報をカメラ制御部205に送信する。   In S506, the intermediate accessory control unit 309 transmits the authentication information of the intermediate accessory 30 to the camera control unit 205 by the second communication.

ここで、中間アクセサリがカメラ制御部205に送信する認証情報について、図910Dを用いて説明する。当該認証情報には、識別情報(第3の情報の一例である)と、動作状態情報と、補正処理要否情報と、終端情報とが含まれる。   Here, the authentication information transmitted from the intermediate accessory to the camera control unit 205 will be described with reference to FIG. 910D. The authentication information includes identification information (an example of third information), operating state information, correction processing necessity information, and termination information.

補正処理要否情報は、当該中間アクセサリが光学特性を変化させるものであれば、「要」を示す情報である。光学特性を変化させるものでなければ、「否」を示す情報である。   The correction processing necessity information is information indicating “necessary” if the intermediate accessory changes optical characteristics. If the optical characteristics are not changed, the information indicates "No".

本実施例で、終端情報とは、カメラ本体20からみて第2通信の終端であるか否かを示す情報である。当該中間アダプタがカメラ本体20からみて第2通信の終端であれば、終端情報は「終端である」ことを示す情報である。カメラ本体20からみて第2通信の終端でなければ、終端情報は「終端ではない」ことを示す情報である。   In the present embodiment, the terminating information is information indicating whether or not the second communication is a terminating point as viewed from the camera body 20. If the intermediate adapter is at the end of the second communication as viewed from the camera main body 20, the end information is information indicating "end". If it is not the end of the second communication as viewed from the camera body 20, the end information is information indicating "not the end".

第2通信のような一対多の通信においては、例えばアクセサリの識別情報を通信データの先頭に追加するなどして送信先を指定することができる。しかしながら、S502の段階ではカメラ制御部205はアクセサリの情報を一切有していないため、通信データによる送信先の指定ができない。   In the one-to-many communication such as the second communication, a transmission destination can be designated by, for example, adding identification information of an accessory to the head of communication data. However, at the stage of S502, since the camera control unit 205 does not have any accessory information, it is not possible to specify the transmission destination by the communication data.

そこで、本サブプロセスにおいてカメラ本体20が複数のアクセサリと順次通信していく手段の一例として、次のように第2通信接続スイッチ311と第2通信接続スイッチ411とを利用する方法が挙げられる。定常状態において第2通信接続スイッチ311及び第2通信接続スイッチ411は短絡しているとする。   Therefore, as an example of means for the camera body 20 to sequentially communicate with a plurality of accessories in this sub-process, there is a method using the second communication connection switch 311 and the second communication connection switch 411 as follows. It is assumed that the second communication connection switch 311 and the second communication connection switch 411 are short-circuited in the steady state.

S501においてカメラ制御部205が第2通信にて本サブプロセス開始情報を送信する。第2通信接続スイッチ311及び第2通信接続スイッチ411が短絡されているので、各アクセサリは本サブプロセス開始情報を受信する。本サブプロセス開始情報を受信した各中間アクセサリは、自身の第2通信接続スイッチを開放する。これにより、中間アクセサリ制御部309だけがカメラ制御部205と接続されている状態になり、カメラ制御部205が送信するデータを受信することができる。受信したデータに対する処理が終了した中間アクセサリ制御部309が第2通信接続スイッチ311を短絡することで、中間アクセサリ制御部409はカメラ制御部205が送信するデータを受信することができる。第2通信接続スイッチを短絡した中間アクセサリ30は、本サブプロセスが終了するS522においてカメラ制御部205が送信する本サブプロセス終了情報を受信するまで、カメラ制御部205の送信情報に応答しない。   In step S501, the camera control unit 205 transmits the sub-process start information through the second communication. Since the second communication connection switch 311 and the second communication connection switch 411 are short-circuited, each accessory receives the sub-process start information. Each intermediate accessory that has received this sub-process start information opens its own second communication connection switch. Thus, only the intermediate accessory control unit 309 is connected to the camera control unit 205, and can receive data transmitted by the camera control unit 205. When the intermediate accessory control unit 309 that has completed the processing for the received data short-circuits the second communication connection switch 311, the intermediate accessory control unit 409 can receive the data transmitted by the camera control unit 205. The intermediate accessory 30 that has short-circuited the second communication connection switch does not respond to the transmission information of the camera control unit 205 until receiving the sub-process end information transmitted by the camera control unit 205 in S522 where the sub-process ends.

尚、本実施例では、中間アクセサリ30がセーフモードで動作している場合であっても、カメラ本体20及び中間アクセサリ30は本サブプロセスを終了せず、中間アクセサリ30を介して接続されているアクセサリとの初期通信を行う。しかしながら、セーフモードで動作しているアクセサリが装着されている場合は、そのアクセサリを介して装着されているアクセサリとの初期通信を行わなくてもよい。例えば、中間アクセサリ30の動作状態がセーフモードであったとき、受信したデータに対する処理が終了しても中間アクセサリ制御部309が第2通信接続スイッチ311を短絡させない。そして、カメラ制御部205に終端情報を「終端である」として認証情報を送信することで、直ちに本サブプロセスを終了させてもよい。   In the present embodiment, even when the intermediate accessory 30 operates in the safe mode, the camera body 20 and the intermediate accessory 30 do not end the sub-process, and the accessory connected via the intermediate accessory 30 does not end. Initial communication with. However, when an accessory operating in the safe mode is mounted, initial communication with the mounted accessory via the accessory may not be performed. For example, when the operation state of the intermediate accessory 30 is the safe mode, the intermediate accessory control unit 309 does not short-circuit the second communication connection switch 311 even when the processing on the received data ends. Then, the sub-process may be immediately terminated by transmitting the authentication information to the camera control unit 205 by setting the terminal information to “end”.

中間アクセサリ40も同様の挙動を取ることで、カメラ制御部205は複数のアクセサリと順次通信していくことが可能となる。   The camera accessory 205 can sequentially communicate with a plurality of accessories by making the intermediate accessory 40 behave similarly.

S504およびS505において、第2通信接続スイッチ311が開放されているため、中間アクセサリ40およびレンズ制御部113はS502においてカメラ制御部205から送信された情報送信要求を受信しない。   Since the second communication connection switch 311 is open in S504 and S505, the intermediate accessory 40 and the lens control unit 113 do not receive the information transmission request transmitted from the camera control unit 205 in S502.

S506において、中間アクセサリ制御部309は、第2通信にて中間アクセサリ30の認証情報をカメラ制御部205に送信する。そして、第2通信接続スイッチ311を短絡させる。これにより、中間アクセサリ制御部409は、カメラ制御部205が送信するデータを受信することができる。   In step S506, the intermediate accessory control unit 309 transmits the authentication information of the intermediate accessory 30 to the camera control unit 205 by the second communication. Then, the second communication connection switch 311 is short-circuited. Thereby, the intermediate accessory control unit 409 can receive the data transmitted by the camera control unit 205.

S507にてカメラ制御部205が中間アクセサリ30の認証情報を受信すると、S508に遷移する。そして、受信した認証情報を記憶する。   When the camera control unit 205 receives the authentication information of the intermediate accessory 30 in S507, the process proceeds to S508. Then, the received authentication information is stored.

以上、S502〜S508により中間アクセサリ30の認証情報を取得すると、S509に遷移する。S509、S511、S513〜S515ではS502、S503、S506〜S508と同様に、カメラ制御部205は中間アクセサリ40の認証情報を取得する。   As described above, when the authentication information of the intermediate accessory 30 is obtained in S502 to S508, the process proceeds to S509. In steps S509, S511, and S513 to S515, the camera control unit 205 acquires the authentication information of the intermediate accessory 40, as in steps S502, S503, and S506 to S508.

S510では、中間アクセサリ制御部309は、カメラ制御部205が送信した認証情報要求を受信するが、本サブプロセス終了情報を受信していないため、応答しない。   In S510, the intermediate accessory control unit 309 receives the authentication information request transmitted by the camera control unit 205, but does not respond because it has not received the sub-process end information.

S512では、S504およびS505と同様に、第2通信接続スイッチ411が開放されているため、レンズ制御部113は、S509においてカメラ制御部205から送信された情報送信要求を受信しない。   In S512, as in S504 and S505, since the second communication connection switch 411 is open, the lens control unit 113 does not receive the information transmission request transmitted from the camera control unit 205 in S509.

実施例1は交換レンズ1つと中間アクセサリ2つの計3つのアクセサリを接続した例であるが、中間アクセサリは1つだけしか接続しなくてもよいし、3つ以上接続してもよい。中間アクセサリをいくつ装着してもよいため、アクセサリの情報取得処理はアクセサリの終端情報を取得することにより終了することが好ましい。   The first embodiment is an example in which one interchangeable lens and two intermediate accessories are connected, a total of three accessories. However, only one intermediate accessory may be connected, or three or more intermediate accessories may be connected. Since any number of intermediate accessories may be attached, it is preferable that the accessory information acquisition process be completed by acquiring accessory termination information.

アクセサリの終端情報は、別の方法によって取得しても良い。例えば、S502およびS509と同様に、中間アクセサリが装着されていることを想定してカメラ制御部205が認証情報要求を送信した際に、レンズ第2通信部115から返される終端情報により交換レンズであることを通知されてもよい。また、中間アクセサリ40が、不図示の端子の接続状態などにより自身が終端であることを検知してS513にてカメラ本体20に通知してもよい。本実施例では、カメラ制御部205からの認証情報要求へレンズ制御部113が終端情報を含む認証情報を返答することにより、終端情報が通知される場合について記述する。   The termination information of the accessory may be obtained by another method. For example, similarly to S502 and S509, when the camera control unit 205 transmits the authentication information request assuming that the intermediate accessory is attached, the camera control unit 205 determines whether the intermediate accessory is attached to the interchangeable lens by the termination information returned from the lens second communication unit 115. You may be notified that there is. Alternatively, the intermediate accessory 40 may detect that the terminal itself is at the end based on the connection state of a terminal (not shown) or the like, and notify the camera body 20 in S513. In the present embodiment, a case will be described in which the lens control unit 113 responds to the authentication information request from the camera control unit 205 with the authentication information including the terminal information, thereby notifying the terminal information.

S516においてS502およびS509と同様にカメラ本体20が第2通信にて認証情報要求(第2の送信要求に対応する)を送信する。S517およびS518では、中間アクセサリ30および中間アクセサリ40は、S510と同様に、本サブプロセス終了情報を受信していないため、応答しない。   In step S516, the camera body 20 transmits an authentication information request (corresponding to the second transmission request) through the second communication as in steps S502 and S509. In S517 and S518, the intermediate accessory 30 and the intermediate accessory 40 do not respond because they have not received the sub-process end information, as in S510.

S519においてレンズ制御部113が認証情報要求を受信すると、S520に遷移し、第2通信にて認証情報をカメラ制御部205に送信する。   When the lens control unit 113 receives the authentication information request in S519, the process proceeds to S520, and transmits the authentication information to the camera control unit 205 by the second communication.

ここで、レンズ制御部113がカメラ制御部205に送信する認証情報について、図910Eを用いて説明する。当該認証情報には、識別情報(第2の情報の一例である)と、動作状態情報と、補正処理要否情報と、終端情報とが含まれる。   Here, the authentication information transmitted by the lens control unit 113 to the camera control unit 205 will be described with reference to FIG. 910E. The authentication information includes identification information (an example of second information), operation state information, correction processing necessity information, and termination information.

交換レンズ10は中間アクセサリではないため、その装着によって交換レンズ10の光学情報の補正は必要とならない。したがって、補正処理要否情報は、補正処理が不要であることを示す情報である。   Since the interchangeable lens 10 is not an intermediate accessory, it is not necessary to correct optical information of the interchangeable lens 10 by mounting the interchangeable lens 10. Therefore, the correction processing necessity information is information indicating that the correction processing is unnecessary.

また、本実施例の交換レンズ10はカメラ本体20からみて第2通信の終端であるため、終端情報は、交換レンズ10が第2通信の終端であることを示す情報である。   Further, since the interchangeable lens 10 of the present embodiment is at the end of the second communication as viewed from the camera body 20, the end information is information indicating that the interchangeable lens 10 is at the end of the second communication.

S521によりカメラ制御部205が認証情報を取得すると、S522に遷移し、一連の初期通信処理が終了する。   When the camera control unit 205 acquires the authentication information in S521, the process proceeds to S522, and a series of initial communication processing ends.

なお、通信処理の短縮のため、本実施例のように補正処理要否情報を取得するのが好ましいが、補正情報要否情報をやり取りしない場合には、全ての中間アクセサリにおいて補正処理が必要であると判断する。   In order to shorten the communication process, it is preferable to acquire the correction processing necessity information as in the present embodiment. However, when the correction information necessity information is not exchanged, the correction process is necessary in all the intermediate accessories. Judge that there is.

S522を以て、サブプロセスS304は終了する。   With S522, the sub-process S304 ends.

本実施例では、本実施例では、第2通信接続スイッチを利用して、複数のアクセサリと順次通信していく手段を用いた処理について説明した。ただし、複数のアクセサリと通信することができれば別の手段であっても良い。例えば、アクセサリが自身に接続されている不図示の端子の電圧レベルを検知することで、カメラ本体側から何番目に装着されているかを把握することもできる。その場合、カメラから送信される情報送信要求の回数をカウントして自身の装着順と一致した時だけ情報をカメラ本体に送信する。   In the present embodiment, the processing using the means for sequentially communicating with a plurality of accessories using the second communication connection switch has been described in the present embodiment. However, another means may be used as long as it can communicate with a plurality of accessories. For example, by detecting the voltage level of a terminal (not shown) to which the accessory is connected, it is possible to know the order of the accessory from the camera body side. In that case, the number of information transmission requests transmitted from the camera is counted, and the information is transmitted to the camera body only when the number matches the mounting order of the camera itself.

<第1のアクセサリを決定するサブプロセスS307(図6)>
実施例1において、通信によりカメラ本体20が補正に関わるアクセサリのうち第1のアクセサリを探索するサブプロセスS307の流れについて図6を用いて説明する。
<Sub-process S307 for determining first accessory (FIG. 6)>
In the first embodiment, the flow of the sub-process S307 in which the camera body 20 searches for the first accessory among the accessories related to the correction by communication will be described with reference to FIG.

図6は、実施例1のカメラシステムにおいて、カメラ制御部205が光学補正に関わるアクセサリのうち第1のアクセサリを決定するサブプロセスS307の流れを示している。ここで、カメラ制御部205は交換レンズ10、中間アクセサリ30および中間アクセサリ40の光学情報を保持していないものとする。また、中間アクセサリ30および中間アクセサリ40の補正処理要否情報はどちらも「要」であるとする。   FIG. 6 illustrates a flow of the sub-process S307 in which the camera control unit 205 determines the first accessory among the accessories related to the optical correction in the camera system according to the first embodiment. Here, it is assumed that the camera control unit 205 does not hold optical information of the interchangeable lens 10, the intermediate accessory 30, and the intermediate accessory 40. Further, it is assumed that the correction processing necessity information of the intermediate accessory 30 and the intermediate accessory 40 is both “necessary”.

S601にてサブプロセスが開始されるとS602に遷移する。   When the sub-process starts in S601, the process proceeds to S602.

S602に遷移すると、カメラ制御部205は中間アクセサリ制御部309に対して、第2通信にて中間アクセサリ40の識別情報および光学情報有無返答要求を送信し、中間アクセサリ40の光学情報を保持しているか問い合わせる。送信先の指定方法は、例えば送信データに中間アクセサリの識別情報を通信データの先頭に追加し、アクセサリが通信データの先頭の値を参照することで、自身宛の通信か否かを判断すればよい。   In step S602, the camera control unit 205 transmits the identification information of the intermediate accessory 40 and the optical information presence / absence reply request to the intermediate accessory control unit 309 by the second communication, and holds the optical information of the intermediate accessory 40. Ask if it is. The method of specifying the transmission destination is, for example, by adding the identification information of the intermediate accessory to the transmission data at the beginning of the communication data, and referring to the head value of the communication data to determine whether the communication is addressed to itself. Good.

S603において中間アクセサリ制御部309が中間アクセサリ40の識別情報および光学情報有無返答要求を受信すると、S604に遷移する。   When the intermediate accessory control unit 309 receives the identification information of the intermediate accessory 40 and the optical information presence / absence reply request in S603, the process proceeds to S604.

S604では、中間アクセサリ40の光学情報を保持しているか否かを第2通信にて中間アクセサリ制御部309がカメラ制御部205に送信する。   In step S <b> 604, the intermediate accessory control unit 309 transmits to the camera control unit 205 whether or not the optical information of the intermediate accessory 40 is held by the second communication.

S605にてカメラ制御部205が中間アクセサリ40の光学情報の有無を中間アクセサリ30から受信すると、S606に遷移する。   In step S605, when the camera control unit 205 receives the presence or absence of the optical information of the intermediate accessory 40 from the intermediate accessory 30, the process proceeds to step S606.

S606では、他の中間アクセサリの光学情報を有している中間アクセサリ(第1の中間アクセサリとも称する)をカメラ制御部205が判断する。   In step S606, the camera control unit 205 determines an intermediate accessory (also referred to as a first intermediate accessory) having optical information of another intermediate accessory.

中間アクセサリ制御部309が中間アクセサリ40の光学情報を保持している場合、S607に遷移し、中間アクセサリ30が第1の中間アクセサリであるとカメラ制御部205が判断する。   When the intermediate accessory control unit 309 holds the optical information of the intermediate accessory 40, the process proceeds to S607, and the camera control unit 205 determines that the intermediate accessory 30 is the first intermediate accessory.

中間アクセサリ制御部309が中間アクセサリ40の光学情報を保持していない場合、S608に遷移し、中間アクセサリ40が第1の中間アクセサリであり、中間アクセサリ30の光学情報を保持しているとカメラ制御部205が判断する。   If the intermediate accessory control unit 309 does not hold the optical information of the intermediate accessory 40, the process proceeds to step S <b> 608. If the intermediate accessory 40 is the first intermediate accessory and holds the optical information of the intermediate accessory 30, camera control is performed. The unit 205 makes the determination.

中間アクセサリが3つ以上装着された場合であっても、同様に第1の中間アクセサリを決定することが可能である。例えば、アクセサリが3つ装着された場合は、そのうちの2つのアクセサリとの間で、S602〜S605同様の処理を行う。第1の中間アクセサリが判明すると、S609に遷移する。   Even when three or more intermediate accessories are mounted, the first intermediate accessory can be similarly determined. For example, when three accessories are mounted, the same processing as S602 to S605 is performed between two accessories. When the first intermediate accessory is found, the process proceeds to S609.

S609に遷移すると、カメラ制御部205はレンズ制御部113に対して、第1通信にてS607またはS608で決定した第1の中間アクセサリの識別情報および光学情報(第4の情報)の有無返答要求(第3の指示情報)を送信する。言い換えると、第1の中間アクセサリの光学情報を保持しているか問い合わせる。   In step S609, the camera control unit 205 requests the lens control unit 113 to respond to the presence / absence of the identification information of the first intermediate accessory and the optical information (fourth information) determined in step S607 or S608 in the first communication. (Third instruction information) is transmitted. In other words, it inquires whether the optical information of the first intermediate accessory is held.

S610においてレンズ制御部113が第1の中間アクセサリの識別情報および光学情報有無返答要求を受信すると、S611に遷移し、第1の中間アクセサリの光学情報を保持しているか否かを第1通信にてカメラ制御部205に送信する。   When the lens control unit 113 receives the identification information of the first intermediate accessory and the optical information presence / absence reply request in S610, the process proceeds to S611 and determines whether the optical information of the first intermediate accessory is held in the first communication. To the camera control unit 205.

S612にてカメラ制御部205が第1の中間アクセサリの光学情報の有無を交換レンズ10から受信すると、S613に遷移し、レンズ制御部113が第1の中間アクセサリの光学情報を保持しているか否かを判断する。これにより、第1のアクセサリを判断する。   When the camera control unit 205 receives the presence or absence of the optical information of the first intermediate accessory from the interchangeable lens 10 in S612, the process proceeds to S613, and determines whether the lens control unit 113 holds the optical information of the first intermediate accessory. Judge. Thereby, the first accessory is determined.

レンズ制御部113が第1の中間アクセサリの光学情報を保持しているとカメラ制御部205が判断した場合、S614に遷移する。S614では、交換レンズ10が第1のアクセサリであり、中間アクセサリ30および中間アクセサリ40の光学情報を保持していると判断される。レンズ制御部113が第1の中間アクセサリの光学情報を保持していないとカメラ制御部205が判断した場合、S615に遷移する。   If the camera control unit 205 determines that the lens control unit 113 holds the optical information of the first intermediate accessory, the process proceeds to S614. In S614, it is determined that the interchangeable lens 10 is the first accessory and holds the optical information of the intermediate accessory 30 and the intermediate accessory 40. If the camera control unit 205 determines that the lens control unit 113 does not hold the optical information of the first intermediate accessory, the process proceeds to S615.

S615では、カメラ制御部205は、第1の中間アクセサリが第1のアクセサリであると判断する。   In S615, the camera control unit 205 determines that the first intermediate accessory is the first accessory.

S614またはS615により第1のアクセサリが確定すると、S616に遷移し、カメラ制御部205は第1のアクセサリの識別情報及びアクセサリ種を記憶する。第1のアクセサリが記憶されると、S617に遷移し、サブプロセスS307は終了する。   When the first accessory is determined in S614 or S615, the process proceeds to S616, and the camera control unit 205 stores the identification information and the accessory type of the first accessory. When the first accessory is stored, the process proceeds to S617, and the sub-process S307 ends.

<実施例1の効果>
以上説明したように、実施例1では、カメラと交換レンズが通信可能な第1の通信経路と、カメラとアクセサリが通信可能な第2の通信経路を独立して有する。そして、それぞれの通信経路を用いた通信により取得した各ユニットの識別情報及び中間アクセサリ補正処理要否情報に基づいて、交換レンズの光学情報を補正するユニットを決定する。これにより、交換レンズの光学情報を適切に補正しつつ、撮像装置、交換レンズ及び中間アクセサリの各ユニット間で、より意図したタイミングで通信を行うことができる。
<Effect of Embodiment 1>
As described above, in the first embodiment, the first communication path through which the camera and the interchangeable lens can communicate and the second communication path through which the camera and the accessory can communicate are independently provided. Then, the unit that corrects the optical information of the interchangeable lens is determined based on the identification information of each unit and the information on the necessity of the intermediate accessory correction processing, which are obtained by the communication using the respective communication paths. Accordingly, communication between the imaging device, the interchangeable lens, and the intermediate accessory unit can be performed at a more intended timing while appropriately correcting the optical information of the interchangeable lens.

実施例1では、交換レンズを装着した直後の起動シーケンスにおいて交換レンズの光学情報を中間アクセサリの光学情報に基づいて補正する方法について説明した。実施例2では、アクセサリに備え付けられた操作部材を操作することによりアクセサリの光学系が動的に変化する場合に、交換レンズの光学情報を補正する方法について説明する。   In the first embodiment, the method of correcting the optical information of the interchangeable lens based on the optical information of the intermediate accessory in the startup sequence immediately after the mounting of the interchangeable lens has been described. In a second embodiment, a method of correcting optical information of an interchangeable lens when an optical system of an accessory dynamically changes by operating an operation member provided on the accessory will be described.

中間アクセサリに備え付けられた操作部材が操作されることによりアクセサリの光学系が動的に変化する例としては、倍率が可変である変倍レンズや、透過率が可変のNDフィルタなどが挙げられる。   Examples of dynamically changing the optical system of the accessory by operating the operation member provided on the intermediate accessory include a variable power lens with a variable magnification and an ND filter with a variable transmittance.

実施例2では、交換レンズを装着して現在の光学系が確定した際に、実施例1で説明した処理が実行される。これにより、カメラ制御部205は、交換レンズ10、カメラ本体20、中間アクセサリ30および中間アクセサリ40のうち、全アクセサリの光学情報を保持しているユニットを把握しているものとする。   In the second embodiment, the processing described in the first embodiment is executed when the current optical system is determined by mounting the interchangeable lens. Accordingly, it is assumed that the camera control unit 205 has grasped a unit that holds optical information of all the accessories among the interchangeable lens 10, the camera body 20, the intermediate accessory 30, and the intermediate accessory 40.

また、実施例1のような操作により取得したアクセサリの識別情報により、カメラ制御部205は動的に光学系が変化しうるアクセサリを認識しているものとする。   Also, it is assumed that the camera control unit 205 recognizes an accessory whose optical system can change dynamically based on the accessory identification information acquired by the operation as in the first embodiment.

以下、光学情報が動的に変化する、補正処理要否情報が「要」のアクセサリを動的アクセサリと表現する。光学情報が動的に変化しない、補正処理要否情報が「否」の中間アクセサリを、静的中間アクセサリと称する。また、光学情報が動的に変化する交換レンズを動的レンズ、光学情報が動的に変化しない交換レンズを静的レンズと称する。   Hereinafter, an accessory whose optical information dynamically changes and whose correction processing necessity information is “necessary” is expressed as a dynamic accessory. An intermediate accessory whose optical information does not dynamically change and whose correction processing necessity information is “No” is referred to as a static intermediate accessory. An interchangeable lens whose optical information changes dynamically is called a dynamic lens, and an interchangeable lens whose optical information does not change dynamically is called a static lens.

なお、本実施例では中間アクセサリ30と中間アクセサリ40とがカメラ本体20と交換レンズ10との間に装着されている例を説明するが、いずれか一方の中間アクセサリのみが装着されている場合であっても本実施例は適用可能である。   In this embodiment, an example in which the intermediate accessory 30 and the intermediate accessory 40 are mounted between the camera body 20 and the interchangeable lens 10 will be described. However, in the case where only one of the intermediate accessories is mounted. Even if there is, this embodiment is applicable.

<動的アクセサリの探索処理(図7)>
図7に、実施例1と本実施例の関係を示す。S701においてカメラシステムが起動すると、S702に遷移する。
<Dynamic accessory search processing (FIG. 7)>
FIG. 7 shows the relationship between the first embodiment and the present embodiment. When the camera system is activated in S701, the process proceeds to S702.

S702では、カメラ制御部205が、図3で説明した処理を実行する。すなわち、例えば初期通信、第1のユニットを決定、交換レンズの光学情報の補正を実行する。当該初期通信において、交換レンズ10、中間アクセサリ30、及び40から、光学系が動的に変化するか否かに対応する情報(動的アクセサリ情報、とも称する)を取得しておく。例えば、光学系が動的に変化するか否かの情報を、図4のS402や図5のS502、S509で識別情報を取得するタイミングでカメラ制御部205がアクセサリに送信要求を送信し、当該送信要求に応じてアクセサリは動的アクセサリ情報を送信する。認証情報が動的アクセサリ情報に含まれるようにし、カメラ制御部205がアクセサリに送信した認証情報の送信要求への応答として、動体アクセサリ情報を含む認証情報を取得するようにしても良い。なお、動的アクセサリ情報を別途取得せず、S702で取得したアクセサリの識別情報から、動的アクセサリであるか否かをカメラ制御部205が判断してもよい。この場合は、カメラ制御部205のメモリ(不図示)がアクセサリの識別情報と光学系が動的に変化するか否かの対応関係を示す情報(テーブル等)を有するよう構成しても良い。これにより、アクセサリの識別情報に基づいて動的アクセサリであるか否かをカメラ制御部205が判断することが可能である。   In S702, the camera control unit 205 executes the processing described in FIG. That is, for example, initial communication, determination of the first unit, and correction of optical information of the interchangeable lens are executed. In the initial communication, information (also referred to as dynamic accessory information) corresponding to whether or not the optical system dynamically changes is acquired from the interchangeable lens 10, the intermediate accessories 30, and 40. For example, the camera control unit 205 transmits a transmission request to the accessory at the timing of acquiring identification information in S402 in FIG. 4 or S502 and S509 in FIG. The accessory transmits the dynamic accessory information in response to the transmission request. The authentication information may be included in the dynamic accessory information, and the authentication information including the moving body accessory information may be acquired as a response to the authentication information transmission request transmitted from the camera control unit 205 to the accessory. Note that the camera control unit 205 may determine whether or not the accessory is a dynamic accessory from the identification information of the accessory acquired in S702 without separately acquiring the dynamic accessory information. In this case, the memory (not shown) of the camera control unit 205 may be configured to have the identification information of the accessory and the information (table or the like) indicating the correspondence between whether or not the optical system dynamically changes. Accordingly, the camera control unit 205 can determine whether or not the accessory is a dynamic accessory based on the identification information of the accessory.

サブプロセスS702が終了すると、S703に遷移する。   When the sub-process S702 ends, the process transits to S703.

S703では、カメラ制御部205は、前述の動的アクセサリ情報に基づいて、動的アクセサリが装着されているか否かを判定する。より具体的には、動的アクセサリ情報として光学系が動的に変化することを示す情報をいずれかのアクセサリから取得した場合には、動的アクセサリが装着されているとカメラ制御部205は判断する。また、動的アクセサリ情報として光学系が動的に変化することを示す情報を取得しなかった場合には、動的アクセサリが装着されていないとカメラ制御部205は判断する。動的アクセサリが装着されていればS704に遷移する。   In S703, the camera control unit 205 determines whether or not a dynamic accessory is mounted based on the above-described dynamic accessory information. More specifically, when information indicating that the optical system dynamically changes is acquired from any accessory as dynamic accessory information, the camera control unit 205 determines that the dynamic accessory is mounted. I do. If the information indicating that the optical system dynamically changes is not acquired as the dynamic accessory information, the camera control unit 205 determines that the dynamic accessory is not mounted. If a dynamic accessory has been mounted, the process proceeds to S704.

S704では、カメラ制御部205は、動的アクセサリの光学情報の変化に基づいて交換レンズの光学情報を補正するサブプロセスを実行する。動的アクセサリが装着されていない場合や動的アクセサリが操作されない場合は、交換レンズの光学情報を補正する必要はないので、S705に遷移し、交換レンズの光学補正処理は終了する。   In step S704, the camera control unit 205 executes a sub-process of correcting the optical information of the interchangeable lens based on a change in the optical information of the dynamic accessory. If the dynamic accessory is not attached or the dynamic accessory is not operated, there is no need to correct the optical information of the interchangeable lens, so the flow shifts to S705, and the optical correction processing of the interchangeable lens ends.

<動的アクセサリの操作に応じた光学情報の補正処理(図8)>
以下、図8を用いて、本発明の実施例2である動的アクセサリの操作に応じた光学情報の変化に基づいて交換レンズの光学情報を補正するサブプロセスS704を説明する。
<Optical information correction processing according to operation of dynamic accessory (FIG. 8)>
Hereinafter, a sub-process S704 of correcting optical information of an interchangeable lens based on a change in optical information according to operation of a dynamic accessory according to a second embodiment of the present invention will be described with reference to FIG.

図8に示すサブプロセスにおいては、中間アクセサリ30が動的アクセサリ、交換レンズ10が第1のユニットかつ静的レンズであり、中間アクセサリ40は静的中間アクセサリであるものとする。すなわち、図7のS702においてカメラ制御部205およびレンズ制御部113がそのように認識したものとする。   In the sub-process shown in FIG. 8, it is assumed that the intermediate accessory 30 is a dynamic accessory, the interchangeable lens 10 is a first unit and a static lens, and the intermediate accessory 40 is a static intermediate accessory. That is, it is assumed that the camera control unit 205 and the lens control unit 113 have recognized as such in S702 of FIG.

S801にてシーケンスが開始すると、S802に遷移する。   When the sequence starts in S801, the process proceeds to S802.

S802において、カメラ制御部205は光学データ識別情報送信要求を第2通信にて動的アクセサリである中間アクセサリ30の中間アクセサリ制御部309に送信する。   In step S802, the camera control unit 205 transmits an optical data identification information transmission request to the intermediate accessory control unit 309 of the intermediate accessory 30, which is a dynamic accessory, through the second communication.

S803にて中間アクセサリ制御部309が光学データ識別情報送信要求を受信すると、S804に遷移し、第2通信にてカメラ制御部205に光学データ識別情報を送信する。   When the intermediate accessory control unit 309 receives the optical data identification information transmission request in S803, the process proceeds to S804 and transmits the optical data identification information to the camera control unit 205 by the second communication.

なお、動的アクセサリの光学データ識別情報は、交換レンズ10の光学情報の補正のパラメータに関する情報であり、本実施例では例えば現在の光学情報であるとする。例えば、中間アクセサリが変倍レンズを有する場合は、現在の倍率の情報である。また、例えば、中間アクセサリがNDフィルタを有する場合は、現在の光路長を補正するための情報である。なお、光学データ識別情報は、第1のユニットが動的アクセサリの光学的な状態を認識できるものであれば、他の情報であってもよい。その他、種類(機種)の識別に用いられる機種ナンバー(ID)等の情報に複数とりうる状態の情報を付与したものであってもよいし、動的に変化する光学データを示す光学データ識別情報であってもよい。また、アクセサリが有する機能を示す情報や同一機種の中での個体を識別可能な製造ナンバー(シリアルナンバー)等の情報を含んでいてもよい。   Note that the optical data identification information of the dynamic accessory is information on a parameter for correcting the optical information of the interchangeable lens 10, and in this embodiment, it is assumed that the information is, for example, current optical information. For example, when the intermediate accessory has a variable power lens, it is information on the current magnification. For example, when the intermediate accessory has an ND filter, the information is information for correcting the current optical path length. The optical data identification information may be other information as long as the first unit can recognize the optical state of the dynamic accessory. In addition, information such as a model number (ID) used for identification of a type (model) may be added with information on a plurality of possible states, or optical data identification information indicating dynamically changing optical data. It may be. Further, the information may include information indicating a function of the accessory and information such as a manufacturing number (serial number) capable of identifying an individual in the same model.

S805においてカメラ制御部205が光学データ識別情報を受信すると、S806に遷移する。   When the camera control unit 205 receives the optical data identification information in step S805, the process proceeds to step S806.

S806では、カメラ制御部205は、当該光学データ識別情報に基づいて中間アクセサリ30の光学情報が変化したかを判断する。例えば、S702の初期通信で受信した中間アクセサリ30の光学情報と、S805において受信した光学データ識別情報とを比較する。光学情報が変化していない場合は、S802に戻り、カメラ制御部205が所定時間経過後に光学データ識別情報送信要求を再送信する。   In S806, the camera control unit 205 determines whether the optical information of the intermediate accessory 30 has changed based on the optical data identification information. For example, the optical information of the intermediate accessory 30 received in the initial communication in S702 is compared with the optical data identification information received in S805. If the optical information has not changed, the process returns to step S802, and the camera control unit 205 retransmits the optical data identification information transmission request after a predetermined time has elapsed.

S806において中間アクセサリ30の光学情報が変化したとカメラ制御部205が判断した場合は、S807に遷移し、光学レンズの光学情報の補正を行うための処理に移行する。   If the camera control unit 205 determines in step S806 that the optical information of the intermediate accessory 30 has changed, the process advances to step S807 to shift to a process for correcting the optical information of the optical lens.

なお、動的アクセサリの光学情報の変化をカメラ制御部205が認識する手段としては、S802、803、804、805、S806のように、ポーリングにより一定周期で動的アクセサリと通信を行うことで光学情報の変化の有無を受信してもよい。   The camera control unit 205 recognizes a change in optical information of the dynamic accessory by performing communication with the dynamic accessory at regular intervals by polling as in S802, 803, 804, 805, and S806. The presence or absence of a change in information may be received.

また、動的アクセサリの光学情報が変化した際に動的アクセサリから割り込み信号を受信してもよい。例えば、動的アクセサリである中間アクセサリ30が、当該中間アクセサリ30の光学情報を変化させる操作部材を有するとする。この場合に、当該操作部材が操作されたことを検出して、後述の中間アクセサリ制御部309からカメラ制御部205に割り込み信号を送信するようにしても良い。また、カメラ制御部205が中間アクセサリ制御部309から割り込み信号を受信し、S806で光学データ識別情報が変化したと判断してから、前述のS802、803、804、805を実行するようにしても良い。   Further, when the optical information of the dynamic accessory changes, an interrupt signal may be received from the dynamic accessory. For example, it is assumed that the intermediate accessory 30 that is a dynamic accessory has an operation member that changes optical information of the intermediate accessory 30. In this case, the operation of the operation member may be detected, and an interrupt signal may be transmitted from the later-described intermediate accessory control unit 309 to the camera control unit 205. Also, the camera control unit 205 may receive the interrupt signal from the intermediate accessory control unit 309, execute the above-described steps S802, 803, 804, and 805 after determining in S806 that the optical data identification information has changed. good.

また、S802、803、804、805、のように変化が反映された光学データ識別情報をやり取りしてもよい。また、光学データ識別情報の変化のみをカメラ制御部205に通知して、カメラ制御部205が現在の光学データ識別情報を算出し、やり取りを開始してもよい。   In addition, optical data identification information in which a change is reflected as in S802, 803, 804, and 805 may be exchanged. Alternatively, only the change in the optical data identification information may be notified to the camera control unit 205, and the camera control unit 205 may calculate the current optical data identification information and start the exchange.

S807に遷移すると、カメラ制御部205は、第1通信により中間アクセサリ30の光学データ識別情報と交換レンズ10の光学情報の補正依頼(光学補正依頼とも称する)とを第1のユニットである交換レンズの10のレンズ制御部113に送信する。   In step S807, the camera control unit 205 transmits the optical data identification information of the intermediate accessory 30 and a request to correct the optical information of the interchangeable lens 10 (also referred to as an optical correction request) through the first communication to the interchangeable lens as the first unit. To the ten lens control units 113.

S808において、レンズ制御部113は、中間アクセサリ30の光学データ識別情報と光学補正依頼を受信すると、S809に遷移する。   In step S808, upon receiving the optical data identification information of the intermediate accessory 30 and the optical correction request, the lens control unit 113 transitions to step S809.

S809では、レンズ制御部113は、中間アクセサリ30の光学データ識別情報により現在の中間アクセサリ30の光学情報をレンズ制御部113内のテーブルより取得し、S809に遷移する。   In step S809, the lens control unit 113 acquires the current optical information of the intermediate accessory 30 from the table in the lens control unit 113 based on the optical data identification information of the intermediate accessory 30, and transitions to step S809.

S810では、サブプロセスS702において取得していた静的中間アクセサリである中間アクセサリ40の光学情報と中間アクセサリ30の光学情報に基づき、交換レンズ10の光学情報を補正する。   In step S810, the optical information of the interchangeable lens 10 is corrected based on the optical information of the intermediate accessory 40 and the optical information of the intermediate accessory 30 which are the static intermediate accessories acquired in the sub-process S702.

補正が完了すると、S811において、レンズ制御部113は補正した交換レンズ10の光学情報をカメラ制御部205に第1通信にて送信する。   When the correction is completed, in step S811, the lens control unit 113 transmits the corrected optical information of the interchangeable lens 10 to the camera control unit 205 through the first communication.

S812においてカメラ制御部205が補正した交換レンズの光学情報を受信すると、S813に遷移し、光学情報をカメラ制御部205に記憶する。   When the optical information of the interchangeable lens corrected by the camera control unit 205 is received in step S812, the process proceeds to step S813, and the optical information is stored in the camera control unit 205.

S813が終了すると、S802に戻り、再び動的アクセサリの光学情報の変化を監視する。   When S813 ends, the process returns to S802, and the change of the optical information of the dynamic accessory is monitored again.

本実施例では中間アクセサリのうち一つが動的アクセサリであり、光学レンズ10が第1のユニットである場合について記述した。その他、動的アクセサリが複数あった場合や第1のユニットが交換レンズ以外のユニットであった場合であっても、同様に補正処理を行うことができる。   In this embodiment, a case has been described in which one of the intermediate accessories is a dynamic accessory and the optical lens 10 is a first unit. In addition, even when there are a plurality of dynamic accessories or when the first unit is a unit other than the interchangeable lens, the correction process can be similarly performed.

また、第1のユニットのみが動的アクセサリであった場合、第1のユニットがそのことを認識していれば、自身の光学情報が変化したことを認識した段階で光学補正を行い、光学補正後の交換レンズ10の光学データをカメラ本体20に送信してもよい。   If only the first unit is a dynamic accessory, and if the first unit recognizes that, the optical correction is performed at the stage where it recognizes that its own optical information has changed, and the optical correction is performed. The optical data of the later interchangeable lens 10 may be transmitted to the camera body 20.

交換レンズ10の光学情報の補正処理は、S805で取得した動的アクセサリの光学情報のみではなく、S810の中間アクセサリ40の光学情報のように、静的中間アクセサリの光学情報も考慮して行われる。静的中間アクセサリが装着されている場合、静的中間アクセサリの光学情報により予め補正しておいて、光学情報が動的に変化した場合に動的アクセサリの光学情報により最終的な補正処理を行ってもよい。   The correction processing of the optical information of the interchangeable lens 10 is performed in consideration of not only the optical information of the dynamic accessory acquired in S805 but also the optical information of the static intermediate accessory like the optical information of the intermediate accessory 40 in S810. . When the static intermediate accessory is mounted, correction is performed in advance using the optical information of the static intermediate accessory, and when the optical information dynamically changes, final correction processing is performed using the optical information of the dynamic accessory. You may.

<実施例2の効果>
以上説明したように、実施例2では、中間アクセサリ30の光学情報の変化をカメラ制御部205が検出する。そしてカメラ本体20が光学情報の変化に関する情報と交換レンズ10の光学情報の補正依頼とをレンズ制御部113に送信する。そして、レンズ制御部113が交換レンズ10の光学情報を補正し、カメラ制御部205に送信する。
<Effect of Embodiment 2>
As described above, in the second embodiment, the camera control unit 205 detects a change in the optical information of the intermediate accessory 30. Then, the camera body 20 transmits information on the change in the optical information and a request for correcting the optical information of the interchangeable lens 10 to the lens control unit 113. Then, the lens controller 113 corrects the optical information of the interchangeable lens 10 and transmits the information to the camera controller 205.

これにより、アクセサリの光学情報が動的に変化する場合であっても、交換レンズの光学情報を適切に補正することができる。   Thus, even when the optical information of the accessory dynamically changes, the optical information of the interchangeable lens can be appropriately corrected.

本実施例では、中間アクセサリ識別情報としてアクセサリ固有の光学データを示す光学データ識別情報を用いる場合に着目して説明する。   In the present embodiment, description will be made focusing on a case where optical data identification information indicating optical data unique to an accessory is used as intermediate accessory identification information.

中間アクセサリ識別情報が機種ナンバー(ID)など製品固有の情報は、新製品のアクセサリが既知のアクセサリと同様の光学系を持つ場合、もしくは既知のアクセサリと同様の補正方法で補正可能なアクセサリであっても、新たな機種ナンバーが割り振られる。そのため、交換レンズの光学情報の補正の要否を機種ナンバー(ID)などで判断した場合には、その機種ナンバー(ID)が未知の場合は、そのアクセサリの光学特性を考慮してレンズの光学情報を補正することができなかった。   The product-specific information, such as the model number (ID), of the intermediate accessory identification information indicates that the accessory of the new product has the same optical system as the known accessory or that the accessory can be corrected by the same correction method as the known accessory. However, a new model number is assigned. Therefore, when the necessity of correcting the optical information of the interchangeable lens is determined based on the model number (ID) or the like, if the model number (ID) is unknown, the optical characteristics of the lens are considered in consideration of the optical characteristics of the accessory. The information could not be corrected.

そこで、本実施例では、中間アクセサリ識別情報として光学データ識別情報を用いる。本実施例では、中間アクセサリ識別情報が補正方法に紐づけられている。より具体的には、補正の方法に関する情報と補正のパラメータに関する情報とを組み合わせたものを光学データ識別情報とする。このような光学データ識別情報を以下、補正識別情報と呼ぶ。本実施例の補正の方法に関する情報は、中間アクセサリの光学部材に対応する情報であり、補正のパラメータに関する情報は、当該光学部材の光学特性による中間アクセサリの光学情報に対応する情報である。中間アクセサリが変倍レンズを有する変倍アダプタである場合を例に挙げると、補正の方法に関する情報は変倍レンズを示す情報であり、補正のパラメータに関する情報は変倍レンズの倍率情報である。   Therefore, in the present embodiment, optical data identification information is used as intermediate accessory identification information. In the present embodiment, the intermediate accessory identification information is linked to the correction method. More specifically, a combination of information on a correction method and information on a correction parameter is defined as optical data identification information. Such optical data identification information is hereinafter referred to as correction identification information. The information on the correction method according to the present embodiment is information corresponding to the optical member of the intermediate accessory, and the information on the correction parameter is information corresponding to the optical information of the intermediate accessory based on the optical characteristics of the optical member. Taking the case where the intermediate accessory is a variable power adapter having a variable power lens as an example, the information on the correction method is information indicating the variable power lens, and the information on the correction parameters is magnification information on the variable power lens.

レンズ制御部113は、補正の方法に関する情報と補正パラメータに関する情報とを紐づけて記憶するように構成しても良い。光学情報の補正に他の情報が必要であれば、その情報も補正の方法に関する情報と補正パラメータに関する情報とに紐づけて記憶するようにしても良い。   The lens control unit 113 may be configured to store information on a correction method and information on a correction parameter in association with each other. If other information is necessary for correcting the optical information, the information may be stored in association with the information on the correction method and the information on the correction parameter.

このように、補正の方法に関する情報と補正のパラメータに関する情報とを、カメラ制御部205を介してレンズ制御部113に送信する。これにより、新たに補正のパラメータに関する情報が異なる中間アクセサリを考慮した補正が必要になっても、補正パラメータである倍率情報を設定しなおすことで、既存のユニット(本実施例では交換レンズ10)による補正が可能となる。   As described above, information on the correction method and information on the correction parameters are transmitted to the lens control unit 113 via the camera control unit 205. Thus, even if it is necessary to perform a correction in consideration of an intermediate accessory having different information on the correction parameter, the magnification information as the correction parameter is reset, and the existing unit (the interchangeable lens 10 in this embodiment) is set. Can be corrected.

このように、光学データ識別情報を用いることで、そのアクセサリの光学特性を考慮して交換レンズの光学情報を補正することができる。例えば、既存の製品と同様の光学系を持つ場合、もしくは既存の製品と同様の方法で補正可能なアクセサリであった場合に、その機種ナンバー(ID)が未知であっても、交換レンズの光学情報を補正することができる。   As described above, by using the optical data identification information, the optical information of the interchangeable lens can be corrected in consideration of the optical characteristics of the accessory. For example, if the camera has an optical system similar to an existing product, or is an accessory that can be corrected in the same manner as an existing product, and the model number (ID) is unknown, the optics of the interchangeable lens are unknown. The information can be corrected.

なお、補正識別情報を用いる場合、補正アルゴリズムを各ユニットで記憶することは効率的ではないので、補正を実施するユニットを予め決定する方が好ましい。本実施例では、補正を実施するユニットが交換レンズと予め決定されている場合を説明する。また、補正識別情報を用いた場合の交換レンズの補正方法について説明する。実施例1および2のように第1のユニットで補正を行う場合においても同様に補正識別情報を用いることができる。   When the correction identification information is used, it is not efficient to store the correction algorithm in each unit. Therefore, it is preferable to previously determine the unit to perform the correction. In this embodiment, a case will be described in which the unit for performing the correction is determined to be an interchangeable lens in advance. A method of correcting an interchangeable lens when the correction identification information is used will be described. In the case where correction is performed by the first unit as in the first and second embodiments, the correction identification information can be used similarly.

<実施例3における、補正された光学情報の取得処理(図10)>
図10は、各アクセサリを装着して初めて電源を供給した際に、カメラ本体20が各アクセサリから補正情報を取得し、それを交換レンズ10に送信して補正を依頼し、補正された交換レンズ10の光学情報を取得する処理の流れを示している。
<Process of Obtaining Corrected Optical Information in Third Embodiment (FIG. 10)>
FIG. 10 shows that, when power is supplied for the first time after mounting each accessory, the camera body 20 acquires correction information from each accessory, transmits it to the interchangeable lens 10 and requests correction, and 10 shows a flow of a process of acquiring ten optical information.

S1001にてカメラ本体20が起動すると、S1002に遷移する。   When the camera body 20 is activated in S1001, the process proceeds to S1002.

S1002に遷移すると、カメラ本体20は、不図示の電源供給用マウント接点を介して、交換レンズ10、中間アクセサリ30、中間アクセサリ40に電源が供給し、S1003へ遷移する。   In step S1002, the camera body 20 supplies power to the interchangeable lens 10, the intermediate accessory 30, and the intermediate accessory 40 via a power supply mounting contact (not shown), and the process proceeds to step S1003.

第2通信によるアクセサリとの初期通信処理であるサブプロセスS1003は、実施例1中のサブプロセスS304とほぼ同様である。S1003では中間アクセサリの識別情報として前述の補正識別情報を取得する。   The sub-process S1003 which is the initial communication process with the accessory by the second communication is substantially the same as the sub-process S304 in the first embodiment. In S1003, the above-described correction identification information is acquired as identification information of the intermediate accessory.

S1003によりアクセサリの補正認証情報を取得すると、S1004に遷移する。   Upon acquiring the correction authentication information of the accessory in S1003, the process proceeds to S1004.

S1004に遷移すると、カメラ制御部205は、S1003にて取得した中間アクセサリ補正識別情報を交換レンズ10へ送信し、光学情報の補正を依頼する。交換レンズが中間アクセサリの補正識別情報を取得するとS1005へ遷移する。   In step S1004, the camera control unit 205 transmits the intermediate accessory correction identification information acquired in step S1003 to the interchangeable lens 10, and requests correction of optical information. When the interchangeable lens acquires the correction identification information of the intermediate accessory, the process proceeds to S1005.

S1005に遷移すると、交換レンズ制御部113は中間アクセサリ補正識別情報による自身の光学情報の補正が必要かを判断する。光学情報の補正が必要な中間アクセサリが装着されていた場合には、S1006に遷移する。   In step S1005, the interchangeable lens control unit 113 determines whether it is necessary to correct its own optical information based on the intermediate accessory correction identification information. If an intermediate accessory requiring correction of optical information has been mounted, the flow shifts to S1006.

S1006に遷移すると、交換レンズ制御部113は中間アクセサリ補正識別情報による自身の光学情報を補正し、補正された光学情報をカメラへ送信する。   In step S1006, the interchangeable lens control unit 113 corrects its own optical information based on the intermediate accessory correction identification information, and transmits the corrected optical information to the camera.

また、S1005において、中間アクセサリが装着されていない、または装着されている全中間アクセサリが交換レンズの光学情報の補正が不要な中間アクセサリであった場合には、補正処理の必要がないため、S1007に遷移する。   In S1005, if the intermediate accessory is not attached, or if all the attached intermediate accessories are intermediate accessories that do not require correction of the optical information of the interchangeable lens, there is no need for correction processing. Transitions to.

S1007では、交換レンズ制御部113は、自身の光学情報をカメラへ送信する。   In S1007, the interchangeable lens control unit 113 transmits its own optical information to the camera.

S1006およびS1007における光学情報の送信タイミングは補正完了直後でもよいし、カメラから依頼されたタイミングでもよい。   The transmission timing of the optical information in S1006 and S1007 may be immediately after the correction is completed, or may be the timing requested by the camera.

S1006、もしくはS1007により光学情報を取得したのちにS1008に遷移し、光学情報取得シーケンスは終了する。   After acquiring the optical information in S1006 or S1007, the process transits to S1008, and the optical information acquisition sequence ends.

このようにして、カメラと交換レンズが通信可能な第1の通信経路とカメラと中間アクセサリが通信可能な第2の通信経路を独立して持つカメラシステムにおいて、中間アクセサリの光学情報に基づいて交換レンズの光学情報を適切に補正できる。   In this manner, in a camera system having a first communication path through which the camera and the interchangeable lens can communicate and a second communication path through which the camera and the intermediate accessory can communicate independently, the camera system can be replaced based on optical information of the intermediate accessory. The optical information of the lens can be appropriately corrected.

また、実施例1で、アクセサリの認証情報にアクセサリの識別情報と補正処理要否情報とが含まれている例を示した。これに対して、アクセサリの認証情報に補正処理要否情報のみを持たせ、補正処理要否情報が補正「要」を示している場合に、補正処理要否情報を別途取得するようにしても良い。これにより、補正処理要否情報の要否によらず補正識別情報を取得した場合と比較して、補正処理要否情報が補正「否」を示している場合の通信量を減らすことが可能である。この場合、前述の実施例同様、中間アクセサリ識別情報と補正処理要否情報とをともに取得する。すなわち、補正処理要否情報が補正「要」であり補正識別情報を別途取得した場合には、アクセサリを識別する情報として中間アクセサリ識別情報と補正識別情報の両方を取得する。これにより、補正処理要否情報が補正「否」を示している場合の通信量を減らすとともに、補正処理要否情報が補正「要」であるか「否」であるかによらず、中間アクセサリ識別情報は別の用途に用いることが可能である。   Further, in the first embodiment, the example has been described in which the accessory authentication information includes the accessory identification information and the correction processing necessity information. On the other hand, the authentication information of the accessory may include only the correction processing necessity information, and the correction processing necessity information may be separately acquired when the correction processing necessity information indicates the correction “necessary”. good. This makes it possible to reduce the amount of communication in the case where the correction processing necessity information indicates the correction “no”, as compared with the case where the correction identification information is acquired regardless of the necessity of the correction processing necessity information. is there. In this case, as in the above-described embodiment, both the intermediate accessory identification information and the correction processing necessity information are acquired. That is, when the correction processing necessity information is the correction "necessary" and the correction identification information is separately obtained, both the intermediate accessory identification information and the correction identification information are obtained as the information for identifying the accessory. This reduces the amount of communication when the correction processing necessity information indicates the correction “no”, and the intermediate accessory irrespective of whether the correction processing necessity information is the correction “necessary” or “no”. The identification information can be used for another purpose.

また、補正識別情報の含まれる補正の方法に関する情報に基づいて、当該補正の方法に関する情報に対応する情報をレンズ制御部113が記憶していないと判断した場合には、交換レンズ10の光学情報補正を行わないように制御しても良い。   If the lens control unit 113 determines that the information corresponding to the information on the correction method is not stored based on the information on the correction method included in the correction identification information, the optical information of the interchangeable lens 10 is stored. Control may be performed so that correction is not performed.

<実施例3の効果>
以上で述べたように、補正の方法に関する情報と補正のパラメータに関する情報とをカメラ制御部205が中間アクセサリ制御部309から取得し、これらの情報をレンズ制御部113に送信する。これにより、レンズ制御部113は、新たなアクセサリであっても補正の方法が既知であれば、当該アクセサリを考慮した光学情報の補正が可能である。
<Effect of Embodiment 3>
As described above, the camera control unit 205 acquires information on the correction method and information on the correction parameters from the intermediate accessory control unit 309, and transmits the information to the lens control unit 113. As a result, the lens control unit 113 can correct optical information in consideration of the accessory if the correction method is known, even if the accessory is a new accessory.

上述の実施例では、カメラ本体20が、交換レンズ10と第1通信で行う初期通信において、交換レンズ10の認証情報として交換レンズ10の識別情報(第1のレンズ識別情報とも称する)を取得することを説明した。また、カメラ本体20が、アクセサリと第2通信で行う初期通信において、交換レンズ10の認証情報として交換レンズ10の識別情報(第2のレンズ識別情報とも称する)を取得することを説明した。本実施例では、第1のレンズ識別情報と第2のレンズ識別情報との関係に着目した実施例を説明する。   In the above embodiment, the camera body 20 acquires the identification information of the interchangeable lens 10 (also referred to as first lens identification information) as the authentication information of the interchangeable lens 10 in the initial communication performed with the interchangeable lens 10 in the first communication. That was explained. Further, it has been described that the camera body 20 acquires the identification information of the interchangeable lens 10 (also referred to as second lens identification information) as the authentication information of the interchangeable lens 10 in the initial communication performed with the accessory in the second communication. In the present embodiment, an embodiment focusing on the relationship between the first lens identification information and the second lens identification information will be described.

前述のとおり、交換レンズ10及びアクセサリの識別情報は、該当するユニットの種類(機種)の識別に用いられる機種ナンバー(ID)等の情報であっても良い。また、交換レンズが有する機能を示す情報や同一機種の中での個体を識別可能な製造ナンバー(シリアルナンバー)等の情報を含んでいてもよい。   As described above, the identification information of the interchangeable lens 10 and the accessory may be information such as a model number (ID) used for identifying the type (model) of the corresponding unit. Further, the information may include information indicating a function of the interchangeable lens or information such as a manufacturing number (serial number) capable of identifying an individual in the same model.

ここで、本実施例のカメラシステムにおいて、交換レンズ10はカメラ本体20と、第1通信と第2通信との両方によって通信可能であり、実施例1で説明したように、第1通信と第2通信の両方によってカメラ本体20と初期通信を行う。交換レンズ10は、第1通信と第2通信のいずれの初期通信においても、カメラ本体20に交換レンズ10の識別情報(前述の第1のレンズ識別情報と第2のレンズ識別情報)を送信する。   Here, in the camera system of the present embodiment, the interchangeable lens 10 can communicate with the camera body 20 by both the first communication and the second communication, and as described in the first embodiment, the first communication and the Initial communication with the camera body 20 is performed by both of the two communications. The interchangeable lens 10 transmits the identification information of the interchangeable lens 10 (the above-described first lens identification information and second lens identification information) to the camera body 20 in both the first communication and the second communication. .

このときレンズ制御部113は、第1のレンズ識別情報と第2のレンズ識別情報として同一の情報を送っても構わないが、本実施例ではあえて第2のレンズ識別情報として第1のレンズ識別情報とは異なる情報をカメラ制御部205へ送信する。これにより、レンズ制御部113が第2通信によりカメラ制御部205へ送信する第2のレンズ識別情報の有効活用を図るものである。   At this time, the lens control unit 113 may send the same information as the first lens identification information and the second lens identification information. However, in this embodiment, the lens control unit 113 dares to use the first lens identification information as the second lens identification information. Information different from the information is transmitted to the camera control unit 205. Thus, the second lens identification information transmitted from the lens control unit 113 to the camera control unit 205 through the second communication is effectively used.

本実施例の第1のレンズ識別情報と第2のレンズ識別情報についてより具体的に説明する。第1のレンズ識別情報は、交換レンズ10の種類(機種)を識別することを可能にする情報であって、一例として機種ナンバー(ID)であるものとする。   The first lens identification information and the second lens identification information of the present embodiment will be described more specifically. The first lens identification information is information that enables the type (model) of the interchangeable lens 10 to be identified, and is, for example, a model number (ID).

これに対し第2のレンズ識別情報は、第1のレンズ識別情報とは異なる情報であり、一例として、交換レンズ10がレンズであることを示す情報であるものとする。この場合、第2のレンズ識別情報は、あくまで交換レンズ10がレンズであることを示す情報であって、交換レンズ10の種類(機種)には対応していない情報である。このことから、例えば、第2のレンズ識別情報を交換レンズ10の種類(機種)によらない一意の情報とすることができる。   On the other hand, the second lens identification information is different from the first lens identification information. For example, the second lens identification information is information indicating that the interchangeable lens 10 is a lens. In this case, the second lens identification information is merely information indicating that the interchangeable lens 10 is a lens, and does not correspond to the type (model) of the interchangeable lens 10. Accordingly, for example, the second lens identification information can be unique information that does not depend on the type (model) of the interchangeable lens 10.

このように、本実施例では、レンズ制御部113が、カメラ本体20と交換レンズ10との一対一の通信である第1通信の初期通信で送信する第1の識別情報を、カメラ本体20と各アクセサリとの一対多の通信を想定した第2通信では送信しない。第2通信では第2の識別情報として、レンズであることを示す情報、言い換えると中間アクセサリではないことを示す情報をカメラ制御部105に送信する。   As described above, in the present embodiment, the lens control unit 113 transmits the first identification information transmitted in the initial communication of the first communication, which is a one-to-one communication between the camera body 20 and the interchangeable lens 10, to the camera body 20 It is not transmitted in the second communication assuming one-to-many communication with each accessory. In the second communication, information indicating that the lens is a lens, in other words, information indicating that the lens is not an intermediate accessory, is transmitted to the camera control unit 105 as second identification information.

本実施例において第1のレンズ識別情報と第2のレンズ識別情報とを上述のように使い分けることによって、例えば以下に説明する効果を実現することが可能である。   In the present embodiment, by using the first lens identification information and the second lens identification information properly as described above, for example, the following effects can be realized.

例えば、第1通信でカメラ制御部205がレンズ制御部113から取得する識別情報を交換レンズのための体系とし、第2通信でカメラ制御部205が各アクセサリの制御部から取得する識別情報を中間アクセサリのための体系として扱うことが可能である。これにより、将来登場し得る中間アクセサリに対して拡張性を持たせたカメラシステムとすることが可能である。   For example, the identification information obtained by the camera control unit 205 from the lens control unit 113 in the first communication is used as a system for the interchangeable lens, and the identification information obtained by the camera control unit 205 from the control unit of each accessory in the second communication is intermediate. It can be treated as a system for accessories. This makes it possible to provide a camera system that has expandability for intermediate accessories that may appear in the future.

また、例えば、中間アクセサリ接続数を把握するために用いることもできる。カメラ制御部105に対して第2の識別情報以外の識別情報を送信するアクセサリは交換レンズ10ではないことから、中間アクセサリであると判断することが可能であるためである。   Also, for example, it can be used to grasp the number of intermediate accessory connections. This is because an accessory that transmits identification information other than the second identification information to the camera control unit 105 is not the interchangeable lens 10, and thus can be determined to be an intermediate accessory.

中間アクセサリの接続数を把握した場合には、例えば所定数以上の中間アクセサリが装着されている場合は、ユーザへの警告動作を行ってもよいし、いずれかの中間アクセサリの機能を制限してもよい。これにより、消費電力を削減したり、通信品質を保つことが可能ある。ファームアップなど大量のデータを中間アクセサリに送信する場合は、中間アクセサリが1つだけ接続されていると判別した場合に限って中間アクセサリのファームアップモードへ遷移することを許可するなどしてもよい。   When the number of connected intermediate accessories is grasped, for example, when a predetermined number or more of the intermediate accessories are attached, a warning operation to the user may be performed, or the function of any of the intermediate accessories may be restricted. Is also good. This makes it possible to reduce power consumption and maintain communication quality. When a large amount of data is transmitted to the intermediate accessory such as firmware up, the transition to the firmware up mode of the intermediate accessory may be permitted only when it is determined that only one intermediate accessory is connected. .

また、交換レンズ10が中間アクセサリではなくレンズであると判別されることで、第2通信の初期通信においてレンズ制御部113からカメラ制御部105へと送信すべき情報を削減することも可能である。例えば補正処理要否情報をレンズ制御部113からカメラ制御部105へ応答しないようにしても良い。中間アクセサリではない交換レンズ10の装着によって、交換レンズ10の光学情報の補正は必要とならないためである。   Further, by determining that the interchangeable lens 10 is not an intermediate accessory but a lens, information to be transmitted from the lens control unit 113 to the camera control unit 105 in the initial communication of the second communication can be reduced. . For example, the correction processing necessity information may not be responded from the lens control unit 113 to the camera control unit 105. This is because the optical information of the interchangeable lens 10 need not be corrected by mounting the interchangeable lens 10 that is not an intermediate accessory.

また、例えば、以下に末端のアクセサリが交換レンズであるか中間アクセサリであるかを電気的に判別し、その判別結果を第2の識別情報と照らし合わせるために用いても良い。以下に、より詳しく説明する。述べるようにハード処理との整合性を確認することによって通信エラーを判定することもできる。   Further, for example, the following may be used to electrically determine whether the terminal accessory is an interchangeable lens or an intermediate accessory, and compare the determination result with the second identification information. The details will be described below. As described above, a communication error can be determined by checking the consistency with the hardware processing.

本実施例では、実施例1から4での交換レンズもしくは中間アクセサリとの初期通信において、末端のアクセサリが交換レンズであるか中間アクセサリであるかを電気的に判別する方法について一例を説明する。さらに、その判別結果が第2通信により取得した識別情報により判断される第2通信の末端にあたるアクセサリとの不整合があった場合のエラー処理について説明する。   In the present embodiment, an example of a method of electrically determining whether the terminal accessory is an interchangeable lens or an intermediate accessory in the initial communication with the interchangeable lens or the intermediate accessory in the first to fourth embodiments will be described. Further, an error process when the discrimination result is inconsistent with the accessory at the end of the second communication, which is determined based on the identification information acquired by the second communication, will be described.

<実施例4におけるカメラシステムの構成(図12、図13)>
以下に、末端のアクセサリが交換レンズであるか中間アクセサリであるかを電気的に判別する方法について一例を説明する。なお、当該判別は、第2通信の初期通信においてなされるものとする。
<Configuration of Camera System in Embodiment 4 (FIGS. 12 and 13)>
Hereinafter, an example of a method of electrically determining whether the terminal accessory is an interchangeable lens or an intermediate accessory will be described. Note that this determination is made in the initial communication of the second communication.

まずは、第2通信の末端に交換レンズ10が装着されている場合の構成について説明する。図1218に示すようにカメラ本体20のマウント201は識別端子212を含む。また、中間アクセサリ30のマウント302は識別端子313を、マウント302は識別田因子313を含む。また、中間アクセサリ40のマウント402は識別端子413を、マウント401は識別端子412を含む。また、交換レンズ10のマウント101は識別端子を含む。これらの識別端子を介して接続されるライン(識別ラインとも称する)は、交換レンズ10に設けた抵抗器118に接続されている。また、このラインはカメラ本体20内に設けられた抵抗器213を通してプルアップ接続されている。プルアップ電源の電圧レベルを抵抗器118と抵抗器213の各抵抗値で分圧した値がカメラ制御部205に入力される。   First, a configuration in the case where the interchangeable lens 10 is mounted at the end of the second communication will be described. As shown in FIG. 1218, the mount 201 of the camera body 20 includes an identification terminal 212. The mount 302 of the intermediate accessory 30 includes the identification terminal 313, and the mount 302 includes the identification field factor 313. The mount 402 of the intermediate accessory 40 includes the identification terminal 413, and the mount 401 includes the identification terminal 412. The mount 101 of the interchangeable lens 10 includes an identification terminal. Lines (also referred to as identification lines) connected via these identification terminals are connected to a resistor 118 provided on the interchangeable lens 10. This line is connected to a pull-up through a resistor 213 provided in the camera body 20. A value obtained by dividing the voltage level of the pull-up power supply by each resistance value of the resistor 118 and the resistor 213 is input to the camera control unit 205.

次に、第2通信の末端が中間アクセサリ40である場合の構成について説明する。図13に示すように、第2通信の末端が交換レンズである場合と同様に、識別端子212,313,312,413を介した識別ラインが、中間アクセサリ40に設けた抵抗器414に接続されている。カメラ制御部205への入力は、カメラ本体20のプルアップ電源の電圧レベルを抵抗器414と抵抗器213の各抵抗値で分圧した値となる。   Next, a configuration in the case where the end of the second communication is the intermediate accessory 40 will be described. As shown in FIG. 13, the identification line via the identification terminals 212, 313, 312, and 413 is connected to the resistor 414 provided on the intermediate accessory 40, as in the case where the end of the second communication is an interchangeable lens. ing. The input to the camera control unit 205 is a value obtained by dividing the voltage level of the pull-up power supply of the camera body 20 by the resistance values of the resistor 414 and the resistor 213.

<実施例4における、第2通信エラー判別方法(図15)>
ここで、交換レンズ10に用いる抵抗器の抵抗値と末端となる中間アクセサリに用いる抵抗器の抵抗値をあらかじめ異なる値となるように規定しておく。これにより、識別端子を介した入力信号のレベルから、末端のアクセサリが交換レンズか否かを電気的に判別することが可能となる。
<Second Communication Error Determination Method in Fourth Embodiment (FIG. 15)>
Here, the resistance value of the resistor used for the interchangeable lens 10 and the resistance value of the resistor used for the intermediate accessory at the end are defined so as to be different values in advance. This makes it possible to electrically determine whether or not the terminal accessory is an interchangeable lens based on the level of the input signal via the identification terminal.

電気的に判別した末端のアクセサリが交換レンズ10であった場合、第2通信による初期通信で取得した末端のアクセサリの識別情報として第2の識別情報が得られるはずである。一方で、電気的に判別した末端のアクセサリが中間アクセサリであった場合、第2通信による初期通信で取得した末端のアクセサリの識別情報は第2の識別情報とは異なる情報であるはずであり、具体的には中間アクセサリ識別情報のはずである。   When the terminal accessory electrically determined is the interchangeable lens 10, the second identification information should be obtained as the terminal accessory identification information acquired in the initial communication by the second communication. On the other hand, if the terminal accessory electrically determined is the intermediate accessory, the identification information of the terminal accessory acquired in the initial communication by the second communication should be different from the second identification information, Specifically, it should be intermediate accessory identification information.

しかしながら、第2通信に何らかの問題が生じている場合には、上述の対応関係に齟齬が生じてしまう場合がある。そこで、電気的に判別した末端アクセサリと第2通信により取得した識別情報に不整合がある場合は、通信エラーが発生したと判断し、初期通信からリトライを行うことで、より正確に通信を行うことができる。   However, if any problem occurs in the second communication, the above-mentioned correspondence may be inconsistent. Therefore, when there is an inconsistency between the electrically determined terminal accessory and the identification information acquired by the second communication, it is determined that a communication error has occurred, and a more accurate communication is performed by retrying from the initial communication. be able to.

このように、電気的な識別情報と第2通信により取得した識別情報を照合することによって第2通信で正しく通信できているかを確認することができる。取得した識別情報が正しいかを判別できる。これにより、第2通信の通信エラーを検出することが可能となる。   As described above, by comparing the electrical identification information with the identification information acquired by the second communication, it is possible to confirm whether the communication has been correctly performed in the second communication. It can be determined whether the acquired identification information is correct. This makes it possible to detect a communication error of the second communication.

<実施例4の効果>
以上説明したように、本実施例では、第2のレンズ識別情報を、交換レンズ10の種類(機種)に対応する第1のレンズ識別情報とは異なる情報であってレンズであることを示す情報とする。これにより、例えば、第2通信によって通信を行うアクセサリの識別性能をより向上させることが可能である。
<Effect of Embodiment 4>
As described above, in the present embodiment, the second lens identification information is information that is different from the first lens identification information corresponding to the type (model) of the interchangeable lens 10 and indicates that the lens is a lens. And Thereby, for example, it is possible to further improve the identification performance of the accessory that performs communication by the second communication.

<その他の実施例>
なお、上述の実施例では、第1のアクセサリは補正に関わるアクセサリのうち、他の全アクセサリの光学情報を保持するアクセサリであるとして説明した。しかし、補正に関わるアクセサリのうち互いの光学情報を最も多く有しているアクセサリであっても良い。つまり、光学情報を有していないアクセサリがあっても良い。その場合、この場合、不足している光学情報を他のユニットから取得するようにしても良い。
<Other Examples>
In the above-described embodiment, the first accessory has been described as an accessory that holds optical information of all other accessories among the accessories related to the correction. However, among accessories related to correction, an accessory having the most optical information of each other may be used. That is, there may be an accessory having no optical information. In this case, in this case, the missing optical information may be obtained from another unit.

また、上述の実施例の初期通信において、レンズ制御部113は、S404とS520において交換レンズ10の識別情報を送信している。ここで、例えば、S520にて送信する識別情報は、中間アクセサリではないことを示す識別情報としても良い。   In the initial communication of the above-described embodiment, the lens control unit 113 transmits the identification information of the interchangeable lens 10 in S404 and S520. Here, for example, the identification information transmitted in S520 may be identification information indicating that it is not an intermediate accessory.

また、上述の実施例の図5の初期通信において、各アクセサリはカメラ制御部205に認証情報として複数の情報を送信しているが、必要な情報のみを送信するようにしても良い。この場合、カメラは当該必要な情報を特定して、各アクセサリに情報要求を送信する。   In addition, in the initial communication of FIG. 5 in the above-described embodiment, each accessory transmits a plurality of pieces of information as authentication information to the camera control unit 205, but only the necessary information may be transmitted. In this case, the camera specifies the necessary information and transmits an information request to each accessory.

また、上述の実施例においては中間アクセサリが2つの場合について説明したが、3つ以上の場合には、複数の中間アクセサリの中で他の中間アクセサリの光学情報をすべて有しているものか、より多く有しているものが、第1の中間アクセサリであるとする。   Further, in the above-described embodiment, the case where the number of intermediate accessories is two has been described. However, in the case of three or more, whether all of the optical information of the other intermediate accessories among the plurality of intermediate accessories is included, It is assumed that what has more is the first intermediate accessory.

実施例2で、動的アクセサリが交換レンズ10の光学情報の補正を行うようにしても良い。この場合、動的アクセサリが他のアクセサリの光学情報をあらかじめ取得するようにしても良い。動的アクセサリが交換レンズ10の光学情報を補正した場合には、補正した光学情報をカメラ本体20へと送信する。   In the second embodiment, the dynamic accessory may correct the optical information of the interchangeable lens 10. In this case, the dynamic accessory may acquire the optical information of another accessory in advance. When the dynamic accessory corrects the optical information of the interchangeable lens 10, the corrected accessory transmits the corrected optical information to the camera body 20.

実施例2で、第1のアクセサリが複数ある場合には、動的アクセサリが交換レンズ10の光学情報の補正を行うようにしても良い。   In the second embodiment, when there are a plurality of first accessories, the dynamic accessory may correct the optical information of the interchangeable lens 10.

実施例3では、カメラ本体20において光学レンズ10の光学情報の補正を行う場合について説明した。これに対し、交換レンズ10において光学情報の補正をするようにしても良い。この場合、カメラ制御部205はレンズ制御部113に、交換レンズ10の光学情報の補正を行う要求を送信する。その際、交換レンズ10は、補正が必要な中間アクセサリの光学情報が不足している場合には、中間アクセサリの光学情報を必要に応じてカメラ本体20又は中間アクセサリから取得するようにしても良い。   In the third embodiment, the case where the optical information of the optical lens 10 is corrected in the camera body 20 has been described. On the other hand, optical information may be corrected in the interchangeable lens 10. In this case, the camera control unit 205 transmits a request for correcting the optical information of the interchangeable lens 10 to the lens control unit 113. At this time, if the optical information of the intermediate accessory that needs to be corrected is insufficient, the interchangeable lens 10 may acquire the optical information of the intermediate accessory from the camera body 20 or the intermediate accessory as needed. .

実施例4では、補正の方法に関する情報と補正のパラメータに関する情報とをカメラ制御部205が中間アクセサリ制御部309から取得し、これらの情報をレンズ制御部113に送信する例を説明した。ここで、中間アクセサリ30が実施例2で説明したような動的中間アクセサリであり、補正のパラメータに関する情報が変化し得る場合には、当該変化の検出に応じて補正のパラメータに関する情報を再取得しても良い。すなわち、中間アクセサリ30の操作部材が操作されたことが検出された場合に、補正のパラメータに関する情報をカメラ制御部205が中間アクセサリ制御部309から取得し、これらの情報をレンズ制御部113に送信するようにしても良い。   Fourth Embodiment In the fourth embodiment, an example has been described in which the camera control unit 205 acquires information on a correction method and information on a correction parameter from the intermediate accessory control unit 309, and transmits the information to the lens control unit 113. Here, when the intermediate accessory 30 is a dynamic intermediate accessory as described in the second embodiment and the information on the correction parameter can change, the information on the correction parameter is reacquired in accordance with the detection of the change. You may. That is, when it is detected that the operation member of the intermediate accessory 30 has been operated, the camera control unit 205 acquires information on correction parameters from the intermediate accessory control unit 309 and transmits the information to the lens control unit 113. You may do it.

また、実施例1では、第1通信方式として、クロック同期通信を行う場合を説明したが、調歩同期式通信を行っても良い。調歩同期式通信を図12を用いて説明をする。   Further, in the first embodiment, the case where clock synchronous communication is performed as the first communication method has been described, but start-stop synchronous communication may be performed. The start-stop synchronous communication will be described with reference to FIG.

なお、図2では3線クロック同期式通信を行う場合を例示した。これに代えて、同じく通信チャネル1の3線を用いることで実現される3線調歩同期式通信を採用した場合であっても同様の効果を実現することができる。図1217は3線調歩同期式通信の通信における信号波形を示している。3線調歩同期式通信の場合は、前述のクロック通信線(LCLK)に代えて、RTS通信線(RTS)を有する。RTS通信線は、カメラ−レンズ通信線(DCL)による通信と第1のレンズ−カメラ通信線(DLC)による通信のタイミングを制御する信号をカメラマイコン205からレンズマイコン111へ送信するための信号線である。例えば、カメラマイコン205からレンズマイコン111へのレンズデータの送信要求(送信指示)や後述する通信処理の切替え要求(切替え指示)等の通知に用いられる。送信要求チャネルでの通知は該送信要求チャネルでの信号レベル(電圧レベル)をHigh(第1のレベル)とLow(第2のレベル)との間で切り替えることで行う。以下の説明では、RTS通信線に供給される信号を送信要求信号RTSという。送信要求信号RTSは、通信マスタとしてのカメラマイコン205から通信スレーブとしてのレンズマイコン111に送られる。レンズマイコン111が送信要求RTSを受信すると、レンズデータ信号DLCの1フレームの送信開始をカメラマイコン205に通知するため、レンズデータ信号DLCの信号レベルを1ビット期間の間Lowとする。この1ビット期間を1フレームの開始を示すスタートビットSTと呼ぶ。すなわち、このスタートビットSTからデータフレームが開始される。スタートビットSTは、レンズデータ信号DLCの1フレームごとにその先頭ビットに設けられている。続いて、レンズマイコン111は、次の2ビット目から9ビット目までの8ビット期間で1バイトのレンズデータを送信する。データのビット配列はMSBファーストフォーマットとして、最上位のデータD7から始まり、順にデータD6、データD5と続き、最下位のデータD0で終わる。そして、レンズマイコン111は、10ビット目に1ビットのパリティー情報PAを付加し、1フレームの最後を示すストップビットSPの期間のレンズデータ信号DLCの信号レベルをHighとする。これにより、スタートビットSTから開始されたデータフレーム期間が終了する。   FIG. 2 exemplifies a case where three-wire clock synchronous communication is performed. Instead, the same effect can be achieved even when the three-wire start-stop synchronous communication realized by using the three wires of the communication channel 1 is adopted. FIG. 1217 shows a signal waveform in the communication of the three-wire start-stop synchronous communication. In the case of three-wire asynchronous communication, an RTS communication line (RTS) is provided instead of the above-described clock communication line (LCLK). The RTS communication line is a signal line for transmitting a signal for controlling timing of communication by the camera-lens communication line (DCL) and communication timing by the first lens-camera communication line (DLC) from the camera microcomputer 205 to the lens microcomputer 111. It is. For example, it is used for notification of a request for transmission (transmission instruction) of lens data from the camera microcomputer 205 to the lens microcomputer 111, a request for switching communication processing (switching instruction) described later, and the like. The notification on the transmission request channel is performed by switching the signal level (voltage level) on the transmission request channel between High (first level) and Low (second level). In the following description, a signal supplied to the RTS communication line is called a transmission request signal RTS. The transmission request signal RTS is sent from the camera microcomputer 205 as a communication master to the lens microcomputer 111 as a communication slave. When the lens microcomputer 111 receives the transmission request RTS, the signal level of the lens data signal DLC is set to Low for one bit period to notify the camera microcomputer 205 of the start of transmission of one frame of the lens data signal DLC. This one bit period is called a start bit ST indicating the start of one frame. That is, a data frame is started from the start bit ST. The start bit ST is provided at the head bit of each frame of the lens data signal DLC. Subsequently, the lens microcomputer 111 transmits 1-byte lens data in the next 8-bit period from the second bit to the ninth bit. The bit arrangement of the data is MSB first format, starting from the highest data D7, continuing to data D6 and data D5, and ending with the lowest data D0. Then, the lens microcomputer 111 adds 1-bit parity information PA to the 10th bit, and sets the signal level of the lens data signal DLC during the stop bit SP indicating the end of one frame to High. Thus, the data frame period started from the start bit ST ends.

実施例5では、前述の実施例における第2の通信に着目して説明する。本実施例における第1の通信及び第2の通信が、前述の実施例における第2の通信経路により行う第2の通信において実行される。   The fifth embodiment will be described focusing on the second communication in the above-described embodiment. The first communication and the second communication in the present embodiment are executed in the second communication performed by the second communication path in the aforementioned embodiment.

図16は、本発明の実施例5の構成を示す。実施例5では、撮像装置としてのカメラ本体5200に交換レンズ5100および中間アダプタ5300を含む複数のアクセサリ装置が着脱可能および通信可能に装着された撮像システム(以下、カメラシステムという)について説明する。   FIG. 16 shows the configuration of the fifth embodiment of the present invention. In a fifth embodiment, an imaging system (hereinafter, referred to as a camera system) in which a plurality of accessory devices including an interchangeable lens 5100 and an intermediate adapter 5300 are detachably and communicably mounted on a camera body 5200 as an imaging device will be described.

なお、カメラ本体5200に直接(中間アダプタ5300を介さず)に交換レンズ5100を装着してもよいし、カメラ本体5200と交換レンズ5100との間に2つ以上の中間アダプタを装着してもよい。   Note that the interchangeable lens 5100 may be mounted directly on the camera main body 5200 (without the intermediate adapter 5300), or two or more intermediate adapters may be mounted between the camera main body 5200 and the interchangeable lens 5100. .

このカメラシステムでは、複数の通信回路(通信経路)を用いてカメラ本体5200と交換レンズ5100および中間アダプタ5300との間で制御命令や内部情報を通信する。またこのカメラシステムでは、複数の通信回路を、通信するデータの種類や通信目的に応じて互いに同期して同一の通信モードに切替えることにより、様々な状況に対して常に最適な通信を行うことができる。   In this camera system, control commands and internal information are communicated between the camera body 5200, the interchangeable lens 5100, and the intermediate adapter 5300 using a plurality of communication circuits (communication paths). Also, in this camera system, optimal communication can be always performed in various situations by switching multiple communication circuits to the same communication mode in synchronization with each other according to the type of data to be communicated and the purpose of communication. it can.

交換レンズ5100と中間アダプタ5300は、結合機構であるマウント5010を介して機械的および電気的に接続されている。同様に、中間アダプタ5300とカメラ本体5200は、結合機構であるマウント5011を介して機械的および電気的に接続されている。交換レンズ5100および中間アダプタ5300は、マウント5010,5011のそれぞれに設けられた不図示の電源端子部を介してカメラ本体5200から電源を取得する。これにより、後述する各種アクチュエータやレンズマイクロコンピュータ(以下、レンズマイコン5という)5111およびアダプタマイクロコンピュータ(以下、アダプタマイコン5という)5302の動作に必要な電源が供給される。   The interchangeable lens 5100 and the intermediate adapter 5300 are mechanically and electrically connected via a mount 5010 as a coupling mechanism. Similarly, the intermediate adapter 5300 and the camera body 5200 are mechanically and electrically connected via a mount 5011 which is a coupling mechanism. The interchangeable lens 5100 and the intermediate adapter 5300 obtain power from the camera body 5200 via power supply terminals (not shown) provided on the mounts 5010 and 5011, respectively. As a result, power necessary for the operation of various actuators and a lens microcomputer (hereinafter, referred to as a lens microcomputer 5) 5111 and an adapter microcomputer (hereinafter, referred to as an adapter microcomputer 5) 5302 to be described later is supplied.

また、交換レンズ5100とカメラ本体5200および中間アダプタ5300は、マウント5010,5011に設けられた通信端子部5012,5013を介して、「一対多」通信としての第1の通信を行う。また、交換レンズ5100とカメラ本体5200および中間アダプタ5300は、マウント5010,5011に設けられた通信端子部5014,5015とを介して、第1の通信とは異なる第2の通信を行う。第2の通信は、「一対多」通信ではなく、クロック同期式のシリアル通信やUART通信のような「一対一」の通信である。本実施例では、第1および第2の通信という2種類の通信を行うが、通信の種類の数は3つ以上であってもよい。   In addition, the interchangeable lens 5100, the camera body 5200, and the intermediate adapter 5300 perform first communication as “one-to-many” communication via communication terminals 5012, 5013 provided on the mounts 5010, 5011. Further, the interchangeable lens 5100, the camera body 5200, and the intermediate adapter 5300 perform a second communication different from the first communication via communication terminals 5014 and 5015 provided on the mounts 5010 and 5011. The second communication is not “one-to-many” communication, but “one-to-one” communication such as clock-synchronized serial communication or UART communication. In the present embodiment, two types of communication, that is, first and second communication are performed, but the number of types of communication may be three or more.

交換レンズ5100は、撮像光学系を有する。撮像光学系は、被写体OBJ側から順に、フィールドレンズ5101、変倍を行うズームレンズ(変倍レンズ)5102、光量を調節する絞りユニット5114、防振レンズ5103および焦点調節を行うフォーカスレンズ5104を含む。ズームレンズ5102とフォーカスレンズ5104はそれぞれ、レンズ保持枠5105,5106により保持されている。レンズ保持枠5105,5106は、不図示のガイド軸により光軸(図中に破線で示す)が延びる光軸方向に移動可能にガイドされており、ステッピングモータ5107,5108によって光軸方向に駆動される。ステッピングモータ5107,5108はそれぞれ、駆動パルスに同期してズームレンズ5102およびフォーカスレンズ5104を移動させる。   The interchangeable lens 5100 has an imaging optical system. The imaging optical system includes, in order from the object OBJ, a field lens 5101, a zoom lens (magnifying lens) 5102 for performing magnification, an aperture unit 5114 for adjusting the amount of light, an anti-vibration lens 5103, and a focus lens 5104 for adjusting focus. . The zoom lens 5102 and the focus lens 5104 are held by lens holding frames 5105 and 5106, respectively. The lens holding frames 5105 and 5106 are guided by a guide shaft (not shown) so as to be movable in the optical axis direction in which the optical axis (indicated by a broken line in the drawing) extends, and are driven in the optical axis direction by stepping motors 5107 and 5108. You. The stepping motors 5107 and 5108 respectively move the zoom lens 5102 and the focus lens 5104 in synchronization with the driving pulse.

防振レンズ5103は、ボイスコイルモータ等の防振アクチュエータ5126により撮像光学系の光軸に直交する方向にシフト駆動される。これにより、手振れ等のカメラ振れに起因する像振れを低減する防振動作が行われる。絞りユニット5114は、絞り羽根5114a,5114bを備え、これらを絞りアクチュエータ5113によって開閉方向に駆動することで光量調節を行う。絞り羽根5114a,5114bの位置は、ホール素子115により検出され、増幅回路5122およびA/D変換回路5123を介してレンズマイコン5111に入力される。   The anti-vibration lens 5103 is shifted and driven in a direction orthogonal to the optical axis of the imaging optical system by an anti-vibration actuator 5126 such as a voice coil motor. As a result, an image stabilizing operation for reducing image shake caused by camera shake such as camera shake is performed. The aperture unit 5114 is provided with aperture blades 5114a and 5114b, and drives the aperture blades 5114a and 5114b in the opening and closing directions to adjust the amount of light. The positions of the aperture blades 5114a and 5114b are detected by the Hall element 115 and input to the lens microcomputer 5111 via the amplification circuit 5122 and the A / D conversion circuit 5123.

また、交換レンズ5100は操作部材としてのレンズ電子リング5130を有する。レンズ電子リング5130はユーザによる光軸回りでの回転操作が可能であり、その回転量および回転方向はフォトインタラプタ等の回転検出器5131によって検出されてレンズマイコン5111に入力される。なお、操作部材は、スイッチ、ボタンおよびダイヤルでもよいし、タッチパネルでもよく、交換レンズ5100は複数の操作部材を備えていてもよい。   The interchangeable lens 5100 has a lens electronic ring 5130 as an operation member. The user can rotate the lens electronic ring 5130 around the optical axis, and the amount and direction of the rotation are detected by a rotation detector 5131 such as a photo interrupter and input to the lens microcomputer 5111. The operation member may be a switch, a button, a dial, or a touch panel, and the interchangeable lens 5100 may include a plurality of operation members.

アクセサリ制御部としてのレンズマイコン5111は、交換レンズ5100内の各部の動作を制御する。レンズマイコン5111は、第1の通信を行うためのレンズ第1通信回路5141または第2の通信を行うためのレンズ第2通信回路5142を介して、カメラ本体5200から送信された制御コマンドや送信要求コマンドを受信する。レンズマイコン5111は、制御コマンドに対応するレンズ制御を行ったり、レンズ第1および第2通信回路5141,5142を介して送信要求コマンドに対応するレンズデータ(アクセサリデータ)をカメラ本体5200に送信したりする。またレンズマイコン5111は、交換レンズ5100内の各部の動作に応じて、対応するレンズデータをカメラ本体5200に送信する。レンズ第1および第2通信回路5141,5142は、交換レンズ5100におけるアクセサリ通信部を構成する。   A lens microcomputer 5111 as an accessory control unit controls the operation of each unit in the interchangeable lens 5100. The lens microcomputer 5111 transmits a control command or transmission request transmitted from the camera body 5200 via the lens first communication circuit 5141 for performing the first communication or the lens second communication circuit 5142 for performing the second communication. Receive a command. The lens microcomputer 5111 performs lens control corresponding to the control command, and transmits lens data (accessory data) corresponding to the transmission request command to the camera body 5200 via the first and second lens communication circuits 5141 and 5142. I do. The lens microcomputer 5111 transmits corresponding lens data to the camera body 5200 according to the operation of each unit in the interchangeable lens 5100. The lens first and second communication circuits 5141 and 5142 constitute an accessory communication unit in the interchangeable lens 5100.

さらにレンズマイコン5111は、制御コマンドのうち変倍や焦点調節に関するコマンドや操作部材の操作に応じてズーム駆動回路5119およびフォーカス駆動回路5120に駆動信号を出力してステッピングモータ5107,5108を駆動させる。これにより、ズームレンズ5102による変倍を制御するズーム制御や、フォーカスレンズ5104による焦点調節を制御するフォーカス制御を行う。   Further, the lens microcomputer 5111 outputs a drive signal to the zoom drive circuit 5119 and the focus drive circuit 5120 in accordance with a command relating to zooming or focus adjustment among control commands and operation of an operation member to drive the stepping motors 5107 and 5108. Thus, zoom control for controlling zooming by the zoom lens 5102 and focus control for controlling focus adjustment by the focus lens 5104 are performed.

またレンズマイコン5111は、制御コマンドのうち防振に関するコマンドまたは交換レンズ5100内に設けられた振動ジャイロ等の振れセンサ(図示せず)により検出されたカメラ振れに応じて防振駆動回路5125を介して防振アクチュエータ5126を駆動させる。これにより、防振レンズ5103のシフト駆動を制御する防振制御が行われる。   In addition, the lens microcomputer 5111 is connected via a vibration-proof drive circuit 5125 in response to a vibration-related command among the control commands or a camera shake detected by a shake sensor (not shown) such as a vibration gyro provided in the interchangeable lens 5100. Then, the anti-vibration actuator 5126 is driven. Accordingly, image stabilization control for controlling shift driving of the image stabilization lens 5103 is performed.

またレンズマイコン5111は、制御コマンドのうち光量調整に関するコマンドまたは操作部材の操作に応じて絞り駆動回路5121に駆動信号を出力して絞りアクチュエータ5113を駆動させる。これにより、絞りユニット5114を制御する光量調節制御が行われる。   In addition, the lens microcomputer 5111 outputs a drive signal to the aperture drive circuit 5121 in accordance with a command related to light amount adjustment among control commands or an operation of an operation member to drive the aperture actuator 5113. Thus, light amount adjustment control for controlling the aperture unit 5114 is performed.

中間アダプタ5300は、例えば焦点距離を変更するためのテレコンバータまたはワイドコンバータであり、撮像光学系に追加される変倍レンズ301とアダプタマイクロコンピュータ(以下、アダプタマイコン5という)5302とを有する。なお、テレまたはワイドコンバータ以外の中間アダプタ、例えばフランジバック長を変化させるマウントコンバータを用いてもよい。   The intermediate adapter 5300 is, for example, a teleconverter or a wide converter for changing the focal length, and has a variable power lens 301 and an adapter microcomputer (hereinafter, referred to as an adapter microcomputer 5) 5302 added to the imaging optical system. An intermediate adapter other than the tele or wide converter, for example, a mount converter that changes the flange back length may be used.

中間アダプタ5300は、操作部材としてのアダプタ電子リング5310を有する。アダプタ電子リング5310はユーザによる光軸回りでの回転操作が可能であり、その回転量および回転方向はフォトインタラプタ等の回転検出器5311によって検出されてアダプタマイコン5302に入力される。なお、操作部材は、スイッチ、ボタンおよびダイヤルでもよいし、タッチパネルでもよく、中間アダプタ5300は複数の操作部材を備えていてもよい。   The intermediate adapter 5300 has an adapter electronic ring 5310 as an operation member. The user can rotate the adapter electronic ring 5310 around the optical axis, and the amount and direction of rotation are detected by a rotation detector 5311 such as a photo interrupter and input to the adapter microcomputer 5302. The operation member may be a switch, a button, a dial, or a touch panel, and the intermediate adapter 5300 may include a plurality of operation members.

アクセサリ制御部としてのアダプタマイコン5302は、中間アダプタ5300内の各部の動作を制御する。アダプタマイコン5302は、第1の通信を行うためのアダプタ第1通信回路5341または第2の通信を行うためのアダプタ第2通信回路5342を介して、カメラ本体5200から送信された制御コマンドや送信要求コマンドを受信する。アダプタマイコン5302は、制御コマンドに対応する中間アダプタ制御を行ったり、アダプタ第1および第2通信回路5341,5342を介して送信要求コマンドに対応するアダプタデータ(アクセサリデータ)をカメラ本体5200に送信したりする。さらにアダプタマイコン5302は、中間アダプタ5300内の各部の動作に応じて、対応するアダプタデータをカメラ本体5200に送信する。アダプタ第1および第2通信回路5341,5342は中間アダプタ5300におけるアクセサリ通信部を構成する。   Adapter microcomputer 5302 as an accessory control unit controls the operation of each unit in intermediate adapter 5300. The adapter microcomputer 5302 transmits a control command or transmission request transmitted from the camera body 5200 via the adapter first communication circuit 5341 for performing the first communication or the adapter second communication circuit 5342 for performing the second communication. Receive a command. The adapter microcomputer 5302 performs intermediate adapter control corresponding to the control command, and transmits adapter data (accessory data) corresponding to the transmission request command to the camera body 5200 via the adapter first and second communication circuits 5341 and 5342. Or Further, adapter microcomputer 5302 transmits corresponding adapter data to camera body 5200 according to the operation of each unit in intermediate adapter 5300. The adapter first and second communication circuits 5341 and 5342 constitute an accessory communication unit in the intermediate adapter 5300.

カメラ本体5200は、CCDセンサやCMOSセンサ等の撮像素子5201、A/D変換回路5202、信号処理回路5203、記録部5204、カメラマイクロコンピュータ(以下、カメラマイコン5という)5205および表示部5206を有する。   The camera body 5200 includes an imaging element 5201 such as a CCD sensor or a CMOS sensor, an A / D conversion circuit 5202, a signal processing circuit 5203, a recording unit 5204, a camera microcomputer (hereinafter, referred to as a camera microcomputer 5) 5205, and a display unit 5206. .

撮像素子5201は、撮像光学系により形成された被写体像を光電変換して電気信号(アナログ信号)を出力する。A/D変換回路5202は、撮像素子5201からのアナログ信号をデジタル信号に変換する。信号処理回路5203は、A/D変換回路5202からのデジタル信号に対して各種画像処理を行って映像信号を生成する。また、信号処理回路5203は、映像信号から被写体像のコントラスト状態(撮像光学系の焦点状態)を示すフォーカス情報や露出状態を表す輝度情報も生成する。信号処理回路5203は、映像信号を表示部5206に出力する。表示部5206は、映像信号を構図やピント状態等の確認に用いられるライブビュー画像として表示する。   The imaging element 5201 photoelectrically converts a subject image formed by the imaging optical system and outputs an electric signal (analog signal). The A / D conversion circuit 5202 converts an analog signal from the image sensor 5201 into a digital signal. The signal processing circuit 5203 performs various image processing on the digital signal from the A / D conversion circuit 5202 to generate a video signal. The signal processing circuit 5203 also generates focus information indicating the contrast state of the subject image (the focus state of the imaging optical system) and luminance information indicating the exposure state from the video signal. The signal processing circuit 5203 outputs a video signal to the display portion 5206. The display unit 5206 displays the video signal as a live view image used for checking a composition, a focus state, and the like.

カメラ制御部としてのカメラマイコン5205は、不図示の撮像指示スイッチや各種設定スイッチ等のカメラ操作部材からの入力に応じてカメラ本体5200内の各部の動作を制御する。例えば露出制御のために撮像素子5201の露光時間を制御したり、A/D変換回路5202の感度を制御したりする。   A camera microcomputer 5205 serving as a camera control unit controls the operation of each unit in the camera body 5200 in accordance with an input from a camera operation member such as an imaging instruction switch and various setting switches (not shown). For example, the exposure time of the image sensor 5201 is controlled for exposure control, and the sensitivity of the A / D conversion circuit 5202 is controlled.

またカメラマイコン5205は、第1の通信を行うためのカメラ第1通信回路5241または第2の通信を行うためのカメラ第2通信回路5242を介して、交換レンズ5100および中間アダプタ5300に制御コマンドや送信要求コマンドを送信する。例えば、カメラマイコン5205は、不図示のズームスイッチの操作に応じて、ズームレンズ5102のズーム制御に関する制御コマンドを交換レンズ5100および中間アダプタ5300に送信する。また、交換レンズ5100に対して、輝度情報に応じた光量調節制御に関する制御コマンドや、フォーカス情報に応じたフォーカス制御に関する制御コマンドを送信する。カメラ第1および第2の通信回路5241,5242はカメラ通信部を構成する。   In addition, the camera microcomputer 5205 sends control commands and commands to the interchangeable lens 5100 and the intermediate adapter 5300 via the camera first communication circuit 5241 for performing the first communication or the camera second communication circuit 5242 for performing the second communication. Send the transmission request command. For example, the camera microcomputer 5205 transmits a control command related to zoom control of the zoom lens 5102 to the interchangeable lens 5100 and the intermediate adapter 5300 in response to operation of a zoom switch (not shown). In addition, a control command related to light amount adjustment control according to luminance information and a control command related to focus control according to focus information are transmitted to the interchangeable lens 5100. The camera first and second communication circuits 5241 and 5242 constitute a camera communication unit.

さらにカメラマイコン5205は、交換レンズ5100からのレンズデータおよび中間アダプタ5300からのアダプタデータを受信する。またカメラマイコン5205は、カメラ第1および第2の通信回路5241,5242を介して得られたレンズデータもしくはアダプタデータに含まれる操作部材の操作情報に応じて、これらに関する制御コマンドを交換レンズ5100および中間アダプタ5300に送信する。   Further, the camera microcomputer 5205 receives the lens data from the interchangeable lens 5100 and the adapter data from the intermediate adapter 5300. Also, the camera microcomputer 5205 sends control commands related to these to the interchangeable lens 5100 and the operation member according to the operation information of the operation member included in the lens data or the adapter data obtained via the camera first and second communication circuits 5241 and 5242. The data is transmitted to the intermediate adapter 5300.

加えてカメラマイコン5205は、必要に応じて交換レンズ5100および中間アダプタ5300に対して、制御情報や状態情報を取得するための送信要求コマンドを送信する。   In addition, the camera microcomputer 5205 transmits a transmission request command for acquiring control information and status information to the interchangeable lens 5100 and the intermediate adapter 5300 as necessary.

次に、図17を参照して、カメラ本体5200と交換レンズ5100および中間アダプタ5300との間で第1の通信(「一対多」通信)を行うための通信回路について説明する。なお、以下に説明する通信回路は例に過ぎず、「一対多」通信を行える通信回路であれば以下の構成以外の構成を有していてもよい。   Next, a communication circuit for performing first communication (“one-to-many” communication) between the camera body 5200, the interchangeable lens 5100, and the intermediate adapter 5300 will be described with reference to FIG. Note that the communication circuit described below is merely an example, and any communication circuit capable of performing “one-to-many” communication may have a configuration other than the following configuration.

第1の通信は、カメラマイコン5205はカメラ第1通信回路5241を、レンズマイコン5111はレンズ第1通信回路5141を、アダプタマイコン5302はアダプタ第1通信回路5341をそれぞれ介して行われる。カメラ第1通信回路5241、レンズ第1通信回路5141およびアダプタ第1通信回路5341は、マウント5010,5011に設けられた通信端子部5012,5013を介して接続された信号線(後述するCSおよびDATA)を通じて第1の通信を行う。カメラ第1通信回路5241は、接地スイッチ52081と入出力切換えスイッチ52082とによって構成されている。レンズ第1通信回路5141は、接地スイッチ51121と入出力切換えスイッチ51122とによって構成されている。アダプタ第1通信回路5341は、接地スイッチ53031と入出力切換えスイッチ53032とによって構成されている。   The first communication is performed by the camera microcomputer 5205 via the camera first communication circuit 5241, the lens microcomputer 5111 via the lens first communication circuit 5141, and the adapter microcomputer 5302 via the adapter first communication circuit 5341. The camera first communication circuit 5241, the lens first communication circuit 5141, and the adapter first communication circuit 5341 are connected to signal lines (CS and DATA described later) connected via communication terminal portions 5012 and 5013 provided on the mounts 5010 and 5011. 1) to perform the first communication. The camera first communication circuit 5241 includes a ground switch 52081 and an input / output changeover switch 52082. The lens first communication circuit 5141 includes a ground switch 51121 and an input / output switch 51122. The adapter first communication circuit 5341 includes a ground switch 53031 and an input / output switch 53032.

信号線は、通信の制御を行うための信号を伝搬する信号線CS(第1の信号線)と、送受信するデータを伝搬する信号線DATA(第2の信号線)の2本で構成される。信号線CSは、カメラマイコン5205、アダプタマイコン5302およびレンズマイコン5111に接続されており、該信号線CSの状態(Hi/Low)の検出が可能である。また、信号線CSは、カメラ本体5200内で不図示の電源にプルアップ接続されているとともに、交換レンズ5100の接地スイッチ51121、カメラ本体5200の接地スイッチ52081および中間アダプタ5300の接地スイッチ53031を介してGNDと接続可能となっている。すなわち、オープンドレイン接続が可能となっている。   The signal line includes a signal line CS (first signal line) for transmitting a signal for controlling communication and a signal line DATA (second signal line) for transmitting data to be transmitted and received. . The signal line CS is connected to the camera microcomputer 5205, the adapter microcomputer 5302, and the lens microcomputer 5111, and can detect the state (Hi / Low) of the signal line CS. The signal line CS is connected to a power supply (not shown) in the camera body 5200 by a pull-up connection, and via a ground switch 51121 of the interchangeable lens 5100, a ground switch 52081 of the camera body 5200, and a ground switch 53031 of the intermediate adapter 5300. Connected to GND. That is, open drain connection is possible.

この構成により、交換レンズ5100、カメラ本体5200および中間アダプタ5300は、それぞれの接地スイッチをオン(接続)することにより信号線CSの状態をLowにすることができる。一方、交換レンズ5100、カメラ本体5200および中間アダプタ5300の全てがそれぞれの接地スイッチをオフ(遮断)することで、信号線CSの状態をHiとすることができる。なお、通信時に信号線CSを使用して伝搬する制御信号の内容や操作手順の詳細については後述する。   With this configuration, the state of the signal line CS of the interchangeable lens 5100, the camera body 5200, and the intermediate adapter 5300 can be set to Low by turning on (connecting) the respective ground switches. On the other hand, when the interchangeable lens 5100, the camera body 5200, and the intermediate adapter 5300 all turn off (cut off) their respective ground switches, the state of the signal line CS can be set to Hi. The details of the control signal and the operation procedure propagated using the signal line CS during communication will be described later.

信号線DATAは、データの伝搬方向を切り換えながら使用可能な単線の双方向データ送信線である。信号線DATAは、交換レンズ5100の入出力切換えスイッチ51122、送信バッファ51123および受信バッファ51124を介してレンズマイコン5111と接続可能である。また、信号線DATAは、カメラ本体5200の入出力切換えスイッチ52082、送信バッファ52083および受信バッファ52084を介してカメラマイコン5205と接続可能である。さらに、信号線DATAは、中間アダプタの入出力切換えスイッチ53032、送信バッファ53033および受信バッファ53034を介してアダプタマイコン5302と接続可能である。カメラマイコン5205、レンズマイコン5111およびアダプタマイコン5302は、それぞれの入出力切換えスイッチ52082,51122,53032を操作することで、信号線DATAを送信バッファ51123,52083,53033に接続するか受信バッファ51024,52084,53034に接続するかを選択することができる。   The signal line DATA is a single bidirectional data transmission line that can be used while switching the data propagation direction. The signal line DATA can be connected to the lens microcomputer 5111 via the input / output switch 51122, the transmission buffer 51123, and the reception buffer 51124 of the interchangeable lens 5100. The signal line DATA can be connected to the camera microcomputer 5205 via the input / output switch 52082, the transmission buffer 52083, and the reception buffer 52084 of the camera body 5200. Further, the signal line DATA can be connected to the adapter microcomputer 5302 via the input / output changeover switch 53032, the transmission buffer 53033, and the reception buffer 53034 of the intermediate adapter. The camera microcomputer 5205, the lens microcomputer 5111, and the adapter microcomputer 5302 operate the respective input / output change-over switches 52082, 51122, and 53032 to connect the signal line DATA to the transmission buffers 51123, 52083, and 53033, or to connect to the reception buffers 51024 and 52084. , 53034.

この構成により、カメラマイコン5205、レンズマイコン5111およびアダプタマイコン5302は、自身がデータを送信する場合には、信号線DATAを送信バッファ51123,52083,53033と接続するようにそれぞれの入出力切換えスイッチ52082,51122,53032を操作する。これにより、データ送信が可能となる。一方、カメラマイコン5205、レンズマイコン5111およびアダプタマイコン5302は、自身がデータを受信する場合には、信号線DATAを受信バッファ51024,52084,53034と接続するようにそれぞれの入出力切換えスイッチ52082,51122,53032を操作する。これにより、データ受信が可能となる。また、送信バッファ51123,52083,53033および受信バッファ51024,52084,53034は、それぞれのバッファサイズに収まる範囲で連続して送信および受信が可能な構成を有する。通信時における信号線DATAの入出力切換え手順の詳細については後述する。   With this configuration, when the camera microcomputer 5205, the lens microcomputer 5111, and the adapter microcomputer 5302 transmit data, the camera microcomputer 5205, the lens microcomputer 5111, and the adapter microcomputer 5302 connect to the transmission buffers 51123, 52083, and 53033. , 51122, 53032. Thereby, data transmission becomes possible. On the other hand, when the camera microcomputer 5205, the lens microcomputer 5111, and the adapter microcomputer 5302 receive the data, the respective microcomputers 52082 and 51122 connect the signal lines DATA to the receiving buffers 51024, 52804, and 53034, respectively. , 53032. Thereby, data reception becomes possible. The transmission buffers 51123, 52083, and 53033 and the reception buffers 51024, 52084, and 53034 have a configuration in which transmission and reception can be performed continuously within a range that can be accommodated in each buffer size. The details of the input / output switching procedure of the signal line DATA during communication will be described later.

図17に示した通信回路の構成は例に過ぎず、他の構成であってもよい。例えば、信号線CSをカメラ本体5200内でGNDにプルダウン接続するとともに、交換レンズ5100の接地スイッチ51121、カメラ本体5200の接地スイッチ52081および中間アダプタ5300の接地スイッチ53031を介して不図示の電源と接続可能な構成としてもよい。また、信号線DATAを常にそれぞれのデータ入力部に接続される構成とし、信号線DATAとそれぞれのデータ出力部との接続/遮断をスイッチにより切換え操作可能な構成としてもよい。   The configuration of the communication circuit shown in FIG. 17 is merely an example, and another configuration may be used. For example, the signal line CS is pulled down to GND in the camera body 5200, and is connected to a power supply (not shown) via the ground switch 51121 of the interchangeable lens 5100, the ground switch 52081 of the camera body 5200, and the ground switch 53031 of the intermediate adapter 5300. A possible configuration may be adopted. Alternatively, the signal line DATA may be always connected to each data input unit, and the connection / disconnection between the signal line DATA and each data output unit may be switched by a switch.

次に、図18に示す信号波形を参照して、第1の通信(「一対多」通信)を行うためにカメラ本体5200、交換レンズ5100および中間アダプタ5300間で信号線DATAを使用してやり取りされる通信データのフォーマットについて説明する。なお、このフォーマットは、後述する第1の通信モードであるブロードキャスト通信モードおよび第2の通信モードであるP2P通信モードにおいて共通である。また、通信データのフォーマットとしては、予め相互間で規定された通信速度に沿った通信ビットレートで送受信を行う、いわゆる調歩同期式通信を基本としている。   Next, referring to the signal waveforms shown in FIG. 18, the first communication (“one-to-many” communication) is exchanged between the camera body 5200, the interchangeable lens 5100, and the intermediate adapter 5300 using the signal line DATA. The format of the communication data will be described. This format is common to a broadcast communication mode as a first communication mode and a P2P communication mode as a second communication mode, which will be described later. The format of the communication data is based on so-called start-stop synchronous communication in which transmission and reception are performed at a communication bit rate in accordance with a communication speed defined in advance between each other.

まず、データ送信を行っていない非送信状態では、信号レベルはHi状態に維持されている。次に、データの送信開始をデータ受信側へ通知するために、信号レベルが1ビット期間の間、Lowレベルにされる。この1ビット期間をスタートビットSTと呼ぶ。続いて、次の2ビット目から9ビット目までの8ビット期間で1バイトのデータが送信される。データのビット配列はMSBファーストフォーマットに従い、最上位のデータD7から始まり、順にデータD6、データD5、データD4、データD3、データD2、データD1と続き、最下位のデータD0で終わる。続いて、10ビット目には、1ビットのパリティPA情報が付加され、最後に送信データの最後を示すストップビットSPの期間、信号レベルがHiとされる。これにより、スタートビットSTから開始されタ51フレーム期間が終了する。   First, in a non-transmission state in which data transmission is not performed, the signal level is maintained in a Hi state. Next, in order to notify the data receiving side of the start of data transmission, the signal level is set to the Low level for one bit period. This one bit period is called a start bit ST. Subsequently, 1-byte data is transmitted in the next 8-bit period from the second bit to the ninth bit. According to the MSB first format, the bit arrangement of the data starts from the highest-order data D7, continues to data D6, data D5, data D4, data D3, data D2, data D1, and ends with the lowest data D0. Subsequently, 1-bit parity PA information is added to the 10th bit, and the signal level is set to Hi during the last stop bit SP indicating the end of the transmission data. As a result, starting from the start bit ST, the frame period 51 ends.

なお、図18に示した通信データフォーマットは例に過ぎず、他の通信データフォーマットを採用してもよい。例えば、データのビット配列はLSBファーストや9ビット長でもよいし、データにパリティPA情報を付加しなくてもよい。また、後述する第1の通信モードであるブロードキャスト通信と第2の通信モードであるP2P通信とでデータフォーマットを切り換えてもよい。   Note that the communication data format shown in FIG. 18 is merely an example, and another communication data format may be adopted. For example, the bit arrangement of the data may be LSB first or 9 bits long, and the parity PA information need not be added to the data. Further, the data format may be switched between broadcast communication as a first communication mode and P2P communication as a second communication mode, which will be described later.

次に、図19Aおよび図19Bに示す信号波形を参照して、第1の通信を行うためにカメラ本体5200、交換レンズ5100および中間アダプタ5300間で、信号線CSと信号線DATAを使用して行われるブロードキャスト通信について説明する。ブロードキャスト通信は、カメラマイコン5205、レンズマイコン5111およびアダプタマイコン5302のうちのいずれかから他に対して同時にデータを送信する「一対多」の一斉配信を行う。   Next, referring to the signal waveforms shown in FIGS. 19A and 19B, the first communication is performed between the camera body 5200, the interchangeable lens 5100, and the intermediate adapter 5300 using the signal line CS and the signal line DATA. The broadcast communication to be performed will be described. In the broadcast communication, “one-to-many” simultaneous transmission is performed in which data is simultaneously transmitted from one of the camera microcomputer 5205, the lens microcomputer 5111, and the adapter microcomputer 5302 to the other.

図19Aは、例として、カメラマイコン5205からレンズマイコン5111とアダプタマイコン5302へのブロードキャスト通信に応答してアダプタマイコン5302からカメラマイコン5205とレンズマイコン5111にブロードキャスト通信を行う場合を示す。   FIG. 19A shows a case where broadcast communication is performed from the adapter microcomputer 5302 to the camera microcomputer 5205 and the lens microcomputer 5111 in response to broadcast communication from the camera microcomputer 5205 to the lens microcomputer 5111 and the adapter microcomputer 5302, for example.

まず、通信マスタであるカメラマイコン5205は、ブロードキャスト通信を開始することを通信スレーブであるレンズマイコン5111およびアダプタマイコン5302に通知するために、信号線CSへのLow出力を開始する(5401)。次にカメラマイコン5205は、送信するデータを送信バッファ52083に格納し、送信開始とともに前述の通信フォーマットに従って信号線DATAに出力する(5402)。一方、レンズマイコン5111とアダプタマイコン5302は、信号線DATAから入力されたスタートビットSTを検出したタイミングで信号線CSへのLow出力を開始する(5403,5404)。なお、この時点ではすでにカメラマイコン5205が信号線CSへのLow出力を開始しているので、信号線CSに伝搬される信号レベルは変化しない。   First, the camera microcomputer 5205 serving as a communication master starts low output to the signal line CS in order to notify the lens microcomputer 5111 and the adapter microcomputer 5302 serving as communication slaves that broadcast communication is started (5401). Next, the camera microcomputer 5205 stores the data to be transmitted in the transmission buffer 52083, and outputs the data to the signal line DATA according to the above-described communication format at the start of transmission (5402). On the other hand, the lens microcomputer 5111 and the adapter microcomputer 5302 start outputting Low to the signal line CS at the timing when the start bit ST input from the signal line DATA is detected (5403, 5404). At this point, since the camera microcomputer 5205 has already started outputting Low to the signal line CS, the signal level propagated to the signal line CS does not change.

次にカメラマイコン5205は、最終データのストップビットSPの出力まで終了した後、信号線CSへのLow出力を解除する(5405)。一方、レンズマイコン5111とアダプタマイコン5302は、信号線DATAから入力されたストップビットSPまで受信するごとに受信バッファ51124,53034にデータを格納する。そして、信号線CSへのLowを検出すると、受信バッファ51124,53034からデータを取り出して、該データに対する内部処理を行う。さらに、次のデータを受信するための準備が整った後に信号線CSへのLow出力を解除する(5406,5407)。前述した通り、信号線CSの信号レベルは、カメラマイコン5205、レンズマイコン5111およびアダプタマイコン5302の全てが信号線CSへのLow出力を解除することでHiとなる。したがって、カメラマイコン5205、レンズマイコン5111およびアダプタマイコン5302は、それぞれが信号線CSへのLow出力を解除した後に信号線CSの信号レベルがHiとなることを確認する。これにより、カメラマイコン5205、レンズマイコン5111およびアダプタマイコン5302はそれぞれ、今回の通信に関する処理を終了し、次の通信を行うための準備が整ったことを判断することができる。   Next, after completing the output of the stop bit SP of the final data, the camera microcomputer 5205 releases the Low output to the signal line CS (5405). On the other hand, the lens microcomputer 5111 and the adapter microcomputer 5302 store data in the reception buffers 51124 and 53034 every time the stop microcomputer SP receives the stop bit SP input from the signal line DATA. Then, when Low is detected on the signal line CS, data is taken out from the reception buffers 51124 and 53034, and internal processing is performed on the data. Further, after the preparation for receiving the next data is completed, the Low output to the signal line CS is released (5406, 5407). As described above, the signal level of the signal line CS becomes Hi when all of the camera microcomputer 5205, the lens microcomputer 5111, and the adapter microcomputer 5302 cancel the Low output to the signal line CS. Therefore, the camera microcomputer 5205, the lens microcomputer 5111, and the adapter microcomputer 5302 confirm that the signal level of the signal line CS becomes Hi after releasing the Low output to the signal line CS, respectively. As a result, the camera microcomputer 5205, the lens microcomputer 5111, and the adapter microcomputer 5302 can each determine that the processing related to the current communication has been completed and the preparations for performing the next communication have been completed.

次にアダプタマイコン5302は、信号線CSの信号レベルがHiに戻ったことを確認した後、ブロードキャスト通信を開始することをカメラマイコン5205とレンズマイコン5111に通知するために、信号線CSへのLow出力を開始する(5411)。   Next, after confirming that the signal level of the signal line CS has returned to Hi, the adapter microcomputer 5302 sends a Low signal to the signal line CS to notify the camera microcomputer 5205 and the lens microcomputer 5111 that broadcast communication is to be started. Output is started (5411).

次にアダプタマイコン5302は、送信するデータを送信バッファ53033に格納し、送信開始とともに前述の通信フォーマットに従って信号線DATAに出力する(5412)。一方、カメラマイコン5205とレンズマイコン5111は、信号線DATAから入力されたスタートビットSTを検出したタイミングで信号線CSへのLow出力を開始する(5413,5414)。なお、この時点ではすでにアダプタマイコン5302が信号線CSへのLow出力を開始しているので、信号線CSに伝搬される信号レベルは変化しない。   Next, the adapter microcomputer 5302 stores the data to be transmitted in the transmission buffer 53033, and outputs the data to the signal line DATA according to the above-described communication format at the start of transmission (5412). On the other hand, the camera microcomputer 5205 and the lens microcomputer 5111 start low output to the signal line CS at the timing when the start bit ST input from the signal line DATA is detected (5413, 5414). At this point, since the adapter microcomputer 5302 has already started outputting Low to the signal line CS, the signal level transmitted to the signal line CS does not change.

次にアダプタマイコン5302は、最終データのストップビットSPの出力まで終了した後、信号線CSへのLow出力を解除する(5415)。一方、カメラマイコン5205とレンズマイコン5111は、信号線DATAから入力されたストップビットSPまで受信するごとに受信バッファ52084,51124にデータを格納し、信号線CSへのLowを検出したら受信バッファ52084,51124からデータを取り出す。そして、該データに対する内部処理を行い、次のデータを受信するための準備が整った後に信号線CSへのLow出力を解除する(5416,5417)。   Next, after completing the output of the stop bit SP of the final data, the adapter microcomputer 5302 releases the Low output to the signal line CS (5415). On the other hand, the camera microcomputer 5205 and the lens microcomputer 5111 store the data in the reception buffers 52084 and 51124 each time the stop bit SP input from the signal line DATA is received, and when the Low is applied to the signal line CS, the reception buffer 52084 The data is extracted from 51124. Then, internal processing is performed on the data, and after the preparation for receiving the next data is completed, the Low output to the signal line CS is released (5416, 5417).

図19Bは、レンズマイコン5111からブロードキャスト通信の開始を通知する場合を例として示す。この例では、カメラマイコン5205からレンズマイコン5111とアダプタマイコン5302へのブロードキャスト通信に応答してアダプタマイコン5302からカメラマイコン5205とレンズマイコン5111にブロードキャスト通信を行う。   FIG. 19B shows a case where the start of broadcast communication is notified from the lens microcomputer 5111 as an example. In this example, in response to broadcast communication from the camera microcomputer 5205 to the lens microcomputer 5111 and the adapter microcomputer 5302, broadcast communication is performed from the adapter microcomputer 5302 to the camera microcomputer 5205 and the lens microcomputer 5111.

まずレンズマイコン5111は、ブロードキャスト通信を開始することをカメラマイコン5205とアダプタマイコン5302に通知するために、信号線CSへのLow出力を開始する(5421)。次にカメラマイコン5205は、信号線CSの信号レベルがLowレベルになったことを検出すると、信号線CSへのLow出力を開始する(5422)。なお、この時点ではすでにレンズマイコン5111が信号線CSへのLow出力を開始しているので、信号線CSに伝搬される信号レベルは変化しない。   First, the lens microcomputer 5111 starts low output to the signal line CS in order to notify the camera microcomputer 5205 and the adapter microcomputer 5302 that broadcast communication is started (5421). Next, when detecting that the signal level of the signal line CS has become Low level, the camera microcomputer 5205 starts outputting Low to the signal line CS (5422). At this point, since the lens microcomputer 5111 has already started outputting Low to the signal line CS, the signal level propagated to the signal line CS does not change.

次にカメラマイコン5205は、送信するデータを送信バッファ52083に格納し、送信開始とともに前述した通信フォーマットに従って信号線DATAに出力する(5423)。一方、アダプタマイコン5302は、信号線DATAから入力されたスタートビットSTを検出したタイミングで信号線CSへのLow出力を開始する(5424)。なお、この時点ではすでにカメラマイコン5205が信号線CSへのLow出力を開始しているので、信号線CSに伝搬される信号レベルは変化しない。   Next, the camera microcomputer 5205 stores the data to be transmitted in the transmission buffer 52083, and outputs the data to the signal line DATA in accordance with the above-described communication format when transmission starts (5423). On the other hand, the adapter microcomputer 5302 starts low output to the signal line CS at the timing when the start bit ST input from the signal line DATA is detected (5424). At this point, since the camera microcomputer 5205 has already started outputting Low to the signal line CS, the signal level propagated to the signal line CS does not change.

次にカメラマイコン5205は、最終データのストップビットSPの出力まで終了した後、信号線CSへのLow出力を解除する(5425)。一方、レンズマイコン5111とアダプタマイコン5302は、信号線DATAから入力されたストップビットSPまで受信するごとに受信バッファ51124,53034にデータを格納し、信号線CSへのLowを検出したら受信バッファ51124,53034からデータを取り出する。そして、該データに対する内部処理を行い、次のデータを受信するための準備が整った後に信号線CSへのLow出力を解除する(5426,5427)。前述した通り、信号線CSの信号レベルは、カメラマイコン5205、レンズマイコン5111およびアダプタマイコン5302の全てが信号線CSへのLow出力を解除することでHiとなる。したがって、カメラマイコン5205、レンズマイコン5111およびアダプタマイコン5302は、それぞれが信号線CSへのLow出力を解除した後、信号線CSの信号レベルがHiとなることを確認する。これにより、カメラマイコン5205、レンズマイコン5111およびアダプタマイコン5302はそれぞれ、今回の通信に関する処理を終了し、次の通信を行うための準備が整ったことを判断することができる。   Next, after completing the output of the stop bit SP of the final data, the camera microcomputer 5205 releases the Low output to the signal line CS (5425). On the other hand, the lens microcomputer 5111 and the adapter microcomputer 5302 store the data in the receiving buffers 51124 and 53034 each time the stop bit SP input from the signal line DATA is received, and when the Low to the signal line CS is detected, the receiving buffer 51124 The data is extracted from 53034. Then, internal processing is performed on the data, and after the preparation for receiving the next data is completed, the Low output to the signal line CS is released (5426, 5427). As described above, the signal level of the signal line CS becomes Hi when all of the camera microcomputer 5205, the lens microcomputer 5111, and the adapter microcomputer 5302 cancel the Low output to the signal line CS. Therefore, the camera microcomputer 5205, the lens microcomputer 5111, and the adapter microcomputer 5302 confirm that the signal level of the signal line CS becomes Hi after releasing the Low output to the signal line CS, respectively. As a result, the camera microcomputer 5205, the lens microcomputer 5111, and the adapter microcomputer 5302 can each determine that the processing related to the current communication has been completed and the preparations for performing the next communication have been completed.

次にアダプタマイコン5302は、信号線CSの信号レベルがHiに戻ったことを確認した後、ブロードキャスト通信を開始することをカメラマイコン5205とレンズマイコン5111に通知するために、信号線CSへのLow出力を開始する(5431)。   Next, after confirming that the signal level of the signal line CS has returned to Hi, the adapter microcomputer 5302 sends a Low signal to the signal line CS to notify the camera microcomputer 5205 and the lens microcomputer 5111 that broadcast communication is to be started. Output is started (5431).

次にアダプタマイコン5302は、送信するデータを送信バッファ53033に格納し、送信開始とともに前述の通信フォーマットに従って信号線DATAに出力する(5432)。一方、カメラマイコン5205とレンズマイコン5111は、信号線DATAから入力されたスタートビットSTを検出したタイミングで信号線CSへのLow出力を開始する(5433,5434)。なお、この時点ではすでにアダプタマイコン5302が信号線CSへのLow出力を開始しているので、信号線CSに伝搬される信号レベルは変化しない。   Next, the adapter microcomputer 5302 stores the data to be transmitted in the transmission buffer 53033, and outputs the data to the signal line DATA according to the above-described communication format at the start of the transmission (5432). On the other hand, the camera microcomputer 5205 and the lens microcomputer 5111 start low output to the signal line CS at the timing when the start bit ST input from the signal line DATA is detected (5433, 5434). At this point, since the adapter microcomputer 5302 has already started outputting Low to the signal line CS, the signal level transmitted to the signal line CS does not change.

次にアダプタマイコン5302は、最終データのストップビットSPの出力まで終了した後、信号線CSへのLow出力を解除する(5435)。一方、カメラマイコン5205とレンズマイコン5111は、信号線DATAから入力されたストップビットSPまで受信した後、受信するごとに受信バッファ52084,51124にデータを格納する。そして、信号線CSへのLowを検出すると、受信バッファ52084,51124からデータを取り出す。さらに、該データに対する内部処理を行い、次のデータを受信するための準備が整った後に信号線CSへのLow出力を解除する(5436,5437)。   Next, after completing the output of the stop bit SP of the final data, the adapter microcomputer 5302 releases the Low output to the signal line CS (5435). On the other hand, the camera microcomputer 5205 and the lens microcomputer 5111 store data in the reception buffers 52084 and 51124 each time they receive the stop bit SP input from the signal line DATA. Then, when a Low to the signal line CS is detected, the data is taken out from the reception buffer 52084, 51124. Further, the internal processing is performed on the data, and after the preparation for receiving the next data is completed, the Low output to the signal line CS is released (5436, 5437).

なお、図19Bに示した例では、通信スレーブであるレンズマイコン5111とアダプタマイコン5302からブロードキャスト通信を開始した場合は、通信マスタであるカメラマイコン5205はレンズマイコン5111とアダプタマイコン5302のどちらが信号線CSをLowにしたのかを5421の時点では判別できない。したがって、カメラマイコン5205は、レンズマイコン5111とアダプタマイコン5302の両方に対してブロードキャスト通信を開始したか否かの情報を取得する通信を行う必要がある。   In the example shown in FIG. 19B, when broadcast communication is started from the lens microcomputer 5111 and the adapter microcomputer 5302 as the communication slaves, the camera microcomputer 5205 as the communication master determines which of the lens microcomputer 5111 and the adapter microcomputer 5302 is connected to the signal line CS. Cannot be determined at 5421 as to whether or not. Therefore, the camera microcomputer 5205 needs to communicate with both the lens microcomputer 5111 and the adapter microcomputer 5302 to obtain information on whether or not broadcast communication has been started.

さらに、カメラマイコン5205がブロードキャスト通信を開始するために信号線CSにLowを出力したタイミングと、レンズマイコン5111とアダプタマイコン5302がブロードキャスト通信を開始するために信号線CSをLowに下げたタイミングとが一致する場合がある。この場合、カメラマイコン5205は、レンズマイコン5111とアダプタマイコン5302が信号線CSにLowを出力したことを検出することができない。このため、通信スレーブであるレンズマイコン5111とアダプタマイコン5302からブロードキャスト通信を開始することを許可する許可通知をカメラマイコン5205から通知するようにしてもよい。   Further, the timing when the camera microcomputer 5205 outputs Low to the signal line CS to start the broadcast communication and the timing when the lens microcomputer 5111 and the adapter microcomputer 5302 lower the signal line CS to Low to start the broadcast communication. May match. In this case, the camera microcomputer 5205 cannot detect that the lens microcomputer 5111 and the adapter microcomputer 5302 output Low on the signal line CS. For this reason, the camera microcomputer 5205 may notify the lens microcomputer 5111 and the adapter microcomputer 5302 of the communication slave of permission notification for permitting start of broadcast communication.

以上、図19Aおよび図19Bを用いて説明したように、ブロードキャスト通信において信号線CSを用いて伝搬する信号は、ブロードキャスト通信の開始および通信処理を実行中であることを示す信号として機能する。   As described above with reference to FIGS. 19A and 19B, the signal propagated using the signal line CS in the broadcast communication functions as a signal indicating that the broadcast communication has started and the communication process is being performed.

なお、図19Aおよび図19Bでは「一対多」通信が可能な第1の通信におけるブロードキャスト通信の通信波形の例について説明したが、第1の通信におけるブロードキャスト通信の通信波形は他の通信波形であってもよい。例えば、図19Aおよび図19Bでは一度のブロードキャスト通信で送信するデータを1バイトのデータにしているが、2バイトや3バイトでもよい。また、ブロードキャスト通信を通信マスタであるカメラマイコン5205から通信スレーブであるレンズマイコン5111とアダプタマイコン5302への一方向限定の通信としてもよい。   19A and 19B, the example of the communication waveform of the broadcast communication in the first communication capable of the “one-to-many” communication has been described. However, the communication waveform of the broadcast communication in the first communication is another communication waveform. Is also good. For example, in FIG. 19A and FIG. 19B, the data transmitted in one broadcast communication is 1-byte data, but may be 2 bytes or 3 bytes. Also, the broadcast communication may be one-way limited communication from the camera microcomputer 5205 as the communication master to the lens microcomputer 5111 and the adapter microcomputer 5302 as the communication slave.

次に、図20に示す信号波形を参照して、カメラ本体5200、交換レンズ5100および中間アダプタ5300間で、信号線CSと信号線DATAを使用して行われるP2P通信について説明する。P2P通信では、通信マスタであるカメラ本体5200が通信スレーブである交換レンズ5100と中間アダプタ5300のうち通信相手を1つ選択する。そして、カメラ本体5200と選択された通信スレーブとの間のみでデータを送受信する「一対一」の個別通信を行う。   Next, P2P communication performed between the camera body 5200, the interchangeable lens 5100, and the intermediate adapter 5300 using the signal line CS and the signal line DATA will be described with reference to signal waveforms shown in FIG. In P2P communication, a camera body 5200 as a communication master selects one of the communication partners from an interchangeable lens 5100 and an intermediate adapter 5300 as communication slaves. Then, “one-to-one” individual communication for transmitting and receiving data only between the camera body 5200 and the selected communication slave is performed.

ここでは、カメラマイコン5205から通信相手としてレンズマイコン5111が選択され、カメラマイコン5205からの1バイトのデータ送信に応答してレンズマイコン5111からカメラマイコン5205に対して2バイトのデータ送信が行われる例を示す。なお、送信バイト数は上述しタ51バイトや2バイトでなくてもよく、送信側と受信側の双方が連続して通信可能なバイト数であればよい。また、ブロードキャスト通信とP2P通信との間の切り切換え方法やP2P通信での通信相手の選択方法については後述する。   Here, the lens microcomputer 5111 is selected as a communication partner from the camera microcomputer 5205, and 2-byte data transmission is performed from the lens microcomputer 5111 to the camera microcomputer 5205 in response to 1-byte data transmission from the camera microcomputer 5205. Is shown. The number of transmission bytes need not be 51 bytes or 2 bytes as described above, and may be any number of bytes that allows both the transmitting side and the receiving side to communicate continuously. A method for switching between broadcast communication and P2P communication and a method for selecting a communication partner in P2P communication will be described later.

まず通信マスタであるカメラマイコン5205は、送信するデータ51バイトを送信バッファ52083に格納し、その送信開始とともに前述した通信フォーマットに従って信号線DATAに出力する(5501)。カメラマイコン5205は、最終データのストップビットSPの出力まで終了した後、信号線CSへのLow出力を開始する(5502)。その後カメラマイコン5205は、次のデータの受信準備が整った後に信号線CSへのLow出力を解除する(5503)。   First, the camera microcomputer 5205 serving as a communication master stores 51 bytes of data to be transmitted in the transmission buffer 52083, and outputs the data to the signal line DATA in accordance with the above-described communication format when the transmission starts (5501). After completing the output of the stop bit SP of the final data, the camera microcomputer 5205 starts outputting Low to the signal line CS (5502). After that, the camera microcomputer 5205 releases the Low output to the signal line CS after the preparation for receiving the next data is completed (5503).

一方、レンズマイコン5111は、信号線DATAから入力されたストップビットSPまで受信するごとに受信バッファ51124にデータを格納する。そして、信号線CSから入力されたLow信号を検出すると、受信バッファ51124に格納されたデータの解析および該データに対する内部処理を行う。その後、レンズマイコン5111は、信号線CSの信号レベルがHiに戻ったことを確認すると、送信すべきデータ2バイトを送信バッファ51123に格納し、送信開始とともに前述した通信フォーマットに従って連続で信号線DATAに出力する(5504)。レンズマイコン5111は、2バイト目のストップビットSPの出力まで終了した後は、信号線CSへのLow出力を開始する(5505)。その後レンズマイコン5111は、次のデータの受信準備が整った後に信号線CSへのLow出力を解除する(5506)。   On the other hand, the lens microcomputer 5111 stores data in the reception buffer 51124 every time reception is performed up to the stop bit SP input from the signal line DATA. Then, when a low signal input from the signal line CS is detected, analysis of data stored in the reception buffer 51124 and internal processing on the data are performed. After that, when confirming that the signal level of the signal line CS has returned to Hi, the lens microcomputer 5111 stores two bytes of data to be transmitted in the transmission buffer 51123, and starts transmission and continuously transmits the signal line DATA according to the communication format described above. (5504). After completing the output of the stop bit SP of the second byte, the lens microcomputer 5111 starts outputting Low to the signal line CS (5505). After that, the lens microcomputer 5111 releases the Low output to the signal line CS after the preparation for receiving the next data is completed (5506).

なお、P2P通信の通信相手として選択されていないアダプタマイコン5302は、信号線CSおよび信号線DATAの操作には一切関与しない。   Note that the adapter microcomputer 5302 not selected as the communication partner of the P2P communication does not participate in the operation of the signal line CS and the signal line DATA at all.

以上、図20を用いて示したように、P2P通信において信号線CSを用いて伝搬する信号は、送信側の送信終了および次のデータ送信の待機要求を示す通知信号として機能する。なお、図20に示したP2P通信の通信波形は例に過ぎず、他の通信波形であってもよい。例えば、送信するデータは1バイトずつや他のバイト数でもよい。   As described above with reference to FIG. 20, the signal propagated using the signal line CS in the P2P communication functions as a notification signal indicating the transmission end of the transmission side and a request for waiting for the next data transmission. Note that the communication waveform of the P2P communication shown in FIG. 20 is merely an example, and another communication waveform may be used. For example, the data to be transmitted may be one byte at a time or another number of bytes.

次に図21に示す信号波形を参照して、ブロードキャスト通信とP2P通信との切換え(通信モード切換え)方法と、P2P通信での通信相手の選択方法について説明する。P2P通信での通信相手の選択は、ブロードキャスト通信で行われる。ここでは例として以下のP2P通信を行う場合を例として説明する。まずカメラマイコン5205によりP2P通信の通信相手としてアダプタマイコン5302が選択(指定)される。そして、カメラマイコン5205からアダプタマイコン5302への1バイトデータ送信と、アダプタマイコン5302からカメラマイコン5205への1バイトデータ送信のP2P通信が行われる。次にカメラマイコン5205によりP2P通信の通信相手としてレンズマイコン5111が指定される。そして、カメラマイコン5205からレンズマイコン5111への2バイトデータ送信と、レンズマイコン5111からカメラマイコン5205への3バイトデータ送信のP2P通信が行われる。   Next, a method of switching between broadcast communication and P2P communication (communication mode switching) and a method of selecting a communication partner in P2P communication will be described with reference to signal waveforms shown in FIG. Selection of a communication partner in P2P communication is performed by broadcast communication. Here, a case where the following P2P communication is performed will be described as an example. First, the adapter microcomputer 5302 is selected (designated) by the camera microcomputer 5205 as a communication partner of the P2P communication. Then, P2P communication of 1-byte data transmission from the camera microcomputer 5205 to the adapter microcomputer 5302 and 1-byte data transmission from the adapter microcomputer 5302 to the camera microcomputer 5205 are performed. Next, the lens microcomputer 5111 is designated by the camera microcomputer 5205 as a communication partner of the P2P communication. Then, P2P communication of 2-byte data transmission from the camera microcomputer 5205 to the lens microcomputer 5111 and 3-byte data transmission from the lens microcomputer 5111 to the camera microcomputer 5205 are performed.

まず通信マスタであるカメラマイコン5205は、図19Aで説明した手順でブロードキャスト通信を行う(5601)。このブロードキャスト通信で通知するのは、次のP2P通信でカメラマイコン5205と通信を行う相手を指定するスレーブ指定データである。通信スレーブであるレンズマイコン5111とアダプタマイコン5302は、ブロードキャスト通信で受信したスレーブ指定データから自身がP2P通信の通信相手として指定されたか否かを判断する。このブロードキャスト通信によって、カメラマイコン5205とスレーブ指定データで指定された通信スレーブはブロードキャスト通信からP2P通信へと切り替わる(5602)。   First, the camera microcomputer 5205 serving as a communication master performs broadcast communication in the procedure described with reference to FIG. 19A (5601). What is notified by the broadcast communication is slave designation data that designates a communication partner with the camera microcomputer 5205 in the next P2P communication. The lens microcomputer 5111 and the adapter microcomputer 5302, which are communication slaves, determine from the slave designation data received by the broadcast communication whether or not themselves have been designated as communication partners of the P2P communication. By this broadcast communication, the camera microcomputer 5205 and the communication slave specified by the slave specification data are switched from the broadcast communication to the P2P communication (5602).

次に、図20で説明した手順に従って、カメラマイコン5205と通信相手として指定されたアダプタマイコン5302との間でP2P通信によるデータの送受信が行われる(5603)。ここではカメラマイコン5205からアダプタマイコン5302へ1バイトデータを送信し、その後アダプタマイコン5302からカメラマイコン5205へ1バイトデータを送信する。   Next, data is transmitted and received by P2P communication between the camera microcomputer 5205 and the adapter microcomputer 5302 designated as the communication partner according to the procedure described with reference to FIG. 20 (5603). Here, 1-byte data is transmitted from the camera microcomputer 5205 to the adapter microcomputer 5302, and then 1-byte data is transmitted from the adapter microcomputer 5302 to the camera microcomputer 5205.

カメラマイコン5205とアダプタマイコン5302とのP2P通信が終了すると、カメラマイコン5205は、再びブロードキャスト通信によってP2P通信の通信相手を指定することができる。ここではカメラマイコン5205は、次のP2P通信の通信相手としてレンズマイコン5111を指定するためにスレーブ指定データにレンズマイコン5111を設定して図19Aで説明した手順でブロードキャスト通信を行う(5604)。このブロードキャスト通信によって、アダプタマイコン5302はP2P通信を終了する一方、にレンズマイコン5111はブロードキャスト通信からP2P通信へと切り替わる(5605)。なお、ここでのブロードキャスト通信を行わない場合は、カメラマイコン5205とアダプタマイコン5302とのP2P通信が継続される。   When the P2P communication between the camera microcomputer 5205 and the adapter microcomputer 5302 ends, the camera microcomputer 5205 can again specify a communication partner of the P2P communication by broadcast communication. Here, the camera microcomputer 5205 sets the lens microcomputer 5111 in the slave designation data to designate the lens microcomputer 5111 as the communication partner of the next P2P communication, and performs the broadcast communication in the procedure described with reference to FIG. 19A (5604). By this broadcast communication, the adapter microcomputer 5302 ends the P2P communication, while the lens microcomputer 5111 switches from the broadcast communication to the P2P communication (5605). If broadcast communication is not performed here, P2P communication between the camera microcomputer 5205 and the adapter microcomputer 5302 is continued.

次にカメラマイコン5205とレンズマイコン5111は、P2P通信において図20で説明した手順に従ってデータの送受信を行う。ここではカメラマイコン5205がレンズマイコン5111に2バイトデータを送信し、その後レンズマイコン5111がカメラマイコン5205に3バイトデータを送信する(5606)。   Next, the camera microcomputer 5205 and the lens microcomputer 5111 transmit and receive data in P2P communication according to the procedure described with reference to FIG. Here, the camera microcomputer 5205 transmits 2-byte data to the lens microcomputer 5111, and then the lens microcomputer 5111 transmits 3-byte data to the camera microcomputer 5205 (5606).

以上のように、「一対多」通信が可能な第1の通信では、ブロードキャスト通信によってP2P通信の通信相手を選択することが可能であり、同時にブロードキャスト通信とP2P通信との切換えを行うことができる。   As described above, in the first communication in which “one-to-many” communication is possible, a communication partner of P2P communication can be selected by broadcast communication, and switching between broadcast communication and P2P communication can be performed at the same time.

次に、図22Aおよび図22Bのフローチャートを参照して、カメラ本体5200、交換レンズ5100および中間アダプタ5300間で行われる第1の通信モードとしてのブロードキャスト通信モードでの処理(通信制御方法)について説明する。ここでは例として、カメラ本体5200から交換レンズ5100と中間アダプタ5300へのブロードキャスト通信を行う場合について説明する。   Next, a process (communication control method) in the broadcast communication mode as the first communication mode performed between the camera body 5200, the interchangeable lens 5100, and the intermediate adapter 5300 will be described with reference to the flowcharts of FIGS. 22A and 22B. I do. Here, as an example, a case where broadcast communication is performed from the camera body 5200 to the interchangeable lens 5100 and the intermediate adapter 5300 will be described.

図22Aは、カメラマイコン5205から、レンズマイコン5111とアダプタマイコン5302にデータ送信を行うブロードキャスト通信モードでのブロードキャスト通信送信処理を示している。このブロードキャスト通信送信処理は、カメラマイコン5205にてブロードキャスト通信を開始する要件が発生すると開始される。例えば、レンズデータやアダプタデータの送信要求を行うときや、レンズマイコン5111とアダプタマイコン5302がブロードキャスト通信開始を要求するために信号線CSをLow出力にしたときである。カメラマイコン5205は、コンピュータプログラムに従って本処理を実行する。   FIG. 22A shows a broadcast communication transmission process in a broadcast communication mode in which data is transmitted from the camera microcomputer 5205 to the lens microcomputer 5111 and the adapter microcomputer 5302. This broadcast communication transmission processing is started when a requirement for starting broadcast communication occurs in the camera microcomputer 5205. For example, when requesting transmission of lens data or adapter data, or when the lens microcomputer 5111 and the adapter microcomputer 5302 output the signal line CS Low to request the start of broadcast communication. The camera microcomputer 5205 executes this processing according to a computer program.

以下の説明において、Sはステップを意味する。S5700では、カメラマイコン5205は、接地スイッチ52081をオン(接続)して信号線CSをLowレベルにすることでレンズマイコン5111とアダプタマイコン5302に対してブロードキャスト通信の開始を通知する。レンズマイコン5111とアダプタマイコン5302は、このブロードキャスト通信の開始通知を受けることで、図22Bで説明するブロードキャスト通信受信処理を開始する。   In the following description, S means a step. In step S5700, the camera microcomputer 5205 notifies the start of the broadcast communication to the lens microcomputer 5111 and the adapter microcomputer 5302 by turning on (connecting) the ground switch 52081 and setting the signal line CS to the low level. Upon receiving the broadcast communication start notification, the lens microcomputer 5111 and the adapter microcomputer 5302 start the broadcast communication reception process described with reference to FIG. 22B.

次にS5701では、カメラマイコン5205は、入出力切換えスイッチ52082を操作して信号線DATAをデータ出力部に接続する。   Next, in step S5701, the camera microcomputer 5205 operates the input / output switch 52082 to connect the signal line DATA to the data output unit.

次にS5702では、カメラマイコン5205は、信号線DATAを用いてデータ送信を行い、全データの送信が完了すると、S5703に進む。ここで送信するデータのバイト数は、カメラマイコン5205、レンズマイコン5111およびアダプタマイコン5302間で認識が一致していればよく、各マイコン5の送受信バッファで一度に送受信可能なサイズであればよい。   Next, in step S5702, the camera microcomputer 5205 performs data transmission using the signal line DATA. When transmission of all data is completed, the process advances to step S5703. The number of bytes of data to be transmitted here may be any size as long as the recognition is the same among the camera microcomputer 5205, the lens microcomputer 5111, and the adapter microcomputer 5302, and the size can be transmitted and received at one time in the transmission / reception buffer of each microcomputer 5.

S5703では、カメラマイコン5205は、ステップS5702で送信したデータがレンズマイコン5111またはアダプタマイコン5302からの送信も含む双方向コマンドであるか否かを判断する。カメラマイコン5205は、送信データが双方向コマンドでなければS5704に進み、双方向コマンドであればS5705に進む。   In step S5703, the camera microcomputer 5205 determines whether the data transmitted in step S5702 is a bidirectional command including transmission from the lens microcomputer 5111 or the adapter microcomputer 5302. If the transmission data is not a bidirectional command, the camera microcomputer 5205 proceeds to S5704, and if it is a bidirectional command, proceeds to S5705.

S5704では、カメラマイコン5205は、通信処理が終了したことを示すために接地スイッチ52081をオフ(遮断)して信号線CSへのLow出力を解除する。そして、S5715に進む。   In step S5704, the camera microcomputer 5205 turns off (blocks) the ground switch 52081 to indicate that the communication processing has been completed, and releases the Low output to the signal line CS. Then, the process proceeds to S5715.

S5705では、カメラマイコン5205は、入出力切換えスイッチ52082を操作して信号線DATAをデータ入力部に接続する。   In S5705, the camera microcomputer 5205 operates the input / output switch 52082 to connect the signal line DATA to the data input unit.

次にS5706では、カメラマイコン5205は、通信処理が終了したことを示すために、接地スイッチ52081をオフ(遮断)して信号線CSへのLow出力を解除する。   Next, in step S5706, the camera microcomputer 5205 turns off (cuts off) the ground switch 52081 to release the Low output to the signal line CS in order to indicate that the communication processing has been completed.

次にS5707では、カメラマイコン5205は、レンズマイコン5111とアダプタマイコン5302がデータ受信完了するまで、すなわち信号線CSがHiになるまで待機する。信号線CSがHiになると、S5708に進む。   Next, in step S5707, the camera microcomputer 5205 waits until the lens microcomputer 5111 and the adapter microcomputer 5302 complete data reception, that is, until the signal line CS becomes Hi. When the signal line CS becomes Hi, the process proceeds to S5708.

S5708では、カメラマイコン5205は、レンズマイコン5111またはアダプタマイコン5302からのデータ送信を待機するために信号線CSがLowになるまで待機する。信号線CSがLowになると、S5709に進む。   In step S5708, the camera microcomputer 5205 waits until the signal line CS goes low to wait for data transmission from the lens microcomputer 5111 or the adapter microcomputer 5302. When the signal line CS becomes Low, the process proceeds to S5709.

S5709では、カメラマイコン5205は、信号線DATAからのデータ受信を許可する。続いてS5710では、カメラマイコン5205は、信号線DATAのスタートビットを検出するまで待機する。スタートビットを検出すると、S5711に進む。   In step S5709, the camera microcomputer 5205 permits data reception from the signal line DATA. Subsequently, in S5710, the camera microcomputer 5205 waits until a start bit of the signal line DATA is detected. If a start bit is detected, the flow advances to step S5711.

S5711では、カメラマイコン5205は、通信処理中であることを示すために接地スイッチ52081をオン(接続)して信号線CSへのLow出力を開始する。   In step S5711, the camera microcomputer 5205 turns on (connects) the grounding switch 52081 to indicate that communication processing is being performed, and starts low output to the signal line CS.

次にS5712では、カメラマイコン5205は、全データを受信するまで待機する。全データの受信が完了すると、S5713に進む。ここで受信するデータのバイト数は、カメラマイコン5205、レンズマイコン5111およびアダプタマイコン5302間で認識が一致していればよく、各マイコンの送受信バッファで一度に送受信可能なサイズであればよい。   Next, in step S5712, the camera microcomputer 5205 waits until all data is received. Upon completion of receiving all data, the process advances to step S5713. The number of bytes of data received here may be any size as long as the camera microcomputer 5205, the lens microcomputer 5111, and the adapter microcomputer 5302 have the same recognition, and can transmit and receive at one time in the transmission and reception buffer of each microcomputer.

次にS5713では、カメラマイコン5205は、信号線DATAからのデータ受信を禁止する。   Next, in step S5713, the camera microcomputer 5205 prohibits data reception from the signal line DATA.

そしてS5714では、カメラマイコン5205は、通信処理が終了したことを示すために接地スイッチ52081をオフ(遮断)して信号線CSへのLow出力を解除する。その後、S5715に進む。   In step S5714, the camera microcomputer 5205 turns off (blocks) the ground switch 52081 to indicate that the communication process has been completed, and releases the Low output to the signal line CS. Thereafter, the process proceeds to S5715.

S5715では、カメラマイコン5205は、レンズマイコン5111とアダプタマイコン5302がデータ受信を完了するまで、すなわち信号線CSがHiになるまで待機する。信号線CSがHiになると、S5716に進む。   In S5715, the camera microcomputer 5205 waits until the lens microcomputer 5111 and the adapter microcomputer 5302 complete data reception, that is, until the signal line CS becomes Hi. When the signal line CS becomes Hi, the process proceeds to S5716.

S5716では、カメラマイコン5205は、ステップS5702で送信したデータでレンズマイコン5111とアダプタマイコン5302に対してP2P通信での通信相手を指定したか否かを判断する。カメラマイコン5205は、通信相手を指定した場合はS5717に進み、指定していない場合はブロードキャスト通信モードを維持したままブロードキャスト通信送信処理を終了する。   In step S5716, the camera microcomputer 5205 determines whether the lens microcomputer 5111 and the adapter microcomputer 5302 have designated a communication partner in P2P communication with the data transmitted in step S5702. If the communication partner has been specified, the camera microcomputer 5205 proceeds to S5717; otherwise, the camera microcomputer 5205 ends the broadcast communication transmission process while maintaining the broadcast communication mode.

S5717では、カメラマイコン5205は、ブロードキャスト通信モードからP2P通信モードに移行してブロードキャスト通信送信処理を終了する。   In S5717, the camera microcomputer 5205 shifts from the broadcast communication mode to the P2P communication mode, and ends the broadcast communication transmission processing.

以上の処理を実行することより、カメラ本体5200から交換レンズ5100および中間アダプタ5300へのブロードキャスト通信を用いたデータ送信を実現することができる。   By executing the above processing, data transmission using broadcast communication from the camera body 5200 to the interchangeable lens 5100 and the intermediate adapter 5300 can be realized.

図22Bは、レンズマイコン5111とアダプタマイコン5302がカメラマイコン5205からデータ受信を行うブロードキャスト通信受信処理を示している。レンズマイコン5111とアダプタマイコン5302は、ブロードキャスト通信モードもしくはP2P通信モードに限らず、通信待機中に信号線CSがLowレベルになると、ブロードキャスト通信の開始通知と認識してブロードキャスト通信受信処理を開始する。レンズマイコン5111とアダプタマイコン5302は、コンピュータプログラムに従って本処理を実行する。   FIG. 22B shows a broadcast communication reception process in which the lens microcomputer 5111 and the adapter microcomputer 5302 receive data from the camera microcomputer 5205. The lens microcomputer 5111 and the adapter microcomputer 5302 are not limited to the broadcast communication mode or the P2P communication mode. When the signal line CS goes low during communication standby, the lens microcomputer 5111 and the adapter microcomputer 5302 recognize broadcast start notification and start broadcast communication reception processing. The lens microcomputer 5111 and the adapter microcomputer 5302 execute this processing according to a computer program.

S5720では、レンズマイコン5111とアダプタマイコン5302は、信号線DATAからのデータ受信を許可する。   In S5720, the lens microcomputer 5111 and the adapter microcomputer 5302 permit data reception from the signal line DATA.

次にS5721では、レンズマイコン5111とアダプタマイコン5302は、信号線DATAのスタートビットを受信したかを判定し、受信していなければS5722に進み、受信したときはS5724に進む。   Next, in step S5721, the lens microcomputer 5111 and the adapter microcomputer 5302 determine whether a start bit of the signal line DATA has been received. If the start bit has not been received, the process advances to step S5722.

S5722では、レンズマイコン5111とアダプタマイコン5302は、信号線CSがHiか否かを判定し、Hiであればブロードキャスト通信の受信処理を終了するためにS5723に進み、Hiでなければスタートビット受信を引き続き待つためにS5721に戻る。   In S5722, the lens microcomputer 5111 and the adapter microcomputer 5302 determine whether or not the signal line CS is Hi. If the signal line CS is Hi, the process proceeds to S5723 to end the reception process of the broadcast communication. The process returns to S5721 to continue waiting.

S5723では、レンズマイコン5111とアダプタマイコン5302は、信号線DATAからのデータ受信を禁止して、ブロードキャスト通信受信処理を終了する。   In S5723, the lens microcomputer 5111 and the adapter microcomputer 5302 prohibit data reception from the signal line DATA, and ends the broadcast communication reception processing.

S5724では、レンズマイコン5111とアダプタマイコン5302は、自身がP2P通信モードである場合はブロードキャスト通信モードに移行する。   In step S5724, the lens microcomputer 5111 and the adapter microcomputer 5302 shift to the broadcast communication mode when they are in the P2P communication mode.

次にS5725では、レンズマイコン5111とアダプタマイコン5302は、通信処理中であることを示すために、接地スイッチ51121と接地スイッチ53031をオン(接続)して信号線CSへのLow出力を開始する。   Next, in step S5725, the lens microcomputer 5111 and the adapter microcomputer 5302 turn on (connect) the ground switch 51121 and the ground switch 53031 to start low output to the signal line CS to indicate that communication processing is being performed.

S5726では、レンズマイコン5111とアダプタマイコン5302は、全データを受信するまで待機する。そして、全データの受信が完了すると、S5727に進む。ここで受信するデータのバイト数は、カメラマイコン5205、レンズマイコン5111およびアダプタマイコン5302間で認識が一致していればよく、各マイコン5の送受信バッファで一度に送受信可能なサイズであればよい。   In S5726, the lens microcomputer 5111 and the adapter microcomputer 5302 stand by until all data is received. When the reception of all data is completed, the process proceeds to S5727. The number of bytes of the data received here may be any size as long as the recognition is the same among the camera microcomputer 5205, the lens microcomputer 5111, and the adapter microcomputer 5302, and the size can be transmitted and received at one time in the transmission / reception buffer of each microcomputer 5.

S5727では、レンズマイコン5111とアダプタマイコン5302は、信号線DATAからのデータ受信を禁止する。   In S5727, the lens microcomputer 5111 and the adapter microcomputer 5302 prohibit data reception from the signal line DATA.

次にS5728では、レンズマイコン5111とアダプタマイコン5302は、通信処理が終了したことを示すために、接地スイッチ51121および接地スイッチ53031をオフ(遮断)して信号線CSへのLow出力を解除する。   Next, in S5728, the lens microcomputer 5111 and the adapter microcomputer 5302 turn off (cut off) the ground switch 51121 and the ground switch 53031 to release the Low output to the signal line CS to indicate that the communication processing has been completed.

次にS5729では、レンズマイコン5111とアダプタマイコン5302は、S5725で受信したデータが自身からの送信を意味する双方向コマンドであるか否かを判定する。レンズマイコン5111とアダプタマイコン5302は、受信データが双方向コマンドである場合はS5730に進み、そうでなければ場合にはS5735に進む。   Next, in step S5729, the lens microcomputer 5111 and the adapter microcomputer 5302 determine whether or not the data received in step S5725 is a bi-directional command indicating transmission from itself. If the received data is a bidirectional command, the lens microcomputer 5111 and the adapter microcomputer 5302 proceed to S5730, otherwise proceed to S5735.

S5730では、レンズマイコン5111とアダプタマイコン5302は、他のマイコン5がデータ受信完了するまで、すなわち信号線CSがHiになるまで待機する。信号線CSがHiになると、S5731に進む。   In S5730, the lens microcomputer 5111 and the adapter microcomputer 5302 wait until the other microcomputer 5 completes data reception, that is, until the signal line CS becomes Hi. When the signal line CS becomes Hi, the process proceeds to S5731.

S5731では、レンズマイコン5111とアダプタマイコン5302は、ブロードキャスト通信の開始を通知するために、接地スイッチ51121と接地スイッチ53031をオン(接続)して信号線CSをLowレベルにする。   In step S5731, the lens microcomputer 5111 and the adapter microcomputer 5302 turn on (connect) the ground switch 51121 and the ground switch 53031 to set the signal line CS to Low level to notify the start of broadcast communication.

次にS5732では、レンズマイコン5111とアダプタマイコン5302は、入出力切換えスイッチ51122と入出力切換えスイッチ53032を操作して信号線DATAをデータ出力部に接続する。   Next, in S5732, the lens microcomputer 5111 and the adapter microcomputer 5302 operate the input / output switch 51122 and the input / output switch 53032 to connect the signal line DATA to the data output unit.

次にS5733では、レンズマイコン5111とアダプタマイコン5302は、信号線DATAを用いてデータ送信を行い、全データ送信が終わるとS5734に進む。ここで送信するデータのバイト数は、カメラマイコン5205、レンズマイコン5111およびアダプタマイコン5302間で認識が一致していればよく、各マイコン5の送受信バッファで一度に送受信可能なサイズであればよい。   Next, in step S5733, the lens microcomputer 5111 and the adapter microcomputer 5302 perform data transmission using the signal line DATA. When all data transmission is completed, the process advances to step S5734. The number of bytes of data to be transmitted here may be any size as long as the recognition is the same among the camera microcomputer 5205, the lens microcomputer 5111, and the adapter microcomputer 5302, and the size can be transmitted and received at one time in the transmission / reception buffer of each microcomputer 5.

S5734では、レンズマイコン5111とアダプタマイコン5302は、自身のデータ送信処理が終了したことを示すために、接地スイッチ51121と接地スイッチ53031をオフ(遮断)して信号線CSへのLow出力を解除する。   In step S5734, the lens microcomputer 5111 and the adapter microcomputer 5302 turn off (cut off) the ground switch 51121 and the ground switch 53031 to release the Low output to the signal line CS in order to indicate that the data transmission processing has been completed. .

次にS5735では、レンズマイコン5111とアダプタマイコン5302は、他のマイコン5がデータ受信完了するまで、すなわち信号線CSがHiになるまで待機する。信号線CSがHiになると、S5736に進む。   Next, in S5735, the lens microcomputer 5111 and the adapter microcomputer 5302 wait until the other microcomputer 5 completes data reception, that is, until the signal line CS becomes Hi. When the signal line CS becomes Hi, the process proceeds to S5736.

S5736では、レンズマイコン5111とアダプタマイコン5302は、S5726で受信したデータでカメラマイコン5205からP2P通信の通信相手として指定されたか否かを判定する。レンズマイコン5111とアダプタマイコン5302は、通信相手として指定されていた場合はS5737に進み、そうでければブロードキャスト通信モードを維持してブロードキャスト通信受信処理を終了する。   In S5736, the lens microcomputer 5111 and the adapter microcomputer 5302 determine whether or not the data received in S5726 has been specified by the camera microcomputer 5205 as a communication partner of P2P communication. If the lens microcomputer 5111 and the adapter microcomputer 5302 have been specified as communication partners, the process advances to step S5737, and if not, the broadcast communication mode is maintained and the broadcast communication reception processing ends.

S5737では、レンズマイコン5111とアダプタマイコン5302は、信号線DATAからのデータ受信を許可する。   In S5737, the lens microcomputer 5111 and the adapter microcomputer 5302 permit data reception from the signal line DATA.

次にS5738では、レンズマイコン5111とアダプタマイコン5302は、ブロードキャスト通信モードからP2P通信モードに移行してブロードキャスト通信受信処理を終了する。   Next, in S5738, the lens microcomputer 5111 and the adapter microcomputer 5302 shift from the broadcast communication mode to the P2P communication mode and end the broadcast communication reception processing.

以上の処理を実行することより、カメラ本体5200から交換レンズ5100および中間アダプタ5300へのブロードキャスト通信を用いたデータ受信を実現することができる。   By executing the above processing, data reception using broadcast communication from the camera body 5200 to the interchangeable lens 5100 and the intermediate adapter 5300 can be realized.

次に、図23Aおよび図23Bに示すフローチャートを参照して、カメラ本体5200、交換レンズ5100および中間アダプタ5300間で第2の通信モードであるP2P通信モードで行われる処理について説明する。ここでは例として、通信マスタとしてのカメラ本体5200から、通信スレーブとしての中間アダプタ5300へのP2P通信を行う場合について説明する。   Next, processing performed in the P2P communication mode, which is the second communication mode, between the camera body 5200, the interchangeable lens 5100, and the intermediate adapter 5300 will be described with reference to the flowcharts shown in FIGS. 23A and 23B. Here, as an example, a case where P2P communication is performed from the camera body 5200 as a communication master to the intermediate adapter 5300 as a communication slave will be described.

図23Aは、P2P通信モードにおいて通信マスタであるカメラマイコン5205が行うP2P通信送信処理を示している。このP2P通信送信処理は、カメラマイコン5205にてP2P通信を開始する要件が発生すると開始される。カメラマイコン5205は、コンピュータプログラムに従って本処理を実行する。   FIG. 23A shows a P2P communication transmission process performed by the camera microcomputer 5205 serving as a communication master in the P2P communication mode. This P2P communication transmission processing is started when a requirement for starting P2P communication occurs in the camera microcomputer 5205. The camera microcomputer 5205 executes this processing according to a computer program.

S5800では、カメラマイコン5205は、入出力切換えスイッチ52082を操作して信号線DATAをデータ出力部に接続する。   In S5800, the camera microcomputer 5205 operates the input / output switch 52082 to connect the signal line DATA to the data output unit.

次にS5801では、カメラマイコン5205は、信号線DATAを用いてデータ送信を行う。そして、カメラマイコン5205は、全データの送信が完了するとS5802に進む。ここで送信するデータのバイト数は、カメラマイコン5205とアダプタマイコン5302間で認識が一致していればよく、各マイコン5の送受信バッファで一度に送受信可能なサイズであればよい。また、カメラマイコン5205が送信データを分割して送信可能ならば、アダプタマイコン5302の受信バッファで一度に受信可能なサイズであればよい。   Next, in S5801, the camera microcomputer 5205 performs data transmission using the signal line DATA. When the transmission of all data is completed, the camera microcomputer 5205 proceeds to S5802. Here, the number of bytes of the data to be transmitted may be any size as long as the recognition between the camera microcomputer 5205 and the adapter microcomputer 5302 matches, and the size can be transmitted and received at one time in the transmission and reception buffer of each microcomputer 5. If the camera microcomputer 5205 can divide transmission data and transmit the data, the size may be any size that can be received at once by the reception buffer of the adapter microcomputer 5302.

S5802では、カメラマイコン5205は、接地スイッチ52081をオン(接続)して信号線CSへのLow出力を開始し、P2P通信によるデータ送信完了をアダプタマイコン5302に通知する。アダプタマイコン5302は、このP2P通信のデータ送信完了を受けることで、図23Bで説明するP2P通信受信処理を開始する。   In step S5802, the camera microcomputer 5205 turns on (connects) the ground switch 52081, starts low output to the signal line CS, and notifies the adapter microcomputer 5302 that data transmission by P2P communication has been completed. Upon receiving the data transmission completion of the P2P communication, the adapter microcomputer 5302 starts the P2P communication reception processing described with reference to FIG. 23B.

S5803では、カメラマイコン5205は、S5802で送信したデータがアダプタマイコン5302からのデータ送信も含む双方向コマンドであるか否かを判定する。カメラマイコン5205は、送信データが双方向コマンドでなければS5804に進み、双方向コマンドであればS5805に進む。   In step S5803, the camera microcomputer 5205 determines whether the data transmitted in step S5802 is a bidirectional command including data transmission from the adapter microcomputer 5302. If the transmission data is not a bidirectional command, the camera microcomputer 5205 proceeds to S5804, and if it is a bidirectional command, proceeds to S5805.

S5804では、カメラマイコン5205は、アダプタマイコン5302がデータ受信を完了したことを検出するために、接地スイッチ52081をオフ(遮断)して信号線CSへのLow出力を解除する。そして、S5809に進む。   In step S5804, the camera microcomputer 5205 turns off (cuts off) the ground switch 52081 to release the Low output to the signal line CS in order to detect that the adapter microcomputer 5302 has completed data reception. Then, the process proceeds to S5809.

S5805では、カメラマイコン5205は、入出力切換えスイッチ52082を操作して信号線DATAをデータ入力部に接続する。   In S5805, the camera microcomputer 5205 operates the input / output switch 52082 to connect the signal line DATA to the data input unit.

次にS5806では、カメラマイコン5205は、アダプタマイコン5302からのデータ送信が完了したことを検出するために、接地スイッチ52081をオフ(遮断)して信号線CSへのLow出力を解除する。   Next, in step S5806, the camera microcomputer 5205 turns off (cuts off) the ground switch 52081 and cancels the Low output to the signal line CS in order to detect that the data transmission from the adapter microcomputer 5302 has been completed.

次にS5807では、カメラマイコン5205は、アダプタマイコン5302からのデータ送信が完了するまで、すなわち信号線CSがLowになるまで待機する。そして、カメラマイコン5205は、信号線CSがLowになると、アダプタマイコン5302からのデータ送信が終了したと判断してS5808に進む。ここで受信するデータのバイト数は、カメラマイコン5205とアダプタマイコン5302間で認識が一致していればよく、各マイコン5の送受信バッファで一度に送受信可能なサイズであればよい。また、アダプタマイコン5302が送信データを分割して送信可能ならば、カメラマイコン5205の受信バッファで一度に受信可能なサイズであればよい。   Next, in step S5807, the camera microcomputer 5205 waits until data transmission from the adapter microcomputer 5302 is completed, that is, until the signal line CS becomes low. When the signal line CS goes low, the camera microcomputer 5205 determines that the data transmission from the adapter microcomputer 5302 has ended, and proceeds to S5808. The number of bytes of data to be received may be any size as long as the recognition between the camera microcomputer 5205 and the adapter microcomputer 5302 matches, and the size can be transmitted and received at one time in the transmission and reception buffer of each microcomputer 5. If the adapter microcomputer 5302 can divide the transmission data and transmit it, the size may be any size that can be received at once by the reception buffer of the camera microcomputer 5205.

S5808では、カメラマイコン5205は、信号線DATAから受信したデータを解析する。   In step S5808, the camera microcomputer 5205 analyzes the data received from the signal line DATA.

次にS5809では、カメラマイコン5205は、信号線CSがHiになるまで待機する。そして、カメラマイコン5205は、信号線CSがHiになると、今回のP2P通信が完了したことになるのでS5810に進む。   Next, in step S5809, the camera microcomputer 5205 waits until the signal line CS becomes Hi. Then, when the signal line CS becomes Hi, the camera microcomputer 5205 indicates that the current P2P communication has been completed, and the process proceeds to S5810.

S5810では、カメラマイコン5205は、次の通信でブロードキャスト通信を開始するか否かを判定する。カメラマイコン5205は、ブロードキャスト通信を開始する場合はS5811に進み、引き続きP2P通信を行うのであればP2P通信モードのままP2P通信送信処理を終了する。   In S5810, the camera microcomputer 5205 determines whether to start broadcast communication in the next communication. The camera microcomputer 5205 proceeds to S5811 when starting broadcast communication, and ends the P2P communication transmission process in the P2P communication mode when continuing P2P communication.

S5811では、カメラマイコン5205は、P2P通信モードからブロードキャスト通信モードに移行し、P2P通信送信処理を終了する。   In step S5811, the camera microcomputer 5205 shifts from the P2P communication mode to the broadcast communication mode, and ends the P2P communication transmission processing.

以上の処理を行うことより、通信マスタであるカメラ本体5200から中間アダプタ5300へのP2P通信を用いたデータ送受信を実現することができる。   By performing the above processing, data transmission / reception using P2P communication from the camera body 5200 as the communication master to the intermediate adapter 5300 can be realized.

図23Bは、カメラマイコン5205と通信スレーブであるアダプタマイコン5302との間でのP2P通信においてアダプタマイコン5302が行うP2P通信受信処理を示している。このP2P通信受信処理は、アダプタマイコン5302にてP2P通信のデータ受信が発生すると開始される。アダプタマイコン5302は、コンピュータプログラムに従って本処理を実行する。   FIG. 23B shows a P2P communication reception process performed by the adapter microcomputer 5302 in P2P communication between the camera microcomputer 5205 and the adapter microcomputer 5302 which is a communication slave. The P2P communication reception processing is started when data of P2P communication is received by the adapter microcomputer 5302. Adapter microcomputer 5302 executes this processing according to a computer program.

S5820では、アダプタマイコン5302は、信号線DATAから受信したデータを解析する。   In S5820, adapter microcomputer 5302 analyzes data received from signal line DATA.

次にS5821では、アダプタマイコン5302は、信号線CSがHiになるまで、すなわちS5804もしくはS5806での処理の完了を待機する。アダプタマイコン5302は、信号線CSがHiになると、S5822に進む。   Next, in S5821, the adapter microcomputer 5302 waits until the signal line CS becomes Hi, that is, the completion of the processing in S5804 or S5806. When the signal line CS becomes Hi, the adapter microcomputer 5302 proceeds to S5822.

S5822では、アダプタマイコン5302は、S5820で解析した受信データがアダプタマイコン5302からのデータ送信も含む双方向コマンドであるか否かを判定する。アダプタマイコン5302は、受信データが双方向コマンドでなければS5823に進み、双方向コマンドであればS5824に進む。   In S5822, adapter microcomputer 5302 determines whether or not the received data analyzed in S5820 is a bidirectional command including data transmission from adapter microcomputer 5302. If the received data is not a bidirectional command, the adapter microcomputer 5302 proceeds to S5823. If the received data is a bidirectional command, the adapter microcomputer 5302 proceeds to S5824.

S5823では、アダプタマイコン5302は、カメラマイコン5205にデータ受信を完了したことを通知するために、接地スイッチ53031をオン(接続)およびオフ(遮断)することで信号線CSへのLow出力を開始する。そして、S5828に進む。   In step S5823, the adapter microcomputer 5302 turns on (connects) and turns off (blocks) the ground switch 53031 to notify the camera microcomputer 5205 that data reception has been completed, thereby starting low output to the signal line CS. . Then, the process proceeds to S5828.

S5824では、アダプタマイコン5302は、入出力切換えスイッチ53032を操作して信号線DATAをデータ出力部に接続する。   In S5824, the adapter microcomputer 5302 operates the input / output switch 53032 to connect the signal line DATA to the data output unit.

次にS5825では、アダプタマイコン5302は、信号線DATAを用いてデータ送信を行い、全データの送信が完了するとS5826に進む。ここで送信するデータのバイト数は、カメラマイコン5205とアダプタマイコン5302間で認識が一致していればよく、各マイコン5の送受信バッファで一度に送受信可能なサイズであればよい。また、アダプタマイコン5302が送信データを分割して送信可能ならば、カメラマイコン5205の受信バッファで一度に受信可能なサイズであればよい。   Next, in S5825, the adapter microcomputer 5302 performs data transmission using the signal line DATA, and when transmission of all data is completed, the process proceeds to S5826. Here, the number of bytes of the data to be transmitted may be any size as long as the recognition between the camera microcomputer 5205 and the adapter microcomputer 5302 matches, and the size can be transmitted and received at one time in the transmission and reception buffer of each microcomputer 5. If the adapter microcomputer 5302 can divide the transmission data and transmit it, the size may be any size that can be received at once by the reception buffer of the camera microcomputer 5205.

次にS5826では、アダプタマイコン5302は、カメラマイコン5205にP2P通信を完了したことを通知するために、接地スイッチ53031をオン(接続)して信号線CSへのLow出力を開始する。これにより、アダプタマイコン5302はP2P通信によるデータ送信完了をカメラマイコン5205に通知する。   Next, in S5826, the adapter microcomputer 5302 turns on (connects) the ground switch 53031 to start low output to the signal line CS in order to notify the camera microcomputer 5205 that the P2P communication has been completed. As a result, the adapter microcomputer 5302 notifies the camera microcomputer 5205 of the completion of data transmission by P2P communication.

次にS5827では、アダプタマイコン5302は、入出力切換えスイッチ53032を操作して信号線DATAをデータ入力部に接続する。   Next, in S5827, the adapter microcomputer 5302 operates the input / output switch 53032 to connect the signal line DATA to the data input unit.

次にS5828では、アダプタマイコン5302は、接地スイッチ53031をオフ(遮断)して信号線CSへのLow出力を解除する。   Next, in S5828, the adapter microcomputer 5302 turns off (blocks) the ground switch 53031 to release the Low output to the signal line CS.

次にS5829では、アダプタマイコン5302は、カメラマイコン5205がP2P通信を完了したことを検出するために、信号線CSがHiになるまで待機する。アダプタマイコン5302は、信号線CSがHiになると、P2P通信受信処理を終了する。   Next, in S5829, the adapter microcomputer 5302 waits until the signal line CS becomes Hi in order to detect that the camera microcomputer 5205 has completed the P2P communication. When the signal line CS becomes Hi, the adapter microcomputer 5302 ends the P2P communication reception processing.

以上の処理を行うことより、通信スレーブである中間アダプタ5300のP2P通信を用いたデータ送受信を実現することができる。   By performing the above processing, data transmission / reception using P2P communication of the intermediate adapter 5300, which is a communication slave, can be realized.

図24のフローチャートを参照して、発売時期が互いに異なるカメラ本体5200、交換レンズ5100および中間アダプタ5300が、第1の通信をそれらの互換性を保証しつつ、より高速または最適な通信速度で行うための起動の通信処理について説明する。ここでは例として、カメラ本体5200に1つの中間アダプタ5300を介して交換レンズ5100が接続されている場合において、カメラ本体5200が中間アダプタ5300との間で行う通信処理(カメラ本体起動処理)について説明する。ただし、通信スレーブは交換レンズ5100でもよい。また、この処理は、カメラ本体5200に接続された、第1の通信が可能な交換レンズを含む複数のアクセサリのすべてに対して行われる。カメラマイコン5205は、コンピュータプログラムに従って以下の処理を行う。   Referring to the flowchart of FIG. 24, camera body 5200, interchangeable lens 5100, and intermediate adapter 5300, whose release times are different from each other, perform the first communication at a higher or optimum communication speed while ensuring their compatibility. Of the communication for the activation will be described. Here, as an example, a communication process (camera main body activation process) performed by the camera main body 5200 with the intermediate adapter 5300 when the interchangeable lens 5100 is connected to the camera main body 5200 via one intermediate adapter 5300 will be described. I do. However, the communication slave may be the interchangeable lens 5100. This process is performed on all of the plurality of accessories connected to the camera body 5200 including the interchangeable lens capable of the first communication. The camera microcomputer 5205 performs the following processing according to a computer program.

S5900では、カメラマイコン5205は、カメラ第1通信回路5241を介してどのようなアクセサリが幾つ装着されているかを認識するための認証通信を行う。そして、装着されたすべてのアクセサリ(ここでは中間アダプタ5300と交換レンズ5100)の認証が完了するとS5901に進む。なお、認証通信は予め相互で規定された通信速度に沿った通信ビットレートで行われる。ただし、認証によってより高速に通信可能な通信ビットレートが判明したアクセサリが装着されていれば、そのアクセサリに対しては第2の通信モードであるP2P通信モードの通信ビットレートを変更してもよい。また、認証通信は予め相互で規定された連続送信可能データサイズ(以下、第2の連続送信可能データサイズという)の範囲内で行われる。   In step S5900, the camera microcomputer 5205 performs authentication communication via the camera first communication circuit 5241 for recognizing what accessories are attached and how many accessories are attached. When authentication of all attached accessories (here, the intermediate adapter 5300 and the interchangeable lens 5100) is completed, the process advances to step S5901. Note that the authentication communication is performed at a communication bit rate in accordance with a communication speed specified in advance. However, if an accessory whose communication bit rate at which communication can be performed at higher speed is determined by authentication is attached, the communication bit rate of the P2P communication mode, which is the second communication mode, may be changed for the accessory. . In addition, the authentication communication is performed within a range of a continuously transmittable data size (hereinafter, referred to as a second continuously transmittable data size) defined mutually in advance.

S5901では、カメラマイコン5205は、S5900で取得した認証情報を用いて開始できる初期設定処理を行う。初期設定とは、例えば、表示部206へのアクセサリの装着状態の表示や、信号処理回路5203への光学情報の設定である。また、初期設定として、第2の通信を用いて、交換レンズ5100に中間アダプタ5300の情報を通知することで、交換レンズ5100から中間アダプタ5300用の光学情報を取得してもよい。このように、装着されたアクセサリの情報を先行して取得することで、その情報を使用した処理を早期に開始することができ、カメラ本体5200の起動を高速化することができる。   In S5901, the camera microcomputer 5205 performs an initialization process that can be started using the authentication information acquired in S5900. The initial setting is, for example, a display of an attached state of the accessory on the display unit 206 and a setting of optical information to the signal processing circuit 5203. As an initial setting, optical information for the intermediate adapter 5300 may be obtained from the interchangeable lens 5100 by notifying the information of the intermediate adapter 5300 to the interchangeable lens 5100 using the second communication. As described above, by acquiring the information of the attached accessory in advance, the process using the information can be started early, and the activation of the camera body 5200 can be accelerated.

次にS5902では、カメラマイコン5205は、カメラ第1通信回路5241を介してアダプタマイコン5302からアダプタ送信可能サイズ(アクセサリ送信可能サイズ)を受信する。アダプタ送信可能サイズとは、アダプタマイコン5302が連続して送信可能なデータサイズ(データ数またはデータ量)である。アダプタ送信可能サイズは、例えば、送信バッファ53033のバッファサイズによって決まる。また、アダプタ送信可能サイズも、認証通信と同様に、第2の連続送信可能データサイズの範囲内で送受信される。   Next, in S5902, the camera microcomputer 5205 receives the adapter transmittable size (accessory transmittable size) from the adapter microcomputer 5302 via the camera first communication circuit 5241. The adapter transmittable size is a data size (number of data or data amount) that can be continuously transmitted by the adapter microcomputer 5302. The adapter transmittable size is determined, for example, by the buffer size of the transmission buffer 53033. Also, the adapter transmittable size is transmitted and received within the range of the second continuously transmittable data size, similarly to the authentication communication.

S5903では、カメラマイコン5205は、アダプタ送信可能サイズと自身が連続して受信可能なデータサイズであるカメラ受信可能サイズとを比較する。カメラマイコン5205は、アダプタ送信可能サイズよりもカメラ受信可能サイズが小さければ、S5904にてカメラ受信可能サイズを後述する第1の連続受信可能データサイズとしてのカメラ‐アダプタ最大受信サイズに設定する。一方、カメラ受信可能サイズよりもアダプタ送信可能サイズが小さければ、S5905にてアダプタ送信可能サイズをカメラ‐アダプタ最大受信サイズに設定する。また、アダプタマイコン5302が送信データを分割して送信可能ならば、S5903からS5904へ遷移してもよい。   In step S5903, the camera microcomputer 5205 compares the adapter transmittable size with the camera receivable size, which is the data size that the adapter can receive continuously. If the camera receivable size is smaller than the adapter receivable size, the camera microcomputer 5205 sets the camera receivable size to the camera-adapter maximum reception size as a first continuously receivable data size described later in S5904. On the other hand, if the adapter transmittable size is smaller than the camera receivable size, in step S5905, the adapter transmittable size is set to the camera-adapter maximum receive size. If the adapter microcomputer 5302 can divide transmission data and transmit the data, the process may shift from S5903 to S5904.

カメラ受信可能サイズは、例えば、受信バッファ52084のバッファサイズによって決まる。また、カメラ‐アダプタ最大受信サイズとは、カメラマイコン5205がアダプタマイコン5302から連続して受信可能な最大データサイズである。これ以降のカメラマイコン5205のアダプタマイコン5302からの受信データサイズは、このカメラ‐アダプタ最大受信サイズを上限として制御される。   The camera receivable size is determined, for example, by the buffer size of the reception buffer 52084. Further, the camera-adapter maximum reception size is the maximum data size that the camera microcomputer 5205 can continuously receive from the adapter microcomputer 5302. Subsequent data sizes of the camera microcomputer 5205 from the adapter microcomputer 5302 are controlled with the camera-adapter maximum reception size as an upper limit.

S5904およびS5905からS5906に進んだカメラマイコン5205は、カメラ第1通信回路5241を介してアダプタマイコン5302からコマンドごとのメモリマップの情報を受信する。この処理によって、カメラマイコン5205はアダプタマイコン5302が対応可能なコマンドを認識することができる。メモリマップの詳細については、図25を用いて後述する。   The camera microcomputer 5205 that has proceeded from S5904 and S5905 to S5906 receives the information of the memory map for each command from the adapter microcomputer 5302 via the camera first communication circuit 5241. By this processing, the camera microcomputer 5205 can recognize a command that the adapter microcomputer 5302 can support. Details of the memory map will be described later with reference to FIG.

次にS5907では、カメラマイコン5205は、カメラ第1通信回路5241を介してアダプタマイコン5302からアダプタ個体情報を受信する。アダプタ個体情報とは、中間アダプタ5300が有する光学部材や搭載機能等を示す情報である。アダプタ個体情報のデータ量は多いため、カメラ‐アダプタ最大受信サイズが決まってからアダプタ個体情報を通信することで、通信効率を上げることができる。また、アダプタ個体情報も、認証通信と同様に、第2の連続送信可能データサイズの範囲内で送受信される。   Next, in step S5907, the camera microcomputer 5205 receives the adapter individual information from the adapter microcomputer 5302 via the camera first communication circuit 5241. The adapter individual information is information indicating an optical member, a mounting function, and the like of the intermediate adapter 5300. Since the data amount of the adapter individual information is large, communication efficiency can be increased by communicating the adapter individual information after the camera-adapter maximum reception size is determined. Also, the adapter individual information is transmitted and received within the range of the second continuously transmittable data size, similarly to the authentication communication.

次にS5908では、カメラマイコン5205は、カメラ第1通信回路5241を介してアダプタマイコン5302からアダプタ受信可能サイズ(アクセサリ受信可能サイズ)を受信する。アダプタ受信可能サイズとは、アダプタマイコン5302が連続して受信可能なデータサイズである。アダプタ受信可能サイズは、例えば、受信バッファ53034のバッファサイズによって決まる。また、アダプタ受信可能サイズも、認証通信と同様に、第2の連続送信可能データサイズの範囲内で送受信される。   Next, in step S5908, the camera microcomputer 5205 receives the adapter receivable size (accessory receivable size) from the adapter microcomputer 5302 via the camera first communication circuit 5241. The adapter receivable size is a data size that the adapter microcomputer 5302 can continuously receive. The adapter receivable size is determined, for example, by the buffer size of the reception buffer 53034. Also, the adapter receivable size is transmitted and received within the range of the second continuously transmittable data size, similarly to the authentication communication.

次にS5909では、カメラマイコン5205は、アダプタ受信可能サイズと自身が連続して送信可能なデータサイズであるカメラ送信可能サイズとを比較する。カメラマイコン5205は、アダプタ受信可能サイズよりもカメラ送信可能サイズが小さければ、S5910にてカメラ送信可能サイズを後述する第1の連続送信可能データサイズとしてのカメラ‐アダプタ最大送信サイズに設定する。また、カメラ送信可能サイズよりもアダプタ受信可能サイズが小さければ、S5911にてアダプタ受信可能サイズをカメラ‐アダプタ最大送信サイズに設定する。また、カメラマイコン5205が送信データを分割して送信可能ならば、S5909からS5911へ遷移してもよい。   Next, in step S5909, the camera microcomputer 5205 compares the adapter receivable size with the camera transmittable size, which is the data size that can be transmitted continuously by itself. If the camera transmittable size is smaller than the adapter receivable size, the camera microcomputer 5205 sets the camera transmittable size to a camera-adapter maximum transmit size as a first continuously transmittable data size described later in S5910. If the adapter receivable size is smaller than the camera transmittable size, in step S5911 the adapter receivable size is set to the camera-adapter maximum transmission size. If the camera microcomputer 5205 can divide transmission data and transmit the data, the process may shift from S5909 to S5911.

カメラ送信可能サイズは、例えば、送信バッファ52083のバッファサイズによって決まる。また、カメラ‐アダプタ最大送信サイズとは、カメラマイコン5205がアダプタマイコン5302に連続して送信可能な最大データサイズである。これ以降においてカメラマイコン5205のアダプタマイコン5302への送信データサイズは、このサイズを上限として制御される。   The camera transmittable size is determined, for example, by the buffer size of the transmission buffer 52083. The camera-adapter maximum transmission size is the maximum data size that the camera microcomputer 5205 can continuously transmit to the adapter microcomputer 5302. Thereafter, the size of data transmitted from the camera microcomputer 5205 to the adapter microcomputer 5302 is controlled with this size as an upper limit.

S5912では、カメラマイコン5205はカメラ第1通信回路5241を介して、アダプタマイコン5302にカメラ個体情報を送信する。カメラ個体情報とは、カメラ本体5100の搭載機能等の情報である。カメラ個体情報のデータ量は多いため、カメラ‐アダプタ最大送信サイズが決まってからカメラ個体情報を通信することで、通信効率を上げることができる。このS5912の後、カメラマイコン5205は本カメラ本体起動処理を終了する。   In step S5912, the camera microcomputer 5205 transmits the camera individual information to the adapter microcomputer 5302 via the camera first communication circuit 5241. The camera individual information is information such as functions mounted on the camera body 5100. Since the data amount of the camera individual information is large, communication efficiency can be improved by communicating the camera individual information after the camera-adapter maximum transmission size is determined. After S5912, the camera microcomputer 5205 ends the camera main body activation processing.

カメラマイコン5205は、上述した第1の連続受信可能データサイズおよび第1の連続送信可能データサイズを、アクセサリ(交換レンズ5100や中間アダプタ5300)ごとに設定する。そして、カメラマイコン5205は、アクセサリごとに設定した第1の連続受信可能データサイズおよび第1の連続送信可能データサイズを上限としたデータサイズでそれぞれのアクセサリとの通信を行う。   The camera microcomputer 5205 sets the first continuously receivable data size and the first continuously transmittable data size described above for each accessory (interchangeable lens 5100 and intermediate adapter 5300). Then, the camera microcomputer 5205 communicates with each accessory at the first continuous receivable data size set for each accessory and at a data size up to the first continuous transmittable data size.

以上のカメラ本体起動処理をカメラ本体5200の起動時に行うことで、発売時期が互いに異なるカメラ本体5200とアクセサリ(交換レンズ5100や中間アダプタ5300)との組み合わせにおいても、最適な通信データサイズを設定することができる。また、カメラ本体5200を高速に起動することができる。   By performing the above-described camera body activation processing when the camera body 5200 is activated, the optimum communication data size is set even in a combination of the camera body 5200 and accessories (interchangeable lens 5100 and intermediate adapter 5300) having different release times. be able to. Further, the camera main body 5200 can be started up at high speed.

次に、図25を参照して、第1の通信(「一対多」通信)の第2の通信モード(P2P通信モード)において、カメラ本体5200とアクセサリ(交換レンズ5100や中間アダプタ5300)間で予め規定するメモリマップ(データ配置情報)のフォーマット例を説明する。メモリマップは、通信コマンドごとに規定される。メモリマップ51000は複数のデータ51002で構成されており、それぞれのデータにはアドレス51001が割り振られている。各データの値51003は、固定値もしくは任意のタイミングで更新される。なお、ここで説明するメモリマップは、通信上の規定であり、各マイコンのメモリ内のデータ配置が本実施例のフォーマットと異なっていてもよい。   Next, referring to FIG. 25, in the second communication mode (P2P communication mode) of the first communication (“one-to-many” communication), the camera body 5200 and the accessory (the interchangeable lens 5100 and the intermediate adapter 5300) are previously set. An example of the format of the memory map (data arrangement information) to be defined will be described. The memory map is defined for each communication command. The memory map 51000 includes a plurality of data 51002, and an address 51001 is allocated to each data. The value 51003 of each data is updated at a fixed value or at an arbitrary timing. The memory map described here is a communication rule, and the data arrangement in the memory of each microcomputer may be different from the format of the present embodiment.

メモリマップは通信コマンドごとに規定されている。通信マスタがメモリマップのデータを受信する場合は、受信したいデータに対応した通信コマンドとアドレスを指定してP2P通信を行うことで、通信スレーブは指定されたデータをメモリマップから取り出してP2P通信で通信マスタに送信する。同様に、通信マスタがメモリマップのデータを送信する場合は、送信したいデータに対応した通信コマンドとアドレスを指定することで、通信スレーブは指定データをメモリマップに格納する。このとき、アドレスと一緒にデータサイズを指定することで、連続した複数データの送受信をしてもよい。   The memory map is defined for each communication command. When the communication master receives the data of the memory map, the communication slave performs the P2P communication by designating the communication command and the address corresponding to the data to be received, and the communication slave takes out the specified data from the memory map and performs the P2P communication. Send to communication master. Similarly, when the communication master transmits the data of the memory map, the communication slave stores the specified data in the memory map by specifying a communication command and an address corresponding to the data to be transmitted. At this time, continuous data transmission and reception may be performed by designating the data size together with the address.

次に、図26を参照して、第1の通信における第2の通信モードにおいて、カメラ本体5200とアクセサリ間で予め規定する通信コマンドの例について説明する。ここでは、例として、カメラマイコン5205を通信マスタとし、アダプタマイコン5302を通信スレーブとして説明する。また、図26の表中のDCとは、通信マスタから通信スレーブへの送信データであり、1から順に1バイトごとのデータが連続して送信される。DAとは通信スレーブから通信マスタへの送信データであり、1から順に1バイトごとのデータが連続して送信される。   Next, with reference to FIG. 26, an example of a communication command defined in advance between the camera body 5200 and the accessory in the second communication mode in the first communication will be described. Here, as an example, the camera microcomputer 5205 will be described as a communication master, and the adapter microcomputer 5302 will be described as a communication slave. Further, DC in the table of FIG. 26 is transmission data from the communication master to the communication slave, and data of 1 byte is continuously transmitted from 1 in order. DA is transmission data from the communication slave to the communication master, and data of 1 byte is continuously transmitted from 1 in order.

まず、通信マスタがメモリマップを使用して通信スレーブからのデータを受信するための通信コマンド(データ送信要求)の例であるデータ受信コマンド51100について説明する。カメラマイコン5205から送信されるデータDCは、通信バイト数、コマンド、メモリマップのアドレス、受信データ(バイト)数Nおよびチェックサムをこの順で含む計5バイトのデータである。また、アダプタマイコン5302から送信されるデータDAは、通信バイト数、コマンド、データ51からデータNまでのN個のデータおよびチェックサムをこの順で含む計(N+3)バイトのデータである。DAのコマンドやチェックサムは通信マスタから通信スレーブへの通信のエラーを検出するために使用される。エラーが検出された場合は、通信マスタにより同じ通信が再実行(リトライ)される。   First, a data reception command 51100, which is an example of a communication command (data transmission request) for a communication master to receive data from a communication slave using a memory map, will be described. The data DC transmitted from the camera microcomputer 5205 is a total of 5 bytes of data including the number of communication bytes, the command, the address of the memory map, the number N of received data (bytes), and the checksum in this order. The data DA transmitted from the adapter microcomputer 5302 is a total of (N + 3) bytes of data including the number of communication bytes, the command, N data from the data 51 to the data N, and the checksum in this order. DA commands and checksums are used to detect communication errors from the communication master to the communication slave. If an error is detected, the same communication is re-executed (retried) by the communication master.

カメラマイコン5205は、DAが前述したカメラ−アダプタ最大受信サイズを超えないように、受信データ数Nを設定する。すなわち、
受信データ数N≦カメラ−アダプタ最大受信サイズ−3
と設定する。また、カメラ本体5200とアクセサリ間で予め規定されるカメラ−アダプタ最大送信サイズは、DCの送信サイズである5バイト以上である必要がある。
The camera microcomputer 5205 sets the number N of received data so that DA does not exceed the above-described camera-adapter maximum reception size. That is,
Number of received data N ≦ Camera-adapter maximum received size-3
Set as Also, the camera-adapter maximum transmission size defined in advance between the camera body 5200 and the accessory needs to be 5 bytes or more, which is the DC transmission size.

次に、通信マスタがメモリマップを使用して通信スレーブにデータ送信を行わせるための通信コマンドの例としてデータ送信コマンド51101について説明する。カメラマイコン5205から送信されるデータDCは、通信バイト数、コマンド、メモリマップのアドレス、データ51からデータNまでのN個のデータおよびチェックサムをこの順で含む計(N+4)バイトのデータである。また、アダプタマイコン5302から送信されるデータDAは、通信バイト数、コマンド、受信データ数Nおよびチェックサムをこの順で含む計4バイトのデータである。DAのコマンドやチェックサムは通信スレーブから通信マスタへの通信のエラーを検出するために使用される。エラーが検出された場合は、通信スレーブにより同じ通信が再実行(リトライ)される。   Next, a data transmission command 51101 will be described as an example of a communication command for causing the communication master to transmit data using the memory map by the communication master. The data DC transmitted from the camera microcomputer 5205 is a total of (N + 4) bytes of data including the number of communication bytes, the command, the address of the memory map, the N data from data 51 to data N, and the checksum in this order. . The data DA transmitted from the adapter microcomputer 5302 is 4-byte data including the number of communication bytes, the command, the number N of received data, and the checksum in this order. The DA command and the checksum are used to detect a communication error from the communication slave to the communication master. If an error is detected, the same communication is re-executed (retried) by the communication slave.

カメラマイコン5205は、DCが前述したカメラ−アダプタ最大送信サイズを超えないように送信データ(バイト)数Nを設定する。すなわち、
送信データ数N≦カメラ−アダプタ最大送信サイズ−4
と設定する。また、カメラ本体5200とアクセサリ間で予め規定されるカメラ−アダプタ最大受信サイズは、DAの送信サイズである4バイト以上である必要がある。
The camera microcomputer 5205 sets the number N of transmission data (bytes) so that DC does not exceed the camera-adapter maximum transmission size described above. That is,
Number of transmission data N ≦ Maximum transmission size of camera-adapter-4
Set as Also, the camera-adapter maximum reception size defined in advance between the camera body 5200 and the accessory needs to be 4 bytes or more, which is the DA transmission size.

次に、通信マスタがメモリマップを使用して通信スレーブに先頭アドレスのデータから順番にデータ送信を行わせるための通信コマンドの例であるデータ送信コマンド51102について説明する。このコマンドは、先頭アドレスのデータから送信する必要のある大容量データの送信を目的としているため、全データを送信完了するまで繰り返されるコマンドであり、例えばアダプタマイコン5302のファームアップに使用される。カメラマイコン5205から送信されるデータDCは、通信バイト数、コマンド、データ51からデータNまでのN個のデータおよびチェックサムをこの順で含む計(N+3)バイトのデータである。また、アダプタマイコン5302から送信されるデータDAは、通信バイト数、コマンド、受信データ数Nおよびチェックサムをこの順で含む計4バイトのデータである。DAのコマンドやチェックサムは通信スレーブから通信マスタへの通信のエラーを検出するために使用される。エラーが検出された場合は、通信スレーブにより同じ通信が再実行(リトライ)される。   Next, a data transmission command 51102 which is an example of a communication command for causing the communication master to transmit data in order from the data of the head address using the memory map by the communication master will be described. Since this command is intended to transmit large-capacity data that needs to be transmitted from the data at the head address, this command is repeated until transmission of all data is completed, and is used, for example, for firmware upgrade of the adapter microcomputer 5302. The data DC transmitted from the camera microcomputer 5205 is a total of (N + 3) bytes of data including the number of communication bytes, the command, N data from data 51 to data N, and a checksum in this order. The data DA transmitted from the adapter microcomputer 5302 is 4-byte data including the number of communication bytes, the command, the number N of received data, and the checksum in this order. The DA command and the checksum are used to detect a communication error from the communication slave to the communication master. If an error is detected, the same communication is re-executed (retried) by the communication slave.

カメラマイコン5205は、DCが前述したカメラ−アダプタ最大送信サイズを超えないように、送信データ数Nを設定する。すなわち、
送信データ数N≦カメラ−アダプタ最大送信サイズ−3
と設定する。また、カメラ本体5200とアクセサリ間で予め規定されるカメラ−アダプタ最大受信サイズは、DAの送信サイズである4バイト以上である必要がある。
The camera microcomputer 5205 sets the transmission data number N so that the DC does not exceed the camera-adapter maximum transmission size described above. That is,
Number of transmission data N ≦ Maximum transmission size of camera-adapter-3
Set as Also, the camera-adapter maximum reception size defined in advance between the camera body 5200 and the accessory needs to be 4 bytes or more, which is the DA transmission size.

次に、図27A,27Bに示すフローチャートを参照して、第1の通信における第2の通信モードにおいてメモリマップを使用して行われる通信処理について説明する。ここでは例として、通信マスタであるカメラ本体5200と通信スレーブである中間アダプタ5300との間で行われる通信処理について説明するが、通信スレーブは交換レンズ5100であってもよい。   Next, a communication process performed using a memory map in the second communication mode in the first communication will be described with reference to flowcharts shown in FIGS. 27A and 27B. Here, as an example, a communication process performed between the camera body 5200 as a communication master and the intermediate adapter 5300 as a communication slave will be described. However, the communication slave may be an interchangeable lens 5100.

まず、図27Aのフローチャートを参照して、カメラ本体5200が中間アダプタ5300からメモリマップ上の連続データを受信するための処理(メモリマップ受信処理)について説明する。カメラマイコン5205は、前述したデータ受信コマンド51100を使用してデータ受信を行う。   First, with reference to the flowchart of FIG. 27A, a process (memory map reception process) for the camera main body 5200 to receive continuous data on the memory map from the intermediate adapter 5300 will be described. The camera microcomputer 5205 performs data reception using the data reception command 51100 described above.

S51200では、カメラマイコン5205は、送信を要求するデータに対応するコマンド(データ送信要求)、メモリマップの開始アドレスS_ADRおよび受信データ全数A_Nを設定する。   In step S51200, the camera microcomputer 5205 sets a command (data transmission request) corresponding to data requested to be transmitted, a start address S_ADR of the memory map, and a total number of received data A_N.

次にS51201では、カメラマイコン5205は、設定した開始アドレスS_ADRと受信データ全数A_Nに応じて、今回の通信で送信するメモリマップアドレスADRと受信データ数Nを設定する。例えば、
メモリマップアドレスADR=開始アドレスS_ADR
受信データ数N=受信データ全数A_N
と設定する。その後、DAが前述したカメラ−アダプタ最大受信サイズを超えないように受信データ数Nを制限する。すなわち、受信データ数N>カメラ−アダプタ最大受信サイズ−3である場合は、
受信データ数N=カメラ−アダプタ最大受信サイズ−3
と再設定する。そして、
開始アドレスS_ADR=開始アドレスS_ADR+受信データ数N
受信データ全数A_N=受信データ全数A_N−受信データ数N
と再設定する。これにより、今回送信するデータが決まると同時に、受信データ全数A_Nに残りデータ数が再設定されるので、次回送信するデータがあるか否かを判定できるようなる。
Next, in S51201, the camera microcomputer 5205 sets the memory map address ADR and the number N of received data to be transmitted in the current communication according to the set start address S_ADR and the total number of received data A_N. For example,
Memory map address ADR = start address S_ADR
Number of received data N = Total number of received data A_N
Set as Thereafter, the number N of received data is limited so that DA does not exceed the camera-adapter maximum reception size described above. That is, if the number of received data N> camera-adapter maximum reception size−3,
Number of received data N = camera-adapter maximum received size-3
And set again. And
Start address S_ADR = Start address S_ADR + Number of received data N
Received data total number A_N = Received data total number A_N−Received data number N
And set again. Thereby, the data to be transmitted this time is determined, and at the same time, the remaining data number is reset to the total number of received data A_N, so that it is possible to determine whether there is data to be transmitted next time.

次にS51202では、カメラマイコン5205は、S51200とS51201で設定したコマンド、メモリマップアドレスADRおよび受信データ数Nを、データ受信コマンド51100のDCのフォーマットに従って送信バッファ52083に格納する。   Next, in S51202, the camera microcomputer 5205 stores the command set in S51200 and S5121, the memory map address ADR, and the number N of received data in the transmission buffer 52083 in accordance with the DC format of the data reception command 51100.

次にS51203では、カメラマイコン5205は、カメラ第1通信回路5241を介してアダプタマイコン5302にDCを送信する。さらにカメラマイコン5205は、カメラ第1通信回路5241を介してアダプタマイコン5302からDAを受信する。また、カメラマイコン5205は、送信バッファ52083に送信データを分割して格納するとともに、S51202とS51203のDCの送信までを繰り返すことで、送信データを複数回に分けて分割送信してもよい。   Next, in S51203, the camera microcomputer 5205 transmits DC to the adapter microcomputer 5302 via the camera first communication circuit 5241. Further, the camera microcomputer 5205 receives DA from the adapter microcomputer 5302 via the camera first communication circuit 5241. Further, the camera microcomputer 5205 may divide and transmit the transmission data in a plurality of times by dividing and storing the transmission data in the transmission buffer 52083 and repeating steps S51202 and S51203 up to DC transmission.

次にS51204では、カメラマイコン5205は、受信バッファ52084に格納された受信データを取り出して、所定のメモリに格納する。カメラマイコン5205は、受信データを取り出す際にチェックサムエラー等の通信エラーを検出した場合は、
開始アドレスS_ADR=開始アドレスS_ADR−受信データ数N
受信データ全数A_N=受信データ全数A_N+受信データ数N
と再設定する。これにより、開始アドレスS_ADRと受信データ全数A_Nを通信前の値に戻すことができ、通信のリトライ制御が可能となる。
Next, in S51204, the camera microcomputer 5205 takes out the reception data stored in the reception buffer 52084 and stores it in a predetermined memory. If the camera microcomputer 5205 detects a communication error such as a checksum error when extracting the received data,
Start address S_ADR = start address S_ADR-number of received data N
Received data total number A_N = Received data total number A_N + Received data number N
And set again. As a result, the start address S_ADR and the total number of received data A_N can be returned to values before communication, and communication retry control can be performed.

続いてS51205では、カメラマイコン5205は、アダプタマイコン5302から全データの受信を完了したか否かを判定し、受信が完了していれば本処理を終了し、そうでなければS51201に戻る。本実施例では、受信データ全数A_Nに残りデータ数が設定されているため、受信データ全数A_Nが1以上であれば、カメラマイコン5205はS51201に戻る。   Subsequently, in step S51205, the camera microcomputer 5205 determines whether or not reception of all data from the adapter microcomputer 5302 has been completed. If reception has been completed, the camera microcomputer 5205 terminates the present process. Otherwise, the process returns to step S5201. In this embodiment, since the remaining data number is set to the total number of received data A_N, if the total number of received data A_N is 1 or more, the camera microcomputer 5205 returns to S51201.

次に、図27Bのフローチャートを参照して、カメラ本体5200が中間アダプタ5300からメモリマップ上の連続データを送信するための処理(メモリマップ送信処理)について説明する。カメラマイコン5205は、前述したデータ送信コマンド51101,51102を使用してデータ送信を行う。   Next, with reference to the flowchart of FIG. 27B, a process (memory map transmission process) for the camera body 5200 to transmit continuous data on the memory map from the intermediate adapter 5300 will be described. The camera microcomputer 5205 performs data transmission using the data transmission commands 51101 and 51102 described above.

S51210では、カメラマイコン5205は、送信したいデータに対応するコマンド(データ受信要求)、メモリマップの開始アドレスS_ADRおよび送信データ全数A_Nを設定する。ただし、データ送信コマンド51102を用いてデータ送信を行う場合は、開始アドレスS_ADRを設定する必要はない。   In S51210, the camera microcomputer 5205 sets the command (data reception request) corresponding to the data to be transmitted, the start address S_ADR of the memory map, and the total number of transmission data A_N. However, when data transmission is performed using the data transmission command 51102, it is not necessary to set the start address S_ADR.

次にS51211では、カメラマイコン5205は、設定した開始アドレスS_ADRと送信データ全数A_Nに応じて、今回の通信で送信するメモリマップアドレスADRと送信データ数Nを設定する。例えば、
メモリマップアドレスADR=開始アドレスS_ADR
送信データ数N=送信データ全数A_N
と設定する。その後、カメラマイコン5205は、DAが前述したカメラ−アダプタ最大受信サイズを超えないように送信データ数Nを制限する。すなわち、送信データ数N>カメラ−アダプタ最大送信サイズ−4である場合は、
送信データ数N=カメラ−アダプタ最大受信サイズ−4
と再設定する。そして、
開始アドレスS_ADR=開始アドレスS_ADR+送信データ数N
送信データ全数A_N=送信データ全数A_N−送信データ数N
と再設定する。これにより、今回送信するデータが決まると同時に、送信データ全数A_Nに残りデータ数が再設定されるので、次回送信するデータがあるか否かを判定することができるようなる。ただし、データ送信コマンド51102を用いてデータ送信する場合は、メモリマップアドレスADRと開始アドレスS_ADRを設定する必要はない。
Next, in S51211, the camera microcomputer 5205 sets the memory map address ADR and the number N of transmission data to be transmitted in this communication according to the set start address S_ADR and the total number A_N of transmission data. For example,
Memory map address ADR = start address S_ADR
Number of transmission data N = Total number of transmission data A_N
Set as After that, the camera microcomputer 5205 limits the number N of transmission data so that DA does not exceed the above-described camera-adapter maximum reception size. That is, when the number of transmission data N> the camera-adapter maximum transmission size−4,
Number of transmission data N = camera-adapter maximum reception size-4
And set again. And
Start address S_ADR = start address S_ADR + number of transmission data N
Total number of transmitted data A_N = Total number of transmitted data A_N−Number of transmitted data N
And set again. As a result, the data to be transmitted this time is determined, and at the same time, the remaining data number is reset to the total number of transmission data A_N, so that it is possible to determine whether there is data to be transmitted next time. However, when data is transmitted using the data transmission command 51102, it is not necessary to set the memory map address ADR and the start address S_ADR.

次にS51212では、カメラマイコン5205は、S51210,S51211で設定したコマンド、メモリマップアドレスADRおよび送信データ数Nを含む連続データとチェックサムを、データ送信コマンド51101,51102のDCのフォーマットに従って送信バッファ52083に格納する。   Next, in step S5122, the camera microcomputer 5205 converts the command set in steps S51210 and S51211, continuous data including the memory map address ADR and the number N of transmission data, and a checksum into the transmission buffer 52083 according to the DC format of the data transmission commands 51101 and 51102. To be stored.

次にS51213では、カメラマイコン5205は、カメラ第1通信回路5241を介してアダプタマイコン5302にDCを送信する。その後、カメラマイコン5205は、カメラ第1通信回路5241を介してアダプタマイコン5302からDAを受信する。また、カメラマイコン5205は、送信バッファ52083に送信データを分割して格納するとともに、S51212とS51213のDCの送信までを繰り返すことで、送信データを複数回に分けて分割送信してもよい。   Next, in step S51213, the camera microcomputer 5205 transmits DC to the adapter microcomputer 5302 via the camera first communication circuit 5241. Thereafter, the camera microcomputer 5205 receives DA from the adapter microcomputer 5302 via the camera first communication circuit 5241. Further, the camera microcomputer 5205 may divide and transmit the transmission data in a plurality of times by dividing the transmission data into the transmission buffer 52083 and storing the transmission data in the transmission buffer 52083, and repeating S51212 and S51213 up to DC transmission.

次にS51214では、カメラマイコン5205は、受信バッファ52084に格納された受信データを取り出して、所定のメモリに格納する。カメラマイコン5205は、受信データを取り出す際にチェックサムエラー等の通信エラーを検出した場合は、
開始アドレスS_ADR=開始アドレスS_ADR−送信データ数N
送信データ全数A_N=送信データ全数A_N+送信データ数N
と再設定する。これにより、開始アドレスS_ADRと送信データ全数A_Nを通信前の値に戻すことができ、通信のリトライ制御が可能となる。
Next, in S51214, the camera microcomputer 5205 takes out the reception data stored in the reception buffer 52084 and stores it in a predetermined memory. If the camera microcomputer 5205 detects a communication error such as a checksum error when extracting the received data,
Start address S_ADR = start address S_ADR-number of transmission data N
Total number of transmitted data A_N = Total number of transmitted data A_N + Number of transmitted data N
And set again. As a result, the start address S_ADR and the total number of transmission data A_N can be returned to values before communication, and communication retry control can be performed.

次にS51215では、カメラマイコン5205は、アダプタマイコン5302に対して全データの送信を完了したか否かを判定し、送信が完了していれば本処理を終了し、そうでなければS51211に戻る。本実施例では、送信データ全数A_Nに残りデータ数が設定されているため、送信データ全数A_Nが1以上であれば、カメラマイコン5205はS51211に戻る。   Next, in step S51215, the camera microcomputer 5205 determines whether or not transmission of all data to the adapter microcomputer 5302 has been completed. If the transmission has been completed, the camera microcomputer 5205 terminates this process. Otherwise, the process returns to step S51211. . In this embodiment, since the remaining data number is set to the total transmission data number A_N, if the total transmission data number A_N is 1 or more, the camera microcomputer 5205 returns to S51211.

次に、図28に示すフローチャートを参照して、中間アダプタ5300がカメラ本体5200からP2P通信を受信したときに行う処理(中間アダプタ通信処理)について説明する。アダプタマイコン5302は、コンピュータプログラムに従って本処理を実行する。   Next, the processing (intermediate adapter communication processing) performed when the intermediate adapter 5300 receives the P2P communication from the camera body 5200 will be described with reference to the flowchart shown in FIG. Adapter microcomputer 5302 executes this processing according to a computer program.

S51220では、アダプタマイコン5302は、受信バッファ53034に格納された受信データを取り出して、所定のメモリに格納する。   In S51220, the adapter microcomputer 5302 takes out the reception data stored in the reception buffer 53034 and stores it in a predetermined memory.

次にS51221では、アダプタマイコン5302は、所定のメモリに格納された受信データからどのコマンドを受信したのかを解析する。   Next, in S51221, the adapter microcomputer 5302 analyzes which command has been received from the received data stored in the predetermined memory.

次にS51222では、アダプタマイコン5302は、受信したコマンドに対応した処理を行う。例えば、受信データを所定のメモリに格納したり、搭載機能を動作させたり、搭載機能の情報を所定のメモリに格納にしたりする。   Next, in S51222, the adapter microcomputer 5302 performs a process corresponding to the received command. For example, the received data is stored in a predetermined memory, the mounted function is operated, and information on the mounted function is stored in the predetermined memory.

次にS51223では、アダプタマイコン5302は、受信したコマンドがカメラマイコン5205からのデータ受信コマンドか否かを判定する。データ受信コマンドを受信した場合はS51224に進み、そうでなければS51225に進む。   Next, in step S51223, the adapter microcomputer 5302 determines whether the received command is a data reception command from the camera microcomputer 5205. If a data reception command has been received, the process advances to step S51224; otherwise, the process advances to step S51225.

S51224では、アダプタマイコン5302は、受信したデータ受信コマンドに応じて、送信バッファ53033にデータを格納する。例えば、データ受信コマンド51100に対応するメモリマップのうちデータ受信コマンド51100に示されたメモリマップアドレスからデータ受信コマンド51100に示された受信データ数だけデータを取り出す。そして、アダプタマイコン5302は、読み出したデータをDAのフォーマットに従って送信バッファ53033に格納する。   In S51224, the adapter microcomputer 5302 stores the data in the transmission buffer 53033 according to the received data reception command. For example, of the memory map corresponding to the data reception command 51100, data is extracted from the memory map address indicated by the data reception command 51100 by the number of reception data indicated by the data reception command 51100. Then, adapter microcomputer 5302 stores the read data in transmission buffer 53033 according to the format of DA.

一方、S51225では、アダプタマイコン5302は、受信したコマンドがカメラマイコン5205からのデータ送信コマンド(51101または51102)か否かを判定する。データ送信コマンドを受信した場合はS51226に進み、そうでなければS51229に進む。   On the other hand, in step S51225, the adapter microcomputer 5302 determines whether the received command is a data transmission command (51101 or 51102) from the camera microcomputer 5205. If a data transmission command has been received, the process advances to step S51226; otherwise, the process advances to step S51229.

S51226では、アダプタマイコン5302は、受信したデータ送信コマンドに対応するメモリマップにデータを格納する。すなわち、アダプタマイコン5302は、受信したデータで既存のデータを更新する。例えば、アダプタマイコン5302は、データ送信コマンド51101を受信した場合は、メモリマップのうちデータ送信コマンド51101に示されたアドレスから、カメラマイコン5205から受信したデータを連続して格納する。また、アダプタマイコン5302は、データ送信コマンド51102を受信した場合は、これが初回であればメモリマップの先頭アドレスから、そうでなければ前回データを格納したアドレスの次のアドレスから、カメラマイコン5205から受信したデータを連続して格納する。   In S51226, adapter microcomputer 5302 stores the data in the memory map corresponding to the received data transmission command. That is, adapter microcomputer 5302 updates existing data with the received data. For example, when receiving the data transmission command 51101, the adapter microcomputer 5302 continuously stores the data received from the camera microcomputer 5205 from the address indicated in the data transmission command 51101 in the memory map. When the data transmission command 51102 is received for the first time, the adapter microcomputer 5302 receives the data transmission command 51102 from the head address of the memory map, otherwise, receives the data transmission command 51102 from the camera microcomputer 5205 from the address next to the address where the previous data was stored. The stored data is stored continuously.

次にS51227では、アダプタマイコン5302は、受信したデータ送信コマンドにおけるDAのフォーマットに従って、応答して送信するデータを送信バッファ53033に格納する。   Next, in S51227, the adapter microcomputer 5302 stores data to be transmitted in response to the transmission buffer 53033 according to the format of the DA in the received data transmission command.

一方、S51229では、アダプタマイコン5302は、受信したデータ送信コマンドがカメラマイコン5205に対して応答が必要なコマンドか否かを判定し、そうであればS51227に進む。そうでなければ、本処理を終了する。   On the other hand, in step S51229, the adapter microcomputer 5302 determines whether the received data transmission command is a command that requires a response to the camera microcomputer 5205. If so, the process advances to step S51227. Otherwise, the process ends.

S51224またはS51227からS51228に進んだアダプタマイコン5302は、アダプタ第1通信回路5341を介して、送信バッファ53033に格納されたDAをカメラマイコン5205に送信する。そして、本処理を終了する。また、アダプタマイコン5302は、送信バッファ53033に送信データを分割して格納するとともに、S51224またはS51227とS51228のDAの送信までを繰り返すことで、送信データを複数回に分けて分割送信してもよい。   The adapter microcomputer 5302 that has proceeded from S51224 or S51227 to S51228 transmits the DA stored in the transmission buffer 53033 to the camera microcomputer 5205 via the adapter first communication circuit 5341. Then, the present process ends. The adapter microcomputer 5302 may divide and store the transmission data in the transmission buffer 53033 and repeat the steps S51224 or S51227 and S51228 until the transmission of the DA, thereby dividing and transmitting the transmission data a plurality of times. .

以上の処理を行うことで、中間アダプタ5300との間で中間アダプタ5300が連続通信可能な範囲で通信を行えるため、中間アダプタ5300の通信性能に合わせた最適な通信速度で通信を行うことができる。   By performing the above processing, communication with the intermediate adapter 5300 can be performed within a range in which the intermediate adapter 5300 can continuously communicate, so that communication can be performed at an optimal communication speed that matches the communication performance of the intermediate adapter 5300. .

本実施例によれば、カメラ本体5200と交換レンズ5100および中間アダプタ5300を含む複数のアクセサリとの間の「一対多」通信を、これらの発売時期が互いに異なる場合でもそれらの互換性を保証しつつ、より高速または最適な通信速度で行うことができる。   According to the present embodiment, “one-to-many” communication between the camera body 5200 and a plurality of accessories including the interchangeable lens 5100 and the intermediate adapter 5300 is performed while guaranteeing their compatibility even when their release dates are different from each other. Can be performed at a higher or optimal communication speed.

本発明の実施例6について説明する。実施例6は、実施例5と同様の構成を有するが、互いに発売時期が異なるカメラ本体とアクセサリを用いる場合に、コマンドの互換性を保証しつつ、最適なデータ量で通信でき、かつ最適なアクセサリの制御が可能な実施例である。カメラ本体の起動時に、メモリマップ情報としてメモリマップサイズを受信することで、アクセサリにおけるメモリマップの拡張状況に合わせた通信と制御を行うことができる。   A sixth embodiment of the present invention will be described. The sixth embodiment has the same configuration as that of the fifth embodiment, but when using a camera body and accessories whose release timings are different from each other, it is possible to communicate with an optimum amount of data while ensuring compatibility of commands, and This is an embodiment capable of controlling accessories. By receiving the memory map size as the memory map information when the camera body is activated, communication and control can be performed according to the expansion state of the memory map in the accessory.

図29を参照して、第1の通信(「一対多」通信)における第2の通信モード(P2P通信モード)において、カメラ本体5200とアクセサリ間で予め規定するメモリマップの拡張フォーマットの例について説明する。メモリマップの拡張フォーマットは、通信コマンドごとに規定される。   With reference to FIG. 29, an example of an extended format of a memory map defined in advance between the camera body 5200 and the accessory in the second communication mode (P2P communication mode) in the first communication (“one-to-many” communication) will be described. . The extended format of the memory map is defined for each communication command.

メモリマップ51300は、実施例5で説明したメモリマップ51000に対する拡張フォーマットを有し、複数のデータ51302を含んでいる。複数のデータ51302のそれぞれにはアドレス51301が割り振られている。各データの値51303は、固定値もしくは任意のタイミングで更新される。なお、アドレス51301のうちアドレスN−1まではメモリマップ51000と同じアドレスであり、それ以降のアドレスN+M−1までが拡張アドレス領域である。   The memory map 51300 has an extended format for the memory map 51000 described in the fifth embodiment, and includes a plurality of data 51302. An address 51301 is assigned to each of the plurality of data 51302. The value 51303 of each data is updated at a fixed value or at an arbitrary timing. The address 51301 is the same address as the memory map 51000 up to the address N-1, and the subsequent address N + M-1 is the extended address area.

図24に示したフローチャートのS5906において、メモリマップ51000に対応するアダプタマイコン5302は、メモリマップ情報としてメモリマップサイズNをカメラマイコン5205に送信する。一方、メモリマップ51300に対応するアダプタマイコン5302は、メモリマップ情報としてメモリマップサイズN+M−1をカメラマイコン5205に送信する。   In S5906 of the flowchart shown in FIG. 24, the adapter microcomputer 5302 corresponding to the memory map 51000 transmits the memory map size N to the camera microcomputer 5205 as memory map information. On the other hand, the adapter microcomputer 5302 corresponding to the memory map 51300 transmits the memory map size N + M−1 as the memory map information to the camera microcomputer 5205.

このとき、カメラマイコン5205がメモリマップ51000に対応していれば、どちらのアダプタマイコン5302に対しても、アドレスN−1までのアドレス領域でデータ通信を行う。これに対して、カメラマイコン5205がメモリマップ51300に対応している場合は、メモリマップサイズNを送信してくるアダプタマイコン5302に対しては、アドレスN−1までのアドレス領域でデータ通信を行う。また、メモリマップサイズN+M−1を送信してくるアダプタマイコン5302に対しては、アドレスN+M−1までのアドレス領域でデータ通信を行う。   At this time, if the camera microcomputer 5205 corresponds to the memory map 51000, data communication is performed with any of the adapter microcomputers 5302 in an address area up to the address N-1. On the other hand, when the camera microcomputer 5205 supports the memory map 51300, data communication with the adapter microcomputer 5302 that transmits the memory map size N is performed in the address area up to the address N-1. . Further, data communication is performed with respect to the adapter microcomputer 5302 that transmits the memory map size N + M−1 in an address area up to the address N + M−1.

このような構成を採用することで、それぞれのアダプタマイコン5に対して対応するデータの範囲で制御を行えるため、アクセサリのメモリマップの拡張状況に合わせた通信および制御を行うことができる。   By adopting such a configuration, each adapter microcomputer 5 can be controlled within a corresponding data range, so that communication and control can be performed according to the expansion status of the memory map of the accessory.

なお、メモリマップ情報としてカメラマイコン5205に送信するのをメモリマップサイズ自体ではなく、メモリマップバージョンのようにメモリマップサイズと関連付けられる情報であってもよい。すなわち、メモリマップサイズに関する情報であればよい。   The information transmitted to the camera microcomputer 5205 as the memory map information may be information associated with the memory map size, such as a memory map version, instead of the memory map size itself. That is, any information on the memory map size may be used.

本実施例によれば、カメラ本体と交換レンズおよび中間アダプタを含む複数のアクセサリとの間の「一対多」通信を、これらの発売時期が互いに異なる場合でもそれらの互換性を保証しつつ、最適なデータ量での通信と最適なアクセサリの制御を行うことができる。
(その他の実施例)
本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサーがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
According to the present embodiment, the “one-to-many” communication between the camera body and a plurality of accessories including the interchangeable lens and the intermediate adapter can be performed in an optimal manner while guaranteeing their compatibility even when their release dates are different from each other. Communication based on the amount of data and optimal accessory control can be performed.
(Other Examples)
The present invention supplies a program for realizing one or more functions of the above-described embodiments to a system or an apparatus via a network or a storage medium, and one or more processors in a computer of the system or the apparatus read and execute the program. This processing can be realized. Further, it can also be realized by a circuit (for example, an ASIC) that realizes one or more functions.

以上説明した各実施例は代表的な例にすぎず、本発明の実施に際しては、各実施例に対して種々の変形や変更が可能である。   Each of the embodiments described above is only a typical example, and various modifications and changes can be made to each embodiment when the present invention is implemented.

100 交換レンズ(アクセサリ装置)
111 レンズマイクロコンピュータ
141,241,341 第1の通信回路
142,242,342 第2の通信回路
200 カメラ本体(撮像装置)
205 カメラマイクロコンピュータ
300 中間アダプタ(アクセサリ装置)
302 アダプタマイクロコンピュータ
100 Interchangeable lens (accessory device)
111 Lens microcomputer 141, 241, 341 First communication circuit 142, 242, 342 Second communication circuit 200 Camera body (imaging device)
205 Camera microcomputer 300 Intermediate adapter (accessory device)
302 Adapter microcomputer

Claims (39)

アクセサリ装置が着脱可能に装着される撮像装置であって、
前記アクセサリ装置との間に通信経路を設けるカメラ通信部と、
前記カメラ通信部を介して前記アクセサリ装置と通信するカメラ制御部とを有し、
前記カメラ制御部は、
前記アクセサリ装置から、該アクセサリ装置が連続して送信可能なデータサイズを示すアクセサリ送信可能サイズと、前記アクセサリ装置が連続して受信可能なデータサイズを示すアクセサリ受信可能サイズとを受信し、
前記カメラ制御部が連続して受信可能なデータサイズと前記アクセサリ送信可能サイズに基づいて第1の連続受信可能データサイズに設定し、
前記カメラ制御部が連続して送信可能なデータサイズと前記アクセサリ受信可能サイズに基づいて第1の連続送信可能データサイズに設定し、
前記第1の連続受信可能データサイズおよび前記第1の連続送信可能データサイズを上限としたデータサイズで前記アクセサリ装置との通信を行うことを特徴とする撮像装置。
An imaging device to which an accessory device is detachably attached,
A camera communication unit that provides a communication path with the accessory device;
A camera control unit that communicates with the accessory device via the camera communication unit,
The camera control unit includes:
From the accessory device, an accessory transmittable size indicating a data size that the accessory device can continuously transmit, and an accessory receivable size indicating a data size that the accessory device can continuously receive,
The camera control unit sets the first continuously receivable data size based on the continuously receivable data size and the accessory transmittable size,
The camera control unit sets a first continuously transmittable data size based on the continuously transmittable data size and the accessory receivable size,
An image capturing apparatus, wherein communication with the accessory device is performed with the first continuous receivable data size and a data size having the first continuous transmittable data size as an upper limit.
前記カメラ制御部は、
該カメラ制御部が連続して受信可能な前記データサイズと前記アクセサリ送信可能サイズのうちより小さい方を前記第1の連続受信可能データサイズに設定し、
前記カメラ制御部が連続して送信可能な前記データサイズと前記アクセサリ受信可能サイズのうちより小さい方を前記第1の連続送信可能データサイズに設定することを特徴とする請求項1に記載の撮像装置。
The camera control unit includes:
The camera control unit sets the smaller of the continuously receivable data size and the accessory transmittable size as the first continuously receivable data size,
2. The imaging apparatus according to claim 1, wherein the camera control unit sets a smaller one of the data size that can be continuously transmitted and the accessory receivable size as the first continuously transmittable data size. 3. apparatus.
前記カメラ制御部は、前記撮像装置に複数のアクセサリ装置が装着された場合に、前記第1の連続受信可能データサイズおよび前記第1の連続送信可能データサイズを、前記アクセサリ装置ごとに設定することを特徴とする請求項1に記載の撮像装置。   The camera control unit sets the first continuously receivable data size and the first continuously transmittable data size for each accessory device when a plurality of accessory devices are mounted on the imaging device. The imaging device according to claim 1, wherein: 前記アクセサリ装置は、前記カメラ制御部との間で送受信可能なアクセサリデータを有しており、
前記カメラ制御部は、前記アクセサリデータのデータ配置情報を前記アクセサリ装置から受信することを特徴とする請求項1から3のいずれか一項に記載の撮像装置。
The accessory device has accessory data that can be transmitted and received to and from the camera control unit,
The imaging device according to claim 1, wherein the camera control unit receives data arrangement information of the accessory data from the accessory device.
前記カメラ制御部は、前記アクセサリデータのデータ配置情報と前記第1の連続受信可能データサイズとに応じて、連続受信可能なデータサイズの範囲で前記アクセサリ装置から前記アクセサリデータを連続受信することを特徴とする請求項4に記載の撮像装置。   The camera control unit, according to the data arrangement information of the accessory data and the first continuously receivable data size, continuously receives the accessory data from the accessory device in a range of the continuously receivable data size. The imaging device according to claim 4, wherein: 前記カメラ制御部は、前記アクセサリデータのデータ配置情報と前記第1の連続送信可能データサイズとに応じて、連続送信可能なデータサイズの範囲で前記アクセサリ装置に前記アクセサリデータを連続送信することを特徴とする請求項4または5に記載の撮像装置。   The camera control unit, according to the data arrangement information of the accessory data and the first continuously transmittable data size, continuously transmits the accessory data to the accessory device within a range of the continuously transmittable data size. The imaging device according to claim 4 or 5, wherein 前記カメラ制御部は、前記アクセサリ装置への通信に対するエラーが検出された場合は、前記アクセサリ装置に対して前記通信を再実行することを特徴とする請求項1から6のいずれか一項に記載の撮像装置。   7. The camera control unit according to claim 1, wherein when an error in communication with the accessory device is detected, the camera control unit re-executes the communication with the accessory device. 8. Imaging device. 前記カメラ制御部は、前記第1の連続受信可能データサイズが設定される前は、前記カメラ制御部と前記アクセサリ装置との間で設定された第2の連続受信可能データサイズに応じて前記アクセサリ装置からの送信データを受信することを特徴とする請求項1から7のいずれか一項に記載の撮像装置。   Before the first continuously receivable data size is set, the camera control unit may control the accessory according to a second continuously receivable data size set between the camera control unit and the accessory device. The imaging device according to claim 1, wherein the imaging device receives transmission data from the device. 前記カメラ制御部は、前記第1の連続送信可能データサイズが設定される前は、前記カメラ制御部と前記アクセサリ装置との間で設定された第2の連続送信可能データサイズに応じて前記アクセサリ装置に対してデータを送信することを特徴とする請求項1から8のいずれか一項に記載の撮像装置。   Before the first continuously transmittable data size is set, the camera control unit may control the accessory according to a second continuously transmittable data size set between the camera control unit and the accessory device. The imaging device according to claim 1, wherein data is transmitted to the device. 撮像装置に着脱可能に装着されるアクセサリ装置であって、
前記撮像装置との間に通信経路を設けるアクセサリ通信部と、
前記アクセサリ通信部を介して前記撮像装置と通信するアクセサリ制御部とを有し、
前記アクセサリ制御部は、該アクセサリ制御部が連続して送信可能なデータサイズを示すアクセサリ送信可能サイズと、前記アクセサリ制御部が連続して受信可能なデータサイズを示すアクセサリ受信可能サイズとを前記撮像装置に送信することを特徴とするアクセサリ装置。
An accessory device detachably attached to the imaging device,
An accessory communication unit that provides a communication path between the image pickup device and
An accessory control unit that communicates with the imaging device via the accessory communication unit,
The accessory control unit captures an accessory transmittable size indicating a data size that can be continuously transmitted by the accessory control unit and an accessory receivable size indicating a data size that can be continuously received by the accessory control unit. An accessory device for transmitting to the device.
前記アクセサリ制御部は、前記撮像装置に対して送受信可能なアクセサリデータを有し、
前記アクセサリデータのデータ配置情報を前記撮像装置に送信することを特徴とする請求項10に記載のアクセサリ装置。
The accessory control unit has accessory data that can be transmitted to and received from the imaging device,
The accessory device according to claim 10, wherein data arrangement information of the accessory data is transmitted to the imaging device.
前記アクセサリ制御部は、前記撮像装置からのデータ送信要求に応じて、前記撮像装置に前記アクセサリデータを連続送信することを特徴とする請求項10に記載のアクセサリ装置。   The accessory device according to claim 10, wherein the accessory control unit continuously transmits the accessory data to the imaging device in response to a data transmission request from the imaging device. 前記アクセサリ制御部は、前記撮像装置からのデータ受信要求に応じて前記アクセサリデータを連続受信し、受信した前記アクセサリデータで既存の前記アクセサリデータを更新することを特徴とする請求項11または12のいずれか一項に記載のアクセサリ装置。   The said accessory control part receives the said accessory data continuously according to the data reception request | requirement from the said imaging device, and updates the said existing accessory data with the received said accessory data, The Claims 11 or 12 characterized by the above-mentioned. An accessory device according to any one of the preceding claims. 前記アクセサリ制御部は、前記撮像装置からの通信に対するエラーを検出した場合は、前記撮像装置に該エラーを通知することを特徴とする請求項10から11のいずれか一項に記載のアクセサリ装置。   The accessory device according to any one of claims 10 to 11, wherein, when the accessory control unit detects an error with respect to communication from the imaging device, the accessory control unit notifies the imaging device of the error. アクセサリ装置が着脱可能および通信可能に装着される撮像装置の通信制御方法であって、
前記アクセサリ装置から、該アクセサリ装置が連続して送信可能なデータサイズを示すアクセサリ送信可能サイズと、前記アクセサリ装置が連続して受信可能なデータサイズを示すアクセサリ受信可能サイズとを受信するステップと、
前記撮像装置が連続して受信可能なデータサイズと前記アクセサリ送信可能サイズに基づいて第1の連続受信可能データサイズに設定するステップと、
前記撮像装置が連続して送信可能なデータサイズと前記アクセサリ受信可能サイズに基づいて第1の連続送信可能データサイズに設定するステップと、
前記第1の連続受信可能データサイズおよび前記第1の連続送信可能データサイズを上限としたデータサイズで前記アクセサリ装置との通信を行うステップとを有することを特徴とする通信制御方法。
A communication control method of an imaging device in which an accessory device is detachably mounted and communicably mounted,
From the accessory device, receiving an accessory transmittable size indicating a data size that the accessory device can continuously transmit, and an accessory receivable size indicating a data size that the accessory device can continuously receive,
Setting the first continuous receivable data size based on the data size receivable by the imaging device and the accessory transmittable size;
Setting the first continuously transmittable data size based on the data size that can be continuously transmitted by the imaging device and the accessory receivable size;
Performing communication with the accessory device with the first continuously receivable data size and a data size having the first continuously receivable data size as an upper limit.
撮像装置に着脱可能および通信可能に装着されるアクセサリ装置の通信制御方法であって、
前記アクセサリ装置が連続して送信可能なデータサイズを示すアクセサリ送信可能サイズを前記撮像装置に送信するステップと、
前記アクセサリ装置が連続して受信可能なデータサイズを示すアクセサリ受信可能サイズを前記撮像装置に送信するステップとを有することを特徴とする通信制御方法。
A communication control method of an accessory device that is detachably attached to and communicable with an imaging device,
Transmitting an accessory transmittable size indicating a data size that can be continuously transmitted by the accessory device to the imaging device;
Transmitting an accessory receivable size indicating a data size that can be continuously received by the accessory device to the imaging device.
請求項15に記載の通信制御方法に従う処理を撮像装置のコンピュータに実行させることを特徴とするコンピュータプログラム。   A computer program for causing a computer of an imaging device to execute a process according to the communication control method according to claim 15. 請求項16に記載の通信制御方法に従う処理を、撮像装置に接続可能なアクセサリ装置のコンピュータに実行させることを特徴とするコンピュータプログラム。   17. A computer program for causing a computer of an accessory device connectable to an imaging device to execute processing according to the communication control method according to claim 16. アクセサリ装置を装着することができる撮像装置であって、
前記アクセサリ装置と通信するカメラ制御部を有し、
前記カメラ制御部は、前記アクセサリ装置が受信可能なデータサイズに関する第1の情報を受信し、
前記カメラ制御部は、前記第1の情報に基づいて、前記アクセサリ装置に送信するデータサイズを設定し、当該設定に基づいて前記アクセサリ装置と通信することを特徴とする撮像装置。
An imaging device to which an accessory device can be attached,
A camera control unit that communicates with the accessory device,
The camera control unit receives first information regarding a data size that the accessory device can receive,
The imaging device, wherein the camera control unit sets a data size to be transmitted to the accessory device based on the first information, and communicates with the accessory device based on the setting.
前記カメラ制御部は、前記設定に基づいて、前記撮像装置の個体情報を送信することを特徴とする請求項19に記載の撮像装置。   20. The imaging device according to claim 19, wherein the camera control unit transmits individual information of the imaging device based on the setting. 前記カメラ制御部は、データサイズが前記第1の情報に基づくデータサイズ以下のデータをアクセサリに送信することを特徴とする請求項19に記載の撮像装置。   20. The imaging apparatus according to claim 19, wherein the camera control unit transmits data having a data size equal to or smaller than a data size based on the first information to the accessory. 前記カメラ制御部は、前記アクセサリ装置から、前記アクセサリ装置が送信可能なデータサイズに関する第2の情報を受信し、
前記カメラ制御部は、前記第2の情報に基づいて、前記アクセサリ装置から受信するデータサイズを設定し、当該設定に基づいて前記アクセサリ装置と通信することを特徴とする請求項19に記載の撮像装置。
The camera control unit receives, from the accessory device, second information regarding a data size that can be transmitted by the accessory device,
20. The imaging apparatus according to claim 19, wherein the camera control unit sets a data size to be received from the accessory device based on the second information, and communicates with the accessory device based on the setting. apparatus.
前記カメラ制御部は、データサイズが前記第2の情報に基づくデータサイズ以下のデータをアクセサリに要求することを特徴とする請求項22に記載の撮像装置。   23. The imaging apparatus according to claim 22, wherein the camera control unit requests the accessory for data whose data size is equal to or smaller than a data size based on the second information. 前記カメラ制御部は、前記第2の情報を受信した後に、前記アクセサリ装置の個体情報を受信することを特徴とする請求項19に記載の撮像装置。   20. The imaging apparatus according to claim 19, wherein the camera control unit receives the individual information of the accessory device after receiving the second information. 前記カメラ制御部は、前記第2の情報を受信した後に、コマンドに対応するメモリマップに関する情報を受信することを特徴とする請求項19に記載の撮像装置。 20. The imaging apparatus according to claim 19, wherein the camera control unit receives information about a memory map corresponding to a command after receiving the second information. 前記カメラ制御部は、カメラ通信部を介して前記アクセサリ装置と通信することを特徴とする請求項19に記載の撮像装置。   20. The imaging apparatus according to claim 19, wherein the camera control unit communicates with the accessory device via a camera communication unit. 前記撮像装置の、前記アクセサリ装置を介して反対側に、レンズ装置が装着されることを特徴とする請求項19に記載の撮像装置。   20. The imaging device according to claim 19, wherein a lens device is mounted on an opposite side of the imaging device via the accessory device. 撮像装置に装着することができるアクセサリ装置であって、
前記撮像装置と通信するアクセサリ制御部を有し、
前記アクセサリ制御部は、前記アクセサリ装置が受信可能なデータサイズに関する第1の情報と、前記アクセサリ装置が送信可能なデータサイズに関する第2の情報とを送信することを特徴とするアクセサリ装置。
An accessory device that can be attached to the imaging device,
An accessory control unit that communicates with the imaging device,
The accessory device, wherein the accessory control unit transmits first information on a data size receivable by the accessory device and second information on a data size receivable by the accessory device.
前記アクセサリ制御部は、前記第1の情報を送信した後に、前記撮像装置の個体情報を受信することを特徴とする請求項28に記載のアクセサリ装置。   The accessory device according to claim 28, wherein the accessory control unit receives the individual information of the imaging device after transmitting the first information. 前記アクセサリ制御部は、前記第2の情報を送信した後に、前記アクセサリの個体情報を送信することを特徴とする請求項28に記載のアクセサリ装置。   The accessory device according to claim 28, wherein the accessory control unit transmits the individual information of the accessory after transmitting the second information. 前記アクセサリ制御部は、前記第2の情報を送信した後に、コマンドに対応するメモリマップに関する情報を送信することを特徴とする請求項28に記載のアクセサリ装置。   29. The accessory device according to claim 28, wherein the accessory control unit transmits information on a memory map corresponding to a command after transmitting the second information. 前記アクセサリ制御部は、データサイズが前記第1の情報に基づくデータサイズ以下のデータを送信することを特徴とする請求項28に記載のアクセサリ装置。   The accessory device according to claim 28, wherein the accessory control unit transmits data whose data size is equal to or smaller than a data size based on the first information. 前記アクセサリ制御部は、データサイズが前記第2の情報に基づくデータサイズ以下のデータを送信することを特徴とする請求項28に記載のアクセサリ装置。   The accessory device according to claim 28, wherein the accessory control unit transmits data whose data size is equal to or smaller than a data size based on the second information. クレーム40に従うアクセサリ装置であり、
前記アクセサリ制御部は、アクセサリ通信部を介して前記撮像装置と通信することを特徴とする請求項28に記載のアクセサリ装置。
An accessory device according to claim 40,
The accessory device according to claim 28, wherein the accessory control unit communicates with the imaging device via an accessory communication unit.
前記アクセサリ装置に対して、前記撮像装置とは反対側に、レンズ装置が装着されることを特徴とする請求項28に記載のアクセサリ装置。   The accessory device according to claim 28, wherein a lens device is attached to the accessory device on a side opposite to the imaging device. アクセサリ装置を装着することができる撮像装置の通信制御方法であって、
前記アクセサリ装置が受信可能なデータサイズに関する第1の情報を受信するステップと、
前記第1の情報に基づいて、前記アクセサリ装置に送信するデータサイズを設定し、当該設定に基づいて前記アクセサリ装置と通信するステップと、を有することを特徴とする通信制御方法。
A communication control method of an imaging device to which an accessory device can be attached,
Receiving first information about a data size that the accessory device can receive;
Setting a data size to be transmitted to the accessory device based on the first information, and communicating with the accessory device based on the setting.
撮像装置に装着することができるアクセサリ装置の通信制御方法であって、
前記アクセサリ装置が受信可能なデータサイズに関する第1の情報を送信するステップと、
前記アクセサリ装置が送信可能なデータサイズに関する第2の情報を送信するステップと、を有することを特徴とする通信制御方法
A communication control method for an accessory device that can be attached to an imaging device,
Transmitting first information about a data size that the accessory device can receive;
Transmitting second information about a data size that can be transmitted by the accessory device.
請求項36に記載の通信制御方法に従う処理を撮像装置のコンピュータに実行させることを特徴とするコンピュータプログラム。   A computer program for causing a computer of an imaging device to execute processing according to the communication control method according to claim 36. 請求項37に記載の通信制御方法に従う処理を、撮像装置に接続可能なアクセサリ装置のコンピュータに実行させることを特徴とするコンピュータプログラム。   A computer program for causing a computer of an accessory device connectable to an imaging device to execute processing according to the communication control method according to claim 37.
JP2019110936A 2018-06-28 2019-06-14 Imaging device, accessory device, and communication control method Active JP7341741B2 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
CN202211611066.5A CN116193247A (en) 2018-06-28 2019-06-26 Image pickup apparatus, accessory apparatus, communication control method thereof, and storage medium
CN201910561404.0A CN110661964A (en) 2018-06-28 2019-06-26 Image pickup apparatus, accessory apparatus, communication control method therefor, and storage medium
US16/454,535 US11303796B2 (en) 2018-06-28 2019-06-27 Imaging apparatus, accessory apparatus, and communication control method
US17/528,728 US11706523B2 (en) 2018-06-28 2021-11-17 Imaging apparatus, accessory apparatus, and communication control method

Applications Claiming Priority (6)

Application Number Priority Date Filing Date Title
JP2018123758 2018-06-28
JP2018123758 2018-06-28
JP2018143940 2018-07-31
JP2018143940 2018-07-31
JP2018165141 2018-09-04
JP2018165141 2018-09-04

Publications (3)

Publication Number Publication Date
JP2020038345A true JP2020038345A (en) 2020-03-12
JP2020038345A5 JP2020038345A5 (en) 2022-06-21
JP7341741B2 JP7341741B2 (en) 2023-09-11

Family

ID=69737913

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019110936A Active JP7341741B2 (en) 2018-06-28 2019-06-14 Imaging device, accessory device, and communication control method

Country Status (1)

Country Link
JP (1) JP7341741B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008233192A (en) * 2007-03-16 2008-10-02 Hoya Corp Interchangeable lens and camera system having memory
WO2009147785A1 (en) * 2008-06-02 2009-12-10 パナソニック株式会社 Data communication system, data communication request device, and data communication response device
JP2013025172A (en) * 2011-07-22 2013-02-04 Nikon Corp Adapter, camera system and adapter control program
JP2017181980A (en) * 2016-03-31 2017-10-05 キヤノン株式会社 Accessory device, imaging device, and communication control program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008233192A (en) * 2007-03-16 2008-10-02 Hoya Corp Interchangeable lens and camera system having memory
WO2009147785A1 (en) * 2008-06-02 2009-12-10 パナソニック株式会社 Data communication system, data communication request device, and data communication response device
JP2013025172A (en) * 2011-07-22 2013-02-04 Nikon Corp Adapter, camera system and adapter control program
JP2017181980A (en) * 2016-03-31 2017-10-05 キヤノン株式会社 Accessory device, imaging device, and communication control program

Also Published As

Publication number Publication date
JP7341741B2 (en) 2023-09-11

Similar Documents

Publication Publication Date Title
JP2022125246A (en) Imaging device, interchangeable lens, intermediate accessory, and control method for them
JP6921896B2 (en) Imaging equipment, interchangeable lenses, intermediate accessories and their control methods
JP7409623B2 (en) Accessory devices, cameras, communication control programs, and camera systems
JP7102217B2 (en) Imaging equipment, interchangeable lenses, intermediate accessories and their control methods
JP7071446B2 (en) Imaging devices, accessory devices and their communication control methods
US11706523B2 (en) Imaging apparatus, accessory apparatus, and communication control method
JP7401612B2 (en) Cameras, accessory devices, communication control methods, computer programs, and camera systems
JP6427288B1 (en) Accessory device, camera and communication control program
CN110661964A (en) Image pickup apparatus, accessory apparatus, communication control method therefor, and storage medium
JP7341741B2 (en) Imaging device, accessory device, and communication control method
CN110501857B (en) Accessory device, camera system having the same, and storage medium
JP7005282B2 (en) Imaging equipment, accessory equipment and their control methods
JP6790181B2 (en) Imaging devices, accessories, intermediate accessories and their control methods
JP7158958B2 (en) Accessories, cameras, and communication control programs
JP2023177479A (en) Accessory devices, imaging apparatus, imaging system, control method, and program
JP2020034740A (en) Imaging device, accessory, and program
JP2020034745A (en) Accessory, camera, and communication control program

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220613

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220613

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20230213

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20230221

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230420

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20230516

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230710

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230830

R151 Written notification of patent or utility model registration

Ref document number: 7341741

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151