JP2019091066A - Camera and communication control method of the same - Google Patents

Camera and communication control method of the same Download PDF

Info

Publication number
JP2019091066A
JP2019091066A JP2019015619A JP2019015619A JP2019091066A JP 2019091066 A JP2019091066 A JP 2019091066A JP 2019015619 A JP2019015619 A JP 2019015619A JP 2019015619 A JP2019015619 A JP 2019015619A JP 2019091066 A JP2019091066 A JP 2019091066A
Authority
JP
Japan
Prior art keywords
communication
camera
microcomputer
request
data
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.)
Withdrawn
Application number
JP2019015619A
Other languages
Japanese (ja)
Inventor
岳志 米澤
Takashi Yonezawa
岳志 米澤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Publication of JP2019091066A publication Critical patent/JP2019091066A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Studio Devices (AREA)
  • Camera Bodies And Camera Details Or Accessories (AREA)
  • Structure And Mechanism Of Cameras (AREA)
  • Accessories Of Cameras (AREA)
  • Details Of Cameras Including Film Mechanisms (AREA)

Abstract

To lessen a communication load of a camera conducting one versus multi communication with a plurality of accessory devices.SOLUTION: A camera 200 has a camera control unit 205 that controls communication with a plurality of accessory devices 100 and 300, in which the control is conducted using a signal transmission channel CS to be used in signal transmission between the camera and the plurality of accessory devices, and a data communication channel DATA to be used in data communication between the camera and the plurality of accessory devices. The camera control unit can hold information about a request with respect to the camera as to each of the plurality of accessory devices, and is configured to, in accordance with detection of a signal output for the request from any of the plurality of accessory devices in the signal transmission channel, conduct response communication with the accessory device selected based on the information as to the request in the data communication channel.SELECTED DRAWING: Figure 1

Description

本発明は、相互に通信が可能なカメラと交換レンズやアダプタ等のアクセサリ装置を含むカメラシステムに関する。   The present invention relates to a camera system including a camera capable of mutual communication and an accessory device such as an interchangeable lens or an adapter.

交換レンズが着脱可能なカメラを含むレンズ交換型カメラシステムでは、カメラが交換レンズの動作を制御したり交換レンズがその制御や撮像に必要なデータをカメラに提供したりするための通信が行われる。特に、交換レンズを用いて記録用動画やライブビュー表示用動画を撮像する際にはその撮像周期に合わせた滑らかなレンズ制御が求められるため、カメラの撮像タイミングと交換レンズの制御タイミングとの同期をとる必要がある。したがって、カメラは、交換レンズからのデータの受信と交換レンズへの各種指示や要求等のコマンドの送信とを撮像周期内で完了させる必要がある。ただし、カメラが交換レンズから受信するデータ量が増加したり撮像周期が短縮したり(高フレームレート化したり)することで、より高速で大量のデータの通信が求められる。   In an interchangeable lens camera system including a camera in which the interchangeable lens is removable, communication is performed so that the camera controls the operation of the interchangeable lens and the interchangeable lens provides data necessary for the control and imaging thereof to the camera. . In particular, when imaging a recording moving image or a live view display moving image using an interchangeable lens, smooth lens control in accordance with the imaging cycle is required. Therefore, synchronization between the imaging timing of the camera and the control timing of the interchangeable lens Need to take Therefore, the camera needs to complete reception of data from the interchangeable lens and transmission of commands such as various instructions and requests to the interchangeable lens within the imaging cycle. However, communication of a large amount of data at a higher speed is required by increasing the amount of data received from the interchangeable lens by the camera or shortening the imaging cycle (increased frame rate).

また、カメラと交換レンズとの間にワイドコンバータやテレコンバータ(エクステンダ)等のアダプタが接続される場合があり、これらアダプタも交換レンズと同様にカメラと通信を行う。このため、カメラシステムには、カメラが交換レンズおよびアダプタを含む複数のアクセサリ装置と一対多通信を行うことが可能な通信システムが必要となる。このような一対多通信を実現するための通信方式として、非特許文献1にて開示されたI2C通信方式が存在する。   Further, an adapter such as a wide converter or a teleconverter (extender) may be connected between the camera and the interchangeable lens, and these adapters communicate with the camera in the same manner as the interchangeable lens. For this reason, the camera system requires a communication system in which the camera can perform one-to-many communication with a plurality of accessory devices including an interchangeable lens and an adapter. As a communication method for realizing such one-to-many communication, there is an I2C communication method disclosed in Non-Patent Document 1.

NXP社資料:I2Cバス仕様およびユーザーマニュアルRev5.0J-2-2012年10月9 日[平成29年5月20日インターネット検索URL:http://www.nxp.com/documents/user_manual/UM10204_JA.pdf]NXP company data: I2C bus specification and user manual Rev5.0J-October 9, 2012 [May 20, 2017 Internet search URL: http://www.nxp.com/documents/user_manual/UM10204_EN. pdf]

上記一対多通信を行う通信システムでは、複数のアクセサリ装置のそれぞれがカメラに対して通信開始や低消費電力モードの解除等の要求を通知することができる。しかしながら、このような多対一の状態では、カメラは複数のアクセサリ装置のうちどのアクセサリ装置が要求を通知してきたのかがその要求を受けた段階では判断することができない。このため、全てのアクセサリ装置に対して、該要求をしたかどうかを確認するための通信を行う必要があり、このことがカメラにおける通信負荷を増加させる。   In the communication system that performs the one-to-many communication, each of the plurality of accessory devices can notify the camera of a request to start communication, release the low power consumption mode, or the like. However, in such a many-to-one state, the camera can not determine which accessory device among the plurality of accessory devices has notified the request when the request is received. For this reason, it is necessary to perform communication for confirming whether all the accessory devices have made the request, which increases the communication load on the camera.

本発明は、カメラが複数のアクセサリ装置との一対多通信を行う場合における該カメラの通信負荷を軽減することが可能なカメラ、アクセサリ装置、通信制御方法、通信制御プログラム、およびカメラシステムを提供する。   The present invention provides a camera, an accessory device, a communication control method, a communication control program, and a camera system capable of reducing the communication load of the camera when the camera performs one-to-many communication with a plurality of accessory devices.

本発明の一側面としてのカメラは、複数のアクセサリ装置が接続された状態で使用可能なカメラである。該カメラは、カメラと複数のアクセサリ装置との間で信号の伝達に用いられる信号伝達チャネルと、カメラと複数のアクセサリ装置との間のデータ通信に用いられるデータ通信チャネルとを用いて行う、複数のアクセサリ装置との通信を制御するカメラ制御部を有し、該カメラ制御部は、複数のアクセサリ装置のそれぞれについてのカメラに対する要求に関する情報を保持可能であり、信号伝達チャネルにおいて複数のアクセサリ装置のいずれかから該要求のために出力された信号を検出することに応じて、上記情報に基づいて選択したアクセサリ装置に対して、データ通信チャネルにおいて上記要求に対する応答通信を行うことを特徴とする。   A camera according to one aspect of the present invention is a camera that can be used with a plurality of accessory devices connected. The camera is implemented using a plurality of signal transmission channels used to transmit signals between the camera and the plurality of accessory devices, and a data communication channel used for data communication between the camera and the plurality of accessory devices. A camera control unit for controlling communication with the accessory device, the camera control unit being capable of holding information on a request for the camera for each of the plurality of accessory devices, the plurality of accessory devices in the signal transmission channel In response to detection of a signal output for the request from any of them, a response communication to the request is performed in the data communication channel to the accessory device selected based on the information.

なお、上記カメラに接続されるアクセサリ装置も、本発明の他の一側面を構成する。   The accessory device connected to the camera also constitutes another aspect of the present invention.

また、本発明の他の一側面としての制御方法は、複数のアクセサリ装置が接続された状態で使用可能なカメラであり、該カメラと複数のアクセサリ装置との間で信号の伝達に用いられる信号伝達チャネルと、カメラと複数のアクセサリ装置との間のデータ通信に用いられるデータ通信チャネルとに接続されるカメラに適用される。該制御方法は、複数のアクセサリ装置のそれぞれについてのカメラに対する要求に関する情報を保持させるステップと、信号伝達チャネルにおいて複数のアクセサリ装置のいずれかからカメラに対する要求のために出力された信号を検出させるステップと、該信号の検出に応じて、複数のアクセサリ装置のうち上記情報に基づいて選択したアクセサリ装置に対して、データ通信チャネルにおいて上記要求に対する応答通信を行わせるステップとを有することを特徴とする。   A control method according to another aspect of the present invention is a camera that can be used with a plurality of accessory devices connected, and a signal used to transmit a signal between the camera and the plurality of accessory devices. The invention is applied to a camera connected to a transmission channel and a data communication channel used for data communication between the camera and a plurality of accessory devices. The control method comprises the steps of holding information on the request for the camera for each of the plurality of accessory devices, and detecting the signal output for the request for the camera from any of the plurality of accessory devices in the signaling channel. And causing the accessory device selected based on the information among the plurality of accessory devices to perform response communication to the request in the data communication channel in response to the detection of the signal. .

また、本発明の他の一側面としての通信制御プログラムは、複数のアクセサリ装置が接続された状態で使用可能なカメラであり、該カメラと複数のアクセサリ装置との間で信号の伝達に用いられる信号伝達チャネルと、カメラと複数のアクセサリ装置との間のデータ通信に用いられるデータ通信チャネルとに接続されるカメラのコンピュータに処理を実行させるコンピュータプログラムである。上記処理は、複数のアクセサリ装置のそれぞれについてのカメラに対する要求に関する情報を保持させるステップと、信号伝達チャネルにおいて複数のアクセサリ装置のいずれかからカメラに対する要求のために出力された信号を検出するステップと、信号の検出に応じて、複数のアクセサリ装置のうち上記情報に基づいて選択したアクセサリ装置に対して、データ通信チャネルにおいて上記要求に対する応答通信を行うステップとを有することを特徴とする。   A communication control program according to another aspect of the present invention is a camera that can be used with a plurality of accessory devices connected, and is used to transmit a signal between the camera and the plurality of accessory devices. A computer program that causes a computer of a camera connected to a signaling channel and a data communication channel to be used for data communication between the camera and a plurality of accessory devices. The process includes the steps of: holding information about the request for the camera for each of the plurality of accessory devices; detecting a signal output for the request for the camera from any of the plurality of accessory devices in the signaling channel. And performing, in the data communication channel, response communication to the request to the accessory device selected based on the information among the plurality of accessory devices in response to the detection of the signal.

また、本発明の他の一側面としてのカメラシステムは、複数のアクセサリ装置が接続された状態で使用可能なカメラと、複数のアクセサリ装置のうちのアクセサリ装置とを有する。カメラは、該カメラと複数のアクセサリ装置との間で信号の伝達に用いられる信号伝達チャネルと、カメラと複数のアクセサリ装置との間のデータ通信に用いられるデータ通信チャネルとを用いて行う通信を制御するカメラ制御部を有する。アクセサリ装置は、信号伝達チャネルとデータ通信チャネルとを用いて行う通信を制御するアクセサリ制御部を有する。アクセサリ制御部は、信号伝達チャネルにおいてカメラに対する要求のために信号を出力可能であり、カメラ制御部は、複数のアクセサリ装置のそれぞれについての上記要求に関する情報を保持可能であり、信号伝達チャネルにおいて複数のアクセサリ装置のいずれかから上記要求のために出力された信号を検出することに応じて、上記情報に基づいて選択したアクセサリ装置に対して、データ通信チャネルにおいて上記要求に対する応答通信を行うことを特徴とする。   A camera system according to another aspect of the present invention includes a camera that can be used with a plurality of accessory devices connected, and an accessory device among the plurality of accessory devices. The camera performs communication using a signaling channel used to transmit signals between the camera and a plurality of accessory devices, and a data communication channel used for data communication between the camera and the plurality of accessory devices. It has a camera control unit to control. The accessory device includes an accessory control unit that controls communication performed using the signaling channel and the data communication channel. The accessory control can output a signal for the request to the camera in the signaling channel, and the camera control can hold information on the request for each of the plurality of accessory devices, and the plurality in the signaling channel Performing response communication to the accessory device selected based on the information in the data communication channel in response to the detection of the signal output for the request from any of the accessory devices of It features.

本発明によれば、複数のアクセサリ装置との一対多通信を行うカメラの通信負荷を軽減することができる。   According to the present invention, it is possible to reduce the communication load of a camera performing one-to-many communication with a plurality of accessory devices.

本発明の実施例1におけるカメラシステムの構成を示すブロック図。1 is a block diagram showing a configuration of a camera system in Embodiment 1 of the present invention. 実施例1におけるカメラ(カメラマイコン)と交換レンズ(レンズマイコン)とアダプタ(アダプタマイコン)の通信回路を示す図。FIG. 2 is a diagram showing a communication circuit of a camera (camera microcomputer), an interchangeable lens (lens microcomputer), and an adapter (adapter microcomputer) in the first embodiment. 実施例1における通信フォーマットを示す図。FIG. 2 is a diagram showing a communication format in the first embodiment. 実施例1におけるブロードキャスト通信での通信波形を示す図。FIG. 6 is a diagram showing communication waveforms in broadcast communication in the first embodiment. 実施例1におけるP2P通信での通信波形を示す図。FIG. 6 is a diagram showing communication waveforms in P2P communication in the first embodiment. 実施例1における通信モード切替え時の通信波形を示す図。FIG. 6 is a diagram showing communication waveforms at the time of communication mode switching in the first embodiment. 実施例1におけるブロードキャスト通信でのカメラの処理を示すフローチャート。5 is a flowchart showing processing of a camera in broadcast communication in the first embodiment. 実施例1におけるブロードキャスト通信での交換レンズおよびアダプタの処理を示すフローチャート。6 is a flowchart showing processing of the interchangeable lens and the adapter in broadcast communication in the first embodiment. 実施例1におけるP2P通信でのカメラの処理を示すフローチャート。6 is a flowchart showing processing of a camera in P2P communication in Embodiment 1. 実施例1におけるP2P通信での交換レンズおよびアダプタの処理を示すフローチャート。6 is a flowchart showing processing of the interchangeable lens and the adapter in P2P communication in Embodiment 1. 実施例1において交換レンズとアダプタから開始されるブロードキャスト通信での通信波形を示す図。FIG. 5 is a diagram showing communication waveforms in broadcast communication started from the interchangeable lens and the adapter in Embodiment 1. 実施例1における通信リクエスト機能情報の通信処理を示すフローチャート。6 is a flowchart showing communication processing of communication request function information in the first embodiment. 実施例1における通信リクエスト出力時の処理を示すフローチャート。6 is a flowchart showing processing upon output of a communication request in Embodiment 1. 本発明の実施例2における通信リクエスト許否情報の通信処理を示すフローチャート。The flowchart which shows the communication processing of the communication request permission information in Example 2 of this invention. 実施例2において交換レンズとアダプタをアクティブ状態とスリープ状態とに切り替えるときの通信波形を示す図。FIG. 7 is a diagram showing communication waveforms when the interchangeable lens and the adapter are switched to an active state and a sleep state in Example 2. 実施例2において交換レンズとアダプタをアクティブ状態とスリープ状態とに切り替える処理を示すフローチャート。10 is a flowchart showing processing of switching the interchangeable lens and the adapter between the active state and the sleep state in the second embodiment. 本発明の実施例3おけるスリープ解除リクエスト許否情報の通信処理を示すフローチャート。The flowchart which shows the communication processing of the sleep release request permission information in Example 3 of this invention. 実施例3おけるスリープ解除リクエスト出力時の処理を示すフローチャート。10 is a flowchart showing processing upon output of a sleep release request according to the third embodiment; その他の通信チャネルについて説明する図。The figure explaining other communication channels.

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

図1には、本発明の実施例1であるカメラ200と、それぞれアクセサリ装置である交換レンズ100および中間アダプタ装置(以下、単にアダプタという)300を含むカメラシステムの構成を示す。本実施例のカメラ200は、交換レンズ100とアダプタ300がともに接続された状態で使用可能である。   FIG. 1 shows the configuration of a camera system including a camera 200 which is Embodiment 1 of the present invention, and an interchangeable lens 100 and an intermediate adapter device (hereinafter simply referred to as an adapter) 300 which are accessory devices. The camera 200 of this embodiment can be used with the interchangeable lens 100 and the adapter 300 connected together.

図1には例として1つのアダプタ300がカメラ200と交換レンズ100の間に接続されるカメラシステムを示すが、複数のアダプタを連結してカメラ200と交換レンズ100の間に接続してもよい。   Although FIG. 1 shows a camera system in which one adapter 300 is connected between the camera 200 and the interchangeable lens 100 as an example, a plurality of adapters may be connected and connected between the camera 200 and the interchangeable lens 100 .

本実施例のカメラシステムでは、複数の通信方式を用いて、カメラ200と交換レンズ100およびアダプタ300との間で通信を行う。カメラ200、交換レンズ100およびアダプタ300は、それぞれの通信部を介して制御コマンドやデータ(情報)の伝送を行う。また、各通信部は複数の通信方式をサポートしており、通信するデータの種類や通信目的に応じて、互いに同期して同一の通信方式に切り替えることにより、様々な状況に対して最適な通信方式を選択することができる。   In the camera system of this embodiment, communication is performed between the camera 200 and the interchangeable lens 100 and the adapter 300 using a plurality of communication methods. The camera 200, the interchangeable lens 100, and the adapter 300 transmit control commands and data (information) via the respective communication units. In addition, each communication unit supports a plurality of communication methods, and by switching to the same communication method in synchronization with each other in synchronization with each other according to the type of data to be communicated and the communication purpose, optimal communication for various situations You can choose the method.

まず、交換レンズ100、カメラ200およびアダプタ300のより具体的な構成について説明する。   First, more specific configurations of the interchangeable lens 100, the camera 200, and the adapter 300 will be described.

交換レンズ100とアダプタ300は、結合機構であるマウント400を介して機械的および電気的に接続されている。同様に、アダプタ300とカメラ200は、結合機構であるマウント401を介して機械的および電気的に接続されている。交換レンズ100およびアダプタ300は、マウント400,401に設けられた電源端子部(図示せず)を介してカメラ200から電源を取得する。そして、後述する各種アクチュエータや、レンズマイクロコンピュータ111およびアダプタマイクロコンピュータ302の動作に必要な電源を供給する。交換レンズ100、カメラ200およびアダプタ300は、マウント400,401に設けられた通信端子部(図2に示す)を介して相互に通信を行う。   The interchangeable lens 100 and the adapter 300 are mechanically and electrically connected via a mount 400 which is a coupling mechanism. Similarly, the adapter 300 and the camera 200 are mechanically and electrically connected via a mount 401 which is a coupling mechanism. The interchangeable lens 100 and the adapter 300 acquire power from the camera 200 via power supply terminals (not shown) provided on the mounts 400 and 401. Then, power supplies necessary for the operations of various actuators to be described later and the lens microcomputer 111 and the adapter microcomputer 302 are supplied. The interchangeable lens 100, the camera 200, and the adapter 300 communicate with each other through communication terminal units (shown in FIG. 2) provided on the mounts 400 and 401.

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

変倍レンズ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 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 drawing) by a guide shaft (not shown), and are driven in the optical axis direction by the stepping motors 107 and 108. The stepping motors 107 and 108 move the zoom lens 102 and the focus lens 104 in synchronization with the drive pulse, respectively.

防振レンズ103は、撮像光学系の光軸に直交する方向にシフトすることで、カメラ振れ(手振れ等)に起因する像振れを低減する。   The anti-vibration lens 103 shifts in a direction orthogonal to the optical axis of the imaging optical system to reduce an image blur caused by camera shake (such as camera shake).

