Monitoring methods, storage media and electronic devices for electrical systems

By classifying sampled data into a counting sequence in the electrical system and monitoring the system when the buffer ring is full, the problem of high computational load affecting efficiency is solved, and more efficient real-time electrical system performance is achieved.

CN114662598BActive Publication Date: 2025-10-31AUTEL UNITED CREATION SOFTWARE DEV CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202210302598.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-25
Publication Date
2025-10-31
Estimated Expiration
2042-03-25

AI Technical Summary

Technical Problem

Existing electrical systems involve a large amount of computation during sampling and monitoring, which affects operational efficiency and real-time performance.

Method used

By categorizing sampled data into a counting sequence and monitoring the system based on the count value and storage length of the target counting sequence when the cache ring is full, subsequent sorting and judgment operations are avoided.

Benefits of technology

It saves operating time and improves the operating efficiency and real-time performance of the electrical system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114662598B_ABST
    Figure CN114662598B_ABST
Patent Text Reader

Abstract

This invention relates to the field of data processing technology, and discloses a monitoring method, storage medium, and electronic device for an electrical system. The method includes: determining the counting sequence to which the sampled data of the electrical system belongs; updating the count value of the counting sequence according to a preset value corresponding to the sampled data; mapping the sampled data to a buffer ring; when the buffer ring is full, determining a target counting sequence, wherein the amplitude of the sampled data corresponding to the count value of the target counting sequence is greater than a preset monitoring threshold; and monitoring the electrical system according to the count value of the target counting sequence and the storage length of the buffer ring. On the one hand, this embodiment avoids repetitive operations performed later for counting, saving this part of the running time. On the other hand, since the storage length of the buffer ring when it is full is known, there is no need to calculate how many sampled data points are stored in the buffer ring, saving this part of the running time and improving the real-time performance of the electrical system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data processing technology, and more specifically to a monitoring method, storage medium, and electronic device for an electrical system. Background Technology

[0002] In many electrical systems, to maintain operational stability and reliability, it is necessary to continuously sample relevant circuit parameters and perform calculations using all circuit parameters to obtain evaluation indicators, which are then used for monitoring. This process involves numerous sorting, judgment, and storage steps, resulting in a significant computational load. Especially when the sampling frequency or duration is long, this process can negatively impact the operating efficiency and real-time performance of the electrical system. Summary of the Invention

[0003] One objective of this invention is to provide a monitoring method, storage medium, and electronic device for electrical systems, in order to improve the problem of low real-time performance in existing electrical systems.

[0004] In a first aspect, embodiments of the present invention provide a method for monitoring an electrical system, comprising:

[0005] Determine the counting sequence to which the sampled data of the electrical system belongs;

[0006] Update the count value of the counting sequence according to the preset value corresponding to the sampled data;

[0007] Map the sampled data to the cache ring;

[0008] When the buffer ring is detected to be full, a target count sequence of the electrical system is determined, wherein the count value of the target count sequence corresponds to the amplitude of the sampled data that is greater than a preset monitoring threshold;

[0009] The system is monitored based on the count values ​​of the target count sequence and the storage length of the cache ring.

[0010] In a second aspect, embodiments of the present invention provide a storage medium storing computer-executable instructions for causing an electronic device to perform the aforementioned electrical system monitoring method.

[0011] In a third aspect, embodiments of the present invention provide an electronic device, comprising:

[0012] At least one processor; and,

[0013] A memory communicatively connected to the at least one processor; wherein,

[0014] The memory stores instructions that can be executed by the at least one processor, which enables the at least one processor to perform the above-described monitoring method for the electrical system.

[0015] Compared with the prior art, the present invention has at least the following beneficial effects: In this embodiment, different sampled data are categorized into corresponding counting sequences and counted during the storage of sampled data. When the buffer ring is full, the system is monitored directly based on the count value of the target counting sequence and the storage length. Therefore, on the one hand, it avoids a large number of repetitive operations such as sorting and judging required for counting later, thus saving running time in this part. On the other hand, since the storage length of the buffer ring is known when it is full, there is no need to calculate how many sampled data are stored in the buffer ring, thus also saving running time in this part. In summary, this embodiment can save running time, which is beneficial to improving the low real-time performance of existing electrical systems and improving the operating efficiency and real-time performance of electrical systems. Attached Figure Description

[0016] One or more embodiments are illustrated by way of example with reference numerals in the accompanying drawings. These illustrations do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are denoted as similar elements. Unless otherwise stated, the figures in the drawings are not to be limited by scale.

[0017] Figure 1 This is a schematic diagram of the structure of an electricity meter system provided in an embodiment of the present invention;

[0018] Figure 2 This is a first topology of branch meter equipment and terminal equipment provided in an embodiment of the present invention;

[0019] Figure 3 This is a second topology for the branch meter device and terminal device provided in an embodiment of the present invention;

[0020] Figure 4 This is a schematic diagram of the structure of an electricity meter system provided in another embodiment of the present invention;

[0021] Figure 5 A flowchart illustrating a monitoring method for an electrical system provided in an embodiment of the present invention;

[0022] Figure 6 for Figure 5 The flowchart of S51 is shown below;

[0023] Figure 7 for Figure 5 The flowchart of S52 is shown below;

[0024] Figure 8 for Figure 5 The diagram shown is a first type of process flow diagram for S53;

[0025] Figure 9 for Figure 5 The diagram shows the second process flow of S53;

[0026] Figure 10 A flowchart illustrating a monitoring method for an electrical system according to another embodiment of the present invention;

[0027] Figure 11 for Figure 5 The flowchart of S55 is shown below;

[0028] Figure 12 A flowchart illustrating a monitoring method for an electrical system provided in another embodiment of the present invention;

[0029] Figure 13 This is a schematic diagram of the circuit structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0030] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without inventive effort are within the scope of protection of this invention.

[0031] It should be noted that, unless otherwise specified, the various features in the embodiments of this invention can be combined with each other, all of which are within the protection scope of this invention. Furthermore, although functional modules are divided in the device schematic diagram and a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than the module division in the device or the order in the flowchart. Moreover, the terms "first," "second," and "third" used in this invention do not limit the data or execution order, but only distinguish identical or similar items with essentially the same function and effect.

[0032] The electrical system provided in this embodiment of the invention can be any suitable type of integrated system. In some embodiments, the electrical system is an electricity meter system, a temperature monitoring system, or a humidity monitoring system, etc.

[0033] Please see Figure 1 The meter system includes branch meter devices 11 and main meter devices 12, wherein the number of branch meter devices 11 can be one or more.

[0034] The branch meter device 11 is used to electrically connect with the corresponding terminal device 13. The branch meter device 11 can not only turn the terminal device 13 on or off, but also calculate the operating parameters of the terminal device 13. The operating parameters include active power, reactive power, apparent power, effective voltage value, effective current value, power factor, phase angle, waveform, zero-crossing detection parameters, overvoltage and overcurrent detection parameters, undervoltage and undercurrent detection parameters, phase sequence detection parameters, etc.

[0035] In some embodiments, the branch meter device 11 includes an input interface circuit 111, a PLC module 112, and an output interface circuit 113, wherein the PLC module 112 is electrically connected to the input interface circuit 111 and the output interface circuit 113 respectively.

