Imaging device, accessory device and control method
A communication system that switches between different modes optimizes data transfer between imaging devices and accessories by using block-based data transmission and frame-based notifications, addressing the need for faster data handling in sophisticated imaging systems.
Patent Information
- Application Number
- JP2020155591
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-09-16
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2040-09-16
AI Technical Summary
The increasing sophistication of imaging control and higher frame rates result in a need for faster data communication between imaging devices and accessory devices, such as interchangeable lenses and intermediate adapters, to handle the growing amount of data effectively.
Implementing a communication system that switches between block-based data transmission and frame-based notification using multiple communication modes, including broadcast, P2P, and P2P burst communication, to optimize data transfer efficiency.
This approach allows for more data to be communicated in a shorter time, enhancing the operational efficiency and compatibility of imaging devices with various accessories.
Smart Images

Figure 0007566545000001 
Figure 0007566545000002 
Figure 0007566545000003
Abstract
Description
[Technical field]
[0001] The present invention is Imaging device and accessory devices such as intermediate adapters or interchangeable lenses, and their control methods. By law This is related to. [Background technology]
[0002] 2. Description of the Related Art Techniques for communicating between a camera body and an accessory device attached to the camera body are known.
[0003] Patent document 1 discloses a technology in which a camera body communicates with an interchangeable lens attached to the camera body and an intermediate adapter attached between the interchangeable lens and the camera body via contacts provided on the mount. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] Patent Publication No. 2018-205720 Summary of the Invention [Problem to be solved by the invention]
[0005] The amount of data being communicated is on the rise due to more advanced imaging control and higher frame rates, creating a demand for technology that can communicate more data in a shorter amount of time.
[0006] The present invention relates to an imaging device and an accessory device that can communicate more data in a shorter time. and control method The purpose is to provide. [Means for solving the problem]
[0007] One aspect of the present invention is an accessory device that is detachably attached to an imaging device, the accessory device transmitting a notification via a second terminal in response to transmission of data in units of one frame via a first terminal. or receiving a notification via the second terminal in response to receiving data in units of one frame via the first terminal. No. 1 of A communication mode and the first data of a block unit including a plurality of frames of Receiving a notification via the second terminal in response to a transmission via the terminal do a control means for controlling communication in the second communication mode; The control means after receiving, in the first communication mode, a command for transitioning to the second communication mode via the first terminal and receiving a notification via the second terminal; Transmitting data in block units via the first terminal in the second communication mode. do It is characterized by:
[0008] Another aspect of the present invention is an imaging device to which an accessory device can be removably attached, the imaging device receiving a notification via a second terminal in response to receiving data in units of one frame via a first terminal. or transmitting a notification via the second terminal in response to transmission of data in units of one frame via the first terminal. No. 1 of A communication mode and the first data of a block unit including a plurality of frames of Sending a notification via said second terminal in response to receiving via said terminal do and a control means for controlling communication in the second communication mode, the control means comprising: after transmitting a command for transitioning to the second communication mode via the first terminal in the first communication mode and transmitting a notification via the second terminal, In the second communication mode hand Receive data in blocks via the first terminal do It is characterized by: Effect of the Invention
[0009] According to the present invention, more data can be communicated in a shorter time. [Brief description of the drawings]
[0010] [Figure 1] 1 is a block diagram showing a configuration of a camera system including an imaging device and an accessory device of the present invention. [Diagram 2] FIG. 2 is a schematic diagram showing a communication circuit in the camera system of the present invention. [Diagram 3] FIG. 2 is a diagram showing a format of data transmitted and received in the present invention. [Figure 4] FIG. 13 is a diagram showing a communication waveform in broadcast communication. [Diagram 5] FIG. 2 is a diagram showing a communication waveform in PSP communication. [Figure 6] FIG. 11 is a diagram showing communication waveforms when the communication method is switched. [Figure 7] 11 is a flowchart illustrating a communication flow in broadcast communication by a communication master. [Figure 8] 11 is a flowchart illustrating a communication flow in broadcast communication by a communication slave. [Figure 9] 11 is a flowchart illustrating a communication flow in PSP communication by a communication master. [Figure 10] 11 is a flowchart illustrating a communication flow in PSP communication by a communication slave. [Figure 11] FIG. 13 is a diagram showing a communication waveform of a P2P burst communication transmitted by a slave. [Figure 12] 11 is a flowchart illustrating a communication flow in P2P burst communication in which a communication master transmits to a slave. [Figure 13] 11 is a flowchart illustrating a communication flow in P2P burst communication of slave transmission by a communication slave. [Figure 14] FIG. 13 is a diagram showing communication waveforms of P2P burst communication transmitted by the master. [Figure 15] 11 is a flowchart illustrating a communication flow in P2P burst communication in which a communication master transmits a burst signal; [Figure 16] 11 is a flowchart illustrating a communication flow in P2P burst communication in which a communication slave transmits a master signal. [Figure 17] FIG. 13 is a diagram showing a communication waveform in broadcast communication. [Figure 18] FIG. 13 is a diagram showing a communication waveform of a P2P burst communication transmitted by a slave. [Figure 19] 11 is a flowchart illustrating a communication flow in P2P burst communication in which a communication master transmits to a slave. [Figure 20]11 is a flowchart illustrating a communication flow in P2P burst communication of slave transmission by a communication slave. [Figure 21] FIG. 13 is a diagram showing communication waveforms of a communication method using a notification channel and a data communication channel. [Figure 22] FIG. 13 is a diagram showing communication waveforms of a communication method using a notification and data channel. [Figure 23] FIG. 11 is a diagram showing a concept of a second communication and a communication waveform. [Figure 24] 11 is a flowchart showing a flow from an initial communication process with an accessory device to receiving data from the accessory device through P2P burst communication. [Diagram 25] 10 is a flowchart showing the flow of initial communication processing in a second communication between the camera and the interchangeable lens. [Figure 26] 10 is a flowchart showing a flow of an initial communication process by a first communication between the camera and the accessory device. [Figure 27] 11 is a flowchart showing a process for acquiring support information for P2P burst communication and setting up P2P burst communication. [Figure 28] 10 is a flowchart showing a detailed flow of setting up P2P burst communication. [Figure 29] 10 is a flowchart showing a flow of acquiring firmware update file correspondence information. [Diagram 30] FIG. 13 is a diagram showing a menu screen for selecting a firmware update file. [Diagram 31] 11 is a flowchart showing a flow of updating firmware of an accessory through first communication. [Diagram 32] 13 is a flowchart showing the flow of camera status notification using P2P burst communication. [Diagram 33] FIG. 11 is a diagram for explaining a case where the second communication is executed as asynchronous communication. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] Example 1 A first embodiment of the present invention will be described in detail below with reference to the drawings. In each drawing, the same components are given the same reference numbers, and duplicated descriptions are omitted as much as possible. In this embodiment, communication based on a plurality of communication methods is performed between the accessory device and the imaging device. Here, the "communication method" refers to the broadcast communication method (first communication method), the P2P communication method (second communication method), and the P2P burst communication method (third communication method).
[0012] <Camera system configuration> 1 is a block diagram showing the configuration of a camera system including an imaging device (hereinafter referred to as camera body) 200 of the present invention, an intermediate adapter 300 as an accessory device that can be attached to the camera body 200, and an interchangeable lens 100. The camera body 200, the interchangeable lens 100, and the intermediate adapter 300 transmit control commands and internal information between the devices using their respective communication means. Each communication means supports multiple communication methods, and by switching to the same communication method in synchronization with each other depending on the type of data to be communicated and the purpose of communication, it is possible to select the optimal communication format for various situations.
[0013] 1 shows an example of a configuration in which the intermediate adapter 300 is attached to the camera body 200, but the present invention is not limited to this. The interchangeable lens 100 may be directly attached to the camera body 200, or multiple intermediate adapters may be attached as long as they are physically attachable.
[0014] The interchangeable lens 100 and the intermediate adapter 300 are mechanically and electrically connected via a coupling mechanism consisting of a mount 400 of the interchangeable lens 100 and a mount 401 of the intermediate adapter 300. Similarly, the intermediate adapter 300 and the camera body 200 are mechanically and electrically connected via a coupling mechanism consisting of a mount 402 of the intermediate adapter and a mount 403 of the camera body 200.
[0015] The interchangeable lens 100 obtains power from the camera body 200 via a power terminal section (not shown) provided on the mount 400, and supplies the power necessary for the operation of various actuators and microcomputers of each device, which will be described later. Also, the intermediate adapter 300 obtains power from the camera body 200 via a power terminal section (not shown) provided on the mount 402, and supplies the power necessary for the operation of various actuators and microcomputers of each device, which will be described later.
[0016] Furthermore, the interchangeable lens 100, the camera body 200, and the intermediate adapter 300 communicate with each other via communication terminal sections (shown in FIG. 2) provided on the mounts 400, 401, 402, and 403.
[0017] The interchangeable lens 100 has an imaging optical system that includes, in order from the subject OBJ side, a field lens 101, a zoom lens (variable magnification lens) 102 that changes the magnification, an aperture unit 114 that adjusts the amount of light, an anti-vibration lens 103, and a focus lens 104 that adjusts the focus.
[0018] The zoom lens 102 and the focus lens 104 are held by lens holding frames 105 and 106, respectively. The lens holding frames 105 and 106 are guided by guide shafts (not shown) so as to be movable in the optical axis direction (indicated by dashed lines in the figure), and are driven in the optical axis direction by stepping motors 107 and 108. The stepping motors 107 and 108 move the zoom lens 102 and the focus lens 104, respectively, in synchronization with drive pulses.
[0019] The anti-vibration lens 103 reduces image blur caused by camera shake such as hand shake by shifting in a direction perpendicular to the optical axis of the imaging optical system.
[0020] The lens microcomputer (hereinafter referred to as lens microcomputer) 111 is a lens control means (accessory control unit) that controls the operation of each unit in the interchangeable lens 100. The lens microcomputer 111 receives control commands and transmission request commands transmitted from the camera microcomputer 205 via the lens first communication unit 112, which is a communication unit dedicated to the interchangeable lens, or the lens second communication unit 132, which is an accessory communication unit. The lens microcomputer 111 performs lens control corresponding to the control command, and transmits lens data corresponding to the transmission request command to the camera microcomputer 205 via the lens communication unit 112. The lens first communication unit 112 and the lens second communication unit 132 may use the second communication unit 132 for communication related to the operation of members specific to the interchangeable lens, such as a focus lens or an aperture unit. In this case, the first communication unit 112 may be used for communication related to control common to the intermediate adapter, such as obtaining the amount of operation of an operating member of the lens barrel.
[0021] Furthermore, in response to a command related to magnification change or focusing among the control commands, the lens microcomputer 111 outputs a drive signal to a zoom drive circuit 119 and a focus drive circuit 120 to drive the stepping motors 107 and 108. This performs a zoom process for controlling the magnification change operation by the zoom lens 102 and an AF (autofocus) process for controlling the focus adjustment operation by the focus lens 104.
[0022] The aperture unit 114 is configured to include aperture blades 114a and 114b. The states of the aperture blades 114a and 114b are detected by a Hall element 115 and input to the lens microcomputer 111 via an amplifier circuit 122 and an A / D conversion circuit 123. The lens microcomputer 111 outputs a drive signal to an aperture drive circuit 121 based on an input signal from the A / D conversion circuit 123 to drive the aperture actuator 113. This controls the light amount adjustment operation by the aperture unit 114.
[0023] Furthermore, the lens microcomputer 111 drives an anti-shake actuator (such as a voice coil motor) 126 via an anti-shake drive circuit 125 in response to camera shake detected by a shake sensor (not shown) such as a vibration gyro provided in the interchangeable lens 100. This performs anti-shake processing that controls the shift operation (anti-shake operation) of the anti-shake lens 103.
[0024] The interchangeable lens 100 also has an operation ring 130 and an operation ring detection means 131. The operation ring detection means 131 is, for example, two photointerrupters that output two-phase signals in response to the relative movement of the operation ring 130. The lens microcomputer 111 can detect the operation of the operation ring 130. The lens microcomputer 111 can also notify the camera microcomputer 205 of the amount of operation of the operation ring 130 via the lens communication unit 112.
[0025] The intermediate adapter 300 is, for example, an extender for changing the focal length, and has a variable power lens 301 and an adapter microcomputer (hereinafter referred to as adapter microcomputer) 302. The adapter microcomputer 302 is an intermediate adapter control means for controlling the operation of each unit in the intermediate adapter 300. The adapter microcomputer 302 receives control commands and transmission request commands transmitted from the camera microcomputer 205 via an adapter communication unit 303 serving as an accessory communication unit. The adapter microcomputer 302 performs intermediate adapter control corresponding to the control commands, and transmits intermediate adapter data corresponding to the transmission request commands to the camera microcomputer 205 via the adapter communication unit 303.
[0026] The camera body 200 has an imaging element 201 such as a CCD sensor or a CMOS sensor, an A / D conversion circuit 202, a signal processing circuit 203, a recording unit 204, a camera microcomputer (hereinafter referred to as camera microcomputer) 205, and a display unit 206.
[0027] The image sensor 201 photoelectrically converts the subject image formed by the imaging optical system in the interchangeable lens 100 and outputs an electrical signal (analog signal). The A / D conversion circuit 202 converts the analog signal from the image sensor 201 into a digital signal. The signal processing circuit 203 performs various image processes on the digital signal from the A / D conversion circuit 202 to generate a video signal. The signal processing circuit 203 also generates focus information indicating the contrast state of the subject image (focus state of the imaging optical system) and luminance information indicating the exposure state from the video signal. The signal processing circuit 203 outputs the video signal to a display unit 206, and the display unit 206 displays the video signal as a live view image used to check the composition, focus state, etc.
[0028] The camera microcomputer 205 as a camera control means controls the camera body 200 in response to inputs from camera operation members such as an image capture instruction switch and various setting switches (not shown). The camera microcomputer 205 also transmits a control command related to the magnification change operation of the zoom lens 102 to the lens microcomputer 111 via the first camera communication unit 208 or the second camera communication unit 209. For example, the control command is transmitted in response to the operation of a zoom switch (not shown). The camera microcomputer 205 also transmits a control command related to the light amount adjustment operation of the aperture unit 114 in response to the brightness information to the lens microcomputer 111 via the first camera communication unit 208 or the second camera communication unit 209. The camera microcomputer 205 also transmits a control command related to the focus adjustment operation of the focus lens 104 in response to the focus information to the lens microcomputer 111 via the first camera communication unit 208 or the second camera communication unit 209. In addition, the camera microcontroller 205 sends a transmission request command to the lens microcontroller 111 to obtain control information and status information of the interchangeable lens 100, and sends a transmission request command to the adapter microcontroller 302 to obtain control information and status information of the intermediate adapter 300.
[0029] <First Communication (Fig. 2)> 2, a communication circuit configured among a camera system including the first communication unit 208 of the camera body 200, the first communication unit 112 of the interchangeable lens 100, and the communication unit 303 of the intermediate adapter 300 will be described. Fig. 2 is a schematic diagram showing the communication circuit in the camera system of the present invention.
[0030] The camera microcomputer 205, the lens microcomputer 111, and the adapter microcomputer 302 communicate using signal lines connected via communication terminals provided on the mounts 400, 401, 402, and 403. The signal lines are composed of two lines: a signal line CS that transmits signals for controlling the flow of communication and is used to notify communication timing, and a signal line DATA that transmits data to be sent and received and is used for data communication. Communication using the signal line CS and the signal line DATA is referred to as first communication.
[0031] Communications using the signal line CS (second signal line) are performed via CS terminals 401a, 402a, 403a, and 404a, while communications using the signal line DATA are performed via DATA terminals 401b, 402b, 403b, and 404b.
[0032] The signal line CS is connected to the camera microcomputer 205, the lens microcomputer 111, and the adapter microcomputer 302, and each microcomputer can detect the signal level (voltage level) of the signal line.
[0033] Moreover, the signal line CS is connected to the power supply in the camera body 200 by pull-up, and is connected to GND via the ground switch 1121 of the interchangeable lens 100, the ground switch 2081 of the camera body 200, and the ground switch 3031 of the intermediate adapter 300. That is, the signal line CS is connected by open drain. With this configuration, the lens microcomputer 111, the camera microcomputer 205, and the adapter microcomputer 302 can set the signal level of the signal line CS to Low by turning on (connecting) each of the ground switches. On the other hand, the lens microcomputer 111, the camera microcomputer 205, and the adapter microcomputer 302 can all set the signal level of the signal line CS to Hi by turning off (disconnecting) each of the connection switches. The contents of the control signal propagated using the signal line CS during communication and the details of the operation procedure will be described later.
[0034] The CS switch 3033 is a switch for performing authentication communication, which will be described later, and is short-circuited in the normal state.
[0035] The signal line DATA (first signal line) is a single bidirectional data transmission line that can be used while switching the data propagation direction. The signal line DATA can be connected to the lens microcomputer 111 via the input / output changeover switch 1122 of the interchangeable lens 100. The signal line DATA can also be connected to the camera microcomputer 205 via the input / output changeover switch 2082 of the camera body 200. The signal line DATA can also be connected to the adapter microcomputer 302 via the input / output changeover switch 3032 of the intermediate adapter 300. Each microcomputer has a data output section (CMOS type) for transmitting data and a data input section (CMOS type) for receiving data. Each microcomputer can select whether to connect the signal line DATA to the data output section or the data input section by operating the input / output changeover switch. With this configuration, the lens microcomputer 111, the camera microcomputer 205, and the adapter microcomputer 302 can transmit data by operating the input / output changeover switch so that the signal line DATA is connected to the data output section. On the other hand, the lens microcomputer 111, the camera microcomputer 205, and the adapter microcomputer 302 can receive data by operating the input / output changeover switch so that the signal line DATA is connected to the data input section. The details of the input / output changeover procedure of the signal line DATA during communication will be described later.
[0036] 2 shows an example of a communication circuit according to the present invention, but the present invention is not limited to this. For example, the signal line CS may be pulled down to GND in the camera body 200 and connected to a power supply (not shown) via a ground switch 1121, a ground switch 2081, and a ground switch 3031. The signal line DATA may be always connected to the data input unit of each microcomputer, and the connection / disconnection between the signal line DATA and each data output unit may be controlled by a switch.
[0037] <Explanation of communication data format (broadcast communication / P2P communication)> The format of data exchanged between the camera microcomputer 205, the lens microcomputer 111, and the adapter microcomputer 302 will be described with reference to Fig. 3. Fig. 3 is a diagram showing the format of data exchanged using the signal line DATA in the present invention. This format is common to broadcast communication and P2P communication, which will be described later.
[0038] The communication data format is based on so-called asynchronous communication, in which the communication speed for mutual communication is specified in advance, and transmission and reception are performed at a communication bit rate according to this specification. In a non-transmission state in which data is not being transmitted, the signal level is maintained at Hi. In order to notify the data receiving side of the start of data transmission, the signal level is made Low for only one bit period (start bit ST). One byte of data is transmitted in the next 8-bit period from the second bit to the ninth bit. The data bit arrangement is in MSB-first format, starting with the most significant data D7, followed in order by data D6 and data D5, and ending with the least significant data D0. Finally, in order to indicate the end of the transmission data, the signal level is made Hi for only one bit period (stop bit SP), and the transmission period of one frame of data that started from the start bit ST is completed. Note that, although an example of the communication data format in the present invention is described in FIG. 3, the present invention is not limited to this. For example, the data bit arrangement may be LSB-first or 9-bit long, and parity PA information may be added between the least significant data D0 and the stop bit SP. Furthermore, the data format may be switched in broadcast communication and P2P communication, which will be described later.
[0039] <Broadcast communication (first communication method)> An example of broadcast communication (first communication method) performed among the camera microcomputer 205, the lens microcomputer 111, and the adapter microcomputer 302 will be described with reference to Fig. 4. Fig. 4 is a diagram showing communication waveforms in broadcast communication. Broadcast communication is a one-to-many simultaneous delivery mode in which data is simultaneously transmitted from one of the camera microcomputer 205, the lens microcomputer 111, and the adapter microcomputer 302 to the other microcomputers. Fig. 4 shows a case in which broadcast communication is performed from the adapter microcomputer 302 to the camera microcomputer 205 and the lens microcomputer 111 in response to broadcast communication from the camera microcomputer 205 to the lens microcomputer 111 and the adapter microcomputer 302.
[0040] First, the camera microcomputer 205, which is the communication master, starts a low output to the signal line CS to notify the lens microcomputer 111 and adapter microcomputer 302, which are communication slaves, that broadcast communication is to begin. Next, the camera microcomputer 205 outputs the data to be transmitted to the signal line DATA. Meanwhile, the lens microcomputer 111 and the adapter microcomputer 302 start a low output to the signal line CS at the timing when they detect the start bit ST input from the signal line DATA. At this point, the camera microcomputer 205 has already started a low output to the signal line CS, so the signal level of the signal line CS does not change.
[0041] After the camera microcomputer 205 has finished outputting the stop bit SP, it cancels the Low output to the signal line CS. Meanwhile, after the lens microcomputer 111 and the adapter microcomputer 302 have received the stop bit SP input from the signal line DATA, they analyze the received data and perform internal processing associated with the received data. After that, the lens microcomputer 111 and the adapter microcomputer 302 prepare to receive the next data and then cancel the Low output to the signal line CS. As described above, the signal level of the signal line CS becomes Hi when all of the camera microcomputer 205, the lens microcomputer 111, and the adapter microcomputer 302 cancel the Low output to the signal line CS. Therefore, by confirming that the signal level of the signal line CS becomes Hi, it can be determined that all the microcomputers have finished processing related to the current communication and are ready to perform the next communication.
[0042] After confirming that the signal level of signal line CS has returned to Hi, the adapter microcomputer 302 starts a Low output to signal line CS to notify the camera microcomputer 205 and lens microcomputer 111 of the start of broadcast communication. Next, the adapter microcomputer 302 outputs the data to be transmitted to the signal line DATA. Meanwhile, the camera microcomputer 205 and lens microcomputer 111 start a Low output to signal line CS when they detect a start bit ST input from the signal line DATA. At this point, the adapter microcomputer 302 has already started a Low output to signal line CS, so the signal level of signal line CS does not change.
[0043] After the adapter microcomputer 302 has finished outputting the stop bit SP, it releases the low output to the signal line CS. Meanwhile, after the camera microcomputer 205 and the lens microcomputer 111 receive data up to the stop bit SP input from the signal line DATA, they analyze the received data and perform internal processing associated with the received data. After that, the camera microcomputer 205 and the lens microcomputer 111 prepare to receive the next data, and then release the low output to the signal line CS.
[0044] As described above, the signal propagated using the signal line CS in broadcast communication acts as a control signal indicating that the broadcast communication has started and communication processing is in progress.
[0045] Note that in FIG. 4, an example of the communication waveform of broadcast communication is described, but the present invention is not limited thereto. For example, although the data transmitted in one broadcast communication is 1-byte data, it may be 2-byte or 3-byte data. Also, the broadcast communication may be one-way limited communication from the camera microcomputer 205, which is the communication master, to the lens microcomputer 111 and the adapter microcomputer 302, which are communication slaves.
[0046] <P2P Communication (Second Communication Method)> With reference to FIG. 5, an example of P2P communication (second communication method) performed among the camera microcomputer 205, the lens microcomputer 111, and the adapter microcomputer 302 will be described. FIG. 5 is a diagram showing the communication waveform in PSP communication. P2P communication is a one-to-one individual communication mode in which data is transmitted and received only between the camera microcomputer 205 and one microcomputer specified by the camera microcomputer 205 from among the lens microcomputer 111 and the adapter microcomputer 302. In FIG. 5, the lens microcomputer 111 is specified as the communication partner by the camera microcomputer 205, and a case is shown in which the lens microcomputer 111 transmits 2-byte data to the camera microcomputer 205 in response to the transmission of 1-byte data from the camera microcomputer 205. Note that procedures such as the method of specifying and switching the communication partner will be described later.
[0047] First, the camera microcomputer 205, which is the communication master, outputs the data to be transmitted to the signal line DATA. After the camera microcomputer 205 finishes outputting the stop bit SP, it starts outputting Low to the signal line CS. Thereafter, after the camera microcomputer 205 prepares for receiving the next data, it releases the Low output to the signal line CS.
[0048] After detecting a Low signal input from signal line CS, the lens microcomputer 111 analyzes the received data input from signal line DATA and performs internal processing linked to the received data. After confirming that the signal level of signal line CS has returned to Hi, the lens microcomputer 111 outputs two consecutive bytes of data to be transmitted to signal line DATA. After finishing outputting the stop bit SP of the second byte, the lens microcomputer 111 starts outputting a Low signal to signal line CS. After that, the lens microcomputer 111 prepares to receive the next data and then releases the Low signal to signal line CS.
[0049] Adapter microcomputers 302 that are not designated as communication partners in P2P communication do not participate in the operation of signal lines CS and DATA at all.
[0050] As described above, in P2P communication, the signal propagating through the signal line CS acts as a control signal indicating the end of transmission on the sending side and a wait request for the next data transmission.
[0051] 5 shows an example of a communication waveform of P2P communication, but the present invention is not limited to this. For example, data may be transmitted in units of one byte or in other numbers.
[0052] <Switching communication modes> With reference to FIG. 6, an example of switching between broadcast communication and P2P communication performed among the camera microcomputer 205, the lens microcomputer 111, and the adapter microcomputer 302, and a method of specifying a communication partner in P2P communication will be described. FIG. 6 is a diagram showing communication waveforms when switching communication methods. The specification of a communication partner in P2P communication ([1]) is performed by broadcast communication. In the following description, after the camera microcomputer 205 specifies the adapter microcomputer 302 as a communication partner in P2P communication by broadcast communication, P2P communication is performed for transmission from the camera microcomputer 205 ([2]). In addition, P2P communication is performed for a reply from the adapter microcomputer 302 to this transmission ([3]). Next, after the camera microcomputer 205 specifies the lens microcomputer 111 as a communication partner in P2P communication ([4]), P2P communication is performed for transmission from the camera microcomputer 205 ([5]) and a reply from the lens microcomputer 111 ([6]).
[0053] First, the camera microcomputer 205, which is the communication master, executes broadcast communication in the procedure described with reference to FIG. 4. This broadcast communication notifies slave designation data (communication partner designation data) that designates a partner with which the camera microcomputer 205 will communicate in the next P2P communication. The lens microcomputer 111 and the adapter microcomputer 302, which are communication slaves, each determine whether or not they have been designated as a communication partner in P2P communication based on the slave designation data received in the broadcast communication. This broadcast communication causes the camera microcomputer 205 and the designated communication slave to switch to P2P communication. Here, the adapter microcomputer 302 is designated as the communication partner, so in P2P communication, data is transmitted and received between the camera microcomputer 205 and the adapter microcomputer 302 in the procedure described with reference to FIG. 5. As described above, first, the camera microcomputer 205 transmits data to the adapter microcomputer 302, and then the adapter microcomputer 302 transmits data to the camera microcomputer 205.
[0054] When the P2P communication between the camera microcomputer 205 and the adapter microcomputer 302 ends, the camera microcomputer 205 designates the lens microcomputer 111 as the communication partner for P2P communication by broadcast communication. This broadcast communication causes the adapter microcomputer 302 to end P2P communication and the lens microcomputer 111 to switch to P2P communication. Note that if broadcast communication is not executed, the P2P communication between the camera microcomputer 205 and the adapter microcomputer 302 continues. In P2P communication, data is transmitted and received between the camera microcomputer 205 and the lens microcomputer 111 in the procedure described with reference to FIG. 5. As described above, the camera microcomputer 205 transmits data to the lens microcomputer 111, and then the lens microcomputer 111 transmits the data to the camera microcomputer 205.
[0055] <Flow control of broadcast communication> Regarding broadcast communication and P2P communication, a communication flow control, which is a procedure for communication performed among the camera microcomputer 205, the lens microcomputer 111, and the adapter microcomputer 302, will be described.
[0056] The communication flow in broadcast communication will be described with reference to Fig. 7 and Fig. 8. Fig. 7 is a flowchart explaining the communication flow in broadcast communication by the camera microcomputer 205, which is the communication master. Fig. 8 is a flowchart explaining the communication flow in broadcast communication by the lens microcomputer 111 and the adapter microcomputer 302, which are communication slaves.
[0057] First, the communication flow of the camera microcomputer 205 will be described.
[0058] In step S100, the camera microcomputer 205 determines whether or not an event for starting broadcast communication has occurred. If an event has occurred, the process proceeds to step S101, and if no event has occurred, the determination in step S100 is repeated.
[0059] In step S101, the camera microcomputer 205 turns on (connects) the ground switch 2081 to start a Low output to the signal line CS, thereby notifying the lens microcomputer 111 and the adapter microcomputer 302 of the start of broadcast communication.
[0060] In step S 102 , the camera microcomputer 205 operates the input / output changeover switch 2082 to connect the signal line DATA to the data output section of the camera microcomputer 205 .
[0061] In step S103, the camera microcomputer 205 starts data transmission.
[0062] In step S104, the camera microcomputer 205 determines whether or not a transmission request command is included in the data transmitted in step S103. The transmission request command is a command that requests the communication slave that received the data transmitted from the camera microcomputer 205 as the communication master to transmit data to the camera microcomputer 205. If the transmission request command is included, the process proceeds to step S106, and if the transmission request command is not included, the process proceeds to step S105.
[0063] In step S105, the camera microcomputer 205 turns off (disconnects) the ground switch 2081 to cancel the Low output to the signal line CS.
[0064] In step S 106 , the camera microcomputer 205 operates the input / output changeover switch 2082 to connect the signal line DATA to the data input section of the camera microcomputer 205 .
[0065] In step S107, the camera microcomputer 205 turns off (disconnects) the ground switch 2081 to cancel the Low output to the signal line CS.
[0066] In step S108, the camera microcomputer 205 determines whether or not the signal level of the signal line CS is Hi. If the signal level is Hi, the process proceeds to step S109, and if the signal level is not Hi, the determination of step S108 is repeated.
[0067] In step S109, the camera microcomputer 205 determines whether or not the signal level of the signal line CS is Low. If the signal level is Low, the process proceeds to step S110, and if the signal level is not Low, the determination of step S109 is repeated.
[0068] In step S110, the camera microcomputer 205 allows data reception from the signal line DATA.
[0069] In step S111, the camera microcomputer 205 judges whether or not a start bit has been received from the signal line DATA. If a start bit has been received, the process proceeds to step S112. If a start bit has not been received, the process repeats the judgment in step S111.
[0070] In step S112, the camera microcomputer 205 turns on (connects) the ground switch 2081 to start a Low output to the signal line CS.
[0071] In step S113, the camera microcomputer 205 determines whether or not all the data has been received. If all the data has been received, the process proceeds to step S114, and if all the data has not been received, the determination in step S113 is repeated.
[0072] In step S114, the camera microcomputer 205 prohibits the reception of data from the signal line DATA.
[0073] In step S115, the camera microcomputer 205 turns off (disconnects) the ground switch 2081 to cancel the Low output to the signal line CS.
[0074] In step S116, the camera microcomputer 205 determines whether or not the signal level of the signal line CS is Hi. If the signal level is Hi, the process proceeds to step S117, and if the signal level is not Hi, the determination of step S116 is repeated.
[0075] In step S117, the camera microcomputer 205 determines whether the data transmitted in step S103 was slave designation data that designates a communication partner. If it is slave designation data, the process proceeds to step S118, and if it is not slave designation data, the process ends.
[0076] In step S118, the camera microcomputer 205 transitions to the P2P communication mode.
[0077] Next, the communication flow of the adapter microcomputer 302 will be described with reference to Fig. 8. The communication flow of the lens microcomputer 111 is almost the same as the communication flow of the adapter microcomputer 302, and therefore a description thereof will be omitted in this embodiment.
[0078] In step S200, adapter microcomputer 302 determines whether or not the signal level of signal line CS is Low. If the signal level is Low, the process proceeds to step S201, and if the signal level is not Low, the determination of step S200 is repeated.
[0079] In step S201, the adapter microcomputer 302 permits data reception from the signal line DATA as broadcast communication.
[0080] In step S202, adapter microcomputer 302 determines whether or not a start bit has been received from signal line DATA. If a start bit has been received, the process proceeds to step S205. If a start bit has not been received, the process proceeds to step S203.
[0081] In step S203, adapter microcomputer 302 determines whether or not the signal level of signal line CS is Hi. If the signal level is Hi, the process proceeds to step S204, and if the signal level is not Hi, the process returns to step S202.
[0082] In step S204, the adapter microcomputer 302 prohibits data reception from the signal line DATA.
[0083] The processing in steps S203 and S204 is performed to cope with a situation in which P2P communication is performed between the camera microcomputer 205 and the lens microcomputer 111, and only the adapter microcomputer 302 performs broadcast communication. In this situation, the adapter microcomputer 302 does not receive data from the camera microcomputer 205.
[0084] In step S205, the adapter microcomputer 302 turns on (connects) the ground switch 3031 to start outputting a low level to the signal line CS.
[0085] In step S206, adapter microcomputer 302 determines whether or not all the data has been received. If all the data has been received, the process proceeds to step S207, and if all the data has not been received, the determination in step S206 is repeated.
[0086] In step S207, the adapter microcomputer 302 prohibits data reception from the signal line DATA.
[0087] In step S208, adapter microcomputer 302 turns off (disconnects) ground switch 3031 to cancel the Low output to signal line CS.
[0088] In step S209, the adapter microcomputer 302 determines whether or not a transmission request command is included in the data received in step S206. If a transmission request command is included, the adapter microcomputer 302 proceeds to step S210, and if a transmission request command is not included, the adapter microcomputer 302 proceeds to step S215.
[0089] In step S210, the adapter microcomputer 302 determines whether or not the signal level of the signal line CS is Hi. If the signal level is Hi, the process proceeds to step S211, and if the signal level is not Hi, the determination of step S210 is repeated.
[0090] In step S211, the adapter microcomputer 302 turns on (connects) the ground switch 3031 to start outputting a low level to the signal line CS.
[0091] In step S 212 , adapter microcomputer 302 operates input / output switch 3032 to connect signal line DATA to the data output section of adapter microcomputer 302 .
[0092] In step S213, the adapter microcomputer 302 starts data transmission.
[0093] In step S214, adapter microcomputer 302 turns off (disconnects) ground switch 3031 to cancel the Low output to signal line CS.
[0094] In step S215, the adapter microcomputer 302 determines whether or not the signal level of the signal line CS is Hi. If the signal level is Hi, the process proceeds to step S216, and if the signal level is not Hi, the determination of step S215 is repeated.
[0095] In step S216, the adapter microcomputer 302 determines whether the data received in step S206 is slave-designated data and has been designated as a communication partner in P2P communication with the camera microcomputer 205. If the data is slave-designated data and has been designated as a communication partner, the process proceeds to step S217, and if the data is slave-designated data or has not been designated as a communication partner, the process ends this flow.
[0096] In step S217, the adapter microcomputer 302 transitions to the P2P communication mode.
[0097] <P2P Communication Flow Control> Referring to FIGS. 9 to 10, the communication flow in P2P communication will be described. FIG. 9 is a flowchart for explaining the communication flow in P2P communication by the camera microcomputer 205 which is a communication master.
[0098] In step S300, the camera microcomputer 205 determines whether an event for starting P2P communication has occurred. If an event has occurred, it proceeds to step S301; if no event has occurred, the determination in step S300 is repeated.
[0099] In step S301, the camera microcomputer 205 operates the input / output switching switch 2082 to connect the signal line DATA to the data output section of the camera microcomputer 205.
[0100] In step S302, the camera microcomputer 205 determines whether to perform the transmission of master-transmitted P2P burst communication. If it is to perform the transmission of master-transmitted P2P burst communication, it proceeds to step S303; if not, it proceeds to step S304.
[0101] In step S303, the camera microcomputer 205 performs the transmission of master-transmitted P2P burst communication and proceeds to S305. Details of the transmission process of master-transmitted P2P burst communication will be described later.
[0102] In step S304, the camera microcomputer 205 starts data transmission.
[0103] In step S305, the camera microcomputer 205 turns on (connects) the ground switch 2081 to start the Low output to the signal line CS.
[0104] In step S306, the camera microcomputer 205 determines whether the data transmitted in step S304 contains a transmission request command. If a transmission request command is included, it proceeds to step S309; if not, it proceeds to step S307.
[0105] In step S307, the camera microcomputer 205 turns off (disconnects) the ground switch 2081 to cancel the Low output to the signal line CS.
[0106] In step S308, the camera microcomputer 205 determines whether or not the signal level of the signal line CS is Low. If the signal level is Low, the process proceeds to step S316, and if the signal level is not Low, the determination of step S308 is repeated.
[0107] In step S309, the camera microcomputer 205 operates the input / output changeover switch 2082 to connect the signal line DATA to the data input unit of the camera microcomputer 205.
[0108] In step S311, the camera microcomputer 205 turns off (disconnects) the ground switch 2081 to cancel the Low output to the signal line CS.
[0109] In step S312, the camera microcomputer 205 determines whether or not to receive P2P burst communication transmitted by a slave. If the P2P burst communication transmitted by a slave is to be received, the process proceeds to step S313, and if not, the process proceeds to step S314.
[0110] In step S313, the camera microcomputer 205 receives the P2P burst communication transmitted by the slave, and proceeds to step S315. Details of the P2P burst communication reception process transmitted by the slave will be described later.
[0111] In step S314, the camera microcomputer 205 determines whether or not the signal level of the signal line CS is Low. If the signal level is Low, the process proceeds to step S315, and if the signal level is not Low, the determination of step S314 is repeated.
[0112] In step S315, the camera microcomputer 205 analyzes the data received from the signal line DATA.
[0113] In step S316, the camera microcomputer 205 determines whether or not the signal level of the signal line CS is Hi. If the signal level is Hi, the process proceeds to step S317, and if the signal level is not Hi, the determination of step S316 is repeated.
[0114] In step S317, the camera microcomputer 205 determines whether or not a transition event to broadcast communication has occurred. If an event has occurred, the process proceeds to step S318, and if no event has occurred, the process ends.
[0115] In step S318, the camera microcomputer 205 transitions to the broadcast communication mode.
[0116] 10 is a flowchart illustrating a communication flow in P2P communication by the communication slave adapter microcomputer 302. The communication flow of the lens microcomputer 111 is almost the same as the communication flow of the adapter microcomputer 302, and therefore a description thereof will be omitted in this embodiment.
[0117] In step S400, the adapter microcomputer 302 permits data reception from the signal line DATA as P2P communication.
[0118] In step S401, the adapter microcomputer 302 determines whether or not to receive a P2P burst communication transmitted by the master. If the adapter microcomputer 302 determines to receive a P2P burst communication transmitted by the master, the process proceeds to step S402. If not, the process proceeds to step S403.
[0119] In step S402, the adapter microcomputer 302 receives the P2P burst communication transmitted by the master, and the process proceeds to step S404. Details of the P2P burst communication reception process transmitted by the master will be described later.
[0120] In step S403, the adapter microcomputer 302 determines whether or not the signal level of the signal line CS is Low. If the signal level is Low, the adapter microcomputer 302 proceeds to step S404, and if the signal level is not Low, the adapter microcomputer 302 repeats the determination of step S403.
[0121] In step S404, the adapter microcomputer 302 permits data reception from the signal line DATA as broadcast communication.
[0122] In step S405, the adapter microcomputer 302 analyzes the data received from the signal line DATA.
[0123] In step S406, the adapter microcomputer 302 determines whether or not the signal level of the signal line CS is Hi. If the signal level is Hi, the process proceeds to step S408, and if the signal level is not Hi, the process proceeds to step S407.
[0124] In step S407, adapter microcomputer 302 determines whether or not a start bit has been received from signal line DATA. If a start bit has been received, the process proceeds to step S420. If a start bit has not been received, the process proceeds to step S406.
[0125] In step S408, the adapter microcomputer 302 determines whether or not a transmission request command is included in the data received in step S405. If a transmission request command is included, the adapter microcomputer 302 proceeds to step S409, and if a transmission request command is not included, the adapter microcomputer 302 proceeds to step S414.
[0126] In step S 409 , adapter microcomputer 302 operates input / output switch 3032 to connect signal line DATA to the data output section of adapter microcomputer 302 .
[0127] In step S410, the adapter microcomputer 302 determines whether or not to transmit a P2P burst communication of slave transmission. If a P2P burst communication of slave transmission is to be transmitted, the process proceeds to step S411, and if not, the process proceeds to step S412.
[0128] In step S411, the adapter microcomputer 302 transmits a P2P burst communication of slave transmission, and the process proceeds to step S413. Details of the P2P burst communication transmission process of slave transmission will be described later.
[0129] In step S412, the adapter microcomputer 302 starts data transmission.
[0130] In step S 413 , adapter microcomputer 302 operates input / output switch 3032 to connect signal line DATA to the data input section of adapter microcomputer 302 .
[0131] In step S414, the adapter microcomputer 302 turns on (connects) the ground switch 3031 to start outputting a low level to the signal line CS.
[0132] In step S415, the adapter microcomputer 302 permits data reception from the signal line DATA as broadcast communication.
[0133] In step S416, the adapter microcomputer 302 turns off (disconnects) the ground switch 3031 to cancel the Low output to the signal line CS.
[0134] In step S417, the adapter microcomputer 302 determines whether or not the signal level of the signal line CS is Hi. If the signal level is Hi, the process proceeds to step S419, and if the signal level is not Hi, the process proceeds to step S418.
[0135] In step S418, adapter microcomputer 302 determines whether or not a start bit has been received from signal line DATA. If a start bit has been received, the process proceeds to step S420. If a start bit has not been received, the process proceeds to step S417.
[0136] In step S419, the adapter microcomputer 302 executes processing based on the data received in step S405. After executing the processing in step S419, the P2P communication can be continued by restarting this flow.
[0137] In step S420, the adapter microcomputer 302 suspends the P2P communication process, and then proceeds to step S205 in Fig. 8 to perform broadcast communication.
[0138] As described above, it is possible to specify the communication partner for P2P communication by broadcast communication, and at the same time, it is possible to switch between broadcast communication and P2P communication.
[0139] However, the amount of data that can be sent in one P2P communication is limited by the size of the receiving buffer on the receiving side, making it difficult to send huge amounts of data in one P2P communication. Also, while it is possible to transfer huge amounts of data by repeating P2P communication many times, in P2P communication the communication master and communication slave alternate between sending data and sending notifications over the signal line CS, which increases the transfer time. To solve this problem, huge amounts of data are transferred using the P2P burst communication described below.
[0140] <Explanation of switching to P2P burst communication mode in slave transmission> 11 to 13, a description will be given of switching of P2P burst communication performed between camera microcomputer 205 and adapter microcomputer 302, and an example of P2P burst communication.
[0141] FIG. 11 is a diagram showing a communication waveform of P2P burst communication of slave transmission, in which data is transferred from the adapter microcomputer 302 to the camera microcomputer 205. In the following description, the adapter microcomputer 302 is designated ([1]) as a communication partner of P2P communication by broadcast communication by the camera microcomputer 205. Next, P2P communication is executed, which is a transmission ([2]) from the camera microcomputer 205 and a reply ([3]) from the adapter microcomputer 302. Here, burst communication information in the P2P burst communication is transmitted by the transmission ([2]) from the camera microcomputer 205 (corresponding to S2802 in FIG. 28). The burst communication information is setting information for the P2P burst communication of slave transmission that is performed later. When the adapter microcomputer receives the burst communication information, it transmits a reply ([3]) as a response (corresponding to S2805 in FIG. 28). The information transmitted in the reply ([3]) is, for example, information indicating that the burst communication information has been received. Thereafter, the camera microcomputer 205 transmits a command to transition to P2P burst communication of slave transmission ([4]), and P2P burst communication of slave transmission ([5]) is performed from the adapter microcomputer 302 to the camera microcomputer 205.
[0142] Incidentally, the burst communication information of the intermediate adapter 300 may be transmitted from the adapter microcomputer 302 to the camera microcomputer 205. In this case, for example, after a reply ([3]) from the adapter microcomputer 302, the camera microcomputer 205 transmits a command requesting burst communication information (corresponding to S2807 in FIG. 28). Then, upon receiving this command, the adapter microcomputer 302 transmits burst communication information as a response (corresponding to S2809 in FIG. 28). With this configuration, even if there is a difference in burst communication information between the camera body 200 and the intermediate adapter 300, it is possible to execute P2P burst communication with settings that are executable by both.
[0143] The process of specifying the communication partner for P2P communication and the P2P communication have been explained in FIG. 6, so the explanation will be omitted.
[0144] The burst communication information in P2P burst communication in slave transmission in this embodiment includes the block size, the wait time between blocks, the number of blocks until flow control, and the total size.
[0145] A block is a group of data for continuous communication in P2P burst communication transmitted by a slave. The block size is the number of bytes of data contained in one block. The block size in this embodiment is, for example, the size that can be continuously received by the camera microcomputer 205, which is the receiving side of the P2P burst communication transmitted by a slave. In this embodiment, it is 16 bytes. In this case, one block has 16 consecutive frames of data. As described above, one frame of data is composed of a low-level start bit ST, 8 bits (1 byte) of data, and a high-level stop bit SP. When the block size is 16 bytes, one block has a total of 16 start bits ST and 16 stop bits SP in addition to the 16 bytes of data.
[0146] The inter-block wait time is the time that adapter microcomputer 302, which is the transmitting side of P2P burst communication of slave transmission, waits after completing transmission of one block until it starts transmitting the next block. In this embodiment, the inter-block wait time is the time that camera microcomputer 205, which is the receiving side of P2P burst communication of slave transmission, waits after completing reception of one block until it is able to receive the next block, and is set to 100 μs.
[0147] In this embodiment, flow control is realized by the camera microcomputer 205, which is the receiver of the P2P burst communication transmitted by the slave, notifying the communication timing using the signal line CS. For example, when it is necessary to secure time to be allocated to a process other than the P2P burst communication transmitted by the slave, the time for the process other than the communication can be secured by notifying the communication timing after completing the process other than the communication.
[0148] The number of blocks until flow control is the number of blocks that are accepted after flow control until the next flow control. In this embodiment, the number of blocks until flow control is an interval for ensuring that the camera microcomputer 205, which is the receiving side of the P2P burst communication of slave transmission, has time to allocate to processes other than the P2P burst communication of slave transmission, and is set to 4 blocks. The number of blocks until flow control is also referred to as the predetermined number of blocks.
[0149] The total size is the size of data that adapter microcomputer 302, which is the transmitting side of slave transmission P2P burst communication, wants to transfer in slave transmission P2P burst communication. For example, if the total size is 128 bytes and the block size is 16 bytes, a total of 8 blocks will be transmitted.
[0150] Next, a command to transition to slave transmission P2P burst communication is transmitted from camera microcomputer 205, and slave transmission P2P burst communication is performed from adapter microcomputer 302 to camera microcomputer 205 in accordance with the burst communication information described above.
[0151] Specifically, the camera microcomputer 205 transmits a command to the adapter microcomputer 302 to transition to slave transmission P2P burst communication, and notifies the adapter microcomputer 302 of the end of transmission and a request to wait for the next data transmission via the signal line CS. Upon receiving the command to transition to slave transmission P2P burst communication, the adapter microcomputer 302 generates data to be transmitted in the slave transmission P2P burst communication.
[0152] When the camera microcomputer 205 completes preparations for receiving the P2P burst communication transmitted by the slave, it releases the wait request for data transmission via the signal line CS.
[0153] When adapter microcomputer 302 completes generation of data to be transmitted and the standby request from camera microcomputer 205 is released, adapter microcomputer 302 transmits one block of data, which has a block size of 16 bytes. Then, communication is suspended for 100 μs or more, which is the wait time between blocks. When camera microcomputer 205 receives one block of data, it performs processing to receive the next block within 100 μs, which is the wait time between blocks.
[0154] The camera microcomputer 205 and the adapter microcomputer 302 repeat the above process of transferring one block until they transfer four blocks, which is the number of blocks required for flow control.
[0155] When adapter microcomputer 302 completes transmission of the number of blocks required for flow control, it waits for flow control from camera microcomputer 205 .
[0156] When the camera microcomputer 205 completes reception of the number of blocks required for flow control, it notifies the interruption of reception and a request to wait for the next data transmission via the signal line CS. Then, when preparations for receiving P2P burst communication transmitted by the slave are complete, it releases the request to wait for data transmission, indicating release of flow control, via the signal line CS.
[0157] The camera microcomputer 205 and the adapter microcomputer 302 perform the above flow control processing until the transfer of the total size is completed.
[0158] When the camera microcomputer 205 has completed receiving the total size of data, it waits for a request from the adapter microcomputer 302 via the signal line CS to end transmission and to wait for the next data transmission.
[0159] When the adapter microcontroller 302 has completed the transfer of the total size, it notifies the end of transmission and a request to wait for the next data transmission via signal line CS, and then cancels the request to wait for the next data transmission, thereby ending the slave transmission P2P burst communication.
[0160] If the adapter does not transfer the total size, the camera microcomputer 205 determines that a communication error has occurred due to a receive timeout, and either sends a command to transition to P2P burst communication by slave transmission ([4]), or starts over from specifying the communication partner of P2P communication by broadcast communication ([1]).
[0161] Furthermore, if data exceeding the total size previously exchanged is sent from the adapter, the camera cannot receive the data. Furthermore, if the camera microcomputer 205 is waiting for a transmission end notification from the adapter microcomputer 302 using the signal line CS, the camera microcomputer 205 will determine that a communication error has occurred when the waiting time has elapsed. Alternatively, if the adapter microcomputer 302 is waiting for a communication timing notification from the camera microcomputer 205 using the signal line CS, the adapter microcomputer 302 will determine that a communication error has occurred when the waiting time has elapsed. To recover from an error related to the signal line CS, it is necessary to specify the communication partner of the P2P communication by broadcast communication ([1]) or to start over by resetting the power supply.
[0162] <Explanation of P2P burst communication flow for slave transmission> A communication flow in P2P burst communication of slave transmission will be described with reference to Fig. 12 and Fig. 13. Fig. 12 is a flowchart illustrating a communication flow in P2P burst communication of slave transmission by camera microcomputer 205 which is the communication master.
[0163] In step S500, the camera microcomputer 205 performs data reception processing, and the process proceeds to S501.
[0164] In step S501, the camera microcomputer 205 determines whether or not reception of the total size has been completed. If reception has been completed, the process proceeds to step S511, and if reception has not been completed, the process proceeds to step S502.
[0165] In step S502, the camera microcomputer 205 determines whether or not the signal level of the signal line CS is Low. If the signal level is Low, the process ends, and if the signal level is not Low, the process proceeds to step S503.
[0166] In step S503, the camera microcomputer 205 determines whether or not reception of the block size has been completed. If reception has been completed, the process proceeds to step S504, and if reception has not been completed, the process proceeds to step S500.
[0167] In step S504, the camera microcomputer 205 determines whether or not reception of the number of blocks up to flow control has been completed. If reception has been completed, the process proceeds to step S507, and if reception has not been completed, the process proceeds to step S505.
[0168] In step S505, the camera microcontroller 205 determines whether or not it is necessary to perform processing other than communication, and if it is necessary to perform processing other than communication, it proceeds to step S507, and if it is not necessary to perform processing other than communication, it proceeds to step S506.
[0169] In step S506, the received data processing of the burst communication is performed, and the process proceeds to step S500. The received data processing is a process for saving the received data and making it possible to receive the next block. This process must be completed within the aforementioned wait time between blocks.
[0170] In step S507, the camera microcomputer 205 turns on (connects) the ground switch 2081 to start a Low output to the signal line CS.
[0171] In step S508, the camera microcomputer 205 performs the same received data processing as in step S506.
[0172] In step S509, the camera microcomputer 205 executes processing other than communication.
[0173] In step S510, the camera microcomputer 205 turns off (disconnects) the ground switch 2081 to cancel the Low output to the signal line CS.
[0174] In step S511, the camera microcomputer 205 determines whether or not the signal level of the signal line CS is Low. If the signal level is Low, the process ends, and if the signal level is not Low, the determination of step S511 is repeated.
[0175] 13 is a flowchart illustrating a communication flow in P2P burst communication of slave transmission by the adapter microcomputer 302, which is a communication slave. The communication flow of the lens microcomputer 111 is almost the same as the communication flow of the adapter microcomputer 302, and therefore will not be described in this embodiment.
[0176] In step S600, adapter microcomputer 302 starts data transmission.
[0177] In step S601, the adapter microcomputer 302 determines whether or not transmission of the total size has been completed. If transmission has been completed, the process ends, and if transmission has not been completed, the process proceeds to step S602.
[0178] In step S602, the adapter microcomputer 302 determines whether or not transmission of the block size has been completed, and if so, proceeds to step S603, and if not, proceeds to step S600.
[0179] In step S603, the adapter microcomputer 302 determines whether or not transmission has been completed for the number of blocks up to flow control. If transmission has been completed, the process proceeds to step S607, and if transmission has not been completed, the process proceeds to step S604.
[0180] In step S604, the adapter microcomputer 302 determines whether or not the signal level of the signal line CS is Low. If the signal level is Low, the adapter microcomputer 302 proceeds to step S606, and if the signal level is not Low, the adapter microcomputer 302 proceeds to step S605.
[0181] In step S605, the adapter microcomputer 302 determines whether the inter-block wait time has elapsed, and if so, proceeds to step S600, and if not, proceeds to step S604.
[0182] In step S606, adapter microcomputer 302 operates input / output switch 3032 to connect signal line DATA to the data input section of adapter microcomputer 302, and the process proceeds to step S609.
[0183] In step S 607 , the adapter microcomputer 302 operates the input / output changeover switch 3032 to connect the signal line DATA to the data input section of the adapter microcomputer 302 .
[0184] In step S608, the adapter microcomputer 302 determines whether or not the signal level of the signal line CS is Low. If the signal level is Low, the process proceeds to step S609, and if the signal level is not Low, the determination of step S608 is repeated.
[0185] In step S609, the adapter microcomputer 302 permits data reception from the signal line DATA as broadcast communication.
[0186] In step S610, the adapter microcomputer 302 determines whether or not the signal level of the signal line CS is Hi. If the signal level is Hi, the process proceeds to step S612, and if the signal level is not Hi, the process proceeds to step S611.
[0187] In step S611, the adapter microcomputer 302 determines whether or not a start bit has been received from the signal line DATA. If a start bit has been received, the process proceeds to step S613. If a start bit has not been received, the process proceeds to step S610.
[0188] In step S 612 , adapter microcomputer 302 operates input / output switch 3032 to connect signal line DATA to the data output section of adapter microcomputer 302 .
[0189] In step S613, the adapter microcomputer 302 suspends the P2P communication process, and then proceeds to step S205 in Fig. 8 to perform broadcast communication.
[0190] Here, the operation of the lens microcomputer 111 while the camera microcomputer 205 and the adapter microcomputer 302 are performing P2P burst communication will be described with reference to FIG.
[0191] In communication in which the camera microcomputer 205 designates the adapter microcomputer 302 as the communication partner of P2P communication by broadcast communication, the lens microcomputer 111 determines in step S216 that it is not designated as a slave and does not transition to P2P reception mode.
[0192] In the next P2P communication or the subsequent P2P burst communication, the signal line DATA will not be other than Hi while the signal line CS is Low. Therefore, it is not determined that a start bit has been received in step S202, and the transitions of steps S200, S201, S202, S203, and S204 are repeated. That is, the camera microcomputer 205 and the adapter microcomputer 302 can perform P2P burst communication without any problem even if a communication slave that is not a partner of P2P burst communication, such as the lens microcomputer 111, is connected. Furthermore, the processing of the lens microcomputer 111 does not include a process for determining P2P burst communication. Therefore, even if a lens microcomputer 111 that is compatible only with conventional broadcast communication and P2P communication is connected, P2P burst communication can be performed between the camera microcomputer 205 and the adapter microcomputer 302.
[0193] As described above, in this embodiment, in a camera system that communicates via two lines, the signal line CS and the signal line DATA, the information propagated via the signal line CS is appropriately switched between the broadcast communication mode and the P2P communication mode. This makes it possible to realize communication between the camera microcomputer 205 and the lens microcomputer 111 and the adapter microcomputer 302 using fewer signal lines. In addition, P2P burst communication, which is a slave transmission that differs from P2P communication, can be realized using fewer signal lines.
[0194] <Explanation of switching to P2P burst communication mode in master transmission> 14 to 16, switching of P2P burst communication performed between camera microcomputer 205 and adapter microcomputer 302, and another example of P2P burst communication will be described.
[0195] Fig. 14 is a diagram showing a master-transmitted P2P burst communication waveform in which data is transferred from camera microcomputer 205 to adapter microcomputer 302, in the opposite direction to that shown in Fig. 11. In the following explanation, camera microcomputer 205 designates adapter microcomputer 302 as the communication partner of P2P communication by broadcast communication ([1]). Then, P2P communication is executed, which is a transmission from camera microcomputer 205 ([2]) and a reply from adapter microcomputer 302 ([3]). After that, data is transferred from camera microcomputer 205 by master-transmitted P2P burst communication ([4]), and the result is replied from adapter microcomputer 302 to camera microcomputer 205 ([5]).
[0196] The process of designating the communication partner of P2P communication and the P2P communication are as explained in Fig. 6, so the explanation will be omitted. In this P2P communication, burst communication information required for the P2P burst communication of master transmission that is performed later is shared. The burst communication information in the P2P burst communication of master transmission in this embodiment is the same as the burst communication information in the P2P burst communication of slave transmission, and includes the block size, the wait time between blocks, the number of blocks until flow control, and the total size.
[0197] The block size in this embodiment is, for example, the size that can be continuously received by adapter microcomputer 302, which is the receiving side of P2P burst communication transmitted by the master, and is 8 bytes in this embodiment.
[0198] The wait time between blocks in this embodiment is the time from when adapter microcomputer 302, which is the receiving side of P2P burst communication transmitted by the master, has completed receiving one block until it is able to receive the next block, and is set to 150 μs. However, in this embodiment, since flow control is always performed after transmitting one block, the wait time between blocks is not used.
[0199] In this embodiment, the number of blocks until flow control is an interval for ensuring that adapter microcomputer 302, which is the receiving side of the P2P burst communication transmitted by the master, has time to allocate to processes other than the P2P burst communication transmitted by the master, and is set to one block. In other words, this is communication in which flow control is always performed after one block is transmitted.
[0200] The total size is the size of data that the camera microcomputer 205, which is the transmitting side of the master-transmission P2P burst communication, wants to transfer in the master-transmission P2P burst communication.
[0201] Next, the camera microcomputer 205 transfers data by P2P burst communication transmitted from the master, and after completion, a reply is sent from the adapter microcomputer 302 .
[0202] Specifically, when the adapter microcontroller 302 replies to the P2P communication for sharing burst communication information, it prepares to receive the P2P burst communication sent by the master, and when the receiving preparation is complete, it releases the wait request for data transmission via the signal line CS.
[0203] When camera microcomputer 205 receives release of the standby request from adapter microcomputer 302, it starts master-transmitted P2P burst communication and first transmits one block of data with a block size of 8 bytes. Since the number of blocks until flow control is one block, it does not wait for the inter-block wait time after transmitting one block, but waits for flow control from adapter microcomputer 302.
[0204] When the adapter microcomputer 302 completes reception of one block, which is the number of blocks until flow control, it notifies the interruption of reception and a request to wait for the next data transmission via the signal line CS. Then, when preparations for receiving the P2P burst communication transmitted by the master are completed, the signal line CS cancels the request to wait for data transmission, indicating release of flow control.
[0205] The camera microcomputer 205 and the adapter microcomputer 302 perform the above flow control processing until the transfer of the total size is completed.
[0206] When the adapter microcomputer 302 has completed receiving the total size of data, it waits for a request from the camera microcomputer 205 via the signal line CS to end transmission and to wait for the next data transmission.
[0207] When the camera microcomputer 205 has completed the transfer of the total size, it notifies the end of transmission and a request to wait for the next data transmission via the signal line CS, and then cancels the request to wait for the next data transmission.
[0208] When the adapter microcomputer 302 receives the end of transmission and the cancellation of the standby request for the next data transmission via the signal line CS from the camera microcomputer 205, it transmits the reception result of the master-transmitted P2P burst communication. Then, after notifying the end of transmission and the standby request for the next data transmission via the signal line CS, it cancels the standby request for data transmission, thereby terminating the master-transmitted P2P burst communication.
[0209] <Explanation of the P2P burst communication flow by master transmission> A communication flow in master-transmitted P2P burst communication will be described with reference to Fig. 15 and Fig. 16. Fig. 15 is a flowchart illustrating a communication flow in master-transmitted P2P burst communication by camera microcomputer 205, which is the communication master.
[0210] In step S400, the camera microcomputer 205 starts data transmission.
[0211] In step S401, the camera microcomputer 205 determines whether or not transmission of the total size has been completed. If transmission has been completed, the process ends, and if transmission has not been completed, the process proceeds to step S402.
[0212] In step S402, the camera microcomputer 205 determines whether or not transmission of the block size has been completed. If transmission has been completed, the process proceeds to step S403, and if transmission has not been completed, the process proceeds to step S400.
[0213] In step S403, the camera microcomputer 205 determines whether or not transmission of the number of blocks up to flow control has been completed. If transmission has been completed, the process proceeds to step S406, and if transmission has not been completed, the process proceeds to step S404.
[0214] In step S404, the camera microcomputer 205 determines whether or not the signal level of the signal line CS is Low. If the signal level is Low, the process proceeds to step S407, and if the signal level is not Low, the process proceeds to step S405.
[0215] In step S405, the camera microcomputer 205 determines whether the inter-block wait time has elapsed, and if so, proceeds to step S400, and if not, proceeds to step S404.
[0216] In step S406, the camera microcomputer 205 determines whether or not the signal level of the signal line CS is Low. If the signal level is Low, the process proceeds to step S407, and if the signal level is not Low, the determination of step S406 is repeated.
[0217] In step S407, the camera microcomputer 205 determines whether or not the signal level of the signal line CS is Hi. If the signal level is Hi, the process proceeds to step S400, and if the signal level is not Hi, the determination of step S407 is repeated.
[0218] FIG. 16 is a flowchart illustrating a communication flow in P2P burst communication in which master transmission is performed by adapter microcomputer 302 which is a communication slave.
[0219] Next, details of the master-transmitted P2P burst communication reception process by the adapter microcomputer 302 will be described with reference to Fig. 16. The communication flow of the lens microcomputer 111 is almost the same as the communication flow of the adapter microcomputer 302, and therefore will not be described in this embodiment.
[0220] In step S800, adapter microcomputer 302 performs data reception processing.
[0221] In step S801, the adapter microcomputer 302 determines whether or not reception of the total size has been completed. If reception has been completed, the process proceeds to step S816, and if reception has not been completed, the process proceeds to step S802.
[0222] In step S802, the adapter microcomputer 302 determines whether or not the signal level of the signal line CS is Low. If the signal level is Low, the process ends, and if the signal level is not Low, the process proceeds to step S803.
[0223] In step S803, the adapter microcomputer 302 determines whether or not reception of the block size has been completed, and if reception has been completed, the process proceeds to step S804, and if reception has not been completed, the process proceeds to step S800.
[0224] In step S804, the adapter microcomputer 302 determines whether or not reception has been completed for the number of blocks up to flow control. If reception has been completed, the process proceeds to step S807, and if reception has not been completed, the process proceeds to step S805.
[0225] In step S805, the adapter microcontroller 302 determines whether or not it is necessary to perform processing other than communication, and if it is necessary to perform processing other than communication, it proceeds to step S807, and if it is not necessary to perform processing other than communication, it proceeds to step S806.
[0226] In step S806, the received data processing of the burst communication is performed, and the process proceeds to step S800. The received data processing is a process for saving the received data and making it possible to receive the next block. This process must be completed within the aforementioned wait time between blocks.
[0227] In step S807, the adapter microcomputer 302 turns on (connects) the ground switch 2081 to start outputting a low level to the signal line CS.
[0228] In step S808, the adapter microcomputer 302 permits data reception from the signal line DATA as broadcast communication.
[0229] In step S809, the same received data processing as in step S806 is carried out.
[0230] In step S810, processing other than communication is executed.
[0231] In step S811, the adapter microcomputer 302 turns off (disconnects) the ground switch 2081 to cancel the Low output to the signal line CS.
[0232] In step S812, the adapter microcomputer 302 determines whether or not the signal level of the signal line CS is Hi. If the signal level is Hi, the process proceeds to step S814, and if the signal level is not Hi, the process proceeds to step S813.
[0233] In step S813, the adapter microcomputer 302 determines whether or not a start bit has been received from the signal line DATA. If a start bit has been received, the adapter microcomputer 302 proceeds to step S815. If a start bit has not been received, the adapter microcomputer 302 proceeds to step S812.
[0234] In step S814, the adapter microcomputer 302 permits data reception from the signal line DATA as P2P communication.
[0235] In step S815, the adapter microcomputer 302 suspends the P2P communication process, and then proceeds to step S205 in Fig. 8 to perform broadcast communication.
[0236] Note that the operation of the lens microcomputer 111 while the camera microcomputer 205 and the adapter microcomputer 302 are performing P2P burst communication of master transmission is similar to that of P2P burst communication of slave transmission, and therefore a description thereof will be omitted.
[0237] As described above, in this embodiment, in a camera system that performs communication via two lines, the signal line CS and the signal line DATA, master-transmitted P2P burst communication can also be achieved with fewer signal lines.
[0238] It is also possible to use only flow control by the signal line CS and only adopt processing that does not use wait times between blocks, as shown in Fig. 14. In that case, by specifying the number of blocks until flow control as 1 block, it is possible to ensure that flow control is performed after the receiving side has received the amount of data equal to the receiving buffer size. This makes it possible to perform P2P burst communication using flow control even if the processing time for the receiving side to save the received data varies for some reason, that is, even if the wait time between blocks cannot be specified.
[0239] Also, it may be possible to use only the control based on the wait time between blocks and to adopt communication without using flow control. For example, it is possible to indicate communication without using flow control by specifying the number of blocks until flow control as 0 blocks. In that case, it is only necessary to determine that communication is not completed for the number of blocks until flow control in the conditional branch of step S504 in Fig. 12, step S603 in Fig. 13, step S403 in Fig. 15, and step S804 in Fig. 16.
[0240] Furthermore, as shown in step S505 in Fig. 12 and step S805 in Fig. 16, if it becomes necessary to execute processing other than communication during the timing of processing due to the inter-block wait time, the signal line CS is set to Low. As shown in step S604 in Fig. 13 and step S404 in Fig. 15, when the transmitting side of the P2P burst communication detects that the signal line CS is in a Low state during processing of waiting for the inter-block wait time, the transmitting side proceeds to flow control processing by the signal line CS. As described above, if it becomes necessary to execute processing other than communication during the timing of processing due to the inter-block wait time, flow control is generated, and time for processing other than communication can be secured.
[0241] In this embodiment, the communication slave waits for broadcast communication while receiving a control signal indicating a standby request after data transmission in the P2P communication mode, that is, while the signal level of the signal line CS is at a low level. Specifically, as described in steps S404 and S415 of FIG. 10, step S609 of FIG. 13, and step S808 of FIG. 16, the communication slave permits data reception from the signal line DATA as broadcast communication. Then, as shown in steps S407 and S418 of FIG. 10, step S611 of FIG. 13, and step S813 of FIG. 16, it is determined whether or not to receive data while data reception is permitted. If data is received, the P2P communication can be interrupted and a transition to the broadcast communication mode can be made, as shown in step S420 of FIG. 10, step S613 of FIG. 13, and step S815 of FIG. 16.
[0242] For example, due to the influence of communication noise or the like, it may be possible for the camera microcomputer 205 to detect a discrepancy in recognition of communication timing between the adapter microcomputer 302 and the lens microcomputer 111. In this case, the above-described process makes it possible to restart communication using broadcast communication even during P2P burst communication.
[0243] Next, with reference to FIG. 17, a case where broadcast communication is started from the lens microcomputer 111 and the adapter microcomputer 302, which are communication slaves, will be described. FIG. 17 is a diagram showing signal waveforms in broadcast communication. Starting broadcast communication from the communication slave is called a communication request. The communication request is also called a communication request when the communication slave proactively resumes broadcast communication in a state where communication from the camera microcomputer 205 to the communication slave is temporarily suspended. A communication request to the camera microcomputer 205 is executed when the communication slave proactively resumes communication with the camera microcomputer 205 in a state where communication from the camera microcomputer 205 to the communication slave is temporarily suspended. Below, as an example, a case where the lens microcomputer 111 notifies the start of broadcast communication and the adapter microcomputer 302 performs broadcast communication in response to the broadcast communication from the camera microcomputer 205 will be described.
[0244] First, the lens microcomputer 111 starts a low output to the signal line CS to notify the camera microcomputer 205 and the adapter microcomputer 302 that broadcast communication is to begin. Next, when the camera microcomputer 205 detects that the signal level of the signal line CS has gone low, it starts a low output to the signal line CS. Note that at this point, the lens microcomputer 111 has already started a low output to the signal line CS, so the signal level of the signal line CS does not change.
[0245] Next, the camera microcomputer 205 outputs the data to be transmitted to the signal line DATA. Meanwhile, the adapter microcomputer 302 starts a Low output to the signal line CS at the timing when it detects the start bit ST input from the signal line DATA. Note that at this point, the camera microcomputer 205 has already started a Low output to the signal line CS, so the signal level of the signal line does not change.
[0246] After the camera microcomputer 205 has finished outputting the stop bit SP, it cancels the Low output to the signal line CS. Meanwhile, the lens microcomputer 111 and the adapter microcomputer 302 receive data up to the stop bit SP input from the signal line DATA, analyze the received data, and perform internal processing associated with the received data. After that, the lens microcomputer 111 and the adapter microcomputer 302 prepare to receive the next data, and then cancel the Low output to the signal line CS. As described above, the signal level of the signal line CS becomes Hi when all of the camera microcomputer 205, the lens microcomputer 111, and the adapter microcomputer 302 cancel the Low output to the signal line CS. Therefore, by confirming that the signal level of the signal line CS becomes Hi, it can be determined that all the microcomputers have finished processing related to the current communication and are ready to perform the next communication.
[0247] After confirming that the signal level of signal line CS has returned to Hi, the adapter microcomputer 302 starts a Low output to signal line CS to notify the camera microcomputer 205 and lens microcomputer 111 of the start of broadcast communication. Next, the adapter microcomputer 302 outputs the data to be transmitted to the signal line DATA. Meanwhile, the camera microcomputer 205 and lens microcomputer 111 start a Low output to signal line CS when they detect a start bit ST input from the signal line DATA. At this point, the adapter microcomputer 302 has already started a Low output to signal line CS, so the signal level of signal line CS does not change.
[0248] After the adapter microcomputer 302 has finished outputting the stop bit SP, it releases the low output to the signal line CS. Meanwhile, after the camera microcomputer 205 and the lens microcomputer 111 receive data up to the stop bit SP input from the signal line DATA, they analyze the received data and perform internal processing associated with the received data. After that, the camera microcomputer 205 and the lens microcomputer 111 prepare to receive the next data, and then release the low output to the signal line CS.
[0249] Note that broadcast communication is initiated from the lens microcomputer 111 and the adapter microcomputer 302, which are communication slaves, only when the camera microcomputer 205, the lens microcomputer 111, and the adapter microcomputer 302 are all in the broadcast communication mode.
[0250] Furthermore, when broadcast communication is started from the communication slave, the camera microcomputer 205, which is the communication master, cannot determine whether the lens microcomputer 111 or the adapter microcomputer 302 has set the signal line CS to low. Therefore, the camera microcomputer 205 needs to communicate with both the lens microcomputer 111 and the adapter microcomputer 302 to obtain information on whether broadcast communication has been started.
[0251] In addition, there may be cases where the timing at which the camera microcomputer 205 outputs a low level to the signal line CS to start broadcast communication coincides with the timing at which the communication slave lowers the signal line CS to low to start broadcast communication. In this case, since the camera microcomputer 205 cannot detect that the communication slave has output a low level to the signal line CS, the camera microcomputer 205 may send a permission notification that allows the communication slave to start broadcast communication.
[0252] As described above, in this embodiment, in a camera system that communicates via two lines, the signal line CS and the signal line DATA, the broadcast communication mode can be started from the communication slave. This eliminates the need for the camera microcomputer 205 to constantly communicate with the lens microcomputer 111 and the adapter microcomputer 302, making it possible to suppress unnecessary communication and reduce the amount of communication.
[0253] In the present embodiment, the burst communication information is the block size, the wait time between blocks, the number of blocks before flow control, and the total size, but is not limited to this.
[0254] If only flow control by signal line CS is used as a communication protocol and only processing that does not use wait time between blocks is adopted, there is no need to share the wait time between blocks or the number of blocks up to flow control.Similarly, if only control based on wait time between blocks is used and flow control is not used, there is no need to share the number of blocks up to flow control.
[0255] Furthermore, it is not necessary to share these values directly, as long as values equivalent to these parameters can be shared with each other. For example, if the number of bytes up to flow control is used instead of the number of blocks up to flow control, the number of blocks up to flow control can be calculated from the block size. Similarly, if the total number of blocks is used instead of the total size, the equivalent of the total size can be calculated from the block size. Also, sharing may be performed using an ID indicating the function, communication generation, etc.
[0256] Furthermore, other information may be added to the burst communication information. For example, communication settings such as the communication rate of P2P burst communication and the presence or absence of parity may be shared separately. Parameters for identifying data to be transmitted in P2P burst communication, such as values for identifying the type of interchangeable lens 100 or camera body 200, or commands linked to acquired data, may be added. Parameters for checking the reliability of communication of data to be transmitted in P2P burst communication, such as checksums, CRCs, and hash values, may be shared in advance.
[0257] In addition, in the present embodiment, the burst communication information is shared in P2P communication before P2P burst communication, but this is not limited to this. For example, the information may be determined in advance as a communication protocol, or the camera microcomputer 205 may notify the adapter microcomputer 302 using broadcast communication, or sharing may be performed using a separate communication line.
[0258] <Effects of Example 1> For example, when optical information is received between the camera body and the accessory device at the start of the camera system, processes other than the reception process are also performed in parallel at the start of the camera system. For example, communication with an interchangeable lens via a different communication path described below, initialization process of the actuator of the accessory device, start-up process of each component of the camera body, etc. In this way, the reception process and various other processes must be performed in parallel, and since the time required for these processes affects the start-up time, it is preferable to be able to obtain more data in a shorter time.
[0259] Here, when transferring a large amount of data at once, the receiving side needs to control the receiving buffer so that it does not overflow. For example, when the camera body tries to receive a large amount of data using the first or second communication method, it is possible to request data in chunks of a size that can be received in one reception process. In this case, it is necessary to repeat the data request and the reception process, which increases the transfer time.
[0260] In contrast, the third communication method of this embodiment is configured to receive data from the accessory device through one-way communication that combines wait between blocks and flow control, making it possible to obtain more data in a shorter time.
[0261] Example 2 A second embodiment of the present invention will be described in detail below with reference to the drawings. The difference from the first embodiment is that flow control is performed using a signal line DATA instead of a signal line CS. In each drawing, the same components are given the same reference numbers, and duplicated explanations will be omitted. Also, explanations of the same configuration as the first embodiment will be omitted.
[0262] Fig. 18 is a diagram showing communication waveforms of slave transmission P2P burst communication in which data is transferred from the adapter microcomputer 302 to the camera microcomputer 205. In Fig. 11 of the first embodiment, flow control is performed using the signal line CS, whereas in this embodiment, it is performed using the signal line DATA.
[0263] The value of the signal line DATA output from the camera microcomputer 205 for flow control is two bytes, with the first byte corresponding to the falling edge of the signal line CS in the first embodiment and the second byte corresponding to the rising edge of the signal line CS.
[0264] Next, details of the P2P burst communication reception process of the slave transmission by the camera microcomputer 205 will be described with reference to Fig. 19. Note that the same processes as those in Fig. 12 of the first embodiment are given the same reference numerals, and the description thereof will be omitted.
[0265] In step S 901 , the camera microcomputer 205 operates the input / output changeover switch 2082 to connect the signal line DATA to the data output unit of the camera microcomputer 205 .
[0266] In step S902, the camera microcomputer 205 outputs one byte of data.
[0267] In step S903, the camera microcomputer 205 performs the same received data processing as in step S506 in FIG.
[0268] In step S904, the camera microcomputer 205 executes processing other than communication similar to step S509 in FIG.
[0269] In step S905, the camera microcomputer 205 transmits one byte of data.
[0270] In step S 906 , the camera microcomputer 205 operates the input / output changeover switch 2082 to connect the signal line DATA to the data input unit of the camera microcomputer 205 .
[0271] Next, details of the P2P burst communication transmission process of slave transmission by the adapter microcomputer 302 will be described with reference to Fig. 20. Note that the same processes as those in Fig. 13 of the first embodiment are given the same reference numerals, and the description thereof will be omitted.
[0272] In step S 1001 , adapter microcomputer 302 operates input / output switch 3032 to connect signal line DATA to the data input section of adapter microcomputer 302 .
[0273] In step S1002, the adapter microcomputer 302 permits data reception from the signal line DATA as P2P communication.
[0274] In step S1003, the adapter microcomputer 302 determines whether transmission of the number of blocks up to flow control has been completed, and if transmission has been completed, the process proceeds to step S1006, and if transmission has not been completed, the process proceeds to step S1004.
[0275] In step S1004, the adapter microcomputer 302 determines whether the first byte of data has been received, and if so, proceeds to step S1007, and if not, proceeds to step S1005.
[0276] In step S1005, the adapter microcomputer 302 determines whether the inter-block wait time has elapsed, and if so, proceeds to step S600, and if not, proceeds to step S1004.
[0277] In step S1006, similarly to step S1004, the adapter microcomputer 302 determines whether the first byte of data has been received, and if so, proceeds to step S1007, and if not, repeats the determination of step S1006.
[0278] In step S1007, the adapter microcomputer 302 determines whether the second byte of data has been received, and if so, proceeds to step S1008, and if not, repeats the determination of step S1007.
[0279] In step S 1008 , adapter microcomputer 302 operates input / output switch 3032 to connect signal line DATA to the data output section of adapter microcomputer 302 .
[0280] As described above, in this embodiment, in P2P burst communication with slave transmission, flow control can be performed using the signal line DATA.
[0281] As described in the first embodiment, the notification via the signal line CS is also sent to communication slaves that are not the other party in the P2P burst communication, such as the lens microcomputer 111, and therefore affects their operation. On the other hand, in this embodiment, P2P burst communication is performed without setting the signal line CS to Low, so communication can be performed without affecting at all communication slaves that are not the other party in the P2P burst communication, such as the lens microcomputer 111.
[0282] However, since the output of the signal line DATA is switched between the camera microcomputer 205 and the adapter microcomputer 302 without notification via the signal line CS, it is necessary to prevent the output of the signal line DATA from colliding. Specifically, before the camera microcomputer 205 connects the signal line DATA to the output in step S901 in Fig. 19, the adapter microcomputer 302 must connect the signal line DATA to the input in step S1001 in Fig. 20. Similarly, before the adapter microcomputer 302 connects the signal line DATA to the output in step 1008 in Fig. 20, the camera microcomputer 205 must connect the signal line DATA to the input in step S906 in Fig. 19. Therefore, in the process of connecting the signal line DATA to the output in step S901 in Fig. 19 or step 1008 in Fig. 20, it is preferable to wait a certain time before performing the process.
[0283] In this embodiment, the flow control is an example of transmitting 2 bytes of data on the signal line DATA, but this is not limited to this. It can also be achieved by setting the signal line DATA to Low and then to Hi, similar to the signal line CS in the first embodiment.
[0284] Furthermore, in the case where it is not necessary to consider the need to execute processing other than communication in the timing of processing based on the inter-block wait time, the flow control performed with two bytes of data can be omitted to one byte. In this case, that is, the determination of step S505 in Fig. 19 is not performed. Specifically, the adapter microcomputer 302, which is the transmitting side of P2P burst communication, does not need the conditional branch processing of step S1004 in Fig. 20, so that the processing of steps S1006 and S1007 can be made common and one byte of data can be handled. In that case, the camera microcomputer 205, which is the receiving side, can omit the determination of step S505 in Fig. 19 and also omit step S902.
[0285] Note that the flow control using the signal line DATA is similar to that in P2P burst communication transmitted by the master, so a description thereof will be omitted.
[0286] Example 3 In the third embodiment, a flow of receiving data from an accessory using P2P burst communication (third communication method) will be described. Communication via the signal line CS and the signal line DATA is referred to as a first communication. This embodiment further includes a second communication configuration.
[0287] <Second communication (Fig. 23)> The second communication will be described with reference to Fig. 23. The second communication is a communication channel mainly for communication between the camera body 200 and the interchangeable lens 100.
[0288] FIG. 23(a) shows a configuration for performing second communication. In this embodiment, the second communication is exemplified as a case where clock synchronous communication is performed, but start-stop synchronous communication may be performed. The mounts 401, 402, 403, and 404 each include an LCLK terminal 401c, 402c, 403c, and 404c, which is a terminal of a clock line LCLK output from the camera side second communication unit 207. In this embodiment, the mounts 401, 402, 403, and 404 each include a DCL terminal 401d, 402d, 403d, and 404d, which is a terminal of a data line DCL output from the camera side second communication unit 207 in the clock synchronous communication. The mounts 401, 402e, 403e, and 404e each include a second communication DLC terminal 401e, 402e, 403e, and 404e, which is a terminal of a data line DLC output from the lens side second communication unit 114 in the clock synchronous communication.
[0289] 23(a), the clock line LCLK and the data line DCL are pulled up within the interchangeable lens 10. In addition, the clock line LCLK and the data line DLC are pulled up within the camera body 20.
[0290] The clock line LCLK, the data line DCL, and the data line DLC in the intermediate adapter 30 are short-circuited between the second communication contacts 303 and 305 .
[0291] FIG. 23(b) shows waveforms of the clock line LCLK, the data line DCL, and the data line DLC when the second communication is being performed. The camera side second communication unit 207 outputs a clock to the clock line LCLK, and outputs 8-bit data B7 to B0 to the data line DCL in synchronization with the rising signal of the clock line LCLK. Similarly, the lens side second communication unit 114 outputs 8-bit data B7 to B0 to the data line DLC in synchronization with the rising signal of the clock line LCLK. Furthermore, the camera side second communication unit 207 receives 8-bit data B7 to B0 of the data line DLC in synchronization with the rising signal of the clock line LCLK. Similarly, the lens side second communication unit 114 receives 8-bit data B7 to B0 of the data line DCL in synchronization with the rising signal of the clock line LCLK. In this way, the camera side second communication unit 207 and the lens side second communication unit 114 can exchange communication data with each other. When the lens side second communication unit 114 receives 8-bit data from B7 to B0 on the data line DCL, it outputs the clock line LCLK at LOW for the time Tbusy, and then cancels the LOW output. Here, the Tbusy time is the time during which the interchangeable lens 10 processes the received data, and the camera side second communication unit 207 is configured not to transmit data until the clock line LCLK changes from LOW to HIGH after transmitting the data. This signal control makes it possible to perform flow control of the second communication. By repeating the above processing, data can be transmitted between the camera side second communication unit 207 and the lens side second communication unit 114 by the second communication.
[0292] <Initial communication and data communication using the third communication method (Fig. 24)> Next, a flow in which the camera microcomputer 205 acquires identification information of the adapter microcomputer 302 and the interchangeable lens 100, and receives data from the accessory in the third communication method of the first communication will be described with reference to FIG. 24. In the initial communication, the camera microcomputer 205 acquires information used for later communication, such as authentication information described later, from the accessory attached to the camera body 200, such as the interchangeable lens 100 and the adapter microcomputer 302. In this embodiment, before communication in the third communication method of the first communication, information on whether the accessory supports the third communication method is acquired as authentication information, and the third communication method is set. Then, data is received from the accessory in the third communication method. This flow will be described with reference to FIG. 24. FIG. 24 is executed when power is supplied with the intermediate adapter and the interchangeable lens attached.
[0293] When the camera body 200 is started up in S2401, the process transitions to S2402.
[0294] When the process transitions to S2402, the camera body 200 supplies power to the interchangeable lens 100 and the intermediate adapter 300 via a power supply mount contact (not shown), and then transitions to S2403 and S2404.
[0295] When transitioning to S2403, the camera microcomputer 205 acquires authentication information from the lens microcomputer 111 by the second communication. The authentication information includes interchangeable lens identification information. The interchangeable lens identification information may be information such as a model number (ID) used to identify the type (model) of the interchangeable lens, or may be optical data identification information indicating optical data unique to the interchangeable lens. In addition, the information may include information such as information indicating the functions possessed by the interchangeable lens and a manufacturing number (serial number) capable of identifying an individual lens of the same model.
[0296] The flow of the sub-process S2403 for acquiring authentication information of the interchangeable lens 100 in the second communication will be described later with reference to Fig. 25. When the process proceeds to S2404, the camera microcomputer 205 performs initial communication with the accessory in the first communication to acquire authentication information of the accessory. The authentication information of the accessory includes identification information of the accessory.
[0297] For example, when the authentication information of an accessory is intermediate adapter authentication information, the intermediate adapter authentication information includes intermediate adapter identification information as identification information of the accessory. The intermediate adapter identification information may be information such as a model number (ID) used to identify the type (model) of the intermediate adapter, or may be optical data identification information indicating optical data unique to the intermediate adapter. It may also include information such as information indicating the functions possessed by the intermediate adapter or a manufacturing number (serial number) capable of identifying an individual adapter within the same model.
[0298] However, since the identification information of the interchangeable lens is obtained in the second communication, the identification information transmitted in the first communication may be a value that does not overlap with the identification information of the intermediate adapter (for example, a value indicating that it is an interchangeable lens). The reason for using a value that does not overlap with the identification information of the intermediate adapter is that the identification information is used to notify the communication target of the first communication.
[0299] The flow of the sub-process S2404 of acquiring intermediate adapter authentication information in the first communication will be described later with reference to Fig. 26. Since S2403 and S2404 use different communication paths, the processes may be performed in parallel or sequentially.
[0300] When the authentication information of the interchangeable lens and the authentication information of the attached accessory are acquired in S2403 and S2404, the process transitions to S2405.
[0301] When transitioning to S2405, the camera microcomputer 205 acquires third communication method compatibility information of the first communication from each accessory using the accessory identification information acquired in S2404. The third communication method compatibility information is information indicating whether or not the accessory supports the third communication method. If the third communication method compatibility information indicates that the accessory supports the third communication method, the third communication method is set. The flow of the sub-process S2405 for acquiring the third communication method compatibility information of each accessory in the first communication and setting the third communication method will be described later with reference to FIG. 27.
[0302] When the setting of the third communication method is completed, the process transitions to S2406. If there is an accessory compatible with the third communication method, the process transitions to S2407, and data is received from the intermediate adapter 300 by the third communication method. The third communication method may be P2P burst communication with slave transmission that performs flow control by the CS line described in FIG. 11, or P2P burst communication with slave transmission that performs flow control by the data line described in FIG. 18. When flow control is not required by using a microcomputer dedicated to the first communication or using DMA, it is sufficient to set only the block control time. When the receiving buffer of the first communication unit of the camera is sufficiently large, block control is not required.
[0303] If there is no accessory that supports the third communication method, the process transitions to S2408.
[0304] In S2407, data is received in the third communication method. At this time, data is received from the accessory in the third communication method according to the setting made in S2405. When data reception in the third communication method is completed in S2407, the process transitions to S2408, and data reception from the accessory device ends.
[0305] After data is acquired by the third communication method, the second communication is used for communication by the camera body 200 to control the interchangeable lens 100, and the first communication is mainly used for communication by the camera body 200 to constantly acquire operation information of the intermediate adapter 300. Either the first communication or the second communication may be used for communication to constantly acquire operation information of the operation member 130 of the interchangeable lens, taking into consideration the occupancy rate of each communication path and the immediacy required for communication and control.
[0306] <Acquisition of authentication information through the second communication between the camera and interchangeable lens (Figure 25)> 25 shows the flow of sub-process S2403, which is initial communication between the camera body 200 and the interchangeable lens 100, in the camera system of Example 3. In S2403, the camera microcomputer 205 acquires authentication information for the interchangeable lens 100 from the lens microcomputer 111.
[0307] When the sub-process is started in S2501, the process transitions to S2502.
[0308] When the process transitions to S2502, the camera second communication unit 209 transmits an interchangeable lens authentication information transmission request to the lens second communication unit 132 by second communication.
[0309] When the lens second communication unit 132 receives the interchangeable lens authentication information transmission request in S2503, the process transitions to S2504. Then, the lens second communication unit 132 transmits the interchangeable lens authentication information to the camera second communication unit 209 by first communication.
[0310] When the camera second communication unit 209 receives the interchangeable lens authentication information in S2505, the process transitions to S2506, and the received interchangeable lens authentication information is stored in the camera microcomputer 111.
[0311] With S2507, the sub-process S2403 ends.
[0312] <Acquisition of authentication information through the first communication between the camera and accessory (Figure 26)> 26 is a diagram illustrating the flow of sub-process S2404, which is the initial communication processing performed by the camera body 200 and the accessory in the camera system of Example 3. In S2404, the camera microcomputer 205 acquires authentication information of the accessory.
[0313] When the process transitions to S2602, the camera microcomputer 205 broadcasts an authentication communication start notification in the first communication method of the first communication.
[0314] When the adapter microcomputer 302 receives the authentication communication start notification in the first communication method in S2603, it transitions to S2605 and changes the first communication to a receiving state in the second communication method.
[0315] In the first communication, the camera body 200 may communicate with one or more accessories. In such one-to-many communication, the destination can be specified by, for example, adding identification information of the accessory to be communicated with to the beginning of the communication data. However, at the stage of S2602, the camera microcomputer 205 does not have the identification information of the accessory, and therefore cannot specify the destination by the communication data.
[0316] Therefore, as an example of a means for the camera body 200 to communicate with multiple accessories in sequence in this sub-process, there is a method of using the CS switch 3033 installed in the CS line of the intermediate adapter 300 shown in Fig. 2 as follows. It is assumed that the CS switch 3033 is short-circuited in the steady state.
[0317] In S2601, the camera microcomputer 205 transmits this sub-process start information in the first communication. Since the CS switch 3033 is shorted, each accessory receives this sub-process start information. The adapter microcomputer 302 that receives this sub-process start information opens the CS switch 3033. As a result, only the intermediate adapter communication unit 303 is connected to the camera first communication unit 208, and data transmitted by the camera first communication unit 208 can be received. When the intermediate adapter control unit 309 finishes processing the received data, it shorts the CS switch 3033, so that the interchangeable lens first communication unit 112 can receive data transmitted by the camera first communication unit 208. The adapter microcomputer 302 that has shorted the CS switch 3033 does not respond to information transmitted by the camera first communication unit 208 until it receives an authentication communication completion notification transmitted by the camera microcomputer 205 in S2621 where this sub-process ends.
[0318] In this way, the camera microcomputer 205 can communicate with multiple accessories in sequence.
[0319] In S2604, since the CS switch 3033 is open, the lens microcomputer 111 does not receive the authentication communication start notification sent from the camera first communication unit 112 in S2602.
[0320] When the process transitions to S2606 after transmitting the authentication communication start notification in S2602, the camera microcomputer 205 switches the first communication to a transmission state of the second communication method and transmits an authentication information request to the intermediate adapter microcomputer 302. After the transmission, the camera microcomputer 205 switches the first communication to a reception state of the second communication method.
[0321] The authentication information request in this embodiment is a communication that requests the camera control unit 205 to transmit authentication information including at least the accessory identification information and the terminal information.
[0322] When the intermediate adapter communication unit 303 receives an authentication information request in the second communication method in S2607, the process transitions to S2608.
[0323] In S2608, the intermediate adapter microcomputer 302 transmits authentication information of the adapter microcomputer 302 to the camera first communication unit 208 in the first communication or second communication method.
[0324] Here, the authentication information that the intermediate adapter transmits to the camera microcomputer 205 includes at least the accessory identification information and the termination information.
[0325] In this embodiment, the termination information is information indicating whether or not the intermediate adapter is the termination of the first communication from the viewpoint of the camera microcomputer 205. If the intermediate adapter is the termination of the first communication from the viewpoint of the camera microcomputer 205, the termination information is information indicating that the intermediate adapter is a "termination." If the intermediate adapter is not the termination of the first communication from the viewpoint of the camera microcomputer 205, the termination information is information indicating that the intermediate adapter is a "non-termination."
[0326] In S2608, the intermediate adapter microcomputer 302 transmits authentication information to the camera first communication unit 208, and then transitions to S2609 and shorts the CS switch 3033. This enables the interchangeable lens first communication unit 112 to receive data transmitted by the camera first communication unit 208. Since the adapter microcomputer 302 has completed sending and receiving data exchanged in the initial communication up to S2609, it changes the first communication to a state waiting for completion of authentication communication, and thereafter does not respond to the first communication until an authentication communication completion notification is received in S2621 by the first communication first communication method.
[0327] When the camera microcomputer 205 receives the authentication information of the intermediate adapter 300 in S2610, the process proceeds to S2611, where the received authentication information is stored.
[0328] As described above, when the authentication information of the intermediate adapter 300 is acquired in S2602 to S2611, the process transitions to S2612. In S2612 and S2614 to S2619, the camera microcomputer 205 acquires the authentication information of the interchangeable lens 100, similarly to S2602 to S2603 and S2605 to S2611.
[0329] In S2613, the intermediate adapter control unit 309 receives the authentication information request sent by the camera control unit 205, but does not respond because this sub-process end information has not been received.
[0330] Although the third embodiment is an example in which a total of two accessories, one interchangeable lens and one intermediate adapter, are connected, two or more intermediate adapters may be connected. Since any number of intermediate adapters may be attached, it is preferable to acquire accessory termination information in the accessory information acquisition process.
[0331] As a method of acquiring the termination information of an accessory, for example, as in this embodiment, when the camera microcomputer 205 transmits an authentication information request, it may be notified that it is an interchangeable lens by the termination information returned from the lens second communication unit 115. Also, the terminal accessory may detect that it is the terminal by the connection state of a terminal (not shown) and notify the camera microcomputer 205. This embodiment describes a case where termination information is notified by the lens microcomputer 111 responding with authentication information including termination information in response to an authentication information request from the camera control unit 205.
[0332] In S2616, similarly to S2610, the camera microcomputer 205 transmits an authentication information request in the first communication or second communication method.
[0333] In S2619, the camera microcomputer 205 receives authentication information for the interchangeable lens 100. Because this authentication information includes identification information and termination information for the interchangeable lens, it is determined that the current communication target is an interchangeable lens, which is the accessory at the end of the first communication. If it is necessary to store the interchangeable lens identification information, it is stored in the camera control unit 205, as in S2611.
[0334] Since the authentication communication with the end accessory is completed, the process transitions to S2620 and an authentication communication completion notification is sent using the first communication method of the first communication. The adapter microcomputer 302 receives the authentication communication completion notification in S2621, and the lens microcomputer 111 receives the authentication communication completion notification in S2622, and transitions to a steady state. In the steady state, when the camera microcomputer 205 receives its own identification information using the first communication method of the first communication, the first communication transitions to a receiving state using the second communication method.
[0335] This completes the process for obtaining authentication information through the first communication between the camera and accessory, and the process proceeds to S2623. This ends the sub-process S2404.
[0336] In this embodiment, the processing using the means for sequentially communicating with multiple accessories using the second communication connection switch has been described. However, other means may be used as long as it is possible to communicate with multiple accessories. For example, the accessory can know the order in which it is attached from the camera body by detecting the voltage level of a terminal (not shown) connected to the accessory. In this case, the number of information transmission requests sent from the camera is counted, and information is sent to the camera body only when the number matches the order of attachment.
[0337] <Sub-process S2405 of obtaining and setting the third communication method support information (FIG. 27)> In the third embodiment, the flow of the sub-process S2405 in which the camera body 200 performs communication settings for the third communication method of the accessory compatible with the third communication method of the first communication through communication will be described with reference to FIG.
[0338] In this sub-process, it is assumed that the intermediate adapter 300 supports the third communication method. When obtaining and setting support information for the third communication method for the interchangeable lens 100, communication performed for the intermediate adapter 300 before terminating this sub-process in S2712 may also be performed for the interchangeable lens 100.
[0339] When the sub-process is started in S2701, the process transitions to S2702.
[0340] In S2702, the camera microcomputer 205 transmits, by the first communication method of the first communication, the identification information of the intermediate adapter 300. Since the first communication method is broadcast communication, in S2703, both the adapter microcomputer 302 and the lens microcomputer 111 receive the identification information of the intermediate adapter 300.
[0341] When the process transitions to S2704, the adapter microcomputer 302 of the intermediate adapter 300 that received its own identification information changes the first communication to a receiving state of the second communication method. On the other hand, the interchangeable lens 100 that received information different from its own identification information transitions to S2705 and maintains the current state.
[0342] The camera microcomputer 205, which transmitted the identification information of the intermediate adapter 300 in S2702, switches to the second communication method to communicate with the adapter microcomputer 302 in the second communication method of the first communication.
[0343] In S2706, the camera microcomputer 205 transmits a request to transmit information compatible with the third communication method in the second communication method of the first communication.
[0344] Upon receiving the request to send the third communication method compatibility information in S2707, the adapter microcomputer 302 transitions to S2708 and transmits the third communication method compatibility information in the second communication method of the first communication.
[0345] When the camera microcomputer 205 receives the third communication method compatibility information in the second communication method of the first communication in S2709, the process transitions to S2710.
[0346] When the process proceeds to S2710, the camera microcomputer 205 determines whether the intermediate adapter 300 supports the third communication method based on the information received in S2709 from the adapter microcomputer 302. If the intermediate adapter 300 does not support the third communication method, the process proceeds to S2712, and the sub-process S2405 ends.
[0347] If the intermediate adapter 300 supports the third communication method, the process proceeds to S2711, where the third communication method is set. The flow of the sub-process S2711 for setting the third communication method will be described later with reference to FIG.
[0348] When the third communication method is set in S2711, the process transitions to S2712, and the sub-process S2405 ends.
[0349] <Sub-process S2711 for setting the third communication method (Figure 28)> In the third embodiment, the flow of the sub-process S2711 in which the camera body 200 sets the third communication method for an accessory compatible with the third communication method of the first communication through communication will be described with reference to FIG.
[0350] This sub-process involves setting up the intermediate adapter 300. Before this sub-process begins, the camera microcomputer 205 designates the intermediate adapter 300 as a communication target of the second communication method in the first communication method of the first communication. Setting up the interchangeable lens 100 can also be done in the same way as this process.
[0351] When the sub-process is started in S2801, the process transitions to S2802.
[0352] When the process transitions to S2802, the camera microcomputer 205 transmits the third communication method setting information by the second communication method of the first communication. In this embodiment, the third communication method setting information is the block size, the wait time between blocks, and the number of blocks up to flow control, which are among the burst communication information described above. The third communication method setting information may also include identification information of the interchangeable lens 100. The information received from the intermediate adapter 300 may be linked to the attached interchangeable lens, such as when the information is optical information in which the optical characteristics of the interchangeable lens 100 are corrected by the optical member of the intermediate adapter 300. In this case, it is necessary to transmit the information of the interchangeable lens 100 to the intermediate adapter 300. The identification information of the interchangeable lens 100 transmitted at this time is preferably identification information acquired in the second communication so that the model can be identified.
[0353] When the third communication method support information is received in S2803, the process proceeds to S2804.
[0354] When the process transitions to S2804, the adapter microcomputer 302 performs transmission settings for the third communication method based on the burst communication information received in S2803. Also, based on the identification information of the interchangeable lens 100 received in S2803, the adapter microcomputer 302 prepares to transmit to the camera microcomputer 205 optical information that has been corrected by the adapter microcomputer 302 itself about the interchangeable lens product.
[0355] When the transmission setting is completed, the process proceeds to S2805. In S2805, the reception result of the third communication method setting information is transmitted by the second communication method. In this transmission, information indicating whether reception was successful or not in S2803 is returned, rather than the setting state of each of the third communication method. By configuring in this way, communication will be possible in the same way even if, for example, the number of items covered by the third communication method setting information increases in the future.
[0356] The camera microcomputer 205 receives the result of receiving the third communication method setting information in S2806. If the adapter microcomputer 302 confirms that the reception was successful, the process transitions to S2807. If the reception was not successful, the process is restarted from S2802. If communication is not successful no matter how many times it is retries, the power supplied to the accessory device is reset, and the process is restarted from obtaining the authentication information.
[0357] When the process transitions to S2807, the camera microcomputer 205 transmits a third communication method setting transmission request in the second communication method.
[0358] When the adapter microcomputer 302 receives the third communication method setting request in S2808, the process proceeds to S2809, and transmits the setting state of the third communication method set in S2804 by the second communication method. The setting information of the third communication method in this embodiment is the number of bytes of the header of optical information in addition to the block size, number of blocks, and total number of bytes during wait, which are the above-mentioned burst communication information.
[0359] The header holds the size and address of each piece of data in the entire optical information, and by specifying the address and size when starting burst communication, you can obtain only the desired data. By specifying the starting address in the address and the total number of bytes in the size, you can obtain the entire optical information.
[0360] The header may include a simple conversion table of the optical information, which allows simple conversion of the optical information of the lens once the header information is acquired, before acquiring the entire optical information.
[0361] When the camera microcomputer 205 receives the third communication method setting status in S2810, the process proceeds to S2811, where it checks the received setting status of the intermediate adapter 300 and sets its own third communication method. When the setting of the third communication method of the camera body is completed in S2811, the process proceeds to S2812 and the sub-process S2711 ends.
[0362] <Effects of Example 3> As described above, the receive buffer size on the receiving side is specified as the block size, and after one block is transferred, a period of time is set aside during which no communication takes place for the required wait time between blocks on the receiving side. This makes it possible to receive data normally even if it is transferred continuously.
[0363] In addition, by performing flow control after transferring the number of blocks up to the flow control, it is possible for the receiving side to stop data transfer from the sending side for the amount of time necessary, and it is also possible to perform processes other than communication in parallel.
[0364] Furthermore, unlike P2P communication, in P2P burst communication, the communication master or communication slave that sends the huge amount of data outputs the data, and only the receiving side notifies via the signal line CS, so it is possible to shorten the communication time compared to P2P communication.
[0365] In addition, flow control by the signal line CS on the receiving side of P2P burst communication requires that all communication masters and slaves receive notifications, so a certain amount of time must be secured for the signal line CS to be kept low, etc. Therefore, by increasing the block size and the number of blocks until flow control and reducing the number of times flow control is performed, it is possible to reduce the transfer time for the entire P2P burst communication.
[0366] In addition, by setting a third communication method that includes the identification information of the interchangeable lens obtained in the second communication, information associated with the attached interchangeable lens can be obtained from the intermediate adapter.
[0367] Example 4 Next, a fourth embodiment of the present invention will be described. This embodiment is a sub-process of S2407. The configuration of the camera system of this embodiment is the same as that of the third embodiment.
[0368] This embodiment is characterized in that the firmware of the intermediate adapter 300 can be updated via the camera body 200. Specifically, by communicating firmware update data for the intermediate adapter 300 using the above-mentioned third communication method, it becomes possible to perform firmware update processing normally and at high speed even in the first communication that enables one-to-many communication.
[0369] In this embodiment, the intermediate adapter microcomputer 302 has a rewritable non-volatile memory (not shown) that stores control software (firmware) executed by the intermediate adapter microcomputer 302, and identification information and status information related to the intermediate adapter 300. The identification information is information specific to the intermediate adapter 300, such as the model name, optical characteristics, and correction information. The status information is, for example, an operating state (normal / safe mode), firmware version, and update status, but is not limited to these. The memory also stores a program to be executed when the intermediate adapter 300 is operated in a safe mode, which will be described later.
[0370] The intermediate adapter microcomputer 302 also has a programmable processor (not shown) such as a CPU, and by reading and executing programs from memory, realizes various operations including the operation of the intermediate adapter 300 described below. For example, the intermediate adapter microcomputer 302 executes operations according to commands received from the camera microcomputer 205 via the above-mentioned communication unit 303, and updates firmware stored in memory.
[0371] The intermediate adapter microcomputer 302 updates the firmware by overwriting the old firmware stored in the memory with new firmware received from the camera microcomputer 205 via the communication unit 303, for example. The intermediate adapter microcomputer 302 also manages the update process by recording data (update status data) indicating the status of the firmware update process in the memory. For example, before overwriting the firmware, the adapter microcomputer 302 sets the update status data to a value indicating "incomplete", and when the firmware overwriting is complete, sets the update status data to a value indicating "complete". Note that the value indicating "completion" may be different between a value indicating "normal completion" and a value indicating "abnormal completion". The value indicating "abnormal completion" may also be different depending on the cause of the abnormality.
[0372] For example, if the intermediate adapter 300 is removed during a firmware update, the power supply to the intermediate adapter 300 is cut off, and the update process is interrupted with the update status data remaining at a value indicating "incomplete." For example, when power is supplied again, the intermediate adapter microcomputer 302 checks the update status data, and if the value indicates an incomplete state, it transitions to a mode in which operation is restricted (safe mode). The safe mode operates using an area that cannot be rewritten by firmware updates, and ensures that firmware updates can be performed even if the firmware update is not completed.
[0373] In safe mode, only limited functions can be executed, including processes necessary for updating firmware. Specifically, it is possible to execute processes for transmitting information indicating that the mode is safe (or a request for firmware update) to the camera microcomputer 205, and for updating firmware in the memory with firmware received from the camera microcomputer 205. Other processes, such as transmission and reception using the third communication method, cannot be executed.
[0374] Normally, the memory capacity is not large enough to duplicate and store the entire firmware. Therefore, the capacity available for storing programs for safe mode is limited. Therefore, in safe mode, only limited functions are provided, including the bare minimum functions such as transmitting the operating status of intermediate adapter 300 and updating firmware. If intermediate adapter microcomputer 302 receives a request for processing that cannot be executed in safe mode, such as a request to set the third communication method, at communication unit 303 during safe mode, it ignores the request.
[0375] 29, a sequence for inquiring of the intermediate adapter 300 as to whether or not a firmware update file recorded on a medium inserted into the camera body 200 is a firmware update file for the currently attached intermediate adapter 300 will be described. Based on the information obtained in this sequence, only the firmware update file for the intermediate adapter 300 is displayed on the menu screen. An image of the display screen is shown in FIG.
[0376] <Getting firmware update file compatibility information (Figure 29)> 29 is a diagram illustrating the flow of checking whether or not the firmware update file recorded on the medium inserted into the camera body 200 belongs to the intermediate adapter 300 in the camera system of the fourth embodiment. In this process, identification information for the firmware update file recorded on the medium inserted into the camera body 200 is transmitted from the camera body 200 to the intermediate adapter 300 using the first communication, and corresponding information is obtained.
[0377] When the process is started in S2901, the process transitions to S2902.
[0378] In S2902, the camera microcomputer 205 transmits, by the first communication method of the first communication, the identification information of the intermediate adapter 300. Since the first communication method is broadcast communication, in S2903, both the adapter microcomputer 302 and the lens microcomputer 111 receive the identification information of the intermediate adapter 300.
[0379] When the process transitions to S2904, the adapter microcomputer 302 of the intermediate adapter 300 that has received its own identification information changes the first communication to a receiving state of the second communication method. On the other hand, the interchangeable lens 100 that has received information different from its own identification information maintains its current state.
[0380] The camera microcomputer 205, which has transmitted the identification information of the intermediate adapter 300 in S2902, switches to the second communication method in order to communicate with the adapter microcomputer 302 in the second communication method of the first communication.
[0381] In S2906, the camera microcomputer 205 transmits the firmware update file identification information using the second communication method of the first communication.
[0382] The firmware update file identification information of this embodiment may be identification information of the accessory recorded in the firmware update file, or may be information indicating other accessories. In addition, in cases where firmware upgrade to older firmware is not permitted, the firmware update file identification information may include version information recorded in the firmware update file. The firmware update file identification information may also include information for determining the type of accessory, such as an interchangeable lens or an intermediate adapter.
[0383] When the intermediate adapter communication unit 303 receives the firmware update file identification information by the second communication method in S2907, the process proceeds to S2908.
[0384] In S2908, the intermediate adapter microcomputer 302 determines whether its own firmware can be updated by the firmware update file based on the firmware update file identification information received in S2907. The result of the determination is transmitted to the camera first communication unit 208 as firmware update file compatibility information by the second communication method of the first communication.
[0385] In S2908, the intermediate adapter microcomputer 302 transmits the authentication information to the camera first communication unit 208, and then transitions to S2912.
[0386] When the camera microcomputer 205 receives the firmware update file compatibility information of the intermediate adapter 300 in S2609, the process transitions to S2911. If the intermediate adapter 300 is compatible with the firmware update file, the firmware update file name is displayed in a menu as shown in Fig. 30, making it selectable by the user.
[0387] If there are multiple firmware files, this process may be repeated. If the same accessory (the intermediate adapter 300 in this embodiment) is subsequently inquired of for compatibility information, steps S2902 to S2904 may be omitted since the intermediate adapter 300 has already been designated as the communication target of the second communication method.
[0388] When S2911 is completed, the process transitions to S2912 and ends.
[0389] In order to obtain the compatibility information of the firmware update file from the interchangeable lens, the process may be performed in the same manner as this process, or the second communication may be used.
[0390] As a result of the above, the firmware update file corresponding to the attached accessory will be displayed in the menu and the user will be able to select it.
[0391] <Accessory firmware update via first communication (Fig. 31)> Next, the firmware update of the intermediate adapter 300 by the first communication will be described. FIG. 31 is a diagram for explaining the flow of firmware update of the intermediate adapter 300 by the first communication when a firmware update file recorded on a medium inserted in the camera body 200 is selected in the camera system of the fourth embodiment. In this process, data of a selected file among the firmware update files recorded on the medium inserted in the camera body 200 is transmitted to the intermediate adapter 300. The description will be given on the premise that all accessories compatible with the first communication are compatible with firmware update by the second communication method. Whether or not firmware update by the second communication method is supported may be included in the firmware update file support information described in FIG. 29. In other words, compatibility with the firmware update file indicates compatibility with the firmware update file by the second communication method. This makes it possible to update firmware in a camera body that does not support the third communication method.
[0392] When the process is started in S3101, the process transitions to S3102.
[0393] When the process transitions to S3102, the camera microcomputer 205 transmits, by the first communication method of the first communication, the identification information of the intermediate adapter 300. Since the first communication method is broadcast communication, in S3103, both the adapter microcomputer 302 and the lens microcomputer 111 receive the identification information of the intermediate adapter 300.
[0394] When the state transitions to S3104, the adapter microcomputer 302 of the intermediate adapter 300 that has received its own identification information changes the first communication to a receiving state of the second communication method. On the other hand, the interchangeable lens 100 that has received information different from its own identification information maintains its current state.
[0395] The camera microcomputer 205, which has transmitted the identification information of the intermediate adapter 300 in S3102, switches to the second communication method in order to communicate with the adapter microcomputer 302 in the second communication method of the first communication.
[0396] In S3106, the camera microcomputer 205 transmits a request to transmit firmware update compatibility information for the third communication method via the second communication method of the first communication.
[0397] The third communication method firmware update compatibility information transmission request of the present embodiment is a request to the intermediate adapter to transmit information on whether or not firmware update via the third communication method is supported.
[0398] When the intermediate adapter communication unit 303 receives a request to send firmware update support information for the third communication method via the second communication method in S3107, the process transitions to S3108.
[0399] In S3108, the intermediate adapter microcomputer 302 transmits the third communication method firmware update support information to the camera first communication unit 208 by the second communication method of the first communication.
[0400] In S3109, the camera microcomputer 205 receives third communication method firmware update compatibility information from the adapter microcomputer 302. In S3110, it is determined whether the intermediate adapter 300 supports firmware updates by the third communication method based on the third communication method firmware update compatibility information received in S3109. If firmware updates by the third communication method are supported, the process proceeds to S3111.
[0401] In S3111, the data of the firmware update file is transmitted from the camera microcomputer 205 to the adapter microcomputer 302 by the third communication method. The third communication method may be P2P burst communication of master transmission that performs flow control by the CS line described in FIG. 14, or P2P burst communication of master transmission that performs flow control by the data line as in the case of slave transmission in the third embodiment. Since the firmware update is not a normal operation mode, if it is acceptable to occupy the camera microcomputer 205, flow control is not necessary. Furthermore, it is sufficient to set only the block control time. If the receiving buffer of the first communication unit of the camera is sufficiently large, block control is not necessary. Such setting is performed in the same manner as the sub-process S2711 shown in FIG. 28, but in this embodiment, it is a communication setting from the camera body 200 to the intermediate adapter 300.
[0402] In S3110, if the intermediate adapter 300 does not support firmware updates using the third communication method, the process transitions to S3112, and the firmware is updated using the second communication method. Firmware update file data is transmitted from the camera microcomputer 205 to the adapter microcomputer 302 using the second communication method, and the adapter microcomputer 302 returns data such as a reception result to the camera microcomputer 205 each time it receives a block. This is because, in the second communication method, the next data cannot be transmitted from the camera microcomputer 205 to the adapter microcomputer 302 unless data is transmitted from the adapter microcomputer 302 to the camera microcomputer 205 for each block.
[0403] In S3111 or S3112, all data is sent to the adapter microcomputer 302, and when the firmware update of the intermediate adapter 300 is completed, the process transitions to S3113 and ends.
[0404] According to this embodiment, when updating the firmware of the intermediate adapter 300 via the camera body 200, firmware update data for the adapter 300 is communicated using the third communication method, making it possible to perform the firmware update process at high speed.
[0405] Example 5 Next, a fifth embodiment of the present invention will be described. This embodiment is a sub-process of S2407. The configuration of the camera system of this embodiment is the same as that of the third embodiment.
[0406] In this embodiment, a flow will be described in which the camera body periodically transmits the camera state (status) to the interchangeable lens 100 using the third communication method of the first communication. Examples of the camera state to be transmitted include information on camera shake and attitude detected by a shake sensor (not shown) such as a vibration gyro mounted on the camera body 200, and camera component operation information. The camera shake and attitude information detected by the shake sensor of the camera body is used for vibration reduction processing that controls the shift operation (vibration reduction operation) of the vibration reduction lens 103. Also, the camera component operation information is used, for example, to operate various actuators of the interchangeable lens 100.
[0407] This information is required to be transmitted in real time, but in a steady state, the second communication is used for communication by the camera body 200 to control the interchangeable lens 100, which impairs the real-time nature of the communication. Therefore, this information is periodically transmitted to the interchangeable lens 100 using the third communication method of the first communication.
[0408] <Camera status notification via the first and third communication methods (Fig. 32)> The camera status notification using the first and third communication methods will be described.
[0409] When the process is started in S3201, the process transitions to S3202.
[0410] When the process transitions to S3202, the camera microcomputer 205 transmits the identification information of the interchangeable lens 100 by the first communication method of the first communication. Since the first communication method is broadcast communication, both the intermediate adapter 300 and the interchangeable lens 100 receive the identification information of the interchangeable lens 100 in S3103.
[0411] The interchangeable lens 100 that has received its own identification information transitions to S3204 and changes the first communication to a reception state of the second communication method. On the other hand, the intermediate adapter 300 that has received information different from its own identification information maintains its current state.
[0412] The camera body 200, which transmitted the identification information of the interchangeable lens 100 in S3202, switches to the second communication method in order to communicate with the interchangeable lens 100 in the second communication method of the first communication.
[0413] In S3205, the camera microcomputer 205 transmits a request to transmit information compatible with the third communication method via the second communication method of the first communication.
[0414] The third communication method camera status notification support information in this embodiment is information indicating whether or not the camera supports receiving a camera status by the third communication method. For example, it may include support / non-support of each status, such as support for camera shake information or support for camera member operation information.
[0415] When the interchangeable lens first communication unit 112 receives a request to send camera status notification compatible information using the third communication method via the second communication method in S3206, the process transitions to S3207.
[0416] In S3207, the interchangeable lens microcomputer 111 transmits the third communication method camera status notification compatibility information to the camera first communication unit 208 in the second communication method of the first communication.
[0417] In S3208, the camera microcomputer 205 receives third communication method camera status notification compatibility information from the lens microcomputer 111. In S3209, the camera microcomputer 205 determines whether the interchangeable lens 100 supports the third communication method camera status notification based on the third communication method camera status notification compatibility information received in S3208. If the interchangeable lens 100 supports the third communication method camera status notification, the process transitions to S3210.
[0418] If it is not supported, the process transitions to S3213 and ends. In this case, the camera status is transmitted by the second communication method, or is not transmitted since it is determined that the status is not used to control the interchangeable lens. Using the second communication method for the first communication method is not preferable from the viewpoint of real-time performance.
[0419] In S3210, the camera microcomputer 205 sets the communication setting of the third communication method to the lens microcomputer 111 by the third communication method. This is performed in the same manner as the sub-process S2711 shown in FIG. 28, but in this embodiment, the communication setting is from the camera microcomputer 205 to the intermediate adapter 300. The third communication method may be P2P burst communication of master transmission that performs flow control by the CS line described in FIG. 14, or P2P burst communication of master transmission that performs flow control by the data line as in the case of slave transmission in the third embodiment. Since the firmware update is not a normal operation mode, if it is acceptable to occupy the camera microcomputer 205, flow control is not necessary. Furthermore, only the block control time needs to be set. If the reception buffer of the first communication unit of the camera is sufficiently large, block control is not necessary.
[0420] It is assumed that small amounts of data will be sent periodically as the camera status. In such a case, there is no need to set the flow control and block control times. Once the settings are complete, the process transitions to S3211. As described above, when the camera status is small data, the interchangeable lens first communication unit 112 always maintains a state in which it is able to receive data, and the camera microcomputer 205 periodically sends one block of camera status information.
[0421] Every time the camera status is sent in S3211, the process transitions to S3212, where it is determined whether or not to end the camera status communication. If the camera status communication is to be continued, S3211 is looped to perform periodic communication. If the camera status communication is to be ended, the process transitions to S3213, where this process ends.
[0422] Because the camera status is communicated periodically, it is not possible for the interchangeable lens to determine that it has received all the data and lower the CS, as described at the end of Fig. 18. When terminating camera status communication using the third communication method, for example, an end command may be broadcast using the first communication method of the first communication. Upon receiving this, the interchangeable lens 100 changes the first communication from the third communication method to a reception state using the first communication method.
[0423] According to this embodiment, when transmitting the camera status to the interchangeable lens 100, it is possible to transmit the camera status in real time and at high speed using the third communication method of the first communication while controlling the interchangeable lens 100 using the second communication.
[0424] In this embodiment, in steps S3202 to S3208, the camera microcomputer 205 acquires the third communication method-based camera status notification compatibility information from the interchangeable lens 100, but the second communication may be used to acquire the third communication method-based camera status notification compatibility information. Also, the third communication method-based camera status notification compatibility information may be acquired when acquiring the interchangeable lens identification information after power supply in the above-mentioned step S2403.
[0425] <Other Examples> In the third embodiment, data reception from an accessory using high-speed communication according to the third communication method of the first communication was described, and in the fourth and fifth embodiments, data transmission to an accessory using high-speed communication according to the third communication method of the first communication was described. The third communication method can be used for transmitting and receiving large amounts of data or periodic data, but is not limited to this. The above-described embodiments may be combined as appropriate.
[0426] In the above embodiment, an example has been described in which P2P burst communication is performed between the camera microcomputer 205 of the camera body 200 and the adapter microcomputer 302 of the intermediate adapter 300. Similarly, P2P burst communication may be applied to communication between the camera microcomputer 205 of the camera body 200 and the lens microcomputer 111 of the interchangeable lens 100.
[0427] For example, a similar effect can be achieved in data transfer between a sending device and a receiving device having a notification channel for notifying the sending side of flow control from the receiving side and a data communication channel for transferring data from the sending side to the receiving side.
[0428] Specifically, as shown in Figure 21, after transmitting one block, the transmitting device stops communication for the wait time between blocks. This is repeated for the number of blocks until flow control is initiated, and then the device waits for flow control from the receiving device. After receiving one block, the receiving device prepares to receive the next block within the wait time between blocks. This is repeated for the number of blocks until flow control is initiated, and after performing the necessary processing, the device requests the next data through flow control. By repeating these processes, data can be transferred from the transmitting side to the receiving side.
[0429] Further, for example, a similar effect can be achieved in data transfer between a transmitting device and a receiving device in which the same notification and data channel is used for both the notification of flow control from the receiving device to the transmitting device and the transfer of data from the transmitting device to the receiving device.
[0430] Specifically, as shown in Figure 22, after transmitting one block, the transmitting device stops communication for the inter-block wait time. This is done for the number of blocks until flow control is initiated, then the notification / data channel is switched to input and awaits flow control from the receiving device. After receiving one block, the receiving device prepares to receive the next block within the inter-block wait time. After doing this for the number of blocks until flow control is initiated, the notification / data channel is switched to output, and after performing the necessary processing, a request for the next data is made via flow control. By repeating these processes, data can be transferred from the transmitting side to the receiving side.
[0431] In the above embodiment, clock-synchronous communication is performed in the second communication. However, the same effect can be obtained by adopting three-wire asynchronous communication, which is realized by using the three wires of the second communication instead.
[0432] 33 shows signal waveforms in three-wire asynchronous communication. In the case of three-wire asynchronous communication, a transmission request line RTS is provided instead of the clock line LCLK described above. The transmission request line RTS is a signal line for transmitting a signal that controls the timing of communication via the data line DCL and communication via the data line DLC from the camera microcomputer 205 to the lens microcomputer 111. For example, it is used to notify the lens microcomputer 111 of a request to transmit lens data or a request to switch communication processing. Notification via the transmission request channel is performed by switching the signal level on the transmission request channel between High and Low.
[0433] In the following description, the signal supplied to the transmission request line RTS is referred to as a transmission request signal RTS. The transmission request signal RTS is sent from the camera microcomputer 205 as the communication master to the lens microcomputer 111 as the communication slave.
[0434] When the lens microcomputer 111 receives the transmission request RTS, the signal level of the data line DLC is set to Low for one bit period to notify the camera microcomputer 205 of the start of transmission of one frame of data via the data line DLC as shown in Fig. 33. This one bit period is called the start bit ST indicating the start of one frame. In other words, transmission of one frame of data starts from this start bit ST. The start bit ST is provided at the first bit of each frame of the lens data signal DLC.
[0435] Next, the lens microcomputer 111 transmits one byte of lens data to the camera microcomputer 205 in the next 8-bit period from the 2nd bit to the 9th bit. The data is arranged in MSB-first format, starting with the most significant data D7, followed by data D6, data D5, and ending with the least significant data D0. The lens microcomputer 111 then adds one bit of parity information PA to the 10th bit, and sets the signal level of the data line DLC to High during the stop bit SP period indicating the end of one frame. This ends one frame of data starting from the start bit ST.
[0436] On the other hand, when the camera microcomputer 205 detects the start bit ST of the data line DLC, it starts transmitting one frame of data through the data line DCL in response to this. The format of the one frame of data is the same as that of the data line DLC.
[0437] As described above, in the second communication, three-wire asynchronous communication can be executed instead of clock synchronous communication.
[0438] The present invention can also be realized by a process in which a program for implementing one or more of the functions of the above-described embodiments is supplied to a system or device via a network or a storage medium, and one or more processors in a computer of the system or device read and execute the program. The present invention can also be realized by a circuit (e.g., ASIC) that implements one or more of the functions.
[0439] The embodiments described above are merely representative examples, and various modifications and alterations are possible for each embodiment when implementing the present invention.
[0440] Although the 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 of the present invention. [Explanation of symbols]
[0441] 100 Interchangeable Lenses 111 Lens Microcomputer 200 Imaging device 205 Camera Microcomputer 300 Intermediate adapter 302 Adapter Microcomputer 401a, 402a, 403a, 404a CS terminal 401b, 402b, 403b, 404b DATA terminal
Claims
1. An accessory device that is removably attached to an imaging device, a control means for controlling communication in a first communication mode in which a notification is transmitted via a second terminal in response to transmission of data in one-frame units via a first terminal, or a notification is received via the second terminal in response to reception of data in one-frame units via the first terminal, and a second communication mode in which a notification is received via the second terminal in response to transmission of data in block units including a plurality of frames via the first terminal; The accessory device is characterized in that the control means transmits block-unit data in the second communication mode via the first terminal after receiving a command to transition to the second communication mode via the first terminal in the first communication mode and receiving a notification via the second terminal.
2. The accessory device according to claim 1, characterized in that the control means receives information indicating the data size of the block in the first communication mode prior to the command, and transmits data in block units of a size based on the information via the first terminal.
3. The accessory device described in claim 1 or claim 2, characterized in that the control means receives information indicating a time interval between a first block and a second block following the first block using the first communication mode prior to the command, and transmits data in block units via the first terminal at a time interval based on the information.
4. The accessory device according to any one of claims 1 to 3, characterized in that the control means receives information indicating the number of blocks in the first communication mode prior to the command, and receives a notification via the second terminal in response to transmitting a number of blocks based on the information via the first terminal.
5. 5. The accessory device according to claim 1, wherein one frame of data has a start bit, 8 bits of data, and a stop bit.
6. An imaging device to which an accessory device can be removably attached, a control means for controlling communication in a first communication mode in which a notification is received via a second terminal in response to reception via a first terminal of data in units of one frame, or a notification is transmitted via the second terminal in response to transmission via the first terminal of data in units of one frame, and a second communication mode in which a notification is transmitted via the second terminal in response to reception via the first terminal of data in units of blocks including a plurality of frames, an imaging device characterized in that the control means receives block-unit data in the second communication mode via the first terminal after transmitting a command to transition to the second communication mode via the first terminal in the first communication mode and transmitting a notification via the second terminal.
7. The imaging device according to claim 6, characterized in that the control means transmits information indicating a data size of the block in the first communication mode prior to the command, and receives data in block units of a size based on the information via the first terminal.
8. The imaging device according to claim 6 or claim 7, characterized in that the control means transmits information indicating a time interval between a first block and a second block following the first block in the first communication mode prior to the command, and receives data in block units via the first terminal at a time interval based on the information.
9. The imaging device according to any one of claims 6 to 8, wherein the control means transmits information indicating the number of blocks in the first communication mode prior to the command, and transmits a notification via the second terminal in response to receiving a number of blocks based on the information via the first terminal.
10. 10. The imaging device according to claim 6, wherein one frame of data has a start bit, 8 bits of data, and a stop bit.
11. a communication control step of controlling communication in a first communication mode in which a notification is transmitted via a second terminal in response to transmission of data in one frame unit via a first terminal, or a notification is received via the second terminal in response to reception of data in one frame unit via the first terminal, and a second communication mode in which a notification is received via the second terminal in response to transmission of data in block units including a plurality of frames via the first terminal, A control method for an accessory device, characterized in that in the communication control step, after receiving a command to transition to the second communication mode via the first terminal in the first communication mode and receiving a notification via the second terminal, data in block units is transmitted in the second communication mode via the first terminal.
12. A method for controlling an imaging device to which an accessory device can be attached, comprising: a communication control step of controlling communication in a first communication mode in which a notification is received via a second terminal in response to reception via a first terminal of data in units of one frame, or a notification is transmitted via the second terminal in response to transmission via the first terminal of data in units of one frame, and a second communication mode in which a notification is transmitted via the second terminal in response to reception via the first terminal of data in units of a block including a plurality of frames, A control method for an imaging device, characterized in that in the communication control step, after sending a command to transition to the second communication mode via the first terminal in the first communication mode and sending a notification via the second terminal, data in block units is received in the second communication mode via the first terminal.
Citation Information
Patent Citations
Accessory Apparatus, Image-capturing Apparatus, Image-capturing System And Control Method
CN107277311A
Camera, accessory device, communication control method, computer program, and camera system
CN110720208A
Accessory device, imaging device, and communication control program
JP2017181838A
Accessory device, imaging device, and communication control program
JP2017182002A
Camera, accessory device, communication control method, computer program, and camera system
JP2018205719A
