Detection method, control device, distribution box and storage medium
By detecting real -time input AC voltage and analog input AC voltage in the distribution box, the problem of insufficient power distribution box switching speed between the power distribution box is solved, and a faster power switching is achieved.
Patent Information
- Application Number
- CN202411417028.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-09
- Publication Date
- 2025-01-21
AI Technical Summary
When the distribution box switches energy storage power supply and urban power supply, the switching speed cannot meet the design needs, mainly due to the X-capacitance interference between the neutral and live wires in the prior art, the detection time is too long.
A detection method is adopted to obtain the real-time input AC voltage and zero-point AC phase of the distribution box within a mains cycle, obtain the analog input AC voltage based on the zero-point AC phase, and determine when the AC voltage difference is less than or equal to the preset threshold. The real-time input AC voltage is normal.
Reduce the interference of X capacitors between the neutral line and the line of fire, improve the switching speed, and complete the power switching within a time of no more than 20 milliseconds.
Smart Images

Figure CN119335243A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of distribution boxes, and more specifically, to a detection method, a first control device, a second control device, a distribution box, and a non-volatile computer-readable storage medium. Background Art
[0002] Currently, users can use portable distribution boxes to connect portable energy storage power supplies and mains power supplies to provide uninterrupted power supply for user loads. Usually, the operation of switching between the AC power provided by the portable energy storage power supply and the AC power provided by the mains power supply does not exceed a certain value (such as 20 milliseconds). However, the standard switching action of a general relay or circuit breaker will take a certain amount of time. Therefore, the detection time for whether to switch the power supply cannot be too long, otherwise it will affect the switching speed and fail to meet the design requirements. Summary of the invention
[0003] The embodiments of the present application provide a detection method, a first control device, a second control device, a distribution box and a non-volatile computer-readable storage medium to solve the problem that the switching speed of the distribution box cannot meet the design requirements when switching between energy storage power supply and AC power supply.
[0004] The detection method of the embodiment of the present application is used for a distribution box, and the detection method includes obtaining the real-time input AC voltage and zero-point AC phase of the distribution box within a mains power cycle; obtaining the simulated input AC voltage of the distribution box within the mains power cycle according to the zero-point AC phase; determining that the real-time input AC voltage is normal when the AC voltage difference between the simulated input AC voltage and the real-time input AC voltage is less than or equal to a preset threshold; and determining that the real-time input AC voltage is abnormal when the AC voltage difference between the simulated input AC voltage and the real-time input AC voltage is greater than the preset threshold.
[0005] In this way, by detecting the AC voltage difference between the real-time input AC voltage and the simulated input AC voltage within a mains power cycle to determine whether the real-time input AC voltage of the distribution box is normal, the interference of the X capacitor set between the neutral line and the live line in the prior art can be reduced, thereby improving the switching speed to a certain extent.
[0006] In certain embodiments, the distribution box includes a load interface, a first interface, a second interface, a switching switch, an isolation operational amplifier circuit, and a control unit. The switching switch is used to switch the connection between the load interface and the first interface and the second interface. The isolation operational amplifier circuit is arranged between the load interface and the switching switch and is electrically connected to the control unit. Obtaining the real-time input AC voltage of the distribution box includes controlling the control unit to collect the input AC voltage converted by the isolation operational amplifier circuit to obtain the real-time input AC voltage.
[0007] In this way, by arranging an isolation operational amplifier circuit in the distribution box, the input AC voltage can be collected by the control unit after being converted by the isolation operational amplifier circuit, so that the control unit can obtain the real-time input AC voltage.
[0008] In some embodiments, the distribution box includes a first metering circuit, a second metering circuit and a third metering circuit, the first metering circuit is electrically connected to the first interface, the control unit and the switching switch, the second metering circuit is electrically connected to the second interface, the control unit and the switching switch, and the third metering circuit is electrically connected to the load interface, the control unit and the switching switch, and the real-time input AC voltage and zero AC phase of the distribution box are obtained within a mains power cycle, including controlling the control unit to obtain the real-time input AC voltage and the zero AC phase of the first interface collected by the first metering circuit within the mains power cycle, the real-time input AC voltage and the zero AC phase of the second interface collected by the second metering circuit, and the real-time input AC voltage and the zero AC phase of the load interface collected by the third metering circuit.
[0009] In this way, by connecting the metering circuit at the first interface, the second interface and the load interface, the control unit can determine whether the first interface or the second interface is powered, so as to determine in advance whether power-off detection is required.
[0010] In some embodiments, obtaining the simulated input AC voltage of the distribution box within the mains cycle based on the zero-point AC phase includes inputting the real-time input AC voltage collected by the metering circuit and the zero-point AC phase into the AC power calculation formula to determine the simulated input AC voltage.
[0011] In this way, the collected real-time input AC power is transmitted to the control unit through the metering circuit, so that the control unit can obtain a simulated input AC voltage to be compared with the real-time input AC voltage according to the AC calculation formula, and then determine whether the real-time input AC voltage is abnormal.
[0012] In some embodiments, the third metering circuit includes a phase sampling module, the distribution box includes an isolation optocoupler, the isolation optocoupler is electrically connected to the control unit and the phase sampling module, the phase sampling module is electrically connected to the load interface, and the real-time input AC voltage and zero-point AC phase of the distribution box are obtained within a mains power cycle, including controlling the phase sampling module to collect the zero-point AC phase of the real-time input AC voltage within the mains power cycle; the detection method also includes controlling the isolation optocoupler to generate an interrupt signal to the control unit according to the zero-point AC phase; and controlling the control unit to calculate the AC voltage difference between the real-time input AC voltage and the simulated input AC voltage according to the interrupt signal.
[0013] In this way, by setting up the phase sampling module, the zero-point phase of the real-time input AC voltage can be accurately collected, and an interrupt signal is generated to the control unit according to the zero-point AC phase through the isolation optocoupler, so that the control unit can align the analog input AC voltage with the zero starting point of the real-time input AC voltage, and achieve real-time verification of the zero-point AC phase when the AC voltage phase changes, ensuring that the voltage waveform of each mains cycle starts from the AC voltage zero point.
[0014] In certain embodiments, when the AC voltage difference between the simulated input AC voltage and the real-time input AC voltage is greater than the preset threshold, the real-time input AC voltage is determined to be abnormal, including determining that the real-time input AC voltage is abnormal after the AC voltage difference between the simulated input AC voltage and the real-time input AC voltage is greater than the preset threshold for a preset period of time.
[0015] In this way, by setting the AC voltage difference to be greater than the preset threshold within the preset time period, the real-time input AC voltage abnormality can be determined, thereby avoiding erroneous judgments caused by errors and improving the accuracy of judging the real-time input AC voltage abnormality.
[0016] The first control device of the embodiment of the present application is used for a distribution box. The first control device includes a first acquisition module, a second acquisition module, a first determination module and a second determination module. The first acquisition module is used to acquire the real-time input AC voltage and zero-point AC phase of the distribution box within a city power cycle; the second acquisition module is used to acquire the simulated input AC voltage of the distribution box within the city power cycle according to the zero-point AC phase; the first determination module is used to determine that the real-time input AC voltage is normal when the AC voltage difference between the simulated input AC voltage and the real-time input AC voltage is less than or equal to a preset threshold; the second determination module is used to determine that the real-time input AC voltage is abnormal when the AC voltage difference between the simulated input AC voltage and the real-time input AC voltage is greater than the preset threshold.
[0017] The second control device of the embodiment of the present application includes a processor, a memory; and a computer program, wherein the computer program is stored in the memory and executed by the processor, and the computer program includes instructions for executing the detection method described in any one of the above embodiments.
[0018] The distribution box of the embodiment of the present application includes the first control device or the second control device described in any one of the above embodiments.
[0019] The computer-readable storage medium of the embodiment of the present application includes a computer program. When the computer program is executed by a processor, the processor executes the detection method described in any one of the above embodiments.
[0020] Additional aspects and advantages of the embodiments of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the embodiments of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0022] Figure 1 It is a scene schematic diagram of the detection method of certain embodiments of the present application;
[0023] Figure 2 It is a schematic diagram of the structure of a distribution box of certain embodiments of the present application;
[0024] Figures 3 to 6 is a schematic diagram of a detection method according to certain embodiments of the present application;
[0025] Figure 7 It is a schematic diagram of the structure of a distribution box of certain embodiments of the present application;
[0026] Figures 8 to 9 is a schematic diagram of a detection method according to certain embodiments of the present application;
[0027] Fig.10 It is a scene schematic diagram of the detection method of certain embodiments of the present application;
[0028] Fig.11 is a schematic diagram of a module of a first control device in certain embodiments of the present application;
[0029] Fig.12 is a schematic diagram of the structure of a second control device in certain embodiments of the present application;
[0030] Fig.13It is a schematic diagram of the connection status of a non-volatile computer-readable storage medium and a processor in certain embodiments of the present application.
[0031] Description of Figure Numbers:
[0032] 100. Distribution box; 10. First control device; 11. First acquisition module; 12. Second acquisition module; 13. First determination module; 14. Second determination module; 15. Control module; 16. Calculation module; 20. Second control device; 21. Processor; 22. Memory; 221. Computer program; 30. Load interface; 40. First interface; 50. Second interface; 60. Switch; 72. Isolation amplifier circuit; 74. Isolation optocoupler; 80. Control unit; 92. First metering circuit; 94. Second metering circuit; 96. Third metering circuit; 961. Phase sampling module; 200. Non-volatile computer-readable storage medium. DETAILED DESCRIPTION
[0033] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals represent the same or similar elements or elements having the same or similar functions from beginning to end. The embodiments described below with reference to the accompanying drawings are optional and are only used to explain the embodiments of the present application, and cannot be understood as limiting the embodiments of the present application.
[0034] Currently, if Figure 1 As shown, when the user switches between the AC power provided by the portable energy storage power supply and the AC power provided by the mains, the user needs to use a distribution box for operation, and the AC power switching time must not exceed 20 milliseconds. However, the standard switching action time of a general relay or circuit breaker is about 15 milliseconds. Therefore, the detection time for AC power failure needs to be controlled within 5 milliseconds.
[0035] In the related art, the AC power failure detection method includes one method of triggering the signal according to the isolated pulse or level signal to perform power failure detection, and the other method is to convert the AC voltage into an isolated analog voltage according to the ratio for sampling and judgment to perform power failure detection. However, both methods of detecting AC power are affected by the X capacitance of the neutral line and the live line, resulting in a power failure detection time of more than 10 milliseconds, which cannot meet the design requirements, and thus cannot quickly detect whether the AC power is off.
[0036] In order to solve the above technical problems, an embodiment of the present application provides a detection method.
[0037] See also Figure 2 and Figure 3 The embodiment of the present application provides a detection method, which is used for a distribution box 100, and the detection method includes:
[0038] Step 011: obtaining the real-time input AC voltage and zero-point AC phase of the distribution box 100 within a city power cycle;
[0039] Step 012: Acquire the simulated input AC voltage of the distribution box 100 within the mains power cycle according to the zero-point AC phase;
[0040] Step 013: when the AC voltage difference between the simulated input AC voltage and the real-time input AC voltage is less than or equal to a preset threshold, determining that the real-time input AC voltage is normal;
[0041] Step 014: When the AC voltage difference between the simulated input AC voltage and the real-time input AC voltage is greater than a preset threshold, it is determined that the real-time input AC voltage is abnormal.
[0042] In this way, by detecting the AC voltage difference between the real-time input AC voltage and the simulated input AC voltage within a mains power cycle to determine whether the real-time input AC voltage of the distribution box 100 is normal, the interference of the X capacitor set between the neutral line and the live line in the prior art can be reduced, thereby improving the switching speed to a certain extent.
[0043] The distribution box 100 is a device for centralized protection, connection, control and distribution of electric power, and can be used for power distribution and control of electrical equipment in the power system. For example, the distribution box 100 can be connected to the main power supply, branch power supply, backup power supply and electrical load, and the main power supply, branch power supply or backup power supply can provide electric energy to the electrical load respectively. When one of the main power supply, branch power supply or backup power supply connected to the load is out of power, the distribution box 100 can switch to another power supply to complete the normal transmission and distribution of electric energy, and provide stable and safe electric energy for the connected equipment and power terminals.
[0044] The distribution box 100 includes a second control device 20, such as Fig.12 As shown, the second control device 20 includes a processor 21 and a memory 22. The processor 21 may be a microcontroller unit 80 (MCU), the memory 22 may store a computer program 221 including instructions for executing the detection method, and the processor 21 may execute the computer program 221 including instructions for executing the detection method.
[0045] Specifically, before the distribution box 100 switches the power supply, it is necessary to detect whether the load has a power failure and whether the real-time input AC voltage in the distribution box 100 is normal. Therefore, within a mains power cycle, the processor 21 can obtain the real-time input AC voltage and zero-point AC phase of the distribution box 100. The mains power cycle refers to the time required for the alternating current to complete a periodic change. For example, the frequency of the mains power supply is 50 Hz, which means 50 changes per second, and the mains power cycle is 0.02 seconds.
[0046] Zero-point AC phase is the changing state of sinusoidal AC at the beginning of timing, also known as the initial phase, which can reflect the starting point of AC alternation and is related to the selection of the starting point of time. Zero-point AC phase indicates the position of sinusoidal AC at a specific moment, that is, a specific point in the sine wave waveform cycle, and can determine the instantaneous value and direction of sinusoidal AC at a certain moment, as well as its changing trend.
[0047] After obtaining the zero-point AC phase, the processor 21 can simulate the simulated input AC voltage corresponding to the real-time input AC voltage in the same mains cycle according to the zero-point AC phase. The simulated input AC voltage is the theoretical value of the input AC voltage of the power supply input to the distribution box 100 that is not affected by environmental factors.
[0048] The processor 21 can calculate the AC voltage difference between the real-time input AC voltage and the simulated input AC voltage based on the obtained real-time input AC voltage and the simulated input AC voltage. The processor 21 compares the obtained AC voltage difference with a preset threshold value set in advance in the processor 21. Based on the size obtained by the comparison, it can be determined whether the real-time input AC voltage is normal, that is, whether the power supply connected to the load is normally supplying power to the load.
[0049] When the AC voltage difference between the simulated input AC voltage and the real-time input AC voltage is less than or equal to a preset threshold value (the preset threshold value may be 5 volts, 10 volts or 20 volts, etc., and the preset threshold value may be adjusted according to actual test conditions to prevent false triggering), that is, the actual input AC voltage is not much different from the calculated theoretical input AC voltage, the processor 21 can determine that the real-time input AC voltage is normal.
[0050] When the AC voltage difference between the simulated input AC voltage and the real-time input AC voltage is greater than a preset threshold, that is, the actual input AC voltage is significantly different from the calculated theoretical input AC voltage, the processor 21 can determine that the real-time input AC voltage is abnormal. At this time, the processor 21 can control the distribution box 100 to switch the power supply.
[0051] See also Figure 2 and Figure 4In some embodiments, the distribution box 100 includes a load interface 30, a first interface 40, a second interface 50, a switch 60, an isolation amplifier circuit 72 and a control unit 80, the switch 60 is used to switch the connection between the load interface 30 and the first interface 40 and the second interface 50, the isolation amplifier circuit 72 is arranged between the load interface 30 and the switch 60 and is electrically connected to the control unit 80, step 011: obtaining the real-time input AC voltage of the distribution box 100 includes:
[0052] Step 0111: The control unit 80 collects the input AC voltage converted by the isolation amplifier circuit 72 to obtain the real-time input AC voltage.
[0053] In this way, by providing an isolation amplifier circuit 72 in the distribution box 100, the input AC voltage can be collected by the control unit 80 after being converted by the isolation amplifier circuit 72, so that the control unit 80 can obtain the real-time input AC voltage.
[0054] Specifically, the distribution box 100 includes a load interface 30, a first interface 40, a second interface 50, a switch 60, an isolation amplifier circuit 72, and a control unit 80. The load interface 30 may be a terminal or jack for connecting a load device, so that the load interface 30 allows the load device to be connected to the distribution box 100 through a wire or cable, thereby receiving electric energy to work. The load interface 30 includes different forms such as a socket interface, a terminal block, and a bus duct according to different load devices and wiring requirements.
[0055] The first interface 40 and the second interface 50 can be power interfaces of the distribution box 100, and the first interface 40 and the second interface 50 can be components such as wiring terminals, jacks or bus bars for connecting external power lines. For example, the first interface 40 can be connected to a mains power supply, and the second interface 50 can be connected to a portable energy storage power supply. The interface types of the first interface 40 and the second interface 50 are various. For example, the first interface 40 and the second interface 50 include a plug-in interface, a bolt-fixed interface, a busbar interface, etc. The plug-in interface is suitable for small current and low voltage occasions, the bolt-fixed interface is suitable for large current and high voltage occasions, and the busbar interface is usually used in large-capacity and high-reliability distribution systems.
[0056] The switch 60 may be a relay or a circuit breaker, and can switch among multiple power sources connected to the distribution box 100, and select one of the power sources that can provide power to the load. For example, the mains power source is connected to the first interface 40, and the portable energy storage power source is connected to the second interface 50. When the portable energy storage power source cannot supply power to the load, the switch 60 can switch the second interface 50 to the connection between the first interface 40 and the load, so that the mains power source supplies power to the load.
[0057] The isolation amplifier circuit 72 is a special measurement amplifier circuit, which is used to condition, isolate and convert various signals into standard signals acceptable to the control unit 80 or special signals specified by the user. For example, the isolation amplifier circuit 72 can convert the real-time input AC voltage into a voltage signal within the sampling range of the control unit 80, so that the control unit 80 can perform normal sampling. And it can avoid the interference of the loop current to ensure the accuracy of the signal. Among them, the isolation amplifier circuit 72 is electrically insulated from the input circuit and the output circuit, and there is no direct electrical coupling, that is, the signal has no common ground terminal during the transmission process, so that the isolation amplifier circuit 72 can transmit signals with high impedance and high common mode suppression capability in a noisy environment.
[0058] The control unit 80 may be a processor 21, such as a microcontroller unit 80 (MCU), which may process various collected data, and control and execute instructions. The control unit 80 may collect the input AC voltage converted by the isolation amplifier circuit 72, thereby obtaining the real-time input AC voltage of the distribution box 100.
[0059] In one embodiment, the control unit 80 may include a second control device 20 .
[0060] In one implementation, the control unit 80 may be communicatively connected with the second control device 20 , and the second control device 20 may implement corresponding steps by controlling the control unit 80 .
[0061] See also Figure 2 and Figure 5 In some embodiments, the distribution box 100 includes a first metering circuit 92, a second metering circuit 94, and a third metering circuit 96, the first metering circuit 92 is electrically connected to the first interface 40, the control unit 80, and the switch 60, the second metering circuit 94 is electrically connected to the second interface 50, the control unit 80, and the switch 60, and the third metering circuit 96 is electrically connected to the load interface 30, the control unit 80, and the switch 60, step 011: within a city power cycle, obtaining the real-time input AC voltage and zero-point AC phase of the distribution box 100, including:
[0062] Step 0112: The control unit 80 obtains the real-time input AC voltage and zero AC phase of the first interface 40 collected by the first metering circuit 92 during the mains power cycle, the real-time input AC voltage and zero AC phase of the second interface 50 collected by the second metering circuit 94, and the real-time input AC voltage and zero AC phase of the load interface 30 collected by the third metering circuit 96.
[0063] In this way, by connecting the metering circuit at the first interface 40, the second interface 50 and the load interface 30, the control unit 80 can determine whether the first interface 40 or the second interface 50 is powered, so as to determine in advance whether power-off detection is required.
[0064] Specifically, the distribution box 100 includes a first metering circuit 92, a second metering circuit 94 and a third metering circuit 96. The metering circuit can be called a conversion circuit or a signal conditioning circuit, and its main function is to further process and convert the collected electrical signal, including linearization functions such as amplification processing and filtering control, so as to obtain better sensor quality and characteristics. The types of the first metering circuit 92, the second metering circuit 94 and the third metering circuit 96 need to be confirmed according to the types of components connected thereto.
[0065] For example, the first metering circuit 92, the second metering circuit 94 and the third metering circuit 96 include a bridge circuit, an impedance conversion circuit, an oscillation circuit, etc. The first metering circuit 92, the second metering circuit 94 and the third metering circuit 96 are electrically connected to the first interface 40, the second interface 50, the load interface 30 and the control unit 80, respectively. For example, the first metering circuit 92 can be connected to the first interface 40 and the control unit 80, and can collect the AC voltage, current and isolation phase at the first interface 40; the second metering circuit 94 can be connected to the second interface 50 and the control unit 80, and can collect the AC voltage, current and isolation phase at the second interface 50; the third metering circuit 96 can be connected to the load interface 30 and the control unit 80, and can collect the AC voltage, current and isolation phase at the load interface 30. Thus, the processor 21 can determine the power supply at the first interface 40 connected to the load or the power supply at the second interface 50 according to the AC voltage and AC current collected by the first metering circuit 92, the second metering circuit 94 and the third metering circuit 96.
[0066] See also Figure 6 In some embodiments, step 012: obtaining the simulated input AC voltage of the distribution box 100 within the mains cycle according to the zero-point AC phase, includes:
[0067] Step 0121: input the real-time input AC voltage and zero-point AC phase collected by the third metering circuit 96 into the AC calculation formula to determine the simulated input AC voltage.
[0068] In this way, the collected real-time input AC power is transmitted to the control unit 80 through the third metering circuit 96, so that the control unit 80 can obtain a simulated input AC voltage to be compared with the real-time input AC voltage according to the AC power calculation formula, and then determine whether the real-time input AC voltage is abnormal.
[0069] Specifically, after the control unit 80 obtains the real-time input AC voltage collected by the third metering circuit 96, the simulated input AC voltage can be determined according to the zero-point AC phase collected by the isolation amplifier circuit 72 and the AC calculation formula pre-input into the control unit 80. The simulated input AC voltage is a theoretical value of the AC power supply or the portable energy storage power supply supplying power to the load that is not affected by environmental factors.
[0070] For example, the AC calculation formula can be V=Vm*sin(ωt+φ). Among them, t represents time in seconds; v(t) represents the voltage at time t in volts; Vm represents the peak value of the voltage, that is, the amplitude, in volts; ω represents the angular frequency in radians / second, and its relationship with the frequency f is ω=2πfω=2πf; φ represents the phase angle, which represents the phase difference of the voltage relative to the reference point in radians. Vm, ω and φ of the AC calculation formula can be determined based on the zero-point AC phase and multiple real-time input AC voltages, and then the analog input AC voltage can be determined.
[0071] See also Figure 2 , Figure 7 and Figure 8 In some embodiments, the third metering circuit 96 includes a phase sampling module 961, the distribution box 100 includes an isolation optocoupler 74, the isolation optocoupler 74 is electrically connected to the control unit 80 and the phase sampling module 961, and the phase sampling module 961 is electrically connected to the load interface 30. Step 011: within a mains power cycle, obtaining the real-time input AC voltage and zero-point AC phase of the distribution box 100, including:
[0072] Step 0113: Control the phase sampling module 961 to collect the zero-point AC phase of the real-time input AC voltage within the mains cycle;
[0073] Testing methods also include:
[0074] Step 015: According to the zero-point AC phase, control the isolation optical coupler 74 to generate an interrupt signal to the control unit 80;
[0075] Step 016: According to the interrupt signal, the control unit 80 calculates the AC voltage difference between the real-time input AC voltage and the simulated input AC voltage.
[0076] In this way, by setting the phase sampling module 961, the zero-point phase of the real-time input AC voltage can be accurately collected, and an interrupt signal is generated to the control unit 80 according to the zero-point AC phase through the isolation optocoupler 74, so that the control unit 80 can align the analog input AC voltage with the zero starting point of the real-time input AC voltage, so as to achieve real-time verification of the zero-point AC phase when the AC voltage phase changes, ensuring that the voltage waveform of each mains power cycle starts from the AC voltage zero point.
[0077] Specifically, the third metering circuit 96 includes a phase sampling module 961, and the distribution box 100 includes an isolation optocoupler 74. Among them, the phase sampling module 961 can be a phase sampling chip, and the phase sampling module 961 can be electrically connected to the load interface 30, so that the phase sampling module 961 can accurately collect the zero-point AC phase of the input AC voltage flowing into the load. The isolation optocoupler 74 is also called photoelectric isolation, photoelectric coupler, etc., which uses photoelectric conversion devices (such as light-emitting diodes and photosensitive transistors) to physically isolate input signals and output signals, and make them non-interfering with each other. Among them, one end of the isolation optocoupler 74 can be connected to the control unit 80, and the other end of the isolation optocoupler 74 can be connected to the phase sampling module 961, so that the zero-point AC phase collected by the phase sampling module 961 can be transmitted to the isolation optocoupler 74, and the isolation optocoupler 74 can generate an interrupt signal according to the zero-point AC phase and transmit it to the control unit 80.
[0078] After receiving the interrupt signal, the control unit 80 can align the zeroing starting points of the real-time input AC voltage and the simulated input AC voltage. Then the control unit 80 can calculate the AC voltage difference between the real-time input AC voltage and the simulated input AC voltage in the same time period.
[0079] See also Fig. 9 and Fig.10 In some embodiments, step 014: when the AC voltage difference between the simulated input AC voltage and the real-time input AC voltage is greater than a preset threshold, determining that the real-time input AC voltage is abnormal includes:
[0080] Step 0141: After the AC voltage difference between the simulated input AC voltage and the real-time input AC voltage is greater than the preset threshold for a preset period of time, it is determined that the real-time input AC voltage is abnormal.
[0081] In this way, by setting the AC voltage difference to be greater than the preset threshold within the preset time period, the real-time input AC voltage abnormality can be determined, thereby avoiding erroneous judgments caused by errors and improving the accuracy of judging the real-time input AC voltage abnormality.
[0082] Specifically, when the control unit 80 samples the zero-point AC phase of the input AC voltage, the real-time input AC voltage and the simulated input AC voltage are compared in real time. Since the zero-point AC phase of each mains cycle is in an aligned state, it is possible to prevent the phase shift of the input AC voltage from causing false triggering of the comparison between the real-time input AC voltage and the simulated input AC voltage, thereby being able to determine whether the trends of the two input AC voltages are synchronized (e.g. Fig.11When the processor 21 determines that the trends of the two input AC voltages are synchronized, and the AC voltage difference between the simulated input AC voltage and the real-time input AC voltage is greater than a preset threshold value within a preset time period, it is determined that the real-time input AC voltage is abnormal.
[0083] For example, the preset time period may be 2 milliseconds, 3 milliseconds or 4 milliseconds, etc., and the preset threshold may be 5 volts, 10 volts or 20 volts, etc. In this embodiment, a preset time period of 2 milliseconds and a preset threshold of 10 volts are used as an example. The processor 21 samples the real-time input AC voltage 10 times within 2 milliseconds. The control unit 80 compares the 10 real-time input AC voltage samples with the corresponding analog input AC voltage to obtain the AC voltage difference of the 10 times. When the voltage difference of the 10 times within 2 milliseconds is greater than 10 volts, the real-time input AC voltage is determined to be abnormal.
[0084] See also Fig.11 In order to better implement the detection method of the embodiment of the present application, the embodiment of the present application also provides a first control device 10. Among them, the first control device 10 is used for the distribution box 100, and the first control device 10 includes a first acquisition module 11, a second acquisition module 12, a first determination module 13 and a second determination module 14. The first acquisition module 11 is used to obtain the real-time input AC voltage and zero-point AC phase of the distribution box 100 within a city power cycle; the second acquisition module 12 is used to obtain the simulated input AC voltage of the distribution box 100 within the city power cycle according to the zero-point AC phase; the first determination module 13 is used to determine that the real-time input AC voltage is normal when the AC voltage difference between the simulated input AC voltage and the real-time input AC voltage is less than or equal to a preset threshold; the second determination module 14 is used to determine that the real-time input AC voltage is abnormal when the AC voltage difference between the simulated input AC voltage and the real-time input AC voltage is greater than a preset threshold.
[0085] The first acquisition module 11 is specifically used to control the control unit 80 to collect the input AC voltage converted by the isolation operational amplifier circuit 72 to obtain the real-time input AC voltage.
[0086] The first acquisition module 11 is specifically used to control the control unit 80 to obtain the real-time input AC voltage and zero AC phase of the first interface 40 collected by the first metering circuit 92 during the mains power cycle, the real-time input AC voltage and zero AC phase of the second interface 50 collected by the second metering circuit 94, and the real-time input AC voltage and zero AC phase of the load interface 30 collected by the third metering circuit 96.
[0087] The second acquisition module 12 is specifically used to input the real-time input AC voltage and zero-point AC phase collected by the third metering circuit 96 into the AC calculation formula to determine the simulated input AC voltage.
[0088] The first acquisition module 11 is specifically used to control the phase sampling module 961 to collect the zero-point AC phase of the real-time input AC voltage within the mains cycle;
[0089] In some embodiments, the first control device 10 further includes a control module 15 , and the control module 15 is used to control the isolation optical coupler 74 to generate an interrupt signal to the control unit 80 according to the zero-point AC phase.
[0090] In some embodiments, the first control device 10 further includes a calculation module 16, and the calculation module 16 is used to control the control unit 80 to calculate the AC voltage difference between the real-time input AC voltage and the simulated input AC voltage according to the interrupt signal.
[0091] The second determination module 14 is specifically configured to determine that the real-time input AC voltage is abnormal after the AC voltage difference between the simulated input AC voltage and the real-time input AC voltage is greater than a preset threshold for a preset period of time.
[0092] In some embodiments, the first control device 10 may be disposed in the distribution box 100 , so as to implement the functions of the first acquisition module 11 , the second acquisition module 12 , the first determination module 13 and the second determination module 14 in the distribution box 100 .
[0093] In one embodiment, the control unit may include a first control device.
[0094] In one implementation, the control unit may be communicatively connected to the first control device, and the first control device may implement corresponding steps by controlling the control unit.
[0095] In the above text, the first control device 10 is described from the perspective of a functional module in conjunction with the accompanying drawings. The functional module can be implemented in the form of hardware, can be implemented in the form of software instructions, or can be implemented in the form of a combination of hardware and software modules. Specifically, the steps of the method embodiment in the embodiment of the present invention can be completed by the hardware integrated logic circuit and / or software instructions in the processor 21, and the steps of the method disclosed in the embodiment of the present invention can be directly embodied as a hardware coding processor to execute, or can be executed by a combination of hardware and software modules in the coding processor. Optionally, the software module can be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 22, and the processor 21 reads the information in the memory 22, and completes the steps in the above method embodiment in conjunction with its hardware.
[0096] See also Fig.12The second control device 20 of the embodiment of the present application includes a processor 21, a memory 22 and a computer program 221, wherein the computer program 221 is stored in the memory 22 and executed by the processor 21, and the computer program 221 includes instructions for executing the detection method of any of the above-mentioned embodiments, which will not be repeated here for the sake of brevity.
[0097] See also Fig.13 The embodiment of the present application also provides a non-volatile computer-readable storage medium 200 including a computer program 221. When the computer program 221 is executed by the processor 21, the processor 21 executes the detection method of any one of the above-mentioned embodiments. For the sake of brevity, it will not be repeated here.
[0098] In the description of this specification, the descriptions with reference to the terms "certain embodiments", "in an example", "exemplarily", etc., mean that the specific features, structures, materials or characteristics described in conjunction with the embodiments or examples are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.
[0099] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0100] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are optional and cannot be understood as limitations to the present application. A person skilled in the art can change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A detection method for a distribution box, characterized in that: The detection method comprises: In a mains power cycle, obtaining the real-time input AC voltage and zero-point AC phase of the distribution box; Acquire the analog input AC voltage of the distribution box within the mains cycle according to the zero-point AC phase; When the AC voltage difference between the simulated input AC voltage and the real-time input AC voltage is less than or equal to a preset threshold, determining that the real-time input AC voltage is normal; When the AC voltage difference between the simulated input AC voltage and the real-time input AC voltage is greater than the preset threshold, it is determined that the real-time input AC voltage is abnormal.
2. The detection method according to claim 1, characterized in that: The distribution box includes a load interface, a first interface, a second interface, a switch, an isolation amplifier circuit and a control unit, wherein the switch is used to switch the connection between the load interface and the first interface and the second interface, and the isolation amplifier circuit is arranged between the load interface and the switch and is electrically connected to the control unit, and the real-time input AC voltage of the distribution box is obtained, including: The control unit is controlled to collect the input AC voltage converted by the isolation operational amplifier circuit to obtain the real-time input AC voltage.
3. The detection method according to claim 2, characterized in that: The distribution box includes a first metering circuit, a second metering circuit and a third metering circuit, the first metering circuit is electrically connected to the first interface, the control unit and the switching switch, the second metering circuit is electrically connected to the second interface, the control unit and the switching switch, and the third metering circuit is electrically connected to the load interface, the control unit and the switching switch, and the real-time input AC voltage and zero-point AC phase of the distribution box are obtained within a mains power cycle, including: The control unit is controlled to obtain the real-time input AC voltage and the zero AC phase of the first interface collected by the first metering circuit during the mains power cycle, the real-time input AC voltage and the zero AC phase of the second interface collected by the second metering circuit, and the real-time input AC voltage and the zero AC phase of the load interface collected by the third metering circuit.
4. The detection method according to claim 3, characterized in that: The step of obtaining the analog input AC voltage of the distribution box within the mains power cycle according to the zero-point AC phase comprises: The real-time input AC voltage and the zero-point AC phase collected by the third metering circuit are input into the AC power calculation formula to determine the simulated input AC voltage.
5. The detection method according to claim 3, characterized in that: The third metering circuit includes a phase sampling module, the distribution box includes an isolation optocoupler, the isolation optocoupler is electrically connected to the control unit and the phase sampling module, the phase sampling module is electrically connected to the load interface, and within a mains power cycle, obtaining the real-time input AC voltage and zero-point AC phase of the distribution box includes: Control the phase sampling module to collect the zero-point AC phase of the real-time input AC voltage within the mains power cycle; The detection method further comprises: According to the zero-point AC phase, controlling the isolation optocoupler to generate an interrupt signal to the control unit; According to the interrupt signal, the control unit is controlled to calculate the AC voltage difference between the real-time input AC voltage and the simulated input AC voltage.
6. The detection method according to claim 1, characterized in that: When the AC voltage difference between the simulated input AC voltage and the real-time input AC voltage is greater than the preset threshold, determining that the real-time input AC voltage is abnormal includes: After the AC voltage difference between the simulated input AC voltage and the real-time input AC voltage is greater than the preset threshold for a preset period of time, it is determined that the real-time input AC voltage is abnormal.
7. A first control device, used in a distribution box, characterized in that: The first control device comprises: A first acquisition module is used to acquire the real-time input AC voltage and zero-point AC phase of the distribution box within a mains power cycle; A second acquisition module, used for acquiring the analog input AC voltage of the distribution box within the mains cycle according to the zero-point AC phase; A first determination module, configured to determine that the real-time input AC voltage is normal when an AC voltage difference between the simulated input AC voltage and the real-time input AC voltage is less than or equal to a preset threshold; The second determination module is used to determine that the real-time input AC voltage is abnormal when the AC voltage difference between the simulated input AC voltage and the real-time input AC voltage is greater than the preset threshold.
8. A second control device, characterized in that: include: Processor, memory; and A computer program, wherein the computer program is stored in the memory and executed by the processor, and the computer program includes instructions for executing the detection method according to any one of claims 1 to 6.
9. A distribution box, characterized in that: Includes the first control device according to claim 7 or the second control device according to claim 8.
10. A non-volatile computer-readable storage medium containing a computer program, wherein when the computer program is executed by a processor, the processor executes the detection method according to any one of claims 1 to 6.
Citation Information
Cited By
Distribution box and distribution box power monitoring system thereof
CN121440926A
A distribution box and a distribution box power monitoring system thereof
CN121440926B
Detection method, control devices, distribution box and storage medium
WO2026076950A1