CN116930738A - Method, device, equipment, medium and program product for calibrating relay - Google Patents

Method, device, equipment, medium and program product for calibrating relay Download PDF

Info

Publication number
CN116930738A
CN116930738A CN202310797396.6A CN202310797396A CN116930738A CN 116930738 A CN116930738 A CN 116930738A CN 202310797396 A CN202310797396 A CN 202310797396A CN 116930738 A CN116930738 A CN 116930738A
Authority
CN
China
Prior art keywords
period
time
relay
state
calibration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310797396.6A
Other languages
Chinese (zh)
Inventor
余孟
徐门俊
胡文涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ningbo Gongniu Electric Appliances Co Ltd
Original Assignee
Ningbo Gongniu Electric Appliances Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ningbo Gongniu Electric Appliances Co Ltd filed Critical Ningbo Gongniu Electric Appliances Co Ltd
Priority to CN202310797396.6A priority Critical patent/CN116930738A/en
Publication of CN116930738A publication Critical patent/CN116930738A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/327Testing of circuit interrupters, switches or circuit-breakers
    • G01R31/3277Testing of circuit interrupters, switches or circuit-breakers of low voltage devices, e.g. domestic or industrial devices, such as motor protections, relays, rotation switches
    • G01R31/3278Testing of circuit interrupters, switches or circuit-breakers of low voltage devices, e.g. domestic or industrial devices, such as motor protections, relays, rotation switches of relays, solenoids or reed switches

Abstract

The application discloses a method, a device, equipment, a medium and a program product for calibrating a relay, and relates to the technical field of electronics. The method comprises the following steps: in response to receiving a switching operation on the state detection loop, determining a detection period corresponding to the signal conversion loop; in response to detecting that a first level jump exists in the square wave signal output by the signal conversion circuit in a detection period, determining a first moment when the relay starts to be in a power-on state; determining a second moment corresponding to the second level jump in response to detecting the second level jump adjacent to the first level jump in the detection period; and acquiring a calibration period corresponding to the relay based on the time difference between the first time and the second time. The time difference between the power-on state and the working time of the relay in the normal working state is obtained, so that the time difference between the power-on state and the working time of the relay in the follow-up period of the relay is calibrated, and the service life of the relay is prolonged.

Description

