Test method and device, storage medium and program product
By detecting different operating parameters and frequency information of the processor in electronic equipment, we evaluate whether it can run high-load programs normally after dynamic voltage adjustment, which solves the performance stability problem caused by dynamic voltage adjustment and ensures that the equipment can operate under different load conditions. normal operation, reduce failure rate and improve user satisfaction.
Patent Information
- Application Number
- CN202410911602.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-07-09
AI Technical Summary
Dynamic voltage regulation technology in electronic devices may cause the graphics processor to reduce the image rendering rate at low voltage, causing user experience to freeze, and making it difficult to ensure the stability of the device's working performance under different load conditions.
Provide a testing method that detects different operating parameters of the processor and runs test programs to evaluate the performance of electronic equipment, including testing whether the equipment can normally run high-load programs such as video playback or games after dynamic voltage regulation operations to ensure that the processor It can work normally under different frequency information.
Through testing methods, potential risks can be detected and intercepted before the equipment leaves the factory, ensuring that dynamic voltage regulation technology will not affect working performance, reducing the proportion of user fault feedback, and improving the recommendation index of the equipment.
Smart Images

Figure CN118567931A
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to a testing method, device, storage medium and program product. Background Art
[0002] In order to reduce the power consumption of electronic devices, dynamic voltage regulation technology can be installed in electronic devices to dynamically adjust the operating voltage based on the actual load of the electronic device. For example, when the actual load of the mobile phone 10 is high, such as Figure 1A As shown, when the mobile phone 10 runs multiple large-scale games and other high-power processes, the mobile phone 10 can support the power consumption required for running the game through the normal working voltage, thereby achieving multiple tasks such as game screen rendering, audio processing, voice communication, etc. For another example, when the actual load of the mobile phone 10 is low, such as Figure 1B As shown, if the mobile phone 10 only opens a low-power process such as a photo album, the mobile phone 10 can meet the power consumption required by the program through a lower operating voltage, thereby saving the power consumption of the mobile phone 10.
[0003] Among them, after the electronic device is equipped with dynamic voltage regulation technology, it may affect the working performance of the electronic device. For example, when the actual load of the electronic device is low, the working voltage of the electronic device can be reduced. However, the graphics processor in the electronic device may reduce the image rendering rate under low voltage, resulting in slower image rendering and causing freezes when users watch videos. Summary of the invention
[0004] To solve the above problems, the present application provides a testing method, device, storage medium and program product.
[0005] In a first aspect, the present application provides a testing method for an electronic device, the method comprising: detecting a test operation and starting a test program; controlling the electronic device to run the test program to perform preset tasks under different operating parameters of the processor to obtain multiple test results, wherein the operating parameters include the frequency of the processor; and evaluating the performance of the electronic device based on the multiple test results and the preset results of the preset tasks.
[0006] In the above scheme, when the electronic device detects an operation instruction to start the test program, the test program can be started to execute the test method mentioned in the present application. Among them, since the processor usually has multiple operating parameters, for example, as shown in Table 1 below, the central processing unit (CPU) 012 may have frequency 11 and frequency 12. Therefore, the electronic device can run the test program multiple times to perform the preset task under different frequency information of the processor, and obtain multiple test results, so as to determine whether each processor in the electronic device can work normally when different frequency information is set. Finally, the electronic device can evaluate the working performance of the electronic device based on multiple test results and preset results of the preset task. For example, the working performance of the electronic device such as screen rendering, data operation, and processing efficiency can be determined based on test results such as output parameters such as video resolution, response rate, and accuracy of operation results. Among them, if more test results are slightly different from the preset results, it means that the performance of the electronic device is in a normal state; if there is a test result that is significantly different from the preset result, it can be indicated that the performance of the electronic device is in an abnormal state.
[0007] Thus, based on the above test method, it can be determined whether each processor in the electronic device can work normally when different frequency information is set; and the stability test of the electronic device can be completed before the electronic device leaves the factory, so as to intercept or modify the electronic device with risks. Thus, each electronic device has stable working performance after leaving the factory, which can reduce the proportion of user failure feedback on the electronic device and improve the user's recommendation index for the electronic device.
[0008] In a possible implementation of the first aspect above, the above-mentioned detection of a test operation and starting a test program include: when a test operation is detected and a dynamic voltage regulation function of the electronic device is started, starting the test program, wherein the dynamic voltage regulation strategy includes the electronic device adjusting the operating voltage based on the workload.
[0009] In the above solution, the electronic device may be subjected to a dynamic voltage regulation operation before the test operation is performed. For example, the electronic device may reduce the operating voltage under low load conditions before starting the test program, or increase the operating voltage under high load conditions before starting the test program.
[0010] In this way, it is possible to detect whether the dynamic voltage regulation operation will affect the working performance of the electronic device. For example, after reducing the working voltage of the electronic device, it is possible to detect whether the electronic device can still run test programs such as video playback programs normally under the low voltage state, so that the electronic device with abnormal working performance due to the dynamic voltage regulation operation can be determined so as to perform maintenance on it. This ensures that each electronic device equipped with dynamic voltage regulation technology has stable working performance after leaving the factory, so that the working voltage can be dynamically adjusted based on the current actual load of the electronic device to save the power consumption of the electronic device.
[0011] In a possible implementation of the first aspect above, the test program may be any application program, such as a video playback program, a game running program, a neural network model operation, etc.
[0012] In the above scheme, running the test program to perform the preset task may include simulating the user's actual use environment or operation, etc. For example, when the test program is a program corresponding to the test scenario of video playback, the preset task may include playing video files of different formats in the electronic device, adjusting the video progress bar, adjusting the screen brightness, adjusting the video clarity and other operations, so as to obtain the video screen display effect, the smoothness of the image frame display and other test results. For another example, when the test program is a program corresponding to the test scenario of game operation, the preset task may include simulating the user's game operation, account registration, teammate connection and other operations in the electronic device, so as to obtain the smoothness of the game screen, the clarity of the call and other test results. This application does not limit the specific execution operations and test results corresponding to the preset tasks.
[0013] In this way, by starting the test program to execute the preset task, it is possible to test whether the electronic device can run the application program normally and whether it can respond to the user's operation instructions quickly. For example, when the test program is a game running program, it is possible to test whether the various working performances corresponding to the game running program are in a normal working state, for example, including but not limited to: screen rendering function, network connection function, response rate to user operation instructions, etc. In this way, electronic devices whose working performance related to the test program is in an abnormal state can be detected so that they can be repaired and processed to improve the working stability of the electronic device.
[0014] In a possible implementation of the first aspect above, the control electronic device runs the test program to perform preset tasks under different operating parameters of the processor to obtain multiple test results, including: determining the number of tests based on multiple operating parameters of the processor and the operating parameters of the processor during each test; based on the current number of tests being the first number and the operating parameters of the processor corresponding to the first number being the first operating parameters, controlling the operating parameters of the processor to be the first operating parameters, and running the test program to perform preset tasks to obtain the test results of the first number; based on the operating parameters of the processor during each test, running the test program to perform preset tasks to obtain the test results of each test.
[0015] In the present application, the first number may be the first time the test program is run mentioned in the application; the first operating parameter may be the operating parameter corresponding to each processor when the test program is run for the first time mentioned in the present application.
[0016] In the above solution, the processor usually has multiple operating parameters (for example, multiple frequency points). For example, as shown in Table 1 below, CPU 012 may have frequency point 11 and frequency point 12. Therefore, the electronic device may run the test program multiple times, and each processor may set different frequency point information to traverse all frequency point information each time the test program is run, so as to determine whether each processor in the electronic device can work normally when different frequency point information is set.
[0017] In the above scheme, the electronic device can first obtain multiple frequency point information corresponding to each processor, and then determine the number of tests based on the frequency point information, and determine the frequency point information corresponding to each processor during each test. For example, when the test is performed for the first time, one frequency point information can be arbitrarily selected from the multiple frequency point information of each processor, so that each processor runs the test scenario under the current frequency point information. When the test is performed for the second time, one frequency point information different from the frequency point information set for the first time can be arbitrarily selected from the multiple frequency point information of each processor for configuration. Among them, if the number m of frequency point information preset in the processor is less than the number of tests k, the processor can configure different frequency point information in the first m tests, and in the m+1~k tests, the processor can use any one of the preset frequency point information for testing. In this way, the number of tests required to test the electronic device can be determined, and the operating parameters corresponding to the processor during each test can be determined, so that each processor runs the test program based on the current number of test rounds and the corresponding frequency point information.
[0018] In this way, it can be determined whether the processors in the electronic device can work normally when different frequency information is set. If there is a processor that cannot work normally under a certain frequency information, the abnormal processor can be detected and repaired to improve the working stability of the electronic device.
[0019] In a possible implementation of the first aspect, the performance of the electronic device is evaluated based on multiple test results and preset results of preset tasks, including: if the number of test results satisfying preset conditions among the multiple test results is greater than the preset number, determining that the performance of the electronic device is in a normal state; if the number of test results satisfying preset conditions among the multiple test results is less than or equal to the preset number, determining that the performance of the electronic device is in an abnormal state. The preset condition includes that the difference between the test result and the corresponding preset result is within a preset range.
[0020] In the above scheme, different preset results can be set for different test scenarios, and one or more preset results can be set for the same test scenario. For example, the preset result corresponding to the neural network model operation can be set to at least one of the accuracy of the calculation result a%, the running time b seconds, etc.; for another example, the preset result corresponding to the game running test scenario can be set to at least one of the game operation instruction response time c seconds, the screen resolution d, etc. This application does not limit this.
[0021] Among them, if the number of test results that meet the preset conditions among multiple test results is greater than the preset number, it is determined that the working performance of the electronic device is in a normal state. For example, if more than 80% of the test results meet the preset conditions, it can be determined that the working performance of the electronic device is normal. If the number of test results that meet the preset conditions among multiple test results is less than or equal to the preset number, it is determined that the working performance of the electronic device is in an abnormal state. For example, if less than 80% of the test results meet the preset conditions, it can be determined that the working performance of the electronic device is abnormal. Among them, the preset condition can be that the difference between the test result and the corresponding preset result is within a preset range. In addition, the preset conditions, preset numbers, and preset ranges can be set arbitrarily, and this application does not limit this.
[0022] In other implementations, if the test result corresponding to a certain frequency point information differs greatly from the preset result, it may indicate that the processor cannot normally run the program related to the test scenario under the frequency point information; or, if the test results corresponding to multiple frequency point information differ greatly from the preset result, it may indicate that the performance of the electronic device related to the test result is in an abnormal state. For example, if the test results corresponding to a few frequency point information of an embedded neural processing unit (NPU) differ greatly from the preset result, it may indicate that the NPU cannot normally run the program related to the test scenario under the frequency point information; if the test results corresponding to multiple frequency point information of the NPU differ greatly from the preset result, it may indicate that the circuit and other structures inside the NPU are in an abnormal state.
[0023] In this way, it can be determined whether the processor can normally run the test scenario related programs under different frequency information; and it can also be tested at the same time whether other working performances related to the test scenario are in normal working state.
[0024] In a possible implementation of the first aspect above, the performance of the above electronic device may include but is not limited to one or more of camera photography, screen display, horizontal and vertical line display, sleep and wake-up, radio frequency function, processor function, and storage function.
[0025] In the above scheme, as described later Figure 3B As shown, the performance of the electronic device related to the test program may include but is not limited to: camera photo function, whether the screen can display horizontal and vertical lines without breakpoints and curved straight lines, picture display function, sleep and wake-up function of whether the electronic device can be turned on normally, radio frequency function of whether it can communicate normally, processor high load function, and data storage function.
[0026] In the above scheme, when the electronic device runs the test program to perform the preset task, it can be used to test the multiple performances mentioned above. For example, the game running program can be used to test the processor high load test and data storage function mentioned above; the online call with teammates can be used to test the communication function; the game screen can be used to test the horizontal and vertical line display function and the screen display function mentioned above; the face recognition during game registration can be used to test the camera photo function; when the electronic device is turned on to enter the game, the sleep wake-up function mentioned above can be realized, etc.
[0027] In this way, when testing an electronic device, multiple performances in the electronic device can be tested, thereby achieving a comprehensive test of the electronic device, thereby improving the overall working stability of the electronic device.
[0028] In a possible implementation of the first aspect, the test results may include but are not limited to: the accuracy of the output result, the parameter value of the output parameter, the response time or the operation rate; the preset result may also include but is not limited to: the preset accuracy, the preset parameter value, the preset response time or the preset operation rate. The present application does not limit the type of the test result and the preset result corresponding to the test result.
[0029] In the above scheme, different test programs can set different preset results, and the same test program can set one or more preset results. For example, the preset result corresponding to the neural network model operation can be set to at least one of the accuracy of the calculation result a%, the running time b seconds, etc.; for another example, the preset result corresponding to the game running program can be set to at least one of the game operation instruction response time c seconds, the screen resolution d, etc. This application does not limit this.
[0030] In this way, through a plurality of different test results, the working performance of the electronic device can be comprehensively tested in all aspects, so as to screen out the electronic device that does not meet the preset results for repair, thereby improving the working stability of the electronic device.
[0031] In a possible implementation of the first aspect above, the started processor includes but is not limited to: a central processing unit, a graphics processing unit, an embedded neural network processor, etc.; and the central processing unit can also be one or more models of central processing units.
[0032] In the above scheme, the test program can be run by multiple processors together. For example, the video playback program can load the video playback environment through the central processing unit and render the video screen through the graphics processor. Therefore, when testing, one or more processors can be started at the same time for testing. In this way, it can be determined at the same time whether one or more processors can run the test program normally to perform the preset task under different operating parameters.
[0033] In a second aspect, the present application provides an electronic device, comprising: a memory and a processor, the memory being used to store instructions executed by one or more processors of the electronic device, and the processor being one of the one or more processors of the electronic device, and being used to execute the test method mentioned in the present application.
[0034] In a third aspect, the present application provides a readable storage medium having instructions stored thereon, which, when executed on an electronic device, enables the electronic device to execute the test method mentioned in the present application.
[0035] In a fourth aspect, the present application provides a computer program product, comprising: computer instructions, which, when executed on an electronic device, cause the electronic device to execute the test method mentioned in the present application.
[0036] The beneficial effects of the second to fourth aspects mentioned above can be referred to the relevant descriptions in the first aspect mentioned above and various possible implementations of the first aspect, and will not be elaborated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1A According to some embodiments of the present application, a schematic diagram of an application scenario of a first dynamic voltage regulation technology is shown; Figure 1B According to some embodiments of the present application, a schematic diagram of an application scenario of a second dynamic voltage regulation technology is shown; Figure 2 According to some embodiments of the present application, a schematic diagram of a system architecture of an electronic device is shown; Figure 3A According to some embodiments of the present application, a schematic diagram of relevant functional modules of a testing method is shown; Figure 3B According to some embodiments of the present application, a schematic diagram of functional modules included in an aging test program is shown; Figure 4 According to some embodiments of the present application, a flow chart of a testing method is shown; Figure 5 According to some embodiments of the present application, an interactive schematic diagram of an electronic device implementing a testing method is shown; Figure 6 According to some embodiments of the present application, a specific flow chart of a testing method is shown; Figure 7 According to some embodiments of the present application, a schematic diagram of hardware results of an electronic device is shown. DETAILED DESCRIPTION
[0038] The illustrative embodiments of the present application include, but are not limited to, a testing method, an apparatus, a storage medium, and a program product.
[0039] The following is a brief description of the background of the testing method provided in the embodiments of the present application.
[0040] As mentioned above, dynamic voltage regulation technology can be installed in electronic devices to adjust the operating voltage based on the current actual load of the electronic device, thereby saving the power consumption of the electronic device. For example, when the electronic device runs multiple high-power processes resulting in a high actual load, the electronic device can support the power consumption required for the process operation through a normal operating voltage, thereby meeting the required processing rate and other requirements. Alternatively, when the electronic device runs a low-power process resulting in a low actual load, the electronic device can support the power consumption required for the process operation through a lower operating voltage, thereby saving the power consumption of the electronic device. For example, when the actual load of the electronic device is low, the power supply voltage of the power management module in the electronic device to each device (such as each processor, etc.) in the electronic device can be reduced.
[0041] It is understandable that after the operating voltage of an electronic device is lowered, the electronic device may not be able to run user programs normally under low voltage. For example, the graphics processor in an electronic device may reduce the image rendering rate under low voltage, resulting in slower image rendering and causing stuttering when the user watches the video. Therefore, in order to avoid the situation where the voltage adjustment affects the working performance of the electronic device, after the electronic device is equipped with dynamic voltage regulation technology, it is also necessary to verify whether the dynamic voltage regulation technology will affect the stability of the electronic device.
[0042] Therefore, the present application proposes a test method. After the electronic device is subjected to dynamic voltage regulation, a test scenario can be first constructed in the electronic device, such as a test scenario such as video playback and game running. Among them, since the electronic device may include multiple processors such as a central processing unit and a graphics processing unit, and each processor may have multiple frequency information. Therefore, the electronic device can run the test scenario multiple times for testing, and the processor used can be set to different frequency information each time the test scenario is run to traverse all the frequency information, so that it can be determined whether each processor can work normally when different frequency information is set after the electronic device is subjected to dynamic voltage regulation. For example, if processor A has multiple frequency information, processor A can be set to frequency 1 in the first test, and processor A can be set to frequency 2 in the second test, until processor A traverses the frequency information in multiple tests. Finally, the electronic device can determine whether the dynamic voltage regulation operation affects the working performance of the electronic device based on the test results corresponding to the test scenario. For example, the working performance of the electronic device such as screen rendering, data calculation, and processing efficiency can be determined based on the test results of output parameters such as video resolution, response rate, and accuracy of calculation results. Among them, if more test results are slightly different from the preset results, it means that the dynamic voltage regulation technology will not affect the working performance of the electronic device; if there is a test result that is significantly different from the preset result, it may mean that the processor cannot normally run the program related to the test scenario under the frequency information, thereby determining that the dynamic voltage regulation technology will affect the working performance of the electronic device.
[0043] In this way, based on the above-mentioned test method, the stability test of the electronic equipment can be completed before the electronic equipment leaves the factory, so as to intercept or modify the electronic equipment with risks. For example, if there is a test result of a certain electronic device and the test result of the test scenario in the electronic device is significantly different from the preset result, the electronic device can be repaired or intercepted from leaving the factory. As a result, each electronic device equipped with dynamic voltage regulation technology has stable working performance after leaving the factory, which can reduce the fault feedback ratio (FFR) of users for electronic devices and improve the recommendation index (net promoter score (NPS)) of users for electronic devices.
[0044] In some embodiments, the electronic device generally includes multiple processors, such as a central processing unit (CPU), a graphics processing unit (GPU), and an embedded neural processing unit (NPU). In addition, the CPU generally includes at least one type of CPU. Each processor is generally configured with multiple frequencies (which may be referred to as "frequency point information") to match different working requirements.
[0045] Therefore, when testing an electronic device, each processor can select different frequency information each time the test is performed, so as to determine the working performance of each processor when configuring different frequency information through multiple tests. For example, if the electronic device needs to start the processors CPU 012, CPU 3456, CPU 7, GPU and NPU at the same time when running the test scenario, then each time the test is performed, one frequency information can be arbitrarily selected from the multiple frequency information of each processor, so as to start multiple processors at the same time for testing (which can be called "combination testing"). Specifically, Table 1 shows the scenario of combining different frequency information to test the electronic device.
[0046] Table 1:
[0047] As shown in Table 1, when the test is performed for the first time, one frequency point information can be arbitrarily selected from the multiple frequency point information of each processor, so that each processor runs the test scenario under the current frequency point information. For example, the frequency point information of CPU 012 can be configured as frequency point 11, the frequency point information of CPU 3456 can be configured as frequency point 21, the frequency point information of CPU 7 can be configured as frequency point 31, the frequency point information of GPU can be configured as frequency point 41, and the frequency point information of NPU can be configured as frequency point 51. After configuring the corresponding frequency point information for each processor, multiple processors can be started to run the test scenario, thereby realizing the test method mentioned in this application.
[0048] Next, as shown in Table 1, when the frequency information of each processor is determined during the second test, each processor can arbitrarily select a frequency information different from the frequency information set for the first time from the frequency information it has for configuration. For example, if the frequency information of the NPU can be set to frequency 51 during the first test, the frequency information of the NPU can be set to any other frequency information except frequency 51 during the second test, such as frequency 52, frequency 53, etc., and this application does not limit this.
[0049] In some embodiments, if the number m of frequency point information possessed by a processor is less than the number of tests k, the processor may configure different frequency point information in the first m tests, and the processor may use any one of the frequency point information possessed for testing in the m+1 to k tests. For example, as shown in Table 1, if CPU 012 only presets two types of frequency point information, namely, frequency point 11 and frequency point 12, different frequency point information may be used for the first and second tests, and any one of the two types of frequency point information may be configured for testing in the third to kth tests.
[0050] In some embodiments, as shown in Table 1, a total of k tests may be performed on the electronic device. In the k tests, each processor traverses all the frequency information it has. For example, if k-1 types of frequency information are preset in the CPU 3456, then in the k tests, the frequency information configured by the CPU 3456 is different during k-1 tests. Or, for example, if k types of frequency information are preset in the GPU, then in the k tests, the GPU can configure different frequency information to run the test scenario each time. In this way, the working performance of the electronic device can be determined when each processor is configured with different frequency information.
[0051] The time of each test can be set arbitrarily. For example, as shown in Table 1, the time of each test can be set to 5 seconds. And after each test, each processor can be put into standby mode to stop the operation of each processor so that each processor can release memory or cool down. It should be understood that the standby time can be set arbitrarily by the system or the developer. For example, the standby time can be set to 5 seconds. This application does not make any specific restrictions on this. In this way, based on the above-mentioned testing method, the stability test of the electronic equipment can be completed before the electronic equipment leaves the factory, so as to intercept or modify the electronic equipment with risks, so that each electronic equipment equipped with dynamic voltage regulation technology has stable working performance after leaving the factory.
[0052] It is understood that the test method provided in the embodiment of the present application is applicable to any electronic device including but not limited to mobile phones, computers, tablet computers, augmented reality (AR) devices, laptop computers, servers, etc. The present application does not limit this.
[0053] The following still takes the electronic device as a mobile phone 10 as an example. Figure 2 , briefly describe the system architecture of the electronic device.
[0054] like Figure 2 , which shows a software structure block diagram of the mobile phone 10. The layered architecture divides the software into several layers, each layer has a clear role and division of labor, and the layers communicate with each other through software interfaces.
[0055] In some embodiments, the system architecture of the electronic device can be divided into four layers, namely, from top to bottom, an application layer 21, an application framework layer 22 (Framework), a local service layer 23 (Native), and a kernel layer 24 (Kernel).
[0056] like Figure 2 As shown, the application layer 21 may include a series of application packages, such as camera, gallery, calendar, Bluetooth and other applications, and may also include a program corresponding to the test method mentioned in this application (which may be called an aging test program).
[0057] Among them, the aging test program may include a file loading module, a test content determination module, a temperature and power monitoring module, a test result visualization module, etc. Specifically, the file loading module can be used to load the configuration file related to the aging test program so that the electronic device can run the aging test program. The test content determination module can be used to configure the program or file related to the test scenario; the temperature and power monitoring module can be used to monitor the temperature change and power change of the electronic device; the test result visualization module can be used to display the test results of the electronic device.
[0058] The application framework layer 22 may provide an application programming interface (API) and a programming framework for the applications in the application layer 21. In some embodiments, the application framework layer 22 may include some predefined functions, such as a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, etc.
[0059] The local service layer 23 may also be referred to as a system runtime layer. The local service layer 23 may include an aging test module, a surface manager, a media database, a three-dimensional graphics processing library, a two-dimensional graphics engine, and the like.
[0060] The aging test module may include a test start module, a test result determination module, and a scenario data construction module. Specifically, the test start module may be used to determine the number of tests as shown in Table 1 above and the frequency point information corresponding to each processor during each test; the test result determination module may be used to determine whether each test result meets the preset result; and the scenario data construction module may be used to construct specific test scenario data.
[0061] The kernel layer 24 is a layer between hardware and software. The kernel layer at least includes display driver, camera driver, audio driver, sensor driver, and dynamic voltage regulation driver.
[0062] Combine the following Figure 3A The functional module diagram shown above Figure 2 Taking the system architecture shown in as an example, the relevant functional modules used when the electronic device executes the test method mentioned in this application are specifically introduced.
[0063] like Figure 3A As shown, the test method mentioned in the present application can be implemented through the interaction between the application layer 21, the application framework layer 22 (Framework), the local service layer 23 (Native), the kernel layer 24 (Kernel), and the hardware layer 25 (Hardware).
[0064] like Figure 3A As shown, when the electronic device performs a dynamic voltage regulation operation, the dynamic voltage regulation driver 301 in the kernel layer 24 can send a startup instruction to the dynamic voltage regulation module 302 in the hardware layer 25 to control the dynamic voltage regulation module 302 to adjust the working voltage of the electronic device. After the electronic device performs the dynamic voltage regulation operation, the test method mentioned in this application is executed.
[0065] Among them, Figure 3AAs shown, when executing the test method, firstly, the relevant code or file of the test method can be configured in the file configuration module 303 of the application layer 21 of the electronic device, and then the file loading module 304 is started to load the relevant files or codes to run the aging test program.
[0066] When executing the aging test program, the test content determination module 305 can first construct a test scenario such as video playback and game running, and determine the test content related to the test scenario. Figure 3B As shown in , the test content determination module 305 may include a scenario construction module 3051 , a foreground test item module 3052 , and a background test item module 3053 .
[0067] Among them, the relevant application programs of the test scene can be installed in the scene construction module 3051, and the operation instructions can be issued. For example, the relevant application programs of high-load scenes such as video playback and game running can be installed, and the user can be simulated to issue operation instructions, such as adjusting the video clarity, etc. The foreground test content can be determined in the foreground test item module 3052, for example, part of the working performance that the user can directly observe. For example, it can include but is not limited to: camera photo test, horizontal and vertical line test for testing whether the screen can display straight lines without breakpoints and bends, screen display test, sleep wake-up test, etc. The background test content is determined in the background test item module 3053, such as part of the working performance that the user cannot directly observe. For example, it can include but is not limited to: radio frequency test, CPU high load test, device test for testing hardware structure performance, embedded multimedia card (embedded multi-media card, emmc) test for testing storage function, etc.
[0068] It can be understood that the constructed test scenarios can cover the foreground test items and background test items mentioned above. For example, when an electronic device runs a game scenario, the multiple foreground test items and background test items mentioned above can be implemented. For example, the operation of a large-scale game can implement the above-mentioned CPU high load test, emmc test, and device test; connecting and talking with teammates can implement the above-mentioned radio frequency test; face recognition during game registration can implement the above-mentioned camera test; the game screen can implement the above-mentioned horizontal and vertical line test and screen display test; when turning on the electronic device to enter the game, the above-mentioned sleep wake-up test can be implemented.
[0069] Therefore, in the embodiments of the present application, when testing the electronic device by constructing a test scenario, the foreground performance (such as screen display, etc.) and background performance (such as radio frequency testing, etc.) in the electronic device can be tested to achieve a comprehensive test of the electronic device, thereby improving the working stability of the electronic device.
[0070] Next, if Figure 3A As shown, after the test scenario is constructed by the test content determination module 305, the application layer 21 can send the test scenario related information to the local service layer 23, and the local service layer 23 executes the specific test process. Figure 3A As shown, the application layer 21 can transmit the test scenario related information to the local service layer 23 through the application framework layer 22 via a communication interface (eg, an architecture description language (ADL) interface).
[0071] After the local service layer 23 obtains the relevant information of the test scenario, the local service layer 23 can obtain the frequency configuration information of each processor in the electronic device through the frequency configuration information acquisition module 3061, and then determine the number of tests as shown in Table 1 above and the frequency information corresponding to each processor during each test through the combined test determination module 3062, so that the preparation work can be completed to trigger the test start module 306 to execute the relevant instructions or programs of the test content. Among them, when starting the test, the local service layer 23 can send a startup instruction to each processor in the hardware layer 25, so as to start each processor to execute the relevant instructions or programs of the test content with the set frequency information.
[0072] In some embodiments, the electronic device can also directly construct a high-load scenario in the scenario data construction module 308 in the local service layer 23. For example, relevant processing data can be directly simulated based on the data that can be processed by the frequency information. Then, the local service layer 23 can issue a startup instruction to each processor in the hardware layer 25, thereby starting each processor to execute high-load scenario-related instructions with the set frequency information. In this way, if there are fewer test scenarios constructed in the application layer 21, the high-load scenario can be expanded in the local service layer 23; or a high-load scenario can be directly constructed in the local service layer 23, which can reduce data transmission between the application layer 21 and the local service layer 23 and save resources.
[0073] In this way, the test result determination module 307 of the local service layer 23 can obtain the running results of each test scenario, and determine whether each test result meets the expected result, so as to determine whether the dynamic voltage regulation technology will affect the working performance of the electronic device. For example, if the difference between each test result and the preset result is small, it means that the dynamic voltage regulation technology will not affect the working performance of the electronic device; if there is a test result that differs greatly from the preset result, it means that the dynamic voltage regulation technology will affect the working performance of the electronic device.
[0074] In some embodiments, when each processor is started to execute the test scenario related instructions, the temperature and power monitoring module 309 in the application layer 21 can also monitor the temperature change and power change of the electronic device. And the statistical module 310 can also count the test results, temperature changes and power changes. In some embodiments, for easy observation, the application layer 21 can also describe the statistical data in the form of charts and other methods through the test result visualization module 311, so as to observe the working performance of the electronic device.
[0075] In this way, the stability test of the electronic device can be realized through the interaction between the above-mentioned functional modules, so as to test whether each processor can normally run the relevant information of the test scenario, and whether the relevant working performance of each foreground test item and background test item is in normal state.
[0076] The following is based on Figure 4 The flowchart shown in the figure describes the processing process of the test method mentioned in the present application. The method can be applied to electronic devices, for example, the mobile phone 10 mentioned above. Specifically, the method includes the following steps: S401: A test operation is detected and a test program is started.
[0077] In this application, when the electronic device receives a test instruction, it can start the test program to execute the test method mentioned in this application. For example, detecting an operation instruction to open the test program can trigger the electronic device to execute subsequent steps S402 and S403 to execute the test method mentioned in this application.
[0078] In some embodiments, the electronic device can also restart the test program when the test operation is detected and the dynamic voltage regulation function is activated. The dynamic voltage regulation strategy refers to adjusting the operating voltage based on the actual load of the electronic device. For example, when the actual load of the electronic device is high, the operating voltage of the electronic device can be increased; when the actual load of the electronic device is low, the operating voltage of the electronic device can be reduced.
[0079] In addition, in some embodiments, the test method mentioned in this application can be performed on an electronic device equipped with dynamic voltage regulation technology, and can also be performed on an electronic device not equipped with dynamic voltage regulation technology. This application does not limit this.
[0080] S402: Control the electronic device to respectively run the test program to perform the preset task under different operating parameters of the processor to obtain a plurality of test results, wherein the operating parameters include the frequency of the processor.
[0081] In an embodiment of the present application, the processor generally has multiple operating parameters (for example, multiple frequency points). For example, as shown in Table 1 above, CPU 012 may have frequency point 11 and frequency point 12. Therefore, the electronic device can determine the number of tests based on the multiple operating parameters of the processor, as well as the operating parameters corresponding to each processor during each test. For example, a test table as shown in Table 1 above can be established. Then, when performing the test, the electronic device can control the operating parameters of the processor to be the operating parameters corresponding to the current number of tests according to the current number of tests, thereby running the test program to perform the preset tasks and obtaining the test results corresponding to the current number of tests. In this way, when the operating parameters of the processor are controlled to be the operating parameters corresponding to each number of tests, multiple test results can be obtained by running the test program to perform the preset tasks.
[0082] In some embodiments, the test program may be a program corresponding to any test scenario, for example, it may be a program corresponding to any test scenario such as a game running program, a video playing program, a neural network model operation, etc. For example, when an electronic device is tested before leaving the factory, the electronic device may be controlled to play the video multiple times when each processor is at a different frequency point information. For another example, the electronic device may also perform a neural network model operation multiple times when each processor is at a different frequency point information to obtain multiple operation results. Among them, the test program corresponding to the test scenario may be any application program, which is not limited in this application.
[0083] In some embodiments, executing the preset task may include simulating the user's actual use environment or operation, etc. For example, when the test program is a program corresponding to a test scenario for video playback, the preset task may include operations such as playing video files of different formats, adjusting the video progress bar, adjusting the screen brightness, and adjusting the video clarity in an electronic device, thereby obtaining multiple test results such as the video screen display effect and the smoothness of the image frame display. For another example, when the test program is a program corresponding to a test scenario for game operation, the preset task may include simulating the user's game operation, account registration, teammate connection, etc. in an electronic device, thereby obtaining multiple test results such as the smoothness of the game screen and the clarity of the call. This application does not limit the specific execution operations and test results corresponding to the preset tasks.
[0084] In this way, by starting the test program to execute the preset task, it is possible to test whether the electronic device can run the application program normally and whether it can respond to user instructions quickly. For example, when the test program is a game running program, it is possible to test whether the various working performances corresponding to the game running program are in normal working state, for example, including but not limited to: screen rendering function, network connection function, response rate to user operation instructions, communication function, screen display function, etc. In this way, electronic devices with abnormal working performance can be detected so that they can be repaired and processed to improve the working stability of the electronic devices.
[0085] S403: Evaluate the performance of the electronic device based on the multiple test results and the preset results of the preset tasks.
[0086] In an embodiment of the present application, after the electronic device obtains multiple test results through the above step S402, it can evaluate the working performance of the electronic device based on the degree of difference between the multiple test results and the preset results corresponding to the preset tasks. Different test scenarios can set different preset results, and the same test scenario can set one or more preset results. For example, the preset result corresponding to the neural network model operation can be set to at least one of the accuracy of the calculation result a%, the running time b seconds, etc.; for another example, the preset result corresponding to the game running test scenario can be set to at least one of the game operation instruction response time c seconds, the screen resolution d, etc. This application does not limit this.
[0087] In some embodiments, the test result may be at least one of the following: the accuracy of the output result, the parameter value of the output parameter, the response time, the running speed, etc. Figure 3B As shown in, the performance of the electronic device related to the test program may include but is not limited to: camera photo function, whether the screen can display horizontal and vertical lines without breakpoints and curved straight lines, picture display function, sleep and wake-up function of whether the electronic device can be turned on normally, radio frequency function of whether it can communicate normally, processor high load function, and data storage function.
[0088] It is understood that when an electronic device runs a test program to perform a preset task, it can be used to test the multiple performances mentioned above. For example, running a large game can test the processor's high load function, data storage function, and screen display function mentioned above; connecting with teammates can be used to test the communication function; face recognition during game registration can be used to test the camera's photo function, etc.
[0089] Among them, if the number of test results that meet the preset conditions among multiple test results is greater than the preset number, it is determined that the working performance of the electronic device is in a normal state. For example, if more than 80% of the test results meet the preset conditions, it can be determined that the working performance of the electronic device is normal. If the number of test results that meet the preset conditions among multiple test results is less than or equal to the preset number, it is determined that the working performance of the electronic device is in an abnormal state. For example, if less than 80% of the test results meet the preset conditions, it can be determined that the working performance of the electronic device is abnormal. Among them, the preset condition can be that the difference between the test result and the corresponding preset result is within a preset range. In addition, the preset conditions, preset numbers, and preset ranges can be set arbitrarily, and this application does not limit this.
[0090] Thus, based on the above test method, the stability test of electronic devices can be completed before they leave the factory, so as to intercept or modify electronic devices with risks. As a result, each electronic device equipped with dynamic voltage regulation technology has stable working performance after leaving the factory, which can reduce the proportion of user failure feedback on electronic devices and improve the user's recommendation index for electronic devices.
[0091] The following is combined with the above Figure 3A The relevant functional module diagram of the test method shown in Figure 5 The interactive process diagram shown in FIG. 1 specifically describes the interactive process of the test method mentioned in this application. Figure 3A As shown, the test method mentioned in this application can be implemented through the interaction between the application layer 21, the local service layer 23, the kernel layer 24, and the hardware layer 25. Specifically, Figure 5 The interaction flow shown includes the following steps: 501: The kernel layer 24 drives the hardware layer 25 to perform a dynamic voltage regulation operation.
[0092] In the embodiment of the present application, the dynamic voltage regulation technology can be installed in the electronic device to dynamically adjust the operating voltage based on the actual load of the electronic device, thereby saving the power consumption of the electronic device. Figure 3A As shown in , a dynamic voltage regulation driver can be configured in the core layer 24 of the electronic device, and a dynamic voltage regulation module can be configured in the hardware layer 25 of the electronic device. When the electronic device performs a dynamic voltage regulation operation, the dynamic voltage regulation driver in the core layer 24 can drive the dynamic voltage regulation module in the hardware layer 25 to perform a dynamic voltage regulation operation, thereby dynamically adjusting the operating voltage according to the actual load of the electronic device.
[0093] 502: The application layer 21 configures files related to the aging test program.
[0094] In the embodiment of the present application, the relevant program of the test method mentioned in the present application can be described as an aging test program. Before the electronic device leaves the factory, the stability test can be performed on the electronic device equipped with dynamic voltage regulation technology. When performing the stability test, the relevant code or file of the aging test program can be configured in the application layer 21.
[0095] 503: The application layer 21 loads the aging test program.
[0096] In the embodiment of the present application, after configuring the relevant code or file of the aging test program in the application layer 21 through the above step 502, the application layer 21 can load the aging test program so that the electronic device runs the test method mentioned in the present application.
[0097] In some embodiments, the electronic device may first execute the above step 501 to perform a dynamic voltage regulation operation, and then execute steps 502 and 503 to configure relevant files to start the aging test program. In addition, the electronic device may first execute steps 502 and 503 to configure relevant files to start the aging test program, and then execute step 501 to perform a dynamic voltage regulation operation. This application does not limit the execution order of steps 501, 502, and 503.
[0098] 504: The application layer 21 builds a test scenario.
[0099] In the embodiment of the present application, a test scenario can be constructed in the application layer 21. Figure 3B As shown in , the test scenario can be a high-load scenario such as video playback and game running.
[0100] In some embodiments, constructing a test scenario in an electronic device may mean that the developer can simulate the actual usage environment or operation of the user. For example, constructing a test scenario for video playback may mean simulating the user's operations such as installing video software, playing video files of different formats, adjusting the video progress bar, adjusting the screen brightness, and adjusting the video clarity in the electronic device. This application does not limit the form of the test scenario and the specific operation of constructing the test scenario.
[0101] 505: The application layer 21 sends the test scenario related information to the local service layer 23.
[0102] In an embodiment of the present application, the application layer 21 can send the constructed test scenario related information to the local service layer 23, and execute the specific test process through the local service layer 23.
[0103] 506: The local service layer 23 obtains the frequency information of each processor.
[0104] In an embodiment of the present application, after the local service layer 23 obtains the information related to the test scenario, before controlling each processor to run the test scenario, the local service layer 23 also needs to obtain the frequency information of each processor. For example, if the electronic device requires multiple processors (CPU, NPU, GPU, etc.) to process the test scenario, the local service layer 23 needs to obtain all preset frequency information of each processor. For example, if the NPU has three types of frequency information, namely frequency 1, frequency 2, and frequency 3, the local service layer 23 needs to obtain all (e.g., 3 types) of frequency information of the NPU. It can be understood that the frequency information of the processor can be pre-set when the processor is produced, and this application does not limit the number of frequency information of the processor and the specific frequency values corresponding to the frequency information.
[0105] In some embodiments, the number of processors for which frequency information needs to be acquired may be determined based on the number of processors in the electronic device. For example, the frequency information of all processors in the electronic device may be acquired directly.
[0106] In addition, the processor that needs to obtain frequency information can also be determined based on the constructed test scenario. For example, only the frequency information in the processor required for the test scenario can be obtained. For example, if a neural network model operation is required in the test scenario, the frequency information of the NPU used to process the neural network model can be obtained; or, if the function of the NPU is not needed in the test scenario, the frequency information of the NPU may not be obtained. This application does not limit this.
[0107] 507: The local service layer 23 determines the test type and the number of combined tests.
[0108] In the embodiment of the present application, after the local service layer 23 obtains the frequency information of each processor through the above step 506, the local service layer 23 can determine the number of tests based on the frequency information, and determine the frequency information corresponding to each processor in each test. For example, a total of k tests can be performed on the electronic device. In the k tests, each processor traverses all the frequency information it has.
[0109] For example, as shown in Table 1 above, when the test is performed for the first time, one frequency point information can be arbitrarily selected from the multiple frequency point information of each processor, so that each processor runs the test scenario under the current frequency point information. When the test is performed for the second time, one frequency point information different from the frequency point information set for the first time can be arbitrarily selected from the multiple frequency point information of each processor for configuration. Among them, if the number m of frequency point information preset in the processor is less than the number of tests k, the processor can configure different frequency point information in the first m tests, and in the m+1 to k tests, the processor can use any one of the preset frequency point information for testing. In this way, the number of tests required to test the electronic device can be determined, as well as the frequency point information corresponding to the processor for each test.
[0110] 508: The local service layer 23 sends a start test instruction to the kernel layer 24.
[0111] In an embodiment of the present application, after the local service layer 23 determines the number of tests and the frequency information that needs to be configured for each process in each test through the above step 507, the local service layer 23 can send a start test instruction to the kernel layer 24, so that the kernel layer 24 drives the hardware layer 25 to run the test scenario to implement the test method mentioned in this application.
[0112] 509: The kernel layer 24 drives the hardware layer 25 to execute the test.
[0113] In the embodiment of the present application, the kernel layer 24 drives each processor in the hardware layer 25 to start, so that each processor runs the constructed test scenario with the frequency information determined in the above step 507, thereby realizing the test method mentioned in the present application.
[0114] 510: The kernel layer 24 sends the test result to the local service layer 23.
[0115] In an embodiment of the present application, the kernel layer 24 can obtain the test results of each processor in the hardware layer 25, and send the test results to the local service layer 23 so that the local service layer 23 can make a test result determination.
[0116] 511: The local service layer 23 determines the test result.
[0117] In an embodiment of the present application, the local service layer 23 can make a test result judgment to determine whether the dynamic voltage regulation technology will affect the working performance of each processor. Among them, the test result of the test scenario can be compared with the preset result to determine whether the dynamic voltage regulation technology affects some functions in the electronic device. For example, if the test result of the test scenario is slightly different from the preset result, such as the screen display effect and the preset display effect are slightly different, it can be indicated that the dynamic voltage regulation technology will not affect the relevant working performance of the electronic device; if the test result is worse than the preset result, such as the screen display effect is more blurred than the preset display effect, it can be indicated that the dynamic voltage regulation technology reduces the working performance of the screen rendering of the electronic device. Among them, the test results may include the accuracy of the output data, the running rate, the running time, etc., which are not limited in this application. In addition, the specific data of the preset result corresponding to the test result can also be set arbitrarily, which is not limited in this application.
[0118] 512 : The local service layer 23 sends each result data to the application layer 21 .
[0119] In an embodiment of the present application, the local service layer 23 may send the final determination result and / or each test result corresponding to the test scenario to the application layer 21 so that the application layer 21 may perform visualization processing.
[0120] 513: The application layer 21 visualizes and displays each result data.
[0121] In the embodiment of the present application, for the convenience of observation, the application layer 21 can also describe the statistical result data in the form of charts, etc., so as to directly observe the working performance of the electronic device.
[0122] In this way, based on the above interactive process diagram, the stability test of the electronic device can be completed before the electronic device leaves the factory, so as to intercept or modify the risks existing in the electronic device and improve the working stability of the electronic device.
[0123] The following is based on Figure 6 The flowchart shown in the figure specifically describes the execution process of the test method mentioned in the present application. The method can be applied to electronic devices, for example, the mobile phone 10 mentioned above. Specifically, the method includes the following steps: S601: Start the program to start the test.
[0124] In an embodiment of the present application, a program related to the test method mentioned in the present application can be loaded into an electronic device so that the electronic device executes subsequent steps S602 to S613 to execute the test method mentioned in the present application.
[0125] In some embodiments, after performing a dynamic voltage regulation operation on the electronic device, step S601 may be performed again to start the relevant procedures of the test method mentioned in the present application to determine whether the dynamic voltage regulation operation will affect the working performance of the electronic device.
[0126] S602: Determine whether the electronic device has a dynamic voltage regulation function. If yes, proceed to step S603; if no, proceed to step S613.
[0127] In some embodiments, the electronic device can determine whether it is equipped with a dynamic voltage regulation function. If so, it proceeds to step S603 to build a test scenario; if not, it proceeds to step S613 to end the test process. Among them, the electronic device can determine whether it is equipped with a dynamic voltage regulation function by detecting hardware modules, detecting configuration files, etc. For example, the electronic device can read an internal configuration file. If the configuration file contains information related to dynamic voltage regulation, it is determined that the electronic device has a dynamic voltage regulation function; otherwise, it is determined that the electronic device does not have a dynamic voltage regulation function. This application does not limit the method for determining whether an electronic device has a dynamic voltage regulation function.
[0128] In some embodiments, the electronic device may first execute step S601, and then execute step S602. That is, the electronic device may first start the relevant program of the test method mentioned in this application, and then determine whether the electronic device has the dynamic voltage regulation function. In addition, the electronic device may also first execute step S602, and then execute step S601. That is, the electronic device may first execute step S602 to determine whether it has the dynamic voltage regulation function. If it has the dynamic voltage regulation function, it executes step S601 to start the program to start the test; if it does not have the dynamic voltage regulation function, it directly does not start the relevant program of the test method mentioned in this application. This application does not limit the execution order of step S601 and step S602.
[0129] In some embodiments, since step S601 is executed after the dynamic voltage regulation operation is performed on the electronic device, and the program is started to start the test, it can be directly determined that the electronic device has the dynamic voltage regulation function. Therefore, the electronic device can also skip step S602, and after executing step S601 to start the relevant program of the test method mentioned in this application, directly execute step S603 to build the test scenario.
[0130] S603: Construct a test scenario.
[0131] In an embodiment of the present application, the test scenario may be video playback, game running, neural network model calculation, etc.
[0132] In some embodiments, building a test scenario in an electronic device may mean that developers can simulate the actual usage environment or operation of the user. Figure 5As described in step 504, no further description is given here. In particular, the present application does not limit the form of the test scenario and the specific operation of constructing the test scenario.
[0133] S604: Determine the total number of tests and the frequency point information corresponding to each processor in each test.
[0134] In an embodiment of the present application, after the electronic device constructs the test scenario through the above step S603, the electronic device also needs to obtain the frequency information of each processor, and determine the total number of tests and the frequency information corresponding to each processor in each test based on the frequency information.
[0135] In some embodiments, multiple processors may be required to jointly process the test scenario, for example, including but not limited to at least one processor of a CPU, a GPU, and an NPU, and the CPU may also be of multiple models, such as CPU 012, CPU 3456, CPU 7, etc. shown in Table 1 above. Therefore, the electronic device may also obtain all preset frequency point information of multiple processors based on the processors required for the test scenario. For details, please refer to the above Figure 5 As described in step 507 in , it will not be repeated here.
[0136] S605: Lock the frequency of the processor and create a test process at the same time.
[0137] In an embodiment of the present application, after determining the frequency point information corresponding to each processor during each test through the above step S604, the electronic device can configure the corresponding frequency point information for the processor based on the current number of tests (which can be called "frequency locking"). At the same time, a test process can be created to start each processor to run a test scenario. Among them, as shown in steps S6051 to S6054, the test process may include a processor process for running a test scenario, and a time monitoring process for monitoring the test time. In addition, a temperature monitoring process, a power monitoring process, etc. may also be created, which is not limited in this application.
[0138] In some embodiments, when creating a processor process, the number of processor processes to be created may be determined based on the number of processors. For example, if n processors are started, n processor processes may be established to run the test scenario.
[0139] In other embodiments, when creating a processor process, the number of processor processes to be created can also be determined based on the number of processor types. For example, if n processors of p types of processors are started, p processor processes can be created to run the test scenario. For example, if four processors, CPU 012, CPU 7, GPU, and NPU need to be started to run the test scenario, since CPU 012 and CPU 7 are both central processing units, the same test process can be used, and therefore, only three processor processes can be created to run the test scenario. This application does not limit this.
[0140] S6051: Start the GPU process for testing.
[0141] In an embodiment of the present application, a GPU process may be started to run test scenarios such as video playback.
[0142] In some embodiments, one GPU process or multiple GPU processes may be created for multiple GPU processors, and the electronic device may start all the created GPU processes.
[0143] S6052: Start the CPU process for testing.
[0144] In an embodiment of the present application, a CPU process may be started to run a test scenario.
[0145] In some embodiments, one CPU process or multiple CPU processes may be created for multiple CPU processors, and the electronic device may start all the created CPU processes.
[0146] S6053: Start the NPU process for testing.
[0147] In an embodiment of the present application, an NPU process may be started to run a test scenario.
[0148] In some embodiments, one NPU process or multiple NPU processes may be created for multiple NPU processors, and the electronic device may start all the created NPU processes.
[0149] S6054: Start the time monitoring process.
[0150] In the embodiment of the present application, the electronic device can also start a time monitoring process so that each processor process completes the test within a preset test time. The preset test time can be set arbitrarily, and the present application does not limit this.
[0151] In some embodiments, the electronic device may perform steps S6051 to S6054 simultaneously. Alternatively, the electronic device may first perform step S6054 to start the time monitoring process, and then perform steps S6051 to S6053.
[0152] Among them, the present application does not limit the execution order of step S6051 to step S6053. For example, steps S6051 to S6053 can be executed simultaneously. Alternatively, S6051 to step S6053 can also be executed based on the sequence of the processors used by the test program. For example, if the test program needs to execute tasks through the GPU, CPU, and NPU in sequence, the electronic device can execute steps S6051, 6052, and S6053 in sequence; or, if the test program needs to execute tasks through the CPU and NPU first, and then through the GPU, the electronic device can also execute steps S6052 and S6053 simultaneously, and then execute step S6051. The present application does not limit the execution order of steps S6051 to S6053.
[0153] In addition, in some other embodiments, the electronic device may also execute only some of the steps in step S6051 to step S6054. For example, the electronic device may not execute step S6054 and does not perform time monitoring on the test program. For another example, the electronic device may also execute some of the steps in step S6051 to step S6053 based on the processor used by the test program. For example, if the test program only needs to perform tasks through the CPU and NPU, the electronic device may only execute steps S6052 and S6053. This application does not limit this.
[0154] S606: Obtain test results.
[0155] In the embodiment of the present application, after each test process finishes executing the task, the test result of each test process can be obtained.
[0156] S607: Remove the frequency lock and save the test results.
[0157] In an embodiment of the present application, after each test is completed, the test results can be saved and the frequency information of each processor is no longer fixed, that is, the frequency lock instruction in the above step S605 can be removed, and each processor can execute the subsequent step S608 according to any frequency information.
[0158] In some embodiments, the electronic device may also perform steps S605 to S606 multiple times, and then perform step S607, so that the electronic device can perform multiple tests when the processor is in the same frequency point information, so as to accurately determine whether the processor can normally run the test scenario-related program under the frequency point information based on multiple test results.
[0159] In addition, in some embodiments, the electronic device may also execute steps S605 to S607 multiple times, so that the electronic device can perform multiple tests when the processor is in different frequency information, so as to accurately determine whether the processor can normally run the test scenario-related programs at different frequency information based on multiple test results.
[0160] In some embodiments, after the test is completed and the frequency lock is removed, each processor can also be put into standby operation to stop the operation of each processor so that each processor can release memory or cool down. After the standby operation is completed, step S608 is executed again. This application does not limit this. Among them, the standby time can be set arbitrarily, for example, the standby time can be set to 5s.
[0161] S608: Determine whether the number of rounds tested is greater than or equal to the total number of tests. If yes, proceed to step S609; if no, proceed to step S605.
[0162] In an embodiment of the present application, the total number of tests of the electronic device can be determined in the above step S604. If the electronic device determines that the current number of completed tests is greater than or equal to the total number of tests, it means that the electronic device has completed all tests, and then it can enter step S609 to output all test results; if the electronic device determines that the current number of completed tests is less than the total number of tests, it means that the electronic device needs to perform the test process again, then go to step S605, re-configure the frequency information based on the next round of tests and create a test process, so as to run the test scenario again.
[0163] S609: Output all test results.
[0164] In the embodiment of the present application, when it is determined through the above step S608 that the electronic device has completed all the test times, the electronic device can output all the test results.
[0165] In some embodiments, the electronic device may output all test results after all tests are completed. In addition, the electronic device may output and save the test results once after each test until all tests are completed. This application does not limit this.
[0166] S610: Determine whether the test result meets the preset result. If yes, proceed to step S611; if no, proceed to step S612.
[0167] In the embodiment of the present application, if the electronic device determines that the test result meets the preset result, it can go to step S611 to determine that the test is successful. Otherwise, it goes to step S612 to determine that the test fails and report fault information.
[0168] In some embodiments, different test scenarios can be set with different preset results, and the same test scenario can be set with one or more preset results. For example, the preset result corresponding to the neural network model operation can be set to at least one of the accuracy of the calculation result a%, the running time b seconds, etc.; for another example, the preset result corresponding to the game running test scenario can be set to at least one of the game operation instruction response time c seconds, the screen resolution d, etc. This application does not limit this.
[0169] Among them, if the difference between each test result and the preset result is small, or the difference between multiple test results (such as more than 80% of the test results) and the preset results is small, it means that the working performance of the electronic device is in a normal state. If the test result corresponding to a certain frequency point information is greatly different from the preset result, it may indicate that the processor cannot normally run the program related to the test scenario under the frequency point information; or, if the test results corresponding to multiple frequency point information are greatly different from the preset results, it may indicate that the performance related to the test result is in an abnormal state. For example, if the test results corresponding to a few frequency point information of the NPU are greatly different from the preset results, it may indicate that the NPU cannot normally run the program related to the test scenario under the frequency point information; if the test results corresponding to multiple frequency point information of the NPU are greatly different from the preset results, it may indicate that the circuit and other structures inside the NPU are in an abnormal state.
[0170] S611: Determine that the test is successful.
[0171] In the embodiment of the present application, if the test results of multiple test scenarios are determined to meet the preset results through the above step S610, the test can be determined to be successful. For example, if the rendering effect of the image is the same as the preset effect, it can be indicated that the dynamic voltage regulation technology does not affect the image rendering performance of the electronic device, and the test can be determined to be successful.
[0172] In other embodiments, when it is determined in the above step S610 that the test result meets the preset result, a sign of successful test can be indicated in the test result. When the sign of successful test is detected, it can be determined that the working performance of the electronic device is in a normal state. For example, the annotation word "success" can be added in front of the test result. When it is determined that the test result starts with success, it can be directly determined that the working performance of the electronic device is in a normal state. Among them, the sign of successful test can be set arbitrarily, for example, it can be marked with text, set symbols, etc., and this application does not limit this.
[0173] S612: Determine that the test fails and report fault information.
[0174] In an embodiment of the present application, if it is determined through the above step S610 that the test result of the test scenario does not meet the preset result, it can be indicated that the dynamic voltage regulation technology affects the working performance of the electronic device, and the test failure can be determined, and the fault management data (FMD) can be displayed. For example, it can include information such as the fault location and the fault time. For example, if the test result of the neural network model operation is significantly different from the preset result, the FMD corresponding to the test result can be displayed, for example, a calculation deviation begins to appear at a certain operation node in the middle of the neural network model.
[0175] In other embodiments, when it is determined in the above step S610 that the test result does not meet the preset result, a sign of test failure can be indicated in the test result. When the sign of test failure is detected, it can be determined that part of the working performance of the electronic device is in an abnormal state. For example, the annotation word "fail" can be added in front of the test result. When it is determined that the test result starts with fail, it can be directly determined that part of the working performance of the electronic device is in an abnormal state. Among them, the sign of test failure can be set arbitrarily, for example, it can be marked with text, set symbols, etc., and this application does not limit this.
[0176] S613: End of test.
[0177] In the embodiment of the present application, after all the test rounds are completed through the above step S608 and the test results are determined through the above step S610, the test method mentioned in the present application can be completed. Therefore, the test can be ended and the test program can be exited.
[0178] In other embodiments, if the electronic device determines through the above step S602 that the electronic device does not have the dynamic voltage regulation function, the electronic device can directly execute the step S613 to directly end the test and exit the test program.
[0179] In this way, based on the testing method mentioned in the present application, the stability test of the electronic device can be completed before the electronic device leaves the factory, so as to intercept or modify the risks existing in the electronic device and improve the working stability of the electronic device.
[0180] An embodiment of the present application provides a readable storage medium, on which instructions are stored. When the instructions are executed on an electronic device, the electronic device executes the test method mentioned in the present application.
[0181] An embodiment of the present application provides a computer program product, including: computer instructions, when the computer instructions are executed on an electronic device, the electronic device executes the test method mentioned in the present application.
[0182] An embodiment of the present application also provides an electronic device, which includes: a memory and a processor, the memory is used to store instructions executed by one or more processors of the electronic device, and the processor is one of the one or more processors of the electronic device, which is used to execute the test method mentioned in the present application.
[0183] The above-mentioned test method of the present application can be performed by an electronic device, wherein the electronic device can be any electronic device such as a mobile phone, a computer, a tablet computer, an augmented reality (AR) device, a laptop computer, etc. The form of the electronic device is not specifically limited in the embodiments of the present application.
[0184] like Figure 7 As shown, taking the above-mentioned mobile phone 10 as an example, a hardware structure diagram of an electronic device according to an embodiment of the present application is exemplified.
[0185] like Figure 7 As shown, the mobile phone 10 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a gyroscope sensor 180A, a magnetic sensor 180B, an acceleration sensor 180C, an infrared sensor 180D, a temperature sensor 180E, a touch sensor 180F, an ambient light sensor 180G, a light sensor 180H, etc.
[0186] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the mobile phone 10. In other embodiments of the present application, the mobile phone 10 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0187] The processor 110 may include one or more processing units, for example, the processor 110 may include a CPU, a GPU, an NPU, an application processor (AP), a modem processor, a controller, a video codec, a digital signal processor (DSP), etc. In addition, the same type of processor may include multiple models. For example, the CPU may include CPU 012, CPU 3456, CPU 7, etc. Among them, different processing units may be independent devices or integrated in one or more processors.
[0188] In an embodiment of the present application, the processor 110 may be used to execute the test method mentioned in the present application. For example, the constructed test scenarios such as game running and video playing may be executed, and based on the test results, it is determined whether the execution of the dynamic voltage regulation operation affects the working performance of the electronic device.
[0189] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0190] The USB interface 130 can be used to connect a charger to charge the mobile phone 10, or to transfer data between the mobile phone 10 and peripheral devices. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.
[0191] The charging management module 140 is used to receive charging input from a charger. The charger can be a wireless charger or a wired charger. While the charging management module 140 charges the battery 142, it can also power the electronic device through the power management module 141.
[0192] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the screen 194, the camera 193, and the wireless communication module 160. In some other embodiments, the power management module 141 may also be disposed in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may also be disposed in the same device.
[0193] The wireless communication function of the mobile phone 10 can be realized by antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, and a modulation and demodulation processor. Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the mobile phone 10 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antenna. For example, antenna 1 can be reused as a diversity antenna of a wireless local area network. In some other embodiments, antenna 1 can be used in combination with a tuning switch.
[0194] The mobile communication module 150 can provide wireless communication solutions including 2G / 3G / 4G / 5G etc. applied on the mobile phone 10 .
[0195] The screen 194 is used to display images, videos, etc. The screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light emitting diode or an active-matrix organic light emitting diode (AMOLED), etc. In some embodiments, the mobile phone 10 may include 1 or N screens 194, where N is a positive integer greater than 1.
[0196] In some embodiments, screen 194 may display pictures corresponding to the test scenario, such as video playback, game running, etc.
[0197] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. In some embodiments, the mobile phone 10 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0198] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the mobile phone 10 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the mobile phone 10 by running instructions stored in the internal memory 121 and / or instructions stored in a memory provided in the processor.
[0199] The mobile phone 10 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor.
[0200] The gyro sensor 180A may be used to determine the motion posture of the mobile phone 10. In some embodiments, the angular velocity of the mobile phone 10 around three axes (ie, x, y, and z axes) may be determined by the gyro sensor 180A.
[0201] The magnetic sensor 180B can detect the strength of the magnetic field.
[0202] The acceleration sensor 180C can detect the magnitude of the acceleration of the mobile phone 10 in various directions (generally three axes). When the mobile phone 10 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching, pedometers, etc.
[0203] The infrared sensor 180D is used to detect, receive and analyze infrared radiation signals.
[0204] The temperature sensor 180E is used to detect temperature. In some embodiments, the mobile phone 10 uses the temperature detected by the temperature sensor 180E to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180E exceeds a threshold, the mobile phone 10 reduces the performance of a processor located near the temperature sensor 180E to reduce power consumption and implement thermal protection.
[0205] The touch sensor 180F is also called a "touch control device". The touch sensor 180F can be set on the screen 194, and the touch sensor 180F and the screen 194 form a touch screen, also called a "touch control screen". The touch sensor 180F is used to detect touch operations acting on or near it.
[0206] The ambient light sensor 180G can be used to sense the brightness of ambient light.
[0207] The light sensor 180H can be used to detect light intensity. It has high sensitivity and fast response speed. It can be used in various lighting environments and provide real-time feedback on light conditions.
[0208] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The mobile phone 10 may receive key input and generate key signal input related to user settings and function control of the mobile phone 10.
[0209] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.
[0210] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
[0211] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to or disconnected from the mobile phone 10 by inserting the SIM card interface 195 or removing the SIM card interface 195. The mobile phone 10 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
[0212] The embodiments disclosed in the present application may be implemented in hardware, software, firmware or a combination of these implementation methods. The embodiments of the present application may be implemented as a computer program or program code executed on a programmable system, the programmable system including at least one processor, a storage system (including volatile and non-volatile memory and / or storage elements), at least one input device and at least one output device.
[0213] Program code can be applied to input instructions to perform the functions described in this application and generate output information. The output information can be applied to one or more output devices in a known manner. For the purposes of this application, a processing system includes any system having a processor such as, for example, a digital signal processor, a microcontroller, an application specific integrated circuit, or a microprocessor.
[0214] Program code can be implemented with high-level programming language or object-oriented programming language to communicate with the processing system. When necessary, program code can also be implemented with assembly language or machine language. In fact, the mechanism described in this application is not limited to the scope of any specific programming language. In either case, the language can be a compiled language or an interpreted language.
[0215] In the accompanying drawings, some structural or method features may be shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order may not be required. Instead, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. In addition, the inclusion of structural or method features in a particular figure does not mean that such features are required in all embodiments, and in some embodiments, these features may not be included or may be combined with other features.
[0216] It should be noted that the units / modules mentioned in the various device embodiments of the present application are all logical units / modules. Physically, a logical unit / module can be a physical unit / module, or a part of a physical unit / module, or can be implemented in a combination of multiple physical units / modules. The physical implementation of these logical units / modules themselves is not the most important. The combination of functions implemented by these logical units / modules is the key to solving the technical problems proposed by the present application. In addition, in order to highlight the innovative part of the present application, the above-mentioned device embodiments of the present application do not introduce units / modules that are not closely related to solving the technical problems proposed by the present application, which does not mean that there are no other units / modules in the above-mentioned device embodiments.
[0217] It should be noted that, in the examples and description of the present application, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or equipment including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or equipment. In the absence of more restrictions, the elements limited by the statement "include one" do not exclude the existence of other identical elements in the process, method, article or equipment including the elements.
[0218] Although the present application has been illustrated and described with reference to certain preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the scope of the present application.
Claims
1. A testing method, applied to electronic equipment, characterized in that: The method comprises: A test operation is detected and a test procedure is started; Controlling the electronic device to respectively run the test program to perform preset tasks under different operating parameters of the processor to obtain multiple test results, wherein the operating parameters include the frequency of the processor; Based on the multiple test results and the preset results of the preset tasks, the performance of the electronic device is evaluated.
2. The method according to claim 1, characterized in that The detecting of the test operation and starting the test procedure include: When the test operation is detected and the dynamic voltage regulation function of the electronic device is started, a test program is started, wherein the dynamic voltage regulation strategy includes the electronic device adjusting the operating voltage based on the workload.
3. The method according to claim 1, characterized in that The test program includes one or more of a video playback program, a game running program, and a neural network model operation.
4. The method according to claim 1, characterized in that The controlling the electronic device to respectively run the test program to perform preset tasks under different operating parameters of the processor to obtain multiple test results includes: Determining the number of tests based on a plurality of operating parameters of the processor, and the operating parameters of the processor for each test; Based on the current test number being the first number and the operating parameter of the processor corresponding to the first number being the first operating parameter, controlling the operating parameter of the processor to be the first operating parameter, and running the test program to perform the preset task, to obtain the test result of the first number; Based on the operating parameters of the processor in each test, the test program is run to perform preset tasks to obtain test results of each test.
5. The method according to claim 1, characterized in that: The step of evaluating the performance of the electronic device based on the plurality of test results and the preset result of the preset task includes: Corresponding to the number of test results satisfying the preset condition among the multiple test results being greater than a preset number, determining that the performance of the electronic device is in a normal state; Corresponding to the number of test results satisfying a preset condition among the multiple test results being less than or equal to the preset number, it is determined that the performance of the electronic device is in an abnormal state, The preset condition includes that the difference between the test result and the corresponding preset result is within a preset range.
6. The method according to claim 5, characterized in that The performance of the electronic device includes one or more of camera photography, screen display, horizontal and vertical line display, sleep and wake-up, radio frequency function, processor function, and storage function.
7. According to the method of claim 1, the test result includes one or more of the accuracy of the output result, the parameter value of the output parameter, the response time, and the operation rate.
8. The method according to claim 1, characterized in that The processor includes one or more of a central processing unit, a graphics processing unit, and an embedded neural network processor; and The central processing unit includes one or more types of central processing units.
9. An electronic device, characterized in that: include: A memory and a processor, wherein the memory is used to store instructions executed by one or more processors of the electronic device, and the processor is one of the one or more processors of the electronic device, and is used to execute the test method described in any one of claims 1 to 8.
10. A readable storage medium, characterized in that: The readable storage medium stores instructions, which, when executed on an electronic device, enable the electronic device to execute the testing method according to any one of claims 1 to 8.
11. A computer program product, characterized in that include: Computer instructions, when the computer instructions are executed on an electronic device, enable the electronic device to execute the testing method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Dynamic voltage frequency scaling system and method
CN112292652A
CPU stability test method and device, computer equipment and storage medium
CN112416671A
Working frequency adjustment method and device, electronic equipment and storage medium
CN115617500A
Method and device for controlling electronic equipment, electronic equipment and storage medium
CN116107782A
Multi-core processor stability test method and device, electronic equipment and storage medium
CN116302722A
Cited By
Method and device for testing performance stability of smart phone
CN119629270A
A method and device for testing the performance stability of a smart phone
CN119629270B
