The present invention relates to an image-capturing apparatus (hereinafter referred to as “a camera body”) and an accessory apparatus such as an interchangeable lens communicable with each other.
In an accessory-interchangeable camera system including a camera body to which an accessory apparatus is detachably attachable, the camera body and the accessory apparatus communicate with each other for controlling the accessory apparatus from the camera body and for providing, from the accessory apparatus to the camera body, data required for controlling the accessory apparatus.
In particular, when an interchangeable lens is used for capturing a moving image to be recorded or a live-view moving image to be displayed, smooth lens control in synchronization with image-capturing periods is required, so that it is necessary to synchronize image-capturing times in the camera body with control times in the interchangeable lens. Thus, the camera body is required to complete receipt of the data from the interchangeable lens and transmission of various commands and requests to the interchangeable lens in one image-capturing period. However, an increase in amount of the data to be received by the camera body from the interchangeable lens and a reduction of the image-capturing period (that is, an increase in a frame rate) require a large data volume communication in a shorter time. Japanese Patent Laid-Open No. 2010-237514 discloses a camera system having a one-directional communication mode (hereinafter referred to as “a high-speed mode”) and a bidirectional communication mode (hereinafter referred to as “a low-speed mode”). In the high-speed mode, a one-directional communication channel for data transmission from a camera body to an interchangeable lens and another one-directional communication channel for data transmission from the interchangeable lens to the camera body are used in parallel, and thereby burst communication as continuous data communication capable of communicating a large amount of data by full-duplex communication is performed. On the other hand, in the low-speed mode, one communication channel is used whose communication direction is switched between transmission of a request from one of the camera body and the interchangeable lens to the other and transmission of data corresponding to the request from the other to the one.
However, when the camera system disclosed in Japanese Patent Laid-Open No. 2010-237514 falls into a situation where performing the continuous data communication is difficult due to an insufficient processing speed of a microcomputer provided in the interchangeable lens or the camera body in the high-speed mode, the camera system cannot suspend the transmission of data, which may make the data communication therebetween impossible.
In order to avoid such impossibility of the data communication, it is necessary to set as a communication standard a sufficiently low data communication speed with respect to performances of various possible microcomputers or to reduce the amount of data to be transmitted. However, these methods cannot effectively use the performances of microcomputers provided to the camera body and the interchangeable lens, which makes it impossible to achieve high-speed data communication. On the other hand, if a buffer provided to the camera body for storing data transmitted from the interchangeable lens has an insufficient capacity with respect to a large amount of data transmitted from the interchangeable lens in one burst communication, the buffer cannot store the entire transmitted data.
The present invention provides an accessory apparatus and an image-capturing apparatus capable of performing smooth and fast large volume date communication.
The present invention provides as an aspect thereof an accessory apparatus detachably attachable to an image-capturing apparatus. The accessory apparatus includes an accessory communicator configured to provide, with the image-capturing apparatus, three channels that are a notification channel used for providing a notice from the image-capturing apparatus to the accessory apparatus, a first data communication channel used for transmitting accessory data from the accessory apparatus to the image-capturing apparatus, and a second data communication channel used for transmitting camera data from the image-capturing apparatus to the accessory apparatus, and an accessory controller configured to, in a transmission request receiving state of receiving a transmission request as the notice from the image-capturing apparatus through the notification channel, transmit the accessory data in frame units to the image-capturing apparatus through the first data communication channel, and to receive the camera data in frame units transmitted through the second data communication channel from the image-capturing apparatus that is configured to transmit the camera data in response to receiving the accessory data in frame units. The accessory controller is configured to, in the transmission request receiving state and during transmission of the accessory data to the image-capturing apparatus, in response to becoming a non-transmission request receiving state of not receiving the transmission request from the image-capturing apparatus, stop transmitting the accessory data to the image-capturing apparatus.
The present invention provides as another aspect thereof an image-capturing apparatus to which an accessory apparatus is detachably attachable. The image-capturing apparatus includes a camera communicator configured to provide, with the accessory apparatus, three channels that are a notification channel used for providing a notice from the image-capturing apparatus to the accessory apparatus, a first data communication channel used for transmitting accessory data from the accessory apparatus to the image-capturing apparatus, and a second data communication channel used for transmitting camera data from the image-capturing apparatus to the accessory apparatus, and a camera controller configured to become and keep a transmission request providing state of providing a transmission request as the notice to the accessory apparatus through the notification channel to thereby cause the accessory apparatus to transmit the accessory data in frame units to the image-capturing apparatus through the first data communication channel, and, in response to receiving the accessory data in frame units from the accessory apparatus, transmit the camera data in frame units to the accessory apparatus through the second data communication channel. The camera controller is configured to become, from the transmission request providing state, a non-transmission request providing state of not providing the transmission request to the accessory apparatus to thereby cause the accessory apparatus to stop transmitting the accessory data to the image-capturing apparatus.
The present invention provides as yet another aspect thereof an image-capturing system including the above accessory and image-capturing apparatuses.
The present invention provides as still another aspect thereof a control method for an accessory apparatus detachably attachable to an image-capturing apparatus. The method includes the step of causing the accessory apparatus to provide, with the image-capturing apparatus, three channels that are a notification channel used for providing a notice from the image-capturing apparatus to the accessory apparatus, a first data communication channel used for data transmission from the accessory apparatus to the image-capturing apparatus, and a second data communication channel used for data transmission from the image-capturing apparatus to the accessory apparatus, the step of causing the accessory apparatus, in a transmission request receiving state of receiving a transmission request as the notice from the image-capturing apparatus through the notification channel, to transmit the accessory data in frame units to the image-capturing apparatus through the first data communication channel, and the step of causing the accessory apparatus to receive the camera data in frame units transmitted through the second data communication channel from the image-capturing apparatus that is configured to transmit the camera data in response to receiving the accessory data in frame units. The method further includes the step of causing the accessory apparatus, in the transmission request receiving state and during transmission of the accessory data to the image-capturing apparatus, in response to becoming a non-transmission request receiving state of not receiving the transmission request from the image-capturing apparatus, to stop transmitting the accessory data to the image-capturing apparatus.
The present invention provides as still another aspect thereof a control method for an image-capturing apparatus to which an accessory apparatus is detachably attachable. The method includes the step of causing the image-capturing apparatus to provide, with the accessory apparatus, three channels that are a notification channel used for providing a notice from the image-capturing apparatus to the accessory apparatus, a first data communication channel used for transmitting accessory data from the accessory apparatus to the image-capturing apparatus, and a second data communication channel used for transmitting camera data from the image-capturing apparatus to the accessory apparatus, the step of causing the image-capturing apparatus to become and keep a transmission request providing state of providing a transmission request as the notice to the accessory apparatus through the notification channel so as to cause the accessory apparatus to transmit the accessory data in frame units through the first data communication channel, and the step of causing the image-capturing apparatus, in response to receiving the accessory data in frame units, to transmit the camera data in frame units to the accessory apparatus through the second data communication channel. The method further includes the step of causing the image-capturing apparatus to become, from the transmission request providing state, a non-transmission request providing state of not providing the transmission request to the accessory apparatus to thereby cause the accessory apparatus to stop transmitting the accessory data to the image-capturing apparatus.
The present invention provides as yet still another aspect thereof an accessory apparatus detachably attachable to an image-capturing apparatus. The accessory apparatus includes an accessory communicator configured to provide, with the image-capturing apparatus, three channels that are a notification channel used for providing a notice from the image-capturing apparatus to the accessory apparatus, a first data communication channel used for transmitting accessory data from the accessory apparatus to the image-capturing apparatus, and a second data communication channel used for transmitting camera data from the image-capturing apparatus to the accessory apparatus, and an accessory controller configured to, in response to receiving a transmission request as the notice from the image-capturing apparatus through the notification channel, transmit the accessory data to the image-capturing apparatus through the first data communication channel and configured to receive the camera data transmitted from the image-capturing apparatus in response to receiving the accessory data through the second data communication channel. The accessory controller is configured to, during transmission of the accessory data to the image-capturing apparatus, in response to not receiving the transmission request from the image-capturing apparatus, stop transmitting the accessory data to the image-capturing apparatus, and configured to, after an elapsed time from not receiving the transmission request exceeds a predetermined time, in response to receiving the transmission request again, terminate transmitting the accessory data to the image-capturing apparatus.
The present invention provides as further another aspect thereof an image-capturing apparatus to which an accessory apparatus is detachably attachable. The image-capturing apparatus includes a camera communicator configured to provide, with the accessory apparatus, three channels that are a notification channel used for providing a notice from the image-capturing apparatus to the accessory apparatus, a first data communication channel used for transmitting accessory data from the accessory apparatus to the image-capturing apparatus, and a second data communication channel used for transmitting camera data from the image-capturing apparatus to the accessory apparatus, and a camera controller configured to provide a transmission request as the notice to the accessory apparatus through the notification channel to thereby cause the accessory apparatus to transmit the accessory data to the image-capturing apparatus through the first data communication channel and configured to, in response to receiving the accessory data, transmit the camera data to the accessory apparatus through the second data communication channel. The camera controller is configured to, during receipt of the accessory data from the accessory apparatus, stop providing the transmission request to thereby cause the accessory apparatus to stop transmitting the accessory data to the image-capturing apparatus, and configured to, after an elapsed time from not providing the transmission request to the accessory apparatus exceeds a predetermined time, provide the transmission request again to the accessory apparatus to thereby cause the accessory apparatus to terminate transmitting the accessory data to the image-capturing apparatus.
The present invention provides as yet further another aspect thereof an image-capturing system including the above accessory and image-capturing apparatuses.
The present invention provides as still further another aspect thereof a control method for an accessory apparatus detachably attachable to an image-capturing apparatus. The method includes the step of causing the accessory apparatus to provide, with the image-capturing apparatus, three channels that are a notification channel used for providing a notice from the image-capturing apparatus to the accessory apparatus, a first data communication channel used for transmitting accessory data from the accessory apparatus to the image-capturing apparatus, and a second data communication channel used for transmitting camera data from the image-capturing apparatus to the accessory apparatus, the step of causing the accessory apparatus, in response to receiving a transmission request as the notice from the image-capturing apparatus through the notification channel, to transmit the accessory data to the image-capturing apparatus through the first data communication channel, and the step of causing the accessory apparatus to receive the camera data transmitted through the second data communication channel from the image-capturing apparatus in response to receiving the accessory data. The method further includes the step of causing the accessory controller, during transmission of the accessory data to the image-capturing apparatus, in response to not receiving the transmission request from the image-capturing apparatus, to stop transmitting the accessory data to the image-capturing apparatus, and the step of causing the accessory controller, after an elapsed time from not receiving the transmission request exceeds a predetermined time, in response to receiving the transmission request again, to terminate transmitting the accessory data to the image-capturing apparatus.
The present invention provides as yet still further another aspect thereof a control method for an image-capturing apparatus to which an accessory apparatus is detachably attachable. The method includes the step of causing the image-capturing apparatus to provide, with the accessory apparatus, three channels that are a notification channel used for providing a notice from the image-capturing apparatus to the accessory apparatus, a first data communication channel used for transmitting accessory data from the accessory apparatus to the image-capturing apparatus, and a second data communication channel used for transmitting camera data from the image-capturing apparatus to the accessory apparatus, the step of causing the image-capturing apparatus to provide a transmission request as the notice to the accessory apparatus through the notification channel to thereby cause the accessory apparatus to transmit the accessory data to the image-capturing apparatus through the first data communication channel, and the step of causing the image-capturing apparatus, in response to receiving the accessory data, to transmit the camera data to the accessory apparatus through the second data communication channel. The method further includes the step of causing the image-capturing apparatus, during receipt of the accessory data from the accessory apparatus, to stop providing the transmission request to thereby cause the accessory apparatus to stop transmitting the accessory data to the image-capturing apparatus, and the step of causing the image-capturing apparatus, after an elapsed time from not providing the transmission request to the accessory apparatus exceeds a predetermined time, to provide the transmission request again to the accessory apparatus to thereby cause the accessory apparatus to terminate transmitting the accessory data to the image-capturing apparatus.
Moreover, the present invention provides as another aspect thereof a non-transitory storage medium storing a control program as a computer program for causing a computer to execute any one of the above control methods.
The present invention provides as further another aspect thereof a non-transitory storage medium storing a computer program for causing a computer to execute any one of the above control methods.
Further features and aspects of the present invention will become apparent from the following description of exemplary embodiments with reference to the attached drawings.
Exemplary embodiments of the present invention will be described below with reference to the accompanied drawings.
The camera body 200 and the interchangeable lens 100 transmit control commands and internal information to each other via their communicators described later.
The communicators are compatible with various communication methods and switch their communication formats to the same one in synchronization with each other depending on types of data to be communicated and purposes of their communication, which enables selecting an optimum communication format for each of various situations.
Configurations of the interchangeable lens 100 and the camera body 200. The interchangeable lens 100 and the camera body 200 are mechanically and electrically connected with each other via a mount 300 including a coupling mechanism. The interchangeable lens 100 receives power supply from the camera body 200 via a power source terminal (not illustrated) provided in the mount 300 and supplies, to various actuators and a lens microcomputer described later, power sources necessary for their operations. The interchangeable lens 100 and the camera body 200 communicate with each other via communication terminals (illustrated in
The interchangeable lens 100 includes an image-capturing optical system. The image-capturing optical system includes, from an object (OBJ) side, a field lens 101, a magnification-varying lens 102 for variation of magnification, a stop unit 114 for light amount control, an image-stabilizing lens 103 for image blur correction and a focus lens 104 for focusing.
The magnification-varying lens 102 and the focus lens 104 are respectively held by lens holders 105 and 106. The lens holders 105 and 106 are guided by guide bars (not illustrated) movably in an optical axis direction in which an optical axis (illustrated by a broken line) of the image-capturing optical system extends and are driven in the optical axis direction respectively by stepping motors 107 and 108. The stepping motors 107 and 108 rotate in synchronization with drive pulses and respectively move the magnification-varying lens 102 and the focus lens 104.
The image-stabilizing lens 103 is moved in a direction orthogonal to the optical axis of the image-capturing optical system to reduce image blur caused by user's hand jiggling or the like.
The lens microcomputer 111 as an accessory controller controls various operations in the interchangeable lens 100. The lens microcomputer 111 receives, via a lens communicator 112 (including a lens data transceiver 112b) as an accessory communicator, control commands transmitted from the camera body 200 and transmission requests for lens data (accessory data) output therefrom. The lens microcomputer 111 performs various lens controls corresponding to the control commands and transmits lens data corresponding to the transmission requests via the lens communicator 112. The lens microcomputer 111 performs operations relating to the communication with the camera body 200 (that is, with a camera microcomputer 205 described later) according to a lens communication control program as a computer program.
This embodiment employs asynchronous serial communication as a communication method between the lens microcomputer 111 and the camera microcomputer 205. The lens microcomputer 111 and the camera microcomputer 205 can share error information indicating that an abnormality of the communication therebetween, that is, a communication error is generated.
In addition, the lens microcomputer 111 outputs, in response to a zoom command and a focus drive command among the control commands, a zoom drive signal and a focus drive signal to a zoom driver 119 and a focus driver 120 to cause them to drive the stepping motors 107 and 108, thereby performing a zoom process to control a magnification variation operation by the magnification-varying lens 102 and an AF (autofocus) process to control a focus operation by the focus lens 104.
The interchangeable lens 100 is provided with a manual focus ring 130 that is rotationally operable by a user and a focus encoder 131 for detecting a rotational operation amount of the manual focus ring 130. The lens microcomputer 111 causes the focus driver 120 to drive the stepping motor 108 by a drive amount corresponding to the rotational operation amount of the manual focus ring 130 detected by the focus encoder 131 to drive the focus lens 104, thereby performing MF (manual focus).
The stop unit 114 includes stop blades 114a and 114b. An open-and-close state of the stop blades 114a and 114b is detected by a hall element 115, and a detection result thereof is input to the lens microcomputer 111 through an amplifier 122 and an A/D converter 123. The lens microcomputer 111 outputs, depending on the input detection result from the A/D converter 123, a stop drive signal to a stop driver 121 so as to cause the stop driver 121 to drive a stop actuator 113, thereby controlling a light amount control operation of the stop unit 114.
The interchangeable lens 100 further includes a shake sensor (not illustrated and hereinafter referred to as “a gyro sensor”) constituted by a vibration gyro or the like. The lens microcomputer 111 drives an image-stabilizing actuator 126 constituted by a voice coil motor or the like through an image-stabilizing driver 125 depending on a shake (angular velocity) detected by the gyro sensor, thereby performing an image-stabilizing process to control the movement of the image-stabilizing lens 103.
The camera body 200 includes an image sensor 201 constituted by a CCD sensor, a CMOS sensor or the like, an A/D converter 202, a signal processor 203, a recorder 204, the camera microcomputer 205 and a display unit 206.
The image sensor 201 photoelectrically converts an object image formed by the image-capturing optical system in the interchangeable lens 100 to output an image-capturing signal as an analog electrical signal.
The A/D converter 202 converts the analog image-capturing signal from the image sensor 201 into a digital image-capturing signal. The signal processor 203 performs various image processes on the digital image-capturing signal from the A/D converter 202 to produce a video signal. The signal processor 203 produces, from the video signal, focus information indicating a contrast state of the object image (that is, a focus state of the image-capturing optical system) and luminance information indicating an exposure state. The signal processor 203 outputs the video signal to the display unit 206. The display unit 206 displays the video signal as a live-view image used for checking an image-capturing composition and the focus state. In addition, the signal processor 203 outputs the video signal to the recorder 204. The recorder 204 records the video signal.
A memory 210 is constituted by, for example, a DDR (Double Data Rate SDRAM). The memory 210 stores the digital image-capturing signal obtained using the image sensor 201 and the video signal produced by the image processor 203 and stores the lens data received from the lens microcomputer 111.
The camera microcomputer 205 as a camera controller controls the camera body 200 in response to inputs from a camera operation unit 207 including an image-capturing instructing switch and various setting switches (not illustrated). The camera microcomputer 205 transmits, in response to a user's operation of a zoom switch (not illustrated), the control command relating to the magnification-varying operation of the magnification-varying lens 102 to the lens microcomputer 111 through a camera communicator 208 (including a camera data transceiver 208b). Moreover, the camera microcomputer 205 transmits, to the lens microcomputer 111 through the camera data transceiver 208b, the control command relating to the light amount control operation of the stop unit 114 depending on the luminance information and the control command relating to the focusing operation of the focus lens 104 depending on the focus information. The camera microcomputer 205 performs operations relating to the communication with the lens microcomputer 111 according to a camera communication control program as a computer program.
Next, with reference to
The camera microcomputer 205 includes a camera communication interface circuit 208a, and the lens microcomputer 111 includes a lens communication interface circuit 112a. The camera microcomputer 205 (camera data transceiver 208b) and the lens microcomputer 111 (lens data transceiver 112b) communicate with each other through the communication terminals (illustrated by three boxes) provided in the mount 300 and the camera and lens communication interface circuits 208a and 112a. In this embodiment, the camera and lens microcomputers 205 and 111 perform three-wire asynchronous serial communication using three channels. The camera data transceiver 208b and the camera communication interface circuit 208a constitute the camera communicator 208. The lens data transceiver 112b and the lens communication interface circuit 112a constitute the lens communicator 112.
The three channels are a transmission request channel as a notification channel, a first data communication channel and a second data communication channel. The transmission request channel is used for providing the notices such as the transmission requests (transmission instructions) for the lens data and switch requests (switch instructions) for communication settings described later, from the camera microcomputer 205 to the lens microcomputer 111. The provision of the notice through the transmission request channel is performed by switching a signal level (voltage level) on the transmission request channel between High as a first level and Low as a second level. A transmission request signal provided to the transmission request channel is hereinafter referred to as “a request-to-send signal RTS”.
The first data communication channel is used for transmitting the lens data from the lens microcomputer 111 to the camera microcomputer 205. The lens data transmitted as a signal from the lens microcomputer 111 to the camera microcomputer 205 through the first data communication channel is hereinafter referred to as “a lens data signal DLC”. The second data communication channel is used for transmitting camera data from the camera microcomputer 205 to the lens microcomputer 111. The camera data transmitted as a signal from the camera microcomputer 205 to the lens microcomputer 111 through the second data communication channel is hereinafter referred to as “a camera data signal DCL”.
The request-to-send signal RTS is provided from the camera microcomputer 205 as a communication master to the lens microcomputer 111 as a communication slave.
The camera data signal DCL includes various control commands and transmission request commands transmitted from the camera microcomputer 205 to the lens microcomputer 111. The lens data signal DLC includes various lens data transmitted from the lens microcomputer 111 to the camera microcomputer 205.
The camera and lens microcomputers 205 and 111 set their communication speed beforehand and perform the communication (transmission and receipt) at a communication bit rate according to this setting. The communication bit rate indicates a data amount transferable per second and is expressed with a unit of bps (bits per second). The camera and lens microcomputers 205 and 111 communicate with each other by a full-duplex communication method enabling mutual transmission and receipt of data.
The communication method between the camera body 200 and the interchangeable lens 100 may be performed by three-channel clock-synchronous serial communication instead of the three-channel asynchronous serial communication. Furthermore, in a case of performing large volume data transmission from the lens microcomputer 111 to the camera microcomputer 205, the clock-synchronous serial communication may be switched to the asynchronous serial communication. In this case, the notification channel may be used as a clock line for providing a clock signal from the camera microcomputer 205 to the lens microcomputer 111. This enables selectively using the two communication methods, that is, the asynchronous serial communication and the clock-synchronous serial communication without adding a new channel.
In the clock-synchronous serial communication using the three channels, a clock signal CLK is provided from the camera microcomputer 205 as a communication master to the lens microcomputer 111 as a communication slave through a clock channel. The camera data signal DCL includes various control commands and transmission request commands transmitted from the camera microcomputer 205 to the lens microcomputer 111.
The lens data signal DLC includes various lens data transmitted from the lens microcomputer 111 to the camera microcomputer 205 in synchronization with the clock signal LCLK. In the clock-synchronous serial communication, the camera and lens microcomputers 205 and 111 communicate with each other by a full-duplex communication method enabling mutual transmission and receipt of data in synchronization with the clock signal LCLK.
Next, with reference to
On the other hand, the lens microcomputer 111 includes a CPU 111a as a core of the lens microcomputer 111, an RTS detector 316 and a receipt data buffer 311 constituted by a RAM or the like. The camera microcomputer 111 further includes a transmission data buffer 312 as an accessory data buffer constituted by a RAM or the like and a buffer controller 313 that controls data storing and data read-out to and from the buffers 311 and 312.
The camera data signal DCL to be transmitted from the camera microcomputer 205 to the lens microcomputer 111 is stored to the transmission data buffer 302. For example, when the camera data signal DCL of 128 bytes is transmitted, this camera data signal DCL of 128 bytes is first stored to the transmission data buffer 302 and then is transmitted to the lens microcomputer 111. The buffer controller 304 reads out the camera data signal DCL frame by frame from the transmission data buffer 302. The read camera data signal DCL of each frame is converted from a parallel data signal into a serial data signal by the parallel-serial converter 305 and is transmitted in frame units (frame by frame) from the camera microcomputer 205 to the lens microcomputer 111 through the second data communication channel. The camera data signal DCL transmitted from the camera microcomputer 205 is converted from the serial data signal into a parallel data signal by the serial-parallel converter 314 in the lens microcomputer 111. The buffer controller 313 stores the camera data signal DCL converted into the parallel data signal to the receipt data buffer 311.
The lens data signal DLC to be transmitted from the lens microcomputer 111 to the camera microcomputer 205 is stored to the transmission data buffer 312. For example, when the lens data signal DLC of 128 bytes is transmitted, this lens data signal DLC of 128 bytes is first stored to the transmission data buffer 312 and then is transmitted to the camera microcomputer 205. The buffer controller 313 reads out the lens data signal DLC frame by frame from the transmission data buffer 312. The read lens data signal DLC of each frame is converted from a parallel data signal into a serial data signal by the parallel-serial converter 315 and is transmitted in frame units (frame by frame) from the lens microcomputer 111 to the camera microcomputer 205 through the first data communication channel.
The lens data signal DLC transmitted from the lens microcomputer 111 is converted from the serial data signal into a parallel data signal by the serial-parallel converter 306 in the camera microcomputer 205.
The buffer controller 304 stores the lens data signal DLC converted into the parallel data signal to the receipt data buffer 303. The lens data signal DLC stored in the receipt data buffer 303 is read out therefrom by a DMA controller 307, and the read lens data signal DLC is transferred and stored to the memory 210.
This first communication setting further includes, as described later, a communication setting (hereinafter referred to as “a BUSY addition mode”) in which a busy frame is added and a communication setting (hereinafter referred to as “a non-BUSY addition mode”) in which the busy frame is not added.
First, description will be made of the data format of the lens data signal DLC. The lens data signal DLC in the one frame includes, as large parts, a data frame as a first frame and a BUSY frame as a subsequent frame. A signal level of the lens data signal DLC is held at High in a non-transmission state where data transmission is not performed.
The lens microcomputer 111 sets the signal level to Low in one bit time period in order to provide a notice of a start of one frame transmission of the lens data signal DLC to the camera microcomputer 205. The one bit time period indicating a start of one frame is called “a start bit ST” in this embodiment. That is, one data frame is started from this start bit ST. The start bit ST is provided as a head bit of each one frame of the lens data signal DLC.
Next, the lens microcomputer 111 transmits one-byte lens data in 8 bit time period from a subsequent second bit to a ninth bit. The data bits are arranged in an MSB-first format starting from a highest-order data bit D7 and continuing to data bits D6, D5, D4, D3, D2 and D1 in this order and ending with a lowest-order data bit D0. Then, the lens microcomputer 111 adds one bit parity information (parity bit) PA at a tenth bit and sets the signal level of the lens data signal DLC to High in a time period of a stop bit SP indicating an end of the one frame. Thus, the data frame starting from the start bit SP ends.
Thereafter, as illustrated by “DLC (with BUSY)” in
Description will be made of a method of determining the presence and absence of the BUSY notice; the method is performed by the camera microcomputer 205. In
Next, description will be made of a data format of the camera data signal DCL. Specifications of the data format of the camera data signal DCL in one frame are common to those of the lens data signal DLC. However, the addition of the BUSY frame to the camera data signal DCL is prohibited, which is different from the lens data signal DLC.
Next, the communication procedures between the camera and lens microcomputers 205 and 111 in the first communication setting will be described. First, the communication procedures in the BUSY addition mode will be described.
The camera microcomputer 205 sets, when an event for starting the communication with the lens microcomputer 11 is generated, a signal level of the request-to-send signal RTS to Low (in other words, asserts the request-to-send signal RTS) to provide the transmission request to the lens microcomputer 111. The lens microcomputer 111 having detected the transmission request through the assertion (Low) of the request-to-send signal RTS performs a process to produce the lens dada signal DLC to be transmitted to the camera microcomputer 205. Then, after a preparation for transmitting the lens data signal DLC is completed, the lens microcomputer 111 starts transmitting one frame of the lens data signal DLC through the first data communication channel.
The lens microcomputer 111 starts the transmission of the lens data signal DLC within a time period mutually set by the camera and lens microcomputers 205 and 111 after the assertion of the request-to-send signal RTS. That is, for the lens microcomputer 111, a strict restriction is not provided that it is necessary to set the lens data to be transmitted before a first clock pulse is input thereto in a time period from the assertion of the request-to-send signal RTS to a start of the transmission of the lens data signal DLC.
Next, in response to detecting the start bit ST as a head bit of the data frame of the lens data signal DLC received from the lens microcomputer 111 (that is, in response to a start of receiving the lens data signal DLC), the camera microcomputer 205 returns the signal level of the request-to-send signal RTS to High, in other words, negates the request-to-send signal RTS. The camera microcomputer 205 thereby terminates the transmission request and starts the transmission of the camera data signal DCL through the second data communication channel. The negation of the request-to-send signal RTS may be performed any one of before and after the start of the transmission of the camera data signal DCL. It is only necessary that these negation and transmission be performed until the receipt of the data frame of the lens data signal DLC is completed.
The lens microcomputer 111 having transmitted the data frame of the lens data signal DLC adds the BUSY frame to the lens data signal DLC in a case where the BUSY notice is necessary to be provided to the camera microcomputer 205. The camera microcomputer 205 monitors the presence and absence of the BUSY notice and prohibits the assertion of the request-to-send signal RTS for a subsequent transmission request while the BUSY notice is provided. The lens microcomputer 111 executes necessary processes in a time period where the communication from the camera microcomputer 205 is prohibited by the BUSY notice and terminates the BUSY notice after a subsequent communication preparation is completed. The assertion of the request-to-send signal RTS by the camera microcomputer 205 for the subsequent transmission request is permitted under a condition that the BUSY notice is terminated and the transmission of the data frame of the camera data signal DCL is completed.
As just described, in this embodiment, in response to the assertion of the request-to-send signal RTS upon the generation of the communication starting event in the camera microcomputer 205, the lens microcomputer 111 starts transmitting the data frame of the lens data signal DLC to the camera microcomputer 205. On the other hand, the camera microcomputer 205 starts, in response to detecting the start bit ST of the lens data signal DLC, transmitting the data frame of the camera data signal DCL to the lens microcomputer 111. The lens microcomputer 111 adds, as needed, the BUSY frame to the data frame of the lens data signal DLC for providing the BUSY notice and then terminates the BUSY notice to end one frame communication process. In this communication process, the camera microcomputer 205 and the lens microcomputer 111 mutually transmit and receive one byte data.
Next, the communication procedures in the non-BUSY addition mode will be described. The non-BUSY addition mode enables a higher-speed data communication as compared with the BUSY addition mode because the BUSY frame is not added.
Furthermore, in the non-BUSY addition mode, each frame of the lens data signal DLC includes two stop bits SP as final bits, which is more than that of each frame of the camera data signal DCL. This difference in stop bit number makes a bit length of one frame of the lens data signal DLC longer than that of one frame of the camera data signal DCL. The reason for the longer bit length will be described later.
The camera microcomputer 205 asserts the request-to-send signal RTS when an event for starting the communication with the lens microcomputer 111 is generated. Thereafter, in the non-BUSY addition mode in which it is unnecessary to negate the request-to-send signal RTS at each frame in contrast to in the BUSY addition mode, the camera microcomputer 205 maintains the assertion of the request-to-send signal RTS while performing continuous data communication (transmission and receipt) with the lens microcomputer 111.
The lens microcomputer 111 performs, in response to detecting a transmission request by the assertion of the request-to-send signal RTS, a process for producing the lens data signal DLC to be transmitted to the camera microcomputer 205. Then, after a preparation for transmitting the lens data signal DLC is completed, the lens microcomputer 111 starts transmitting a first frame DL1 of the lens data signal DLC to the camera microcomputer 205 through the first data communication channel.
The lens microcomputer 111 having transmitted the data frame of the first frame of the lens data signal DLC rechecks the request-to-send signal RTS. If the request-to-send signal RTS is asserted, the lens microcomputer 111 transmits, after the first frame whose transmission has been completed, a second frame DL2 of the lens data signal DLC to the camera microcomputer 205. In this way, while the assertion of the request-to-send signal RTS is maintained by the camera microcomputer 205, the lens microcomputer 111 continuously transmits the n frames DL1 to DLn of the lens data signal DLC to the camera microcomputer 205. Then, if the transmission of the n frames indicated in the data size information is completed, the transmission of the lens data signal DLC is stopped.
The camera microcomputer 205 transmits, in response to detecting the start bits ST of the frames of the lens data signal DLC from the lens microcomputer 111, n frames DC1 to DCn of the camera data signal DCL through the second data communication channel. Thus, the assertion of the request-to-send signal RST maintained by the camera microcomputer 205 enables continuous transmission and receipt of the lens and camera data signals DLC and DCL whose each frame number corresponds to the data size information. The camera microcomputer 205 temporarily stores the n frames of the lens data signal DLC continuously received from the lens microcomputer 111 to the receipt data buffer 303 through the serial-parallel converter 306. The DMA controller 307 transfers the n frames of the lens data signal DLC stored in the receipt data buffer 303 to the memory 210 to finally store these n frames to the memory 210. Therefore, to receive a larger data amount of the lens data signal DLC than a capacity of the receipt data buffer 303, it is necessary to transfer the lens data signal DLC stored before in the receipt data buffer 303 to the memory 210 so as to secure a free space of the receipt data buffer 303. However, when the DMA controller 307 cannot access the memory 210 due to a processing situation of the signal processor 203 provided in the camera body 200, it is impossible to transfer the n frames of the lens data signal DLC continuously received from the lens microcomputer 111 to the memory 210. This results in a lack of the free space of the receipt data buffer 303, which makes it impossible to store part of the lens data signal DLC to the memory 210. For example, if remaining data of the lens data signal DLC in the receipt data buffer 303, the remaining data being part of the lens data signal DLC received before by the camera microcomputer 205 and being not transferred to the memory 210, is overwritten by newly received data, the rewritten data is not stored to the memory 210. Thus, it is necessary to suspend (temporarily stop) the communication performed between the camera and lens microcomputers 205 and 111 before the data stored in the receipt data buffer 303 is overwritten.
In
Such communication control enables, even when the communication suspension instruction is provided during the continuous data communication, managing so as to make a transmitted frame number of the lens data signal DLC equal to that of the camera data signal DCL, that is, so as to synchronize the transmissions of the lens and camera data signals DLC and DCL. In response to termination of the communication suspension event, the camera microcomputer 205 is allowed to assert the request-to-send signal RTS again to instruct the lens microcomputer 111 to restart the communication (that is, provides a communication restart instruction to the lens microcomputer 111). The lens microcomputer 111 restarts, in response to the communication restart instruction, transmitting the lens data signal DLC from a frame subsequent to the suspension frame (this subsequent frame is illustrated as DL7 in
As just described, the camera microcomputer 205 temporarily negates the request-to-send signal RTS to suspend the communication with the lens microcomputer 111. Then, if a received frame number of the lens data signal DLC at the time of the suspension is less than the frame number indicated in the data size information, the camera microcomputer 205 is allowed to restart receiving the lens data signal DLC from the lens microcomputer 111.
After the end of the communication suspension time period T2w1, the lens and camera microcomputers 111 and 205 do not instruct or notify of a suspension of the communication and perform continuous data transmission in order from the above-described restart frames DL7, DC7 to subsequent frames DL8, DC8 and DL9 and DC9.
Then, in response to occurrence of a communication suspension request event when the transmission of the frame DL9 (and receipt of the frame DC9 in the camera microcomputer 205), the lens microcomputer 111 notifies the camera microcomputer 205 of a suspension of the communication. The notification is performed by not transmitting the lens data signal DLC to the camera microcomputer 205 even though the request-to-send signal RTS is asserted. In
The camera microcomputer 205 always monitors the start bit ST of each frame of the lens data signal DLC and is programed to stop, in response to not detecting the start bit ST of a certain frame of the lens data signal DLC, transmitting a subsequent frame of the camera data signal DCL. Therefore, the camera microcomputer 205 stops, when not receiving the lens data signal DLC (DL10 in
Thereafter, in response to termination of the communication suspension request event in the lens microcomputer 111, the lens microcomputer 111 restarts transmitting the restart frame DL10 of the lens data signal DLC. The camera microcomputer 205 restarts, in response to detecting the start bit ST of the restart frame DL10, transmitting the corresponding frame DC10 of the camera data signal DCL.
Next, with reference to
Since the bit rate of the camera data signal DCL is slower than that of the lens data signal DLC, delays of the frames of the camera data signals DCL with respect to the frames of the lens data signal DLC are gradually increased. The camera and lens microcomputers 205 and 111 are performing continuous data communication, so that gaps (non-communication time periods) are not provided between the frames. Accordingly, accumulation of the delays causes a shift of one frame or more between the camera and lens data signals DCL and DLC, which generates a difference between the transmitted frame numbers of the camera and lens data signals DCL and DLC. Furthermore, the above shift between the camera and lens data signals DCL and DLC causes the camera microcomputer 205 to skip the start bit ST of one frame of the lens data signal DLC, which generates a time period corresponding to about one frame where the camera data signal DCL is not transmitted to the lens microcomputer 111. Such a situation makes it difficult to manage the transmitted frame numbers (communication data amounts) between the camera and lens microcomputers 205 and 111 and makes the data communication therebetween impossible.
Thus, this embodiment provides, as illustrated in
When the bit rates of the lens and camera data signals DLC and DCL are equal to each other, the longer bit length of one frame of the lens data signal DLC than that of one frame of the camera data signal DCL causes the transmission of the camera data signal DCL to be completed earlier than that of the lens data signal DLC. Furthermore, even when the bit rate of the camera data signal DCL is slower than that of the lens data signal DLC due to a bit rate error, one bit as a bit length difference of one frame is a sufficient margin amount for absorbing a transmission time difference between corresponding frames of the camera and lens data signals DCL and DLC due to the bit rate error.
On the other hand, when the bit rate of the camera data signal DCL is faster than that of the lens data signal DLC, the above-described frame shift problem does not occur. This is because the setting is made that each frame of the camera data signal DCL is transmitted in response to detecting the start bit ST in each frame of the lens data signal DLC. Furthermore, even when the bit rates settable in the camera body 200 and the interchangeable lens 100 are slightly different from each other, increasing the bit number of the stop bits SP in each frame of the lens data signal DLC enables responding to the difference.
As described above, in the BUSY addition mode in the first communication setting, the camera microcomputer 205 can notify the lens microcomputer 111 of the suspension of the communication by temporarily negating the request-to-send signal RTS. Furthermore, the lens microcomputer 111 adds the BUSY notice (BUSY frame) to the lens data signal DLC to notify the camera microcomputer 205 of the suspension of the communication. These functions of the camera and lens microcomputers 205 and 111 enable smooth and fast data communication therebetween.
On the other hand, in the non-BUSY addition mode in the first communication setting, the camera microcomputer 205 can notify the lens microcomputer 111 of the suspension of the communication during the burst communication from the lens microcomputer 111 to the camera microcomputer 205 by temporarily negating the request-to-send signal RTS. This function of the camera microcomputers 205 and 111 enables performing a large volume data communication at a high speed between the camera and lens microcomputers 205 and 111 while synchronizing them with each other.
Next, description will be made of the second communication setting between the camera and lens microcomputers 205 and 111. In the second communication setting, as illustrated in
The second communication setting uses the first and second data communication channels for continuous communication (burst communication) of the lens data signal to the camera microcomputer 205. This second communication setting enables a large volume data communication at a higher speed as compared with the non-BUSY addition mode in the first communication setting. However, when the first communication setting is switched to the second communication setting, it is necessary to avoid collision of the camera data signal DCL transmitted from the camera microcomputer 205 with the lens data signal DLC2 transmitted from the lens microcomputer 111. Thus, in this embodiment, the camera and lens microcomputers 205 and 111 perform in cooperation with each other a communication setting switching process according to a predetermined procedure.
The camera data transceiver 208b includes a communication direction switcher 1401 that operates a switch 1402 so as to switch the input/output direction in the second data communication channel to a direction in which the camera microcomputer 205 receives the second lens data signal DLC2 transmitted from the lens microcomputer 111. Then, in the camera microcomputer 205, the second lens data signal DLC2 received from the lens microcomputer 111 through the second data communication channel is converted from a serial data signal into a parallel data signal by the serial-parallel converter 306 and is stored to the receipt data buffer 303. The receipt data buffer 303 also stores the first lens data signal DLC received through the first data communication channel and converted from a serial data signal into a parallel data signal by the parallel-serial converter 306. The second lens data signal DLC2 stored in the receipt data buffer 303 is read out therefrom by the DMA controller 307, and the read lens data signal DLC is transferred and stored to the memory 210.
The lens data transceiver 112b includes a communication direction switcher 1411 that operates a switch 1412 so as to switch the input/output direction in the second data communication channel to the direction in which the lens microcomputer 111 transmits the second lens data signal DLC2 to the camera microcomputer 205. Then, in the lens microcomputer 111, the second lens data signal DLC2 stored in the transmission data buffer 312 is converted from a parallel data signal into a serial data signal by the parallel-serial converter 315 and is transmitted to the camera microcomputer 205 through the second data communication channel. In the lens microcomputer 111, the first lens data signal DLC stored in the transmission data buffer 312 is converted from a parallel data signal into a serial data signal by the parallel-serial converter 315 and is transmitted to the camera microcomputer 205 through the first data communication channel.
Next, description will be made of the procedure in the second communication setting.
Furthermore, the second communication setting is customized as a communication setting used only for the lens data transmission from the lens microcomputer 111 to the camera microcomputer 205, that is, camera data transmission from the camera microcomputer 205 to the lens microcomputer 111 is unable to be performed in the second communication setting. Moreover, the first and second lens data signals DLC and DLC2 have a data format enabling continuous communication without a wait time between the stop bit SP of a previous frame and the start bit ST of a subsequent frame.
The data frames of the first and second lens data signals DLC and DLC2 have mutually the same data formats in which one frame bit lengths thereof are equal to each other. This is for a purpose of a communication management that makes numbers of the transmitted frames equal to each other in a case where the data communication is stopped in its middle. However, relative relations of bit positions in the data frames of the first and second lens data signals DLC and DLC2 are not necessarily needed to be identical to each other, that is, a shift amount of the bit positions between the first and second lens data signals DLC and DLC2 within one frame length is allowed.
The camera microcomputer 205 asserts the request-to-send signal RTS when an event for starting the communication with the lens microcomputer 111 is generated. Thereafter, in the second communication setting in which it is unnecessary to negate the request-to-send signal RTS at each frame, the camera microcomputer 205 maintains the assertion of the request-to-send signal RTS while performing continuous data communication (transmission and receipt) with the lens microcomputer 111.
The lens microcomputer 111 performs, in response to detecting a transmission request by the assertion of the request-to-send signal RTS, a process for producing the first and second lens data signals DLC and DLC2 to be transmitted to the camera microcomputer 205. Then, after a preparation for transmitting the first and second lens data signals DLC and DLC2 is completed, the lens microcomputer 111 starts transmitting a first frame DL1 of the first lens data signal DLC to the camera microcomputer 205 through the first data communication channel. Simultaneously, the lens microcomputer 111 starts transmitting a second frame DL2 of the second lens data signal DLC2 to the camera microcomputer 205 through the second data communication channel.
The lens microcomputer 111 having transmitted the first and second frames DL1 and DL2 of the first and second lens data signals DLC and DLC2 rechecks the request-to-send signal RTS. If the request-to-send signal RTS is asserted, the lens microcomputer 111 transmits, after the first and second frames, third and fourth frames DL3 and DL4 of the first and second lens data signals DLC and DLC2 to the camera microcomputer 205. In this way, while the assertion of the request-to-send signal RTS is maintained by the camera microcomputer 205, the lens microcomputer 111 continuously transmits the n frames in total of the first and second lens data signals DLC and DLC2 to the camera microcomputer 205.
Setting the total frame number n of the first and second lens data signals DLC and DLC2 to an even number makes frame numbers transmitted respectively through the first and second data communication channels from the lens microcomputer 111 to the camera microcomputer 205 equal to each other. Although in FIG. 8B the first lens data signal DLC transmitted through the first data communication channel includes only odd frames and the second lens data signal DLC2 transmitted through the second data communication channel includes only even frames, the first and second lens data signals DLC and DLC2 may include other frames.
In
In response to detecting the negation of the request-to-send signal RTS, the lens microcomputer 111 suspends transmitting the first and second lens data signals DLC and DLC2 after completing transmitting the frames DL11 and DL12 incompletely transmitted at the time of detecting the negation (the frames DL11 and DL12 are hereinafter referred to as “suspension frames”).
In response to termination of the communication suspension event, the camera microcomputer 205 asserts the request-to-send signal RTS again to instruct the lens microcomputer 111 to restart the communication (that is, provides a communication restart instruction to the lens microcomputer 111). The lens microcomputer 111 restarts, in response to the communication restart instruction, transmitting the first and second lens data signals DLC and DLC2 from frames DL13 and DL14 subsequent to the suspension frames DL11 and DL12 (the subsequent frames DL13 and DL14 are hereinafter referred to as “restart frames”).
The lens microcomputer 111 continuously transmits, to the camera microcomputer 205, the restart frames DL13 and DL14, subsequent frames DL15 and DL16 and further subsequent frames DL17 and Dl18 in this order.
Then, when the transmission of the frames DL17 and DL18 is completed and a communication suspension request event is generated in the lens microcomputer 111, the lens microcomputer 111 notifies the camera microcomputer 205 of a suspension of the communication.
In
As described above, in the second communication setting, the lens microcomputer 111 suspends the transmission of the first and second lens data signals DLC and DLC2 to the camera microcomputer 205 and thereby suspends the communication between the camera and lens microcomputers 205 and 111. This function of the lens microcomputer 111 enables performing a large volume data communication at a high speed between the camera and lens microcomputers 205 and 111 while synchronizing them with each other.
As described above, this embodiment enables, in both the first and second communication settings, both the camera and lens microcomputers 205 and 111 to instruct each other to suspend and restart the communication. Therefore, this embodiment enables performing commination control depending on processing loads and capacities of receipt data buffers of the camera and lens microcomputers 205 and 111, which enables smoothly performing a high-speed large volume data communication without making the communication impossible.
Next, description will be made of a second embodiment (Embodiment 2) of the present invention. This embodiment forcibly suspends (stops) continuous transmission (burst communication) of the first and second lens data signals DLC and DLC2 from the lens microcomputer 111 to the camera microcomputer 205 in the second communication setting described in Embodiment 1.
As described in Embodiment 1, in the second setting, using first and second data communication channels for transmitting the first and second lens data signals DLC and DLC2 from the lens microcomputer 111 to the camera microcomputer 205 enables a high-speed large volume data communication. However, since the second data communication channel is originally provided for transmission of the camera data signal DCL, using the second data communication channel for transmitting the second lens data signal DLC2 makes it impossible to notify the lens microcomputer 111 of instructions such as control commands from the camera microcomputer 205. Therefore, even when the camera microcomputer 111 recognized a communication abnormality during the burst communication, the camera microcomputer 205 cannot instruct the lens microcomputer 111 to suspend the transmission of the first and second lens data signals DLC and DLC2. The communication abnormality includes data corruption due to static electricity and shut-off of the communication channels between the camera and lens microcomputers 205 and 111 due to user's abrupt detachment of the interchangeable lens 100 from the camera body 200.
When such communication abnormality occurs, it is desirable to forcibly suspend the communication promptly. However, instructing the lens microcomputer 111 to suspend the communication after the burst communication from the lens microcomputer 111 to the camera microcomputer 205 in the second communication setting and then the second data communication channel is switched to the first communication setting for transmitting the camera data signal DCL delays the suspension of the communication. Thus, this embodiment enables promptly forcibly suspension of the communication when the communication abnormality occurs.
In
On the other hand, the camera body 200′ includes a timer 211 that counts an elapsed time from a time counting start command output from the camera microcomputer 205 to a time counting end command therefrom. The camera microcomputer 205 negates the request-to-send signal RTS and simultaneously outputs time counting start command to the timer 211. Thereby, the timer 211 counts the elapsed time, that is, a time for which the camera microcomputer 205 negates the request-to-send signal RTS (the time is hereinafter referred to as “a camera RTS negation time”). The camera RTS negation time is input to the camera microcomputer 205.
With reference to a flow chart of
At S1101, the camera microcomputer 205 prepares a burst communication request command. The burst communication request command includes information necessary for the lens microcomputer 111 to perform the burst communication, such as a communication data amount and a bit rate in the burst communication. Then, at S1102, the camera microcomputer 111 transmits, as the camera data signal DCL, the burst communication request command to the lens microcomputer 111 through the second data communication channel.
At S1201, the lens microcomputer 111 having received the burst communication request command performs a communication preparation that includes producing the first and second data signals DLC and DLC2 according to the information included in the burst communication request command and switching from the first communication setting to the second communication setting. Then, after the communication preparation is completed, the lens microcomputer 111 at S1202 transmits, as the first camera data signal DLC, a preparation completion notice to the camera microcomputer 205 through the first data communication channel.
The camera microcomputer 205 having received at S1103 the preparation completion notice asserts at S1104, in response to a completion of a communication preparation in the camera microcomputer 205, the request-to-send signal RTS to provide a transmission request to the lens microcomputer 111. The lens microcomputer 111 having received the transmission request starts at S1203 and S1204 a continuous communication (burst communication) of the first and second lens data signals DLC and DLC2 to the camera microcomputer 205 through the first and second communication channels.
During this burst communication, the camera microcomputer 205 always monitors presence and absence of a communication error. The following description will be made of a case where the camera microcomputer 205 detects at S1105 the communication error is detected during receiving the first lens data signal DLC or the second lens data signal DLC2. The communication error can be detected by the presence of an inconsistency between the parity information PA added to each frame as described in
The camera microcomputer 205 having detected the communication error proceeds to S1106. The camera microcomputer 205 having detected no communication error continues receiving the first and second lens data signals DLC and DLC2.
At S1106, the camera microcomputer 205 provides the time counting start command to the timer 211 to cause the timer 211 to start counting the camera RTS negation time. Then, the camera microcomputer 205 at S1107 negates the request-to-send signal RTS in order to instruct the lens microcomputer 111 to suspend transmitting the first and second lens data signals DLC and DLC2.
The lens microcomputer 111 having detected the negation of the request-to-send signal RTS suspends at S1205 transmitting the first and second lens data signals DLC and DC2. Furthermore, the lens microcomputer 111 at S1206 provides the time counting start command to the timer 114 to cause the timer 114 to start counting the lens RTS negation time.
The lens microcomputer 111 at S1207 determines whether or not the lens RTS negation time counted by the timer 114 exceeds a predetermined time A. The predetermined time A may be preset as a communication standard between the camera and lens microcomputers 205 and 111. Alternatively, the predetermined time A may be provided to the lens microcomputer 111 by the transmission of the burst communication request command from the camera microcomputer 205 to the lens microcomputer 111 at S1102 or by transmission of the camera data signal DCL subsequent thereto. A specific example of the predetermined time A will be described in a next embodiment (Embodiment 3). If the request-to-send signal RTS is asserted by the camera microcomputer 205 before the lens RTS negation time exceeds the predetermined time A, the lens microcomputer 111 restarts transmitting the first and second lens data signals DLC and DLC2.
If at S1108 the camera RTS negation time counted by the timer 211 exceeds the predetermined time A, the camera microcomputer 205 at S1109 asserts the request-to-send signal RTS. The camera microcomputer 205 thereby instructs the lens microcomputer 111 to forcibly terminate the transmission of the first and second lens data signals LC and DLC2. The lens microcomputer 111 detecting the assertion of the request-to-send signal RTS after the lens RTS negation time exceeds the predetermined time A determines that the assertion is an instruction of forcibly terminating the transmission of the first and second lens data signals LC and DLC2. The lens microcomputer 111 at S1208 terminates the transmission of the first and second lens data signals LC and DLC2 in its middle and at S1209 provides a forcible termination completion notice to the camera microcomputer 205 by transmitting a notice command as the first lens data signal DCL.
The camera microcomputer 205 having received the forcible suspension completion notice from the lens microcomputer 111 finishes receiving the first and second lens data signals LC and DLC2 from the lens microcomputer 111 at S1110. Then, the camera microcomputer 205 switches the second data communication channel from a state of allowing receipt of the second lens data signal DLC2 to a state of allowing transmission of the camera data signal DCL.
When a communication suspension request event is terminated in the camera microcomputer 205 before the communication suspension time period T4w1 exceeds the predetermined time A, the camera microcomputer 205 asserts again the request-to-send signal RTS to instruct the lens microcomputer 111 to restart transmitting the first and second lens data signals DLC and DLC2. In response to the instruction, the lens microcomputer 111 restarts transmitting the first and second lens data signals DLC and DLC2 from frames DL13 and DL14 thereof subsequent to the suspension frames DL11 and DL12.
In response to this instruction, the lens microcomputer 111 terminates (ends) the transmission of the first and second lens data signals DLC and DLC2 after transmitting the suspension frames DL11 and DL12.
Furthermore, the lens microcomputer 111 notifies the camera microcomputer 205 of the forcible termination completion notice (END). The forcible termination completion notice may be provided in one frame or in multiple frames. The lens microcomputer 111 thus does not transmit remaining frames DL13 to DLn of the first and second lens data signals DLC and DLC2 to the camera microcomputer 205 and clears them.
As described above, in this embodiment, when in the second communication setting the communication error occurs during the burst communication from the lens microcomputer 111, the camera microcomputer 205 can promptly instruct the lens microcomputer 111 to forcibly suspend the burst communication.
Although this embodiment described the case where, when the camera and lens RTS negation times exceed the predetermined time A, the lens microcomputer 111 recognizes that the assertion of the request-to-send signal RTS is merely the instruction of forcibly terminating the burst communication, the lens microcomputer 111 may recognize that the assertion of the request-to-send signal RTS is an instruction of re-performing the burst communication (that is, of forcibly terminating it and restarting from its beginning).
Next, description will be made of a third embodiment (Embodiment 3) of the present invention. This embodiment also forcibly suspends the continuous communication (burst communication) of the first and second lens data signals DLC and DLC2 from the lens microcomputer 111 to the camera microcomputer 205 in the second communication setting.
As described with reference to
Moreover, similar table information may be stored in an internal memory in the lens microcomputer 111 and the lens microcomputer 111 may set the predetermined time A depending on the data amount transmitted in the burst communication from the lens microcomputer 111 to the camera microcomputer 205 before the burst communication is stared. In this case, it is unnecessary that the camera microcomputer 205 notify the lens microcomputer 111 of the predetermined time A.
When the predetermined time A is set to 0 ms, the lens microcomputer 111 determines that the assertion of the request-to-send signal RTS from the negation thereof is not an instruction for restarting the communication, but an instruction for forcibly suspending the communication. On the other hand, when the predetermined time A is set to 20 ms, the lens microcomputer 111 determines that the assertion of the request-to-send signal RTS from the negation thereof within the predetermined time A is an instruction for restarting the communication. However, when the request-to-send signal RTS is asserted from the negation thereof after the predetermined time A elapses, the lens microcomputer 111 determines that the assertion is an instruction for forcibly suspending the communication.
This embodiment can decrease a time required until the burst communication is forcibly suspended in the case where the receipt data buffer 303 has a sufficient capacity with respect to the data amount of the burst communication as compared with Embodiment 2. Thus, during the burst communication in the second communication setting, the camera microcomputer 205 detecting the communication error can promptly instruct the lens microcomputer 111 to forcibly suspend the burst communication. Accordingly, the camera microcomputer 205 enables the lens microcomputer 111 to promptly restart the burst communication.
Next, description will be made of a fourth embodiment (Embodiment 4) of the present invention. In this embodiment, as illustrated in FIG. the 15, a camera body 200″ includes a memory controller 212 that controls the memory (DDR) 210. In
Description will be made of the memory controller 212. In
An arbiter 501 performs arbitration and ordering on the memory access requests to the memory 210 received by the bus interfaces 506. A queue buffer 502 is used as a buffer to which the memory access requests subjected to the ordering by the arbiter 501 are temporarily stored. The camera microcomputer 205 acquires information on a frequency of the memory access requests (hereinafter referred to as “memory access frequency”) from the memory access requests stored in the queue buffer 502.
A command outputter 503 sequentially takes out the memory access requests stored in the queue buffer 502 and performs accesses to the memory 210 depending on contents of the taken memory access requests. A data interface 504 is an interface for reading out and writing data from and into the memory 210 depending on the memory access request output the command outputter 503.
A data controller 505 takes in, when the memory access request selected by the arbiter 501 is a command that requests data writing to the memory 210, data to be written from the bus interface 506. A data controller 505 stores the data to be written until an actual data writing time and outputs the data to the data interface 504. The data controller 505 further outputs, when the memory access request selected by the arbiter 501 is a command that requests data reading from the memory 210, data read out from the memory 210 to the data interface 504.
This embodiment will describe below a forcible suspension of the communication by the camera microcomputer 205 that detects the communication abnormality in the burst communication from the lens microcomputer 111 to the camera microcomputer 205 in the second communication setting in a case where the camera body 200″ includes the above-described memory controller 212.
At S401 in
Next, at S402, the camera microcomputer 205 determines, using the memory access frequency acquired at S401, whether or not an image-capturing mode currently set in the camera body 200″ is one in which the memory access frequency of the camera communicator 208 is high (this image-capturing mode is hereinafter referred to as “a high memory access frequency image-capturing mode”). If the current image-capturing mode is the high memory access frequency image-capturing mode, the camera microcomputer 205 proceeds to S403. If the current image-capturing mode is not the high memory access frequency image-capturing mode (that is, a low-memory access frequency image-capturing mode), the camera microcomputer 205 proceeds to S404.
At S403, the camera microcomputer 205 sets, in response to the high memory access frequency, the predetermined time A that is an upper limit of the time (hereinafter referred to as “an RTS negation time”) for negating the request-to-send signal RTS to suspend the communication longer than that set at S404 described later. On the other hand, at S404, the camera microcomputer 205 sets, in response to the low memory access frequency, the predetermined time A shorter than that set at S403. That is, the camera microcomputer 205 sets the predetermined time A long when the memory access request wait time is long and sets the predetermined time A short when the memory access request wait time is short.
Next, at S405, the camera microcomputer 205 transmits the burst communication request command as the camera data signal DLC to the lens microcomputer 111 through the second data communication channel. The burst communication request command includes, as described in Embodiment 2, the information necessary for the lens microcomputer 111 to perform the burst communication, such as the communication data amount and the bit rate in the burst communication.
The lens microcomputer 111 having received the burst communication request command performs at S406 a communication preparation that includes producing the first and second data signals DLC and DLC2 according to the information included in the burst communication request command and switching from the first communication setting to the second communication setting. Then, after the communication preparation is completed, the lens microcomputer 111 transmits, as the first camera data signal DLC, a preparation completion notice to the camera microcomputer 205 through the first data communication channel.
The camera microcomputer 205 having received the preparation completion notice asserts at S407, in response to a completion of a communication preparation in the camera microcomputer 205, the request-to-send signal RTS to provide a transmission request to the lens microcomputer 111. The lens microcomputer 111 having received the transmission request starts a continuous communication (burst communication) of the first and second lens data signals DLC and DLC2 to the camera microcomputer 205 through the first and second communication channels.
During this burst communication, the camera microcomputer 205 always monitors presence and absence of the communication error. The detection of the communication error is as described at S1105 in Embodiment 2. When detecting no communication error, the camera microcomputer 205 proceeds to S412.
On the other hand, when detecting the communication error, the camera microcomputer 205 negates at S408 the request-to-send signal RTS to instruct the lens microcomputer 111 to suspend the transmission of the first and second lens data signals DLC and DLC2. The lens microcomputer 111 having detected the negation of the request-to-send signal RTS suspends transmitting the first and second lens data signals DLC and DLC2. Furthermore, the lens microcomputer 111 provides the time counting start command described in Embodiment 2 to the timer 114 to cause the timer 114 to start counting the RTS negation time.
The lens microcomputer 111 at S409 determines whether or not the lens RTS negation time counted by the timer 114 exceeds the predetermined time A. If the RTS negation time does not exceed the predetermined time A, the lens microcomputer 111 proceeds to S410 to determine whether or not the request-to-send signal RTS is asserted again by the camera microcomputer 205. If the request-to-send signal RTS is asserted, the lens microcomputer 111 at S411 restarts the first and second lens data signals DLC and DLC2. Then, at S412, the lens microcomputer 111 determines whether or not the transmission of the whole frames of the first and second lens data signals DLC and DLC2 have been completed. If the transmission has been completed, the lens microcomputer 111 ends this process.
If the request-to-send signal RTS is not asserted at S410, the lens microcomputer 111 returns to S409.
If at S409 the RTS negation time counted by the timer 114 exceeds the predetermined time A, the lens microcomputer 111 proceeds to S413 to determine whether or not the request-to-send signal RTS is asserted again by the camera microcomputer 205. If the request-to-send signal RTS is asserted, the lens microcomputer 111 stops at S414 transmitting the first and second lens data signals DLC and DLC2. That is, the lens microcomputer 111 does not transmit remaining frames of the first and second lens data signals DLC and DLC2 to the camera microcomputer 205 and clears them.
Then, the lens microcomputer 111 provides a forcible termination completion notice to the camera microcomputer 205 by transmitting a notice command as the first lens data signal DCL. The camera microcomputer 205 switches from the second communication setting to the first communication setting and then ends this process.
As described above, when the request-to-send signal RTS is asserted again before the RTS negation time exceeds the predetermined time A, the lens microcomputer 111 determines that the assertion is an instruction of restarting the burst communication and therefore restarts the burst communication having been suspended. On the other hand, when the request-to-send signal RTS is asserted again after the RTS negation time exceeds the predetermined time A, the lens microcomputer 111 determines that the assertion is an instruction of forcibly terminating the burst communication and therefore terminates the burst communication.
In
As illustrated in
On the other hand, as illustrated in
As described above, this embodiment variably sets the predetermined time A as the upper limit time depending on difference in memory access wait time due to difference in memory access frequency to the memory 210 that finally stores the first and second lens data signals DLC and DLC2. Thus, this embodiment enables setting an optimum upper limit time as the communication suspension time for a storing speed at which the first and second lens data signals DLC and DLC2 of are stored to the memory 210. Accordingly, after the suspension of the communication in response to detecting the communication error in the camera body 200″, the lens microcomputer 111 can promptly determine whether to forcibly terminate or restart the communication.
Although this embodiment described the case where, when the RTS negation time exceeds the predetermined time A, the lens microcomputer 111 recognizes that the assertion of the request-to-send signal RTS is merely the instruction of forcibly terminating the burst communication, the lens microcomputer 111 may recognize that the assertion of the request-to-send signal RTS is an instruction of re-performing the burst communication (that is, of forcibly terminating it and restarting from its beginning). Furthermore, when the RTS negation time is likely to exceed the predetermined time A, a priority of an access request from the camera microcomputer 205 (camera communicator 208) to the memory 210 may be controlled to be increased such that the burst communication from the lens microcomputer 111 is completed within the predetermined time A.
Each of the above-described embodiments allows the accessory apparatus and the image-capturing apparatus to suspend or terminate data transmission from each other, which enables a smooth and high-speed large volume data communication between the accessory apparatus and the image-capturing apparatus.
Embodiment(s) of the present invention can also be realized by a computer of a system or apparatus that reads out and executes computer executable instructions (e.g., one or more programs) recorded on a storage medium (which may also be referred to more fully as a ‘non-transitory computer-readable storage medium’) to perform the functions of one or more of the above-described embodiment(s) and/or that includes one or more circuits (e.g., application specific integrated circuit (ASIC)) for performing the functions of one or more of the above-described embodiment(s), and by a method performed by the computer of the system or apparatus by, for example, reading out and executing the computer executable instructions from the storage medium to perform the functions of one or more of the above-described embodiment(s) and/or controlling the one or more circuits to perform the functions of one or more of the above-described embodiment(s). The computer may comprise one or more processors (e.g., central processing unit (CPU), micro processing unit (MPU)) and may include a network of separate computers or separate processors to read out and execute the computer executable instructions. The computer executable instructions may be provided to the computer, for example, from a network or the storage medium. The storage medium may include, for example, one or more of a hard disk, a random-access memory (RAM), a read only memory (ROM), a storage of distributed computing systems, an optical disk (such as a compact disc (CD), digital versatile disc (DVD), or Blu-ray Disc (BD)™), a flash memory device, a memory card, and the like.
While the present invention has been described with reference to exemplary embodiments, it is to be understood that the invention is not limited to the disclosed exemplary embodiments. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions.
This application claims the benefit of Japanese Patent Application No. 2016-073360, filed on Mar. 31, 2016, which is hereby incorporated by reference herein in its entirety.
Number | Date | Country | Kind |
---|---|---|---|
2016-073360 | Mar 2016 | JP | national |
This application is a divisional of application Ser. No. 16/850,098, filed Apr. 16, 2020, which is a divisional of application Ser. No. 15/468,240, filed Mar. 24, 2017, which issued as U.S. Pat. No. 10,674,064 on Jun. 2, 2020, the entire disclosures of which is hereby incorporated by reference.
Number | Date | Country | |
---|---|---|---|
Parent | 16850098 | Apr 2020 | US |
Child | 17689684 | US | |
Parent | 15468240 | Mar 2017 | US |
Child | 16850098 | US |