Power monitoring method and device, medium and electronic equipment

By obtaining the current power in the motor and updating the count value, the problem of high cost and high complexity of real-time power monitoring of motors in the prior art is solved, and low-cost, low-complexity power monitoring is achieved, and high scalability is achieved.

CN119511064APending Publication Date: 2025-02-25ZHEJIANG ZOBOW MECHANICAL & ELECTRICAL TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311083863.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-25
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

The real-time power monitoring process of existing motors is costly and has high system complexity, making it difficult to effectively monitor whether the output power of the motor in actual applications exceeds the rated value.

Method used

By obtaining the current power of the motor and updating the count value according to the preset power threshold and monitoring period, the monitoring information is obtained to determine whether the motor power is abnormal. This method does not require adding any components, reducing costs and simplifying the system.

Benefits of technology

It effectively reduces the cost and complexity of the motor real-time monitoring process, improves the scalability of the system, and can adjust the power threshold and monitoring period according to user needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119511064A_ABST
    Figure CN119511064A_ABST
Patent Text Reader

Abstract

The invention provides a power monitoring method and device, a medium and electronic equipment. The power monitoring method comprises the following steps: acquiring the current power of a motor, wherein the current power of the motor is the actual operation power of the motor at the current sampling moment; if the current power of the motor is greater than a preset power threshold, updating a count value associated with a current first monitoring time period and a first count value associated with a current second monitoring time period to obtain a first updated count value and a second updated count value, otherwise, updating the count value associated with the current first monitoring time period to obtain a third updated count value; and obtaining monitoring information based on the first update count value and the second update count value, wherein the monitoring information is abnormal motor power or no abnormal motor power. The power monitoring method can reduce the cost and has higher expansibility.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of motors and relates to a power monitoring method, and in particular to a power monitoring method, device, medium and electronic equipment. Background Art

[0002] At present, in the actual application scenarios of motors, such as the actual use scenarios of motors in sewing machines, due to mechanical installation or continuous sewing of thick materials, the output power of the motor is too large when the sewing machine is working, exceeding the rated power of the motor. If the motor works under this condition for a long time, it will burn out. At present, the real-time power monitoring of the motor is generally realized by adding components to realize the real-time monitoring of the working status of the motor, which leads to high cost of the real-time power monitoring process of the motor and increases the complexity of the motor in actual application. Summary of the invention

[0003] The purpose of the present application is to provide a power monitoring method, device, medium and electronic equipment to solve the problems of high cost and high complexity of the entire system in the current real-time power monitoring process of motors.

[0004] In a first aspect, the present application provides a power monitoring method, comprising: obtaining a current power of a motor, wherein the current power of the motor is the actual operating power of the motor at a current sampling moment; if the current power of the motor is greater than a preset power threshold, updating a count value associated with a current first monitoring period and a first count value associated with a current second monitoring period to obtain a first updated count value and a second updated count value, otherwise updating the count value associated with the current first monitoring period to obtain a third updated count value, wherein the first updated count value is 1 more than the count value associated with the current first monitoring period, the second updated count value is 1 more than the count value associated with the current second monitoring period, and the third updated count value is the initial count value under the first monitoring period; obtaining monitoring information based on the first updated count value and the second updated count value, wherein the monitoring information is that the motor power is abnormal or the motor power is normal.

[0005] In the power monitoring method, since no additional components are required, the cost of real-time monitoring of the motor can be effectively reduced, and the complexity of the motor in practical applications can be reduced. In addition, in the power monitoring method, since the preset power threshold, the first monitoring period, and the second monitoring period can be adjusted according to user needs, the power monitoring method has higher scalability.

