Disclosure of Invention
The invention provides a shutter simulation control method for solving the technical problem that the service life of a shutter is lost due to the fact that an actual shutter needs to be operated in the teaching demonstration process in the prior art, and can solve the problem.
In order to solve the technical problems, the invention adopts the following technical scheme:
a shutter analog control method, comprising:
(1) judging whether a photographing signal sent by a camera is received, if so, executing the step (2), otherwise, returning to the step (1);
(2) judging whether a shutter opening signal and a shutter tightening signal sent by the camera are received, if so, executing the step (3), otherwise, returning to the step (2);
(3) judging a shutter charge result set by the program, if the shutter charge result indicates that the shutter is charged, executing a shutter opening interruption logic, otherwise, executing the shutter charge logic, and then executing the shutter opening interruption logic;
the shutter open interrupt logic comprises a shutter open signal generated and fed back to the camera;
the shutter charge logic comprises: and sequentially generating and outputting a shutter positive tightening signal and a shutter tightening signal according to the time sequence, and executing a shutter opening interruption logic after the shutter tightening signal is output.
Further, the shutter charge logic first waits for time t1 to generate and output a shutter positive charge signal to the camera, and then waits for time t2 to generate and output a shutter charged signal to the camera, where t1 > 0 and t2 > 0.
Further, the shutter cocking result set in the step (3) is that the shutter is cocked or not cocked.
Further, before the step (1), a self-checking step of timing interruption is further included, and when the self-checking output result is normal, the step (1) is executed.
Further, the timed interrupt self-checking step includes:
(01) receiving a control signal sent by a camera that the curtain seam is opened to the maximum, and setting and feeding back a self-checking result of the maximum opening according to a program;
(02) receiving a control signal sent by a camera for controlling the curtain seam to be minimum, and setting a feedback minimum opening self-checking result according to a program;
(03) and when the maximum opening self-checking result and the minimum opening self-checking result are normal, returning to interrupt, and executing the step (1), otherwise, not executing the step (1).
Further, the maximum opening self-test result set in the step (01) includes two states, i.e., the maximum opening self-test result is normal and the maximum opening self-test result is abnormal.
Further, a control signal that the curtain seam is opened to the maximum and is sent by the camera is received in the step (01), and after waiting for time t3, a maximum opening self-checking result is set and fed back according to a program, wherein t3 is greater than 0.
Further, the minimum opening degree self-test result set in the step (02) includes two states, i.e., the minimum opening degree self-test result is normal and the minimum opening degree self-test result is abnormal.
Further, a control signal that the curtain seam is opened to the minimum and is sent by the camera is received in the step (02), and after waiting for time t4, a minimum opening self-detection result is fed back according to program setting, wherein t4 is greater than 0.
Compared with the prior art, the invention has the advantages and positive effects that: the shutter simulation control method provided by the invention is particularly suitable for teaching demonstration or camera communication interface inspection by simulating communication and response between a real shutter system and a camera, so that the actual shutter working times are reduced, the service life of the actual shutter is prevented from being damaged, and the normal work of other systems of the camera is not influenced.
Other features and advantages of the present invention will become more apparent from the detailed description of the embodiments of the present invention when taken in conjunction with the accompanying drawings.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In one embodiment, the shutter and the camera in the aerial photography equipment are two independent devices respectively, when in operation, the camera sends a control command to the shutter, the control command is executed by the shutter and feeds back the execution result of the response to the camera, wherein the control command sent by the camera comprises a shutter charge command, a shutter open command, a photography signal command and the like, the shutter performs charge in response to the execution of the commands, and forms a 'positive charge' and a 'charged' process by receiving a camera photography signal in the charge process, and outputs a 'positive charge' and a 'charged' feedback signal to the camera. The shutter release process is formed by receiving a shutter release command transmitted from the camera, and feedback signals such as "released", "frame center", and "count" are output to the camera. Because the number of times that the shutter can perform an action is limited, the designed service life is shortened once every time the shutter performs an action, and especially in the process of teaching demonstration or performance detection of a camera, if an actual shutter is adopted to cooperate with the camera action, waste is caused to the service life of the shutter, based on this, the embodiment provides a shutter simulation control method, which can simulate the shutter and cooperate with the camera to communicate, so as to avoid waste of the actual shutter, as shown in fig. 1, the shutter simulation method of the embodiment includes:
s1, judging whether a photographing signal sent by the camera is received, if so, executing a step S2, otherwise, returning to the step S1; the camera transmits a photographing signal for activating the shutter to keep the shutter in a state of waiting for execution of an operation, and continues to receive another control signal transmitted from the camera.
S2, judging whether a shutter opening signal and a shutter tightening signal sent by the camera are received, if so, executing a step S3, otherwise, returning to the step S2; signals input by the camera are input to a control module of the shutter analog system through the isolation shaping circuit, and then the control module reads the signals. The shutter opening signal requires a high response speed, and therefore an interrupt system is used for responding.
S3, judging the shutter charge result set by the program, if the shutter charge result shows that the shutter is charged, executing a shutter opening interruption logic, otherwise, executing the shutter charge logic, and then executing the shutter opening interruption logic; and for different input signals, the control module performs corresponding operation processing to simulate an actual shutter and output corresponding signals.
The shutter open interrupt logic comprises a shutter open signal generated and fed back to the camera;
the shutter charge-up logic comprises: and sequentially generating and outputting a shutter positive tightening signal and a shutter tightening signal according to the time sequence, and executing a shutter opening interruption logic after the shutter tightening signal is output.
The digital signal output by the control module is buffered and isolated and output to be a feedback signal meeting the requirement of the camera. The output voltage of the shutter cocked, shutter opened, shutter positive cocked signal is 15V, and the counter signal is 27V.
The shutter simulation control method of the embodiment is particularly suitable for teaching demonstration or camera communication interface inspection by simulating communication and response between a real shutter system and a camera, so that the actual shutter working times are reduced, the service life of the actual shutter is prevented from being damaged, and the normal work of other systems of the camera is not influenced.
In the shutter charge logic, the precondition for execution is that the shutter is detected not to charge, the charge action needs to be executed next in the actual shutter, because the device corresponding to the method has no execution mechanism, the real execution action cannot be simulated, only the corresponding execution result needs to be fed back according to the setting, and the actual shutter execution action needs a certain response time, therefore, as shown in fig. 2, in the present scheme, in the shutter charge logic, first, the waiting time t1 is waited, the waiting time t1 is consistent with the response time of the actual shutter to execute the charge action, then, a shutter charge signal is generated and output to the camera, then, the waiting time t2 is waited, the waiting time t2 is consistent with the time of the actual shutter to execute the charge action, then, a shutter charge signal is generated and output to the camera, t1, t2 can be set according to experience, wherein t1 is greater than 0, t2 > 0. In the scheme, the waiting time t1 and the waiting time t2 are set, so that a user can feel the response speed of the actual shutter and is closer to the real feeling.
The shutter cocking result set in the step S3 is that the shutter is cocked or not cocked. In general, the shutter charge result set by a program is that the shutter is charged, when the charge fault needs to be simulated, the charge fault can be modified into the charge fault and correspondingly fed back to the camera, and the scheme can simulate the charge fault state of the actual shutter and is more close to various performance states possibly met by the real shutter.
The camera also sends exposure parameters to the shutter, and the shutter receives the exposure enhancement parameters and the exposure reduction parameters of the camera, controls the shutter speed regulating motor to rotate to regulate the shutter speed, and simultaneously drives the feedback potentiometer to rotate. And outputting a 'minimum curtain slit' signal and a 'maximum curtain slit' signal to the camera at 2 extreme positions in the speed regulation process. Therefore, the size of the curtain slit of the shutter determines the exposure time of the camera and further determines the imaging quality of the camera, and whether the curtain slit of the shutter can be adjusted according to the control of the camera requires self-checking.
Before step S1, a timer interrupt self-test step is further included, and when the self-test output result is normal, step S1 is executed.
As shown in fig. 3, the timed interrupt self-checking step includes:
s01, receiving a control signal sent by the camera that the curtain seam is opened to the maximum, and setting and feeding back a self-checking result of the maximum opening according to a program;
s02, receiving a control signal sent by the camera that the curtain seam is opened to the minimum, and setting a feedback minimum opening self-checking result according to a program;
and S03, when the maximum opening degree self-checking result and the minimum opening degree self-checking result are both normal, returning to the interruption, and executing the step S1, otherwise, not executing the step S1. When the maximum opening self-checking result and the minimum opening self-checking result are both normal, it indicates that the curtain slit can be executed according to the control signal of the camera, so the following steps can be continued, otherwise, it indicates that the curtain slit is opened abnormally, and the subsequent steps are not executed, and the step S1 is not executed correspondingly.
Since the shutter simulation device corresponding to the shutter simulation method of the present embodiment does not have an actual curtain slit, it is only necessary to feed back the self-inspection result to the camera according to the program setting.
The maximum opening degree self-test result set in the program of step S01 includes two states, the maximum opening degree self-test result being normal and the maximum opening degree self-test result being abnormal. Generally, the fed back maximum opening degree self-checking result is normal, when the abnormal state of the maximum opening degree needs to be simulated, the maximum opening degree self-checking result can be modified to be abnormal, and at the moment, the abnormal result is fed back to the camera by the shutter. The maximum aperture abnormal state that this scheme can simulate actual shutter is close various performance states that true shutter probably met more, and behind the camera was fed back to unusual result, the demonstration output module that links to each other with the camera showed output, can demonstrate this kind of state to the student's teaching, deepens and understands the device comprehensively.
When the actual shutter responds to the control signal that the curtain slit is opened to the maximum, the action of the speed regulating motor needs to be controlled, certain corresponding time is needed, and the simulation device does not have the speed regulating motor and does not need to be really executed, so that the response process of the actual shutter is simulated only by setting the waiting time consistent with the actual response time, and then the self-checking result is fed back, therefore, the control signal that the curtain slit is opened to the maximum and sent by the camera is received in the step S01, the maximum opening self-checking result is fed back according to the program setting after the waiting time t3, wherein t3 is greater than 0.
Similarly, the minimum opening degree self-test result set in the step S02 includes two states, i.e., the minimum opening degree self-test result is normal and the minimum opening degree self-test result is abnormal.
And S02, receiving a control signal which is sent by the camera and used for controlling the curtain seam to be minimum, waiting for a time t4, and feeding back a minimum opening self-detection result according to program setting, wherein t4 is greater than 0.
According to the scheme, the waiting time t3 and t4 are set, so that a user can feel the self-checking waiting time of the actual shutter, a student can obtain experience as the student agrees to operate the actual shutter in the teaching demonstration process, and various sudden conditions can be flexibly handled in the actual operation process.
It is to be understood that the above description is not intended to limit the present invention, and the present invention is not limited to the above examples, and those skilled in the art may make modifications, alterations, additions or substitutions within the spirit and scope of the present invention.