Zero-crossing control method, electronic device and storage medium

By detecting the load current signal, it is determined that the current zero point of the on-off device coincides with the voltage zero point, and the disconnection is controlled based on the voltage zero point time point, which solves the problems of contact adhesion and short life of the on-off device in the existing technology, and achieves safer and more durable device operation.

CN114076844BActive Publication Date: 2024-08-23SHENZHEN LUMIUNITED TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010849444.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-21
Publication Date
2024-08-23
Estimated Expiration
2040-08-21

AI Technical Summary

Technical Problem

When preventing contact adhesion of the switching device, the existing technology only relies on current or voltage zero point judgment. It is easy for the current disconnection point to be not at the absolute 0A position due to excessive voltage or external interference, resulting in the risk of contact sparking and the inability to effectively extend the time. Device life.

Method used

By obtaining the current signal of the load current, it is determined whether there is a continuous current zero point, and when it coincides with the voltage zero point, the on-off device is controlled to be disconnected based on the time point of the voltage zero point, to avoid the risk of excessive voltage when the current zero point is disconnected.

Benefits of technology

It effectively avoids the risk of sparking of the contacts of the on-off device, extends the life of the on-off device, and ensures that when the control contact is disconnected, the differential pressure between the spring contacts is the smallest and the maximum Avoid excessive voltage at the moment when the current zero point is disconnected.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114076844B
    Figure CN114076844B
Patent Text Reader

Abstract

The embodiments of the present application provide a zero-crossing control method, an electronic device, and a storage medium. The zero-crossing control method includes: obtaining the time point of the zero-crossing point; when an action signal of the contact closure of the on-off device is detected, obtaining a current signal of the load current; judging whether there is a continuous current zero point based on the current signal and the time point of the zero-crossing point; when it is determined that there is a continuous current zero point, judging whether the continuous current zero point coincides with the voltage zero point; when it is determined that the continuous current zero point coincides with the voltage zero point, controlling the on-off device to disconnect at the voltage zero point based on the time point of the voltage zero point.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electronic circuits, and in particular to a zero-crossing control method, electronic equipment and a storage medium. Background Art

[0002] The contact sticking of the switch device is caused by the arc phenomenon at both ends of the contacts of the switch device, which causes the contacts to burn and stick. In order to prevent this phenomenon, various designs basically use zero-crossing control technology to make the contacts of the switch device close near 0V (volts), so that the voltage difference at both ends of the contacts is as small as possible to avoid arcing.

[0003] Taking the relay as an example of the on-off device, when the relay is energized, if the pressure difference between the two ends of the shrapnel contact is large, a high-energy arc will occur due to the shrapnel contacts being too close, causing the contacts to stick. In order to prevent this problem from happening, many relay controls will use zero-crossing control to allow the on-off device to be energized or disconnected at zero point. However, in the current algorithm design, basically only one of the zero points of current or voltage is used for judgment. In the current characteristics of the actual product, there is a situation where the current and voltage are zero at the same time. Especially when the relay is disconnected, if only the traditional current zero point is used for disconnection, the voltage may be too high at that moment, and various reasons such as external interference may cause the current disconnection point to be not at the absolute 0A (ampere) position, and the relay shrapnel contacts are still at risk of sparking. Summary of the invention

[0004] In order to solve the existing technical problems, the present application provides a zero-crossing control method, an electronic device and a storage medium that can more effectively prevent the contacts of a switching device from sticking.

[0005] To achieve the above purpose, the technical solution of the embodiment of the present application is implemented as follows:

[0006] In a first aspect, an embodiment of the present application provides a zero-crossing control method, comprising: obtaining the time point of the zero-crossing point; when an action signal of the closing of the contacts of the on-off device is detected, obtaining a current signal of the load current; judging whether there is a continuous current zero point based on the current signal and the time point of the zero-crossing point; when it is determined that there is a continuous current zero point, judging whether the continuous current zero point coincides with the voltage zero point; when it is determined that the continuous current zero point coincides with the voltage zero point, controlling the on-off device to disconnect at the voltage zero point based on the time point of the voltage zero point.

[0007] In a second aspect, an embodiment of the present application provides an electronic device, comprising a zero point detection circuit, a processor, a switching device, a voltage detection circuit and a current detection circuit, wherein the zero point detection circuit is used to detect the time of a zero crossing and send the time of the zero crossing to the processor; the processor sends a control signal to control the closure of the contacts of the switching device, and detects the action signal of the closure of the contacts of the switching device through the voltage detection circuit; when the voltage detection circuit detects the corresponding action signal of the closure of the contacts of the switching device, the action signal of the closure of the contacts of the switching device is sent to the processor; the current detection circuit is used to detect the load current after the contacts of the switching device are closed and send it to the processor; after the contacts of the switching device are closed, the processor obtains the current signal of the load current, and determines according to the current signal and the time point of the zero crossing that there is a continuous current zero point and the continuous current zero point coincides with the voltage zero point, and controls the switching device to disconnect at the voltage zero point based on the time point of the voltage zero point.

[0008] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory and a processor for storing a computer program, wherein when the processor runs the computer program, the zero-crossing control method described in any embodiment of the present application is executed.

[0009] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program code is stored. When the computer program code is loaded and executed by a processor, the zero-crossing control method described in any embodiment of the present application is executed.

[0010] The zero-crossing control method and computer-readable storage medium provided in the above-mentioned embodiments of the present application include at least the following advantages: when the contacts of the on-off device are closed, it is determined whether there is a continuous current zero point by obtaining the current signal of the load current. When the continuous current zero point coincides with the voltage zero point, the on-off device is controlled to be disconnected at the voltage zero point according to the time point of the voltage zero point, thereby avoiding the risk of sparking of the contacts of the on-off device due to the instantaneous voltage being too high when disconnecting at the current zero point, and the service life of the on-off device can be better extended.