[0006] In one embodiment of the present application, an implementation method for obtaining monitoring information based on the first update count value and the second update count value includes: S1: if the abnormal flag bit associated with the current second monitoring period is not in an open state, the abnormal flag bit associated with the current second monitoring period is set to an open state; S2: if the first update count value is greater than the count threshold of the first monitoring period or the second update count value is greater than the first count threshold of the second monitoring period, the first update count value and the second update count value are updated to obtain a fourth update count value and a fifth update count value, and then transferred to S3, the fourth update count value is the initial count value of the first monitoring period, the fifth update count value is the initial count value of the second monitoring period, and the monitoring information is that the motor power is abnormal, otherwise it directly transfers to S3. , the monitoring information is that there is no abnormality in the motor power; S3: when the abnormal flag is in the on state, the second count value associated with the current second monitoring period is updated to obtain a sixth updated count value, and the sixth updated count value is 1 more than the second count value associated with the current second monitoring period; S4: if the sixth updated count value is greater than the second count threshold associated with the second monitoring period, then the first count value, the second count value and the abnormal flag associated with the next second monitoring period are obtained, the first count value associated with the next second monitoring period is the initial first count value of the second monitoring period, the second count value associated with the next second monitoring period is the initial second count value of the second monitoring period, and the abnormal flag associated with the next second monitoring period is the initial abnormal flag of the second monitoring period.

[0007] In one embodiment of the present application, a method for obtaining the current power of a motor includes: obtaining a number of bus currents associated with the motor based on a preset sampling period; obtaining an average bus current based on the bus current; and obtaining the current power of the motor based on a bus voltage associated with the motor and the average bus current.

[0008] In one embodiment of the present application, a method for obtaining a number of bus currents associated with the motor based on a preset sampling period includes: if the current moment is the current sampling moment, the sampling count value associated with the current sampling process is updated to obtain an updated sampling count value, the updated sampling count value is 1 more than the sampling count value associated with the current sampling process, otherwise waiting for the current moment to be the current sampling moment, the current sampling moment is related to the preset sampling period, and the current sampling process includes a process of sampling at the current sampling moment; if the updated sampling count value does not exceed the preset count threshold, the bus current associated with the updated sampling count value is stored in the bus current data set associated with the current sampling process, otherwise the bus current is obtained, and the bus current is the bus current in the bus current data set.

[0009] In one embodiment of the present application, the motor is a three-phase motor, and the bus current is expressed as:

[0010] Ibus=((Iu+Iv+Iw) / 2)×((PWMmax-PWMmin) / PWMt)

[0011] Among them, Ibus is the bus current, Iu is the first phase current of the three-phase motor, Iv is the second phase current of the three-phase motor, Iw is the third phase current of the three-phase motor, PWMmax is the maximum value of the pulse modulation signal associated with the first phase current, the pulse modulation signal associated with the second phase current, and the pulse modulation signal associated with the third phase current, PWMmin is the minimum value of the pulse modulation signal associated with the first phase current, the pulse modulation signal associated with the second phase current, and the pulse modulation signal associated with the third phase current, and PWMt is the sum of the pulse modulation signal associated with the first phase current, the pulse modulation signal associated with the second phase current, and the pulse modulation signal associated with the third phase current.

[0012] In one embodiment of the present application, the motor is provided with a power calculation device for accurately calculating the power of the motor.

[0013] In a second aspect, the present application provides a power monitoring device, comprising: a power acquisition module, used to acquire the current power of the motor, the current power of the motor being the actual operating power of the motor at the current sampling moment; a count update module, used to update the count value associated with the current first monitoring period and the first count value associated with the current second monitoring period if the current power of the motor is greater than a preset power threshold, so as to obtain a first updated count value and a second updated count value, otherwise the count value associated with the current first monitoring period is updated to obtain a third updated count value, the first updated count value being 1 more than the count value associated with the current first monitoring period, the second updated count value being 1 more than the count value associated with the current second monitoring period, and the third updated count value being the initial count value under the first monitoring period; a monitoring information acquisition module, used to acquire monitoring information based on the first updated count value and the second updated count value, the monitoring information being motor power abnormality or motor power normality.

[0014] In a third aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the power monitoring method described in any one of the first aspects of the present application.

[0015] In a fourth aspect, the present application provides an electronic device, comprising: a memory storing a computer program; and a processor communicatively connected to the memory, for executing any power monitoring method described in the first aspect of the present application when the computer program is called.

[0016] As described above, the power monitoring method, device, medium and electronic device described in the present application have the following beneficial effects:

