Device bottom current determination method and apparatus

By using quantitative rules to filter the current data of the device, the bottom current of the device can be determined, which solves the problem that the bottom current cannot be accurately calculated in the existing technology and realizes the accuracy of the analysis of abnormal power consumption of the device.

CN116381304BActive Publication Date: 2026-02-06UNISOC CHONGQING TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211406823.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-10
Publication Date
2026-02-06
Estimated Expiration
2042-11-10

AI Technical Summary

Technical Problem

Existing technologies cannot accurately determine the bottom current of a device, which affects the analysis of abnormal power consumption.

Method used

By acquiring the current data of the device, the current quantization value is determined based on the quantization rules. Current data with the same current quantization value are assigned to the same quantization space, and the effective quantization space is selected from multiple quantization spaces to calculate the device's bottom current.

Benefits of technology

Accurate calculation of the equipment's bottom current provides a basis for power consumption analysis and improves the accuracy of power consumption anomaly analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116381304B_ABST
    Figure CN116381304B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of computer, and especially relates to a device bottom current determination method and device. First, current data of a device is acquired, and based on a quantification rule, a current quantification value of each current data is determined, then current data with the same current quantification value is distributed to the same quantification space, an effective quantification space is screened out from multiple quantification spaces, and the bottom current of the device is determined according to current data in the effective quantification space. By screening out effective current data from multiple current data, the bottom current of the device can be accurately calculated, which provides a basis for power consumption analysis of the device.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of computer, and in particular, to a device bottom current determination method and device. BACKGROUND

[0002] Sometimes, the device has abnormal power consumption in standby process. In the process of solving the device power consumption abnormality, determining the cause of the device power consumption abnormality is a very important step. The bottom current usually refers to the current of the device when it is completely sleeping. The bottom current abnormality is one of the causes of the device power consumption abnormality. Real-time detection of the bottom current of the device can help analyze the device power consumption abnormality.

[0003] At present, the current of the device is usually detected by using automatic test technology, which can effectively alleviate the pressure of manpower and equipment. However, the current automatic test can only obtain the average value, minimum value and maximum value of the current, and cannot determine the bottom current of the device, which affects the analysis of the device power consumption abnormality. SUMMARY

[0004] The embodiment of the present application provides a device bottom current determination method and device, which can accurately calculate the bottom current of the device by screening effective current data from a plurality of current data, and provides a basis for power consumption analysis of the device.

[0005] In a first aspect, the embodiment of the present application provides a device bottom current determination method, comprising:

[0006] obtaining current data of a device;

[0007] determining a current quantification value of each current data based on a quantification rule;

[0008] allocating the current data with the same current quantification value to the same quantification space;

[0009] screening an effective quantification space from a plurality of quantification spaces, and determining a bottom current of the device according to the current data in the effective quantification space.

[0010] In an embodiment, the obtaining of the current data of the device comprises:

[0011] determining a sampling period;

[0012] obtaining a plurality of discrete current data in the continuous current data of the device based on the sampling period.

[0013] In an embodiment, the determining of the current quantification value of each current data based on the quantification rule comprises:

[0014] obtaining a preset quantification standard value;

[0015] The quotient of the current data and the quantization standard value is determined as the current quantization value corresponding to the current data.

[0016] In one embodiment, each of the quantization spaces is associated with a corresponding space value;

[0017] The step of allocating current data with the same current quantization value to the same quantization space includes:

[0018] For any current data, if there exists a quantization space with the same spatial value as the current quantization value of the current data, then the current data is assigned to the quantization space.

[0019] For any current data, if there is no quantization space with the same spatial value as the current quantization value of the current data, then a new quantization space is created and the current data is assigned to the new quantization space, wherein the spatial value of the new quantization space is the same as the current quantization value of the current data.

[0020] In one embodiment, before filtering out the effective quantization space from multiple quantization spaces, the method further includes:

[0021] Determine the number of current data points contained in each quantization space.

[0022] In one embodiment, the step of filtering out the effective quantization space from multiple quantization spaces includes:

[0023] The quantization spaces are respectively defined as the first quantization space to the Nth quantization space in ascending order of space values;

[0024] Determine the difference between the spatial values ​​of any two adjacent quantization spaces from the first quantization space to the Mth quantization space, and determine the maximum value of the difference as the quantization decision value, where M is any integer between 1 and N;