Method, device, equipment, medium and program product for calibrating relay
Technical Field
The embodiment of the application relates to the technical field of electronics, in particular to a method, a device, equipment, a medium and a program product for calibrating a relay.
Background
The relay is an important circuit control element in the electronic switch and is used for realizing the circuit conduction or disconnection of the intelligent electric appliance. When the relay controls the high-power capacitive load to conduct the loop at the high voltage point of the state detection loop, impact current is generated, when the relay controls the high-power inductive load to conduct the loop to turn off at the high voltage point of the state detection loop, arc striking current is generated, and the relay is damaged by the impact current or the arc striking current continuously and repeatedly. Therefore, it is necessary to control the relay to turn on or off the control loop at the voltage zero point. The high voltage point is the peak signal in the voltage signal generated by the finger state detection loop, and the low voltage point is the valley signal in the voltage signal generated by the finger state detection loop.
In the related art, zero point measurement is performed on the state detection loop after being conducted through the singlechip in the process of designing the electronic switch, and the moment corresponding to the voltage zero point in the voltage signal is determined, so that the relay can be attracted or disconnected at the voltage zero point through setting the attracting moment and the disconnecting moment of the relay according to the moment corresponding to the voltage zero point in a control program corresponding to the electronic switch.
However, in the related art, as the service life of the relay is reduced, the suction time or the disconnection time of the relay is changed, so that the relay cannot be guaranteed to be sucked or disconnected at the zero point of the voltage signal, the service life of the relay is affected, and the quality of the electronic switch is further reduced.
Disclosure of Invention
The embodiment of the application provides a method, a device, equipment, a medium and a program product for calibrating a relay, which can improve the service life of the relay, and the technical scheme is as follows:
in one aspect, a method for calibrating a relay is provided, where the method is applied to a state detection loop, the state detection loop includes a relay and a signal conversion loop, and the signal conversion loop is used for converting a voltage signal generated by the state detection loop into a square wave signal to output in a process of conducting or disconnecting the state detection loop, and the method includes:
determining a detection period corresponding to the signal conversion loop in response to receiving a switching operation on the state detection loop, wherein the switching operation is used for controlling the state detection loop to switch between a conducting state and a disconnecting state;
In response to detecting that a first level jump exists in the square wave signal output by the signal conversion loop in the detection period, determining a first moment when the relay starts to be in a power-on state;
determining a second moment corresponding to the second level jump in response to detecting the second level jump adjacent to the first level jump in the detection period, wherein the jump directions of the first level jump and the second level jump are opposite;
and acquiring a calibration period corresponding to the relay based on the time difference between the first time and the second time, wherein the time difference between the first time and the second time is an actual response interval of the relay, and the calibration period is used for indicating a time period for calibrating the relay.
In another aspect, a calibration device of a relay is provided, the device is applied to a state detection loop, the state detection loop includes a relay and a signal conversion loop, the signal conversion loop is used for converting a voltage signal generated by the state detection loop into a square wave signal to output in a process of switching on or off the state detection loop, and the device includes:
The determining module is used for determining a detection period corresponding to the signal conversion loop in response to receiving a switching operation on the state detection loop, wherein the switching operation is used for controlling the state detection loop to switch between a conducting state and a disconnecting state;
the determining module is further used for determining a first moment when the relay starts to be in a power-on state in response to the fact that first level jump exists in the square wave signal output by the signal conversion circuit in the detection period;
the determining module is further configured to determine a second time corresponding to a second level jump in response to detecting the second level jump adjacent to the first level jump in the detection period, where a jump direction of the first level jump is opposite to a jump direction of the second level jump;
the acquisition module is used for acquiring a calibration period corresponding to the relay based on the time difference between the first time and the second time, wherein the time difference between the first time and the second time is an actual response interval of the relay, and the calibration period is used for indicating a time period for calibrating the relay.
In another aspect, a computer program product or computer program is provided, the computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the method for calibrating the relay according to any of the above embodiments.
The technical scheme provided by the embodiment of the application has the beneficial effects that at least:
the method comprises the steps of determining a detection period corresponding to a relay according to switching operation of a state detection loop under a normal working state of the relay, determining a first moment when the relay starts to be in a power-on state by detecting that a first level jump exists in square wave signals output by a signal conversion loop in the detection period, and determining a second moment corresponding to a second level jump when a second level jump adjacent to the first level jump and opposite to the jump direction is detected in the detection period, so that a calibration period corresponding to the relay is obtained according to a time difference between the first moment and the second moment and is used for calibrating the relay subsequently. That is, the time difference between the relay in the normal working state and the relay from the start of the power-on state to the start of working (including any one of the attraction and the disconnection with the contact) is obtained, so that the time difference between the start of the power-on state and the start of the working time in the subsequent period of the relay is calibrated, the relay can still be kept in the zero point to attract or disconnect with the contact after being used for a period of time, the service life of the relay is prolonged, and the whole state detection loop is protected from being damaged.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic illustration of an implementation environment provided by an exemplary embodiment of the present application;
FIG. 2 is a flow chart of a method of calibrating a relay provided in an exemplary embodiment of the present application;
FIG. 3 is a signal conversion schematic diagram of a relay provided by an exemplary embodiment of the present application;
fig. 4 is a signal conversion schematic diagram of a relay according to another exemplary embodiment of the present application;
FIG. 5 is a flow chart of a method of calibrating a relay provided in another exemplary embodiment of the application;
FIG. 6 is a schematic diagram of a relay calibration process provided by another exemplary embodiment of the present application;
FIG. 7 is a schematic diagram of a relay calibration process provided by an exemplary embodiment of the present application;
FIG. 8 is a schematic diagram of a single fire switch connected to an on-state detection circuit according to an exemplary embodiment of the present application;
FIG. 9 is a schematic diagram of a single fire switch connected to an on-state detection circuit according to an exemplary embodiment of the present application;
FIG. 10 is a schematic diagram of a zero fire switch and on detection circuit connection provided in an exemplary embodiment of the present application;
FIG. 11 is a schematic diagram of a zero fire switch connected to an on-state detection circuit according to another exemplary embodiment of the present application;
FIG. 12 is a schematic diagram of a single fire switch and off state detection circuit connection provided by an exemplary embodiment of the present application;
FIG. 13 is a schematic diagram of a single fire switch and off state detection circuit connection provided in an exemplary embodiment of the present application;
FIG. 14 is a schematic diagram of a zero fire switch and off state detection circuit connection provided by another exemplary embodiment of the present application;
FIG. 15 is a schematic diagram of a zero fire switch and off state detection circuit connection provided by an exemplary embodiment of the present application;
FIG. 16 is a schematic diagram of a single fire switch connected to a status detection circuit according to an exemplary embodiment of the present application;
FIG. 17 is a schematic diagram of a single fire switch connected to a status detection circuit according to another exemplary embodiment of the present application;
FIG. 18 is a schematic diagram of a zero fire switch and status detection loop connection provided in an exemplary embodiment of the present application;
FIG. 19 is a schematic diagram of a zero fire switch and status detection loop connection provided in an exemplary embodiment of the present application;
FIG. 20 is a block diagram of a calibration device for a relay provided in an exemplary embodiment of the present application;
FIG. 21 is a block diagram of a calibration device for a relay provided in an exemplary embodiment of the present application;
fig. 22 is a block diagram of a control apparatus provided in an exemplary embodiment of the present application.
Detailed Description
For the purpose of promoting an understanding of the principles and advantages of the application, reference will now be made in detail to the embodiments of the application, some but not all of which are illustrated in the accompanying drawings. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terms "first," "second," and the like in this disclosure are used for distinguishing between similar elements or items having substantially the same function and function, and it should be understood that there is no logical or chronological dependency between the terms "first," "second," and no limitation on the amount or order of execution.
First, a brief description will be made of terms involved in the embodiments of the present application:
load: the load refers to an electronic component connected across a power supply in the circuit. If there is no load in the circuit and the power supply is directly connected to the two poles, this connection is called a short circuit. Common loads are power consuming components such as resistors, engines and bulbs. The load may also be a device that converts electrical energy into other forms of energy. The electric energy can be converted into mechanical energy, the electric resistance energy can be converted into heat energy, the electric bulb can be converted into heat energy and light energy, and the loudspeaker can be used for converting electric energy into sound energy. Motors, resistors, light bulbs, speakers, etc. are all called loads.
A relay: the relay is an electric control device, and when a change in an input amount (excitation amount) reaches a predetermined requirement, a controlled amount is changed in a predetermined step in an electric output circuit. It has an interactive relationship between the control system (also called input loop) and the controlled system (also called output loop). It is commonly used in automated control circuits and is actually an "automatic switch" that uses a small current to control the operation of a large current. Therefore, the circuit plays roles of automatic regulation, safety protection, circuit switching and the like.
In the related art, in the calibration method of the relay, zero point measurement is performed on the state detection loop after being conducted through the singlechip in the process of designing the electronic switch, and the moment corresponding to the voltage zero point in the voltage signal is determined, so that the relay can be ensured to be attracted or disconnected at the voltage zero point by setting the attraction moment and the disconnection moment of the relay according to the moment corresponding to the voltage zero point in the control program corresponding to the electronic switch. However, in the use process of the relay, as the use time of the relay is prolonged, the time deviation can be generated at the suction time or the disconnection time of the relay, so that the relay cannot be accurately sucked or disconnected at the voltage zero point, the relay is damaged, and other electronic elements in the electronic switch are damaged.
The embodiment of the application provides a method for calibrating a relay, which is applied to an electronic switch for example to explain:
(1) Under the normal working state of the relay, determining a detection period corresponding to the relay according to the switching operation of a state detection loop, determining a first moment when the relay starts to be in a power-on state by detecting that a first level jump exists in a square wave signal output by a signal conversion loop in the detection period, and determining a second moment corresponding to a second level jump when a second level jump which is adjacent to the first level jump and has the opposite jump direction is detected in the detection period, thereby obtaining a calibration period corresponding to the relay according to the time difference between the first moment and the second moment, wherein the actual response interval of the relay is between the first moment and the second moment and is used for calibrating the relay subsequently;
(2) Under the condition that the relay meets the calibration condition, the first moment when the relay starts to be in the power-on state and the second moment when the relay is in the working state are calibrated through the calibration period, so that the relay can be attracted or disconnected at the voltage zero point after calibration.
Fig. 1 is a schematic view of an implementation environment provided by an exemplary embodiment of the present application, as shown in fig. 1, where the implementation environment includes an electronic switching device 110 and a control device 120, the electronic switching device 110 includes a relay 111, and a state detection circuit is connected to the electronic switching device 110, so as to control the electronic switching device 110 to switch between on and off states.
Taking the state detection circuit currently in the off state as an example, when the electronic switching device 110 receives the switching operation, the state detection circuit is switched from the off state to the on state, and a detection request is sent to the control device 120, where the detection request is used to request detection of the time corresponding to the power-on state and the power-on state of the relay 111. The control device 120 is configured to detect the relay 111 and adjust an operating parameter corresponding to the relay 111. Optionally, the control device 120 includes at least one of a hardware device, a software device, and a hardware device such as: the singlechip, the software equipment includes: an application program with calibration functions.
When the control device 120 receives the detection request, a detection period corresponding to a signal conversion circuit in the state detection circuit is determined according to the execution time of the switching operation, where the signal conversion circuit is used for converting a voltage signal generated in the process of switching on or switching off the state detection circuit into a square wave signal for output.
The control device 120 is provided with a detection chip, which is used for detecting the signal conversion circuit, detecting that a first level jump exists in the square wave signal output by the signal conversion circuit in a detection period, and determining a first moment when the relay starts to be in a power-on state. And when a second level jump adjacent to the first level jump and opposite to the jump direction is detected in the detection period, determining a second moment corresponding to the second level jump. And calculating according to the time difference between the first time and the second time to obtain the corresponding calibration period of the relay. The control device 120 recalibrates the time when the relay 111 starts to be in the power-on state and the time when the actuation starts according to the calibration period, and sends the calibration result to the electronic switching device 110, so that the relay 111 sequentially performs power-on and actuation according to the calibrated time when the power-on state starts and the calibrated time when the actuation starts.
It should be noted that, the information (including but not limited to user equipment information, user personal information, etc.), data (including but not limited to data for analysis, stored data, displayed data, etc.) and signals related to the present application are all authorized by the user or are fully authorized by the parties, and the collection, use and processing of the related data need to comply with the relevant laws and regulations and standards of the relevant region.
In connection with the above description and the implementation environment, fig. 2 is a flowchart of a method for calibrating a relay according to an embodiment of the present application, and the method is described by taking the application of the method to the control device shown in fig. 1 as an example, and the method includes the following steps.
In step 210, in response to receiving a switching operation on the state detection loop, a detection period corresponding to the signal conversion loop is determined.
Wherein the switching operation is used for controlling the state detection loop to switch between an on state and an off state.
The method is schematically applied to a state detection loop, wherein the state detection loop comprises a relay and a signal conversion loop, and the signal conversion loop is used for converting a voltage signal generated by the state detection loop into a square wave signal to be output in the process of switching on or switching off the state detection loop.
The state detection circuit is schematically a circuit connected with the electronic switch device and used for detecting the on-off state of the electronic switch.
Illustratively, an electronic switch is an electronic component for controlling the switching of the on-off state of a load, such as: when the load is realized as a bulb, the electronic switch corresponding to the bulb is used for controlling the bulb to be turned on or off, when the electronic switch is turned down, the bulb is turned on, and when the electronic switch is turned up, the bulb is turned off. It should be noted that the application is not limited to the direction of the toggle of the electronic switch, and the foregoing is merely illustrative.
Optionally, the classification method of the electronic switch includes at least one of a plurality of classification methods:
1. the system is divided into applicable scenes, including a single fire switch and a zero fire switch, wherein the single fire switch is usually used in a loop with an illumination function and can only be used in a branch circuit corresponding to an illumination system, and the zero fire switch can be used on a control branch circuit of various loops such as an illumination loop and an air conditioner loop and is used for controlling the on and off of the illumination loop, the on and off of the air conditioner and the like;
2. the switch quantity of the same circuit is divided into a single-control switch, a double-control switch and a multi-control switch, wherein the single-control switch is used for controlling one circuit through one electronic switch, the double-control switch is used for controlling the same circuit through two switches at different positions, and the multi-control switch is used for controlling the same circuit through a plurality of switches at different positions;
3. The trigger type is divided into a mechanical switch, a touch switch, a magnetic switch, a photoelectric switch and the like, wherein the mechanical switch consists of a spring and a contact, when the spring is compressed, the contact between the contacts can be made so as to conduct a circuit, and when the spring is recovered, the contact between the contacts is broken so as to break the circuit; the touch switch adopts a capacitance induction principle, and when a finger approaches the surface of the switch, an electric field is formed to change, so that the switch is triggered; the magnetic switch is equipment which uses a magnetic field to switch to trigger the switch to act, and when the magnetic field between two magnetic elements in the magnetic switch changes, an iron core in the magnetic switch moves, so that the switch action of the magnetic switch is triggered; the photoelectric switch is a device for triggering the switching action of the photoelectric switch by using the photoelectric effect, and the photoelectric switch is usually composed of a light source, a photosensitive element and a signal processor, when an object enters the detection range of the photoelectric switch, the photosensitive element detects the light signal reflected by the light source and sends the light signal to the signal processor, so that the switching action is triggered.
It should be noted that the above classification of electronic switches is only illustrative, and the embodiments of the present application are not limited thereto.
It is noted that when the classification of the electronic switch belongs to at least two of the above-mentioned several classification cases, for example: the electronic switch is a single fire switch and a double control switch.
In some embodiments, the status detection loops to which different electronic switches are connected are different.
In some embodiments, at least one relay is disposed in the status detection circuit for controlling the status detection circuit to be turned on or off.
Illustratively, a relay is typically comprised of a core, a solenoid, an armature, and a contact spring. The on and off of the contact reed is controlled by an electromagnetic coil. When a current flows through the electromagnetic coil, the electromagnetic coil generates a magnetic field. If the current of the solenoid is sufficiently strong, it will move the power element (typically a core) of the relay, thereby turning on the contact spring. When the electromagnetic coil stops the current, the magnetic field disappears, the iron core returns to the original position, and the contacts are disconnected. Therefore, the suction of the relay means that the contact reed is switched on, and the disconnection of the relay means that the contact reed is switched off. When the magnetic field of the electromagnetic coil changes (including generating a magnetic field or the magnetic field is lost), the relay is considered to be in a powered-on state.
The signal conversion circuit is a circuit for converting an alternating voltage signal output by the state detection circuit in the on or off process into a square wave signal for output.
The state detection circuit which outputs the square wave signal is switched into an on state detection circuit by the signal conversion circuit when the state detection circuit is conducted, and the state detection circuit which outputs the square wave signal is switched into an off state detection circuit by the signal conversion circuit when the state detection circuit is disconnected, namely, the state detection circuit comprises two circuits of different detection types, namely, the on state detection circuit and the off state detection circuit. It should be noted that the above-mentioned square wave signal output cases of the on state detection circuit and the off state detection circuit are merely illustrative examples, and the embodiments of the present application are not limited thereto. In another possible case, the state detection circuit for outputting the square wave signal is switched to the off state detection circuit by the signal conversion circuit when the state detection circuit is turned on, and the state detection circuit for outputting the square wave signal is switched to the on state detection circuit by the signal conversion circuit when the state detection circuit is turned off.
Alternatively, the electronic switch may be connected to at least one of the state detection circuits, i.e. a single electronic switch may be connected to the on state detection circuit, or to the off state detection circuit, or to both the on state detection circuit and the off state detection circuit, depending on the manner of connection between the state detection circuits and the load.
In some embodiments, the user triggers a switching operation on the electronic switch, as a switching operation on the state detection circuit, when the electronic switch triggers a conducting operation, the load connected to the electronic switch is conducted and powered on, and when the electronic switch triggers a disconnecting operation, the load connected to the electronic switch is powered off, and the state detection circuit is also in a disconnected state.
Illustratively, taking a 50 hertz (Hz) alternating current as an example, when a voltage signal is generated in the state detection loop, the voltage signal is output in a periodic form, a single period of the voltage signal is 20 ms, a period end time of at least one period connected with the switching operation is taken as a termination time when the switching operation is received as a start time, and a detection period is obtained, for example: the single period of the voltage signal is 20 ms, and if the switching operation is received at the 3 rd ms in the period, the detection period is the period between the beginning of the 3 rd ms in the first period and the end of the 20 th ms in the consecutive third period. That is, at least one period of time may be included in the detection period.
Illustratively, the switching operation is an operation of triggering at any time within a single period, and the period is a period determined as the detected period based on the switching operation.
Illustratively, the voltage signal is output in the form of a sine wave signal and the square wave signal is output in the form of a low voltage square wave signal.
Step 220, in response to detecting that a first level jump exists in the square wave signal output by the signal conversion loop in the detection period, determining a first moment when the relay starts to be in a power-on state.
In some embodiments, level jump refers to a process of switching between a high level and a low level in the case that a square wave signal includes two level signals, i.e., a high level and a low level, for example: transition from high to low or from low to high. In a digital circuit, a high level is generally represented as 1, and a low level is represented as 0.
Illustratively, when a level jump is generated by detecting a square wave signal in a detection period where the switching operation is, from the time when the switching operation is received, the level jump is determined to be a first level jump, and at this time, the magnetic field of the electromagnetic coil in the relay is changed, and the relay is in a power-on state.
Optionally, the first level transition detected in the detection period is used as the first level transition, or any level transition (except the last level transition in the detection period) detected in the detection period is used as the first level transition.
Optionally, when the first level transition is implemented as a transition from a low level to a high level, the first level transition belongs to a rising edge signal; when the first level transition is implemented as a transition from a high level to a low level, the first level transition belongs to a falling edge signal. That is, the first level transitions include either a rising edge signal or a falling edge signal.
Referring to fig. 3, a signal conversion schematic diagram provided by an exemplary embodiment of the present application is shown, as shown in fig. 3, a signal conversion schematic diagram 310 is currently displayed, the signal conversion schematic diagram 310 includes a voltage signal 311 and a converted square wave signal 312, the voltage signal 311 and the square wave signal 312 are aligned according to time in the signal conversion schematic diagram 310, and it can be seen from the signal conversion schematic diagram 310 that when the voltage signal 311 is at a zero position 3111, it is the moment corresponding to the square wave signal 312 changing from a high level to a low level, that is, the square wave signal 312 has a level jump. The high level means that the voltage of the square wave signal is greater than 0, and the low level means that the voltage of the square wave signal is 0. If a switching operation is received at 1 ms in the signal transition diagram 310, the first level detected in the calibration period 313 corresponding to the switching operation jumps to the falling edge signal 314.
Referring to fig. 4, a signal conversion schematic diagram provided by an exemplary embodiment of the present application is shown in fig. 4, where a signal conversion schematic diagram 410 is currently shown, and a square wave signal 321 opposite to a square wave of a square wave signal 312 is shown, where the square wave signal 321 uses a low level as a start level signal, and jumps between a high level and a low level, but the determination manners of a rising edge signal and a falling edge signal remain consistent regardless of the square wave signal 312 or the square wave signal 321. If a switching operation is received at 2 ms in the signal transition diagram 320, the first level detected in the calibration period 322 corresponding to the switching operation jumps to the rising edge signal 323.
That is, the detected first level signal is different depending on the waveform direction of the square wave signal.
Optionally, when the first level jump exists in the square wave signal output by the signal conversion circuit in the detection period, directly determining the moment corresponding to the first level jump as the first moment when the relay starts to be in the power-on state; or when the first level jump exists in the square wave signal output by the signal conversion circuit in the detection period, the relay starts to be in the power-on state after a period of time delay from the moment corresponding to the first level jump, so that the moment when the relay is in the power-on state is taken as the first moment.
In response to detecting a second level transition adjacent to the first level transition within the detection period, a second time corresponding to the second level transition is determined 230.
The jump directions of the first level jump and the second level jump are opposite.
Illustratively, the second level transition occurs adjacent in time to the first level transition and the transition direction is opposite. For example: when the first level jumps to the rising edge signal, the second level jumps to the falling edge signal generated after the first level jumps in the detection period.
In some embodiments, the second moment is obtained by recording the moment of occurrence of the second level jump by a detection chip in the control device, and the relay starts to be in an operating state at the second moment. When the state detection loop is changed from on to off, the working state of the relay is that the contact is closed, and when the state detection loop is changed from off to on, the working state of the relay is that the contact is opened. Therefore, the relay can ensure that the contact is closed or opened when the voltage signal is at the voltage zero point.
Step 240, obtaining a calibration period corresponding to the relay based on the time difference between the first time and the second time.
The time difference between the first time and the second time is the actual response interval of the relay, and the calibration period is used for indicating the period of time for calibrating the relay.
Illustratively, after the first time and the second time are recorded, the time difference obtained by subtracting the first time from the second time is used as a calibration period corresponding to the relay.
Illustratively, the actual response interval of the relay refers to the response period from when the relay is triggered to when the relay is in an operational state.
In some embodiments, the calibration period corresponding to the relay refers to a time delay period between when the relay is powered up and when the relay is in an operating state after calibration.
Illustratively, when the relay meets the calibration condition, the time period difference between the first time corresponding to the start of the power-on state of the relay and the second time period between the working states of the relay is adjusted to be the calibration time period.
Alternatively, the calibration conditions include the number of uses, the length of use, etc., where the number of uses refers to the number of operations of the relay (including the sum of the number of times of actuation and the number of times of disconnection), such as: the number of times of use is 1000, and the use duration refers to the time range that the relay has elapsed from the start of use, for example: the use time is 8 months.
In summary, in the calibration method of the relay provided by the embodiment of the application, in a state that the relay works normally, a detection period corresponding to the relay is determined according to a switching operation of the state detection loop, a first time when the relay starts to be in a power-on state is determined by detecting that a first level jump exists in a square wave signal output by the signal conversion loop in the detection period, and a second time corresponding to the second level jump is determined when a second level jump adjacent to the first level jump and opposite to the jump direction is detected in the detection period, so that a calibration period corresponding to the relay is obtained according to a time difference between the first time and the second time and is used for calibrating the relay subsequently. That is, the time difference between the relay in the normal working state and the relay from the start of the power-on state to the start of working (including any one of the attraction and the disconnection with the contact) is obtained, so that the time difference between the start of the power-on state and the start of the working time in the subsequent period of the relay is calibrated, the relay can still be kept in the zero point to attract or disconnect with the contact after being used for a period of time, the service life of the relay is prolonged, and the whole state detection loop is protected from being damaged.
In some alternative embodiments, different electronic switches are used to connect different status detection loops. Fig. 5 is a flowchart of a method for calibrating a relay according to an embodiment of the present application, that is, step 220 further includes step 221 and step 222, step 240 further includes step 241 and step 242, step 240 further includes step 250 and step 260, and the method is applied to the control device shown in fig. 1 for illustration, and the method includes the following steps.
In step 210, in response to receiving a switching operation on the state detection loop, a detection period corresponding to the signal conversion loop is determined.
Wherein the switching operation is used for controlling the state detection loop to switch between an on state and an off state.
In some embodiments, the signal conversion circuit includes at least one voltage dividing resistor and at least one capacitor, and the voltage dividing resistor includes a plurality of resistors arranged according to a voltage dividing structure.
Illustratively, the signal conversion circuit includes at least one voltage dividing resistor and at least one capacitor, wherein the capacitor is used for converting a voltage signal into a square wave signal, and the voltage dividing resistor includes a plurality of resistors arranged in a voltage dividing structure. The resistances of the plurality of resistors may be the same or different.
In another possible case, the signal conversion circuit may be implemented as a circuit of another structure, which is not limited thereto. That is, the signal conversion circuit includes at least one voltage dividing circuit, at least one triode and at least one capacitor for connection, and the voltage dividing resistor includes a plurality of resistors arranged according to the voltage dividing structure.
Step 221, in response to detecting that the first level jump exists in the square wave signal output by the signal conversion loop in the detection period, delaying the first delay period from the first level jump.
The first delay period is a delay period preset for determining a time between the first level jump and the relay starting to be in a power-on state.
Illustratively, taking the example of the relay performing the contact actuation, the period of time that elapses from when the relay starts to be in the powered-on state to when the relay performs the contact actuation is typically less than 10 milliseconds, that is, the period of time that elapses is typically less than a half period of the voltage signal (the single period of time is 20 milliseconds), so, in order to ensure that the relay is capable of performing the contact actuation at the voltage zero point (that is, the second level jump), it is necessary to delay for a period of time after starting from the first level jump to start when the relay starts to be in the powered-on state, so that the contact actuation is performed at the voltage zero point after delaying for a period of time from when the relay starts to be in the powered-on state, and thus, the delayed period of time is taken as the first delay period.
In some embodiments, a preset working period of the relay is acquired, wherein the preset working period refers to a period from a power-on state to starting working of the relay in a production process; acquiring a preset period time of a voltage signal; the first delay period is acquired based on a time difference between the preset period and the preset operation period.
In this embodiment, the preset operation period refers to a period from when the relay is in a power-on state to when the relay is in an operation state in a design process, the preset period is set to be T, the preset period is a width of an effective signal, the effective signal is generally a 50 hz voltage signal, the width of the effective signal is a single signal period, the duty ratio refers to a ratio between a duration time when a pulse is excited and a pulse period, the duty ratio is generally 50%, that is, the width of the effective signal is a half period (10 ms), and a period allowance of 1 ms is further set. Thus, the first delay period z=10-T-1.
In another achievable case, the duty cycle may also be implemented as other ratios, for example: the duty ratio is 30%, that is, the high level in a single period is 30% of the total width of the signal in the whole period, and the low level is 70% of the total width of the signal in the whole period, which is not limited.
In response to the end of the first delay period, a first time at which the relay begins to be in a powered-up state is determined, step 222.
Illustratively, when the first delay period Z is over, the relay is triggered to start being in the powered-on state, and the time when the relay starts being in the powered-on state is recorded as the first time by the detection chip in the control device.
In response to detecting a second level transition adjacent to the first level transition within the detection period, a second time corresponding to the second level transition is determined 230.
The jump directions of the first level jump and the second level jump are opposite.
Illustratively, when the detection chip in the control device detects the second level jump in the detection period, the time when the second level jump occurs is recorded as the second time.
In step 241, the time difference between the first time and the second time is obtained as the first time period corresponding to the detection time period.
In some embodiments, the timing begins at a first time; stopping timing at the second moment to obtain a timing result; and taking the timing result as a first period corresponding to the detection period.
In this embodiment, the detection chip in the control device starts to count from a first time point when the relay starts to be in a power-on state, stops counting when a second level jump occurs, and calculates a time difference between the first time point and a second time point corresponding to the time point when counting is stopped, so as to obtain a first period corresponding to the detection period, that is, a first period x=10-Z.
In one possible case, the detection chip in the control device stops timing when a period of time before detecting that the voltage signal corresponding to the second level jump is switched to the voltage zero point, that is, X < 10-Z.
Step 242, obtaining a calibration period corresponding to the relay based on a time difference between the first period corresponding to the at least one detection period and the preset period.
The preset period time refers to the width of the effective signal.
Illustratively, the preset period is a half period width (10 ms) corresponding to the 50 hz voltage signal at a duty cycle of 50%.
When calibration is performed with only a single measurement period, the calibration period is X.
In some embodiments, when the relay is deviated from a period from a start of a power-on state to an on state, the deviated period is readjusted to a calibration period.
In some embodiments, there are also cases where the calibration period is derived from a first period measured from a plurality of different measurement periods, i.e. at least one detection period comprises n detection periods, n being equal to or greater than 2 and n being an integer; acquiring time period average values of first time periods corresponding to the n detection time periods respectively; and taking the time difference between the time interval average value and the preset period time interval as a calibration time interval corresponding to the relay.
In this embodiment, there is also a case that a plurality of switching operations are received, a corresponding detection period is determined according to each switching operation, and two switching operations are received in sequence as an example, when a first switching operation is received, a first detection period is determined, a first sub-period X is obtained by detecting a level jump in the first detection period, and similarly, when a second switching operation is received in any time later, a second detection period Y is determined, and a second sub-period is obtained by detecting a level jump in the second detection period. And calculating a time period average value (X+Y)/2 corresponding to the first subperiod and the second subperiod, so that the time difference between the time period average value (X+Y)/2 and the preset period (10 milliseconds) is used as the final calibration period of the relay.
It is to be noted that the number of switching operations is not limited, and thus the number of detection periods is not limited.
In some embodiments, the time difference between the preset period time and the time average value is taken as a first calibration time period, and the first calibration time period is used for calibrating the first time; and taking the time period average value as a second calibration time, wherein the second calibration time is used for calibrating the second time.
In this embodiment, the time difference 10- (x+y)/2 between the preset period (10 ms) and the period average value (x+y)/2 is used as the first calibration period, to determine that the relay is triggered after detecting the first level jump in the calibration process and then starts to enter the power-on state, and the time difference (x+y)/2 is used as the second calibration period, that is, the relay is switched from the power-on state to the working state after passing through the time difference (x+y)/2).
It is noted that the first calibration period and the second calibration period are completed synchronously in the calibration process, that is, the calibration result at the second time can be determined while the calibration result at the first time is determined by the first calibration period, or the calibration result at the first time can be determined while the calibration result at the second time is determined by the second calibration period.
Optionally, in the case that the detection period includes a plurality of detection periods, the transition direction of the first level transition in each detection period is kept uniform, for example: the first level jump in the first detection period is a rising edge signal, and the first level jump in the second detection period is also a rising edge signal; alternatively, the first level transitions within each detection period have different transition directions, for example: the first level transitions in the first detection period are rising edge signals, and the first level transitions in the second detection period are falling edge signals.
The following describes the calibration process of the relay in detail.
Step 250, in response to the relay receiving a switching operation to the state detection loop if the calibration condition is met, determining a target period corresponding to the signal conversion loop.
Illustratively, the calibration conditions include at least one of a number of uses and a duration of use.
In some embodiments, when a switching operation is received with the relay meeting the calibration condition, a target period for performing the calibration is determined according to the switching operation. The determination manner of the target period is the same as that of the detection period, and will not be described herein.
In step 260, in response to detecting that the first level jump exists in the square wave signal output by the signal conversion circuit in the target period, calibrating the first time based on the calibration period to obtain a calibrated first target time, and obtaining a calibrated second target time based on the first target time.
The relay is in a power-on state at a first target moment and is in a working state at a second target moment, and the working state comprises switching with a contact of the relay in the processes of suction and disconnection.
Schematically, in the calibration process, after the detection chip of the control device detects the first level jump in the target period, the relay is triggered by the first calibration period, so that the relay starts to be in a power-on state, the moment corresponding to the power-on state is taken as the first target moment after calibration, the second calibration period is delayed from the first target moment, so that the relay is in a working state, and the moment corresponding to the working state of the relay is taken as the second target moment after calibration. Thereby ensuring that the relay can enter an operating state at the voltage zero point. After the current calibration period, the relay performs the power-on state and the operation state according to the calibration period, and the above-described calibration process is again present, that is, the calibration process is a continuous operation. A single relay may include multiple calibration procedures.
Illustratively, the calibration process is described in detail again using square wave signals of two different waveform directions as an example.
Referring to fig. 6, a schematic diagram of a relay calibration process provided by an exemplary embodiment of the present application is shown, as shown in fig. 6, a square wave signal output chart 600 is currently displayed, where a first calibration period 610 of the square wave signal, a second calibration period 620, and a target period 630 (the number of actual calibration periods may be more, and two are illustrated here) are included, after receiving a first switching operation 601, the first calibration period 610 is determined, when the first level jump 602 is detected in the first calibration period 610, a first delay period is delayed from a time at which the first level jump 602 is located, to obtain a first time 603, the relay is in a powered-up state at the first time 603, and when the second level jump 604 is detected in the first calibration period 610, a second time corresponding to an operating state is determined, and the second time is stopped at the second time, thereby obtaining a first sub-period 605, and a second sub-period 606 in the first calibration period 620 is obtained, when the first calibration period is calculated, and the second calibration period is obtained, and the target period is determined again according to the first calibration period is calculated, and the second calibration period is obtained, and the target period 630 is determined when the first calibration period is received again, and the second calibration period is calculated, and the target period is determined.
Referring to fig. 7, a schematic diagram of a relay calibration process according to an exemplary embodiment of the present application is shown, as shown in fig. 7, a square wave signal output graph 700 is currently displayed, wherein the square wave signal 7100 has the opposite direction to the square wave of the square wave signal, but the calibration logic is the same, and will not be described herein.
In summary, in the calibration method of the relay provided by the embodiment of the application, in a state that the relay works normally, a detection period corresponding to the relay is determined according to a switching operation of the state detection loop, a first time when the relay starts to be in a power-on state is determined by detecting that a first level jump exists in a square wave signal output by the signal conversion loop in the detection period, and a second time corresponding to the second level jump is determined when a second level jump adjacent to the first level jump and opposite to the jump direction is detected in the detection period, so that a calibration period corresponding to the relay is obtained according to a time difference between the first time and the second time and is used for calibrating the relay subsequently. That is, the time difference between the relay in the normal working state and the relay from the start of the power-on state to the start of working (including any one of the attraction and the disconnection with the contact) is obtained, so that the time difference between the start of the power-on state and the start of the working time in the subsequent period of the relay is calibrated, the relay can still be kept in the zero point to attract or disconnect with the contact after being used for a period of time, the service life of the relay is prolonged, and the whole state detection loop is protected from being damaged.
The calibration method of the relay provided by the application can be applied to various electronic switches and various state detection circuits, and only examples of a single fire switch and a zero fire switch in the electronic switches are given below, and the state detection circuit connected with the electronic switches comprises at least one of an on state detection circuit and an off state detection circuit for explanation.
First, the electronic switch is a single fire switch, and the state detection circuit connected with the single fire switch is an on state detection circuit.
Referring to fig. 8 and 9, two different connection diagrams of the single fire switch and the on-state detection circuit are shown, and as shown in fig. 8, an on-state detection circuit 800 under the single fire switch is currently shown, which includes a relay 801 and a signal conversion circuit 802. As shown in fig. 9, an on-state detection circuit 900 under a single fire switch is currently shown, which includes a relay 901, a signal conversion circuit 902, and a signal conversion circuit 903. Taking the signal conversion circuit 902 as an example, the signal conversion circuit 902 includes three resistors, a capacitor, and a triode connected together.
The second kind, the electronic switch is the zero fire switch, and the state detection circuit connected with the zero fire switch is the on state detection circuit.
Referring to fig. 10 and 11, two different connection diagrams of the zero fire switch and the on-state detection circuit are shown, and as shown in fig. 10, an on-state detection circuit 1000 under the zero fire switch is currently shown, which includes a relay 1001 and a signal conversion circuit 1002. As shown in fig. 11, an on-state detection circuit 1100 under zero fire switching is currently shown, which includes a relay 1101, a signal conversion circuit 1102, and a signal conversion circuit 1103. Taking the signal conversion circuit 1102 as an example, the signal conversion circuit 1102 includes four resistors, a capacitor and a triode connected together.
Illustratively, when the state detection circuit is implemented as an on-state detection circuit, the switching operation is implemented as an operation of switching from off to on, i.e., the operating state of the relay is contact attraction. The calibration method corresponding to the on-state detection circuit can be used for placing an electric appliance to be impacted by a large current when a load is a capacitive load.
Third, the electronic switch is a single fire switch, and the state detection circuit connected with the single fire switch is an off state detection circuit.
Referring to fig. 12 and 13, two different connection diagrams of the single fire switch and the off state detection circuit are shown, and as shown in fig. 12, an off state detection circuit 1200 under the single fire switch is currently shown, which includes a relay 1201 and a signal conversion circuit 1202. As shown in fig. 13, an off state detection circuit 1300 under a single fire switch is currently shown, which includes a relay 1301 and a signal conversion circuit 1302. Taking the signal conversion circuit 1302 as an example, the signal conversion circuit 1302 includes three resistors, a capacitor, and a triode.
Fourth, the electronic switch is a zero fire switch, and the state detection circuit connected with the zero fire switch is an off state detection circuit.
Referring to fig. 14 and 15, two different connection diagrams of the zero fire switch and the off state detection circuit are shown, and as shown in fig. 14, the off state detection circuit 1400 under the zero fire switch is currently shown, which includes a relay 1401 and a signal conversion circuit 1402. As shown in fig. 15, the off state detection circuit 1500 under zero fire switching is currently shown, which includes a relay 1501 and a signal conversion circuit 1502. In the example of the signal conversion circuit 1502, the signal conversion circuit 1502 includes four resistors, a capacitor, and a transistor.
Illustratively, when the state detection circuit is implemented as an off-state detection circuit, the switching operation is implemented as an operation of switching from on to off, that is, the operating state of the relay is contact-off. The calibration method corresponding to the off-state detection circuit can be used for placing an electric appliance to be subjected to arc discharge by a large current when the load is an inductive load.
Fifth, the electronic switch is a single fire switch, and the state detection loop connected with the single fire switch comprises an on state detection circuit and an off state detection circuit.
Referring to fig. 16 and 17, two different connection diagrams of the single fire switch and the state detection circuit are shown, and as shown in fig. 16, a state detection circuit 1600 under the single fire switch is currently shown, including a relay 1601, an on state detection circuit 1610 and an off state detection circuit 1620. As shown in fig. 17, a state detection circuit 1700 under a single fire switch is currently shown, including a relay 1701, an on state detection circuit 1710, and an off state detection circuit 1720.
Sixth, the electronic switch is a zero fire switch, and the state detection loop connected with the zero fire switch comprises an on state detection circuit and an off state detection circuit.
Referring to fig. 18 and 19, two different connection diagrams of the zero fire switch and the state detection circuit are shown, and as shown in fig. 18, the state detection circuit 1800 under the zero fire switch is currently shown, and includes a relay 1801, an on state detection circuit 1810 and an off state detection circuit 1820. As shown in fig. 19, the state detection circuit 1900 currently shown in the zero fire switch includes a relay 1901, an on state detection circuit 1910, and an off state detection circuit 1920.
Illustratively, when the state detection circuit includes both an on-state detection circuit and an off-state detection circuit, the switching operation includes two modes of operation, i.e., the operating state of the relay includes contact opening and contact closing. Therefore, the time of the relay contact attraction can be calibrated, and the time of the relay disconnection can also be calibrated.
In summary, in the calibration method of the relay provided by the embodiment of the application, in a state that the relay works normally, a detection period corresponding to the relay is determined according to a switching operation of the state detection loop, a first time when the relay starts to be in a power-on state is determined by detecting that a first level jump exists in a square wave signal output by the signal conversion loop in the detection period, and a second time corresponding to the second level jump is determined when a second level jump adjacent to the first level jump and opposite to the jump direction is detected in the detection period, so that a calibration period corresponding to the relay is obtained according to a time difference between the first time and the second time and is used for calibrating the relay subsequently. That is, the time difference between the relay in the normal working state and the relay from the start of the power-on state to the start of working (including any one of the attraction and the disconnection with the contact) is obtained, so that the time difference between the start of the power-on state and the start of the working time in the subsequent period of the relay is calibrated, the relay can still be kept in the zero point to attract or disconnect with the contact after being used for a period of time, the service life of the relay is prolonged, and the whole state detection loop is protected from being damaged.
Referring to fig. 20, a block diagram of a calibration device of a relay according to an exemplary embodiment of the present application is shown, where the device includes:
a determining module 2010, configured to determine a detection period corresponding to the signal conversion loop in response to receiving a switching operation on the state detection loop, where the switching operation is used to control the state detection loop to switch between an on state and an off state;
the determining module 2010 is further configured to determine a first moment when the relay starts to be in a power-on state in response to detecting that a first level jump exists in the square wave signal output by the signal conversion circuit in the detection period;
the determining module 2010 is further configured to determine, in response to detecting a second level transition adjacent to the first level transition in the detection period, a second time corresponding to the second level transition, where a transition direction of the first level transition is opposite to a transition direction of the second level transition;
the obtaining module 2020 is configured to obtain a calibration period corresponding to the relay based on a time difference between the first time and the second time, where the time difference between the first time and the second time is an actual response interval of the relay, and the calibration period is used to indicate a time period for calibrating the relay.
In some embodiments, as shown in fig. 21, the acquiring module 2020 includes:
an acquisition unit 2021 configured to acquire a time difference between the first time and the second time as a first period corresponding to the detection period;
the obtaining unit 2021 is further configured to obtain a calibration period corresponding to the relay based on a time difference between a first period corresponding to the at least one detection period and a preset period, where the preset period refers to a width of the effective signal.
In some embodiments, the at least one detection period includes n detection periods, n being greater than or equal to 2 and n being an integer;
the acquiring unit 2021 is further configured to acquire a period average value of the first periods corresponding to the n detection periods respectively; and taking the time difference between the time interval average value and the preset period time interval as a calibration time interval corresponding to the relay.
In some embodiments, the obtaining unit 2021 is further configured to take a time difference between the preset period and the period average value as a first calibration period, where the first calibration period is used to calibrate the first time; and taking the time period average value as a second calibration time, wherein the second calibration time is used for calibrating the second time.
In some embodiments, the obtaining unit 2021 is further configured to start timing from the first time; stopping timing at the second moment to obtain a timing result; and taking the timing result as a first period corresponding to the detection period.
In some embodiments, the determining module 2010 is further configured to delay a first delay period from the first level jump in response to detecting that the first level jump exists in the square wave signal output by the signal conversion circuit within the detection period, where the first delay period is a delay period preset to determine that the first level jump and the relay start to be in the power-on state; and determining a first moment when the relay starts to be in a power-on state in response to the end of the first delay period.
In some embodiments, the obtaining module 2020 is further configured to obtain a preset operation period of the relay, where the preset operation period is a period from the power-on state to the start of operation, which is set in the relay during the production process; acquiring a preset period time of the voltage signal; and acquiring the first delay period based on the time difference between the preset period and the preset working period.
In some embodiments, the determining module 2010 is further configured to determine a target period corresponding to the signal conversion circuit in response to the relay receiving a switching operation on the state detection circuit if a calibration condition is met;
the apparatus further comprises:
the calibration module 2030 is configured to, in response to detecting that a first level jump exists in the square wave signal output by the signal conversion circuit in the target period, calibrate the first time based on the calibration period, obtain a calibrated first target time, obtain a calibrated second target time based on the first target time, and start to be in the power-on state at the first target time and be in the working state at the second target time, where the working state includes switching with a contact point of the relay in a switching-on and switching-off process.
In some embodiments, the signal conversion circuit includes at least one voltage dividing resistor and at least one capacitor for connection, where the voltage dividing resistor includes a plurality of resistors arranged according to a voltage dividing structure.
In summary, in the calibration device for a relay provided by the embodiment of the application, in a state in which the relay normally works, a detection period corresponding to the relay is determined according to a switching operation of a state detection loop, a first time when the relay starts to be in a power-on state is determined by detecting that a first level jump exists in a square wave signal output by a signal conversion loop in the detection period, and a second time corresponding to a second level jump is determined when a second level jump adjacent to the first level jump and opposite to the jump direction is detected in the detection period, so that a calibration period corresponding to the relay is obtained according to a time difference between the first time and the second time and is used for calibrating the relay subsequently. That is, the time difference between the relay in the normal working state and the relay from the start of the power-on state to the start of working (including any one of the attraction and the disconnection with the contact) is obtained, so that the time difference between the start of the power-on state and the start of the working time in the subsequent period of the relay is calibrated, the relay can still be kept in the zero point to attract or disconnect with the contact after being used for a period of time, the service life of the relay is prolonged, and the whole state detection loop is protected from being damaged.
It should be noted that: the calibration device of the relay provided in the above embodiment is only exemplified by the division of the above functional modules, and in practical application, the above functional allocation may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the calibration device of the relay provided in the above embodiment and the calibration method embodiment of the relay belong to the same concept, and the specific implementation process is detailed in the method embodiment, which is not described herein again.
Fig. 22 shows a block diagram of a control apparatus 2200 provided in an exemplary embodiment of the present application.
Generally, the control device 2200 includes: a processor 2201 and a memory 2202.
The processor 2201 may include one or more processing cores, such as a 4-core processor, an 8-core processor, or the like. The processor 2201 may be implemented in hardware in at least one of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 2201 may also include a main processor and a coprocessor, wherein the main processor is a processor for processing data in an awake state, and is also called a central processor (Central Processing Unit, CPU); a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 2201 may be integrated with an image processor (Graphics Processing Unit, GPU) for use in connection with rendering and rendering of content required for display by a display screen. In some embodiments, the processor 2201 may also include an artificial intelligence (Artificial Intelligence, AI) processor for processing computing operations related to machine learning.
Memory 2202 may include one or more computer-readable storage media, which may be non-transitory. Memory 2202 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 2202 is used to store at least one instruction for execution by processor 2201 to implement the method of calibrating a relay provided by a method embodiment of the present application.
Illustratively, the control device 2200 also includes other components, and those skilled in the art will appreciate that the structure shown in FIG. 22 is not limiting of the control device 2200, and may include more or fewer components than illustrated, or may combine certain components, or may employ a different arrangement of components.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be implemented by a program for instructing related hardware, and the program may be stored in a computer readable storage medium, which may be a computer readable storage medium included in the memory of the above embodiments; or may be a computer readable storage medium alone, not incorporated into the control device.
The computer readable storage medium stores at least one instruction, at least one program, a code set, or an instruction set, where the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by a processor to implement a method for calibrating a relay according to any of the embodiments of the present application.
Alternatively, the computer-readable storage medium may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), solid state disk (SSD, solid State Drives), or optical disk, etc. The random access memory may include resistive random access memory (ReRAM, resistance Random Access Memory) and dynamic random access memory (DRAM, dynamic Random Access Memory), among others. The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
Embodiments of the present application provide a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the method for calibrating the relay according to any of the above embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, where the program may be stored in a computer readable storage medium, and the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The foregoing description of the preferred embodiments of the present application is not intended to limit the application, but rather, the application is to be construed as limited to the appended claims.