[0017] In the power monitoring method, since no additional components are required, the cost of real-time monitoring of the motor can be effectively reduced, and the complexity of the motor in practical applications can be reduced. In addition, in the power monitoring method, since the preset power threshold, the first monitoring period, and the second monitoring period can be adjusted according to user needs, the power monitoring method has higher scalability. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 Shown is a schematic diagram of the hardware structure of the sewing machine system according to an embodiment of the present application.

[0019] Figure 2 Shown is a flow chart of the power monitoring method described in an embodiment of the present application.

[0020] Figure 3 Shown is a flowchart of an implementation method of the present application for acquiring monitoring information based on the first update count value and the second update count value.

[0021] Figure 4 Shown is a flow chart of a method for obtaining the current power of a motor according to an embodiment of the present application.

[0022] Figure 5 Shown is a flowchart of a method for obtaining a plurality of bus currents associated with the motor based on a preset sampling period according to an embodiment of the present application.

[0023] Figure 6 Shown is a schematic diagram of the structure of the power monitoring device described in an embodiment of the present application.

[0024] Component number description

[0025] 600 Power Monitoring Device

[0026] 610 Power Acquisition Module

[0027] 620 Count Update Module

[0028] 630 Monitoring information acquisition module

[0029] Steps S11-S13

[0030] Steps S1-S4

[0031] Steps S21-S23

[0032] Steps S41-S43 DETAILED DESCRIPTION

[0033] The following describes the embodiments of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.

[0034] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present application, and thus the drawings only show components related to the present application rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed at will, and the component layout may also be more complicated.

[0035] The technical solutions in the embodiments of the present application are described in detail below in conjunction with the drawings in the embodiments of the present application.

[0036] The power monitoring method provided in the embodiment of the present application can be executed in a processor. Figure 1 For example, Figure 1 Schematic diagram of the hardware structure of a sewing machine system, the sewing machine system includes a CPU, RAM, ROM, an output device, a sewing machine motor control device, and a sewing machine motor electrically connected to each other. The output device can be regarded as an interface, electrically connected to the CPU, and the sewing machine motor control device can be used to output the output control signal output by the CPU to the sewing machine motor.

[0037] like Figure 2 As shown, this embodiment provides a power monitoring method, which can be implemented by a processor of a computer device, including:

[0038] S11, obtaining the current power of the motor, where the current power of the motor is the actual operating power of the motor at the current sampling moment.

[0039] S12, if the current power of the motor is greater than the preset power threshold, the count value associated with the current first monitoring period and the first count value associated with the current second monitoring period are updated to obtain a first updated count value and a second updated count value, otherwise the count value associated with the current first monitoring period is updated to obtain a third updated count value, the first updated count value is 1 more than the count value associated with the current first monitoring period, the second updated count value is 1 more than the count value associated with the current second monitoring period, and the third updated count value is the initial count value under the first monitoring period.

[0040] Optionally, since the judgment of whether the motor power is abnormal cannot reflect the overall operating status of the motor by only measuring the power at a single moment, the judgment of whether the motor power is abnormal needs to be made based on the power situation within a time period. The monitoring period is the time period used to monitor whether the motor power is abnormal. The maximum duration of the first monitoring period and the second monitoring period may be different. For example, the maximum duration of the first monitoring period may be 2.5 seconds, and the maximum duration of the second monitoring period may be 10s. The duration ranges of the first monitoring period and the second monitoring period are not fixed. For example, the duration of the first monitoring period may be 1.5s, 2s, etc., and the duration of the second monitoring period may be 5s, 6s, etc.

[0041] Optionally, the current first monitoring period may refer to the first monitoring period to which the current sampling moment belongs, and the current second monitoring period may refer to the second monitoring period to which the current sampling moment belongs. In the process of monitoring the motor power, it is necessary to monitor the motor power through multiple continuous monitoring periods. Taking the first monitoring period as an example, the first monitoring period in the process of monitoring the motor may include three first monitoring periods of sampling time t=1s to t=1.5s, sampling time t=1.5s to t=2.5s, and sampling time t=2.5s to t=5s. When the sampling time t=1.25s, the sampling time t=1.25s belongs to the first monitoring period of sampling time t=1s to t=1.5s, and when the sampling time t=2s, the sampling time t=2s belongs to the first monitoring period of sampling time t=1.5s to t=2.5s. The principle of the current second monitoring period is similar to that of the current first monitoring period, which will not be repeated here.

