JP7171316B2 - Accessories, cameras and communication control programs - Google Patents
Accessories, cameras and communication control programs Download PDFInfo
- 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
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通信では、通信マスタに対して複数の通信スレーブが接続され、通信マスタによって指定された特定の通信スレーブと通信マスタとの間で通信が行われる。
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.
特許文献1にて開示されたI2C通信方式の通信では、特定の通信スレーブを指定するためのアドレス情報を、通信マスタと通信スレーブとの間で通信が行われるたびに送受信する必要がある。また、通信スレーブは、自身が通信マスタの通信相手として選択されているか否かをアドレス情報に基づいて確認する必要がある。
In the communication of the I2C communication method disclosed in
このような通信方式では、データのフォーマットとしてアドレス情報を含ませる必要があり、アドレス情報の分だけ送信可能なデータ量が低減してしまう。また、通信スレーブは、自身が通信相手として選択されているか否かを通信のたびに確認するため、通信が開始されるまでに待ち時間が生じてしまうおそれがある。以上のように、特許文献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
また、通知チャネルとデータ通信チャネルの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通信方式)と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
交換レンズ100と中間アダプタ300は、結合機構であるマウント400を介して機械的および電気的に接続されている。同様に、中間アダプタ300とカメラ200は、結合機構であるマウント401を介して機械的および電気的に接続されている。交換レンズ100および中間アダプタ300は、マウント400,401に設けられた電源端子部(図示せず)を介してカメラ200から電力を取得し、後述する各種アクチュエータや各装置のマイクロコンピュータの動作に必要な電力を供給する。また、交換レンズ100、カメラ200および中間アダプタ300は、マウント400,401に設けられた通信端子部を介して相互に通信を行う。
交換レンズ100は、撮像光学系を有する。撮像光学系は、被写体OBJ側から順に、フィールドレンズ101、変倍を行うズームレンズ(変倍レンズ)102、光量を調節する絞りユニット114、防振レンズ103および焦点調節を行うフォーカスレンズ104を含む。
The
ズームレンズ102はステッピングモータ107によって駆動されるレンズ保持枠105により保持され、フォーカスレンズ104はステッピングモータ108によって駆動されるレンズ保持枠106により保持されている。
A
ズームレンズ102とフォーカスレンズ104はそれぞれ、レンズ保持枠105,106により保持されている。レンズ保持枠105,106は、不図示のガイド軸により光軸方向(図中に破線で示す)へ移動可能にガイドされており、ステッピングモータ107,108によって光軸方向へ駆動される。ステッピングモータ107,108はそれぞれ、駆動パルスに同期してズームレンズ102およびフォーカスレンズ104を移動させる。
The
防振レンズ103は、撮像光学系の光軸に直交する方向へシフトすることで、手振れ等のカメラ振れに起因する像振れを低減する。
The
レンズマイクロコンピュータ(以下、レンズマイコンという)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
また、レンズマイコン111は、制御コマンドのうち変倍やフォーカシングに関するコマンドに応答してズーム駆動回路119およびフォーカス駆動回路120に駆動信号を出力してステッピングモータ107,108を駆動させる。これにより、ズームレンズ102による変倍動作を制御するズーム処理やフォーカスレンズ104による焦点調節動作を制御するAF(オートフォーカス)処理が行われる。
Further, the
絞りユニット114は、絞り羽根114a,114bを備えて構成される。絞り羽根114a,114bの状態は、ホール素子115により検出され、増幅回路122およびA/D変換回路123を介してレンズマイコン111に入力される。レンズマイコン111は、A/D変換回路123からの入力信号に基づいて絞り駆動回路121に駆動信号を出力して絞りアクチュエータ113を駆動させる。これにより、絞りユニット114による光量調節動作が制御される。
The
さらに、レンズマイコン111は、カメラ200の振動に応じて、防振駆動回路125を介して防振アクチュエータ126を駆動し、防振レンズ103をシフトさせる。これにより、防振処理が行われる。
Furthermore, the
また、交換レンズ100は、操作リング130と、操作リング130の操作量および操作方向を検出する操作リング検出手段131とを有する。
The
中間アダプタ300は、例えば、焦点距離を変更するためのエクステンダであり、変倍レンズ301およびアダプタマイクロコンピュータ(以下、アダプタマイコンという)302を有する。アダプタマイコン302は、中間アダプタ300内の各部の動作を制御する中間アダプタ制御手段(アクセサリ制御部)である。アダプタマイコン302は、アクセサリ通信部としてのアダプタ通信部303を介して、カメラ200から送信された制御コマンドや送信要求コマンドを受信する。アダプタマイコン302は、制御コマンドに対応する中間アダプタ制御を行ったり、アダプタ通信部303を介して送信要求コマンドに対応する中間アダプタデータをカメラ200に送信したりする。
The
カメラ200は、CCDセンサやCMOSセンサ等の撮像素子201が生成し、A/D変換回路202および信号処理回路203を介した被写体像の信号を、記録部204に記録し、表示部206に表示させる。
The
カメラマイコン205は、不図示の撮像指示スイッチおよび各種設定スイッチ等のカメラ操作部材からの入力に応じてカメラ200の制御を行う。また、カメラマイコン205は、カメラ通信部208を介して、不図示のズームスイッチの操作に応じてズームレンズ102の変倍動作に関する制御コマンドをレンズマイコン111に送信する。また、カメラマイコン205は、カメラ通信部208を介して、輝度情報に応じた絞りユニット114の光量調節動作やフォーカス情報に応じたフォーカスレンズ104の焦点調節動作に関する制御コマンドをレンズマイコン111に送信する。また、カメラマイコン205は、交換レンズ100の制御情報や状態情報を取得するための送信要求コマンドをレンズマイコン111に送信し、中間アダプタ300の制御情報や状態情報を取得するための送信要求コマンドをアダプタマイコン302に送信する。
The
カメラマイコン205は、ブロードキャスト通信方式では、中間アダプタ300と交換レンズ100に対してデータを一斉に送信し、P2P通信方式では、中間アダプタ300と交換レンズ100のいずれか一方と1対1のデータ通信を行う。
<通信回路の構成についての説明>
以下、図2を参照して、カメラ200、交換レンズ100および中間アダプタ300を含むカメラシステムの間で構成される通信回路について説明する。図2は、カメラシステムにおける通信回路を示す概略図である。
The
<Description of the configuration of the communication circuit>
A communication circuit configured between the camera system including the
カメラマイコン205、レンズマイコン111およびアダプタマイコン302は、マウント400,401に設けられた通信端子部を介して接続された信号線を用いて通信を行う。信号線は、通信のフロー制御を行うための信号を伝搬し、信号の伝達に用いられる信号線(通知チャネル)CSと、送受信するデータを伝搬し、データ通信に用いられる信号線(データ通信チャネル)DATAの2本で構成される。
The
信号線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
信号線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
なお、図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
<Description of communication data format>
The format of data exchanged among the
通信データフォーマットとしては、あらかじめ相互で通信を行う通信速度を規定しておき、この規定に沿った通信ビットレートで送受信を行う、いわゆる調歩同期式通信を基本としている。通信ビットレートとは、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
まず、カメラマイコン205は、ブロードキャスト通信を開始することをレンズマイコン111およびアダプタマイコン302に通知するために、信号線CSへのLow出力を開始する。次に、カメラマイコン205は、信号線CSへのLOW出力の開始からインターバル時間(所定のインターバル時間、第4インターバル時間)Tbm1経過後に、送信するデータを信号線DATAに出力する。一方、レンズマイコン111とアダプタマイコン302は、信号線DATAから入力されたスタートビットSTを検出したタイミングで信号線CSへのLow出力を開始する。なお、この時点ではすでにカメラマイコン205が信号線CSへのLow出力を開始しているので、信号線CSの信号レベルは変化しない。
First, the
レンズマイコン111およびアダプタマイコン302は、信号線CSにLow出力を行うことで、通信待機要求を通知する。通信待機要求は、カメラシステムにおける通信を一時停止させるためのものであり、信号線CSの信号レベルにより通信待機要求の有無が判断される。
The
カメラマイコン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
アダプタマイコン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
アダプタマイコン302は、ストップビットSPの出力まで終了した後、信号線CSへのLow出力を解除する。一方、カメラマイコン205とレンズマイコン111は、信号線DATAから入力されたストップビットSPまで受信した後、受信したデータの解析および受信したデータに紐づけられた内部処理を行う。その後、カメラマイコン205とレンズマイコン111は、次のデータを受信するための準備を整えた後、信号線CSへのLow出力を解除する。したがって、信号線CSの信号レベルはHiとなる。これにより、全てのマイコンが今回の通信に関する処理を終了し、次の通信を行うための準備を整えたと判断することができる。
After completing the output of the stop bit SP, the
以上説明したように、ブロードキャスト通信では、データ送信側が、信号線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
<Description of P2P communication>
An example of P2P communication performed among the
図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
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
P2P通信が開始されると、まず、カメラマイコン205は、信号線CSの信号レベルがHiになったことを検出してからインターバル時間(所定のインターバル時間、第5インターバル時間)Tpm1経過後に、送信するデータを信号線DATAに出力する。カメラマイコン205は、ストップビットSPの出力まで終了した後、インターバル時間(所定のインターバル時間、第6インターバル時間)Tpm2経過後に信号線CSへのLow出力を行い、通信待機要求の通知を行う。その後、カメラマイコン205は、データ受信側としてデータを受信する準備が完了した後、信号線CSへのLow出力を解除する。
When the P2P communication is started, first, the
レンズマイコン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
なお、P2P通信の通信相手として指定されていないアダプタマイコン302は、信号線CSおよび信号線DATAの操作には一切関与しない。
Note that the
レンズマイコン111は、信号線CSへのLow出力を解除した後のカメラマイコン205からのデータ送信タイミングによって、P2P通信が継続されているのか、ブロードキャスト通信への切り替えが行われたのかを判断する。信号線CSの信号レベルがHiのままの状態で、カメラマイコン205からのデータを受信した場合、レンズマイコン111はP2P通信が継続されていると判断する。一方、信号線CSの信号レベルがLowに変化した後に、カメラマイコン205からのデータを受信した場合、レンズマイコン111はP2P通信からブロードキャスト通信に切り換えられたと判断する。
The
以上説明したように、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
なお、図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
まず、カメラマイコン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
P2P通信における通信相手として選択されていないレンズマイコン111は通信相手指定データを受信した後、カメラマイコン205から受信したデータの解析や内部処理が終了した時点で信号線CSにHigh出力を行う。そして、カメラマイコン205とアダプタマイコン302との間でP2P通信が行われている間、信号線CSへの出力を変化させることなく、ブロードキャスト通信に対応した設定を維持する。
The
カメラマイコン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
以上のように、ブロードキャスト通信によって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
まず、カメラマイコン205の通信フローについて説明する。
First, the communication flow of the
ステップS100では、カメラマイコン205は、ブロードキャスト通信を開始するイベントが発生したか否かを判定する。イベントが発生した場合、ステップS101に進み、イベントが発生していない場合、ステップS100の判定を繰り返し行う。
In step S100, the
ステップS101では、カメラマイコン205は、接地スイッチ2081をオン(接続)して信号線CSへのLow出力を開始する。これにより、レンズマイコン111およびアダプタマイコン302に対してブロードキャスト通信の開始が通知される。
In step S101, the
ステップS102では、カメラマイコン205は、信号線CSへのLow出力の開始からインターバル時間Tbm1が経過したか否かを判定する。インターバル時間Tbm1が経過した場合、ステップS103に進み、インターバル時間Tbm1が経過していない場合、ステップS102の判定を繰り返し行う。
In step S102, the
ステップS103では、カメラマイコン205は、入出力切り換えスイッチ2082を操作し、信号線DATAをカメラマイコン205のデータ出力部に接続する。
In step S<b>103 , the
ステップS104では、カメラマイコン205は、データ送信を開始する。
In step S104, the
ステップS105では、カメラマイコン205は、ステップS104で送信したデータに、送信要求コマンドが含まれるか否かを判定する。送信要求コマンドとは、通信マスタとしてのカメラマイコン205から送信されたデータを受信した通信スレーブに対して、カメラマイコン205へのデータ送信を要求するコマンドである。送信要求コマンドが含まれている場合、ステップS107に進み、送信要求コマンドが含まれていない場合、ステップS106に進む。
In step S105, the
ステップS106では、カメラマイコン205は、接地スイッチ2081をオフ(遮断)して信号線CSへのLow出力を解除する。
In step S106, the
ステップS107では、カメラマイコン205は、入出力切り換えスイッチ2082を操作し、信号線DATAをカメラマイコン205のデータ入力部に接続する。
In step S<b>107 , the
ステップS108では、カメラマイコン205は、接地スイッチ2081をオフ(遮断)して信号線CSへのLow出力を解除する。
In step S108, the
ステップS109では、カメラマイコン205は、信号線CSの信号レベルがHiであるか否かを判定する。信号線CSの信号レベルがHiである場合、カメラシステムが通信可能な状態であることを意味している。信号レベルがHiである場合、ステップS110に進み、信号レベルがHiでない場合、ステップS109の判定を繰り返す。
In step S109, the
ステップS110では、カメラマイコン205は、信号線CSの信号レベルがLowであるか否かを判定する。信号レベルがLowである場合、ステップS111に進み、信号レベルがLowでない場合、ステップS110の判定を繰り返す。
In step S110, the
ステップS111では、カメラマイコン205は、信号線DATAからのデータ受信を許可する。
In step S111, the
ステップS112では、カメラマイコン205は、信号線DATAからスタートビットの受信を検出したか否かを判断する。スタートビットの受信を検出した場合、ステップS113に進み、スタートビットの受信を検出していない場合、ステップS112の判定を繰り返す。
In step S112, the
ステップS113では、カメラマイコン205は、接地スイッチ2081をオン(接続)して信号線CSへのLow出力を開始する。
In step S113, the
ステップS114では、カメラマイコン205は、ストップビットを受信したか否か、すなわち全データを受信したか否かを判定する。ストップビットを受信した場合、ステップS115に進み、ストップビットを受信していない場合、ステップS114の判定を繰り返す。
In step S114, the
ステップS115では、カメラマイコン205は、信号線DATAからのデータ受信を禁止し、受信したデータの解析や受信したデータに対応する内部処理を実行する。
In step S115, the
ステップS116では、カメラマイコン205は、接地スイッチ2081をオフ(遮断)して信号線CSへのLow出力を解除する。
In step S116, the
ステップS117では、カメラマイコン205は、信号線CSの信号レベルがHiであるか否かを判定する。信号レベルがHiである場合、ステップS118に進み、信号レベルがHiでない場合、ステップS117の判定を繰り返す。
In step S117, the
ステップS118では、カメラマイコン205は、ステップS104で送信したデータが、通信相手を指定する通信相手指定データであったか否かを判定する。通信相手指定データである場合、ステップS119に進み、通信相手指定データでない場合、本フローを終了する。
In step S118, the
ステップS119では、カメラマイコン205は、P2P通信モードへの移行を行う。
In step S119, the
次に、アダプタマイコン302の通信フローについて説明する。レンズマイコン111の通信フローは、アダプタマイコン302の通信フローとほぼ同じであるため、本実施形態では説明を省略する。
Next, the communication flow of
ステップS200では、アダプタマイコン302は、信号線CSの信号レベルがLowであるか否かを判定する。信号線CSの信号レベルがLowになることに応じて、カメラマイコン205からのデータ送信が開始される。信号レベルがLowである場合、ステップS201に進み、信号レベルがLowでない場合、ステップS200の判定を繰り返す。
In step S200, the
ステップS201では、アダプタマイコン302は、ブロードキャスト通信として、信号線DATAからのデータ受信を許可する。
In step S201, the
ステップS202では、アダプタマイコン302は、信号線DATAからスタートビットの受信を検出したか否かを判断する。スタートビットの受信を検出した場合、ステップS205に進み、スタートビットの受信を検出していない場合、ステップS203に進む。
In step S202,
ステップS203では、アダプタマイコン302は、信号線CSの信号レベルがHiであるか否かを判定する。信号レベルがHiである場合、ステップS204に進み、信号レベルがHiでない場合、ステップS202に戻る。
In step S203, the
ステップS204では、アダプタマイコン302は、信号線DATAからのデータ受信を禁止する。
In step S204, the
ここで、ステップ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
信号線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
1つ目の状況は、カメラマイコン205が信号線CSの信号レベルをLowにした後、データ送信を開始していない状況である。2つ目の状況は、カメラマイコン205とレンズマイコン111がP2P通信を行っており、アダプタマイコン302がP2P通信に関与していない状況である。
The first situation is that the
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
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
以上のように、ステップ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
ステップS205では、アダプタマイコン302は、受信したデータの解析や受信したデータに対応する内部処理を開始するとともに、接地スイッチ2081をオン(接続)して信号線CSにLow出力を行う。これにより、カメラシステムを構成する各構成要素に対して通信待機要求を通知する。
In step S205, the
ステップS206では、アダプタマイコン302は、ストップビットを受信したか否か、すなわち全データを受信したか否かを判定する。ストップビットを受信した場合、ステップS207に進み、ストップビットを受信していない場合、ステップS206の判定を繰り返す。
In step S206,
ステップS207では、アダプタマイコン302は、信号線DATAからのデータ受信を禁止し、受信したデータの解析や受信したデータに対応する内部処理を継続する。解析や内部処理が完了し、次のデータ通信を実行可能な状態になると、ステップS208に進む。
In step S207, the
ステップS208では、アダプタマイコン302は、接地スイッチ3031をオフ(遮断)して信号線CSへのLow出力を解除する。
In step S208, the
ステップS209では、アダプタマイコン302は、ステップS206で受信したデータに、送信要求コマンドが含まれるか否かを判定する。送信要求コマンドが含まれている場合、ステップS210に進み、送信要求コマンドが含まれていない場合、ステップS215に進む。
In step S209, the
ステップS210では、アダプタマイコン302は、信号線CSの信号レベルがHiであるか否かを判定する。信号レベルがHiである場合、カメラシステムが通信可能な状態であることを意味している。信号レベルがHiである場合、ステップS211に進み、信号レベルがHiでない場合、ステップS210の判定を繰り返す。
In step S210, the
ステップS211では、アダプタマイコン302は、接地スイッチ3031をオン(接続)して信号線CSへのLow出力を開始する。これにより、カメラマイコン205およびレンズマイコン111に対してブロードキャスト通信の開始を通知する。
In step S211, the
ステップS212では、アダプタマイコン302は、信号線CSへのLow出力の開始からインターバル時間Tbs1が経過したか否かを判定する。インターバル時間Tbs1が経過した場合、ステップS213に進み、インターバル時間Tbs1が経過していない場合、ステップS212の判定を繰り返し行う。
In step S212, the
ステップS213では、アダプタマイコン302は、入出力切り換えスイッチ3032を操作し、信号線DATAをアダプタマイコン302のデータ出力部に接続する。
In step S 213 , the
ステップS214では、アダプタマイコン302は、データ送信を開始する。
At step S214, the
ステップS215では、アダプタマイコン302は、接地スイッチ3031をオフ(遮断)して信号線CSへのLow出力を解除する。
In step S215, the
ステップS216では、アダプタマイコン302は、信号線CSの信号レベルがHiであるか否かを判定する。信号レベルがHiである場合、ステップS217に進み、信号レベルがHiでない場合、ステップS216の判定を繰り返す。
In step S216, the
ステップS217では、アダプタマイコン302は、ステップS206で受信したデータが通信相手指定データであり、かつ、自身がP2P通信におけるカメラマイコン205の通信相手として選択された、すなわちスレーブ指定されたか否かを判定する。受信したデータが通信相手指定データであり、かつ、自身がP2P通信におけるカメラマイコン205の通信相手として選択された場合、ステップS218に進む。受信したデータが通信相手指定データでない場合、またはP2P通信におけるカメラマイコン205の通信相手として選択されていない場合、本フローを終了する(ブロードキャスト通信が継続される。
In step S217, the
ステップS218では、アダプタマイコン302は、信号線DATAからのデータの受信を許可する。
In step S218, the
ステップS219では、アダプタマイコン302は、ブロードキャスト通信からP2P通信への移行を行う。
<P2P通信における通信フローの説明>
図8Aおよび図8Bを参照して、P2P通信における通信フローについて説明する。各マイコンは、コンピュータプログラムである通信制御プログラムに従って、図8Aまたは図8Bのフローチャートに沿って通信制御を行う。図8Aは、カメラマイコン205によるP2Pブロードキャスト通信における通信フローを説明するフローチャートである。図8Bは、レンズマイコン111およびアダプタマイコン302によるP2Pブロードキャスト通信における通信フローを説明するフローチャートである。
In step S219, the
<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
まず、図10Aを参照して、カメラマイコン205における通信フローについて説明する。図10Aは、カメラマイコン205によるP2P通信における通信フローを示す図である。
First, a communication flow in the
まず、カメラマイコン205がレンズマイコン111とP2P通信を行う場合の通信フローについて説明する。
First, a communication flow when the
ステップS300では、カメラマイコン205は、P2P通信を開始するイベントが発生したか否かを判定する。イベントが発生した場合、ステップS301に進み、イベントが発生していない場合、ステップS300の判定を繰り返し行う。
In step S300, the
ステップS300では、カメラマイコン205は、信号線CSの信号レベルがHiであるか否かを判定する。信号レベルがHiである場合、データの送信が可能な状態であることを示している。信号レベルがHiである場合、ステップS301に進み、信号レベルがHiでない場合、ステップS300の判定を繰り返す。
In step S300, the
ステップS301では、カメラマイコン205は、信号線CSの信号レベルがHiになってからインターバル時間Tpm1が経過したか否かを判定する。インターバル時間Tpm1が経過した場合、ステップS302に進み、インターバル時間Tpm1が経過していない場合、ステップS301の判定を繰り返し行う。
In step S301, the
ステップS302では、カメラマイコン205は、入出力切り替えスイッチ2082を動作させることで、信号線DATAをカメラマイコン205のデータ出力部に接続する。
In step S<b>302 , the
ステップS303では、カメラマイコン205は、データ送信を開始する。
In step S303, the
ステップS304では、カメラマイコン205は、データ送信が完了してからインターバル時間Tpm2が経過したか否かを判定する。インターバル時間Tpm2が経過した場合、ステップS305に進み、インターバル時間Tpm2が経過していない場合、ステップS304の判定を繰り返し行う。
In step S304, the
ステップS305では、カメラマイコン205は、信号線CSにLow出力を行い、信号線CSの信号レベルをLowにする。これにより、カメラマイコン205は、レンズマイコン111に対して通信待機要求を行う。信号レベルがLowである間、レンズマイコン111はカメラマイコン205に対するデータ送信を行わない。
In step S305, the
ステップS306では、カメラマイコン205は、ステップS303で送信したデータに、送信要求コマンドが含まれるか否かを判定する。送信要求コマンドが含まれている場合、ステップS309に進み、送信要求コマンドが含まれていない場合、ステップS307に進む。送信要求コマンドが含まれない場合、レンズマイコン111からデータが送信されることはない。
In step S306, the
ステップS307では、カメラマイコン205は、接地スイッチ2081をオフ(遮断)して信号線CSへのLow出力を解除する。
In step S307, the
ステップS308では、カメラマイコン205は、信号線CSの信号レベルがLowであるか否か、すなわちレンズマイコン111が通信待機要求を通知しているか否かを判定する。信号レベルがLowである場合、ステップS313に進み、信号レベルがLowでない場合、ステップS308の判定を繰り返す。
In step S308, the
ステップS309では、カメラマイコン205は、入出力切り換えスイッチ2082を操作し、信号線DATAをカメラマイコン205のデータ入力部に接続する。
In step S<b>309 , the
ステップS310では、カメラマイコン205は、接地スイッチ2081をオフ(遮断)して信号線CSへのLow出力を解除する。カメラマイコン205は、信号線CSの信号レベルがHiの状態で、レンズマイコン111からのデータ受信を行う。
In step S310, the
ステップS311では、カメラマイコン205は、信号線CSの信号レベルがLowであるか否かを判定する。信号レベルがLowである場合、ステップS312に進み、信号レベルがLowでない場合、ステップS311の判定を繰り返す。
In step S311, the
ステップS312では、カメラマイコン205は、信号線DATAから受信したデータの解析を行う。
In step S312, the
ステップS313では、カメラマイコン205は、信号線CSの信号レベルがHiであるか否かを判定する。信号レベルがHiである場合、レンズマイコン111がデータ通信可能な状態であることを意味している。信号レベルがHiである場合、ステップS314に進み、信号レベルがHiでない場合、ステップS313の判定を繰り返す。
In step S313, the
ステップS314では、カメラマイコン205は、ブロードキャスト通信への移行イベントが発生したか否かを判定する。イベントが発生した場合、ステップS315に進み、イベントが発生していない場合、本フローを終了する(P2P通信が継続して行われる)。
In step S314, the
ステップS315では、カメラマイコン205は、ブロードキャスト通信モードへの移行を行う。
In step S315, the
次に、レンズマイコン111の通信フローについて説明する。アダプタマイコン302の通信フローは、レンズマイコン111の通信フローとほぼ同じであるため、本実施形態では説明を省略する。
Next, a communication flow of the
ステップS400では、レンズマイコン111は、カメラマイコン205から送信されるデータを、信号線DATAを介して受信する。レンズマイコン111がデータを受信している間、信号線CSの信号レベルはHiに保たれている。
In step S400, the
ステップS401では、レンズマイコン111は、信号線CSの信号レベルがLowであるか否かを判定する。信号レベルがLowである場合、ステップS402に進み、信号レベルがLowでない場合、ステップS401の判定を繰り返す。
In step S401, the
ステップS402では、レンズマイコン111は、信号線DATAから受信したデータの解析を行う。
In step S402, the
ステップS403では、レンズマイコン111は、信号線CSの信号レベルがHiであるか否かを判定する。信号レベルがLowである場合、カメラマイコン205が通信待機要求を通知している状態であることを意味している。信号レベルがHiである場合、ステップS404に進み、信号レベルがHiでない場合、ステップS403の判定を繰り返す。
In step S403, the
ステップS404では、レンズマイコン111は、ステップS403で受信したデータに、送信要求コマンドが含まれるか否かを判定する。送信要求コマンドが含まれている場合、ステップS407に進み、送信要求コマンドが含まれていない場合、ステップS405に進む。
In step S404, the
ステップS405では、レンズマイコン111は、受信したデータの解析や受信したデータに対応する内部処理を開始するとともに、接地スイッチ1121をオン(接続)して信号線CSへのLow出力を開始する。これにより、カメラマイコン205に対して通信待機要求を通知する。
In step S405, the
ステップS406では、レンズマイコン111は、接地スイッチ1121をオフ(遮断)して信号線CSへのLow出力を解除する。
In step S406, the
ステップS407では、レンズマイコン111は、信号線CSの信号レベルがHiになってからインターバル時間Tps1が経過したか否かを判定する。インターバル時間Tps1が経過した場合、ステップS408に進み、インターバル時間Tps1が経過していない場合、ステップS407の判定を繰り返し行う。
In step S407, the
ステップS408では、レンズマイコン111は、入出力切り換えスイッチ1122を操作し、信号線DATAをレンズマイコン111のデータ出力部に接続する。
In step S<b>408 , the
ステップS409では、レンズマイコン111は、データ送信を開始する。
In step S409, the
ステップS410では、レンズマイコン111は、データ送信が完了してからインターバル時間Tps2が経過したか否かを判定する。インターバル時間Tps2が経過した場合、ステップS411に進み、インターバル時間Tps2が経過していない場合、ステップS410の判定を繰り返し行う。
In step S410, the
ステップS411では、レンズマイコン111は、接地スイッチ1121をオン(接続)して信号線CSへのLow出力を開始する。これにより、カメラマイコン205に対して通信待機要求を通知する。信号レベルがLowの間、カメラマイコン205はレンズマイコン111に対するデータ送信を行わない。
In step S411, the
ステップS412では、レンズマイコン111は、入出力切り換えスイッチ1122を操作し、信号線DATAをレンズマイコン111のデータ入力部に接続する。
In step S<b>412 , the
ステップS413では、レンズマイコン111は、接地スイッチ1121をオフ(遮断)して信号線CSへのLow出力を解除する。
In step S413, the
ステップS414では、レンズマイコン111は、信号線CSの信号レベルがHiであるか否かを判定する。信号線CSの信号レベルがHiである場合、カメラマイコン205およびレンズマイコン111が通信可能な状態であることを意味している。信号レベルがHiである場合、本フローを終了し、信号レベルがHiでない場合、ステップS414の判定を繰り返し行う。
In step S414, the
以上説明したように、カメラ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
また、信号線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
なお、本実施形態で説明したブロードキャスト通信方式および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
図9では、レンズマイコン111やアダプタマイコン302が、ブロードキャスト通信の開始をカメラマイコン205にリクエストする態様が示されている。カメラマイコン205への通信リクエストは、カメラマイコン205からアクセサリのマイコンへの通信が一時停止された状態において、アクセサリのマイコンが、カメラマイコン205との通信を主体的に再開させる場合に実行される。
FIG. 9 shows how the
本変形例は、例えば、中間アダプタ300に設けられた操作部材304がユーザによって操作された場合に実行される。交換レンズ100に設けられた操作リング130がユーザによって操作された場合にも実行される。カメラシステムにおいて、通信が一時停止された状態から通信を再開させる場合、基本的には、カメラマイコン205が主体的に通信を再開させることが適切である。アクセサリのマイコンに通信を再開させる機能を持たせることは、カメラシステムにおいて、予期しないタイミングでの通信再開が行われるおそれがある。そのため、通信スレーブに対して、無制限に通信を再開させる機能を持たせることは好ましくない。
This modification is performed, for example, when the
そこで、本変形例では、アクセサリのマイコンが、カメラマイコン205への通信開始リクエストを行うという形で、アクセサリのマイコンに、通信を再開させる機能を持たせている。
Therefore, in this modification, the accessory microcomputer is provided with a function of resuming communication in the form of requesting the
図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
カメラマイコン205は、信号線CSの信号レベルがLowになったことに応じて、信号線CSにLow出力を行った上でブロードキャスト通信を開始する。このとき、カメラマイコン205は、信号線CSの信号レベルがLowになってからインターバル時間Tbm2経過後に、送信するデータを信号線DATAに出力する。データを信号線DATAに出力した後のブロードキャスト通信のフローは、図4で説明したフローと同じであるため、ここでの説明は省略する。
When the signal level of the signal line CS becomes Low, the
以上説明した実施例は、信号線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
まず、第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
カメラマイコン205およびレンズマイコン111は、第1通信では、クロック同期通信または調歩同期通信により通信を行う。交換レンズ100がカメラ200に接続された際に行われる初期通信も、まずは第1通信により行われる。カメラマイコン205およびレンズマイコン111は交換レンズ100の識別情報を通信し、カメラ200に装着された交換レンズ100が調歩同期通信に対応可能であることが判明すると、クロック同期通信から調歩同期通信に通信方式を切り替える。また、識別情報の通信の結果、カメラマイコン205は、交換レンズ100が、中間アダプタ300も含めて通信を行う第3通信に対応可能かどうかを識別してもよい。カメラマイコン205は、交換レンズ100が第3通信に対応可能であると判断した場合、交換レンズ100や中間アダプタ300を認識するための認証通信を、P2P通信を介して行ってもよい。
The
次に、第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
<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
図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
ノード0が、信号線CSにLow出力を行うタイミングをTcsl1とすると、信号線CSのインピーダンスの関係で徐々に、信号線CSの信号レベルが変化する。
Assuming that the timing at which the
図11(a)に示されるように、信号線CSの信号レベルが、CS Low検出レベルLcslmaxと一致したタイミングTcsl2にて、ノード1は信号線CSの信号レベルがLowになったと判断する。また、信号線CSの信号レベルが、CS Low検出レベルLcslminと一致したタイミングTcsl3にて、ノード2は信号線CSの信号レベルがLowとなったと判断する。
As shown in FIG. 11(a),
ここで、タイミング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
また、タイミング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
インターバル時間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
また、タイミング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
本実施形態では、前述した所定のインターバル時間が、信号線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
インターバル時間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)
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通信方式と前記第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通信方式と前記第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通信方式と前記第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.
前記通知チャネルの電圧レベルが最後に変化してから所定のインターバル時間が経過したかどうかを判定するステップと、
前記所定のインターバル時間が経過した後に、前記データ通信チャネルを介して前記カメラにデータを送信するステップと、を実行させることを特徴とする通信制御プログラム。 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.
前記第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:
前記通知チャネルの電圧レベルが最後に変化してから所定のインターバル時間が経過したかどうかを判定するステップと、
前記所定のインターバル時間が経過した後にデータを送信するステップと、を実行させることを特徴とする通信制御プログラム。 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.
前記第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:
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)
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)
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 |
-
2018
- 2018-08-30 JP JP2018161538A patent/JP7171316B2/en active Active
Patent Citations (6)
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 |