レンズマイクロコンピュータ(以下、レンズマイコンという)111は、交換レンズ100内の各部の動作を制御するレンズ制御部(アクセサリ制御部)である。また、レンズマイコン111は、レンズ通信インタフェース回路を含むレンズ通信部(アクセサリ通信部)112を介して、カメラ200から送信された制御コマンドや送信要求コマンドを受信する。レンズマイコン111は、制御コマンドに対応するレンズ制御を行ったり、レンズ通信部112を介して送信要求コマンドに対応するレンズデータをカメラ200に送信したりする。   A lens microcomputer (hereinafter referred to as a lens microcomputer) 111 is a lens control unit (accessory control unit) that controls the operation of each part in the interchangeable lens 100. Also, the lens microcomputer 111 receives a control command and a transmission request command transmitted from the camera 200 via the lens communication unit (accessory communication unit) 112 including the lens communication interface circuit. The lens microcomputer 111 performs lens control corresponding to the control command, and transmits lens data corresponding to the transmission request command to the camera 200 via the lens communication unit 112.

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

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

さらに、レンズマイコン111は、交換レンズ100内に設けられた振動ジャイロ等の振れセンサ(不図示)により検出されたカメラ振れに応じて、防振駆動回路125を介して防振アクチュエータ(ボイスコイルモータ等)126を駆動する。これにより、防振レンズ103のシフト動作(防振動作)を制御する防振処理が行われる。   Further, the lens microcomputer 111 controls the anti-vibration actuator (voice coil motor) through the anti-vibration drive circuit 125 according to camera shake detected by a shake sensor (not shown) such as a vibration gyro provided in the interchangeable lens 100. Etc.) 126. Thereby, the image stabilization processing for controlling the shift operation (anti-vibration operation) of the anti-vibration lens 103 is performed.

また交換レンズ100は、マニュアル操作リング(以下、単に操作リングという)130とリング回転検出器131を有する。リング回転検出器131は、例えば操作リング130の回転に応じて2相の信号を出力するフォトインタラプタにより構成されている。レンズマイコン111は、該2相の信号を用いて、操作リング130の回転操作量を検出することができる。また、レンズマイコン111は操作リング130の回転操作量を、レンズ通信部112を介してカメラマイコン205に通知することができる。   The interchangeable lens 100 also has a manual operation ring (hereinafter simply referred to as operation ring) 130 and a ring rotation detector 131. The ring rotation detector 131 is configured by, for example, a photo interrupter that outputs a two-phase signal according to the rotation of the operation ring 130. The lens microcomputer 111 can detect the amount of rotational operation of the operation ring 130 using the two-phase signal. Also, the lens microcomputer 111 can notify the camera microcomputer 205 of the amount of rotational operation of the operation ring 130 via the lens communication unit 112.

アダプタ300は、例えば焦点距離を変更するためのエクステンダであり、変倍レンズ301と、アダプタマイクロコンピュータ(以下、アダプタマイコンという)302とを有する。アダプタマイコン302は、アダプタ300内の各部の動作を制御するアダプタ制御部(アクセサリ制御部)である。また、アダプタマイコン302は、通信インタフェース回路を含むアダプタ通信部(アクセサリ通信部)303を介して、カメラ200から送信された制御コマンドや送信要求コマンドを受信する。アダプタマイコン302は、制御コマンドに対応するアダプタ制御を行ったり、アダプタ通信部303を介して送信要求コマンドに対応するアダプタデータをカメラ200に送信したりする。   The adapter 300 is, for example, an extender for changing the focal length, and includes a variable power lens 301 and an adapter microcomputer (hereinafter referred to as an adapter microcomputer) 302. The adapter microcomputer 302 is an adapter control unit (accessory control unit) that controls the operation of each unit in the adapter 300. The adapter microcomputer 302 also receives a control command and a transmission request command transmitted from the camera 200 via an adapter communication unit (accessory communication unit) 303 including a communication interface circuit. The adapter microcomputer 302 performs adapter control corresponding to the control command, and transmits adapter data corresponding to the transmission request command to the camera 200 via the adapter communication unit 303.

カメラ200は、CCDセンサやCMOSセンサ等の撮像素子201と、A/D変換回路202と、信号処理回路203と、記録部204と、カメラマイクロコンピュータ(以下、カメラマイコンという)205と、表示部206とを有する。   The camera 200 includes an imaging device 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, a camera microcomputer (hereinafter referred to as a camera microcomputer) 205, and a display unit. And 206.

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

カメラ制御部としてのカメラマイコン205は、不図示の撮像指示スイッチおよび各種設定スイッチ等のカメラ操作部材からの入力に応じてカメラ200の制御を行う。また、カメラマイコン205は、通信インタフェース回路を含むカメラ通信部208を介して、不図示のズームスイッチの操作に応じてズームレンズ102の変倍動作に関する制御コマンドをレンズマイコン111に送信する。さらに、カメラマイコン205は、カメラ通信部208を介して、輝度情報に応じた絞りユニット114の光量調節動作やフォーカス情報に応じたフォーカスレンズ104の焦点調節動作に関する制御コマンドをレンズマイコン111に送信する。またカメラマイコン205は、必要に応じて交換レンズ100の制御情報や状態情報を取得するための送信要求コマンドをレンズマイコン111に送信する。さらにカメラマイコン205は、アダプタ300の制御情報や状態情報を取得するための送信要求コマンドをアダプタマイコン302に送信する。   A camera microcomputer 205 as a camera control unit controls the camera 200 according to inputs from camera operation members such as an imaging instruction switch and various setting switches (not shown). Further, the camera microcomputer 205 transmits a control command related to the zooming operation of the zoom lens 102 to the lens microcomputer 111 according to the operation of the zoom switch (not shown) via the camera communication unit 208 including the communication interface circuit. Furthermore, the camera microcomputer 205 transmits, via the camera communication unit 208, to the lens microcomputer 111 a control command related to the light amount adjustment operation of the diaphragm unit 114 according to the luminance information and the focus adjustment operation of the focus lens 104 according to the focus information. . The camera microcomputer 205 also transmits a transmission request command for acquiring control information and status information of the interchangeable lens 100 to the lens microcomputer 111 as necessary. Further, the camera microcomputer 205 transmits a transmission request command for acquiring control information and status information of the adapter 300 to the adapter microcomputer 302.

次に、カメラ200(カメラマイコン205)と交換レンズ100(レンズマイコン111)とアダプタ300(アダプタマイコン302)の間に構成される通信回路について、図2を用いて説明する。カメラマイコン205、レンズマイコン111およびアダプタマイコン302は、前述したマウント400,401に設けられた通信端子部を介して接続された信号線(チャネル)を用いて通信を行う。   Next, a communication circuit configured between the camera 200 (camera microcomputer 205), the interchangeable lens 100 (lens microcomputer 111), and the adapter 300 (adapter microcomputer 302) will be described with reference to FIG. The camera microcomputer 205, the lens microcomputer 111, and the adapter microcomputer 302 perform communication using signal lines (channels) connected via the communication terminal units provided in the mounts 400 and 401 described above.

信号線としては、通信制御用の信号を伝達するための信号線(第1の信号線:信号伝達チャネルに相当する)CSと、データを通信するための信号線(第2の信号線:データ通信チャネルに相当する)DATAとが設けられている。   As the signal line, a signal line (first signal line: corresponding to a signal transmission channel) CS for transmitting a signal for communication control, and a signal line (second signal line: data for communicating data) And DATA) corresponding to a communication channel.

信号線CSは、カメラマイコン205、アダプタマイコン302およびレンズマイコン111に接続されている。このため、カメラマイコン205、アダプタマイコン302およびレンズマイコン111は、信号線CSの状態としてのHi(High)とLowを検出することができる。また信号線CSは、カメラ200内で不図示の電源にプルアップ接続されている。そして、信号線CSは、交換レンズ100内の接地スイッチ1121、カメラ200内の接地スイッチ2081およびアダプタ300内の接地スイッチ3031を介してグランドGNDと接続(オープンドレイン接続)が可能となっている。   The signal line CS is connected to the camera microcomputer 205, the adapter microcomputer 302 and the lens microcomputer 111. Therefore, the camera microcomputer 205, the adapter microcomputer 302, and the lens microcomputer 111 can detect Hi (High) and Low as the state of the signal line CS. The signal line CS is pull-up connected to a power supply (not shown) in the camera 200. The signal line CS can be connected (open drain connection) to the ground GND via the ground switch 1121 in the interchangeable lens 100, the ground switch 2081 in the camera 200, and the ground switch 3031 in the adapter 300.

この構成により、カメラマイコン205、アダプタマイコン302およびレンズマイコン111はそれぞれ、接地スイッチ2081,1121,3031をオン(接続)することにより信号線CSをLowにすることが可能である。またカメラマイコン205、アダプタマイコン302およびレンズマイコン111はそれぞれ、接地スイッチ2081,1121,3031をオフ(遮断)することで、信号線CSをHiにすることができる。信号線CSを通じて伝達される通信制御用の信号(指示や通知)およびその出力処理の詳細については後述する。   With this configuration, the camera microcomputer 205, the adapter microcomputer 302, and the lens microcomputer 111 can set the signal line CS to Low by turning on (connecting) the ground switches 2081, 1121, and 3031, respectively. The camera microcomputer 205, the adapter microcomputer 302, and the lens microcomputer 111 can set the signal line CS to Hi by turning off (cut off) the ground switches 2081, 1121, and 3031, respectively. Details of communication control signals (instructions and notifications) transmitted through the signal line CS and their output processing will be described later.

信号線DATAは、データの送信方向を切り替えながら使用可能な単線の双方向データ通信線である。信号線DATAは、交換レンズ100内の入出力切替えスイッチ1122を介してレンズマイコン111と接続可能であり、カメラ200内の入出力切替えスイッチ2082を介してカメラマイコン205と接続可能である。また、信号線DATAは、アダプタ300内の入出力切替えスイッチ3032を介してアダプタマイコン302と接続可能である。各マイコンは、データを送信するためのCMOS方式のデータ出力部とデータを受信するためのCMOS方式のデータ入力部とを備えている(いずれも図示せず)。各マイコンは、上記入出力切替えスイッチを切り替えることで、信号線DATAをデータ出力部に接続するかデータ入力部に接続するかを選択することができる。   The signal line DATA is a single-wire bidirectional data communication line that can be used while switching the data transmission direction. The signal line DATA can be connected to the lens microcomputer 111 via the input / output switching switch 1122 in the interchangeable lens 100, and can be connected to the camera microcomputer 205 via the input / output switching switch 2082 in the camera 200. Also, the signal line DATA can be connected to the adapter microcomputer 302 via the input / output changeover switch 3032 in the adapter 300. Each microcomputer has a CMOS data output unit for transmitting data and a CMOS data input unit for receiving data (both not shown). Each microcomputer can select whether to connect the signal line DATA to the data output unit or to the data input unit by switching the input / output switching switch.

カメラマイコン205、アダプタマイコン302およびレンズマイコン111はそれぞれ、データを送信する際には、信号線DATAをデータ出力部に接続するように入出力切替えスイッチを設定する。またカメラマイコン205、アダプタマイコン302およびレンズマイコン111はそれぞれ、データを受信する際には、信号線DATAをデータ入力部と接続するように入出力切替えスイッチを設定する。信号線DATAの入出力切替え処理の詳細については後述する。   When transmitting data, the camera microcomputer 205, the adapter microcomputer 302, and the lens microcomputer 111 each set an input / output switch so as to connect the signal line DATA to the data output unit. Further, when receiving data, the camera microcomputer 205, the adapter microcomputer 302, and the lens microcomputer 111 each set an input / output switch so as to connect the signal line DATA to the data input unit. Details of the input / output switching process of the signal line DATA will be described later.

図2では通信回路の一例を示したが、他の通信回路であってもよい。例えば、信号線CSをカメラ200内でGNDにプルダウン接続し、交換レンズ100の接地スイッチ1121、カメラ200の接地スイッチ2081およびアダプタ300の接地スイッチ3031を介して不図示の電源と接続可能な構成としてもよい。また、交換レンズ100、カメラ200およびアダプタ300において信号線DATAを常にデータ入力部に接続される構成とし、信号線DATAとデータ出力部との接続/遮断をスイッチにより切り替え可能な構成としてもよい。
[通信データフォーマット]
次に、図3を用いて、カメラ200(カメラマイコン205)、交換レンズ100(レンズマイコン111)およびアダプタ300(アダプタマイコン302)の間でやり取りされる通信データのフォーマットについて説明する。この通信データフォーマットは、後述する第1の通信であるブロードキャスト通信と第2の通信であるP2P通信とで共通である。ここでは、マイコン間で予め通信に使用する通信速度を取り決めておき、この取決めに従う通信ビットレートで送受信を行う、いわゆる調歩同期式通信を行う場合の通信データフォーマットについて説明する。
Although FIG. 2 shows an example of the communication circuit, another communication circuit may be used. For example, the signal line CS is pull-down connected to GND in the camera 200, and can be connected to a power supply (not shown) via the ground switch 1121 of the interchangeable lens 100, the ground switch 2081 of the camera 200, and the ground switch 3031 of the adapter 300. It is also good. Further, in the interchangeable lens 100, the camera 200 and the adapter 300, the signal line DATA may be always connected to the data input unit, and connection / disconnection between the signal line DATA and the data output unit may be switchable by a switch.
[Communication data format]
Next, the format of communication data exchanged between the camera 200 (camera microcomputer 205), the interchangeable lens 100 (lens microcomputer 111), and the adapter 300 (adapter microcomputer 302) will be described using FIG. This communication data format is common to broadcast communication which is the first communication described later and P2P communication which is the second communication. Here, a communication data format in the case of performing so-called asynchronous communication in which transmission and reception are performed at a communication bit rate in accordance with the agreement, which is determined in advance between the microcomputers, will be described.

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

図3では通信データフォーマットの例を示したが、他の通信データフォーマットを用いてもよい。例えば、データのビット配列はLSBファーストや9ビット長でもよいし、パリティPA情報を付加しなくてもよい。またブロードキャスト通信とP2P通信とで通信データフォーマットを切り替えてもよい。
[ブロードキャスト通信]
次に、ブロードキャスト通信(第1の通信)について説明する。ブロードキャスト通信は、カメラマイコン205、レンズマイコン111およびアダプタマイコン302のうちの1つが他の2つに対して同時にデータを送信する(すなわち一斉送信)を行う一対多通信である。このブロードキャスト通信は、信号線CSと信号線DATAを用いて行われる。また、ブロードキャスト通信が行われる通信モードをブロードキャスト通信モード(第1の通信モード)ともいう。
Although FIG. 3 shows an example of the communication data format, another communication data format may be used. For example, the bit arrangement of data may be LSB first or 9 bits long, or parity PA information may not be added. The communication data format may be switched between broadcast communication and P2P communication.
Broadcast communication
Next, broadcast communication (first communication) will be described. Broadcast communication is a point-to-multipoint communication in which one of the camera microcomputer 205, the lens microcomputer 111, and the adapter microcomputer 302 simultaneously transmits data to the other two (that is, simultaneous transmission). This broadcast communication is performed using the signal line CS and the signal line DATA. Further, the communication mode in which the broadcast communication is performed is also referred to as a broadcast communication mode (first communication mode).

図4は、カメラマイコン205、レンズマイコン111およびアダプタマイコン302の間で行われるブロードキャスト通信での信号波形を示している。ここでは例として、カメラマイコン205からレンズマイコン111とアダプタマイコン302へのブロードキャスト通信に応答して、アダプタマイコン302がカメラマイコン205とレンズマイコン111にブロードキャスト通信を行う場合について説明する。   FIG. 4 shows signal waveforms in broadcast communication performed between the camera microcomputer 205, the lens microcomputer 111, and the adapter microcomputer 302. Here, as an example, a case where the adapter microcomputer 302 performs broadcast communication with the camera microcomputer 205 and the lens microcomputer 111 in response to the broadcast communication from the camera microcomputer 205 to the lens microcomputer 111 and the adapter microcomputer 302 will be described.

まず通信マスタであるカメラマイコン205は、ブロードキャスト通信を開始することを通信スレーブであるレンズマイコン111およびアダプタマイコン302に通知するために、信号線CSへのLow出力を開始する。次にカメラマイコン205は、送信するデータを信号線DATAに出力する。一方、レンズマイコン111およびアダプタマイコン302は、信号線DATAから入力されたスタートビットSTを検出したタイミングで信号線CSへのLow出力を開始する。この時点ではすでにカメラマイコン205が信号線CSへのLow出力を開始しているので、信号線CSの信号レベルは変化しない。   First, the camera microcomputer 205 serving as the communication master starts Low output to the signal line CS in order to notify the lens microcomputer 111 serving as the communication slave and the adapter microcomputer 302 to start broadcast communication. Next, the camera microcomputer 205 outputs the data to be transmitted to the signal line DATA. On the other hand, the lens microcomputer 111 and the adapter microcomputer 302 start Low output to the signal line CS at the timing when the start bit ST input from the signal line DATA is detected. At this time, since the camera microcomputer 205 has already started Low output to the signal line CS, the signal level of the signal line CS does not change.

その後カメラマイコン205は、ストップビットSPの出力まで終了すると信号線CSへのLow出力を解除する。一方、レンズマイコン111およびアダプタマイコン302は、信号線DATAから入力されたストップビットSPまで受信した後、受信したデータの解析および受信したデータに関連付けられた内部処理を行う。そして、次のデータを受信するための準備が整うと信号線CSへのLow出力を解除する。前述した通り、信号線CSの信号レベルは、カメラマイコン205、レンズマイコン111およびアダプタマイコン302の全てが信号線CSへのLow出力を解除することでHiとなる。したがって、カメラマイコン205、レンズマイコン111およびアダプタマイコン302は、それぞれが信号線CSへのLow出力を解除した後に信号線CSの信号レベルがHiとなることを確認することができる。カメラマイコン205、レンズマイコン111およびアダプタマイコン302はそれぞれ、信号線CSの信号レベルがHiとなったことを確認することで、今回の通信処理を終了し、次の通信を行うための準備が整ったと判断することができる。   Thereafter, the camera microcomputer 205 cancels the Low output to the signal line CS when the output of the stop bit SP is completed. On the other hand, after the lens microcomputer 111 and the adapter microcomputer 302 receive up to the stop bit SP input from the signal line DATA, the lens microcomputer 111 and the adapter microcomputer 302 analyze the received data and perform internal processing associated with the received data. Then, when preparation for receiving the next data is completed, the Low output to the signal line CS is released. As described above, the signal level of the signal line CS becomes Hi when all of the camera microcomputer 205, the lens microcomputer 111, and the adapter microcomputer 302 cancel the Low output to the signal line CS. Therefore, the camera microcomputer 205, the lens microcomputer 111, and the adapter microcomputer 302 can confirm that the signal level of the signal line CS becomes Hi after the low output to the signal line CS is released. The camera microcomputer 205, the lens microcomputer 111, and the adapter microcomputer 302 each confirm that the signal level of the signal line CS has become Hi, to end the current communication processing, and are ready for the next communication. Can be judged.

次にアダプタマイコン302は、信号線CSの信号レベルがHiに戻ったことを確認すると、ブロードキャスト通信を開始することをカメラマイコン205およびレンズマイコン111に通知するために、信号線CSへのLow出力を開始する。   Next, when the adapter microcomputer 302 confirms that the signal level of the signal line CS has returned to Hi, a Low output to the signal line CS is sent to notify the camera microcomputer 205 and the lens microcomputer 111 to start broadcast communication. To start.