[0042] Optionally, the count value associated with the current first monitoring period may refer to the count value under the current first monitoring period and the upper limit of the count value is related to the maximum duration of the first monitoring period. The first count value associated with the current second monitoring period may refer to the first count value under the current second monitoring period and the upper limit of the first count value is related to the preset cumulative duration in the second monitoring period. The preset cumulative duration in the second monitoring period can be flexibly set according to actual conditions. For example, if the maximum duration of the second monitoring period is 10s, the preset cumulative duration in the second monitoring period can be 4s. Optionally, the preset power threshold and the initial count value under the first monitoring period can be flexibly set according to actual conditions. For example, the initial count value under the first monitoring period can be set to 0. This will not be described in detail in this embodiment.

[0043] S13, acquiring monitoring information based on the first update count value and the second update count value, wherein the monitoring information is that the motor power is abnormal or the motor power is normal.

[0044] Optionally, the power monitoring method further comprises: if the monitoring information indicates that the motor power is abnormal, generating an alarm instruction, wherein the alarm instruction is used for an alarm device to sound an alarm.

[0045] Optionally, the motor is provided with a power calculation device for accurately calculating the power of the motor.

[0046] According to the above description, the power monitoring method described in this embodiment includes: obtaining the current power of the motor, the current power of the motor is the actual operating power of the motor at the current sampling moment; if the current power of the motor is greater than the preset power threshold, the count value associated with the current first monitoring period and the first count value associated with the current second monitoring period are updated to obtain the first updated count value and the second updated count value, otherwise the count value associated with the current first monitoring period is updated to obtain the third updated count value, the first updated count value is 1 more than the count value associated with the current first monitoring period, the second updated count value is 1 more than the count value associated with the current second monitoring period, and the third updated count value is the initial count value under the first monitoring period; based on the first updated count value and the second updated count value, monitoring information is obtained, and the monitoring information is that the motor power is abnormal or the motor power is normal.

[0047] In the power monitoring method, since no additional components are required, the cost of real-time monitoring of the motor can be effectively reduced, and the complexity of the motor in practical applications can be reduced. In addition, in the power monitoring method, since the preset power threshold, the first monitoring period, and the second monitoring period can be adjusted according to user needs, the power monitoring method has higher scalability.

[0048] like Figure 3 As shown, this embodiment provides a method for obtaining monitoring information based on the first update count value and the second update count value, including:

[0049] S1: If the abnormal flag associated with the current second monitoring period is in an off state, the abnormal flag associated with the current second monitoring period is set to an on state.

[0050] Optionally, the abnormal flag bit associated with the current second monitoring period may refer to the abnormal flag bit in the current second monitoring period, and the abnormal flag bit in the enabled state may be 1, and the abnormal flag bit in the disabled state may be 0.

[0051] S2: If the first updated count value is greater than the count threshold of the first monitoring period or the second updated count value is greater than the first count threshold of the second monitoring period, the first updated count value and the second updated count value are updated to obtain the fourth updated count value and the fifth updated count value, and then transferred to S3, the fourth updated count value is the initial count value of the first monitoring period, the fifth updated count value is the initial count value of the second monitoring period, and the monitoring information is that the motor power is abnormal. Otherwise, it directly transfers to S3, and the monitoring information is that the motor power is normal.

[0052] Optionally, the counting threshold of the first monitoring period may be the number of milliseconds of the maximum duration of the first monitoring period, for example, if the maximum duration of the first monitoring period is 2.5 seconds, the counting threshold of the first monitoring period may be 2500. The first counting threshold of the second monitoring period may be the number of milliseconds of the cumulative duration preset in the second monitoring period, for example, if the cumulative duration preset in the second monitoring period is 4 seconds, the first counting threshold of the second monitoring period may be 4000.