[0011] The electronic device provided by the above embodiment has at least the following advantages: the electronic device includes a zero point detection circuit, a processor, a switching device, a voltage detection circuit and a current detection circuit, wherein the current detection circuit is used to detect the load current after the contacts of the switching device are closed, and obtain a current signal of the load current and send it to the processor. When the contacts of the switching device are closed, the processor determines whether there is a continuous current zero point by obtaining the current signal of the load current from the current detection circuit. When the continuous current zero point coincides with the voltage zero point, the switching device is controlled to be disconnected at the voltage zero point according to the time point of the voltage zero point, thereby avoiding the risk of sparking of the contacts of the switching device due to the instantaneous voltage being too high when the current zero point is disconnected, and the service life of the switching device can be better extended. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 is a schematic diagram of an electronic device in an embodiment of the present application;

[0013] Figure 2 This is a schematic diagram of an Internet of Things system in an embodiment of the present application;

[0014] Figure 3 This is a flow chart of the zero-crossing control method in an embodiment of the present application;

[0015] Figure 4 This is a comparison diagram of the zero point before and after the on-off device in the embodiment of the present application adopts zero-crossing control;

[0016] Figure 5 This is a flow chart of a zero-crossing control method in another embodiment of the present application;

[0017] Figure 6 This is a flow chart of a zero-crossing control method in an optional specific embodiment of the present application;

[0018] Figure 7 This is a schematic diagram of a zero-crossing control device in one embodiment of the present application;

[0019] Figure 8 is a schematic diagram of an electronic device in another embodiment of the present application;

[0020] Fig. 9 This is a schematic diagram of the structure of an electronic device in another embodiment of the present application. DETAILED DESCRIPTION

[0021] The technical solution of the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0022] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the implementation of the present invention. The term "and / or" used herein includes any and all combinations of one or more related listed items.

[0023] In the description of the present invention, it should be understood that the terms "center", "upper", "lower", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In the description of the present invention, unless otherwise specified, "plurality" means two or more.

[0024] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a direct connection, or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0025] See also Figure 1The embodiment of the present application provides an electronic device, including a zero point detection circuit 10, a processor 20, a switching device 30, a voltage detection circuit 41 and a current detection circuit 42, wherein the zero point detection circuit 10 is used to detect the time of a zero point and send the time of the zero point to the processor 20; the processor 20 sends a control signal for controlling the contact closure of the switching device 30, and detects the action signal of the contact closure of the switching device 30 through the voltage detection circuit 41; when the voltage detection circuit 41 detects the corresponding action signal of the contact closure of the switching device 30 , sending the action signal of the contact closure of the on-off device 30 to the processor 20; the current detection circuit 42 is used to detect the load current after the contact of the on-off device 30 is closed and send it to the processor 20; the processor 20 obtains the current signal of the load current after the contact of the on-off device 30 is closed, and determines that there is a continuous current zero point according to the current signal and the time point of the zero-crossing point, and the continuous current zero point coincides with the voltage zero point, and controls the on-off device 30 to disconnect at the voltage zero point based on the time point of the voltage zero point. Wherein, the processor 20 can be a main controller including an analog to digital converter (ADC), such as a microcontroller unit (MCU). The electronic device can be various types of switches and socket products, and the on-off device 30 is a key component for the electronic device to achieve closing or disconnection, such as the on-off device 30 can be a relay in a typical embodiment.

[0026] The electronic device executes the zero-crossing control method provided in the embodiment of the present application by running a computer program through the processor 20. Optionally, the processor 20 executes the zero-crossing control method including at least implementing the following steps.

[0027] When the processor 20 determines that there is a continuous current zero point and the frequency of occurrence of the continuous current zero point is different from the multiple of the current mains frequency, it determines the voltage near zero point within the continuous time range of the continuous current zero point, and controls the on-off device 30 to disconnect at the voltage near zero point based on the time point of the voltage near zero point. Wherein, the voltage near zero point can refer to the voltage closest to the zero point within the duration range of the continuous current zero point, or refers to the voltage less than the set voltage threshold. When the processor 20 determines that there is a continuous current zero point and the continuous current zero point does not coincide with the voltage zero point, it controls the on-off device 30 to disconnect according to the time point corresponding to the voltage near zero point within the duration range of the continuous current zero point, so as to ensure that when the contacts of the on-off device 30 are disconnected in the case of a continuous current zero point, the differential pressure between the spring contacts is relatively minimum, thereby avoiding the risk of sparking of the contacts of the on-off device 30 due to the instantaneous voltage being too high when the current zero point is disconnected to the greatest extent.

[0028] When determining that the continuous current zero point does not coincide with the voltage zero point, the processor 20 controls the on-off device 30 to disconnect at the current zero point based on the time point of the current zero point.

[0029] The processor 20 determines the action time required for the contact closure of the on-off device 30 according to the historical issuance time of the control signal for the contact closure of the on-off device 30 and the acquisition time of the corresponding action signal for the contact closure of the on-off device 30, takes the current time point of the current zero point as the starting point, and issues a control signal for controlling the contact closure of the on-off device 30 within the action time required for the contact closure of the on-off device 30, so as to control the on-off device 30 to disconnect at the current zero point. By real-time monitoring of the actual time required for the contact closure of the on-off device 30, it can be ensured that the on-off device 30 operates at the zero-crossing position to avoid zero-point offset.