[0025] If there exists an Xth quantization space such that the sum of the space value of the Xth quantization space and the quantization determination value is less than the space value of the (X+1)th quantization space, and the number of data in the Xth quantization space is greater than or equal to the number of data in the (X+1)th quantization space, then the 1st quantization space to the Xth quantization space are determined as the effective quantization space, where X is any integer between 1 and N;

[0026] If the Xth quantization space does not exist, then all quantization spaces from the 1st to the Nth quantization space are determined as the effective quantization space.

[0027] In one embodiment, determining the device's bottom current based on current data in the effective quantization space includes:

[0028] The average value of the current data contained in the effective quantization space is determined as the base current of the device.

[0029] Secondly, embodiments of the present invention provide a device for determining the device's bottom current, comprising:

[0030] The acquisition module is used to acquire the current data of the device;

[0031] The determination module is used to determine the current quantization value of each current data based on quantization rules;

[0032] The allocation module is used to allocate current data with the same current quantization value to the same quantization space;

[0033] The processing module is used to filter out the effective quantization space from multiple quantization spaces and determine the bottom current of the device based on the current data in the effective quantization space.

[0034] Thirdly, embodiments of the present invention provide an electronic chip, comprising:

[0035] At least one processor; and

[0036] At least one memory communicatively connected to the processor, wherein:

[0037] The memory stores program instructions, and the processor can execute the method provided in the first aspect by calling the program instructions.

[0038] Fourthly, embodiments of the present invention provide a computer-readable storage medium comprising a stored program, wherein the program, when executed by a processor, implements the method provided in the first aspect.

[0039] In this embodiment of the invention, current data of the device is first acquired, and based on quantization rules, the current quantization value of each current data point is determined. Then, current data points with the same quantization value are assigned to the same quantization space. Valid quantization spaces are selected from multiple quantization spaces, and the device's bottom current is determined based on the current data within those valid quantization spaces. By selecting valid current data from multiple current data points, the device's bottom current can be accurately calculated, providing a basis for power consumption analysis of the device. Attached Figure Description

[0040] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0041] Figure 1 A flowchart of a method for determining the bottom current of a device provided in an embodiment of the present invention;

[0042] Figure 2 A flowchart of another method for determining the device bottom current provided in an embodiment of the present invention;

[0043] Figure 3 A flowchart of another method for determining the device bottom current provided in an embodiment of the present invention;

[0044] Figure 4 A flowchart of another method for determining the device bottom current provided in an embodiment of the present invention;

[0045] Figure 5 This is a schematic diagram of a device for determining the device's bottom current, provided in an embodiment of the present invention.

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

[0047] To better understand the technical solutions in this specification, the embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

[0048] It should be understood that the described embodiments are merely some, not all, of the embodiments in this specification. All other embodiments obtained by those skilled in the art based on the embodiments in this specification without inventive effort are within the scope of protection of this specification.

[0049] The terminology used in the embodiments of this invention is for the purpose of describing particular embodiments only and is not intended to be limiting of this specification. The singular forms “a,” “the,” and “the” as used in the embodiments of this invention and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.

[0050] The detection of the bottom current can provide a basis for the power consumption analysis of the device. At present, the current detection of the device usually uses automated detection technology. However, the current automated test can only obtain the average, minimum and maximum current values, and cannot determine the bottom current of the device, which affects the analysis of abnormal power consumption.

[0051] Figure 1 This is a flowchart illustrating a method for determining the bottom current of a device, provided in an embodiment of the present invention. This method can be applied to processing devices, such as personal computers and servers. The following embodiments use a server as the executing device for further description. Figure 1 As shown, the method may include:

[0052] Step 101: Obtain the current data of the device.

[0053] In this embodiment of the invention, the current data of the device can be obtained by sampling the current of the device in standby mode. The current of the device in standby mode typically has the following characteristics: (1) if the base current value is y, then the current values ​​are distributed in the interval near y; (2) within the interval near the base current value, the closer the current value is to the base current value y, the greater the probability of its occurrence; the farther the current value is from the base current value y, the smaller the probability of its occurrence. That is, within the interval of the base current value distribution, the closer the current value is to the base current value y, the denser the current values ​​appear; the farther the current value is from the base current value y, the sparser the current values ​​appear. Based on the above current characteristics, the server can determine the valid current data that meets the conditions from the sampled current data, and take the average of the valid current data to determine the base current of the device.