[0036] The input interface circuit 111 is used to input power and can also be electrically connected to the main meter device 12. The input interface circuit 111 can convert the field switch signals into standard signals that conform to the internal standard signals of the PLC module 112.

[0037] The PLC module 112 executes the corresponding operation logic and generates switch control signals based on the switch signals from the input interface circuit 111.

[0038] The output interface circuit 113 is used to electrically connect to the terminal device 13. According to the switch control signal of the PLC module 112, it operates in the off state or the on state to turn off or on the power supply circuit of the control terminal device 13.

[0039] It is understandable that the topology of branch meter equipment and terminal equipment can be... Figure 2 The topology shown is such that one branch meter device manages one terminal device.

[0040] It is understandable that the topology of branch meter equipment and terminal equipment can be... Figure 3 The topology shown indicates that one branch meter device can manage more than two terminal devices.

[0041] It is understandable that terminal device 13 can be any type of device, such as home appliances such as air fryers, air conditioners, dry cleaning machines, washing machines, and electric heating equipment.

[0042] The master meter device 12 serves as the control core of the electricity meter system. It is electrically connected to each branch meter device and sends control commands to the corresponding branch meter devices, enabling them to control the terminal devices according to these commands. Additionally, the master meter device 12 can communicate with each branch meter device 11 to collect and analyze the operating parameters of each terminal device.

[0043] The master meter device 12 summarizes the working parameters fed back by each branch meter device 11, and the summary is shown in Table 1.

[0044] Table 1

[0045] terminal equipment power relative power Full load relative power Switch status kitchen 3025w 30.25% 15.12% open air conditioner 2067w 20.67% 10.33% open clothes dryer 1012w 10.12% 5.06% open washing machine 1w 0.01% 0.01% close electric heater 0w 0.00% 0.00% open

[0046] In addition, the main meter device 12 can also transmit external power to the branch meter device 11, and then the branch meter device 11 transmits it to the terminal device 13.

[0047] In some embodiments, the summary table device 12 is configured with a communication module for communicating with the smart terminal 14, for example, see [link to documentation]. Figure 4 The smart terminal 14 can communicate with the master table device 12 and send configuration information to the master table device 12. The master table device 12 completes the local configuration of the corresponding operation according to the configuration information. Alternatively, the master table device 12 sends feedback information to the smart terminal 14, and the smart terminal 14 analyzes and processes the feedback information.

[0048] The following two examples illustrate two aspects of an electricity meter system. It is understood that these examples are not intended to unduly limit the scope of protection of this invention. Specifically:

[0049] Example 1: Please combine with Figure 3 The intelligent terminal 14 sends a control command to the main meter device 12 to instruct the first branch meter device to enter the shutdown state. The main meter device 12 sends the control command to the first branch meter device through the PLC line. According to the control command, the first branch meter device shuts off the high-voltage relay of its output interface circuit, so that the power supply circuit of the first terminal device is in the shutdown state, and thus the first terminal device stops working.

[0050] Example 2: Please combine with Figure 3 The smart terminal 14 sends configuration information to the main meter device 12 to configure the overload current of the first branch meter device to be 5A. When the first branch meter device detects that the current flowing through the first terminal device is too large, the first branch meter device shuts off the power supply circuit of the first terminal device and sends an overcurrent abnormality information to the main meter device 12.

[0051] This invention provides a method for monitoring an electrical system. Please refer to [link / reference]. Figure 5 Monitoring methods for electrical systems include:

[0052] S51. Determine the counting sequence to which the sampled data of the electrical system belongs.

[0053] In this step, the sampling data consists of the operating parameters of the electrical system sampled at each sampling time point. For example, the electrical system is an electricity meter system, and the operating parameters include active power, reactive power, apparent power, effective voltage value, effective current value, power factor, phase angle, waveform, zero-crossing detection parameters, overvoltage and overcurrent detection parameters, undervoltage and undercurrent detection parameters, phase sequence detection parameters, etc.

[0054] In some embodiments, the sampling data is the sum of power (total power) of each terminal device in the electricity meter system at each sampling time point. The sampling time point is the time point at which the power used by the sampling terminal device is measured. For example, please refer to... Figure 3 The first branch meter device samples the power used by the first terminal device according to a preset period, for example, the preset period is 0.01s / time and the preset frequency is 100 times / s. When the meter system starts sampling data at time point w0, the nth sampling time point is w0+n*F, where n is a positive integer and F is the preset period, where F = 0.01s / time.

[0055] The first branch meter sampled the power of the first terminal device at each sampling time point. Similarly, the second branch meter sampled the power of the second terminal device at each sampling time point, and the third branch meter sampled the power of the third terminal device at each sampling time point.

[0056] The total power is the sum of the power of each terminal device at each sampling time point. As mentioned earlier, for sampling time point ts, the first branch meter device feeds back the power p1 at sampling time point ts, the second branch meter device feeds back the power p2 at sampling time point ts, and the third branch meter device feeds back the power p3 at sampling time point ts to the main meter device. The main meter device adds up the power p1, power p2, and power p3 to obtain the total power p = p1 + p2 + p3 at sampling time point ts.

[0057] In some embodiments, obtaining sampling data includes: obtaining the power of each terminal device at each sampling time point, calculating the sum of the power returned by each terminal device at each sampling time point, obtaining the total power at each sampling time point, and using the total power at each sampling time point as sampling data.

[0058] In some embodiments, obtaining the power of each terminal device at each sampling time point includes: sending a power sampling instruction to each branch meter device, so that each branch meter device samples the power of the corresponding terminal device, and obtaining the power sent by each branch meter device at each sampling time point.

[0059] In this step, the counting sequence is used to store the count values. Different sampled data can fall into different numerical ranges, and the count values ​​are used to represent the number of sampled data that fall into the corresponding numerical range.

[0060] In some embodiments, there are at least two counting sequences, and each counting sequence corresponds one-to-one with a numerical range. For example, assuming the sampled data is total power, different sampled data may fall into different numerical ranges. These numerical ranges include range 0 (0-200kW), range 1 (200kW-250kW), range 2 (250kW-300kW), and range 3 (300kW-∞). Each numerical range corresponds one-to-one with a counting sequence, as shown in Table 2.

[0061] Table 2

[0062]

[0063] As shown in Table 2, the 0th value range corresponds to the 0th counting sequence, the 1st value range corresponds to the 1st counting sequence, the 2nd value range corresponds to the 2nd counting sequence, and the 3rd value range corresponds to the 3rd counting sequence. During meter system initialization, the count value of each counting sequence is set to 0 by default.

[0064] After the electricity meter system obtains the sampled data, it selects a counting sequence based on the magnitude of the sampled data. For example, when the sampled data is 3kW, it corresponds to the 0th counting sequence. When the sampled data is 260kW, it corresponds to the 2nd counting sequence, and so on. This will not be elaborated further here.

[0065] S52. Update the count value of the counting sequence according to the preset value corresponding to the sampled data.

[0066] In this step, the preset value is fixed for each monitoring process. The preset value can be customized by the user, such as 1, 2, or 3. In some embodiments, the preset value is 1.

[0067] S53. Map the sampled data into the buffer ring.

