JP6915113B2 - Accessories, camera body - Google Patents

Accessories, camera body Download PDF

Info

Publication number
JP6915113B2
JP6915113B2 JP2020028020A JP2020028020A JP6915113B2 JP 6915113 B2 JP6915113 B2 JP 6915113B2 JP 2020028020 A JP2020028020 A JP 2020028020A JP 2020028020 A JP2020028020 A JP 2020028020A JP 6915113 B2 JP6915113 B2 JP 6915113B2
Authority
JP
Japan
Prior art keywords
lens
microcomputer
camera body
information
accessory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2020028020A
Other languages
Japanese (ja)
Other versions
JP2020080570A (en
Inventor
岡田 浩司
浩司 岡田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from JP2016211076A external-priority patent/JP6667417B2/en
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2020028020A priority Critical patent/JP6915113B2/en
Publication of JP2020080570A publication Critical patent/JP2020080570A/en
Priority to JP2021115050A priority patent/JP7196245B2/en
Application granted granted Critical
Publication of JP6915113B2 publication Critical patent/JP6915113B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Structure And Mechanism Of Cameras (AREA)
  • Studio Devices (AREA)

Description

本発明は、相互に通信が可能な撮像装置及びアクセサリ装置に関する。 The present invention relates to an imaging device and an accessory device capable of communicating with each other.

レンズ交換型のカメラシステムとして、カメラ本体が撮像処理、レンズ制御および画像記録を行い、交換レンズが、カメラ本体からの制御命令に従ってレンズ駆動や絞り駆動を行うものがある。このカメラシステムでは、カメラ本体から交換レンズへの制御命令の伝達と交換レンズからカメラ本体へのレンズデータの伝達が、相互に情報をやり取りするための通信システムを介して行われる。 As an interchangeable lens type camera system, the camera body performs image pickup processing, lens control, and image recording, and the interchangeable lens drives the lens and the aperture according to a control command from the camera body. In this camera system, control commands are transmitted from the camera body to the interchangeable lens and lens data is transmitted from the interchangeable lens to the camera body via a communication system for exchanging information with each other.

また、デジタルカメラシステムでは、動画撮像時やライブビュー撮影時に撮像周期に合わせた滑らかなレンズ制御が求められている。このためには、カメラ本体の撮像タイミングと交換レンズの制御タイミングとの同期をとる必要があり、カメラ本体はレンズ制御に必要なレンズ情報の取得と交換レンズへの制御命令の送信を撮像周期内で完了させる必要がある。 Further, in a digital camera system, smooth lens control according to an imaging cycle is required at the time of moving image imaging or live view imaging. For this purpose, it is necessary to synchronize the imaging timing of the camera body with the control timing of the interchangeable lens, and the camera body acquires the lens information necessary for lens control and transmits the control command to the interchangeable lens within the imaging cycle. Need to be completed with.

近年は、従来よりも複雑な撮像制御が求められ、カメラ本体が交換レンズから取得するレンズ情報のデータ量が増加しており、また、撮像周期の短縮化に伴い大容量のデータ通信が要求されている。 In recent years, more complicated imaging control than before has been required, the amount of lens information data acquired by the camera body from the interchangeable lens has increased, and a large amount of data communication has been required as the imaging cycle has been shortened. ing.

特許文献1には、通信ワード数が固定された初期通信モードと、交換レンズの機能を制御するために通信ワード数を可変とした制御通信モードとを有する撮像システムが開示されている。初期通信モードは、カメラ本体と交換レンズ間の接続状態および交換レンズ内の制御対象を認識するために行われる。 Patent Document 1 discloses an imaging system having an initial communication mode in which the number of communication words is fixed and a control communication mode in which the number of communication words is variable in order to control the function of the interchangeable lens. The initial communication mode is performed to recognize the connection state between the camera body and the interchangeable lens and the controlled object in the interchangeable lens.

特開平03−114371号公報Japanese Unexamined Patent Publication No. 03-114371

本発明のアクセサリは、カメラボディに装着可能であり、前記カメラボディと通信可能なアクセサリであって、駆動部により駆動される被駆動部材に関する情報を一つ以上の通信仕様で前記カメラボディへ送信することが可能である送信部と、前記情報を前記カメラボディへ送信する通信仕様を示す第1の値を前記カメラボディから受信する受信部と、を備え、前記第1の値は、前記被駆動部材に関する情報が前記カメラボディへ送信されることを示し、前記アクセサリは、第1のタイミングで行われる前記通信仕様に関する前記カメラボディとの双方向の通信において、前記第1の値を受信し、前記送信部は、前記第1のタイミングより後の第2のタイミングにおいて、前記第1の値が示す通信仕様で、前記被駆動部材に関する情報を前記カメラボディへ送信することを特徴としている。 The accessory of the present invention is an accessory that can be attached to the camera body and can communicate with the camera body, and transmits information about a driven member driven by the drive unit to the camera body with one or more communication specifications. The first value includes a transmission unit capable of the above, and a reception unit that receives a first value indicating a communication specification for transmitting the information to the camera body from the camera body, and the first value is the subject. Indicates that information about the driving member is transmitted to the camera body , the accessory receives the first value in bidirectional communication with the camera body regarding the communication specifications performed at the first timing. The transmitting unit is characterized in that, at a second timing after the first timing, information regarding the driven member is transmitted to the camera body according to the communication specifications indicated by the first value.

また、本発明の他のアクセサリは、カメラボディに装着可能であり、前記カメラボディと通信可能なアクセサリであって、駆動部により駆動される被駆動部材に関する複数の情報を前記カメラボディへ送信することが可能である第1の送信部と、前記被駆動部材に関する複数の情報が前記カメラボディへ送信されることを示す第1の値を前記カメラボディから受信する受信部と、を備え、前記アクセサリは、第1のタイミングで行われる前記被駆動部材に関する複数の情報の送信に関する前記カメラボディとの双方向の通信において、前記第1の値を受信し、前記第1の送信部は、前記第1のタイミングより後の第2のタイミングにおいて、前記第1の値に基づく前記被駆動部材に関する複数の情報を前記カメラボディへ送信することを特徴としている。 Further, the other accessory of the present invention is an accessory that can be attached to the camera body and can communicate with the camera body, and transmits a plurality of information about a driven member driven by the drive unit to the camera body. The camera body includes a first transmission unit capable of the above , and a reception unit that receives a first value indicating that a plurality of information about the driven member is transmitted to the camera body from the camera body. accessories, in the two-way communication with the camera body relating to the transmission of a plurality of information related to the driven member to be performed at the first timing, and receives the first value, said first transmission section, said At the second timing after the first timing, a plurality of information regarding the driven member based on the first value is transmitted to the camera body.

また、本発明のカメラボディは、アクセサリを装着可能であり、前記アクセサリと通信可能なカメラボディであって、前記アクセサリの駆動部により駆動される前記アクセサリの被駆動部材に関する情報を前記アクセサリから前記カメラボディへ送信する際の通信仕様を示す第1の値を前記アクセサリへ送信する送信部と、前記第1の値が示す通信仕様で前記アクセサリから送信された、前記被駆動部材に関する情報を受信することが可能である受信部と、を備え、前記第1の値は、前記被駆動部材に関する情報が前記アクセサリから前記カメラボディへ送信されることを示し、前記カメラボディは、第1のタイミングで行われる前記情報を前記カメラボディへ送信する通信仕様に関する前記アクセサリとの双方向の通信において、前記第1の値を送信し、前記受信部は、前記第1のタイミングより後の第2のタイミングにおいて、前記第1の値が示す通信仕様で、前記被駆動部材に関する情報を前記アクセサリから受信することを特徴とする。 Further, the camera body of the present invention is a camera body to which an accessory can be attached and can communicate with the accessory, and information regarding a driven member of the accessory driven by the drive unit of the accessory is obtained from the accessory. A transmission unit that transmits a first value indicating a communication specification when transmitting to the camera body to the accessory, and information about the driven member transmitted from the accessory with the communication specification indicated by the first value is received. comprising a receiving unit is capable of, the said first value, said indicates that the information about the driven member is transmitted from said accessory to said camera body, said camera body, first In bidirectional communication with the accessory relating to the communication specification for transmitting the information to the camera body at the timing, the first value is transmitted, and the receiving unit receives the second value after the first timing. At the timing of, the communication specification indicated by the first value is characterized in that information about the driven member is received from the accessory.

本発明の他のカメラボディは、アクセサリを装着可能であり、前記アクセサリと通信可能なカメラボディであって、前記アクセサリの駆動部により駆動される前記アクセサリの被駆動部材に関する複数の情報が前記カメラボディへ送信されることを示す第1の値を前記アクセサリへ送信する送信部と、前記アクセサリから送信された、前記被駆動部材に関する複数の情報を受信することが可能である受信部と、を備え、前記カメラボディは、第1のタイミングで行われる前記被駆動部材に関する複数の情報の送信に関する前記アクセサリとの双方向の通信において、前記第1の値を送信し、前記受信部は、前記第1のタイミングより後の第2のタイミングにおいて、前記第1の値に基づく前記被駆動部材に関する複数の情報を前記アクセサリから受信することを特徴とする。 The other camera body of the present invention is a camera body to which an accessory can be attached and can communicate with the accessory, and a plurality of information regarding the driven member of the accessory driven by the drive unit of the accessory is the camera. A transmitter that transmits a first value indicating transmission to the body to the accessory, and a receiver that can receive a plurality of information about the driven member transmitted from the accessory. The camera body transmits the first value in bidirectional communication with the accessory regarding transmission of a plurality of information about the driven member, which is performed at the first timing, and the receiving unit receives the above. at a second timing after the first timing, the plurality of information on the driven member based on the first value, characterized that you received from the accessory.

本発明におけるカメラ本体と交換レンズの構成を示すブロック図である。It is a block diagram which shows the structure of the camera body and the interchangeable lens in this invention. 実施例1におけるカメラ本体(カメラマイコン)と交換レンズ(レンズマイコン)との間の通信回路を示す図である。It is a figure which shows the communication circuit between a camera body (camera microcomputer) and an interchangeable lens (lens microcomputer) in Example 1. FIG. 実施例1における第1の通信プロトコルを示す図である。It is a figure which shows the 1st communication protocol in Example 1. FIG. 実施例1における第2の通信プロトコルの登録時の波形を示す図である。It is a figure which shows the waveform at the time of registration of the 2nd communication protocol in Example 1. FIG. 実施例1における第2の通信プロトコルの取得時の波形を示す図である。It is a figure which shows the waveform at the time of acquisition of the 2nd communication protocol in Example 1. FIG. 実施例1におけるカメラマイコン側のカスタムコマンド登録情報を、レンズマイコン側へ登録する処理を示す図である。It is a figure which shows the process of registering the custom command registration information of the camera microcomputer side in Example 1 to the lens microcomputer side. 実施例1におけるレンズマイコン側のカスタムコマンド処理を示す図である。It is a figure which shows the custom command processing on the lens microcomputer side in Example 1. FIG. 実施例1におけるカメラマイコン側のカスタムコマンド登録情報の生成処理を示すフローチャートである。It is a flowchart which shows the generation process of the custom command registration information on the camera microcomputer side in Example 1. FIG. 実施例1におけるカメラマイコン側のカスタムコマンド登録処理を示すフローチャートである。It is a flowchart which shows the custom command registration process on the camera microcomputer side in Example 1. FIG. 実施例1におけるレンズマイコン側のカスタムコマンド登録処理を示すフローチャートである。It is a flowchart which shows the custom command registration process on the lens microcomputer side in Example 1. FIG. 実施例1におけるレンズマイコン側のカスタムコマンド受信時の処理を示すフローチャートである。It is a flowchart which shows the process at the time of receiving the custom command on the lens microcomputer side in Example 1. FIG. 固定長のデータ通信プロトコルを示す図である。It is a figure which shows the data communication protocol of a fixed length. 実施例1におけるENTRYコマンドとGETコマンドの対応を示す図である。It is a figure which shows the correspondence of the ENTRY command and the GET command in Example 1. 実施例1におけるカメラ本体と交換レンズの間の通信手順を示す図である。It is a figure which shows the communication procedure between a camera body and an interchangeable lens in Example 1. FIG. 実施例2における第2の通信プロトコルの登録時の波形を示す図である。It is a figure which shows the waveform at the time of registration of the 2nd communication protocol in Example 2. FIG. 実施例2における第2の通信プロトコルの取得時の波形を示す図である。It is a figure which shows the waveform at the time of acquisition of the 2nd communication protocol in Example 2. FIG. 登録番号通知コマンドEIDとデータ番号通知コマンドGIDの構成を示す図である。It is a figure which shows the structure of the registration number notification command EID and the data number notification command GID. 垂直同期信号Vとクロック信号LCLKの関係を示す図である。It is a figure which shows the relationship between the vertical synchronization signal V and the clock signal LCLK.

以下、本発明の実施例について図面を参照しながら説明する。 Hereinafter, examples of the present invention will be described with reference to the drawings.

[実施例1]
図1には、本発明の実施例1である撮像装置(以下、カメラ本体という)200およびアクセサリ装置としてのレンズ装置(以下、交換レンズという)100を含む撮像システム(以下、カメラシステムという)の構成を示している。交換レンズ100は、カメラ本体200に対して取り外し可能に装着されている。カメラ本体200と交換レンズ100は互いに通信可能に電気的に接続されている。本実施例のカメラシステムでは、いわゆる登録型コマンド(カスタムコマンド)を用いて垂直同期信号の一周期内において複数のデータ通信を行うことで短時間に大容量のデータの伝送を実現する。
[Example 1]
FIG. 1 shows an imaging system (hereinafter referred to as a camera system) including an imaging device (hereinafter referred to as a camera body) 200 and a lens device (hereinafter referred to as an interchangeable lens) 100 as an accessory device according to the first embodiment of the present invention. The configuration is shown. The interchangeable lens 100 is detachably attached to the camera body 200. The camera body 200 and the interchangeable lens 100 are electrically connected so as to be able to communicate with each other. In the camera system of this embodiment, a large amount of data can be transmitted in a short time by performing a plurality of data communications within one cycle of the vertical synchronization signal by using a so-called registration type command (custom command).

カメラ本体200は、交換レンズ100に対して、交換レンズ100に各種制御を行わせるレンズ制御コマンドと、交換レンズ100の内部情報に関するデータ(以下、レンズデータという)の送信を要求する送信要求コマンドとを通信により送信する。レンズデータは、交換レンズ100に含まれる光学部材の位置情報、交換レンズ100に含まれるアクチュエータの駆動状態を示す情報および交換レンズ100の光学情報等を示すデータである。交換レンズ100は、カメラ本体200に対して、レンズ制御コマンドに応答して行った交換レンズ100内での制御(以下、レンズ制御という)の状態を示す情報や、送信要求コマンドに対応するレンズデータを通信により送信する。 The camera body 200 includes a lens control command that causes the interchangeable lens 100 to perform various controls, and a transmission request command that requests the interchangeable lens 100 to transmit data related to internal information of the interchangeable lens 100 (hereinafter referred to as lens data). Is transmitted by communication. The lens data is data showing position information of an optical member included in the interchangeable lens 100, information indicating a driving state of an actuator included in the interchangeable lens 100, optical information of the interchangeable lens 100, and the like. The interchangeable lens 100 has information indicating the state of control within the interchangeable lens 100 (hereinafter referred to as lens control) performed in response to the lens control command to the camera body 200, and lens data corresponding to the transmission request command. Is transmitted by communication.

カメラ本体200からの送信要求コマンドには、複数種類あるレンズデータのそれぞれを単独で指定して個別送信を要求する個別送信要求コマンドと、いくつかのレンズデータの組み合わせを指定してそれらの連続送信を要求する連続送信要求コマンドとがある。カメラ本体200は、カメラ本体200側の制御状況に応じてそれらを選択的に交換レンズ100に送信する。 The transmission request command from the camera body 200 includes an individual transmission request command that individually specifies each of a plurality of types of lens data to request individual transmission, and a continuous transmission of a combination of several lens data. There is a continuous transmission request command that requests. The camera body 200 selectively transmits them to the interchangeable lens 100 according to the control status on the camera body 200 side.

また、連続送信要求コマンドは、交換レンズ100に対して、連続送信を要求するレンズデータの任意の組み合わせと任意の送信順序とを指示可能なコマンドである。カメラ本体200は、カメラ本体200側での撮像モードや制御形式に応じて最適なレンズデータの組み合わせと送信順序でレンズデータを受信することができる。さらに、カメラ本体200は、交換レンズ100が備える機能に応じて、交換レンズごとに異なるレンズデータの組み合わせと送信順序を選択することができる。 Further, the continuous transmission request command is a command capable of instructing the interchangeable lens 100 of an arbitrary combination of lens data requesting continuous transmission and an arbitrary transmission order. The camera body 200 can receive lens data in the optimum combination of lens data and transmission order according to the imaging mode and control format on the camera body 200 side. Further, the camera body 200 can select a different lens data combination and transmission order for each interchangeable lens according to the function of the interchangeable lens 100.

個別送信モードと連続送信モードのいずれにおいても、垂直同期信号の一周期内において最初に送信される送信要求コマンドの種類をカメラ本体200と交換レンズ100の間で予め決めておくことで、撮像タイミングを正確に共有することができる。 In both the individual transmission mode and the continuous transmission mode, the type of transmission request command to be transmitted first in one cycle of the vertical synchronization signal is determined in advance between the camera body 200 and the interchangeable lens 100, so that the imaging timing can be determined. Can be shared accurately.

次に、交換レンズ100とカメラ本体200のより具体的な構成を説明する。交換レンズ100とカメラ本体200は、結合機構であるマウント300を介して機械的および電気的に接続されている。交換レンズ100は、マウント300に設けられた電源端子部(図示せず)を介してカメラ本体200から電源を取得し、後述する各種アクチュエータやレンズマイクロコンピュータ111の動作に必要な電源を供給する。また、交換レンズ100とカメラ本体200は、マウント300に設けられた通信端子部(図2に示す)を介して相互に通信を行う。 Next, a more specific configuration of the interchangeable lens 100 and the camera body 200 will be described. The interchangeable lens 100 and the camera body 200 are mechanically and electrically connected via a mount 300, which is a coupling mechanism. The interchangeable lens 100 acquires power from the camera body 200 via a power supply terminal (not shown) provided on the mount 300, and supplies power necessary for the operation of various actuators and the lens microcomputer 111, which will be described later. Further, the interchangeable lens 100 and the camera body 200 communicate with each other via a communication terminal portion (shown in FIG. 2) provided on the mount 300.

交換レンズ100は、撮像光学系を有する。撮像光学系は、被写体OBJ側から順に、フィールドレンズ101と、変倍を行う変倍レンズ102と、光量を調節する絞りユニット114と、振れ補正レンズ103と、焦点調節を行うフォーカスレンズ104とを含む。 The interchangeable lens 100 has an imaging optical system. The imaging optical system includes a field lens 101, a variable magnification lens 102 that performs variable magnification, an aperture unit 114 that adjusts the amount of light, a shake correction lens 103, and a focus lens 104 that adjusts the focus, in order from the subject OBJ side. include.

変倍レンズ102とフォーカスレンズ104はそれぞれ、レンズ保持枠105、106により保持されている。レンズ保持枠105、106は、不図示のガイド軸により光軸方向(図中に破線で示す)に移動可能にガイドされており、ステッピングモータ107、108によって光軸方向に駆動される。ステッピングモータ107、108はそれぞれ、駆動パルスに同期して変倍レンズ102およびフォーカスレンズ104を移動させる。 The variable magnification lens 102 and the focus lens 104 are held by the lens holding frames 105 and 106, respectively. The lens holding frames 105 and 106 are movably guided in the optical axis direction (indicated by a broken line in the figure) by a guide shaft (not shown), and are driven in the optical axis direction by stepping motors 107 and 108. The stepping motors 107 and 108 move the variable magnification lens 102 and the focus lens 104 in synchronization with the drive pulse, respectively.

振れ補正レンズ103は、撮像光学系の光軸に直交する方向にシフトすることで、カメラ振れ(手振れ等)に起因する像振れを低減する。 The shake correction lens 103 reduces image shake caused by camera shake (camera shake, etc.) by shifting in a direction orthogonal to the optical axis of the imaging optical system.

レンズマイクロコンピュータ(以下、レンズマイコンという)111は、交換レンズ100内の各部の動作を制御するアクセサリ制御手段(レンズ制御手段)である。また、レンズマイコン111は、その内部に設けられたレンズ通信部112を介して、カメラ本体200から送信された制御コマンドや送信要求コマンドを受信する。レンズマイコン111は、制御コマンドに対応するレンズ制御を行い、またレンズ通信部112を介して送信要求コマンドに対応するレンズデータをカメラ本体200に送信する。 The lens microcomputer (hereinafter referred to as a lens microcomputer) 111 is an accessory control means (lens control means) for controlling the operation of each part in the interchangeable lens 100. Further, the lens microcomputer 111 receives a control command and a transmission request command transmitted from the camera body 200 via the lens communication unit 112 provided inside the lens microcomputer 111. The lens microcomputer 111 controls the lens corresponding to the control command, and transmits the lens data corresponding to the transmission request command to the camera body 200 via the lens communication unit 112.

また、レンズマイコン111は、制御コマンドのうち変倍やフォーカシングに関するコマンドに応答してズーム駆動回路119およびフォーカス駆動回路120に駆動信号を出力してステッピングモータ107、108を駆動させる。これにより、変倍レンズ102による変倍動作を制御するズーム処理やフォーカスレンズ104による焦点調節動作を制御するAF(オートフォーカス)処理を行う。 Further, the lens microcomputer 111 outputs a drive signal to the zoom drive circuit 119 and the focus drive circuit 120 in response to commands related to scaling and focusing among control commands to drive the stepping motors 107 and 108. As a result, a zoom process for controlling the variable magnification operation by the variable magnification lens 102 and an AF (autofocus) process for controlling the focus adjustment operation by the focus lens 104 are performed.

絞りユニット114は、絞り羽根114a、114bを備えて構成される。絞り羽根114a、114bの状態は、ホール素子115により検出され、増幅回路122およびA/D変換回路123を介してレンズマイコン111に入力される。レンズマイコン111は、A/D変換回路123からの入力信号に基づいて絞り駆動回路121に駆動信号を出力して絞りアクチュエータ113を駆動させる。これにより、絞りユニット114による光量調節動作を制御する。 The diaphragm unit 114 includes diaphragm blades 114a and 114b. The states of the diaphragm blades 114a and 114b are detected by the Hall element 115 and input to the lens microcomputer 111 via the amplifier circuit 122 and the A / D conversion circuit 123. The lens microcomputer 111 outputs a drive signal to the aperture drive circuit 121 based on the input signal from the A / D conversion circuit 123 to drive the aperture actuator 113. Thereby, the light amount adjustment operation by the diaphragm unit 114 is controlled.

さらに、レンズマイコン111は、交換レンズ100内に設けられたジャイロセンサ等の振れセンサ127により検出されたカメラ振れに応じて、防振駆動回路125を介して防振アクチュエータ(ボイスコイルモータ等)126を駆動する。これにより、振れ補正レンズ103のシフト動作(防振動作)を制御する防振処理が行われる。 Further, the lens microcomputer 111 receives an anti-vibration actuator (voice coil motor, etc.) 126 via an anti-vibration drive circuit 125 in response to camera shake detected by a shake sensor 127 such as a gyro sensor provided in the interchangeable lens 100. To drive. As a result, vibration isolation processing is performed to control the shift operation (vibration isolation operation) of the vibration correction lens 103.

カメラ本体200は、CCDセンサやCMOSセンサ等の撮像素子201と、A/D変換回路202と、信号処理回路203と、記録部204と、カメラマイクロコンピュータ(以下、カメラマイコンという)205と、表示部206とを有する。 The camera body 200 displays an image sensor 201 such as a CCD sensor or a CMOS sensor, an A / D conversion circuit 202, a signal processing circuit 203, a recording unit 204, and a camera microcomputer (hereinafter referred to as a camera microcomputer) 205. It has a part 206.

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

カメラ制御手段としてのカメラマイコン205は、不図示の撮像指示スイッチおよび各種設定スイッチ等のカメラ操作部材からの入力に応じてカメラ本体200の制御を行う。また、カメラマイコン205は、その内部に設けられたカメラ通信部208を介して、不図示のズームスイッチの操作に応じて変倍レンズ102の変倍動作に関する制御コマンドをレンズマイコン111に送信する。さらに、カメラマイコン205は、カメラ通信部208を介して、輝度情報に応じた絞りユニット114の光量調節動作やフォーカス情報に応じたフォーカスレンズ104の焦点調節動作に関する制御コマンドをレンズマイコン111に送信する。 The camera microcomputer 205 as a camera control means controls the camera body 200 in response to inputs from camera operation members such as an imaging instruction switch (not shown) and various setting switches. Further, the camera microcomputer 205 transmits a control command related to the variable magnification operation of the variable magnification lens 102 to the lens microcomputer 111 in response to an operation of a zoom switch (not shown) via the camera communication unit 208 provided inside the camera microcomputer 205. Further, the camera microcomputer 205 transmits a control command related to the light amount adjusting operation of the aperture unit 114 according to the luminance information and the focus adjusting operation of the focus lens 104 according to the focus information to the lens microcomputer 111 via the camera communication unit 208. ..

次に、カメラ本体200(カメラマイコン205)と交換レンズ100(レンズマイコン111)との間で構成される通信回路とこれらの間で行われる通信処理について説明する。 Next, a communication circuit configured between the camera body 200 (camera microcomputer 205) and the interchangeable lens 100 (lens microcomputer 111) and the communication processing performed between them will be described.

図2には、カメラマイコン205とレンズマイコン111との間に構成される通信回路を示している。カメラマイコン205とレンズマイコン111は、前述したマウント300に設けられた通信端子部を介して通信を行う。撮像素子201は、信号生成回路209から出力される垂直同期信号の周期である垂直同期期間の所定期間において電荷蓄積を行う。カメラマイコン205は、垂直同期信号のタイミングをレンズマイコン111に通知する。後述するように、カメラマイコン205とレンズマイコン111は、垂直同期信号のタイミングに基づいてカメラ本体200から送信されるクロック信号LCLKに同期して通信を行う。 FIG. 2 shows a communication circuit configured between the camera microcomputer 205 and the lens microcomputer 111. The camera microcomputer 205 and the lens microcomputer 111 communicate with each other via the communication terminal portion provided on the mount 300 described above. The image sensor 201 accumulates electric charges in a predetermined period of the vertical synchronization period, which is the period of the vertical synchronization signal output from the signal generation circuit 209. The camera microcomputer 205 notifies the lens microcomputer 111 of the timing of the vertical synchronization signal. As will be described later, the camera microcomputer 205 and the lens microcomputer 111 communicate with each other in synchronization with the clock signal LCLK transmitted from the camera body 200 based on the timing of the vertical synchronization signal.

本実施例では、通信方式として、3線式クロック同期シリアル通信方式を用いる。ここにいう3線は、クロック信号LCLK用の通信線と、データ信号DCL用の通信線と、データ信号DLC用の通信線とを含む。クロック信号LCLKは、マスターとしてのカメラマイコン205からスレーブとしてのレンズマイコン111に送られる。通信信号DCLは、カメラマイコン205からレンズマイコン111への制御コマンドや送信要求コマンド等を含む。データ信号DLCは、レンズマイコン111からカメラマイコン205にクロック信号に同期して送信されるレンズデータ等を含む。カメラマイコン205とレンズマイコン111は、共通のクロック信号に同期して相互かつ同時に送受信を行う全二重通信方式(フルデュープレックス方式)で通信を行う。 In this embodiment, a 3-wire clock synchronous serial communication method is used as the communication method. The three lines referred to here include a communication line for the clock signal LCLK, a communication line for the data signal DCL, and a communication line for the data signal DLC. The clock signal LCLK is sent from the camera microcomputer 205 as the master to the lens microcomputer 111 as the slave. The communication signal DCL includes a control command, a transmission request command, and the like from the camera microcomputer 205 to the lens microcomputer 111. The data signal DLC includes lens data and the like transmitted in synchronization with the clock signal from the lens microcomputer 111 to the camera microcomputer 205. The camera microcomputer 205 and the lens microcomputer 111 communicate with each other by a full duplex communication method (full duplex method) in which transmission and reception are performed simultaneously and simultaneously in synchronization with a common clock signal.

図3、図4、図5には、カメラマイコン205とレンズマイコン111とカメラマイコン205との間でやり取りされる通信信号の波形を示している。このやり取りの手順を取り決めたものを通信プロトコルと呼ぶ。カメラマイコン205とレンズマイコン111間では、大きく分けて、後述する個別通信プロトコルと連続通信プロトコルの2種類の通信プロトコルを用いてデータ通信を行う。カメラマイコン205は、カメラ本体200の撮像モードや制御状況等に応じて、これら2つの通信プロトコルの中から適宜適切な通信プロトコルを選択する。 3, FIG. 4, and FIG. 5 show waveforms of communication signals exchanged between the camera microcomputer 205, the lens microcomputer 111, and the camera microcomputer 205. A communication protocol is a protocol for arranging the procedure for this exchange. Data communication is performed between the camera microcomputer 205 and the lens microcomputer 111 by using two types of communication protocols, an individual communication protocol and a continuous communication protocol, which will be described later. The camera microcomputer 205 appropriately selects an appropriate communication protocol from these two communication protocols according to the imaging mode of the camera body 200, the control status, and the like.

各通信プロトコルの仕様は以下の通りである。図3(A)、(B)には、第1の通信プロトコルとしての個別通信プロトコルでの信号波形を示している。個別通信プロトコルは、例えば、カメラ本体200にて設定されている撮像モードが静止画撮像モードであるときに選択される。 The specifications of each communication protocol are as follows. FIGS. 3A and 3B show signal waveforms in the individual communication protocol as the first communication protocol. The individual communication protocol is selected, for example, when the imaging mode set in the camera body 200 is the still image imaging mode.

図3(A)は最小の通信単位である1フレームの波形を示している。まず、カメラマイコン205は、8周期のパルスを1組とするクロック信号LCLKを出力するとともに、クロック信号LCLKに同期してレンズマイコン111に対してデータ信号DCLを送信する。これと同時に、カメラマイコン205は、クロック信号LCLKに同期してレンズマイコン111から出力されたデータ信号DLCを受信する。このようにして、レンズマイコン111とカメラマイコン205との間で、1組のクロック信号LCLKに同期して1バイト(8ビット)のデータが送受信される。このデータの送受信の後、後に詳細に説明する通信待機要求コマンド(以下、単に通信待機要求という)BUSYにより通信休止期間が挿入される。クロック信号LCLKの8周期の期間とこれに続く通信待機要求BUSYの期間をひと組とする通信単位を1フレームと呼ぶ。 FIG. 3A shows a waveform of one frame, which is the smallest communication unit. First, the camera microcomputer 205 outputs a clock signal LCLK having eight cycles of pulses as a set, and transmits a data signal DCL to the lens microcomputer 111 in synchronization with the clock signal LCLK. At the same time, the camera microcomputer 205 receives the data signal DLC output from the lens microcomputer 111 in synchronization with the clock signal LCLK. In this way, 1 byte (8 bits) of data is transmitted and received between the lens microcomputer 111 and the camera microcomputer 205 in synchronization with a set of clock signals LCLK. After the transmission and reception of this data, the communication suspension period is inserted by the communication standby request command (hereinafter, simply referred to as communication standby request) BUSY, which will be described in detail later. A communication unit in which a period of eight cycles of the clock signal LCLK and a period of the communication standby request BUSY following the period is set is called one frame.

図3(B)には、それぞれ2フレームの通信を含む5つの通信シーケンス「通信CMDn」(n=1〜5)により構成されるデータ通信の流れを示している。「通信CMDn」に含まれる2フレームの通信は、例えば、カメラマイコン205がレンズマイコン111からレンズデータDTnを取得する際に行われる。 FIG. 3B shows a flow of data communication composed of five communication sequences “communication CMDn” (n = 1 to 5) including communication of two frames each. The two-frame communication included in the "communication CMDn" is performed, for example, when the camera microcomputer 205 acquires the lens data DTn from the lens microcomputer 111.

「通信CMD1」において、カメラマイコン205は、クロック信号LCLKをレンズマイコン111に送信するとともに、送信を要求するレンズデータDT1に対応する個別送信要求コマンドCMD1をデータ信号DCLとして送信する。このフレームでのデータ信号DLCは無効データとして扱われる。 In the "communication CMD1", the camera microcomputer 205 transmits the clock signal LCLK to the lens microcomputer 111, and also transmits the individual transmission request command CMD1 corresponding to the lens data DT1 requesting transmission as the data signal DCL. The data signal DLC in this frame is treated as invalid data.

続いて、カメラマイコン205は、クロック信号LCLKを8周期出力した後に、カメラ本体200側の通信端子状態を出力形式から入力形式に切り替える。レンズマイコン111は、カメラ本体200側の通信端子状態の切り替えが完了した後、クロック信号LCLKを出力形式に切り替え、通信待機要求BUSYをカメラマイコン205に通知するために信号レベルをローレベルにする。カメラマイコン205は、通信待機要求BUSYが通知されている期間は通信端子の入力形式を維持して、レンズマイコン111への通信を休止する。 Subsequently, the camera microcomputer 205 outputs the clock signal LCLK for eight cycles, and then switches the communication terminal state on the camera body 200 side from the output format to the input format. After the switching of the communication terminal state on the camera body 200 side is completed, the lens microcomputer 111 switches the clock signal LCLK to the output format, and lowers the signal level in order to notify the camera microcomputer 205 of the communication standby request BUSY. The camera microcomputer 205 maintains the input format of the communication terminal during the period when the communication standby request BUSY is notified, and suspends the communication to the lens microcomputer 111.

レンズマイコン111は、通信待機要求BUSYの通知期間中に、個別送信要求コマンドCMD1に対応するレンズデータDT1を生成し、次のフレームのデータ信号DLCとして送信する準備の完了後にクロック信号LCLKをハイレベルに切り替える。そして、通信待機要求BUSYを解除する。カメラマイコン205は、通信待機要求BUSYの解除を認識すると、1フレームのクロック信号LCLKをレンズマイコン111に送信することでレンズマイコン111からレンズデータDT1を受信する。これに続く「通信CMD2」〜「通信CMD5」の通信シーケンスでも「通信CMD1」と同様のやり取りがカメラマイコン205とレンズマイコン111との間で行われる。これによりカメラマイコン205は、レンズデータDT2〜DT5をそれぞれ個別に取得する。 The lens microcomputer 111 generates the lens data DT1 corresponding to the individual transmission request command CMD1 during the notification period of the communication standby request BUSY, and sets the clock signal LCLK to a high level after the preparation for transmission as the data signal DLC of the next frame is completed. Switch to. Then, the communication standby request BUSY is released. When the camera microcomputer 205 recognizes the cancellation of the communication standby request BUSY, it receives the lens data DT1 from the lens microcomputer 111 by transmitting the clock signal LCLK of one frame to the lens microcomputer 111. In the subsequent communication sequence of "communication CMD2" to "communication CMD5", the same exchange as that of "communication CMD1" is performed between the camera microcomputer 205 and the lens microcomputer 111. As a result, the camera microcomputer 205 individually acquires the lens data DT2 to DT5.

図4は、第2の通信プロトコルとしての連続通信プロトコルでの信号波形を示している。連続通信プロトコルは、例えば、カメラ本体200にて設定されている撮像モードが動画撮像モードであるときに選択される。 FIG. 4 shows a signal waveform in a continuous communication protocol as a second communication protocol. The continuous communication protocol is selected, for example, when the imaging mode set in the camera body 200 is the moving image imaging mode.

図4(A)、(B)には、連続通信プロトコルにおけるレンズマイコン111へのカスタムコマンドの登録方法を示している。コマンド登録情報としてのカスタムコマンドは、個別通信プロトコルにおける個別送信要求コマンドCMDn(n=1、2、・・・)の組み合わせによって構成される。連続通信プロトコルでは、CMDnをコマンド要素という。 FIGS. 4A and 4B show a method of registering a custom command in the lens microcomputer 111 in the continuous communication protocol. The custom command as the command registration information is composed of a combination of individual transmission request commands CMDn (n = 1, 2, ...) In the individual communication protocol. In the continuous communication protocol, CMDn is called a command element.

まず、図4(A)を用いて、カスタムコマンドの第1の登録方法について説明する。図4(A)には、カメラマイコン205が、連続通信プロトコルにより、レンズマイコン111から図5に示す5つのレンズデータDT1、DT2、DT3、DT4、DT5をこの順番で取得するためのカスタムコマンド1を登録するときの信号波形を示している。 First, the first registration method of the custom command will be described with reference to FIG. 4 (A). In FIG. 4A, a custom command 1 for the camera microcomputer 205 to acquire the five lens data DT1, DT2, DT3, DT4, and DT5 shown in FIG. 5 from the lens microcomputer 111 by the continuous communication protocol in this order. The signal waveform when registering is shown.

予めカメラマイコン205は、カメラ本体200に装着されている交換レンズ100が有する複数種類のレンズデータを通信により取得している。そして、該レンズデータに基づいてカスタムコマンドの登録テーブル(以下、カメラ側登録テーブルという)CTBL1を生成して保持している。カメラ側登録テーブルCTBL1の生成手順については後に説明する。 In advance, the camera microcomputer 205 acquires a plurality of types of lens data included in the interchangeable lens 100 mounted on the camera body 200 by communication. Then, based on the lens data, a custom command registration table (hereinafter referred to as a camera-side registration table) CTBL1 is generated and held. The procedure for generating the camera-side registration table CTBL1 will be described later.

まず、カメラマイコン205は、カメラ側登録テーブルCTBL1を参照しつつ、カスタムコマンド1としての登録を要求する登録要求コマンドENTRY1をレンズマイコン111に送信する。レンズマイコン111は、登録要求コマンドENTRY1を受信すると、クロック信号LCLKをローレベルに固定することで通信待機要求BUSYをカメラマイコン205に通知するとともに、カスタムコマンド1の登録準備を開始する。続いて、レンズマイコン111は、登録準備が完了すると、通信待機要求BUSYを解除する。 First, the camera microcomputer 205 transmits the registration request command ENTRY1 requesting registration as the custom command 1 to the lens microcomputer 111 while referring to the camera side registration table CTBL1. When the lens microcomputer 111 receives the registration request command ENTRY1, the lens microcomputer 111 notifies the camera microcomputer 205 of the communication standby request BUSY by fixing the clock signal LCLK to a low level, and starts preparation for registration of the custom command 1. Subsequently, when the registration preparation is completed, the lens microcomputer 111 cancels the communication standby request BUSY.

カメラマイコン205は、この通信待機要求BUSYの解除を認識して、カスタムコマンド1をレンズマイコン111に送信する。具体的にはカメラマイコン205は、レンズマイコン111から送信を求める2種類以上のレンズデータDTnの組み合わせと送信順序を示すカスタムコマンド1(コマンド要素CMDnの組み合わせ)を該送信順序と同じ順序で送信する。 The camera microcomputer 205 recognizes the cancellation of the communication standby request BUSY and transmits the custom command 1 to the lens microcomputer 111. Specifically, the camera microcomputer 205 transmits a custom command 1 (combination of command elements CMDn) indicating a combination of two or more types of lens data DTn for which transmission is requested from the lens microcomputer 111 and a transmission order in the same order as the transmission order. ..

図4(A)では、カメラマイコン205は、レンズマイコン111に対してレンズデータDT1、DT2、DT3、DT4、DT5のこの順序での送信を求める。このため、カメラマイコン205は、カスタムデータ1を構成するコマンド要素CMD1、CMD2、CMD3、CMD4、CMD5をこの順でレンズマイコン111に送信する。なお、レンズデータDT3、DT2、DT1、DT5、DT4のこの順序での送信を求める際には、カメラマイコン205はカスタムデータを構成するコマンド要素CMD3、CMD2、CMD1、CMD5、CMD4をこの順でレンズマイコン111に送信する。このようにしてカスタムデータ1(CMD1〜CMD5)をレンズマイコン111に送信したカメラマイコン205は、その後、レンズマイコン111に対して登録完了を通知するための登録完了コマンドENDを送信する。 In FIG. 4A, the camera microcomputer 205 requests the lens microcomputer 111 to transmit the lens data DT1, DT2, DT3, DT4, and DT5 in this order. Therefore, the camera microcomputer 205 transmits the command elements CMD1, CMD2, CMD3, CMD4, and CMD5 constituting the custom data 1 to the lens microcomputer 111 in this order. When requesting transmission of lens data DT3, DT2, DT1, DT5, DT4 in this order, the camera microcomputer 205 lenses the command elements CMD3, CMD2, CMD1, CMD5, CMD4 constituting the custom data in this order. It is transmitted to the microcomputer 111. The camera microcomputer 205 that has transmitted the custom data 1 (CMD1 to CMD5) to the lens microcomputer 111 in this way then transmits a registration completion command END for notifying the lens microcomputer 111 of the completion of registration.

一方、レンズマイコン111は、カメラマイコン205からデータ信号DCLとして送信されたカスタムデータ1を構成するコマンド要素CMDnと同じ値CMDnを、次の1バイト通信でデータ信号DLCとしてカメラマイコン205に送信する。これにより、カメラマイコン205は、コマンド要素CMDnがレンズマイコン111に正しく通信されて登録されたことを確認することができる。 On the other hand, the lens microcomputer 111 transmits the same value CMDn as the command element CMDn constituting the custom data 1 transmitted as the data signal DCL from the camera microcomputer 205 to the camera microcomputer 205 as the data signal DLC in the next 1-byte communication. Thereby, the camera microcomputer 205 can confirm that the command element CMDn is correctly communicated with the lens microcomputer 111 and registered.

なお、図4(A)では、レンズマイコン111が送信要求コマンドCMD1の受信後に通信待機要求BUSYをカメラマイコン205に送信し、CMD2以降の送信要求コマンドの受信後に通信待機要求BUSYを送信しない場合を示している。すなわち、図4(A)に示すデータ通信形式は、レンズマイコン111からカメラマイコン205に通知する通信待機要求BUSYが付加されるコマンドフレームと該通信待機要求が付加されないデータフレームとにより構成される。ただし、これは例に過ぎず、レンズマイコン111での処理状況に応じて、CMD2以降の送信要求コマンドの受信後に通信待機要求BUSYを付加してもよい。 In FIG. 4A, the lens microcomputer 111 transmits the communication standby request BUSY to the camera microcomputer 205 after receiving the transmission request command CMD1, and does not transmit the communication standby request BUSY after receiving the transmission request command after CMD2. Shown. That is, the data communication format shown in FIG. 4A is composed of a command frame to which the communication standby request BUSY notified from the lens microcomputer 111 to the camera microcomputer 205 is added and a data frame to which the communication standby request is not added. However, this is only an example, and the communication standby request BUSY may be added after receiving the transmission request command after CMD2 depending on the processing status of the lens microcomputer 111.

ここで、図6を用いて、レンズマイコン111がカスタムコマンド1を登録するために行う登録処理について説明する。カメラマイコン205には、前述した登録テーブル(以下、カメラ側登録テーブルという)CTBL1が保存されている。 Here, the registration process performed by the lens microcomputer 111 to register the custom command 1 will be described with reference to FIG. The above-mentioned registration table (hereinafter referred to as a camera-side registration table) CTBL1 is stored in the camera microcomputer 205.

レンズマイコン111は、登録要求コマンドENTRY1を受信すると、レンズマイコン111内に保持されたカスタムコマンド1用のデータテーブル(以下、レンズ側登録テーブルという)LTBL1を選択する。次に、レンズマイコン111は、レンズ側登録テーブルLTBL1における配列番号No.1のアドレスに、カメラマイコン205から1番目に受信したコマンド要素CMD1と該CMD1に対応するレンズデータDT1とを保存する。続いてレンズマイコン111は、レンズ側登録テーブルLTBL1における配列番号No.2のアドレスに、カメラマイコン205から2番目に受信したコマンド要素CMD2と該CMD2に対応するレンズデータDT1とを保存する。そして、同様の処理を配列番号No.3からNo.5のアドレスについても行う。この後、レンズマイコン111は、カメラマイコン205から登録完了コマンドENDを受信すると、レンズ側登録テーブルLTBL1の登録処理を完了する。 When the lens microcomputer 111 receives the registration request command ENTRY1, the lens microcomputer 111 selects the data table (hereinafter, referred to as the lens side registration table) LTBL1 for the custom command 1 held in the lens microcomputer 111. Next, the lens microcomputer 111 has a sequence number No. 1 in the lens side registration table LTBL1. The command element CMD1 first received from the camera microcomputer 205 and the lens data DT1 corresponding to the CMD1 are stored in the address 1. Subsequently, the lens microcomputer 111 has a sequence number No. 1 in the lens side registration table LTBL1. The second command element CMD2 received from the camera microcomputer 205 and the lens data DT1 corresponding to the CMD2 are stored in the address 2. Then, the same processing is performed with SEQ ID NO: No. No. 3 to No. The same applies to the address of 5. After that, when the lens microcomputer 111 receives the registration completion command END from the camera microcomputer 205, the lens microcomputer 111 completes the registration process of the lens side registration table LTBL1.

また、図4(B)には、図4(A)に示したカスタムコマンド1の登録と同様にして、カスタムコマンド1とは異なるカスタムコマンド2をレンズマイコン111に登録する方法を示している。図4(B)では、カメラマイコン205は、レンズマイコン111に対してレンズデータDT6、DT7、DT8のこの順序での送信を求める。このため、カメラマイコン205は、レンズマイコン111に対して登録要求コマンドENTRY2を送信した後、カスタムコマンド2を構成するコマンド要素CMD6、CMD7、CMD8をこの順で送信する。なお、レンズデータDT8、DT6、DT7の順序での送信を求める際には、カメラマイコン205はカスタムデータを構成するコマンド要素CMD8、CMD6、CMD7をこの順でレンズマイコン111に送信する。このようにしてカスタムデータ2(CMD6〜CMD8)をレンズマイコン111に送信したカメラマイコン205は、その後、レンズマイコン111に対して登録完了コマンドENDを送信する。 Further, FIG. 4B shows a method of registering a custom command 2 different from the custom command 1 in the lens microcomputer 111 in the same manner as the registration of the custom command 1 shown in FIG. 4A. In FIG. 4B, the camera microcomputer 205 requests the lens microcomputer 111 to transmit the lens data DT6, DT7, and DT8 in this order. Therefore, the camera microcomputer 205 transmits the registration request command ENTRY2 to the lens microcomputer 111, and then transmits the command elements CMD6, CMD7, and CMD8 constituting the custom command 2 in this order. When requesting the transmission of the lens data DT8, DT6, and DT7 in this order, the camera microcomputer 205 transmits the command elements CMD8, CMD6, and CMD7 constituting the custom data to the lens microcomputer 111 in this order. The camera microcomputer 205 that has transmitted the custom data 2 (CMD6 to CMD8) to the lens microcomputer 111 in this way then transmits a registration completion command END to the lens microcomputer 111.

図4(B)に示す場合でも、レンズマイコン111は、登録要求コマンドENTRY2を受信すると、カスタムコマンド2用のレンズ側登録テーブルLTBL2(図示せず)を選択する。そして、レンズマイコン111は、レンズ側登録テーブルLTBL2における配列番号No.1〜3のアドレスに、カメラマイコン205から順次受信したコマンド要素CMD6〜CMD8およびこれらに対応するレンズデータDT6〜DT8を保存する。この後、カメラマイコン205から登録完了コマンドENDを受信すると、レンズマイコン111はレンズ側登録テーブルLTBL2の登録処理を完了する。 Even in the case shown in FIG. 4B, when the lens microcomputer 111 receives the registration request command ENTRY2, the lens microcomputer 111 selects the lens side registration table LTBL2 (not shown) for the custom command 2. Then, the lens microcomputer 111 has the SEQ ID NO: No. in the lens side registration table LTBL2. The command elements CMD6 to CMD8 sequentially received from the camera microcomputer 205 and the corresponding lens data DT6 to DT8 are stored in the addresses 1 to 3. After that, when the registration completion command END is received from the camera microcomputer 205, the lens microcomputer 111 completes the registration process of the lens side registration table LTBL2.

このようにレンズマイコン111に予め複数のカスタムコマンドを登録することにより、カメラ本体200での処理に応じてカメラマイコン205がカスタムコマンド(つまりはレンズデータの組み合わせ)を選択することが可能となる。例えば、AF処理に必要なレンズデータの組み合わせを取得する際にはカスタムコマンド1を選択し、防振処理に必要なレンズデータの組み合わせを取得する際にはカスタムコマンド2を選択するといったことが可能となる。 By registering a plurality of custom commands in advance in the lens microcomputer 111 in this way, the camera microcomputer 205 can select a custom command (that is, a combination of lens data) according to the processing in the camera body 200. For example, it is possible to select the custom command 1 when acquiring the combination of lens data required for AF processing, and select the custom command 2 when acquiring the combination of lens data required for anti-vibration processing. It becomes.

なお、レンズ側登録テーブル内に保存されたレンズデータDTnは固定値または変数であり、変数である場合はその変数が格納される交換レンズ100内のRAM等のメモリのアドレス情報が保存される。 The lens data DTn stored in the lens-side registration table is a fixed value or a variable, and if it is a variable, the address information of a memory such as a RAM in the interchangeable lens 100 in which the variable is stored is stored.

次に、図5を用いて、カメラマイコン205がレンズマイコン111からカスタムマンド1、2に対応したレンズデータを取得する方法について説明する。図5にはこのときの信号波形を示している。ここでは、カスタムコマンド1、2がレンズマイコン111に登録されているものとする。 Next, a method in which the camera microcomputer 205 acquires the lens data corresponding to the custom mands 1 and 2 from the lens microcomputer 111 will be described with reference to FIG. FIG. 5 shows the signal waveform at this time. Here, it is assumed that the custom commands 1 and 2 are registered in the lens microcomputer 111.

図5において、まずカメラマイコン205は、第1のカメラ処理(例えばAF処理)に必要なレンズデータDT1〜DT5をレンズマイコン111から取得するため、該レンズデータの送信要求コマンドをレンズマイコン111に送信する。このとき、レンズデータDT1〜DT5(つまりはコマンド要素CMD1〜CMD5)に対応するのはカスタムコマンド1である。このため、カメラマイコン205は、カスタムコマンド1に対応付けられた送信要求コマンドGET1を生成してレンズマイコン111に送信する。 In FIG. 5, first, the camera microcomputer 205 transmits a transmission request command for the lens data to the lens microcomputer 111 in order to acquire the lens data DT1 to DT5 required for the first camera processing (for example, AF processing) from the lens microcomputer 111. do. At this time, it is the custom command 1 that corresponds to the lens data DT1 to DT5 (that is, the command elements CMD1 to CMD5). Therefore, the camera microcomputer 205 generates the transmission request command GET1 associated with the custom command 1 and transmits it to the lens microcomputer 111.

送信要求コマンドGET1を受信したレンズマイコン111は、クロック信号LCLKをローレベルに固定することで通信待機要求BUSYをカメラマイコン205に通知する。そして、レンズマイコン111は、送信要求コマンドGET1に対応するレンズデータDT1〜DT5を生成する。レンズデータDT1〜DT5を生成して送信準備が整うと、レンズマイコン111は、通信待機要求BUSYを解除する。 The lens microcomputer 111 that has received the transmission request command GET1 notifies the camera microcomputer 205 of the communication standby request BUSY by fixing the clock signal LCLK to a low level. Then, the lens microcomputer 111 generates lens data DT1 to DT5 corresponding to the transmission request command GET1. When the lens data DT1 to DT5 are generated and the transmission is ready, the lens microcomputer 111 cancels the communication standby request BUSY.

通信待機要求BUSYの解除を認識したカメラマイコン205は、送信要求コマンドGET1に対応する5バイトのレンズデータDT1〜DT5を取得するために、5フレームのクロック信号LCLKを送信する。レンズマイコン111は、登録されたカスタムコマンド1(CMD1、CMD2、CMD3、CMD4、CMD5)に対応する5つのレンズデータDT1、DT2、DT3、DT4、DT5をこの順番でデータ信号DLCとしてカメラマイコン205に送信する。カメラマイコン205は、受信したレンズデータDT1〜DT5を用いて第1のカメラ処理を行う。 The camera microcomputer 205 that recognizes the cancellation of the communication standby request BUSY transmits the clock signal LCLK of 5 frames in order to acquire the 5-byte lens data DT1 to DT5 corresponding to the transmission request command GET1. The lens microcomputer 111 sends five lens data DT1, DT2, DT3, DT4, and DT5 corresponding to the registered custom commands 1 (CMD1, CMD2, CMD3, CMD4, CMD5) to the camera microcomputer 205 as data signals DLC in this order. Send. The camera microcomputer 205 performs the first camera processing using the received lens data DT1 to DT5.

第1のカメラ処理が完了すると、カメラマイコン205は、引き続き第2のカメラ処理(例えば防振処理)を行うため、カスタムコマンド2に対応付けられた送信要求コマンドGET2を生成してレンズマイコン111に送信する。送信要求コマンドGET2を受信したレンズマイコン111は、通信待機要求BUSYをカメラマイコン205に通知するとともに送信要求コマンドGET2に対応するレンズデータDT6〜DT8を生成する。その後、通信待機要求BUSYを解除したレンズマイコン111に対して、カメラマイコン205は、送信要求コマンドGET2に対応する3バイトのレンズデータDT6〜DT8を取得するために、3フレームのクロック信号LCLKを送信する。レンズマイコン111は、登録されているカスタムコマンド1(CMD6、CMD7、CMD8)に対応する3つのレンズデータDT6、DT7、DT8をこの順番でカメラマイコン205に送信する。カメラマイコン205は、受信したレンズデータDT6〜DT8を用いて第2のカメラ処理を行う。 When the first camera processing is completed, the camera microcomputer 205 continues to perform the second camera processing (for example, anti-vibration processing), so that the transmission request command GET2 associated with the custom command 2 is generated in the lens microcomputer 111. Send. The lens microcomputer 111 that has received the transmission request command GET2 notifies the camera microcomputer 205 of the communication standby request BUSY and generates lens data DT6 to DT8 corresponding to the transmission request command GET2. After that, the camera microcomputer 205 transmits a 3-frame clock signal LCLK to the lens microcomputer 111 that has released the communication standby request BUSY in order to acquire the 3-byte lens data DT6 to DT8 corresponding to the transmission request command GET2. do. The lens microcomputer 111 transmits three lens data DT6, DT7, and DT8 corresponding to the registered custom command 1 (CMD6, CMD7, CMD8) to the camera microcomputer 205 in this order. The camera microcomputer 205 performs the second camera processing using the received lens data DT6 to DT8.

図7には、レンズマイコン111がカメラマイコン205から送信要求コマンドGET1、GET2を受信した場合に行うレンズデータDTnの生成処理を示している。 FIG. 7 shows a lens data DTn generation process performed when the lens microcomputer 111 receives the transmission request commands GET1 and GET2 from the camera microcomputer 205.

前述したように、レンズマイコン111は、送信要求コマンドGET1を受信すると、クロック信号LCLKをローレベルに固定することで通信待機要求BUSYをカメラマイコン205に通知する。また、レンズマイコン111内に保存されたカスタムコマンド1用のレンズ側登録テーブルLTBL1を選択する。 As described above, when the lens microcomputer 111 receives the transmission request command GET1, it notifies the camera microcomputer 205 of the communication standby request BUSY by fixing the clock signal LCLK to a low level. Further, the lens side registration table LTBL1 for the custom command 1 stored in the lens microcomputer 111 is selected.

次にレンズマイコン111は、レンズ側登録テーブルLTBL1における配列番号No.1のアドレスを参照することで、1番目の登録レンズデータがDT1であることを認識し、レンズデータDT1を生成する。そして、生成したレンズデータDT1を不図示の送信用FIFOメモリに格納する。その後、レンズマイコン111は、同様の処理をレンズ側登録テーブルLTBL1における配列番号No.2〜5のアドレスに対しても行う。こうして、配列番号No.5のアドレスの登録レンズデータに対応するレンズデータDT5のFIFOメモリへの格納まで終了したことを確認すると、レンズマイコン111は送信要求コマンドGET1に対応するレンズデータ生成処理を完了する。 Next, the lens microcomputer 111 has a sequence number No. 1 in the lens side registration table LTBL1. By referring to the address of 1, it is recognized that the first registered lens data is DT1, and the lens data DT1 is generated. Then, the generated lens data DT1 is stored in a transmission FIFO memory (not shown). After that, the lens microcomputer 111 performs the same processing with the sequence number No. 1 in the lens side registration table LTBL1. This is also done for addresses 2-5. Thus, SEQ ID NO: No. When it is confirmed that the lens data DT5 corresponding to the registered lens data of the address 5 has been stored in the FIFO memory, the lens microcomputer 111 completes the lens data generation process corresponding to the transmission request command GET1.

こうしてレンズデータDT1〜DT5の送信準備が整うと、レンズマイコン111は前述したように通信待機要求BUSYを解除する。これにより、カメラマイコン205はレンズマイコン111との通信処理を再開し、5フレーム分のクロック信号LCLKをレンズマイコン111送信する。レンズマイコン111は、該クロック信号LCLKに同期したデータ信号DLCとしてレンズデータDT1〜DT5をカメラマイコン205に連続して送信する。 When the lens data DT1 to DT5 are ready for transmission in this way, the lens microcomputer 111 cancels the communication standby request BUSY as described above. As a result, the camera microcomputer 205 resumes the communication process with the lens microcomputer 111, and transmits the clock signal LCLK for 5 frames to the lens microcomputer 111. The lens microcomputer 111 continuously transmits the lens data DT1 to DT5 to the camera microcomputer 205 as a data signal DLC synchronized with the clock signal LCLK.

このように本実施例では、レンズマイコン111に予め複数のカスタムコマンドを登録して、カメラマイコン205がカメラ本体200で行うカメラ処理に応じてカスタムコマンドを選択してそれに対応する送信要求コマンドをレンズマイコン111に送信する。これにより、カメラマイコン205は、レンズマイコン111から大量のレンズデータを短時間で取得することが可能となり、この結果、カメラマイコン205は高速でカメラ処理を行うことができる。 As described above, in this embodiment, a plurality of custom commands are registered in advance in the lens microcomputer 111, the custom command is selected according to the camera processing performed by the camera microcomputer 205 in the camera body 200, and the corresponding transmission request command is sent to the lens. It is transmitted to the microcomputer 111. As a result, the camera microcomputer 205 can acquire a large amount of lens data from the lens microcomputer 111 in a short time, and as a result, the camera microcomputer 205 can perform camera processing at high speed.

本実施例では、個別通信プロトコルと連続通信プロトコルが選択される場合としてそれぞれ、静止画撮像モードと動画撮像モードが設定された場合を例として挙げた。しかし、これら2つの通信プロトコルが選択される場合はこれらに限定されるものではなく、カメラ本体200で行う制御や処理に応じて選択すればよい。例えば、動画撮像モードであっても、ユーザの操作状態や撮像状態によっては連続通信プロトコルによる通信が不適切な場合もある。その場合には個別通信プロトコルを選択してもよい。また、静止画撮像モードであっても、予め決められた組み合せのレンズデータを用いるカメラ処理を行う場合には連続通信プロトコルを選択してもよい。 In this embodiment, the case where the individual communication protocol and the continuous communication protocol are selected and the case where the still image imaging mode and the moving image imaging mode are set are given as an example. However, when these two communication protocols are selected, they are not limited to these, and may be selected according to the control or processing performed by the camera body 200. For example, even in the moving image imaging mode, communication by the continuous communication protocol may be inappropriate depending on the operation state and the imaging state of the user. In that case, the individual communication protocol may be selected. Further, even in the still image imaging mode, a continuous communication protocol may be selected when performing camera processing using a predetermined combination of lens data.

次に、図8〜図11のフローチャートを用いて、カメラマイコン205が連続通信プロトコルを選択したときのカメラマイコン205およびレンズマイコン111が行う具体的な処理について説明する。図8および図9のフローチャートはカメラマイコン205が行う処理を示し、図10および図11のフローチャートはレンズマイコン111が行う処理を示している。カメラマイコン205およびレンズマイコン111はそれぞれ、コンピュータプログラムとしてのデータ通信制御プログラムに従ってこれらの処理を実行する。 Next, specific processing performed by the camera microcomputer 205 and the lens microcomputer 111 when the camera microcomputer 205 selects the continuous communication protocol will be described with reference to the flowcharts of FIGS. 8 to 11. The flowcharts of FIGS. 8 and 9 show the processing performed by the camera microcomputer 205, and the flowcharts of FIGS. 10 and 11 show the processing performed by the lens microcomputer 111. The camera microcomputer 205 and the lens microcomputer 111 each execute these processes according to a data communication control program as a computer program.

図8には、カメラマイコン205がカスタムコマンドを生成するために行う処理(カメラマイコン処理1)を示している。カメラマイコン205は、ステップS1において、レンズマイコン111からレンズ機能情報(レンズ固有情報)IDを取得する。レンズ機能情報IDは、交換レンズ100が有する機能(例えば、AF機能、防振機能およびズーム機能)の有無を示したり、交換レンズ100(レンズマイコン111)が記憶しているレンズデータを示したりする情報である。さらに、レンズ機能情報IDは、交換レンズ100が受け入れ可能な個別送信要求コマンドを示す情報でもある。レンズ機能情報IDは、交換レンズ100の製品ごとに異なる、その交換レンズ100に固有の情報である。 FIG. 8 shows a process (camera microcomputer process 1) performed by the camera microcomputer 205 to generate a custom command. In step S1, the camera microcomputer 205 acquires the lens function information (lens-specific information) ID from the lens microcomputer 111. The lens function information ID indicates the presence / absence of functions (for example, AF function, vibration isolation function, and zoom function) of the interchangeable lens 100, and indicates the lens data stored in the interchangeable lens 100 (lens microcomputer 111). Information. Further, the lens function information ID is also information indicating an individual transmission request command that can be accepted by the interchangeable lens 100. The lens function information ID is information unique to the interchangeable lens 100, which is different for each product of the interchangeable lens 100.

レンズ機能情報IDは一般的には不変であるため、交換レンズ100がカメラ本体200に装着された時点で一度だけカメラマイコン205に送信されればよい。ただし、レンズ機能情報IDが変更可能である場合には、その変更ごとに新たなレンズ機能情報IDをレンズマイコン111からカメラマイコン205に送信する。 Since the lens function information ID is generally immutable, it only needs to be transmitted to the camera microcomputer 205 once when the interchangeable lens 100 is attached to the camera body 200. However, if the lens function information ID can be changed, a new lens function information ID is transmitted from the lens microcomputer 111 to the camera microcomputer 205 for each change.

次に、ステップS2において、カメラマイコン205は、ステップS1で取得したレンズ機能情報IDに基づいて、レンズマイコン111に登録させるべきカスタムコマンドm(m=1、2、・・・)を判断する。そして、ステップS3において、カスタムコマンドmの生成処理を開始する。 Next, in step S2, the camera microcomputer 205 determines a custom command m (m = 1, 2, ...) To be registered in the lens microcomputer 111 based on the lens function information ID acquired in step S1. Then, in step S3, the generation process of the custom command m is started.

ステップS4では、カメラマイコン205は、カスタムコマンドmの生成処理として、まずカメラマイコン205内のメモリにカスタムコマンドmを保存するデータテーブル(カメラ側登録テーブルCTBLm)の番号mを決定する。 In step S4, the camera microcomputer 205 first determines the number m of the data table (camera side registration table CTBLm) for storing the custom command m in the memory in the camera microcomputer 205 as the process of generating the custom command m.

次に、ステップS5では、カメラマイコン205は、カスタムコマンドmに含ませるコマンド要素(つまりはレンズマイコン111に送信を要求する2種類以上のレンズデータ)の組み合せとそれらの順序を決定してカスタムコマンドmを生成する。例えば、動画撮像中においてカメラマイコン205が行う処理として必要なレンズデータには、フォーカスに関する情報、防振に関する情報、絞りに関する情報および変倍に関する情報がある。また、これらの情報をカメラマイコン205が受信するときの順序として、連続通信プロトコルの通信データ長の中で、早い時期に取得すべき優先度の高い種類のレンズデータについてはその送信要求の順序が早くなるように設定する。 Next, in step S5, the camera microcomputer 205 determines a combination of command elements (that is, two or more types of lens data requested to be transmitted to the lens microcomputer 111) included in the custom command m and their order, and custom commands. Generate m. For example, lens data required for processing performed by the camera microcomputer 205 during moving image imaging includes information on focus, information on vibration isolation, information on aperture, and information on scaling. Further, as the order when the camera microcomputer 205 receives this information, the order of transmission requests for the high-priority type of lens data that should be acquired at an early stage in the communication data length of the continuous communication protocol is Set to be faster.

カメラマイコン205は、このようにしてステップS5で生成されたカスタムコマンドmをステップS4で決定した番号mのデータテーブルに記憶させる。こうして、カメラマイコン205は、カスタムコマンドの生成処理を完了する。 The camera microcomputer 205 stores the custom command m generated in step S5 in the data table of the number m determined in step S4. In this way, the camera microcomputer 205 completes the custom command generation process.

図9には、カメラマイコン205がレンズマイコン111に対してカスタムコマンドを登録させるために行う処理(カメラマイコン処理2)を示している。ステップS100では、カメラマイコン205は、レンズマイコン111に登録させるカスタムコマンドmを判断する。カメラマイコン205内のメモリには、予め複数のカスタムコマンドmのそれぞれを構成する2以上のコマンド要素CMDnとその順序が決められて、カスタムコマンドごとにテーブルデータ(カメラ側登録テーブルCTBLm)として記憶されている。 FIG. 9 shows a process (camera microcomputer process 2) performed by the camera microcomputer 205 for registering a custom command in the lens microcomputer 111. In step S100, the camera microcomputer 205 determines the custom command m to be registered in the lens microcomputer 111. In the memory in the camera microcomputer 205, two or more command elements CMDn constituting each of the plurality of custom commands m and their order are determined in advance, and are stored as table data (camera side registration table CTBLm) for each custom command. ing.

次に、ステップS101では、カメラマイコン205は、レンズマイコン111に登録させると判断したカスタムコマンドmに対応するカメラ側登録テーブルCTBLmのデータを取得する。 Next, in step S101, the camera microcomputer 205 acquires the data of the camera-side registration table CTBLm corresponding to the custom command m determined to be registered in the lens microcomputer 111.

次に、ステップS102では、カメラマイコン205は、レンズマイコン111に登録させるカスタムコマンドmに対応する登録要求コマンドENTRYmを決定する。 Next, in step S102, the camera microcomputer 205 determines the registration request command ENTRYm corresponding to the custom command m to be registered in the lens microcomputer 111.

次に、ステップS103では、カメラマイコン205は、データ信号DCLとして登録要求コマンドENTRYmをレンズマイコン111に送信する。 Next, in step S103, the camera microcomputer 205 transmits the registration request command ENTRYm as the data signal DCL to the lens microcomputer 111.

次に、ステップS104では、登録要求コマンドENTRYmを送信完了したカメラマイコン205は、レンズマイコン111からの通信待機要求BUSYの状態(解除か否か)を確認する。 Next, in step S104, the camera microcomputer 205 that has completed transmitting the registration request command ENTRYm confirms the state (whether or not it is canceled) of the communication standby request BUSY from the lens microcomputer 111.

そして、通信待機要求BUSYの解除を確認したカメラマイコン205は、ステップS105において、再び選択したテーブルデータを参照してカスタムコマンドmを構成する2以上のコマンド要素CMDnを決定する。 Then, the camera microcomputer 205 that has confirmed the cancellation of the communication standby request BUSY determines in step S105 two or more command elements CMDn that constitute the custom command m with reference to the selected table data again.

さらに、カメラマイコン205は、ステップS106において、データ信号DCLとして、ステップS105にて決定したカスタムコマンドm、つまりは2以上のコマンド要素CMDnを決められた順序でレンズマイコン111に送信する。 Further, in step S106, the camera microcomputer 205 transmits the custom command m determined in step S105, that is, two or more command elements CMDn, to the lens microcomputer 111 in the determined order as the data signal DCL.

次に、ステップS107において、カメラマイコン205は、テーブルデータを参照して、そのテーブルデータ内の全てのコマンド要素CMDnの送信が完了したか否かを判断する。まだ完了していない場合は、カメラマイコン205はステップS108に進み、次のコマンド要素CMDnの送信順を1つ進めてステップS105に戻る。こうして、テーブルデータ内の全てのコマンド要素CMDnのレンズマイコン111への送信が完了するまでステップS105〜S108を繰り返す。全てのコマンド要素CMDnの送信が完了すると、カメラマイコン205は、ステップS109に進む。 Next, in step S107, the camera microcomputer 205 refers to the table data and determines whether or not the transmission of all the command elements CMDn in the table data has been completed. If it has not been completed yet, the camera microcomputer 205 proceeds to step S108, advances the transmission order of the next command element CMDn by one, and returns to step S105. In this way, steps S105 to S108 are repeated until the transmission of all the command elements CMDn in the table data to the lens microcomputer 111 is completed. When the transmission of all the command elements CMDn is completed, the camera microcomputer 205 proceeds to step S109.

ステップS109では、カメラマイコン205は、レンズマイコン111に対して、カスタムコマンドの登録完了を通知するコマンドENDを送信する。これにより、カメラマイコン205における1つのカスタムコマンドの登録処理が完了する。 In step S109, the camera microcomputer 205 transmits a command END notifying the lens microcomputer 111 of the completion of registration of the custom command. As a result, the registration process of one custom command in the camera microcomputer 205 is completed.

続いて、ステップS110では、カメラマイコン205は、レンズマイコン111に登録すべき複数のカスタムコマンドの登録が全て完了したか否かを判断する。まだ完了していない場合はステップS100に戻って、次のカスタムコマンドの登録処理を行う。一方、全てのカスタムコマンドの登録が完了すると、カメラマイコン205は、本処理を終了する。 Subsequently, in step S110, the camera microcomputer 205 determines whether or not all the registration of the plurality of custom commands to be registered in the lens microcomputer 111 has been completed. If it has not been completed yet, the process returns to step S100 and the registration process of the next custom command is performed. On the other hand, when the registration of all the custom commands is completed, the camera microcomputer 205 ends this process.

図10には、レンズマイコン111がカメラマイコン205から送信されたカスタムコマンドを登録する処理(レンズマイコン処理1)を示している。ステップS200において、レンズマイコン111は、登録要求コマンドENTRYmの受信の有無を判断する。登録要求コマンドENTRYmの受信を確認したレンズマイコン111は、通信待機要求BUSYをカメラマイコン205に通知する。 FIG. 10 shows a process (lens microcomputer process 1) in which the lens microcomputer 111 registers a custom command transmitted from the camera microcomputer 205. In step S200, the lens microcomputer 111 determines whether or not the registration request command ENTRYm is received. The lens microcomputer 111 that has confirmed the reception of the registration request command ENTRYm notifies the camera microcomputer 205 of the communication standby request BUSY.

次に、ステップS202では、レンズマイコン111は、ステップS200で受信した登録要求コマンドENTRYmに対応するレンズ側登録テーブルLTBLmを選択する。 Next, in step S202, the lens microcomputer 111 selects the lens-side registration table LTBLm corresponding to the registration request command ENTRYm received in step S200.

次に、ステップS203では、レンズマイコン111は、カメラマイコン205から送信されてくるカスタムコマンドmうち1番目のコマンド要素CMDnを記憶(格納)するためのテーブルアドレスを設定する。そして、コマンド受信待機状態(第1のモード)となったレンズマイコン111は、ステップS204にて通信待機要求BUSYを解除する。ステップS205では、レンズマイコン111は、カメラマイコン205から通信待機要求BUSYの解除後に送信されてくる1番目のコマンド要素CMDnの受信を待機する。 Next, in step S203, the lens microcomputer 111 sets a table address for storing (storing) the first command element CMDn among the custom commands m transmitted from the camera microcomputer 205. Then, the lens microcomputer 111 in the command reception standby state (first mode) cancels the communication standby request BUSY in step S204. In step S205, the lens microcomputer 111 waits for the reception of the first command element CMDn transmitted from the camera microcomputer 205 after the communication standby request BUSY is released.

レンズマイコン111は、コマンド受信待機状態でカメラマイコン205から登録要求コマンドENTRYmを受信すると、登録完了コマンドENDを受信するまで受信したコマンド要素CMDnに対応するレンズデータを送信しない第2のモードに切り替わる。第2のモードでは、レンズマイコン111は、カメラマイコン205に対して、受信コマンド要素CMDnを確認させるためのデータ(CMDn)を送信する。なお、第2のモードにてレンズマイコン111は、通信データ長または送信コマンド数(コマンド要素CMDnの数)を通知するデータに基づいてカメラマイコン205の通信完了を判断し、第1のモードに切り替えてもよい。 When the lens microcomputer 111 receives the registration request command ENTRYm from the camera microcomputer 205 in the command reception standby state, the lens microcomputer 111 switches to the second mode in which the lens data corresponding to the received command element CMDn is not transmitted until the registration completion command END is received. In the second mode, the lens microcomputer 111 transmits data (CMDn) for confirming the reception command element CMDn to the camera microcomputer 205. In the second mode, the lens microcomputer 111 determines the completion of communication of the camera microcomputer 205 based on the data notifying the communication data length or the number of transmission commands (the number of command elements CMDn), and switches to the first mode. You may.

ステップS203で1番目のコマンド要素CMDnを受信したレンズマイコン111は、ステップS206でコマンド要素CMDをステップS202で選択したレンズ側登録テーブルLTBLmのうちステップS203で設定したテーブルアドレスに格納する。また、ステップS207では、レンズマイコン111は、このコマンド要素CMDnに対応するレンズデータDTnも同テーブルアドレスに格納する。なお、前述したように、レンズ側登録テーブル内に格納されたレンズデータDTnは固定値または変数であり、変数である場合はその変数が格納されるメモリのアドレス情報が保存される。 The lens microcomputer 111 that has received the first command element CMDn in step S203 stores the command element CMD in step S206 at the table address set in step S203 in the lens side registration table LTDLm selected in step S202. Further, in step S207, the lens microcomputer 111 also stores the lens data DTn corresponding to this command element CMDn in the same table address. As described above, the lens data DTn stored in the lens-side registration table is a fixed value or a variable, and if it is a variable, the address information of the memory in which the variable is stored is stored.

続いて、ステップS208では、レンズマイコン111は、カメラマイコン205からのデータ受信を待機し、受信したデータが登録完了コマンドENDであるか否かを判断する。登録完了コマンドENDではない場合は、レンズマイコン111は、ステップS209においてレンズ側登録テーブルLTBLmにおける格納先のテーブルアドレスを示す配列番号を進めてステップS206に戻る。これ以降は、カメラマイコン205から送信される全てのコマンド要素CMDnの受信および格納が完了して登録完了コマンドENDが受信されるまでステップS206〜S209を繰り返す。 Subsequently, in step S208, the lens microcomputer 111 waits for data reception from the camera microcomputer 205, and determines whether or not the received data is the registration completion command END. If the registration completion command is not END, the lens microcomputer 111 advances the sequence number indicating the storage destination table address in the lens side registration table LTBLm in step S209 and returns to step S206. After that, steps S206 to S209 are repeated until the reception and storage of all the command elements CMDn transmitted from the camera microcomputer 205 are completed and the registration completion command END is received.

ステップS208において登録完了コマンドENDを受信した場合は、レンズマイコン111は、ステップS210に進み、レンズ側登録テーブルLTBLm上の格納済みコマンド要素CMDnおよびレンズデータDTnの登録を完了する。このとき、レンズマイコン111は、登録完了コマンドENDの受信に応じて、上述した第2のモードから第1のモードに切り替わる。以上により、レンズマイコン111は本処理を終了する。 When the registration completion command END is received in step S208, the lens microcomputer 111 proceeds to step S210 to complete the registration of the stored command element CMDn and the lens data DTn on the lens side registration table LTBLm. At this time, the lens microcomputer 111 switches from the above-mentioned second mode to the first mode in response to the reception of the registration completion command END. As described above, the lens microcomputer 111 ends this process.

図11には、レンズマイコン111がカメラマイコン205から送信要求コマンドGETmを受信したときに行うレンズデータの送信処理(レンズマイコン処理2)を示している。ステップS300では、レンズマイコン111は、送信要求コマンドGETmの受信の有無を判断する。送信要求コマンドGETmの受信を確認したレンズマイコン111は、ステップS301において通信待機要求BUSYをカメラマイコン205に通知する。 FIG. 11 shows a lens data transmission process (lens microcomputer process 2) performed when the lens microcomputer 111 receives the transmission request command GETm from the camera microcomputer 205. In step S300, the lens microcomputer 111 determines whether or not the transmission request command GETm is received. The lens microcomputer 111 that has confirmed the reception of the transmission request command GETm notifies the camera microcomputer 205 of the communication standby request BUSY in step S301.

次に、ステップS302では、レンズマイコン111は、ステップS300で受信した送信要求コマンドGETmに基づいて、対応するレンズ側登録テーブルLTBLmを選択する。 Next, in step S302, the lens microcomputer 111 selects the corresponding lens-side registration table LTBLm based on the transmission request command GETm received in step S300.

次に、ステップS303では、レンズマイコン111は、選択したレンズ側登録テーブルLTBLm内に収められた2種類以上のレンズデータDTnの格納先の情報を取得する。ここでは、レンズデータが変数であり、その変数が交換レンズ100内のRAM等のメモリに格納されているものとする。 Next, in step S303, the lens microcomputer 111 acquires information on the storage destination of two or more types of lens data DTn stored in the selected lens side registration table LTBLm. Here, it is assumed that the lens data is a variable, and that variable is stored in a memory such as a RAM in the interchangeable lens 100.

そして、ステップS304では、レンズマイコン111は、ステップS303で取得した情報に基づいてメモリから読み込んだ変数を用いてレンズデータDTnを生成する。さらに、ステップS305では、レンズマイコン111は、生成したレンズデータDTnをデータ信号DLC送信用データバッファであるFIFOメモリに格納する。 Then, in step S304, the lens microcomputer 111 generates lens data DTn using the variables read from the memory based on the information acquired in step S303. Further, in step S305, the lens microcomputer 111 stores the generated lens data DTn in the FIFO memory which is a data buffer for transmitting the data signal DLC.

続いて、ステップS306では、レンズマイコン111は、レンズ側登録テーブルLTBLm内に収められた全てのレンズデータDTnの生成が完了したか否かを判断する。全レンズデータDTnの生成が完了していない場合は、ステップS307に進み、レンズ側登録テーブルLTBLmのテーブルアドレスを示す配列番号を1つ進めてステップS304に戻る。これ以降は、全てのレンズデータDTの生成が完了するまで、ステップS304〜S307の処理を繰り返す。 Subsequently, in step S306, the lens microcomputer 111 determines whether or not the generation of all the lens data DTn stored in the lens side registration table LTBLm is completed. If the generation of all lens data DTn is not completed, the process proceeds to step S307, the sequence number indicating the table address of the lens side registration table LTBLm is advanced by one, and the process returns to step S304. After that, the processes of steps S304 to S307 are repeated until the generation of all the lens data DTs is completed.

ステップS306にて全てのレンズデータDTnの生成が完了すると、レンズマイコン111は、ステップS308において、レンズデータDTnの送信準備処理が整った後に通信待機要求BUSYを解除する。 When the generation of all the lens data DTn is completed in step S306, the lens microcomputer 111 cancels the communication standby request BUSY after the transmission preparation process of the lens data DTn is completed in step S308.

次に、ステップS309では、レンズマイコン111は、通信待機要求BUSYの解除を認識したカメラマイコン205から1フレーム分のクロック信号LCLKが送信されるのを待つ。そして、クロック信号LCLKを受信したレンズマイコン111は、該クロック信号LCLKに同期させてFIFOメモリに格納した1つのレンズデータDTnをカメラマイコン205に送信する。 Next, in step S309, the lens microcomputer 111 waits for the clock signal LCLK for one frame to be transmitted from the camera microcomputer 205 that has recognized the cancellation of the communication standby request BUSY. Then, the lens microcomputer 111 that has received the clock signal LCLK transmits one lens data DTn stored in the FIFO memory in synchronization with the clock signal LCLK to the camera microcomputer 205.

そして、ステップS310において、レンズマイコン111は、FIFOメモリに格納した全てのレンズデータDTnの送信が完了したか否かを判断する。未送信レンズデータが残っている場合にはステップS309に戻り、カメラマイコン205から次のクロック信号LCLKが送信されてくるのを待つ。これ以降は、レンズマイコン111は、FIFOメモリに格納した全てのレンズデータDTnの送信が完了するまで、ステップS309、S310の処理を繰り返す。この繰り返しにより、カスタムコマンドm(送信要求コマンドGETm)に対応する全てのレンズデータDTnが、カスタムコマンドm(コマンド要素CMDn)により指定された順序でレンズマイコン111からカメラマイコン205に連続して送信される。 Then, in step S310, the lens microcomputer 111 determines whether or not the transmission of all the lens data DTn stored in the FIFO memory is completed. If untransmitted lens data remains, the process returns to step S309 and waits for the next clock signal LCLK to be transmitted from the camera microcomputer 205. After that, the lens microcomputer 111 repeats the processes of steps S309 and S310 until the transmission of all the lens data DTn stored in the FIFO memory is completed. By repeating this process, all lens data DTn corresponding to the custom command m (transmission request command GETm) are continuously transmitted from the lens microcomputer 111 to the camera microcomputer 205 in the order specified by the custom command m (command element CMDn). NS.

ステップS310において、FIFOメモリ内の全てのレンズデータDTnの送信が完了した場合には、レンズマイコン111は本処理を終了する。 In step S310, when the transmission of all the lens data DTn in the FIFO memory is completed, the lens microcomputer 111 ends this process.

次に、図12〜図14を用いてカメラ本体200と交換レンズ100の間で撮像タイミングを共有する方法について説明する。図12は、垂直同期信号Vと同期して予め決められた種類及び容量のデータ通信が行われるときの通信波形を示している。図12で示したデータ通信においては、固定長のデータ通信が行われ、なおかつ、カメラマイコン205とレンズマイコン111の間でやり取りされるデータの種類やタイミングが予め決められている。それゆえ、図12で示したデータ通信においては、カメラ本体200から交換レンズ100に対して通信要求コマンドを送信する必要がない。垂直同期信号Vの立下りタイミングまたは立上りタイミングを垂直同期信号Vの出力タイミングとして、垂直同期信号Vの出力タイミングに同期したデータ通信が行われる。 Next, a method of sharing the imaging timing between the camera body 200 and the interchangeable lens 100 will be described with reference to FIGS. 12 to 14. FIG. 12 shows a communication waveform when data communication of a predetermined type and capacity is performed in synchronization with the vertical synchronization signal V. In the data communication shown in FIG. 12, fixed-length data communication is performed, and the type and timing of data exchanged between the camera microcomputer 205 and the lens microcomputer 111 are predetermined. Therefore, in the data communication shown in FIG. 12, it is not necessary to transmit a communication request command from the camera body 200 to the interchangeable lens 100. Data communication is performed in synchronization with the output timing of the vertical synchronization signal V, with the falling timing or the rising timing of the vertical synchronization signal V as the output timing of the vertical synchronization signal V.

一方、垂直同期信号Vに同期して送受信されるレンズデータの種類やタイミングが可変の通信プロトコルにおいては、交換レンズ100が垂直同期信号Vの出力タイミングを認識できないことがある。本実施例では、垂直同期信号Vの一周期内で最初にカメラ本体200から送信される送信要求コマンドの種類を予め決めておくことで、交換レンズ100が垂直同期信号Vの出力タイミングを認識できるような構成としている。これにより、レンズマイコン111はカメラ本体200における撮像タイミングを正確に認識し、レンズ制御に必要なレンズデータを精度よく算出することができる。 On the other hand, in a communication protocol in which the type and timing of lens data transmitted and received in synchronization with the vertical synchronization signal V are variable, the interchangeable lens 100 may not be able to recognize the output timing of the vertical synchronization signal V. In this embodiment, the interchangeable lens 100 can recognize the output timing of the vertical synchronization signal V by first determining the type of the transmission request command transmitted from the camera body 200 within one cycle of the vertical synchronization signal V. It has such a structure. As a result, the lens microcomputer 111 can accurately recognize the imaging timing in the camera body 200 and accurately calculate the lens data required for lens control.

以下、精度の高いレンズデータを送受信する目的について説明する。垂直同期信号Vの一周期内で複数のデータ通信を行う場合、周期内の最初のデータ通信タイミングと周期内の最後のデータ通信タイミングとの時間差が大きくなり、レンズデータに変化が生じる。交換レンズ100からカメラ本体200に送信されるレンズデータとしては、フォーカスレンズ104の位置情報や振れセンサ127の出力等がある。 Hereinafter, the purpose of transmitting and receiving highly accurate lens data will be described. When a plurality of data communications are performed within one cycle of the vertical synchronization signal V, the time difference between the first data communication timing in the cycle and the last data communication timing in the cycle becomes large, and the lens data changes. The lens data transmitted from the interchangeable lens 100 to the camera body 200 includes the position information of the focus lens 104, the output of the runout sensor 127, and the like.

カメラマイコン205は、フォーカスレンズ104の位置情報に基づいてフォーカス制御を行うため、特定のタイミングにおけるフォーカスレンズ104の位置を正確に把握することで合焦精度を向上させることができる。レンズマイコン111から送信される具体的なレンズデータとしては、垂直同期信号Vの出力タイミングから所定時間経過後のフォーカスレンズ104の位置情報や、フォーカスレンズ104の位置情報を取得したタイミングを示す情報が挙げられる。カメラマイコン205は、フォーカスレンズ104の位置情報とこの位置情報の取得タイミングを正確に認識することで、精度の高い合焦動作を行うことができる。 Since the camera microcomputer 205 performs focus control based on the position information of the focus lens 104, it is possible to improve the focusing accuracy by accurately grasping the position of the focus lens 104 at a specific timing. Specific lens data transmitted from the lens microcomputer 111 includes position information of the focus lens 104 after a lapse of a predetermined time from the output timing of the vertical synchronization signal V, and information indicating the timing of acquiring the position information of the focus lens 104. Can be mentioned. The camera microcomputer 205 can accurately perform the focusing operation with high accuracy by accurately recognizing the position information of the focus lens 104 and the acquisition timing of the position information.

また、カメラマイコン205が、垂直同期信号Vの出力タイミングと関連付けられた振れセンサ127の出力をレンズマイコン111から受信することで、カメラ本体200における像振れ補正精度を高めることができる。例えば、交換レンズ100に含まれる振れ補正レンズ103を駆動させて行う光学防振と、カメラ本体における画像処理によって行う電子防振を組み合わせて像振れ補正を行う場合に、光学防振と電子防振の振れ補正比率を適切に設定することが可能となる。さらに、振れセンサ127の出力とそのタイミングから被写体の移動速度を推測し、被写体の移動速度を考慮した像振れ補正を行うことが可能となる。 Further, the camera microcomputer 205 receives the output of the shake sensor 127 associated with the output timing of the vertical synchronization signal V from the lens microcomputer 111, so that the image shake correction accuracy in the camera body 200 can be improved. For example, when image shake correction is performed by combining optical vibration isolation performed by driving the shake correction lens 103 included in the interchangeable lens 100 and electronic vibration isolation performed by image processing in the camera body, optical vibration isolation and electronic vibration isolation are performed. It is possible to appropriately set the runout correction ratio of. Further, it is possible to estimate the moving speed of the subject from the output of the shake sensor 127 and its timing, and perform image shake correction in consideration of the moving speed of the subject.

続いて、交換レンズ100とカメラ本体200の間で垂直同期信号Vの出力タイミングを共有するための具体的な方法について図13、図14を用いて説明する。 Subsequently, a specific method for sharing the output timing of the vertical synchronization signal V between the interchangeable lens 100 and the camera body 200 will be described with reference to FIGS. 13 and 14.

図13に示すように、複数の送信要求コマンドGETの中で、垂直同期信号Vの一周期内の最初に送信可能なコマンド(GET80〜GET87)が決められている。また、これらの送信要求コマンド(GET80〜GET87)に対応する登録要求コマンドENTRY(ENTRY00〜ENTRY07)が設定されている。これにより、レンズマイコン111は、所定の送信要求コマンド(GET80〜GET87)をカメラマイコン205から受信することでカメラ本体200における垂直同期信号Vの出力タイミングを認識することができる。送信要求コマンド(GET80〜GET87)及び登録要求コマンド(ENTRY00〜ENTRY07)は、垂直同期信号Vの一周期内の最初に送信可能なコマンドであるため、先頭コマンド(先頭情報)と記載する。これら以外のコマンドを非先頭コマンド(非先頭情報)と記載する。 As shown in FIG. 13, among the plurality of transmission request command GETs, the command (GET80 to GET87) that can be transmitted first within one cycle of the vertical synchronization signal V is determined. Further, the registration request commands ENTRY (ENTRY00 to ENTRY07) corresponding to these transmission request commands (GET80 to GET87) are set. As a result, the lens microcomputer 111 can recognize the output timing of the vertical synchronization signal V in the camera body 200 by receiving a predetermined transmission request command (GET80 to GET87) from the camera microcomputer 205. Since the transmission request command (GET80 to GET87) and the registration request command (ENTRY00 to ENTRY07) are the first commands that can be transmitted in one cycle of the vertical synchronization signal V, they are described as the first command (first information). Commands other than these are described as non-head commands (non-head information).

例えば、送信要求コマンドGETがGET=82である場合には、レンズマイコン111は、送信要求コマンド(GET=82)を垂直同期信号Vの一周期内における最初の送信要求コマンドであると認識する。なお、クロック信号LCLKの出力タイミングは、垂直同期信号Vの立上りタイミングや立下りタイミングを基準に設定される。本実施例では、垂直同期信号Vの立下りタイミングからクロック信号LCLKの出力タイミングまでの遅延時間Tvを考慮して、各種レンズデータを作成する。なお、垂直同期信号Vの立上りタイミングを基準とした遅延時間に基づいて各種レンズデータを作成しても良い。 For example, when the transmission request command GET is GET = 82, the lens microcomputer 111 recognizes the transmission request command (GET = 82) as the first transmission request command within one cycle of the vertical synchronization signal V. The output timing of the clock signal LCLK is set based on the rising timing and falling timing of the vertical synchronization signal V. In this embodiment, various lens data are created in consideration of the delay time Tv from the falling timing of the vertical synchronization signal V to the output timing of the clock signal LCLK. In addition, various lens data may be created based on the delay time based on the rising timing of the vertical synchronization signal V.

遅延時間Tvは予め決められた長さであっても良いし、適宜変更可能な長さとしても良い。送信要求コマンドと共にカメラマイコン205から送信される情報に遅延時間Tvの長さを示す情報が含まれる構成とすれば、遅延時間Tvを適宜変更することができる。遅延時間Tvに関する情報の送受信は、カメラ本体200と交換レンズ100が電気的に接続されたタイミングで行われる初期通信において実行されてもよい。また、遅延時間Tvの長さに応じて異なるコマンドが送受信されるプロトコルとすることで、遅延時間Tvをカメラ本体200と交換レンズ100の間で容易に共有することができる。 The delay time Tv may be a predetermined length or may be a length that can be appropriately changed. If the information transmitted from the camera microcomputer 205 together with the transmission request command includes information indicating the length of the delay time Tv, the delay time Tv can be changed as appropriate. The transmission / reception of information regarding the delay time Tv may be executed in the initial communication performed at the timing when the camera body 200 and the interchangeable lens 100 are electrically connected. Further, by adopting a protocol in which different commands are transmitted and received according to the length of the delay time Tv, the delay time Tv can be easily shared between the camera body 200 and the interchangeable lens 100.

図14は、連続通信プロトコルに基づく通信の流れを示している。本実施例では、連続通信プロトコルに基づく通信を行っているが、個別通信プログラムに基づく通信においても通信の流れは同じである。 FIG. 14 shows the flow of communication based on the continuous communication protocol. In this embodiment, communication is performed based on the continuous communication protocol, but the communication flow is the same for communication based on the individual communication program.

図14では、垂直同期信号Vの一周期内における最初の送信要求コマンドとして、カメラマイコン205からレンズマイコン111に対してGET=80が送信される。そして交換レンズ100においてGET=80に対応するレンズデータが作成され、作成されたレンズデータがレンズマイコン111からカメラマイコン205に送信される。ここでレンズマイコン111は、送信要求コマンドとは別に遅延時間Tvを示す情報を取得し、この遅延時間Tvを考慮したレンズデータを作成する。 In FIG. 14, GET = 80 is transmitted from the camera microcomputer 205 to the lens microcomputer 111 as the first transmission request command within one cycle of the vertical synchronization signal V. Then, lens data corresponding to GET = 80 is created in the interchangeable lens 100, and the created lens data is transmitted from the lens microcomputer 111 to the camera microcomputer 205. Here, the lens microcomputer 111 acquires information indicating the delay time Tv separately from the transmission request command, and creates lens data in consideration of the delay time Tv.

続いてカメラマイコン205からレンズマイコン111に対して送信要求コマンドGET=88が送信される。図13において説明したように、GET=88は先頭コマンドでないため、レンズマイコン111は、垂直同期信号Vの周期が継続していると認識し、垂直同期信号Vの出力タイミングからの経過時間を考慮したレンズデータをカメラマイコン205に送信する。続いて、レンズマイコン111は送信要求コマンドGET=8Aを受信し、これに対応するレンズデータをカメラマイコン205に送信する。 Subsequently, the transmission request command GET = 88 is transmitted from the camera microcomputer 205 to the lens microcomputer 111. As described in FIG. 13, since GET = 88 is not the first command, the lens microcomputer 111 recognizes that the period of the vertical synchronization signal V is continuing, and considers the elapsed time from the output timing of the vertical synchronization signal V. The lens data is transmitted to the camera microcomputer 205. Subsequently, the lens microcomputer 111 receives the transmission request command GET = 8A, and transmits the corresponding lens data to the camera microcomputer 205.

カメラマイコン205から先頭コマンドとしての送信要求コマンドGET=83を受信することに応じて、レンズマイコン111は、垂直同期信号Vの周期が切り替わったことを認識する。以降、新たに認識した垂直同期信号Vの出力タイミングに応じたレンズデータを作成し、作成したデータをカメラマイコン205に送信する。 In response to receiving the transmission request command GET = 83 as the first command from the camera microcomputer 205, the lens microcomputer 111 recognizes that the period of the vertical synchronization signal V has been switched. After that, lens data corresponding to the output timing of the newly recognized vertical synchronization signal V is created, and the created data is transmitted to the camera microcomputer 205.

以上のように、カメラマイコン205からレンズマイコン111に対して、垂直同期信号Vの一周期内における最初の送信要求コマンドであることを伝達することで、レンズマイコン111が、垂直同期信号Vの出力タイミングを正確に認識することができる。これにより、交換レンズ100からカメラ本体200に送信される各種レンズデータの精度を高めることができ、カメラ本体200で実行される合焦制御や像振れ補正制御等の精度を向上させることができる。 As described above, by transmitting from the camera microcomputer 205 to the lens microcomputer 111 that it is the first transmission request command within one cycle of the vertical synchronization signal V, the lens microcomputer 111 outputs the vertical synchronization signal V. The timing can be recognized accurately. As a result, the accuracy of various lens data transmitted from the interchangeable lens 100 to the camera body 200 can be improved, and the accuracy of focusing control, image shake correction control, etc. executed by the camera body 200 can be improved.

[実施例2]
続いて本発明の実施例2について説明する。カメラ本体200や交換レンズ100の基本的な構成は実施例1と同様である。実施例2では、カメラマイコン205とレンズマイコン111の間で、第2の通信プロトコルとしての連続通信プロトコルでのデータ通信が行われる。連続通信プロトコルの概要は実施例1で説明したものと同様である。
[Example 2]
Subsequently, Example 2 of the present invention will be described. The basic configuration of the camera body 200 and the interchangeable lens 100 is the same as that of the first embodiment. In the second embodiment, data communication is performed between the camera microcomputer 205 and the lens microcomputer 111 using a continuous communication protocol as a second communication protocol. The outline of the continuous communication protocol is the same as that described in the first embodiment.

実施例2では、個別送信要求コマンドCMDの送信前に、カメラマイコン205がレンズマイコン111に対して登録番号通知コマンドEIDやデータ番号通知コマンドGIDを送信する。登録要求コマンドENTRYや送信要求コマンドGETが送信された後、個別送信要求コマンドCMDの送信前に、登録番号通知コマンドEIDやデータ番号通知コマンドGIDの送信を行うことが本実施例の特徴である。 In the second embodiment, the camera microcomputer 205 transmits the registration number notification command EID and the data number notification command GID to the lens microcomputer 111 before transmitting the individual transmission request command CMD. It is a feature of this embodiment that the registration number notification command EID and the data number notification command GID are transmitted after the registration request command ENTRY and the transmission request command GET are transmitted and before the transmission of the individual transmission request command CMD.

図15を用いてカスタムコマンドの登録方法について説明する。図15(A)では、カメラマイコン205は、登録要求コマンドENTRYをレンズマイコン111に送信する。レンズマイコン111は、登録要求コマンドENTRYを受信すると、クロック信号LCLKをローレベルに固定することで通信待機要求BUSYをカメラマイコン205に通知する。通信待機要求BUSYの通知と共にカメラマイコン205から送信される情報の受信準備を行って通信待機要求BUSYを解除する。 A method of registering a custom command will be described with reference to FIG. In FIG. 15A, the camera microcomputer 205 transmits the registration request command ENTRY to the lens microcomputer 111. When the lens microcomputer 111 receives the registration request command ENTRY, it notifies the camera microcomputer 205 of the communication standby request BUSY by fixing the clock signal LCLK to a low level. Along with the notification of the communication standby request BUSY, the communication standby request BUSY is released by preparing to receive the information transmitted from the camera microcomputer 205.

カメラマイコン205は、通信待機要求BUSYの解除を認識することに応じて、カスタムコマンド1の登録番号通知コマンドEID1と、今回のカスタムコマンドに応じて送受信されるデータ容量を示す情報(ENO1)をレンズマイコン111に送信する。レンズマイコン111は、通信待機要求BUSYをカメラマイコン205に通知するとともに、カスタムコマンド1の登録準備を行って通信待機要求BUSYを解除する。 In response to recognizing the cancellation of the communication standby request BUSY, the camera microcomputer 205 lenses the registration number notification command EID1 of the custom command 1 and the information (ENO1) indicating the amount of data transmitted / received in response to the custom command this time. It is transmitted to the microcomputer 111. The lens microcomputer 111 notifies the camera microcomputer 205 of the communication standby request BUSY, prepares for registration of the custom command 1, and cancels the communication standby request BUSY.

カメラマイコン205は、通信待機要求BUSYの解除を認識することに応じて、個別送信要求コマンドCMDをレンズマイコン111に送信する。カメラマイコン205は、レンズマイコン111からの送信を求める2種類以上のレンズデータDTn(n=1、2、・・・)の組み合わせと送信順序とを示すカスタムコマンド(コマンド要素CMDnの組み合わせ)を該送信順序と同じ順序で送信する。 The camera microcomputer 205 transmits the individual transmission request command CMD to the lens microcomputer 111 in response to recognizing the cancellation of the communication standby request BUSY. The camera microcomputer 205 issues a custom command (combination of command elements CMDn) indicating a combination of two or more types of lens data DTn (n = 1, 2, ...) Requesting transmission from the lens microcomputer 111 and a transmission order. Send in the same order as the transmission order.

図15(A)では、カメラマイコン205は、レンズマイコン111に対してレンズデータDT21、DT22、DT23、DT24のこの順序での送信を求める。このため、カメラマイコン205は、カスタムデー1を構成するコマンド要素CMD21、CMD22、CMD23、CMD24をこの順でレンズマイコン111に送信する。 In FIG. 15A, the camera microcomputer 205 requests the lens microcomputer 111 to transmit the lens data DT21, DT22, DT23, and DT24 in this order. Therefore, the camera microcomputer 205 transmits the command elements CMD21, CMD22, CMD23, and CMD24 constituting the custom day 1 to the lens microcomputer 111 in this order.

ここで、本実施例では、個別送信要求コマンドCMDの送信前に予めデータ容量を示す情報としてENO1を送信しているため、実施例1で説明した登録完了コマンドENDは不要である。 Here, in this embodiment, since ENO1 is transmitted in advance as information indicating the data capacity before the transmission of the individual transmission request command CMD, the registration completion command END described in the first embodiment is unnecessary.

図15(B)では、カメラマイコン205は、レンズマイコン111に対してレンズデータDT25、DT26、DT27のこの順序での送信を求める。図15(A)と同様に、カメラマイコン205は、登録要求コマンドENTRYを送信した後に、カスタムコマンド2の登録番号通知コマンドEID2及びデータ容量を示す情報(ENO2)をレンズマイコン111に送信する。その後、カメラマイコン205は、カスタムデータを構成するコマンド要素CMD25、CMD26、CMD27をこの順でレンズマイコン111に送信する。 In FIG. 15B, the camera microcomputer 205 requests the lens microcomputer 111 to transmit the lens data DT25, DT26, and DT27 in this order. Similar to FIG. 15A, the camera microcomputer 205 transmits the registration number notification command EID2 of the custom command 2 and the information (ENO2) indicating the data capacity to the lens microcomputer 111 after transmitting the registration request command ENTRY. After that, the camera microcomputer 205 transmits the command elements CMD25, CMD26, and CMD27 constituting the custom data to the lens microcomputer 111 in this order.

次に、図16を用いて、カメラマイコン205がレンズマイコン111からカスタムコマンドに対応したレンズデータを取得する方法について説明する。図16はこのときの信号波形を示している。ここでは、カスタムコマンドがレンズマイコン111に登録されているものとする。 Next, a method in which the camera microcomputer 205 acquires lens data corresponding to a custom command from the lens microcomputer 111 will be described with reference to FIG. FIG. 16 shows the signal waveform at this time. Here, it is assumed that the custom command is registered in the lens microcomputer 111.

図16(A)は、カスタムコマンド1に対応付けられた送信要求コマンドGET1に対するデータ通信の流れを示している。図16(B)は、カスタムコマンド2に対応付けられた送信要求コマンドGET2に対するデータ通信の流れを示している。図16(A)、(B)のデータ通信は、垂直同期信号Vの一周期内に連続して行われる。 FIG. 16A shows the flow of data communication for the transmission request command GET1 associated with the custom command 1. FIG. 16B shows the flow of data communication for the transmission request command GET2 associated with the custom command 2. The data communication of FIGS. 16A and 16B is continuously performed within one cycle of the vertical synchronization signal V.

図16(A)において、カメラマイコン205は、カスタムコマンド1に対応付けられた送信要求コマンドGETを生成してレンズマイコン111に送信する。レンズマイコン111は、送信要求コマンドGETを受信すると、クロック信号LCLKをローレベルに固定することで通信待機要求BUSYをカメラマイコン205に通知する。通信待機要求BUSYの通知と共に、データ番号通知コマンドGID1および垂直同期信号Vの出力タイミングからの遅延時間VDTIME1を示す情報の受信準備を行って通信待機要求BUSYを解除する。 In FIG. 16A, the camera microcomputer 205 generates a transmission request command GET associated with the custom command 1 and transmits it to the lens microcomputer 111. When the lens microcomputer 111 receives the transmission request command GET, it notifies the camera microcomputer 205 of the communication standby request BUSY by fixing the clock signal LCLK to a low level. Along with the notification of the communication standby request BUSY, the communication standby request BUSY is canceled by preparing to receive the information indicating the delay time VDTIME1 from the output timing of the data number notification command GID1 and the vertical synchronization signal V.

カメラマイコン205は、この通信待機要求BUSYの解除を認識することに応じて、データ番号通知コマンド(GID1)と、遅延時間VDTIME1を示す情報をレンズマイコン111に送信する。レンズマイコン111は、通信待機要求BUSYをカメラマイコン205に通知するとともに、必要なレンズデータの作成を行って通信待機要求BUSYを解除する。そして、レンズマイコン111は、データ番号通知コマンドGID1に対応付けられた登録番号通知コマンドEID1に基づいて登録された順序でレンズデータDT21、DT22、DT23、DT24をカメラマイコン205に送信する。 In response to recognizing the cancellation of the communication standby request BUSY, the camera microcomputer 205 transmits a data number notification command (GID1) and information indicating the delay time VDTIME1 to the lens microcomputer 111. The lens microcomputer 111 notifies the camera microcomputer 205 of the communication standby request BUSY, creates necessary lens data, and cancels the communication standby request BUSY. Then, the lens microcomputer 111 transmits the lens data DT21, DT22, DT23, and DT24 to the camera microcomputer 205 in the order registered based on the registration number notification command EID1 associated with the data number notification command GID1.

ここで、図17(B)に示すように、データ番号通知コマンドGIDには、垂直同期信号Vの一周期内の最初に送信可能な送信要求コマンドであるか否かを示す先頭情報が含まれている。具体的には、データ番号通知コマンドGIDの特定のビットを用いて、垂直同期信号Vの一周期内の最初に送信される送信要求コマンド(先頭コマンド)であるか否かを示している。例えば、データ番号通知コマンドGIDの先頭ビットが1を示しているときには、先頭コマンドであることを表し、データ番号通知コマンドGIDの先頭ビットが0を示しているときには、先頭コマンドでないことを表すものとする。これにより、レンズマイコン111は、カメラマイコン205から送信されたデータ番号通知コマンドGIDが、先頭コマンドであるか否かを容易に判断することができる。 Here, as shown in FIG. 17B, the data number notification command GID includes head information indicating whether or not it is the first transmit request command that can be transmitted in one cycle of the vertical synchronization signal V. ing. Specifically, it indicates whether or not it is the transmission request command (first command) to be transmitted first in one cycle of the vertical synchronization signal V by using a specific bit of the data number notification command GID. For example, when the first bit of the data number notification command GID indicates 1, it indicates that it is the first command, and when the first bit of the data number notification command GID indicates 0, it indicates that it is not the first command. do. As a result, the lens microcomputer 111 can easily determine whether or not the data number notification command GID transmitted from the camera microcomputer 205 is the first command.

図17は、登録番号通知コマンドEIDとデータ番号通知コマンドGIDの構成を示す図である。図17(A)は、登録番号通知コマンドEIDの構成を示している。登録番号通知コマンドEIDの先頭ビットは未定義となっており、2番目から8番目のビットにより登録番号を定義している。図17(B)は、送信要求コマンドGIDの構成を示している。上述したように、データ番号通知コマンドGIDの先頭ビットは先頭コマンドであるか否かを示しており、2番目から8番目のビットによりレンズマイコン205からの送信を要求するデータ番号を定義している。 FIG. 17 is a diagram showing a configuration of a registration number notification command EID and a data number notification command GID. FIG. 17A shows the configuration of the registration number notification command EID. The first bit of the registration number notification command EID is undefined, and the registration number is defined by the second to eighth bits. FIG. 17B shows the configuration of the transmission request command GID. As described above, the first bit of the data number notification command GID indicates whether or not it is the first command, and the second to eighth bits define the data number for which transmission from the lens microcomputer 205 is requested. ..

図18は、遅延時間VDTIMEを説明する図である。本実施例では、垂直同期信号Vの出力タイミング(本実施例では立下りタイミング)から、クロック同期信号LCLKの送信タイミングまでの時間差を遅延時間VDTIMEとしている。レンズマイコン205は、この遅延時間VDTIMEに基づいて各種レンズデータを生成し、生成したレンズデータをカメラマイコン205に送信する。 FIG. 18 is a diagram illustrating a delay time VDTIME. In this embodiment, the time difference from the output timing of the vertical synchronization signal V (falling timing in this embodiment) to the transmission timing of the clock synchronization signal LCLK is defined as the delay time VDTIME. The lens microcomputer 205 generates various lens data based on this delay time VDTIME, and transmits the generated lens data to the camera microcomputer 205.

以上説明したように、実施例2では、送信要求コマンドGETの他に、データ番号通知コマンドGIDや遅延時間VDTIMEを示す情報を別途送受信する構成としている。データ番号通知コマンドGIDに、先頭コマンドであるか否かを示すビット情報を付加することで、垂直同期信号Vの一周期内の最初に送信される送信要求コマンドをレンズマイコン205が容易に認識することができる。 As described above, in the second embodiment, in addition to the transmission request command GET, information indicating the data number notification command GID and the delay time VDTIME is separately transmitted and received. By adding bit information indicating whether or not it is the first command to the data number notification command GID, the lens microcomputer 205 can easily recognize the transmission request command transmitted first in one cycle of the vertical synchronization signal V. be able to.

以上説明した実施例は代表的な例に過ぎず、本発明の実施に際しては、各実施例に対して種々の変形や変更が可能である。例えば、上記実施例では、アクセサリ装置として交換レンズを用いた例を示したが、撮像装置との通信機能を有するものであればストロボ等を用いてもよい。 The examples described above are only typical examples, and various modifications and changes can be made to each of the examples in carrying out the present invention. For example, in the above embodiment, an example in which an interchangeable lens is used as an accessory device is shown, but a strobe or the like may be used as long as it has a communication function with an image pickup device.

100 交換レンズ
111 レンズマイコン
200 カメラ本体
205 カメラマイコン
100 Interchangeable lens 111 Lens microcomputer 200 Camera body 205 Camera microcomputer

Claims (9)

カメラボディに装着可能であり、前記カメラボディと通信可能なアクセサリであって、
駆動部により駆動される被駆動部材に関する情報を一つ以上の通信仕様で前記カメラボディへ送信することが可能である送信部と、
前記情報を前記カメラボディへ送信する通信仕様を示す第1の値を前記カメラボディから受信する受信部と、
備え、
前記第1の値は、前記被駆動部材に関する情報が前記カメラボディへ送信されることを示し、
前記アクセサリは、第1のタイミングで行われる前記通信仕様に関する前記カメラボディとの双方向の通信において、前記第1の値を受信し
前記送信部は、前記第1のタイミングより後の第2のタイミングにおいて、前記第1の値が示す通信仕様で、前記被駆動部材に関する情報を前記カメラボディへ送信することを特徴とするアクセサリ。
An accessory that can be attached to the camera body and can communicate with the camera body.
A transmission unit capable of transmitting information about a driven member driven by the drive unit to the camera body with one or more communication specifications, and a transmission unit.
A receiving unit that receives a first value indicating a communication specification for transmitting the information to the camera body from the camera body, and a receiving unit.
With
The first value indicates that information about the driven member is transmitted to the camera body.
The accessory receives the first value in bidirectional communication with the camera body regarding the communication specification performed at the first timing .
The transmission unit is an accessory that transmits information about the driven member to the camera body at a second timing after the first timing, according to the communication specifications indicated by the first value.
カメラボディに装着可能であり、前記カメラボディと通信可能なアクセサリであって、
駆動部により駆動される被駆動部材に関する複数の情報を前記カメラボディへ送信することが可能である第1の送信部と、
前記被駆動部材に関する複数の情報が前記カメラボディへ送信されることを示す第1の値を前記カメラボディから受信する受信部と、
備え、
前記アクセサリは、第1のタイミングで行われる前記被駆動部材に関する複数の情報の送信に関する前記カメラボディとの双方向の通信において、前記第1の値を受信し、
前記第1の送信部は、前記第1のタイミングより後の第2のタイミングにおいて、前記第1の値に基づく前記被駆動部材に関する複数の情報を前記カメラボディへ送信することを特徴とするアクセサリ。
An accessory that can be attached to the camera body and can communicate with the camera body.
A first transmitting unit capable of transmitting a plurality of information about a driven member driven by the driving unit to the camera body, and a first transmitting unit.
A receiving unit that receives a first value indicating that a plurality of information about the driven member is transmitted to the camera body from the camera body.
With
The accessory receives the first value in bidirectional communication with the camera body regarding transmission of a plurality of information about the driven member, which is performed at the first timing.
The accessory is characterized in that the first transmitting unit transmits a plurality of information about the driven member based on the first value to the camera body at a second timing after the first timing. ..
前記通信仕様は、前記被駆動部材に関する複数の情報の種類と順序に関する仕様であることを特徴とする請求項1に記載のアクセリ。 The communication specification, accessor re according to claim 1, wherein the specification relating to the type and order of a plurality of information on the driven member. 前記第1の値は、前記アクセサリから前記カメラボディへ送信される前記被駆動部材に関する複数の情報の種類と順序を示す情報であることを特徴とする請求項1または2に記載のアクセサリ。 The accessory according to claim 1 or 2, wherein the first value is information indicating a type and order of a plurality of information regarding the driven member transmitted from the accessory to the camera body. 前記第1の値は、前記被駆動部材の状態及び前記被駆動部材の位置の少なくとも一つを含む情報が前記カメラボディへ送信されることを示す情報であることを特徴とする請求項1乃至4のいずれか一項に記載のアクセサリ。 The first value is information indicating that information including at least one of the state of the driven member and the position of the driven member is transmitted to the camera body. The accessory according to any one of 4. 前記第1の値は、前記被駆動部材に関する情報として、フォーカスレンズに関する情報、防振レンズに関する情報、ズームレンズに関する情報及び開口絞りに関する情報のうち少なくとも一つを含む情報が前記カメラボディへ送信されることを示す情報であることを特徴とする請求項1乃至5のいずれか一項に記載のアクセサリ。 As the first value, information including at least one of information about a focus lens, information about an anti-vibration lens, information about a zoom lens, and information about an aperture diaphragm is transmitted to the camera body as information about the driven member. The accessory according to any one of claims 1 to 5, wherein the information indicates that the lens is used. 前記アクセサリは、撮像光学系を有する交換レンズであることを特徴とする請求項1乃至のいずれか一項に記載のアクセサリ。 The accessory according to any one of claims 1 to 6 , wherein the accessory is an interchangeable lens having an imaging optical system. アクセサリを装着可能であり、前記アクセサリと通信可能なカメラボディであって、
前記アクセサリの駆動部により駆動される前記アクセサリの被駆動部材に関する情報を前記アクセサリから前記カメラボディへ送信する際の通信仕様を示す第1の値を前記アクセサリへ送信する送信部と、
前記第1の値が示す通信仕様で前記アクセサリから送信された、前記被駆動部材に関する情報を受信することが可能である受信部と、
備え、
前記第1の値は、前記被駆動部材に関する情報が前記アクセサリから前記カメラボディへ送信されることを示し、
前記カメラボディは、第1のタイミングで行われる前記通信仕様に関する前記アクセサリとの双方向の通信において、前記第1の値を送信し、
前記受信部は、前記第1のタイミングより後の第2のタイミングにおいて、前記第1の値が示す通信仕様で、前記被駆動部材に関する情報を前記アクセサリから受信することを特徴とするカメラボディ。
A camera body to which accessories can be attached and can communicate with the accessories.
A transmission unit that transmits a first value indicating communication specifications when transmitting information about a driven member of the accessory driven by the drive unit of the accessory from the accessory to the camera body, and a transmission unit that transmits the first value to the accessory.
A receiving unit capable of receiving information about the driven member transmitted from the accessory according to the communication specifications indicated by the first value, and a receiving unit.
With
The first value indicates that said information on the driven member is transmitted from said accessory to said camera body,
The camera body transmits the first value in bidirectional communication with the accessory regarding the communication specification performed at the first timing.
The receiving unit is a camera body that receives information about the driven member from the accessory at a second timing after the first timing, according to the communication specifications indicated by the first value.
アクセサリを装着可能であり、前記アクセサリと通信可能なカメラボディであって、
前記アクセサリの駆動部により駆動される前記アクセサリの被駆動部材に関する複数の情報が前記カメラボディへ送信されることを示す第1の値を前記アクセサリへ送信する送信部と、
前記アクセサリから送信された、前記被駆動部材に関する複数の情報を受信することが可能である受信部と、
備え
前記カメラボディは、第1のタイミングで行われる前記被駆動部材に関する複数の情報の送信に関する前記アクセサリとの双方向の通信において、前記第1の値を送信し、
前記受信部は、前記第1のタイミングより後の第2のタイミングにおいて、前記第1の値に基づく前記被駆動部材に関する複数の情報を前記アクセサリから受信することを特徴とするカメラボディ。
A camera body to which accessories can be attached and can communicate with the accessories.
A transmission unit that transmits a first value indicating that a plurality of information about the driven member of the accessory driven by the drive unit of the accessory is transmitted to the camera body, and a transmission unit that transmits the first value to the accessory.
A receiving unit capable of receiving a plurality of information regarding the driven member transmitted from the accessory, and a receiving unit.
Equipped with a,
The camera body transmits the first value in bidirectional communication with the accessory regarding transmission of a plurality of information about the driven member, which is performed at the first timing.
The receiving unit is configured at the second timing after the first timing, the camera body, characterized that you receive a plurality of information on the driven member based on the first value from the accessory.
JP2020028020A 2016-10-27 2020-02-21 Accessories, camera body Active JP6915113B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2020028020A JP6915113B2 (en) 2016-10-27 2020-02-21 Accessories, camera body
JP2021115050A JP7196245B2 (en) 2020-02-21 2021-07-12 accessories, camera bodies

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2016211076A JP6667417B2 (en) 2016-10-27 2016-10-27 Imaging device, accessory device, and control program
JP2020028020A JP6915113B2 (en) 2016-10-27 2020-02-21 Accessories, camera body

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2016211076A Division JP6667417B2 (en) 2016-10-27 2016-10-27 Imaging device, accessory device, and control program

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2021115050A Division JP7196245B2 (en) 2020-02-21 2021-07-12 accessories, camera bodies

Publications (2)

Publication Number Publication Date
JP2020080570A JP2020080570A (en) 2020-05-28
JP6915113B2 true JP6915113B2 (en) 2021-08-04

Family

ID=70802521

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020028020A Active JP6915113B2 (en) 2016-10-27 2020-02-21 Accessories, camera body

Country Status (1)

Country Link
JP (1) JP6915113B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010049034A (en) * 2008-08-22 2010-03-04 Sigma Corp Interchangeable lens, camera system, and lens data communication method
WO2015068492A1 (en) * 2013-11-08 2015-05-14 富士フイルム株式会社 Camera system, camera body, interchangeable lens, and communication method

Also Published As

Publication number Publication date
JP2020080570A (en) 2020-05-28

Similar Documents

Publication Publication Date Title
JP6716206B2 (en) Imaging device, lens device, and data communication processing program
US8169535B2 (en) Interchangeable lens, camera body and camera system
EP2280306B1 (en) Camera system
WO2009139118A1 (en) Camera system
JP7129292B2 (en) Accessory devices, cameras, communication control programs, and camera systems
US11477361B2 (en) Image capturing apparatus, accessory apparatus, and control method therefor
CN107659767B (en) Accessory apparatus, imaging apparatus, control method thereof, and imaging system
JP7401612B2 (en) Cameras, accessory devices, communication control methods, computer programs, and camera systems
JP2018205717A (en) Camera and communication control method of the same
JP6915113B2 (en) Accessories, camera body
JP6667417B2 (en) Imaging device, accessory device, and control program
JP7196245B2 (en) accessories, camera bodies
JP6461258B2 (en) Accessory device, imaging device, and communication control program
JP2020173337A (en) Adapter device, communication method, and program
JP6788368B2 (en) Accessory device, imaging device and their control method
WO2018221558A1 (en) Camera and communication control method for same
JP2019008322A (en) Accessory device, imaging device, and communication control program
JP6786695B2 (en) Accessory device, imaging device and communication control program
JP7171316B2 (en) Accessories, cameras and communication control programs
JP6768419B2 (en) Accessory device, image pickup device and communication control program
JP2020204745A (en) Adapter device, communication method, and program
JP2021093701A (en) Imaging apparatus, accessory, and method for controlling these
JP2020166202A (en) Adapter device, control method, processing unit, and program
JP2021184053A (en) Lens device, imaging apparatus, and camera system
JP2021182090A (en) Lens device, imaging apparatus, and camera system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200221

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20201016

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20201020

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20201210

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210714

R151 Written notification of patent or utility model registration

Ref document number: 6915113

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151