[0054] In one embodiment, when collecting current data from a device, the server first determines the sampling period, and then acquires multiple discrete current data points from the continuous current data of the device based on the sampling period. For example, if the sampling period is set to 0.01 seconds, 3000 current data points can be collected within 30 seconds.

[0055] Step 102: Based on the quantization rules, determine the current quantization value for each current data point.

[0056] In determining the current quantization value, the server first obtains a preset quantization standard value, then divides each current data point by the quantization standard value, and uses the quotient as the corresponding current quantization value. The quantization standard value is a value preset and stored by the server and can be appropriately set according to actual requirements.

[0057] Step 103: Assign current data with the same current quantization value to the same quantization space.

[0058] In this embodiment of the invention, each quantization space is associated with a space value. The server allocates current data to the corresponding quantization space based on the current quantization value of the current data and the space value of the quantization space. Specifically, the process may include: for any current data, if a quantization space exists with the same space value as the current quantization value of the current data, the server allocates the current data to that quantization space; for any current data, if no quantization space exists with the same space value as the current quantization value of the current data, the server creates a new quantization space and allocates the current data to the newly created quantization space, wherein the space value of the newly created quantization space is the same as the current quantization value of the current data. Simultaneously with the allocation of current data to the corresponding quantization space, the server updates the number of current data items contained in this quantization space and the sum of the current data values.

[0059] Step 104: Select the effective quantization space from multiple quantization spaces, and determine the device's bottom current based on the current data in the effective quantization space.

[0060] The current data contained in the effective quantization space can be considered as effective current data. The server can determine the average of the effective current data as the device's base current. After the server allocates all the collected current data to the corresponding quantization space, it determines the quantization spaces from the 1st quantization space to the Nth quantization space in ascending order of space value, with the 1st quantization space having the smallest space value and the Nth quantization space having the largest space value. Then, the first M quantization spaces are selected from the N quantization spaces, and the difference between the space values ​​of any two adjacent quantization spaces is calculated. The maximum difference is determined as the quantization judgment value. Afterward, the quantization spaces are judged one by one in ascending order of space value. The judgment rules include: if there exists an Xth quantization space such that the sum of the space value of the Xth quantization space and the quantization judgment value is less than the (X+1)th quantization space, and the number of data in the Xth quantization space is greater than or equal to the number of data in the (X+1)th quantization space, then the 1st quantization space to the Xth quantization space are determined as effective quantization spaces, where X is any integer between 1 and N. If no Xth quantization space that meets the above conditions is found after the search, then all quantization spaces from the 1st quantization space to the Nth quantization space are determined as effective quantization spaces.

[0061] In specific scenarios, current data closer to the bottom current is more abundant and densely distributed. If there are a total of 20 quantization spaces, and the current data contained in the 10th quantization space is closest to the bottom current, then the closer to the 10th quantization space, the smaller the spatial value difference between two adjacent quantization spaces. For example, the spatial value difference between the 1st and 2nd quantization spaces is usually greater than that between the 2nd and 3rd quantization spaces, and the spatial value difference between the 2nd and 3rd quantization spaces is usually greater than that between the 3rd and 4th quantization spaces. Beyond the 10th quantization space, the spatial value difference between two adjacent quantization spaces gradually increases; for example, the spatial value difference between the 10th and 11th quantization spaces is usually smaller than that between the 12th and 13th quantization spaces. Based on these characteristics, the quantization judgment value determined by the server is usually the spatial value difference between the 1st and 2nd quantization spaces. It can be understood that, based on the above judgment rules, the server can filter stable current data as valid current data and use this to determine the device's bottom current. If the current data is abnormal at a certain moment (such as an abnormal increase or the device exiting standby mode), the spatial value of the quantization space corresponding to the current data is large. The difference between the spatial value of this quantization space and the spatial value of the previous quantization space is large. There is a certain probability that it meets the above judgment condition, that is, the sum of the spatial value of the Xth quantization space and the quantization judgment value is less than the spatial value of the (X+1)th quantization space, and the number of data in the Xth quantization space is greater than or equal to the number of data in the (X+1)th quantization space. The quantization space containing the abnormal current data can be regarded as the (X+1)th quantization space.

[0062] In this embodiment of the invention, the server can filter out valid current data from the collected current data through the above steps, thereby calculating the device's bottom current over a certain period of time, providing a basis for the analysis of abnormal power consumption of the device.