[0068] In this step, the master table device can map the sampled data to the cache ring according to a preset storage method. In some embodiments, the master table device can directly store the sampled data in the cache ring, or the master table device can store the data values ​​associated with the sampled data in the cache ring.

[0069] S54. When the detection buffer ring is full, determine the target count sequence of the electrical system, wherein the count value of the target count sequence corresponds to the amplitude of the sampled data that is greater than the preset monitoring threshold.

[0070] In this step, the preset monitoring thresholds correspond to the monitoring levels. Different monitoring levels correspond to different preset monitoring thresholds. For example, when the monitoring level is level 1, the preset monitoring threshold is 200kW. When the monitoring level is level 2, the preset monitoring threshold is 250kW. When the monitoring level is level 3, the preset monitoring threshold is 300kW.

[0071] This embodiment provides a set of sampling data, as shown below:

[0072] W={50,62,210,234,240,260,280,268,274,320}.

[0073] This embodiment categorizes and counts the above set of sampled data, as shown in Table 3:

[0074] Table 3

[0075]

[0076] Assuming the monitoring level is Level 1, the preset monitoring threshold is 200kW. When the master table device writes the 10th sampled data "320" into the cache ring, and detects that all storage areas of the cache ring are full, the master table device determines the target counting sequence. As shown in Table 3, the counting sequences for sampling data with amplitudes greater than 200kW are the first, second, and third counting sequences, respectively. Therefore, the first, second, and third counting sequences are all target counting sequences.

[0077] Assuming the monitoring level is level 2, the preset monitoring threshold is 250kW. When the master table device detects that all storage areas of the cache ring are full, the master table device determines the target counting sequence. As shown in Table 3, the counting sequences for sampling data with amplitudes greater than 250kW are the second and third counting sequences, respectively. Therefore, both the second and third counting sequences are the target counting sequences.

[0078] Similarly, assuming the monitoring level is level 3, the preset monitoring threshold is 300kW. When the master table device detects that all storage areas of the cache ring are full, the master table device determines the target counting sequence. As shown in Table 3, the counting sequence for sampling data with amplitudes greater than 300kW is the third counting sequence; therefore, the third counting sequence is the target counting sequence.

[0079] S55. Monitor the electrical system based on the count value of the target count sequence and the storage length of the buffer ring.

[0080] In this step, the storage length is the number of storage areas in the cache line, where each storage area is used to store one sampled data. Referring to Table 3, assuming the monitoring level is monitoring level 1, the target count sequence value is the sum of the count values ​​of the first, second, and third count sequences, that is, the target count sequence value is 8.

[0081] As mentioned earlier, after the master table device writes the 10th sampled data "320" into the cache ring, the master table device detects that all storage areas of the cache ring are filled. Therefore, the storage length of the cache ring is 10. The master table device can monitor the electrical system based on the count value of the target count sequence and the storage length of the cache ring.

[0082] In this embodiment, different sampled data are categorized into corresponding counting sequences and counted during the storage of sampled data. When the buffer ring is full, the electrical system is monitored directly based on the count value of the target counting sequence and the storage length. On the one hand, this avoids a large number of repetitive operations such as sorting and judging required for counting later, thus saving running time in this part. On the other hand, since the storage length of the buffer ring is known when it is full, there is no need to calculate how many sampled data are stored in the buffer ring, which also saves running time in this part. In summary, this embodiment can save running time, which is beneficial to improving the problem of low real-time performance of existing electrical systems and improving the operating efficiency and real-time performance of electrical systems.

[0083] In some embodiments, the storage length of the buffer ring can be user-defined to match the monitoring level set by the user. In some embodiments, the master meter device obtains the sampling configuration information of the electrical system, which includes the sampling frequency and sampling duration. Based on the sampling configuration information, the storage length of the buffer ring is configured, where the storage length is the product of the sampling frequency and the sampling duration, i.e., Len_Constant = Period x Freq, where Freq is the sampling frequency and Period is the sampling duration.

[0084] The sampling duration is determined by the time from the start time to the end time. The sampling duration can be customized by the user based on engineering experience, such as 1 minute (equivalent to 60 seconds), 1 day (86,400 seconds), or 7 samples (604,800 seconds).

[0085] In some embodiments, the start time point can be a specified time point, and the end time point is the time point corresponding to the sampling interval of the specified time point. For example, the time axis includes time points t0, tm, t1, t2, tn, and t3, where t3-t2 = t2-t1 = t1-t0 = Δt = tn-tm = sampling duration. The designer can specify time point t0, tm, or t1 as the specified time point. When time point t0 is the start time point, then time point t1 is the end time point, and the sampling duration is time point t0 - time point t1. When time point tm is the start time point, then time point tn is the end time point, and the sampling duration is time point tn - time point tm. When time point t1 is the start time point, then time point t2 is the end time point, and the sampling duration is time point t1 - time point t2.

[0086] As mentioned earlier, when the user sets the sampling duration to 86400 seconds, and the start time of the main meter device is 0 seconds (i.e., the start time is 0 seconds), it will take 86400 seconds for the sampling to end at 86400 seconds. Therefore, the duration from 0 seconds to 86400 seconds is the sampling duration, and the main meter device can obtain the total power from 0 seconds to 86400 seconds.

[0087] In some embodiments, a smaller preset monitoring threshold corresponds to a longer sampling duration. Conversely, a larger preset monitoring threshold corresponds to a shorter sampling duration. For example, if the user sets the monitoring level to Level 1, the preset monitoring threshold is 200kW, and the sampling duration is 7 days (604,800 seconds). If the user sets the monitoring level to Level 2, the preset monitoring threshold is 250kW, and the sampling duration is 1 day (86,400 seconds). If the user sets the monitoring level to Level 3, the preset monitoring threshold is 300kW, and the sampling duration is 1 minute (60 seconds).

[0088] Because the higher the preset monitoring threshold and the shorter the sampling time, the easier it is for the main meter device to capture short-term changes in power. Furthermore, with the support of a relatively large preset ratio, even if a short-term high power occurs, the shutdown operation of the terminal device can only be triggered under the premise of a high confidence level in order to avoid frequent triggering of the shutdown operation, thereby improving the reliability of the electrical system.

[0089] In some embodiments, when determining the count series to which the sampled data of an electrical system belongs, please refer to Figure 6 S51 includes:

[0090] S511. Determine the numerical range corresponding to the sampling data of the electrical system.

[0091] S512. Traverse the count sequence corresponding to the sequence index of the numerical position.

[0092] In S511, the numerical range is used to measure the fluctuation range of the sampled data. There can be multiple numerical ranges, as shown in Table 3, where the numerical ranges are the 0th numerical range, the 1st numerical range, the 2nd numerical range, or the 3rd numerical range.

[0093] In S512, the sequence index is a label for the numerical value position, used to identify the corresponding numerical value position. Since there is a one-to-one correspondence between the numerical value position and the count sequence, the sequence index also corresponds one-to-one with the count sequence and can also identify the count sequence.

[0094] Table 4 is provided in this embodiment, as follows:

[0095] Table 4

[0096]