[0053] S3: When the abnormal flag is in the on state, the second count value associated with the current second monitoring period is updated to obtain a sixth updated count value, where the sixth updated count value is 1 more than the second count value associated with the current second monitoring period.

[0054] S4: If the sixth updated count value is greater than the second count threshold associated with the second monitoring period, then obtain the first count value, the second count value and the abnormal flag associated with the next second monitoring period, the first count value associated with the next second monitoring period is the initial first count value of the second monitoring period, the second count value associated with the next second monitoring period is the initial second count value of the second monitoring period, and the abnormal flag associated with the next second monitoring period is the initial abnormal flag of the second monitoring period.

[0055] Optionally, the second counting threshold associated with the second monitoring period may be the number of milliseconds of the maximum duration of the second monitoring period. For example, if the maximum duration of the second monitoring period is 10 seconds, the second counting threshold associated with the second monitoring period may be 10,000.

[0056] Optionally, the initial second count value of the second monitoring period may be 0, the initial first count value of the second monitoring period may be 0, and the initial abnormal flag bit of the second monitoring period may be 0.

[0057] Optionally, if the actual operating power of the motor is still within the current first monitoring period at the next sampling moment, the count value associated with the current first monitoring period at the next sampling moment is the first updated count value; if the actual operating power of the motor is within the next first monitoring period at the next sampling moment, the count value associated with the next first monitoring period at the next sampling moment is the initial count value under the first monitoring period, that is, the third updated count value.

[0058] Optionally, if the actual operating power of the motor is still within the current second monitoring period at the next sampling moment, the first count value associated with the current second monitoring period at the next sampling moment is the second updated count value, the abnormal flag bit associated with the current second monitoring period at the next sampling moment is the open state, and the second count value associated with the current second monitoring period at the next sampling moment is the sixth updated count value. If the actual operating power of the motor is within the next second monitoring period at the next sampling moment, the first count value associated with the next second monitoring period at the next sampling moment is the initial first count value of the second monitoring period, the second count value associated with the next second monitoring period at the next sampling moment is the initial second count value of the second monitoring period, and the abnormal flag bit associated with the next second monitoring period at the next sampling moment is the initial abnormal flag bit of the second monitoring period.

[0059] Optionally, the power monitoring method can monitor that the current power of the motor is greater than the preset power threshold for 4 seconds accumulated within 2.5 seconds or 10 seconds.

[0060] like Figure 4 As shown, this embodiment provides a method for obtaining the current power of a motor, including:

[0061] S21, acquiring a plurality of bus currents associated with the motor based on a preset sampling period.

[0062] Optionally, the preset sampling period can be flexibly set according to actual conditions, for example, 1 ms can be used as the preset sampling period. Based on the preset sampling period, a number of bus currents associated with the motor can be obtained. For example, 1 ms can be used as the preset sampling period, and 10 bus currents associated with the motor can be obtained after 10 ms.

[0063] Optionally, the motor is a three-phase motor, and the bus current is expressed as:

[0064] Ibus=((Iu+Iv+Iw) / 2)×((PWMmax-PWMmin) / PWMt)

[0065] Wherein, Ibus is the bus current, Iu is the first phase current of the three-phase motor, Iv is the second phase current of the three-phase motor, Iw is the third phase current of the three-phase motor, PWMmax is the maximum value of the pulse modulation signal associated with the first phase current, the pulse modulation signal associated with the second phase current, and the pulse modulation signal associated with the third phase current, PWMmin is the minimum value of the pulse modulation signal associated with the first phase current, the pulse modulation signal associated with the second phase current, and the pulse modulation signal associated with the third phase current, and PWMt is the sum of the pulse modulation signal associated with the first phase current, the pulse modulation signal associated with the second phase current, and the pulse modulation signal associated with the third phase current. The first phase current, the second phase current, and the third phase current can be directly obtained by sampling. In addition, the bus current can refer to the effective value of the current flowing through the bus associated with the motor.

[0066] S22: Obtain an average bus current based on the bus current.

[0067] Optionally, the average bus current is the average value of the bus currents. For example, when there are 10 bus currents, the average value of the 10 bus currents is the average bus current.

[0068] S23, obtaining the current power of the motor based on the bus voltage associated with the motor and the average bus current.

