Bandwidth adjustment method and device, electronic device, and computer-readable storage medium
By exchanging data status information and adjusting bandwidth allocation schemes in multi-core electronic devices, the problem of data transmission channel blocking between processing modules is solved, optimal allocation of bandwidth resources is achieved, and the flexibility and reliability of data transmission are improved.
Patent Information
- Application Number
- CN202110548014.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-19
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2041-05-19
AI Technical Summary
In multi-core electronic equipment, data transmission between processing modules can easily cause transmission channel congestion, because the order in which business data is generated determines the transmission order, and there is no transmission adjustment, resulting in bandwidth resources not being effectively allocated.
Through information exchange between the first operating system and the second operating system, the bandwidth proportion of each business module is determined, and the bandwidth allocation plan is adjusted according to the current business scenario to ensure that the bandwidth resources during data transmission match business needs and avoid channel congestion.
It improves the flexibility and reliability of data transmission, ensures that bandwidth resources match business scenarios, reduces the risk of blocking transmission channels, and enhances the business data transmission capabilities of electronic devices.
Smart Images

Figure CN115379512B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of data transmission, and in particular to a bandwidth adjustment method and device, an electronic device, and a computer-readable storage medium. Background Art
[0002] With the rapid development of electronic device technology, today's electronic devices generally adopt a "multi-core" architecture, that is, multiple processing modules (such as multiple processors, or multiple processing cores on the same processor) are set in the same electronic device to improve the computing and processing capabilities of the electronic device.
[0003] In practice, it is found that when two processing modules are transmitting data, they usually transmit in the order in which the business data is generated, that is, the principle of first generated first transmitted, and no transmission restrictions or transmission adjustments are made for the business data generated by each business unit. Therefore, when a large amount of business data is generated, the transmission channel for data transmission between the two processing modules may be blocked. Summary of the invention
[0004] The embodiments of the present application disclose a bandwidth adjustment method and device, an electronic device, and a computer-readable storage medium, which optimize the allocation of bandwidth resources of a second operating system, can improve the flexibility of the second operating system when transmitting business data to a first operating system, and avoid blocking of a data transmission channel.
[0005] A first aspect of an embodiment of the present application discloses a bandwidth adjustment method, which is applied to an electronic device, wherein the electronic device is installed with a first operating system and a second operating system, and the method includes:
[0006] The second operating system sends first data status information to the first operating system, where the first data status information is used to determine each service module in the second operating system that currently needs to perform data transmission;
[0007] The first operating system determines a first bandwidth allocation scheme according to the first data state information and a current first service scenario of the electronic device, and sends the first bandwidth allocation scheme to the second operating system, wherein the first bandwidth allocation scheme includes first bandwidth proportions corresponding to the respective service modules;
[0008] The second operating system adjusts, according to the first bandwidth allocation scheme, bandwidth proportions of the respective service modules when transmitting data to the first operating system to corresponding first bandwidth proportions.
[0009] A second aspect of an embodiment of the present application discloses an electronic device, wherein the electronic device is installed with a first operating system and a second operating system, wherein:
[0010] The first operating system is used to determine a first bandwidth allocation scheme according to the first data state information sent by the second operating system and the current first business scenario of the electronic device, and send the first bandwidth allocation scheme to the second operating system, wherein the first bandwidth allocation scheme includes first bandwidth proportions corresponding to the respective business modules;
[0011] The second operating system is used to send first data status information to the first operating system, and the first data status information is used to determine the bandwidth ratio corresponding to each business module that currently needs to perform data transmission in the second operating system, and according to the first bandwidth allocation scheme, adjust the bandwidth ratio of each business module when transmitting data to the first operating system to the corresponding first bandwidth ratio.
[0012] A third aspect of the present application discloses an electronic device, including:
[0013] A memory storing executable program code;
[0014] a processor coupled to the memory;
[0015] The processor calls the executable program code stored in the memory to execute the bandwidth adjustment method disclosed in the first aspect of the embodiment of the present application.
[0016] A fourth aspect of an embodiment of the present application discloses a computer-readable storage medium storing a computer program, wherein the computer program enables a computer to execute the bandwidth adjustment method disclosed in the first aspect of an embodiment of the present application.
[0017] Compared with the related art, the embodiments of the present application have the following beneficial effects:
[0018] In an embodiment of the present application, the second operating system included in the electronic device can report first status information to the first operating system, and the first status information is used to determine the bandwidth ratio corresponding to each business module that needs to perform data transmission in the second operating system; the first operating system can generate a first bandwidth allocation plan based on the first status information and the current business scenario of the electronic device and send it to the second operating system, and the first bandwidth allocation plan includes the first bandwidth ratio corresponding to each business module; and then the second operating system can adjust the bandwidth ratio of each business module when transmitting data to the first operating system according to the bandwidth allocation plan to the corresponding first bandwidth ratio. That is to say, in implementing an embodiment of the present application, the first operating system can adjust the bandwidth ratio of each business module that needs to perform data transmission in the second operating system according to the business scenario of the electronic device, so as to optimize the allocation of bandwidth resources of the second operating system, so that the bandwidth resources allocated to each business module are more matched with the business scenario of the electronic device, thereby improving the flexibility and reliability of the second operating system when performing business data transmission to the first operating system, and avoiding blocking of the data transmission channel. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0020] Figure 1 is a schematic diagram of an electronic device applicable to a bandwidth adjustment method disclosed in an embodiment of the present application;
[0021] Figure 2 It is a flowchart of a bandwidth adjustment method disclosed in an embodiment of the present application;
[0022] Figure 3 is a schematic diagram of a bandwidth allocation solution disclosed in an embodiment of the present application;
[0023] Figure 4 It is a flowchart of another bandwidth adjustment method disclosed in an embodiment of the present application;
[0024] Figure 5A It is a schematic diagram disclosed in an embodiment of the present application for illustrating a bandwidth proportion allocation scheme when the service scenario is an upgrade scenario;
[0025] Figure 5B It is a schematic diagram disclosed in an embodiment of the present application for illustrating a bandwidth proportion allocation scheme when the service scenario is a normal operation scenario;
[0026] Figure 6It is a flowchart of another bandwidth adjustment method disclosed in an embodiment of the present application;
[0027] Fig. 7A It is a schematic diagram disclosed in an embodiment of the present application for illustrating a bandwidth proportion allocation scheme when the service scenario is a Bluetooth call scenario;
[0028] Figure 7B It is a schematic diagram disclosed in an embodiment of the present application for illustrating a bandwidth proportion allocation scheme when the business scenario is a log capture scenario;
[0029] Figure 8 It is a structural schematic diagram of an electronic device disclosed in an embodiment of the present application;
[0030] Fig. 9 It is a schematic diagram of the structure of another electronic device disclosed in an embodiment of the present application. DETAILED DESCRIPTION
[0031] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0032] It should be noted that the terms "first", "second", "third" and "fourth" in the specification and claims of the present application are used to distinguish different objects rather than to describe a specific order. The terms "including" and "having" in the embodiments of the present application and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device including a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0033] The embodiments of the present application disclose a bandwidth adjustment method and device, an electronic device, and a computer-readable storage medium, which can improve the flexibility of business data transmission and avoid blocking of data transmission channels.
[0034] The technical solution of the present application will be described in detail below in conjunction with specific embodiments.
[0035] In order to more clearly illustrate a bandwidth adjustment method and device, electronic device, and computer-readable storage medium disclosed in the embodiments of the present application, an application scenario suitable for the bandwidth adjustment method is first introduced. Optionally, the bandwidth adjustment method can be applied to electronic devices that support multiple operating systems, such as mobile phones, smart wearable devices, computers, or vehicle-mounted terminals, etc., which are not limited here.
[0036] like Figure 1 As shown, the electronic device 100 may include a first processor 1001 (for example, a central processing unit (CPU), a graphics processing unit (GPU), etc., which are not limited here) and a second processor 1002. Optionally, the first processor 1001 may be a processor with better computing power, which may be used as a "big core" in the electronic device to perform some highly immediate and complex logical operations in the electronic device, such as determining a bandwidth allocation plan, responding to interactive instructions input by a user, etc.; and the second processor 1002 may be a processor with lower power consumption, which may be used as a "small core" in the electronic device to perform some logical operations with large data volumes and low response speed requirements, such as continuously receiving call data, collecting sensor data, capturing logs, etc., which are not limited here. Furthermore, the first processor 1001 and the second processor 1002 may work together, so that the response speed of the electronic device can be improved while improving the endurance of the electronic device.
[0037] Further, the first processor 1001 may be installed with a first operating system (for example, Windows operating system, IOS operating system, Android operating system, etc., which are not limited here), and the second processor 1002 may be installed with a second operating system, which may include an embedded operating system, such as RTOS (Real Time Operating System), etc. Optionally, the first processor 1001 and the second processor 1002 may establish a downlink transmission channel and an uplink transmission channel, the downlink transmission channel is used to transmit the data generated by the first processor 1001 to the second processor 1002, and the uplink transmission channel is used to transmit the data generated by the second processor 1002 to the first processor 1001. Optionally, the second processor 1002 may include one or more service modules 1003 (for example, Bluetooth call module, SMS module, upgrade module, etc.), and the service data generated by the service module 1003 may be transmitted to the first processor 1001 through the uplink transmission channel.
[0038] In practice, it is found that when the business data generated by multiple business modules are transmitted in parallel, they are usually transmitted in the order in which the business data is generated, that is, the principle of first generated first transmitted, and there is no transmission restriction or transmission adjustment for the business data generated by each business unit. Therefore, when a large amount of business data is generated, the uplink transmission may be blocked. In this regard, by implementing the bandwidth adjustment method disclosed in the present application, the electronic device can adjust the bandwidth share of each business module when transmitting data in real time according to the business scenario in which the second operating system is located, thereby improving the flexibility of business data transmission and avoiding blockage of the data transmission channel.
[0039] It needs to be further explained that Figure 1 The structural diagram of the electronic device 100 in one embodiment is merely shown for exemplary purposes. In fact, the electronic device 100 may further include other functional modules, and the adopted system architecture may also be other architectures, which are not limited here.
[0040] See also Figure 2 , Figure 2 : is a flow chart of a bandwidth adjustment method disclosed in an embodiment of the present application. The bandwidth adjustment method can be applied to the above-mentioned electronic device. The electronic device can be installed with a first operating system and a second operating system. The bandwidth adjustment method can include the following steps:
[0041] 202. The second operating system sends first data status information to the first operating system, where the first data status information is used to determine bandwidth proportions corresponding to various service modules that currently require data transmission in the second operating system.
[0042] In the embodiment of the present application, the second operating system can be installed in the second processor of the electronic device, and the second processor can include one or more service modules, such as: Bluetooth call module, upgrade module, SMS module, etc., which are not limited here. Since the logical operation capability of the first processor is usually stronger than that of the second processor, the data generated by the service module of the second processor can be transmitted to the first processor for data processing to improve the efficiency of data processing.
[0043] In practice, it is found that the bandwidth of the uplink transmission channel used to transmit data generated by the service module is usually constant, so when data generated by multiple service modules are transmitted in parallel, the uplink transmission channel may be blocked. In this regard, in an embodiment of the present application, before the second operating system transmits the data generated by each service module to the first operating system, the second operating system can first obtain the identification information of each service module in the second operating system that currently needs to transmit data, and generate the first data status information according to the identification information of each service module.
[0044] The second operating system can then send the first data status information to the first operating system, and the first operating system can subsequently determine the various business modules in the second operating system that currently need to perform data transmission based on the first data status information, and then adjust the bandwidth ratio corresponding to each business module according to the current business scenario of the second operating system to avoid congestion in the uplink transmission channel.
[0045] 204. The first operating system determines a first bandwidth allocation scheme according to the first data state information and the current first business scenario of the electronic device, and sends the first bandwidth allocation scheme to the second operating system, where the first bandwidth allocation scheme includes first bandwidth proportions corresponding to each business module.
[0046] In the embodiment of the present application, the first business scenario can be used to characterize the target business currently being executed by the second operating system, and the target business refers to the function of the electronic device, such as: Bluetooth call function, upgrade function, log capture function, etc., which are not limited here. In one embodiment, the first business scenario can include Bluetooth call scenario, upgrade scenario, log capture scenario, etc., which are not limited here.
[0047] In an embodiment of the present application, after receiving the first data status information sent by the second operating system, the first operating system can determine from the first data status information the business module in the second operating system that currently needs to perform data transmission; then the first operating system can allocate the bandwidth share of each business module according to the first business scenario in which the second operation is currently located, so as to determine the first bandwidth allocation plan.
[0048] See also Figure 3 , Figure 3 It is a schematic diagram of a bandwidth allocation scheme disclosed in an embodiment of the present application. Optionally, the first bandwidth allocation scheme may include identification information of each business module and the first bandwidth ratio corresponding to each identification information, so as to facilitate the subsequent second operating system to determine the first bandwidth ratio of the corresponding business module according to the first bandwidth ratio corresponding to the identification information of each business module in the first bandwidth allocation scheme. It is understandable that Figure 3 This is merely an exemplary illustration of a bandwidth allocation solution and should not be construed as limiting the embodiments of the present application.
[0049] In another embodiment, each business scenario may correspond to a bandwidth allocation plan, and each business scenario and the corresponding bandwidth allocation plan may be stored in an electronic device, and then the first operating system may directly determine the corresponding first bandwidth allocation plan based on the first business scenario currently in which the second operating system is located, and send it to the second operating system, thereby reducing the computational workload of the first operating system while increasing the speed of bandwidth adjustment.
[0050] 206. The second operating system adjusts, according to the first bandwidth allocation scheme, the bandwidth proportion of each service module when transmitting data to the first operating system to the corresponding first bandwidth proportion.
[0051] In an embodiment of the present application, after receiving the first bandwidth allocation plan issued by the first operating system, the second operating system can obtain the first bandwidth share corresponding to the identification information from the first bandwidth allocation plan based on the identification information of each business module, and then the second operating system can adjust the bandwidth share of each business module when transmitting data to the first operating system to the corresponding first bandwidth share.
[0052] In implementing the methods disclosed in the above embodiments, the second operating system included in the electronic device can report the first status information to the first operating system, and the first status information is used to determine the bandwidth ratio corresponding to each business module that needs to perform data transmission in the second operating system; the first operating system can generate a first bandwidth allocation scheme based on the first status information and the current business scenario of the electronic device and send it to the second operating system, and the first bandwidth allocation scheme includes the first bandwidth ratio corresponding to each business module; and then the second operating system can adjust the bandwidth ratio of each business module when transmitting data to the first operating system according to the bandwidth allocation scheme to the corresponding first bandwidth ratio. That is to say, in implementing the embodiments of the present application, the first operating system can adjust the bandwidth ratio of each business module that needs to perform data transmission in the second operating system according to the business scenario of the electronic device, so as to optimize the allocation of bandwidth resources of the second operating system, so that the bandwidth resources allocated to each business module are more matched with the business scenario of the electronic device, thereby improving the flexibility and reliability of the second operating system when performing business data transmission to the first operating system, and avoiding blocking of the data transmission channel.
[0053] See also Figure 4 , Figure 4 1 is a flow chart of another bandwidth adjustment method disclosed in an embodiment of the present application. The bandwidth adjustment method can be applied to the above-mentioned electronic device. The electronic device can be installed with a first operating system and a second operating system. The bandwidth adjustment method can include the following steps:
[0054] 402. The second operating system sends first data status information to the first operating system, where the first data status information is used to determine bandwidth proportions corresponding to various service modules that currently require data transmission in the second operating system.
[0055] In an embodiment of the present application, the second operating system may send first data status information to the first operating system upon detecting that an uplink transmission channel (the uplink transmission channel is a channel for the second operating system to send data to the first operating system) is in a busy state.
[0056] It is understandable that when the uplink transmission channel is in a busy state, if the data sent by the second operating system to the first operating system is not restricted or adjusted, it is easy to cause the transmission channel to be blocked. Therefore, the second operating system can send the first data status information to the first operating system so that the first operating system can formulate a bandwidth allocation plan to avoid blocking the transmission channel.
[0057] When the uplink transmission channel is in an idle state, each business module in the second operating system that needs to perform data transmission can perform data transmission at will, and the second operating system may not send the first data status information to the first operating system, so that the first operating system does not need to formulate a bandwidth allocation plan, thereby reducing the computing workload of the first operating system and reducing the power consumption of the electronic device.
[0058] By implementing the above method, the second operating system can send the first data status information to the first operating system when it detects that the uplink transmission channel is in a busy state, thereby avoiding the situation where the second operating system also sends the first data status information to the first operating system when the uplink transmission channel is in an idle state, thereby reducing the computing power of the first operating system and reducing the power consumption of the electronic device.
[0059] In one embodiment, the second operating system can determine that the uplink transmission channel is in a busy state when it detects that the data flow of the uplink transmission channel is greater than a flow threshold (the flow threshold can be roughly equal to the total bandwidth of the uplink transmission channel, and the specific value can be set by the developer based on a large amount of development data, and is not limited here).
[0060] In another embodiment, the second operating system may determine that the uplink transmission channel is in an idle state when detecting that the data flow of the uplink transmission channel is less than a flow threshold.
[0061] By implementing the above method, the second operating system can determine the state of the uplink transmission channel according to the data flow of the uplink transmission channel, thereby facilitating the subsequent determination of whether to send the first data state information to the first operating system.
[0062] 404. The first operating system determines a target business module corresponding to the first business scenario from the first data state information according to the current first business scenario of the electronic device.
[0063] As described above, the first business scenario can be used to characterize the target business currently being executed by the second operating system, and executing the target business generally only requires enabling some of the target business modules included in the second operating system. Optionally, the target business module can be a business module that needs to be enabled to execute the target business corresponding to the first business scenario.
[0064] For example, if the target business corresponding to the first business scenario is the Bluetooth call function, the target business module may include a Bluetooth call module. If the target business corresponding to the first business scenario is the log capture function, the target business module may be a Bluetooth call module, a text message module, a sensor module, or other module that generates log information, which is not limited here.
[0065] 406. The first operating system allocates bandwidth proportions of the target business module and other business modules in each business module except the target business module to obtain a first bandwidth allocation plan, and sends the first bandwidth allocation plan to the second operating system, wherein in the first bandwidth allocation plan, the first bandwidth proportion corresponding to the target business module is greater than the first bandwidth proportions corresponding to other business modules.
[0066] In an optional embodiment, after determining the target business module corresponding to the first business scenario, the first operating system can set the first sum of the first bandwidth proportions corresponding to each target business module to the first ratio, and set the second sum of the first bandwidth proportions corresponding to other business modules to the second ratio.
[0067] Among them, since the target business module is a business module that must be enabled for executing the target business corresponding to the first business scenario, the target business module should be allocated a larger bandwidth share. Optionally, the first ratio may be greater than the second ratio.
[0068] It should be further explained that, since the bandwidth of the uplink transmission channel is usually constant, the sum of the first ratio and the second ratio should be less than or equal to 100%; in other optional embodiments, if the bandwidth of the uplink transmission channel increases, the sum of the first ratio and the second ratio may be greater than 100%.
[0069] By implementing the above method, when the overall bandwidth remains unchanged, the first operating system can allocate more bandwidth to the more important target business modules in the current first business scenario, so that the data of the target business module can be transmitted preferentially, thereby ensuring the normal execution of the target business corresponding to the first business scenario and ensuring the reliability and timeliness of the business data.
[0070] Combination Figure 5A For example, when the current first business scenario of the electronic device is an upgrade scenario (the upgrade scenario can be understood as a scenario in which the electronic device is performing an upgrade function), the target business module can be a business module for performing the upgrade function, such as Figure 5AThe upgrade business module with a medium gray background. Since in the upgrade scenario, the target business module is only the upgrade business module, the first operating system can directly set the first bandwidth ratio of the upgrade business module to the first ratio, and set the sum of the first bandwidth ratios of other business modules such as the log capture module, the sensor module, the Bluetooth call module, the SMS module and the short message module to the second ratio.
[0071] Optionally, the first bandwidth proportion corresponding to each other business module may be an average value of the second proportion divided by the number of other business modules, or may be an uneven distribution by the first operating system, without limitation.
[0072] In practice, it is found that there may be multiple target business modules corresponding to the first business scenario, such as Figure 5B As shown, when the current first business scenario of the electronic device is a normal operation scenario (the normal operation scenario can be understood as a scenario where the electronic device is not instructed to perform a specific function and operates normally), the target business module may include a sensor module, a Bluetooth call module, a text message module, a short message module, and other business modules that transmit real-time data (such as Figure 5B Business modules with medium gray background) are not limited here.
[0073] Optionally, the first operating system may set the first bandwidth ratio corresponding to each target service module to an average value of the first ratio divided by the number of target service modules, thereby ensuring that data of each target service module can be transmitted in a timely manner.
[0074] Combination Figure 5B For example, assuming that the first ratio is 80%, the bandwidth ratio of each of the four target service modules, namely the sensor module, the Bluetooth call module, the SMS module and the short message module, can be 20%. Of course, in other optional implementations, the first bandwidth ratio corresponding to each target service module can also be unevenly distributed by the first operating system, which is not limited.
[0075] When implementing the above method, when there are multiple target business modules, the first operating system can set the first bandwidth ratio corresponding to each target business module to the average value of the first ratio divided by the number of target business modules, thereby ensuring that data of each target business module can be transmitted in a timely manner.
[0076] 408. The second operating system adjusts the bandwidth proportion of each service module when transmitting data to the first operating system to the corresponding first bandwidth proportion according to the first bandwidth allocation scheme.
[0077] By implementing the methods disclosed in the above embodiments, the bandwidth share of each business module when transmitting data can be adjusted in real time according to the business scenario in which the electronic device is located, thereby improving the flexibility of business data transmission and avoiding blocking of the data transmission channel; and, it can avoid the situation where the second operating system also sends the first data status information to the first operating system when the uplink transmission channel is in an idle state, thereby reducing the calculation amount of the first operating system and the power consumption of the electronic device; and, the first operating system can allocate more bandwidth share to more important target business modules so that the data of the target business modules can be transmitted preferentially, thereby ensuring the normal execution of the target business corresponding to the first business scenario; and, when there are multiple target business modules, the first operating system can set the first bandwidth share corresponding to each target business module to the first ratio divided by the average value of the number of target business modules, thereby ensuring that the data of each target business module can be transmitted in a timely manner.
[0078] See also Figure 6 , Figure 6 1 is a flow chart of another bandwidth adjustment method disclosed in an embodiment of the present application. The bandwidth adjustment method can be applied to the above-mentioned electronic device. The electronic device can be installed with a first operating system and a second operating system. The bandwidth adjustment method can include the following steps:
[0079] 602. The second operating system sends first data status information to the first operating system, where the first data status information is used to determine bandwidth proportions corresponding to various service modules that currently require data transmission in the second operating system.
[0080] 604. The first operating system determines a target business module corresponding to the first business scenario from the first data state information according to the current first business scenario of the electronic device.
[0081] 606. The first operating system sets a first sum of the first bandwidth proportions corresponding to each target business module as a first ratio, and sets a second sum of the first bandwidth proportions corresponding to other business modules in the business modules except the target business module as a second ratio, so as to obtain a first bandwidth allocation plan, and sends the first bandwidth allocation plan to the second operating system, wherein the first ratio is greater than the second ratio.
[0082] In practice, it is found that the first operating system may determine multiple target business modules corresponding to the first business scenario according to the current first business scenario of the electronic device, but the transmission priority of the data generated by these multiple target business modules is still different. For example, in the Bluetooth call scenario, the target business module may include a Bluetooth call module, a text message module, etc., but in fact, the text message module is determined as the target business module only to ensure that the electronic device can receive text messages while executing the Bluetooth call function. The data generated by the text message module cannot actually support the Bluetooth call function. Therefore, the transmission priority of the data generated by the Bluetooth call module in the target business module is higher than that of the text message module.
[0083] Optionally, the first operating system can further determine a first target business module from multiple target business modules after setting the first sum of the first bandwidth proportions corresponding to each target business module as the first proportion. The transmission priority of the data generated by the first target business module is the highest among the multiple target business modules; optionally, the first target business module can be specified by the developer, or it can be determined by the first operating system according to the evaluation result after evaluating the transmission priority of the data generated by each target business module, which is not limited here.
[0084] Furthermore, the first operating system can set the first bandwidth ratio corresponding to the first target business module to the third ratio, and set the first bandwidth ratio corresponding to other target business modules to the fourth ratio; wherein the third ratio is greater than the fourth ratio, and the sum of the third ratio and the fourth ratio is the first ratio.
[0085] Combination Fig. 7A For example, when the current first service scenario of the electronic device is a Bluetooth call scenario, the target service module may be a service module for executing a communication function (eg, Fig. 7A The first target business module can be a Bluetooth call module ( Fig. 7A Assuming that the first ratio is 80%, optionally, the Bluetooth call module is the target module with the highest priority, and its bandwidth ratio corresponding to the third ratio can be 60%, while the bandwidth ratio of other business modules for performing communication functions can correspond to the fourth ratio of 20%. The specific ratio values are not limited in this application.
[0086] By implementing the above method, after the first operating system determines that the bandwidth ratio of the more important target business module is set to a higher first ratio, it can also determine the first target business module with the highest data transmission priority among the target business modules, and adjust the bandwidth ratio of the first target business module to be higher than that of other target business modules, thereby ensuring that the data of the first target business module is transmitted preferentially, thereby ensuring the function realization of the important business modules.
[0087] In practice, it is found that among the identified target business modules, some target business modules have a particularly large amount of data to be transmitted. For example, in the log capture scenario, the sensor module generates a lot of log information, and there is a lot of invalid information. Therefore, if a large amount of these invalid data information is transmitted, it will not only be unhelpful for the subsequent log analysis process, but will also affect the data transmission of other target business modules.
[0088] Optionally, after setting the first sum of the first bandwidth proportions respectively corresponding to the target business modules to the first proportion, the first operating system may determine a second target business module from the multiple target business modules, where the second target business module is a business module with the largest amount of data to be transmitted among the multiple target business modules;
[0089] Furthermore, the first operating system may set the first bandwidth ratio corresponding to the second target business module to the fifth ratio, and set the first bandwidth ratio corresponding to other target business modules to the sixth ratio; wherein the fifth ratio is smaller than the sixth ratio, and the sum of the fifth ratio and the sixth ratio is the first ratio.
[0090] Combination Figure 7B For example, when the current first business scenario of the electronic device is a log capture scenario, the target business module may be a business module that generates log information (such as Figure 7B The log capture module, sensor module, Bluetooth call module, SMS module and short message module in the gray background), and the second target business module can be the sensor module ( Figure 7B Assuming the first ratio is 80%, since the sensor module generates too much log information and may include a large amount of invalid information, the third ratio corresponding to the bandwidth ratio of the sensor module can be 10%, so that the data generated by the sensor module can be transmitted as much as possible, and the fourth ratio corresponding to the bandwidth ratio of other business modules used to perform communication functions can be 70%, so as to ensure that the valuable data generated by other target business modules can be transmitted as much as possible. No limitation is made here.
[0091] By implementing the above method, after the first operating system determines to set the bandwidth ratio of the more important target business module to a higher first ratio, it can also determine the business module with the largest amount of data to be transmitted in the target business module as the second business module, and adjust the bandwidth ratio of the second target business module to be lower than that of other target business modules, thereby avoiding the transmission of a large amount of data generated by the second target business module and affecting the data transmission of other target business modules.
[0092] 608. The second operating system adjusts the bandwidth proportion of each service module when transmitting data to the first operating system to the corresponding first bandwidth proportion according to the first bandwidth allocation scheme.
[0093] In the embodiment of the present application, in order to avoid the situation where the second operating system also sends the first data status information to the first operating system when the uplink transmission channel is in an idle state, the calculation amount of the first operating system can be reduced, and the power consumption of the electronic device can be reduced. The second operating system usually sends the first data status information to the first operating system when the uplink transmission channel is in a busy state, so that the first operating system can formulate a bandwidth allocation plan to avoid blocking the transmission channel.
[0094] However, after the second operating system adjusts the bandwidth proportion of each service module according to the first bandwidth allocation plan issued by the first operating system, as the data corresponding to each service module is transmitted, the uplink transmission channel will inevitably switch from a busy state to an idle state. Optionally, when the second operating system detects that the uplink transmission channel is in an idle state, it can resend second data status information to the first operating system, and the second data status information is used to determine each service module in the second operating system that currently needs to perform data transmission.
[0095] Furthermore, after receiving the second data status information, the first operating system can re-determine the second bandwidth allocation plan based on the second data status information and the second operating system's current second business scenario (for example: upgrade scenario, Bluetooth call scenario, or log capture scenario, etc., not limited here), and send the second bandwidth allocation plan to the second operating system.
[0096] Among them, considering that when the uplink transmission channel is in an idle state, the uplink transmission channel has more bandwidth that can be used to transmit data generated by the business module in the second operating system, optionally, in the second bandwidth allocation scheme, the second bandwidth proportion corresponding to the business module whose data volume to be sent is greater than a data volume threshold (the data volume threshold can be set by the developer based on a large amount of development data and is not limited here) is greater than the second bandwidth proportions of other business modules.
[0097] Optionally, when the current second business scenario of the second operating system is an upgrade scenario, the business module whose data volume of to-be-sent data is greater than the data volume threshold may be a business module for executing an upgrade function.
[0098] In another embodiment, when the current second business scenario of the second operating system is a log capture scenario, the business module whose data volume to be sent is greater than the data volume threshold may be a sensor module, which is not limited here.
[0099] By implementing the above method, the second operating system can, when the uplink transmission channel is in an idle state, re-report to the first operating system each service module that currently needs to perform data transmission, and then the first operating system can increase the bandwidth ratio corresponding to the service module whose data volume to be sent is greater than the data volume threshold in each service module, so that when the uplink transmission channel is in an idle state, the service module with a large amount of data to be transmitted can perform data transmission as much as possible, thereby maximizing the utilization of the bandwidth of the uplink transmission channel.
[0100] By implementing the methods disclosed in the above-mentioned embodiments, the bandwidth share of each business module when transmitting data can be adjusted in real time according to the business scenario in which the electronic device is located, thereby improving the flexibility of business data transmission and avoiding blocking of the data transmission channel; and, the first target business module with the highest data transmission priority can be determined in the target business module, and the bandwidth share of the first target business module can be adjusted to be higher than that of other target business modules, thereby ensuring that the data of the first target business module is transmitted first, thereby ensuring the function of important business modules; and, it can avoid transmitting a large amount of data generated by the second target business module, which affects the data transmission of other target business modules; and, when the uplink transmission channel is in an idle state, the business module with a large amount of data transmission can perform data transmission as much as possible, thereby maximizing the utilization of the bandwidth of the uplink transmission channel.
[0101] See also Figure 8 , Figure 8 80 is a schematic diagram of the structure of an electronic device disclosed in an embodiment of the present application. The electronic device may be installed with a first operating system 801 and a second operating system 802, wherein:
[0102] The second operating system 802 is used to send first data status information to the first operating system 801, where the first data status information is used to determine the bandwidth proportion corresponding to each service module that currently needs to perform data transmission in the second operating system 802;
[0103] The first operating system 801 is used to determine a first bandwidth allocation scheme according to the first data state information and the current first service scenario of the electronic device, and send the first bandwidth allocation scheme to the second operating system 802, where the first bandwidth allocation scheme includes first bandwidth proportions corresponding to each service module;
[0104] The second operating system 802 is further configured to adjust the bandwidth proportion of each service module when transmitting data to the first operating system 801 to the corresponding first bandwidth proportion according to the first bandwidth allocation scheme.
[0105] As an optional implementation manner, the first operating system 801 determines the first bandwidth allocation scheme according to the first data state information and the current first service scenario of the electronic device in the following manner:
[0106] The first operating system 801 is used to determine a target business module corresponding to the first business scenario from the first data state information according to the current first business scenario of the electronic device; and allocate bandwidth proportions of the target business module and other business modules in each business module except the target business module to obtain a first bandwidth allocation scheme; wherein, in the first bandwidth allocation scheme, the first bandwidth proportion corresponding to the target business module is greater than the first bandwidth proportions corresponding to other business modules.
[0107] When implementing the above electronic device, the first operating system can allocate more bandwidth to a more important target business module so that data of the target business module can be transmitted preferentially, thereby ensuring the normal execution of the target business corresponding to the first business scenario.
[0108] As an optional implementation manner, the first operating system 801 allocates bandwidth proportions of the target service module and other service modules in each service module except the target service module in the following manner:
[0109] The first operating system 801 is used to set a first sum of the first bandwidth proportions corresponding to each target business module as a first ratio, and set a second sum of the first bandwidth proportions corresponding to other business modules in each business module except the target business module as a second ratio, and the first ratio is greater than the second ratio.
[0110] When implementing the above electronic device, the first operating system can allocate more bandwidth to a more important target business module so that data of the target business module can be transmitted preferentially, thereby ensuring the normal execution of the target business corresponding to the first business scenario.
[0111] As an optional implementation, if there are multiple target service modules, the first bandwidth proportion corresponding to each target service module is an average value of the first proportion divided by the number of target service modules.
[0112] When implementing the above electronic device, when there are multiple target business modules, the first operating system can set the first bandwidth ratio corresponding to each target business module to the average value of the first ratio divided by the number of target business modules, thereby ensuring that data of each target business module can be transmitted in a timely manner.
[0113] As an optional implementation, when the current first business scenario of the electronic device is a normal operation scenario, the target business module is a business module for transmitting real-time data; and / or when the current first business scenario of the electronic device is an upgrade scenario, the target business module is a business module for performing an upgrade function.
[0114] As an optional implementation, there are multiple target business modules, and the first operating system 801 is further used to determine a first target business module among the multiple target business modules after setting the first sum of the first bandwidth proportions corresponding to each target business module to the first proportion, and the transmission priority of the data generated by the first target business module is the highest among the multiple target business modules; and, set the first bandwidth proportion corresponding to the first target business module to a third proportion, and set the first bandwidth proportions corresponding to other target business modules to a fourth proportion; the third proportion is greater than the fourth proportion, and the sum of the third proportion and the fourth proportion is the first proportion.
[0115] When implementing the above-mentioned electronic device, after the first operating system determines that the bandwidth ratio of a relatively important target business module is set to a higher first ratio, it can also determine a first target business module with the highest data transmission priority among the target business modules, and adjust the bandwidth ratio of the first target business module to be higher than that of other target business modules, thereby ensuring that the data of the first target business module is transmitted preferentially, thereby ensuring the function realization of the important business modules.
[0116] As an optional implementation, when the current first service scenario of the electronic device is a Bluetooth call scenario, the target service module is a service module for executing a communication function, and the first target service module is a Bluetooth call module.
[0117] As an optional implementation, there are multiple target business modules, and the first operating system 801 is also used to determine a second target business module from the multiple target business modules after setting the first sum of the first bandwidth proportions corresponding to each target business module to the first proportion, the second target business module being the business module with the largest amount of data to be transmitted among the multiple target business modules; and, setting the first bandwidth proportion corresponding to the second target business module to the fifth proportion, and setting the first bandwidth proportions corresponding to other target business modules to the sixth proportion; the fifth proportion is smaller than the sixth proportion, and the sum of the fifth proportion and the sixth proportion is the first proportion.
[0118] When implementing the above-mentioned electronic device, after the first operating system determines to set the bandwidth ratio of a relatively important target business module to a higher first ratio, it can also determine the business module with the largest amount of data to be transmitted in the target business module as the second business module, and adjust the bandwidth ratio of the second target business module to be lower than that of other target business modules, thereby avoiding the transmission of a large amount of data generated by the second target business module and affecting the data transmission of other target business modules.
[0119] As an optional implementation, when the current first business scenario of the electronic device is a log capture scenario, the target business module is a business module that generates log information, and the second target business module is a sensor module.
[0120] As an optional implementation manner, the second operating system 802 may send the first data state information to the first operating system in the following manner:
[0121] The second operating system 802 is used to send first data status information to the first operating system 801 when detecting that the uplink transmission channel is in a busy state. The uplink transmission channel is a channel for the second operating system 802 to send data to the first operating system 801.
[0122] When the above-mentioned electronic device is implemented, the second operating system can send the first data status information to the first operating system when it detects that the uplink transmission channel is in a busy state, thereby avoiding the situation where the second operating system also sends the first data status information to the first operating system when the uplink transmission channel is in an idle state, thereby reducing the computing power of the first operating system and reducing the power consumption of the electronic device.
[0123] As an optional implementation, the second operating system 802 is also used to determine that the uplink transmission channel is in a busy state when it detects that the data flow of the uplink transmission channel is greater than a flow threshold before sending the first data status information to the first operating system 801 when it detects that the uplink transmission channel is in a busy state.
[0124] By implementing the above electronic device, the second operating system can determine the state of the uplink transmission channel according to the data flow of the uplink transmission channel, thereby facilitating the subsequent determination of whether to send the first data state information to the first operating system.
[0125] As an optional implementation manner, the second operating system 802 is further used to resend second data status information to the first operating system 801 when detecting that the uplink transmission channel is in an idle state, and the second data status information is used to determine each service module in the second operating system 802 that currently needs to perform data transmission;
[0126] Furthermore, the first operating system 801 is further used to re-determine the second bandwidth allocation scheme according to the second data state information and the second business scenario currently used by the second operating system 802, and send the second bandwidth allocation scheme to the second operating system 802, wherein in the second bandwidth allocation scheme, the second bandwidth proportion corresponding to the business module whose data volume to be sent is greater than the data volume threshold is greater than the second bandwidth proportion of each other business module;
[0127] Furthermore, the second operating system 802 is further configured to adjust the bandwidth proportion of each service module when transmitting data to the first operating system 801 to the corresponding second bandwidth proportion according to the second bandwidth allocation scheme.
[0128] When the above electronic device is implemented, the second operating system can, when the uplink transmission channel is in an idle state, re-report to the first operating system each business module that currently needs to perform data transmission, and then the first operating system can increase the bandwidth ratio corresponding to the business module whose data volume to be sent is greater than the data volume threshold in each business module, so that when the uplink transmission channel is in an idle state, the business module with a large data transmission volume can perform data transmission as much as possible, thereby maximizing the utilization of the bandwidth of the uplink transmission channel.
[0129] As an optional implementation, when the current second business scenario of the second operating system 802 is an upgrade scenario, the business module whose data volume to be sent is greater than the data volume threshold is a business module for executing the upgrade function; and / or, when the current second business scenario of the second operating system 802 is a log capture scenario, the business module whose data volume to be sent is greater than the data volume threshold is a sensor module.
[0130] Implementing the electronic device disclosed in the above embodiment, the second operating system included in the electronic device can report the first status information to the first operating system, and the first status information is used to determine the bandwidth ratio corresponding to each business module that needs to perform data transmission in the second operating system; the first operating system can generate a first bandwidth allocation plan based on the first status information and the current business scenario of the electronic device and send it to the second operating system, and the first bandwidth allocation plan includes the first bandwidth ratio corresponding to each business module; and then the second operating system can adjust the bandwidth ratio of each business module when transmitting data to the first operating system according to the bandwidth allocation plan to the corresponding first bandwidth ratio. That is to say, implementing the embodiment of the present application, the first operating system can adjust the bandwidth ratio of each business module that needs to perform data transmission in the second operating system according to the business scenario of the electronic device, so as to optimize the allocation of bandwidth resources of the second operating system, so that the bandwidth resources allocated to each business module are more matched with the business scenario of the electronic device, thereby improving the flexibility and reliability of the second operating system when performing business data transmission to the first operating system, and avoiding blocking of the data transmission channel.
[0131] See also Fig. 9 , Fig. 9 is a schematic diagram of the structure of another electronic device disclosed in the embodiment of the present application. Fig. 9 As shown, the electronic device may include:
[0132] A memory 901 storing executable program codes;
[0133] A processor 902 coupled to the memory 901;
[0134] The processor 902 calls the executable program code stored in the memory 901 to execute the bandwidth adjustment method disclosed in the above embodiments.
[0135] The embodiments of the present application disclose a computer-readable storage medium storing a computer program, wherein the computer program enables a computer to execute the bandwidth adjustment method disclosed in the above embodiments.
[0136] It should be understood that the "one embodiment" or "an embodiment" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. Those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required for the present application.
[0137] In the various embodiments of the present application, it should be understood that the size of the serial numbers of the above-mentioned processes does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0138] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0139] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0140] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-accessible memory. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a memory and includes several requests for a computer device (which can be a personal computer, a server or a network device, etc., specifically a processor in a computer device) to perform some or all of the steps of the above-mentioned methods of various embodiments of the present application.
[0141] Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0142] The above is a detailed introduction to a bandwidth adjustment method and device, an electronic device, and a computer-readable storage medium disclosed in an embodiment of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for a person skilled in the art, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A bandwidth adjustment method, characterized in that: Applied to an electronic device, the electronic device is installed with a first operating system and a second operating system, the method comprises: The second operating system sends first data status information to the first operating system, where the first data status information is used to determine bandwidth proportions corresponding to each service module that currently needs to perform data transmission in the second operating system; The first operating system determines a first bandwidth allocation scheme according to the first data state information and a current first service scenario of the electronic device, and sends the first bandwidth allocation scheme to the second operating system, wherein the first bandwidth allocation scheme includes first bandwidth proportions corresponding to the respective service modules; The second operating system adjusts the bandwidth proportion when each service module transmits data to the first operating system to the corresponding first bandwidth proportion according to the first bandwidth allocation scheme.
2. The method according to claim 1, characterized in that: The first operating system determines a first bandwidth allocation scheme according to the first data state information and a current first service scenario of the electronic device, including: The first operating system determines, according to a current first business scenario of the electronic device, a target business module corresponding to the first business scenario from the first data state information; The first operating system allocates bandwidth proportions of the target business module and other business modules among the business modules except the target business module to obtain a first bandwidth allocation scheme; wherein, in the first bandwidth allocation scheme, a first bandwidth proportion corresponding to the target business module is greater than a first bandwidth proportion corresponding to the other business modules.
3. The method according to claim 2, characterized in that The first operating system allocates bandwidth proportions of the target service module and other service modules among the service modules except the target service module, including: The first operating system sets a first sum of first bandwidth proportions corresponding to each of the target business modules as a first ratio, and sets a second sum of first bandwidth proportions corresponding to the other business modules as a second ratio, wherein the first ratio is greater than the second ratio.
4. The method according to claim 3, characterized in that: If there are multiple target service modules, the first bandwidth proportion corresponding to each target service module is an average value of the first proportion divided by the number of the target service modules.
5. The method according to any one of claims 3 or 4, characterized in that: When the current first service scenario of the electronic device is a normal operation scenario, the target service module is a service module for transmitting real-time data; and / or When the current first service scenario of the electronic device is an upgrade scenario, the target service module is a service module for executing an upgrade function.
6. The method according to claim 3, characterized in that There are multiple target service modules, and after the first operating system sets a first sum of first bandwidth proportions respectively corresponding to the target service modules as a first proportion, the method further includes: The first operating system determines a first target business module from among the multiple target business modules, and the transmission priority of the data generated by the first target business module is the highest among the multiple target business modules; The first operating system sets the first bandwidth proportion corresponding to the first target business module to a third proportion, and sets the third sum of the first bandwidth proportions corresponding to other target business modules to a fourth proportion; the third proportion is greater than the fourth proportion, and the sum of the third proportion and the fourth proportion is the first proportion.
7. The method according to claim 6, characterized in that When the current first service scenario of the electronic device is a Bluetooth call scenario, the target service module is a service module for executing a communication function, and the first target service module is a Bluetooth call module.
8. The method according to claim 3, characterized in that There are multiple target service modules, and after the first operating system sets a first sum of first bandwidth proportions respectively corresponding to the target service modules as a first proportion, the method further includes: The first operating system determines a second target business module from the multiple target business modules, where the second target business module is a business module with the largest amount of data to be transmitted among the multiple target business modules; The first operating system sets the first bandwidth ratio corresponding to the second target business module to a fifth ratio, and sets the fourth sum of the first bandwidth ratios corresponding to other target business modules to a sixth ratio; the fifth ratio is smaller than the sixth ratio, and the sum of the fifth ratio and the sixth ratio is the first ratio.
9. The method according to claim 8, characterized in that When the current first business scenario of the electronic device is a log capture scenario, the target business module is a business module that generates log information, and the second target business module is a sensor module.
10. The method according to claim 1, characterized in that The second operating system sends first data status information to the first operating system, including: When the second operating system detects that the uplink transmission channel is in a busy state, the second operating system sends first data state information to the first operating system. The uplink transmission channel is a channel for the second operating system to send data to the first operating system.
11. The method according to claim 10, characterized in that Before the second operating system sends the first data status information to the first operating system when the second operating system detects that the uplink transmission channel is in a busy state, the method further includes: When the second operating system detects that the data flow of the uplink transmission channel is greater than the flow threshold, it determines that the uplink transmission channel is in a busy state.
12. The method according to claim 10, characterized in that After the second operating system adjusts the bandwidth proportions of each service module when transmitting data to the first operating system to the corresponding first bandwidth proportions according to the first bandwidth allocation scheme, the method further includes: When the second operating system detects that the uplink transmission channel is in an idle state, the second operating system resends second data status information to the first operating system, where the second data status information is used to determine the bandwidth proportion corresponding to each service module that currently needs to perform data transmission in the second operating system; The first operating system re-determines a second bandwidth allocation scheme according to the second data state information and the second business scenario currently used by the second operating system, and sends the second bandwidth allocation scheme to the second operating system, wherein in the second bandwidth allocation scheme, a second bandwidth proportion corresponding to a business module whose data volume to be sent is greater than a data volume threshold is greater than a second bandwidth proportion of other business modules; The second operating system adjusts the bandwidth proportions of the respective service modules when transmitting data to the first operating system to the corresponding second bandwidth proportions according to the second bandwidth allocation scheme.
13. The method according to claim 12, characterized in that When the second business scenario of the second operating system is an upgrade scenario, the business module whose data volume to be sent is greater than the data volume threshold is a business module for executing an upgrade function; and / or, When the current second business scenario of the second operating system is a log capture scenario, the business module whose data volume to be sent is greater than a data volume threshold is a sensor module.
14. The method according to claim 1, characterized in that The electronic device is a wearable device, the first operating system is a system installed by a first processor, the second operating system is a system installed by a second processor, and the computing processing capability of the first processor is greater than that of the second processor.
15. An electronic device, characterized in that: A first operating system and a second operating system are installed, wherein: The first operating system is used to determine a first bandwidth allocation scheme according to the first data state information sent by the second operating system and the current first business scenario of the electronic device, and send the first bandwidth allocation scheme to the second operating system, wherein the first bandwidth allocation scheme includes first bandwidth proportions corresponding to each business module respectively; The second operating system is used to send first data status information to the first operating system, and the first data status information is used to determine the bandwidth ratio corresponding to each business module that currently needs to perform data transmission in the second operating system, and according to the first bandwidth allocation scheme, adjust the bandwidth ratio of each business module when transmitting data to the first operating system to the corresponding first bandwidth ratio.
16. An electronic device, characterized in that: It includes a memory storing executable program code and a processor coupled to the memory; wherein the processor calls the executable program code stored in the memory to execute the method according to any one of claims 1 to 14.
17. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 14 is implemented.
Citation Information
Patent Citations
A method of allocating service bandwidth and associated equipment
CN108989238A
Method For Resource Allocation And Terminal Device
US20190034234A1
Resource allocation method and related product
WO2019042294A1
Data transmission method and electronic device
WO2020019533A1