[0097] As shown in Table 4, once the master table device determines the numerical range corresponding to the sampled data, it can determine the counting sequence based on the column index of the numerical range. For example, the corresponding numerical range for sampled data "50" is the 0th numerical range, and the column index for the 0th numerical range is index0. The corresponding numerical range for sampled data "210" is the 1st numerical range, and the column index for the 1st numerical range is index1. The corresponding numerical range for sampled data "260" is the 2nd numerical range, and the column index for the 2nd numerical range is index2. The corresponding numerical range for sampled data "320" is the 3rd numerical range, and the column index for the 3rd numerical range is index3.

[0098] In some embodiments, when updating the count value of the count sequence based on a preset value corresponding to the sampled data, please refer to [reference needed]. Figure 7 S52 includes:

[0099] S521. Read the current count value of the counting sequence.

[0100] S522. Add the preset value corresponding to the sampled data to the current count value to obtain the sum.

[0101] S523. Update the current count value of the counting sequence based on the sum of the counts.

[0102] In S521, the current count value is the count value at the current moment.

[0103] In S522, as mentioned above, the preset value is fixed in each monitoring process. The preset value can be customized by the user, such as 1, 2, or 3. In some embodiments, the preset value is 1.

[0104] In S523, referring to Table 3, assuming that when counting sampled data 240, since the numerical range corresponding to sampled data 240 is the first numerical range, and the first numerical range is the first counting sequence, sampled data 240 corresponds to the first counting sequence. When the master count device counts sampled data 240, the current count value of the first counting sequence is 2. The master count device adds the preset value 1 corresponding to the sampled data to the current count value 2, obtaining a sum of 3. The master count device updates "3" to the first counting sequence; therefore, the updated current count value in the first counting sequence is 3.

[0105] In some embodiments, the cache ring is configured with a current pointer, which is used to point to a memory area. (See also...) Figure 8 S53 includes:

[0106] S531. Determine the mapping value based on the sampled data.

[0107] S532. Read the memory area currently pointed to by the pointer and get the return value.

[0108] S533. Store the mapped value in the memory area pointed to by the current pointer.

[0109] In S531, in some embodiments, the mapping value includes sampled data, and S531 includes: using the sampled data as the mapping value. In some embodiments, the mapping value includes the index of the numerical range corresponding to the sampled data, and S531 includes: determining the numerical range corresponding to the sampled data and using the index of the numerical range as the mapping value.

[0110] In S532, the storage area is used to store sampled data or data values ​​associated with the sampled data. The return value is the value that was stored in the storage area before the sampled data or data values ​​associated with the sampled data were stored. The return value can be the sampled data before it was overwritten or empty data (null).

[0111] In S533, the master table device stores sampled data in the memory area pointed to by the current pointer.

[0112] In some embodiments, after storing the mapped value in the memory area pointed to by the current pointer, please refer to Figure 9 S53 also includes:

[0113] S534. Update the current pointer according to the preset value to obtain the updated current pointer.

[0114] S535. Determine whether the updated current pointer is greater than the maximum pointer.

[0115] S536. If the updated current pointer is greater than the maximum pointer, change the updated current pointer to the minimum pointer.

[0116] S537. If the updated current pointer is not greater than the maximum pointer, keep the updated current pointer.

[0117] In S534, the preset value is added to the current pointer to obtain the addition result, and the addition result is used as the updated current pointer.

[0118] In S535, the maximum pointer is the pointer with the largest pointer in the cache ring. The maximum pointer can be defined by the user, as shown in Table 5 below, where the maximum pointer is H09.

[0119] In S536, the minimum pointer is the pointer with the smallest pointer in the cache ring. The minimum pointer can be defined by the user. In Table 5 provided below, the minimum pointer is H00. Since when the current pointer exceeds the maximum pointer, in order to satisfy the purpose of circular storage, the current pointer needs to be restored to the starting pointer, that is, restored to the minimum pointer.

[0120] In S537, since the updated current pointer is less than or equal to the maximum pointer, there is no need to restore the current pointer; it is sufficient to maintain the updated current pointer.

[0121] To illustrate the embodiments provided above in detail, Table 5 is provided below to explain the process of storing sampled data in the buffer ring, as shown in Table 5:

[0122] Table 5

[0123] pointer storage area code Mapping values ​​of storage area Pointer to H09 Storage Area 9 320 H08 Storage Area 8 274 H07 Storage Area 7 268 H06 Storage Area 6 280 H05 Storage Area 5 260 H04 Storage Area 4 240 H03 Storage Area 3 234 H02 Storage Area 2 210 H01 Storage Area 1 62 H00 Storage Area 0 50 ←

[0124] In Table 5, the mapping value is the sampled data; that is, the master table device stores the sampled data as the mapping value in the corresponding storage area.

[0125] As shown in Table 5, the storage length of the cache ring is 10. During initialization, the current pointer is H00, and all storage areas in the cache ring are empty.

[0126] When the sampled data "50" is written to the cache ring, the master table device reads the 0th storage area pointed to by the current pointer "H00", obtains the return value "null", and stores the sampled data "50" in the 0th storage area. The master table device adds the current pointer "H00" to the preset value "1" to obtain "H01". Therefore, the updated current pointer is "H01", in other words, the current pointer has jumped from pointing to the 0th storage area to pointing to the 1st storage area. Since the updated current pointer "H01" is not greater than the maximum pointer "H09", the master table device keeps the updated current pointer "H01".

[0127] When the sampled data "62" is written to the cache ring, the master table device reads the first storage area pointed to by the current pointer "H01", receives the return value "null", and stores the sampled data "62" in the first storage area. The master table device adds the current pointer "H01" to the preset value "1" to get "H02". Therefore, the updated current pointer is "H02". In other words, the current pointer has jumped from pointing to the first storage area to pointing to the second storage area. Since the updated current pointer "H02" is not greater than the maximum pointer "H09", the master table device keeps the updated current pointer "H02", and so on.

[0128] When the sampled data "320" is written to the buffer ring, the master table device reads the 9th storage area pointed to by the current pointer "H09", obtains the return value "null", and stores the sampled data "320" in the 9th storage area. The master table device adds the current pointer "H09" to the preset value "1" to obtain "H10". Therefore, the updated current pointer is "H10". Since the updated current pointer "H10" is greater than the maximum pointer "H09", the master table device changes the updated current pointer "H10" to the minimum pointer "H00". That is, the current pointer has jumped from pointing to the 9th storage area to pointing to the 0th storage area. Therefore, this embodiment can perform cyclic storage of sampled data within a specified storage length or within a limited storage length. This also shows that this embodiment does not require a large amount of repetitive sampled data for calculation during the monitoring process, which is beneficial to improving the operating efficiency and real-time performance of the electrical system.

[0129] In some embodiments, the difference from the embodiments provided in Table 5 is that the mapping values ​​in Table 6 are the column indices of the numerical ranges corresponding to the sampled data, as shown in Table 6:

[0130] Table 6

[0131] pointer storage area code Mapping values ​​of storage area Pointer to H09 Storage Area 9 Index3 H08 Storage Area 8 Index2 H07 Storage Area 7 Index2 H06 Storage Area 6 Index2 H05 Storage Area 5 Index2 H04 Storage Area 4 Index1 H03 Storage Area 3 Index1 H02 Storage Area 2 Index1 H01 Storage Area 1 index0 H00 Storage Area 0 index0 ←

[0132] As shown in Table 6, the difference between Table 6 and Table 5 in terms of data storage is that Table 5 directly stores the sampled data in the storage area, while Table 6 stores the index of the numerical range corresponding to the sampled data in the storage area. An example is given below:

[0133] When the sampled data "50" is written to the cache ring, the master table device determines that the numerical position corresponding to the sampled data "50" is the 0th numerical position, the column index of the 0th numerical position is index0, and stores index0 in the 0th storage area.

[0134] When the sampled data "210" is written to the cache ring, the master table device determines that the numerical position corresponding to the sampled data "210" is the first numerical position, the column index of the first numerical position is index1, and stores index1 in the second storage area.

[0135] In some embodiments, please refer to Figure 10 Monitoring methods for electrical systems include:

[0136] S56. When the cache ring is full, determine the count sequence to which the return value belongs. The return value is the mapping value that the current pointer points to in the cache ring.

[0137] S57. Subtract the current count value of the count sequence to which the return value belongs from the preset value to obtain the subtraction result.

[0138] S58. Update the current count value of the count sequence to which the return value belongs based on the subtraction result.

[0139] In S56, in some embodiments, when detecting whether the cache ring is full, if the current pointer of the cache ring is greater than the maximum pointer, then the cache ring is determined to be full. If the current pointer of the cache ring is less than or equal to the maximum pointer, then the cache ring is determined not to be full.

[0140] In some embodiments, the difference from the above embodiments is that when detecting whether the cache ring is full, the master table device obtains a return value and determines whether the return value is the initial value. If the return value is the initial value, the cache ring is not full; if the return value is not the initial value, the cache ring is full. The initial value is the value that the cache ring is initialized with. The initial value can be customized by the user, such as the initial value being null or 0.

[0141] As mentioned earlier, the mapping value is the index of the numerical range corresponding to the sampled data or the sampled data itself. Therefore, the return value can be either the index of the numerical range or the sampled data.

[0142] In some embodiments, when the return value is sampled data, please refer to Table 5. Assume that after the master table device has stored a set of sampled data W = {50, 62, 210, 234, 240, 260, 280, 268, 274, 320}, it continues to store sampled data "220". Specifically, after storing sampled data "320" in the 9th storage area pointed to by the current pointer "H09", the master table device updates the current pointer according to a preset value, obtaining the updated current pointer, i.e., updated current pointer = current pointer + 1 = H09 + 1 = H10. Since the new current pointer "H10" is greater than the maximum pointer "H09", the updated current pointer "H10" is changed to the minimum pointer "H00".

[0143] Overall, after storing the sampled data "320" in the 9th memory area pointed to by the current pointer "H09", the final current pointer is H00.

[0144] When storing the sampled data "220", the master table device reads the mapping value pointed to by the current pointer "H00" in the cache ring, that is, it reads the sampled data pointed to by the current pointer "H00". As shown in Table 5, the sampled data pointed to by the current pointer "H00" is "50", that is, the return value R0 = 50.

[0145] Since "50" is not an initial value, the master table device detects that the cache ring is full. Therefore, the master table device determines the counting sequence to which the return value R0 = 50 belongs. As shown in Table 3, the counting sequence to which the return value R0 = 50 belongs is the 0th counting sequence.

[0146] It is understandable that after storing the sampled data "320", that is, when the buffer ring is full, the current count value of the 0th counting sequence is 2.

[0147] When S57 is executed, the master table device subtracts the current count value 2 of the 0th count column to which the return value RO=50 belongs from the preset value 1, and obtains the subtraction result 1.

[0148] When S58 is executed, the total table device updates the count value of the 0th count column to which the return value RO=50 belongs based on the subtraction result 1, and the current count value of the 0th count column is 1.

[0149] And so on... When the cache ring is full, as new sampled data is loaded into the cache ring, old sampled data will be continuously discarded and new sampled data will be continuously filled in according to the first-in-first-out method. The storage length of the cache ring is used as the loop length, so that it can continue to work normally.

[0150] In addition, this embodiment can automatically and cleverly delete old sampling data from the preset values ​​of the corresponding counting sequence, thereby ensuring that the counting sequence can reflect the changes in the sampling data and ensuring reliable and accurate monitoring of the electrical system.

[0151] In some embodiments, when the return value is a data index, please refer to Table 6. Assume that after the master table device has stored a set of sampled data W = {50,62,210,234,240,260,280,268,274,320}, it continues to store sampled data "220".

[0152] When storing the sampled data "220", the master table device reads the mapping value pointed to by the current pointer "H00" in the cache ring, that is, it reads the data index pointed to by the current pointer "H00". As shown in Table 6, the data index pointed to by the current pointer "H00" is "index0", that is, the return value R0 = index0.

[0153] Since "index0" is not an initial value, the master table device detects that the cache ring is full. Therefore, the master table device determines the counting sequence to which the return value R0 = index0 belongs. As shown in Table 4, the counting sequence to which the return value R0 = index0 belongs is the 0th counting sequence.

[0154] When S57 is executed, the master table device subtracts the current count value 2 of the 0th count column to which the return value RO = index0 belongs from the preset value 1, and obtains the subtraction result 1.

[0155] When S58 is executed, the total table device updates the count value of the 0th count column to which the return value RO = index0 belongs based on the subtraction result of 1, and the current count value of the 0th count column is 1.

[0156] Compared to the first method, which directly stores the sampled data as the mapping value in the cache ring, this embodiment uses the second method, which stores the column index as the mapping value in the cache ring. Since each count column is identified using a column index, in the first method, when the return value is sampled data, the master table device needs to first determine which value range the sampled data falls into, then determine the column index of that value range, and finally find the count column based on the column index.

[0157] In the second approach, when the return value is a column index, the master table device directly finds the count column based on the column index, which further reduces the corresponding judgment steps and helps improve the efficiency of updating the current count value of the count column.

[0158] In some embodiments, when monitoring an electrical system based on the count values ​​of the target count sequence and the storage length of the buffer ring, please refer to... Figure 11 S55 includes:

[0159] S551. Add the current count values ​​of at least one target count sequence to obtain a total value.

[0160] S552. Calculate the trigger ratio of the electrical system based on the total value and the storage length of the buffer ring.

[0161] S553. Monitor the electrical system according to the trigger ratio and the preset ratio.

[0162] In S551, when there is only one target count sequence, the current count value of the target count sequence is the total value. When there are two or more target count sequences, the total value is the sum of the current count values ​​of all target count sequences.

[0163] In S552, the master table device calculates the trigger ratio according to the following formula: ψ = P / L, where ψ is the trigger ratio, P is the total value, and L is the storage length.

[0164] In S553, in some embodiments, the electrical system includes multiple terminal devices with different priorities. S553 includes: determining whether the trigger ratio is greater than or equal to a preset ratio; if the trigger ratio is greater than or equal to the preset ratio, controlling each terminal device according to the priority of the terminal device; if the trigger ratio is less than the preset ratio, continuing to acquire the next sampling data of the electrical system.

[0165] Priority is used to indicate the importance level of each terminal device. The lower the importance of a terminal device, the lower its priority; the higher the importance of a terminal device, the higher its priority. Lower priority means a terminal device is easier to shut down, and higher priority means a terminal device is less likely to be shut down. For example, terminal devices can be configured with priorities decreasing sequentially: first priority, second priority, third priority, fourth priority, etc. The master device will first shut down the fourth priority terminal devices. After all fourth priority terminal devices are shut down, if further shutdown is needed, then the third priority terminal devices will be shut down. After all third priority terminal devices are shut down, if further shutdown is needed, then the second priority terminal devices will be shut down. After all second priority terminal devices are shut down, if further shutdown is needed, then the first priority terminal devices will be shut down.