[0030] The processor 20 sends a disconnection control signal to the on-off device 30, and detects the action signal of the contact disconnection of the on-off device through the voltage detection circuit 41; when the voltage detection circuit 41 detects the corresponding action signal of the contact disconnection of the on-off device 30, the action signal of the contact disconnection of the on-off device 30 is sent to the processor 20; the processor 20 determines the action time required for the contact disconnection of the on-off device 30 according to the historical issuance time of the control signal of the contact disconnection of the on-off device 30 and the corresponding acquisition time of the action signal, and takes the time point of the voltage zero point as the starting point, and sends a control signal for controlling the disconnection of the on-off device 30 within the action time required for the contact disconnection of the on-off device 30, so as to control the on-off device 30 to disconnect at the voltage zero point. By real-time monitoring of the actual time required for the contact disconnection of the on-off device 30, it can be ensured that the on-off device 30 is disconnected at the voltage zero point, and the contact adhesion caused by sparking can be avoided based on the single current zero point control of the on-off device action.

[0031] In the above embodiment, the electronic device executes the zero-crossing control method through the processor 20. When the contacts of the on-off device 30 are closed, it is determined whether there is a continuous current zero point by obtaining the current signal of the load current. When the continuous current zero point coincides with the voltage zero point, the on-off device 30 is controlled to be disconnected at the voltage zero point according to the time point of the voltage zero point, thereby avoiding the risk of sparking of the contacts of the on-off device 30 due to the instantaneous voltage being too high when the current zero point is disconnected. This can better extend the life of the on-off device, that is, extend the service life of the electronic device.

[0032] Figure 2 It is an Internet of Things system composed of electronic devices and gateway 53, server 52, terminal device 51, etc. The Internet of Things system includes: terminal device 51, server 22, gateway 53, electronic device 54 and router 55. Among them, terminal device 51 can be any device with communication and storage functions, such as: smart phone, desktop computer, laptop computer, tablet computer or other intelligent communication device with network connection function. Server 52 can be a network access server, database server, cloud server, etc. Optionally, gateway 53 can be built based on ZigBee protocol, and electronic device 54 can be a device pre-added to gateway 53. For example, electronic device 54 can be a device in the kit to which gateway 53 belongs when gateway 53 leaves the factory; it can also be a device connected to gateway 53 through user operation later. The Internet of Things system can realize the control of opening or closing Internet of Things devices within the local area network or connected to it, such as smart home, through the electronic device 54.

[0033] Optionally, a client capable of managing the smart home is installed in the terminal device 51 , and the client may be an application client (such as a mobile phone APP) or a web client, which is not limited here.

[0034] Optionally, the electronic device 54 may establish a network connection with the gateway 53 based on the ZigBee protocol, thereby joining the ZigBee network.

[0035] The gateway 53 and the terminal device 51 can be connected to the router 55 and connected to the Ethernet through the router 55. The router 55 can access the server through a wired or wireless communication connection. For example, the gateway 53 and the terminal device 51 can store the acquired information in the server 52. Optionally, the terminal device 51 can also establish a network connection with the server 52 through 2G / 3G / 4G / 5G, WiFi, etc., so as to obtain data sent by the server 52.

[0036] Optional, such as Figure 2 The LAN path shown indicates that the terminal device 51 is in the same LAN as the router 55 and the gateway 53, and the WAN path indicates that the terminal device 51 is in the same LAN as the router 55 and the gateway 53. When the terminal device 51 is in the same LAN as the router 55 and the gateway 53, the terminal device 51 can Figure 2 The local area network path shown interacts with the gateway 53 and the electronic device 54 connected to the gateway 53; it can also be communicated through Figure 2 The wide area network path shown interacts with the gateway 53 and the electronic device 54 connected to the gateway 53. When the terminal device 51 is not in the same local area network as the router 55 and the gateway 53, the terminal device 51 can communicate with the gateway 53 through the following methods: Figure 2 The wide area network path shown interacts with a gateway 53 and an electronic device 54 connected to the gateway 53 .

[0037] See also Figure 3 The embodiment of the present application provides a zero-crossing control method, which includes but is not limited to S101, S103, S105, S107 and S109, which are specifically described as follows:

[0038] S101, obtaining the time point of the zero-crossing point.

[0039] Among them, the zero crossing point may include a current zero point and a voltage zero point. The electronic device may detect the time point corresponding to the current zero point and the voltage zero point through a zero point detection circuit, and send the time point corresponding to the current zero point and the voltage zero point to the processor. The processor obtains the time corresponding to the zero crossing point, and sends a control signal for controlling the contact of the on-off device to close or open according to the time corresponding to the zero crossing point, so as to control the contact of the on-off device to move near the zero point. In some optional embodiments, the zero point detection circuit detecting the current zero point and the voltage zero point may include:

[0040] The zero point detection circuit detects the current zero point and the voltage zero point multiple times, and draws the corresponding current curve and voltage curve according to the time point of the current zero point and the voltage zero point obtained by each detection;

[0041] Deviation analysis is performed on the current curve and voltage curve obtained each time, and the current curve and voltage curve with large deviation are eliminated. The average of the zero points in the remaining current curve and voltage curve is taken as the initialized current zero point and voltage zero point.

[0042] By repeatedly detecting the voltage zero point and the current zero point for initialization processing, the accuracy of the detected current zero point and voltage zero point can be improved.

[0043] S103, when an action signal indicating that the contacts of the on-off device are closed is detected, a current signal of the load current is obtained.

[0044] The load refers to an electronic product that is connected to the on-off device to obtain or disconnect power according to the on or off of the on-off device, such as Figure 2 The smart home is shown to be connected to the electronic devices respectively. When the processor detects the action signal of the contact closure of the on-off device, it can obtain the current signal of the load current through the current detection circuit, and further judge whether the voltage and current of the on-off device are zero when it is disconnected by analyzing the current characteristics.

[0045] S105, judging whether there is a continuous current zero point according to the current signal.