続いてアダプタマイコン302は、送信するデータを信号線DATAに出力する。また、カメラマイコン205およびレンズマイコン111は、信号線DATAから入力されたスタートビットSTを検出したタイミングで信号線CSへのLow出力を開始する。この時点ではすでにアダプタマイコン302が信号線CSへのLow出力を開始しているので、信号線CSに伝搬される信号レベルは変化しない。その後アダプタマイコン302は、ストップビットSPの出力まで終了すると信号線CSへのLow出力を解除する。一方、カメラマイコン205およびレンズマイコン111は、信号線DATAから入力されたストップビットSPまで受信した後、受信したデータの解析および受信したデータに関連付けられた内部処理を行う。そして、次のデータを受信するための準備が整った後に信号線CSへのLow出力を解除する。   Subsequently, the adapter microcomputer 302 outputs the data to be transmitted to the signal line DATA. Also, the camera microcomputer 205 and the lens microcomputer 111 start Low output to the signal line CS at the timing when the start bit ST input from the signal line DATA is detected. At this time, since the adapter microcomputer 302 has already started to output Low to the signal line CS, the signal level transmitted to the signal line CS does not change. Thereafter, when the output of the stop bit SP is completed, the adapter microcomputer 302 cancels the Low output to the signal line CS. On the other hand, after receiving up to the stop bit SP input from the signal line DATA, the camera microcomputer 205 and the lens microcomputer 111 perform analysis of the received data and internal processing associated with the received data. Then, after preparation for receiving the next data is completed, the Low output to the signal line CS is released.

以上のように、ブロードキャスト通信において信号線CSで伝達される信号は、ブロードキャスト通信の開始(実行)および実行中を示す信号として機能する。   As described above, the signal transmitted by the signal line CS in the broadcast communication functions as a signal indicating the start (execution) and the execution of the broadcast communication.

図4ではブロードキャスト通信の例を示したが、他のブロードキャスト通信を行ってもよい。例えば、1回のブロードキャスト通信で送信するデータは、図4に示したように1バイトのデータでもよいが、2バイトや3バイトのデータであってもよい。また、ブロードキャスト通信を通信マスタであるカメラマイコン205から通信スレーブであるレンズマイコン111およびアダプタマイコン302への一方向通信としてもよい。
[P2P通信]
次に、カメラ200(カメラマイコン205)、交換レンズ100(レンズマイコン111)およびアダプタ300(アダプタマイコン302)の間で行われるP2P通信について説明する。P2P通信は、通信マスタであるカメラ200が通信スレーブである交換レンズ100とアダプタ300から通信する相手(特定アクセサリ装置)を1つ指定(選択)し、その指定した通信スレーブとの間のみでデータを送受信する一対一通信(個別通信)である。このP2P通信も、信号線CSと信号線DATAを用いて行われる。また、P2P通信が行われる通信モードをP2P通信モード(第2の通信モード)ともいう。
Although FIG. 4 shows an example of broadcast communication, other broadcast communication may be performed. For example, data transmitted in one broadcast communication may be 1-byte data as shown in FIG. 4, but may be 2-byte or 3-byte data. The broadcast communication may be one-way communication from the camera microcomputer 205 as the communication master to the lens microcomputer 111 and the adapter microcomputer 302 as the communication slaves.
[P2P communication]
Next, P2P communication performed between the camera 200 (camera microcomputer 205), the interchangeable lens 100 (lens microcomputer 111), and the adapter 300 (adapter microcomputer 302) will be described. P2P communication designates (selects) one partner (specific accessory device) with which the camera 200, which is a communication master, communicates from the interchangeable lens 100 as a communication slave and the adapter 300, and data is transmitted only to the designated communication slave Communication (individual communication) that transmits and receives This P2P communication is also performed using the signal line CS and the signal line DATA. The communication mode in which P2P communication is performed is also referred to as P2P communication mode (second communication mode).

図5は、例として、カメラマイコン205と通信相手として指定されたレンズマイコン(特定アクセサリ装置)111との間でやり取りされるP2P通信の信号波形を示している。カメラマイコン205からの1バイトのデータ送信に応答して、レンズマイコン111がカメラマイコン205に対して2バイトのデータ送信を行う。通信モード(ブロードキャスト通信モードとP2P通信モード)の切替え処理およびP2P通信での通信相手の指定処理については後述する。   FIG. 5 shows, as an example, signal waveforms of P2P communication exchanged between the camera microcomputer 205 and the lens microcomputer (specified accessory device) 111 designated as the communication partner. In response to the 1-byte data transmission from the camera microcomputer 205, the lens microcomputer 111 transmits 2-byte data to the camera microcomputer 205. The process of switching the communication mode (broadcast communication mode and P2P communication mode) and the process of specifying the communication partner in P2P communication will be described later.

まず通信マスタであるカメラマイコン205は、レンズマイコン111に送信するデータを信号線DATAに出力する。カメラマイコン205は、ストップビットSPの出力まで終了した後、信号線CSへのLow出力(待機要求)を開始する。カメラマイコン205は、次のデータの受信準備が整った後に、信号線CSへのLow出力を解除する。一方、レンズマイコン111は、信号線CSから入力されたLow信号を検出した後、信号線DATAから入力された受信データの解析および受信したデータに関連付けられた内部処理を行う。その後レンズマイコン111は、信号線CSの信号レベルがHiに戻ったことを確認すると、送信すべきデータを2バイト分連続で信号線DATAに出力する。   First, the camera microcomputer 205, which is a communication master, outputs data to be transmitted to the lens microcomputer 111 to the signal line DATA. After ending the output of the stop bit SP, the camera microcomputer 205 starts Low output (waiting request) to the signal line CS. After the camera microcomputer 205 is ready to receive the next data, the camera microcomputer 205 cancels the Low output to the signal line CS. On the other hand, after detecting the Low signal input from the signal line CS, the lens microcomputer 111 analyzes the received data input from the signal line DATA and performs internal processing associated with the received data. Thereafter, when confirming that the signal level of the signal line CS has returned to Hi, the lens microcomputer 111 continuously outputs data to be transmitted for two bytes to the signal line DATA.

レンズマイコン111は、2バイト目のストップビットSPの出力まで終了した後、信号線CSへのLow出力を開始する。その後レンズマイコン111は、次のデータの受信準備が整うと信号線CSへのLow出力を解除する。P2P通信の通信相手として指定されていないアダプタマイコン302は、信号線CSおよび信号線DATAに信号を出力しない。   After the lens microcomputer 111 finishes outputting the stop bit SP of the second byte, it starts Low output to the signal line CS. Thereafter, when the lens microcomputer 111 is ready to receive the next data, the lens microcomputer 111 cancels the Low output to the signal line CS. The adapter microcomputer 302 not designated as the communication partner of the P2P communication does not output a signal to the signal line CS and the signal line DATA.

以上のように、P2P通信において信号線CSで伝達される信号は、データ送信の終了と次のデータ送信の待機要求を示す通知信号として機能する。   As described above, the signal transmitted by the signal line CS in P2P communication functions as a notification signal indicating the end of data transmission and a standby request for the next data transmission.

なお、図5ではP2P通信の例を示したが、他のP2P通信を行ってもよく、例えば信号線DATAにてデータを1バイトずつ送信してもよいし、3バイト以上のデータを送信してもよい。
[通信モードの切替え処理および通信相手の指定処理]
次に、通信モードの切替え処理とP2P通信での通信相手の指定処理について、図6を用いて説明する。図6は、カメラマイコン205、レンズマイコン111およびアダプタマイコン302の間でやり取りされる通信モード切替えおよび通信相手指定時の信号波形を示している。P2P通信の通信相手の指定は、ブロードキャスト通信により行われる。ここでは例として、カメラマイコン205からP2P通信の通信相手としてアダプタマイコン302が指定され、カメラマイコン205からの1バイトデータのP2P通信とアダプタマイコン302からの1バイトデータのP2P通信が実行される場合を説明する。また、その後にカメラマイコン205からP2P通信の通信相手としてレンズマイコン111が指定され、カメラマイコン205からの2バイトデータのP2P通信とレンズマイコン111からの3バイトデータのP2P通信が実行される。
Although FIG. 5 shows an example of P2P communication, other P2P communication may be performed. For example, one byte of data may be transmitted on signal line DATA, or three or more bytes of data may be transmitted. May be
[Communication mode switching process and communication partner specification process]
Next, the process of switching the communication mode and the process of specifying the communication partner in P2P communication will be described with reference to FIG. FIG. 6 shows signal waveforms at the time of communication mode switching and communication partner designation exchanged between the camera microcomputer 205, the lens microcomputer 111, and the adapter microcomputer 302. The designation of the communication partner of P2P communication is performed by broadcast communication. Here, as an example, when the adapter microcomputer 302 is designated from the camera microcomputer 205 as the communication partner of P2P communication, and P2P communication of 1 byte data from the camera microcomputer 205 and P2P communication of 1 byte data from the adapter microcomputer 302 are executed. Explain. After that, the lens microcomputer 111 is designated from the camera microcomputer 205 as a communication partner of P2P communication, and P2P communication of 2-byte data from the camera microcomputer 205 and P2P communication of 3-byte data from the lens microcomputer 111 are executed.

まず通信マスタであるカメラマイコン205は、図4で説明した手順でブロードキャスト通信を実行する。このブロードキャスト通信で通知するのは、次のP2P通信でカメラマイコン205と通信を行う相手を指定するスレーブ指定データである。このときの通信スレーブであるレンズマイコン111およびアダプタマイコン302は、ブロードキャスト通信で受信したスレーブ指定データに基づいて、自身がP2P通信の通信相手として指定されたか否かを判定する。この判定結果によって、カメラマイコン205と指定された通信スレーブ(特定アクセサリ装置)との通信モードがブロードキャスト通信モードからP2P通信モードに切り替わる。ここでは通信相手としてアダプタマイコン302が指定されているため、次のP2P通信では図5で説明した手順に従ってカメラマイコン205とアダプタマイコン302との間でデータの送受信が行われる。ここではカメラマイコン205からアダプタマイコン302に1バイトデータを送信し、その後アダプタマイコン302からカメラマイコン205へ1バイトデータを送信する。   First, the camera microcomputer 205, which is a communication master, executes broadcast communication in the procedure described with reference to FIG. What is notified by this broadcast communication is slave designation data which designates a partner to communicate with the camera microcomputer 205 in the next P2P communication. The lens microcomputer 111 and the adapter microcomputer 302, which are communication slaves at this time, determine whether or not they are specified as communication partners of P2P communication based on the slave specification data received by the broadcast communication. Based on the determination result, the communication mode between the camera microcomputer 205 and the designated communication slave (specific accessory device) is switched from the broadcast communication mode to the P2P communication mode. Here, since the adapter microcomputer 302 is designated as the communication partner, in the next P2P communication, data transmission / reception is performed between the camera microcomputer 205 and the adapter microcomputer 302 according to the procedure described in FIG. Here, 1 byte data is transmitted from the camera microcomputer 205 to the adapter microcomputer 302, and then 1 byte data is transmitted from the adapter microcomputer 302 to the camera microcomputer 205.

カメラマイコン205とアダプタマイコン302とのP2P通信が終了すると、カメラマイコン205は再びブロードキャスト通信によってP2P通信で通信する通信相手を指定することができる。ここでは次のP2P通信の通信相手としてレンズマイコン111を指定するために、スレーブ指定データとしてレンズマイコン111を設定して図4で説明した手順でブロードキャスト通信を実行する。このブロードキャスト通信に応じてアダプタマイコン302はP2P通信を終了し、これと同時にカメラマイコン205とレンズマイコン111の通信モードがP2P通信モードに切り替えられる。なお、ここでブロードキャスト通信を実行しない場合は、カメラマイコン205とアダプタマイコン302とのP2P通信が継続される。   When the P2P communication between the camera microcomputer 205 and the adapter microcomputer 302 ends, the camera microcomputer 205 can specify again the communication partner to be communicated by P2P communication by broadcast communication. Here, in order to designate the lens microcomputer 111 as a communication partner of the next P2P communication, the lens microcomputer 111 is set as slave designation data, and broadcast communication is executed according to the procedure described in FIG. In response to the broadcast communication, the adapter microcomputer 302 ends the P2P communication, and at the same time, the communication mode of the camera microcomputer 205 and the lens microcomputer 111 is switched to the P2P communication mode. If broadcast communication is not performed here, P2P communication between the camera microcomputer 205 and the adapter microcomputer 302 is continued.

次のP2P通信では、図5で説明した手順に従ってカメラマイコン205とレンズマイコン111との間でデータの送受信が行われる。ここではカメラマイコン205がレンズマイコン111に2バイトデータを送信し、その後レンズマイコン111がカメラマイコン205に3バイトデータを送信する。   In the next P2P communication, data transmission / reception is performed between the camera microcomputer 205 and the lens microcomputer 111 according to the procedure described with reference to FIG. Here, the camera microcomputer 205 transmits 2-byte data to the lens microcomputer 111, and then the lens microcomputer 111 transmits 3-byte data to the camera microcomputer 205.

以上のように、ブロードキャスト通信によってP2P通信の通信相手を指定することが可能であり、同時にブロードキャスト通信とP2P通信の切替えを行うことができる。
[通信制御処理]
次に、カメラマイコン205、レンズマイコン111およびアダプタマイコン302の間で行われる通信制御処理について説明する。まず、図7Aおよび図7Bのフローチャートを用いて、ブロードキャスト通信モードでの処理について説明する。図7Aはカメラマイコン205が行う処理を示し、図7Bはレンズマイコン111およびアダプタマイコン302が行う処理を示している。それぞれコンピュータであるカメラマイコン205、レンズマイコン111およびアダプタマイコン302は、コンピュータプログラムとしての通信制御プログラムに従って本処理および後述する他の処理を実行する。
As described above, it is possible to specify a communication counterpart of P2P communication by broadcast communication, and simultaneously switch between broadcast communication and P2P communication.
[Communication control process]
Next, communication control processing performed among the camera microcomputer 205, the lens microcomputer 111, and the adapter microcomputer 302 will be described. First, processing in the broadcast communication mode will be described using the flowcharts of FIGS. 7A and 7B. 7A shows processing performed by the camera microcomputer 205, and FIG. 7B shows processing performed by the lens microcomputer 111 and the adapter microcomputer 302. A camera microcomputer 205, a lens microcomputer 111, and an adapter microcomputer 302, which are computers, execute this processing and other processing described later according to a communication control program as a computer program.

ステップS100においてブロードキャスト通信を開始するイベントが発生すると、カメラマイコン205は、ステップS101において接地スイッチ2081をオン(接続)して信号線CSをLowにする。これにより、レンズマイコン111およびアダプタマイコン302に対してブロードキャスト通信の開始を通知する。ステップS200において信号線CSのLowを検出したレンズマイコン111およびアダプタマイコン302は、ステップS201において信号線DATAからのデータ受信を許可する。   When an event to start broadcast communication occurs in step S100, the camera microcomputer 205 turns on (connects) the ground switch 2081 in step S101 to set the signal line CS to low. As a result, the start of the broadcast communication is notified to the lens microcomputer 111 and the adapter microcomputer 302. The lens microcomputer 111 and the adapter microcomputer 302 that have detected Low of the signal line CS in step S200 permit data reception from the signal line DATA in step S201.

次にカメラマイコン205は、ステップS102において入出力切替えスイッチ2082を動作させて信号線DATAをデータ出力部に接続し、ステップS103でデータ送信を行う。レンズマイコン111およびアダプタマイコン302は、ステップS202で信号線DATAのスタートビットを検出すると、ステップS205にて通信処理中であることを示すために接地スイッチ1121および接地スイッチ3031をオン(接続)する。これにより、信号線CSへのLow出力を開始する。その後、レンズマイコン111およびアダプタマイコン302、ステップS206において全データを受信したと判定すると、ステップS207において信号線DATAからのデータ受信を禁止する。さらにステップS208において、通信処理が終了したことを示すために接地スイッチ1121および接地スイッチ3031をオフ(遮断)して信号線CSへのLow出力を解除する。なお、ここで送受信するデータのバイト数に制限は無く、カメラマイコン205、レンズマイコン111およびアダプタマイコン302間で認識が一致していればよい。   Next, the camera microcomputer 205 operates the input / output selector switch 2082 in step S102 to connect the signal line DATA to the data output unit, and performs data transmission in step S103. When the lens microcomputer 111 and the adapter microcomputer 302 detect the start bit of the signal line DATA in step S202, the ground switch 1121 and the ground switch 3031 are turned on (connected) in order to indicate that communication processing is in progress in step S205. Thereby, the Low output to the signal line CS is started. Thereafter, when it is determined in step S206 that all data has been received in the lens microcomputer 111 and the adapter microcomputer 302, data reception from the signal line DATA is prohibited in step S207. Further, in step S208, the ground switch 1121 and the ground switch 3031 are turned off (blocked) to indicate that the communication processing has ended, and the Low output to the signal line CS is released. The number of bytes of data to be transmitted and received is not limited, as long as the camera microcomputer 205, the lens microcomputer 111, and the adapter microcomputer 302 recognize the data.

続いてカメラマイコン205は、ステップS104において、ステップS103で送信したデータがレンズマイコン111またはアダプタマイコン302からの送信も含む双方向コマンドであるか否かを判定する。双方向コマンドでない場合には、カメラマイコン205はステップS105にて接地スイッチ2081をオフ(遮断)して信号線CSへのLow出力を解除し、ステップS116に進む。双方向コマンドである場合には、カメラマイコン205はステップS106にて入出力切替えスイッチ2082を動作させて信号線DATAをデータ入力部に接続する。そして、ステップS107において接地スイッチ2081をオフ(遮断)して信号線CSへのLow出力を解除し、ステップS108にて信号線CSがHiになるまで待機する。   Subsequently, in step S104, the camera microcomputer 205 determines whether the data transmitted in step S103 is a bidirectional command including transmission from the lens microcomputer 111 or the adapter microcomputer 302. If the command is not a bidirectional command, the camera microcomputer 205 turns off (cuts off) the ground switch 2081 in step S105 to cancel the Low output to the signal line CS, and the process proceeds to step S116. If the command is a bidirectional command, the camera microcomputer 205 operates the input / output selector switch 2082 in step S106 to connect the signal line DATA to the data input unit. Then, in step S107, the ground switch 2081 is turned off (cut off) to release the Low output to the signal line CS, and in step S108, the process waits until the signal line CS becomes Hi.

一方、レンズマイコン111およびアダプタマイコン302は、ステップS209において、ステップS206で受信したデータが自身からの送信も含む双方向コマンドであるか否かを判定する。レンズマイコン111およびアダプタマイコン302は、双方向コマンドでなかった場合にはステップS215に進み、双方向コマンドであった場合にはステップS210にて信号線CSがHiになるまで待機する。そして、信号線CSがHiになると、レンズマイコン111およびアダプタマイコン302は、ステップS211において接地スイッチ1121,3031をオン(接続)して信号線CSをLowにすることで、ブロードキャスト通信の開始を通知する。カメラマイコン205は、ステップS109において信号線CSのLowを検出すると、ステップS110において信号線DATAからのデータ受信を許可する。   On the other hand, in step S209, the lens microcomputer 111 and the adapter microcomputer 302 determine whether the data received in step S206 is a bidirectional command including transmission from itself. If the lens microcomputer 111 and the adapter microcomputer 302 do not use the bidirectional command, the process proceeds to step S215. If the lens microcomputer 111 and the adapter microcomputer 302 do not use the bidirectional command, the lens microcomputer 111 and the adapter microcomputer 302 wait until the signal line CS becomes Hi in step S210. Then, when the signal line CS becomes Hi, the lens microcomputer 111 and the adapter microcomputer 302 turn on (connect) the ground switches 1121 and 3031 in step S211 to set the signal line CS to Low, thereby notifying the start of broadcast communication. Do. When the camera microcomputer 205 detects Low of the signal line CS in step S109, the camera microcomputer 205 permits data reception from the signal line DATA in step S110.