[0069] Optionally, the current power of the motor may be the product of the bus voltage and the average bus current, and the bus voltage may be directly sampled and acquired.

[0070] like Figure 5 As shown, this embodiment provides a method for obtaining a plurality of bus currents associated with the motor based on a preset sampling period, including:

[0071] S31, if the current moment is the current sampling moment, the sampling count value associated with the current sampling process is updated to obtain an updated sampling count value, the updated sampling count value is 1 more than the sampling count value associated with the current sampling process, otherwise wait for the current moment to be the current sampling moment, the current sampling moment is related to the preset sampling period, and the current sampling process includes the process of sampling at the current sampling moment.

[0072] Optionally, the preset sampling period may refer to a period for sampling the phase current associated with the bus current, and the sampling moment is the moment for sampling the phase current associated with the bus current. For example, the preset sampling period is 1ms, and the sampling moments are t=1ms, t=2ms, t=3ms, etc. at intervals of 1ms. If the current moment is t=0.85ms, it is necessary to wait until the current moment is t=1ms to sample the phase current associated with the bus current. The current sampling moment may refer to the sampling moment in the future that is closest to the current moment. The current moment is t=0.85ms, and the current sampling moment is t=1ms. The current sampling process is also related to the number of bus currents. For example, if 10 bus currents associated with the motor are obtained based on a preset sampling period, the current sampling process will include a process of sampling the phase current associated with the bus current 10 times at 10 sampling moments. The sampling process corresponds to the sampling moment one by one. For example, if 10 bus currents associated with the motor are obtained, the corresponding sampling process when the sampling moment is t=1ms may refer to t=1ms, t=2ms, t=3ms, t=4ms, t=5ms, t=6ms, t=7ms, t=8ms, t=9ms , the sampling process at t=10ms, the sampling process corresponding to the sampling time t=2ms may refer to the sampling process at t=2ms, t=3ms, t=4ms, t=5ms, t=6ms, t=7ms, t=8ms, t=9ms, t=10ms, t=11ms, the current sampling process may be a sampling process associated with the current power, for example, when the current power is the actual operating power of the motor when t=1ms, the current sampling process is the sampling process corresponding to t=1ms, and the sampling process corresponding to t=1ms is the sampling process associated with the current power.

[0073] S32, if the updated sampling count value does not exceed the preset count threshold, the bus current associated with the updated sampling count value is stored in the bus current data set associated with the current sampling process, otherwise the bus current is obtained, and the bus current is the bus current in the bus current data set.

[0074] Optionally, the sampling count value associated with the current sampling process may refer to the sampling count value under the current sampling process, and the initial sampling count value under each sampling process may be 0, for example, when the sampling time is t=1ms, the corresponding sampling process is performed at t=1ms, t=2ms, t=3ms, t=4ms, t=5ms, t=6ms, t=7ms, t=8ms, t=9ms, and t=10ms, and the sampling process changes with the change of the sampling time, for example, when t=1ms, the sampling count value associated with the sampling process is 1, when t=2ms, the sampling count value associated with the sampling process is 2, and so on, and finally when t=10ms, the sampling count value associated with the sampling process is 10. The bus current data set associated with the current sampling process may refer to a data set storing the bus current corresponding to each sampling time included in the current sampling process. The bus current data set associated with each sampling process may be an empty data set when the sampling process does not start sampling. The preset counting threshold is related to the number of the bus currents. For example, when 10 bus currents are obtained, the preset counting threshold may be 10. The preset counting threshold may be flexibly set according to actual conditions, and this embodiment does not explicitly limit this.

[0075] The protection scope of the power monitoring method described in the embodiment of the present application is not limited to the execution order of the steps listed in the present embodiment. All solutions implemented by adding, reducing or replacing steps in the prior art based on the principles of the present application are included in the protection scope of the present application.

[0076] like Figure 5 As shown, this embodiment provides a power monitoring device 500, including:

[0077] The power acquisition module 510 is used to acquire the current power of the motor, where the current power of the motor is the actual operating power of the motor at the current sampling moment;