[0046] A continuous current zero point refers to whether the current is 0A for a certain period of time and whether the duration exceeds a set time threshold, such as the set time threshold can be 1 second, or other set durations. To determine whether there is a continuous current zero point, the current signal of the load current can be analyzed to obtain the waveform characteristics of the load current. When the load current appears to be continuously 0A, it can be regarded as the existence of a continuous current zero point, and the time corresponding to the continuous current zero point and its corresponding duration can be further determined according to the waveform characteristics of the load current; conversely, when the current zero point of the load current only appears periodically like a sine wave, it is regarded as a non-continuous current zero point, that is, there is no continuous current zero point.

[0047] S107, when it is determined that there is a continuous current zero point, judging whether the continuous current zero point coincides with the voltage zero point according to the continuous current zero point and the time of the zero-crossing point.

[0048] When the processor controls the zero crossing of the on-off device according to a single current zero point, if the voltage zero point coincides with the current zero point, the voltage may be too high at the moment when the current zero point is disconnected. Due to the large voltage difference across the contacts of the on-off device, an arc phenomenon occurs, causing the contacts to stick. After the contacts of the on-off device are closed, the processor obtains the current signal of the load current for analysis and determines that there is a continuous current zero point. According to the time period corresponding to the continuous current zero point and the time corresponding to the voltage zero point, it determines whether the continuous current zero point coincides with the voltage zero point.

[0049] It should be noted that coincidence may mean that the time corresponding to the current zero point is the same as the time corresponding to the voltage zero point, and / or the deviation between the time corresponding to the current zero point and the time corresponding to the voltage zero point is less than a set value, such as 1 second.

[0050] S109, when it is determined that the continuous current zero point coincides with the voltage zero point, controlling the on-off device to be disconnected at the voltage zero point based on the time point of the voltage zero point.

[0051] The processor determines that the continuous current zero point coincides with the voltage zero point. Specifically, it can be determined that the time corresponding to the voltage zero point belongs to the time period corresponding to the current zero point based on the time period corresponding to the continuous current zero point and the time corresponding to the voltage zero point. For example, the time corresponding to the voltage zero point is the 8th second, and the time period corresponding to the current zero point is from the 5th second to the 10th second. Thus, it can be determined that there is a continuous current zero point coincident with the voltage zero point. When the processor determines that there is a continuous current zero point coincident with the voltage zero point, the processor controls the on-off device to disconnect at the voltage zero point based on the time point of the voltage zero point, such as Figure 4As shown, it is a zero point comparison diagram before and after the on-off device adopts zero-crossing control. When there is a continuous current zero point that coincides with the voltage zero point, the current zero point is also disconnected at the same time. The on-off device is controlled to adopt voltage zero point disconnection, thereby avoiding the risk of sparking of the contacts of the on-off device due to excessive voltage at the moment of current zero point disconnection.

[0052] In the above embodiment, when the contacts of the on-off device are closed, the processor determines whether there is a continuous current zero point by obtaining the current signal of the load current. When the continuous current zero point coincides with the voltage zero point, the on-off device is controlled to be disconnected at the voltage zero point according to the time point of the voltage zero point, thereby avoiding the risk of sparking of the contacts of the on-off device due to excessive voltage at the moment of disconnection at the current zero point, thereby better extending the life of the on-off device.

[0053] Optionally, the controlling the on-off device based on the time point of the voltage zero point after the voltage zero point is disconnected further includes:

[0054] Detect whether the on-off device is disconnected at the voltage zero point;

[0055] When it is detected that the on-off device is not disconnected, the on-off device is controlled to be disconnected again, and the process returns to the step of detecting whether the on-off device is disconnected at the voltage zero point.

[0056] The failure of the on-off device to disconnect may include that the on-off device does not perform the disconnection action or that the on-off device performs the disconnection action but still has adhesion. The accuracy of the on-off device's execution of the action is ensured by monitoring the execution of the on-off device and controlling the on-off device to disconnect again when an abnormality occurs in the execution of the on-off device.

[0057] Optionally, when it is detected that the on-off device is not disconnected, the method further includes:

[0058] Sending a reminder message, which may be a sound reminder, a light reminder or a text reminder; and / or

[0059] The number of times the on-off device is not disconnected is recorded, and the record is sent to a designated database for storage. The database may be located in a mobile terminal, a cloud or an electronic device.

[0060] By monitoring the execution of the on-off device and sending out reminders in time when the on-off device is abnormal, relevant personnel can be informed of the fault in time and take corresponding repair measures. The number and time of abnormal execution of the on-off device are recorded and reported, which can be left for subsequent maintenance to check the cause.

[0061] In some embodiments, see Figure 5 , the zero-crossing control method also includes:

[0062] S110, when it is determined that there is a continuous current zero point and the occurrence frequency of the continuous current zero point is different from the multiple of the current mains frequency, determine a time point corresponding to a voltage near zero point within a duration range of the continuous current zero point;

[0063] S111, based on the time point when the voltage is close to zero, controlling the on-off device to be disconnected at the voltage close to zero.

[0064] After the contact of the on-off device is closed, the processor obtains the current signal of the load current for analysis and determines that there is a continuous current zero point. According to the time period corresponding to the continuous current zero point and the time corresponding to the voltage zero point, it is judged whether the continuous current zero point coincides with the voltage zero point. When there is a continuous current zero point and the frequency of occurrence of the continuous current zero point is different from the multiple of the current mains frequency, it also includes judging whether there is a voltage near zero point within the duration range of the continuous current zero point. When it is determined that there is a voltage near zero point within the duration range of the continuous current zero point, the on-off device is controlled to disconnect at the voltage near zero point based on the time point of the voltage near zero point. Among them, as an optional implementation, the voltage near zero point refers to the voltage closest to the zero point within the duration range of the continuous current zero point. In this case, the value of the voltage near zero point is not uniquely determined. As another optional implementation method, the voltage near zero point can be less than the voltage of the set voltage threshold. Among them, the set voltage threshold is mainly determined according to the minimum pressure difference value corresponding to the ignition risk that may be generated when the contacts of the on-off device are disconnected, that is, at the moment the contacts of the on-off device are disconnected, the pressure difference between the spring contacts should be at least less than a certain voltage value, such as 5V, so as not to generate the ignition risk. The set voltage threshold is determined accordingly according to the voltage value. If the set voltage threshold is determined to be 5V, the voltage near zero refers to a voltage less than 5V.