[0063] In one specific embodiment, the quantization space can be implemented using dictionary storage. Figure 2 A flowchart implemented using a dictionary, such as Figure 2 As shown, it may include:

[0064] Step 201: Obtain current data.

[0065] Step 202: Traverse the current data to determine the current quantization value.

[0066] The server obtains a preset quantization standard value and uses the quotient of the current data and the quantization standard value as the corresponding current quantization value.

[0067] Step 203: Determine whether the corresponding key-value pair already exists in the dictionary.

[0068] If the dictionary already contains the corresponding key-value pair, proceed to step 204; otherwise, proceed to step 205.

[0069] Step 204: Add to existing key-value pairs.

[0070] The key in a key-value pair can be viewed as a spatial value in the quantization space described above. The value of a key-value pair consists of two numerical values: a first value and a second value. The first value is the number of current data points, and the second value is the sum of the current data values. The server checks the dictionary to see if a key-value pair exists with the same key as the current quantization value. If it does, the server performs the following operations: increments the first value of the key-value pair by 1, adds the second value to the current data value, and assigns the result to the second value. For example, if the current data value is 1.12, the quantization standard value is 0.1, and the current quantization value is 11 (the quotient of 1.12 and 0.1), and the server detects a key-value pair of 11—3—2.51, where 11 is the key, 3 is the first value, and 2.51 is the second value, the server will increment the first value by 1 and the second value by 1.12, resulting in the updated key-value pair of 11—4—3.63.

[0071] Step 205: Create a new key-value pair and add it to the newly created key-value pair.

[0072] If the server does not detect a key-value pair with the same keyword as the current quantization value, it creates a new key-value pair in the dictionary and adds the current data to the new key-value pair. The keyword of the new key-value pair is the same as the current quantization value. In the example above, the new key-value pair is 11-1-1.12.

[0073] Step 206: Determine whether all quantizations have been completed.

[0074] If all current data has been quantized, the process ends; otherwise, return to step 202.

[0075] In the above process, by establishing a dictionary and storing the corresponding current data in key-value pairs, the quantization space defined in the embodiments of the present invention can be realized, thereby realizing the calculation of the device's bottom current.

[0076] Accept Figure 2 , Figure 3 This can be viewed as a flowchart for determining the quantification judgment value, such as... Figure 3 As shown, it may include:

[0077] Step 301: Store the keys of the key-value pairs in the first list list(j) in ascending order.

[0078] Step 302, A = list[2] - list[1].

[0079] list(j) stores the keys of key-value pairs, which are the spatial values ​​of the quantization space. A is the difference between the spatial values ​​of the first quantization space and the second quantization space.

[0080] Step 303: Iterate through list(j) in order.

[0081] Step 304, list[j+1] > list[j] + A?

[0082] If yes, proceed to step 305; otherwise, proceed to step 306.

[0083] Step 305, A = list[j+1] - list[j].

[0084] Step 306: Determine whether j is greater than the third threshold.

[0085] If yes, the process ends; otherwise, return to step 303.

[0086] Through the above process, the server can calculate the quantization judgment value, where A is the quantization judgment value. Setting a third value allows filtering the first M quantization spaces, determining the difference between any two adjacent space values, and assigning the maximum value of the difference to A.

[0087] Accept Figure 3 , Figure 4 This can be viewed as a flowchart for calculating the device's base current, such as... Figure 4 As shown, it may include:

[0088] Step 401: Traverse the key-value pairs in ascending order of the keywords.

[0089] Step 402, Sum+= the first value, Sumnum+= the second value.

[0090] For the key-value pair being traversed, the first value is incremented to Sum, and the second value is incremented to Sumnum. Sum is the sum of the number of data points corresponding to the current data points of the key-value pair that have been traversed, and Sumnum is the sum of the specific current data values.

[0091] Step 403: Does it meet the judgment criteria?

[0092] Specific determination criteria may include: the sum of the current key-value pair's keyword and A is less than the keyword of the next key-value pair, meaning the sum of the current quantization space's spatial value and the quantization determination value is less than the spatial value of the next quantization space; the first value of the current key-value pair is greater than or equal to the first value of the next key-value pair, meaning the number of current data points contained in the current quantization space is greater than or equal to the number of data points in the next quantization space. If both of the above conditions are met, the server can determine that the determination criteria are met and proceed to step 405; otherwise, proceed to step 404.