続いてレンズマイコン111およびアダプタマイコン302は、ステップS212において入出力切替えスイッチ1122,3032を動作させて信号線DATAをデータ出力部に接続し、ステップS213でデータ送信を行う。カメラマイコン205は、ステップS111において信号線DATAのスタートビットを検出すると、ステップS112において通信処理中であることを示すために接地スイッチ2081をオン(接続)する。これにより、信号線CSへのLow出力を開始する。レンズマイコン111およびアダプタマイコン302は、全データの送信が終了した後に、ステップS214において接地スイッチ1121,3031をオフ(遮断)することで、信号線CSへのLow出力を解除する。カメラマイコン205は、ステップS113で全データを受信したと判定すると、ステップS114で信号線DATAからのデータ受信を禁止する。そして、カメラマイコン205は、ステップS115において通信処理が終了したことを示すために接地スイッチ2081をオフ(遮断)して信号線CSへのLow出力を解除する。なお、ここで送受信するデータのバイト数に制限は無く、カメラマイコン205、レンズマイコン111およびアダプタマイコン302間で認識が一致していればよい。   Subsequently, the lens microcomputer 111 and the adapter microcomputer 302 operate the input / output selector switches 1122 and 3032 in step S212 to connect the signal line DATA to the data output unit, and perform data transmission in step S213. When the camera microcomputer 205 detects the start bit of the signal line DATA in step S111, it turns on (connects) the ground switch 2081 in order to indicate that communication processing is in progress in step S112. Thereby, the Low output to the signal line CS is started. The lens microcomputer 111 and the adapter microcomputer 302 cancel the Low output to the signal line CS by turning off (cut off) the ground switches 1121 and 3031 in step S214 after the transmission of all the data is completed. If it is determined in step S113 that all data has been received, the camera microcomputer 205 prohibits data reception from the signal line DATA in step S114. Then, the camera microcomputer 205 turns off (cuts off) the ground switch 2081 in order to indicate that the communication processing is completed in step S115, and cancels the Low output to the signal line CS. The number of bytes of data to be transmitted and received is not limited, as long as the camera microcomputer 205, the lens microcomputer 111, and the adapter microcomputer 302 recognize the data.

続いてカメラマイコン205は、ステップS116において信号線CSがHiになるまで待機する。信号線CSがHiになると、カメラマイコン205はステップS117において、ステップS103で送信したデータによりレンズマイコン111またはアダプタマイコン302をP2P通信の通信相手として指定したか否かを判定する。カメラマイコン205は、レンズマイコン111およびアダプタマイコン302を通信相手として指定していない場合はそのまま処理を終了し、いずれかを指定した場合にはステップS118でP2P通信モードに移行する。   Subsequently, at step S116, the camera microcomputer 205 stands by until the signal line CS becomes Hi. When the signal line CS becomes Hi, the camera microcomputer 205 determines in step S117 whether or not the lens microcomputer 111 or the adapter microcomputer 302 is designated as a communication partner of P2P communication based on the data transmitted in step S103. When the camera microcomputer 205 does not designate the lens microcomputer 111 and the adapter microcomputer 302 as the communication counterpart, the process is ended as it is, and when one is designated, the camera microcomputer 205 shifts to the P2P communication mode in step S118.

一方、レンズマイコン111およびアダプタマイコン302は、ステップS215で信号線CSがHiになるまで待機する。信号線CSがHiになると、レンズマイコン111およびアダプタマイコン302はステップS216において、ステップS206で受信したデータによりカメラマイコン205からP2P通信の通信相手として指定されたか否かを判定する。レンズマイコン111およびアダプタマイコン302は、通信相手として指定されていない場合には、そのまま処理を終了する。通信相手として指定されていた場合には、レンズマイコン111およびアダプタマイコン302のうち指定されたマイコンは、ステップS217において信号線DATAからのデータ受信を許可し、ステップS218においてP2P通信モードに移行する。   On the other hand, the lens microcomputer 111 and the adapter microcomputer 302 stand by until the signal line CS becomes Hi in step S215. When the signal line CS becomes Hi, the lens microcomputer 111 and the adapter microcomputer 302 determine in step S216 whether or not the data received in step S206 is designated by the camera microcomputer 205 as a communication partner of P2P communication. If the lens microcomputer 111 and the adapter microcomputer 302 have not been designated as the communication partner, the processing ends. When it is designated as the communication partner, the designated microcomputer among the lens microcomputer 111 and the adapter microcomputer 302 permits data reception from the signal line DATA in step S217, and shifts to the P2P communication mode in step S218.

なお、レンズマイコン111およびアダプタマイコン302は、ステップS202においてスタートビットを検出していない場合は、ステップS203において信号線CSがHiになったか否かを確認する。信号線CSがHiになった(戻った)場合には、レンズマイコン111およびアダプタマイコン302は、ステップS204において信号線DATAからのデータ受信を禁止して処理を終了する。これは、P2P通信の通信相手として指定されていない通信スレーブが、カメラマイコン205と他の通信スレーブとの間のP2P通信による信号線CSへのLow出力に対応するための処理である。   If the lens microcomputer 111 and the adapter microcomputer 302 do not detect the start bit in step S202, the lens microcomputer 111 and the adapter microcomputer 302 confirm in step S203 whether or not the signal line CS has become Hi. When the signal line CS becomes Hi (returns), the lens microcomputer 111 and the adapter microcomputer 302 prohibit data reception from the signal line DATA in step S204 and end the processing. This is processing for a communication slave not designated as a communication counterpart of P2P communication to cope with Low output to the signal line CS by P2P communication between the camera microcomputer 205 and another communication slave.

次に、図8Aおよび図8Bのフローチャートを用いて、P2P通信モードでの処理について説明する。図8Aはカメラマイコン205が行う処理を示し、図8Bはレンズマイコン111およびアダプタマイコン302のうちP2P通信の通信相手として指定されたマイコン(以下、特定マイコンという)が行う処理を示している。   Next, processing in the P2P communication mode will be described using the flowcharts of FIGS. 8A and 8B. FIG. 8A shows processing performed by the camera microcomputer 205, and FIG. 8B shows processing performed by a microcomputer designated as a communication partner of P2P communication among the lens microcomputer 111 and the adapter microcomputer 302 (hereinafter referred to as a specific microcomputer).

ステップS300においてP2P通信を開始するイベントが発生すると、カメラマイコン205は、ステップS301において入出力切替えスイッチ2082を動作させて信号線DATAをデータ出力部に接続し、ステップS302でデータ送信を行う。その後、全てのデータ送信が終了すると、カメラマイコン205は、ステップS303において接地スイッチ2081をオン(接続)して信号線CSへのLow出力を開始する。一方、特定マイコンは、ステップS400において信号線CSのLowを検出するとカメラマイコン205からのデータ送信が終了したと判定し、ステップS401において信号線DATAから受信したデータの解析を行う。   When an event to start P2P communication occurs in step S300, the camera microcomputer 205 operates the input / output switch 2082 in step S301 to connect the signal line DATA to the data output unit, and performs data transmission in step S302. After that, when all data transmission is completed, the camera microcomputer 205 turns on (connects) the ground switch 2081 in step S303 to start Low output to the signal line CS. On the other hand, when the specific microcomputer detects Low of the signal line CS in step S400, it determines that data transmission from the camera microcomputer 205 is completed, and analyzes data received from the signal line DATA in step S401.

続いてカメラマイコン205は、ステップS304において、ステップS302で送信したデータが特定マイコンからの送信も含む双方向コマンドであるか否かを判定する。カメラマイコン205は、双方向コマンドでない場合には、ステップS305で接地スイッチ2081をオフ(遮断)して信号線CSへのLow出力を解除する。そして、ステップS306で信号線CSがHiになるまで待機してからステップS311に進む。双方向コマンドである場合には、カメラマイコン205は、ステップS307で入出力切替えスイッチ2082を動作させて信号線DATAをデータ入力部に接続する。そして、ステップS308で接地スイッチ2081をオフ(遮断)することで信号線CSへのLow出力を解除する。   Subsequently, in step S304, the camera microcomputer 205 determines whether the data transmitted in step S302 is a bidirectional command including transmission from the specific microcomputer. If the camera microcomputer 205 does not use the bidirectional command, the ground switch 2081 is turned off (blocked) in step S305 to release the low output to the signal line CS. Then, after waiting until the signal line CS becomes Hi in step S306, the process proceeds to step S311. If the command is a bidirectional command, the camera microcomputer 205 operates the input / output selector switch 2082 in step S307 to connect the signal line DATA to the data input unit. Then, the ground switch 2081 is turned off (cut off) in step S308 to release the Low output to the signal line CS.

一方、特定マイコンは、ステップS402で信号線CSがHiになるまで待機した後、ステップS403において、ステップS401で受信したデータが自身からの送信も含む双方向コマンドであるか否かを判定する。双方向コマンドでない場合には、特定マイコンは、ステップS404およびステップS405において接地スイッチ(1121または3031)をオン(接続)およびオフ(遮断)する。これにより、信号線CSへのLow出力の開始および解除を行い、ステップS411に進む。双方向コマンドである場合には、特定マイコンは、ステップS406において、入出力切替えスイッチ(1122または3032)を動作させて信号線DATAをデータ出力部に接続し、ステップS407においてデータ送信を行う。その後、全てのデータ送信が終了すると、特定マイコンは、ステップS408において接地スイッチ(1121または3031)をオン(接続)することで信号線CSへのLow出力を開始する。   On the other hand, after waiting for the signal line CS to be Hi in step S402, the specific microcomputer determines in step S403 whether the data received in step S401 is a bidirectional command including transmission from itself. If the command is not a bi-directional command, the specific microcomputer turns on (connects) and off (cuts off) the ground switch (1121 or 3031) in steps S404 and S405. Thus, the low output to the signal line CS is started and released, and the process proceeds to step S411. If the command is a bidirectional command, the specific microcomputer operates the input / output selector switch (1122 or 3032) in step S406 to connect the signal line DATA to the data output unit, and performs data transmission in step S407. After that, when all data transmission is completed, the specific microcomputer turns on (connects) the ground switch (1121 or 3031) in step S408 to start the Low output to the signal line CS.

続いてカメラマイコン205は、ステップS609において信号線CSのLowを検出すると、ステップS310において特定マイコンからのデータ送信が終了したと判定して、信号線DATAから受信したデータの解析を行う。一方、特定マイコンは、ステップS409において入出力切替えスイッチ(1122または3032)を動作させて信号線DATAをデータ入力部に接続する。その後、特定マイコンは、ステップS410において接地スイッチ(1121または3031)をオフ(遮断)して信号線CSへのLow出力を解除する。   Subsequently, when the camera microcomputer 205 detects Low of the signal line CS in step S609, it determines that the data transmission from the specific microcomputer is completed in step S310, and analyzes the data received from the signal line DATA. On the other hand, the specific microcomputer operates the input / output selector switch (1122 or 3032) in step S409 to connect the signal line DATA to the data input unit. Thereafter, the specific microcomputer turns off (cuts off) the ground switch (1121 or 3031) in step S410 to release the Low output to the signal line CS.

次にカメラマイコン205は、ステップS311において信号線CSがHiになるまで待機する。その後、ステップS312でブロードキャスト通信を開始するイベントが発生すると、カメラマイコン205はステップS313でブロードキャスト通信モードに移行する。一方、特定マイコンは、ステップS411において信号線CSがHiになるまで待機して処理を終了する。   Next, the camera microcomputer 205 stands by until the signal line CS becomes Hi in step S311. Thereafter, when an event to start broadcast communication occurs in step S312, the camera microcomputer 205 shifts to the broadcast communication mode in step S313. On the other hand, the specific microcomputer waits until the signal line CS becomes Hi in step S411, and ends the process.

このように、本実施例では、ブロードキャスト通信とP2P通信とで、信号線CSで伝達する信号の意味(機能)を適切に切り替える。これによりカメラマイコン205、レンズマイコン111およびアダプタマイコン302間の通信を、少ない信号線数(チャネル数)で実現することができる。   As described above, in this embodiment, the meaning (function) of the signal transmitted through the signal line CS is appropriately switched between the broadcast communication and the P2P communication. As a result, communication among the camera microcomputer 205, the lens microcomputer 111 and the adapter microcomputer 302 can be realized with a small number of signal lines (number of channels).

次に、カメラマイコン205、レンズマイコン111およびアダプタマイコン302の間で行われるブロードキャスト通信が、通信スレーブであるレンズマイコン111およびアダプタマイコン302から開始される場合の通信処理について説明する。ブロードキャスト通信を開始させる通信スレーブは、カメラマイコン205に対して通信リクエスト(通信要求)を通知する。   Next, communication processing when broadcast communication performed between the camera microcomputer 205, the lens microcomputer 111, and the adapter microcomputer 302 is started from the lens microcomputer 111 and the adapter microcomputer 302 as communication slaves will be described. A communication slave that starts broadcast communication notifies the camera microcomputer 205 of a communication request (communication request).

図9は、上記ブロードキャスト通信における信号波形を示している。図9では、例として、レンズマイコン111が通信リクエストをカメラマイコン205に通知してカメラマイコン205がブロードキャスト通信を開始させる場合を示している。カメラマイコン205からレンズマイコン111およびアダプタマイコン302へのブロードキャスト通信に応答する形で、アダプタマイコン302からカメラマイコン205およびレンズマイコン111へのブロードキャスト通信が行われる。   FIG. 9 shows signal waveforms in the broadcast communication. FIG. 9 shows, as an example, a case where the lens microcomputer 111 notifies a communication request to the camera microcomputer 205 and the camera microcomputer 205 starts broadcast communication. Broadcast communication from the adapter microcomputer 302 to the camera microcomputer 205 and the lens microcomputer 111 is performed in response to broadcast communication from the camera microcomputer 205 to the lens microcomputer 111 and the adapter microcomputer 302.

まず、レンズマイコン111は、ブロードキャスト通信を開始させるための通信リクエストをカメラマイコン205およびアダプタマイコン302に通知するために、信号線CSへのLow出力を開始する。次にカメラマイコン205は、信号線CSの信号レベルがLowになったことを検出すると、信号線CSへのLow出力を開始する。この時点ではすでにレンズマイコン111が信号線CSへのLow出力を開始しているので、信号線CSの信号レベルは変化しない。   First, the lens microcomputer 111 starts Low output to the signal line CS in order to notify the camera microcomputer 205 and the adapter microcomputer 302 of a communication request for starting broadcast communication. Next, when the camera microcomputer 205 detects that the signal level of the signal line CS has become Low, it starts Low output to the signal line CS. At this time, since the lens microcomputer 111 has already started Low output to the signal line CS, the signal level of the signal line CS does not change.

次に、カメラマイコン205は、送信するデータを信号線DATAに出力する。一方、アダプタマイコン302は、信号線DATAから入力されたスタートビットSTを検出したタイミングで信号線CSへのLow出力を開始する。この時点ではすでにカメラマイコン205が信号線CSへのLow出力を開始しているので、信号線CSの信号レベルは変化しない。   Next, the camera microcomputer 205 outputs the data to be transmitted to the signal line DATA. On the other hand, the adapter microcomputer 302 starts Low output to the signal line CS at the timing when the start bit ST input from the signal line DATA is detected. At this time, since the camera microcomputer 205 has already started Low output to the signal line CS, the signal level of the signal line CS does not change.

次にカメラマイコン205は、ストップビットSPの出力まで終了した後、信号線CSへのLow出力を解除する。一方、レンズマイコン111とアダプタマイコン302は、信号線DATAから入力されたストップビットSPまで受信した後、受信したデータの解析および受信したデータに関連付けられた内部処理を行う。そして、次のデータを受信するための準備が整った後に信号線CSへのLow出力を解除する。前述したように、信号線CSの信号レベルは、カメラマイコン205、レンズマイコン111およびアダプタマイコン302の全てが信号線CSへのLow出力を解除することでHiとなる。したがって、カメラマイコン205、レンズマイコン111およびアダプタマイコン302は、それぞれが信号線CSへのLow出力を解除した後に信号線CSの信号レベルがHiになったことを確認する。これにより、各マイコンにおける今回の通信に関する処理が終了して、次の通信を行うための準備が整ったと判定することができる。   Next, after ending the output of the stop bit SP, the camera microcomputer 205 cancels the Low output to the signal line CS. On the other hand, after the lens microcomputer 111 and the adapter microcomputer 302 receive up to the stop bit SP input from the signal line DATA, the lens microcomputer 111 and the adapter microcomputer 302 analyze the received data and perform internal processing associated with the received data. Then, after preparation for receiving the next data is completed, the Low output to the signal line CS is released. As described above, the signal level of the signal line CS becomes Hi when all of the camera microcomputer 205, the lens microcomputer 111 and the adapter microcomputer 302 cancel the Low output to the signal line CS. Therefore, the camera microcomputer 205, the lens microcomputer 111, and the adapter microcomputer 302 each confirm that the signal level of the signal line CS becomes Hi after the low output to the signal line CS is released. As a result, it is possible to determine that the processing related to the current communication in each microcomputer is completed and the preparation for performing the next communication is completed.

次にアダプタマイコン302は、信号線CSの信号レベルがHiに戻ったことを確認すると、ブロードキャスト通信を開始させるための通信リクエストをカメラマイコン205およびレンズマイコン111に通知するために、信号線CSへのLow出力を開始する。次にアダプタマイコン302は、送信するデータを信号線DATAに出力する。一方、カメラマイコン205とレンズマイコン111は、信号線DATAから入力されたスタートビットSTを検出したタイミングで信号線CSへのLow出力を開始する。この時点ではすでにアダプタマイコン302が信号線CSへのLow出力を開始しているので、信号線CSの信号レベルは変化しない。   Next, when the adapter microcomputer 302 confirms that the signal level of the signal line CS has returned to Hi, the adapter microcomputer 302 sends the communication request to the camera microcomputer 205 and the lens microcomputer 111 to start the broadcast communication. Start low output of. Next, the adapter microcomputer 302 outputs the data to be transmitted to the signal line DATA. On the other hand, the camera microcomputer 205 and the lens microcomputer 111 start Low output to the signal line CS at the timing when the start bit ST input from the signal line DATA is detected. At this time, since the adapter microcomputer 302 has already started to output Low to the signal line CS, the signal level of the signal line CS does not change.

続いてアダプタマイコン302は、ストップビットSPの出力まで終了した後、信号線CSへのLow出力を解除する。一方、カメラマイコン205とレンズマイコン111は、信号線DATAから入力されたストップビットSPまで受信した後、受信したデータの解析および受信したデータに関連付けられた内部処理を行う。そして、次のデータを受信するための準備が整った後に信号線CSへのLow出力を解除する。   Subsequently, after the adapter microcomputer 302 finishes outputting the stop bit SP, it cancels the Low output to the signal line CS. On the other hand, after receiving up to the stop bit SP input from the signal line DATA, the camera microcomputer 205 and the lens microcomputer 111 perform analysis of the received data and internal processing associated with the received data. Then, after preparation for receiving the next data is completed, the Low output to the signal line CS is released.