[0065] In the above embodiment, when the processor determines that there is a continuous current zero point and the continuous current zero point does not coincide with the voltage zero point, the processor controls the on-off device to disconnect according to the time corresponding to the voltage near zero point within the duration range of the continuous current zero point, thereby ensuring that when the contacts of the on-off device are disconnected in the presence of a continuous current zero point, the differential pressure between the spring contacts is relatively minimum, avoiding the risk of sparking of the contacts of the on-off device due to excessive instantaneous voltage when the current zero point is disconnected, and better extending the life of the on-off device.

[0066] Optionally, in the case where the voltage near zero point refers to a voltage less than a set voltage threshold, controlling the on-off device to disconnect at the voltage near zero point based on the time point of the voltage near zero point may include:

[0067] When there are multiple voltage near zero points, the on-off device is controlled to be disconnected at the voltage near zero point according to the time point of the earliest voltage near zero point.

[0068] During the duration of the current zero point, multiple voltage near-zero points that are less than the set voltage threshold are arranged in order of time points, and the on-off device is controlled to disconnect at the voltage near-zero point according to the time point of the earliest voltage near-zero point. This can ensure that in the presence of a continuous current zero point, the contacts of the on-off device are disconnected at the earliest within a safe range, avoiding the risk of sparking of the contacts of the on-off device due to excessive voltage at the moment of current zero point disconnection, thereby extending the life of the on-off device.

[0069] Wherein, when the voltage near zero point refers to a voltage less than a set voltage threshold, determining the time point corresponding to the voltage near zero point within the duration range of the continuous current zero point includes:

[0070] Determine whether there is a voltage near-zero point within the duration range of the continuous current zero point;

[0071] When it is determined that the voltage near-zero point exists within the duration range of the continuous current zero point, a time point corresponding to the voltage near-zero point is determined.

[0072] The voltage threshold is set according to the minimum pressure difference value corresponding to the ignition risk that may occur when the contacts of the on-off device are disconnected. When the pressure difference between the spring contacts of the on-off device is greater than or equal to the minimum pressure difference value, there may be an ignition risk. On the contrary, when the pressure difference between the spring contacts of the on-off device is less than the minimum pressure difference value, the risk of contact ignition can be avoided. In this way, the minimum pressure difference value can be used as the voltage near zero point. In the case of a continuous current zero point, the contacts of the on-off device are controlled to be disconnected at the time corresponding to the voltage near zero point. At this time, the differential pressure between the spring contacts is the voltage value corresponding to the voltage near zero point and is less than the minimum pressure difference value corresponding to the ignition risk that may occur when the contacts of the on-off device are disconnected. This can also avoid the risk of ignition of the contacts of the on-off device due to the instantaneous voltage being too high when the current zero point is disconnected, and can better extend the life of the on-off device.

[0073] In some embodiments, the zero-crossing control method further includes:

[0074] When it is determined that the continuous current zero point does not coincide with the voltage zero point, the switching device is controlled to be disconnected at the current zero point based on the time point of the current zero point.

[0075] A continuous current zero point refers to whether the current is 0A for a certain period of time and whether the duration exceeds a set time threshold. To determine whether there is a continuous current zero point, the current signal of the load current can be analyzed to obtain the waveform characteristics of the load current. When the load current appears to be 0A continuously, it can be regarded as the existence of a continuous current zero point, and the time corresponding to the continuous current zero point and its corresponding duration can be further determined according to the waveform characteristics of the load current; conversely, when the current zero point of the load current only appears periodically like a sine wave, it is deemed that there is no continuous current zero point. When the processor determines that there is a continuous current zero point, but the continuous current zero point does not coincide with the voltage zero point, the contacts of the on-off device are disconnected based on the current zero point control.

[0076] In some embodiments, the zero-crossing control method further includes:

[0077] When it is determined that there is a current zero point and the frequency of the current zero point is a set multiple of the grid frequency, the on-off device is controlled to be disconnected at the voltage zero point based on the time point of the voltage zero point.

[0078] The set multiple of the grid frequency can be one or two times the grid frequency. As an optional specific example, the frequency of the current zero point is 50 Hz or 100 Hz. When the frequency of the current zero point is a set multiple of the grid frequency, it is regarded as a continuous current zero point. When the contacts of the on-off device are closed, the on-off device is controlled to be disconnected according to the time point of the voltage zero point, so as to avoid the risk of sparking of the contacts of the on-off device due to the instantaneous voltage being too high when the current zero point is disconnected, thereby better extending the service life of the on-off device.

[0079] In some embodiments, controlling the on-off device to be disconnected at the voltage zero point based on the time point of the voltage zero point includes:

[0080] Sending a disconnect control signal to the on-off device;

[0081] After obtaining the disconnection control signal, the contact of the on-off device is disconnected;

[0082] Determine the action time required for the contact of the on-off device to be disconnected according to the historical time when the control signal is issued and the corresponding time when the action signal is obtained when the contact of the on-off device is disconnected;

[0083] Taking the time point of the voltage zero point as the starting point, a control signal for controlling the contact opening of the on-off device is issued within the action time required for the contact opening of the on-off device, so as to control the contact of the on-off device to open at the voltage zero point.