[0078] The counting update module 520 is used to update the counting value associated with the current first monitoring period and the first counting value associated with the current second monitoring period to obtain a first updated counting value and a second updated counting value if the current power of the motor is greater than a preset power threshold; otherwise, the counting value associated with the current first monitoring period is updated to obtain a third updated counting value, wherein the first updated counting value is 1 more than the counting value associated with the current first monitoring period, the second updated counting value is 1 more than the counting value associated with the current second monitoring period, and the third updated counting value is the initial counting value under the first monitoring period.

[0079] The monitoring information acquisition module 530 is used to acquire monitoring information based on the first update count value and the second update count value, wherein the monitoring information is that the motor power is abnormal or the motor power is normal.

[0080] In the power monitoring device 500 provided in this embodiment, the power acquisition module 510, the counting update module 520, the monitoring information acquisition module 530 and the Figure 2 Steps S11, S12, and S13 of the power monitoring method shown correspond to each other and are not described in detail here.

[0081] In the several embodiments provided in the present application, it should be understood that the disclosed device or method can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of modules / units is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or units can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules or units, which can be electrical, mechanical or other forms.

[0082] The modules / units described as separate components may or may not be physically separated, and the components displayed as modules / units may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules / units may be selected according to actual needs to achieve the purpose of the embodiments of the present application. For example, the functional modules / units in the various embodiments of the present application may be integrated into one processing module, or each module / unit may exist physically separately, or two or more modules / units may be integrated into one module / unit.

[0083] Those of ordinary skill in the art should further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0084] This embodiment provides an electronic device, the electronic device comprising a memory storing a computer program; a processor connected to the memory for communication, and executing the computer program when the computer program is called. Figure 2 The power monitoring method shown.

[0085] The present application embodiment also provides a computer-readable storage medium. A person of ordinary skill in the art can understand that all or part of the steps in the method for implementing the above embodiment can be completed by a program to instruct the processor, and the program can be stored in a computer-readable storage medium, and the storage medium is a non-transitory medium, such as a random access memory, a read-only memory, a flash memory, a hard disk, a solid-state hard disk, a magnetic tape, a floppy disk, an optical disc, and any combination thereof. The above storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a digital video disc (DVD)), or a semiconductor medium (e.g., a solid-state hard disk (SSD)), etc.

[0086] The present application embodiment may also provide a computer program product, the computer program product including one or more computer instructions. When the computer instructions are loaded and executed on a computing device, the process or function described in the embodiment of the present application is generated in whole or in part. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer or data center.

[0087] When the computer program product is executed by a computer, the computer executes the method described in the above method embodiment. The computer program product may be a software installation package, and when the above method is required, the computer program product may be downloaded and executed on a computer.

[0088] The descriptions of the processes or structures corresponding to the above-mentioned figures have different emphases. For parts that are not described in detail in a certain process or structure, please refer to the relevant descriptions of other processes or structures.

[0089] The above embodiments are merely illustrative of the principles and effects of the present application and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.

Claims

1. A power monitoring method, characterized in that: include: Obtaining the current power of the motor, where the current power of the motor is the actual operating power of the motor at the current sampling moment; If the current power of the motor is greater than a preset power threshold, the count value associated with the current first monitoring period and the first count value associated with the current second monitoring period are updated to obtain a first updated count value and a second updated count value; otherwise, the count value associated with the current first monitoring period is updated to obtain a third updated count value, the first updated count value is 1 more than the count value associated with the current first monitoring period, the second updated count value is 1 more than the count value associated with the current second monitoring period, and the third updated count value is the initial count value under the first monitoring period; Monitoring information is acquired based on the first update count value and the second update count value, where the monitoring information is that the motor power is abnormal or that the motor power is normal.

