Data processing method and device, electronic equipment and storage medium
By obtaining the device location of electronic devices and mobile network signal quality information, dynamically adjusting the operating data of the processor, solving the lag and response delay problems caused by load prediction deviation in the prior art, achieving higher fluency and responsiveness .
Patent Information
- Application Number
- CN202411505269.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-25
- Publication Date
- 2025-02-07
AI Technical Summary
In the prior art, when predicting processor load, when the application and application interface are constantly updated, the load prediction deviation is large, resulting in electronic devices being unable to accurately configure operating data, resulting in lag and response delays.
By obtaining the device location of the electronic device and the mobile network signal quality information, a resource configuration policy related to the access application is determined, and the processor's operating data is adjusted according to the policy.
It realizes dynamic adjustment of resource configuration strategies under different mobile network conditions, improves the accuracy of processor configuration operation data, and ensures the fluency and responsiveness of electronic devices when accessing applications.
Smart Images

Figure CN119402883A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of computer technology, and specifically relates to a data processing method, device, electronic device and storage medium. Background Art
[0002] As more and more applications are installed on electronic devices, users can access various applications through electronic devices. When accessing an application, it usually goes through stages such as starting the application, accessing the application interface in the application, switching the application interface, and switching the application. Since the electronic device needs to consume data such as processors and memory when running each stage, how to accurately configure data for the aforementioned stages to ensure the smoothness and responsiveness of the electronic device running the aforementioned stages has become a topic of concern.
[0003] In related technologies, electronic devices can predict future load conditions based on historical processor load statistics, and configure corresponding data for their processors based on the predicted load conditions. However, this method can achieve relatively accurate predictions for relatively stable load stages, but for situations where applications and application interfaces are constantly updated, the load predictions made in this way often have large deviations, making it impossible for electronic devices to accurately configure data that satisfies the smoothness of the processor's operation during the above stages, causing electronic devices to freeze and application page response delays. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a data processing method, device, electronic device and storage medium, which can improve the accuracy of the operating data required for the processor to configure the operation access application, so as to ensure the smoothness and responsiveness of each stage of the electronic device operation.
[0005] In a first aspect, an embodiment of the present application provides a data processing method, including:
[0006] Obtaining a device location of an electronic device;
[0007] Determine resource allocation strategies related to accessing applications based on mobile network signal quality information at the device location;
[0008] According to the resource allocation strategy, the operation data of the processor in the electronic device is adjusted.
[0009] In a second aspect, an embodiment of the present application provides a data processing device, including:
[0010] An acquisition module, used to acquire a device location of an electronic device;
[0011] A determination module, used to determine a resource configuration strategy related to accessing the application based on the mobile network signal quality information of the device location;
[0012] The adjustment module is used to adjust the operation data of the processor in the electronic device according to the resource allocation strategy.
[0013] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, and when the program or instruction is executed by the processor, the steps of the data processing method shown in the first aspect are implemented.
[0014] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the data processing method shown in the first aspect are implemented.
[0015] In a fifth aspect, an embodiment of the present application provides a chip, the chip including a processor and a display interface, the display interface and the processor are coupled, and the processor is used to run programs or instructions to implement the steps of the data processing method shown in the first aspect.
[0016] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the steps of the data processing method shown in the first aspect.
[0017] In an embodiment of the present application, the device location of the electronic device is obtained, and a resource configuration strategy related to accessing the application is determined based on the mobile network signal quality information at the device location. Then, the operating data of the processor in the electronic device is adjusted according to the resource configuration strategy. In this way, the resource configuration strategy related to the access application can be determined according to the mobile network signal quality information of the device location of the electronic device, and the resource configuration strategy that is more suitable for the current mobile network signal quality information can be selected in real time to realize dynamic adjustment of the resource configuration strategy, so as to avoid the situation where the future load is predicted inaccurately based on the historical load statistics of the processor. That is, when the mobile network condition of the electronic device is good, a resource configuration strategy that is more performance-oriented can be used. Through the resource configuration strategy that is more performance-oriented, the value of the processor's operating data can be increased, thereby shortening the time for users to access the application and improving the fluency of users' access to the application; and, when the mobile network condition of the electronic device is poor, a resource configuration strategy that is more power-oriented can be used. Through its resource configuration strategy that is more performance-oriented, the value of the processor's operating data can be lowered, reducing unnecessary power consumption waste while improving the performance of the electronic device. In this way, through the mobile network signal quality information of the device location of the electronic device, a resource configuration strategy that is more suitable for the current mobile network signal quality information can be selected in real time, thereby improving the accuracy of determining the resource configuration strategy related to the access application, thereby improving the accuracy of configuring the processor with the operating data required to run the access application, so as to ensure the fluency and responsiveness of each stage in the operation of the electronic device to access the application. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 A schematic diagram of the structure of a data processing system provided for some embodiments of the present application;
[0019] Figure 2 A flowchart of a data processing method provided for some embodiments of the present application;
[0020] Figure 3 One of the schematic diagrams of core operating frequency values of M core types in the data processing method provided in some embodiments of the present application;
[0021] Figure 4 A second schematic diagram of core operating frequency values of M core types in a data processing method provided in some embodiments of the present application;
[0022] Figure 5 One of the flowcharts of the data processing method provided in some embodiments of the present application;
[0023] Figure 6 A second flowchart of a data processing method provided for some embodiments of the present application;
[0024] Figure 7 A schematic diagram of operating frequencies of three core types of data processing methods provided in some embodiments of the present application;
[0025] Figure 8 A schematic diagram of the structure of a data processing device provided for some embodiments of the present application;
[0026] Fig. 9 A schematic diagram of the structure of an electronic device provided for some embodiments of the present application;
[0027] Fig.10 A schematic diagram of the hardware structure of an electronic device provided for some embodiments of the present application. DETAILED DESCRIPTION
[0028] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0029] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0030] In order to solve the problems in the related art, the embodiments of the present application provide a data processing method, device and electronic device. Figures 1 to 7 , the data processing method provided in the embodiment of the present application is described in detail through specific embodiments and their application scenarios.
[0031] First, combine Figure 1 A data processing system provided in an embodiment of the present application is described in detail.
[0032] Figure 1 A schematic diagram of the structure of a data processing system provided for some embodiments of the present application.
[0033] like Figure 1 As shown, the data processing system provided in the embodiment of the present application can be set in an electronic device, based on which, the data processing system can include a network module 101, a positioning module 102, a resource configuration strategy generation module 103 and a processor adjustment module 104. The above modules are described in detail below.
[0034] The network module 101 is communicatively connected with the positioning module 102. The network module 101 can be used to detect whether the data network communication mode of the electronic device is a mobile data network communication mode when receiving a first input such as a user triggering the electronic device, such as cold starting the application on the operating system of the electronic device, hot starting the application on the operating system of the electronic device, or triggering the application interface switching in the application. In addition, the network module 101 can also be used to obtain the mobile network signal quality information of the device location, such as the signal to interference plus noise ratio (SINR) from the modem in the electronic device through the inter-process communication (IPC) method according to the device location of the electronic device output by the positioning module 102, or obtain the mobile network signal quality information of the device location from the mobile terminal framework layer through the cross-process communication (binder / socket) method.
[0035] The positioning module 102 is used to obtain the device location of the electronic device when it is detected that the data network communication mode of the electronic device is a mobile data network communication mode.
[0036] The resource configuration strategy generation module 103 is in communication connection with the network module 101. The resource configuration strategy generation module 103 can be used to determine the resource configuration strategy related to the access application according to the mobile network signal quality information of the device location. For example, the mobile network condition of the electronic device can be determined through the mobile network signal quality information. When the mobile network condition of the electronic device is good, a resource configuration strategy that is more performance-oriented is used. Through the resource configuration strategy that is more performance-oriented, the value of the processor's operating data is increased, thereby shortening the time for users to access the application and improving the smoothness of users' access to the application. And, when the mobile network condition of the electronic device is poor, a resource configuration strategy that is more power-oriented is used. Through its resource configuration strategy that is more performance-oriented, the value of the processor's operating data can be lowered, thereby reducing unnecessary power consumption waste and improving the performance of the electronic device.
[0037] The processor adjustment module 104 is in communication with the resource configuration strategy generation module 103 and is used to adjust the operation data of the processor in the electronic device, such as the core operating frequency of each core type in the processor's multiple core types, according to the resource configuration strategy output by the resource configuration strategy generation module 103.
[0038] Therefore, the data processing system provided in the embodiment of the present application can utilize the device location and mobile network signal quality information to realize dynamic adjustment of the resource allocation strategy, and select in real time a resource allocation strategy that is more suitable for the current mobile network signal quality information. For example, under conditions where the mobile network is good, a resource allocation strategy that is more performance-oriented is used, and under conditions where the mobile network is poor, a resource allocation strategy that is more power-oriented is used, thereby reducing unnecessary power consumption waste while improving performance.
[0039] Secondly, combined Figure 2 A data processing method provided in an embodiment of the present application is described in detail.
[0040] Figure 2 A flowchart of a data processing method provided for some embodiments of the present application.
[0041] like Figure 2 As shown, the data processing method provided in the embodiment of the present application can be applied to electronic devices, wherein the electronic devices can be mobile phones, tablet computers, laptop computers, PDAs, vehicle-mounted electronic devices and other devices with network communication functions.
[0042] Based on this, the data processing method may include step 210 and step 230 as shown below.
[0043] Step 210, obtaining the device location of the electronic device; Step 220, determining a resource allocation strategy related to accessing the application based on the mobile network signal quality information at the device location; Step 230, adjusting the operating data of the processor in the electronic device according to the resource allocation strategy.
[0044] Therefore, the resource configuration strategy related to the access application can be determined according to the mobile network signal quality information of the device location of the electronic device, and the resource configuration strategy that is more suitable for the current mobile network signal quality information can be selected in real time to realize dynamic adjustment of the resource configuration strategy, so as to avoid the situation where the future load is predicted inaccurately based on the historical load statistics of the processor, that is, when the mobile network condition of the electronic device is good, a resource configuration strategy that is more performance-oriented can be used, and the value of the processor's operating data can be increased through the resource configuration strategy that is more performance-oriented, thereby shortening the time for users to access the application and improving the fluency of users' access to the application; and, when the mobile network condition of the electronic device is poor, a resource configuration strategy that is more power-oriented can be used, and the value of the processor's operating data can be lowered through its resource configuration strategy that is more performance-oriented, thereby reducing unnecessary power consumption and improving the performance of the electronic device. In this way, through the mobile network signal quality information of the device location of the electronic device, a resource configuration strategy that is more suitable for the current mobile network signal quality information can be selected in real time, thereby improving the accuracy of determining the resource configuration strategy related to the access application, thereby improving the accuracy of configuring the processor with the operating data required to run the access application, so as to ensure the fluency and responsiveness of each stage in the operation of the electronic device to access the application.
[0045] The above steps are described in detail below, as shown below.
[0046] First, step 210 is involved. The device location in the embodiment of the present application may include coordinate information of the electronic device, which may be obtained through a global navigation satellite system such as the Beidou satellite navigation system or GPS (Global Positioning System). The device location in the embodiment of the present application may also include a serving cell id list, which may reflect information about the electronic device connecting to a base station, so as to determine the device location of the electronic device based on the information about the electronic device connecting to the base station.
[0047] It should be noted that the device location in the embodiment of the present application includes but is not limited to the above information, and is not limited to the method of obtaining the device location.
[0048] In some embodiments of the present application, before step 210 , the data processing method may further include steps 3101 to 3103 .
[0049] Step 3101: Receive a first input from a user to an application in an electronic device.
[0050] The first input includes an input by a user triggering a cold start application of the operating system of the electronic device, an input by a user triggering a hot start application of the operating system of the electronic device, or an input by a user triggering a switch of an application interface in an application.
[0051] Among them, the operating system cold start application in the input of the operating system cold start application of the electronic device triggered by the user means that the application starts to start, and the operating system process creates the application process after the cold start. The cold start occurs when the application is started for the first time after the device is started or the operating system terminates the application. When the operating system cold start application starts, the operating system has three tasks, namely, loading and starting the application, displaying a blank window for the application, and creating an application process. Among them, after the application process is created, the following tasks can be performed, namely, creating an application object, starting the main thread (Activity Thread), creating a main activity (Main Activity), creating a view, laying out the screen (on Layout), performing drawing (on Draw), and after drawing the Main Activity, replacing the blank window with the activity (Activity) display.
[0052] The above-mentioned user triggers the input of the operating system hot start application of the electronic device to hot start the application of the operating system. When the application is running in the foreground, the application currently running in the foreground can be switched to the background by pressing the electronic device to return to the operating system home screen or start other applications. At this time, the process of the application will still remain in the background. At this time, starting the application in the background when there is an existing process can be called a hot start, and the hot start does not need to repeat the process of creating views, laying out screens, and performing drawing in the cold start.
[0053] The application interface switching in the above user-triggered input of application interface switching refers to switching between different Activities in the same application. When the application is in the foreground, you can switch to another Activity by clicking a button control or link inside the Main Activity.
[0054] Therefore, the data network communication mode of the electronic device can be determined in real time according to the input of different situations related to the application triggered by the user, so as to determine the device location of the electronic device, and then select a resource allocation strategy that is more suitable for the current mobile network signal quality information based on the mobile network signal quality information of the device location, thereby realizing dynamic adjustment of the resource allocation strategy.
[0055] Step 3102: In response to the first input, determine the data network communication mode of the electronic device, wherein the data network communication mode may be a mobile data network communication mode, a wired data network communication mode, a wireless data network communication mode, a satellite data network communication mode, etc.
[0056] Exemplarily, in response to the first input, the data network communication method in the embodiment of the present application can be provided by a Modem.
[0057] Step 3103: When it is determined that the data network communication mode is a mobile data network communication mode, the device location of the electronic device is obtained.
[0058] Among them, the mobile data network communication mode may include at least one of the following mobile communication modes: second-generation mobile communication technology (2-Generation wireless telephone technology, 2G) mobile communication mode, third-generation mobile communication technology (3rd-Generation, 3G) mobile communication mode, fourth-generation mobile communication technology (the 4th generation mobile communication technology, 4G) mobile communication mode, and fifth-generation mobile communication technology (5th Generation Mobile Communication Technology, 5G) mobile communication mode.
[0059] For example, when a user accesses an application interface in an application through a 5G mobile communication method, causing the application interface in the application to switch, it can be determined that the data network communication method is a 5G mobile data network communication method, and at this time, the device location of the electronic device can be obtained. Alternatively, when it is determined that the data network communication method is a 4G mobile data network communication method, it can trigger the acquisition of the device location of the electronic device.
[0060] In some other embodiments of the present application, the data processing method may further include steps 4101 to 4103 before step 110 or before the step of obtaining the device location of the electronic device in step 3103.
[0061] Step 4101: Obtain the position of the electronic device in each of N preset time periods, where the N preset time periods are continuous time periods and N is an integer greater than 1.
[0062] Exemplarily, if N is 3, the three preset time periods may include 10:00-10:01, 10:00-10:01-10:02, and 10:02-10:03.
[0063] It can be understood that the N preset time periods in the embodiment of the present application include the most recent system time of the operating system of the electronic device.
[0064] Step 4102: Determine whether the position deviation of the positions in at least two consecutive preset time periods among the N preset time periods is less than or equal to the preset position deviation.
[0065] Exemplarily, if the position is expressed by coordinates, the position deviation of the position within at least two consecutive preset time periods can be the offset of the coordinates of the position at 10 o'clock-10 o'clock 1 minute-10 o'clock 2 minutes and the coordinates of the position at 10 o'clock 2 minutes-10 o'clock 3 minutes, so that the preset position deviation can include the preset offset.
[0066] Alternatively, if the location is represented by cell residence history information, where the cell residence history information may include the cell identifier where the electronic device resides during a certain time interval, based on this, the location deviation of the location within at least two consecutive preset time periods may be the matching degree of the cell identifier at the location of 10 o'clock-10 o'clock 1 minute-10 o'clock 2 minutes and the cell identifier at the location of 10 o'clock 2 minutes-10 o'clock 3 minutes, and the preset location deviation may include the preset matching degree.
[0067] Based on this, if the two are exactly the same, the matching degree is 100%, and it can be determined that the matching degree of the cell identifiers at the locations within at least two consecutive preset time periods is equal to the preset matching degree. If the two are not exactly the same, it can be further determined whether the cell identifiers at the locations from 10:00 to 10:01 to 10:02 and the cell identifiers at the locations from 10:02 to 10:03 are the same. When the same cell identifiers account for half of the total cell identifiers corresponding to the aforementioned two preset time periods, the matching degree is 50%, and it can be determined that the matching degree of the cell identifiers at the locations within at least two consecutive preset time periods is greater than the preset matching degree; conversely, when the same cell identifiers are less than half of the total cell identifiers corresponding to the aforementioned two preset time periods, the matching degree is 30%, and it can be determined that the matching degree of the cell identifiers at the locations within at least two consecutive preset time periods is less than the preset matching degree.
[0068] Step 4103 includes step 41031 or step 41032.
[0069] Step 41031, when the position deviation of the positions in at least two consecutive preset time periods in N preset time periods is less than or equal to the preset position deviation, the target position in the positions in at least two consecutive preset time periods is determined as the device position of the electronic device.
[0070] Exemplarily, still taking the above example as an example, if the offset of the coordinates of the position of 10 o'clock-10 o'clock 1 minute-10 o'clock 2 minute and the coordinates of the position of 10 o'clock 2 minute-10 o'clock 3 minute are less than the preset offset, indicating that the user's position has not changed significantly in the recent time period, the coordinates of the position of 10 o'clock 1 minute can be determined as the device position of the electronic device, or the coordinates of the position of 10 o'clock 2 minute can be determined as the device position of the electronic device, or the average coordinates of the coordinates of the position of 10 o'clock 1 minute and the coordinates of the position of 10 o'clock 2 minute can be determined as the device position of the electronic device.
[0071] Alternatively, if the matching degree of the cell residence history information at the position of 10 o'clock-10 o'clock-10 o'clock 2 minutes and the cell residence history information at the position of 10 o'clock-10 o'clock 3 minutes is greater than the preset matching degree, indicating that the user's location has not changed significantly in the recent time period, the position indicated by the cell residence history information at 10 o'clock 1 minutes can be determined as the device location of the electronic device, or the position indicated by the cell residence history information at 10 o'clock 2 minutes can be determined as the device location of the electronic device, or the average position of the position indicated by the cell residence history information at 10 o'clock 1 minutes and the position indicated by the cell residence history information at 10 o'clock 2 minutes can be determined as the device location of the electronic device.
[0072] Step 41032: When the position deviation of the position in at least two consecutive preset time periods in the N preset time periods is greater than the preset position deviation, the first preset resource configuration policy is determined as a resource configuration policy related to the access application. The resource configuration policy in the embodiment of the present application refers to a configuration policy provided for adjusting the operating data of the processor, such as the core operating frequency of M core types, based on different scenarios corresponding to the access application in the electronic device.
[0073] Here, the above example is still used for explanation. If the offset of the coordinates of the position at 10 o'clock-10 o'clock 1 minute-10 o'clock 2 minutes and the coordinates of the position at 10 o'clock 2 minutes-10 o'clock 3 minutes is greater than or equal to the preset offset, or if the matching degree of the cell residence history information at the position at 10 o'clock-10 o'clock 1 minute-10 o'clock 2 minutes and the cell residence history information at the position at 10 o'clock 2 minutes-10 o'clock 3 minutes is less than or equal to the preset matching degree, it indicates that the user's location has changed significantly in the recent time period.
[0074] At this time, the user may be on the move by riding a bicycle, driving, or taking a train. In order to ensure the smoothness and responsiveness of each stage of the electronic device's operation in accessing the application and avoid situations such as electronic device freezes and application page response delays, the embodiment of the present application will determine the first preset resource configuration strategy as a resource configuration strategy related to accessing the application, wherein the operating data of the processor involved in the first preset resource configuration strategy, such as the core operating frequency range of M core types, is the highest.
[0075] In this way, the smoothness and responsiveness of each stage of the electronic device's access to the application can be guaranteed, avoiding situations such as electronic device freezes and application page response delays.
[0076] It should be noted that in some embodiments of the present application, after the above step 3102, when it is determined that the data network communication mode is a mobile data network communication mode, and the mobile data network communication mode is a 2G mobile communication mode or a 3G mobile communication mode, it is also determined that the mobile network condition of the electronic device is poor. Based on this, in order to ensure the fluency and responsiveness of each stage in the operation of the electronic device to access the application, and to avoid causing the electronic device to freeze, the application page response delay, etc., the first preset resource configuration strategy will also be determined as a resource configuration strategy related to the access application. Based on this, after step 3102, the data processing method may also include:
[0077] When it is determined that the data network communication mode is the mobile data network communication mode, and the mobile data network communication mode is the 2G mobile communication mode or the 3G mobile communication mode, the first preset resource configuration policy is determined as a resource configuration policy related to the access application.
[0078] Therefore, when it is determined that the user is using a fast application or the mobile network condition of the electronic device is poor, the processor's operating data, such as the core operating frequency of M core types, can be adjusted to a value within the range of the highest core operating frequency, thereby ensuring the smoothness and responsiveness of each stage in the electronic device's operation of accessing the application, and avoiding situations such as electronic device freezes and application page response delays.
[0079] Next, involving step 220, the mobile network signal quality information in the embodiment of the present application may include SINR, wherein SINR is the ratio of the strength of the useful signal of the mobile communication network received in the mobile data network communication mode to the strength of the received interference signal, and is positively correlated with the access rate of the mobile communication network. The aforementioned interference signal may include one of the following: noise signal, interference signal. In addition, the mobile network signal quality information in the embodiment of the present application may also include information such as signal strength and signal frequency.
[0080] Here, the embodiment of the present application can obtain the mobile network signal quality information in at least one of the following ways: obtaining from the modem through the IPC method, and obtaining from the mobile terminal framework layer through the binder / socket method.
[0081] In some embodiments of the present application, step 220 may specifically include step 2201 and step 2202 .
[0082] Step 2201: When the mobile network signal quality information meets a preset condition, determine a first preset resource configuration policy as a resource configuration policy related to accessing an application.
[0083] Exemplarily, taking the mobile network signal quality information as SINR and the preset condition as the preset SINR value as an example, when the SINR is greater than the preset SINR value, it indicates that the mobile network condition of the electronic device is better, and the first resource configuration strategy that is more performance-oriented can be determined as the resource configuration strategy related to accessing the application.
[0084] Therefore, when the mobile network conditions of the electronic device are good, a more performance-oriented resource allocation strategy can be used. Through the more performance-oriented resource allocation strategy, the value of the processor's operating data can be increased, thereby shortening the time for users to access applications and improving the fluency of users' access to applications.
[0085] On the contrary, when the mobile network conditions of electronic devices are poor, due to factors such as slow or stopped loading of network content resources due to network speed reduction or stagnation, power consumption, frequency and voltage show a positive correlation. If the resource allocation strategy of increasing the value of the processor's operating data is still adopted, it will cause heat generation and reduced battery life due to high power consumption.
[0086] Therefore, in order to reduce unnecessary power consumption and improve the performance of electronic devices, the embodiments of the present application provide the following solutions.
[0087] Step 2202: When the mobile network signal quality information does not meet a preset condition, determine the second preset resource configuration policy as a resource configuration policy related to accessing the application.
[0088] Exemplarily, still taking the mobile network signal quality information as SINR and the preset condition as the preset SINR value as an example, when SINR is less than or equal to the preset SINR value, it means that the mobile network condition of the electronic device is poor, and the second resource configuration strategy that is more biased towards power consumption can be determined as a resource configuration strategy related to the access application. Among them, the second resource configuration strategy involves the operation data of the processor of the electronic device, such as the core operating frequency range of M core types. Here, M is 3 as an example for explanation, and the three core types include large core, medium core and small core. Based on this, the second preset resource configuration strategy includes the second preset core operating frequency range corresponding to the small core, so the core operating frequency value of the small core can be adjusted to the minimum core operating frequency value (Min Freq) 0 to the maximum core operating frequency value (Max freq) 1920000. And, the second preset resource configuration strategy includes the second preset core operating frequency range corresponding to the medium core, so the core operating frequency value of the medium core can be adjusted to the minimum core operating frequency value (Min Freq) 0 to the maximum core operating frequency value (Max freq) 2515200. And, the second preset resource configuration strategy includes a second preset core operating frequency range corresponding to the large core, then, the core operating frequency value of the large core can be adjusted to be between the minimum core operating frequency value (Min Freq) 0 and the maximum core operating frequency value (Max freq) 2515200. In this way, when the mobile network of the electronic device is in poor condition, a resource configuration strategy that is more biased towards power consumption can be used, and the value of the processor's operating data can be lowered through its resource configuration strategy that is more biased towards performance, thereby reducing unnecessary power consumption waste and improving the performance of the electronic device.
[0089] In some other embodiments of the present application, the difference from the above-mentioned embodiments is that the scenarios are further divided into three parts, that is, the preset conditions include a first preset threshold and a second preset threshold, the first preset threshold is greater than the second preset threshold, and the resource configuration strategy related to the access application also includes a third preset resource configuration strategy. Based on this, step 220 can specifically include step 2203 and step 2205.
[0090] Step 2203: When the value of the mobile network signal quality information is greater than a first preset threshold, determine the first preset resource configuration policy as a resource configuration policy related to accessing the application.
[0091] Step 2204: when the value of the mobile network signal quality information is less than the second preset threshold, determine the second preset resource configuration policy as the resource configuration policy related to the access application.
[0092] Step 2205: When the value of the mobile network signal quality information is less than or equal to the first preset threshold and greater than or equal to the second preset threshold, determine the third preset resource configuration policy as the resource configuration policy related to accessing the application.
[0093] Exemplarily, still taking the mobile network signal quality information as SINR, and the preset conditions as the first preset threshold value 3 and the second preset threshold value 1 as an example, when the SINR is greater than the first preset threshold value 3, it indicates that the mobile network condition of the electronic device is good, and the first resource configuration strategy that is more biased towards performance can be determined as the resource configuration strategy related to accessing the application; when the SINR is less than the second preset threshold value 1, it indicates that the mobile network condition of the electronic device is poor, and a resource configuration strategy that is more biased towards power consumption is used. The second resource configuration strategy that is more biased towards performance can be used to lower the value of the processor's operating data, thereby reducing unnecessary power consumption and improving the performance of the electronic device; when the SINR is less than or equal to the first preset threshold value 3 and greater than or equal to the second preset threshold value 1, it indicates that the mobile network condition of the electronic device is relatively stable, and the resource configuration strategy that considers both power consumption and performance can be used. The value of the processor's operating data can be lowered through the third resource configuration strategy that considers both power consumption and performance.
[0094] Therefore, through the mobile network signal quality information of the device location of the electronic device, a resource allocation strategy that is more suitable for the current mobile network signal quality information is selected in real time, thereby improving the accuracy of determining the resource allocation strategy related to the access application, and then improving the accuracy of configuring the processor to run the operating data required to access the application, so as to ensure the smoothness and responsiveness of each stage in the operation of the electronic device to access the application.
[0095] Then, step 230 is involved. The operation data of the processor in the electronic device adjusted in the embodiment of the present application can be implemented based on the processor dynamic frequency scaling technology (Central Processing Unit Boost, CPU Boost). Among them, CPU Boost is used to improve the processing performance of the CPU, and its technical means may include frequency increase and core binding. Specifically, frequency increase refers to increasing the operating frequency of the CPU to the highest value or higher value of its operating frequency range. Core binding refers to fixing some applications to be executed on certain higher-configured cores of the CPU to ensure that these applications can be allocated more processing resources. The core type of the processor in the embodiment of the present application may include at least one of the following: large core, medium core, and small core. Each core type corresponds to a preset core operating frequency range, which includes the lowest core operating frequency value and the highest core operating frequency value of each core type. The higher the gear of the core type corresponding to the CPU, the higher the minimum frequency of the corresponding component when it is working, the higher the driving voltage, the faster the rate, and the greater the power consumption.
[0096] Here, the big core in the embodiment of the present application refers to the core with stronger performance in the processor, which is used to handle tasks that require higher computing power, such as complex games, video editing, 3D modeling and other applications. The medium core refers to the core with performance between the big core and the small core in the processor, which is used to handle tasks with general performance requirements, such as daily office work, web browsing, etc. The small core refers to the core with weaker performance but lower power consumption in the processor, which is used to handle some simple tasks to save energy and extend battery life, such as lightweight applications, standby state, etc. This hybrid architecture CPU core design can achieve a better balance under different workloads, providing both high performance and energy saving and low power consumption of electronic equipment.
[0097] In some embodiments of the present application, the operating data of the processor includes the core operating frequency values of M core types in the processor. Based on the embodiments corresponding to the above steps 2201 and 2202, step 230 may specifically include steps 2301 and 2302.
[0098] Step 2301, when the resource configuration strategy is the first preset resource configuration strategy, adjust the core operating frequency value of the i-th core type among the M core types to a core operating frequency value within the first preset core operating frequency range corresponding to the i-th core type.
[0099] For example, Figure 3 As shown, the first input is the input of the user triggering the cold start application of the operating system of the electronic device, and M is 3 as an example for explanation, and the three core types include large core, medium core and small core. Based on this, when the resource configuration strategy is the first preset resource configuration strategy, that is, Boost solution 1, at this time, the first preset resource configuration strategy includes the first preset core operating frequency range corresponding to the small core, then the core operating frequency value of the small core can be adjusted to be between the minimum core operating frequency value (MinFreq) 2265600 and the maximum core operating frequency value (Max freq) 2265600.
[0100] And, the first preset resource configuration strategy includes a first preset core operating frequency range corresponding to the middle core, then, the core operating frequency value of the middle core can be adjusted to between the minimum core operating frequency value (Min Freq) 3148800 and the maximum core operating frequency value (Max freq) 3148800.
[0101] And, the first preset resource configuration strategy includes a first preset core operating frequency range corresponding to the large core, then the core operating frequency value of the large core can be adjusted to between the minimum core operating frequency value (Min Freq) 3302400 and the maximum core operating frequency value (Max freq) 3302400.
[0102] Therefore, when the mobile network conditions of the electronic device are good, a more performance-oriented resource allocation strategy can be used. Through the more performance-oriented resource allocation strategy, the value of the processor's operating data can be increased, thereby shortening the time for users to access applications and improving the fluency of users' access to applications.
[0103] Step 2302: When the resource configuration strategy is the second preset resource configuration strategy, adjust the core operating frequency value of the i-th core type to a core operating frequency value within the second preset core operating frequency range corresponding to the i-th core type;
[0104] Among them, the core operating frequency value within the first preset core operating frequency range corresponding to the i-th core type is greater than the core operating frequency value within the second preset core operating frequency range corresponding to the i-th core type.
[0105] For example, Figure 3 As shown, the first input is still used as the input of the user triggering the cold start application of the operating system of the electronic device, and M is 3 as an example for explanation, and the three core types include large core, medium core and small core. Based on this, when the resource configuration strategy is the second preset resource configuration strategy, that is, Boost solution 2, at this time, the second preset resource configuration strategy includes the second preset core operating frequency range corresponding to the small core, then the core operating frequency value of the small core can be adjusted to the minimum core operating frequency value (MinFreq) 0 to the maximum core operating frequency value (Max freq) 1920000.
[0106] And, the second preset resource configuration strategy includes a second preset core operating frequency range corresponding to the middle core, then the core operating frequency value of the middle core can be adjusted to between the minimum core operating frequency value (Min Freq) 0 and the maximum core operating frequency value (Max freq) 2515200.
[0107] And, the second preset resource configuration strategy includes a second preset core operating frequency range corresponding to the large core, then the core operating frequency value of the large core can be adjusted to between the minimum core operating frequency value (Min Freq) 0 and the maximum core operating frequency value (Max freq) 2515200.
[0108] Therefore, the embodiment of the present application considers the network content resource situation when implementing the CPU Boost strategy. Under different network connection rates, the data that needs to be sent to the CPU for processing per unit time is also different. In this way, under the condition that the mobile network of the electronic device is in good condition, the response time of accessing the network content resources can be shortened and the user's demand for smooth access to the network content resources can be met. And, under the condition that the mobile network of the electronic device is in poor condition, using a resource configuration strategy that is more biased towards power consumption, the value of the processor's operating data can be lowered through its resource configuration strategy that is more biased towards performance, thereby reducing unnecessary power consumption waste and improving the performance of the electronic device.
[0109] In other embodiments of the present application, the operating data of the processor includes core operating frequency values of M core types in the processor. Based on the embodiments corresponding to the above steps 2203 and 2205, step 230 may specifically include steps 2303 and 2305.
[0110] Step 2303, when the resource configuration strategy is the first preset resource configuration strategy, adjust the core operating frequency value of the i-th core type among the M core types to a core operating frequency value within the first preset core operating frequency range corresponding to the i-th core type.
[0111] Step 2304: When the resource configuration strategy is the second preset resource configuration strategy, the core operating frequency value of the ith core type is adjusted to a core operating frequency value within the second preset core operating frequency range corresponding to the ith core type.
[0112] Step 2305: when the resource configuration strategy is the third preset resource configuration strategy, adjusting the core operating frequency value of the i-th core type among the M core types to a core operating frequency value within the third preset core operating frequency range corresponding to the i-th core type;
[0113] Among them, the core operating frequency value within the third preset core operating frequency range corresponding to the i-th core type is less than the core operating frequency value within the first preset core operating frequency range corresponding to the i-th core type, and is greater than or equal to the core operating frequency value within the second preset core operating frequency range corresponding to the i-th core type.
[0114] For example, Figure 4 As shown, the first input is an input of a user triggering a cold start application of the operating system of the electronic device, and M is 3 as an example for explanation, and the 3 core types include a large core, a medium core, and a small core. For the specific content of the first preset resource allocation strategy to adjust the operating data of the processor, please refer to the above Figure 3 The contents shown will not be repeated here.
[0115] Based on this, when the resource configuration strategy is the third preset resource configuration strategy, namely Boost scheme 3, at this time, the third preset resource configuration strategy includes the third preset core operating frequency range corresponding to the small core, then the core operating frequency value of the small core can be adjusted to be between the minimum core operating frequency value (Min Freq) 1689600 and the maximum core operating frequency value (Max freq) 1920000.
[0116] And, the third preset resource allocation strategy includes a third preset core operating frequency range corresponding to the middle core, then the core operating frequency value of the middle core can be adjusted to between the minimum core operating frequency value (Min Freq) 2131200 and the maximum core operating frequency value (Max freq) 2515200.
[0117] And, the third preset resource configuration strategy includes a third preset core operating frequency range corresponding to the large core, then the core operating frequency value of the large core can be adjusted to between the minimum core operating frequency value (Min Freq) 2131200 and the maximum core operating frequency value (Max freq) 2515200.
[0118] In this way, when the mobile network conditions of electronic devices are poor, uploading and downloading data are already very slow. At this time, downgrading the original Boost solution will not affect the user experience.
[0119] It should be noted that, through the data processing method provided in the above-mentioned embodiment of the present application, for the application cold start scenario, the average current of Boost solution 1 is reduced by 35% from 2170mA to 1410Ma of Boost solution 3, which effectively alleviates the problems of excessive power consumption causing heating and reduced battery life during the application startup process when the mobile signal quality is poor, thereby providing strong performance to meet the responsiveness requirements of the application to open instantly.
[0120] Therefore, the data processing method provided in the embodiment of the present application can implement CPU Boost operation more accurately according to the mobile network access situation and user location information, avoiding the high power consumption leading to heating, reduced battery life and other problems caused by blindly implementing Boost when the mobile network access situation is poor, while improving the user experience.
[0121] Combine the following Figures 5 to 7 , the data processing method provided in the embodiment of the present application is described in detail.
[0122] like Figure 5 As shown, the data processing method may specifically include steps 501 to 505.
[0123] Step 501: The user starts the application.
[0124] Among them, if the current data network communication method of the electronic device is based on the mobile data network communication method provided by the modem, and the access path provided by the mobile data network communication method is, the user clicks on the desktop of the electronic device to start the application, or switches the application to the foreground, or clicks a button control or link in the application to switch to a new page.
[0125] Step 502: The Boost decision module obtains historical location information of the electronic device.
[0126] The Boost decision module obtains the base station residence history information serving cell idlist from the location information module to determine whether the user location cell id has changed significantly in the recent time period, such as within 3 minutes.
[0127] Step 503: The Boost decision module obtains current signal quality information.
[0128] The Boost decision module obtains the mobile signal quality indicator SINR of the Modem, and the acquisition method can be directly obtained from the Modem through the IPC method, or obtained from the mobile terminal framework layer through the binder / socket method.
[0129] Step 504: The Boost decision module decides whether to limit or stop Boost according to the historical location information and the signal quality index.
[0130] Specifically, Figure 6 As shown, the Boost decision module decides to apply different Boost schemes according to whether the acquired historical location information changes and the signal quality indicator SINR. For example, when the SINR is higher than a certain threshold value such as 3db or the electronic device is in rapid motion, the full-speed Boost scheme 1 with a bias towards performance is implemented; when the SINR is lower than a first threshold value such as 3db, the degraded Boost scheme 2 with a bias towards power consumption is implemented; when the SINR is lower than a lower second threshold value such as 1db, the more stringent degraded Boost scheme 3 is implemented. Also, if the current resident network is a 2G / 3G network, the Boost scheme is not implemented.
[0131] Among them, Boost solution 1, Boost solution 2 and Boost solution 3 can refer to Figure 4 The content shown.
[0132] Step 505: The Boost decision module sends specific operations to the CPU.
[0133] The Boost decision module sends specific operations such as the maximum and minimum limits of the frequencies of different CPU clusters to the CPU module to execute the corresponding Boost according to the different Boost schemes determined in step 504 .
[0134] Specifically, Figure 7 As shown, when the application starts to start, the CPU will start to increase the frequency of large, medium and small core clusters according to the Boost scheme. The frequency increase period is 2000ms. The minimum operating frequency of the large and medium core clusters is increased to 2131200Khz, and the maximum operating frequency is limited to 2515200Khz. The minimum operating frequency of the small core cluster is increased to 1689600Khz, and the maximum operating frequency is limited to 1920000Khz, thereby providing strong performance to meet the response requirements of the application to open instantly.
[0135] Therefore, the embodiment of the present application considers the network content resource situation when implementing the CPU Boost strategy. Under different network connection rates, the data that needs to be sent to the CPU for processing per unit time is also different. In this way, under the condition that the mobile network of the electronic device is in good condition, the response time of accessing the network content resources can be shortened and the user's demand for smooth access to the network content resources can be met. And, under the condition that the mobile network of the electronic device is in poor condition, using a resource configuration strategy that is more biased towards power consumption, the value of the processor's operating data can be lowered through its resource configuration strategy that is more biased towards performance, thereby reducing unnecessary power consumption waste and improving the performance of the electronic device.
[0136] It should be noted that the data processing method provided in the embodiments of the present application can be executed by electronic devices such as mobile phones, tablet computers, laptop computers, PDAs, wearable devices, etc. In some embodiments of the present application, the data processing method provided in the embodiments of the present application is described by taking the electronic device as the execution subject to execute the data processing method as an example.
[0137] The data processing method provided in the embodiment of the present application can be executed by a data processing device. In the embodiment of the present application, a data processing device executing the data processing method is taken as an example to illustrate the device of the data processing method provided in the embodiment of the present application.
[0138] The present application also provides a data processing device. Figure 8 Provide detailed explanation.
[0139] Figure 8 A schematic diagram of the structure of a data processing device provided for some embodiments of the present application.
[0140] like Figure 8 As shown, the data processing device 80 can be applied to an electronic device, and the data processing device 80 can specifically include:
[0141] An acquisition module 801 is used to acquire a device location of an electronic device;
[0142] A determination module 802, configured to determine a resource configuration strategy related to accessing an application based on mobile network signal quality information at a device location;
[0143] The adjustment module 803 is used to adjust the operation data of the processor in the electronic device according to the resource configuration strategy.
[0144] The data processing device 80 in the embodiment of the present application is described in detail below, as shown below.
[0145] In some embodiments of the present application, the data processing device 80 in the embodiment of the present application may further include a receiving module, which is used to receive a first input of a user to an application in the electronic device;
[0146] A determination module 802, configured to determine a data network communication mode of the electronic device in response to a first input;
[0147] The acquisition module 801 is used to acquire the device location of the electronic device when the data network communication mode is a mobile data network communication mode.
[0148] In some embodiments of the present application, the first input includes input by a user triggering a cold start application of the operating system of the electronic device, input by a user triggering a hot start application of the operating system of the electronic device, or input by a user triggering an application interface switch in an application.
[0149] In some embodiments of the present application, the acquisition module 801 is used to acquire the position of the electronic device in each preset time period of N preset time periods, where the N preset time periods are continuous time periods;
[0150] The determination module 802 is used to determine the target position in at least two consecutive preset time periods as the device position of the electronic device when the position deviation of the positions in at least two consecutive preset time periods in N preset time periods is less than or equal to the preset position deviation.
[0151] In some embodiments of the present application, the determination module 802 is used to determine the first preset resource configuration policy as a resource configuration policy related to accessing the application when the position deviation of the location in at least two consecutive preset time periods among N preset time periods is greater than the preset position deviation.
[0152] In some embodiments of the present application, the determination module 802 is used to determine the first preset resource configuration policy as the resource configuration policy related to the access application when the mobile network signal quality information meets the preset condition;
[0153] When the mobile network signal quality information does not meet the preset condition, the second preset resource configuration policy is determined as the resource configuration policy related to accessing the application.
[0154] In some embodiments of the present application, the adjustment module 803 is used to adjust the core operating frequency value of the i-th core type among the M core types to a core operating frequency value within the first preset core operating frequency range corresponding to the i-th core type when the operation data of the processor includes core operating frequency values of M core types in the processor and the resource configuration strategy is the first preset resource configuration strategy;
[0155] An adjustment module 803, configured to adjust the core operating frequency value of the i-th core type to a core operating frequency value within a second preset core operating frequency range corresponding to the i-th core type when the resource configuration strategy is the second preset resource configuration strategy;
[0156] Among them, the core operating frequency value within the first preset core operating frequency range corresponding to the i-th core type is greater than the core operating frequency value within the second preset core operating frequency range corresponding to the i-th core type.
[0157] In some embodiments of the present application, the determination module 802 is configured to determine the first preset resource configuration policy as the resource configuration policy related to the access application when the preset condition includes a first preset threshold and a second preset threshold, the first preset threshold is greater than the second preset threshold, the resource configuration policy related to the access application further includes a third preset resource configuration policy, and when the value of the mobile network signal quality information is greater than the first preset threshold;
[0158] When the value of the mobile network signal quality information is less than a second preset threshold, determining the second preset resource configuration policy as a resource configuration policy related to accessing the application;
[0159] When the value of the mobile network signal quality information is less than or equal to the first preset threshold and greater than or equal to the second preset threshold, the third preset resource configuration policy is determined as the resource configuration policy related to the access application.
[0160] In some embodiments of the present application, the adjustment module 803 is used to adjust the core operating frequency value of the i-th core type among the M core types to a core operating frequency value within the first preset core operating frequency range corresponding to the i-th core type when the operation data of the processor includes core operating frequency values of M core types in the processor and the resource configuration strategy is the first preset resource configuration strategy;
[0161] When the resource configuration strategy is the second preset resource configuration strategy, adjusting the core operating frequency value of the i-th core type to a core operating frequency value within the second preset core operating frequency range corresponding to the i-th core type;
[0162] When the resource configuration strategy is the third preset resource configuration strategy, adjusting the core operating frequency value of the i-th core type among the M core types to a core operating frequency value within the third preset core operating frequency range corresponding to the i-th core type;
[0163] Among them, the core operating frequency value within the third preset core operating frequency range corresponding to the i-th core type is less than the core operating frequency value within the first preset core operating frequency range corresponding to the i-th core type, and is greater than or equal to the core operating frequency value within the second preset core operating frequency range corresponding to the i-th core type.
[0164] The data processing device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0165] The data processing device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an IOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0166] The data processing device provided in the embodiment of the present application can realize Figures 1 to 7 The various processes implemented in the data processing method embodiment shown achieve the same technical effect, and will not be described again here to avoid repetition.
[0167] Based on this, the data processing device provided in the embodiment of the present application obtains the device location of the electronic device, and determines the resource configuration strategy related to accessing the application based on the mobile network signal quality information of the device location, and then adjusts the operating data of the processor in the electronic device according to the resource configuration strategy. In this way, the resource configuration strategy related to the access application can be determined according to the mobile network signal quality information of the device location of the electronic device, and the resource configuration strategy that is more suitable for the current mobile network signal quality information can be selected in real time to realize dynamic adjustment of the resource configuration strategy, so as to avoid the situation where the future load is predicted inaccurately based on the historical load statistics of the processor. That is, when the mobile network condition of the electronic device is good, a resource configuration strategy that is more performance-oriented can be used. Through the resource configuration strategy that is more performance-oriented, the value of the processor's operating data can be increased, thereby shortening the time for users to access the application and improving the fluency of users' access to the application; and, when the mobile network condition of the electronic device is poor, a resource configuration strategy that is more power-oriented can be used. Through its resource configuration strategy that is more performance-oriented, the value of the processor's operating data can be lowered, reducing unnecessary power consumption waste while improving the performance of the electronic device. In this way, through the mobile network signal quality information of the device location of the electronic device, a resource configuration strategy that is more suitable for the current mobile network signal quality information can be selected in real time, thereby improving the accuracy of determining the resource configuration strategy related to the access application, thereby improving the accuracy of configuring the processor with the operating data required to run the access application, so as to ensure the fluency and responsiveness of each stage in the operation of the electronic device to access the application.
[0168] Optional, such as Fig. 9 As shown, an embodiment of the present application also provides an electronic device 90, including a processor 901 and a memory 902, wherein the memory 902 stores programs or instructions that can be executed on the processor 901, and when the program or instructions are executed by the processor 901, the various steps of the above-mentioned data processing method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.
[0169] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
[0170] Fig.10 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application.
[0171] The electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, a processor 1010 and other components.
[0172] Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1010 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system.
[0173] Fig.10 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0174] In the embodiment of the present application, the processor 1010 is used to obtain the device location of the electronic device. The processor 1010 can also be used to determine a resource configuration strategy related to accessing the application based on the mobile network signal quality information of the device location. The processor 1010 can also be used to adjust the operation data of the processor in the electronic device according to the resource configuration strategy.
[0175] The electronic device 1000 is described in detail below, as shown below.
[0176] In some embodiments of the present application, the user input unit 1007 is used to receive a first input from a user to an application in the electronic device;
[0177] Processor 1010, for determining a data network communication mode of the electronic device in response to a first input;
[0178] The processor 1010 is further configured to obtain a device location of the electronic device when the data network communication mode is a mobile data network communication mode.
[0179] In some embodiments of the present application, the first input includes input by a user triggering a cold start application of the operating system of the electronic device, input by a user triggering a hot start application of the operating system of the electronic device, or input by a user triggering an application interface switch in an application.
[0180] In some embodiments of the present application, the processor 1010 is configured to obtain the position of the electronic device in each of N preset time periods, where the N preset time periods are continuous time periods;
[0181] When the position deviation of at least two consecutive preset time periods in N preset time periods is less than or equal to the preset position deviation, the target position in the at least two consecutive preset time periods is determined as the device position of the electronic device.
[0182] In some embodiments of the present application, the processor 1010 is used to determine the first preset resource configuration policy as a resource configuration policy related to accessing the application when the position deviation of the position in at least two consecutive preset time periods among N preset time periods is greater than the preset position deviation.
[0183] In some embodiments of the present application, the processor 1010 is configured to determine the first preset resource configuration policy as a resource configuration policy related to accessing the application when the mobile network signal quality information meets a preset condition;
[0184] When the mobile network signal quality information does not meet the preset condition, the second preset resource configuration policy is determined as the resource configuration policy related to accessing the application.
[0185] In some embodiments of the present application, the processor 1010 is configured to, when the operating data of the processor includes core operating frequency values of M core types in the processor and the resource configuration strategy is a first preset resource configuration strategy, adjust the core operating frequency value of the i-th core type among the M core types to a core operating frequency value within a first preset core operating frequency range corresponding to the i-th core type;
[0186] When the resource configuration strategy is the second preset resource configuration strategy, adjusting the core operating frequency value of the i-th core type to a core operating frequency value within the second preset core operating frequency range corresponding to the i-th core type;
[0187] Among them, the core operating frequency value within the first preset core operating frequency range corresponding to the i-th core type is greater than the core operating frequency value within the second preset core operating frequency range corresponding to the i-th core type.
[0188] In some embodiments of the present application, the processor 1010 is configured to, when the preset condition includes a first preset threshold and a second preset threshold, the first preset threshold is greater than the second preset threshold, the resource configuration policy related to the access application further includes a third preset resource configuration policy, and when the value of the mobile network signal quality information is greater than the first preset threshold, determine the first preset resource configuration policy as the resource configuration policy related to the access application;
[0189] When the value of the mobile network signal quality information is less than a second preset threshold, determining the second preset resource configuration policy as a resource configuration policy related to accessing the application;
[0190] When the value of the mobile network signal quality information is less than or equal to the first preset threshold and greater than or equal to the second preset threshold, the third preset resource configuration policy is determined as the resource configuration policy related to the access application.
[0191] In some embodiments of the present application, the processor 1010 is configured to, when the operating data of the processor includes core operating frequency values of M core types in the processor and the resource configuration strategy is a first preset resource configuration strategy, adjust the core operating frequency value of the i-th core type among the M core types to a core operating frequency value within a first preset core operating frequency range corresponding to the i-th core type;
[0192] When the resource configuration strategy is the second preset resource configuration strategy, adjusting the core operating frequency value of the i-th core type to a core operating frequency value within the second preset core operating frequency range corresponding to the i-th core type;
[0193] When the resource configuration strategy is the third preset resource configuration strategy, adjusting the core operating frequency value of the i-th core type among the M core types to a core operating frequency value within the third preset core operating frequency range corresponding to the i-th core type;
[0194] Among them, the core operating frequency value within the third preset core operating frequency range corresponding to the i-th core type is less than the core operating frequency value within the first preset core operating frequency range corresponding to the i-th core type, and is greater than or equal to the core operating frequency value within the second preset core operating frequency range corresponding to the i-th core type.
[0195] It should be understood that the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of the static image or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1006 may include a display panel, and the display panel may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 10071 and at least one of other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch display. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (such as a volume display button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0196] The memory 1009 can be used to store software programs and various data. The memory 1009 can mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area can store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1009 can include a volatile memory or a non-volatile memory, or the memory 1009 can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 1009 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0197] The processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to the operating system, user interface, and application programs, and the modem processor mainly processes wireless display signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1010.
[0198] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned data processing method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0199] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0200] In addition, an embodiment of the present application further provides a chip, which includes a processor and a display interface, the display interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned data processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0201] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0202] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned data processing method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0203] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0204] In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in a reverse order according to the functions involved. For example, the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
[0205] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of each embodiment of the present application.
[0206] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A data processing method, characterized in that: include: Obtaining a device location of an electronic device; Determining a resource allocation strategy related to accessing the application based on the mobile network signal quality information at the device location; According to the resource allocation strategy, the operating data of the processor in the electronic device is adjusted.
2. The method according to claim 1, characterized in that: Before obtaining the device location of the electronic device, the method further includes: Receiving a first input from a user to an application in the electronic device; In response to the first input, determining a data network communication mode of the electronic device; When the data network communication mode is a mobile data network communication mode, the device location of the electronic device is obtained.
3. The method according to claim 2, characterized in that The first input includes an input of a user triggering the operating system of the electronic device to cold-start the application, an input of a user triggering the operating system of the electronic device to hot-start the application, or an input of a user triggering an application interface switch in the application.
4. The method according to claim 1 or 2, characterized in that: Before obtaining the device location of the electronic device, the method further includes: Obtaining the position of the electronic device in each of N preset time periods, where the N preset time periods are continuous time periods; When the position deviation of the positions within at least two consecutive preset time periods in the N preset time periods is less than or equal to the preset position deviation, the target position within the positions within the at least two consecutive preset time periods is determined as the device position of the electronic device.
5. The method according to claim 4, characterized in that The method further comprises: When the position deviation of the position in at least two consecutive preset time periods among the N preset time periods is greater than the preset position deviation, the first preset resource configuration policy is determined as a resource configuration policy related to the access application.
6. The method according to claim 4, characterized in that The determining of a resource configuration strategy related to accessing an application according to the mobile network signal quality information of the device location includes: In a case where the mobile network signal quality information meets a preset condition, determining the first preset resource configuration policy as a resource configuration policy related to accessing the application; In a case where the mobile network signal quality information does not satisfy the preset condition, the second preset resource configuration policy is determined as a resource configuration policy related to accessing the application.
7. The method according to claim 6, characterized in that The operating data of the processor includes core operating frequency values of M core types in the processor; and adjusting the operating data of the processor in the electronic device according to the resource allocation strategy includes: When the resource configuration strategy is the first preset resource configuration strategy, adjusting the core operating frequency value of the i-th core type among the M core types to a core operating frequency value within the first preset core operating frequency range corresponding to the i-th core type; When the resource configuration strategy is the second preset resource configuration strategy, adjusting the core operating frequency value of the i-th core type to a core operating frequency value within a second preset core operating frequency range corresponding to the i-th core type; Among them, the core operating frequency value within the first preset core operating frequency range corresponding to the i-th core type is greater than the core operating frequency value within the second preset core operating frequency range corresponding to the i-th core type.
8. The method according to claim 6, characterized in that The preset condition includes a first preset threshold and a second preset threshold, the first preset threshold is greater than the second preset threshold, and the resource configuration strategy related to accessing the application also includes a third preset resource configuration strategy; The determining of a resource configuration strategy related to accessing an application according to the mobile network signal quality information of the device location includes: In a case where the value of the mobile network signal quality information is greater than the first preset threshold, determining the first preset resource configuration policy as a resource configuration policy related to accessing the application; When the value of the mobile network signal quality information is less than the second preset threshold, determining the second preset resource configuration policy as a resource configuration policy related to accessing the application; When the value of the mobile network signal quality information is less than or equal to the first preset threshold and greater than or equal to the second preset threshold, the third preset resource configuration policy is determined as the resource configuration policy related to accessing the application.
9. The method according to claim 8, characterized in that The operating data of the processor includes core operating frequency values of M core types in the processor; and adjusting the operating data of the processor in the electronic device according to the resource allocation strategy includes: When the resource configuration strategy is the first preset resource configuration strategy, adjusting the core operating frequency value of the i-th core type among the M core types to a core operating frequency value within the first preset core operating frequency range corresponding to the i-th core type; When the resource configuration strategy is the second preset resource configuration strategy, adjusting the core operating frequency value of the i-th core type to a core operating frequency value within a second preset core operating frequency range corresponding to the i-th core type; When the resource configuration strategy is the third preset resource configuration strategy, adjusting the core operating frequency value of the i-th core type among the M core types to a core operating frequency value within the third preset core operating frequency range corresponding to the i-th core type; Among them, the core operating frequency value within the third preset core operating frequency range corresponding to the i-th core type is less than the core operating frequency value within the first preset core operating frequency range corresponding to the i-th core type, and is greater than or equal to the core operating frequency value within the second preset core operating frequency range corresponding to the i-th core type.
10. A data processing device, characterized in that: include: An acquisition module, used to acquire a device location of an electronic device; A determination module, configured to determine a resource configuration strategy related to accessing an application based on mobile network signal quality information at the location of the device; The adjustment module is used to adjust the operation data of the processor in the electronic device according to the resource configuration strategy.
11. An electronic device, characterized in that: include: A processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the data processing method according to any one of claims 1 to 9.
12. A readable storage medium, characterized in that: The readable storage medium stores programs or instructions, and when the programs or instructions are executed by the processor, the steps of the data processing method according to any one of claims 1 to 9 are implemented.