[0084] The closing or opening of the contacts of the on-off device refers to the action of the on-off device to control the closing or opening of the spring after receiving the control signal from the processor. The voltage detection circuit can monitor the mechanical action of the closing or opening of the spring of the on-off device. When the spring of the on-off device is closed or opened, the voltage detection circuit immediately receives the action signal of the closing or opening of the contacts of the on-off device, and sends the action signal of the closing or opening of the contacts of the on-off device to the processor, so that the processor obtains the action signal of the closing or opening of the contacts of the on-off device from the voltage detection circuit. One action can refer to the switching of the contacts of the on-off device from the current closed state to the open state; or it can refer to the switching of the contacts of the on-off device from the current open state to the closed state.

[0085] The processor can determine the action time of the on-off device according to the control signal for disconnection sent to the on-off device and the action time for the on-off device to complete the contact disconnection according to the control signal, and the action time is the actual time taken by the on-off device to perform the mechanical action of disconnecting the spring contact. The processor can monitor the mechanical action time required to complete each disconnection action of the on-off device throughout its life cycle according to the sending time of the control signal for controlling the contact disconnection of the on-off device and the acquisition time of the action signal formed when the on-off device completes the contact disconnection action after receiving the control signal. When the on-off device controls the on-off device to disconnect according to the voltage zero point, the time point of the voltage zero point is used as the starting point, and a control signal for controlling the contact disconnection of the on-off device is sent within the action time required for the contact disconnection of the on-off device. The contacts of the on-off device can be controlled to disconnect at exactly the zero voltage, thereby avoiding the problem of deviation from the zero point due to various reasons such as external interference or aging of the on-off device.

[0086] Generally, as the use time of the on-off device increases, aging may occur, resulting in changes in the actual time taken by the on-off device to complete an action as the use time increases. By determining the action time required for the on-off device to disconnect the contacts through the historical time of issuing the control signal when the contacts of the on-off device are disconnected and the corresponding time of obtaining the action signal, and monitoring the action time required for the on-off device to complete the action, the changing trend of the action time of the on-off device can be known, and the time of issuing the control signal to control the disconnection of the contacts of the on-off device can be adjusted according to the action time, ensuring that the control signal is issued with the voltage zero point as the starting point and within the actual action time required for the contact disconnection, so as to eliminate the deviation of the mechanical action time of the on-off device from the zero point position due to aging, and ensure that it can be closed and disconnected at zero point in different use time periods. Among them, the historical issuance time of the control signal when the contact of the on-off device is disconnected and the corresponding acquisition time of the action signal may refer to the issuance time of the control signal when the contact of the on-off device is disconnected and the corresponding acquisition time of the action signal before the current control of the contact of the on-off device to be disconnected according to the voltage zero point; or the issuance time of the control signal and the corresponding acquisition time of the action signal when the contact of the on-off device is disconnected for multiple times before. Taking the current control of the contact of the on-off device to be disconnected according to the voltage zero point as the Mth time as an example, the historical issuance time of the control signal when the contact of the on-off device is disconnected and the corresponding acquisition time of the action signal may refer to the issuance time of the control signal when the contact of the on-off device is disconnected for the M-1th time and the corresponding acquisition time of the action signal; or the issuance time of the control signal and the corresponding acquisition time of the action signal when the contact of the on-off device is disconnected for the M-1th time, M-2...Mn times.

[0087] In the above embodiment, the processor monitors the closing or opening action of the contacts of the on-off device, and adjusts the sending time of the control signal for controlling the opening of the on-off device by real-time monitoring the action time of the on-off device, so as to avoid the ignition problem caused by the closing or opening deviating from the original zero position due to the aging of the on-off device, and effectively prevent the contacts of the on-off device from sticking; the processor determines the action time of the opening of the contacts of the on-off device according to the sending time of the control signal for controlling the opening of the contacts of the on-off device and the acquisition time of the action signal for the opening of the contacts of the on-off device. By recording and analyzing the sending time of the control signal and the acquisition time of the action signal, the mechanical action time of the on-off device throughout its life cycle can be monitored to ensure that the action is completed at the zero point throughout its life cycle, thereby better extending the life of the on-off device.

[0088] In order to have a more comprehensive understanding of the zero-crossing control method provided in the embodiment of the present application, please refer to Figure 6, taking the electronic device as a switch as an example, an optional specific embodiment of the zero-crossing control method is described. The switch includes a zero point detection circuit, a switching device, a processor, a voltage detection circuit and a current detection circuit, wherein the processor is an MCU and the switching device is a relay.

[0089] S11, the zero point detection circuit detects the time point of the alternating current at zero point, and sends the time point of the current at zero point to the processor, so that the processor can obtain the time point of the periodic voltage zero point, which is recorded as t0;

[0090] S12, the processor sends a first control signal for controlling the contact closure of the on-off device, the sending time of the first control signal is recorded as t1, the action signal of the contact closure of the on-off device is monitored by the voltage detection circuit, the time point of obtaining the action signal is recorded as t2, and the mechanical action time t3 of the contact closure of the on-off device can be obtained by calculating t2-t1; wherein, the processor can send the first control signal for controlling the contact closure of the on-off device within the time period from t0 to t3, which can ensure that the on-off device is attracted at zero voltage;

[0091] S13, the processor sends a second control signal for controlling the disconnection of the contacts of the on-off device, and the time of sending the second control signal is recorded as t4. The action signal of the disconnection of the contacts of the on-off device is monitored by the voltage detection circuit, and the time point of obtaining the action signal is recorded as t5. By calculating t5-t4, the mechanical action time t6 of the disconnection of the contacts of the on-off device can be obtained; wherein, the processor can send the second control signal for controlling the disconnection of the contacts of the on-off device in the time period from t0 to t6, which can ensure that the on-off device is disconnected at zero voltage;

[0092] S14, after the processor controls the contacts of the on-off device to close, the waveform characteristics of the load current are obtained through the current detection circuit, and it is determined whether there is a continuous current zero point;