Claims (14)

1. The method is applied to a state detection loop, the state detection loop comprises a relay and a signal conversion loop, the signal conversion loop is used for converting a voltage signal generated by the state detection loop into a square wave signal to be output in the process of switching on or off the state detection loop, and the method comprises the following steps:
determining a detection period corresponding to the signal conversion loop in response to receiving a switching operation on the state detection loop, wherein the switching operation is used for controlling the state detection loop to switch between a conducting state and a disconnecting state;
In response to detecting that a first level jump exists in the square wave signal output by the signal conversion loop in the detection period, determining a first moment when the relay starts to be in a power-on state;
determining a second moment corresponding to the second level jump in response to detecting the second level jump adjacent to the first level jump in the detection period, wherein the jump directions of the first level jump and the second level jump are opposite;
and acquiring a calibration period corresponding to the relay based on the time difference between the first time and the second time, wherein the time difference between the first time and the second time is an actual response interval of the relay, and the calibration period is used for indicating a time period for calibrating the relay.
2. The method of claim 1, wherein the obtaining the calibration period corresponding to the relay based on the time difference between the first time and the second time comprises:
acquiring the time difference between the first time and the second time as a first time period corresponding to the detection time period;
and obtaining a calibration period corresponding to the relay based on the time difference between a first period corresponding to at least one detection period and a preset period, wherein the preset period refers to the width of the effective signal.
3. The method of claim 2, wherein the at least one detection period comprises n detection periods, n being greater than or equal to 2 and n being an integer;
the obtaining the calibration period corresponding to the relay based on the time difference between the first period corresponding to the at least one detection period and the preset period includes:
acquiring time period average values of first time periods corresponding to the n detection time periods respectively;
and taking the time difference between the time interval average value and the preset period time interval as a calibration time interval corresponding to the relay.
4. A method according to claim 3, wherein said taking the time difference between the time period average and the preset period as the corresponding calibration period of the relay comprises:
taking the time difference between the preset period time and the time period average value as a first calibration time period, wherein the first calibration time period is used for calibrating the first time;
and taking the time period average value as a second calibration time, wherein the second calibration time is used for calibrating the second time.
5. The method according to claim 2, wherein the acquiring the time difference between the first time and the second time as the first period corresponding to the detection period includes:
Starting timing from the first time;
stopping timing at the second moment to obtain a timing result;
and taking the timing result as a first period corresponding to the detection period.
6. The method of any one of claims 1 to 5, wherein determining a first time at which the relay begins to be in a powered-on state in response to detecting a first level jump in the square wave signal output by the signal conversion circuit during the detection period comprises:
in response to detecting that a first level jump exists in the square wave signal output by the signal conversion loop in the detection period, delaying a first delay period from the first level jump, wherein the first delay period is a preset delay period used for determining that the first level jump and the relay are in the power-on state;
and determining a first moment when the relay starts to be in a power-on state in response to the end of the first delay period.
7. The method of claim 6, wherein in response to detecting the presence of a first level transition in the square wave signal output by the signal conversion loop within the detection period, delaying a first delay period from the first level transition, further comprising:
Acquiring a preset working period of the relay, wherein the preset working period refers to a period from the power-on state to the starting of working, which is set in the production process of the relay;
acquiring a preset period time of the voltage signal;
and acquiring the first delay period based on the time difference between the preset period and the preset working period.
8. The method according to any one of claims 1 to 5, wherein after the obtaining the calibration period corresponding to the relay based on the time difference between the first time and the second time, further comprising:
determining a target period corresponding to the signal conversion loop in response to the relay receiving a switching operation on the state detection loop under the condition that the relay meets a calibration condition;
in response to detecting that a first level jump exists in the square wave signal output by the signal conversion circuit in the target period, calibrating the first time based on the calibration period to obtain a calibrated first target time, obtaining a calibrated second target time based on a calibrated second target time obtained from the first target time, and starting the relay to be in the power-on state at the first target time and to be in the working state at the second target time, wherein the working state comprises switching of a contact point of the relay in the sucking and breaking processes.
9. The method of any one of claims 1 to 5, wherein the signal conversion circuit includes at least one voltage dividing resistor and at least one capacitor connected, and the voltage dividing resistor includes a plurality of resistors arranged according to a voltage dividing structure.
10. The method of any one of claims 1 to 5, wherein the signal conversion circuit includes at least one voltage dividing circuit, at least one triode, and at least one capacitor connected, and the voltage dividing resistor includes a plurality of resistors arranged according to a voltage dividing structure.
11. A calibration device for a relay, the device comprising:
the system comprises a determining module, a switching module and a switching module, wherein the determining module is used for determining a detection period corresponding to a state detection loop in response to receiving switching operation of the state detection loop, the state detection loop comprises a relay and the signal conversion loop, the signal conversion loop is used for converting a voltage signal generated by the state detection loop into a square wave signal to be output in the process of switching on or off the state detection loop, and the switching operation is used for controlling the state detection loop to switch between a conducting state and a switching off state;
The determining module is further used for determining a first moment when the relay starts to be in a power-on state in response to the fact that first level jump exists in the square wave signal output by the signal conversion circuit in the detection period;
the determining module is further configured to determine a second time corresponding to a second level jump in response to detecting the second level jump adjacent to the first level jump in the detection period, where a jump direction of the first level jump is opposite to a jump direction of the second level jump;
the acquisition module is used for acquiring a calibration period corresponding to the relay based on the time difference between the first time and the second time, wherein the time difference between the first time and the second time is an actual response interval of the relay, and the calibration period is used for indicating a time period for calibrating the relay.
12. A computer device comprising a processor and a memory, wherein the memory has stored therein at least one program that is loaded and executed by the processor to implement the method of calibrating a relay according to any of claims 1 to 10.
13. A computer readable storage medium, characterized in that at least one program is stored in the storage medium, which is loaded and executed by a processor to implement the method of calibrating a relay according to any of claims 1 to 10.
14. A computer program product comprising computer instructions which, when executed by a processor, implement a method of calibrating a relay according to any of claims 1 to 10.
CN202310797396.6A 2023-06-29 2023-06-29 Method, device, equipment, medium and program product for calibrating relay Pending CN116930738A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310797396.6A CN116930738A (en) 2023-06-29 2023-06-29 Method, device, equipment, medium and program product for calibrating relay

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310797396.6A CN116930738A (en) 2023-06-29 2023-06-29 Method, device, equipment, medium and program product for calibrating relay