このように通信スレーブであるレンズおよびアダプタマイコン111,302がブロードキャスト通信の通信リクエストを出力するのは、カメラ、レンズおよびアダプタマイコン205,111,302の全てがブロードキャスト通信モードであるときのみである。   As described above, the lens and adapter microcomputers 111 and 302 as communication slaves output a communication request for broadcast communication only when all of the camera, lens and adapter microcomputers 205, 111 and 302 are in the broadcast communication mode.

また、通信スレーブであるレンズおよびアダプタマイコン111,302がブロードキャスト通信の通信リクエストを出力した場合は、通信マスタであるカメラマイコン205はどちらの通信スレーブが信号線CSにLowを出力したのかをこの時点では判別できない。したがって、カメラマイコン205は、レンズマイコン111とアダプタマイコン302の両方に対してブロードキャスト通信の通信リクエストに関する応答通信(例えば、通信リクエストの要因を要求する通信)を行う必要がある。   In addition, when the lens as the communication slave and the adapter microcomputers 111 and 302 output the communication request of the broadcast communication, the camera microcomputer 205 as the communication master outputs which communication slave outputs the low to the signal line CS at this time Can not distinguish. Therefore, the camera microcomputer 205 needs to perform response communication (for example, communication for requesting a factor of the communication request) for both the lens microcomputer 111 and the adapter microcomputer 302 regarding the communication request of the broadcast communication.

また、カメラマイコン205がブロードキャスト通信を開始するために信号線CSにLowを出力したタイミングで、レンズマイコン111またはアダプタマイコン302が通信リクエストのために信号線CSにLowを出力する場合がある。この場合、カメラマイコン205はレンズマイコン111またはアダプタマイコン302が信号線CSにLowを出力したことを検出することができない。このため、カメラマイコン205からレンズおよびアダプタマイコン111,302に、それらからブロードキャスト通信を開始するための通信リクエストを出力することを許可する許可通知を通知してもよい。   In addition, at the timing when the camera microcomputer 205 outputs Low to the signal line CS in order to start broadcast communication, the lens microcomputer 111 or the adapter microcomputer 302 may output Low to the signal line CS for a communication request. In this case, the camera microcomputer 205 can not detect that the lens microcomputer 111 or the adapter microcomputer 302 has output Low to the signal line CS. Therefore, the camera microcomputer 205 may notify the lens and adapter microcomputers 111 and 302 of a permission notification that permits them to output a communication request for starting broadcast communication.

このように本実施例では、通信マスタであるカメラマイコン205から通信スレーブであるレンズマイコン111およびアダプタマイコン302にデータを一斉送信するブロードキャスト通信を、通信スレーブから開始することができる。これにより、カメラマイコン205が常にレンズマイコン111とアダプタマイコン302に通信をし続ける必要がなくなり、無駄な通信を少なくして通信量を削減することができる。   As described above, in this embodiment, broadcast communication in which data is simultaneously transmitted from the camera microcomputer 205 as the communication master to the lens microcomputer 111 as the communication slave and the adapter microcomputer 302 can be started from the communication slave. As a result, the camera microcomputer 205 does not have to continuously communicate with the lens microcomputer 111 and the adapter microcomputer 302, and unnecessary communication can be reduced to reduce the amount of communication.

次に、図10のフローチャートを用いて、本実施例における要求(リクエスト)に関する情報としての通信リクエスト機能を有するか否かの情報(以下、通信リクエスト機能情報という)の通信処理について説明する。ここでは、例として、アダプタマイコン302は通信リクエスト機能を有さず、レンズマイコン111は通信リクエスト機能を有する場合について説明する。   Next, communication processing of information (hereinafter referred to as communication request function information) as to whether or not it has a communication request function as information regarding a request in the present embodiment will be described using the flowchart of FIG. Here, as an example, the case where the adapter microcomputer 302 does not have a communication request function and the lens microcomputer 111 has a communication request function will be described.

ステップS500Cにおいて、カメラマイコン205は、ブロードキャスト通信を用いてアダプタマイコン302を指定する(アダプタマイコン302にスレーブ指定データを送信する)。これに応じてアダプタマイコン302は、ステップS500Aにおいて自身がカメラマイコン205により指定された通信スレーブ(特定アクセサリ装置:以下、指定スレーブという)であることを受信する。またレンズマイコン111は、ステップS500Lにおいて指定スレーブではないことを受信する。   In step S500C, the camera microcomputer 205 designates the adapter microcomputer 302 using broadcast communication (transmits slave designation data to the adapter microcomputer 302). In response to this, the adapter microcomputer 302 receives that it is a communication slave (specified accessory device: hereinafter referred to as a designated slave) designated by the camera microcomputer 205 in step S500A. In addition, the lens microcomputer 111 receives that it is not a designated slave in step S500L.

カメラマイコン205は、次のステップS501Cにおいて、P2P通信を用いてアダプタマイコン302に対して通信リクエスト機能情報の送信を要求する。これに応じて指定スレーブであるアダプタマイコン302は、ステップS501Aにおいて通信リクエスト機能情報の送信要求を受信する。一方、指定スレーブではないレンズマイコン111は、P2P通信の受信を行わない。   In the next step S501C, the camera microcomputer 205 requests the adapter microcomputer 302 to transmit communication request function information using P2P communication. In response to this, the adapter microcomputer 302 which is the designated slave receives the transmission request of the communication request function information in step S501A. On the other hand, the lens microcomputer 111 that is not a designated slave does not receive P2P communication.

アダプタマイコン302は、次のステップS502Aにおいて、P2P通信を用いてカメラマイコン205に対して通信リクエスト機能が無いことを示す通信リクエスト機能情報を送信する。これに対して、カメラマイコン205は、ステップS502Cにおいてアダプタマイコン302からの通信リクエスト機能無しを示す通信リクエスト機能情報を受信してこれを内部メモリに保持する。   In the next step S502A, the adapter microcomputer 302 transmits communication request function information indicating that there is no communication request function to the camera microcomputer 205 using P2P communication. On the other hand, the camera microcomputer 205 receives communication request function information indicating no communication request function from the adapter microcomputer 302 in step S502C, and holds the information in the internal memory.

カメラマイコン205は、次のステップS503Cにおいてブロードキャスト通信を用いてレンズマイコン111を指定スレーブとして指定する。これに応じてレンズマイコン111は、ステップS503Lにおいて自身が指定スレーブであることを受信する。一方、アダプタマイコン302は、ステップS503Aにおいて自身が指定スレーブでないことを受信して処理を終了する。また、カメラマイコン205は、ステップS504Cにおいて、P2P通信を用いてレンズマイコン111に通信リクエスト機能情報の送信を要求する。これに応じて指定スレーブであるレンズマイコン111は、ステップS504において通信リクエスト機能情報の送信要求を受信する。一方、指定スレーブではないアダプタマイコン302は、P2P通信の受信を行わない。   The camera microcomputer 205 designates the lens microcomputer 111 as a designated slave using broadcast communication in the next step S503C. In response to this, the lens microcomputer 111 receives that it is a designated slave in step S503L. On the other hand, the adapter microcomputer 302 receives the fact that it is not a designated slave in step S503A, and ends the processing. Also, in step S504C, the camera microcomputer 205 requests the lens microcomputer 111 to transmit communication request function information using P2P communication. In response to this, the lens microcomputer 111, which is the designated slave, receives the transmission request of the communication request function information in step S504. On the other hand, the adapter microcomputer 302 which is not the designated slave does not receive P2P communication.

レンズマイコン111は、ステップS505Lにおいて、P2P通信を用いてカメラマイコン205に通信リクエスト機能が有ることを示す通信リクエスト機能情報を送信して処理を終了する。カメラマイコン205は、ステップS505Cにおいてレンズマイコン111からの通信リクエスト機能有りを示す通信リクエスト機能情報を受信してこれを内部メモリに保持し、処理を終了する。   In step S505L, the lens microcomputer 111 transmits communication request function information indicating that the communication request function exists to the camera microcomputer 205 using P2P communication, and ends the processing. The camera microcomputer 205 receives the communication request function information indicating the presence of the communication request function from the lens microcomputer 111 in step S505C, holds the information in the internal memory, and ends the processing.

こうしてカメラマイコン205は、ブロードキャスト通信とP2P通信を用いて、アダプタマイコン302およびレンズマイコン111から通信リクエスト機能情報を取得することができる。   Thus, the camera microcomputer 205 can acquire communication request function information from the adapter microcomputer 302 and the lens microcomputer 111 using broadcast communication and P2P communication.

次に、図11を用いて、通信スレーブから通信リクエストが出力された際の処理について説明する。カメラマイコン205は、ステップS600Cにおいてブロードキャスト通信を用いてレンズマイコン111を指定スレーブとして指定する。これに応じてレンズマイコン111は、ステップS600Lにおいて自身が指定スレーブであることを受信する。一方、アダプタマイコン302は、ステップS600Aにおいて、自身が指定スレーブではないことを受信して処理を終了する。   Next, processing when a communication request is output from a communication slave will be described using FIG. The camera microcomputer 205 designates the lens microcomputer 111 as a designated slave using broadcast communication in step S600C. In response to this, the lens microcomputer 111 receives that it is a designated slave in step S600L. On the other hand, the adapter microcomputer 302 receives the fact that it is not the designated slave in step S600A, and ends the processing.

次にカメラマイコン205は、ステップS601Cにおいて、P2P通信を用いて指定スレーブであるレンズマイコン111に対して通信リクエストを出力した要因(以下、通信リクエスト要因という)を示す情報の送信を要求する。これに応じてレンズマイコン111は、ステップS601Lにおいて通信リクエスト要因(情報)の送信要求を受信する。指定スレーブではないアダプタマイコン302は、P2P通信の受信を行わない。   Next, in step S601C, the camera microcomputer 205 requests transmission of information indicating a factor (hereinafter, referred to as a communication request factor) that has output a communication request to the lens microcomputer 111 as a designated slave using P2P communication. In response to this, the lens microcomputer 111 receives the transmission request of the communication request factor (information) in step S601L. The adapter microcomputer 302 which is not the designated slave does not receive P2P communication.

次にレンズマイコン111は、ステップS602Lにおいて、P2P通信を用いてカメラマイコン205に対して通信リクエスト要因として操作リング130の回転操作位置(操作リング値)に変化が有ったこと(操作リング変化有り)を送信する。これに応じてカメラマイコン205は、ステップS602Cにおいて操作リング変化有りを受信する。   Next, in step S602L, the lens microcomputer 111 changes the rotational operation position (operation ring value) of the operation ring 130 as a communication request factor to the camera microcomputer 205 using P2P communication (operation ring change) Send). In response to this, the camera microcomputer 205 receives the operation ring change presence at step S602C.

カメラマイコン205は、ステップS603CにおいてP2P通信を用いて、レンズマイコン111に対して通信リクエスト要因(操作リング変化有り)に関する情報である操作リング値の送信を要求する。これに応じて指定スレーブであるレンズマイコン111は、ステップS603Lにおいて、操作リング値の送信要求を受信する。一方、指定スレーブではないアダプタマイコン302は、P2P通信の受信を行わない。   In step S603C, the camera microcomputer 205 requests the lens microcomputer 111 to transmit an operation ring value, which is information related to a communication request factor (operation ring change), using P2P communication. In response to this, the lens microcomputer 111, which is a designated slave, receives the transmission request of the operation ring value in step S603L. On the other hand, the adapter microcomputer 302 which is not the designated slave does not receive P2P communication.

続いてレンズマイコン111は、ステップS604Lにおいて、P2P通信を用いてカメラマイコン205に対して操作リング値を送信し、処理を終了する。これに応じてカメラマイコン205は、ステップS604Cにおいて操作リング値を受信して処理を終了する。   Subsequently, in step S604L, the lens microcomputer 111 transmits an operation ring value to the camera microcomputer 205 using P2P communication, and ends the processing. In response to this, the camera microcomputer 205 receives the operation ring value in step S604C and ends the process.

カメラマイコン205は、先に説明した通信リクエスト機能情報から、レンズマイコン111が通信リクエスト機能を有し、アダプタマイコン302が通信リクエスト機能を有していないことを内部メモリに保持している。このため、通信リクエストを受けたカメラマイコン205は、通信リクエスト機能を有するとして選択したレンズマイコン111には通信リクエスト要因の送信要求(要求に対する応答通信)を行う。しかし、アダプタマイコン302には通信リクエスト要因の送信要求を行う必要がなく、該送信要求を行わない。またアダプタマイコン302も通信リクエスト要因(操作リング変化有り)をカメラマイコン205に送信しない。これにより、無駄な通信を少なくして通信量を削減することができる。   From the communication request function information described above, the camera microcomputer 205 holds in the internal memory that the lens microcomputer 111 has a communication request function and the adapter microcomputer 302 does not have a communication request function. For this reason, the camera microcomputer 205 having received the communication request makes a transmission request (response communication to the request) of the communication request factor to the lens microcomputer 111 selected as having the communication request function. However, the adapter microcomputer 302 does not have to make a transmission request for the communication request factor, and does not make the transmission request. The adapter microcomputer 302 also does not transmit the communication request factor (operation ring change) to the camera microcomputer 205. As a result, unnecessary communication can be reduced and the amount of communication can be reduced.

また、要求(リクエスト)に関する情報として、上述した通信リクエスト機能情報だけではなく、通信リクエスト要因(情報)も含めてもよい。具体的には、図10のステップS505Lにおいて、レンズマイコン111は、通信リクエスト機能有りを示す通信リクエスト機能情報に加えて通信リクエストを行う要因が操作リング130の操作であることをカメラマイコン205に予め通知しておく。これにより、カメラマイコン205は、通信リクエストが出力された際に、図11のステップS601C,S602Cに示した通信リクエスト要因を取得する通信を行わなくてよい。これにより、さらに通信量を削減することができる。   Further, not only the communication request function information described above but also communication request factors (information) may be included as the information related to the request (request). Specifically, in step S505L of FIG. 10, the lens microcomputer 111 instructs the camera microcomputer 205 in advance that the factor for performing the communication request in addition to the communication request function information indicating that the communication request function is present is the operation of the operation ring 130. I will notify you. Thus, when the communication request is output, the camera microcomputer 205 does not have to perform communication for acquiring the communication request factor shown in steps S601C and S602C of FIG. This can further reduce the amount of communication.

次に、本発明の実施例2について説明する。本実施例における要求に関する情報は、通信マスタであるカメラマイコン205による通信スレーブであるレンズマイコン111およびアダプタマイコン302に対する通信リクエストの出力の許可と禁止を示す通信リクエスト許否情報である。   Next, a second embodiment of the present invention will be described. The information on the request in the present embodiment is communication request permission / disapproval information indicating permission / prohibition of output of a communication request to the lens microcomputer 111 and the adapter microcomputer 302 as communication slaves by the camera microcomputer 205 as the communication master.

図12のフローチャートは、本実施例における通信リクエスト許否情報の通信処理を示している。ここでは、例として、アダプタマイコン302に対して通信リクエストの出力を禁止し、レンズマイコン111に対して通信リクエストの出力を許可する場合について説明する。   The flowchart of FIG. 12 shows the communication processing of the communication request permission information in the present embodiment. Here, as an example, the case where the output of the communication request to the adapter microcomputer 302 is prohibited and the output of the communication request to the lens microcomputer 111 is permitted will be described.

カメラマイコン205は、ステップS700Cにおいて、ブロードキャスト通信を用いてアダプタマイコン302を指定する。これに応じてアダプタマイコン302は、ステップS700Aにおいて自身が指定スレーブであることを受信する。また、レンズマイコン111は、ステップS700Lにおいて自身が指定スレーブでないことを受信する。   In step S700C, the camera microcomputer 205 designates the adapter microcomputer 302 using broadcast communication. In response to this, the adapter microcomputer 302 receives that it is a designated slave in step S700A. Also, the lens microcomputer 111 receives that it is not a designated slave in step S700L.

次にカメラマイコン205は、ステップS701Cにおいて、P2P通信を用いてアダプタマイコン302に対して、通信リクエスト許否情報として通信リクエストの出力の禁止を示す通信リクエスト禁止を送信する。このとき、カメラマイコン205は、アダプタマイコン302に対する通信リクエスト禁止を内部メモリに保持する。指定スレーブであるアダプタマイコン302は、ステップS701Aにおいて通信リクエスト禁止を受信する。一方、指定スレーブではないレンズマイコン111は、P2P通信の受信を行わない。   Next, in step S701C, the camera microcomputer 205 transmits a communication request prohibition indicating the prohibition of the output of the communication request as communication request permission information, using P2P communication, to the adapter microcomputer 302. At this time, the camera microcomputer 205 holds the communication request prohibition for the adapter microcomputer 302 in the internal memory. The adapter microcomputer 302, which is a designated slave, receives the communication request prohibition in step S701A. On the other hand, the lens microcomputer 111 that is not a designated slave does not receive P2P communication.

次にアダプタマイコン302は、ステップS702Aにおいて、P2P通信を用いてカメラマイコン205に通信リクエストの禁止の設定が完了したことを送信する。これに応じてカメラマイコン205は、ステップS702Cにおいてアダプタマイコン302における通信リクエストの禁止の設定が完了したことを受信する。   Next, in step S702A, the adapter microcomputer 302 transmits to the camera microcomputer 205 that the setting for prohibiting the communication request is completed, using P2P communication. In response to this, the camera microcomputer 205 receives the completion of the setting for prohibiting the communication request in the adapter microcomputer 302 in step S702C.

次にカメラマイコン205は、ステップS703Cにおいて、ブロードキャスト通信を用いてレンズマイコン111を指定する。これに応じてレンズマイコン111は、ステップS703Lにおいて自身が指定スレーブであることを受信する。一方、アダプタマイコン302は、ステップS703Aにおいて自身が指定スレーブでないことを受信して処理を終了する。   Next, in step S703C, the camera microcomputer 205 designates the lens microcomputer 111 using broadcast communication. In response to this, the lens microcomputer 111 receives that it is a designated slave in step S703L. On the other hand, the adapter microcomputer 302 receives the fact that it is not the designated slave in step S703A, and ends the processing.

次にカメラマイコン205は、ステップS704Cにおいて、P2P通信を用いてレンズマイコン111に対して通信リクエスト許否情報として通信リクエストの出力の許可を示す通信リクエスト許可を送信する。このとき、カメラマイコン205は、このレンズマイコン111に対する通信リクエスト許可を内部メモリに保持する。指定スレーブであるレンズマイコン111は、ステップS704Lにおいて通信リクエスト許可を受信する。一方、指定スレーブではないアダプタマイコン302は、P2P通信の受信を行わない。   Next, in step S704C, the camera microcomputer 205 transmits communication request permission indicating permission of output of the communication request as communication request permission information to the lens microcomputer 111 using P2P communication. At this time, the camera microcomputer 205 holds the communication request permission for the lens microcomputer 111 in the internal memory. The lens microcomputer 111, which is the designated slave, receives the communication request permission in step S704L. On the other hand, the adapter microcomputer 302 which is not the designated slave does not receive P2P communication.

