JP7171316B2 - Accessories, cameras and communication control programs - Google Patents

Accessories, cameras and communication control programs Download PDF

Info

Publication number
JP7171316B2
JP7171316B2 JP2018161538A JP2018161538A JP7171316B2 JP 7171316 B2 JP7171316 B2 JP 7171316B2 JP 2018161538 A JP2018161538 A JP 2018161538A JP 2018161538 A JP2018161538 A JP 2018161538A JP 7171316 B2 JP7171316 B2 JP 7171316B2
Authority
JP
Japan
Prior art keywords
communication
data
camera
voltage level
communication method
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2018161538A
Other languages
Japanese (ja)
Other versions
JP2020034745A (en
JP2020034745A5 (en
Inventor
潤二 重田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2018161538A priority Critical patent/JP7171316B2/en
Publication of JP2020034745A publication Critical patent/JP2020034745A/en
Publication of JP2020034745A5 publication Critical patent/JP2020034745A5/ja
Application granted granted Critical
Publication of JP7171316B2 publication Critical patent/JP7171316B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Structure And Mechanism Of Cameras (AREA)
  • Accessories Of Cameras (AREA)
  • Adjustment Of Camera Lenses (AREA)
  • Information Transfer Systems (AREA)
  • Studio Devices (AREA)

Description

本発明は、アクセサリ、カメラおよび通信制御プログラムに関する。 The present invention relates to accessories, cameras and communication control programs.

レンズ交換型カメラシステムとして、カメラが撮像処理やレンズ制御を行い、交換レンズがカメラ本体からの制御命令に従ってレンズ駆動を行うシステムが知られている。このようなカメラシステムでは、カメラから交換レンズへの制御命令の伝達と交換レンズからカメラへのレンズ情報の伝達は、相互に情報のやり取りするための通信チャネルを介して行われる。 2. Description of the Related Art As a lens-interchangeable camera system, a system is known in which a camera performs imaging processing and lens control, and an interchangeable lens drives the lens in accordance with a control command from a camera body. In such a camera system, transmission of control commands from the camera to the interchangeable lens and transmission of lens information from the interchangeable lens to the camera are performed via a communication channel for mutual information exchange.

また、撮影機能を拡張させるために、交換レンズの焦点距離を変化させるコンバータ等の中間アダプタを、カメラと交換レンズとの間に接続可能としたカメラシステムが知られている。このようなカメラシステムでは、カメラと交換レンズとの間の通信に加えて、カメラと中間アダプタとの間の通信が必要となる場合がある。この場合、カメラは、複数のアクセサリの中から通信相手を特定し、特定された通信相手との通信を行う。 Further, there is known a camera system in which an intermediate adapter such as a converter for changing the focal length of the interchangeable lens can be connected between the camera and the interchangeable lens in order to extend the shooting function. Such a camera system may require communication between the camera and the intermediate adapter in addition to communication between the camera and the interchangeable lens. In this case, the camera identifies a communication partner from among a plurality of accessories, and communicates with the identified communication partner.

特許文献1には、I2C(Inter-Integrated Circuit)通信方式による通信制御方法が記載されている。I2C通信では、通信マスタに対して複数の通信スレーブが接続され、通信マスタによって指定された特定の通信スレーブと通信マスタとの間で通信が行われる。 Patent Document 1 describes a communication control method based on an I2C (Inter-Integrated Circuit) communication system. In I2C communication, a plurality of communication slaves are connected to a communication master, and communication is performed between a specific communication slave designated by the communication master and the communication master.

I2C通信では、通信マスタが、特定の通信スレーブを指定したアドレス情報を全ての通信スレーブに対して送信する。各通信スレーブは、それぞれの通信スレーブに固有のアドレス情報を保持しており、通信マスタから送信されたアドレス情報に対応するアドレス情報を保持している通信スレーブが通信マスタの通信相手となる。 In I2C communication, a communication master transmits address information designating a specific communication slave to all communication slaves. Each communication slave holds address information specific to each communication slave, and a communication slave holding address information corresponding to the address information transmitted from the communication master becomes a communication partner of the communication master.

特開2007-148592号公報JP 2007-148592 A

特許文献1にて開示されたI2C通信方式の通信では、特定の通信スレーブを指定するためのアドレス情報を、通信マスタと通信スレーブとの間で通信が行われるたびに送受信する必要がある。また、通信スレーブは、自身が通信マスタの通信相手として選択されているか否かをアドレス情報に基づいて確認する必要がある。 In the communication of the I2C communication method disclosed in Patent Document 1, it is necessary to transmit and receive address information for designating a specific communication slave each time communication is performed between the communication master and the communication slave. Also, the communication slave needs to confirm whether or not it is selected as the communication partner of the communication master based on the address information.

このような通信方式では、データのフォーマットとしてアドレス情報を含ませる必要があり、アドレス情報の分だけ送信可能なデータ量が低減してしまう。また、通信スレーブは、自身が通信相手として選択されているか否かを通信のたびに確認するため、通信が開始されるまでに待ち時間が生じてしまうおそれがある。以上のように、特許文献1にて開示されたI2C通信方式では、通信マスタと通信スレーブとの間のデータ通信速度を十分に向上させることができないおそれがある。 In such a communication method, it is necessary to include address information in the data format, and the amount of data that can be transmitted is reduced by the amount of the address information. In addition, since the communication slave checks whether or not it is selected as a communication partner at each communication, there is a possibility that a waiting time may occur before communication is started. As described above, the I2C communication method disclosed in Patent Document 1 may not be able to sufficiently improve the data communication speed between the communication master and the communication slave.

また、通知チャネルとデータ通信チャネルの2線により、1対多のシングルマスター方式通信を行う通信方式がある。この通信方式では、全通信スレーブに通信マスタから通信を行うためのブロードキャスト通信と、通信マスタが指定した特定の通信スレーブと通信を行うためのP2P通信の2つの通信方式を切り替えて通信を行う。このとき、全通信スレーブは、通知チャンネルの電圧レベルが所定の電圧レベルの場合に、データ通信チャンネルにデータが流れると、ブロードキャスト通信と判断する。また、通知チャンネルの電圧レベルが、ブロードキャスト通信時の所定の電圧レベルとは異なる場合に、P2P通信と判断する。 There is also a communication method that performs one-to-many single master communication using two lines, a notification channel and a data communication channel. In this communication method, communication is performed by switching between two communication methods: broadcast communication for communicating from the communication master to all communication slaves, and P2P communication for communicating with a specific communication slave designated by the communication master. At this time, when the voltage level of the notification channel is a predetermined voltage level, all communication slaves determine broadcast communication when data flows through the data communication channel. Also, when the voltage level of the notification channel is different from the predetermined voltage level for broadcast communication, it is determined that the communication is P2P communication.

このような通信の場合、通知チャンネルの電圧レベルと通信信号のタイミングが重要となる。すなわち、送信側が設定している通知チャンネルの電圧レベルと通信信号のタイミングと、受信側が判断している通知チャンネルの電圧レベルと通信信号のタイミングが一致しない場合、送信側と受信側とにおいて、通信方式の認識誤差が発生する。例えば、送信側は、P2P通信として通信しているのに対し、受信側はブロードキャスト通信と判断してしまう不具合が発生する。 For such communication, the voltage level of the notification channel and the timing of the communication signal are important. That is, if the voltage level of the notification channel set by the transmitting side and the timing of the communication signal do not match the voltage level of the notification channel and the timing of the communication signal determined by the receiving side, the transmitting side and the receiving side cannot communicate. Method recognition error occurs. For example, while the transmitting side communicates as P2P communication, the receiving side may determine that the communication is broadcast communication.

一方、通知チャンネルを通信チャンネルに接続される全ノードが制御する方法の場合、オープンドレイン接続となる場合が多い。この場合、通知チャンネルの電圧レベル変化は、通信チャンネルに比べ遅くなる。この場合、送信側が、通知チャンネルの電圧レベルを変化させた後に、通信チャンネルにデータを送信したとしても、通知チャンネルが受信側で電圧レベルの変化を検出する前に、データを受信してしまい、受信側が通信方式を誤認識する不具合が発生する。 On the other hand, in the case of the method in which all nodes connected to the communication channel control the notification channel, open-drain connection is often used. In this case, the voltage level change of the notification channel will be slower than that of the communication channel. In this case, even if the transmitting side transmits data to the communication channel after changing the voltage level of the notification channel, the data is received before the notification channel detects the change in the voltage level on the receiving side. There is a problem that the receiving side incorrectly recognizes the communication method.

本発明は、カメラとアクセサリとの間の通信を高速で高品質に行うことができるアクセサリ、カメラおよび通信制御プログラムを提供することを目的とする。 SUMMARY OF THE INVENTION An object of the present invention is to provide an accessory, a camera, and a communication control program that enable high-speed, high-quality communication between the camera and the accessory.

本発明の一側面としてのアクセサリは、カメラに対して装着可能なアクセサリであって、カメラとの間で行う、データ通信に用いられるデータ通信チャネルとデータ通信チャネルを介して行う通信のタイミングを通知する通知チャネルとを含むチャネルを用いた通信を制御するアクセサリ制御部を有し、アクセサリ制御部は、通信相手の指定を伴わずに行われる通信のために用いられる第1通信方式と、カメラと指定された通信相手との間で行われる通信のために用いられる第2通信方式と、に切り替え可能であり、カメラからデータを受信している間の通知チャネルの電圧レベルは、第1通信方式と第2通信方式では異なり、通知チャネルの電圧レベルが最後に変化してから所定のインターバル時間が経過した後に、データ通信チャネルを介してカメラにデータを送信することを特徴とする。 An accessory as one aspect of the present invention is an accessory that can be attached to a camera, and notifies the data communication channel used for data communication with the camera and the timing of communication performed via the data communication channel. and an accessory control unit for controlling communication using a channel including a notification channel to be used, and the accessory control unit includes a first communication method used for communication performed without specifying a communication partner, a camera, and and a second communication method used for communications conducted with a designated communication partner, and the voltage level of the notification channel while receiving data from the camera is switched to the first communication method. Unlike the second communication method , data is transmitted to the camera via the data communication channel after a predetermined interval has passed since the last change in the voltage level of the notification channel.

本発明の他の側面としてのアクセサリは、カメラに対して装着可能なアクセサリであって、カメラとの間で行う、データ通信に用いられるデータ通信チャネルとデータ通信チャネルを介して行う通信のタイミングを通知する通知チャネルとを含むチャネルを用いた通信を制御するアクセサリ制御部を有し、アクセサリ制御部は、通信相手の指定を伴わずに行われる通信のために用いられる第1通信方式と、カメラと指定された通信相手との間で行われる通信のために用いられる第2通信方式と、に切り替え可能であり、カメラからデータを受信している間の通知チャネルの電圧レベルは、第1通信方式と第2通信方式では異なり、第2通信方式において、データ通信チャネルにデータの送信が完了した後、所定のインターバル時間が経過した後に通知チャネルの電圧を、第2通信方式時にデータを受信している間の電圧レベルから第1通信方式時にデータを受信している間の電圧レベルに変化させることを特徴とする。 An accessory as another aspect of the present invention is an accessory that can be attached to a camera, and which is used for data communication between the camera and the timing of communication via the data communication channel. an accessory control unit for controlling communication using a channel including a notification channel for notification; and a second communication method used for communication that takes place with a designated communication partner, and the voltage level of the notification channel while receiving data from the camera is controlled by the first communication method method and the second communication method, in the second communication method, after the data transmission to the data communication channel is completed, the voltage of the notification channel is changed after a predetermined interval time has passed, and in the second communication method, the data is received. The voltage level is changed from the voltage level during data reception to the voltage level during data reception during the first communication method.

本発明の他の側面としてのカメラは、アクセサリが装着可能なカメラであって、アクセサリとの間で行う、データ通信に用いられるデータ通信チャネルとデータ通信チャネルを介して行う通信のタイミングを通知する通知チャネルとを含むチャネルを用いた通信を制御するカメラ制御部を有し、カメラ制御部は、通信相手の指定を伴わずに行われる通信のために用いられる第1通信方式と、カメラと指定された通信相手との間で行われる通信のために用いられる第2通信方式と、に切り替え可能であり、アクセサリがカメラからデータを受信している間の通知チャネルの電圧レベルは、第1通信方式と第2通信方式では異なり、通知チャネルの電圧レベルが最後に変化してから所定のインターバル時間が経過した後にデータを送信することを特徴とする。 A camera according to another aspect of the present invention is a camera to which an accessory can be attached, and notifies the data communication channel used for data communication with the accessory and the timing of communication performed via the data communication channel. a camera control unit for controlling communication using a channel including a notification channel; and a second communication method used for communication conducted with the designated communication partner, and the voltage level of the notification channel while the accessory is receiving data from the camera is controlled by the first communication method. This method differs from the second communication method in that data is transmitted after a predetermined interval time has elapsed since the last change in the voltage level of the notification channel.

本発明の他の側面としてのカメラは、アクセサリとの間で行う、データ通信に用いられるデータ通信チャネルとデータ通信チャネルを介して行う通信のタイミングを通知する通知チャネルとを含むチャネルを用いた通信を制御するカメラ制御部を有し、カメラ制御部は、通信相手の指定を伴わずに行われる通信のために用いられる第1通信方式と、カメラと指定された通信相手との間で行われる通信のために用いられる第2通信方式と、に切り替え可能であり、アクセサリがカメラからデータを受信している間の通知チャネルの電圧レベルは、第1通信方式と第2通信方式では異なり、第2通信方式において、データ通信チャネルにデータの送信が完了した後、所定のインターバル時間が経過した後に通知チャネルの電圧レベルを、第2通信方式時にデータを受信している間の電圧レベルから第1通信方式時にデータを受信している間の電圧レベルに変化させることを特徴とする。 According to another aspect of the present invention, a camera communicates with an accessory using a channel including a data communication channel used for data communication and a notification channel for notifying timing of communication performed via the data communication channel. The camera control unit controls a first communication method used for communication performed without specifying a communication partner, and between the camera and the specified communication partner a second communication scheme used for communication, and the voltage level of the notification channel while the accessory is receiving data from the camera is different between the first and second communication schemes; In the second communication method, after the data transmission to the data communication channel is completed and a predetermined interval time elapses, the voltage level of the notification channel is changed from the voltage level during data reception in the second communication method to the first level. It is characterized by changing the voltage level while receiving data in the communication system.

本発明の他の側面としての通信制御プログラムは、カメラに対して装着可能であり、カメラとの間で行う、データ通信に用いられるデータ通信チャネルとデータ通信チャネルを介して行う通信のタイミングを通知する通知チャネルとを含むチャネルを用いた通信を制御するアクセサリであって、通信相手の指定を伴わずに行われる通信のために用いられる第1通信方式と、カメラと指定された通信相手との間で行われる通信のために用いられる第2通信方式と、に切り替え可能であり、カメラからデータを受信している間の通知チャネルの電圧レベルは、第1通信方式と第2通信方式では異なるアクセサリのコンピュータに、通知チャネルの電圧レベルが最後に変化してから所定のインターバル時間が経過したかどうかを判定するステップと、所定のインターバル時間が経過した後に、データ通信チャネルを介してカメラにデータを送信するステップと、を実行させることを特徴とする。 As another aspect of the present invention, a communication control program can be attached to a camera, and notifies the data communication channel used for data communication with the camera and the timing of communication performed via the data communication channel. An accessory that controls communication using a channel including a notification channel to be used, and a first communication method used for communication performed without specifying a communication partner, and a camera and a specified communication partner and the voltage level of the notification channel while receiving data from the camera is different between the first communication method and the second communication method. determining in the accessory computer whether a predetermined interval has elapsed since the last change in the voltage level of the notification channel; and transmitting data to the camera over the data communication channel after the predetermined interval has elapsed. and the step of transmitting the

本発明の他の側面としての通信制御プログラムは、カメラに対して装着可能であり、カメラとの間で行う、データ通信に用いられるデータ通信チャネルとデータ通信チャネルを介して行う通信のタイミングを通知する通知チャネルとを含むチャネルを用いた通信を制御するアクセサリであって、通信相手の指定を伴わずに行われる通信のために用いられる第1通信方式と、カメラと指定された通信相手との間で行われる通信のために用いられる第2通信方式と、に切り替え可能であり、カメラからデータを受信している間の通知チャネルの電圧レベルは、第1通信方式と第2通信方式では異なるアクセサリのコンピュータに、第2通信方式において、データ通信チャネルにデータの送信が完了してから所定のインターバル時間が経過したかどうかを判定するステップと、所定のインターバル時間が経過した後に通知チャネルの電圧を、第2通信方式時にデータを受信している間の電圧レベルから第1通信方式時にデータを受信している間の電圧レベルに変化させるステップと、を実行させることを特徴とする。 As another aspect of the present invention, a communication control program can be attached to a camera, and notifies the data communication channel used for data communication with the camera and the timing of communication performed via the data communication channel. An accessory that controls communication using a channel including a notification channel to be used, and a first communication method used for communication performed without specifying a communication partner, and a camera and a specified communication partner and the voltage level of the notification channel while receiving data from the camera is different between the first communication method and the second communication method. In the second communication method, the accessory computer determines whether a predetermined interval has elapsed since data transmission to the data communication channel was completed; is changed from a voltage level during data reception in the second communication method to a voltage level during data reception in the first communication method.

本発明の他の側面としての通信制御プログラムは、アクセサリが装着可能であり、アクセサリとの間で行う、データ通信に用いられるデータ通信チャネルとデータ通信チャネルを介して行う通信のタイミングを通知する通知チャネルとを含むチャネルを用いた通信を制御するカメラであって、通信相手の指定を伴わずに行われる通信のために用いられる第1通信方式と、カメラと指定された通信相手との間で行われる通信のために用いられる第2通信方式と、に切り替え可能であり、アクセサリがカメラからデータを受信している間の通知チャネルの電圧レベルは、第1通信方式と第2通信方式では異なるカメラのコンピュータに、通知チャネルの電圧レベルが最後に変化してから所定のインターバル時間が経過したかどうかを判定するステップと、所定のインターバル時間が経過した後にデータを送信するステップと、を実行させることを特徴とする。 According to another aspect of the present invention, a communication control program can be attached to an accessory, and provides a notification for notifying the data communication channel used for data communication with the accessory and the timing of communication performed via the data communication channel. A camera that controls communication using a channel, wherein a first communication method used for communication performed without specifying a communication partner and between the camera and the specified communication partner and a second communication method used for the communication to take place, and the voltage level of the notification channel while the accessory is receiving data from the camera is different for the first communication method and the second communication method. causing the camera's computer to determine whether a predetermined interval has elapsed since the voltage level of the notification channel last changed; and to transmit data after the predetermined interval has elapsed. It is characterized by

本発明の他の側面としての通信制御プログラムは、アクセサリが装着可能であり、アクセサリとの間で行う、データ通信に用いられるデータ通信チャネルとデータ通信チャネルを介して行う通信のタイミングを通知する通知チャネルとを含むチャネルを用いた通信を制御するカメラであって、通信相手の指定を伴わずに行われる通信のために用いられる第1通信方式と、カメラと指定された通信相手との間で行われる通信のために用いられる第2通信方式と、に切り替え可能であり、アクセサリがカメラからデータを受信している間の通知チャネルの電圧レベルは、第1通信方式と第2通信方式では異なるカメラのコンピュータに、第2通信方式において、データ通信チャネルにデータの送信が完了してから所定のインターバル時間が経過したかどうかを判定するステップと、所定のインターバル時間が経過した後に通知チャネルの電圧レベルを、第2通信方式時にデータを受信している間の電圧レベルから第1通信方式時にデータを受信している間の電圧レベルに変化させるステップと、を実行させることを特徴とする。
According to another aspect of the present invention, a communication control program can be attached to an accessory, and provides a notification for notifying the data communication channel used for data communication with the accessory and the timing of communication performed via the data communication channel. A camera that controls communication using a channel, wherein a first communication method used for communication performed without specifying a communication partner and between the camera and the specified communication partner and a second communication method used for the communication to take place, and the voltage level of the notification channel while the accessory is receiving data from the camera is different for the first communication method and the second communication method. In the second communication method, the computer of the camera determines whether or not a predetermined interval time has passed since data transmission to the data communication channel is completed; changing the level from the voltage level while data is being received in the second communication method to the voltage level while data is being received in the first communication method.

本発明によれば、カメラとアクセサリとの間の通信を高速で高品質に行うことができるアクセサリ、カメラおよび通信制御プログラムを提供することができる。 According to the present invention, it is possible to provide an accessory, a camera, and a communication control program that enable high-speed, high-quality communication between the camera and the accessory.

本発明のカメラおよびアクセサリを含むカメラシステムの構成を示すブロック図である。1 is a block diagram showing the configuration of a camera system including the camera and accessories of the present invention; FIG. カメラシステムにおける通信回路を示す概略図である。1 is a schematic diagram showing a communication circuit in a camera system; FIG. データのフォーマットを示す図である。FIG. 4 is a diagram showing a data format; ブロードキャスト通信における通信波形を示す図である。FIG. 4 is a diagram showing communication waveforms in broadcast communication; P2P通信における通信波形を示す図である。FIG. 4 is a diagram showing communication waveforms in P2P communication; 通信方式の切り換え時の通信波形を示す図である。FIG. 10 is a diagram showing communication waveforms when switching communication methods; 通信マスタによるブロードキャスト通信における通信フローを説明するフローチャートである。4 is a flow chart for explaining a communication flow in broadcast communication by a communication master; 通信スレーブによるブロードキャスト通信における通信フローを説明するフローチャートである。FIG. 10 is a flow chart illustrating a communication flow in broadcast communication by communication slaves; FIG. 通信マスタによるP2P通信における通信フローを説明するフローチャートである。4 is a flowchart for explaining a communication flow in P2P communication by a communication master; 通信スレーブによるP2P通信における通信フローを説明するフローチャートである。4 is a flowchart for explaining a communication flow in P2P communication by communication slaves; ブロードキャスト通信における通信波形を示す図である(変形例)。FIG. 12 is a diagram showing communication waveforms in broadcast communication (modification); その他の信号線について説明する図である。It is a figure explaining another signal line. 各ノードの信号線CSの信号検出タイミングを説明する図である。4 is a diagram for explaining signal detection timing of signal lines CS of each node; FIG. 各ノードの発振誤差による影響を説明する図である。FIG. 4 is a diagram for explaining the influence of oscillation errors on each node;

以下、本発明の実施形態について、図面を参照しながら詳細に説明する。各図において、同一の部材については同一の参照番号を付し、重複する説明は省略する。アクセサリとカメラとの間では、複数の通信方式に基づく通信が実行される。「通信方式」はブロードキャスト通信方式(第1通信方式)とP2P通信方式(第2通信方式)を意味する。 BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. In each figure, the same reference numerals are given to the same members, and overlapping descriptions are omitted. Communication based on a plurality of communication methods is performed between the accessory and the camera. "Communication method" means a broadcast communication method (first communication method) and a P2P communication method (second communication method).

本発明では、ブロードキャスト通信において、通信マスタとしてのカメラは、通信スレーブとしての各アクセサリに対して一斉にデータ送信を行う。カメラが、特定のアクセサリとの1対1の通信であるP2P通信を行う場合、P2P通信におけるカメラとの通信相手を示す情報がブロードキャスト通信において各アクセサリに対して通知される。 In the present invention, in broadcast communication, a camera as a communication master simultaneously transmits data to each accessory as a communication slave. When the camera performs P2P communication, which is one-to-one communication with a specific accessory, each accessory is notified in broadcast communication of information indicating a communication partner with the camera in P2P communication.

P2P通信が開始されるタイミングでは、各アクセサリに対してカメラの通信相手が通知されているため、P2P通信において、カメラは通信相手を特定するための情報を各アクセサリに送信する必要がない。このように、ブロードキャスト通信においてカメラとの通信相手を選択した上で、カメラと選択された通信相手との1対1の通信方式であるP2P通信への切り替えを行うことで、P2P通信における通信速度を向上させることができる。
<カメラシステムの構成についての説明>
図1は、本発明のカメラ200と、カメラ200に対して着脱可能なアクセサリとしての中間アダプタ300および交換レンズ100を含むカメラシステムの構成を示すブロック図である。交換レンズ100および中間アダプタ300等のアクセサリとカメラ200は、各々の通信手段を用いて、機器間で制御命令や内部情報の伝送を行う。また、各々の通信手段はそれぞれ複数の通信方式をサポートしており、通信するデータの種類や通信目的に応じて、互いに同期して同一の通信方式へ切替えることにより、様々な状況に対する最適な通信形式を選択することが可能となっている。なお、図1では、一例としてカメラ200に中間アダプタ300が装着されている構成を示しているが、本発明はこれに限定されない。交換レンズ100をカメラ200に直接、装着してもよいし、1つまたは複数の中間アダプタを介してカメラ200に装着してもよい。
When the P2P communication is started, each accessory is notified of the communication partner of the camera. Therefore, in the P2P communication, the camera does not need to transmit information for specifying the communication partner to each accessory. In this way, after selecting a communication partner with the camera in broadcast communication, switching to P2P communication, which is a one-to-one communication method between the camera and the selected communication partner, reduces the communication speed in P2P communication. can be improved.
<Description of camera system configuration>
FIG. 1 is a block diagram showing the configuration of a camera system including a camera 200 of the present invention, an intermediate adapter 300 as an accessory detachable from the camera 200, and an interchangeable lens 100. As shown in FIG. Accessories such as the interchangeable lens 100 and the intermediate adapter 300 and the camera 200 use their respective communication means to transmit control commands and internal information between devices. In addition, each communication means supports multiple communication methods, and by synchronizing with each other and switching to the same communication method according to the type of data to be communicated and the purpose of communication, optimal communication for various situations It is possible to select the format. Although FIG. 1 shows a configuration in which the intermediate adapter 300 is attached to the camera 200 as an example, the present invention is not limited to this. Interchangeable lens 100 may be attached directly to camera 200 or may be attached to camera 200 via one or more intermediate adapters.

交換レンズ100と中間アダプタ300は、結合機構であるマウント400を介して機械的および電気的に接続されている。同様に、中間アダプタ300とカメラ200は、結合機構であるマウント401を介して機械的および電気的に接続されている。交換レンズ100および中間アダプタ300は、マウント400,401に設けられた電源端子部(図示せず)を介してカメラ200から電力を取得し、後述する各種アクチュエータや各装置のマイクロコンピュータの動作に必要な電力を供給する。また、交換レンズ100、カメラ200および中間アダプタ300は、マウント400,401に設けられた通信端子部を介して相互に通信を行う。 Interchangeable lens 100 and intermediate adapter 300 are mechanically and electrically connected via mount 400, which is a coupling mechanism. Similarly, intermediate adapter 300 and camera 200 are mechanically and electrically connected via mount 401, which is a coupling mechanism. The interchangeable lens 100 and the intermediate adapter 300 acquire power from the camera 200 via power supply terminals (not shown) provided on the mounts 400 and 401, which are necessary for the operation of various actuators and microcomputers of each device, which will be described later. power supply. Interchangeable lens 100 , camera 200 and intermediate adapter 300 communicate with each other via communication terminals provided on 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 zoom lens (magnifying lens) 102 that performs variable magnification, an aperture unit 114 that adjusts the amount of light, an anti-vibration lens 103, and a focus lens 104 that performs focus adjustment. .

ズームレンズ102はステッピングモータ107によって駆動されるレンズ保持枠105により保持され、フォーカスレンズ104はステッピングモータ108によって駆動されるレンズ保持枠106により保持されている。 A zoom lens 102 is held by a lens holding frame 105 driven by a stepping motor 107 , and a focus lens 104 is held by a lens holding frame 106 driven by a stepping motor 108 .

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

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

レンズマイクロコンピュータ(以下、レンズマイコンという)111は、交換レンズ100内の各部の動作を制御するレンズ制御手段(アクセサリ制御部)である。レンズマイコン111は、アクセサリ通信部としてのレンズ通信部112を介して、カメラ200から送信された制御コマンドや送信要求コマンドを受信する。レンズマイコン111は、制御コマンドに対応するレンズ制御を行ったり、レンズ通信部112を介して送信要求コマンドに対応するレンズデータをカメラ200に送信したりする。 A lens microcomputer (hereinafter referred to as lens microcomputer) 111 is lens control means (accessory control section) that controls the operation of each section in the interchangeable lens 100 . The lens microcomputer 111 receives control commands and transmission request commands transmitted from the camera 200 via the lens communication unit 112 as an accessory communication unit. 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 section 112 .

また、レンズマイコン111は、制御コマンドのうち変倍やフォーカシングに関するコマンドに応答してズーム駆動回路119およびフォーカス駆動回路120に駆動信号を出力してステッピングモータ107,108を駆動させる。これにより、ズームレンズ102による変倍動作を制御するズーム処理やフォーカスレンズ104による焦点調節動作を制御するAF(オートフォーカス)処理が行われる。 Further, 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 (autofocus) processing for controlling the focus adjustment operation by the focus lens 104 are performed.

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

さらに、レンズマイコン111は、カメラ200の振動に応じて、防振駆動回路125を介して防振アクチュエータ126を駆動し、防振レンズ103をシフトさせる。これにより、防振処理が行われる。 Furthermore, the lens microcomputer 111 drives the anti-vibration actuator 126 via the anti-vibration drive circuit 125 in accordance with the vibration of the camera 200 to shift the anti-vibration lens 103 . Thereby, vibration isolation processing is performed.

また、交換レンズ100は、操作リング130と、操作リング130の操作量および操作方向を検出する操作リング検出手段131とを有する。 The interchangeable lens 100 also has an operation ring 130 and an operation ring detection means 131 for detecting an operation amount and an operation direction of the operation ring 130 .

中間アダプタ300は、例えば、焦点距離を変更するためのエクステンダであり、変倍レンズ301およびアダプタマイクロコンピュータ(以下、アダプタマイコンという)302を有する。アダプタマイコン302は、中間アダプタ300内の各部の動作を制御する中間アダプタ制御手段(アクセサリ制御部)である。アダプタマイコン302は、アクセサリ通信部としてのアダプタ通信部303を介して、カメラ200から送信された制御コマンドや送信要求コマンドを受信する。アダプタマイコン302は、制御コマンドに対応する中間アダプタ制御を行ったり、アダプタ通信部303を介して送信要求コマンドに対応する中間アダプタデータをカメラ200に送信したりする。 The intermediate adapter 300 is, for example, an extender for changing the focal length, and has a variable power lens 301 and an adapter microcomputer (hereinafter referred to as an adapter microcomputer) 302 . The adapter microcomputer 302 is intermediate adapter control means (accessory control section) that controls the operation of each section in the intermediate adapter 300 . The adapter microcomputer 302 receives control commands and transmission request commands transmitted from the camera 200 via an adapter communication section 303 as an accessory communication section. The adapter microcomputer 302 performs intermediate adapter control corresponding to the control command, and transmits intermediate 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に記録し、表示部206に表示させる。 The camera 200 records a subject image signal generated by an imaging element 201 such as a CCD sensor or a CMOS sensor, passes through an A/D conversion circuit 202 and a signal processing circuit 203 in a recording unit 204, and displays the signal on a display unit 206. Let

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

カメラマイコン205は、ブロードキャスト通信方式では、中間アダプタ300と交換レンズ100に対してデータを一斉に送信し、P2P通信方式では、中間アダプタ300と交換レンズ100のいずれか一方と1対1のデータ通信を行う。
<通信回路の構成についての説明>
以下、図2を参照して、カメラ200、交換レンズ100および中間アダプタ300を含むカメラシステムの間で構成される通信回路について説明する。図2は、カメラシステムにおける通信回路を示す概略図である。
The camera microcomputer 205 simultaneously transmits data to the intermediate adapter 300 and the interchangeable lens 100 in the broadcast communication method, and one-to-one data communication with either the intermediate adapter 300 or the interchangeable lens 100 in the P2P communication method. I do.
<Description of the configuration of the communication circuit>
A communication circuit configured between the camera system including the camera 200, the interchangeable lens 100 and the intermediate adapter 300 will be described below with reference to FIG. FIG. 2 is a schematic diagram showing a communication circuit in the camera system.

カメラマイコン205、レンズマイコン111およびアダプタマイコン302は、マウント400,401に設けられた通信端子部を介して接続された信号線を用いて通信を行う。信号線は、通信のフロー制御を行うための信号を伝搬し、信号の伝達に用いられる信号線(通知チャネル)CSと、送受信するデータを伝搬し、データ通信に用いられる信号線(データ通信チャネル)DATAの2本で構成される。 The camera microcomputer 205, the lens microcomputer 111, and the adapter microcomputer 302 communicate using signal lines connected via communication terminal sections provided on the mounts 400 and 401. FIG. The signal line propagates a signal for performing communication flow control and propagates a signal line (notification channel) CS used for signal transmission, and a signal line (data communication channel) CS for transmitting and receiving data and used for data communication. ) DATA.

信号線CSは、カメラマイコン205、レンズマイコン111およびアダプタマイコン302に接続されており、各マイコンは、信号線の信号レベル(電圧レベル)を検出可能である。また、信号線CSは、カメラ200内の電源にプルアップ接続されるとともに、交換レンズ100の接地スイッチ1121、カメラ200の接地スイッチ2081および中間アダプタ300の接地スイッチ3031を介してGNDに接続される。すなわち、信号線CSは、オープンドレイン接続されている。この構成により、交換レンズ100、カメラ200および中間アダプタ300はそれぞれ、各接地スイッチをオン(接続)することにより信号線CSの信号レベルをLow(第1レベル)に設定可能である。一方、交換レンズ100、カメラ200および中間アダプタ300の全てが各々の接続スイッチをオフ(遮断)することで、信号線CSの信号レベルをHi(第2レベル)に設定可能である。本実施形態では、接地スイッチを接続状態とすることを「信号線CSにLow出力を行う」と記載する。また、接地スイッチを遮断状態とすることを「信号線CSにHigh出力を行う」と記載する。なお、通信時に信号線CSを使用して伝搬する制御信号の内容や操作手順の詳細については後述する。 The signal line CS is connected to the camera microcomputer 205, the lens microcomputer 111 and the adapter microcomputer 302, and each microcomputer can detect the signal level (voltage level) of the signal line. In addition, the signal line CS is pulled up to the power supply in the camera 200 and connected to GND 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 intermediate adapter 300. . That is, the signal line CS is open-drain connected. With this configuration, the interchangeable lens 100, the camera 200, and the intermediate adapter 300 can set the signal level of the signal line CS to Low (first level) by turning on (connecting) each ground switch. On the other hand, the signal level of the signal line CS can be set to Hi (second level) by turning off (blocking) the connection switches of all of the interchangeable lens 100, the camera 200, and the intermediate adapter 300. FIG. In this embodiment, setting the ground switch to the connected state is described as "outputting Low to the signal line CS". Also, setting the grounding switch to the cut-off state is described as "outputting a high signal to the signal line CS". Details of the contents of the control signal propagated using the signal line CS during communication and the operation procedure will be described later.

信号線DATAは、データの伝搬方向を切り換えながら使用可能な単線の双方向データ送信線である。信号線DATAは、交換レンズ100の入出力切り換えスイッチ1122を介してレンズマイコン111に接続可能である。また、信号線DATAは、カメラ200の入出力切り換えスイッチ2082を介してカメラマイコン205に接続可能である。また、信号線DATAは、中間アダプタ300の入出力切り換えスイッチ3032を介してアダプタマイコン302に接続可能である。各マイコンは、データを送信するためのデータ出力部(CMOS方式)とデータを受信するためのデータ入力部(CMOS方式)を備えている。各マイコンは、入出力切り換えスイッチを操作することで信号線DATAをデータ出力部に接続するかデータ入力部に接続するかを選択することができる。この構成により、信号線DATAがデータ出力部に接続するように入出力切り換えスイッチが操作されることで、交換レンズ100、カメラ200および中間アダプタ300はデータ送信が可能となる。一方、信号線DATAがデータ入力部に接続するように入出力切り換えスイッチが操作されることで、交換レンズ100、カメラ200および中間アダプタ300はデータ受信が可能となる。通信時における信号線DATAの入出力切り換え手順の詳細については後述する。 The signal line DATA is a single-line bidirectional data transmission line that can be used while switching the data propagation direction. The signal line DATA can be connected to the lens microcomputer 111 via the input/output switch 1122 of the interchangeable lens 100 . Also, the signal line DATA can be connected to the camera microcomputer 205 via the input/output switch 2082 of the camera 200 . Also, the signal line DATA can be connected to the adapter microcomputer 302 via the input/output switch 3032 of the intermediate adapter 300 . Each microcomputer has a data output section (CMOS system) for transmitting data and a data input section (CMOS system) for receiving data. Each microcomputer can select whether to connect the signal line DATA to the data output section or to the data input section by operating the input/output switch. With this configuration, the interchangeable lens 100, the camera 200, and the intermediate adapter 300 can transmit data by operating the input/output switch so that the signal line DATA is connected to the data output section. On the other hand, the interchangeable lens 100, the camera 200 and the intermediate adapter 300 can receive data by operating the input/output switch so that the signal line DATA is connected to the data input section. The details of the input/output switching procedure of the signal line DATA during communication will be described later.

なお、図2では本発明における通信回路の一例について示したが、本発明はこれに限定されない。例えば、信号線CSをカメラ200内でGNDにプルダウン接続するとともに、接地スイッチ1121、接地スイッチ2081および接地スイッチ3031を介して不図示の電源に接続してもよい。また、信号線DATAは常に各マイコンのデータ入力部に接続される構成とし、信号線DATAと各データ出力部との接続/遮断をスイッチにより操作可能な構成としてもよい。
<通信データフォーマットの説明>
図3を参照して、カメラマイコン205、レンズマイコン111およびアダプタマイコン302の間でやり取りされるデータのフォーマットについて説明する。図3は、信号線DATAを使用して送受信されるデータのフォーマットを示す図である。なお、このフォーマットは、後述するブロードキャスト通信およびP2P通信で共通である。
Although FIG. 2 shows an example of the communication circuit in the present invention, the present invention is not limited to this. For example, the signal line CS may be pulled down to GND in the camera 200 and connected to a power supply (not shown) via the ground switches 1121, 2081 and 3031. Alternatively, the signal line DATA may be always connected to the data input section of each microcomputer, and the connection/disconnection between the signal line DATA and each data output section may be operated by a switch.
<Description of communication data format>
The format of data exchanged among the camera microcomputer 205, lens microcomputer 111 and adapter microcomputer 302 will be described with reference to FIG. FIG. 3 is a diagram showing the format of data transmitted and received using the signal line DATA. Note that this format is common to broadcast communication and P2P communication, which will be described later.

通信データフォーマットとしては、あらかじめ相互で通信を行う通信速度を規定しておき、この規定に沿った通信ビットレートで送受信を行う、いわゆる調歩同期式通信を基本としている。通信ビットレートとは、1秒間に転送することができるデータ量を示し、単位はbps(bit per second)で表される。図3では、最小通信単位である1フレームデータの信号波形が示されている。データ送信を行っていない非送信状態では、信号レベルはHiで維持されている。データの送信開始をデータ受信側に通知するために、信号レベルを1ビット期間(スタートビットST)だけLowにする。次の2ビット目から9ビット目までの8ビット期間で1バイトのデータを送信する。データのビット配列はMSB(Most Significant Bit)ファーストフォーマットとして、最上位のデータD7から始まり、順にデータD6、データD5と続き、最下位のデータD0で終わる。続いて、10ビット目には1ビットのパリティー情報(PA)が付加され、最後に送信データの最後を示すために、信号レベルを1ビット期間(ストップビットSP)だけHiにすることで、スタートビットSTから開始された1フレームデータの送信期間が終了する。 The communication data format is based on so-called asynchronous communication in which a communication speed for mutual communication is specified in advance and transmission and reception are performed at a communication bit rate according to this specification. The communication bit rate indicates the amount of data that can be transferred in one second, and is expressed in units of bps (bits per second). FIG. 3 shows the signal waveform of one frame data, which is the minimum communication unit. In the non-transmission state in which data is not transmitted, the signal level is maintained at Hi. In order to notify the start of data transmission to the data receiving side, the signal level is set to Low for one bit period (start bit ST). 1-byte data is transmitted in the next 8-bit period from the 2nd bit to the 9th bit. The data bit array is MSB (Most Significant Bit) first format, starting with data D7 at the highest level, followed by data D6 and data D5 in order, and ending with data D0 at the lowest level. Subsequently, 1-bit parity information (PA) is added to the 10th bit, and finally, in order to indicate the end of the transmission data, the signal level is set to Hi for a 1-bit period (stop bit SP) to start. The transmission period of one frame data starting from bit ST ends.

なお、図3では、本発明におけるデータフォーマットの一例について記載したが、本発明はこれに限定されない。例えば、データのビット配列をLSB(Least Significant Bit)ファーストフォーマットとして、最下位のデータD0から始まり、順にデータD1、データD2と続き、最上位のデータD7で終わるようにしてもよい。また、本実施形態では、8ビット期間で1バイトのデータが送信されるが、8ビット以外のビット期間で1バイトのデータが送信されるようにしてもよい。また、パリティー情報を付加しなくてもよい。また、後述するブロードキャスト通信およびP2P通信でデータフォーマットを切り換えてもよい。
<ブロードキャスト通信の説明>
図4を参照して、カメラマイコン205、レンズマイコン111およびアダプタマイコン302の間で行われるブロードキャスト通信の一例について説明する。図4は、ブロードキャスト通信における通信波形を示す図である。ブロードキャスト通信とは、カメラマイコン205、レンズマイコン111およびアダプタマイコン302のうちの1つのマイコンから他のマイコンに対して同時にデータを送信する、1対多の一斉配信モードである。図4では、カメラマイコン205からレンズマイコン111およびアダプタマイコン302へのブロードキャスト通信に応答する形でアダプタマイコン302からカメラマイコン205およびレンズマイコン111へブロードキャスト通信を行う場合を示している。
Although FIG. 3 describes an example of the data format in the present invention, the present invention is not limited to this. For example, the data bit arrangement may be LSB (Least Significant Bit) first format, starting with the least significant data D0, followed by data D1, data D2, and ending with the most significant data D7. Also, in the present embodiment, 1-byte data is transmitted in an 8-bit period, but 1-byte data may be transmitted in a bit period other than the 8-bit period. Also, parity information may not be added. Also, the data format may be switched between broadcast communication and P2P communication, which will be described later.
<Description of broadcast communication>
An example of broadcast communication performed among the camera microcomputer 205, the lens microcomputer 111, and the adapter microcomputer 302 will be described with reference to FIG. FIG. 4 is a diagram showing communication waveforms in broadcast communication. Broadcast communication is a one-to-many simultaneous distribution mode in which data is simultaneously transmitted from one of the camera microcomputer 205, lens microcomputer 111 and adapter microcomputer 302 to the other microcomputers. FIG. 4 shows a case where broadcast communication is performed from the adapter microcomputer 302 to the camera microcomputer 205 and the lens microcomputer 111 in response to broadcast communication from the camera microcomputer 205 to the lens microcomputer 111 and the adapter microcomputer 302 .

まず、カメラマイコン205は、ブロードキャスト通信を開始することをレンズマイコン111およびアダプタマイコン302に通知するために、信号線CSへのLow出力を開始する。次に、カメラマイコン205は、信号線CSへのLOW出力の開始からインターバル時間(所定のインターバル時間、第4インターバル時間)Tbm1経過後に、送信するデータを信号線DATAに出力する。一方、レンズマイコン111とアダプタマイコン302は、信号線DATAから入力されたスタートビットSTを検出したタイミングで信号線CSへのLow出力を開始する。なお、この時点ではすでにカメラマイコン205が信号線CSへのLow出力を開始しているので、信号線CSの信号レベルは変化しない。 First, the camera microcomputer 205 starts outputting Low to the signal line CS in order to notify the lens microcomputer 111 and the adapter microcomputer 302 of starting broadcast communication. Next, the camera microcomputer 205 outputs the data to be transmitted to the signal line DATA after an interval time (predetermined interval time, fourth interval time) Tbm1 has elapsed from the start of LOW output to the signal line CS. On the other hand, the lens microcomputer 111 and the adapter microcomputer 302 start outputting Low to the signal line CS at the timing of detecting the start bit ST input from the signal line DATA. At this time, the camera microcomputer 205 has already started outputting Low to the signal line CS, so the signal level of the signal line CS does not change.

レンズマイコン111およびアダプタマイコン302は、信号線CSにLow出力を行うことで、通信待機要求を通知する。通信待機要求は、カメラシステムにおける通信を一時停止させるためのものであり、信号線CSの信号レベルにより通信待機要求の有無が判断される。 The lens microcomputer 111 and the adapter microcomputer 302 notify the communication standby request by outputting Low to the signal line CS. The communication standby request is for temporarily stopping communication in the camera system, and the presence or absence of the communication standby request is determined according to the signal level of the signal line CS.

カメラマイコン205は、ストップビットSPの出力まで終了した後、信号線CSへのLow出力を解除する。一方、レンズマイコン111とアダプタマイコン302は、信号線DATAから入力されたストップビットSPまで受信した後、受信したデータの解析および受信したデータに紐づけられた内部処理を行う。その後、レンズマイコン111とアダプタマイコン302は、次のデータを受信するための準備を整えた後、信号線CSへのLow出力を解除する。前述したように、信号線CSの信号レベルは、カメラマイコン205、レンズマイコン111およびアダプタマイコン302の全てが信号線CSへのLow出力を解除することでHiとなる。したがって、信号線CSの信号レベルがHiとなることを確認することで、全てのマイコンが今回の通信に関する処理を終了し、次の通信を行うための準備を整えたと判断することができる。 After completing the output of the stop bit SP, the camera microcomputer 205 cancels the Low output to the signal line CS. On the other hand, the lens microcomputer 111 and the adapter microcomputer 302, after receiving up to the stop bit SP input from the signal line DATA, analyze the received data and perform internal processing associated with the received data. After that, the lens microcomputer 111 and the adapter microcomputer 302 cancel the Low output to the signal line CS after making preparations for receiving the next data. 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 Low output to the signal line CS. Therefore, by confirming that the signal level of the signal line CS is Hi, it can be determined that all the microcomputers have completed the processing related to the current communication and are ready for the next communication.

アダプタマイコン302は、信号線CSの信号レベルがHiに戻ったことを確認した後、ブロードキャスト通信を開始することをカメラマイコン205およびレンズマイコン111に通知するために、信号線CSへのLow出力を開始する。次に、アダプタマイコン302は、信号線CSへのLOW出力の開始からインターバル時間(所定のインターバル時間、第1インターバル時間)Tbs1経過後に、送信するデータを信号線DATAに出力する。一方、カメラマイコン205とレンズマイコン111は、信号線DATAから入力されたスタートビットSTを検出したタイミングで信号線CSへのLow出力を開始する。なお、この時点ではすでにアダプタマイコン302が信号線CSへのLow出力を開始しているので、信号線CSの信号レベルは変化しない。 After confirming that the signal level of the signal line CS has returned to Hi, the adapter microcomputer 302 outputs Low to the signal line CS in order to notify the camera microcomputer 205 and the lens microcomputer 111 of starting broadcast communication. Start. Next, the adapter microcomputer 302 outputs data to be transmitted to the signal line DATA after an interval time (predetermined interval time, first interval time) Tbs1 has elapsed from the start of LOW output to the signal line CS. On the other hand, the camera microcomputer 205 and the lens microcomputer 111 start outputting Low to the signal line CS at the timing of detecting the start bit ST input from the signal line DATA. At this time, the adapter microcomputer 302 has already started outputting Low to the signal line CS, so the signal level of the signal line CS does not change.

アダプタマイコン302は、ストップビットSPの出力まで終了した後、信号線CSへのLow出力を解除する。一方、カメラマイコン205とレンズマイコン111は、信号線DATAから入力されたストップビットSPまで受信した後、受信したデータの解析および受信したデータに紐づけられた内部処理を行う。その後、カメラマイコン205とレンズマイコン111は、次のデータを受信するための準備を整えた後、信号線CSへのLow出力を解除する。したがって、信号線CSの信号レベルはHiとなる。これにより、全てのマイコンが今回の通信に関する処理を終了し、次の通信を行うための準備を整えたと判断することができる。 After completing the output of the stop bit SP, the adapter microcomputer 302 cancels the Low output to the signal line CS. On the other hand, the camera microcomputer 205 and the lens microcomputer 111, after receiving up to the stop bit SP input from the signal line DATA, analyze the received data and perform internal processing associated with the received data. After that, the camera microcomputer 205 and the lens microcomputer 111 release the Low output to the signal line CS after making preparations for receiving the next data. Therefore, the signal level of the signal line CS becomes Hi. As a result, it can be determined that all the microcomputers have completed the processing related to the current communication and are ready for the next communication.

以上説明したように、ブロードキャスト通信では、データ送信側が、信号線CSにLow出力を行い、信号線CSの信号レベルをHiからLowにすることで、ブロードキャスト通信の開始をデータ受信側に通知している。また、データ受信側は、信号線CSへの出力をLow出力からHigh出力に変化させることで、通信待機要求の解除をカメラシステムの各構成要素に通知している。 As described above, in broadcast communication, the data transmission side outputs Low to the signal line CS to change the signal level of the signal line CS from Hi to Low, thereby notifying the data reception side of the start of broadcast communication. there is Further, the data receiving side changes the output to the signal line CS from Low output to High output, thereby notifying each component of the camera system of cancellation of the communication standby request.

なお、図4では、ブロードキャスト通信の通信波形の一例について記載したが、本発明はこれに限定されない。例えば、一度のブロードキャスト通信で送信するデータを1バイトのデータでなく、複数バイトにしてもよい。 Note that FIG. 4 describes an example of a communication waveform of broadcast communication, but the present invention is not limited to this. For example, the data transmitted in one broadcast communication may be multi-byte data instead of 1-byte data.

通信方式をブロードキャスト通信からP2P通信に切り替える場合は、カメラマイコン205からレンズマイコン111およびアダプタマイコン302に対して、通信方式の切り替えを指示するデータを送信すればよい。また、後述する通信相手指定データにブロードキャスト通信からP2P通信への切り替えコマンドとしての機能を持たせてもよい。
<P2P通信の説明>
図5を参照して、カメラマイコン205、レンズマイコン111およびアダプタマイコン302の間で行われるP2P通信の一例について説明する。図5は、P2P通信における通信波形を示す図である。P2P通信とは、カメラマイコン205と、レンズマイコン111とアダプタマイコン302の中からカメラマイコン205により指定された1つのマイコンとの間のみでデータを送受信する、1対1の個別通信モードである。
When switching the communication method from broadcast communication to P2P communication, the camera microcomputer 205 may transmit data instructing switching of the communication method to the lens microcomputer 111 and the adapter microcomputer 302 . Also, communication partner designation data, which will be described later, may have a function as a command for switching from broadcast communication to P2P communication.
<Description of P2P communication>
An example of P2P communication performed among the camera microcomputer 205, the lens microcomputer 111 and the adapter microcomputer 302 will be described with reference to FIG. FIG. 5 is a diagram showing communication waveforms in P2P communication. P2P communication is a one-to-one individual communication mode in which data is transmitted and received only between the camera microcomputer 205 and one microcomputer specified by the camera microcomputer 205 from among the lens microcomputer 111 and the adapter microcomputer 302 .

図5では、ブロードキャスト通信からP2P通信への切り替わり後、またはP2P通信にて、レンズマイコン111にてデータが送信された後、再度P2P通信を行う場合を示している。P2P通信は、信号線CSの信号レベルがHiに変化した後、開始される。図5では、カメラマイコン205からの1バイトのデータ送信に応答する形でレンズマイコン111からカメラマイコン205に対して2バイトのデータ送信を行う場合を示している。 FIG. 5 shows a case where P2P communication is performed again after switching from broadcast communication to P2P communication, or after data is transmitted by the lens microcomputer 111 in P2P communication. P2P communication is started after the signal level of the signal line CS changes to Hi. FIG. 5 shows a case where the lens microcomputer 111 transmits 2-byte data to the camera microcomputer 205 in response to 1-byte data transmission from the camera microcomputer 205 .

P2P通信では、データ送信側が、信号線CSにLow出力を行わず、信号線CSの信号レベルをHiに維持したままデータ受信側にデータを送信する。すなわち、カメラ200から交換レンズ100または中間アダプタ300にデータを送信する間の信号線CSの信号レベルを、ブロードキャスト通信とP2P通信とで異ならせている。 In P2P communication, the data transmission side does not output Low to the signal line CS, and transmits data to the data reception side while maintaining the signal level of the signal line CS at Hi. That is, the signal level of the signal line CS during data transmission from the camera 200 to the interchangeable lens 100 or the intermediate adapter 300 is made different between the broadcast communication and the P2P communication.

P2P通信が開始されると、まず、カメラマイコン205は、信号線CSの信号レベルがHiになったことを検出してからインターバル時間(所定のインターバル時間、第5インターバル時間)Tpm1経過後に、送信するデータを信号線DATAに出力する。カメラマイコン205は、ストップビットSPの出力まで終了した後、インターバル時間(所定のインターバル時間、第6インターバル時間)Tpm2経過後に信号線CSへのLow出力を行い、通信待機要求の通知を行う。その後、カメラマイコン205は、データ受信側としてデータを受信する準備が完了した後、信号線CSへのLow出力を解除する。 When the P2P communication is started, first, the camera microcomputer 205 detects that the signal level of the signal line CS has become Hi, and after an interval time (predetermined interval time, fifth interval time) Tpm1 has passed, the camera microcomputer 205 transmits data is output to the signal line DATA. After outputting the stop bit SP, the camera microcomputer 205 outputs Low to the signal line CS after the interval time (predetermined interval time, sixth interval time) Tpm2 has elapsed, and notifies a communication standby request. After that, the camera microcomputer 205 cancels the Low output to the signal line CS after completing the preparation for receiving data as the data receiving side.

レンズマイコン111は、信号線CSから入力されたLow信号を検出した後、信号線DATAから入力された受信データの解析および受信したデータに紐づけられた内部処理を行う。レンズマイコン111は、信号線CSの信号レベルがHiになったことを検出してからインターバル時間(所定のインターバル時間、第2インターバル時間)Tps1経過後に、送信すべきデータを2バイト分連続で信号線DATAに出力する。レンズマイコン111は、2バイト目のストップビットSPの出力まで終了した後、インターバル時間(所定のインターバル時間、第3インターバル時間)Tps2経過後に信号線CSへのLow出力を行い、通信待機要求の通知を行う。その後、レンズマイコン111は、データ受信側としてデータを受信する準備が完了した後、信号線CSへのLow出力を解除する。 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. After the interval time (predetermined interval time, second interval time) Tps1 has elapsed after detecting that the signal level of the signal line CS has become Hi, the lens microcomputer 111 continuously signals two bytes of data to be transmitted. output on line DATA. After outputting the stop bit SP of the second byte, the lens microcomputer 111 outputs Low to the signal line CS after the interval time (predetermined interval time, third interval time) Tps2 has elapsed, and notifies a communication standby request. I do. After that, the lens microcomputer 111 cancels the Low output to the signal line CS after completing preparations for receiving data as the data receiving side.

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

レンズマイコン111は、信号線CSへのLow出力を解除した後のカメラマイコン205からのデータ送信タイミングによって、P2P通信が継続されているのか、ブロードキャスト通信への切り替えが行われたのかを判断する。信号線CSの信号レベルがHiのままの状態で、カメラマイコン205からのデータを受信した場合、レンズマイコン111はP2P通信が継続されていると判断する。一方、信号線CSの信号レベルがLowに変化した後に、カメラマイコン205からのデータを受信した場合、レンズマイコン111はP2P通信からブロードキャスト通信に切り換えられたと判断する。 The lens microcomputer 111 determines whether the P2P communication is continued or switched to the broadcast communication based on the data transmission timing from the camera microcomputer 205 after releasing the Low output to the signal line CS. When receiving data from the camera microcomputer 205 while the signal level of the signal line CS remains Hi, the lens microcomputer 111 determines that the P2P communication is continuing. On the other hand, when receiving data from the camera microcomputer 205 after the signal level of the signal line CS has changed to Low, the lens microcomputer 111 determines that P2P communication has been switched to broadcast communication.

以上説明したように、P2P通信では、データ送信側が、信号線CSにLow出力を行い、信号線CSの信号レベルをHiからLowにすることで、データ送信側によるデータの送信が完了したことをデータ受信側に通知している。そのため、P2P通信では、データ送信側が信号線CSの信号レベルを変化させるまで、複数のデータフレームを連続して送信することができる。通信スレーブが1つのデータフレームを送信するごとに通信マスタからの通信が挿入されるシステム構成ではないため、カメラマイコン205と、レンズマイコン111やアダプタマイコン302等のアクセサリとの間の通信を高速に行うことができる。そして、データ送信側は、次の通信におけるデータ受信側としてのデータ受信準備が完了するまで、信号線CSの信号レベルをLowのままとすることで、通信待機要求を通知している。 As described above, in the P2P communication, the data transmission side outputs Low to the signal line CS to change the signal level of the signal line CS from Hi to Low, thereby indicating that the data transmission side has completed data transmission. The data receiver is notified. Therefore, in P2P communication, a plurality of data frames can be continuously transmitted until the data transmission side changes the signal level of the signal line CS. Since the system configuration is not such that the communication from the communication master is inserted every time the communication slave transmits one data frame, the communication between the camera microcomputer 205 and accessories such as the lens microcomputer 111 and the adapter microcomputer 302 can be performed at high speed. It can be carried out. Then, the data transmission side notifies the communication standby request by keeping the signal level of the signal line CS at Low until the data reception preparation as the data reception side in the next communication is completed.

なお、図5では、P2P通信の通信波形の一例について記載したが、本発明はこれに限定されない。例えば、送信するデータは1バイトずつや他のバイト数でもよい。
<通信方式の切り替えについての説明>
図6を参照して、カメラマイコン205、レンズマイコン111およびアダプタマイコン302の間で行われるブロードキャスト通信とP2P通信の切り換え、およびP2P通信での通信相手の指定方法の一例について説明する。図6は、通信方式の切り換え時の通信波形を示す図である。P2P通信での通信相手の指定は、ブロードキャスト通信で行われる。以下の説明では、カメラマイコン205によりP2P通信の通信相手としてアダプタマイコン302が指定された後、カメラマイコン205からの送信1バイト、アダプタマイコン302からの送信1バイトのP2P通信が実行される。次に、カメラマイコン205によりP2P通信の通信相手としてレンズマイコン111が指定された後、カメラマイコン205からの送信2バイト、レンズマイコン111からの送信3バイトのP2P通信が実行される。
Although an example of communication waveforms of P2P communication is described in FIG. 5, the present invention is not limited to this. For example, the data to be transmitted may be one byte at a time or some other number of bytes.
<Description of communication method switching>
An example of switching between broadcast communication and P2P communication performed among the camera microcomputer 205, lens microcomputer 111 and adapter microcomputer 302, and a method of specifying a communication partner in P2P communication will be described with reference to FIG. FIG. 6 is a diagram showing communication waveforms when the communication system is switched. Designation of a communication partner in P2P communication is performed by broadcast communication. In the following description, after the camera microcomputer 205 designates the adapter microcomputer 302 as a communication partner for P2P communication, P2P communication of 1 byte transmitted from the camera microcomputer 205 and 1 byte transmitted from the adapter microcomputer 302 is executed. Next, after the camera microcomputer 205 designates the lens microcomputer 111 as the communication partner of the P2P communication, P2P communication of 2 bytes transmitted from the camera microcomputer 205 and 3 bytes transmitted from the lens microcomputer 111 is executed.

まず、カメラマイコン205は、図4を参照して説明した手順でブロードキャスト通信を実行する。このブロードキャスト通信で通知するのは、次のP2P通信でカメラマイコン205と通信を行う相手を指定する通信相手指定データである。レンズマイコン111およびアダプタマイコン302はそれぞれ、ブロードキャスト通信で受信した通信相手指定データに基づいて、P2P通信の通信相手として指定されたか否かを判断する。このブロードキャスト通信によって、カメラマイコン205および指定された通信スレーブはP2P通信に切り替わる。具体的には、アダプタマイコン302は、P2P通信への切り替えが完了すると、信号線CSにHigh出力を行うことで、通信方式の切り替え完了をカメラマイコン205に通知する。カメラマイコン205も、P2P通信への切り替えが完了すると、信号線CSにHigh出力を行う。本実施形態では、通信相手としてアダプタマイコン302が指定されているため、P2P通信では図5を参照して説明した手順でカメラマイコン205とアダプタマイコン302との間でデータの送受信が行われる。前述したように、まず、カメラマイコン205はアダプタマイコン302に1バイトデータを送信し、その後、アダプタマイコン302はカメラマイコン205に1バイトデータを送信する。 First, the camera microcomputer 205 performs broadcast communication according to the procedure described with reference to FIG. What is notified by this broadcast communication is communication partner designation data for designating a partner with which the camera microcomputer 205 will communicate with the camera microcomputer 205 in the next P2P communication. Each of the lens microcomputer 111 and the adapter microcomputer 302 determines whether or not it has been specified as a communication partner for P2P communication based on the communication partner specification data received by broadcast communication. By this broadcast communication, the camera microcomputer 205 and the designated communication slave switch to P2P communication. Specifically, when the switching to the P2P communication is completed, the adapter microcomputer 302 notifies the camera microcomputer 205 of the completion of switching the communication method by outputting High to the signal line CS. When switching to P2P communication is completed, the camera microcomputer 205 also outputs High to the signal line CS. In this embodiment, since the adapter microcomputer 302 is specified as the communication partner, data is transmitted and received between the camera microcomputer 205 and the adapter microcomputer 302 in the P2P communication according to the procedure described with reference to FIG. As described above, the camera microcomputer 205 first transmits 1-byte data to the adapter microcomputer 302 , and then the adapter microcomputer 302 transmits 1-byte data to the camera microcomputer 205 .

P2P通信における通信相手として選択されていないレンズマイコン111は通信相手指定データを受信した後、カメラマイコン205から受信したデータの解析や内部処理が終了した時点で信号線CSにHigh出力を行う。そして、カメラマイコン205とアダプタマイコン302との間でP2P通信が行われている間、信号線CSへの出力を変化させることなく、ブロードキャスト通信に対応した設定を維持する。 The lens microcomputer 111 that is not selected as a communication partner in P2P communication receives the communication partner designation data, and then outputs High to the signal line CS when analysis of the data received from the camera microcomputer 205 and internal processing are completed. While the P2P communication is being performed between the camera microcomputer 205 and the adapter microcomputer 302, the setting corresponding to the broadcast communication is maintained without changing the output to the signal line CS.

カメラマイコン205とアダプタマイコン302とのP2P通信が終了すると、カメラマイコン205はブロードキャスト通信によってP2P通信で通信する通信相手としてレンズマイコン111を指定する。このブロードキャスト通信によって、アダプタマイコン302はP2P通信を終了し、レンズマイコン111はP2P通信に切り替わる。なお、ブロードキャスト通信が実行されない場合、カメラマイコン205とアダプタマイコン302とのP2P通信は継続される。アダプタマイコン302は、カメラマイコン205からデータが送信される前に信号線CSの信号レベルがLowになったことにより、P2P通信からブロードキャスト通信への切り替えが実行されたことを認識する。P2P通信では、図5を参照して説明した手順でカメラマイコン205とレンズマイコン111との間でデータの送受信が行われる。前述したように、カメラマイコン205はレンズマイコン111に2バイトデータを送信し、その後、レンズマイコン111はカメラマイコン205に3バイトデータを送信する。 When the P2P communication between the camera microcomputer 205 and the adapter microcomputer 302 ends, the camera microcomputer 205 designates the lens microcomputer 111 as a communication partner with which P2P communication is to be performed by broadcast communication. By this broadcast communication, the adapter microcomputer 302 terminates the P2P communication, and the lens microcomputer 111 switches to P2P communication. Note that when broadcast communication is not executed, P2P communication between the camera microcomputer 205 and the adapter microcomputer 302 is continued. The adapter microcomputer 302 recognizes that switching from P2P communication to broadcast communication has been executed by the signal level of the signal line CS becoming Low before data is transmitted from the camera microcomputer 205 . In P2P communication, data is transmitted and received between the camera microcomputer 205 and the lens microcomputer 111 according to the procedure described with reference to FIG. As described above, 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通信の切り換えを行うことができる。
<ブロードキャスト通信における通信フローの説明>
図7Aおよび図7Bを参照して、ブロードキャスト通信における通信フローについて説明する。各マイコンは、コンピュータプログラムである通信制御プログラムに従って、図7Aまたは図7Bのフローチャートに沿って通信制御を行う。図7Aは、カメラマイコン205によるブロードキャスト通信における通信フローを説明するフローチャートである。図7Bは、レンズマイコン111およびアダプタマイコン302によるブロードキャスト通信における通信フローを説明するフローチャートである。
As described above, it is possible to designate a communication partner for P2P communication by broadcast communication, and at the same time switch between broadcast communication and P2P communication.
<Description of communication flow in broadcast communication>
A communication flow in broadcast communication will be described with reference to FIGS. 7A and 7B. Each microcomputer performs communication control according to the flowchart of FIG. 7A or 7B according to a communication control program, which is a computer program. FIG. 7A is a flow chart explaining a communication flow in broadcast communication by the camera microcomputer 205. FIG. FIG. 7B is a flowchart for explaining a communication flow in broadcast communication by the lens microcomputer 111 and the adapter microcomputer 302. FIG.

まず、カメラマイコン205の通信フローについて説明する。 First, the communication flow of the camera microcomputer 205 will be described.

ステップS100では、カメラマイコン205は、ブロードキャスト通信を開始するイベントが発生したか否かを判定する。イベントが発生した場合、ステップS101に進み、イベントが発生していない場合、ステップS100の判定を繰り返し行う。 In step S100, the camera microcomputer 205 determines whether an event for starting broadcast communication has occurred. If an event has occurred, the process proceeds to step S101, and if no event has occurred, the determination of step S100 is repeated.

ステップS101では、カメラマイコン205は、接地スイッチ2081をオン(接続)して信号線CSへのLow出力を開始する。これにより、レンズマイコン111およびアダプタマイコン302に対してブロードキャスト通信の開始が通知される。 In step S101, the camera microcomputer 205 turns on (connects) the ground switch 2081 to start low output to the signal line CS. As a result, the lens microcomputer 111 and the adapter microcomputer 302 are notified of the start of broadcast communication.

ステップS102では、カメラマイコン205は、信号線CSへのLow出力の開始からインターバル時間Tbm1が経過したか否かを判定する。インターバル時間Tbm1が経過した場合、ステップS103に進み、インターバル時間Tbm1が経過していない場合、ステップS102の判定を繰り返し行う。 In step S102, the camera microcomputer 205 determines whether or not the interval time Tbm1 has elapsed from the start of Low output to the signal line CS. If the interval time Tbm1 has elapsed, the process proceeds to step S103, and if the interval time Tbm1 has not elapsed, the determination of step S102 is repeated.

ステップS103では、カメラマイコン205は、入出力切り換えスイッチ2082を操作し、信号線DATAをカメラマイコン205のデータ出力部に接続する。 In step S<b>103 , the camera microcomputer 205 operates the input/output switch 2082 to connect the signal line DATA to the data output section of the camera microcomputer 205 .

ステップS104では、カメラマイコン205は、データ送信を開始する。 In step S104, the camera microcomputer 205 starts data transmission.

ステップS105では、カメラマイコン205は、ステップS104で送信したデータに、送信要求コマンドが含まれるか否かを判定する。送信要求コマンドとは、通信マスタとしてのカメラマイコン205から送信されたデータを受信した通信スレーブに対して、カメラマイコン205へのデータ送信を要求するコマンドである。送信要求コマンドが含まれている場合、ステップS107に進み、送信要求コマンドが含まれていない場合、ステップS106に進む。 In step S105, the camera microcomputer 205 determines whether or not the data transmitted in step S104 includes a transmission request command. A transmission request command is a command that requests a communication slave that has received data transmitted from the camera microcomputer 205 as a communication master to transmit data to the camera microcomputer 205 . If the transmission request command is included, the process proceeds to step S107, and if the transmission request command is not included, the process proceeds to step S106.

ステップS106では、カメラマイコン205は、接地スイッチ2081をオフ(遮断)して信号線CSへのLow出力を解除する。 In step S106, the camera microcomputer 205 turns off (interrupts) the ground switch 2081 to cancel the Low output to the signal line CS.

ステップS107では、カメラマイコン205は、入出力切り換えスイッチ2082を操作し、信号線DATAをカメラマイコン205のデータ入力部に接続する。 In step S<b>107 , the camera microcomputer 205 operates the input/output switch 2082 to connect the signal line DATA to the data input section of the camera microcomputer 205 .

ステップS108では、カメラマイコン205は、接地スイッチ2081をオフ(遮断)して信号線CSへのLow出力を解除する。 In step S108, the camera microcomputer 205 turns off (interrupts) the ground switch 2081 to cancel the Low output to the signal line CS.

ステップS109では、カメラマイコン205は、信号線CSの信号レベルがHiであるか否かを判定する。信号線CSの信号レベルがHiである場合、カメラシステムが通信可能な状態であることを意味している。信号レベルがHiである場合、ステップS110に進み、信号レベルがHiでない場合、ステップS109の判定を繰り返す。 In step S109, the camera microcomputer 205 determines whether the signal level of the signal line CS is Hi. When the signal level of the signal line CS is Hi, it means that the camera system is ready for communication. If the signal level is Hi, the process proceeds to step S110, and if the signal level is not Hi, the determination of step S109 is repeated.

ステップS110では、カメラマイコン205は、信号線CSの信号レベルがLowであるか否かを判定する。信号レベルがLowである場合、ステップS111に進み、信号レベルがLowでない場合、ステップS110の判定を繰り返す。 In step S110, the camera microcomputer 205 determines whether the signal level of the signal line CS is Low. If the signal level is Low, the process proceeds to step S111, and if the signal level is not Low, the determination of step S110 is repeated.

ステップS111では、カメラマイコン205は、信号線DATAからのデータ受信を許可する。 In step S111, the camera microcomputer 205 permits data reception from the signal line DATA.

ステップS112では、カメラマイコン205は、信号線DATAからスタートビットの受信を検出したか否かを判断する。スタートビットの受信を検出した場合、ステップS113に進み、スタートビットの受信を検出していない場合、ステップS112の判定を繰り返す。 In step S112, the camera microcomputer 205 determines whether reception of a start bit from the signal line DATA has been detected. If the reception of the start bit is detected, the process proceeds to step S113, and if the reception of the start bit is not detected, the determination of step S112 is repeated.

ステップS113では、カメラマイコン205は、接地スイッチ2081をオン(接続)して信号線CSへのLow出力を開始する。 In step S113, the camera microcomputer 205 turns on (connects) the ground switch 2081 to start outputting Low to the signal line CS.

ステップS114では、カメラマイコン205は、ストップビットを受信したか否か、すなわち全データを受信したか否かを判定する。ストップビットを受信した場合、ステップS115に進み、ストップビットを受信していない場合、ステップS114の判定を繰り返す。 In step S114, the camera microcomputer 205 determines whether or not the stop bit has been received, that is, whether or not all data has been received. If the stop bit has been received, the process proceeds to step S115, and if the stop bit has not been received, the determination of step S114 is repeated.

ステップS115では、カメラマイコン205は、信号線DATAからのデータ受信を禁止し、受信したデータの解析や受信したデータに対応する内部処理を実行する。 In step S115, the camera microcomputer 205 prohibits data reception from the signal line DATA, analyzes the received data, and executes internal processing corresponding to the received data.

ステップS116では、カメラマイコン205は、接地スイッチ2081をオフ(遮断)して信号線CSへのLow出力を解除する。 In step S116, the camera microcomputer 205 turns off (shuts off) the ground switch 2081 to cancel the Low output to the signal line CS.

ステップS117では、カメラマイコン205は、信号線CSの信号レベルがHiであるか否かを判定する。信号レベルがHiである場合、ステップS118に進み、信号レベルがHiでない場合、ステップS117の判定を繰り返す。 In step S117, the camera microcomputer 205 determines whether the signal level of the signal line CS is Hi. If the signal level is Hi, the process proceeds to step S118, and if the signal level is not Hi, the determination of step S117 is repeated.

ステップS118では、カメラマイコン205は、ステップS104で送信したデータが、通信相手を指定する通信相手指定データであったか否かを判定する。通信相手指定データである場合、ステップS119に進み、通信相手指定データでない場合、本フローを終了する。 In step S118, the camera microcomputer 205 determines whether or not the data transmitted in step S104 is communication partner designation data for designating a communication partner. If the data is communication partner designation data, the process proceeds to step S119, and if it is not communication partner designation data, this flow ends.

ステップS119では、カメラマイコン205は、P2P通信モードへの移行を行う。 In step S119, the camera microcomputer 205 shifts to the P2P communication mode.

次に、アダプタマイコン302の通信フローについて説明する。レンズマイコン111の通信フローは、アダプタマイコン302の通信フローとほぼ同じであるため、本実施形態では説明を省略する。 Next, the communication flow of adapter microcomputer 302 will be described. Since the communication flow of the lens microcomputer 111 is substantially the same as the communication flow of the adapter microcomputer 302, description thereof will be omitted in this embodiment.

ステップS200では、アダプタマイコン302は、信号線CSの信号レベルがLowであるか否かを判定する。信号線CSの信号レベルがLowになることに応じて、カメラマイコン205からのデータ送信が開始される。信号レベルがLowである場合、ステップS201に進み、信号レベルがLowでない場合、ステップS200の判定を繰り返す。 In step S200, the adapter microcomputer 302 determines whether the signal level of the signal line CS is Low. Data transmission from the camera microcomputer 205 is started in response to the signal level of the signal line CS becoming Low. If the signal level is Low, the process proceeds to step S201, and if the signal level is not Low, the determination of step S200 is repeated.

ステップS201では、アダプタマイコン302は、ブロードキャスト通信として、信号線DATAからのデータ受信を許可する。 In step S201, the adapter microcomputer 302 permits data reception from the signal line DATA as broadcast communication.

ステップS202では、アダプタマイコン302は、信号線DATAからスタートビットの受信を検出したか否かを判断する。スタートビットの受信を検出した場合、ステップS205に進み、スタートビットの受信を検出していない場合、ステップS203に進む。 In step S202, adapter microcomputer 302 determines whether reception of a start bit from signal line DATA has been detected. If the reception of the start bit is detected, the process proceeds to step S205, and if the reception of the start bit is not detected, the process proceeds to step S203.

ステップS203では、アダプタマイコン302は、信号線CSの信号レベルがHiであるか否かを判定する。信号レベルがHiである場合、ステップS204に進み、信号レベルがHiでない場合、ステップS202に戻る。 In step S203, the adapter microcomputer 302 determines whether the signal level of the signal line CS is Hi. If the signal level is Hi, the process proceeds to step S204, and if the signal level is not Hi, the process returns to step S202.

ステップS204では、アダプタマイコン302は、信号線DATAからのデータ受信を禁止する。 In step S204, the adapter microcomputer 302 prohibits data reception from the signal line DATA.

ここで、ステップS203およびステップS204の処理を行うのは、カメラマイコン205とレンズマイコン111との間でP2P通信が行われ、アダプタマイコン302のみがブロードキャスト通信を行う状況に対応するためである。この状況では、アダプタマイコン302は、カメラマイコン205からデータを受信することはないため、ステップS204において信号線DATAからのデータの受信を禁止する。 The reason why steps S203 and S204 are performed here is to cope with a situation in which P2P communication is performed between the camera microcomputer 205 and the lens microcomputer 111 and only the adapter microcomputer 302 performs broadcast communication. In this situation, the adapter microcomputer 302 does not receive data from the camera microcomputer 205, so in step S204 it prohibits data reception from the signal line DATA.

信号線CSの信号レベルは、通常時はHiであり、ブロードキャスト通信においては、通信待機要求を通知する場合や、通信の開始を通知する場合にLowに設定される。また、P2P通信においては、通信待機要求を通知する場合にLowに設定される。 The signal level of the signal line CS is normally Hi, and in broadcast communication, it is set to Low when notifying a communication standby request or when notifying the start of communication. In P2P communication, it is set to Low when notifying a communication standby request.

ステップS202において、アダプタマイコン302がカメラマイコン205からスタートビットを受信していない状況としては、以下の状況が考えられる。 As a situation in which the adapter microcomputer 302 does not receive the start bit from the camera microcomputer 205 in step S202, the following situations can be considered.

1つ目の状況は、カメラマイコン205が信号線CSの信号レベルをLowにした後、データ送信を開始していない状況である。2つ目の状況は、カメラマイコン205とレンズマイコン111がP2P通信を行っており、アダプタマイコン302がP2P通信に関与していない状況である。 The first situation is that the camera microcomputer 205 has not started data transmission after setting the signal level of the signal line CS to Low. The second situation is that the camera microcomputer 205 and the lens microcomputer 111 are performing P2P communication, and the adapter microcomputer 302 is not involved in P2P communication.

1つ目の状況の場合、信号線CSの信号レベルはHiにならないため、ステップS203からステップS202に戻り、カメラマイコン205からのデータ送信が開始されるまで、ステップS202およびステップS203の処理が繰り返される。 In the first situation, since the signal level of the signal line CS does not become Hi, the process returns from step S203 to step S202, and the processing of steps S202 and S203 is repeated until data transmission from the camera microcomputer 205 is started. be

2つ目の状況の場合、カメラマイコン205とレンズマイコン111のいずれかが通信待機要求を通知していない限り、信号線CSの信号レベルはHiになっている。この状況では、基本的にはステップS203からステップS204に進み、信号線DATAからのデータの受信が禁止される。なお、P2P通信において、通信待機要求が通知されている場合、ステップS203からステップS202に戻り、再びステップS203の処理が行われる。ステップS203の処理が複数回実施されることはあるが、通信待機要求が解除され、信号線CSの信号レベルがHiになると、ステップS203からステップS204に進む。 In the second situation, the signal level of the signal line CS is Hi unless either the camera microcomputer 205 or the lens microcomputer 111 notifies a communication standby request. In this situation, basically, the process proceeds from step S203 to step S204, and reception of data from the signal line DATA is prohibited. In P2P communication, if a communication standby request has been notified, the process returns from step S203 to step S202, and the process of step S203 is performed again. Although the process of step S203 may be performed multiple times, when the communication standby request is canceled and the signal level of the signal line CS becomes Hi, the process proceeds from step S203 to step S204.

以上のように、ステップS203およびステップS204の制御フローを追加することで、カメラシステムの中でブロードキャスト通信とP2P通信を併用することができる。本実施形態では、カメラマイコン205とレンズマイコン111との間でP2P通信を行う一方で、ブロードキャスト通信に対応した状態でアダプタマイコン302を待機させることができる。 As described above, by adding the control flow of steps S203 and S204, both broadcast communication and P2P communication can be used in the camera system. In this embodiment, while P2P communication is performed between the camera microcomputer 205 and the lens microcomputer 111, the adapter microcomputer 302 can be put on standby in a state compatible with broadcast communication.

ステップS205では、アダプタマイコン302は、受信したデータの解析や受信したデータに対応する内部処理を開始するとともに、接地スイッチ2081をオン(接続)して信号線CSにLow出力を行う。これにより、カメラシステムを構成する各構成要素に対して通信待機要求を通知する。 In step S205, the adapter microcomputer 302 starts analyzing the received data and internal processing corresponding to the received data, and turns on (connects) the ground switch 2081 to output Low to the signal line CS. Thereby, a communication standby request is notified to each component constituting the camera system.

ステップS206では、アダプタマイコン302は、ストップビットを受信したか否か、すなわち全データを受信したか否かを判定する。ストップビットを受信した場合、ステップS207に進み、ストップビットを受信していない場合、ステップS206の判定を繰り返す。 In step S206, adapter microcomputer 302 determines whether or not a stop bit has been received, that is, whether or not all data has been received. If the stop bit has been received, the process proceeds to step S207, and if the stop bit has not been received, the determination of step S206 is repeated.

ステップS207では、アダプタマイコン302は、信号線DATAからのデータ受信を禁止し、受信したデータの解析や受信したデータに対応する内部処理を継続する。解析や内部処理が完了し、次のデータ通信を実行可能な状態になると、ステップS208に進む。 In step S207, the adapter microcomputer 302 prohibits data reception from the signal line DATA, and continues analysis of the received data and internal processing corresponding to the received data. When the analysis and internal processing are completed and the next data communication can be executed, the process proceeds to step S208.

ステップS208では、アダプタマイコン302は、接地スイッチ3031をオフ(遮断)して信号線CSへのLow出力を解除する。 In step S208, the adapter microcomputer 302 turns off (shuts off) the ground switch 3031 to cancel the Low output to the signal line CS.

ステップS209では、アダプタマイコン302は、ステップS206で受信したデータに、送信要求コマンドが含まれるか否かを判定する。送信要求コマンドが含まれている場合、ステップS210に進み、送信要求コマンドが含まれていない場合、ステップS215に進む。 In step S209, the adapter microcomputer 302 determines whether or not the data received in step S206 includes a transmission request command. If the transmission request command is included, the process proceeds to step S210, and if the transmission request command is not included, the process proceeds to step S215.

ステップS210では、アダプタマイコン302は、信号線CSの信号レベルがHiであるか否かを判定する。信号レベルがHiである場合、カメラシステムが通信可能な状態であることを意味している。信号レベルがHiである場合、ステップS211に進み、信号レベルがHiでない場合、ステップS210の判定を繰り返す。 In step S210, the adapter microcomputer 302 determines whether the signal level of the signal line CS is Hi. If the signal level is Hi, it means that the camera system is ready for communication. If the signal level is Hi, the process proceeds to step S211, and if the signal level is not Hi, the determination of step S210 is repeated.

ステップS211では、アダプタマイコン302は、接地スイッチ3031をオン(接続)して信号線CSへのLow出力を開始する。これにより、カメラマイコン205およびレンズマイコン111に対してブロードキャスト通信の開始を通知する。 In step S211, the adapter microcomputer 302 turns on (connects) the ground switch 3031 to start low output to the signal line CS. This notifies the camera microcomputer 205 and the lens microcomputer 111 of the start of broadcast communication.

ステップS212では、アダプタマイコン302は、信号線CSへのLow出力の開始からインターバル時間Tbs1が経過したか否かを判定する。インターバル時間Tbs1が経過した場合、ステップS213に進み、インターバル時間Tbs1が経過していない場合、ステップS212の判定を繰り返し行う。 In step S212, the adapter microcomputer 302 determines whether or not the interval time Tbs1 has elapsed since the start of Low output to the signal line CS. If the interval time Tbs1 has passed, the process proceeds to step S213, and if the interval time Tbs1 has not passed, the determination of step S212 is repeated.

ステップS213では、アダプタマイコン302は、入出力切り換えスイッチ3032を操作し、信号線DATAをアダプタマイコン302のデータ出力部に接続する。 In step S 213 , the adapter microcomputer 302 operates the input/output switch 3032 to connect the signal line DATA to the data output section of the adapter microcomputer 302 .

ステップS214では、アダプタマイコン302は、データ送信を開始する。 At step S214, the adapter microcomputer 302 starts data transmission.

ステップS215では、アダプタマイコン302は、接地スイッチ3031をオフ(遮断)して信号線CSへのLow出力を解除する。 In step S215, the adapter microcomputer 302 turns off (shuts off) the ground switch 3031 to cancel the Low output to the signal line CS.

ステップS216では、アダプタマイコン302は、信号線CSの信号レベルがHiであるか否かを判定する。信号レベルがHiである場合、ステップS217に進み、信号レベルがHiでない場合、ステップS216の判定を繰り返す。 In step S216, the adapter microcomputer 302 determines whether the signal level of the signal line CS is Hi. If the signal level is Hi, the process proceeds to step S217, and if the signal level is not Hi, the determination of step S216 is repeated.

ステップS217では、アダプタマイコン302は、ステップS206で受信したデータが通信相手指定データであり、かつ、自身がP2P通信におけるカメラマイコン205の通信相手として選択された、すなわちスレーブ指定されたか否かを判定する。受信したデータが通信相手指定データであり、かつ、自身がP2P通信におけるカメラマイコン205の通信相手として選択された場合、ステップS218に進む。受信したデータが通信相手指定データでない場合、またはP2P通信におけるカメラマイコン205の通信相手として選択されていない場合、本フローを終了する(ブロードキャスト通信が継続される。 In step S217, the adapter microcomputer 302 determines whether or not the data received in step S206 is communication partner designation data and itself has been selected as the communication partner of the camera microcomputer 205 in P2P communication, that is, whether it has been designated as a slave. do. If the received data is the communication partner designation data and the user has been selected as the communication partner of the camera microcomputer 205 in P2P communication, the process proceeds to step S218. If the received data is not communication partner designation data, or if it is not selected as the communication partner of the camera microcomputer 205 in P2P communication, this flow ends (broadcast communication continues.

ステップS218では、アダプタマイコン302は、信号線DATAからのデータの受信を許可する。 In step S218, the adapter microcomputer 302 permits reception of data from the signal line DATA.

ステップS219では、アダプタマイコン302は、ブロードキャスト通信からP2P通信への移行を行う。
<P2P通信における通信フローの説明>
図8Aおよび図8Bを参照して、P2P通信における通信フローについて説明する。各マイコンは、コンピュータプログラムである通信制御プログラムに従って、図8Aまたは図8Bのフローチャートに沿って通信制御を行う。図8Aは、カメラマイコン205によるP2Pブロードキャスト通信における通信フローを説明するフローチャートである。図8Bは、レンズマイコン111およびアダプタマイコン302によるP2Pブロードキャスト通信における通信フローを説明するフローチャートである。
In step S219, the adapter microcomputer 302 shifts from broadcast communication to P2P communication.
<Description of communication flow in P2P communication>
A communication flow in P2P communication will be described with reference to FIGS. 8A and 8B. Each microcomputer performs communication control according to the flowchart of FIG. 8A or 8B according to a communication control program, which is a computer program. FIG. 8A is a flow chart illustrating a communication flow in P2P broadcast communication by the camera microcomputer 205. FIG. FIG. 8B is a flow chart illustrating a communication flow in P2P broadcast communication by the lens microcomputer 111 and the adapter microcomputer 302. FIG.

まず、図10Aを参照して、カメラマイコン205における通信フローについて説明する。図10Aは、カメラマイコン205によるP2P通信における通信フローを示す図である。 First, a communication flow in the camera microcomputer 205 will be described with reference to FIG. 10A. FIG. 10A is a diagram showing a communication flow in P2P communication by the camera microcomputer 205. FIG.

まず、カメラマイコン205がレンズマイコン111とP2P通信を行う場合の通信フローについて説明する。 First, a communication flow when the camera microcomputer 205 performs P2P communication with the lens microcomputer 111 will be described.

ステップS300では、カメラマイコン205は、P2P通信を開始するイベントが発生したか否かを判定する。イベントが発生した場合、ステップS301に進み、イベントが発生していない場合、ステップS300の判定を繰り返し行う。 In step S300, the camera microcomputer 205 determines whether an event to start P2P communication has occurred. If an event has occurred, the process proceeds to step S301, and if no event has occurred, the determination of step S300 is repeated.

ステップS300では、カメラマイコン205は、信号線CSの信号レベルがHiであるか否かを判定する。信号レベルがHiである場合、データの送信が可能な状態であることを示している。信号レベルがHiである場合、ステップS301に進み、信号レベルがHiでない場合、ステップS300の判定を繰り返す。 In step S300, the camera microcomputer 205 determines whether the signal level of the signal line CS is Hi. When the signal level is Hi, it indicates that data can be transmitted. If the signal level is Hi, the process proceeds to step S301, and if the signal level is not Hi, the determination of step S300 is repeated.

ステップS301では、カメラマイコン205は、信号線CSの信号レベルがHiになってからインターバル時間Tpm1が経過したか否かを判定する。インターバル時間Tpm1が経過した場合、ステップS302に進み、インターバル時間Tpm1が経過していない場合、ステップS301の判定を繰り返し行う。 In step S301, the camera microcomputer 205 determines whether or not the interval time Tpm1 has passed since the signal level of the signal line CS became Hi. If the interval time Tpm1 has elapsed, the process proceeds to step S302, and if the interval time Tpm1 has not elapsed, the determination of step S301 is repeated.

ステップS302では、カメラマイコン205は、入出力切り替えスイッチ2082を動作させることで、信号線DATAをカメラマイコン205のデータ出力部に接続する。 In step S<b>302 , the camera microcomputer 205 connects the signal line DATA to the data output section of the camera microcomputer 205 by operating the input/output switch 2082 .

ステップS303では、カメラマイコン205は、データ送信を開始する。 In step S303, the camera microcomputer 205 starts data transmission.

ステップS304では、カメラマイコン205は、データ送信が完了してからインターバル時間Tpm2が経過したか否かを判定する。インターバル時間Tpm2が経過した場合、ステップS305に進み、インターバル時間Tpm2が経過していない場合、ステップS304の判定を繰り返し行う。 In step S304, the camera microcomputer 205 determines whether or not the interval time Tpm2 has passed since the data transmission was completed. If the interval time Tpm2 has elapsed, the process proceeds to step S305, and if the interval time Tpm2 has not elapsed, the determination of step S304 is repeated.

ステップS305では、カメラマイコン205は、信号線CSにLow出力を行い、信号線CSの信号レベルをLowにする。これにより、カメラマイコン205は、レンズマイコン111に対して通信待機要求を行う。信号レベルがLowである間、レンズマイコン111はカメラマイコン205に対するデータ送信を行わない。 In step S305, the camera microcomputer 205 outputs Low to the signal line CS to set the signal level of the signal line CS to Low. Accordingly, the camera microcomputer 205 requests the lens microcomputer 111 to wait for communication. The lens microcomputer 111 does not transmit data to the camera microcomputer 205 while the signal level is Low.

ステップS306では、カメラマイコン205は、ステップS303で送信したデータに、送信要求コマンドが含まれるか否かを判定する。送信要求コマンドが含まれている場合、ステップS309に進み、送信要求コマンドが含まれていない場合、ステップS307に進む。送信要求コマンドが含まれない場合、レンズマイコン111からデータが送信されることはない。 In step S306, the camera microcomputer 205 determines whether or not the data transmitted in step S303 includes a transmission request command. If the transmission request command is included, the process proceeds to step S309, and if the transmission request command is not included, the process proceeds to step S307. If the transmission request command is not included, no data will be transmitted from the lens microcomputer 111 .

ステップS307では、カメラマイコン205は、接地スイッチ2081をオフ(遮断)して信号線CSへのLow出力を解除する。 In step S307, the camera microcomputer 205 turns off (shuts off) the ground switch 2081 to cancel the Low output to the signal line CS.

ステップS308では、カメラマイコン205は、信号線CSの信号レベルがLowであるか否か、すなわちレンズマイコン111が通信待機要求を通知しているか否かを判定する。信号レベルがLowである場合、ステップS313に進み、信号レベルがLowでない場合、ステップS308の判定を繰り返す。 In step S308, the camera microcomputer 205 determines whether or not the signal level of the signal line CS is Low, that is, whether or not the lens microcomputer 111 has notified a communication standby request. If the signal level is Low, the process proceeds to step S313, and if the signal level is not Low, the determination of step S308 is repeated.

ステップS309では、カメラマイコン205は、入出力切り換えスイッチ2082を操作し、信号線DATAをカメラマイコン205のデータ入力部に接続する。 In step S<b>309 , the camera microcomputer 205 operates the input/output switch 2082 to connect the signal line DATA to the data input section of the camera microcomputer 205 .

ステップS310では、カメラマイコン205は、接地スイッチ2081をオフ(遮断)して信号線CSへのLow出力を解除する。カメラマイコン205は、信号線CSの信号レベルがHiの状態で、レンズマイコン111からのデータ受信を行う。 In step S310, the camera microcomputer 205 turns off (shuts off) the ground switch 2081 to cancel the Low output to the signal line CS. The camera microcomputer 205 receives data from the lens microcomputer 111 while the signal level of the signal line CS is Hi.

ステップS311では、カメラマイコン205は、信号線CSの信号レベルがLowであるか否かを判定する。信号レベルがLowである場合、ステップS312に進み、信号レベルがLowでない場合、ステップS311の判定を繰り返す。 In step S311, the camera microcomputer 205 determines whether the signal level of the signal line CS is Low. If the signal level is Low, the process proceeds to step S312, and if the signal level is not Low, the determination of step S311 is repeated.

ステップS312では、カメラマイコン205は、信号線DATAから受信したデータの解析を行う。 In step S312, the camera microcomputer 205 analyzes the data received from the signal line DATA.

ステップS313では、カメラマイコン205は、信号線CSの信号レベルがHiであるか否かを判定する。信号レベルがHiである場合、レンズマイコン111がデータ通信可能な状態であることを意味している。信号レベルがHiである場合、ステップS314に進み、信号レベルがHiでない場合、ステップS313の判定を繰り返す。 In step S313, the camera microcomputer 205 determines whether the signal level of the signal line CS is Hi. When the signal level is Hi, it means that the lens microcomputer 111 is ready for data communication. If the signal level is Hi, the process proceeds to step S314, and if the signal level is not Hi, the determination of step S313 is repeated.

ステップS314では、カメラマイコン205は、ブロードキャスト通信への移行イベントが発生したか否かを判定する。イベントが発生した場合、ステップS315に進み、イベントが発生していない場合、本フローを終了する(P2P通信が継続して行われる)。 In step S314, the camera microcomputer 205 determines whether or not an event to shift to broadcast communication has occurred. If an event has occurred, the process proceeds to step S315, and if no event has occurred, this flow ends (P2P communication continues).

ステップS315では、カメラマイコン205は、ブロードキャスト通信モードへの移行を行う。 In step S315, the camera microcomputer 205 shifts to the broadcast communication mode.

次に、レンズマイコン111の通信フローについて説明する。アダプタマイコン302の通信フローは、レンズマイコン111の通信フローとほぼ同じであるため、本実施形態では説明を省略する。 Next, a communication flow of the lens microcomputer 111 will be described. The communication flow of the adapter microcomputer 302 is substantially the same as the communication flow of the lens microcomputer 111, so description thereof will be omitted in this embodiment.

ステップS400では、レンズマイコン111は、カメラマイコン205から送信されるデータを、信号線DATAを介して受信する。レンズマイコン111がデータを受信している間、信号線CSの信号レベルはHiに保たれている。 In step S400, the lens microcomputer 111 receives data transmitted from the camera microcomputer 205 via the signal line DATA. While the lens microcomputer 111 is receiving data, the signal level of the signal line CS is kept at Hi.

ステップS401では、レンズマイコン111は、信号線CSの信号レベルがLowであるか否かを判定する。信号レベルがLowである場合、ステップS402に進み、信号レベルがLowでない場合、ステップS401の判定を繰り返す。 In step S401, the lens microcomputer 111 determines whether the signal level of the signal line CS is Low. If the signal level is Low, the process proceeds to step S402, and if the signal level is not Low, the determination of step S401 is repeated.

ステップS402では、レンズマイコン111は、信号線DATAから受信したデータの解析を行う。 In step S402, the lens microcomputer 111 analyzes the data received from the signal line DATA.

ステップS403では、レンズマイコン111は、信号線CSの信号レベルがHiであるか否かを判定する。信号レベルがLowである場合、カメラマイコン205が通信待機要求を通知している状態であることを意味している。信号レベルがHiである場合、ステップS404に進み、信号レベルがHiでない場合、ステップS403の判定を繰り返す。 In step S403, the lens microcomputer 111 determines whether the signal level of the signal line CS is Hi. When the signal level is Low, it means that the camera microcomputer 205 is in a state of notifying a communication standby request. If the signal level is Hi, the process proceeds to step S404, and if the signal level is not Hi, the determination of step S403 is repeated.

ステップS404では、レンズマイコン111は、ステップS403で受信したデータに、送信要求コマンドが含まれるか否かを判定する。送信要求コマンドが含まれている場合、ステップS407に進み、送信要求コマンドが含まれていない場合、ステップS405に進む。 In step S404, the lens microcomputer 111 determines whether or not the data received in step S403 includes a transmission request command. If the transmission request command is included, the process proceeds to step S407, and if the transmission request command is not included, the process proceeds to step S405.

ステップS405では、レンズマイコン111は、受信したデータの解析や受信したデータに対応する内部処理を開始するとともに、接地スイッチ1121をオン(接続)して信号線CSへのLow出力を開始する。これにより、カメラマイコン205に対して通信待機要求を通知する。 In step S405, the lens microcomputer 111 starts analyzing the received data and internal processing corresponding to the received data, and turns on (connects) the ground switch 1121 to start outputting Low to the signal line CS. As a result, the camera microcomputer 205 is notified of a communication standby request.

ステップS406では、レンズマイコン111は、接地スイッチ1121をオフ(遮断)して信号線CSへのLow出力を解除する。 In step S406, the lens microcomputer 111 turns off (interrupts) the ground switch 1121 to cancel the Low output to the signal line CS.

ステップS407では、レンズマイコン111は、信号線CSの信号レベルがHiになってからインターバル時間Tps1が経過したか否かを判定する。インターバル時間Tps1が経過した場合、ステップS408に進み、インターバル時間Tps1が経過していない場合、ステップS407の判定を繰り返し行う。 In step S407, the lens microcomputer 111 determines whether or not the interval time Tps1 has passed since the signal level of the signal line CS became Hi. If the interval time Tps1 has elapsed, the process proceeds to step S408, and if the interval time Tps1 has not elapsed, the determination of step S407 is repeated.

ステップS408では、レンズマイコン111は、入出力切り換えスイッチ1122を操作し、信号線DATAをレンズマイコン111のデータ出力部に接続する。 In step S<b>408 , the lens microcomputer 111 operates the input/output switch 1122 to connect the signal line DATA to the data output section of the lens microcomputer 111 .

ステップS409では、レンズマイコン111は、データ送信を開始する。 In step S409, the lens microcomputer 111 starts data transmission.

ステップS410では、レンズマイコン111は、データ送信が完了してからインターバル時間Tps2が経過したか否かを判定する。インターバル時間Tps2が経過した場合、ステップS411に進み、インターバル時間Tps2が経過していない場合、ステップS410の判定を繰り返し行う。 In step S410, the lens microcomputer 111 determines whether or not the interval time Tps2 has passed since the data transmission was completed. If the interval time Tps2 has elapsed, the process proceeds to step S411, and if the interval time Tps2 has not elapsed, the determination of step S410 is repeated.

ステップS411では、レンズマイコン111は、接地スイッチ1121をオン(接続)して信号線CSへのLow出力を開始する。これにより、カメラマイコン205に対して通信待機要求を通知する。信号レベルがLowの間、カメラマイコン205はレンズマイコン111に対するデータ送信を行わない。 In step S411, the lens microcomputer 111 turns on (connects) the ground switch 1121 to start outputting Low to the signal line CS. As a result, the camera microcomputer 205 is notified of a communication standby request. While the signal level is Low, the camera microcomputer 205 does not transmit data to the lens microcomputer 111 .

ステップS412では、レンズマイコン111は、入出力切り換えスイッチ1122を操作し、信号線DATAをレンズマイコン111のデータ入力部に接続する。 In step S<b>412 , the lens microcomputer 111 operates the input/output switch 1122 to connect the signal line DATA to the data input section of the lens microcomputer 111 .

ステップS413では、レンズマイコン111は、接地スイッチ1121をオフ(遮断)して信号線CSへのLow出力を解除する。 In step S413, the lens microcomputer 111 turns off (interrupts) the ground switch 1121 to cancel the Low output to the signal line CS.

ステップS414では、レンズマイコン111は、信号線CSの信号レベルがHiであるか否かを判定する。信号線CSの信号レベルがHiである場合、カメラマイコン205およびレンズマイコン111が通信可能な状態であることを意味している。信号レベルがHiである場合、本フローを終了し、信号レベルがHiでない場合、ステップS414の判定を繰り返し行う。 In step S414, the lens microcomputer 111 determines whether the signal level of the signal line CS is Hi. When the signal level of the signal line CS is Hi, it means that the camera microcomputer 205 and the lens microcomputer 111 are in a communicable state. If the signal level is Hi, this flow is terminated, and if the signal level is not Hi, the determination in step S414 is repeated.

以上説明したように、カメラ200から、交換レンズ100および中間アダプタ300等のアクセサリにデータを送信する間の信号線CSの信号レベルを、ブロードキャスト通信とP2P通信とで異ならせている。このようなシステムにより、カメラ200が特定のアクセサリと個別に通信を行う場合に、通信相手が変更されるまでは通信相手を改めて通知する必要がない。したがって、カメラ200と、交換レンズ100や中間アダプタ300等のアクセサリとの間の通信を高速に行うことができる。 As described above, the signal level of the signal line CS during data transmission from the camera 200 to accessories such as the interchangeable lens 100 and the intermediate adapter 300 is made different between broadcast communication and P2P communication. With such a system, when the camera 200 individually communicates with a specific accessory, there is no need to notify the other party of communication again until the other party of communication is changed. Therefore, high-speed communication can be performed between the camera 200 and accessories such as the interchangeable lens 100 and the intermediate adapter 300 .

また、信号線CSの変化とデータ通信とのタイミング間に適切なインターバル時間を設けることで、カメラ200とアクセサリとの間で通信方式の誤認識を防ぐことができるため、通信品質の高い通信を実現できる。 In addition, by providing an appropriate interval time between the change of the signal line CS and the timing of the data communication, it is possible to prevent erroneous recognition of the communication method between the camera 200 and the accessory. realizable.

なお、本実施形態で説明したブロードキャスト通信方式およびP2P通信方式における信号線の信号レベルの変化を全て逆にしてもよい。この場合でも、本発明の効果を得ることは可能である。
<変形例>
以下、図9を参照して、図4で説明したブロードキャスト通信における通信制御方法とは異なる通信制御方法について説明する。図4で説明したブロードキャスト通信では、カメラマイコン205が信号線CSにLow出力を行って、信号線CSの信号レベルをLowにすることでブロードキャスト通信の開始を各通信スレーブに通知する。
It should be noted that all changes in the signal level of the signal lines in the broadcast communication method and the P2P communication method described in this embodiment may be reversed. Even in this case, it is possible to obtain the effects of the present invention.
<Modification>
A communication control method different from the communication control method in the broadcast communication described with reference to FIG. 4 will be described below with reference to FIG. In the broadcast communication described with reference to FIG. 4, the camera microcomputer 205 notifies each communication slave of the start of broadcast communication by outputting a Low signal to the signal line CS to set the signal level of the signal line CS to Low.

図9では、レンズマイコン111やアダプタマイコン302が、ブロードキャスト通信の開始をカメラマイコン205にリクエストする態様が示されている。カメラマイコン205への通信リクエストは、カメラマイコン205からアクセサリのマイコンへの通信が一時停止された状態において、アクセサリのマイコンが、カメラマイコン205との通信を主体的に再開させる場合に実行される。 FIG. 9 shows how the lens microcomputer 111 and the adapter microcomputer 302 request the camera microcomputer 205 to start broadcast communication. A communication request to the camera microcomputer 205 is executed when the accessory microcomputer proactively resumes communication with the camera microcomputer 205 while communication from the camera microcomputer 205 to the accessory microcomputer is suspended.

本変形例は、例えば、中間アダプタ300に設けられた操作部材304がユーザによって操作された場合に実行される。交換レンズ100に設けられた操作リング130がユーザによって操作された場合にも実行される。カメラシステムにおいて、通信が一時停止された状態から通信を再開させる場合、基本的には、カメラマイコン205が主体的に通信を再開させることが適切である。アクセサリのマイコンに通信を再開させる機能を持たせることは、カメラシステムにおいて、予期しないタイミングでの通信再開が行われるおそれがある。そのため、通信スレーブに対して、無制限に通信を再開させる機能を持たせることは好ましくない。 This modification is performed, for example, when the operation member 304 provided on the intermediate adapter 300 is operated by the user. It is also executed when the operation ring 130 provided on the interchangeable lens 100 is operated by the user. In the camera system, when resuming communication from a state in which communication has been suspended, it is basically appropriate for the camera microcomputer 205 to reactivate communication on its own initiative. If the accessory microcomputer has a function of resuming communication, there is a risk that communication may be resumed at an unexpected timing in the camera system. Therefore, it is not preferable to give the communication slave a function of resuming communication indefinitely.

そこで、本変形例では、アクセサリのマイコンが、カメラマイコン205への通信開始リクエストを行うという形で、アクセサリのマイコンに、通信を再開させる機能を持たせている。 Therefore, in this modification, the accessory microcomputer is provided with a function of resuming communication in the form of requesting the camera microcomputer 205 to start communication.

図9は、本変形例のブロードキャスト通信における通信波形を示す図である。本変形例の通信制御方法では、レンズマイコン111やアダプタマイコン302が、通信イベントの発生の有無を監視している。通信イベントが発生した場合、信号線CSにLow出力を行うことで信号線CSの信号レベルをLowにする。 FIG. 9 is a diagram showing communication waveforms in broadcast communication according to this modification. In the communication control method of this modified example, the lens microcomputer 111 and the adapter microcomputer 302 monitor whether or not a communication event occurs. When a communication event occurs, the signal level of the signal line CS is set to Low by outputting Low to the signal line CS.

カメラマイコン205は、信号線CSの信号レベルがLowになったことに応じて、信号線CSにLow出力を行った上でブロードキャスト通信を開始する。このとき、カメラマイコン205は、信号線CSの信号レベルがLowになってからインターバル時間Tbm2経過後に、送信するデータを信号線DATAに出力する。データを信号線DATAに出力した後のブロードキャスト通信のフローは、図4で説明したフローと同じであるため、ここでの説明は省略する。 When the signal level of the signal line CS becomes Low, the camera microcomputer 205 outputs Low to the signal line CS and then starts broadcast communication. At this time, the camera microcomputer 205 outputs the data to be transmitted to the signal line DATA after the interval time Tbm2 has passed since the signal level of the signal line CS became Low. The flow of broadcast communication after outputting the data to the signal line DATA is the same as the flow described with reference to FIG. 4, so the description is omitted here.

以上説明した実施例は、信号線CSと信号線DATAを含む信号線に加え、別の信号線と併用可能である。その一例を、図10を参照して説明する。図10は、その他の信号線について説明する図である。図10において、図1と同一の部材には同一の符号を付し、重複する説明は省略する。また、図10において、図1に記載されている部材の一部の図示を省略している。信号線CSおよび信号線DATAは、第3通信という通信用の信号線である。 The embodiments described above can be used in combination with other signal lines in addition to the signal lines including the signal line CS and the signal line DATA. An example thereof will be described with reference to FIG. FIG. 10 is a diagram illustrating other signal lines. In FIG. 10, the same members as those in FIG. 1 are denoted by the same reference numerals, and overlapping descriptions are omitted. Also, in FIG. 10, illustration of some of the members shown in FIG. 1 is omitted. The signal line CS and the signal line DATA are signal lines for communication called third communication.

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

まず、第1通信について説明する。第1通信は、通信部132および通信部209を介して行われる。通信部132および通信部209はそれぞれ、レンズマイコン111およびカメラマイコン205からの指示に基づいて、信号線CS1,DCL,DLCを介して通信を行う。信号線CS1は、カメラ200から交換レンズ100への通信要求の通知等に用いられる。信号線DCLは、カメラ200から交換レンズ100にデータを送信する際に用いられる。信号線DLCは、交換レンズ100からカメラ200にデータを送信する際に用いられる。通信部132および通信部209は、信号線CS1の信号レベル、および調歩同期通信の際の通信レート(単位時間当たりのデータ量)や通信電圧を設定する。また、通信部132および通信部209は、レンズマイコン111およびカメラマイコン205からの指示を受けて、信号線DCL,DLCを介したデータの送受信を行う。 First, the first communication will be explained. The first communication is performed via communication section 132 and communication section 209 . The communication unit 132 and the communication unit 209 perform communication via signal lines CS1, DCL, and DLC based on instructions from the lens microcomputer 111 and camera microcomputer 205, respectively. The signal line CS1 is used for notification of a communication request from the camera 200 to the interchangeable lens 100, and the like. A signal line DCL is used when transmitting data from the camera 200 to the interchangeable lens 100 . A signal line DLC is used when transmitting data from the interchangeable lens 100 to the camera 200 . The communication unit 132 and the communication unit 209 set the signal level of the signal line CS1, and the communication rate (data amount per unit time) and communication voltage for asynchronous communication. In addition, the communication unit 132 and the communication unit 209 receive instructions from the lens microcomputer 111 and the camera microcomputer 205 and transmit and receive data via the signal lines DCL and DLC.

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

次に、第2通信について説明する。第2通信は、交換レンズ100からカメラ200への一方向の通信であり、通信部133および通信部210を介して行われる。通信部133および通信部210はそれぞれ、レンズマイコン111およびカメラマイコン205からの指示に基づいて、信号線CS2,DLC2を介して通信を行う。カメラマイコン205およびレンズマイコン111は、第2通信では、クロック同期通信または調歩同期通信により通信を行う。第1通信の信号線DLCとともに第2通信の信号線DLC2を用いることで、交換レンズ100からカメラ200に対して大量のデータを短時間で送信することが可能となる。
<インターバル時間の説明>
図11を参照して、インターバル時間について説明する。図11は、各ノードの信号線CSの信号検出タイミングを説明する図である。
Next, the second communication will be explained. The second communication is one-way communication from the interchangeable lens 100 to the camera 200 and is performed via the communication section 133 and the communication section 210 . The communication unit 133 and the communication unit 210 perform communication via the signal lines CS2 and DLC2 based on instructions from the lens microcomputer 111 and the camera microcomputer 205, respectively. In the second communication, the camera microcomputer 205 and the lens microcomputer 111 communicate by clock synchronous communication or asynchronous communication. By using the signal line DLC2 for the second communication together with the signal line DLC for the first communication, a large amount of data can be transmitted from the interchangeable lens 100 to the camera 200 in a short time.
<Explanation of interval time>
The interval time will be described with reference to FIG. FIG. 11 is a diagram for explaining signal detection timing of the signal line CS of each node.

本実施形態の通信を行うカメラおよびアクセサリを、ノードと定義する。また、信号線CSに信号出力を行うノードをノード0、それ以外のノードをノード1、ノード2と定義する。例えば、図11(a)の場合、図4が示す例ではノード0がカメラ200であり、ノード1、ノード2がそれぞれ中間アダプタ300、交換レンズ100となる。 A camera and accessories that perform communication in this embodiment are defined as nodes. A node that outputs a signal to the signal line CS is defined as node 0, and other nodes are defined as node 1 and node 2, respectively. For example, in the case of FIG. 11A, in the example shown in FIG. 4, node 0 is the camera 200, and nodes 1 and 2 are the intermediate adapter 300 and the interchangeable lens 100, respectively.

図11(a)は、信号線CSの信号レベルがHiからLowに変化した場合を示している。図11(a)の「CS」は、信号線CSの信号変化を示している。通信を全ノードで正しく行うために、信号線CSの信号レベルがLowであると判定するための電圧があらかじめ定められている。ここで、信号線CSの信号レベルがLowであると判断する電圧範囲の上限をCS Low検出レベルLcslmax、下限をCS Low検出レベルLcslminと定義する。本実施形態では、ノード1が、信号線CSの信号レベルがLowであると判断する信号レベルをCS Low検出レベルLcslmaxとしている。また、ノード2が、信号線CSの信号レベルがLowであると判断する信号レベルをCS Low検出レベルLcslminとしている。 FIG. 11(a) shows the case where the signal level of the signal line CS changes from Hi to Low. "CS" in FIG. 11(a) indicates the signal change of the signal line CS. A voltage for determining that the signal level of the signal line CS is Low is predetermined in order to perform communication correctly at all nodes. Here, the upper limit of the voltage range for determining that the signal level of the signal line CS is Low is defined as the CS Low detection level Lcslmax, and the lower limit is defined as the CS Low detection level Lcslmin. In this embodiment, the signal level at which the node 1 determines that the signal level of the signal line CS is Low is the CS Low detection level Lcslmax. The signal level at which the node 2 determines that the signal level of the signal line CS is Low is defined as the CS Low detection level Lcslmin.

ノード0が、信号線CSにLow出力を行うタイミングをTcsl1とすると、信号線CSのインピーダンスの関係で徐々に、信号線CSの信号レベルが変化する。 Assuming that the timing at which the node 0 outputs Low to the signal line CS is Tcsl1, the signal level of the signal line CS gradually changes due to the impedance of the signal line CS.

図11(a)に示されるように、信号線CSの信号レベルが、CS Low検出レベルLcslmaxと一致したタイミングTcsl2にて、ノード1は信号線CSの信号レベルがLowになったと判断する。また、信号線CSの信号レベルが、CS Low検出レベルLcslminと一致したタイミングTcsl3にて、ノード2は信号線CSの信号レベルがLowとなったと判断する。 As shown in FIG. 11(a), node 1 determines that the signal level of signal line CS has become Low at timing Tcsl2 when the signal level of signal line CS coincides with CS Low detection level Lcslmax. At timing Tcsl3 when the signal level of the signal line CS coincides with the CS Low detection level Lcslmin, the node 2 determines that the signal level of the signal line CS has become Low.

ここで、タイミングTcsl1からタイミングTcsl3までの時間をインターバル時間TΔcsl1と定義する。ノード0が信号線CSにLow出力を行ってから時間TΔcsl1だけ経過すると、すべてのノードは信号線CSの信号レベルがLowであると判断できる。 Here, the time from timing Tcsl1 to timing Tcsl3 is defined as interval time TΔcsl1. All nodes can determine that the signal level of the signal line CS is Low when time TΔcsl1 elapses after the node 0 outputs Low to the signal line CS.

また、タイミングTcsl2からタイミングTcsl3までの時間をインターバル時間TΔcsl2と定義する。ノード1のCS Low検出レベルがCS Low検出レベルLcslmaxである場合、信号線CSへのLow出力を検出してからインターバル時間TΔcsl2だけ経過すると、すべてのノードが信号線CSの信号レベルがLowであると判断できる。 Also, the time from timing Tcsl2 to timing Tcsl3 is defined as interval time TΔcsl2. When the CS Low detection level of the node 1 is the CS Low detection level Lcslmax, the signal level of the signal line CS of all nodes is Low after the interval time TΔcsl2 has elapsed after detecting the Low output to the signal line CS. can be judged.

インターバル時間TΔcsl1,TΔcsl2を考慮せず、信号線DATAにデータを送信すると、データ通信タイミングと信号線CSの信号レベルとの関係がノード間で異なる見解となり、正しく通信を行うことができなくなる。 If data is transmitted to the signal line DATA without considering the interval times TΔcsl1 and TΔcsl2, the relationship between the data communication timing and the signal level of the signal line CS will differ between the nodes, and communication will not be performed correctly.

図11(b)は、信号線CSの信号レベルがLowからHiに変化した場合を示している。図11(b)の「CS」は、信号線CSの信号変化を示している。通信を全ノードで正しく行うために、信号線CSの信号レベルがHiであると判定するための電圧があらかじめ定められている。ここで、信号線CSの信号レベルがHiであると判断する電圧範囲の上限をCS High検出レベルLcshmax、下限をCS High検出レベルLcshminと定義する。 FIG. 11(b) shows the case where the signal level of the signal line CS changes from Low to Hi. "CS" in FIG. 11(b) indicates the signal change of the signal line CS. A voltage for determining that the signal level of the signal line CS is Hi is predetermined in order to perform communication correctly at all nodes. Here, the upper limit of the voltage range for determining that the signal level of the signal line CS is Hi is defined as the CS High detection level Lcshmax, and the lower limit as the CS High detection level Lcshmin.

ここで、タイミングTcsh1からタイミングTcsh3までの時間をインターバル時間TΔcsh1と定義する。ノード0が信号線CSにHigh出力を行ってからインターバル時間TΔcsh1だけ経過すると、すべてのノードは信号線CSの信号レベルがHiであると判断できる。 Here, the time from timing Tcsh1 to timing Tcsh3 is defined as interval time TΔcsh1. When the interval time TΔcsh1 elapses after the node 0 outputs High to the signal line CS, all nodes can determine that the signal level of the signal line CS is Hi.

また、タイミングTcsh2からタイミングTcsh3までの時間をインターバル時間TΔcsh2とする。ノード1のCS High検出レベルがCS High検出レベルLcshminである場合、信号線CSへのHigh出力を検出してからインターバル時間TΔcsh2だけ経過すると、すべてのノードは信号線CSの信号レベルがLowであると判断できる。 Also, the time from timing Tcsh2 to timing Tcsh3 is assumed to be interval time TΔcsh2. When the CS High detection level of the node 1 is the CS High detection level Lcshmin, the signal level of the signal line CS of all the nodes is Low after the interval time TΔcsh2 has elapsed after detecting the High output to the signal line CS. can be judged.

本実施形態では、前述した所定のインターバル時間が、信号線CSの信号レベルが変化するまでの間の信号レベルの変化の時定数(信号線CSの信号レベルの変化時の時定数、信号変化時間)より長くなるように設定されている。 In the present embodiment, the above-described predetermined interval time is the time constant of the signal level change until the signal level of the signal line CS changes (the time constant of the signal level change of the signal line CS, the signal change time). ) is set to be longer.

なお、信号レベルがHighからLowに切り替わる場合、信号線CSが接地されるため、回路的に電圧変化を俊敏に行うことができる。そのため、信号レベルの変化がLowからHighに変わる場合に比べて時間を短くすることが可能である。したがって、信号線CSの信号レベルがHighからLowに切り替わる場合と、LowからHighに切り替わる場合で所定のインターバル時間を変化させればよい。具体的には、信号レベルがHighからLowに変化した後の所定のインターバル時間を、信号レベルがHighからLowに変化した後の所定のインターバル時間より短くすればよい。 Note that when the signal level switches from High to Low, the signal line CS is grounded, so the voltage can be quickly changed in terms of circuitry. Therefore, it is possible to shorten the time compared to when the signal level changes from Low to High. Therefore, the predetermined interval time should be changed when the signal level of the signal line CS switches from High to Low and when it switches from Low to High. Specifically, the predetermined interval time after the signal level changes from High to Low should be shorter than the predetermined interval time after the signal level changes from High to Low.

図12は、各ノードの発振誤差(発振誤差時間)による影響を説明する図である。図12では、時間TΔcsl1,TΔcsl2と、ノード0が実際にインターバル時間TΔcsl1として計測した時間であるTΔcsl1-0、ノード1が実際に時間TΔcsl2として計測したインターバル時間TΔcsl2-1との関係を示している。時間TΔcsl1-0,TΔcsl2-1はそれぞれ、インターバル時間TΔcsl1,TΔcsl2に対して、短い時間として計測されている。これは、時間測定を行っているマイコンの発振子または振動子の発振誤差に応じて発生する。発振誤差は、発振子または振動子の個体バラつきや温度変化によって変化する。したがって、インターバル時間に対して、各ノードは発振誤差に基づく乗算値IErrGainを乗算した値をインターバル時間として使用する必要がある。ここで、乗算値IErrGainは、あらかじめ定められた値が使用される。また、通信にて発信誤差情報をノード間で共有し、一番発振誤差の大きいものに応じて乗算値IErrGainを決定してもよい。 FIG. 12 is a diagram for explaining the influence of oscillation error (oscillation error time) at each node. FIG. 12 shows the relationship between the times TΔcsl1 and TΔcsl2, the time TΔcsl1-0 actually measured by the node 0 as the interval time TΔcsl1, and the interval time TΔcsl2-1 actually measured by the node 1 as the time TΔcsl2. . The times TΔcsl1-0 and TΔcsl2-1 are measured as shorter times than the interval times TΔcsl1 and TΔcsl2, respectively. This occurs according to the oscillation error of the oscillator or vibrator of the microcomputer that performs time measurement. Oscillation errors change due to individual variations in oscillators or vibrators and changes in temperature. Therefore, each node must use the value obtained by multiplying the multiplication value IErrGain based on the oscillation error as the interval time. Here, a predetermined value is used as the multiplication value IErrGain. Alternatively, transmission error information may be shared between nodes through communication, and the multiplication value IErrGain may be determined according to the largest oscillation error.

インターバル時間Tbm1,Tbm2,Tbs1,Tpm1,Tpm2,Tps1,Tps2はそれぞれ、以下の式(1)~(7)で表すことができる。 Interval times Tbm1, Tbm2, Tbs1, Tpm1, Tpm2, Tps1, and Tps2 can be expressed by the following equations (1) to (7), respectively.

ここで、各ノードが信号線CSの信号レベルを検出後、データ受信処理に切り替えるための時間(データ受信処理の送受信切り替え時間)をTch1と定義する。時間Tch1は、接続された全ノードの中で、データ受信処理に切り替えるための時間が一番長い時間となる。また、データ受信完了後、信号線CSの信号変化を検出できる状態になるまでの時間(信号線CSの変化検出を準備するための時間)をTch2と定義する。時間Tch2は、接続された全ノードの中で、データ受信完了後、信号線CSの信号変化を検出できる状態になるまでの時間が一番長い時間となる。時間Tch1,Tch2は、あらかじめ決められた値が使用される。また、通信にて、信号線CSの信号レベルの検出後、データ受信処理に切り替えるための時間、データ受信完了後、信号線CSの信号変化を検出できる状態になるまでの時間を共有し、一番長い時間に応じて時間Tch1,Tch2を決定してもよい。 Here, the time for each node to switch to data reception processing after detecting the signal level of the signal line CS (transmission/reception switching time for data reception processing) is defined as Tch1. Time Tch1 is the longest time for switching to data reception processing among all the connected nodes. Also, the time from the completion of data reception until a change in the signal of the signal line CS can be detected (the time for preparing to detect a change in the signal line CS) is defined as Tch2. Time Tch2 is the longest time from the completion of data reception to the time when the signal change of the signal line CS can be detected among all the connected nodes. Predetermined values are used for the times Tch1 and Tch2. In communication, the time for switching to data reception processing after detection of the signal level of the signal line CS, and the time for detecting the signal change of the signal line CS after completion of data reception are shared. The times Tch1 and Tch2 may be determined according to the longest time.

Tbm1=(TΔcsl1+Tch1)×IErrGain (1)
Tbm2=(TΔcsl2+Tch1)×IErrGain (2)
Tbs1=(TΔcsl1+Tch1)×IErrGain (3)
Tpm1=(TΔcsh2+Tch1)×IErrGain (4)
Tpm2=Tch2×IErrGain (5)
Tps1=(TΔcsh2+Tch1)×IErrGain (6)
Tps2=Tch2×IErrGain (7)
以上説明したように、適切なインターバル時間を設定することで、全ノード間で信号線通CSの信号レベルと、データ受信タイミングとの関係が一致し、ノード間による通信方式の誤認識を防ぎ、安定的な通信を実現できる。
[その他の実施例]
本発明は、上述の実施例の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
Tbm1=(TΔcsl1+Tch1)×IErrGain (1)
Tbm2=(TΔcsl2+Tch1)×IErrGain (2)
Tbs1=(TΔcsl1+Tch1)×IErrGain (3)
Tpm1=(TΔcsh2+Tch1)×IErrGain (4)
Tpm2=Tch2×IErrGain (5)
Tps1=(TΔcsh2+Tch1)×IErrGain (6)
Tps2=Tch2×IErrGain (7)
As described above, by setting an appropriate interval time, the relationship between the signal level of the signal line CS and the data reception timing matches between all nodes, preventing erroneous recognition of the communication system between nodes, Stable communication can be realized.
[Other Examples]
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 a storage medium, and one or more processors in the computer of the system or apparatus reads and executes the program. It can also be realized by processing to It can also be implemented by a circuit (for example, ASIC) that implements one or more functions.

以上、本発明の好ましい実施形態について説明したが、本発明はこれらの実施形態に限定されず、その要旨の範囲内で種々の変形及び変更が可能である。 Although preferred embodiments of the present invention have been described above, the present invention is not limited to these embodiments, and various modifications and changes are possible within the scope of the gist.

100 交換レンズ(アクセサリ)
200 カメラ
300 アダプタ(アクセサリ)
111 レンズマイクロコンピュータ(アクセサリ制御部)
302 アダプタマイクロコンピュータ(アクセサリ制御部)
100 interchangeable lenses (accessories)
200 Camera 300 Adapter (Accessory)
111 lens microcomputer (accessory control unit)
302 adapter microcomputer (accessory control unit)

Claims (24)

カメラに対して装着可能なアクセサリであって、
前記カメラとの間で行う、データ通信に用いられるデータ通信チャネルと前記データ通信チャネルを介して行う通信のタイミングを通知する通知チャネルとを含むチャネルを用いた通信を制御するアクセサリ制御部を有し、
前記アクセサリ制御部は、
通信相手の指定を伴わずに行われる通信のために用いられる第1通信方式と、前記カメラと指定された通信相手との間で行われる通信のために用いられる第2通信方式と、に切り替え可能であり、
前記カメラからデータを受信している間の前記通知チャネルの電圧レベルは、前記第1通信方式と前記第2通信方式では異なり、
前記通知チャネルの電圧レベルが最後に変化してから所定のインターバル時間が経過した後に、前記データ通信チャネルを介して前記カメラにデータを送信することを特徴とするアクセサリ。
An accessory attachable to a camera,
an accessory control unit for controlling communication using a channel including a data communication channel used for data communication with the camera and a notification channel for notifying timing of communication performed via the data communication channel; ,
The accessory control unit
Switching between a first communication method used for communication performed without specifying a communication partner and a second communication method used for communication performed between the camera and the specified communication partner is possible and
the voltage level of the notification channel while receiving data from the camera is different between the first communication method and the second communication method,
An accessory that transmits data to the camera via the data communication channel after a predetermined interval has elapsed since the voltage level of the notification channel last changed.
前記アクセサリ制御部は、前記第1通信方式において、前記通知チャネルの電圧レベルが、前記第2通信方式時にデータを受信している間の電圧レベルから前記第1通信方式時にデータを受信している間の電圧レベルに変化してから、第1インターバル時間が経過した後にデータを送信することを特徴とする請求項1に記載のアクセサリ。 In the first communication method, the accessory control unit receives data in the first communication method from a voltage level during which data is received in the second communication method to a voltage level of the notification channel. 2. The accessory of claim 1, wherein the data is transmitted after the first interval time has passed since the voltage level has changed to between. 前記アクセサリ制御部は、前記第2通信方式において、前記通知チャネルの電圧レベルが、前記第1通信方式時にデータを受信している間の電圧レベルから前記第2通信方式時にデータを受信している間の電圧レベルに変化してから、第2インターバル時間が経過した後にデータを送信することを特徴とする請求項1または2に記載のアクセサリ。 In the second communication method, the accessory control unit receives data in the second communication method from a voltage level during which data is received in the first communication method to a voltage level of the notification channel. 3. The accessory according to claim 1 or 2, wherein the data is transmitted after the second interval time has elapsed after the voltage level has changed to between. 前記アクセサリ制御部は、前記第2通信方式において、前記データ通信チャネルにデータの送信が完了した後、第3インターバル時間が経過した後に前記通知チャネルの電圧を、前記第2通信方式時にデータを受信している間の電圧レベルから前記第1通信方式時にデータを受信している間の電圧レベルに変化させることを特徴とする請求項1から3のいずれか1項に記載のアクセサリ。 In the second communication method, the accessory control unit receives the voltage of the notification channel after a third interval time elapses after data transmission to the data communication channel is completed, and receives data in the second communication method. 4. The accessory according to any one of claims 1 to 3, wherein the voltage level is changed from a voltage level while receiving data to a voltage level while receiving data during the first communication method. カメラに対して装着可能なアクセサリであって、
前記カメラとの間で行う、データ通信に用いられるデータ通信チャネルと前記データ通信チャネルを介して行う通信のタイミングを通知する通知チャネルとを含むチャネルを用いた通信を制御するアクセサリ制御部を有し、
前記アクセサリ制御部は、
通信相手の指定を伴わずに行われる通信のために用いられる第1通信方式と、前記カメラと指定された通信相手との間で行われる通信のために用いられる第2通信方式と、に切り替え可能であり、
前記カメラからデータを受信している間の前記通知チャネルの電圧レベルは、前記第1通信方式と前記第2通信方式では異なり、
前記第2通信方式において、前記データ通信チャネルにデータの送信が完了した後、所定のインターバル時間が経過した後に前記通知チャネルの電圧を、前記第2通信方式時にデータを受信している間の電圧レベルから前記第1通信方式時にデータを受信している間の電圧レベルに変化させることを特徴とするアクセサリ。
An accessory attachable to a camera,
an accessory control unit for controlling communication using a channel including a data communication channel used for data communication with the camera and a notification channel for notifying timing of communication performed via the data communication channel; ,
The accessory control unit
Switching between a first communication method used for communication performed without specifying a communication partner and a second communication method used for communication performed between the camera and the specified communication partner is possible and
the voltage level of the notification channel while receiving data from the camera is different between the first communication method and the second communication method,
In the second communication method, the voltage of the notification channel after a predetermined interval time has elapsed after data transmission to the data communication channel is completed, and the voltage during data reception in the second communication method. An accessory characterized by changing from a level to a voltage level while receiving data in the first communication method.
前記アクセサリ制御部は、前記第1通信方式において、前記通知チャネルの電圧レベルが、前記第2通信方式時にデータを受信している間の電圧レベルから前記第1通信方式時にデータを受信している間の電圧レベルに変化してから、第1インターバル時間が経過した後にデータを送信することを特徴とする請求項5に記載のアクセサリ。 In the first communication method, the accessory control unit receives data in the first communication method from a voltage level during which data is received in the second communication method to a voltage level of the notification channel. 6. The accessory according to claim 5, wherein the data is transmitted after the first interval time has passed since the voltage level has changed to between. 前記アクセサリ制御部は、前記第2通信方式において、前記通知チャネルの電圧レベルが、前記第1通信方式時にデータを受信している間の電圧レベルから前記第2通信方式時にデータを受信している間の電圧レベルに変化してから、第2インターバル時間が経過した後にデータを送信することを特徴とする請求項5または6に記載のアクセサリ。 In the second communication method, the accessory control unit receives data in the second communication method from a voltage level during which data is received in the first communication method to a voltage level of the notification channel. 7. The accessory according to claim 5 or 6, wherein the data is transmitted after the second interval time has passed after the voltage level has changed to between. 前記所定のインターバル時間は、前記通知チャネルの信号変化時間、カメラまたはアクセサリの発振誤差時間、データ受信処理の送受信切り替え時間およびデータ受信完了後に前記通知チャネルの変化検出を準備するための時間の少なくとも1つに基づいて決定されることを特徴とする請求項1から7のいずれか1項に記載のアクセサリ。 The predetermined interval time is at least one of the signal change time of the notification channel, the oscillation error time of the camera or accessory, the transmission/reception switching time of data reception processing, and the time for preparing for detection of change in the notification channel after completion of data reception. 8. An accessory as claimed in any one of claims 1 to 7, characterized in that it is determined based on one. 前記所定のインターバル時間は、前記通知チャネルの電圧レベルの変化時の時定数より長いことを特徴とする請求項1から8のいずれか1項に記載のアクセサリ。 9. An accessory according to any one of the preceding claims, wherein said predetermined interval time is longer than the time constant for changes in voltage level of said notification channel. 前記通知チャネルの電圧レベルが第1レベルから前記第1レベルよりも低い第2レベルに変化した後のデータ送信のための所定のインターバル時間は、前記通知チャネルの電圧レベルが前記第2レベルから前記第1レベルに変化した後のデータ送信のための所定のインターバル時間より短いことを特徴とする請求項1から9のいずれか1項に記載のアクセサリ。 A predetermined interval for data transmission after the voltage level of the notification channel changes from a first level to a second level lower than the first level, the voltage level of the notification channel is changed from the second level to the 10. An accessory according to any one of the preceding claims, characterized in that it is shorter than a predetermined interval time for data transmission after changing to the first level. アクセサリが装着可能なカメラであって、
前記アクセサリとの間で行う、データ通信に用いられるデータ通信チャネルと前記データ通信チャネルを介して行う通信のタイミングを通知する通知チャネルとを含むチャネルを用いた通信を制御するカメラ制御部を有し、
前記カメラ制御部は、
通信相手の指定を伴わずに行われる通信のために用いられる第1通信方式と、前記カメラと指定された通信相手との間で行われる通信のために用いられる第2通信方式と、に切り替え可能であり、
前記アクセサリが前記カメラからデータを受信している間の前記通知チャネルの電圧レベルは、前記第1通信方式と前記第2通信方式では異なり、
前記通知チャネルの電圧レベルが最後に変化してから所定のインターバル時間が経過した後にデータを送信することを特徴とするカメラ。
A camera to which an accessory can be attached,
a camera control unit for controlling communication using channels including a data communication channel used for data communication with the accessory and a notification channel for notifying timing of communication performed via the data communication channel; ,
The camera control unit
Switching between a first communication method used for communication performed without specifying a communication partner and a second communication method used for communication performed between the camera and the specified communication partner is possible and
the voltage level of the notification channel while the accessory is receiving data from the camera is different between the first communication method and the second communication method,
A camera, characterized in that data is transmitted after a predetermined interval time has elapsed since the voltage level of the notification channel last changed.
前記カメラ制御部は、前記第1通信方式において、前記通知チャネルの電圧レベルが、前記第2通信方式時にデータを受信している間の電圧レベルから前記第1通信方式時にデータを受信している間の電圧レベルに変化してから第4インターバル時間が経過した後にデータを送信することを特徴とする請求項11に記載のカメラ。 In the first communication method, the camera control unit receives data during the first communication method from a voltage level during which the voltage level of the notification channel is receiving data during the second communication method. 12. The camera according to claim 11, wherein the data is transmitted after the fourth interval time has passed since the voltage level changed to the intermediate voltage level. 前記カメラ制御部は、前記第2通信方式において、前記通知チャネルの電圧レベルが、前記第1通信方式時にデータを受信している間の電圧レベルから前記第2通信方式時にデータを受信している間の第2電圧レベルに変化してから第5インターバル時間が経過した後にデータを送信することを特徴とする請求項11または12に記載のカメラ。 In the second communication method, the camera control unit receives data when the voltage level of the notification channel is from a voltage level during which data is received when the first communication method is used. 13. The camera according to claim 11 or 12, wherein data is transmitted after a fifth interval time has elapsed since the voltage level changed to the second voltage level between. 前記カメラ制御部は、前記第2通信方式において、前記データ通信チャネルにデータの送信が完了した後、第6インターバル時間が経過した後に前記通知チャネルの電圧レベルを、前記第2通信方式時にデータを受信している間の電圧レベルから前記第1通信方式時にデータを受信している間の電圧レベルに変化させることを特徴とする請求項11から13のいずれか1項に記載のカメラ。 In the second communication method, the camera control unit adjusts the voltage level of the notification channel after the passage of a sixth interval time after data transmission to the data communication channel is completed, and transmits the data in the second communication method. 14. The camera according to any one of claims 11 to 13, wherein the voltage level is changed from a voltage level during data reception to a voltage level during data reception in the first communication method. アクセサリが装着可能なカメラであって、
前記アクセサリとの間で行う、データ通信に用いられるデータ通信チャネルと前記データ通信チャネルを介して行う通信のタイミングを通知する通知チャネルとを含むチャネルを用いた通信を制御するカメラ制御部を有し、
前記カメラ制御部は、
通信相手の指定を伴わずに行われる通信のために用いられる第1通信方式と、前記カメラと指定された通信相手との間で行われる通信のために用いられる第2通信方式と、に切り替え可能であり、
前記アクセサリが前記カメラからデータを受信している間の前記通知チャネルの電圧レベルは、前記第1通信方式と前記第2通信方式では異なり、
前記第2通信方式において、前記データ通信チャネルにデータの送信が完了した後、所定のインターバル時間が経過した後に通知チャネルの電圧レベルを、前記第2通信方式時にデータを受信している間の電圧レベルから前記第1通信方式時にデータを受信している間の電圧レベルに変化させることを特徴とするカメラ。
A camera to which an accessory can be attached,
a camera control unit for controlling communication using channels including a data communication channel used for data communication with the accessory and a notification channel for notifying timing of communication performed via the data communication channel; ,
The camera control unit
Switching between a first communication method used for communication performed without specifying a communication partner and a second communication method used for communication performed between the camera and the specified communication partner is possible and
the voltage level of the notification channel while the accessory is receiving data from the camera is different between the first communication method and the second communication method,
In the second communication method, after the data transmission to the data communication channel is completed, the voltage level of the notification channel after a predetermined interval time elapses, and the voltage during data reception in the second communication method. A camera characterized in that the voltage level is changed from the level to the voltage level while data is being received in the first communication method.
前記カメラ制御部は、前記第1通信方式において、前記通知チャネルの電圧レベルが、前記第2通信方式時にデータを受信している間の電圧レベルから前記第1通信方式時にデータを受信している間の電圧レベルに変化してから第4インターバル時間が経過した後にデータを送信することを特徴とする請求項15に記載のカメラ。 In the first communication method, the camera control unit receives data during the first communication method from a voltage level during which the voltage level of the notification channel is receiving data during the second communication method. 16. The camera according to claim 15, wherein the data is transmitted after the fourth interval time has passed since the voltage level changed to the intermediate voltage level. 前記カメラ制御部は、前記第2通信方式において、前記通知チャネルの電圧レベルが、前記第1通信方式時にデータを受信している間の電圧レベルから前記第2通信方式時にデータを受信している間の第2電圧レベルに変化してから第5インターバル時間が経過した後にデータを送信することを特徴とする請求項15または16に記載のカメラ。 In the second communication method, the camera control unit receives data when the voltage level of the notification channel is from a voltage level during which data is received when the first communication method is used. 17. A camera according to claim 15 or 16, wherein data is transmitted after a fifth interval time has elapsed since the voltage level changed to the second voltage level between. 前記所定のインターバル時間は、前記通知チャネルの信号変化時間、カメラまたはアクセサリの発振誤差時間、データ受信処理の送受信切り替え時間およびデータ受信完了後に前記通知チャネルの変化検出を準備するための時間の少なくとも1つに基づいて決定されることを特徴とする請求項11から17のいずれか1項に記載のカメラ。 The predetermined interval time is at least one of the signal change time of the notification channel, the oscillation error time of the camera or accessory, the transmission/reception switching time of data reception processing, and the time for preparing for detection of change in the notification channel after completion of data reception. 18. A camera as claimed in any one of claims 11 to 17, characterized in that it is determined based on one. 前記所定のインターバル時間は、前記通知チャネルの電圧レベルの変化時の時定数より長いことを特徴とする請求項11から18のいずれか1項に記載のカメラ。 19. A camera according to any one of claims 11 to 18, wherein said predetermined interval time is longer than a time constant for changes in voltage level of said notification channel. 前記通知チャネルの電圧レベルが第1レベルから前記第1レベルよりも低い第2レベルに変化した後のデータ送信のための所定のインターバル時間は、前記通知チャネルの電圧レベルが前記第2レベルから前記第1レベルに変化した後のデータ送信のための所定のインターバル時間より短いことを特徴とする請求項11から19のいずれか1項に記載のカメラ。 A predetermined interval for data transmission after the voltage level of the notification channel changes from a first level to a second level lower than the first level, the voltage level of the notification channel is changed from the second level to the 20. A camera according to any one of claims 11 to 19, characterized in that it is shorter than a predetermined interval time for data transmission after changing to the first level. カメラに対して装着可能であり、前記カメラとの間で行う、データ通信に用いられるデータ通信チャネルと前記データ通信チャネルを介して行う通信のタイミングを通知する通知チャネルとを含むチャネルを用いた通信を制御するアクセサリであって、通信相手の指定を伴わずに行われる通信のために用いられる第1通信方式と、前記カメラと指定された通信相手との間で行われる通信のために用いられる第2通信方式と、に切り替え可能であり、前記カメラからデータを受信している間の前記通知チャネルの電圧レベルは、前記第1通信方式と前記第2通信方式では異なるアクセサリのコンピュータに、
前記通知チャネルの電圧レベルが最後に変化してから所定のインターバル時間が経過したかどうかを判定するステップと、
前記所定のインターバル時間が経過した後に、前記データ通信チャネルを介して前記カメラにデータを送信するステップと、を実行させることを特徴とする通信制御プログラム。
Communication using a channel that can be attached to a camera and that includes a data communication channel used for data communication with the camera and a notification channel for notifying timing of communication performed via the data communication channel and a first communication method used for communication without specifying a communication partner, and a communication method used for communication between the camera and the specified communication partner a second communication method, wherein the voltage level of the notification channel while receiving data from the camera is different between the first communication method and the second communication method,
determining whether a predetermined interval has elapsed since the voltage level of the notification channel last changed;
and transmitting data to the camera through the data communication channel after the predetermined interval time has passed.
カメラに対して装着可能であり、前記カメラとの間で行う、データ通信に用いられるデータ通信チャネルと前記データ通信チャネルを介して行う通信のタイミングを通知する通知チャネルとを含むチャネルを用いた通信を制御するアクセサリであって、通信相手の指定を伴わずに行われる通信のために用いられる第1通信方式と、前記カメラと指定された通信相手との間で行われる通信のために用いられる第2通信方式と、に切り替え可能であり、前記カメラからデータを受信している間の前記通知チャネルの電圧レベルは、前記第1通信方式と前記第2通信方式では異なるアクセサリのコンピュータに、
前記第2通信方式において、前記データ通信チャネルにデータの送信が完了してから所定のインターバル時間が経過したかどうかを判定するステップと、
前記所定のインターバル時間が経過した後に前記通知チャネルの電圧を、前記第2通信方式時にデータを受信している間の電圧レベルから前記第1通信方式時にデータを受信している間の電圧レベルに変化させるステップと、を実行させることを特徴とする通信制御プログラム。
Communication using a channel that can be attached to a camera and that includes a data communication channel used for data communication with the camera and a notification channel for notifying timing of communication performed via the data communication channel and a first communication method used for communication without specifying a communication partner, and a communication method used for communication between the camera and the specified communication partner a second communication method, wherein the voltage level of the notification channel while receiving data from the camera is different between the first communication method and the second communication method,
in the second communication method, determining whether or not a predetermined interval time has passed after data transmission to the data communication channel is completed;
After the predetermined interval time has passed, the voltage of the notification channel is changed from the voltage level while data is being received in the second communication method to the voltage level while data is being received in the first communication method. A communication control program characterized by executing:
アクセサリが装着可能であり、前記アクセサリとの間で行う、データ通信に用いられるデータ通信チャネルと前記データ通信チャネルを介して行う通信のタイミングを通知する通知チャネルとを含むチャネルを用いた通信を制御するカメラであって、通信相手の指定を伴わずに行われる通信のために用いられる第1通信方式と、前記カメラと指定された通信相手との間で行われる通信のために用いられる第2通信方式と、に切り替え可能であり、前記アクセサリが前記カメラからデータを受信している間の前記通知チャネルの電圧レベルは、前記第1通信方式と前記第2通信方式では異なるカメラのコンピュータに、
前記通知チャネルの電圧レベルが最後に変化してから所定のインターバル時間が経過したかどうかを判定するステップと、
前記所定のインターバル時間が経過した後にデータを送信するステップと、を実行させることを特徴とする通信制御プログラム。
An accessory is mountable and controls communication using a channel including a data communication channel used for data communication with the accessory and a notification channel for notifying the timing of communication performed via the data communication channel. and a second communication method used for communication between the camera and the designated communication partner. a communication method, wherein the voltage level of the notification channel while the accessory is receiving data from the camera is different for the first communication method and the second communication method;
determining whether a predetermined interval has elapsed since the voltage level of the notification channel last changed;
and a step of transmitting data after the predetermined interval time has passed.
アクセサリが装着可能であり、前記アクセサリとの間で行う、データ通信に用いられるデータ通信チャネルと前記データ通信チャネルを介して行う通信のタイミングを通知する通知チャネルとを含むチャネルを用いた通信を制御するカメラであって、通信相手の指定を伴わずに行われる通信のために用いられる第1通信方式と、前記カメラと指定された通信相手との間で行われる通信のために用いられる第2通信方式と、に切り替え可能であり、前記アクセサリが前記カメラからデータを受信している間の前記通知チャネルの電圧レベルは、前記第1通信方式と前記第2通信方式では異なるカメラのコンピュータに、
前記第2通信方式において、前記データ通信チャネルにデータの送信が完了してから所定のインターバル時間が経過したかどうかを判定するステップと、
前記所定のインターバル時間が経過した後に通知チャネルの電圧レベルを、前記第2通信方式時にデータを受信している間の電圧レベルから前記第1通信方式時にデータを受信している間の電圧レベルに変化させるステップと、を実行させることを特徴とする通信制御プログラム。
An accessory is mountable and controls communication using a channel including a data communication channel used for data communication with the accessory and a notification channel for notifying the timing of communication performed via the data communication channel. and a second communication method used for communication between the camera and the designated communication partner. a communication method, wherein the voltage level of the notification channel while the accessory is receiving data from the camera is different for the first communication method and the second communication method;
in the second communication method, determining whether or not a predetermined interval time has passed after data transmission to the data communication channel is completed;
After the predetermined interval time has passed, the voltage level of the notification channel is changed from the voltage level while data is being received in the second communication method to the voltage level while data is being received in the first communication method. A communication control program characterized by executing:
JP2018161538A 2018-08-30 2018-08-30 Accessories, cameras and communication control programs Active JP7171316B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018161538A JP7171316B2 (en) 2018-08-30 2018-08-30 Accessories, cameras and communication control programs

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018161538A JP7171316B2 (en) 2018-08-30 2018-08-30 Accessories, cameras and communication control programs

Publications (3)

Publication Number Publication Date
JP2020034745A JP2020034745A (en) 2020-03-05
JP2020034745A5 JP2020034745A5 (en) 2021-10-07
JP7171316B2 true JP7171316B2 (en) 2022-11-15

Family

ID=69667943

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018161538A Active JP7171316B2 (en) 2018-08-30 2018-08-30 Accessories, cameras and communication control programs

Country Status (1)

Country Link
JP (1) JP7171316B2 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003121722A (en) 2001-10-19 2003-04-23 Canon Inc Camera system and camera
JP2006171392A (en) 2004-12-16 2006-06-29 Canon Inc Camera system, intermediate accessory thereof, camera body, and interchangeable lens
JP2010266595A (en) 2009-05-13 2010-11-25 Canon Inc Camera and interchangeable lens mounted in camera
JP2013231946A (en) 2012-04-04 2013-11-14 Canon Inc Imaging apparatus and lens unit
JP2017184067A (en) 2016-03-31 2017-10-05 キヤノン株式会社 Accessory apparatus, imaging apparatus, and communication control program
WO2018139168A1 (en) 2017-01-27 2018-08-02 富士フイルム株式会社 Camera system, camera, lens, accessory, and method for detecting camera system accessory

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5208169B2 (en) * 2010-08-06 2013-06-12 キヤノン株式会社 Intermediate accessories for camera systems and camera systems
JP5643788B2 (en) * 2012-07-20 2014-12-17 キヤノン株式会社 Imaging apparatus, control method therefor, and lens unit
JP2014071289A (en) * 2012-09-28 2014-04-21 Nikon Corp Exchangeable lens, adaptor, camera system
JP2018081219A (en) * 2016-11-17 2018-05-24 キヤノン株式会社 Lens unit, imaging apparatus, and communication control method of lens unit and imaging apparatus

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003121722A (en) 2001-10-19 2003-04-23 Canon Inc Camera system and camera
JP2006171392A (en) 2004-12-16 2006-06-29 Canon Inc Camera system, intermediate accessory thereof, camera body, and interchangeable lens
JP2010266595A (en) 2009-05-13 2010-11-25 Canon Inc Camera and interchangeable lens mounted in camera
JP2013231946A (en) 2012-04-04 2013-11-14 Canon Inc Imaging apparatus and lens unit
JP2017184067A (en) 2016-03-31 2017-10-05 キヤノン株式会社 Accessory apparatus, imaging apparatus, and communication control program
WO2018139168A1 (en) 2017-01-27 2018-08-02 富士フイルム株式会社 Camera system, camera, lens, accessory, and method for detecting camera system accessory

Also Published As

Publication number Publication date
JP2020034745A (en) 2020-03-05

Similar Documents

Publication Publication Date Title
JP7409623B2 (en) Accessory devices, cameras, communication control programs, and camera systems
JP7401612B2 (en) Cameras, accessory devices, communication control methods, computer programs, and camera systems
EP3633972B1 (en) Camera, accessory device, communication control method, computer program, and camera system
WO2018221591A1 (en) Accessory device, camera, and communication control program
JP6427288B1 (en) Accessory device, camera and communication control program
JP6479242B2 (en) Camera and communication control method thereof
JP7293177B2 (en) Accessory device, imaging device, imaging system, communication device, communication method, and program
JP7171316B2 (en) Accessories, cameras and communication control programs
JP7258631B2 (en) IMAGING DEVICE, ACCESSORY DEVICE, AND CONTROL METHOD THEREOF
JP7046709B2 (en) Accessory device, camera system with it, and program
EP3705939B1 (en) Camera, accessory device and control method thereof
WO2018221558A1 (en) Camera and communication control method for same
JP7158958B2 (en) Accessories, cameras, and communication control programs
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
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210824

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210824

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20221004

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20221102

R151 Written notification of patent or utility model registration

Ref document number: 7171316

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151