Imaging device, accessory device, communication control method, and program
The imaging device synchronizes communication states using dual channels to manage simultaneous and individual communication with accessory devices, addressing inefficiencies and errors in existing camera systems, ensuring timely and efficient communication.
Patent Information
- Application Number
- JP2023072006
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-26
- Publication Date
- 2024-11-08
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing camera systems face communication inefficiencies and errors when switching between time-sharing and P2P communication, particularly during power-saving states, leading to delayed communication with specific accessory devices.
An imaging device with a control unit that manages communication using a first channel for simultaneous communication with multiple accessory devices and a second channel for individual communication, allowing for synchronized switching between communication states based on timing information shared by accessory devices.
Enables efficient and error-free communication by synchronizing the stop and start of time-sharing communication, ensuring timely communication with specific accessory devices without interruptions.
Smart Images

Figure 2024157594000001_ABST
Abstract
Description
[Technical Field]
[0001] The present invention relates to a communication control technique between an imaging device (hereinafter referred to as a camera) and an accessory device attached thereto. [Background technology]
[0002] A camera and accessory devices such as interchangeable lenses and intermediate adapters communicate with each other to operate as a camera system. Patent Document 1 discloses a camera system capable of broadcast communication, in which the camera communicates with multiple accessory devices simultaneously, and P2P communication, in which the camera designates a specific accessory device and communicates with this specific accessory device individually. By using these communication methods, the camera can communicate with any accessory device even when multiple accessory devices are attached to the camera. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Patent No. 6427287 Summary of the Invention [Problem to be solved by the invention]
[0004] In the camera system disclosed in Patent Document 1, for a camera to perform P2P communication with a specific accessory device, it is necessary to first perform communication to designate the specific accessory device, and then perform procedures such as communication to determine the communication method and switch the communication direction. As a result, other communications take longer than the P2P communication itself. As a result, in order to ensure communication between the camera and the specific accessory device at the desired timing, it is necessary to limit communication with other accessory devices or reduce the frequency of communication with the specific accessory device.
[0005] A time-division communication method is known that can reduce the time required to switch communication partners by determining in advance the timing for switching communication partners and communication direction in P2P communication. However, if the camera stops time-division communication independently in situations where it is desired to stop time-division communication, such as when the camera is turned off or transitions to a power-saving state, a communication error will occur because each accessory device controls P2P communication to occur at a predetermined timing.
[0006] SUMMARY OF THE INVENTION It is therefore an object of the present invention to provide an imaging device that can normally stop time division communication by sharing the timing for stopping time division communication between the imaging device and an accessory device. [Means for solving the problem]
[0007] An imaging device according to one aspect of the present invention is an imaging device that can be used when multiple accessory devices are connected, and has a control unit that controls communication with the multiple accessory devices using a first channel used for data communication with the multiple accessory devices and a second channel that notifies the timing of communication via the first channel, and the control unit is capable of switching between a first communication state in which a first communication is performed using the first channel for simultaneous communication with the multiple accessory devices, and a second communication state in which a second communication is performed using the first channel for individual communication with a specific accessory device among the multiple accessory devices, and when the control unit determines the timing for switching from the second communication state to the first communication state, it transmits to the specific accessory device via the second communication a switching request requesting switching to the first communication state and switching timing information that the specific accessory device uses to calculate the switching timing, and continues the second communication state until the switching timing, and switches to the first communication state at the switching timing.
[0008] Other objects and features of the present invention are illustrated in the following examples. [Effects of the Invention]
[0009] According to the present invention, it is possible to provide an imaging device that can normally stop time division communication by sharing the timing for stopping time division communication between the imaging device and the accessory device. [Brief explanation of the drawings]
[0010] [Figure 1] FIG. 1 is a block diagram showing the configuration of a camera system according to a first embodiment. [Figure 2] FIG. 2 is a diagram showing a communication circuit in the camera system of the first embodiment. [Figure 3] FIG. 3 is a diagram showing a format of data transmitted and received in the first embodiment. [Figure 4] FIG. 4 is a diagram showing a signal waveform of broadcast communication in the first embodiment. [Figure 5] FIG. 4 is a diagram showing signal waveforms of designated communication in the first embodiment. [Figure 6] FIG. 4 is a diagram showing signal waveforms when switching communication methods in the first embodiment. [Figure 7] 10 is a flowchart showing a broadcast communication process in the first embodiment. [Figure 8] 10 is a flowchart showing a destination-specified communication process in the first embodiment. [Figure 9] FIG. 3 is a diagram showing signal waveforms of time division communication in the first embodiment. [Figure 10] 10 is a flowchart showing a time division communication process in the first embodiment. [Figure 11] FIG. 4 is a diagram showing signal waveforms when the communication method is switched to time division communication in the first embodiment. [Figure 12] FIG. 4 is a diagram showing characteristic information that the camera receives from an accessory in the first embodiment. [Figure 13] FIG. 10 is a diagram showing setting information for time division communication determined based on characteristic information in the first embodiment. [Figure 14] 10 is a flowchart showing a process of initial communication and switching of communication methods for time division communication in the first embodiment. [Figure 15] FIG. 4 is a diagram showing the internal structure of a data packet according to the first embodiment. [Figure 16] FIG. 10 is a diagram showing a signal waveform of a data packet determined before time division communication in the first embodiment. [Figure 17] 10A and 10B are diagrams showing setting information of time division communication before and after change in the first embodiment. [Figure 18] FIG. 10 is a diagram showing a signal waveform of setting information after change in the first embodiment. [Figure 19] 10 is a flowchart showing a process of switching the configuration of a data packet during time-division communication in the first embodiment. [Figure 20] FIG. 10 is a diagram showing characteristic information that the camera receives from an accessory in the second embodiment. [Figure 21] 10 is a flowchart showing a data packet size determination process according to the second embodiment. [Figure 22] FIG. 10 is a diagram showing a flow of determining a data packet size in the second embodiment. [Figure 23] FIG. 10 is a diagram showing setting information for time division communication determined based on characteristic information in the second embodiment. [Figure 24] FIG. 11 is a diagram showing characteristic information that the camera receives from an accessory in the third embodiment. [Figure 25] 11 is a flowchart showing a data packet size determination process according to the third embodiment. [Figure 26] FIG. 11 is a diagram showing a flow of determining a data packet size in the third embodiment. [Figure 27] FIG. 11 is a diagram showing setting information for time division communication determined based on characteristic information in the third embodiment. [Figure 28] 11 is a flowchart showing a process of dividing and transmitting data during time-division communication in the third embodiment. [Figure 29] 11 is a flowchart showing a process of dividing and receiving data during time-division communication in the third embodiment. [Figure 30] FIG. 10 is a diagram showing a transition of a communication method in the fourth embodiment. [Figure 31] FIG. 10 is a diagram showing signal waveforms in a time division communication ending process in the fourth embodiment. [Figure 32] FIG. 10 is a diagram showing signal waveforms in a time division communication restart process in the fourth embodiment. [Figure 33] FIG. 10 is a diagram showing signal waveforms in a time division communication interruption / end process in the fourth embodiment. [Figure 34] 10 is a flowchart showing the process of terminating, suspending, and resuming time-division communication in the fourth embodiment. [Figure 35] FIG. 13 is a diagram showing commands for terminating and interrupting time division communication in the fourth embodiment. [Figure 36] 13 is a flowchart showing the process of terminating, suspending, and resuming time-division communication in the fifth embodiment. DETAILED DESCRIPTION OF THE INVENTION
[0011] Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. [Example]
[0012] FIG. 1 shows a camera system according to a first embodiment of the present invention. The camera system includes a camera (imaging device) 200, an interchangeable lens 100, and an intermediate adapter 300 attached between the camera 200 and the interchangeable lens 100. The interchangeable lens 100 and the intermediate adapter 300 correspond to accessory devices connected to the camera 200, which can be used with multiple accessory devices connected (attached). Attachment to the camera 200 as referred to here includes not only direct connection to the camera 200, but also indirect connection via an accessory device such as the intermediate adapter 300. Furthermore, it is sufficient that the accessory is connected to the camera 200 so as to be able to communicate with the camera 200. Note that multiple intermediate adapters may be attached between the camera 200 and the interchangeable lens 100.
[0013] Control commands and internal information are communicated between the camera 200 and the interchangeable lens 100 and the intermediate adapter 300 via the communication units that each of them has. Communication (first communication) by a broadcast communication method and communication (second communication) by a P2P communication method are performed between the camera 200, the interchangeable lens 100, and the intermediate adapter 300.
[0014] The broadcast communication method is a communication method for one-to-many communication (broadcast communication) in which data is transmitted simultaneously from the camera 200 as a communication master to each accessory device as a communication slave. In the following explanation, communication using the broadcast communication method will be referred to as broadcast communication. The P2P communication method is a method in which the camera 200 as a communication master communicates one-to-one with one accessory device as a communication slave (specific accessory device).
[0015] P2P communication methods include two types: a communication method that requires the camera 200 to specify a communication partner each time it switches its communication partner, and a communication method that does not require the specification of a communication partner and switches the communication partner with the camera 200 in a predetermined order. In the following explanation, communication using a communication method that requires the specification of a communication partner is referred to as "partner-specified communication," and communication using a communication method that switches communication partners in order is referred to as "time-division communication." These partner-specified communication and time-division communication are collectively referred to as P2P communication.
[0016] When performing partner-specified communication, camera 200 transmits information indicating (specifying) the communication partner to each accessory device by broadcast communication. When performing time-division communication, camera 200 transmits information such as the order of the accessory devices to be communication partners and the communication direction to each accessory device by broadcast communication.
[0017] When P2P communication is initiated, each accessory device has been notified of the communication partner of camera 200. Therefore, camera 200 does not need to transmit information for identifying the communication partner to each accessory device in P2P communication. In this way, by identifying the communication partner with camera 200 through broadcast communication and then transitioning to P2P communication with that communication partner, the communication speed in P2P communication can be improved.
[0018] In partner-specific communication, it is necessary to specify the next communication partner by broadcast communication each time the communication partner is switched, but the camera 200 can select any communication partner depending on the situation. On the other hand, in time-division communication, the timing for switching the communication partner and communication direction is predetermined, so although there is less freedom in selecting the communication partner compared to partner-specific communication, the time required to specify the communication partner can be reduced, thereby further improving the communication speed. <Camera system configuration> The intermediate adapter 300 is mechanically and electrically connected to the camera 200 via a mount 401, which is a coupling mechanism. The intermediate adapter 300 receives power from the camera 200 via a power terminal (not shown) provided on the mount 401, and operates an adapter microcomputer (hereinafter referred to as "adapter microcomputer") 302, which serves as an accessory control unit.
[0019] The interchangeable lens 100 is mechanically and electrically connected to the intermediate adapter 300 via a mount 400, which is a coupling mechanism. The interchangeable lens 100 receives power from the camera 200 via a power terminal (not shown) provided on the mount 400 and a power terminal provided on the mount 401 described above. The interchangeable lens 100, which receives power from the camera 200, operates various actuators and a lens microcomputer (hereinafter referred to as the lens microcomputer) 111, which will be described later. The interchangeable lens 100, the intermediate adapter 300, and the camera 200 also communicate with each other via communication terminals (which will be described later) provided on the mount 400 and the mount 401.
[0020] The interchangeable lens 100 has an imaging optical system that includes, in order from the subject OBJ side, a field lens 101, a variable magnification lens 102 that changes magnification, an aperture unit 114 that adjusts the amount of light, a correction lens 103 that corrects image shake, and a focus lens 104 that adjusts focus.
[0021] The variable magnification lens 102 and the focus lens 104 are held by lens holding frames 105 and 106, respectively. The lens holding frames 105 and 106 are guided by guide shafts (not shown) so as to be movable in the optical axis direction indicated by the dashed line in the figure, and are driven in the optical axis direction by stepping motors 107 and 108, respectively. The stepping motors 107 and 108 move the variable magnification lens 102 and the focus lens 104, respectively, in synchronization with drive pulses.
[0022] The correction lens 103 reduces (corrects) image blur caused by camera shake such as hand shake by moving in a direction perpendicular to the optical axis of the imaging optical system.
[0023] The lens microcomputer 111 serving as an accessory control unit is an accessory control means that controls the operation of each unit within the interchangeable lens 100. The lens microcomputer 111 receives control commands transmitted from the camera 200 via a lens communication unit 112 serving as an accessory communication unit, and receives requests to transmit lens data. The lens microcomputer 111 also performs lens control corresponding to the control commands, and transmits lens data corresponding to the transmission request to the camera 200 via the lens communication unit 112.
[0024] 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 that controls the magnification change operation by the magnification change lens 102 and an autofocus process that controls the focus adjustment operation by the focus lens 104.
[0025] The aperture unit 114 has aperture blades 114a and 114b. The positions 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.
[0026] Furthermore, the lens microcomputer 111 drives an anti-shake actuator 126 via an anti-shake drive circuit 125 in accordance with shake detected by a shake sensor (not shown), such as a vibration gyroscope, provided inside the interchangeable lens 100. This performs anti-shake processing that controls the shift operation of the compensation lens 103.
[0027] In this embodiment, the intermediate adapter 300 is an extender for extending the focal length of the interchangeable lens 100. However, the intermediate adapter 300 is not limited to an extender, and an intermediate adapter having various functions can be used. For example, the intermediate adapter may be an intermediate adapter with a built-in filter that changes the transmittance of light that passes through the interchangeable lens 100. This intermediate adapter may have multiple filters with different light transmittances inside, allowing the appropriate filter to be selected depending on the imaging situation, etc.
[0028] The intermediate adapter 300 has a variable magnification lens 301 for extending the focal length of the interchangeable lens 100, and an adapter microcomputer 302 as accessory control means for controlling the operation of each section within the intermediate adapter 300. The adapter microcomputer 302 receives control commands transmitted from the camera 200 via an adapter communication section 303 as an accessory communication section, and performs adapter control corresponding to the control commands. The adapter microcomputer 302 also transmits adapter data corresponding to a transmission request from the camera 200 to the camera 200 via the adapter communication section 303.
[0029] The camera 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.
[0030] The image sensor 201 photoelectrically converts a 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.
[0031] The signal processing circuit 203 also generates, from the video signal, focus information that indicates the contrast state of the subject image, that is, luminance information that indicates the exposure state of the imaging optical system. The signal processing circuit 203 outputs the video signal to the display unit 206, and the display unit 206 displays the video signal as a live view image that can be used to check the composition, focus state, etc.
[0032] Camera microcomputer (controller) 205 controls camera 200 in response to inputs from camera operating members such as an image capture instruction switch and various setting switches (not shown). Camera microcomputer 205 also transmits control commands related to the magnification change operation of variable magnification lens 102 to lens microcomputer 111 in response to operation of a zoom switch (not shown) via camera communication unit 208. Camera microcomputer 205 also transmits control commands related to the light amount adjustment operation of aperture unit 114 in response to brightness information and the focus adjustment operation of focus lens 104 in response to focus information to lens microcomputer 111 via camera communication unit 208.
[0033] In broadcast communication, the camera microcomputer 205 simultaneously transmits data to the intermediate adapter 300 and the interchangeable lens 100, and in P2P communication, it performs one-to-one data communication with either the intermediate adapter 300 or the interchangeable lens 100.
[0034] <Communication circuit configuration> 2, a communication circuit configured in a camera system including a camera 200, an intermediate adapter 300, and an interchangeable lens 100 will be described. The communication circuit includes a notification channel (second channel) CS used for notification of communication timing, communication partner, communication direction, etc., and a data communication channel (first channel) DATA used for data communication.
[0035] 1, the camera 200 and the intermediate adapter 300 are connected via a mount 401. The mount 401 is provided with at least two communication terminals. The intermediate adapter 300 and the interchangeable lens 100 are connected via a mount 400. The mount 400 is provided with at least two communication terminals. The notification channel CS and the data communication channel DATA described above are formed via the communication terminals provided in each mount.
[0036] The notification channel CS is connected to the camera microcontroller 205, the adapter microcontroller 302, and the lens microcontroller 111, and each microcontroller can detect the signal level (voltage level) of the notification channel CS. The notification channel CS is also pull-up connected to a power supply (not shown) arranged in the camera 200. The notification channel CS can also be connected to ground via a grounding switch 2081 included in the camera 200, and can also be connected to ground via a grounding switch 3031 included in the intermediate adapter 300. The notification channel CS can also be connected to ground via a grounding switch 1121 included in the interchangeable lens 100.
[0037] By employing such a circuit configuration, it is possible to set the signal level of the notification channel CS to Low (first level) by setting any of the ground switches included in the camera 200, intermediate adapter 300, and interchangeable lens 100 to a connected state (first setting). Also, it is possible to set the signal level of the notification channel CS to High (second level) by setting all of the ground switches included in the camera 200, intermediate adapter 300, and interchangeable lens 100 to a disconnected state (second setting).
[0038] Each microcomputer can change the connection state of the ground switch to change the connection state between the notification channel CS and the ground. In other words, each microcomputer can set the signal level of the notification channel CS to either High or Low by changing the connection state of the ground switch.
[0039] For example, camera microcomputer 205 can set the signal level of notification channel CS to Low by connecting ground switch 2081 included in camera 200. In the following description, connecting the ground switch is described as "outputting Low to notification channel CS," and disconnecting the ground switch is described as "outputting High to notification channel CS."
[0040] In other words, when all microcontrollers output a high signal to the notification channel CS, the signal level of the notification channel CS becomes high. On the other hand, when any microcontroller outputs a low signal to the notification channel CS, the signal level of the notification channel CS becomes low. The role of the notification channel CS during data communication will be explained later.
[0041] The data communication channel DATA is a bidirectional data communication channel that can switch the data propagation direction. The data notification channel DATA is connected to the camera microcomputer 205, the adapter microcomputer 302, and the lens microcomputer 111.
[0042] The data communication channel DATA is connected to the camera microcomputer 205 via an input / output selector switch 2082 included in the camera 200. The camera microcomputer 205 is provided with a data output unit for transmitting data and a data input unit for receiving data. The camera microcomputer 205 selectively connects the data communication channel DATA to either the data output unit or the data input unit according to the operation of the input / output selector switch 2082.
[0043] Furthermore, data communication channel DATA is connected to adapter microcomputer 302 via input / output changeover switch 3032 included in intermediate adapter 300. Adapter microcomputer 302 is equipped with a data output unit for transmitting data and a data input unit for receiving data. Adapter microcomputer 302 selectively connects data communication channel DATA to either the data output unit or the data input unit according to the operation of input / output changeover switch 3032.
[0044] The data communication channel DATA is connected to the lens microcomputer 111 via an input / output selector switch 1122 included in the interchangeable lens 100. The lens microcomputer 111 is equipped with a data output unit for transmitting data and a data input unit for receiving data. The lens microcomputer 111 selectively connects the data communication channel DATA to either the data output unit or the data input unit in accordance with the operation of the input / output selector switch 1122. By employing such a circuit configuration, it is possible to appropriately switch the data propagation direction (communication direction) of the data communication channel DATA.
[0045] <Data format> Figure 3 shows the format of data communicated via the data communication channel DATA. Here, the data format is shown for a start-stop synchronous communication method in which the communication speed is set in advance on both the data sending side and the data receiving side, and data communication is carried out at a communication bit rate based on this setting. The communication bit rate indicates the amount of data that can be transferred in one second, and is expressed in units of bps (bits per second). Figure 3 shows the signal waveform of one frame, which is the smallest communication unit.
[0046] When no data communication is taking place, the signal level of the data communication channel DATA is maintained at a high level. After that, to notify the data receiving side that data transmission has begun, the signal level of the data communication channel DATA is set to low for one bit period. This one bit period is called the start bit ST, and the data frame begins from the start bit ST. One byte of data is transmitted in the eight-bit period from the second bit to the ninth bit following the start bit ST.
[0047] The data bit arrangement is in MSB (Most Significant Bit) first format, starting with the most significant data D7, followed in order by data D6, D5, D4, ..., D1, and ending with the least significant data D0. One bit of parity information (PA) is then added to the 10th bit, and the signal level of the data communication channel DATA is set to High during the stop bit SP, which indicates the end of one frame. This ends the data frame period that began with the start bit ST. Note that the parity information does not have to be one bit, and multiple bits of parity information may be added. Also, parity information is not required, and a format in which no parity information is added may be used.
[0048] The data bit arrangement may also be in LSB (Least Significant Bit) first format, starting with the least significant data D0, followed by data D1, D2, D3, ..., D6, and ending with the most significant data D7. In this embodiment, one byte of data is transmitted in an eight-bit period, but one byte of data may also be transmitted in a bit period other than eight bits.
[0049] <Broadcast communication> 4 shows the waveforms of signals transmitted and received in broadcast communication. In broadcast communication, the camera 200 (camera microcomputer 205), which is the communication master, outputs Low to the notification channel CS. This causes the camera 200 to notify the interchangeable lens 100 (lens microcomputer 111) and intermediate adapter 300 (adapter microcomputer 302), which are communication slaves, of the start of broadcast communication. Next, the camera microcomputer 205 transmits data to the lens microcomputer 111 and adapter microcomputer 302 via the data communication channel DATA.
[0050] Meanwhile, the lens microcomputer 111 and the adapter microcomputer 302 output a low signal to the notification channel CS in response to detecting the start bit ST described above via the data communication channel DATA. Note that, since the camera microcomputer 205 is outputting a low signal at the time the lens microcomputer 111 and the adapter microcomputer 302 output a low signal to the notification channel CS, the signal level of the notification channel CS remains low.
[0051] The lens microcomputer 111 and the adapter microcomputer 302 output a low signal to the notification channel CS to notify the camera microcomputer 205 of a communication standby request. The communication standby request is for temporarily suspending communication in the camera system, and the presence or absence of a communication standby request is determined by the signal level of the notification channel CS.
[0052] After transmitting all data, the camera microcomputer 205 outputs a high signal to the notification channel CS. After receiving the stop bit SP transmitted from the data communication channel DATA, the lens microcomputer 111 and the adapter microcomputer 302 analyze the received data and perform internal processing corresponding to the received data. Thereafter, the lens microcomputer 111 and the adapter microcomputer 302 output a high signal to the notification channel CS in response to being ready to perform the next communication.
[0053] When all components of the camera system output a High signal to the notification channel CS, the signal level of the notification channel CS becomes High. When the signal level of the notification channel CS returns to High, the camera microcontroller 205, lens microcontroller 111, and adapter microcontroller 302 can confirm that each component of the camera system is ready to perform the next communication.
[0054] 4, the data transmitted by the camera microcontroller 205 includes a transmission request command to the adapter microcontroller 302, and data transmission by the camera microcontroller 205 is followed by data transmission by the adapter microcontroller 302. Specifically, after the signal level of the notification channel CS becomes High, the adapter microcontroller 302 outputs Low to the notification channel CS. This notifies the lens microcontroller 111 and camera microcontroller 205 of the start of broadcast communication. Next, the adapter microcontroller 302 transmits data to the lens microcontroller 111 and camera microcontroller 205 via the data communication channel DATA.
[0055] Meanwhile, the lens microcomputer 111 and the camera microcomputer 205 output a low signal to the notification channel CS in response to detecting the start bit ST described above via the data communication channel DATA. Note that at the time the lens microcomputer 111 and the camera microcomputer 205 output a low signal to the notification channel CS, the adapter microcomputer 302 is already outputting a low signal to the notification channel CS, so the signal level of the notification channel CS remains low.
[0056] After transmitting all data, the adapter microcomputer 302 outputs a high signal to the notification channel CS. After receiving the stop bit SP transmitted from the data communication channel DATA, the lens microcomputer 111 and the camera microcomputer 205 analyze the received data and perform internal processing corresponding to the received data. After that, the lens microcomputer 111 and the camera microcomputer 205 output a high signal to the notification channel CS in response to being ready to perform the next communication.
[0057] When all components of the camera system output a High signal to the notification channel CS, the signal level of the notification channel CS becomes High. When the signal level of the notification channel CS returns to High, the camera microcontroller 205, lens microcontroller 111, and adapter microcontroller 302 can confirm that each component of the camera system is ready to perform the next communication.
[0058] As described above, in broadcast communication, the data transmitting side outputs Low to the notification channel CS to change the signal level of the notification channel CS from High to Low, thereby notifying the data receiving side of the start of broadcast communication. Also, the data receiving side changes the output to the notification channel CS from Low to High, thereby notifying each component of the camera system of the cancellation of the communication standby request.
[0059] 4 is merely an example, and other broadcast communications may be performed. For example, data transmitted and received in one broadcast communication may be multiple bytes instead of one byte of data.
[0060] Furthermore, when the communication method is switched from broadcast communication to P2P communication, the camera microcomputer 205 only transmits data to the lens microcomputer 111 and the adapter microcomputer 302 instructing them to switch the communication method.
[0061] <Specified communication> Figure 5 shows the waveforms of signals transmitted and received in partner-designated communication, a type of P2P communication. In partner-designated communication, the camera 200 (camera microcomputer 205), which is the communication master, performs one-to-one individual communication with one component selected (designated) as the communication slave from among the components (interchangeable lens 100 and intermediate adapter 300) that make up the camera system. Figure 5 shows the case where the interchangeable lens 100 (lens microcomputer 111) is selected as the communication slave (specific accessory device).
[0062] In partner-directed communication, information indicating the communication slave is transmitted by broadcast communication. In partner-directed communication, the data transmitting side transmits data to the data receiving side while maintaining the notification channel CS at High without outputting Low to the notification channel CS. In other words, in partner-directed communication, the voltage level of the notification channel CS during data transmission from the camera microcomputer 205 to the lens microcomputer 111 and the intermediate adapter 300 (adapter microcomputer 302) is made different from that in broadcast communication.
[0063] When switching from broadcast communication to designated communication is executed, data transmission from the camera microcomputer 205, which is the communication master, to the lens microcomputer 111 begins first. Figure 5 shows an example in which one byte of data is transmitted from the camera microcomputer 205 to the lens microcomputer 111, and then two bytes of data are transmitted from the lens microcomputer 111 to the camera microcomputer 205. The camera microcomputer 205 transmits data to the lens microcomputer 111 via the data communication channel DATA. Once the data transmission is complete, the camera microcomputer 205 outputs Low to the notification channel CS to notify a communication standby request. Then, once the camera microcomputer 205 is ready to receive data as the data receiving side, it again outputs High to the notification channel CS.
[0064] Meanwhile, the lens microcomputer 111 recognizes that data transmission from the camera microcomputer 205 has been completed when the signal level of the notification channel CS goes low, and analyzes the received data and performs internal processing corresponding to the received data. In the example of Figure 5, the data received from the camera microcomputer 205 includes a data transmission request from the lens microcomputer 111 to the camera microcomputer 205, and the lens microcomputer 111 generates data to transmit to the camera microcomputer 205.
[0065] Thereafter, the lens microcontroller 111 recognizes that the communication standby request has been canceled when the signal level of the notification channel CS returns to High, and transmits two bytes of data to the camera microcontroller 205. When the data transmission is complete, the lens microcontroller 111 outputs Low to the notification channel CS to notify the communication standby request. Then, after the lens microcontroller 111 is ready to receive data as the data receiving side, it again outputs High to the notification channel CS. Note that the adapter microcontroller 302 that is not selected as the communication partner in the partner-specified communication does not change its output to the notification channel CS and is not involved in sending or receiving data.
[0066] The lens microcomputer 111 determines whether the designated communication is continuing or has switched to broadcast communication based on the timing of data transmission from the camera microcomputer 205 after the notification channel CS is again outputted as High. If the lens microcomputer 111 receives data from the camera microcomputer 205 while the signal level of the notification channel CS remains High, the lens microcomputer 111 determines that the designated communication is continuing. On the other hand, if the lens microcomputer 111 receives data from the camera microcomputer 205 after the signal level of the notification channel CS has changed to Low, the lens microcomputer 111 determines that the communication has switched from designated communication to broadcast communication.
[0067] As described above, in partner-directed communication, the data sending side notifies the data receiving side that the data sending side has completed sending data by changing the output to the notification channel CS from High to Low. Therefore, in partner-directed communication, multiple data frames can be sent consecutively until the data sending side changes the signal level of the notification channel CS. Because the communication configuration does not insert communication from the communication master every time the communication slave sends one data frame, communication between the camera microcomputer 205 and accessory devices such as the lens microcomputer 111 and the adapter microcomputer 302 can be performed at high speed.
[0068] In this camera system, the camera microcomputer 205, lens microcomputer 111, and adapter microcomputer 302 switch the notification channel CS between Low and High so that the signal level of the notification channel CS changes after data transmission. This change in the signal level of the notification channel CS signals switching between the data sending side and the data receiving side. The data sending side then notifies a communication standby request by maintaining the signal level of the notification channel CS at Low until it is ready to receive data as the data receiving side in the next communication.
[0069] <Switching between broadcast communication and destination-specific communication> 6 shows signal waveforms when broadcast communication and designated-party communication are switched and executed. In both broadcast communication and designated-party communication, the camera 200 (camera microcomputer 205) acts as the communication master and communicates with the intermediate adapter 300 (adapter microcomputer 302) and the interchangeable lens 100 (lens microcomputer 111). Information indicating the communication partner for the camera microcomputer 205 in designated-party communication is notified in the broadcast communication.
[0070] First, information indicating that the adapter microcontroller 302 has been selected as the communication partner in the partner-specific communication is transmitted and received in broadcast communication, and then the partner-specific communication is performed between the camera microcontroller 205 and the adapter microcontroller 302. Hereinafter, information indicating the communication partner in the partner-specific communication will be referred to as communication-partner designation data. Hereinafter, a case will be described in which the communication-partner designation data has the function of a command to switch from broadcast communication to partner-specific communication. Note that the switch to partner-specific communication may be performed by transmitting and receiving a signal that instructs the switch from broadcast communication to partner-specific communication, separate from the communication-partner designation data.
[0071] After receiving the communication-partner designation data, the lens microcomputer 111 that has not been selected as the communication partner in the partner-designated communication outputs High to the notification channel CS when it has finished analyzing and internally processing the data received from the camera microcomputer 205. Then, while partner-designated communication is being performed between the camera microcomputer 205 and the adapter microcomputer 302, it maintains the setting corresponding to broadcast communication without changing the output to the notification channel CS.
[0072] When the switch to partner-specific communication is complete, the adapter microcontroller 302 outputs a High signal to the notification channel CS, thereby notifying the camera microcontroller 205 of the completion of the switch of the communication method. When the switch to partner-specific communication is complete, the camera microcontroller 205 also outputs a High signal to the notification channel CS. When the lens microcontroller 111 that is not selected as a communication partner in partner-specific communication finishes analyzing the data received from the camera microcontroller 205 and performing internal processing, it outputs a High signal to the notification channel CS.
[0073] When the camera microcomputer 205 detects that the signal level of the notification channel CS has become High, it starts the designated communication shown in Fig. 5. The outline of the designated communication is as explained in Fig. 5.
[0074] When the designated communication between the camera microcomputer 205 and the adapter microcomputer 302 is completed, the camera microcomputer 205 transmits, by broadcast communication, communication-designated data indicating that the lens microcomputer 111 has been selected as the communication partner in the designated communication. Then, designated communication is performed between the camera microcomputer 205 and the lens microcomputer 111.
[0075] The adapter microcomputer 302 recognizes that switching from designated communication to broadcast communication has been performed when the signal level of the notification channel CS becomes Low before data is transmitted from the camera microcomputer 205.
[0076] <Broadcast communication processing> The flowchart in Figure 7 shows the broadcast communication processing executed by the camera microcomputer 205 as the communication master and the adapter microcomputer 302 as the communication slave. The camera microcomputer 205 and the adapter microcomputer 302 perform the processing shown in the flowchart in Figure 7 in accordance with a computer program. Note that in the flowcharts in Figure 7 and other figures described below, "S" denotes a step. Furthermore, the broadcast communication processing executed by the lens microcomputer 111 is basically the same as the broadcast communication processing executed by the adapter microcomputer 302, so a description thereof will be omitted.
[0077] The camera microcomputer 205 determines whether an event to start broadcast communication has occurred in S100. If an event to start broadcast communication has occurred, the camera microcomputer 205 proceeds to S101, and if no event has occurred, the camera microcomputer 205 repeats the determination in S100.
[0078] In S101, the camera microcomputer 205 outputs Low to the notification channel CS to set the signal level of the notification channel CS to Low, thereby notifying the lens microcomputer 111 and the adapter microcomputer 302 of the start of broadcast communication.
[0079] Next, in S102, the camera microcomputer 205 operates the input / output changeover switch 2082 to connect the data communication channel DATA to the data output unit of the camera microcomputer 205. Then, in S103, data transmission begins.
[0080] Next, in S104, the camera microcomputer 205 determines whether the data transmitted in S103 includes a transmission request command. The transmission request command is a command that requests a communication slave that has received data transmitted from the camera microcomputer 205 as the communication master to transmit data to the camera microcomputer 205.
[0081] If the data sent from the camera microcontroller 205 in S103 does not include a transmission request command, the camera microcontroller 205 proceeds to S105, and after data transmission from the camera microcontroller 205 is completed, it cancels the output of Low to the notification channel CS and proceeds to S116.
[0082] If the data transmitted from the camera microcomputer 205 in S103 includes a transmission request command, the process proceeds to S106. In S106, after the data transmission from the camera microcomputer 205 is completed, the data communication channel DATA is connected to the data input unit of the camera microcomputer 205, and the process proceeds to S107. In S107, the camera microcomputer 205 cancels the Low output to the notification channel CS and outputs High.
[0083] Next, in S108, the camera microcomputer 205 determines whether the signal level of the notification channel CS has become High. This determination is continued until the signal level of the notification channel CS becomes High. When the signal level of the notification channel CS is High, this indicates that the camera system is in a state where communication is possible. When the signal level of the notification channel CS becomes High, the camera microcomputer 205 determines in S109 whether the signal level of the notification channel CS has become Low. This determination is continued until the signal level of the notification channel CS becomes Low.
[0084] In response to the signal level of the notification channel CS becoming Low, communication is initiated from the adapter microcomputer 302, which is the communication slave, to the camera microcomputer 205. When the camera microcomputer 205 determines that the signal level of the notification channel CS has become Low, it permits reception of data on the data communication channel DATA in S110.
[0085] Next, in S111, the camera microcomputer 205 determines whether or not it has received a start bit included in the data transmitted from the adapter microcomputer 302. This determination is continued until it receives the start bit.
[0086] Upon receiving the start bit, the camera microcomputer 205 proceeds to S112, outputs a low signal to the notification channel CS, and determines in S113 whether or not it has received a stop bit, i.e., whether or not it has received all of the data transmitted from the adapter microcomputer 302. This determination continues until it receives the stop bit. Upon receiving the stop bit, the camera microcomputer 205 prohibits reception of data on the data communication channel DATA in S114, analyzes the received data, and performs internal processing corresponding to the received data. Thereafter, the camera microcomputer 205 cancels the low signal output to the notification channel CS and outputs a high signal in S115.
[0087] Next, in S116, the camera microcomputer 205 determines whether the signal level of the notification channel CS has become High. This determination is continued until the signal level of the notification channel CS becomes High. When the signal level of the notification channel CS becomes High, the camera microcomputer 205 determines in S117 whether the data transmitted in S103 was communication-partner-specifying data. If it is communication-partner-specifying data, the camera microcomputer 205 proceeds to S118 and shifts to communication with a specified partner. If it is not communication-partner-specifying data, the camera microcomputer 205 continues broadcast communication.
[0088] Meanwhile, in S200, the adapter microcomputer 302 determines whether the signal level of the notification channel CS has become low. This determination is continued until the signal level of the notification channel CS becomes low. In response to the signal level of the notification channel CS becoming low, data transmission from the camera microcomputer 205, which is the communication master, begins. Therefore, in S201, the adapter microcomputer 302 permits reception of data on the data communication channel DATA.
[0089] Next, in S202, the adapter microcomputer 302 determines whether or not a start bit has been received. If the start bit has not been received, the camera microcomputer 205 proceeds to S203 and determines whether or not the signal level of the notification channel CS is High.
[0090] The adapter microcomputer 302 performs the processes of S203 and S204 to handle a situation in which designated 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 will not receive data from the camera microcomputer 205, and therefore prohibits reception of data on the data communication channel DATA in S204.
[0091] As explained in the section <Specified Communication> using Figure 5, the signal level of the notification channel CS also changes between High and Low in specified communication. The signal level of the notification channel CS is normally High, and in broadcast communication it is set to Low when notifying a communication standby request or when notifying the start of communication. In specified communication, it is set to Low when notifying a communication standby request.
[0092] In S202, the adapter microcontroller 302 may not receive the start bit from the camera microcontroller 205 in the following situations: The first is a situation in which the camera microcontroller 205 has set the signal level of the notification channel CS to Low but has not yet started data transmission. The second is a situation in which the camera microcontroller 205 and lens microcontroller 111 are performing partner-specific communication, and the adapter microcontroller 302 is not involved in the partner-specific communication.
[0093] In the first situation, the signal level of the notification channel CS does not become high, so the adapter microcontroller 302 returns from S203 to S202 and repeats the determinations of S202 and S203 until data transmission from the camera microcontroller 205 begins. In the second situation, the signal level of the notification channel CS is high without either the camera microcontroller 205 or the lens microcontroller 111 notifying a communication standby request. In this situation, the adapter microcontroller 302 basically proceeds from S203 to S204, and data reception on the data communication channel DATA is prohibited. Note that in partner-specified communication, if a communication standby request has been notified, the adapter microcontroller 302 returns from S203 to S202 and performs the determination of S203 again. The determination of S203 may be performed multiple times, but once the communication standby request is released and the signal level of the notification channel CS becomes high, the adapter microcontroller 302 proceeds from S203 to S204.
[0094] As described above, by adding the processes of S203 and S204, it is possible to use both broadcast communication and designated communication in the camera system. In this embodiment, designated communication is performed between the camera microcomputer 205 and the lens microcomputer 111, while the adapter microcomputer 302 is put into standby in a state compatible with broadcast communication.
[0095] Upon receiving the start bit in S202, the adapter microcomputer 302 starts analyzing the received data and internal processing corresponding to the received data, and outputs Low to the notification channel CS, thereby notifying each component of the camera system of a communication standby request.
[0096] Next, in S206, the adapter microcomputer 302 determines whether or not a stop bit has been received. This determination continues until the stop bit is received. Upon receiving the stop bit, the adapter microcomputer 302 prohibits data reception on the data communication channel DATA in S207 and continues analyzing the received data and performing internal processing corresponding to the received data. When internal processing of the data is complete and the adapter microcomputer 302 is ready to execute the next data communication, in S208 the adapter microcomputer 302 cancels the Low output to the notification channel CS and outputs High.
[0097] Next, in S209, the adapter microcontroller 302 determines whether or not a transmission request command is included in the data received from the camera microcontroller 205. If a transmission request command is included, the adapter microcontroller 302 proceeds to S210 and determines whether or not the signal level of the notification channel CS has become High. This determination is continued until the signal level of the notification channel CS becomes High. When the signal level of the notification channel CS is High, this indicates that the camera system is ready for communication. If a transmission request command is not included in the data received from the camera microcontroller 205, the adapter microcontroller 302 proceeds to S215, which will be described later.
[0098] If it is determined in S210 that the signal level of the notification channel CS is High, the adapter microcontroller 302 proceeds to S211. In S211, the adapter microcontroller 302 outputs Low to the notification channel CS to set the signal level of the notification channel CS to Low, thereby notifying the camera microcontroller 205 and the lens microcontroller 111 of the start of broadcast communication.
[0099] Next, in S212, the adapter microcomputer 302 operates the input / output changeover switch 3032 to connect the data communication channel DATA to the data output section of the adapter microcomputer 302. Then, in S213, data transmission begins.
[0100] When data transmission is complete, the adapter microcomputer 302 stops outputting a low signal to the notification channel CS and outputs a high signal in S214. Next, in S215, the adapter microcomputer 302 determines whether the signal level of the notification channel CS has become high. This determination is continued until the signal level of the notification channel CS becomes high.
[0101] When the signal level of the notification channel CS becomes High, the adapter microcontroller 302 proceeds to S216. In S216, the adapter microcontroller 302 determines whether the data received from the camera microcontroller 205 is communication-partner-specified data, and whether the adapter microcontroller 302 itself has been selected as the communication partner of the camera microcontroller 205 in the partner-specified communication. If the adapter microcontroller 302 has been selected as the communication partner of the camera microcontroller 205, the adapter microcontroller 302 proceeds to S217 and allows data reception on the data communication channel DATA. Then, in S218, the process shifts from broadcast communication to partner-specified communication.
[0102] If the data received from the camera microcomputer 205 is not communication partner-specified data or if the adapter microcomputer 302 is not selected as the communication partner in the communication partner-specified, the adapter microcomputer 302 continues the broadcast communication without transitioning to communication partner-specified.
[0103] <Partner-specific communication processing> The flowchart in Figure 8 shows the partner-specified communication processing executed by the camera microcomputer 205 as the communication master and the lens microcomputer 111 as the communication slave. The camera microcomputer 205 and lens microcomputer 111 perform the processing shown in the flowchart in Figure 8 in accordance with a computer program. The partner-specified communication processing executed by the adapter microcomputer 302 is basically the same as the partner-specified communication processing executed by the lens microcomputer 111, so a description thereof will be omitted.
[0104] In S300, the camera microcomputer 205 determines whether an event to start communication with a designated party has occurred. If an event to start communication with a designated party has occurred, the camera microcomputer 205 proceeds to S301, and if no event has occurred, the camera microcomputer 205 repeats the determination in S300.
[0105] In S301, the camera microcomputer 205 operates the input / output changeover switch 2082 to connect the data communication channel DATA to the data output unit of the camera microcomputer 205. Then, in S302, data transmission begins.
[0106] In S303, the camera microcomputer 205 outputs Low to the notification channel CS to set the signal level of the notification channel CS to Low. As a result, the camera microcomputer 205 issues a communication standby request to the lens microcomputer 111, which is the communication slave. The lens microcomputer 111 does not transmit data to the camera microcomputer 205 while the signal level of the notification channel CS is Low.
[0107] In S304, the camera microcomputer 205 determines whether the data transmitted in S302 includes a transmission request command. A transmission request command is a command that requests the communication slave to transmit data to the camera microcomputer 205. If the transmission data does not include a transmission request command, no data will be transmitted from the lens microcomputer 111. In this case, the camera microcomputer 205 proceeds from S304 to S305 and checks whether the lens microcomputer 111 has issued a communication standby request.
[0108] Specifically, the camera microcomputer 205 cancels the output of Low to the notification channel CS in S305, and then determines whether the signal level of the notification channel CS is Low in S306, thereby determining whether the lens microcomputer 111 has set the signal level of the notification channel CS to Low, that is, whether the lens microcomputer 111 has notified a communication standby request.
[0109] Upon receiving data from the camera microcomputer 205, the lens microcomputer 111 outputs a low signal to the notification channel CS for a certain period of time in order to analyze the data and perform internal processing, thereby issuing a communication standby request. The processing of S306 is performed to recognize the notification standby request from the lens microcomputer 111. After the processing of S305, the signal level of the notification channel CS may temporarily become high. In this case, the camera microcomputer 205 performs the determination of S306 and waits until the signal level of the notification channel CS becomes low. After confirming that the signal level of the notification channel CS has become low in S306, the camera microcomputer 205 proceeds to S311.
[0110] Also, in S304, if the data transmitted in 302 is a transmission request command, the camera microcomputer 205 proceeds to S307.
[0111] In S307, the camera microcomputer 205 operates the input / output changeover switch 2082 to connect the data communication channel DATA to the data input unit of the camera microcomputer 205. Furthermore, in S308, the output of Low to the notification channel CS is canceled and a High is output.
[0112] The camera microcomputer 205 receives data from the lens microcomputer 111 while the signal level of the notification channel CS is high, and determines in S309 whether the signal level of the notification channel CS has gone low. When the signal level of the notification channel CS has gone low, the camera microcomputer 205 determines that data transmission by the lens microcomputer 111 has been completed, and performs data analysis in S310.
[0113] Next, in S311, the camera microcomputer 205 determines whether the signal level of the notification channel CS has become High. This determination is continued until the signal level of the notification channel CS becomes High. The state in which the signal level of the notification channel CS is High means that the lens microcomputer 111 as a communication slave is in a state in which data communication is possible.
[0114] When the signal level of the notification channel CS becomes High, the camera microcomputer 205 proceeds to S312 and determines whether an event for transitioning to broadcast communication has occurred. If an event for transitioning to broadcast communication has occurred, the camera microcomputer 205 proceeds to S313 and transitions to broadcast communication. If an event for transitioning to broadcast communication has not occurred, the camera microcomputer 205 continues with the designated communication.
[0115] On the other hand, when the lens microcomputer 111 switches from broadcast communication to designated communication, it first receives data transmitted from the camera microcomputer 205. While the lens microcomputer 111 is receiving the data transmitted from the camera microcomputer 205, the signal level of the notification channel CS is maintained at High.
[0116] In S400, the lens microcomputer 111 determines whether the signal level of the notification channel CS has become Low. When the signal level of the notification channel CS has become Low, the lens microcomputer 111 determines that data transmission by the camera microcomputer 205 has been completed, and performs data analysis in S401.
[0117] Next, in S402, the lens microcomputer 111 determines whether the signal level of the notification channel CS has become High. This determination is continued until the signal level of the notification channel CS becomes High. When the signal level of the notification channel CS is Low, the camera microcomputer 205 is notifying a communication standby request.
[0118] When the signal level of the notification channel CS becomes High, in S403, the lens microcomputer 111 determines whether or not a transmission request command is included in the data received from the camera microcomputer 205. If a transmission request command is not included in the received data, the process proceeds to S404.
[0119] In S404, the lens microcomputer 111 sets the signal level of the notification channel CS to Low to notify the camera microcomputer 205 of a communication standby request in order to perform internal processing on the data received from the camera microcomputer 205. When the lens microcomputer 111 becomes capable of communication, the lens microcomputer 111 sets the signal level of the notification channel CS to High in S405 to cancel the communication standby request, and then proceeds to S411.
[0120] If the data received from the camera microcomputer 205 in S403 includes a transmission request command, the lens microcomputer 111 proceeds to S406. In S406, the lens microcomputer 111 operates the input / output selector switch 1122 to connect the data communication channel DATA to the data output unit of the lens microcomputer 111. Then, in S407, data transmission to the camera microcomputer 205 begins.
[0121] In S408 after completing data transmission to the camera microcomputer 205, the lens microcomputer 111 outputs Low to the notification channel CS to set the signal level of the notification channel CS to Low. As a result, the lens microcomputer 111 issues a communication standby request to the camera microcomputer 205, which is the communication master. While the signal level of the notification channel CS is Low, the camera microcomputer 205 does not transmit data to the lens microcomputer 111.
[0122] In S409, the lens microcomputer 111 operates the input / output changeover switch 1122 to connect the data communication channel DATA to the data input unit of the lens microcomputer 111. Then, in S410, the low output to the notification channel CS is canceled and a high output is output.
[0123] In S411, the lens microcomputer 111 determines whether the signal level of the notification channel CS has become High. This determination is continued until the signal level of the notification channel CS becomes High. When the signal level of the notification channel CS has become High, this means that the camera microcomputer 205 and the lens microcomputer 111 are able to communicate with each other.
[0124] As described above, the voltage level of the notification channel CS is made different for broadcast communication and for partner-specified communication while data is being transmitted from the camera 200 to the interchangeable lens 100 and the intermediate adapter 300. This type of communication system allows the camera 200 to select any communication partner according to the situation at the time, and to communicate with any freely specified communication partner until it becomes necessary to change the communication partner.
[0125] <Time-division communication> FIG. 9 shows waveforms of signals transmitted and received in time-division communication in P2P communication. In time-division communication, as in partner-specific communication, the camera 200 acts as the communication master and performs one-to-one communication with one of the components of the camera system selected as the communication slave. In the partner-specific communication described above, a communication partner is specified by broadcast communication, and one-to-one communication with the same communication partner can be performed without re-specifying the communication partner until it becomes necessary to switch the communication partner. Furthermore, if multiple accessory devices are connected to the camera 200, the next communication partner can be freely selected. However, in partner-specific communication, when switching the communication partner, communication with the current communication partner must be terminated, and the next communication partner must be specified by broadcast communication before communication with that communication partner can be started, which takes time.
[0126] In contrast, in time-division communication, the timing for switching communication partners and communication direction is predetermined. Therefore, although it is not possible to select communication partners at any time, it is possible to reduce the time required to switch communication partners.
[0127] In Figure 9, the communication master is the camera 200, and the communication slaves are the interchangeable lens 100 and intermediate adapter 300. In time-division communication, a basic communication cycle is determined, which is represented by cycle T in Figure 9. Furthermore, for data sent and received over the data communication channel DATA, the sender, receiver, maximum number of pieces of data, order, etc. are uniquely determined for each communication cycle. How these communication cycles, senders, receivers, maximum number of pieces of data, order, etc. are determined will be explained later using Figures 12 and 13.
[0128] 9, one or more chunks of data transmitted by the camera 200 and received by the interchangeable lens 100 are represented as "C→L." "→" indicates the direction of communication, and "C→L" and "L→C" respectively indicate communication in one direction (from the camera 200 to the interchangeable lens 100) and communication in the opposite direction (from the interchangeable lens 100 to the camera 200) between the camera 200 and the interchangeable lens 100.
[0129] Here, a block of data with a fixed sender (e.g., camera 200) and receiver (e.g., interchangeable lens 100) is referred to as a data packet. A data packet transmitted by interchangeable lens 100 and received by camera 200 is represented as "L→C," and a data packet transmitted by camera 200 and received by intermediate adapter 300 is represented as "C→A." Furthermore, a data packet transmitted by intermediate adapter 300 and received by camera 200 is represented as "A→C." Furthermore, in this embodiment, "C→L" and "L→C" occur in every cycle, but "C→A" and "A→C" occur only once every two cycles. In time-division communication, it is possible to freely determine how many types of data packets exist in each cycle and how many cycles they occur in.
[0130] It should be noted that the camera 200 is always either the sender or the receiver of each data packet in time-division communication, and therefore cases where it is neither are omitted in FIG.
[0131] As with designated communication, the data sending side does not output a low signal to the notification channel CS, but instead keeps the notification channel CS high and transmits data to the data receiving side. Taking "C → L" and "L → C" as examples, the camera microcomputer 205 sends data to the lens microcomputer 111 via the data communication channel DATA while keeping the notification channel CS high. Once the camera microcomputer 205 has completed transmitting the data packet, it sets the signal level of the notification channel CS to low to notify a communication standby request. Then, once the camera microcomputer 205 is ready to receive data as the data receiving side, it returns the signal level of the notification channel CS to high.
[0132] Meanwhile, the lens microcomputer 111 recognizes that data transmission from the camera microcomputer 205 is complete when the signal level of the notification channel CS goes low, and then analyzes the received data and performs internal processing corresponding to the received data. Furthermore, the lens microcomputer 111 generates data to be transmitted to the camera microcomputer 205 using the data packet "L→C." After that, the lens microcomputer 111 recognizes that the communication standby request has been canceled when the signal level of the notification channel CS returns to high, and transmits the data packet "L→C" to the camera microcomputer 205. Upon completing this transmission, the lens microcomputer 111 changes the signal level of the notification channel CS to low to notify the communication standby request. Then, once the lens microcomputer 111 is ready to receive data as the data receiver, it returns the signal level of the notification channel CS to high. During this time, the adapter microcomputer 302, which is not involved in one-to-one communication, does not affect either the notification channel CS or the data communication channel DATA as the data receiver. Even when the sender and receiver change, the transmission and reception operations are the same as described above.
[0133] Furthermore, the period T is controlled by the camera microcomputer 205. If the sum of the communication time, communication standby request time, and standby time that does not belong to either of the above, of each data packet in one period does not reach the period T, the camera microcomputer 205 waits for communication until the start of the next period.
[0134] <Time-division communication processing> The flowchart in Figure 10 shows time-division communication processing (communication control method) executed by the camera microcomputer 205 as the communication master and the lens microcomputer 111 as the communication slave. The camera microcomputer 205 and lens microcomputer 111 perform the processing shown in the flowchart in Figure 10 in accordance with a computer program. The partner-specified communication processing executed by the adapter microcomputer 302 is basically the same as the partner-specified communication processing executed by the lens microcomputer 111, so a description thereof will be omitted. Also, as in Figure 9, Figure 10 omits the case where the camera 200 is neither the sender nor the receiver of the time-division communication.
[0135] In S500, the camera microcomputer 205 checks whether the signal level of the notification channel CS is High, and if it is High, proceeds to S501, and if it is Low, waits until it becomes High.
[0136] In S501, the camera microcomputer 205 determines whether the camera microcomputer 205 is to transmit the next data packet, and if so, proceeds to S502, and if not, proceeds to S510.
[0137] In S502, the camera microcomputer 205 determines whether the cycle T as a communication cycle can be maintained if processing continues as is, and if the cycle T cannot be maintained (i.e., it is too fast), the processing waits by repeating the determination in S502, and after an appropriate time has passed, the processing proceeds to S503. Note that the waiting in S502 occurs only when the first data packet of each cycle T in Fig. 9 is transmitted; at other times, it is determined in S502 that the cycle T can be maintained and the processing proceeds to S503.
[0138] In S503, the camera microcomputer 205 connects the data communication channel DATA to the data output unit of the camera microcomputer 205, and starts data transmission in S504.
[0139] In S505, the camera microcomputer 205 outputs Low to the notification channel CS to set the signal level of the notification channel CS to Low, thereby notifying the next data packet sender of a communication standby request.
[0140] Thereafter, in S506, the camera microcomputer 205 determines whether or not the camera microcomputer 205 is to transmit the next data packet, and if so, the process proceeds to S507.
[0141] In S507, the camera microcomputer 205 generates the next data packet to be transmitted, and when the data packet to be transmitted is ready, the process proceeds to S508, where the Low output to the notification channel CS is canceled.
[0142] If the camera microcomputer 205 determines in S506 that it will not transmit the next data packet (that is, that it will receive the next data packet), the camera microcomputer 205 proceeds to S509.
[0143] In S509, the camera microcomputer 205 connects the data communication channel DATA to the data input unit of the camera microcomputer 205, and then in S508, cancels the output of Low to the notification channel CS.
[0144] The camera microcomputer 205 proceeds from S501 to S510 and determines whether the signal level of the notification channel CS is low. If it is not low, the determination is repeated; if it is low, the received data is analyzed in S512.
[0145] Next, in S513, the camera microcomputer 205 determines whether the camera microcomputer 205 is to transmit the next data packet, and if so, proceeds to S514. If not (i.e., the camera microcomputer 205 is to receive the next data packet), proceeds to "END".
[0146] In S514, the camera microcomputer 205 generates a data packet to be transmitted next. At this time, since it is not the camera microcomputer 205 that has set the signal level of the notification channel CS to Low, the camera microcomputer 205 does not cancel the output of Low to the notification channel CS. The camera microcomputer 205 then proceeds to "END".
[0147] "END" indicates the end of processing for one data packet, after which the camera microcomputer 205 returns to S500 again to start processing the next data packet.
[0148] Meanwhile, in S600, the lens microcomputer 111 checks whether the signal level of the notification channel CS is High. If it is High, the lens microcomputer 111 proceeds to S601, and if it is Low, the lens microcomputer 111 waits for it to become High.
[0149] In S601, the lens microcomputer 111 determines whether or not the lens microcomputer 111 is to transmit the next data packet, and if so, the process proceeds to S603, and if not, the process proceeds to S610.
[0150] In S603, the lens microcomputer 111 connects the data communication channel DATA to the data output unit of the lens microcomputer 111, and starts data transmission in S604.
[0151] Next, in S605, the lens microcomputer 111 outputs Low to the notification channel CS to set the signal level of the notification channel CS to Low, thereby causing the lens microcomputer 111 to notify the sender of the next data packet of a communication standby request.
[0152] Thereafter, in S606, the lens microcomputer 111 determines whether or not the lens microcomputer 111 is to transmit the next data packet, and if so, the process proceeds to S607.
[0153] In S607, the lens microcomputer 111 generates the next data packet to be transmitted. When the data packet to be transmitted is ready, the lens microcomputer 111 proceeds to S608 and stops outputting Low to the notification channel CS.
[0154] If the lens microcomputer 111 determines in S606 that it will not transmit the next data packet, it proceeds to S609 and connects the data communication channel DATA to the data input unit of the lens microcomputer 111. It then proceeds to S608 and cancels the Low output to the notification channel CS.
[0155] The camera microcomputer 205 proceeds from S601 to S610, where it determines whether the signal level of the notification channel CS is low, and if it is not low, it repeats the determination. If it is low, it proceeds to S611.
[0156] In S611, the lens microcomputer 111 determines whether or not the lens microcomputer 111 is currently receiving a data packet (i.e., whether or not the lens microcomputer 111 is a recipient). If it is a recipient, the process proceeds to S612, where it analyzes the received data, and then to S613. If it is not a recipient, the process proceeds to S613 without analyzing the data.
[0157] In S613, the lens microcomputer 111 determines whether or not the lens microcomputer 111 is to transmit the next data packet, and if so, proceeds to S614, otherwise proceeds to "END".
[0158] In S614, the lens microcomputer 111 generates the next data packet to be transmitted. At this time, it is not the lens microcomputer 111 that has set the signal level of the notification channel CS to Low, so the lens microcomputer 111 does not cancel the Low output. The lens microcomputer 111 then proceeds to "END".
[0159] "END" indicates the end of processing for one data packet, after which the lens microcomputer 111 returns to S600 again to start processing the next data packet.
[0160] <Switching to time-division communication> Fig. 11 shows signal waveforms when broadcast communication and time division communication are switched and executed. In Fig. 11, broadcast communication and designated communication are performed until time division communication starts, and switching between these communications is as explained in Fig. 6. Furthermore, before the communication explained in Fig. 11, the camera microcomputer 205 recognizes in advance the number of attached accessory devices by detecting accessory authentication communication (not shown) or the voltage level of the mount contact, etc.
[0161] 11, first, camera microcomputer 205 designates adapter microcomputer 302 as a communication partner via broadcast communication. Next, camera microcomputer 205 requests adapter microcomputer 302 to transmit information specific to intermediate adapter 300 (accessory specific information: hereinafter referred to as adapter specific information). In response to this request, adapter microcomputer 302 transmits the adapter specific information to camera microcomputer 205 via partner-designated communication.
[0162] The accessory-specific information (adapter-specific information and lens-specific information, which will be described later) includes various information specific to the accessory device, such as the ID information, functions, and communication speed of the accessory device. In particular, the four pieces of information (a1) to (a4) shown in Fig. 12 are important for determining the cycle of time-division communication, the configuration of data packets, etc. These pieces of information will be described in detail later.
[0163] 11, the data sent from the camera microcomputer 205 to the adapter microcomputer 302 is represented as a single block of data. However, this does not necessarily mean one byte or data indicating one type of information, but may also be data containing multiple pieces of information required to request adapter-specific information. The same applies to the data sent from the adapter microcomputer 302 and the data sent from the lens microcomputer 111, which will be described later.
[0164] After the camera microcomputer 205 has acquired the adapter-specific information from the adapter microcomputer 302, the camera microcomputer 205 designates the lens microcomputer 111 as the communication partner via broadcast communication. Next, the camera microcomputer 205 requests the lens microcomputer 111 to transmit lens-specific information that is information specific to the interchangeable lens 100. In accordance with this request, the lens microcomputer 111 transmits the lens-specific information to the camera microcomputer 205 via partner-designated communication.
[0165] Through the communication up to this point, camera microcomputer 205 acquires all the information necessary to start time-division communication. Hereinafter, the accessory-specific information acquired from each accessory device, including the information important for time-division communication shown in Fig. 12, and the information indicating the number of accessory devices attached to camera 200, will be collectively referred to as accessory characteristic information (information related to accessory devices or accessory information).
[0166] The camera microcomputer 205 determines setting information for performing time-division communication based on the acquired accessory characteristic information and information specific to the camera 200 itself (information about the camera: hereinafter referred to as camera-specific information). This setting information for time-division communication (hereinafter referred to as time-division setting information) includes the period T, the configuration of data packets within one period T, the baud rate (communication speed), the length, number, type, and order of data packets, etc. Details of this time-division setting information will be described later.
[0167] After this, the camera microcomputer 205 transmits a time division communication start command to all accessory devices by broadcast communication. In this embodiment, the time division communication start command includes the time division setting information described above, and each accessory device prepares to start time division communication based on that information and transitions to time division communication. Note that the time division setting information may be transmitted to all accessory devices at a different timing as information separate from the time division communication start command. At this time, the time division setting information may be transmitted to all accessory devices by partner-specified communication. Details of time division communication are as described in Figures 9 and 10.
[0168] <Time sharing setting information> 12 shows four pieces of information included in the accessory characteristic information from the lens-specific information and adapter-specific information in this embodiment. In addition to these four pieces of information, the accessory characteristic information also includes information on the number of accessory devices attached to the camera 200.
[0169] The function (a1) refers to a function of each accessory device that is affected by or has an effect on time-division communication. Based on this information, the camera microcomputer 205 determines the minimum communication cycle that should be achieved for each accessory device.
[0170] The supported baud rates in (a2) represent the baud rates that each accessory device can support in time-division communication. The camera microcomputer 205 compares this supported baud rate information with the baud rates that the camera 200 can support, and selects the fastest baud rate that can be adopted by all accessory devices and the camera 200.
[0171] The communication direction switching time (a3) represents the maximum time required for each accessory device to prepare to send or receive a data packet. Specifically, t1 represents the time required from when the notification channel CS goes high until data transmission begins via the data communication channel DATA. t2 represents the time required from when data transmission via the data communication channel DATA is completed until a low signal is output to the notification channel CS. t3 represents the time required from when a low signal is output to the notification channel CS until the direction of the data communication channel DATA is switched to input and the low signal of the notification channel CS is released.
[0172] These times generally differ depending on the performance, clock frequency, firmware structure, etc. of the microcomputer (lens microcomputer 111 or adapter microcomputer 302) used by each accessory device. t1, t2, and t3 are also shown in FIG.
[0173] The transmission / reception buffer size (a4) represents the maximum amount (size) of data that each accessory device can transmit or receive at one time. Data packets transmitted and received between each accessory device and camera 200 must fit within this transmission / reception buffer size.
[0174] Fig. 13 shows the time-division setting information in this embodiment. The period (b1) represents the communication period (T) of time-division communication. The period is selected based on the function (a1) of the accessory characteristic information shown in Fig. 12, and is a frequency required for each accessory device and camera 200 to realize those functions. In this embodiment, the interchangeable lens 100 has an image stabilization function, and the camera 200 has a function to control the image stabilization function of the interchangeable lens 100. The intermediate adapter 300 also has an operating member (control ring) that can operate various setting values of the camera 200 (ISO sensitivity, shutter speed, etc.).
[0175] As shown in Figure 12, the cycle required for controlling the image stabilization function is 1 ms, and the cycle required for transmitting the amount of control ring operation is 16 ms. For this reason, 1 ms is selected as the cycle for time-division communication to match the most frequent communication. Although this is a slightly excessive frequency for intermediate adapter 300, communication can be performed every 1 ms, or it can be reduced to once every 16 cycles.
[0176] (b2) indicates the baud rate for time-division communication. This baud rate is selected as the fastest baud rate that can be adopted by all accessory devices and the camera 200 based on the corresponding baud rates shown in (a2) of Figure 12. In this embodiment, 2.5 Mbps is selected as shown in Figure 12.
[0177] (b3) represents the length (number of bytes) of each data packet. This is calculated from the time information (a2) to (a4) in FIG. 12 and the amount of data required for one cycle to realize the function (a1). In this embodiment, since a large amount of data is sent from the camera microcomputer 205 to the lens microcomputer 111 to control the image stabilization function, the data packet "C→L" is set to 32 bytes, and the other data packets are set to 20 bytes.
[0178] (b4) to (b6) represent the configuration of data packets contained within the cycle T determined in (b1). (b4) represents the maximum number of data packets that can exist within one cycle. This is determined by (a1), (b1), and the number of accessory devices attached to the camera 200. In this embodiment, the cycle T is 1 ms, and the camera 200 is equipped with one interchangeable lens 100 that needs to communicate every cycle and one intermediate adapter 300 that does not need to communicate every cycle. In other words, data packets "C → L" and "L → C" are transmitted and received every cycle, and data packets "C → A" and "A → C" can be transmitted and received at the necessary timing, so the maximum number of data packets included within one cycle is three.
[0179] (b5) indicates the type of data packet and the number of each data packet in one cycle. The type is determined by the combination of the sender (communication source) and the receiver (communication destination), such as "C → L." The number of each data packet in one cycle refers to the number of data packets present in each cycle within the range that satisfies the maximum number of packets specified in (b4). This is determined by (a1), (b1), and the number of accessory devices attached to the camera 200. In this embodiment, communication with the interchangeable lens 100 is required at a 1 ms interval and communication with the intermediate adapter 300 is required at a 16 ms interval. For this reason, the first to fourteenth cycles contain data packets "C → L" and "L → C," while the fifteenth cycle contains data packets "C → L" and "L → C," as well as a data packet "C → A." Furthermore, the sixteenth cycle contains data packets "C → L" and "L → C," as well as a data packet "A → C."
[0180] (b6) represents the order (predetermined order) of data packets within one cycle and is determined by (a1). The order is a parameter for dealing with various cases, such as when it is better for the function of (a1) to receive data earlier than to send it, or when it is better for data to be received from the intermediate adapter 300 before it is from the interchangeable lens 100. In this embodiment, because an accurate cycle is required for controlling the image stabilization function, the data packet "C→L" is always placed at the beginning of each cycle, followed by the data packet "L→C" which is the reply from the interchangeable lens 100. Communication for detecting control ring operation begins with the camera microcomputer 205 transmitting data to the adapter microcomputer 302 at a predetermined timing, so the data packet "C→A" is given priority over the data packet "A→C."
[0181] The method for determining the time-division setting information described above is merely an example, and other determination methods may be used. For example, the lowest baud rate that allows functionality to be realized may be selected to avoid communication noise. The length of each data packet may be set to the same length. Furthermore, the time-division setting information may be information that directly indicates the period T, the data packet structure, the baud rate, the length, number, type, and order of data packets, or information that can be converted into these. In other words, information related to the period T, the data packet structure, the baud rate, the length, number, type, and order of data packets may be sufficient.
[0182] <Switching to time-division communication> The flowchart in Figure 14 shows the process (communication control method) for switching from broadcast communication to time-division communication. This shows the process executed by the camera microcomputer 205 as the communication master and the lens microcomputer 111 as the communication slave. The camera microcomputer 205 and lens microcomputer 111 perform the process shown in the flowchart in Figure 14 in accordance with a computer program. The process executed by the adapter microcomputer 302 is basically the same as the process executed by the lens microcomputer 111, so a description thereof will be omitted.
[0183] In S700, the camera microcomputer 205 determines whether the number of accessory devices attached to the camera 200 has been determined. If the number has not yet been determined, the camera microcomputer 205 proceeds to S701, where it reads the voltage of the contact terminals provided on the mount 401 to determine the number of accessory devices. The contact terminals of the mount 401 are pulled up within the camera 200 and pulled down within the interchangeable lens 100. In the intermediate adapter 300, resistors are connected in series to the contact terminals of the camera-side mount 401 and the lens-side mount 400. As a result, the resistance value of the contact terminals of the lens-side mount 400 becomes higher than that of the contact terminals of the camera-side mount 401 as the number of accessory devices attached to the camera 200 increases. The camera microcomputer 205 determines the number of attached intermediate accessories by reading the voltage value of the contact terminals of the mount 401. Furthermore, the interchangeable lens 100 is an essential accessory device for the camera 200 and can be considered to be always attached to the camera 200. When the camera microcomputer 205 determines the number of attached accessory devices, the process proceeds to S702.
[0184] In S702, the camera microcomputer 205 determines whether or not the lens-specific information has been acquired from the lens microcomputer 111. If it has been acquired, the process proceeds to S705, and if it has not been acquired, the process proceeds to S703.
[0185] In S703, the camera microcomputer 205 outputs Low to the notification channel CS and transmits communication partner designation data for designating the lens microcomputer 111 as a communication partner to the lens microcomputer 111 via broadcast communication.
[0186] In S704, the camera microcomputer 205 keeps the notification channel CS at High and sends a request to send lens-specific information to the lens microcomputer 111. Thereafter, the camera microcomputer 205 temporarily outputs Low to the notification channel CS, and after completing preparations to receive data on the data communication channel DATA, it cancels the Low output to the notification channel CS and waits for a reply from the lens microcomputer 111. When the lens-specific information is returned from the lens microcomputer 111, the camera microcomputer 205 proceeds to S705.
[0187] In S705, the camera microcomputer 205 determines whether or not the adapter-specific information has been acquired from the adapter microcomputer 302. If it has been acquired, the process proceeds to S708, and if it has not been acquired, the process proceeds to S706.
[0188] In S706, the camera microcomputer 205 outputs Low to the notification channel CS and transmits communication partner designation data for designating the adapter microcomputer 302 as the communication partner by broadcast communication.
[0189] In S707, the camera microcomputer 205, while keeping the notification channel CS at High, sends a request to send adapter-specific information to the adapter microcomputer 302. Thereafter, the camera microcomputer 205 temporarily outputs Low to the notification channel CS, and after completing preparations to receive data on the data communication channel DATA, stops outputting Low to the notification channel CS and waits for a reply from the adapter microcomputer 302. When the adapter-specific information is returned from the adapter microcomputer 302, the process proceeds to S708.
[0190] In S708, the camera microcomputer 205 calculates time division setting information based on the number of attached accessory devices and characteristic information consisting of lens-specific information from the interchangeable lens 100 and adapter-specific information from the intermediate adapter 300.
[0191] In S709, the camera microcomputer 205 outputs Low to the notification channel CS and broadcasts a time-division communication start command to the lens microcomputer 111 and the adapter microcomputer 302. This time-division communication start command includes the time-division setting information described above.
[0192] In S710, the camera microcomputer 205 determines whether a predetermined time has elapsed since the time division communication start command was transmitted. The predetermined time may be, for example, the time of the period T, or another time. The predetermined time is the time required for each accessory device that received the time division communication start command to prepare to start time division communication. When the predetermined time has elapsed, the camera microcomputer 205 proceeds to S711 and starts time division communication.
[0193] Meanwhile, in S800, the lens microcomputer 111 determines whether or not it has been designated as a communication partner by the camera microcomputer 205. If it has not been designated as a communication partner, it waits until it is designated, and if it has been designated, it proceeds to S801.
[0194] In S801, the lens microcomputer 111 switches from broadcast communication to designated communication and waits for communication from the camera microcomputer 205.
[0195] In S802, the lens microcomputer 111 analyzes the communication from the camera microcomputer 205 and determines whether it is a request to send unique information. If it is a request to send unique information, the process proceeds to S803 to prepare for sending the lens unique information. Then, in S804, the camera microcomputer 205, which sent the request to send unique information, cancels the Low output to the notification channel CS and waits for the notification channel CS to go High. When the notification channel CS goes High, the lens microcomputer 111 connects the data communication channel DATA to the data output unit of the lens microcomputer 111 and starts sending the lens unique information.
[0196] In S805, the lens microcomputer 111 switches from designated communication back to broadcast communication.
[0197] In S806, the lens microcomputer 111 determines whether the data received by broadcast communication from the camera microcomputer 205 is a time division communication start command. If it is a time division communication start command, the process proceeds to S807, where the lens microcomputer 111 sets up time division communication according to the time division setting information included in the received time division communication start command, and waits for the camera microcomputer 205 to start communication. If it is determined in S806 that it is not a time division communication start command, the process returns to S800.
[0198] If the lens microcomputer 111 determines in S802 that the communication from the camera microcomputer 205 is not a request to transmit unique information, it processes the other requests. Then, the process proceeds to S809, where the process switches from designated communication to broadcast communication again, and the process returns to S800.
[0199] <Data packet structure> 15 shows the configuration of one data packet. Here, the case where the accessory device is the interchangeable lens 100 will be described as an example, but the same applies when the accessory device is the intermediate adapter 300.
[0200] First, we will explain the structure of a data packet sent from the camera microcomputer 205 to the lens microcomputer 111. A data packet is composed of destination information ADDR, one or more command packets CMDPn, and a data packet checksum TSUM. Each command packet CMDPn is composed of command length information LENn, a command CMDn, command data CDATAn-m, and a command packet checksum PSUMn. n and m are each an integer greater than or equal to 1.
[0201] The destination information ADDR indicates the sender and receiver of the data packet, and is assigned a number depending on the type of data packet, such as "01" for "C → L," "02" for "C → A," etc. The checksum TSUM of a data packet is the sum of the values of all the data from the beginning of a data packet to just before the TSUM.
[0202] One or more command packets CMDP are included in one data packet. Each command packet indicates a command to make a request to the lens microcomputer 111, such as a request to receive data, a request to send data, or a request to drive an actuator.
[0203] The command length information LENn in the command packet CMDP indicates the amount of data in one command packet. The command CMDn indicates a request from the camera microcomputer 205 to the lens microcomputer 111, and an individual number is assigned to each request, such as "01" for a request to receive image stabilization data, or "02" for a request to transmit the amount of control ring operation.
[0204] Command data CDATAn-m is a data group accompanying each command CMDn, such as the multiple bytes of image stabilization data accompanying a request to receive image stabilization data. Note that command data CDATAn-m may be omitted if no data transmission from the camera microcomputer 205 is required, such as a request to transmit the control ring operation amount. The command packet checksum PSUM is the sum of the values of all data from the beginning of a command packet to just before PSUM.
[0205] Next, we will explain the structure of a data packet sent from the lens microcomputer 111 to the camera microcomputer 205. The basic structure is the same as that of a data packet sent from the camera microcomputer 205. However, the command packet included in the data packet sent from the lens microcomputer 111 is always a reply to some request received earlier from the camera microcomputer 205. For example, if a request to receive image stabilization data is received as CMDP1 from the camera microcomputer 205, CMDPR1 sent from the lens microcomputer 111 is a reply to the request to receive image stabilization data.
[0206] The data packet configurations described above are merely examples. Transmission and reception from the camera microcomputer 205 to the accessory device do not necessarily have to be paired, and error checking may be performed using a cyclic redundancy check (CRC) instead of a checksum. Furthermore, a completely different data packet configuration may also be used.
[0207] <Time-division communication according to predetermined time-division setting information> FIG. 16 shows signal waveforms when time-division communication is performed according to time-division setting information determined before the time-division communication. This figure shows signal waveforms when an interchangeable lens 100, which performs communication related to the image stabilization function (hereinafter referred to as image stabilization communication), and an intermediate adapter 300, which performs communication related to the operation of the control ring (hereinafter referred to as ring operation communication), are attached to a camera 200. The method for determining the time-division setting information is as explained with reference to FIGS. 12 and 13. The communication cycle (T) is 1 ms, and each cycle contains up to three data packets. Data packets "C → L" and "L → C" are transmitted and received every cycle, and data packet "C → L" is always placed at the beginning of each cycle. Ring operation communication only needs to occur approximately once every 16 ms, so data packet "C → A" is additionally transmitted and received in the 15th cycle, and data packet "A → C" is additionally transmitted and received in the 16th cycle. Unless the time division setting information is changed or the time division communication is stopped, the communication in the first to sixteenth cycles is repeated.
[0208] 12 and 13 show examples of characteristic information and time-division setting information of an accessory device, respectively, but other characteristic information and time-division setting information may be used. For example, the maximum number of data packets in one cycle may be four, and the data packets "C → L," "L → C," "C → A," and "A → C" may all be communicated in each cycle. Also, two or more identical data packets may occur in one cycle. Also, communication between the camera 200 and the interchangeable lens 100 may not be performed in each cycle. Furthermore, the data packet "C → A" may be the first in each cycle. <Changing time-division setting information during time-division communication> The time division setting information may be changed during time division communication. Figure 17 shows examples of time division setting information before and after the change. Figure 18 shows signal waveforms in time division communication according to the changed time division setting information shown in Figure 17. These figures show an example in which the ring operation function is activated and the time division setting information is changed as a result of the control ring of intermediate adapter 300 being operated during time division communication. The maximum number of data packets, the type and number of data packets, the order of data packets, and the length of data packets are as described in Figure 13.
[0209] 17 and 18, the frequency of data packets "C → A" and "A → C" transmitted and received by the camera microcomputer 205 and adapter microcomputer 302 is changed from once every 16 ms to once every 2 ms, and "C → A" and "A → C" are positioned before "L → C." In this way, by changing the time division setting information midway, it is possible to switch the communication frequency of data packets "C → A" and "A → C" to one that prioritizes the responsiveness of the control ring.
[0210] Note that the functions that require time-division setting information to be changed during time-division communication described here and the changed time-division setting information are merely examples, and the time-division setting information may be changed to other time-division setting information as other functions become active. <Processing for changing time-division setting information during time-division communication> The flowchart in Figure 19 shows the process of changing time-division setting information during time-division communication. Here, the process is shown to be executed by the camera microcomputer 205 as the communication master and the adapter microcomputer 302 as the communication slave. The camera microcomputer 205 and the adapter microcomputer 302 perform the process shown in the flowchart in Figure 19 in accordance with a computer program. The process executed by the lens microcomputer 111 is basically the same as the process executed by the adapter microcomputer 302, so a description thereof will be omitted.
[0211] In S900, camera microcomputer 205 sends a request to each accessory device attached to camera 200 to check whether a function that requires changing the time-sharing setting information (abbreviated as setting information in FIG. 19) has become active. The function here is assumed to be the operation function of the control ring on intermediate adapter 300 as shown in FIG. 17, but it may also be a function of another accessory device.
[0212] In S901, when the camera microcomputer 205 receives a notification from the accessory device (adapter microcomputer 302) that a function that requires a change in time-division setting information has become active, the process proceeds to S902.
[0213] In S902, the camera microcomputer 205 determines new time-division setting information in accordance with the activated function, as described above with reference to FIGS.
[0214] In S903, the camera microcomputer 205 transmits the newly determined time-division setting information for the accessory devices and information indicating the timing of the change (hereinafter referred to as change timing information) to each accessory device using time-division communication data packets "C→L" and "C→A." The change timing information is used to synchronize the timing at which the camera microcomputer 205, lens microcomputer 111, and adapter microcomputer 302 change the time-division setting information, and includes information such as the number of cycles until the change and the number of data packets. Note that the new time-division setting information and the change timing information do not need to be transmitted simultaneously; they may be transmitted separately. Also, although the case where the camera microcomputer 205 transmits change timing information to each accessory device is described here, each microcomputer may also synchronize the change timing based on the time-division setting information before the change and the time-division setting information after the change.
[0215] In S904, when the camera microcontroller 205 receives a change acceptance notification from each accessory device, the process proceeds to S905. The change acceptance notification indicates that the accessory device is able to change the time-division setting information based on the new time-division setting information and change timing information it has received. Note that the accessory device may send an acceptance notification for the new time-division setting information and an acceptance notification for the change timing information to the camera microcontroller 205 as separate notifications, either simultaneously or at different times. Furthermore, the accessory device does not need to send an acceptance notification unless the camera microcontroller 205 particularly requires it.
[0216] In S905, the camera microcomputer 205 determines whether or not it has received change acceptance notifications from all accessory devices attached to the camera 200, and if so, proceeds to S906, and if there are any accessory devices for which it has not received the notification, returns to S903.
[0217] In S906, the camera microcomputer 205 determines whether or not the timing for change has arrived, and if so, in S907, changes the time-division setting information to new information.
[0218] On the other hand, if the adapter microcomputer 302 detects an event that changes the time-division setting information in S1000, the process proceeds to S1001. The event here is the operation of the control ring.
[0219] In S1001, the adapter microcomputer 302 determines whether or not a request has been received from the camera microcomputer 205 to confirm whether a function that requires a change in time-division setting information has become active, and if so, proceeds to S1002.
[0220] In S1002, the adapter microcomputer 302 transmits to the camera microcomputer 205 a notification indicating that a function that requires a change in time-division setting information has become active.
[0221] In S1003, the adapter microcomputer 302 determines whether new time-division setting information and change timing information have been received from the camera microcomputer 205, and if so, proceeds to S1004. As explained above, the new time-division setting information and change timing information do not necessarily have to be received at the same time, and may be received separately. Also, as mentioned above, the change timing of the time-division setting information may be aligned based on the time-division setting information before or after the change, without using the change timing information.
[0222] In S1004, the adapter microcomputer 302 transmits a change approval notification to the camera microcomputer 205. As described above, the approval notification for the change of the time-division setting information and the approval notification for the change timing information may be transmitted to the camera microcomputer 205 simultaneously or at different times, or may not be transmitted if the camera microcomputer 205 does not require them.
[0223] In S1005, the adapter microcomputer 302 determines whether or not the timing for change has arrived, and if so, in S1006, changes the time-division setting information to new information. [Example]
[0224] Next, a second embodiment of the present invention will be described. The camera system of the second embodiment has the same configuration as the first embodiment. However, the accessory characteristic information includes function information as information about the functions of the accessory device, a request cycle, and a requested data size. By determining the data packet size as the length of the data packet described in the first embodiment based on this accessory characteristic information, it is possible to improve communication efficiency in time-division communication.
[0225] Fig. 20 shows the accessory characteristic information in this embodiment. The function information (a11) indicates the classification of the functions possessed by the accessory device. In this embodiment, three different classifications of functions are set: function information 1, function information 2, and function information 3. The data packet size is determined by allocating a data size to the data packet according to the priority of data communication associated with each function information. The method for determining the data packet size will be described later with reference to Figs. 21 and 22.
[0226] Function information 1 indicates functions of the accessory device, such as image stabilization, autofocus, aperture drive, and zoom drive, that are controlled by camera 200 by sending control values from camera 200 to the accessory device. These functions require higher responsiveness than functions classified under other function information, and are executed at strict intervals, so communication must be prioritized over other functions. In other words, by prioritizing the data packet size corresponding to a function classified under function information 1, efficient communication is possible while ensuring the execution interval of the function.
[0227] Function information 2 is information indicating functions that require responsiveness among functions that transmit information from an accessory device to camera 200. Functions classified as function information 2 include functions that transmit information used by camera 200 for control or setting changes, such as a function to notify of operation of the control ring of intermediate adapter 300 and a function to notify of the current position of correction lens 103 or focus lens 104 of interchangeable lens 100. Furthermore, functions classified as function information 2 do not require high responsiveness compared to functions classified as function information 1, but are functions for which impaired responsiveness may result in a decline in the performance of the accessory device. For this reason, functions classified as function information 2 are given priority in communication compared to functions classified as function information 3, which will be described next, and a data packet size is reserved preferentially.
[0228] Function information 3 is information indicating functions that transmit or receive information that does not require high responsiveness between the camera 200 and an accessory device. Functions classified as function information 3 include functions that transmit and receive information indicating setting states such as the state of a switch that switches between autofocus and manual focus on the interchangeable lens 100 and the state of a switch that switches image stabilization ON / OFF. While these setting states need to be notified to the camera 200, delays in notification have less of an impact on the user than functions classified as function information 2. For this reason, functions classified as function information 3 are given lower priority than other functions to ensure a sufficient data packet size.
[0229] Note that function information 1 to 3 are merely examples, and the number of function information does not have to be three, and function information may be provided for each function, or for each cycle required to execute a function. Furthermore, in determining the data packet size, function information 2 may be given priority over function information 1, and even within the same function information, some functions may be given higher priority.
[0230] The requested period in (a12) represents the period required for each accessory device to execute the corresponding function. For example, the period required for the function to control image stabilization (hereinafter referred to as image stabilization control function), which is classified as function information 1, is 1 ms, and the period required for the function to transmit the amount of operation of the control ring (hereinafter referred to as control ring operation function), which is classified as function information 2, is 16 ms. There are no particular period restrictions for the function to notify the status, which is classified as function information 3. Note that there are different generations of image stabilization control functions (methods with different data types and transmission frequencies), and the required period may differ for each generation. Also, multiple values may be set as the period corresponding to each function. Furthermore, the period may be set for each accessory device, not for each function.
[0231] The required data size in (a13) indicates the data size required to execute the function of each accessory device. In this embodiment, communication for the image stabilization control function requires a command packet size of 24 bytes in the C → L direction within a 1 ms cycle. Furthermore, the control ring operation function requires a command packet size of 16 bytes in the A → C direction within a 16 ms cycle. Furthermore, the status notification function does not have any cycle limitations, but requires a command packet size of 12 bytes for each data packet.
[0232] Note that the requested data size described here is merely an example. For example, the specific data size required to execute a function may be different from the number of bytes described above, or the requested data size may differ for each cycle corresponding to the function. Furthermore, the requested data size may vary from the minimum data size required to execute the function to a data size with sufficient margin.
[0233] The accessory characteristic information (supported baud rate, communication direction switching time, and transmission / reception buffer size) in FIG. 20 is as explained in FIG.
[0234] The flowchart in Fig. 21 shows the process (communication control method) in which the camera microcomputer 205 determines the data packet size based on the accessory characteristic information described in Fig. 20. The camera microcomputer 205 executes this process in accordance with a computer program.
[0235] In S2000, the camera microcomputer 205 acquires accessory characteristic information from all accessory devices connected to the camera 200. Then, it compares the request cycles shown in (a11) in Fig. 20 of all accessory devices and determines the smallest value among them as the communication cycle. The determined communication cycle is not only a factor in determining the data packet size, but also time-division setting information to be notified to the accessory devices included in Fig. 23, which will be described later.
[0236] Next, in S2001, the camera microcomputer 205 selects the fastest baud rate that can be adopted by all accessory devices and the camera 200 as the communication baud rate. Note that the method for determining the communication baud rate may be different from this. For example, the lowest baud rate may be selected to avoid communication noise, or a different baud rate may be set for each accessory device. The determined communication baud rate, like the communication cycle, is a factor in determining the data packet size, and is also time-division setting information to be notified to the accessory devices.
[0237] Next, in S2002, the camera microcomputer 205 calculates the in-cycle transmission / reception time, which is the time allotted for transmitting and receiving data within one communication cycle, by subtracting the communication direction switching time for one data packet from the determined communication cycle.Then, by multiplying this in-cycle transmission / reception time by the communication baud rate, it calculates the in-cycle data size, which is the maximum data size that can be transmitted and received within the cycle.
[0238] In the subsequent steps, the data packet size for each communication direction is determined by allocating the in-period data size to data packets distinguished for each communication direction. In the following description, the in-period data size that has not yet been allocated is referred to as the remaining in-period data size.
[0239] Next, in S2003, the camera microcomputer 205 secures the minimum data size required for time-division communication from the data size within the period. Here, the minimum required data size is secured by assuming that destination information ADDR and a checksum TSUM of the data packet are required for each data packet.
[0240] The minimum required data size is not limited to this, and it may be 0 bytes and not be secured, or a data size equivalent to the command length information LENn, command CMDn, and command packet checksum PSUM, which are components of the command packet, may be secured. Also, a completely different data packet configuration may be adopted and the data size required for that data packet configuration may be secured.
[0241] Next, in S2004, the camera microcomputer 205 selects a function according to the priority of data communication determined based on the function information. In this embodiment, the image stabilization control function classified as function information 1 has the highest priority and is selected first. Next, the control ring operation function classified as function information 2 is selected second. And finally, the status notification function classified as function information 3 is selected. Note that the selection order and priority of the functions are not limited to this; not all functions need to be selected, and the priority may be determined by the user.
[0242] Next, in S2005, the camera microcomputer 205 compares the required data size of the selected function with the remaining data size within the cycle. If the remaining data size within the cycle is larger than the required data size, the process proceeds to step S2006; otherwise, the required data size of the function cannot be secured and the process ends. Note that the process of S2005 is not necessarily required; if the required data size within the cycle is sufficient compared to the required data size of the function, the process may proceed directly from S2004 to S2006.
[0243] In S2006, the camera microcomputer 205 secures the required data size of the function within the remaining data size within the period and allocates it to the corresponding data packet. At this time, the required data size of the function may be acquired from the accessory device as accessory characteristic information, or may be stored in advance in the camera 200 as internal data.
[0244] Next, in S2007, the camera microcomputer 205 determines whether data size allocation has been completed for all functions, and if allocation to all functions has been completed, ends this process. If allocation processing to all functions has not been completed, the process returns to S2004, and the next function is selected based on the priority determined based on the function information.
[0245] The camera microcomputer 205 repeats the above process until it is unable to secure the required data size for the function or until data sizes have been allocated to all functions. In this way, the data packet size is determined by allocating data sizes based on function information.
[0246] FIG. 22 shows the flow of the camera microcomputer 205 determining the data packet size in the process shown in FIG. 21 based on the accessory characteristic information shown in FIG.
[0247] In (c1), the cycle of 1 ms required to execute the image stabilization control function in FIG. 20 is compared with the required cycle of 16 ms for transmitting the operation amount of the control ring in S2000, and the shorter cycle of 1 ms is determined as the communication cycle.
[0248] Next, in (c2), in S2001, the total communication direction switching time occurring between data packets within the communication cycle is subtracted from the communication cycle to calculate the available transmission / reception time within the communication cycle. In this embodiment, data packets are communicated in the order C → L, L → C, C → A, and A → C within the communication cycle. Therefore, there are two data packets each that depend on the communication direction switching time of the interchangeable lens 100 and the intermediate adapter 300, and a total of 600 μs is required for the communication direction switching time of the interchangeable lens 100 and the intermediate adapter 300 in FIG. 20. Therefore, the available transmission / reception time within the communication cycle is 400 μs.
[0249] It should be noted that the available transmission / reception time within a communication cycle does not necessarily have to be determined based on the communication direction switching time between the interchangeable lens 100 and the intermediate adapter 300. For example, the available transmission / reception time within a communication cycle may be determined based on the communication direction switching time that the camera 200 has as internal information, or the available transmission / reception time within a communication cycle may be determined in advance as a communication rule.
[0250] Furthermore, in (c2), in S2002, the compatible baud rates of the interchangeable lens 100 and intermediate adapter 300 shown in FIG. 20 are compared, and the fastest baud rate of 2.5 Mbps is determined as the communication baud rate.
[0251] Next, in (c3), the data size within the cycle, 100 bytes, is calculated by multiplying the available transmission / reception time within the communication cycle, 400 μs, by the communication baud rate, 2.5 Mbps. In this embodiment, a start bit and a stop bit are added when transmitting and receiving data for each byte, so the calculation is based on 1 byte = 10 bits.
[0252] Next, in (c4), in S2003, a total of 8 bytes, consisting of 2 bytes of destination information ADDR and checksum TSUM of the data packet, is secured within the data size within the period as the minimum data size required for time-division communication for each data packet.
[0253] Next, in (c5), 24 bytes, which is the required data size of the image stabilization control function, which is a function classified as function information 1, is allocated to the C→L data packet in S2004 and S2005.
[0254] Similarly, in (c6), 16 bytes, which is the requested data size of the control ring operation function, which is a function classified as function information 2, is allocated from A to C.
[0255] In (c7), a total of 48 bytes is secured as the requested data size for the status notification function classified as function information 3, with 12 bytes for each data packet.
[0256] As shown in (c8), when the secured data sizes are organized by data packet, they are C → L: 42 bytes, L → C: 14 bytes, C → A: 14 bytes, and A → C: 30 bytes. In this embodiment, due to the data size required by the image stabilization control function, the secured data packet size for C → L is larger than the other data packet sizes. Furthermore, due to the data size required by the control ring operation function, the secured data packet size for L → C is larger than the other data packet sizes excluding C → L. The data packet sizes are determined in this manner.
[0257] The method for determining the data packet size described here is merely an example, and other methods may be used. For example, the data packet size may be determined based on the function alone, or the data packet size may be the same for each data packet as long as the required data size can be sufficiently secured.
[0258] 23 shows time-division setting information that the camera microcomputer 205 notifies the lens microcomputer 111 and the adapter microcomputer 302 in this embodiment. The time-division setting information includes the communication cycle of the time-division communication, the communication baud rate, and the data packet size of each data packet. The communication cycle is 1 ms, and the communication baud rate is 2.5 Mbps. The data packet sizes are C→L: 42 bytes, L→C: 14 bytes, C→A: 14 bytes, and A→C: 30 bytes. Note that these are merely examples; for example, the communication cycle and communication baud rate may be fixed and not included in the time-division setting information. The time-division setting information may also include the order of the data packets and the timing of transmission and reception within the communication cycle.
[0259] The time-division setting information including the data packet size is notified to each accessory device in the partner-specified communication shown in Fig. 8 of the first embodiment before time-division communication. As a result, the camera 200 and all accessory devices share the time-division setting information. Note that the method of notifying the time-division setting information is not limited to this, and the time-division setting information may be notified by including it in a time-division communication start command transmitted by broadcast communication as shown in Fig. 14 of the first embodiment, for example.
[0260] The above-described methods for determining and notifying time division setting information including the data packet size for time division communication are merely examples, and other methods may be adopted. For example, the data packet size may be determined based only on the function information while parameters other than the function information are fixed, or the configuration of the data packet may be different.
[0261] Furthermore, what camera microcomputer 205 determines may be the data packet size itself, information for determining the data packet size (such as the maximum data size that an accessory device can send and receive as a data packet), or information that can be converted into a data packet size. That is, camera microcomputer 205 may determine information related to these data packet sizes. [Example]
[0262] Next, a third embodiment of the present invention will be described. The camera system of this embodiment has the same configuration as that of the second embodiment. In this embodiment, if the determined data packet size is smaller than the required data size of a function, the data is divided and transmitted / received. In other words, if the data packet size is larger than the maximum data size that can be transmitted or received at one time between the accessory device and the camera, information regarding the data size is determined so that the data packet is divided into multiple data packets within the maximum data size. This makes it possible to execute more functions. <Determining data packet size by data division> The following describes a method for determining the data packet size for time-division communication in this embodiment. FIG. 24 shows accessory characteristic information held by each accessory device in this embodiment. The number of requested data bytes is the same as that shown in FIG. 20 in the second embodiment, but in this embodiment, the number of requested data bytes indicates the number of requested data bytes within a request cycle. Even if the number of requested data bytes required to execute a function cannot be secured when determining the data packet, function data, which is data required to be transmitted and received to execute the function, is divided into multiple data packets and transmitted and received in different communication cycles. This enables the function to be executed. The function data may be control values for image stabilization, autofocus, aperture drive, zoom drive, etc., or may be commands to execute these controls. It may also be a command to interrupt or terminate time-division communication.
[0263] Regarding the send and receive buffer sizes, the send buffer size and receive buffer size of intermediate adapter 300 are both 8 bytes, which is smaller than those in Examples 1 and 2. Other accessory characteristic information is the same as in FIG.
[0264] The flowchart in Fig. 25 shows the process of determining the data packet size based on the accessory characteristic information explained in Fig. 24. The camera microcomputer 205 executes this process in accordance with a computer program.
[0265] S3000 to S3003 are the same as S2000 to S2003 in the second embodiment (FIG. 21).
[0266] In S3004, the camera microcomputer 205 secures a minimum division data size within the remaining intra-cycle data size. The minimum division data size is the smallest data size that can be divided and transmitted / received for function data. By securing the minimum division data size, even if the data size required by the function is not secured later in S3008, the function data that needs to be transmitted / received to execute the function can be divided and transmitted / received within the minimum division data size and the data size secured in S3009, which will be described later. The data size secured as the minimum division data size may be used for transmitting / receiving multiple pieces of function data.
[0267] Next, in S3005, the camera microcomputer 205 selects a function in accordance with the priority determined based on the function information, similar to S2004 in FIG.
[0268] Then, in S3006, the camera microcomputer 205 compares the required data size of the function with the remaining data size within the period, similar to S2005 in FIG. 21, and proceeds to S3007 if the remaining data size within the period is larger, or to S3010 if not.
[0269] In S3007, the camera microcomputer 205 compares the remaining transmission / reception buffer size, obtained by subtracting the already reserved data size from the transmission / reception buffer size of the corresponding data packet, with the required data size of the function. If the remaining transmission / reception buffer size is larger, the process proceeds to S3008; if not, the process proceeds to S3009.
[0270] In S3008, similarly to S2006, the camera microcomputer 205 secures the necessary data size for the function within the remaining data size within the period, and allocates it to the corresponding data packet.
[0271] In S3009, the camera microcomputer 205 secures data packets corresponding to the function up to the transmission / reception buffer size. Compared to the second embodiment, by adding S3007 and S3009, it is possible to limit the data packet size so that it does not exceed the transmission / reception buffer size.
[0272] In S3010, the camera microcomputer 205 determines whether data size allocation has been completed for all functions, and if allocation to all functions has been completed, ends this process. If allocation processing to all functions has not been completed, the process returns to S3005, and the next function is selected according to the priority determined based on the function information.
[0273] The camera microcomputer 205 repeats the above process until data sizes have been assigned to all functions. In this way, the data packet size is determined by assigning data sizes based on function information. Furthermore, by reserving the minimum data size for division in advance, even if the required data size for a function cannot be secured, the function can be executed by dividing and transmitting / receiving the data packet as shown in FIG. 28 (described later).
[0274] FIG. 26 shows the flow of the camera microcomputer 205 determining the data packet size by performing the processing shown in FIG. 25 based on the accessory characteristic information shown in FIG.
[0275] (d1) to (d4) are the same as (c1) to (c4) in Example 2 (FIG. 22). At the time of (d4), the remaining data size within the period is 92 bytes.
[0276] In (d5), in S3004, a minimum divided data size of 16 bytes in total, 4 bytes per data packet, is secured as the data size that allows at least the divided command to be sent and received.
[0277] In (d6), the required data size is secured in S3008 via S3006 and S3007 for the image stabilization control function initially selected in S3005. In this embodiment, 28 bytes, which is the required data size, is allocated to the C→L data packet.
[0278] Next, in (d7), the remaining send / receive buffer size is compared with the required data size for the control ring manipulation function selected in S3005 in S3007. As a result, the required data size cannot be secured, so the send / receive buffer size is secured in S3009. In this embodiment, 6 bytes have already been secured for the A → C data packet corresponding to the control ring manipulation function. And, because the send / receive buffer size is 8 bytes, 2 bytes are secured for the A → C data packet corresponding to the control ring manipulation function.
[0279] Next, in (d8), the status notification function is selected in S3005, and 12 bytes, which is the required data size of the status notification function, are reserved for the C → L and L → C data packets in S3008. For the C → A and A → C data packets, the send / receive buffer size is reserved in S3009. 6 bytes have already been reserved for the C → A data packet, and since the send / receive buffer size is 8 bytes, 2 bytes are reserved for the C → A data packet, which corresponds to the status notification function. 8 bytes have already been reserved for the A → C data packet, and since the send / receive buffer size is 8 bytes, no data packet from A → C, which corresponds to the status notification function, is reserved.
[0280] As shown in (d9), when the secured data size is organized for each data packet, it becomes C→L: 46 bytes, L→C: 18 bytes, C→A: 8 bytes, and A→C: 8 bytes.
[0281] 27 shows the time-division setting information (communication cycle, communication baud rate, and data packet size) that the camera microcomputer 205 notifies the lens microcomputer 111 and adapter microcomputer 302. The data packet size in this embodiment is limited by the send / receive buffer size compared to the time-division setting information shown in embodiment 2 (FIG. 23), so C→A: 8 bytes, A→C: 8 bytes. Therefore, in this embodiment, the control ring operation function is executed by dividing the function data and sending and receiving it.
[0282] The method of notifying the time division setting information from the camera 200 to the interchangeable lens 100 and the intermediate adapter 300 is the same as that described with reference to FIG. <Time-division communication processing of divided function data> The camera microcomputer 205, lens microcomputer 111, and adapter microcomputer 302 each have a communication block and a function block. The communication block controls communication, including the time-division processing shown in FIG. 10. The function block controls the execution of functions. The communication block and the function block also have a shared memory that shares function data, and a local memory that the communication block accesses. Note that the shared memory and the local memory may be the same memory, or there may be multiple function blocks for each function. For example, the function blocks may include a function block for image stabilization control function and a function block for control ring operation function.
[0283] The camera microcomputer 205 and the lens microcomputer 111 perform the time-division communication processing shown in Fig. 10 in Example 1. The time-division communication processing performed by the adapter microcomputer 302 is basically the same as the time-division communication processing performed by the lens microcomputer 111, and therefore a description thereof will be omitted.
[0284] Figure 28 shows the process in which the camera microcomputer 205 generates a transmission data packet based on a predetermined data packet size. This process is performed in S507 and S514 of Figure 10. Note that the lens microcomputer 111 generates a transmission data packet in S607 and S614 of Figure 10 using the same process as in Figure 28. A detailed description of the process in which the lens microcomputer 111 generates a transmission data packet will be omitted.
[0285] In S10001, the functional block of the camera microcomputer 205 determines whether or not it is necessary to transmit functional data, and if so, acquires the functional data via the shared memory and proceeds to S10002. If it is not necessary to transmit functional data, it proceeds to S10005. Before determining whether or not it is necessary to transmit functional data, the functional block prepares the functional data in the shared memory in advance.
[0286] In this embodiment, the functional block of the camera microcomputer 205 prepares functional data for the image stabilization control function in a shared memory and notifies the communication block that the functional data for the image stabilization control function needs to be transmitted every communication cycle. The functional block of the adapter microcomputer 302 prepares functional data for the control ring operation function in a shared memory and notifies the communication block that the functional data for the control ring operation function needs to be transmitted every 16 cycles. However, these are merely examples. For example, the functional data for the control ring operation function may be transmitted only when the user actually operates the control ring, or may not be transmitted if the image stabilization function is OFF.
[0287] Next, in S10002, the communication block of the camera microcomputer 205 determines whether or not to divide and transmit the function data. If so, the process proceeds to S10003; if not, the process proceeds to S10004. In this embodiment, whether or not to divide the function data is determined based on whether or not the required data size for the function has been secured in S3008, the data packet size determination step described in FIG. 25. In other words, if the required data size has not been secured, it is determined that the data should be divided. Note that this is merely an example, and whether or not to divide and transmit the function data may also be determined based on whether the data packet size will be exceeded when the function data is stored in the data packet.
[0288] In S10003, the communication block of the camera microcomputer 205 places the command packet, which the accessory device has divided into function data so that it fits within the transmission data packet size, into a data packet. In this embodiment, the control ring operation function of the adapter microcomputer 302 corresponds to the function that divides the function data. In this case, the number of data bytes required for the control ring operation function is 16 bytes. Meanwhile, the data size of the control ring operation function is 6 bytes, consisting of 4 bytes, the minimum divided data size of the L→C data packet size, and 2 bytes reserved for the data packet corresponding to the control ring operation function up to the send / receive buffer size. Therefore, the function data is divided so that it fits within the size allocated to each function, and a command packet is generated.
[0289] In this embodiment, the function data for the control ring operation function is simply divided into three 6-byte sections: bytes 1-6, bytes 7-12, and bytes 13-16. Then, the command packet from bytes 1-6 is placed into a data packet. The command packet from bytes 7-12 and the command packet from bytes 13-16 are stored in local memory, and are placed into data packets in S10003 when data packets are generated in the next cycle and the cycle after that. Then, the process proceeds to S10005.
[0290] Note that this method of generating command packets by dividing functional data is merely an example, and other generation methods may be used. For example, for each divided command packet, a data size for the command length information LENn, command CMDn, and command packet checksum PSUM, which are components of the command packet, may or may not be secured. Furthermore, the command may be divided into smaller command packets to secure the data size for functions such as status notification. Furthermore, the number of divisions of the functional data may be divided into 16 to match the requested cycle.
[0291] In S10004, the communication block of the camera microcomputer 205 places a command packet containing all the data necessary for the accessory device to execute its function into a transmission data packet. Specifically, the camera microcomputer 205 places a command packet for the image stabilization control function into the transmission data packet. The number of data bytes required for the image stabilization control function is 24 bytes, so a 24-byte command packet is generated without dividing the function data and placed into the data packet. Then, the process proceeds to S10005.
[0292] In S10005, the communication block of the camera microcomputer 205 checks whether the determination in S10001 has been performed for all function data, and if there is function data that has not been performed, the process returns to S10001. In this way, this process is repeated until it has been determined whether or not all function data needs to be transmitted. If the determination in S10001 has been performed for all function data, the process proceeds to END. END indicates the end of the process of generating one transmission data packet.
[0293] Figure 29 shows the process in which the camera microcomputer 205 receives and analyzes a transmission data packet generated based on a predetermined data packet size. This process is performed in S512 of Figure 10. Note that the lens microcomputer 111 receives and analyzes the transmission data packet in S612 of Figure 10 using the same process as in Figure 29. A detailed description of the process in which the lens microcomputer 111 receives and analyzes the transmission data packet will be omitted.
[0294] In S10101, the communication block of the camera microcomputer 205 waits to receive a data packet, and when it receives one, the process proceeds to S10102.
[0295] In S10102, the communication block of the camera microcomputer 205 determines whether or not function data has been received, and if not, proceeds to S10106. If received, the communication block analyzes the command packet in the received data packet and selects one of the function data. In this embodiment, the function data is selected in the order of reception. Note that the function data may also be selected according to the priority of the function information associated with it.
[0296] Next, in S10103, the communication block of the camera microcomputer 205 determines whether the received function data is divided function data (hereinafter referred to as divided function data), and if it is not divided function data, proceeds to S10104, and if it is divided function data, proceeds to S10105. Note that if the received function data is divided function data, and the divided function data acquired this time is sufficient to complete the function data before division, the divided function data is retrieved from the local memory and the function data before division is generated, and then proceeds to S10104.
[0297] In S10104, the communication block of the camera microcomputer 205 stores the received function data in the shared memory. The function blocks execute the corresponding functions based on the function data stored in the shared memory. In this embodiment, the function block of the camera microcomputer 205 executes the control ring operation function based on the function data of the control ring operation function. For example, if the control ring is assigned a function for changing the shutter speed setting value, the function block of the camera microcomputer 205 changes the shutter speed setting value in the camera 200 in response to the operation of the control ring. In addition, the function block of the lens microcomputer 111 executes the image stabilization function based on the function data of the image stabilization control function received from the camera microcomputer 205. Other functions are also executed based on the function data.
[0298] In S10105, the communication block of the camera microcomputer 205 stores the received division function data in the local memory.
[0299] Next, in S10106, the communication block of the camera microcomputer 205 determines whether or not all the received function data has been processed. If not all the function data has been processed, the process returns to S10102 to continue analyzing the data packet. If all the function data has been processed, the process proceeds to END. END indicates the end of the analysis process for one received data packet. [Example]
[0300] Next, a fourth embodiment of the present invention will be described. The camera system of this embodiment has the same configuration as that of the third embodiment. This embodiment is characterized in that time-division communication can be interrupted or terminated, or can be resumed or terminated from an interrupted state. This enables the camera to safely switch to a communication method suitable for the operating state.
[0301] <End and interruption of time-division communication> Figure 30 is a diagram showing the transition of communication methods for the camera and accessory in this embodiment. The transition from broadcast communication to designated communication and from designated communication to broadcast communication has been explained with reference to Figure 6, so a description thereof will be omitted here. Also, the transition from broadcast communication (first communication state) to time-division communication (second communication state) has been explained with reference to Figure 11, so a description thereof will be omitted here.
[0302] A transition from time division communication (second communication state) to broadcast communication (first communication state) is made by performing a process to terminate time division communication. The process to terminate time division communication is performed when the camera microcomputer 205 determines that time division communication has ended, such as when the camera is powered off. Note that the conditions for performing the process to terminate time division communication are not limited to the above, and may also be when, for example, the camera microcomputer 205 detects an abnormality in the transmitted / received data of the time division communication and determines that broadcast communication should be resumed. Alternatively, the camera microcomputer 205 may determine that broadcast communication should be resumed by detecting an abnormality in the transmitted / received data of the time division communication when the lens microcomputer 111 or the adapter microcomputer 302 detects an abnormality in the transmitted / received data of the time division communication and notifies the camera microcomputer 205 of the occurrence of the communication abnormality. Note that details of the process to terminate time division communication will be described later.
[0303] The time division communication interruption state (second communication interruption state) is an interruption state in which time division communication is temporarily stopped, and transition to this state is made by performing time division communication interruption processing. As described with reference to FIG. 11 etc., when starting time division communication from broadcast communication, it is necessary to send and receive a time division communication start command and time division setting information to and from each accessory device, which results in overhead until time division communication starts. However, providing a time division communication interruption state enables immediate resumption. The time division communication interruption processing is performed when the camera microcomputer 205 does not need time division communication but may want to immediately resume it, such as when the camera is in power saving mode. Note that the conditions for performing time division communication interruption processing are not limited to this. For example, when time division communication is being performed to control the image stabilization function, it may also be performed when it is determined that image stabilization control is not necessary, such as when the menu is displayed. Details of the time division communication interruption processing will be described later.
[0304] When time division communication is in an interrupted state, it is possible to resume time division communication or to transition directly to broadcast communication without going through time division communication. The camera microcomputer 205 performs time division communication restart processing when it determines that the conditions for the interruption processing of time division communication described above have been lifted. Note that the conditions for performing the time division communication restart processing are not limited to the above; for example, by periodically repeating the restart and interruption of time division communication, it is possible to obtain a minimum accessory status even in power saving mode. Furthermore, under conditions where it is desired to transition to broadcast communication without the need to resume time division communication, such as when the power is turned off from power saving mode, the camera microcomputer 205 performs interruption termination processing of time division communication. Details of the time division communication restart processing and the time division communication interruption termination processing will be described later.
[0305] Note that the transition of communication methods in this embodiment is not limited to this. For example, it is not necessary to provide a direct transition from time division communication to broadcast communication due to the termination process of time division communication. In other words, the transition process to broadcast communication by the camera microcomputer 205 may be unified by always transitioning to an interrupted state of time division communication and then performing the interruption termination process of time division communication.
[0306] 31 is a diagram showing signal waveforms in the termination process of time-division communication in this embodiment. In this embodiment, two intermediate adapters 300 (adapter 1, adapter 2) and an interchangeable lens 100 are attached to the camera 200. Time-division communication is performed in a configuration of four cycles per set. The order of data packets in each cycle is set as follows: "C → L", "L → C", "C → A1 (adapter 1)" for the first cycle, "C → L", "L → C", "A1 → C" for the second cycle, "C → L", "L → C", "A1 → C" for the third cycle, "C → L", "L → C", "C → A2 (adapter 2)", and "C → L", "L → C", "A2 → C" for the fourth cycle.
[0307] At this time, the camera microcomputer 205, which has started the termination process of the time division communication, first sets the first cycle "C→L" by adding termination timing information to the termination request. Here, the termination request is data for notifying the lens microcomputer 111 that the time division communication will end. The termination timing information is data for notifying when to terminate. In this embodiment, the termination timing of the time division communication is set to the timing when one set (4 cycles) is completed, and for this purpose, the number of remaining cycles of the time division communication is added as the termination timing information. In other words, for the first cycle "C→L", "number of remaining cycles = 3" becomes the termination timing information.
[0308] Next, the lens microcomputer 111 sets data (termination request ACK) for communicating that the termination request has been received in "L→C" of the first cycle, thereby allowing the camera microcomputer 205 to confirm that the termination request has been successfully transmitted. Similarly, for subsequent data packets, the camera microcomputer 205 sets the termination request and the number of remaining cycles in "C→L," "C→A1," and "C→A2." Furthermore, the lens microcomputer 111 sets the termination request ACK in "L→C," the adapter microcomputer 302 of adapter 1 sets it in "A1→C," and the adapter microcomputer 302 of adapter 2 sets it in "A2→C."
[0309] The camera microcomputer 205, and the lens microcomputer 111 and adapter microcomputer 302 that received the end request and the number of remaining cycles manage the end timing of the time division communication based on the control timing of the time division communication that they each manage. Furthermore, the camera microcomputer 205, lens microcomputer 111, and adapter microcomputer 302 transition to broadcast communication at the point in time when the cycle that marks the end timing of the time division communication has arrived.
[0310] In this embodiment, if the camera microcomputer 205 fails to receive a termination request ACK from the lens microcomputer 111 or the adapter microcomputer 302, some kind of abnormality may have occurred, preventing the termination request from being transmitted. In such a case, the camera microcomputer 205 may give up on terminating time-division communication for the current set and retry with the next or subsequent set. A retry method may be to set the number of remaining cycles so that the communication will end in the fourth cycle of the next set, but this is not a limitation. For example, the camera microcomputer 205 may stop transmitting the termination request for the current set and resume the termination request from the first cycle of the next set. Furthermore, if the camera microcomputer 205 fails to transmit the termination request even after a specified number of retries, the camera microcomputer 205 may forcibly resume broadcast communication by cutting off and then re-supplying power to the lens microcomputer 111 or the adapter microcomputer 302.
[0311] Details of the data command configuration of the termination request, termination timing information, and termination request ACK in this embodiment will be described later with reference to Fig. 35. However, the termination timing information added to the termination request is not limited to the number of remaining cycles, and any information is acceptable as long as it allows the termination timing information of the camera microcomputer 205, lens microcomputer 111, and adapter microcomputer 302 to be synchronized. For example, it may be the number of remaining sets, or information indicating the termination time.
[0312] Furthermore, the cycle of time division communication and the configuration of data packets are not limited to these, and are set appropriately depending on the configuration of the accessories attached to the camera 200, as described in Examples 1 to 3. The end timing information in this case may also be any information as long as the end timing information of the camera microcomputer 205, lens microcomputer 111, and adapter microcomputer 302 can be synchronized.
[0313] The signal waveforms of the interruption processing of time division communication in this embodiment are basically the same as those in Fig. 31, and therefore will not be described here. That is, the interruption processing of time division communication is the same except that the interruption processing of time division communication transmits and receives an interruption request, interruption timing information, and interruption request ACK, while the interruption processing of time division communication transmits and receives an interruption request, interruption timing information, and interruption request ACK.
[0314] 32 is a diagram showing signal waveforms during the resumption process of time division communication in this embodiment. When time division communication is suspended, the camera microcomputer 205 outputs the signal levels of the notification channel CS and the data communication channel DATA to High, while the lens microcomputer 111 and adapter microcomputer 302 monitor changes in the signal levels of both channels. When resuming time division communication, the camera microcomputer 205 outputs the signal level of the data communication channel DATA to Low. Meanwhile, the lens microcomputer 111 and adapter microcomputer 302 resume time division communication by detecting a change in the signal level of the data communication channel DATA to Low.
[0315] As described above, in the second communication state, the camera microcomputer 205 sets the voltage level of the notification channel CS to the first level before and during the execution of the second communication. Then, the camera microcomputer 205 changes the voltage level of the notification channel CS to the second level (first level > second level) after the execution of the second communication, and changes it back to the first level after a predetermined time has elapsed. The camera microcomputer 205 also sets the voltage level of the data communication channel DATA to the third level before the execution of the second communication, changes it to the fourth level (third level > fourth level) before the execution of the second communication, and transmits data after a predetermined time has elapsed. Then, the camera microcomputer 205 changes the fourth level to the third level after the execution of the second communication.
[0316] In the second communication state, the lens microcomputer 111 sets the voltage level of the notification channel CS to a first level before and during the second communication, changes it to the second level after the second communication is performed, and then changes it back to the first level after a predetermined time has elapsed. The lens microcomputer 111 also sets the voltage level of the data communication channel DATA to a third level before the second communication is performed, changes it to a fourth level before the second communication is performed, transmits data after a predetermined time has elapsed, and then changes it back to the third level after the second communication is performed. This is also true for the adapter microcomputer 302.
[0317] In this embodiment, time division communication is resumed from the beginning of the first cycle, which is "C→L." At this time, data packet transmission begins with the start bit ST, so the signal level of the data communication channel DATA is initially output low. Therefore, if the camera microcomputer 205 outputs "C→L" for the first cycle at the timing when it is desired to resume time division communication, the lens microcomputer 111 and the adapter microcomputer 302 will also resume time division communication. Furthermore, time division communication does not need to be resumed from "C→L" or "C→A." For example, the camera microcomputer 205 may first output the signal level of the data communication channel DATA low for a certain period of time, and then resume time division communication a predetermined time after returning it to high. Time division communication may also be resumed from "L→C" or "A→C."
[0318] 33 is a diagram showing signal waveforms in the process of terminating interruption of time division communication in this embodiment. In the interrupted state of time division communication, the camera microcontroller 205 outputs the signal levels of the notification channel CS and the data communication channel DATA to High (first level, third level). The lens microcontroller 111 and the adapter microcontroller 302 monitor changes in the signal levels of both channels. When transitioning from the interrupted state of time division communication to broadcast communication, the camera microcontroller 205 outputs the signal level of the notification channel CS to Low (second level). Meanwhile, the lens microcontroller 111 and the adapter microcontroller 302 transition to broadcast communication by detecting a change in the signal level of the notification channel CS to Low.
[0319] As described above, in the first communication state, the camera microcomputer 205 sets the voltage level of the notification channel CS to the first level before executing the first communication, and then changes it to a second level different from the first level (first level > second level). Then, the camera microcomputer 205 changes the second level to the first level after executing the first communication. The camera microcomputer 205 also sets the voltage level of the data communication channel DATA to the third level before executing the first communication. Then, the camera microcomputer 205 transmits data a predetermined time after the voltage level of the notification channel CS changes from the second level to a fourth level different from the third level (third level > fourth level) before executing the first communication. Then, the camera microcomputer 205 changes the voltage level of the notification channel CS to the third level after executing the first communication.
[0320] In the first communication state, when the voltage level of the notification channel CS changes from the first level to the second level, the lens microcomputer 111 starts receiving data after a predetermined time has elapsed since the voltage level of the data communication channel DATA changes from the third level to the fourth level. This also applies to the adapter microcomputer 302.
[0321] In this embodiment, the camera microcomputer 205 transmits broadcast communication while outputting the signal level of the notification channel CS at Low, but the interruption and termination process of time-division communication does not necessarily require the transmission of broadcast communication. For example, the camera microcomputer 205 may output the signal level of the notification channel CS at Low, and then return the signal level to High, thereby transitioning to broadcast communication.
[0322] 34(a) and 34(b) are flowcharts showing the termination process, interruption process, and interruption / resumption process of time division communication executed by the camera microcomputer 205 as the communication master and the lens microcomputer 111 as the communication slave in this embodiment. The camera microcomputer 205 and the lens microcomputer 111 respectively perform the processes shown in the flowcharts of FIGS. 34(a) and 34(b) in accordance with a computer program. The termination process, interruption process, and interruption / resumption process of time division communication executed by the adapter microcomputer 302 are basically the same as those executed by the lens microcomputer 111, and therefore will not be described here. In addition, the conditions for terminating, interrupting, and resuming time division communication have been described in FIG. 30, and the setting and timing management of termination timing information or interruption timing information have been described in FIG. 31, and therefore will not be described here.
[0323] 34(a) shows the termination process, interruption process, and interruption resume process of time division communication executed by the camera microcomputer 205, which are executed when time division communication is started. In S4000, the camera microcomputer 205 executes the transmission and reception process of time division communication. The transmission and reception process of time division communication has been explained in FIG. 10, so it will be omitted here. When the transmission and reception to be executed in the current cycle is completed, the process transitions to S4001.
[0324] In S4001, the camera microcomputer 205 determines whether to perform termination processing or interruption processing of the time division communication. If it is determined that termination / interruption processing is to be performed, the process transitions to S4002. On the other hand, if it is determined that termination / interruption processing is not to be performed, the process transitions to S4004. In S4002, the camera microcomputer 205 sets the termination request (switching request) or interruption request to be sent in the next transmission packet, and then transitions to S4003. In S4003, the camera microcomputer 205 sets the termination timing information or interruption timing information to be sent in the next transmission packet, and then transitions to S4004.
[0325] In S4004, the camera microcomputer 205 determines whether or not it is time to end or interrupt the time-division communication (switching timing or interruption timing). If it is determined that the communication should be ended or interrupted, the process proceeds to S4005. On the other hand, if it is determined that the communication should not be ended or interrupted, the process returns to S4000 and the time-division communication continues.
[0326] In S4005, the camera microcomputer 205 stops the transmission and reception processing of the time division communication, fixes the signal levels of the notification channel CS and the data communication channel DATA to High, and transitions to S4006. In S4006, the camera microcomputer 205 determines whether to end the time division communication. If it is determined that the time division communication should be ended, this flow is terminated and transitions to broadcast communication. On the other hand, if it is determined that the time division communication should not be ended, transitions to S4007 and the time division communication becomes suspended.
[0327] In S4007, the camera microcomputer 205 determines whether to resume time division communication from the interrupted state. If it is determined that time division communication is to be resumed, the process transitions to S4008. On the other hand, if it is determined that time division communication is not to be resumed, the process transitions to S4009. In S4008, the camera microcomputer 205 notifies the lens microcomputer 111 that time division communication is to be resumed by outputting the data communication channel DATA to Low, and resumes time division communication by transitioning to S4000. In S4009, the camera microcomputer 205 determines whether to end the interrupted state of time division communication. If it is determined that the interrupted state of time division communication is to be ended, the process transitions to S4010. On the other hand, if it is determined that the interrupted state of time division communication is not to be ended, the process transitions to S4007 and the interrupted state of time division communication continues. In S4010, the camera microcomputer 205 outputs the notification channel CS to Low to notify the lens microcomputer 111 that the interrupted state of time-division communication will be ended and the communication will transition to broadcast communication. Then, this flow ends, and the camera microcomputer 205 also transitions to broadcast communication.
[0328] As described above, camera microcomputer 205 can switch between a first communication state in which first communication is performed for simultaneous communication with multiple accessory devices, and a second communication state in which second communication is performed for individual communication with a specific accessory device among the multiple accessory devices. Furthermore, when camera microcomputer 205 determines the timing to switch from the second communication state to the first communication state, it transmits a switch request and switch timing information to the specific accessory device via second communication. Here, the switch request is a request to switch to the first communication state, and the switch timing information is timing information used by the specific accessory device to calculate the switch timing. Furthermore, camera microcomputer 205 continues the second communication state until the switch timing, and switches to the first communication state at the switch timing.
[0329] In this embodiment, the camera microcomputer 205 can switch from the second communication state to an interrupted state in which the second communication is temporarily stopped. When the camera microcomputer 205 determines the timing to interrupt the second communication state, it transmits an interruption request and interruption timing information to the specific accessory device via the second communication. Here, the interruption request is a request to switch to the interrupted state, and the interruption timing information is timing information used by the specific accessory device to calculate the interruption timing. The camera microcomputer 205 continues the second communication state until the interruption timing and switches to the interrupted state at the interruption timing. Preferably, the camera microcomputer 205 sets the switching timing information and the interruption timing information based on a predetermined sequence or a predetermined cycle for individual communication with the specific accessory device.
[0330] Figure 34(b) shows the termination process, interruption process, and interruption resume process of time division communication executed by the lens microcomputer 111, which are executed when time division communication starts. In S4100, the lens microcomputer 111 executes transmission and reception process of time division communication. The transmission and reception process of time division communication has been explained in Figure 10, so it will be omitted here. When the transmission and reception to be performed in the current cycle is completed, the process transitions to S4101.
[0331] In S4101, the lens microcomputer 111 determines whether a termination request or an interruption request has been received from the camera microcomputer 205. If it is determined that a termination request or an interruption request has been received, the process transitions to S4102. On the other hand, if it is determined that neither a termination request nor an interruption request has been received, the process transitions to S4103. In S4102, the lens microcomputer 111 sets the timing for terminating or interrupting the time-division communication based on the received termination timing information or interruption timing information. Next, the lens microcomputer 111 sets the termination request ACK or interruption request ACK to be transmitted to the camera microcomputer 205 in the next transmission packet, and the process transitions to S4103.
[0332] In S4103, the lens microcomputer 111 determines whether it is time to end or interrupt the time-division communication. If it is determined that it is time to end or interrupt, the process proceeds to S4104. On the other hand, if it is determined that it is not time to end or interrupt, the process returns to S4100 and continues the time-division communication.
[0333] In S4104, the lens microcomputer 111 stops the transmission and reception processing of the time division communication and transitions to S4105. In S4105, the lens microcomputer 111 determines whether or not to end the time division communication. If it is determined that the time division communication should be ended, this flow is terminated and the flow transitions to broadcast communication. On the other hand, if it is determined that the time division communication should not be ended, the flow transitions to S4106, where the time division communication is suspended and the lens microcomputer 111 begins monitoring the signal levels of the notification channel CS and the data communication channel DATA.
[0334] In S4106, the lens microcomputer 111 determines whether to resume time division communication by monitoring whether the signal level of the data communication channel DATA has changed to Low. If it is determined that time division communication should be resumed, the process proceeds to S4107. On the other hand, if it is determined that time division communication should not be resumed, the process proceeds to S4108.
[0335] In S4107, the lens microcomputer 111 resumes the time division communication by canceling the interrupted state of the time division communication and returning to S4100. In S4108, the lens microcomputer 111 determines whether to end the interrupted state of the time division communication by monitoring whether the signal level of the notification channel CS has changed to Low. If it is determined that the interrupted state of the time division communication should be ended, the flow transitions to broadcast communication and ends. On the other hand, if it is determined that the interrupted state of the time division communication should not be ended, the flow transitions to S4106 and the interrupted state of the time division communication continues.
[0336] As described above, when the lens microcomputer 111 receives a switching request command and switching timing information from the camera microcomputer 205 via the second communication, it calculates the timing to switch from the second communication state to the first communication state based on the switching timing information. The lens microcomputer 111 then continues the second communication state until the switching timing, and switches to the first communication state at the switching timing. The lens microcomputer 111 can also switch from the second communication state to an interrupted state, which temporarily stops the second communication. When the lens microcomputer 111 receives an interruption request command and interruption timing information from the camera microcomputer 205 via the second communication, it calculates the interruption timing for switching to the interrupted state based on the interruption timing information. The lens microcomputer 111 then continues the second communication state until the interruption timing, and switches to the interrupted state at the interruption timing.
[0337] 35 shows a command packet (request command) sent and received between the camera microcomputer 205 and the accessories (lens microcomputer 111 and adapter microcomputer 302) in this embodiment to request the termination or interruption of time-division communication. The command packet has been explained with reference to FIG. 15, so the data content will be mainly explained here.
[0338] In this embodiment, the request command sent from the camera microcomputer 205 to the accessory and the request command sent from the accessory to the camera microcomputer 205 have the same command structure. Furthermore, bits 0 to 3 of the request information (3rd) are assigned as bits for sending an operation request from the camera microcomputer 205 to the accessory, and are also used as an ACK to the operation request when sent from the accessory to the camera microcomputer 205. Similarly, bits 4 to 7 are used as an operation request from the accessory to the camera microcomputer 205, or as an ACK from the camera microcomputer 205 to the accessory. Furthermore, the timing information (4th) is used as information indicating the timing for executing the request.
[0339] In this embodiment, Bit 0 of the request information (3rd) is used by the camera microcontroller 205 to notify the accessory of a request to terminate time-division communication, and the accessory notifies the camera microcontroller 205 of a termination request ACK. Furthermore, timing information (number of remaining cycles) is notified using timing information (4th). A specific communication example will now be described with reference to FIG. 31. Each data packet contains a request command as a command packet. When the camera microcontroller 205 determines that time-division communication is to be terminated, it sets Bit 0 of the request information (3rd) to 1 and the timing information (4th) to 3 at the "C→L" transition of the first cycle. The lens microcontroller 111 then receives the termination request and returns a termination request ACK by setting Bit 0 of the request information (3rd) to 1 at the next "L→C" transition. This process is repeated between the camera microcontroller 205 and the attached accessory up to the fourth cycle, allowing the camera microcontroller 205 and all accessories to terminate time-division communication at the desired timing and transition to broadcast communication.
[0340] In this embodiment, Bit 1 of the request information (3rd) is used to notify the accessory of a request to interrupt time-division communication from the camera microcomputer 205, and the accessory notifies the camera microcomputer 205 of an interrupt request ACK. Furthermore, timing information (4th) is used to notify interrupt timing information (number of remaining cycles). A specific example of communication is similar to the termination request described above, so its description will be omitted.
[0341] In this embodiment, Bit 4 of the request information (3rd) is used by the accessory to notify the camera microcontroller 205 of a request to terminate time-division communication, and the camera microcontroller 205 then notifies the accessory of a termination request ACK. Upon receiving the termination request, the camera microcontroller 205 transitions to broadcast communication by performing time-division communication termination processing. The accessory device also sets this Bit to 1 and sets the timing information (4th) to a predetermined value. This may specify the timing for transitioning to broadcast communication, or the timing information (4th) may be set to 0 to request immediate transition to broadcast communication. For example, this Bit is used when the accessory detects a communication abnormality and determines that broadcast communication should be restored from the abnormality, but its use is not limited to this.
[0342] Additionally, Bit 5 of the request information (3rd) is used by the accessory to notify the camera microcontroller 205 of a communication request, and the camera microcontroller 205 then notifies the accessory of a communication request ACK. Upon receiving the communication request, the camera microcontroller 205 adds a specified command packet to the next or subsequent data packet. In this case, the specified command packet may be a command packet for confirming the command packet requested by the accessory, which makes it possible to limit the data size of the request information for this request command to 1 byte. For example, this is used to request a command resend when the accessory detects that part of the command it received is unreliable due to a checksum mismatch, but its uses are not limited to this.
[0343] By using the request command of this embodiment, it is possible to minimize the amount of data required for communication between the camera microcomputer 205 and each accessory to request the termination or interruption of time-division communication. However, this is not limited to this embodiment, and it is sufficient if the termination and interruption of time-division communication can be synchronized between the camera microcomputer 205 and each accessory. For example, the termination request, termination timing information, interruption request, and interruption timing information may each be a separate command. Also, it is not necessary to send a termination request ACK or an interruption request ACK.
[0344] As described above, according to this embodiment, by sharing the timing for stopping time-division communication between the camera and the accessory device, it is possible to provide an imaging device and an accessory device that can normally stop time-division communication. [Example]
[0345] Next, a fifth embodiment of the present invention will be described. This embodiment is characterized by preparing to stop time division communication before interrupting or terminating the time division communication. This allows the time division communication to be stopped after safely stopping component control and arithmetic processing of the accessory device, making it possible to switch the communication method more safely. Note that the camera system of this embodiment has the same configuration as that of the fourth embodiment, so a description of the overlapping parts will be omitted.
[0346] 36(a) and (b) are flowcharts showing the termination process, interruption process, and interruption / resumption process of time division communication executed by the camera microcomputer 205 as the communication master and the lens microcomputer 111 as the communication slave in this embodiment. Except for the process of preparing to stop time division communication in Figures 36(a) and (b), the process is the same as Figures 34(a) and (b), so a description of the overlapping parts will be omitted.
[0347] 36(a) shows the termination process, interruption process, and interruption / restart process of time-division communication executed by the camera microcomputer 205, which are executed when time-division communication is started. S5000 to S5010 are substantially the same as S4000 to S4010 in FIG. 34(a), respectively, and therefore a description of the overlapping parts will be omitted.
[0348] In this embodiment, in S5000, if the camera microcomputer 205 has executed transmission / reception processing for time division communication, the process proceeds to S5011. In S5011, the camera microcomputer 205 determines whether to start preparations to stop time division communication. If it is determined that preparations to stop time division communication should be started, the process proceeds to S5012. On the other hand, if it is determined that preparations to stop time division communication should not be started, the process proceeds to S5001. In S5012, the camera microcomputer 205 sets a stop preparation request to be transmitted in the next transmission packet, and then proceeds to S5001. In this embodiment, the stop preparation request from the camera microcomputer 205 can be assigned to Bit 2 (not shown) of the request information (3rd) in FIG. 35, thereby minimizing the amount of communication required for terminating, interrupting, and preparing to stop time division communication, but this is not limited to this. For example, a command for the stop preparation request may be provided.
[0349] In S5001, similarly to S4001, the camera microcomputer 205 determines whether to perform termination processing or interruption processing of the time division communication. If it is determined that termination processing or interruption processing of the time division communication is to be performed, the process transitions to S5002. On the other hand, if it is determined that neither termination processing nor interruption processing of the time division communication is to be performed, the process transitions to S5001. The determination conditions at this time may include whether stop preparation completion information (switching availability information) or interruption preparation completion information (interruption availability information) corresponding to the stop preparation request in S5012 has been received from the lens microcomputer 111. That is, before determining the timing of switching from the second communication state to the first communication state, the camera microcomputer 205 may receive, from a specific accessory device, switch availability information indicating whether switching to the first communication state is possible through the second communication. Similarly, before determining the timing of switching from the second communication state to the interruption state, the camera microcomputer 205 may receive, from a specific accessory device, interruption availability information indicating whether switching to the interruption state is possible through the second communication.
[0350] 36(b) shows the termination process, interruption process, and interruption / resumption process of time division communication executed by the lens microcomputer 111, which are executed when time division communication starts. Steps S5100 to S5108 are substantially the same as steps S4100 to S4108 in FIG. 34(b), and therefore a description of the overlapping parts will be omitted.
[0351] In this embodiment, in S5100, the lens microcomputer 111 executes the transmission and reception processing of time-division communication, and then transitions to S5109. In S5109, the lens microcomputer 111 determines whether or not a stop preparation request has been received from the camera microcomputer 205. If it is determined that a stop preparation request has been received, the process transitions to S5110. On the other hand, if it is determined that a stop preparation request has not been received, the process transitions to S5101.
[0352] In S5110, the lens microcomputer 111 performs a process for preparing to stop time-division communication so that no abnormalities occur even if time-division communication is stopped, and then transitions to S5111. In this embodiment, the process for preparing to stop time-division communication by the lens microcomputer 111 is a process for stopping the drive of the anti-vibration actuator 126 to the center, but is not limited to this. For example, the process may be a process for stopping various actuators other than the anti-vibration actuator 126, a process for stopping a calculation process in progress, or a process for storing parameters in a non-volatile memory (not shown) in the lens microcomputer 111 for use after time-division communication is resumed.
[0353] In S5111, when the stop preparation process for time-division communication is completed, the lens microcomputer 111 sets the stop preparation process completion information to be transmitted in the next transmission packet, and then transitions to S5101. In this embodiment, the stop preparation completion information from the lens microcomputer 111 is assigned to Bit 6 (not shown) of the request information (3rd) in FIG. 35, thereby minimizing the amount of communication required for terminating, interrupting, and preparing to stop time-division communication. However, this is not limited to this. For example, a command for transmitting stop preparation completion information (switching availability information) or interrupt preparation completion information (interrupt availability information) may be provided. That is, the lens microcomputer 111 may transmit to the camera microcomputer 205 switch availability information indicating whether or not switching to the first communication state is possible through the second communication. Similarly, the lens microcomputer 111 may transmit to the camera microcomputer 205 switch availability information indicating whether or not switching to the interrupted state is possible through the second communication.
[0354] According to this embodiment, by preparing to stop the time division communication before interrupting or terminating the time division communication, it is possible to stop the time division communication after safely stopping the component control and arithmetic processing of the accessory. Therefore, it is possible to provide an imaging device, an accessory device, etc. that can switch communication modes more safely.
[0355] (Other Examples) The present invention can also be realized by supplying a program that realizes one or more functions of the above-described embodiments to a system or device via a network or a storage medium, and having one or more processors in the 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 realizes one or more functions.
[0356] According to each embodiment, by sharing the timing for stopping time division communication between the camera and the accessory device, it is possible to provide a camera, accessory device, communication control method, and program that can normally stop time division communication.
[0357] The disclosure of each embodiment includes the following configurations and methods.
[0358] (Configuration 1) An imaging device that can be used with a plurality of accessory devices connected thereto, a control unit that controls communication with the plurality of accessory devices using a first channel used for data communication with the plurality of accessory devices and a second channel that notifies timing of communication via the first channel; The control unit a first communication state in which a first communication is performed for simultaneous communication with the plurality of accessory devices using the first channel, and a second communication state in which a second communication is performed for individual communication with a specific accessory device among the plurality of accessory devices using the first channel, When the timing for switching from the second communication state to the first communication state is determined, the imaging device transmits to the specific accessory device via the second communication a switching request requesting switching to the first communication state and switching timing information used by the specific accessory device to calculate the switching timing, continues the second communication state until the switching timing, and switches to the first communication state at the switching timing. (Configuration 2) The control unit The second communication state is switchable to a suspended state in which the second communication is temporarily stopped, When the timing to switch from the second communication state to the interrupted state is determined, the imaging device described in configuration 1 is characterized in that an interruption request requesting switching to the interrupted state and interruption timing information used by the specific accessory device to calculate the interruption timing are transmitted to the specific accessory device via the second communication, the second communication state is continued until the interruption timing, and the imaging device switches to the interrupted state at the interruption timing. (Configuration 3) The imaging device described in configuration 2, wherein the control unit sets the switching timing information and the interruption timing information based on a predetermined order or a predetermined cycle for the individual communication with the specific accessory device. (Configuration 4) In the first communication state, the control unit: setting a voltage level of the first channel to a first level before the first communication is performed and then changing the voltage level to a second level different from the first level, and changing the second level to the first level after the first communication is performed; The imaging device according to any one of configurations 1 to 3, characterized in that the voltage level of the first channel is set to a third level before the first communication is executed, the voltage level of the second channel changes to the second level before the first communication is executed, and then changes to a fourth level different from the third level, and data is transmitted after a predetermined time has elapsed since then, and the voltage level is changed to the third level after the first communication is executed. (Configuration 5) the first level is higher than the second level; 5. The imaging device according to configuration 4, wherein the third level is higher than the fourth level. (Configuration 6) In the second communication state, the control unit setting a voltage level of the second channel to the first level before and during execution of the second communication, changing the voltage level to the second level after execution of the second communication, and changing the voltage level to the first level after a predetermined time has elapsed; 6. The imaging device according to configuration 4 or 5, wherein the voltage level of the first channel is set to the third level before the second communication is performed, changed to the fourth level before the second communication is performed, data is transmitted after a predetermined time has elapsed since the voltage level of the first channel is set to the third level before the second communication is performed, and changed to the third level after the second communication is performed. (Configuration 7) The control unit The second communication state is switchable to a suspended state in which the second communication is temporarily stopped, 7. The imaging device according to any one of configurations 4 to 6, wherein in the suspended state, the voltage level of the second channel is set to the first level, and the voltage level of the first channel is set to the third level. (Configuration 8) The control unit The second communication state is switchable to a suspended state in which the second communication is temporarily stopped, 8. The imaging device according to any one of configurations 4 to 7, wherein when switching from the interrupted state to the first communication state, the voltage level of the second channel is changed from the first level to the second level. (Configuration 9) The control unit The second communication state is switchable to a suspended state in which the second communication is temporarily stopped, 9. The imaging device according to any one of configurations 4 to 8, wherein when switching from the interrupted state to the second communication state, the voltage level of the first channel is changed from a third level to a fourth level. (Configuration 10) The imaging device described in any one of configurations 1 to 9, characterized in that the control unit receives switchability information indicating whether or not it is possible to switch to the first communication state via the second communication from the specific accessory device before determining the timing of switching from the second communication state to the first communication state. (Configuration 11) The control unit The second communication state is switchable to a suspended state in which the second communication is temporarily stopped, An imaging device described in any of configurations 1 to 10, characterized in that before determining the timing of switching from the second communication state to the suspended state, interruption feasibility information indicating whether or not it is possible to switch to the suspended state via the second communication is received from the specific accessory device. (Configuration 12) An accessory device that can be connected to an imaging device that can be used with a plurality of accessory devices connected thereto, an accessory control unit that controls communication with the imaging device using a first channel used for data communication with the imaging device and a second channel that notifies timing of communication via the first channel; The accessory control unit a first communication state in which first communication is performed for broadcast communication with the imaging devices using the first channel, and a second communication state in which second communication is performed for individual communication with the imaging devices using the first channel, being switchable; an accessory device, when receiving a switching request and switching timing information from the imaging device via the second communication, calculating timing to switch from the second communication state to the first communication state based on the switching timing information, continuing the second communication state until the switching timing, and switching to the first communication state at the switching timing. (Configuration 13) The accessory control unit The second communication state is switchable to a suspended state in which the second communication is temporarily stopped, The accessory device described in configuration 12 is characterized in that, when an interruption request and interruption timing information are received from the imaging device via the second communication, the accessory device calculates the interruption timing for switching to the interrupted state based on the interruption timing information, continues the second communication state until the interruption timing, and switches to the interrupted state at the interruption timing. (Configuration 14) The accessory device according to configuration 13, wherein the accessory control unit calculates the switching timing and the interruption timing based on a predetermined order or a predetermined cycle for the individual communication with the imaging device. (Configuration 15) The accessory device described in any one of configurations 12 to 14, characterized in that, in the first communication state, the accessory control unit starts receiving data after a predetermined time has elapsed since the voltage level of the first channel changed from a third level to a fourth level different from the third level, while the voltage level of the second channel changed from a first level to a second level different from the first level. (Configuration 16) the first level is higher than the second level; 16. The accessory device of claim 15, wherein the third level is higher than the fourth level. (Configuration 17) In the second communication state, the accessory control unit setting a voltage level of the second channel to the first level before and during execution of the second communication, changing the voltage level to the second level after execution of the second communication, and changing the voltage level to the first level after a predetermined time has elapsed; The accessory device of configuration 15 or 16, characterized in that the voltage level of the first channel is set to the third level before the second communication is performed, changed to the fourth level before the second communication is performed, data is transmitted after a predetermined time has elapsed, and changed to the third level after the second communication is performed. (Configuration 18) The accessory control unit The second communication state is switchable to a suspended state in which the second communication is temporarily stopped, 18. An accessory device as described in any one of configurations 15 to 17, characterized in that when the voltage level of the second channel changes from the first level to the second level in the suspended state, the accessory device switches from the suspended state to the first communication state. (Configuration 19) The accessory control unit The second communication state is switchable to a suspended state in which the second communication is temporarily stopped, 19. An accessory device as described in any one of configurations 15 to 18, characterized in that when the voltage level of the first channel changes from the third level to the fourth level in the suspended state, the accessory device switches from the suspended state to the second communication state. (Configuration 20) An accessory device described in any of configurations 12 to 19, characterized in that the accessory control unit transmits switchability information to the imaging device indicating whether or not it is possible to switch to the first communication state through the second communication. (Configuration 21) The accessory control unit The second communication state is switchable to a suspended state in which the second communication is temporarily stopped, 21. The accessory device according to any one of configurations 12 to 20, wherein the accessory device transmits, to the imaging device, switchability information indicating whether or not the imaging device can be switched to the interrupted state by the second communication. (Method 1) A communication control method for controlling communication with a plurality of accessory devices in an imaging device that can be used in a state where a plurality of accessory devices are connected, using a first channel used for data communication with the plurality of accessory devices and a second channel for notifying timing of communication via the first channel, comprising: a first communication step of performing first communication for simultaneous communication with the plurality of accessory devices using the first channel in a first communication state; a second communication step of performing, in a second communication state, a second communication for individual communication with a specific accessory device among the plurality of accessory devices using the first channel; a switching step of switching between the first communication state and the second communication state, A communication control method characterized in that, in the switching step, when the timing for switching from the second communication state to the first communication state is determined, a switching request requesting switching to the first communication state and switching timing information used by the specific accessory device to calculate the switching timing are transmitted to the specific accessory device via the second communication, the second communication is continued until the switching timing, and the specific accessory device switches to the first communication state at the switching timing. (Method 2) 1. A communication control method for controlling communication between an accessory device connected to an imaging device that can be used in a state where a plurality of accessory devices are connected, the accessory device using a first channel used for data communication with the imaging device and a second channel for notifying timing of communication via the first channel, the method comprising: a first communication step of performing first communication for broadcast communication with the imaging device using the first channel in a first communication state; a second communication step of performing second communication for individual communication with the imaging device using the first channel in a second communication state; a switching step of switching between the first communication state and the second communication state, a communication control method characterized in that, in the switching step, when a switching request and switching timing information are received from the imaging device via the second communication, a timing for switching from the second communication state to the first communication state is calculated based on the switching timing information, the second communication state is continued until the switching timing, and at the switching timing, the communication control method switches to the first communication state. (Configuration 22) A program that causes a computer to execute the communication control method according to Method 1 or 2.
[0359] 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]
[0360] 100 Interchangeable lenses (accessory devices) 111 Lens microcomputer (accessory control unit) 200 Camera (imaging device) 205 Camera microcomputer (control unit) 300 Intermediate adapter (accessory device) 302 Adapter microcomputer (accessory control unit) CS Notification Channel (Second Channel) DATA Data communication channel (first channel)
Claims
1. An imaging device that can be used in a state where multiple accessory devices are connected, a control unit that controls communication with the plurality of accessory devices using a first channel used for data communication with the plurality of accessory devices and a second channel that notifies a timing of communication via the first channel; The control unit is a first communication state in which a first communication is performed for simultaneous communication with the plurality of accessory devices using the first channel, and a second communication state in which a second communication is performed for individual communication with a specific accessory device among the plurality of accessory devices using the first channel, When the timing to switch from the second communication state to the first communication state is determined, the imaging device transmits to the specific accessory device via the second communication a switching request requesting switching to the first communication state and switching timing information used by the specific accessory device to calculate the switching timing, continues the second communication state until the switching timing, and switches to the first communication state at the switching timing.
2. The control unit is The second communication state is switchable to an interrupted state in which the second communication is temporarily stopped, The imaging device of claim 1, characterized in that when the interruption timing to switch from the second communication state to the interrupted state is determined, an interruption request requesting switching to the interrupted state and interruption timing information used by the specific accessory device to calculate the interruption timing are transmitted to the specific accessory device via the second communication, the second communication state is continued until the interruption timing, and the imaging device switches to the interrupted state at the interruption timing.
3. The imaging device according to claim 2 , wherein the control unit sets the switching timing information and the interruption timing information based on a predetermined order or a predetermined cycle for the individual communication with the specific accessory device.
4. The control unit, in the first communication state, setting a voltage level of the second channel to a first level before the first communication is performed and then changing the voltage level to a second level different from the first level, and changing the second level to the first level after the first communication is performed; 2. The imaging device according to claim 1, characterized in that the voltage level of the first channel is set to a third level before the first communication is executed, the voltage level of the second channel changes to the second level before the first communication is executed and then changes to a fourth level different from the third level, data is transmitted a predetermined time later, and the voltage level is changed to the third level after the first communication is executed.
5. the first level is higher than the second level; The imaging device according to claim 4 , wherein the third level is higher than the fourth level.
6. The control unit, in the second communication state, setting a voltage level of the second channel to the first level before and during the second communication, changing the voltage level to the second level after the second communication is performed, and changing the voltage level to the first level after a predetermined time has elapsed; 5. The imaging device according to claim 4, characterized in that the voltage level of the first channel is set to the third level before the second communication is executed, changed to the fourth level before the second communication is executed, data is transmitted a predetermined time later, and changed to the third level after the second communication is executed.
7. The control unit is The second communication state is switchable to an interrupted state in which the second communication is temporarily stopped, 5. The imaging device according to claim 4, wherein in the suspended state, the voltage level of the second channel is set to the first level, and the voltage level of the first channel is set to the third level.
8. The control unit is The second communication state is switchable to an interrupted state in which the second communication is temporarily stopped, 5. The imaging device according to claim 4, wherein when switching from the interrupted state to the first communication state, a voltage level of the second channel is changed from the first level to the second level.
9. The control unit is The second communication state is switchable to an interrupted state in which the second communication is temporarily stopped, 5. The imaging device according to claim 4, wherein when switching from the interrupted state to the second communication state, the voltage level of the first channel is changed from a third level to a fourth level.
10. The imaging device described in any one of claims 1 to 9, characterized in that the control unit receives switching feasibility information indicating whether or not it is possible to switch to the first communication state through the second communication from the specific accessory device before determining the timing of switching from the second communication state to the first communication state.
11. The control unit is The second communication state is switchable to an interrupted state in which the second communication is temporarily stopped, The imaging device according to any one of claims 1 to 9, characterized in that before determining the timing of switching from the second communication state to the interrupted state, interruption feasibility information indicating whether or not it is possible to switch to the interrupted state via the second communication is received from the specific accessory device.
12. An accessory device that can be connected to an imaging device that can be used in a state where multiple accessory devices are connected, an accessory control unit (111, 302) that controls communication with the imaging device using a first channel used for data communication with the imaging device and a second channel that notifies a timing of communication via the first channel; The accessory control unit includes: a first communication state in which a first communication for broadcast communication with the imaging devices is performed using the first channel and a second communication state in which a second communication for individual communication with the imaging devices is performed using the second channel, When a switching request and switching timing information are received from the imaging device via the second communication, the accessory device calculates a switching timing from the second communication state to the first communication state based on the switching timing information, continues the second communication state until the switching timing, and switches to the first communication state at the switching timing.
13. The accessory control unit includes: The second communication state is switchable to an interrupted state in which the second communication is temporarily stopped, The accessory device of claim 12, characterized in that when an interruption request and interruption timing information are received from the imaging device via the second communication, an interruption timing for switching to the interrupted state is calculated based on the interruption timing information, the second communication state is continued until the interruption timing, and the accessory device switches to the interrupted state at the interruption timing.
14. The accessory device according to claim 13 , wherein the accessory control unit calculates the switching timing and the interruption timing based on a predetermined sequence or a predetermined cycle for the individual communication with the imaging device.
15. The accessory device of claim 12, characterized in that, in the first communication state, the accessory control unit starts receiving data a predetermined time after the voltage level of the first channel changes from a third level to a fourth level different from the third level, while the voltage level of the second channel changes from a first level to a second level different from the first level.
16. the first level is higher than the second level; 16. The accessory device of claim 15, wherein the third level is higher than the fourth level.
17. In the second communication state, the accessory control unit setting a voltage level of the second channel to the first level before and during the second communication, changing the voltage level to the second level after the second communication is performed, and changing the voltage level to the first level after a predetermined time has elapsed; The accessory device of claim 15, characterized in that the voltage level of the first channel is set to the third level before the second communication is performed, changed to the fourth level before the second communication is performed, data is transmitted a predetermined time after the voltage level is changed to the third level after the second communication is performed.
18. The accessory control unit includes: The second communication state is switchable to an interrupted state in which the second communication is temporarily stopped, 16. The accessory device of claim 15, wherein the accessory device switches from the suspended state to the first communication state when a voltage level of the second channel changes from the first level to the second level while in the suspended state.
19. The accessory control unit includes: The second communication state is switchable to an interrupted state in which the second communication is temporarily stopped, 16. The accessory device of claim 15, wherein the accessory device switches from the suspended state to the second communication state when a voltage level of the first channel changes from the third level to the fourth level while in the suspended state.
20. The accessory device according to claim 12 , wherein the accessory control unit transmits, to the imaging device, switchability information indicating whether or not the imaging device can switch to the first communication state through the second communication.
21. The accessory control unit includes: The second communication state is switchable to an interrupted state in which the second communication is temporarily stopped, The accessory device according to claim 12 , wherein the accessory device transmits, to the imaging device, switchability information indicating whether or not the imaging device can be switched to the interrupted state through the second communication.
22. 1. A communication control method for an imaging device that can be used in a state where a plurality of accessory devices are connected, the method comprising: controlling communication with the plurality of accessory devices using a first channel used for data communication with the plurality of accessory devices and a second channel for notifying a timing of communication via the first channel, the method comprising: a first communication step of performing a first communication for simultaneous communication with the plurality of accessory devices using the first channel in a first communication state; a second communication step of performing a second communication for individual communication with a specific accessory device among the plurality of accessory devices using the first channel in a second communication state; a switching step of switching between the first communication state and the second communication state, A communication control method characterized in that, in the switching step, when the timing to switch from the second communication state to the first communication state is determined, a switching request requesting switching to the first communication state and switching timing information used by the specific accessory device to calculate the switching timing are transmitted to the specific accessory device via the second communication, the second communication state is continued until the switching timing, and the communication state is switched to the first communication state at the switching timing.
23. 1. A communication control method for controlling communication between an accessory device connected to an imaging device that can be used in a state where a plurality of accessory devices are connected, the accessory device controls communication between the imaging device and the imaging device using a first channel used for data communication with the imaging device and a second channel for notifying a timing of communication via the first channel, a first communication step of performing a first communication for broadcast communication with the imaging device using the first channel in a first communication state; a second communication step of performing a second communication for individual communication with the imaging device using the first channel in a second communication state; a switching step of switching between the first communication state and the second communication state, a communication control method comprising: when, in the switching step, a switching request and switching timing information are received from the imaging device via the second communication, calculating a switching timing from the second communication state to the first communication state based on the switching timing information, continuing the second communication state until the switching timing, and switching to the first communication state at the switching timing.
24. A program for causing a computer to execute the communication control method according to claim 22 or 23.
Citation Information
Patent Citations
Semiconductor device
JP1989027287A