次にレンズマイコン111は、ステップS705Lにおいて、P2P通信を用いてカメラマイコン205に通信リクエストの許可の設定が完了したことを送信して処理を終了する。これに応じてカメラマイコン205は、ステップS705Cにおいてレンズマイコン111における通信リクエストの許可の設定が完了したことを受信して処理を終了する。
こうしてカメラマイコン205は、ブロードキャスト通信およびP2P通信を用いて、アダプタマイコン302およびレンズマイコン111に対して通信リクエストの出力の禁止と許可を設定することができる。
Next, in step S705L, the lens microcomputer 111 transmits, to the camera microcomputer 205, the setting of the permission of the communication request using P2P communication, and ends the processing. In response to this, the camera microcomputer 205 receives the completion of the setting of the communication request permission in the lens microcomputer 111 in step S705C, and ends the processing.
Thus, the camera microcomputer 205 can set the prohibition and permission of the output of the communication request to the adapter microcomputer 302 and the lens microcomputer 111 using the broadcast communication and the P2P communication.

なお、通信スレーブからカメラマイコン205に対して通信リクエストが出力された際の処理については、実施例1で図11を用いて説明した処理と同様である。   The process when the communication request is output from the communication slave to the camera microcomputer 205 is the same as the process described with reference to FIG. 11 in the first embodiment.

本実施例では、カメラマイコン205は、アダプタマイコン302の通信リクエストの出力を禁止し、レンズマイコン111の通信リクエストの出力を許可したことを内部メモリに保持している。このため、通信リクエストを受けたカメラマイコン205は、通信リクエストの出力を許可したとして選択したレンズマイコン111には通信リクエスト要因の送信要求(要求に関する)を行う。しかし、アダプタマイコン302に対しては通信リクエスト要因の送信要求を行う必要がなく、該送信要求を行わない。この結果、無駄な通信を少なくして通信量を削減することができる。   In the present embodiment, the camera microcomputer 205 prohibits the output of the communication request of the adapter microcomputer 302, and holds in the internal memory that the output of the communication request of the lens microcomputer 111 is permitted. For this reason, the camera microcomputer 205 having received the communication request makes a transmission request (related to the request) of the communication request factor to the lens microcomputer 111 selected as permitting the output of the communication request. However, it is not necessary to request the adapter microcomputer 302 to transmit a communication request factor, and the transmission request is not performed. As a result, it is possible to reduce unnecessary communication and reduce the amount of communication.

また、通信マスタであるカメラマイコン205は、ブロードキャスト通信を用いて全ての通信スレーブに対して通信リクエストの許可および禁止を設定してもよい。例えば、カメラ200が撮影画像を再生する再生モードに移行した場合には、全ての通信スレーブに対して通信リクエストの出力を禁止することができる。これにより、全ての通信スレーブからの通信リクエストが出力されることがなくなるため、さらに通信の無駄をなくして通信量を削減することができる。   Also, the camera microcomputer 205, which is the communication master, may set permission and prohibition of communication requests for all communication slaves using broadcast communication. For example, when the camera 200 shifts to the reproduction mode for reproducing a photographed image, it is possible to prohibit the output of the communication request to all the communication slaves. As a result, since communication requests from all communication slaves are not output, it is possible to further reduce the amount of communication without wasting communication.

また、カメラマイコン205は、各通信スレーブから実施例1で説明した通信リクエスト機能の有無や通信リクエストの要因の情報を受信したうえで、必要な通信スレーブに対して通信リクエストの出力の許可および禁止を送信するようにしてもよい。   In addition, the camera microcomputer 205 receives the information on the presence or absence of the communication request function described in the first embodiment and the cause of the communication request from each communication slave, and permits or prohibits the output of the communication request to the necessary communication slaves. May be sent.

また、カメラマイコン205が操作リング130の操作に応じた機能の割り当てを変更することができる場合には、該機能の割り当て状況に応じて通信リクエストの出力の許可および禁止を切り替えてもよい。具体的には、操作リング130の操作に応じた機能の割り当てが無い場合には、操作リング値を知る必要が無いので、レンズマイコン111の通信リクエストの出力を禁止にすることで、無駄な通信を少なくして通信量を削減することができる。   Further, when the camera microcomputer 205 can change the assignment of the function according to the operation of the operation ring 130, the permission and prohibition of the output of the communication request may be switched according to the assignment situation of the function. Specifically, when there is no function assignment according to the operation of the operation ring 130, there is no need to know the operation ring value, and therefore, by prohibiting the output of the communication request of the lens microcomputer 111, unnecessary communication is performed. Communication amount can be reduced.

さらに、通信リクエストの出力の許可と禁止を通信リクエストの要因ごとに設定できるようにすることで、さらに通信量の削減を行うことができる。例えば、交換レンズ100が操作リング130と不図示の操作可能なスイッチとを有する場合について説明する。カメラマイコン205は、レンズマイコン111に対して、操作リング130の操作が要因(特定要因)であるときの通信リクエストの出力は許可し、スイッチの操作が要因であるときの通信リクエストの出力を禁止する。また、操作リング130や不図示のスイッチに対する機能の割り当てを変更することができる場合には、該機能の割り当てに応じて通信リクエストの出力の許可と禁止を設定する。これにより、より無駄な通信を少なくして通信量を削減することができる。   Furthermore, by enabling the permission and prohibition of the output of the communication request to be set for each factor of the communication request, it is possible to further reduce the amount of communication. For example, the case where the interchangeable lens 100 has the operation ring 130 and an unshown operable switch will be described. The camera microcomputer 205 permits the lens microcomputer 111 to output the communication request when the operation of the operation ring 130 is a factor (specific factor) and prohibits the output of the communication request when the switch operation is the factor Do. Further, when assignment of functions to the operation ring 130 or a switch (not shown) can be changed, permission and prohibition of output of a communication request are set according to the assignment of the functions. As a result, it is possible to reduce the amount of communication by reducing unnecessary communication.

次に、本発明の実施例3について説明する。本実施例における要求に関する情報は、通信マスタであるカメラマイコン205による通信スレーブであるレンズマイコン111およびアダプタマイコン302に対するスリープ解除リクエストの出力の許可と禁止を示すスリープ解除リクエスト許否情報である。   Next, a third embodiment of the present invention will be described. The information on the request in the present embodiment is sleep release request permission / prohibition information indicating permission / prohibition of output of a sleep release request to the lens microcomputer 111 and the adapter microcomputer 302 as communication slaves by the camera microcomputer 205 as the communication master.

まず、本実施例で行うスリープ処理について説明する。スリープ処理は、レンズマイコン111およびアダプタマイコン302の動作状態をアクティブ状態(通常消費電力状態)とスリープ状態(低消費電力状態)との間で切り替える処理である。レンズマイコン111およびアダプタマイコン302は、カメラマイコン205と定常的に通信を行いつつ、ユーザ操作に応じて遅滞なく動作するアクティブ状態と、アクティブ状態よりも消費電力が少なく、データ通信を行わないスリープ状態とに切り替えが可能である。カメラマイコン205は、アクティブ状態においてユーザ操作が所定時間なかった場合等にレンズおよびアダプタマイコン111,302をスリープ状態に切り替える。これにより、省電力が可能となる。また、スリープ状態においてユーザ操作が発生すると、レンズおよびアダプタマイコン111,302をアクティブ状態に切り替える。   First, sleep processing performed in the present embodiment will be described. The sleep processing is processing for switching the operating states of the lens microcomputer 111 and the adapter microcomputer 302 between an active state (normal power consumption state) and a sleep state (low power consumption state). The lens microcomputer 111 and the adapter microcomputer 302 regularly communicate with the camera microcomputer 205, and also operate in a delay-free operation according to a user operation, and sleep state in which power consumption is lower than in the active state and data communication is not performed. And switching is possible. The camera microcomputer 205 switches the lens and adapter microcomputers 111 and 302 to the sleep state when there is no user operation for a predetermined time in the active state. This makes it possible to save power. Further, when a user operation occurs in the sleep state, the lens and adapter microcomputers 111 and 302 are switched to the active state.

図13(A)は、レンズマイコン111およびアダプタマイコン302をアクティブ状態からスリープ状態へ切り替えるときにカメラマイコン205、レンズマイコン111およびアダプタマイコン302の間で行われる通信の信号波形を示している。   FIG. 13A shows signal waveforms of communication performed between the camera microcomputer 205, the lens microcomputer 111, and the adapter microcomputer 302 when the lens microcomputer 111 and the adapter microcomputer 302 are switched from the active state to the sleep state.

まずレンズマイコン111およびアダプタマイコン302をアクティブ状態からスリープ状態に移行させるときの通信について説明する。カメラマイコン205がレンズマイコン111およびアダプタマイコン302をアクティブ状態からスリープ状態へ移行させるときの通信は、ブロードキャスト通信で行われる。通信マスタであるカメラマイコン205は、図4で説明した手順でブロードキャスト通信を実行する。このブロードキャスト通信でレンズマイコン111およびアダプタマイコン302に送信するのは、これらをアクティブ状態からスリープ状態に移行させるスリープ指示データである。通信スレーブであるレンズマイコン111およびアダプタマイコン302は、ブロードキャスト通信でスリープ指示データを受信することに応じてスリープ状態への移行処理を実行し、該移行処理が完了すると信号線CSへのLow出力を解除する。   First, communication when shifting the lens microcomputer 111 and the adapter microcomputer 302 from the active state to the sleep state will be described. Communication when the camera microcomputer 205 causes the lens microcomputer 111 and the adapter microcomputer 302 to shift from the active state to the sleep state is performed by broadcast communication. The camera microcomputer 205, which is a communication master, executes broadcast communication in the procedure described with reference to FIG. What is transmitted to the lens microcomputer 111 and the adapter microcomputer 302 in this broadcast communication is sleep instruction data for causing them to shift from the active state to the sleep state. The lens microcomputer 111 and the adapter microcomputer 302, which are communication slaves, execute transition processing to the sleep state in response to receiving sleep instruction data by broadcast communication, and when the transition processing is completed, the Low output to the signal line CS is output. To release.

次にレンズマイコン111およびアダプタマイコン302をスリープ状態からアクティブ状態に移行させるときの通信について説明する。カメラマイコン205がレンズマイコン111およびアダプタマイコン302をスリープ状態からアクティブ状態に移行させる処理は、ブロードキャスト通信で行われる。通信マスタであるカメラマイコン205は、図4で説明した手順でブロードキャスト通信を実行する。このブロードキャスト通信でレンズマイコン111およびアダプタマイコン302に送信されるのは、レンズマイコン111およびアダプタマイコン302をスリープ状態からアクティブ状態に移行させる指示(要求)を示すアクティブ指示データである。通信スレーブであるレンズマイコン111およびアダプタマイコン302は、ブロードキャスト通信でアクティブ指示データを受信することに応じて、アクティブ状態への移行処理を実行し、該移行処理が完了すると、信号線CSへのLow出力を解除する。レンズマイコン111およびアダプタマイコン302のスリープ状態からアクティブ状態への移行は、アクティブ指示データの受信時でもよいし、信号線DATAを通じたスタートビット受信時でもよい。   Next, communication when shifting the lens microcomputer 111 and the adapter microcomputer 302 from the sleep state to the active state will be described. The process for causing the camera microcomputer 205 to shift the lens microcomputer 111 and the adapter microcomputer 302 from the sleep state to the active state is performed by broadcast communication. The camera microcomputer 205, which is a communication master, executes broadcast communication in the procedure described with reference to FIG. What is transmitted to the lens microcomputer 111 and the adapter microcomputer 302 by this broadcast communication is active instruction data indicating an instruction (request) to shift the lens microcomputer 111 and the adapter microcomputer 302 from the sleep state to the active state. The lens microcomputer 111 and the adapter microcomputer 302, which are communication slaves, execute transition processing to the active state in response to reception of the active instruction data by broadcast communication, and when the transition processing is completed, Low to the signal line CS. Cancel the output. The transition from the sleep state to the active state of the lens microcomputer 111 and the adapter microcomputer 302 may be at the time of reception of the active instruction data or at the time of reception of the start bit through the signal line DATA.

図13(A)はカメラマイコン205から開始されるブロードキャスト通信によってレンズマイコン111およびアダプタマイコン302がスリープ状態からアクティブ状態に移行する例を示した。これに対してスリープ状態にあるレンズマイコン111およびアダプタマイコン302がカメラマイコン205に対してアクティブ状態への移行を指示するアクティブ指示データの出力を要求してもよい。このカメラマイコン205へのアクティブ指示データの出力の要求を、以下、スリープ解除リクエストという。   FIG. 13A shows an example in which the lens microcomputer 111 and the adapter microcomputer 302 shift from the sleep state to the active state by broadcast communication started from the camera microcomputer 205. On the other hand, the lens microcomputer 111 and the adapter microcomputer 302 in the sleep state may request the camera microcomputer 205 to output active instruction data instructing the shift to the active state. The request for output of the active instruction data to the camera microcomputer 205 is hereinafter referred to as a wakeup request.

図13(B)は、レンズマイコン111がスリープ解除リクエストを出力する例を示している。例えば、スリープ状態においてユーザ操作によってアクティブ状態への移行イベントが発生したとき、レンズマイコン111は信号線CSにLow出力を行うことでカメラマイコン205に対してスリープ解除リクエストを出力する。その後、カメラマイコン205は、図9で説明した手順でブロードキャスト通信を実行し、レンズマイコン111およびアダプタマイコンに対してアクティブ指示データを送信する。これにより、レンズマイコン111およびアダプタマイコン302はアクティブ状態に移行する。   FIG. 13B shows an example in which the lens microcomputer 111 outputs a sleep release request. For example, when a transition event to the active state occurs by user operation in the sleep state, the lens microcomputer 111 outputs a sleep release request to the camera microcomputer 205 by outputting Low to the signal line CS. Thereafter, the camera microcomputer 205 executes broadcast communication in the procedure described with reference to FIG. 9, and transmits active instruction data to the lens microcomputer 111 and the adapter microcomputer. As a result, the lens microcomputer 111 and the adapter microcomputer 302 shift to the active state.

信号線CSの信号レベルがLowになることでレンズおよびアダプタマイコン111,302がスリープ状態からアクティブ状態に移行する構成を採用することも可能である。しかし、この場合、レンズマイコン111またはアダプタマイコン302のスリープ解除リクエストの出力によりこれらがアクティブ状態に移行してしまう。このため、レンズおよびアダプタマイコン111,302のスリープ状態への移行を通信マスタであるカメラマイコン205が制御するには、信号線DATAでのアクティブ指令データの送信により該移行が実行される構成とすることが望ましい。   It is also possible to adopt a configuration in which the lens and adapter microcomputers 111 and 302 shift from the sleep state to the active state when the signal level of the signal line CS becomes low. However, in this case, the output of a sleep release request from the lens microcomputer 111 or the adapter microcomputer 302 causes them to shift to the active state. For this reason, in order for the camera microcomputer 205 as the communication master to control the transition of the lens and adapter microcomputers 111 and 302 to the sleep state, the transition is executed by transmitting active command data on the signal line DATA. Is desirable.

次に、図14のフローチャートを用いて、通信スレーブであるレンズマイコン111およびアダプタマイコン302をアクティブ状態からスリープ状態に移行させる処理について説明する。まずカメラマイコン205は、ステップS800においてレンズマイコン111およびアダプタマイコン302をアクティブ状態からスリープ状態に移行させるイベントが発生すると、ステップS801に進む。ステップS801では、カメラマイコン205は、レンズマイコン111およびアダプタマイコン302に対してブロードキャスト通信によりスリープ指示データを送信する。レンズマイコン111およびアダプタマイコン302は、ステップS900においてカメラマイコン205からのスリープ指示データを受信すると、ステップS901においてスリープ移行処理を実行する。スリープ移行処理は、内部電源をオフする処理や、次回アクティブ状態に移行するための移行要因を設定する処理等である。   Next, processing for causing the lens microcomputer 111 and the adapter microcomputer 302, which are communication slaves, to transition from the active state to the sleep state will be described using the flowchart in FIG. First, when an event to shift the lens microcomputer 111 and the adapter microcomputer 302 from the active state to the sleep state occurs in step S800, the camera microcomputer 205 proceeds to step S801. In step S801, the camera microcomputer 205 transmits sleep instruction data to the lens microcomputer 111 and the adapter microcomputer 302 by broadcast communication. When the lens microcomputer 111 and the adapter microcomputer 302 receive the sleep instruction data from the camera microcomputer 205 in step S900, the lens microcomputer 111 and the adapter microcomputer 302 execute sleep transition processing in step S901. The sleep shift processing is processing of turning off the internal power, processing of setting a shift factor for shifting to the active state next time, and the like.

続いて、ステップS802においてレンズマイコン111およびアダプタマイコン302をスリープ状態からアクティブ状態へ移行させるイベントが発生すると、カメラマイコン205はステップS804に進む。また、ステップS803においてレンズマイコン111およびアダプタマイコン302からアクティブ指示データの送信を要求するスリープ解除リクエストを受信した場合もステップS804に進む。   Subsequently, when an event to shift the lens microcomputer 111 and the adapter microcomputer 302 from the sleep state to the active state occurs in step S802, the camera microcomputer 205 proceeds to step S804. Also, in the case where a sleep release request for requesting transmission of active instruction data is received from the lens microcomputer 111 and the adapter microcomputer 302 in step S803, the process also proceeds to step S804.

ステップS804では、カメラマイコン205は、レンズマイコン111およびアダプタマイコン302に対してブロードキャスト通信によりアクティブ指示データを送信する。   In step S804, the camera microcomputer 205 transmits active instruction data to the lens microcomputer 111 and the adapter microcomputer 302 by broadcast communication.

一方、レンズマイコン111およびアダプタマイコン302は、ステップS902でスリープ状態においてアクティブ状態への移行を要求するイベントが発生すると、ステップS904に進む。ステップS904では、レンズマイコン111およびアダプタマイコン302は、カメラマイコン205に対してアクティブ指示データの送信を要求するスリープ解除リクエストを出力する。その後ステップS905においてブロードキャスト通信によりカメラマイコン205からアクティブ指示データを受信すると、ステップS906においてレンズマイコン111およびアダプタマイコン302はスリープ解除処理を実行する。スリープ解除リクエストを出力しなくても、レンズマイコン111およびアダプタマイコン302は、ステップS903でブロードキャスト通信によりカメラマイコン205からアクティブ指示データを受信すると、ステップS906でスリープ解除処理を実行する。   On the other hand, when the lens microcomputer 111 and the adapter microcomputer 302 generate an event for requesting a transition to the active state in the sleep state in step S902, the process proceeds to step S904. In step S904, the lens microcomputer 111 and the adapter microcomputer 302 output a sleep release request for requesting transmission of active instruction data to the camera microcomputer 205. Thereafter, when the active instruction data is received from the camera microcomputer 205 by broadcast communication in step S905, the lens microcomputer 111 and the adapter microcomputer 302 execute sleep release processing in step S906. If the lens microcomputer 111 and the adapter microcomputer 302 receive the active instruction data from the camera microcomputer 205 by broadcast communication in step S903 without executing the sleep cancellation request, the lens microcomputer 111 and the adapter microcomputer 302 execute the sleep cancellation process in step S906.

本実施例では、信号線CSと信号線DATAを用いることで、カメラマイコン205からレンズマイコン111およびアダプタマイコン302をアクティブ状態とスリープ状態に適切に切り替えることができる。また、レンズマイコン111およびアダプタマイコン302は、それらがスリープ状態であっても、カメラマイコン205に対してアクティブ指示データの送信を要求することができる。   In this embodiment, by using the signal line CS and the signal line DATA, the camera microcomputer 205 can appropriately switch the lens microcomputer 111 and the adapter microcomputer 302 between the active state and the sleep state. In addition, the lens microcomputer 111 and the adapter microcomputer 302 can request the camera microcomputer 205 to transmit active instruction data even if they are in the sleep state.