Publications (1)

Publication Number Publication Date
CN116930738A true CN116930738A (en) 2023-10-24

Family

ID=88390381

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310797396.6A Pending CN116930738A (en) 2023-06-29 2023-06-29 Method, device, equipment, medium and program product for calibrating relay

Country Status (1)

Country Link
CN (1) CN116930738A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117250494A (en) * 2023-10-30 2023-12-19 中核检修有限公司 Thermal relay verification method, thermal relay verification device, computer equipment and readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117250494A (en) * 2023-10-30 2023-12-19 中核检修有限公司 Thermal relay verification method, thermal relay verification device, computer equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CA2281362C (en) Zero cross relay actuation method and system implementing same
CN116930738A (en) Method, device, equipment, medium and program product for calibrating relay
US6768615B2 (en) Spark elimination circuit for controlling relay contacts
CN209882150U (en) Load control device for controlling power delivered from an AC power source to an electrical device
US10324431B2 (en) Method for monitoring an electromechanical component of an automation system
CN1991222B (en) Solenoid-operated valve controller
WO2011153028A2 (en) Toggling method and apparatus in controllers for home appliances
US7957112B2 (en) Protection circuit for limiting operating power of electrical device and method thereof
US6211665B1 (en) Solenoid motion detection circuit
US10998147B2 (en) Switch device capable of automatically detecting and adjusting zero cross point
CN105432144A (en) Power supply for LED lighting system
TWI524652B (en) Input circuit for alternating current signal, and motor starter including the same
JPH1092284A (en) Method for monitoring and controlling operation of contactor
KR20120055811A (en) Method for detecting switch input in the sleep mode
US20080218245A1 (en) Solid-state switch
JP2011248578A (en) Programmable controller
CN110459433B (en) Relay zero-crossing control method and cooking appliance
CN112492085B (en) Mobile terminal and illumination control method
US20180102229A1 (en) Contactor having electronic coil control
CN209767238U (en) Intelligent isolating switch
CN108414928B (en) Method and device for detecting opening and closing time of circuit breaker coil
KR20220104215A (en) Voltage detection and adaptation method, device control method, apparatus, and storage medium
CN116699382A (en) Switch detection method, device, apparatus, medium, and program product
CN101834589B (en) Intelligent power switch terminal and control method thereof
CN212485219U (en) Control circuit of contactor

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination