WO2019218442A1 - 电量数据的管理方法、装置、设备及可读存储介质 - Google Patents
电量数据的管理方法、装置、设备及可读存储介质 Download PDFInfo
- Publication number
- WO2019218442A1 WO2019218442A1 PCT/CN2018/094725 CN2018094725W WO2019218442A1 WO 2019218442 A1 WO2019218442 A1 WO 2019218442A1 CN 2018094725 W CN2018094725 W CN 2018094725W WO 2019218442 A1 WO2019218442 A1 WO 2019218442A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- power consumption
- data
- preset
- template
- power
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/32—Monitoring with visual or acoustical indication of the functioning of the machine
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Definitions
- the present application relates to the field of data management, and in particular, to a method, an apparatus, a device, and a computer readable storage medium for managing power data.
- the iOS system is relatively closed, and other versions of the application cannot be installed. And the development environment of the iOS system itself does not provide detailed power consumption statistics, and only displays a relatively rough percentage of power consumption in the system power setting. As a result, testers can hardly obtain valid power consumption data when testing the power consumption of different applications, which increases the analysis workload of testers.
- the main purpose of the present application is to provide a method, an apparatus, a device, and a computer readable storage medium for managing power data, aiming at solving the technical problem that it is difficult to obtain effective power consumption data of an iOS system.
- the present application provides a method for managing power data, and the method for managing power data includes the following steps:
- the power consumption data is classified and assembled according to a preset assembly template, and the target power consumption data is generated, and the target power consumption data is displayed according to a preset format template.
- the method for managing the power data further includes:
- the method for managing the power data further includes:
- the power consumption parameter is abnormal according to the comparison result, and if the power consumption parameter is abnormal, a corresponding warning prompt is output.
- the preset standard data includes power consumption total standard data and specific power consumption standard data
- the preset standard data of each application is obtained according to the power consumption application identifier
- the steps of comparing the power consumption parameter of each application with the corresponding preset standard data include:
- the total electricity standard data is the total power consumption threshold applied within a preset time
- the specific power consumption standard data is a specific power consumption threshold in the preset time unit
- the specific power consumption of each application is compared with the corresponding specific power consumption standard data, and the specific power consumption of the respective applications and the specific power consumption difference of the corresponding specific power consumption standard data are obtained.
- the determining, according to the comparison result, whether the power consumption parameter is abnormal, and if the power consumption parameter is abnormal, the step of outputting a corresponding warning prompt includes:
- the present application further provides a device for managing power data, where the device for managing power data includes:
- a data acquisition module configured to acquire software according to the power data installed on the target terminal, and acquire iOS system data in the target terminal;
- a data extraction module configured to extract, according to the preset power data template, the power consumption data corresponding to the target terminal in the iOS system data;
- the data display module is configured to assemble and assemble the power consumption data according to a preset assembly template, generate target power consumption data, and display the target power consumption data according to a preset format template.
- the present application further provides a power data management device, where the power data management device includes a processor, a memory, and power data stored on the memory and executable by the processor.
- the management readable instructions wherein the management readable instructions of the power data are executed by the processor, implement the steps of the method of managing power data as described above.
- the present application further provides a computer readable storage medium having stored readable instructions of power amount data, wherein the management readable instructions of the power amount data are processed by a processor When executed, the steps of the method of managing the power data as described above are implemented.
- the application obtains the iOS system data in the target terminal according to the power data acquisition software installed on the target terminal, and extracts the power consumption corresponding to the target terminal in the iOS system data according to the preset power data template. Data; according to the preset assembly template, the power consumption data is classified and assembled, the target power consumption data is generated, and the target power consumption data is displayed according to a preset format template.
- the present application provides a management scheme for realizing the power data of the power data. First, the underlying record data of the iOS system in the Apple terminal is obtained through a preset rule, and then the data is recorded from the bottom layer according to the preset form template.
- FIG. 1 is a schematic structural diagram of hardware of a power data management device involved in an embodiment of the present application
- FIG. 2 is a schematic flowchart of a first embodiment of a method for managing power data according to the present application
- FIG. 3 is a schematic flowchart of a second embodiment of a method for managing power data according to the present application.
- FIG. 4 is a schematic flowchart of a third embodiment of a method for managing power data according to the present application.
- FIG. 5 is a schematic flowchart diagram of a fourth embodiment of a method for managing power data according to the present application
- FIG. 6 is a schematic diagram of functional modules of a first embodiment of a power data management apparatus according to the present application.
- the method for managing the power data according to the embodiment of the present application is mainly applied to a power data management device, and the power data management device may be a device having a display and a processing function, such as a PC, a portable computer, or a mobile terminal.
- FIG. 1 is a schematic diagram of a hardware structure of a power data management device involved in an embodiment of the present application.
- the power consumption data management device may include a processor 1001 (for example, a CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005.
- the communication bus 1002 is configured to implement connection communication between the components;
- the user interface 1003 may include a display, an input unit such as a keyboard;
- the network interface 1004 may optionally include a standard wired interface and a wireless interface. (such as WI-FI interface);
- memory 1005 can be high-speed RAM memory or stable memory (non-volatile Alternatively, the memory 1005 may alternatively be a storage device independent of the processor 1001 described above.
- FIG. 1 does not constitute a limitation of the management device of the power data, and may include more or less components than those illustrated, or combine some components or different components. Arrangement.
- the memory 1005 as a computer readable storage medium of FIG. 1 can include an operating system, a network communication module, and management readable instructions for power data.
- the network communication module is mainly used to connect to the server and perform data communication with the server; and the processor 1001 can call the management readable instructions of the power data stored in the memory 1005 and execute the power data provided by the embodiment of the present application. Management method.
- the embodiment of the present application provides a method for managing power data.
- FIG. 2 is a schematic flowchart diagram of a first embodiment of a method for managing power data according to the present application.
- the power data management method is applied to a power data management platform, and the power data management platform includes a general interface and a pre-stored fragment component, and the power data management method includes the following steps:
- Step S10 acquiring software according to the power data installed on the target terminal, and acquiring iOS system data in the target terminal;
- the iOS system is relatively closed, and other versions of the application cannot be installed. And the development environment of the iOS system itself does not provide detailed power consumption statistics, and only displays a relatively rough percentage of power consumption in the system power setting. As a result, testers can hardly obtain valid power consumption data when testing the power consumption of different applications, which increases the analysis workload of testers. Specifically, since the iOS system generates power consumption, the power consumption of each application on each hardware is periodically recorded.
- the power data acquisition software may be a battery log certificate, and Energy. Diagnostics software, UIDevice software, IOKit Framework software, etc. That is to say, in the iOS system, there is already used to record the power consumption data of each application on each hardware.
- This application can obtain the relevant data in the terminal through the battery log certificate, that is, the battery log certificate provided by Apple is installed.
- the bottom system log in the target terminal iOS system that is, the SQL file of each data table set, can be obtained through the battery log certificate.
- the Energy that comes with the Instruments software tool on the Apple terminal. Diagnostics tool the Energy The Diagnostics tool can obtain the power consumption information of the Apple mobile phone iphone for a specific period of time; or obtain the detailed system data, such as name, on the Apple terminal device through the UIDevice.
- systemVersion, localizedModel, batteryLevel, etc. can also be through the IOKit framework, IOKit
- the framework is used in the iOS system to communicate with hardware or kernel services to obtain hardware details, in which the iOS system data in the target terminal can be obtained.
- the corresponding underlying system log (SQL file) in the mobile phone can be obtained by using the battery log certificate installed on the mobile phone, and the SQL file is exported from the mobile phone through the iTunes tool to the mobile phone.
- Step S20 extracting, according to the preset power data template, the power consumption data corresponding to the target terminal in the iOS system data;
- the iOS system data that is, the underlying record data in the iOS system
- the present application obtains the preset power data template, and according to the preset power data template.
- the power consumption data is separately extracted in the underlying recorded data.
- Table 1 records the process names of all APPs that can be detected in the terminal.
- Table 2 shows detailed power consumption data recorded by hour, process, and hardware, and the unit of power consumption is 1/1000 mwh.
- Table 3 shows the correspondence between hardware and processes and processes (they exist in a table and are distinguished by key fields).
- Table 4 shows the percentage of total mobile phone power consumption.
- the table stores the keywords of the power consumption data, and the preset power data template may obtain the corresponding power consumption data according to the keywords in the respective tables. Therefore, the target power consumption data required by the tester is extracted from the obtained underlying data record.
- the target power consumption data includes a power consumption date, a time, a power consumption hardware, a power consumption program, a power consumption type, and the like.
- Step S30 classify and assemble the power consumption data according to a preset assembly template, generate target power consumption data, and display the target power consumption data according to a preset format template.
- the power consumption data is extracted by using the preset power data template
- the power consumption data is further classified and assembled according to the preset assembly template.
- the preset assembly template may be a preset assembly format, that is, a preset assembly format is preset, and the preset assembly format is stored, wherein the preset format may be: ⁇ day: hour: ⁇ 'energy': Battery, "type": type ⁇ . Then, according to the preset format, the classification and assembly are performed to adjust the format.
- the format of the classification assembly adjustment is ⁇ 28: ⁇ 17:[ ⁇ 'hour':17,'timestamp': 511.0, 'energy': 189.27, 'typeName': u'Display', 'time': '11-28 17:00', 'total': 226.12, 'type': 10 ⁇
- the power consumption data after sorting and assembling is the target power consumption data.
- the application further includes a preset format template, that is, a display template, and the classified target power consumption data is performed according to a preset display template. Classified display.
- the display template may include a table, a line chart, a pie chart or a bar chart, etc., and the power consumption data after the classification is correspondingly filled into the table in the preset display template, and may further display through the pie chart.
- the embodiment provides a method for managing the power data.
- the method for managing the power data is obtained by acquiring software according to the power data installed on the target terminal, and acquiring the iOS system data in the target terminal. Extracting the power consumption data corresponding to the target terminal in the iOS system data; classifying and assembling the power consumption data according to a preset assembly template, generating target power consumption data, and displaying the location according to a preset format template The target power consumption data.
- the present application provides a management scheme for realizing the power data of the power data. First, the underlying record data of the iOS system in the Apple terminal is obtained through a preset rule, and then the data is recorded from the bottom layer according to the preset form template.
- FIG. 3 is a schematic flowchart diagram of a second embodiment of a method for managing power data according to the present application.
- the method for managing the power data further includes:
- step S41 the power consumption parameter corresponding to each application on the target terminal is counted according to the power consumption application identifier, where the power consumption parameter includes the total power consumption applied in the preset time and the preset time unit. Specific power consumption;
- the power consumption parameter corresponding to each application installed on the target terminal is counted and displayed. Specifically, the power consumption parameter corresponding to each power consumption application is obtained according to the power consumption application identifier in the target power consumption data.
- the power consumption parameter includes a total power consumption applied in a preset time period and a specific power consumption amount in a preset time unit.
- the total power consumption is the total power consumption of the power consumption application within 12 hours or 24 hours, and the preset time may be set by the user according to his own situation.
- the specific power consumption is the power consumption of the power consumption application within one hour or half an hour, and the preset time unit may be set by the user according to his own situation.
- Step S42 Determine a corresponding display template according to the power consumption parameter, and display the power consumption parameter by using the display template.
- the display template may include a table, a line chart, a pie chart or a bar chart, etc., and the power consumption data after the classification is correspondingly filled into the table in the preset display template, and may further display through the pie chart.
- FIG. 4 is a schematic flowchart diagram of a third embodiment of a method for managing power data according to the present application.
- the method for managing the power data further includes:
- Step S51 Obtain preset standard data of each application according to the power consumption application identifier, and compare the power consumption parameter of each application with corresponding preset standard data;
- the power consumption abnormal data is prompted.
- the preset standard data corresponding to each application that is, the power consumption standard value is stored in association with the application identifier, and then the current power consumption parameter of the application is compared with the pre-stored preset standard data.
- Step S52 Determine whether the power consumption parameter is abnormal according to the comparison result, and if the power consumption parameter is abnormal, output a corresponding warning prompt.
- the abnormal power consumption data corresponding to the application may be highlighted in a display chart.
- the preset standard data includes the total power consumption standard data and the specific power consumption standard data
- the step S51 specifically includes:
- Step S511 obtaining the total power consumption standard data of the respective applications according to the power consumption application identifier, and comparing the total power consumption of the respective applications with the corresponding power consumption total standard data, where
- the power consumption total standard data is a total power consumption threshold applied in a preset time;
- the preset standard data includes total power consumption standard data and specific power consumption standard data.
- the total power consumption standard data is the power consumption threshold applied within 12 hours or 24 hours. The total power consumption of the power consumption application exceeds the power consumption threshold, that is, the power consumption data of the application is abnormal.
- Step S512 Obtain a difference between the total power consumption of the respective applications and the total power consumption standard data of the corresponding power consumption total data. If the difference is lower than the first threshold, obtain the specific consumption of each application. Electrical standard data, wherein the specific power consumption standard data is a specific power consumption threshold in the preset time unit;
- the difference between the total power consumption of the respective applications and the total power consumption of the corresponding power consumption standard data is within a preset threshold, that is, the total power consumption of the power consumption application does not exceed the corresponding power consumption. If the total power consumption standard data is used, the total power consumption is qualified.
- the first threshold may be set according to actual conditions.
- step S513 the specific power consumption of each application is compared with the corresponding specific power consumption standard data, and the specific power consumption of the respective applications and the specific power consumption difference of the corresponding specific power consumption standard data are obtained.
- the specific power consumption standard data of the application is further obtained.
- the specific power consumption standard data is a specific power consumption threshold that is applied within half an hour or one hour, that is, the specific power consumption of the power consumption application within half an hour or one hour does not exceed the specific power consumption standard data. Then the specific power consumption data of the application is qualified.
- step S52 specifically includes:
- Step S521 determining whether the power consumption parameter is abnormal according to the total power consumption difference value and the specific power consumption difference value
- the difference between the total power consumption of the application and the total power consumption of the corresponding power consumption standard data, and the specific power consumption of the application and the specific power consumption standard data of the corresponding specific power consumption standard data If the corresponding threshold is not exceeded, it means that the total power consumption of the application and the specific power consumption meet the power consumption requirements, and it is determined that the power consumption parameter of the power consumption application is normal.
- Step S522 if the total power consumption difference exceeds a first threshold or the specific power consumption difference exceeds a second threshold, determining that the power consumption parameter is abnormal, and outputting a corresponding warning prompt.
- the difference between the total power consumption of the application and the total power consumption of the corresponding total power consumption standard data exceeds the first threshold, or the specific power consumption of the application and the corresponding specific power consumption standard data.
- the specific power consumption difference exceeds the second threshold, that is, the total power consumption or the specific power consumption of the application is abnormal, the power consumption parameter of the power consumption application is abnormal, and the specific abnormal parameter is highlighted, thereby outputting a corresponding warning prompt.
- FIG. 5 is a schematic flowchart diagram of a fourth embodiment of a method for managing power data according to the present application.
- the preset format template includes a preset chart template.
- step S30 specifically includes:
- Step S31 classifying and assembling the power consumption data according to a preset assembly template, and generating corresponding target power consumption data
- the power consumption data is extracted by using the preset power data template
- the power consumption data is further classified and assembled according to the preset assembly template.
- the preset assembly template may be a preset assembly format, that is, a preset assembly format is preset, and the preset assembly format is stored, wherein the preset format may be: ⁇ day: hour: ⁇ 'energy': Battery, "type": type ⁇ . Then, according to the preset format, the classification and assembly are performed to adjust the format.
- the format of the classification assembly adjustment is ⁇ 28: ⁇ 17:[ ⁇ 'hour':17,'timestamp': 511.0, 'energy': 189.27, 'typeName': u'Display', 'time': '11-28 17:00', 'total': 226.12, 'type': 10 ⁇ , the power consumption data after classification and assembly is the target power consumption data.
- Step S32 acquiring a preset chart template corresponding to the target power consumption data, filling the target power consumption data into the preset chart template, generating a power consumption data display chart, and displaying the power consumption data through the power consumption data
- the chart correspondingly displays the target power consumption data.
- the application further includes a preset format template, that is, a display template, and the classified target power consumption data is pre-prescribed.
- the display template is displayed for classification display.
- the preset chart template may include a table, a line chart, a pie chart or a bar chart, etc., and the power consumption data after the classification is correspondingly filled into the table in the preset display template, and further may pass the pie chart. Shows the percentage of power consumed by the same application at different times, or shows the hourly accurate hardware power consumption data of the same application through a line chart. This shows that each application in the iOS system consumes specific power data of the Apple terminal for the tester or user to view.
- the method for managing the power data further includes:
- Step S61 when receiving the historical comparison instruction triggered based on the preset chart template, searching the database according to the target application identifier in the historical comparison instruction, and acquiring historical power consumption data of the target application;
- the specific power consumption of each application on each part of the hardware of the Apple terminal and the corresponding preset power consumption threshold may be displayed.
- a comparison is made to generate a reminder of the power consumption abnormality when the preset power consumption threshold is exceeded.
- calculate the total power consumption data of each application on the Apple terminal display the total power consumption data corresponding to each application through the line graph, and indicate the data whose total power consumption data exceeds the preset value.
- the target application identifier in the instruction is acquired, and the database is searched according to the target application identifier, and the corresponding historical power consumption data is acquired.
- Step S62 Acquire the preset chart template, fill the power consumption data of the target application and the historical power consumption data into the preset chart template, and generate and display a historical comparison chart.
- the preset chart template corresponding to the power consumption data is obtained, and the power consumption data and the historical power consumption data corresponding to the target application are filled in the preset chart template, such as a table, a line chart, and a round cake.
- the preset chart template such as a table, a line chart, and a round cake.
- a graph or bar chart that generates a historical comparison chart. And displaying the power consumption data and the historical power consumption data of the target application by one or more of the tables, the line graph, the pie chart, or the bar graph.
- the embodiment of the present application further provides a device for managing power data.
- FIG. 6 is a schematic diagram of functional modules of a first embodiment of a power data management apparatus according to the present application.
- the device for managing the power data includes:
- the data acquisition module 10 is configured to acquire software according to the power data installed on the target terminal, and acquire iOS system data in the target terminal;
- the data extraction module 20 is configured to extract, according to the preset power data template, the power consumption data corresponding to the target terminal in the iOS system data;
- the data display module 30 is configured to classify and assemble the power consumption data according to a preset assembly template, generate target power consumption data, and display the target power consumption data according to a preset format template.
- the device for managing the power data further includes:
- a statistic module configured to collect, according to the power consumption application identifier, a power consumption parameter corresponding to each application on the target terminal, where the power consumption parameter includes a total power consumption and a preset time of the application within a preset time Specific power consumption within the unit;
- the parameter display module is configured to determine a corresponding display template according to the power consumption parameter, and display the power consumption parameter by using the display template.
- a comparison module configured to acquire preset standard data of each application according to the power consumption application identifier, and compare the power consumption parameter of each application with corresponding preset standard data
- the abnormality prompting module is configured to determine whether the power consumption parameter is abnormal according to the comparison result, and if the power consumption parameter is abnormal, output a corresponding warning prompt.
- comparison module specifically includes:
- a first obtaining subunit configured to acquire, according to the power consumption application identifier, standard data of power consumption total amount of each application, and total power consumption of each application and corresponding power consumption total standard data Comparing, wherein the power consumption total standard data is a total power consumption threshold applied in a preset time;
- a second obtaining subunit configured to acquire a total power consumption of the respective applications and a total power consumption difference value of the corresponding power consumption total standard data, and if the difference is lower than the first threshold, obtain the Specific power consumption standard data of each application, where the specific power consumption standard data is a specific power consumption threshold in the preset time unit;
- a third obtaining sub-unit configured to compare specific power consumption of the respective applications with corresponding specific power consumption standard data, and obtain specific specific power consumption of the respective applications and specific specific power consumption standard data Power consumption difference.
- abnormal prompting unit specifically includes:
- a determining subunit configured to determine whether the power consumption parameter is abnormal according to the total power consumption difference value and the specific power consumption difference value
- the prompting subunit is configured to determine that the power consumption parameter is abnormal and output a corresponding warning prompt if the total power consumption difference exceeds a first threshold or the specific power consumption difference exceeds a second threshold.
- the data display module specifically includes:
- a classifying unit configured to assemble and assemble the power consumption data according to a preset assembly template, and generate corresponding target power consumption data
- a data display unit configured to acquire a preset chart template corresponding to the target power consumption data, fill the target power consumption data to the preset chart template, generate a power consumption data display chart, and pass the consumption
- the electric data display chart correspondingly displays the target power consumption data.
- management device of the power data further includes:
- a searching module configured to: when the historical comparison instruction triggered based on the preset chart template is received, search the database according to the target application identifier in the historical comparison instruction to obtain historical power consumption data of the target application;
- the chart comparison module is configured to acquire the preset chart template, fill the power consumption data of the target application and historical power consumption data into the preset chart template, and generate and display a historical comparison chart.
- Each of the modules of the power data management device corresponds to each step in the foregoing method for managing the power data, and the functions and implementation processes thereof are not described herein again.
- the embodiment of the present application further provides a computer readable storage medium, which may be a non-volatile readable storage medium.
- the computer readable storage medium of the present application stores management readable instructions of the power data, wherein the management readable instructions of the power data are executed by the processor to implement the steps of the power data management method as described above.
- the technical solution of the present application which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM as described above). , a disk, an optical disk, including a number of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in the various embodiments of the present application.
- a terminal device which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Power Sources (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
一种电量数据的管理方法、装置、设备及计算机可读存储介质,该方法通过根据目标终端上安装的电量数据获取软件,获取所述目标终端中的iOS系统数据(S10);根据预设电量数据模板,在所述iOS系统数据中提取出所述目标终端对应的耗电量数据(S20);根据预设组装模板,将所述耗电量数据进行分类组装,生成目标耗电量数据,并根据预设格式模板显示所述目标耗电量数据(S30)。将所述目标耗电量数据按照预设格式进行分类组装,并将分类组装后的目标耗电量数据按照预设形式进行显示,减少测试人员获取苹果终端上有效电量消耗数据的时间,减少测试人员的分析工作量,提高测试人员的工作效率。
Description
本申请要求于2018年5月17日提交中国专利局、申请号为201810477042.2、发明名称为“电量数据的管理方法、装置、设备及可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在申请中。
技术领域
本申请涉及数据管理领域,尤其涉及一种电量数据的管理方法、装置、设备及计算机可读存储介质。
背景技术
现有技术中,iOS系统较为封闭,无法安装其他版本的应用程序。且iOS系统本身的开发环境未提供详细的电量统计,仅仅在系统电量设置中显示较为粗略的电量消耗百分比。由此导致了测试人员在测试不同应用程序的电量消耗时,难以获取到有效电量消耗数据,增加了测试人员的分析工作量。
发明内容
本申请的主要目的在于提供一种电量数据的管理方法、装置、设备及计算机可读存储介质,旨在解决现有难以获取iOS系统的有效电量消耗数据的技术问题。
为实现上述目的,本申请提供一种电量数据的管理方法,所述电量数据的管理方法包括以下步骤:
根据目标终端上安装的电量数据获取软件,获取所述目标终端中的iOS系统数据;
根据预设电量数据模板,在所述iOS系统数据中提取出所述目标终端对应的耗电量数据;
根据预设组装模板,将所述耗电量数据进行分类组装,生成目标耗电量数据,并根据预设格式模板显示所述目标耗电量数据。
可选地,所述电量数据的管理方法还包括:
根据耗电应用标识符,统计所述目标终端上各个应用对应的耗电量参数,其中,所述耗电量参数包括预设时间内应用的总耗电量以及预设时间单位内的具体耗电量;
根据所述耗电量参数确定对应的显示模板,通过所述显示模板显示所述耗电量参数。
可选地,所述电量数据的管理方法还包括:
根据所述耗电应用标识符,获取所述各个应用的预设标准数据,并将所述各个应用的耗电量参数与对应的预设标准数据进行对比;
根据对比结果判断所述耗电量参数是否异常,若所述耗电量参数异常,则输出对应的警告提示。
可选地,所述预设标准数据包括耗电总量标准数据和具体耗电标准数据,所述根据所述耗电应用标识符,获取所述各个应用的预设标准数据,并将所述各个应用的耗电量参数与对应的预设标准数据进行对比的步骤具体包括:
根据所述耗电应用标识符,获取所述各个应用的耗电总量标准数据,并将所述各个应用的总耗电量与对应的耗电总量标准数据进行对比,其中,所述耗电总量标准数据为应用在预设时间内的总耗电阈值;
获取所述各个应用的总耗电量与对应的耗电总量标准数据的耗电总量差值,若所述差值低于第一阈值,则获取所述各个应用的具体耗电标准数据,其中,所述具体耗电标准数据为所述预设时间单位内的具体耗电阈值;
将所述各个应用的具体耗电量与对应的具体耗电标准数据进行对比,并获取所述各个应用的具体耗电量与对应的具体耗电标准数据的具体耗电差值。
可选地,所述根据对比结果判断所述耗电量参数是否异常,若所述耗电量参数异常,则输出对应的警告提示的步骤包括:
根据所述耗电总量差值和所述具体耗电差值,判断所述耗电量参数是否异常;
若所述耗电总量差值超过第一阈值或者所述具体耗电差值超过第二阈值,则判定所述耗电量参数异常,输出对应的警告提示。
此外,为实现上述目的,本申请还提供一种电量数据的管理装置,所述电量数据的管理装置包括:
数据获取模块,用于根据目标终端上安装的电量数据获取软件,获取所述目标终端中的iOS系统数据;
数据提取模块,用于根据预设电量数据模板,在所述iOS系统数据中提取出所述目标终端对应的耗电量数据;
数据显示模块,用于根据预设组装模板,将所述耗电量数据进行分类组装,生成目标耗电量数据,并根据预设格式模板显示所述目标耗电量数据。
此外,为实现上述目的,本申请还提供一种电量数据的管理设备,所述电量数据的管理设备包括处理器、存储器、以及存储在所述存储器上并可被所述处理器执行的电量数据的管理可读指令,其中所述电量数据的管理可读指令被所述处理器执行时,实现如上述的电量数据的管理方法的步骤。
此外,为实现上述目的,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有电量数据的管理可读指令,其中所述电量数据的管理可读指令被处理器执行时,实现如上述的电量数据的管理方法的步骤。
本申请通过根据目标终端上安装的电量数据获取软件,获取所述目标终端中的iOS系统数据;根据预设电量数据模板,在所述iOS系统数据中提取出所述目标终端对应的耗电量数据;根据预设组装模板,将所述耗电量数据进行分类组装,生成目标耗电量数据,并根据预设格式模板显示所述目标耗电量数据。通过以上方式,本申请提出一种具体化电量数据的电量数据的管理方案,首先通过预设规则获取苹果终端内iOS系统的底层记录数据,然后按照预设表格模板,从所述底层记录数据中提取出目标耗电量数据,并将所述目标耗电量数据按照预设格式进行分类组装,并将分类组装后的目标耗电量数据按照预设形式进行显示,以供测试人员或者用户进行查看,从而减少测试人员获取苹果终端上有效电量消耗数据的时间,减少测试人员的分析工作量,提高测试人员的工作效率,解决了现有难以获取iOS系统的有效电量消耗数据的技术问题。
附图说明
图1为本申请实施例方案中涉及的电量数据的管理设备的硬件结构示意图;
图2为本申请电量数据的管理方法第一实施例的流程示意图;
图3为本申请电量数据的管理方法第二实施例的流程示意图;
图4为本申请电量数据的管理方法第三实施例的流程示意图;
图5为本申请电量数据的管理方法第四实施例的流程示意图
图6为本申请电量数据的管理装置第一实施例的功能模块示意图。
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
具体实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
本申请实施例涉及的电量数据的管理方法主要应用于电量数据的管理设备,该电量数据的管理设备可以是PC、便携计算机、移动终端等具有显示和处理功能的设备。
参照图1,图1为本申请实施例方案中涉及的电量数据的管理设备的硬件结构示意图。本申请实施例中,电量数据的管理设备可以包括处理器1001(例如CPU),通信总线1002,用户接口1003,网络接口1004,存储器1005。其中,通信总线1002用于实现这些组件之间的连接通信;用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard);网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口);存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile
memory),例如磁盘存储器,存储器1005可选的还可以是独立于前述处理器1001的存储装置。
本领域技术人员可以理解,图1中示出的硬件结构并不构成对电量数据的管理设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
继续参照图1,图1中作为一种计算机可读存储介质的存储器1005可以包括操作系统、网络通信模块以及电量数据的管理可读指令。
在图1中,网络通信模块主要用于连接服务器,与服务器进行数据通信;而处理器1001可以调用存储器1005中存储的电量数据的管理可读指令,并执行本申请实施例提供的电量数据的管理方法。
本申请实施例提供了一种电量数据的管理方法。
参照图2,图2为本申请电量数据的管理方法第一实施例的流程示意图。
本实施例中,所述电量数据的管理方法应用于电量数据的管理平台,所述电量数据的管理平台包括通用接口和预存碎片组件,所述电量数据的管理方法包括以下步骤:
步骤S10,根据目标终端上安装的电量数据获取软件,获取所述目标终端中的iOS系统数据;
现有技术中,iOS系统较为封闭,无法安装其他版本的应用程序。且iOS系统本身的开发环境未提供详细的电量统计,仅仅在系统电量设置中显示较为粗略的电量消耗百分比。由此导致了测试人员在测试不同应用程序的电量消耗时,难以获取到有效电量消耗数据,增加了测试人员的分析工作量。具体地,由于iOS系统在产生耗电时,会定时记录各个应用程序在各个硬件上的耗电。其中,所述电量数据获取软件可以是battery日志证书、Energy
Diagnostics软件、UIDevice软件、IOKit
framework软件等。也就是说,iOS系统内已经存在了用于记录各个应用程序在各个硬件上的耗电数据,本申请可以通过battery日志证书获取终端内的相关数据,即在安装有苹果官方提供的battery日志证书的目标终端上,即可通过该battery日志证书获取目标终端iOS系统内的底层系统日志,即各个数据表集合的SQL文件。或者通过苹果终端上的Instruments软件工具自带的Energy
Diagnostics工具,该Energy
Diagnostics工具可以获取到苹果手机iphone特定时段的电量消耗信息;还可以是通过UIDevice获取苹果终端设备上的详细系统数据,如name,
systemVersion, localizedModel, batteryLevel等;还可以是通过IOKit framework,IOKit
framework在iOS系统中用来跟硬件或内核服务通信,从而获取硬件详细信息,该硬件详细信息中可获取所述目标终端中的iOS系统数据。进一步的,为了避免手机上无法实现本申请操作,可在通过手机上安装的battery日志证书获取手机内相应的底层系统日志(SQL文件)时,并将该SQL文件通过iTunes工具从手机上导出至电脑或其他设备进行后续操作。
步骤S20,根据预设电量数据模板,在所述iOS系统数据中提取出所述目标终端对应的耗电量数据;
本实施例中,所述iOS系统数据即iOS系统中的底层记录数据,包括各个种类的运行数据,如内存占比、CPU占用、电池耗电量、流量消耗、帧数以及FPS等。为了便于用户或者测试人员查看所述目标终端的电量数据,在通过battery日志证书获取到目标终端的iOS系统底层记录数据后,本申请获取预设电量数据模板,并根据所述预设电量数据模板,在所述底层记录数据中单独提取出耗电量数据。其中,预设电量数据模板格式如下:表1:Apps_Table
= "PLApplicationAgent_EventNone_AllApps",表2:Battery_Table =
"PLAccountingOperator_Aggregate_RootNodeEnergy",表3:Appps_Nodes_Table =
"PLAccountingOperator_EventNone_Nodes",表4:BatteryUI_Table =
"PLBatteryAgent_EventBackward_BatteryUI"。其中,表1记录终端中所有可以被检测的APP的进程名。表2为按照小时、进程、硬件记录了详细的耗电数据,且耗电的单位为1/1000mwh。表3为硬件或者进程分别与进程的对应关系(两者共存在一个表中,以关键字段区分)。表4为手机总电量的消耗百分比。表中存储有耗电量数据的关键字,预设电量数据模板可以是根据各个表中的关键字获取对应的耗电量数据。从而在获取到的底层数据记录中提取出测试人员所需要的目标耗电量数据。其中,所述目标耗电量数据包括耗电日期、时间、耗电硬件、耗电程序、耗电类型等。
步骤S30,根据预设组装模板,将所述耗电量数据进行分类组装,生成目标耗电量数据,并根据预设格式模板显示所述目标耗电量数据。
本实施例中,在通过预设电量数据模板提取出耗电量数据时,进一步将耗电量数据按照预设组装模板进行分类组装。其中,预设组装模板可以是预设组装格式,即预先设定预设组装格式,并将该预设组装格式进行存储,其中,预设格式可以是:{日:小时:{‘energy’:电量,“type”:类型}}。然后根据预设格式进行分类组装即进行格式调整。即分类组装调整后的格式为{28:{17:[{'hour':17,'timestamp':
511.0,'energy':189.27,'typeName':u'Display','time': '11-28
17:00','total':226.12,'type':
10},分类组装后的耗电量数据即为目标耗电量数据。在得到所述目标耗电量数据后,为了便于用户或者测试人员查阅该数据,本申请还包括预设格式模板,即显示模板,将分类后的目标耗电量数据按照预设的显示模板进行分类显示。其中,显示模板可以包括表格、折线图、圆饼图或条形图等,即将分类后的耗电量数据对应填充至预设的显示模板内的表格内,还可以进一步通过圆饼图显示同个应用程序在不同时间内的消耗电量百分比,或通过折线图显示同个应用程序每小时精确的硬件耗电数据等。由此显示出iOS系统内各个应用程序消耗苹果终端的具体电量数据,以供测试人员或者用户进行查看。进一步地,本申请在显示出iOS系统内各个应用程序消耗苹果终端的具体电量数据时,还可以将各个应用程序在苹果终端的各部分硬件上的具体消耗电量与对应预设耗电阈值进行比较,在超过预设耗电阈值时生成耗电异常的提醒。或者计算出各个应用程序在苹果终端上的总耗电数据,通过折线图显示出各个应用程序对应的总耗电数据,并标示出总耗电数据超过预设值的数据。
本实施例提供一种电量数据的管理方法,该电量数据的管理方法通过根据目标终端上安装的电量数据获取软件,获取所述目标终端中的iOS系统数据;根据预设电量数据模板,在所述iOS系统数据中提取出所述目标终端对应的耗电量数据;根据预设组装模板,将所述耗电量数据进行分类组装,生成目标耗电量数据,并根据预设格式模板显示所述目标耗电量数据。通过以上方式,本申请提出一种具体化电量数据的电量数据的管理方案,首先通过预设规则获取苹果终端内iOS系统的底层记录数据,然后按照预设表格模板,从所述底层记录数据中提取出目标耗电量数据,并将所述目标耗电量数据按照预设格式进行分类组装,并将分类组装后的目标耗电量数据按照预设形式进行显示,以供测试人员或者用户进行查看,从而减少测试人员获取苹果终端上有效电量消耗数据的时间,减少测试人员的分析工作量,提高测试人员的工作效率,解决了现有难以获取iOS系统的有效电量消耗数据的技术问题。
参照图3,图3为本申请电量数据的管理方法第二实施例的流程示意图。
基于上述图2所示实施例,本实施例中,所述电量数据的管理方法还包括:
步骤S41,根据耗电应用标识符,统计所述目标终端上各个应用对应的耗电量参数,其中,所述耗电量参数包括预设时间内应用的总耗电量以及预设时间单位内的具体耗电量;
本实施例中,为了便于用户或者测试人员了解终端上各个应用的耗电量数据,统计并显示目标终端上安装的各个应用对应的耗电量参数。具体地,根据目标耗电量数据中耗电应用标识符,获取各个耗电应用对应的耗电量参数。其中,所述耗电量参数包括预设时间内应用的总耗电量以及预设时间单位内的具体耗电量。总耗电量即为该耗电应用在12小时或者24小时内总的耗电量大小,其中预设时间可以是用户根据自身情况设定。具体耗电量即为该耗电应用在1个小时或者半个小时内的耗电量大小,其中预设时间单位可以是用户根据自身情况设定。
步骤S42,根据所述耗电量参数确定对应的显示模板,通过所述显示模板显示所述耗电量参数。
本实施例中,为不同的数据展示配有不同的显示模板。其中,显示模板可以包括表格、折线图、圆饼图或条形图等,即将分类后的耗电量数据对应填充至预设的显示模板内的表格内,还可以进一步通过圆饼图显示同个应用程序在不同时间内的消耗电量百分比,或通过折线图显示同个应用程序每小时精确的硬件耗电数据等。由此显示出iOS系统内各个应用程序消耗苹果终端的具体电量数据,以供测试人员或者用户进行查看。
参照图4,图4为本申请电量数据的管理方法第三实施例的流程示意图。
基于上述图3所示实施例,本实施例中,所述电量数据的管理方法还包括:
步骤S51,根据所述耗电应用标识符,获取所述各个应用的预设标准数据,并将所述各个应用的耗电量参数与对应的预设标准数据进行对比;
本实施例中,为了便于用户或者测试人员了解异常耗电数据,对耗电异常数据进行提示。预先将各个应用对应的预设标准数据即耗电量标准值与应用标识符进行关联存储,然后将所述应用的当前耗电量参数与预存的预设标准数据进行比较。
步骤S52,根据对比结果判断所述耗电量参数是否异常,若所述耗电量参数异常,则输出对应的警告提示。
本实施例中,若所述应用的当前耗电量参数与预存的预设标准数据的差值超过预设阈值,即所述应用的当前耗电量参数超过所述预设标准数据,则判定所述耗电量数据异常。根据所述应用标识符生成耗电量异常的提醒消息,从而输出对应的警告提示。具体实施例中,还可以是在显示图表中将所述应用对应的异常耗电数据进行突出显示。
进一步地,所述预设标准数据包括耗电总量标准数据和具体耗电标准数据,步骤S51具体包括:
步骤S511,根据所述耗电应用标识符,获取所述各个应用的耗电总量标准数据,并将所述各个应用的总耗电量与对应的耗电总量标准数据进行对比,其中,所述耗电总量标准数据为应用在预设时间内的总耗电阈值;
本实施例中,所述预设标准数据包括耗电总量标准数据和具体耗电标准数据。其中,耗电总量标准数据为应用在12小时或者24小时内的耗电量阈值。耗电应用的总耗电量超过所述耗电量阈值即所述应用的耗电量数据异常。
步骤S512,获取所述各个应用的总耗电量与对应的耗电总量标准数据的耗电总量差值,若所述差值低于第一阈值,则获取所述各个应用的具体耗电标准数据,其中,所述具体耗电标准数据为所述预设时间单位内的具体耗电阈值;
本实施例中,在所述各个应用的总耗电量与对应的耗电总量标准数据的耗电总量差值在预设阈值内,即耗电应用的总耗电量未超过对应的耗电总量标准数据,则该总耗电量合格。其中,第一阈值可以根据实际情况进行设定。
步骤S513,将所述各个应用的具体耗电量与对应的具体耗电标准数据进行对比,并获取所述各个应用的具体耗电量与对应的具体耗电标准数据的具体耗电差值。
本实施例中,在判定所述耗电应用的总耗电量未超过对应的耗电总量标准数据时,进一步获取所述应用的具体耗电标准数据。其中,所述具体耗电标准数据为应用在半小时或者1小时内的具体耗电阈值,即耗电应用在半小时或者1小时内的具体耗电量未超过所述具体耗电标准数据,则该应用的具体耗电数据合格。
进一步地,基于上述实施例,步骤S52具体包括:
步骤S521,根据所述耗电总量差值和所述具体耗电差值,判断所述耗电量参数是否异常;
本实施例中,在应用的总耗电量与对应的耗电总量标准数据的耗电总量差值,以及应用的具体耗电量与对应的具体耗电标准数据的具体耗电差值未超过对应阈值时,即表示应用的总耗电量与具体耗电量均符合耗电要求,判定耗电应用的耗电量参数正常。
步骤S522,若所述耗电总量差值超过第一阈值或者所述具体耗电差值超过第二阈值,则判定所述耗电量参数异常,输出对应的警告提示。
本实施例中,在应用的总耗电量与对应的耗电总量标准数据的耗电总量差值超过第一阈值,或者是应用的具体耗电量与对应的具体耗电标准数据的具体耗电差值超过第二阈值,即该应用的总耗电量或者具体耗电量发生异常,判定耗电应用的耗电量参数异常,并突出具体的异常参数,从而输出对应的警告提示。
参照图5,图5为本申请电量数据的管理方法第四实施例的流程示意图。
基于上述图2所示实施例,所述预设格式模板包括预设图表模板,本实施例中,步骤S30具体包括:
步骤S31,根据预设组装模板,将所述耗电量数据进行分类组装,生成对应的目标耗电量数据;
本实施例中,在通过预设电量数据模板提取出耗电量数据时,进一步将耗电量数据按照预设组装模板进行分类组装。其中,预设组装模板可以是预设组装格式,即预先设定预设组装格式,并将该预设组装格式进行存储,其中,预设格式可以是:{日:小时:{‘energy’:电量,“type”:类型}}。然后根据预设格式进行分类组装即进行格式调整。即分类组装调整后的格式为{28:{17:[{'hour':17,'timestamp':
511.0,'energy':189.27,'typeName':u'Display','time': '11-28
17:00','total':226.12,'type': 10},分类组装后的耗电量数据即为目标耗电量数据。
步骤S32,获取所述目标耗电量数据对应的预设图表模板,将所述目标耗电量数据填充至所述预设图表模板,生成耗电数据显示图表,并通过所述耗电数据显示图表对应显示所述目标耗电量数据。
本实施例中,在得到所述目标耗电量数据后,为了便于用户或者测试人员查阅该数据,本申请还包括预设格式模板,即显示模板,将分类后的目标耗电量数据按照预设的显示模板进行分类显示。其中,预设图表模板可以包括表格、折线图、圆饼图或条形图等,即将分类后的耗电量数据对应填充至预设的显示模板内的表格内,还可以进一步通过圆饼图显示同个应用程序在不同时间内的消耗电量百分比,或通过折线图显示同个应用程序每小时精确的硬件耗电数据等。由此显示出iOS系统内各个应用程序消耗苹果终端的具体电量数据,以供测试人员或者用户进行查看。
进一步地,基于上述实施例,所述电量数据的管理方法还包括:
步骤S61,在接收到基于所述预设图表模板触发的历史对比指令时,根据所述历史对比指令中的目标应用标识符查找数据库,获取目标应用的历史耗电数据;
本实施例中,本申请在显示出iOS系统内各个应用程序消耗苹果终端的具体电量数据时,还可以将各个应用程序在苹果终端的各部分硬件上的具体消耗电量与对应预设耗电阈值进行比较,在超过预设耗电阈值时生成耗电异常的提醒。或者计算出各个应用程序在苹果终端上的总耗电数据,通过折线图显示出各个应用程序对应的总耗电数据,并标示出总耗电数据超过预设值的数据。具体地,在接收到对应的历史对比指令时,获取指令中的目标应用标识符,根据所述目标应用标识符查找数据库,获取对应的历史耗电数据。
步骤S62,获取所述预设图表模板,将所述目标应用的耗电量数据以及历史耗电数据填充至所述预设图表模板,生成并显示历史对比图表。
本实施例中,获取耗电数据对应的预设图表模板,将所述目标应用对应的耗电量数据以及历史耗电数据填入所述预设图表模板中,如表格、折线图、圆饼图或条形图,生成历史对比图表。并通过所述表格、折线图、圆饼图或条形图等图表中的一种或者多种,显示所述目标应用的耗电量数据与历史耗电数据。
此外,本申请实施例还提供一种电量数据的管理装置。
参照图6,图6为本申请电量数据的管理装置第一实施例的功能模块示意图。
本实施例中,所述电量数据的管理装置包括:
数据获取模块10,用于根据目标终端上安装的电量数据获取软件,获取所述目标终端中的iOS系统数据;
数据提取模块20,用于根据预设电量数据模板,在所述iOS系统数据中提取出所述目标终端对应的耗电量数据;
数据显示模块30,用于根据预设组装模板,将所述耗电量数据进行分类组装,生成目标耗电量数据,并根据预设格式模板显示所述目标耗电量数据。
进一步的,所述电量数据的管理装置还包括:
统计模块,用于根据耗电应用标识符,统计所述目标终端上各个应用对应的耗电量参数,其中,所述耗电量参数包括预设时间内应用的总耗电量以及预设时间单位内的具体耗电量;
参数显示模块,用于根据所述耗电量参数确定对应的显示模板,通过所述显示模板显示所述耗电量参数。
对比模块,用于根据所述耗电应用标识符,获取所述各个应用的预设标准数据,并将所述各个应用的耗电量参数与对应的预设标准数据进行对比;
异常提示模块,用于根据对比结果判断所述耗电量参数是否异常,若所述耗电量参数异常,则输出对应的警告提示。
进一步地,所述对比模块具体包括:
第一获取子单元,用于根据所述耗电应用标识符,获取所述各个应用的耗电总量标准数据,并将所述各个应用的总耗电量与对应的耗电总量标准数据进行对比,其中,所述耗电总量标准数据为应用在预设时间内的总耗电阈值;
第二获取子单元,用于获取所述各个应用的总耗电量与对应的耗电总量标准数据的耗电总量差值,若所述差值低于第一阈值,则获取所述各个应用的具体耗电标准数据,其中,所述具体耗电标准数据为所述预设时间单位内的具体耗电阈值;
第三获取子单元,用于将所述各个应用的具体耗电量与对应的具体耗电标准数据进行对比,并获取所述各个应用的具体耗电量与对应的具体耗电标准数据的具体耗电差值。
进一步地,所述异常提示单元具体包括:
判断子单元,用于根据所述耗电总量差值和所述具体耗电差值,判断所述耗电量参数是否异常;
提示子单元,用于若所述耗电总量差值超过第一阈值或者所述具体耗电差值超过第二阈值,则判定所述耗电量参数异常,输出对应的警告提示。
进一步地,数据显示模块具体包括:
分类单元,用于根据预设组装模板,将所述耗电量数据进行分类组装,生成对应的目标耗电量数据;
数据显示单元,用于获取所述目标耗电量数据对应的预设图表模板,将所述目标耗电量数据填充至所述预设图表模板,生成耗电数据显示图表,并通过所述耗电数据显示图表对应显示所述目标耗电量数据。
进一步地,所述电量数据的管理装置还包括:
查找模块,用于在接收到基于所述预设图表模板触发的历史对比指令时,根据所述历史对比指令中的目标应用标识符查找数据库,获取目标应用的历史耗电数据;
图表对比模块,用于获取所述预设图表模板,将所述目标应用的耗电量数据以及历史耗电数据填充至所述预设图表模板,生成并显示历史对比图表。
其中,上述电量数据的管理装置中各个模块与上述电量数据的管理方法实施例中各步骤相对应,其功能和实现过程在此处不再一一赘述。
此外,本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质可以为非易失性可读存储介质。
本申请计算机可读存储介质上存储有电量数据的管理可读指令,其中所述电量数据的管理可读指令被处理器执行时,实现如上述的电量数据的管理方法的步骤。
其中,电量数据的管理可读指令被执行时所实现的方法可参照本申请电量数据的管理方法的各个实施例,此处不再赘述。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。
Claims (20)
- 一种电量数据的管理方法,其特征在于,所述电量数据的管理方法包括以下步骤:根据目标终端上安装的电量数据获取软件,获取所述目标终端中的iOS系统数据;根据预设电量数据模板,在所述iOS系统数据中提取出所述目标终端对应的耗电量数据;根据预设组装模板,将所述耗电量数据进行分类组装,生成目标耗电量数据,并根据预设格式模板显示所述目标耗电量数据。
- 如权利要求1所述的电量数据的管理方法,其特征在于,所述电量数据的管理方法还包括:根据耗电应用标识符,统计所述目标终端上各个应用对应的耗电量参数,其中,所述耗电量参数包括预设时间内应用的总耗电量以及预设时间单位内的具体耗电量;根据所述耗电量参数确定对应的显示模板,通过所述显示模板显示所述耗电量参数。
- 如权利要求2所述的电量数据的管理方法,其特征在于,所述电量数据的管理方法还包括:根据所述耗电应用标识符,获取所述各个应用的预设标准数据,并将所述各个应用的耗电量参数与对应的预设标准数据进行对比;根据对比结果判断所述耗电量参数是否异常,若所述耗电量参数异常,则输出对应的警告提示。
- 如权利要求3所述的电量数据的管理方法,其特征在于,所述预设标准数据包括耗电总量标准数据和具体耗电标准数据,所述根据所述耗电应用标识符,获取所述各个应用的预设标准数据,并将所述各个应用的耗电量参数与对应的预设标准数据进行对比的步骤包括:根据所述耗电应用标识符,获取所述各个应用的耗电总量标准数据,并将所述各个应用的总耗电量与对应的耗电总量标准数据进行对比,其中,所述耗电总量标准数据为应用在预设时间内的总耗电阈值;获取所述各个应用的总耗电量与对应的耗电总量标准数据的耗电总量差值,若所述差值低于第一阈值,则获取所述各个应用的具体耗电标准数据,其中,所述具体耗电标准数据为所述预设时间单位内的具体耗电阈值;将所述各个应用的具体耗电量与对应的具体耗电标准数据进行对比,并获取所述各个应用的具体耗电量与对应的具体耗电标准数据的具体耗电差值。
- 如权利要求4所述的电量数据的管理方法,其特征在于,所述根据对比结果判断所述耗电量参数是否异常,若所述耗电量参数异常,则输出对应的警告提示的步骤包括:根据所述耗电总量差值和所述具体耗电差值,判断所述耗电量参数是否异常;若所述耗电总量差值超过第一阈值或者所述具体耗电差值超过第二阈值,则判定所述耗电量参数异常,输出对应的警告提示。
- 如权利要求1所述的电量数据的管理方法,其特征在于,所述预设格式模板包括预设图表模板,所述根据预设组装模板,将所述耗电量数据进行分类组装,生成目标耗电量数据,并根据预设格式模板显示所述目标耗电量数据的步骤包括:根据预设组装模板,将所述耗电量数据进行分类组装,生成对应的目标耗电量数据;获取所述目标耗电量数据对应的预设图表模板,将所述目标耗电量数据填充至所述预设图表模板,生成耗电数据显示图表,并通过所述耗电数据显示图表对应显示所述目标耗电量数据。
- 如权利要求6所述的电量数据的管理方法,其特征在于,所述电量数据的管理方法还包括:在接收到基于所述预设图表模板触发的历史对比指令时,根据所述历史对比指令中的目标应用标识符查找数据库,获取目标应用的历史耗电数据;获取所述预设图表模板,将所述目标应用的耗电量数据以及历史耗电数据填充至所述预设图表模板,生成并显示历史对比图表。
- 一种电量数据的管理装置,其特征在于,所述电量数据的管理装置包括:数据获取模块,用于根据目标终端上安装的电量数据获取软件,获取所述目标终端中的iOS系统数据;数据提取模块,用于根据预设电量数据模板,在所述iOS系统数据中提取出所述目标终端对应的耗电量数据;数据显示模块,用于根据预设组装模板,将所述耗电量数据进行分类组装,生成目标耗电量数据,并根据预设格式模板显示所述目标耗电量数据。
- 如权利要求8所述的电量数据的管理装置,其特征在于,数据显示模块具体包括:分类单元,用于根据预设组装模板,将所述耗电量数据进行分类组装,生成对应的目标耗电量数据;数据显示单元,用于获取所述目标耗电量数据对应的预设图表模板,将所述目标耗电量数据填充至所述预设图表模板,生成耗电数据显示图表,并通过所述耗电数据显示图表对应显示所述目标耗电量数据。
- 如权利要求8所述的电量数据的管理装置,其特征在于,所述电量数据的管理装置还包括:统计模块,用于根据耗电应用标识符,统计所述目标终端上各个应用对应的耗电量参数,其中,所述耗电量参数包括预设时间内应用的总耗电量以及预设时间单位内的具体耗电量;参数显示模块,用于根据所述耗电量参数确定对应的显示模板,通过所述显示模板显示所述耗电量参数。对比模块,用于根据所述耗电应用标识符,获取所述各个应用的预设标准数据,并将所述各个应用的耗电量参数与对应的预设标准数据进行对比;异常提示模块,用于根据对比结果判断所述耗电量参数是否异常,若所述耗电量参数异常,则输出对应的警告提示。
- 如权利要求10所述的电量数据的管理装置,其特征在于,所述对比模块具体包括:第一获取子单元,用于根据所述耗电应用标识符,获取所述各个应用的耗电总量标准数据,并将所述各个应用的总耗电量与对应的耗电总量标准数据进行对比,其中,所述耗电总量标准数据为应用在预设时间内的总耗电阈值;第二获取子单元,用于获取所述各个应用的总耗电量与对应的耗电总量标准数据的耗电总量差值,若所述差值低于第一阈值,则获取所述各个应用的具体耗电标准数据,其中,所述具体耗电标准数据为所述预设时间单位内的具体耗电阈值;第三获取子单元,用于将所述各个应用的具体耗电量与对应的具体耗电标准数据进行对比,并获取所述各个应用的具体耗电量与对应的具体耗电标准数据的具体耗电差值。
- 如权利要求10所述的电量数据的管理装置,其特征在于,所述异常提示单元具体包括:判断子单元,用于根据所述耗电总量差值和所述具体耗电差值,判断所述耗电量参数是否异常;提示子单元,用于若所述耗电总量差值超过第一阈值或者所述具体耗电差值超过第二阈值,则判定所述耗电量参数异常,输出对应的警告提示。
- 一种电量数据的管理设备,其特征在于,所述电量数据的管理设备包括处理器、存储器、以及存储在所述存储器上并可被所述处理器执行的电量数据的管理可读指令,其中所述电量数据的管理可读指令被所述处理器执行时,实现如权利要求1所述的电量数据的管理方法的步骤。
- 一种电量数据的管理设备,其特征在于,所述电量数据的管理设备包括处理器、存储器、以及存储在所述存储器上并可被所述处理器执行的电量数据的管理可读指令,其中所述电量数据的管理可读指令被所述处理器执行时,实现如权利要求2所述的电量数据的管理方法的步骤。
- 一种电量数据的管理设备,其特征在于,所述电量数据的管理设备包括处理器、存储器、以及存储在所述存储器上并可被所述处理器执行的电量数据的管理可读指令,其中所述电量数据的管理可读指令被所述处理器执行时,实现如权利要求3所述的电量数据的管理方法的步骤。
- 一种电量数据的管理设备,其特征在于,所述电量数据的管理设备包括处理器、存储器、以及存储在所述存储器上并可被所述处理器执行的电量数据的管理可读指令,其中所述电量数据的管理可读指令被所述处理器执行时,实现如权利要求4所述的电量数据的管理方法的步骤。
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有电量数据的管理可读指令,其中所述电量数据的管理可读指令被处理器执行时,实现如权利要求1所述的电量数据的管理方法的步骤。
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有电量数据的管理可读指令,其中所述电量数据的管理可读指令被处理器执行时,实现如权利要求2所述的电量数据的管理方法的步骤。
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有电量数据的管理可读指令,其中所述电量数据的管理可读指令被处理器执行时,实现如权利要求3所述的电量数据的管理方法的步骤。
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有电量数据的管理可读指令,其中所述电量数据的管理可读指令被处理器执行时,实现如权利要求4所述的电量数据的管理方法的步骤。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810477042.2A CN109726088A (zh) | 2018-05-17 | 2018-05-17 | 电量数据的管理方法、装置、设备及可读存储介质 |
| CN201810477042.2 | 2018-05-17 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2019218442A1 true WO2019218442A1 (zh) | 2019-11-21 |
Family
ID=66293871
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2018/094725 Ceased WO2019218442A1 (zh) | 2018-05-17 | 2018-07-06 | 电量数据的管理方法、装置、设备及可读存储介质 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN109726088A (zh) |
| WO (1) | WO2019218442A1 (zh) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112202897A (zh) * | 2020-09-30 | 2021-01-08 | 重庆市海普软件产业有限公司 | 低功耗智能物联网关 |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113873353B (zh) * | 2021-09-28 | 2024-04-30 | 深圳Tcl新技术有限公司 | 电量统计处理方法、智能模组、服务器及数据处理系统 |
| CN114255861B (zh) * | 2022-01-20 | 2024-12-24 | 景昱医疗科技(苏州)股份有限公司 | 一种医疗植入设备的数据处理方法、装置、介质及设备 |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102478951A (zh) * | 2010-11-24 | 2012-05-30 | 上海三旗通信科技股份有限公司 | 一种便携终端的智能电量管理方法 |
| CN104237789A (zh) * | 2013-06-09 | 2014-12-24 | 腾讯科技(深圳)有限公司 | 电池续航时间预估的方法及装置 |
| CN104516806A (zh) * | 2014-12-26 | 2015-04-15 | 北京奇虎科技有限公司 | 移动终端的耗电信息的检测结果展示方法及系统 |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102508761B (zh) * | 2011-11-17 | 2015-11-25 | 宇龙计算机通信科技(深圳)有限公司 | 终端电量的管理方法和终端 |
| CN105988909A (zh) * | 2015-02-06 | 2016-10-05 | 展讯通信(天津)有限公司 | 一种实时监控系统及方法以及移动终端 |
| CN107291603A (zh) * | 2017-06-22 | 2017-10-24 | 广东欧珀移动通信有限公司 | 耗电日志解析方法、装置、移动终端和可读存储介质 |
-
2018
- 2018-05-17 CN CN201810477042.2A patent/CN109726088A/zh active Pending
- 2018-07-06 WO PCT/CN2018/094725 patent/WO2019218442A1/zh not_active Ceased
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102478951A (zh) * | 2010-11-24 | 2012-05-30 | 上海三旗通信科技股份有限公司 | 一种便携终端的智能电量管理方法 |
| CN104237789A (zh) * | 2013-06-09 | 2014-12-24 | 腾讯科技(深圳)有限公司 | 电池续航时间预估的方法及装置 |
| CN104516806A (zh) * | 2014-12-26 | 2015-04-15 | 北京奇虎科技有限公司 | 移动终端的耗电信息的检测结果展示方法及系统 |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112202897A (zh) * | 2020-09-30 | 2021-01-08 | 重庆市海普软件产业有限公司 | 低功耗智能物联网关 |
| CN112202897B (zh) * | 2020-09-30 | 2022-05-13 | 重庆市海普软件产业有限公司 | 低功耗智能物联网关 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN109726088A (zh) | 2019-05-07 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2018107610A1 (zh) | 业务数据处理方法、系统、设备及计算机可读存储介质 | |
| WO2018205544A1 (zh) | 软件项目管理方法、装置、终端及计算机存储介质 | |
| WO2019037396A1 (zh) | 账户清结算方法、装置、设备及存储介质 | |
| WO2019075973A1 (zh) | 应用程序的测试方法及装置 | |
| WO2018149300A1 (zh) | 疾病概率的检测方法、装置、设备及计算机可读存储介质 | |
| WO2019196213A1 (zh) | 接口测试方法、装置、设备及计算机可读存储介质 | |
| WO2019061613A1 (zh) | 贷款资质筛选方法、装置及计算机可读存储介质 | |
| WO2019100604A1 (zh) | 账户查询方法、装置、设备及计算机可读存储介质 | |
| WO2015144089A1 (en) | Application recommending method and apparatus | |
| WO2019024219A1 (zh) | 文档自动生成方法、装置、文档自动生成器及介质 | |
| WO2018205545A1 (zh) | 数据生成方法、装置、终端及计算机可读存储介质 | |
| WO2020224247A1 (zh) | 基于区块链的数据溯源方法、装置、设备及可读存储介质 | |
| WO2019041851A1 (zh) | 家电售后咨询方法、电子设备和计算机可读存储介质 | |
| WO2018205376A1 (zh) | 一种关联信息查询方法、终端、服务器管理系统及计算机可读存储介质 | |
| WO2016201745A1 (zh) | 基于用户终端的就诊提示方法、用户终端和网络医院平台 | |
| WO2018023926A1 (zh) | 电视与移动终端的互动方法及系统 | |
| WO2019062113A1 (zh) | 家电设备的控制方法、装置、家电设备及可读存储介质 | |
| WO2018233301A1 (zh) | 产品推荐方法、装置、设备以及计算机可读存储介质 | |
| WO2019062199A1 (zh) | 用电计费方式的推荐方法、装置及存储介质 | |
| WO2019109521A1 (zh) | 视频面签身份审核方法、装置、设备及可读存储介质 | |
| WO2018053963A1 (zh) | 智能电视的系统升级方法及装置 | |
| WO2019218442A1 (zh) | 电量数据的管理方法、装置、设备及可读存储介质 | |
| WO2018166314A1 (zh) | 额度审批方法、装置、设备以及计算机可读存储介质 | |
| WO2016058258A1 (zh) | 终端远程控制方法和系统 | |
| WO2018076811A1 (zh) | 数据分享方法、装置、存储介质及电子设备 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18919049 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 18919049 Country of ref document: EP Kind code of ref document: A1 |