次に、図15のフローチャートを用いて、本実施例におけるスリープ解除リクエスト許否情報の通信について説明する。ここでは、例として、アダプタマイコン302に対してスリープ解除リクエストの出力を禁止し、レンズマイコン111に対してスリープ解除リクエストの出力を許可する場合について説明する。   Next, communication of the sleep release request permission information according to the present embodiment will be described with reference to the flowchart of FIG. Here, as an example, the case where the output of the sleep cancellation request to the adapter microcomputer 302 is prohibited and the output of the sleep cancellation request to the lens microcomputer 111 is permitted will be described.

カメラマイコン205は、ステップS1000Cにおいてブロードキャスト通信を用いてアダプタマイコン302を指定スレーブとして指定する。これに応じてアダプタマイコン302は、ステップS1000Aにおいて自身が指定スレーブであることを受信する。また、レンズマイコン111は、ステップS1000Lにおいて自身が指定スレーブでないことを受信する。   The camera microcomputer 205 designates the adapter microcomputer 302 as a designated slave using broadcast communication in step S1000C. In response to this, the adapter microcomputer 302 receives that it is a designated slave in step S1000A. Also, the lens microcomputer 111 receives that it is not a designated slave in step S1000L.

次にカメラマイコン205は、ステップS1001Cにおいて、P2P通信を用いてスリープ解除リクエスト許否情報としてのスリープ解除リクエスト禁止を送信するとともに、該スリープ解除リクエスト禁止を内部メモリに保持する。指定スレーブであるアダプタマイコン302は、ステップS1001Aにおいてスリープ解除リクエスト禁止を受信する。指定スレーブではないレンズマイコン111は、P2P通信の受信を行わない。   Next, in step S1001C, the camera microcomputer 205 transmits the sleep release request prohibition as the sleep release request permission information using P2P communication, and holds the sleep release request prohibition in the internal memory. The adapter microcomputer 302, which is the designated slave, receives the sleep release request prohibition in step S1001A. The lens microcomputer 111 that is not the designated slave does not receive P2P communication.

次にアダプタマイコン302は、ステップS1002Aにおいて、P2P通信を用いてカメラマイコン205にスリープ解除リクエスト禁止の設定が完了したことを送信する。これに応じてカメラマイコン205は、ステップS1002Cにおいてアダプタマイコン302におけるスリープ解除リクエスト禁止の設定が完了したことを受信する。   Next, in step S1002A, the adapter microcomputer 302 transmits, to the camera microcomputer 205, the completion of the sleep release request prohibition setting using P2P communication. In response to this, the camera microcomputer 205 receives the completion of the sleep release request prohibition setting in the adapter microcomputer 302 in step S1002C.

次にカメラマイコン205は、ステップS1003Cにおいて、ブロードキャスト通信を用いてレンズマイコン111を指定スレーブとして指定する。これに応じてレンズマイコン111は、ステップS1003Lにおいて自身が指定スレーブであることを受信する。アダプタマイコン302は、ステップS1003Aにおいて自身が指定スレーブでないことを受信して処理を終了する。   Next, in step S1003C, the camera microcomputer 205 uses broadcast communication to designate the lens microcomputer 111 as a designated slave. In response to this, the lens microcomputer 111 receives that it is a designated slave in step S1003L. The adapter microcomputer 302 receives the fact that it is not the designated slave in step S1003A, and ends the processing.

次にカメラマイコン205は、ステップS1004Cにおいて、P2P通信を用いてスリープ解除リクエスト許否情報としてのスリープ解除リクエスト許可を送信するとともに、該スリープ解除リクエスト許可を内部メモリに保持する。指定スレーブであるレンズマイコン111は、ステップS1004Lにおいてスリープ解除リクエスト許可を受信する。指定スレーブでないアダプタマイコン302は、P2P通信の受信を行わない。   Next, in step S1004C, the camera microcomputer 205 transmits the sleep release request permission as the sleep release request permission information using P2P communication, and holds the sleep release request permission in the internal memory. The lens microcomputer 111, which is the designated slave, receives the sleep release request permission in step S1004L. The adapter microcomputer 302 which is not the designated slave does not receive P2P communication.

次にレンズマイコン111は、ステップS1005Lにおいて、P2P通信を用いてカメラマイコン205にスリープ解除リクエスト許可の設定が完了したことを送信し、処理を終了する。これに応じてカメラマイコン205は、ステップS1005Cにおいてレンズマイコン111におけるスリープ解除リクエスト許可の設定が完了したことを受信し、処理を終了する。   Next, in step S1005L, the lens microcomputer 111 transmits, to the camera microcomputer 205, the setting of the sleep cancellation request permission using P2P communication, and ends the processing. In response to this, the camera microcomputer 205 receives the completion of the setting of the sleep release request permission in the lens microcomputer 111 in step S1005C, and ends the processing.

こうして、カメラマイコン205は、ブロードキャスト通信およびP2P通信を用いて、アダプタマイコン302およびレンズマイコン111にスリープ解除リクエストの許可と禁止を設定することができる。   Thus, the camera microcomputer 205 can set the adapter microcomputer 302 and the lens microcomputer 111 to permit or prohibit the sleep release request using the broadcast communication and the P2P communication.

次に、図16のフローチャートを用いて、通信スレーブであるレンズマイコン111およびアダプタマイコン302のスリープ状態への移行後に通信マスタであるカメラマイコン205からスリープ解除リクエストが出力された際の処理について説明する。カメラマイコン205は、ステップS1100Cにおいて、ブロードキャスト通信を用いてレンズマイコン111およびアダプタマイコン302に対してスリープ解除リクエストを送信する。これに応じてアダプタマイコン302は、ステップS1100Aにおいてスリープ解除処理を実行する。また、レンズマイコン111も、ステップS1100Lにおいてスリープ解除処理を実行する。   Next, processing when a sleep release request is output from the camera microcomputer 205 as the communication master after the lens microcomputer 111 as the communication slave and the adapter microcomputer 302 shift to the sleep state will be described using the flowchart in FIG. . In step S1100C, the camera microcomputer 205 transmits a wakeup request to the lens microcomputer 111 and the adapter microcomputer 302 using broadcast communication. In response to this, the adapter microcomputer 302 executes the sleep release process in step S1100A. The lens microcomputer 111 also executes the sleep release process in step S1100L.

次にカメラマイコン205は、ステップS1101Cにおいて、ブロードキャスト通信を用いてレンズマイコン111を指定スレーブに指定する。これに応じてアダプタマイコン302は、ステップS1101Aにおいて自身が指定スレーブではないことを受信する。また、レンズマイコン111は、ステップS1101Lにおいて自身が指定スレーブであることを受信する。   Next, in step S1101C, the camera microcomputer 205 uses broadcast communication to designate the lens microcomputer 111 as a designated slave. In response to this, the adapter microcomputer 302 receives that it is not a designated slave in step S1101A. In addition, the lens microcomputer 111 receives that it is a designated slave in step S1101L.

次にカメラマイコン205は、ステップS1102Cにおいて、P2P通信を用いてレンズマイコン111に対してスリープ解除リクエストの要因(以下、スリープ解除リクエスト要因という)を示す情報の送信を要求する。これに応じて指定スレーブであるレンズマイコン111は、ステップS1102Lにおいて、スリープ解除リクエスト要因(情報)の送信要求を受信する。一方、指定スレーブではないアダプタマイコン302は、P2P通信の受信を行わない。   Next, in step S1102C, the camera microcomputer 205 requests the lens microcomputer 111 to transmit information indicating the cause of the sleep cancellation request (hereinafter, referred to as a sleep cancellation request factor) using P2P communication. In response to this, the lens microcomputer 111, which is the designated slave, receives the transmission request for the wakeup request factor (information) in step S1102L. On the other hand, the adapter microcomputer 302 which is not the designated slave does not receive P2P communication.

次にレンズマイコン111は、ステップS1103Lにおいて、P2P通信を用いてカメラマイコン205に対して通信リクエスト要因としての操作リング変化有り情報を送信する。これに応じてカメラマイコン205は、ステップS1103Cにおいて操作リング変化有り情報を受信する。   Next, in step S1103L, the lens microcomputer 111 transmits operation ring change presence information as a communication request factor to the camera microcomputer 205 using P2P communication. In response to this, the camera microcomputer 205 receives operation ring change presence information in step S1103C.

次にカメラマイコン205は、ステップS1104Cにおいて、P2P通信を用いてレンズマイコン111に対して通信リクエスト要因(操作リング変化有り)に関する情報である操作リング値の送信を要求する。これに応じて指定スレーブであるレンズマイコン111は、ステップS1104Lにおいて操作リング値の送信要求を受信する。一方、指定スレーブではないアダプタマイコン302は、P2P通信の受信を行わない。   Next, in step S1104C, the camera microcomputer 205 requests the lens microcomputer 111 to transmit an operation ring value, which is information on a communication request factor (operation ring change), using P2P communication. In response to this, the lens microcomputer 111 which is the designated slave receives the transmission request of the operation ring value in step S1104L. On the other hand, the adapter microcomputer 302 which is not the designated slave does not receive P2P communication.

次にレンズマイコン111は、ステップS1105Lにおいて、P2P通信を用いてカメラマイコン205に対して操作リング値を送信する。これに応じてカメラマイコン205は、ステップS1105Cにおいて操作リング値を受信する。   Next, in step S1105L, the lens microcomputer 111 transmits an operation ring value to the camera microcomputer 205 using P2P communication. In response to this, the camera microcomputer 205 receives the operation ring value in step S1105C.

次にカメラマイコン205は、ステップS1106Cにおいてブロードキャスト通信を用いてレンズマイコン111およびアダプタマイコン302に対して、これらのスリープ状態への移行を命令するスリープ移行コマンドを送信して処理を終了する。アダプタマイコン302は、ステップS1106Aにおいてスリープ移行コマンドを受信することに応じてスリープ移行処理を実行して処理を終了する。また、レンズマイコン111も、ステップS1106Lにおいて、スリープ移行コマンドを受信することに応じてスリープ移行処理を実行して処理を終了する。   Next, in step S1106C, the camera microcomputer 205 transmits a sleep shift command instructing the lens microcomputer 111 and the adapter microcomputer 302 to shift to the sleep state using broadcast communication, and ends the processing. The adapter microcomputer 302 executes sleep transition processing in response to receiving the sleep transition command in step S1106A, and ends the processing. In step S1106L, the lens microcomputer 111 also executes the sleep shift process in response to receiving the sleep shift command, and ends the process.

図15を用いて説明したように、カメラマイコン205は、アダプタマイコン302に対してスリープ解除リクエストの出力を禁止している。このため、通信スレーブからスリープ解除リクエストが出力された際には、本実施例では、図15を用いて説明したように、カメラマイコン205は、アダプタマイコン302に対してスリープ解除リクエストの出力を禁止し、レンズマイコン111のスリープ解除リクエストの出力を許可したことを内部メモリに保持している。このため、スリープ解除リクエストを受けたカメラマイコン205は、スリープ解除リクエストの出力を許可したとして選択したレンズマイコン111に対してはスリープ解除リクエストを送信したか否かを確認するための通信(要求に対する応答通信)を行う。しかし、アダプタマイコン302に対してはスリープ解除リクエストを送信したか否かを確認するための通信を行う必要がなく、該通信を行わない。この結果、無駄な通信を少なくして通信量を削減することができる。   As described with reference to FIG. 15, the camera microcomputer 205 prohibits the adapter microcomputer 302 from outputting the wakeup request. Therefore, when a sleep release request is output from the communication slave, in the present embodiment, as described with reference to FIG. 15, the camera microcomputer 205 prohibits the adapter microcomputer 302 from outputting the sleep release request. The internal memory holds that the lens microcomputer 111 has permitted the output of the sleep release request. For this reason, the camera microcomputer 205 that has received the sleep cancellation request performs a communication for confirming whether the sleep cancellation request has been transmitted to the lens microcomputer 111 selected as permitting the output of the sleep cancellation request. Perform response communication). However, it is not necessary to perform communication for confirming whether the sleep release request has been transmitted to the adapter microcomputer 302, and the communication is not performed. As a result, it is possible to reduce unnecessary communication and reduce the amount of communication.

なお、ブロードキャスト通信を用いて全通信スレーブに対してスリープ解除リクエストの出力の許可と禁止を設定してもよい。例えば、カメラ200が撮影画像を再生する再生モードに移行した際には、全通信スレーブに対してスリープ解除リクエストの出力を禁止してスリープ移行コマンドを送信することができる。これにより、通信スレーブからスリープ解除リクエストが出力されることが無くなるため、さらに無駄な通信を少なくして通信量を削減することができるだけでなく、不要なスリープ解除処理が行われることを防ぐことができる。   Note that broadcast communication may be used to set permission / prohibition of the output of the wakeup request to all the communication slaves. For example, when the camera 200 shifts to the reproduction mode for reproducing a photographed image, it is possible to transmit the sleep transition command to all communication slaves while inhibiting the output of the sleep cancellation request. As a result, since the sleep request is not output from the communication slave, it is possible not only to reduce unnecessary communication to reduce the communication amount but also to prevent unnecessary sleep release processing from being performed. it can.

また、カメラマイコン205は、各通信スレーブからスリープ解除リクエストを出力する機能の有無やスリープ解除リクエストの要因の情報を受信したうえで、必要な通信スレーブに対してスリープ解除リクエストの出力の許可と禁止を送信するようにしてもよい。   In addition, the camera microcomputer 205 receives or does not output the wakeup request from each communication slave and information on the cause of the wakeup request, and permits or prohibits the output of the wakeup request to the necessary communication slaves. May be sent.

また、カメラマイコン205が操作リング130の操作に応じた機能の割り当てを変更することができる場合には、該機能の割り当て状況に応じてスリーブ解除リクエストの出力の許可および禁止を切り替えてもよい。具体的には、操作リング130の操作に応じた機能の割り当てが無い場合には、操作リング130の操作により起動(ウェイクアップ)処理を行う必要が無い。このため、レンズマイコン111のスリープ解除リクエストの出力を禁止にすることができる。この結果、無駄な通信を少なくして通信量を削減することができる。   Further, when the camera microcomputer 205 can change the assignment of the function according to the operation of the operation ring 130, the permission and prohibition of the output of the sleeve release request may be switched according to the assignment situation of the function. Specifically, when there is no assignment of the function according to the operation of the operation ring 130, there is no need to perform the activation (wake up) process by the operation of the operation ring 130. Therefore, it is possible to prohibit the output of the sleep release request of the lens microcomputer 111. As a result, it is possible to reduce unnecessary communication and reduce the amount of communication.

さらに、スリープ解除リクエストの出力の許可と禁止をスリープ解除リクエストの要因ごとに設定できるようにすることで、さらに通信量の削減を行うことができる。例えば、交換レンズ100が操作リング130と不図示の操作可能なスイッチとを有する場合について説明する。カメラマイコン205は、レンズマイコン111に対して、操作リング130の操作が要因(特定要因)であるときのスリープ解除リクエストの出力は許可し、スイッチの操作が要因であるときのスリープ解除リクエストの出力を禁止とする。また、操作リング130や不図示のスイッチに対する機能の割り当てを変更することができる場合には、該機能の割り当てに応じてスリープ解除リクエストの出力の許可と禁止を設定する。これらにより、より無駄な通信を少なくして通信量を削減することができる。しかも、不要なスリープ解除処理が行われることも防ぐことができる。   Furthermore, by enabling to set permission / prohibition of the output of the sleep release request for each factor of the sleep release request, it is possible to further reduce the amount of communication. For example, the case where the interchangeable lens 100 has the operation ring 130 and an unshown operable switch will be described. The camera microcomputer 205 permits the lens microcomputer 111 to output the sleep release request when the operation of the operation ring 130 is a factor (specific factor), and outputs the sleep release request when the switch operation is the factor. Is prohibited. Further, when assignment of functions to the operation ring 130 or a switch (not shown) can be changed, permission and prohibition of output of the sleep release request are set according to the assignment of the functions. As a result, it is possible to reduce the amount of communication by reducing unnecessary communication. Moreover, unnecessary sleep release processing can be prevented.

また、スリープ解除リクエストの出力を禁止したうえでスリープ移行処理を行うと、スリープ解除リクエストを出力するために必要な待機電力が不要となるため、より省電力に有効である。   In addition, if sleep transition processing is performed after the output of the sleep release request is prohibited, standby power necessary to output the sleep release request becomes unnecessary, which is more effective for power saving.

要求(リクエスト)に関する情報として、実施例1,2で説明した通信リクエストに関する情報(通信リクエスト機能情報、通信リクエスト許否情報および通信リクエスト要因情報)と、実施例3で説明したスリープ解除リクエスト許否情報とを併せ用いてもよい。この場合、これらをリクエストとして共通に扱うことで、カメラマイコン205は、アクティブ状態での通信リクエストとスリープ状態でのスリープ解除リクエストとを分けることなく扱うことができる。   As information on requests (requests), information on communication requests (communication request function information, communication request permission information and communication request cause information) described in the first and second embodiments, and sleep release request permission information described in the third embodiment You may use together. In this case, by handling these as requests in common, the camera microcomputer 205 can handle the communication request in the active state and the sleep release request in the sleep state without separating them.

以上説明した実施例は、通知チャネルCSとデータ通信チャネルDATAを含む通信チャネルに加え、別の通信チャネルと併用可能である。   The embodiment described above can be used in combination with another communication channel in addition to the communication channel including the notification channel CS and the data communication channel DATA.

その一例を、図17を用いて説明する。なお、図17において、図1と同一の部材には同一の符号を付し、重複する説明は省略する。また、図17において、図1に記載されている部材の一部の図示を省略している。前述の通知チャネルCSおよびデータ通信チャネルDATAは、第3通信という通信用の通信線である。第3通信では、操作部材304がユーザにより操作された場合に、アダプタマイコン302とカメラマイコン205の間で、操作があったことや操作量等を通信する。操作部材130がユーザにより操作された場合も、第3通信用の通信線を用いてレンズマイコン111とカメラマイコン205の間で通信をしてもよい。   One example thereof will be described with reference to FIG. In FIG. 17, the same members as those in FIG. 1 are denoted by the same reference numerals, and redundant description will be omitted. Further, in FIG. 17, illustration of part of the members described in FIG. 1 is omitted. The aforementioned notification channel CS and data communication channel DATA are communication lines for communication called third communication. In the third communication, when the operation member 304 is operated by the user, the adapter microcomputer 302 and the camera microcomputer 205 communicate that there is an operation, an operation amount, and the like. Even when the operation member 130 is operated by the user, communication may be performed between the lens microcomputer 111 and the camera microcomputer 205 using the communication line for the third communication.

レンズマイコン111は、通信部112に加え、第1通信を行うための通信部131、第2通信を行うための通信部132を制御する。カメラマイコン205は、通信部112に加え、第1通信を行うための通信部209、第2通信を行うための通信部210を制御する。   The lens microcomputer 111 controls the communication unit 131 for performing the first communication and the communication unit 132 for performing the second communication, in addition to the communication unit 112. The camera microcomputer 205 controls, in addition to the communication unit 112, the communication unit 209 for performing the first communication and the communication unit 210 for performing the second communication.