[0093] Step 404: Should all instances be traversed?

[0094] If yes, proceed to step 405; otherwise, return to step 401 and continue iterating through the next key-value pair.

[0095] Step 405, bottom current = Sum / Sumnum.

[0096] If the judgment condition is met or all traversals are completed, the bottom current is determined based on the two variables.

[0097] In this embodiment of the invention, the effective current data can be filtered by storing key-value pairs, and then the bottom current of the device can be calculated.

[0098] Figure 5 This is a schematic diagram of a device for determining the device's bottom current according to an embodiment of the present invention. This device can be used as a specific device to implement the device bottom current determination method provided in the embodiments of the present invention, such as... Figure 5 As shown, the device may include: an acquisition module 510, a determination module 520, an allocation module 530, and a processing module 540.

[0099] The acquisition module 510 is used to acquire the current data of the device.

[0100] The determination module 520 is used to determine the current quantization value of each current data based on quantization rules.

[0101] The allocation module 530 is used to allocate current data with the same current quantization value to the same quantization space.

[0102] The processing module 540 is used to filter out the effective quantization space from multiple quantization spaces and determine the device's bottom current based on the current data in the effective quantization space.

[0103] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Figure 6 The electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of the present invention.

[0104] like Figure 6 As shown, the electronic device is presented in the form of a general-purpose computing device. The components of the electronic device may include, but are not limited to: one or more processors 610, memory 630, and communication bus 640 connecting different system components (including memory 630 and processor 610).

[0105] Communication bus 640 represents one or more of several bus architectures, including a memory bus or memory controller, peripheral bus, graphics acceleration port, processor, or local bus using any of the various bus architectures. For example, these architectures include, but are not limited to, Industry Standard Architecture (ISA) buses, Micro Channel Architecture (MAC) buses, Enhanced ISA buses, Video Electronics Standards Association (VESA) local buses, and Peripheral Component Interconnect (PCI) buses.

[0106] Electronic devices typically include a variety of computer-readable media. These media can be any available media that can be accessed by the electronic device, including volatile and non-volatile media, and removable and non-removable media.

[0107] Memory 630 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) and / or cache memory. The electronic device may further include other removable / non-removable, volatile / non-volatile computer system storage media. Although Figure 6Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk") and an optical disc drive for reading and writing to a removable non-volatile optical disc (e.g., a compact disc read-only memory (CD-ROM), a digital video disc read-only memory (DVD-ROM), or other optical media). In these cases, each drive may be connected to the communication bus 640 via one or more data media interfaces. The memory 630 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the embodiments of the present invention.

[0108] A program / utility having a set (at least one) of program modules can be stored in memory 630. Such program modules include—but are not limited to—an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. The program modules typically perform the functions and / or methods described in the embodiments of the present invention.

[0109] The electronic device can also communicate with one or more external devices, one or more devices that enable a user to interact with the electronic device, or any device that enables the electronic device to communicate with one or more other computing devices (e.g., network interface card, modem, etc.). This communication can be performed through communication interface 620. Furthermore, the electronic device can also communicate through a network adapter (…). Figure 6 (Not shown) communicates with one or more networks (e.g., Local Area Network (LAN), Wide Area Network (WAN), and / or public networks, such as the Internet). The aforementioned network adapter can communicate with other modules of the electronic device via the communication bus 640. It should be understood that, although... Figure 6 Not shown, other hardware and / or software modules can be used in conjunction with electronic devices, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, disk arrays (Redundant Arrays of Independent Drives; hereinafter referred to as RAID) systems, tape drives, and data backup storage systems.

[0110] The processor 610 executes various functional applications and data processing by running programs stored in the memory 630, such as implementing the device bottom current determination method provided in the embodiments of the present invention.

[0111] This invention also provides a computer-readable storage medium storing computer instructions that cause the computer to execute the device bottom current determination method provided in this invention.

[0112] The aforementioned computer-readable storage medium may be any combination of one or more computer-readable media. A computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium may be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or flash memory, optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in connection with an instruction execution system, apparatus, or device.

[0113] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including—but not limited to—electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, capable of transmitting, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device.

[0114] The program code contained on a computer-readable medium may be transmitted using any suitable medium, including—but not limited to—wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.

[0115] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.

[0116] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this invention, "a plurality of" means at least two, such as two, three, etc., unless otherwise explicitly specified.

