Meter position control device and method of verification equipment, electronic equipment and storage medium
By designing a hardware control circuit in the verification device directly controls the magnetic holding relay, the detection circuit burning problem caused by untimely epitope response in the prior art is solved, and faster and safer epitope isolation is achieved.
Patent Information
- Application Number
- CN202411039000.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-11-22
AI Technical Summary
When existing verification devices detect open circuits or poor connections of the epitope, the problem of inadequate responses leading to a large current burning of the detection circuit.
An epitope control device including a computer, a microcontroller, a hardware control circuit and a magnetic holding relay was designed. The magnetic holding relay is directly turned on or off through the hardware control circuit to achieve epitope isolation, avoiding dependence on the computer and interruption processing. Delay.
Faster and safer epitope isolation is achieved, avoiding the burning problem caused by untimely response of the detection circuit, and improving the safety and efficiency of the verification process.
Smart Images

Figure CN119001587A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of epitope control of a calibration device, and in particular to an epitope control device, method, electronic equipment and storage medium for a calibration device. Background Art
[0002] Most electric energy meters are used for electricity bill settlement or economic assessment. They are measuring instruments that are subject to mandatory inspection by the state. The national and power industry verification regulations stipulate that electric energy meters in operation should be regularly calibrated. Faced with a large number of meters to be inspected, a variety of verification devices have emerged.
[0003] Existing calibration devices usually use software control methods to detect open circuits. When an open circuit is detected in the detection circuit, a high / low level is output as an interrupt condition and the interrupt condition is sent to the computer. After receiving the interrupt condition, the computer issues a control command to control the magnetic latching relay to close, thereby achieving automatic isolation of the table.
[0004] However, if there are other interrupt conditions with higher priorities in the computer at this time, the computer will give priority to processing the interrupt conditions with higher priorities, and thus cannot control the isolation of the epitope in the first time, resulting in problems such as large current burning the detection circuit. Summary of the invention
[0005] The embodiments of the present invention provide a surface control device, method, electronic device and storage medium for a calibration device to solve the problem of large current burning out the detection circuit due to untimely surface isolation response in the prior art.
[0006] In the first aspect, an embodiment of the present invention provides a table position control device of a calibration equipment, comprising: a computer, a single-chip microcomputer, a hardware control circuit and a magnetic holding relay; the hardware control circuit comprises a detection module, an optocoupler, a signal filter and a magnetic holding drive circuit; the output end of the computer is connected to the input end of the single-chip microcomputer; the output end of the single-chip microcomputer is connected to the input end of the detection module, which is used to control the hardware control circuit to be turned on or off according to the characteristics of the calibration signal, the output end of the detection module is connected to the input end of the optocoupler, which is used to output a level signal when the hardware control circuit is turned on, the output end of the optocoupler is connected to the input end of the signal filter, which is used to separate the level signal to obtain a control signal, the output end of the signal filter is connected to the input end of the magnetic holding drive circuit, which is used to filter the control signal to obtain a drive signal, and the output end of the magnetic holding drive circuit is connected to the input end of the magnetic holding relay, which is used to control the magnetic holding relay to be closed or disconnected according to the drive signal.
[0007] In a possible implementation, the device further includes a software control circuit;
[0008] The input end of the software control circuit is connected between the single chip microcomputer and the detection module, and the output end of the software control circuit is connected between the signal filter and the magnetic holding drive circuit.
[0009] In a possible implementation, the hardware control module further includes a current loop switching module;
[0010] The current loop switching module is arranged between the single chip microcomputer and the detection module, and is used to control the hardware control circuit to be turned on or off according to the type of the detection signal, or to control the software control circuit to be turned on or off according to the type of the detection signal.
[0011] In a possible implementation, the detection module includes a sampling resistor, a bridge stack and a Schmitt trigger;
[0012] The output end of the current loop switching module is connected to the input end of the sampling resistor, the output end of the sampling resistor is connected to the input end of the bridge stack, the output end of the bridge stack is connected to the input end of the Schmitt trigger, and the output end of the Schmitt trigger is connected to the input end of the optocoupler.
[0013] In a second aspect, an embodiment of the present invention provides an epitope control method for a detection device, comprising:
[0014] Obtaining a test signal sent by a computer, and controlling the on or off of a hardware control circuit according to the characteristics of the test signal and the type of the test signal, or controlling the on or off of a software control circuit according to the characteristics of the test signal and the type of the test signal;
[0015] When the hardware control circuit is turned on, the voltage drop value of the sampling resistor is obtained, and the table position state of the calibration equipment is obtained according to the voltage drop value;
[0016] The epitope of the detection device is controlled according to the epitope state, and the control result is sent to the computer.
[0017] In a possible implementation, controlling the on or off of a hardware control circuit according to a feature of a detection signal and a type of the detection signal, or controlling the on or off of a software control circuit according to a feature of a detection signal and a type of the detection signal, includes:
[0018] When the feature of the verification signal is a hardware control feature and the type of the verification signal is a normal current signal, the hardware control circuit is controlled to be turned on and the software control circuit is controlled to be turned off;
[0019] When the feature of the verification signal is a hardware control feature and the type of the verification signal is a small current signal, the hardware control circuit and the software control circuit are disconnected;
[0020] When the feature of the test signal is a software control feature and the type of the test signal is a normal current signal, the control hardware control circuit is disconnected and the control software control circuit is turned on;
[0021] When the feature of the verification signal is a software control feature and the type of the verification signal is a small current signal, the hardware control circuit and the software control circuit are disconnected.
[0022] In a possible implementation, obtaining the epitope state of the calibration device according to the pressure drop value includes:
[0023] When the pressure drop value is greater than the first preset value and less than the second preset value, it is determined that the surface state of the inspection device is a poor connection state;
[0024] When the pressure drop value is equal to the second preset value, determining that the epitope state of the testing device is an open circuit state;
[0025] The first preset value is the flip voltage value of the Schmitt trigger under the condition of low voltage rise, and the second preset value is the conduction voltage drop value of the bridge stack.
[0026] In a possible implementation, controlling the epitope of the detection device according to the epitope state includes:
[0027] When the state of the epitope is a poor connection state or an open circuit state, the Schmitt trigger is controlled to flip and output a high level signal;
[0028] Optical couplers are used to separate high-level signals to obtain weak-current control signals and strong-current control signals.
[0029] A signal filter is used to filter the weak current control signal to obtain a driving signal;
[0030] The magnetic latching driving circuit is driven according to the driving signal to control the closing of the magnetic latching relay.
[0031] In a third aspect, an embodiment of the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the steps of the method described in the second aspect or any possible implementation method of the second aspect.
[0032] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method described in the second aspect or any possible implementation method of the second aspect are implemented.
[0033] The embodiment of the present invention provides a table position control device, method, electronic device and storage medium of a calibration device, and provides a connection relationship and function of the devices as shown below: the output end of the computer is connected to the input end of the single-chip microcomputer; the output end of the single-chip microcomputer is connected to the input end of the detection module, which is used to control the hardware control circuit to be turned on or off according to the characteristics of the calibration signal; the output end of the detection module is connected to the input end of the optocoupler, which is used to output a level signal when the hardware control circuit is turned on; the output end of the optocoupler is connected to the input end of the signal filter, which is used to separate the level signal to obtain a control signal; the output end of the signal filter is connected to the input end of the magnetic holding drive circuit, which is used to filter the control signal to obtain a drive signal; the output end of the magnetic holding drive circuit is connected to the input end of the magnetic holding relay, which is used to control the magnetic holding relay to be closed or disconnected according to the drive signal.
[0034] It can be seen that the embodiment of the present invention obtains a unidirectional signal transmission circuit from the computer to the magnetic holding relay with signal conversion of the detection signal-level signal-control signal-drive signal. Because it is a unidirectional signal transmission circuit, the hardware control circuit does not need to report the interrupt condition to the computer when controlling the closing or opening of the magnetic holding relay, nor does it need to wait for the computer to send an execution command before controlling the closing of the magnetic holding relay to isolate the surface. Therefore, after detecting that the surface is open or poorly connected, the hardware can automatically control the closing of the magnetic holding relay in the first time, solving the problem of burning the detection circuit caused by the untimely response of the surface, and realizing the isolation of the surface faster and safer. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0036] Figure 1 It is a structural schematic diagram of an epitope control device of a detection device provided in an embodiment of the present invention;
[0037] Figure 2 is a structural diagram of a software control circuit provided by an embodiment of the present invention;
[0038] Figure 3 is a schematic structural diagram of a current loop switching module provided by an embodiment of the present invention;
[0039] Figure 4 is a schematic diagram of the structure of a detection module provided by an embodiment of the present invention;
[0040] FIG5( a ) is a schematic diagram of a circuit of a sampling resistor and a bridge stack provided in an embodiment of the present invention;
[0041] FIG5( b ) is a circuit diagram of a connection detection part provided in an embodiment of the present invention;
[0042] Figure 6 is a flow chart of an implementation method of an epitope control method of a detection device provided by an embodiment of the present invention;
[0043] Figure 7 is a schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0044] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present invention. However, it should be clear to those skilled in the art that the present invention may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present invention.
[0045] In order to make the purpose, technical solutions and advantages of the present invention more clear, specific embodiments will be described below in conjunction with the accompanying drawings.
[0046] Figure 1 The schematic structural diagram of the table position control device of the calibration equipment provided in the embodiment of the present invention comprises a computer 10, a single chip microcomputer 20, a hardware control circuit 30 and a magnetic latching relay 40.
[0047] In some embodiments, reference Figure 1 As shown in the schematic diagram of the device structure, the hardware control circuit 30 includes a detection module 31 , an optical coupler 32 , a signal filter 33 and a magnetic holding drive circuit 34 .
[0048] In some embodiments, reference Figure 1 As shown in the schematic diagram of the device structure, the connection relationship between the various components can be: the output end of the computer 10 is connected to the input end of the single-chip microcomputer 20, the output end of the single-chip microcomputer 20 is connected to the input end of the hardware control circuit 30, and the output end of the hardware control circuit 30 is connected to the input end of the magnetic holding relay 40.
[0049] Specifically, the internal connection relationship of the hardware control circuit 30 can be: the output end of the single-chip computer 20 is connected to the input end of the detection module 31, the output end of the detection module 31 is connected to the input end of the optocoupler 32, the output end of the optocoupler 32 is connected to the input end of the signal filter 33, the output end of the signal filter 33 is connected to the input end of the magnetic holding drive circuit 34, and the output end of the magnetic holding drive circuit 34 is connected to the input end of the magnetic holding relay 40.
[0050] In some embodiments, the computer 10 can be used to generate a calibration signal and send the calibration signal to the single chip microcomputer 20 when the electric meter is connected to the calibration device.
[0051] In some embodiments, the single-chip microcomputer 20 can be an integrated circuit chip, which is a small and complete microcomputer system that integrates a central processing unit with data processing capabilities, a random access memory, a read-only memory, a variety of input / output ports, an interrupt system, and timer / counter functions (which may also include display drive circuits, pulse width modulation circuits, analog multiplexers or analog-to-digital converters and other circuits) on a silicon chip using ultra-large-scale integrated circuit technology. In this application, the single-chip microcomputer 20 can be used to receive the test signal sent by the computer 10, and control the hardware control circuit 30 to be turned on or off according to the characteristics of the test signal. In other words, the function of the single-chip microcomputer 20 is to communicate with the computer 10 through the peripheral circuit and execute the relevant instructions sent by the computer 10.
[0052] In some embodiments, the detection module 31 can be used to obtain the state of the hardware control circuit 30, and output a level signal when the hardware control circuit 30 is turned on. The level signal can be a high level signal or a low level signal.
[0053] In some embodiments, the optical coupler 32 is an electrical-optical-electrical conversion device that transmits electrical signals using light as a medium. It consists of a light source and a light receiver. The light source and the light receiver are assembled in the same sealed housing and isolated from each other by a transparent insulator. Commonly used optical couplers 32 can be divided into linear optical couplers and nonlinear optical couplers. In this application, the specific category of the optical coupler 32 is not limited.
[0054] In a possible implementation, the optical coupler 32 can be used for signal separation, such as strong and weak current isolation, and can be used to separate the level signal into a weak current control signal and a strong current control signal, thereby obtaining a weak current control part and a strong current control part. And because the optical coupler 32 has strong anti-interference performance, it can also increase circuit reliability.
[0055] In some embodiments, the signal filter may adopt a full resistor-capacitance circuit (RC) filter. Specifically, the RC filter is composed of two components, a full resistor and a capacitor circuit, and is divided into low-pass filtering and high-pass filtering according to the different positions of the full resistor and the capacitor circuit. RC filtering can not only increase circuit reliability and reduce interference, but also adjust the sensitivity to the control signal to obtain a more sensitive drive signal.
[0056] In some embodiments, the magnetic latching driving circuit 34 has the function of controlling the closing / opening of the magnetic latching relay 40 .
[0057] It should be noted that when the magnetic latching relay 40 is closed, the table position is automatically isolated; when the magnetic latching relay 40 is disconnected, the table position does not act. Therefore, after receiving the drive signal, the magnetic latching drive circuit 34 is turned on to control the magnetic latching relay 40 to close, thereby achieving table position isolation.
[0058] Figure 2 This is a structural diagram of a software control circuit 50 provided in an embodiment of the present invention. The input end of the software control circuit 50 is connected between the single-chip microcomputer 20 and the detection module 31, and the output end of the software control circuit 50 is connected between the signal filter 33 and the magnetic holding drive circuit 34.
[0059] In some embodiments, the hardware control circuit 30 and the software control circuit 50 may be two circuits with the same priority, or may be two circuits with some of the same components.
[0060] It should be noted that the software control circuit 50 and the hardware control circuit 30 cannot be turned on at the same time. In actual operation, there is only the situation where the software control circuit 50 is turned on and the hardware control circuit 30 is turned off, or the software control circuit 50 is turned off and the hardware control circuit 30 is turned on.
[0061] Specifically, when the characteristic of the verification signal is a hardware control characteristic, the single-chip microcomputer 20 controls the hardware control circuit 30 to be turned on and controls the software control circuit 50 to be turned off; when the characteristic of the verification signal is a software control characteristic, the single-chip microcomputer 20 controls the hardware control circuit 30 to be turned off and controls the software control circuit 50 to be turned on.
[0062] That is to say, the on / off of the software control circuit 50 and the hardware control circuit 30 is determined by the characteristics of the detection signal. Therefore, in actual operation, it is very necessary to obtain the characteristics of the detection signal.
[0063] In some embodiments, the present invention provides specific circuit selection criteria:
[0064] 1. During the verification process, there may be a situation where the test is not fully filled. During the verification, the computer 10 knows that there is an open circuit at the epitope. At this time, the computer 10 sends a command to the single-chip microcomputer 20, and the software control circuit 50 drives the magnetic holding drive circuit 34, thereby realizing epitope isolation.
[0065] 2. During the calibration process, if there is an open circuit caused by the meter being taken away manually or a virtual connection caused by a poor connection, the meter position abnormality is detected at the moment of power on, and the hardware control circuit 30 will automatically drive the magnetic holding drive circuit 34 to achieve meter position isolation.
[0066] Therefore, the driving signal in the above discussion may come from the hardware control circuit 30 or the software control circuit 50 .
[0067] It should be noted that the situation where the software control circuit 50 is used to achieve epitope isolation is generally a known open circuit or poor connection, which is active isolation; while the situation where the hardware control circuit 30 is used to achieve epitope isolation is generally an unknown situation that is detected, which is passive isolation.
[0068] In a possible implementation, the hardware control circuit 30 is used to automatically isolate the problematic epitope, which can solve the problem of source overload or burnout of the detection circuit caused by an open circuit or connection failure.
[0069] In some embodiments, the present application adopts dual control of hardware control and software control to realize the closure of the magnetic holding relay to achieve the method of surface isolation. It can not only improve the speed of surface isolation and protect the electric energy meter and calibration equipment, but also realize the switching of different control circuits in different situations, so as to select a better control method according to needs.
[0070] Figure 3 A schematic diagram of the structure of the current loop switching module 35 provided in an embodiment of the present invention.
[0071] like Figure 3 As shown, the current loop switching module 35 is arranged between the single chip computer 20 and the detection module 31 .
[0072] In some embodiments, the current loop switching module 35 can be used to control the hardware control circuit 30 to be turned on or off according to the type of the detection signal.
[0073] It should be noted that the characteristics of the verification signal and the type of the verification signal are not the same concept. After the microcontroller 20 determines the characteristics of the verification signal, the current loop switching module 35 will determine the type of the verification signal and control the hardware control circuit 30 to be turned on or off according to the type of the verification signal.
[0074] Therefore, the hardware control circuit 30 needs to go through two judgment processes of the detection signal to turn it on or off. By judging the detection signal twice, the required control method can be selected more accurately.
[0075] Specifically, the types of the verification signal can be normal current signal and low current signal. In actual application, the following situations exist:
[0076] 1. When the feature of the test signal is a hardware control feature and the type of the test signal is a normal current signal, the hardware control circuit 30 is controlled to be turned on and the software control circuit 50 is controlled to be turned off;
[0077] 2. When the feature of the verification signal is a hardware control feature and the type of the verification signal is a low current signal, the hardware control circuit 30 and the software control circuit 50 are disconnected;
[0078] 3. When the feature of the test signal is a software control feature and the type of the test signal is a normal current signal, the hardware control circuit 30 is controlled to be disconnected and the software control circuit 50 is controlled to be turned on;
[0079] 4. When the feature of the verification signal is a software control feature and the type of the verification signal is a small current signal, the hardware control circuit 30 and the software control circuit 50 are disconnected.
[0080] From the above discussion, it can be seen that the function of the current loop switching module 35 is to control whether the hardware control circuit 30 is connected to the current loop.
[0081] It should be noted that when the type of the verification signal is a small current signal, the hardware control circuit 30 and the software control circuit 50 are disconnected because under small current conditions, the detection circuit composed of the hardware control circuit 30 and the software control circuit 50 will form a shunt state with the electric energy meter, thereby affecting the current error accuracy.
[0082] For example, when the internal resistance of the hardware control circuit 30 and the software control circuit 50 is much greater than the resistance of the electric energy meter, the current passing through the electric energy meter is very small, which makes it difficult to determine the state of the meter.
[0083] Figure 4 The schematic diagram is a structural diagram of a detection module 31 provided in an embodiment of the present invention. The detection module 31 includes a sampling resistor 310 , a bridge stack 311 and a Schmitt trigger 312 .
[0084] In some embodiments, the sampling resistor 310 is a current limiting element, specifically including a fixed sampling resistor, a variable sampling resistor, a special sampling resistor, or a sheet sampling resistor, etc. In the present application, the type of the sampling resistor 310 is not limited.
[0085] In some embodiments, the bridge stack 311 refers to a rectifier device assembled by rectifier elements in a bridge connection. A half bridge is composed of two rectifier diodes, and a full bridge is composed of four rectifier diodes. In this application, a full bridge is used.
[0086] In some embodiments, the Schmitt trigger 312 has two stable states, but unlike a general trigger, the Schmitt trigger uses a potential triggering method, and its state is maintained by the input signal potential; for input signals with two different change directions of negative decreasing and positive increasing, the Schmitt trigger 312 has different threshold voltages.
[0087] Specifically, the detection module 31 is used to obtain the state of the hardware control circuit 30. When the hardware control circuit 30 is turned on, the process of outputting a level signal may be:
[0088] 1. When the hardware control circuit 30 is turned on, the voltage drop across the sampling resistor 310 is obtained, and the status of the test equipment is determined according to the voltage drop;
[0089] 2. When the table state is the table open state, the current flows through the sampling resistor 310 and the bridge stack 311. At this time, the voltage drop across the sampling resistor 310 is equal to the on-state voltage drop of the bridge stack 311, and the input signal of the Schmitt trigger 312 rises from 0 to the preset flip voltage drop, and the Schmitt trigger 312 flips and outputs a high level.
[0090] The on-state voltage drop of the bridge stack 311 can be 1.4V, 1.5V, etc.; the preset flip voltage drop is the gate threshold set when the input signal of the Schmitt trigger 312 rises from 0V to the output level flip, for example, 1V, 1.1V, etc.
[0091] Therefore, when the voltage drop across the sampling resistor 310 is equal to the on-state voltage drop of the bridge stack 311 , it can be inferred that the surface state of the calibration device is the surface open circuit state.
[0092] 3. When the meter status is the meter connection bad status, the sampling resistor 310 is connected in parallel with the electric energy meter. At this time, the voltage drop across the sampling resistor 310 is equal to the voltage drop across the electric energy meter. Therefore, the voltage drop across the sampling resistor 310 can be calculated based on U z =I 2 *R z Calculate, where U z represents the voltage drop across the sampling resistor 310, I represents the source current, R z Indicates the resistance value of the sampling resistor 310 after being connected in parallel with the electric energy meter. When the voltage drop across the sampling resistor 310 rises from 0V to the preset flip voltage drop of the Schmitt trigger 312, the Schmitt trigger 312 flips and outputs a high level.
[0093] It should be noted that when the table is open, the on-state voltage drop of the bridge stack 311 is the maximum voltage drop value that can be achieved by the voltage drop across the sampling resistor 310. Therefore, when the voltage drop across the sampling resistor 310 is between the preset flip voltage drop and the on-state voltage drop of the bridge stack 311, it can be inferred that the table state of the calibration device is a bad table connection state.
[0094] In some embodiments, it can be obtained that as long as the voltage drop across the sampling resistor 310 and the on-state voltage drop of the bridge stack 311 rise from 0V to the preset flip voltage drop of the Schmitt trigger 312, the Schmitt trigger 312 will flip from a low level to a high level.
[0095] In some embodiments, the hardware control circuit 30 can not only detect the open circuit state of the epitope, but also detect the poor connection state of the epitope, thereby solving the problem that the temperature of the epitope connection point may burn out the electric energy meter due to the poor connection state of the epitope.
[0096] FIG5(a) is a circuit diagram of a sampling resistor and a bridge stack provided in an embodiment of the present invention, and FIG5(b) is a circuit diagram of a connection detection part provided in an embodiment of the present invention. The following logic states can be obtained according to the levels of the logic signal OA and the logic signal OB:
[0097] 1. When the logic signal OA is at a high level and the logic signal OB is at a low level, the magnetic latching relay 40 is closed. At this time, the epitope state is the epitope isolation state;
[0098] 2. When the logic signal OA is at a low level and the logic signal OB is at a high level, the magnetic latching relay 40 is disconnected. At this time, the table position state is the table position recovery state;
[0099] 3. When the logic signal OA is at a high level and the logic signal OB is at a high level, the hardware control circuit is allowed to control the magnetic latching relay 40. At this time, the table position state is the table position default state;
[0100] 4. When the logic signal OA is at a low level and the logic signal OB is at a low level, the magnetic latching relay 40 is not allowed to operate. At this time, the table position state is the table position locked state.
[0101] In some embodiments, the logic signal OB is controlled by both the hardware control circuit 30 and the software control circuit 50 .
[0102] Specifically, in combination with the above-mentioned table position state judgment process, when the output signal of the sampling signal is between the preset flip voltage drop and the bridge stack 311 conduction voltage drop or is the bridge stack 311 conduction voltage drop, the optocoupler 32 input end (light-emitting diode side) is turned on. At this time, the logic signal OB at the output end of the optocoupler 32 (transistor side is turned on) is pulled down to a low level. At this time, the logic state 1 is satisfied, the coil inside the magnetic holding relay 40 is energized, the magnetic holding relay 40 is closed, and the table position is automatically isolated by the hardware control circuit 30.
[0103] It is worth mentioning that after the table position is isolated, the output signal of the sampling signal gradually returns to a low level. When the input signal of the Schmitt trigger 312 drops from a high level to the gate threshold set for the output level flip, the Schmitt trigger 312 flips, and the logic signal OA is a high level. At this time, the logic state 3 is satisfied, the coil inside the magnetic holding relay 40 is no longer energized, and the table position state is restored to the default state.
[0104] In a possible implementation, the gate threshold set when the input signal of the Schmitt trigger 312 drops from a high level to an output level flip may be 0.5V, 0.6V, etc.
[0105] It should be noted that the closing and opening of the contacts of the magnetic latching relay 40 are determined by the magnetic force generated by the permanent magnet (coil) inside it. When the contacts of the magnetic latching relay 40 need to be closed or opened, it is only necessary to excite the coil with a positive (negative) DC pulse voltage, and the magnetic latching relay 40 completes the state conversion between opening and closing at the moment of excitation. And usually when the contacts are in the holding state, the coil does not need to continue to be energized, and the magnetic force of the permanent magnet alone can maintain the state of the magnetic latching relay unchanged.
[0106] In a possible implementation, the sampling resistor 310 , the bridge stack 311 , and the Schmitt trigger 312 are used to form a detection module, and the sampling resistor 310 can be protected by the bridge stack 311 , thereby ensuring that the sampling resistor 310 will not be burned out under high current conditions.
[0107] In addition, by using the bridge stack 311 to limit the voltage across the current terminals of the electric energy meter, the meter position status of the calibration equipment can be determined through a very low voltage drop, thereby better protecting the components in the detection circuit.
[0108] In some embodiments, two comparators may be used to replace the Schmitt trigger 312 , but this will increase the use and maintenance costs of the detection circuit to a certain extent.
[0109] An embodiment of the present invention provides a table position control device of a calibration device, and provides a connection relationship and function of the devices as shown below: the output end of the computer is connected to the input end of the single-chip microcomputer; the output end of the single-chip microcomputer is connected to the input end of the detection module, which is used to control the hardware control circuit to be turned on or off according to the characteristics of the calibration signal; the output end of the detection module is connected to the input end of the optocoupler, which is used to output a level signal when the hardware control circuit is turned on; the output end of the optocoupler is connected to the input end of the signal filter, which is used to separate the level signal to obtain a control signal; the output end of the signal filter is connected to the input end of the magnetic holding drive circuit, which is used to filter the control signal to obtain a drive signal; the output end of the magnetic holding drive circuit is connected to the input end of the magnetic holding relay, which is used to control the magnetic holding relay to be closed or disconnected according to the drive signal.
[0110] It can be seen that the embodiment of the present invention obtains a unidirectional signal transmission circuit from the computer to the magnetic holding relay with signal conversion of the detection signal-level signal-control signal-drive signal. Because it is a unidirectional signal transmission circuit, the hardware control circuit does not need to report the interrupt condition to the computer when controlling the closing or opening of the magnetic holding relay, nor does it need to wait for the computer to send an execution command before controlling the closing of the magnetic holding relay to isolate the surface. Therefore, after detecting that the surface is open or poorly connected, the hardware can automatically control the closing of the magnetic holding relay in the first time, solving the problem of burning the detection circuit caused by the untimely response of the surface, and realizing the isolation of the surface faster and safer.
[0111] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0112] The following is a method embodiment of the present invention. For details not described in detail therein, reference may be made to the corresponding device embodiment described above.
[0113] Figure 6 The following is a flowchart of the epitope control method of the detection device provided by the embodiment of the present invention. For the sake of convenience, only the part related to the embodiment of the present invention is shown, which is described in detail as follows:
[0114] like Figure 6 As shown, the details are as follows:
[0115] Step 601, obtain the verification signal sent by the computer, and control the on or off of the hardware control circuit according to the characteristics and type of the verification signal, or control the on or off of the software control circuit according to the characteristics and type of the verification signal.
[0116] In some embodiments, when the electric energy meter is connected to the calibration device, the computer generates a calibration signal and sends the calibration signal to the single-chip microcomputer. After receiving the calibration signal, the single-chip microcomputer first determines the characteristics of the calibration signal, and then uses the current loop switching module to determine the type of the calibration signal and select an appropriate control circuit.
[0117] Specifically, when the feature of the verification signal is a hardware control feature and the type of the verification signal is a normal current signal, the hardware control circuit is controlled to be turned on and the software control circuit is controlled to be turned off;
[0118] When the feature of the verification signal is a hardware control feature and the type of the verification signal is a small current signal, the hardware control circuit and the software control circuit are disconnected;
[0119] When the feature of the test signal is a software control feature and the type of the test signal is a normal current signal, the control hardware control circuit is disconnected and the control software control circuit is turned on;
[0120] When the feature of the verification signal is a software control feature and the type of the verification signal is a small current signal, the hardware control circuit and the software control circuit are disconnected.
[0121] In some embodiments, when the software control circuit is turned on, the computer directly sends the epitope isolation command to the single-chip microcomputer, and then the single-chip microcomputer generates a drive signal to drive the magnetic holding drive circuit to control the closure of the magnetic holding relay.
[0122] In some embodiments, in actual applications, software control circuits and hardware control circuits cannot be used at the same time, and software control circuits are usually used in some known situations, while hardware control circuits are usually used in unknown situations.
[0123] Step 602, when the hardware control circuit is turned on, the voltage drop value of the sampling resistor is obtained, and the table position state of the calibration device is obtained according to the voltage drop value.
[0124] In some embodiments, the specific process of obtaining the voltage drop value of the sampling resistor may be:
[0125] Obtaining a first voltage value at one end of the sampling resistor and a second voltage value at the other end of the sampling resistor;
[0126] Performing a difference operation on the first voltage value and the second voltage value to obtain a third voltage value;
[0127] The absolute value of the third voltage value is used as the voltage drop value of the sampling resistor.
[0128] In some embodiments, the specific process of obtaining the epitope state of the calibration device according to the pressure drop value may be:
[0129] When the pressure drop value is greater than the first preset value and less than the second preset value, it is determined that the surface state of the inspection device is a poor connection state;
[0130] When the pressure drop value is equal to the second preset value, determining that the epitope state of the testing device is an open circuit state;
[0131] The first preset value is the flip voltage value of the Schmitt trigger under the condition of low voltage rise, and the second preset value is the conduction voltage drop value of the bridge stack.
[0132] In some embodiments, the first preset value may specifically be a gate threshold set when the Schmitt trigger input signal rises from 0V to the output level flipping, and the value of the first preset value may be 1V, 1.1V, etc.
[0133] In some embodiments, the second preset value may be 1.4V, 1.5V, etc.
[0134] Step 603, controlling the epitope of the testing device according to the epitope state, and sending the control result to the computer.
[0135] In some embodiments, the specific process of controlling the epitope of the detection device according to the epitope state may be:
[0136] When the state of the epitope is a poor connection state or an open circuit state, the Schmitt trigger is controlled to flip and output a high level signal;
[0137] Optical couplers are used to separate high-level signals to obtain weak-current control signals and strong-current control signals.
[0138] A signal filter is used to filter the weak current control signal to obtain a driving signal;
[0139] The magnetic latching driving circuit is driven according to the driving signal to control the closing of the magnetic latching relay.
[0140] In some embodiments, the closing of the magnetic latching relay represents that the epitope state is an epitope isolation state, and therefore, when the magnetic latching relay is closed, the epitope will perform an isolation operation.
[0141] In some embodiments, the magnetic holding relay can be wirelessly or electrically connected to a computer to send the isolation result to the computer; or, the magnetic holding relay can be wirelessly or electrically connected to a microcontroller to send the isolation result to the microcontroller, and then the microcontroller sends it to the computer.
[0142] An embodiment of the present invention provides a table position control method for a calibration device, which obtains a calibration signal sent by a computer, controls the on or off of a hardware control circuit according to the characteristics of the calibration signal and the type of the calibration signal, or controls the on or off of a software control circuit according to the characteristics of the calibration signal and the type of the calibration signal; when the hardware control circuit is turned on, obtains the voltage drop value of the sampling resistor, and obtains the table position state of the calibration device according to the voltage drop value; controls the table position of the calibration device to be isolated according to the table position state, and sends the isolation result to the computer.
[0143] It can be seen that when the epitope state is abnormal, the present application first isolates the epitope of the calibration equipment and then sends the isolation result to the computer. Therefore, the present application isolates the epitope first and then reports the isolation result. While the prior art generally reports first and then waits for processing instructions, the present application's method of first processing and then reporting can effectively solve the problem of untimely response and burning of the detection circuit in the prior art. In addition, the present application provides a method for judging the epitope state of the calibration equipment by the voltage drop value of the sampling resistor. This method can not only judge the open circuit state of the epitope, but also judge the poor connection state of the epitope. It is simple and quick to use.
[0144] Figure 7 Schematic diagram of an electronic device provided by an embodiment of the present invention. Figure 7 As shown, the electronic device 7 of this embodiment includes: a processor 70, a memory 71, and a computer program 72 stored in the memory 71 and executable on the processor 70. When the processor 70 executes the computer program 72, the steps of the epitope control method embodiments of the above-mentioned detection device are implemented, for example Figure 6 Steps 601 to 603 are shown. Alternatively, when the processor 70 executes the computer program 72, the functions of the modules / units in the above-mentioned device embodiments are realized.
[0145] Exemplarily, the computer program 72 may be divided into one or more modules / units, which are stored in the memory 71 and executed by the processor 70 to implement the present invention. The one or more modules / units may be a series of computer program instruction segments capable of implementing specific functions, which are used to describe the execution process of the computer program 72 in the electronic device 7.
[0146] The electronic device 7 may include, but is not limited to, a processor 70 and a memory 71. Those skilled in the art will appreciate that Figure 7 It is only an example of the electronic device 7 and does not constitute a limitation of the electronic device 7. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the electronic device may also include input and output devices, network access devices, buses, etc.
[0147] The processor 70 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0148] The memory 71 may be an internal storage unit of the electronic device 7, such as a hard disk or memory of the electronic device 7. The memory 71 may also be an external storage device of the electronic device 7, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 7. Further, the memory 71 may also include both an internal storage unit and an external storage device of the electronic device 7. The memory 71 is used to store the computer program and other programs and data required by the electronic device. The memory 71 may also be used to temporarily store data that has been output or is to be output.
[0149] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0150] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0151] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0152] In the embodiments provided by the present invention, it should be understood that the disclosed devices / electronic devices and methods can be implemented in other ways. For example, the device / electronic device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0153] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0154] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0155] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the process in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the epitope control method embodiment of each of the above-mentioned detection devices can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal and software distribution medium, etc.
[0156] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.
Claims
1. An epitope control device for a testing device, It is characterized in that It includes a computer, a single-chip microcomputer, a hardware control circuit and a magnetic holding relay; the hardware control circuit includes a detection module, an optical coupler, a signal filter and a magnetic holding drive circuit; the output end of the computer is connected to the input end of the single-chip microcomputer; the output end of the single-chip microcomputer is connected to the input end of the detection module, which is used to control the hardware control circuit to be turned on or off according to the characteristics of the verification signal; the output end of the detection module is connected to the input end of the optical coupler, which is used to output a level signal when the hardware control circuit is turned on; the output end of the optical coupler is connected to the input end of the signal filter, which is used to separate the level signal to obtain a control signal; the output end of the signal filter is connected to the input end of the magnetic holding drive circuit, which is used to filter the control signal to obtain a drive signal; the output end of the magnetic holding drive circuit is connected to the input end of the magnetic holding relay, which is used to control the magnetic holding relay to be turned on or off according to the drive signal.
2. The epitope control device of the testing device according to claim 1, It is characterized in that The device also includes a software control circuit; The input end of the software control circuit is connected between the single chip microcomputer and the detection module, and the output end of the software control circuit is connected between the signal filter and the magnetic holding drive circuit.
3. The epitope control device of the testing device according to claim 1, It is characterized in that The hardware control module also includes a current loop switching module; The current loop switching module is arranged between the single chip microcomputer and the detection module, and is used to control the hardware control circuit to be turned on or off according to the type of the detection signal, or to control the software control circuit to be turned on or off according to the type of the detection signal.
4. The epitope control device of the testing device according to claim 3, It is characterized in that The detection module includes a sampling resistor, a bridge stack and a Schmitt trigger; The output end of the current loop switching module is connected to the input end of the sampling resistor, the output end of the sampling resistor is connected to the input end of the bridge stack, the output end of the bridge stack is connected to the input end of the Schmitt trigger, and the output end of the Schmitt trigger is connected to the input end of the optocoupler.
5. A method for controlling epitopes of a testing device, It is characterized in that Using the epitope control device of the detection device described in any one of claims 1 to 4, the method comprises: Acquire a test signal sent by a computer, and control the on or off of a hardware control circuit according to the characteristics of the test signal and the type of the test signal, or control the on or off of a software control circuit according to the characteristics of the test signal and the type of the test signal; When the hardware control circuit is turned on, a voltage drop value of the sampling resistor is obtained, and a table position state of the calibration device is obtained according to the voltage drop value; The epitope of the testing device is controlled according to the epitope state, and the control result is sent to the computer.
6. The epitope control method of the detection device according to claim 5, It is characterized in that The controlling the on or off of the hardware control circuit according to the characteristics of the detection signal and the type of the detection signal, or the controlling the on or off of the software control circuit according to the characteristics of the detection signal and the type of the detection signal, comprises: When the feature of the detection signal is a hardware control feature and the type of the detection signal is a normal current signal, controlling the hardware control circuit to be turned on and controlling the software control circuit to be turned off; When the feature of the detection signal is a hardware control feature and the type of the detection signal is a low current signal, controlling the hardware control circuit and the software control circuit to be disconnected; When the feature of the detection signal is a software control feature and the type of the detection signal is a normal current signal, controlling the hardware control circuit to be disconnected and controlling the software control circuit to be turned on; When the feature of the detection signal is a software control feature and the type of the detection signal is a small current signal, the hardware control circuit and the software control circuit are controlled to be disconnected.
7. The epitope control method of the detection device according to claim 5, It is characterized in that The step of obtaining the epitope state of the testing device according to the pressure drop value comprises: When the pressure drop value is greater than a first preset value and less than a second preset value, determining that the surface state of the detection device is a poor connection state; When the voltage drop value is equal to the second preset value, determining that the epitope state of the testing device is an open circuit state; The first preset value is the flip voltage value of the Schmitt trigger under low voltage rising conditions, and the second preset value is the conduction voltage drop value of the bridge stack.
8. The epitope control method of the detection device according to claim 7, It is characterized in that The step of controlling the epitope of the detection device according to the epitope state comprises: When the epitope state is a poor connection state or an open circuit state, controlling the Schmitt trigger to flip and output a high level signal; The optical coupler is used to separate the high-level signal to obtain a weak-current control signal and a strong-current control signal; Using a signal filter to filter the weak current control signal to obtain a drive signal; The magnetic latching driving circuit is driven according to the driving signal to control the magnetic latching relay to close.
9. An electronic device comprising a memory and a processor, wherein the memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 5 to 8 are implemented.
10. A computer-readable storage medium storing a computer program. It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 5 to 8 are implemented.