まず、第1通信について説明する。第1通信は、通信部131と通信部209を介して行われる通信である。通信部131はレンズマイコン111からの指示に基づいて、通信部209はカメラマイコン205からの指示に基づいて、通知チャネルCS1、データ通信チャネルDCL、データ通信チャネルDLCを介して通信を行う。通信部131および通信部209は、通知チャネルCS1の電圧レベル、調歩同期通信の際の通信レート(単位時間当たりのデータ量)や通信電圧の設定をする。さらに、レンズマイコン111やカメラマイコン205からの指示を受けて、データ通信チャネルDCLおよびデータ通信チャネルDLCを介したデータの送受信を行う。   First, the first communication will be described. The first communication is communication performed via the communication unit 131 and the communication unit 209. The communication unit 131 communicates based on an instruction from the lens microcomputer 111, and based on an instruction from the camera microcomputer 205, communication is performed via the notification channel CS1, the data communication channel DCL, and the data communication channel DLC. The communication unit 131 and the communication unit 209 set the voltage level of the notification channel CS1, the communication rate (the amount of data per unit time) and the communication voltage in the case of start-stop synchronous communication. Further, in response to an instruction from the lens microcomputer 111 or the camera microcomputer 205, data transmission / reception is performed via the data communication channel DCL and the data communication channel DLC.

通知チャネルCS1は、カメラ200から交換レンズ100への通信要求の通知等に用いられる信号線である。データ通信チャネルDCLは、カメラ200から交換レンズ100にデータを送信する際に用いられるチャネルであり、データ通信チャネルDLCは交換レンズ100からカメラ200にデータを送信する際に用いられるチャネルである。   The notification channel CS1 is a signal line used for notifying a communication request from the camera 200 to the interchangeable lens 100 or the like. The data communication channel DCL is a channel used when transmitting data from the camera 200 to the interchangeable lens 100, and the data communication channel DLC is a channel used when transmitting data from the interchangeable lens 100 to the camera 200.

カメラマイコン205とレンズマイコン111は、第1通信では、クロック同期通信または調歩同期通信により通信を行う。交換レンズ100がカメラ200に接続された際に行われる初期通信も、まずは第1通信により行う。カメラマイコン205とレンズマイコン111は交換レンズ100の識別情報を通信し、カメラ200装着された交換レンズ100が調歩同期通信に対応可能であることが判明すると、クロック同期通信から調歩同期通信に通信方式を切り替える。また、識別情報の通信の結果、カメラマイコン205は、交換レンズ100が、アダプタ300も含めて通信を行う第3通信に対応可能かどうかを識別してもよい。カメラマイコン205は、交換レンズ100が第3通信に対応可能であると判断した場合、交換レンズ100や中間アダプタ300を認識するための認証通信をP2P通信を介して行ってもよい。   In the first communication, the camera microcomputer 205 and the lens microcomputer 111 perform communication by clock synchronous communication or start synchronous communication. The initial communication performed when the interchangeable lens 100 is connected to the camera 200 is also performed first by the first communication. The camera microcomputer 205 and the lens microcomputer 111 communicate identification information of the interchangeable lens 100, and when it is found that the interchangeable lens 100 mounted on the camera 200 can support asynchronous communication, a communication method from clock synchronous communication to asynchronous communication is made. Switch. Further, as a result of the communication of the identification information, the camera microcomputer 205 may identify whether the interchangeable lens 100 can cope with the third communication that includes the adapter 300 and performs communication. When the camera microcomputer 205 determines that the interchangeable lens 100 is compatible with the third communication, authentication communication for recognizing the interchangeable lens 100 or the intermediate adapter 300 may be performed via P2P communication.

次に、第2通信について説明する。第2通信は、交換レンズ100からカメラ200への一方向の通信である。第2通信は、通信部132と通信部210を介して行われる。通信部132はレンズマイコン111からの指示に基づいて、通信部210はカメラマイコン205からの指示に基づいて、通知チャネルCS2とデータ通信チャネルDLC2を介して通信を行う。カメラ通信部208とレンズ通信部118は、クロック同期式通信や調歩同期通信によりデータを送受信する。第1通信のデータ通信チャネルDLCと共に第2通信チャネルのデータ通信チャネルDLC2を用いることで、交換レンズ100からカメラ200に対して大量のデータを短時間で送信することが可能となる。
(その他の実施例)
本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサーがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
Next, the second communication will be described. The second communication is one-way communication from the interchangeable lens 100 to the camera 200. The second communication is performed via the communication unit 132 and the communication unit 210. The communication unit 132 communicates with the notification channel CS2 and the data communication channel DLC2 based on the instruction from the lens microcomputer 111 and the instruction from the camera microcomputer 205. The camera communication unit 208 and the lens communication unit 118 transmit and receive data by clock synchronous communication and start synchronous communication. By using the data communication channel DLC2 of the second communication channel together with the data communication channel DLC of the first communication, a large amount of data can be transmitted from the interchangeable lens 100 to the camera 200 in a short time.
(Other embodiments)
The present invention supplies a program that implements one or more functions of the above-described embodiments to a system or apparatus via a network or storage medium, and one or more processors in a computer of the system or apparatus read and execute the program. Can also be realized. It can also be implemented by a circuit (eg, an ASIC) that implements one or more functions.

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

100 交換レンズ
200 カメラ
300 アダプタ
111 レンズマイクロコンピュータ
205 カメラマイクロコンピュータ
302 アダプタマイクロコンピュータ
112 レンズ通信部
208 カメラ通信部
303 アダプタ通信部
Reference Signs List 100 interchangeable lens 200 camera 300 adapter 111 lens microcomputer 205 camera microcomputer 302 adapter microcomputer 112 lens communication unit 208 camera communication unit 303 adapter communication unit

Claims (14)

複数のアクセサリ装置が接続された状態で使用可能なカメラであって、
前記カメラと前記複数のアクセサリ装置との間で信号の伝達に用いられる信号伝達チャネルと、前記カメラと前記複数のアクセサリ装置との間のデータ通信に用いられるデータ通信チャネルとを用いて行う、前記複数のアクセサリ装置との通信を制御するカメラ制御部を有し、
前記カメラ制御部は、
前記複数のアクセサリ装置のそれぞれについての前記カメラに対する要求に関する情報を保持可能であり、
前記信号伝達チャネルにおいて前記複数のアクセサリ装置のいずれかから前記要求のために出力された信号を検出することに応じて、前記情報に基づいて選択したアクセサリ装置に対して、前記データ通信チャネルにおいて前記要求に対する応答通信を行うことを特徴とするカメラ。
A camera that can be used with a plurality of accessory devices connected,
Conducting using a signaling channel used to transmit signals between the camera and the plurality of accessory devices, and a data communication channel used for data communication between the camera and the plurality of accessory devices A camera control unit that controls communication with a plurality of accessory devices;
The camera control unit
May hold information regarding the requirements for the camera for each of the plurality of accessory devices;
In the data communication channel, for the accessory device selected based on the information in response to detecting a signal output for the request from any of the plurality of accessory devices in the signaling channel. A camera characterized in that it responds to a request.
前記要求に関する情報は、前記アクセサリ装置が前記要求を出力する機能を有するか否かを示す情報であり、
前記カメラ制御部は、前記複数のアクセサリ装置のうち前記機能を有するアクセサリ装置に対して前記応答通信を行うことを特徴とする請求項1に記載のカメラ。
The information related to the request is information indicating whether the accessory device has a function of outputting the request,
The camera according to claim 1, wherein the camera control unit performs the response communication to an accessory device having the function among the plurality of accessory devices.
前記要求に関する情報は、前記アクセサリ装置が前記要求を出力する要因を有するか否かを示す情報であり、
前記カメラ制御部は、前記複数のアクセサリ装置のうち前記要因を有するアクセサリ装置に対して前記応答通信を行うことを特徴とする請求項1に記載のカメラ。
The information related to the request is information indicating whether the accessory device has a factor for outputting the request,
The camera according to claim 1, wherein the camera control unit performs the response communication to an accessory device having the factor among the plurality of accessory devices.
前記要求に関する情報は、前記アクセサリ装置が前記要求の出力を許可または禁止されていることを示す情報であり、
前記カメラ制御部は、前記複数のアクセサリ装置のうち前記要求の出力を許可されているアクセサリ装置に対して前記応答通信を行うことを特徴とする請求項1に記載のカメラ。
The information related to the request is information indicating that the accessory device is permitted or prohibited to output the request,
The camera according to claim 1, wherein the camera control unit performs the response communication to an accessory device that is permitted to output the request among the plurality of accessory devices.
前記応答通信は、前記要求の要因を確認するための通信であることを特徴とする請求項2から4のいずれか一項に記載のカメラ。   The camera according to any one of claims 2 to 4, wherein the response communication is communication for confirming a factor of the request. 前記要求に関する情報は、前記アクセサリ装置が有する特定要因について前記要求の出力を許可され、該特定要因とは異なる要因について前記要求の出力を禁止されていることを示す情報であり、
前記カメラ制御部は、前記複数のアクセサリ装置のうち前記特定要因についての前記要求の出力を許可されているアクセサリ装置に対して前記応答通信を行うことを特徴とする請求項1に記載のカメラ。
The information related to the request is information indicating that the output of the request is permitted for the specific factor of the accessory device and the output of the request is prohibited for the factor different from the specific factor,
The camera according to claim 1, wherein the camera control unit performs the response communication to an accessory device that is permitted to output the request for the specific factor among the plurality of accessory devices.
前記要求は、前記カメラとの通信を行う要求であることを特徴とする請求項1から6のいずれか一項に記載のカメラ。   The camera according to any one of claims 1 to 6, wherein the request is a request to communicate with the camera. 前記要求は、前記カメラに前記アクセサリ装置の低消費電力状態を解除させる要求であることを特徴とする請求項1から6のいずれか一項に記載のカメラ。   The camera according to any one of claims 1 to 6, wherein the request is a request for causing the camera to release a low power consumption state of the accessory device. 前記応答通信は、前記低消費電力状態の解除リクエストを送信したか否かを確認するための通信であることを特徴とする請求項8に記載のカメラ。   The camera according to claim 8, wherein the response communication is communication for confirming whether or not the low power consumption state cancellation request has been transmitted. 前記カメラ制御部は、
前記複数のアクセサリ装置に同時にデータを送信する第1の通信と、前記複数のアクセサリ装置のうちの1つのアクセサリ装置に対してデータを送信する第2の通信とを行うことが可能であり、
前記複数のアクセサリ装置のそれぞれとの間で前記第2の通信を行うことにより、前記情報を前記複数のアクセサリ装置のそれぞれから取得することを特徴とする請求項1乃至9のいずれか一項に記載のカメラ。
The camera control unit
It is possible to perform a first communication that simultaneously transmits data to the plurality of accessory devices and a second communication that transmits data to one of the plurality of accessory devices,
10. The information processing method according to claim 1, wherein the information is acquired from each of the plurality of accessory devices by performing the second communication with each of the plurality of accessory devices. Camera described.
請求項1から7のいずれか一項に記載のカメラに接続されるアクセサリ装置であって、
前記信号伝達チャネルと前記データ通信チャネルとに接続されるアクセサリ通信部と、
前記信号伝達チャネルに前記要求のための信号を出力して前記カメラから前記応答通信を受信した場合に該応答通信に対するさらなる応答通信を行うアクセサリ制御部とを有することを特徴とするアクセサリ装置。
An accessory device connected to the camera according to any one of claims 1 to 7, comprising:
An accessory communication unit connected to the signaling channel and the data communication channel;
An accessory control unit for outputting a signal for the request to the signaling channel and performing further response communication to the response communication when the response communication is received from the camera.
複数のアクセサリ装置が接続された状態で使用可能なカメラであり、該カメラと前記複数のアクセサリ装置との間で信号の伝達に用いられる信号伝達チャネルと、前記カメラと前記複数のアクセサリ装置との間のデータ通信に用いられるデータ通信チャネルとに接続されるカメラの制御方法であって、
前記複数のアクセサリ装置のそれぞれについての前記カメラに対する要求に関する情報を保持させるステップと、
前記信号伝達チャネルにおいて前記複数のアクセサリ装置のいずれかから前記カメラに対する要求のために出力された信号を検出させるステップと、
前記信号の検出に応じて、前記複数のアクセサリ装置のうち前記情報に基づいて選択したアクセサリ装置に対して、前記データ通信チャネルにおいて前記要求に対する応答通信を行わせるステップとを有することを特徴とするカメラの通信制御方法。
It is a camera that can be used with a plurality of accessory devices connected, and a signal transmission channel used to transmit a signal between the camera and the plurality of accessory devices, and the camera and the plurality of accessory devices Control method of a camera connected to a data communication channel used for data communication between
Holding information about the request for the camera for each of the plurality of accessory devices;
Detecting a signal output for request to the camera from any of the plurality of accessory devices in the signaling channel;
Causing the accessory device selected based on the information among the plurality of accessory devices to perform response communication to the request in the data communication channel in response to the detection of the signal. Camera communication control method.
複数のアクセサリ装置が接続された状態で使用可能なカメラであり、該カメラと前記複数のアクセサリ装置との間で信号の伝達に用いられる信号伝達チャネルと、前記カメラと前記複数のアクセサリ装置との間のデータ通信に用いられるデータ通信チャネルとに接続されるカメラのコンピュータに処理を実行させるコンピュータプログラムであって、
前記処理は、
前記複数のアクセサリ装置のそれぞれについての前記カメラに対する要求に関する情報を保持させるステップと、
前記信号伝達チャネルにおいて前記複数のアクセサリ装置のいずれかから前記カメラに対する要求のために出力された信号を検出するステップと、
前記信号の検出に応じて、前記複数のアクセサリ装置のうち前記情報に基づいて選択したアクセサリ装置に対して、前記データ通信チャネルにおいて前記要求に対する応答通信を行うステップとを有することを特徴とする通信制御プログラム。
It is a camera that can be used with a plurality of accessory devices connected, and a signal transmission channel used to transmit a signal between the camera and the plurality of accessory devices, and the camera and the plurality of accessory devices A computer program that causes a computer of a camera connected to a data communication channel used for data communication between
The process is
Holding information about the request for the camera for each of the plurality of accessory devices;
Detecting a signal output for a request to the camera from any of the plurality of accessory devices in the signaling channel;
Communicating, in response to the request, an accessory device selected based on the information among the plurality of accessory devices in response to the request, in response to the request. Control program.
複数のアクセサリ装置が接続された状態で使用可能なカメラと、前記複数のアクセサリ装置のうちのアクセサリ装置とを有するカメラシステムであって、
前記カメラは、前記カメラと前記複数のアクセサリ装置との間で信号の伝達に用いられる信号伝達チャネルと、前記カメラと前記複数のアクセサリ装置との間のデータ通信に用いられるデータ通信チャネルとを用いて行う通信を制御するカメラ制御部を有し、
前記アクセサリ装置は、前記信号伝達チャネルと前記データ通信チャネルとを用いて行う通信を制御するアクセサリ制御部を有し、
前記アクセサリ制御部は、前記信号伝達チャネルにおいて前記カメラに対する要求のために信号を出力可能であり、
前記カメラ制御部は、前記複数のアクセサリ装置のそれぞれについての前記要求に関する情報を保持可能であり、前記信号伝達チャネルにおいて前記複数のアクセサリ装置のいずれかから前記要求のために出力された信号を検出することに応じて、前記情報に基づいて選択したアクセサリ装置に対して、前記データ通信チャネルにおいて前記要求に対する応答通信を行うことを特徴とするカメラシステム。
What is claimed is: 1. A camera system comprising: a camera that can be used with a plurality of accessory devices connected; and an accessory device of the plurality of accessory devices,
The camera uses a signaling channel used to transmit signals between the camera and the plurality of accessory devices, and a data communication channel used for data communication between the camera and the plurality of accessory devices. Camera control unit that controls the communication performed
The accessory device includes an accessory control unit that controls communication performed using the signaling channel and the data communication channel.
The accessory control can output a signal for the request to the camera in the signaling channel,
The camera control unit can hold information on the request for each of the plurality of accessory devices, and detect a signal output for the request from any of the plurality of accessory devices in the signaling channel And a response communication to the request is performed in the data communication channel with respect to the accessory device selected based on the information.
JP2019015619A 2017-05-31 2019-01-31 Camera and communication control method of the same Withdrawn JP2019091066A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2017107266 2017-05-31
JP2017107266 2017-05-31

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2018102903A Division JP6479242B2 (en) 2017-05-31 2018-05-30 Camera and communication control method thereof

Publications (1)

Publication Number Publication Date
JP2019091066A true JP2019091066A (en) 2019-06-13

Family

ID=64957763

Family Applications (2)

Application Number Title Priority Date Filing Date
JP2018102903A Expired - Fee Related JP6479242B2 (en) 2017-05-31 2018-05-30 Camera and communication control method thereof
JP2019015619A Withdrawn JP2019091066A (en) 2017-05-31 2019-01-31 Camera and communication control method of the same

Family Applications Before (1)

Application Number Title Priority Date Filing Date
JP2018102903A Expired - Fee Related JP6479242B2 (en) 2017-05-31 2018-05-30 Camera and communication control method thereof

Country Status (1)

Country Link
JP (2) JP6479242B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10841477B2 (en) * 2018-05-17 2020-11-17 Canon Kabushiki Kaisha Accessory apparatus, camera system having the same, and storage medium
EP4020968A2 (en) 2020-12-23 2022-06-29 Toyota Jidosha Kabushiki Kaisha Vehicle control system, vehicle control method, controller, and non-transitory storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7258631B2 (en) 2019-04-04 2023-04-17 キヤノン株式会社 IMAGING DEVICE, ACCESSORY DEVICE, AND CONTROL METHOD THEREOF

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3346148B2 (en) * 1996-01-31 2002-11-18 ミノルタ株式会社 Interchangeable lens system, interchangeable lens body and interchangeable lens
JP2011175024A (en) * 2010-02-23 2011-09-08 Canon Inc Accessory
JP5208169B2 (en) * 2010-08-06 2013-06-12 キヤノン株式会社 Intermediate accessories for camera systems and camera systems
JP5895416B2 (en) * 2011-09-20 2016-03-30 株式会社ニコン Adapter, camera system, and adapter control program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10841477B2 (en) * 2018-05-17 2020-11-17 Canon Kabushiki Kaisha Accessory apparatus, camera system having the same, and storage medium
EP4020968A2 (en) 2020-12-23 2022-06-29 Toyota Jidosha Kabushiki Kaisha Vehicle control system, vehicle control method, controller, and non-transitory storage medium
US11750923B2 (en) 2020-12-23 2023-09-05 Toyota Jidosha Kabushiki Kaisha Vehicle control system, vehicle control method, controller, and non-transitory storage medium

Also Published As

Publication number Publication date
JP2018205717A (en) 2018-12-27
JP6479242B2 (en) 2019-03-06

Similar Documents

Publication Publication Date Title
JP7409623B2 (en) Accessory devices, cameras, communication control programs, and camera systems
JP6545323B2 (en) Camera, accessory device, communication control method, computer program, and camera system
JP6427289B1 (en) Accessory device, camera and communication control program
US11543736B2 (en) Camera, accessory apparatus, communication control method, storage medium, and camera system
JP2019091066A (en) Camera and communication control method of the same
JP6427288B1 (en) Accessory device, camera and communication control program
WO2018221558A1 (en) Camera and communication control method for same
US11245826B2 (en) Communication between imaging apparatus and accessory apparatus
WO2019087672A1 (en) Camera, accessory device and control method thereof
JP7046709B2 (en) Accessory device, camera system with it, and program
JP6949667B2 (en) Imaging equipment, accessory equipment, control methods and control programs
WO2018221552A1 (en) Camera, accessory device, communication control method, computer program, and camera system
JP2020034740A (en) Imaging device, accessory, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190131

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20190913