[0093] If the judgment result of S14 is yes, execute S15; if the judgment result of S14 is no, execute S20;

[0094] S15, when it is determined that there is a continuous current zero point, judging whether there is a continuous current zero point coincident with a voltage zero point according to the time points of the continuous current zero point and the voltage zero point;

[0095] If the judgment result of S14 is yes, execute S16; if the judgment result of S15 is no, execute S20;

[0096] S16, when it is determined that there is a continuous coincidence between the current zero point and the voltage zero point, the on-off device is controlled to be disconnected at the voltage zero point based on the time point of the voltage zero point.

[0097] S20, controlling the on-off device to be turned off based on the time point of the current zero point.

[0098] In the above embodiment, after detecting that the contacts of the on-off device are closed, the current detection circuit will send the detected current signal to the processor, which will analyze the current signal to determine whether there is a continuous coincidence between the current zero point and the voltage zero point. When it is determined that there is a continuous coincidence between the current zero point and the voltage zero point, the voltage zero point is used for disconnection. At this time, it is also the current zero point, so that the risk of ignition of the spring contact of the on-off device in this case can be reduced, the life of the on-off device is extended, and the service life of the switch is correspondingly extended.

[0099] On the other hand, please refer to Figure 7 , an overcurrent disconnecting device is provided. In an exemplary embodiment, the zero-crossing control device can be implemented by a processor, and the zero-crossing control device includes a first acquisition module 211, which is used to obtain the time point of the zero-crossing point; a second acquisition module 212, which is used to obtain the current signal of the load current when the action signal of the contact of the on-off device is detected; a judgment module 213, which is used to judge whether there is a continuous current zero point according to the current signal; when it is determined that there is a continuous current zero point, according to the continuous current zero point and the time of the zero-crossing point, whether the continuous current zero point coincides with the voltage zero point; a zero-crossing control module 214, which is used to control the on-off device to disconnect at the voltage zero point based on the time point of the voltage zero point when it is determined that the continuous current zero point coincides with the voltage zero point.

[0100] The zero-crossing control module 214 is also used to determine the time point corresponding to the voltage near zero point within the duration range of the continuous current zero point when it is determined that there is a continuous current zero point and the frequency of occurrence of the continuous current zero point is different from the multiple of the current mains frequency; and control the on-off device to disconnect at the voltage near zero point based on the time point of the voltage near zero point.

[0101] The zero-crossing control module 214 is further configured to control the on-off device to be disconnected at the current zero point based on the time point of the current zero point when it is determined that the continuous current zero point does not coincide with the voltage zero point.

[0102] The zero-crossing control module 214 is also used to send a disconnection control signal to the on-off device; obtain an action signal for disconnecting the contacts of the on-off device after the disconnection control signal is sent; determine the action time required for disconnection of the contacts of the on-off device according to the historical sending time of the control signal when the contacts of the on-off device are disconnected and the corresponding acquisition time of the action signal; take the time point of the voltage zero point as the starting point, and send a control signal for controlling the disconnection of the contacts of the on-off device within the action time required for the disconnection of the contacts of the on-off device, so as to control the disconnection of the contacts of the on-off device at the voltage zero point.

[0103] It should be noted that: the zero-crossing control device provided in the above embodiment monitors and iteratively updates the mechanical action time of the on-off device to close and open in the full life range, so that it is closed and opened at zero point throughout its full life cycle. Only the division of the above program modules is used as an example. In practical applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device can be divided into different program modules to complete all or part of the processing described above. In addition, the zero-crossing control device provided in the above embodiment belongs to the same concept as the zero-crossing control method embodiment of the present application. The specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0104] Another aspect of the present application provides an electronic device, see Figure 8 , is an optional hardware structure diagram of an electronic device provided in an embodiment of the present application, wherein the electronic device includes a memory 21 and a processor 22, and the memory 21 stores a computer program for implementing the zero-crossing control method provided in any embodiment of the present application, and can achieve the same technical effect. To avoid repetition, it will not be described here.

[0105] The electronic device may be an electronic product such as a smart switch or a smart socket, which is used to control the on / off of the circuit in which it is located.

[0106] See also Fig. 9 , is a hardware structure block diagram of an electronic device provided in an embodiment of the present application. Fig. 9As shown, the electronic device is a switch 64. The switch 64 may have relatively large differences due to different configurations or performances, and may include one or more processors 64a (Processing Units, CPU) (the processor 64a may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 64b for storing data 1400, one or more storage media 1600 (such as one or more mass storage devices) for storing application programs 1500 or data 1400, a relay J, and a mechanical switch K. The processor 64a is connected to the relay J, the mechanical switch K, the memory 64b, and the storage medium 1600 respectively; the memory 64b and the storage medium 1600 may be short-term storage or permanent storage. The program stored in the storage medium 1600 may include one or more modules, each of which may include a series of instruction operations on the server. Furthermore, the processor 64a may be configured to communicate with the storage medium 1600 and execute a series of instruction operations in the storage medium 1600 on the switch 14.

[0107] When the mechanical switch K is pressed, the processor 64a will receive a signal instruction of being pressed. The relay J is a controlled switch connected to the control end of the processor 64a. The processor 64a can control the opening and closing of the relay J through the control end output control signal. The relay J is connected in the main circuit, and the main circuit is connected to the power supply and the controlled device. The power supply can be 220V AC.

[0108] The switch 64 may also include one or more built-in power supplies 1000, one or more wired or wireless network interfaces 1100, one or more input and output interfaces 1200, and / or one or more operating systems 1300, such as WindowsserverTM, MacOSXTM, UnixTM, LinuxTM, FreeBSDTM, etc.

[0109] The input / output interface 1200 may be used to receive or send data 1400 via a network. The specific example of the network may include a wireless network provided by a communication provider of the switch 64. In one example, the input / output interface 1200 includes a network adapter (NetworInterfaceController, NIC), which may be connected to other network devices via a base station so as to communicate with the Internet. In one example, the input / output interface 1200 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly. It will be understood by those skilled in the art that Fig. 9 The structure shown is only for illustration and does not limit the structure of the switch 64. For example, the switch 64 may also include Fig. 9 More or fewer components as shown, or with Fig. 9 Different configurations are shown.

[0110] The embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the above-mentioned working mode configuration method and switch control method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. Among them, the computer-readable storage medium, such as read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk, etc.

[0111] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0112] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0113] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A zero-crossing control method, characterized in that: include: Obtaining a time point of a zero-crossing point; wherein the zero point includes a voltage zero point; When an action signal of a contact closure of the on-off device is detected, a current signal of the load current is obtained; According to the current signal, determining whether there is a continuous current zero point, and whether the continuous current zero point lasts for a certain time and whether the duration exceeds a preset time threshold; In the case where it is determined that there is a continuous current zero point, judging whether the continuous current zero point coincides with the voltage zero point according to the time period corresponding to the continuous current zero point and the time of the voltage zero point; When it is determined that the continuous current zero point coincides with the voltage zero point, the switching device is controlled to be disconnected at the voltage zero point based on the time point of the voltage zero point.