[0166] In some embodiments, the smart terminal sends priority configuration information to the main meter device, wherein the priority configuration information includes the priority of each terminal device. Based on the priority configuration information, the main meter device determines the priority of the branch meter device corresponding to each terminal device. Since there is a correspondence between the branch meter device and the terminal device, the priority of the terminal device can be mapped to the priority of the branch meter device electrically connected to it. Subsequently, the main meter device controls the shutdown of the branch meter devices according to the priority configuration information, thereby controlling the shutdown of the terminal devices.

[0167] It is understood that in some embodiments, the topology of the meter system may omit branch meter devices, that is, the main meter device is directly connected to the terminal device, and the working status of the terminal device may be controlled by the method provided herein.

[0168] This embodiment can manage the shutdown / on of terminal devices in abnormal situations in a more scientific and reasonable way, and manage terminal devices more intelligently. It avoids shutting down all terminal devices indiscriminately, which would cause unnecessary impact on production operations or family life, and is conducive to improving the user experience.

[0169] In some embodiments, the preset monitoring threshold, sampling duration, and preset ratio are interrelated; the larger the preset monitoring threshold, the shorter the sampling duration, and the larger the preset ratio.

[0170] For example, if the preset monitoring threshold is 200kW, the selected sampling duration is 7 days (604,800 seconds), and the preset ratio is 10%. If the preset monitoring threshold is 250kW, the selected sampling duration is 1 day (86,400 seconds), and the preset ratio is 20%. If the preset monitoring threshold is 300kW, the selected sampling duration is 1 minute (60 seconds), and the preset ratio is 50%.

[0171] Because the higher the preset monitoring threshold and the shorter the sampling time, the easier it is for the main meter device to capture short-term changes in power. Furthermore, with the support of a relatively large preset ratio, even if a short-term high power occurs, the shutdown operation of the terminal device can only be triggered under the premise of a high confidence level in order to avoid frequent triggering of the shutdown operation, thereby improving the reliability of the electrical system.

[0172] In some embodiments, before obtaining sampling data, please refer to Figure 12 Monitoring methods for electrical systems also include:

[0173] S59. Obtain the monitoring configuration information of the electrical system, wherein the monitoring configuration information includes the target monitoring level of the electrical system.

[0174] S60. Select the reference monitoring threshold, reference duration, and reference ratio corresponding to the target monitoring level based on the monitoring configuration information.

[0175] S61. Use the reference monitoring threshold as the preset monitoring threshold, the reference duration as the sampling duration, and the reference ratio as the preset ratio.

[0176] In S59, monitoring configuration information can be sent from the smart terminal to the main meter device. This monitoring configuration information is used to configure the main meter device to select the appropriate monitoring strategy. The monitoring level indicates the level at which the main meter device monitors the meter system. The monitoring level can be user-defined. In some embodiments, the monitoring level includes a first monitoring level, a second monitoring level, and a third monitoring level, with the target monitoring level being one of these multiple monitoring levels.

[0177] In S60, users pre-configure multiple sets of monitoring levels, reference monitoring thresholds, reference durations, and reference ratios in the master table device.

[0178] For example, at the first monitoring level, the reference monitoring threshold is 200kW, the reference duration is 7 days (604,800 seconds), and the reference ratio is 10%. At the second monitoring level, the reference monitoring threshold is 250kW, the reference duration is 1 day (86,400 seconds), and the reference ratio is 20%. At the third monitoring level, the reference monitoring threshold is 300kW, the reference duration is 1 minute (60 seconds), and the reference ratio is 50%.

[0179] In S61, when the target monitoring level is the first monitoring level, the reference monitoring threshold is 200kW, the reference duration is 7 days (604,800 seconds), and the reference ratio is 10%. Therefore, when acquiring sampling data subsequently, the sampling data is the total power at each sampling time point within 7 days. The trigger ratio is calculated based on the number of targets with a total power greater than 200kW. Determining whether the trigger ratio is greater than or equal to the preset ratio involves checking if the trigger ratio is greater than or equal to 10%.

[0180] Similarly, when the target monitoring level is the second monitoring level, the reference monitoring threshold is 250kW, the reference duration is 1 day (86,400 seconds), and the reference ratio is 20%. Therefore, when acquiring sampling data subsequently, the sampling data is the total power at each sampling time point within 1 day. The trigger ratio is calculated based on the number of targets with a total power greater than 250kW. Determining whether the trigger ratio is greater than or equal to the preset ratio involves checking if the trigger ratio is greater than or equal to 20%.

[0181] When the target monitoring level is level three, the reference monitoring threshold is 300kW, the reference duration is 1 minute (60 seconds), and the reference ratio is 50%. Therefore, when acquiring sampling data subsequently, the sampling data is the total power at each sampling time point within 1 minute. The trigger ratio is calculated based on the number of targets with a total power greater than 300kW. Determining whether the trigger ratio is greater than or equal to the preset ratio involves checking if the trigger ratio is greater than or equal to 50%.

[0182] In some embodiments, controlling each terminal device according to its priority includes: shutting down each terminal device in ascending order of priority. Therefore, this embodiment can selectively shut down terminal devices, keeping more important terminal devices in operation as much as possible and shutting down less important terminal devices first, thereby improving the robustness of the electrical system and the user experience.

[0183] In some embodiments, shutting down each terminal device in ascending order of priority includes: searching for the lowest priority terminal device among all the terminal devices in operation and shutting down the lowest priority terminal device.

[0184] In some embodiments, after shutting down the lowest priority terminal device, the electrical system monitoring based on the sampled data further includes clearing the stored data of the buffer ring. Therefore, this embodiment does not require a large amount of historical data to participate in the calculation and monitoring, thereby increasing the real-time performance of the electrical system and improving the computational efficiency.

[0185] For example, please combine Figure 3 The first terminal device has the highest priority, the second terminal device has the highest priority, and the third terminal device has the highest priority. The user configures the monitoring level of the electricity meter system to be the second monitoring level, that is: the reference monitoring threshold is 250kw, the reference duration is 1 day (86400 seconds), and the reference ratio is 20%.

[0186] During the first sampling period from second 0 to second 86400, the master meter device calculates the trigger ratio as 30% based on the power distribution data. Since the trigger ratio of 30% is greater than the preset ratio of 20%, the master meter device shuts down each terminal device in order of priority from low to high. Among the terminal devices in the working state, the master meter device searches for the terminal device with the lowest priority.

[0187] like Figure 3 As the first, second, and third terminal devices are all in operation, and the third terminal device has the lowest priority, the master table device identifies the third terminal device as the lowest priority terminal device and shuts it down. After shutting down the third terminal device, the master table device clears the stored data in the cache ring, such as clearing the power distribution data from second 0 to second 86400.