[0117] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing custom logic functions or processes, and the scope of preferred embodiments of the invention includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as should be understood by those skilled in the art to which embodiments of the invention pertain.

[0118] In the embodiments provided by this invention, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0119] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in the form of hardware plus software functional units.

[0120] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A method for determining the bottom current of a device, characterized in that, include: Acquire current data from devices in standby mode; Based on the quantization rules, the current quantization value of each current data is determined; Current data with the same current quantization value are assigned to the same quantization space; The effective quantization space is selected from multiple quantization spaces, and the bottom current of the device is determined based on the current data in the effective quantization space. The process of selecting an effective quantization space from multiple quantization spaces includes: The quantization spaces are respectively defined as the first quantization space to the Nth quantization space in ascending order of space values; Determine the difference between the spatial values ​​of any two adjacent quantization spaces from the first quantization space to the Mth quantization space, and determine the maximum value of the difference as the quantization decision value, where M is any integer between 1 and N; If there exists an Xth quantization space such that the sum of the space value of the Xth quantization space and the quantization determination value is less than the space value of the (X+1)th quantization space, and the number of data in the Xth quantization space is greater than or equal to the number of data in the (X+1)th quantization space, then the 1st quantization space to the Xth quantization space are determined as the effective quantization space, where X is any integer between 1 and N; If the Xth quantization space does not exist, then all quantization spaces from the 1st to the Nth quantization space are determined as the effective quantization space.

2. The method according to claim 1, characterized in that, The acquisition of current data of devices in standby mode includes: Determine the sampling period; Based on the sampling period, multiple discrete current data are obtained from the continuous current data of the device.

3. The method according to claim 1, characterized in that, The process of determining the current quantization value for each current data point based on quantization rules includes: Obtain the preset quantization standard value; The quotient of the current data and the quantization standard value is determined as the current quantization value corresponding to the current data.

4. The method according to claim 1, characterized in that, Each of the quantized spatial associations has a corresponding spatial value; The step of allocating current data with the same current quantization value to the same quantization space includes: For any current data, if there exists a quantization space with the same spatial value as the current quantization value of the current data, then the current data is assigned to the quantization space. For any current data, if there is no quantization space with the same spatial value as the current quantization value of the current data, then a new quantization space is created and the current data is assigned to the new quantization space, wherein the spatial value of the new quantization space is the same as the current quantization value of the current data.

5. The method according to claim 4, characterized in that, Before filtering out the effective quantization space from multiple quantization spaces, the method further includes: Determine the number of current data points contained in each quantization space.

6. The method according to claim 1, characterized in that, Determining the bottom current of the device based on the current data in the effective quantization space includes: The average value of the current data contained in the effective quantization space is determined as the base current of the device.

7. A device for determining the bottom current of an equipment, characterized in that, include: The acquisition module is used to acquire current data of devices in standby mode; The determination module is used to determine the current quantization value of each current data based on quantization rules; The allocation module is used to allocate current data with the same current quantization value to the same quantization space; The processing module is used to filter out the effective quantization space from multiple quantization spaces and determine the bottom current of the device based on the current data in the effective quantization space. The process of selecting an effective quantization space from multiple quantization spaces includes: The quantization spaces are respectively defined as the first quantization space to the Nth quantization space in ascending order of space values; Determine the difference between the spatial values ​​of any two adjacent quantization spaces from the first quantization space to the Mth quantization space, and determine the maximum value of the difference as the quantization decision value, where M is any integer between 1 and N; If there exists an Xth quantization space such that the sum of the space value of the Xth quantization space and the quantization determination value is less than the space value of the (X+1)th quantization space, and the number of data in the Xth quantization space is greater than or equal to the number of data in the (X+1)th quantization space, then the 1st quantization space to the Xth quantization space are determined as the effective quantization space, where X is any integer between 1 and N; If the Xth quantization space does not exist, then all quantization spaces from the 1st to the Nth quantization space are determined as the effective quantization space.

8. An electronic device, characterized in that, include: At least one processor; as well as At least one memory communicatively connected to the processor, wherein: The memory stores program instructions, and the processor invokes the program instructions to execute the method as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program, when executed by a processor, implements the method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Sleep current value detection method and electronic device

    CN107608854A

  • Credit investigation default risk assessment method and device, storage medium, and computer equipment

    CN109360084A