Electric quantity pushing method and device, equipment and storage medium
By obtaining the current power and status information of the smart conference equipment, the time spent on power consumption to preset power is automatically calculated, and the information is sent to the server, which solves the problem of low reliability caused by manual management and achieves more efficient power reminders and management.
Patent Information
- Application Number
- CN202311432790.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-31
- Publication Date
- 2025-05-09
AI Technical Summary
When the existing solution uses manual power management of smart conference equipment, it leads to low reliability and is prone to low power or shutdown before the meeting begins.
By obtaining the current power information and device status information of the device to be detected, the time it takes for the power to consume to the preset power is determined, and the information is sent to the server so that the server can send a power reminder notification message to the target user.
It realizes automated power management, improves the ability to determine the power usage of smart conference equipment, ensures that target users charge in a timely manner, and thus improves the reliability of power management.
Smart Images

Figure CN119967055A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of power detection, and in particular to power push methods, devices, equipment and storage media. Background Art
[0002] With the gradual development of smart conferences, more and more conference venues have used smart conference equipment for smart conferences, such as conference tablets, smart office books, etc., which can realize the functions of rich and complete conference content presentation. Smart conference equipment is usually powered by its own internal battery. Since smart conference equipment is usually used in conference scenarios, the frequency of use of smart conference equipment in non-conference scenarios is relatively low. When managing the power of smart conference equipment, the existing solutions usually manage the power manually, charging the smart conference equipment when the power is low. However, since the frequency of use of smart conference equipment is relatively low, maintenance personnel are usually less sensitive to its power, and there are situations such as untimely charging, which makes it easy for smart conference equipment to be low in power or turned off before the meeting starts, resulting in low reliability when managing the power of smart conference equipment. Summary of the invention
[0003] The present application provides a power push method, device, equipment and storage medium to solve the technical problem of low reliability when the power management of intelligent conference equipment is performed manually in the existing solution.
[0004] In a first aspect, a method for pushing power is provided, the method comprising:
[0005] Get the current power information and device status information of the device to be detected;
[0006] Determine, according to the current power information and the device status information, a first usage time for the power of the device to be detected to be consumed to a preset power;
[0007] The first usage time and the current power information are sent to a server to instruct the server to send a power reminder notification message to a target user according to the first usage time and the current power information.
[0008] In this technical solution, after obtaining the current power information and device status information of the device to be detected, the first usage time for the power of the device to be detected to be consumed to a preset power level can be determined based on the current power information and the device status information, and then the first usage time and the current power information can be sent to the server to instruct the server to send a power reminder notification message to the target user based on the first usage time and the current power information, so that the first usage time for the power of the device to be detected to be consumed to a preset power level can be automatically obtained based on the current power information and the device status information of the device, the power usage of the device to be detected can be determined based on the first usage time, and a power reminder notification message can be sent to the target user in combination with the first usage time and the current power information to prompt the target user to charge, etc. Therefore, the target user can charge the device to be detected according to the power reminder notification message, thereby avoiding the situation where the user ignores the power consumption of the device to be detected and forgets to charge in time, thereby improving the reliability of power management of the device to be detected.
[0009] In a possible implementation, determining, according to the current power information and the device state information, a first usage time for the power of the device to be detected to be consumed to a preset power includes:
[0010] Extracting device hardware operation parameter information from the device status information;
[0011] Determine the power consumption mode information of the device to be detected according to the hardware operation parameter information;
[0012] Determine first power consumption information according to the power consumption mode information and application program running information of the device to be detected;
[0013] A first usage time duration for the power of the device to be detected to be consumed to a preset power is determined according to the current power information and the first power consumption information.
[0014] In a possible implementation, determining the power consumption mode information of the device to be detected according to the hardware operation parameter information includes:
[0015] Extracting target operation mode indication information from the device hardware operation parameter information;
[0016] Determine the target operating mode information corresponding to the target operating mode indication information according to the mapping relationship between the preset operating mode indication information and the operating mode information;
[0017] According to a preset mapping relationship between the operation mode information and the power consumption mode information, the power consumption mode information corresponding to the target operation mode information is determined.
[0018] In a possible implementation, determining the first power consumption information according to the power consumption mode information and the application program running information of the device to be detected includes:
[0019] Extracting application running degree information corresponding to k applications in the device to be detected from the application running information, where k is an integer greater than or equal to 1;
[0020] Power consumption is calculated based on the power consumption mode information and application program running degree information corresponding to the k application programs to obtain the first power consumption information.
[0021] In a possible implementation, performing power consumption calculation according to the power consumption mode information and application program running degree information corresponding to the k applications to obtain the first power consumption information includes:
[0022] If the power consumption mode indicated by the power consumption mode information is the running power consumption mode, the application running degree information corresponding to the k applications is respectively used to calculate the power consumption to obtain k running power consumption information;
[0023] Extract the running time corresponding to k applications from the memory;
[0024] Calculate the power consumption according to the k pieces of operating power consumption information and the corresponding operating time to obtain the first power consumption information;
[0025] Alternatively, if the power consumption mode indicated by the power consumption mode information is a sleep power consumption mode, then extracting sleep power consumption information corresponding to k applications according to the application running information;
[0026] The sum of the sleep power consumption information corresponding to the k application programs is determined as the first power consumption information of the device to be detected.
[0027] In a possible implementation, the sending the first usage duration and the current power information to the server includes:
[0028] Obtaining charging status information of the device to be detected;
[0029] If the charging status information indicates that the device to be detected is in a charging state, stop sending the first usage time and the current power information to the server;
[0030] If the charging status information indicates that the device to be detected is not in a charging state, the first usage time and the current power information are sent to a server.
[0031] In this example, it is possible to avoid sending the first usage duration and the current power information to the server when the current charging status information indicates the charging status, thereby improving the reliability of subsequent power management of the device to be detected.
[0032] In a possible implementation, after sending the first usage duration and the current power information to the server, the method further includes:
[0033] If the current power consumption mode of the device to be detected is converted from the sleep power consumption mode to the running power consumption mode at the first moment, extracting application running degree information corresponding to k applications from the current application running information of the device to be detected;
[0034] Extract the running time corresponding to k applications from the memory;
[0035] Calculate the power consumption according to the k pieces of operating power consumption information and the corresponding operating time to obtain the second power consumption information;
[0036] The second usage time duration for the device to be detected to consume power until the power of the device to be detected is consumed to a preset power is determined according to the second power consumption information and the power information of the device to be detected at the first moment.
[0037] In a possible implementation, after sending the first usage duration and the current power information to the server, the method further includes:
[0038] If the current power consumption mode of the device to be detected is converted from the running power consumption mode to the sleeping power consumption mode at the second moment, extracting the sleeping power consumption information corresponding to k applications from the application running information of the device to be detected;
[0039] Determine the sum of the sleep power consumption information corresponding to the k applications as the third power consumption information of the device to be detected;
[0040] A third usage time for the power of the device to be detected to be consumed to a preset power is determined according to the third power consumption information and the power information of the device to be detected at the second moment.
[0041] In a second aspect, a power push device is provided, the power push device comprising:
[0042] An acquisition unit, used to acquire current power information and device status information of the device to be detected;
[0043] A determination unit, configured to determine, based on the current power information and the device status information, a first usage time for the power of the device to be detected to be consumed to a preset power;
[0044] A sending unit is used to send the first usage time and the current power information to a server.
[0045] In a third aspect, a computer device is provided, comprising a memory, a communication interface, and one or more processors, wherein the memory and the communication interface are connected to the one or more processors, and the one or more processors are used to execute one or more computer programs stored in the memory. When the one or more processors execute the one or more computer programs, the computer device implements the power push method of the first aspect.
[0046] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the power push method of the first aspect.
[0047] The present application can achieve the following technical effects: the first usage time for the power of the device to be detected to be consumed to a preset power level can be automatically obtained based on the current power information and device status information of the device; the power usage of the device to be detected can be determined based on the first usage time, and a power reminder notification message can be sent to the target user in combination with the first usage time and the current power information to prompt the target user to charge, etc. Therefore, the target user can charge the device to be detected according to the power reminder notification message, thereby avoiding the situation where the user ignores the power consumption of the device to be detected and forgets to charge in time, thereby improving the reliability of power management of the device to be detected. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 A schematic diagram of a system architecture of a target communication system provided in an embodiment of the present application;
[0049] Figure 2 A schematic diagram of a flow chart of a power detection method provided in an embodiment of the present application;
[0050] Figure 3 It is a structural schematic diagram of a power detection device provided in an embodiment of the present application;
[0051] Figure 4 It is a structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0052] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
[0053] The technical solution of the present application can be applied to power detection scenarios, and specifically to power detection scenarios that can perform communication interaction. For ease of understanding, the power detection communication architecture of the present application is first introduced. Figure 1 , Figure 1A schematic diagram of a system architecture of a target communication system provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the target communication system 10 includes a device to be detected 101 and a server 102. The device to be detected 101 includes a battery system, and the battery system of the device to be detected 101 includes one or more single cells, and the battery system of the device to be detected 101 is used to provide power to the device to be detected to drive the device to be detected. Specifically, the device to be detected 101 can be a conference tablet or a smart office book. The server 102 is a device that can remind the device to be detected 101 of the power level.
[0054] The server 102 and the device to be detected 101 both include a communication interface.
[0055] The communication interface of the server 102 is connected to the communication interface of the target device 101, and is used to realize the communication between the server 102 and the device to be detected 101, so that the charging server 102 can obtain the usage time and current power information sent by the device to be detected 101. The communication interface of the device to be detected 101 can be a physical communication interface. For example, when the device to be detected 101 is a car, the communication interface of the device to be detected 101 can be a software communication interface, such as a Bluetooth interface, a WiFi interface, etc. The communication interface of the server 102 can be a physical communication interface, such as a universal serial bus (USB) interface, an Ethernet interface, etc.; it can also be a software communication interface, such as a Bluetooth interface, a WiFi interface, etc.
[0056] The connection between the communication interface of the server 102 and the communication interface of the device to be detected 101 can be a direct connection. For example, the communication interface of the server 102 can be connected to the communication interface of the device to be detected 101 via a data communication line; the connection between the communication interface of the server 102 and the communication interface of the device to be detected 101 can also be an indirect connection. For example, when the device to be detected 101 is a conference tablet, the communication interface of the server 102 can be connected to the communication interface of the conference tablet 101 via a 5G / 4G module.
[0057] The server 102 can be connected to multiple devices to be detected 101 at the same time, and is used to push power information to the multiple devices to be detected 101, for example, sending power reminder notification messages of the devices to be detected to the target user, who can be the administrator of the devices to be detected 101, or the power maintainer, etc.
[0058] based on Figure 1 The system architecture shown can implement the technical solution of the present application. The technical solution of the present application is described in detail below.
[0059] See also Figure 2 , Figure 2A flow chart of a method for pushing power provided in an embodiment of the present application, which can be applied in Figure 1 On the device to be detected 101, as Figure 2 As shown, the method comprises the following steps:
[0060] S201, obtaining current power information and device status information of the device to be detected.
[0061] Among them, the device to be detected can be a conference tablet, a smart office notebook, etc., and of course it can also be other electronic devices with less frequent use. The current power information can be understood as the current remaining power information of the device to be detected, which can be expressed by a power percentage, or it can be expressed by the actual power of the battery in the device to be detected. The device status information can characterize the current state of the device to be detected and the state within a subsequent time interval. The current state may include a working state and a dormant state. The power consumption of the device to be detected is different depending on its state. The power consumption in the working state will be greater than the power consumption in the dormant state. In the working state, due to the different applications it runs, its power consumption will also be different.
[0062] S202: Determine, based on the current power information and the device status information, a first usage time for the power of the device to be detected to be consumed to a preset power.
[0063] Among them, the power consumption information of the device to be detected can be determined based on the device status information, and then the first usage time for the power consumption of the device to be detected to reach the preset power can be determined based on the power consumption information and the current power information. The power consumption information can be understood as information on the power consumption of the device to be detected, such as the power consumption rate, and the power consumption rate can be specifically understood as the speed of power consumption. The preset power is set by experience value or historical data.
[0064] The first usage time can be understood as the length of time that the preset power consumption value of the device to be detected can last. For example, the current power of the device to be detected is 70% of the total power, and the preset power is 10% of the total power. Then the first usage time can be understood as the total length of time that the current power of the device to be detected can last when the current power of the device to be detected drops from 70% of the total power to 10% of the total power.
[0065] S203: Send the first usage time and the current power information to a server to instruct the server to send a power reminder notification message to a target user according to the first usage time and the current power information.
[0066] When sending the first usage time and current power information to the server, you can also obtain the current charging status information of the device to be detected, and send the first usage time and the current power information according to the charging status information. For example, if the current charging status information indicates that the device to be detected is in a charging state, stop sending the first usage time and the current power information; if the charging status information indicates that the device to be detected is not in a charging state, send the first usage time and the current power information to the server. Therefore, it can be decided whether to send the first usage time and the current power information based on the current charging status information. Since when the current charging status information indicates the charging status, the current power of the battery will increase as it is charged, which will increase the first usage time that has been acquired. Therefore, if the first usage time determined by the aforementioned current power information is used, after the target user receives the first usage time and the current power information, when performing subsequent operations such as charging the device to be detected, the target user may charge the device according to the first usage time. At the time of charging, the power may not be lower than the preset power, which reduces the accuracy of charging the device to be detected. Therefore, it can avoid sending the first usage time and the current power information to the server when the current charging status information indicates the charging status, thereby improving the reliability of subsequent power management of the device to be detected.
[0067] After receiving the first usage time and current power information, the server generates a power reminder notification message, which includes the first usage time and current power information and identification information of the device to be detected, etc. The server sends the power reminder notification message to the electronic device corresponding to the target user, etc. Thus, the target user can obtain the first usage time and current power information of the device to be detected to determine whether the device to be detected needs to be charged, etc., so as to improve the reliability of power management of the device to be detected.
[0068] Of course, the first usage duration and current power information can also be periodically sent to the server. For example, after the power of the device to be detected is reduced by a preset power, the current power information and device status information of the server at the corresponding moment are re-acquired, and the corresponding first usage duration is determined, and the first usage duration and current power information are sent to the server. The preset power can be: for example, when the power is expressed as a percentage, the preset power can be 1%. For example, if the current power is 80%, when the power is consumed to 79%, it is necessary to obtain the device status information of the device to be detected again, and determine a new first usage duration, and send the new first usage duration and current power (79%) to the server, etc.
[0069] In this example, after obtaining the current power information and device status information of the device to be detected, the first usage time for the power of the device to be detected to be consumed to a preset power level can be determined based on the current power information and the device status information, and then the first usage time and the current power information are sent to the server to instruct the server to send a power reminder notification message to the target user based on the first usage time and the current power information, so that the first usage time for the power of the device to be detected to be consumed to a preset power level can be automatically obtained based on the current power information and the device status information of the device, the power usage of the device to be detected can be determined based on the first usage time, and a power reminder notification message can be sent to the target user in combination with the first usage time and the current power information to prompt the target user to charge, etc. Therefore, the target user can charge the device to be detected according to the power reminder notification message, thereby avoiding the situation where the user ignores the power consumption of the device to be detected and forgets to charge in time, thereby improving the reliability of power management of the device to be detected.
[0070] In a possible implementation, in the existing solution, when determining the first usage time when the power of the device to be detected is consumed to the preset power, the first usage time is usually determined based on the average energy consumption of the device to be detected when it is in use. However, since the device to be detected may have a concentrated energy consumption problem when in use (for example, a longer usage time, etc.), the accuracy of determining the first time by the average energy consumption is reduced. In order to solve the above problem, a method for determining the first usage time when the power of the device to be detected is consumed to the preset power based on the current power information and the device status information is provided. The power consumption information can be accurately obtained through the device status information, and the accuracy of determining the first usage time is improved. The method includes:
[0071] A1. extracting device hardware operation parameter information from the device status information;
[0072] A2. Determine the power consumption mode information of the device to be detected according to the hardware operation parameter information;
[0073] A3. Determine first power consumption information according to the power consumption mode information and application running information of the device to be detected;
[0074] A4. Determine, based on the current power information and the power consumption information, a first usage time for the power of the device to be detected to be consumed to a preset power.
[0075] The device status information includes device hardware operating parameter information, which may include CPU operating parameter information, GPU operating parameter information, display screen operating parameter information, etc.
[0076] The target operation mode indication information may be extracted from the device hardware operation parameter information, and the target operation mode indication information may include CPU operation parameter information, GPU operation parameter information, etc.
[0077] The preset operating mode refers to the mapping relationship between information and the operating mode, which can be: the CPU operating parameter range indicated by the CPU operating parameter information, for example, if the CPU usage rate is lower than the preset usage rate threshold, the corresponding operating mode is the standby mode, and if the CPU usage rate is higher than or equal to the preset usage rate threshold, the corresponding operating mode is the usage mode; for example, if the GPU usage rate is lower than the preset usage rate threshold, the operating mode can be determined as the standby mode, and if the GPU usage rate is higher than or equal to the preset usage rate threshold, the corresponding operating mode is the usage mode, etc. This is just an example.
[0078] The power consumption mode information corresponding to the target operating mode information may be determined according to the mapping relationship between the operating mode information and the power consumption mode information.
[0079] The application running degree information corresponding to k applications in the device to be detected can be extracted from the application running information, and the first power consumption information can be determined according to the application running degree information and power consumption mode information corresponding to the k applications.
[0080] The application running degree information can be understood as whether the application is running at full load when it is running, or the running degree of the application when it is running. The higher the running degree, the more functions in the application are used, and the corresponding power consumption per unit time will increase, and the power consumption rate will increase. The unit time can be understood as 1s, 1ms, etc.
[0081] The method for determining the first usage duration according to the current power information and the first power consumption information may be: according to the first power consumption information and the current power information, the duration for the power consumption of the device to be detected to the preset power information may be determined, and the duration may be determined as the first usage duration. Specifically, the first power consumption information may include a power consumption rate within a plurality of preset time intervals, so that the power consumption may be determined according to the plurality of preset time intervals and the corresponding power consumption rates, and when the sum of the power consumption determined by the plurality of preset time intervals and the corresponding power consumption rates is equal to the difference between the current power information and the preset power information, the corresponding time length is the first usage duration.
[0082] In this example, the power consumption information can be accurately obtained through the device status information, thereby improving the accuracy of determining the first usage duration.
[0083] In a possible implementation, a method for determining the power consumption mode information of the device to be detected according to the hardware operation parameter information includes:
[0084] B1. extracting target operation mode indication information from the device hardware operation parameter information;
[0085] B2. determining the target operating mode information corresponding to the target operating mode indication information according to the mapping relationship between the preset operating mode indication information and the operating mode information;
[0086] B3. Determine the power consumption mode information corresponding to the target operation mode information according to the mapping relationship between the preset operation mode information and the power consumption mode information.
[0087] The device hardware operating parameter information may include CPU operating parameter information, GPU operating parameter information, display operating parameter information, etc.
[0088] The target operation mode indication information may be extracted from the device hardware operation parameter information, and the target operation mode indication information may include CPU operation parameter information, GPU operation parameter information, etc.
[0089] The preset operating mode refers to the mapping relationship between information and the operating mode, which can be: the CPU operating parameter range indicated by the CPU operating parameter information, for example, if the CPU usage rate is lower than the preset usage rate threshold, the corresponding operating mode is the standby mode, and if the CPU usage rate is higher than or equal to the preset usage rate threshold, the corresponding operating mode is the usage mode; for example, if the GPU usage rate is lower than the preset usage rate threshold, the operating mode can be determined as the standby mode, and if the GPU usage rate is higher than or equal to the preset usage rate threshold, the corresponding operating mode is the usage mode, etc. This is just an example.
[0090] The power consumption mode information corresponding to the target operation mode information can be determined according to the mapping relationship between the operation mode information and the power consumption mode information. Specifically, if the operation mode information is the use mode, the power consumption mode information is the operation power consumption mode; if the operation mode information is the standby mode, the power consumption mode information is the standby power consumption mode.
[0091] In this example, the target operating mode information corresponding to the target operating mode indication information can be determined based on the target operating mode indication information, as well as the mapping relationship between the preset operating mode indication information and the operating mode information, so as to quickly obtain the power consumption mode information, thereby improving the efficiency of obtaining the power consumption mode information.
[0092] In a possible implementation, a method for determining power consumption information according to the power consumption mode information and application running information of the device to be detected includes:
[0093] C1. extracting application running degree information corresponding to k applications in the device to be detected from the application running information, where k is an integer greater than or equal to 1;
[0094] C2. Calculate power consumption based on the power consumption mode information and application program running degree information corresponding to the k applications to obtain the first power consumption information.
[0095] Among them, k application identifiers can be obtained from the application running information, and the application running degree information corresponding to the k applications can be extracted according to the identifiers. The application running degree information can be understood as whether the application is running at full load or the running degree of the application when it is running. The higher the running degree, the more functions in the application are used, and the corresponding power consumption per unit time will increase, and the power consumption rate will increase. The unit time can be understood as 1s, 1ms, etc.
[0096] When the power consumption is calculated according to the power consumption mode information and the application program running degree information corresponding to the k application programs to obtain the first power consumption information, it may be specifically:
[0097] First, a determination is made based on the power consumption mode information. If the power consumption mode indicated by the power consumption mode information is the running power consumption mode, then at this time, based on the application running degree information corresponding to the k applications, the first power consumption information is determined based on the application running degree information corresponding to the k applications obtained from the application running information;
[0098] If the power consumption mode indicated by the power consumption mode information is a sleep power consumption mode, the sleep power consumption corresponding to k applications is extracted according to the application running information, and the sum of the sleep power consumption corresponding to the k applications is determined as the first power consumption information of the device to be detected, so that the power consumption information can be obtained. Therefore, the first power consumption information can be quickly and accurately obtained according to different running mode information.
[0099] In a possible implementation, a method for determining the power consumption information according to the power consumption mode information and application program running degree information corresponding to k applications of the device to be detected includes:
[0100] D1. If the power consumption mode indicated by the power consumption mode information is the running power consumption mode, the application running degree information corresponding to k applications is respectively used to calculate the power consumption to obtain k running power consumption information;
[0101] D2, extract the running time corresponding to k applications from the memory;
[0102] D3, calculating the power consumption according to the k pieces of operating power consumption information and the corresponding operating time to obtain the first power consumption information;
[0103] D4. Alternatively, if the power consumption mode indicated by the power consumption mode information is a sleep power consumption mode, extracting sleep power consumption information corresponding to k applications according to the application running information;
[0104] D5. Determine the sum of the sleep power consumption information corresponding to the k applications as the first power consumption information of the device to be detected.
[0105] The higher the running degree of the application, the more functions in the application are used, the corresponding power consumption per unit time will increase, and the power consumption rate will increase. The unit time can be understood as 1s, 1ms, etc. Therefore, the power consumption can be calculated according to the above mapping relationship to obtain the running power consumption information corresponding to the k applications. For example, the power consumption rate can be calculated according to the proportion of function use. The higher the proportion, the higher the power consumption rate.
[0106] The memory can store the running time corresponding to k applications respectively.
[0107] The running time may include the start running time of the application, so that the total power consumption rate of the device to be detected in each preset time interval can be determined based on the start running time in the running time. Each preset time interval can be understood as a plurality of preset time intervals after the current power detection, and the preset time intervals have the same time length. The total power consumption rate can be the sum of the powers indicated by the running power consumption information determined by the running degree, and each application has a corresponding power consumption rate interval, for example, the power consumption rate when all functions in the application are used to the power consumption rate at the lowest power consumption in the application. In this power consumption rate interval, the higher the running degree, the higher the power consumption rate, and the lower the running degree, the lower the power consumption rate.
[0108] Therefore, the power consumption rate of the device to be detected in each preset time interval can be obtained, thereby obtaining the power consumption rate of the device to be detected, and then determining the first power consumption information according to the corresponding time interval and the total power consumption rate.
[0109] Among them, when the power consumption mode is the sleep power consumption mode, the application running information is usually the preset application running information, and the function and energy consumption of the corresponding application during operation change less, so that the sleep power consumption information can be quickly determined according to the preset application running information, and then the sleep power consumption information is determined as the power consumption information of the device to be detected, which improves the efficiency of determining the power consumption information of the device to be detected. Specifically, it can be understood that the sleep power corresponding to k applications will be different. For example, the sleep power of some applications is zero, and the sleep power of some applications is the preset power. The sum of the sleep power consumption corresponding to the k applications can be determined as the first power consumption information of the device to be detected. After obtaining the first power consumption information, the total energy consumed to the preset power according to the current power and the power consumption of the device to be detected can be used, and then the energy calculation formula is used to calculate the corresponding first usage time according to the total energy and the power consumption.
[0110] In a possible implementation, a method for sending the first usage duration and the current power information to a server includes:
[0111] E1. Obtaining charging status information of the device to be detected;
[0112] E2. If the charging status information indicates that the device to be detected is in a charging state, stop sending the first usage time and the current power information to the server;
[0113] E3. If the charging status information indicates that the device to be detected is not in a charging state, the first usage time and the current power information are sent to a server.
[0114] When sending the first usage time and current power information to the server, the current charging status information of the device to be detected can also be obtained, and the first usage time and the current power information can be sent according to the charging status information. For example, if the current charging status information indicates that the device to be detected is in a charging state, the first usage time and the current power information are stopped from being sent. If the charging status information indicates that the device to be detected is not in a charging state, the first usage time and the current power information are sent to the server. Therefore, it can be decided whether to send the first usage time and the current power information according to the current charging status information. Since the first usage time will change when the current charging status information indicates the charging state, for example, the first usage time will usually increase, so that the accuracy of the first time sent will be reduced, thereby avoiding sending the first usage time and the current power information to the server when the current charging status information indicates the charging state, thereby improving the reliability of the subsequent power management of the device to be detected.
[0115] In a possible implementation, after sending the first usage time and the current power information to the server, the device to be detected may switch modes. After the mode switching, the usage time may be re-determined, as follows:
[0116] F1. If the current power consumption mode of the device to be detected is converted from the sleep power consumption mode to the running power consumption mode at the first moment, extracting application running degree information corresponding to k applications from the current application running information of the device to be detected;
[0117] F2, extract the running time corresponding to k applications from the memory;
[0118] F3, calculating the power consumption according to the k pieces of operating power consumption information and the corresponding operating time to obtain the second power consumption information;
[0119] F4. Determine a second usage time for the power of the device to be detected to be consumed to a preset power level according to the second power consumption information and the power information of the device to be detected at the first moment.
[0120] The first moment may be any moment after the device to be detected sends the first usage time and the current power information to the server, and the moment may usually be within the first usage time.
[0121] The specific implementation of steps F2-F3 can refer to the specific implementation of steps D2-D3 in the above embodiment, which will not be repeated here. The method for determining the second usage duration can refer to the method for determining the first usage duration in the above embodiment.
[0122] After obtaining the second usage time, the second usage time and the current power level may be sent to the server to instruct the server to send a power reminder notification message to the target user according to the first usage time and the current power level information.
[0123] In a possible implementation, after sending the first usage time and the current power information to the server, the device to be detected may switch modes. After the mode switching, the usage time may be re-determined, as follows:
[0124] G1. If the current power consumption mode of the device to be detected is converted from the running power consumption mode to the sleeping power consumption mode at the second moment, then extracting the sleeping power consumption information corresponding to k applications from the application running information of the device to be detected;
[0125] G2. Determine the sum of the sleep power consumption information corresponding to the k applications as the third power consumption information of the device to be detected;
[0126] G3. Determine a third usage time for the power of the device to be detected to be consumed to a preset power level based on the third power consumption information and the power information of the device to be detected at the second moment.
[0127] The second moment may be any moment after the device to be detected sends the first usage time and the current power information to the server, and the moment may usually be within the first usage time.
[0128] The method for determining the third usage duration may refer to the method for determining the first usage duration in the aforementioned embodiment.
[0129] After obtaining the third usage time, the third usage time and the current power can be sent to the server to instruct the server to send a power reminder notification message to the target user according to the first usage time and the current power information. In this way, after the power consumption mode of the device to be detected changes, the corresponding usage time can be re-obtained and pushed, so that the target user can manage the power of the device to be detected, which improves convenience and reliability.
[0130] In a specific embodiment, the embodiment of the present application further provides a method for determining the first usage time of the power consumption of the device to be detected to a preset power according to the current power information and the device status information, which can be specifically:
[0131] The power consumption rate of the device to be detected can be determined based on the historical power consumption operation information of the device to be detected. The power consumption rate may include the power consumption rate corresponding to the running power consumption mode and the power consumption rate corresponding to the standby power consumption mode. For example, the power consumption and power consumption duration of the device to be detected in multiple running power consumption modes can be collected, and the average of multiple power consumptions under the power consumption duration is determined as the power consumption rate under the power consumption duration. The power consumption rate corresponding to the standby power consumption mode can be obtained by the same method.
[0132] Therefore, the power consumption mode of the device to be detected can be determined according to the device status information, and the corresponding power consumption rate can be determined according to the power consumption mode, and the first usage time can be determined according to the power consumption rate, the current power information and the preset power. Specifically, the available power can be determined according to the current power information and the preset power, and the available power is divided by the power consumption rate to obtain the first usage time, so that the first usage time can be quickly determined.
[0133] The method of the present application is introduced above, and the device of the present application is introduced below.
[0134] See also Figure 3 , Figure 3 1 is a schematic diagram of a power push device provided in an embodiment of the present application, and the power push device is applied to the aforementioned device to be detected 101. Figure 3As shown, the power push device 30 includes:
[0135] An acquisition unit 301 is used to acquire current power information and device status information of a device to be detected;
[0136] A determination unit 302 is used to determine a first usage time for the power of the device to be detected to be consumed to a preset power according to the current power information and the device status information;
[0137] The sending unit 303 is used to send the first usage time and the current power information to the server.
[0138] In a possible implementation, the determining unit 302 is specifically configured to:
[0139] Extracting device hardware operation parameter information from the device status information;
[0140] Determine the power consumption mode information of the device to be detected according to the hardware operation parameter information;
[0141] Determine first power consumption information according to the power consumption mode information and application program running information of the device to be detected;
[0142] A first usage time duration for the power of the device to be detected to be consumed to a preset power is determined according to the current power information and the first power consumption information.
[0143] In a possible implementation, in determining the power consumption mode information of the device to be detected according to the hardware operation parameter information, the determining unit 302 is specifically configured to:
[0144] Extracting target operation mode indication information from the device hardware operation parameter information;
[0145] Determine the target operating mode information corresponding to the target operating mode indication information according to the mapping relationship between the preset operating mode indication information and the operating mode information;
[0146] According to a preset mapping relationship between the operation mode information and the power consumption mode information, the power consumption mode information corresponding to the target operation mode information is determined.
[0147] In a possible implementation, in determining the first power consumption information according to the power consumption mode information and the application program running information of the device to be detected, the determining unit 302 is specifically configured to:
[0148] Extracting application running degree information corresponding to k applications in the device to be detected from the application running information, where k is an integer greater than or equal to 1;
[0149] Power consumption is calculated based on the power consumption mode information and application program running degree information corresponding to the k application programs to obtain the first power consumption information.
[0150] In a possible implementation, in the aspect of calculating the power consumption according to the power consumption mode information and the application program running degree information corresponding to the k applications to obtain the first power consumption information, the determining unit 302 is specifically configured to:
[0151] If the power consumption mode indicated by the power consumption mode information is the running power consumption mode, the application running degree information corresponding to the k applications is respectively used to calculate the power consumption to obtain k running power consumption information;
[0152] Extract the running time corresponding to k applications from the memory;
[0153] Calculate the power consumption according to the k pieces of operating power consumption information and the corresponding operating time to obtain the first power consumption information;
[0154] Alternatively, if the power consumption mode indicated by the power consumption mode information is a sleep power consumption mode, then extracting sleep power consumption corresponding to k applications according to the application running information;
[0155] The sum of the sleep power consumption corresponding to the k application programs is determined as the first power consumption information of the device to be detected.
[0156] In a possible implementation, the sending unit 303 is specifically configured to:
[0157] Obtaining charging status information of the device to be detected;
[0158] If the charging status information indicates that the device to be detected is in a charging state, stop sending the first usage time and the current power information to the server;
[0159] If the charging status information indicates that the device to be detected is not in a charging state, the first usage time and the current power information are sent to a server.
[0160] In a possible implementation, after sending the first usage duration and the current power information to the server, the power push device 30 is further used to:
[0161] If the current power consumption mode of the device to be detected is converted from the sleep power consumption mode to the running power consumption mode at the first moment, extracting application running degree information corresponding to k applications from the current application running information of the device to be detected;
[0162] Extract the running time corresponding to k applications from the memory;
[0163] Calculate the power consumption according to the k pieces of operating power consumption information and the corresponding operating time to obtain the second power consumption information;
[0164] The second usage time duration for the device to be detected to consume power until the power of the device to be detected is consumed to a preset power is determined according to the second power consumption information and the power information of the device to be detected at the first moment.
[0165] In a possible implementation, after sending the first usage duration and the current power information to the server, the power push device 30 is further used to:
[0166] If the current power consumption mode of the device to be detected is converted from the running power consumption mode to the sleeping power consumption mode at the second moment, extracting the sleeping power consumption information corresponding to k applications from the application running information of the device to be detected;
[0167] Determine the sum of the sleep power consumption information corresponding to the k applications as the third power consumption information of the device to be detected;
[0168] A third usage time for the power of the device to be detected to be consumed to a preset power is determined according to the third power consumption information and the power information of the device to be detected at the second moment.
[0169] It should be noted that Figure 3 For the contents not mentioned in the corresponding embodiments, please refer to the description of the aforementioned method embodiments, which will not be repeated here.
[0170] After obtaining the current power information and device status information of the device to be detected, the above device can determine the first usage time of the device to be detected that consumes the power to the preset power according to the current power information and the device status information, and then send the first usage time and the current power information to the server to instruct the server to send a power reminder notification message to the target user according to the first usage time and the current power information, so that the first usage time of the device to be detected that consumes the power to the preset power can be automatically obtained, and the power reminder notification message can be sent to the target user according to the first usage time and the current power information. The target user can charge the device to be detected according to the power reminder notification message, so as to reduce the situation where the device to be detected is exhausted or has low power during use, and improve the reliability of power management of the device to be detected. .
[0171] See also Figure 4 , Figure 41 is a schematic diagram of the structure of a computer device provided in an embodiment of the present application, and the computer device may be a device to be detected 101. The computer device 40 includes a processor 401, a memory 402, and a communication interface 403. The memory 402 and the communication interface 403 are connected to the processor 401, for example, through a bus.
[0172] The processor 401 is configured to support the computer device 40 to perform the corresponding functions in the method in the above method embodiment. The processor 401 can be a central processing unit (CPU), a network processor (NP), a hardware chip or any combination thereof. The above hardware chip can be an application specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The above PLD can be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.
[0173] The memory 402 is used to store program codes, etc. The memory 402 may include a volatile memory (VM), such as a random access memory (RAM); the memory 402 may also include a non-volatile memory (NVM), such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD); the memory 402 may also include a combination of the above-mentioned types of memories.
[0174] The communication interface 403 is used to obtain battery data in the power battery system of the target device under the instruction of the processor 401. The communication interface 403 can be a hardware interface, such as a USB interface, etc.; the communication interface 403 can also be a software interface, such as a Bluetooth interface, a WiFi interface, etc. It is not limited to the limitations here.
[0175] Optionally, the computer device 40 may also include an input interface 404 and / or an output interface 405. The input interface 404 may be used to obtain user instructions, and the input interface may include, for example, a touch screen, buttons, etc.; the output interface 405 is used to output charging and discharging related data to the user, such as charging and discharging parameters, etc., and may also be used to indicate the charging and discharging status. The output interface 405 may include, for example, a display, a buzzer or an indicator light.
[0176] The processor 401 may call the program code to perform the following operations:
[0177] Get the current power information and device status information of the device to be detected;
[0178] Determine, according to the current power information and the device status information, a first usage time for the power of the device to be detected to be consumed to a preset power;
[0179] The first usage time and the current power information are sent to a server to instruct the server to send a power reminder notification message to a target user according to the first usage time and the current power information.
[0180] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. The computer program includes program instructions, and when the program instructions are executed by a computer, the computer executes the power push method as described in the above embodiment.
[0181] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0182] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.
Claims
1. A method for pushing power, characterized in that: The power push method includes: Get the current power information and device status information of the device to be detected; Determine, according to the current power information and the device status information, a first usage time for the power of the device to be detected to be consumed to a preset power; The first usage time and the current power information are sent to a server to instruct the server to send a power reminder notification message to a target user according to the first usage time and the current power information.
2. The method for pushing power according to claim 1, characterized in that: The determining, according to the current power information and the device status information, a first usage time for the power of the device to be detected to be consumed to a preset power includes: Extracting device hardware operation parameter information from the device status information; Determine the power consumption mode information of the device to be detected according to the hardware operation parameter information; Determine first power consumption information according to the power consumption mode information and application program running information of the device to be detected; A first usage time for the power of the device to be detected to be consumed to a preset power is determined according to the current power information and the first power consumption information.
3. The method for pushing power according to claim 2, characterized in that: The determining the power consumption mode information of the device to be detected according to the hardware operation parameter information includes: Extracting target operation mode indication information from the device hardware operation parameter information; Determine the target operating mode information corresponding to the target operating mode indication information according to the mapping relationship between the preset operating mode indication information and the operating mode information; According to a preset mapping relationship between the operation mode information and the power consumption mode information, the power consumption mode information corresponding to the target operation mode information is determined.
4. The method for pushing power according to claim 2 or 3, characterized in that: The determining the first power consumption information according to the power consumption mode information and the application program running information of the device to be detected includes: Extracting application running degree information corresponding to k applications in the device to be detected from the application running information, where k is an integer greater than or equal to 1; Power consumption is calculated based on the power consumption mode information and application program running degree information corresponding to the k applications to obtain the first power consumption information.
5. The method for pushing power according to claim 4, characterized in that: The step of calculating power consumption according to the power consumption mode information and application program operation degree information corresponding to the k applications to obtain the first power consumption information includes: If the power consumption mode indicated by the power consumption mode information is the running power consumption mode, the application running degree information corresponding to the k applications is respectively used to calculate the power consumption to obtain k running power consumption information; Extract the running time corresponding to k applications from the memory; Calculate the power consumption according to the k pieces of operating power consumption information and the corresponding operating time to obtain the first power consumption information; Alternatively, if the power consumption mode indicated by the power consumption mode information is a sleep power consumption mode, then extracting sleep power consumption corresponding to k applications according to the application running information; The sum of the sleep power consumption corresponding to the k application programs is determined as the first power consumption information of the device to be detected.
6. The method for pushing power data according to claim 1, 2, 3 or 5, characterized in that: The sending the first usage time and the current power information to the server includes: Obtaining charging status information of the device to be detected; If the charging status information indicates that the device to be detected is in a charging state, stop sending the first usage time and the current power information to the server; If the charging status information indicates that the device to be detected is not in a charging state, the first usage time and the current power information are sent to a server.
7. The method for pushing power data according to claim 6, characterized in that: After sending the first usage duration and the current power information to the server, the method further includes: If the current power consumption mode of the device to be detected is converted from the sleep power consumption mode to the running power consumption mode at the first moment, extracting application running degree information corresponding to k applications from the current application running information of the device to be detected; Extract the running time corresponding to k applications from the memory; Calculate the power consumption according to the k pieces of operating power consumption information and the corresponding operating time to obtain the second power consumption information; The second usage time duration for the device to be detected to consume power until the power of the device to be detected is consumed to a preset power is determined according to the second power consumption information and the power information of the device to be detected at the first moment.
8. The method for pushing power data according to claim 6, characterized in that: After sending the first usage duration and the current power information to the server, the method further includes: If the current power consumption mode of the device to be detected is converted from the running power consumption mode to the sleeping power consumption mode at the second moment, extracting the sleeping power consumption information corresponding to k applications from the application running information of the device to be detected; Determine the sum of the sleep power consumption information corresponding to the k applications as the third power consumption information of the device to be detected; A third usage time for the power of the device to be detected to be consumed to a preset power is determined according to the third power consumption information and the power information of the device to be detected at the second moment.
9. A power push device, characterized in that: The power push device comprises: An acquisition unit, used to acquire current power information and device status information of the device to be detected; A determination unit, configured to determine, based on the current power information and the device status information, a first usage time for the power of the device to be detected to be consumed to a preset power; A sending unit is used to send the first usage time and the current power information to a server.
10. A computer device, characterized in that: It includes a memory, a processor and a communication interface, the memory and the communication interface are connected to the processor, the processor is used to execute one or more computer programs stored in the memory, and when the processor executes the one or more computer programs, the computer device implements the power push method as described in any one of claims 1-8.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the power push method as described in any one of claims 1-8.