2. The power monitoring method according to claim 1, characterized in that: The implementation method of acquiring monitoring information based on the first update count value and the second update count value includes: S1: If the abnormal flag bit associated with the current second monitoring period is in an off state, setting the abnormal flag bit associated with the current second monitoring period to an on state; S2: If the first updated count value is greater than the count threshold of the first monitoring period or the second updated count value is greater than the first count threshold of the second monitoring period, the first updated count value and the second updated count value are updated to obtain a fourth updated count value and a fifth updated count value, and then the process proceeds to S3, the fourth updated count value is the initial count value of the first monitoring period, the fifth updated count value is the initial count value of the second monitoring period, and the monitoring information is that the motor power is abnormal, otherwise the process proceeds directly to S3, and the monitoring information is that the motor power is normal; S3: when the abnormal flag is in the on state, updating the second count value associated with the current second monitoring period to obtain a sixth updated count value, wherein the sixth updated count value is 1 more than the second count value associated with the current second monitoring period; S4: If the sixth updated count value is greater than the second count threshold associated with the second monitoring period, then obtain the first count value, the second count value and the abnormal flag associated with the next second monitoring period, the first count value associated with the next second monitoring period is the initial first count value of the second monitoring period, the second count value associated with the next second monitoring period is the initial second count value of the second monitoring period, and the abnormal flag associated with the next second monitoring period is the initial abnormal flag of the second monitoring period.

3. The power monitoring method according to claim 1, characterized in that: The implementation method of obtaining the current power of the motor includes: Acquire a plurality of bus currents associated with the motor based on a preset sampling period; Obtaining an average bus current based on the bus current; A current power of the electric machine is obtained based on a bus voltage associated with the electric machine and the average bus current.

4. The power monitoring method according to claim 3, characterized in that: The method for obtaining a plurality of bus currents associated with the motor based on a preset sampling period includes: If the current moment is the current sampling moment, the sampling count value associated with the current sampling process is updated to obtain an updated sampling count value, the updated sampling count value is 1 more than the sampling count value associated with the current sampling process, otherwise, the current moment is waited to be the current sampling moment, the current sampling moment is related to the preset sampling period, and the current sampling process includes a process of sampling at the current sampling moment; If the updated sampling count value does not exceed the preset count threshold, the bus current associated with the updated sampling count value is stored in the bus current data set associated with the current sampling process; otherwise, the bus current is obtained, and the bus current is the bus current in the bus current data set.

5. The power monitoring method according to claim 3, characterized in that: The motor is a three-phase motor, and the bus current is expressed as: Ibus=((Iu+Iv+Iw) / 2)×((PWMmax-PWMmin) / PWMt) Among them, Ibus is the bus current, Iu is the first phase current of the three-phase motor, Iv is the second phase current of the three-phase motor, Iw is the third phase current of the three-phase motor, PWMmax is the maximum value of the pulse modulation signal associated with the first phase current, the pulse modulation signal associated with the second phase current, and the pulse modulation signal associated with the third phase current, PWMmin is the minimum value of the pulse modulation signal associated with the first phase current, the pulse modulation signal associated with the second phase current, and the pulse modulation signal associated with the third phase current, and PWMt is the sum of the pulse modulation signal associated with the first phase current, the pulse modulation signal associated with the second phase current, and the pulse modulation signal associated with the third phase current.

6. The power monitoring method according to claim 3, characterized in that: The motor is provided with a power calculation device for accurately calculating the power of the motor.

7. A power monitoring device, characterized in that: include: A power acquisition module, used to acquire the current power of the motor, where the current power of the motor is the actual operating power of the motor at the current sampling moment; A counting update module, configured to update the counting value associated with the current first monitoring period and the first counting value associated with the current second monitoring period to obtain a first updated counting value and a second updated counting value if the current power of the motor is greater than a preset power threshold, otherwise update the counting value associated with the current first monitoring period to obtain a third updated counting value, wherein the first updated counting value is 1 more than the counting value associated with the current first monitoring period, the second updated counting value is 1 more than the counting value associated with the current second monitoring period, and the third updated counting value is an initial counting value under the first monitoring period; A monitoring information acquisition module is used to acquire monitoring information based on the first update count value and the second update count value, wherein the monitoring information is that the motor power is abnormal or the motor power is normal.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the power monitoring method according to any one of claims 1 to 6 is implemented.

9. An electronic device, characterized in that: The electronic device comprises: A memory storing a computer program; A processor is communicatively connected to the memory, and executes the power monitoring method according to any one of claims 1 to 6 when calling the computer program.