[0188] During the second sampling period from 86401 seconds to 172800 seconds, the master meter device calculates the trigger ratio as 50% based on the power distribution data. Since the trigger ratio of 30% is greater than the preset ratio of 20%, the master meter device shuts down each terminal device in order of priority from low to high. Specifically, among the terminal devices in the working state, the master meter device searches for the terminal device with the lowest priority.

[0189] like Figure 3As the third terminal device has been shut down, the first and second terminal devices are still operational. Among them, the second terminal device has the lowest priority. Therefore, the master table device identifies the second terminal device as the lowest priority and shuts it down. After shutting down the second terminal device, the master table device clears the stored data in the cache ring, such as clearing the power distribution data from second 86401 to second 172800, and so on.

[0190] In some embodiments, after shutting down the lowest priority terminal device, the monitoring method of the electrical system further includes: acquiring short-time distribution data, which includes sampling data of each terminal device at each sampling time point within a target duration, wherein the target duration is less than the sampling duration; determining whether the short-time distribution data meets the conditions for an over-level alarm; if so, generating an over-level alarm message; otherwise, recording the sampling data at each sampling time point.

[0191] Short-time distribution data represents the distribution of sampled data at each sampling time point within a target duration. For example, if the monitoring level of the electricity meter system is Level 1, as mentioned earlier, the sampling duration is 7 days (604,800 seconds), then the target duration is 1 day, and the short-time distribution data represents the sampled data from each terminal device at each sampling time point within that day. If the monitoring level of the electricity meter system is Level 2, as mentioned earlier, the sampling duration is 1 day (86,400 seconds), then the target duration is 1 hour, and the short-time distribution data represents the sampled data from each terminal device at each sampling time point within that hour. If the monitoring level of the electricity meter system is Level 3, as mentioned earlier, the sampling duration is 1 minute (60 seconds), then the target duration is 15 seconds, and the short-time distribution data represents the sampled data from each terminal device at each sampling time point within those 15 seconds.

[0192] In some embodiments, determining whether short-term distribution data meets the criteria for an over-level alarm includes: based on the short-term distribution data, determining whether the sampled data is continuously greater than or equal to a preset monitoring threshold for a preset duration. If so, the over-level alarm criteria are met; otherwise, they are not. For example, if the preset duration is 5 minutes and the target monitoring level is the second monitoring level, and the sampled data representing total power is continuously greater than 250 kW for 5 minutes, the over-level alarm criteria are met. If the sampled data representing total power is intermittently greater than 250 kW or consistently less than 250 kW, the over-level alarm criteria are not met.

[0193] The difference from the above embodiments is that determining whether the short-term distribution data meets the conditions for an over-level alarm includes: calculating the target trigger ratio based on the short-term distribution data, and determining whether the over-level alarm conditions are met based on the target trigger ratio and the preset ratio.

[0194] In some embodiments, calculating the target trigger ratio based on short-term distribution data includes: determining the number of escalating alarms and the total number of escalating alarms based on short-term distribution data, wherein the number of escalating alarms is the sum of the number of alarms with total power greater than a preset monitoring threshold, and calculating the target trigger ratio based on the number of escalating alarms and the total number of escalating alarms.

[0195] In some embodiments, determining whether the conditions for an over-level alarm are met based on the target trigger ratio and the preset ratio includes: determining whether the target trigger ratio is greater than or equal to the preset ratio.

[0196] If the short-term distributed data meets the conditions for a tiered alarm, the master meter device will generate a tiered alarm message. For example, the master meter device may send a tiered alarm message to the smart terminal. The tiered alarm message is used to prompt the user to manually shut down the corresponding terminal device that is in operation. The tiered alarm message can be any form of alarm message, such as voice alarm message, SMS notification message, or flashing alarm message.

[0197] If the short-term distributed data does not meet the conditions for an over-level alarm, the master meter device records the total power at each sampling time point. For example, if the preset duration is 5 minutes and the target monitoring level is the second monitoring level, and the total power is intermittently greater than 250kw, then the short-term distributed data does not meet the conditions for an over-level alarm, and the master meter device needs to calculate the total power at each sampling time point after 5 minutes.

[0198] When the terminal device is turned off according to the sampling duration, considering that the abnormal phenomenon may continue or may not be completely and reliably eliminated, this embodiment can capture short-term distribution data with a shorter target duration for advance judgment, so as to enable more reliable system monitoring and thus improve the reliability of system monitoring.

[0199] In some embodiments, the monitoring method for an electrical system further includes: determining the number of times a terminal device is turned off, and adjusting the priority of the terminal device based on the number of times it is turned off and a preset turn-off threshold.

[0200] The shutdown count refers to the number of times the terminal device is shut down after a cascading alarm is generated. In some embodiments, after a cascading alarm is generated, the master table device monitors the working status of the terminal device, selects the terminal device that has changed from the on state to the off state as the reference device, and accumulates the shutdown count of the reference device. For example, each time a cascading alarm is generated, the master table device monitors which terminal device in the on state is manually shut down by the user and records the shutdown count of the terminal device accordingly.

[0201] The preset shutdown threshold can be customized by the user based on engineering experience.

[0202] In some embodiments, adjusting the priority of the terminal device based on the number of shutdowns and a preset shutdown threshold includes: determining whether the number of shutdowns is greater than or equal to the preset shutdown threshold; if so, reducing the priority of the terminal device; if not, maintaining the priority of the terminal device.

[0203] For example, please combine Figure 3 The first terminal device's original priority is first priority, with a preset shutdown count of 3. When the first escalation alarm occurs, the first terminal device is manually shut down by the user once, and the master table records 1. When the second escalation alarm occurs, the first terminal device is manually shut down by the user once, and the master table records 2. When the third escalation alarm occurs, the first terminal device is manually shut down by the user once, and the master table records 3. Since the shutdown count equals the preset shutdown threshold, the master table reduces the first terminal device's priority from first priority to second priority.

[0204] This embodiment learns the user's habit of turning off corresponding terminal devices and controls the turning off and on of corresponding terminal devices according to the user's habits, so that the monitoring strategy can be more in line with the user's habits, thereby improving the intelligence of the electricity meter system and enhancing the user experience.

[0205] In some embodiments, the monitoring method for an electrical system further includes: determining the number of times a terminal device is turned on, and adjusting the priority of the terminal device based on the number of times it is turned on and a preset threshold.

[0206] The number of times a terminal device is turned on is the number of times it has been manually turned on again after being turned off. In some embodiments, after a terminal device is turned off, the master table device monitors the working status of the terminal device, selects the terminal device that has entered the on state from the off state as a candidate device, and accumulates the number of times the candidate device is turned on. For example, each time a terminal device is turned off, the master table device monitors which terminal device in the off state is manually turned on by the user and records the number of times the terminal device is turned on.

[0207] The preset activation threshold can be customized by the user based on their engineering experience.

[0208] In some embodiments, adjusting the priority of the terminal device based on the number of times it is opened and a preset opening threshold includes: determining whether the number of times it is opened is greater than or equal to the preset opening threshold; if so, increasing the priority of the terminal device; if not, maintaining the priority of the terminal device.

[0209] For example, please combine Figure 3The third terminal device's original priority is third priority, with a preset activation count of 3. When the third terminal is shut down for the first time, it is manually activated by the user once, and the master table records 1. When the third terminal is shut down for the second time, it is manually activated by the user once, and the master table records 2. When the third terminal is shut down for the third time, it is manually activated by the user once, and the master table records 3. Since the activation count equals the preset activation threshold, the master table increases the third terminal device's priority from third to second priority.