2. The zero-crossing control method according to claim 1, characterized in that: Also includes: When it is determined that there is a continuous current zero point and the occurrence frequency of the continuous current zero point is different from the multiple of the current mains frequency, determine the time point corresponding to the voltage near zero point within the duration range of the continuous current zero point; Based on the time point when the voltage is close to zero, the on-off device is controlled to be disconnected at the voltage close to zero.

3. The zero-crossing control method according to claim 1, characterized in that: Also includes: When it is determined that the continuous current zero point does not coincide with the voltage zero point, the switching device is controlled to be disconnected at the current zero point based on the time point of the current zero point.

4. The zero-crossing control method according to any one of claims 1 to 3, characterized in that: The controlling the on-off device to disconnect at the voltage zero point based on the time point of the voltage zero point comprises: Sending a disconnect control signal to the on-off device; After obtaining the disconnection control signal, the contact of the on-off device is disconnected; Determine the action time required for the contact of the on-off device to be disconnected according to the historical time when the control signal is issued and the corresponding time when the action signal is obtained when the contact of the on-off device is disconnected; Taking the time point of the voltage zero point as the starting point, a control signal for controlling the contact opening of the on-off device is issued within the action time required for the contact opening of the on-off device, so as to control the contact of the on-off device to open at the voltage zero point.

5. An electronic device, characterized in that: The invention comprises a zero point detection circuit, a processor, a switch device, a voltage detection circuit and a current detection circuit, wherein the zero point detection circuit is used to detect the time of a zero point and send the time of the zero point to the processor; wherein the zero point includes a voltage zero point; the processor sends a control signal for controlling the contact closure of the switch device, and detects the action signal of the contact closure of the switch device through the voltage detection circuit; when the voltage detection circuit detects the action signal of the contact closure of the corresponding switch device, the action signal of the contact closure of the switch device is sent to the processor; the current detection circuit is used to detect the load current after the contact of the switch device is closed and send it to the processor; after the contact of the switch device is closed, the processor obtains the current signal of the load current, and judges whether there is a continuous current zero point according to the current signal; whether the continuous current zero point lasts for a certain time and whether the duration exceeds a preset time threshold; when it is determined according to the current signal and the time point of the zero point that there is a continuous current zero point and the continuous current zero point coincides with the voltage zero point, the switch device is controlled to be disconnected at the voltage zero point based on the time point of the voltage zero point.

6. The electronic device according to claim 5, characterized in that: When determining that there is a continuous current zero point and the frequency of occurrence of the continuous current zero point is different from a multiple of the current mains frequency, the processor determines the voltage near zero point within the continuous time range of the continuous current zero point, and controls the on-off device to disconnect at the voltage near zero point based on the time point of the voltage near zero point.

7. The electronic device according to claim 5, characterized in that: When determining that the continuous current zero point does not coincide with the voltage zero point, the processor controls the on-off device to disconnect at the current zero point based on the time point of the current zero point.

8. The electronic device according to claim 7, characterized in that: The processor determines the action time required for the contact closure of the on-off device based on the historical time of issuing the control signal for the contact closure of the on-off device and the corresponding time of obtaining the action signal for the contact closure of the on-off device, takes the current time point of the current zero point as the starting point, and issues a control signal for controlling the contact closure of the on-off device within the action time required for the contact closure of the on-off device, so as to control the on-off device to disconnect at the current zero point.

9. The electronic device according to any one of claims 5 to 8, characterized in that: The processor sends a disconnection control signal to the on-off device, and detects an action signal of disconnection of the contacts of the on-off device through the voltage detection circuit of the on-off device; When the voltage detection circuit of the switch device detects the action signal of the contact of the corresponding switch device being disconnected, the action signal of the contact of the switch device being disconnected is sent to the processor; The processor determines the action time required for the contacts of the on-off device to be disconnected based on the historical time of issuing the control signal for disconnecting the contacts of the on-off device and the time of acquiring the corresponding action signal, takes the time point of the voltage zero point as the starting point, and issues a control signal for controlling the on-off device to be disconnected within the action time required for the contacts of the on-off device to be disconnected, so as to control the on-off device to be disconnected at the voltage zero point.

10. An electronic device comprising a memory for storing a computer program and a processor, characterized in that: When the processor runs the computer program, the zero-crossing control method according to any one of claims 1 to 4 is executed.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program codes, and when the computer program codes are loaded and executed by a processor, the zero-crossing control method according to any one of claims 1 to 4 is implemented.