[0210] This embodiment learns users' habits of turning on and off corresponding terminal devices, and controls the turning on and off of corresponding terminal devices according to users' habits, so that the monitoring strategy can be more in line with users' habits, thereby improving the intelligence of the electricity meter system and enhancing the user experience.

[0211] It should be noted that in the above embodiments, there is no necessarily a certain order between the steps. Those skilled in the art can understand from the description of the embodiments of the present invention that the above steps may have different execution orders in different embodiments, that is, they may be executed in parallel or in turn, etc.

[0212] Please see Figure 13 , Figure 13 This is a circuit structure diagram of an electronic device provided as an embodiment of the present invention. The electronic device can be a master meter device or other electronic products with logical operation functions. For example... Figure 13 As shown, the electronic device 130 includes one or more processors 131 and a memory 132. Wherein, Figure 13 Take a processor 131 as an example.

[0213] Processor 131 and memory 132 can be connected via a bus or other means. Figure 13 Taking the example of a connection between China and Israel via a bus.

[0214] The memory 132, as a storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as the program instructions / modules corresponding to the electrical system monitoring method in the embodiments of the present invention. The processor 131 implements the functions of the electrical system monitoring method embodiments provided above by running the non-volatile software programs, instructions, and modules stored in the memory 92.

[0215] Memory 132 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some embodiments, memory 132 may optionally include memory remotely located relative to processor 131, and such remote memory may be connected to processor 131 via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0216] The program instructions / modules are stored in the memory 132 and, when executed by one or more processors 131, perform the electrical system monitoring method in any of the above method embodiments.

[0217] This invention also provides a storage medium storing computer-executable instructions that are executed by one or more processors, for example... Figure 13 One of the processors 131 can enable the one or more processors to execute the monitoring method of the electrical system in any of the above method embodiments.

[0218] This invention also provides a computer program product, which includes a computer program stored on a non-volatile computer-readable storage medium. The computer program includes program instructions that, when executed by an electronic device, cause the electronic device to perform any of the electrical system monitoring methods described above.

[0219] The device or equipment embodiments described above are merely illustrative. The unit modules described as separate components may or may not be physically separate. The components shown as module units may or may not be physical units; that is, they may be located in one place or distributed across multiple network module units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0220] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented using software plus a general-purpose hardware platform, or of course, using hardware. Based on this understanding, the above technical solutions, in essence or the parts that contribute to the related technology, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0221] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; under the concept of the present invention, the technical features of the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other variations of different aspects of the present invention as described above, which are not provided in detail for the sake of brevity; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A monitoring method for an electrical system, characterized in that, include: Determine the counting sequence to which the sampled data of the electrical system belongs; The count value of the counting sequence is updated according to the preset value corresponding to the sampled data; The sampled data is mapped to a cache ring, which is configured with a current pointer. When the buffer ring is detected to be full, a target count sequence of the electrical system is determined, wherein the count value of the target count sequence corresponds to the amplitude of the sampled data that is greater than a preset monitoring threshold; The electrical system is monitored based on the count values ​​of the target count sequence and the storage length of the buffer ring; The method further includes: When the cache ring is detected to be full, the count sequence to which the return value belongs is determined, and the return value is the mapping value pointed to by the current pointer in the cache ring; Subtract the current count value of the count sequence to which the returned value belongs from the preset value to obtain the subtraction result; Update the current count value of the count sequence to which the return value belongs based on the subtraction result.

2. The method according to claim 1, characterized in that, The determination of the counting sequence to which the sampled data of the electrical system belongs includes: Determine the numerical range corresponding to the sampling data of the electrical system; Traverse the count sequence corresponding to the sequence index of the stated value level.

3. The method according to claim 1, characterized in that, The step of updating the count value of the count sequence according to the preset value corresponding to the sampled data includes: Read the current count value of the count sequence; Add the preset value corresponding to the sampled data to the current count value to obtain the sum; Update the current count value of the counting sequence based on the summation result.

4. The method according to claim 1, characterized in that, The step of mapping the sampled data to the cache ring includes: Determine the mapping value based on the sampled data; Read the memory area pointed to by the current pointer and obtain the return value; The mapped value is stored in the memory area pointed to by the current pointer.

5. The method according to claim 4, characterized in that, The step of mapping the sampled data to the cache ring also includes: The current pointer is updated according to a preset value to obtain the updated current pointer; Determine whether the updated current pointer is greater than the maximum pointer; If the updated current pointer is greater than the maximum pointer, change the updated current pointer to the minimum pointer; If the updated current pointer is not greater than the maximum pointer, keep the updated current pointer.

6. The method according to claim 4, characterized in that, The mapping value is either the index of the numerical range corresponding to the sampled data or the sampled data itself.

7. The method according to claim 1, characterized in that, The detection that the buffer ring is full includes: Get the return value; Determine whether the return value is an initialized value; If the return value is the initial value, then the cache ring is not full; If the return value is not the initial value, then the cache ring is full.

8. The method according to claim 1, characterized in that, The monitoring of the electrical system based on the count values ​​of the target count sequence and the storage length of the buffer ring includes: Add the current count values ​​of at least one of the target count sequences together to obtain a total value; The trigger ratio of the electrical system is calculated based on the total value and the storage length of the buffer ring; The electrical system is monitored according to the trigger ratio and the preset ratio.

9. The method according to claim 8, characterized in that, The electrical system includes multiple terminal devices with different priorities, and the monitoring of the electrical system according to the trigger ratio and the preset ratio includes: Determine whether the trigger ratio is greater than or equal to a preset ratio; If so, then each terminal device is controlled according to its priority; If not, then continue to acquire the next sample data of the electrical system.

10. The method according to any one of claims 1 to 9, characterized in that, Also includes: Obtain the sampling configuration information of the electrical system, the sampling configuration information including the sampling frequency and sampling duration; Configure the storage length of the buffer ring according to the sampling configuration information, wherein the storage length is the product of the sampling frequency and the sampling duration.

11. The method according to any one of claims 1 to 9, characterized in that, Also includes: Obtain the monitoring configuration information of the electrical system, wherein the monitoring configuration information includes the target monitoring level of the electrical system; Based on the monitoring configuration information, select the reference monitoring threshold, reference duration, and reference ratio corresponding to the target monitoring level; The reference monitoring threshold is used as the preset monitoring threshold, the reference duration is used as the sampling duration, and the reference ratio is used as the preset ratio.

12. A storage medium, characterized in that, The device stores computer-executable instructions for causing an electronic device to perform a monitoring method for an electrical system as described in any one of claims 1 to 11.

13. An electronic device, characterized in that, include: At least one processor; as well as, A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the monitoring method of the electrical system as described in any one of claims 1 to 11.

Citation Information

Patent Citations

  • Fault detector, fault detection method, and fault detection program

    CN101523307A

  • Method and system for monitoring data cache

    CN103326958A

  • Cold and hot data identification threshold value calculation method, device and system

    CN103631538A

  • Anomaly monitoring method, device and server

    CN109088775A

  • Intelligent monitoring method and device, electronic equipment and readable storage medium

    CN112527599A