Data transmission method and related device

Through dynamic control based on temperature, network quality and power in electronic devices, the opening and closing of Wi-Fi and mobile data links solves the problem of increased power consumption in the existing technology and achieves a reduction in power consumption while ensuring user experience. Effects of device power consumption.

WO2024179103A1PCT designated stage expired Publication Date: 2024-09-06HONOR DEVICE CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/136372
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-02-27
Filing Date
2023-12-05
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

In the existing technology, when electronic devices transmit data simultaneously through Wi-Fi and mobile data links, power consumption increases, making it difficult to reduce device power consumption while ensuring user experience.

Method used

By realizing real-time monitoring of temperature, network quality and power in electronic devices, we can dynamically control the opening and closing of Wi-Fi and mobile data links, restrict the opening of links for some applications, and optimize data transmission paths to reduce power consumption.

Benefits of technology

While ensuring user experience, it effectively reduces the power consumption of electronic devices, improves link utilization efficiency, and is suitable for different scenarios and application needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023136372_06092024_PF_FP
    Figure CN2023136372_06092024_PF_FP
Patent Text Reader

Abstract

Disclosed in the present application are a data transmission method and a related device, the method comprising: when a first application in an electronic device transmits data by means of a first network link, the first application requests the electronic device to activate a second network link; when a first preset condition is satisfied and the first application satisfies a second preset condition, the electronic device responds to the request to activate the second network link; or when the first preset condition is satisfied but the first application does not satisfy the second preset condition, the electronic device does not respond to the request, the first preset condition being related to the temperature of the electronic device and / or the network quality of the first network link and / or the battery level of the electronic device. For a specific scenario, in the case of performing data transmission by means of the first network link and the second network link, the electronic device may also deactivate one of the links and activate a deactivated link. By flexibly activating or deactivating the links, the method may reduce the power consumption of the electronic device while ensuring the internet surfing experience.
Need to check novelty before this filing date? Find Prior Art

Description

A data transmission method and related equipment

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on February 27, 2023, with application number 202310209568.3 and application name “A Data Transmission Method and Related Equipment”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of communication technology, and in particular to a data transmission method and related equipment. Background Art

[0003] With the development of communication technology, the functions of electronic devices such as mobile phones are becoming more and more powerful. These electronic devices not only meet the communication needs of users, but also provide users with channels to obtain external information and a variety of entertainment methods. These electronic devices can connect to Wireless Fidelity (Wi-Fi) networks to transmit data through Wi-Fi links. In some scenarios, in order to ensure the Internet experience, electronic devices can transmit data through Wi-Fi links while also transmitting data through mobile data links. This method of enabling two links to transmit data at the same time will increase the power consumption of electronic devices.

[0004] Summary of the Invention

[0005] This application provides a data transmission method and related devices to better control the network links used by electronic devices for data transmission. Based on this data transmission method, electronic devices can flexibly control the opening and closing of network links for different scenarios, thereby ensuring the user's Internet experience while also reducing the power consumption of electronic devices. Based on this data transmission method, electronic devices can restrict the opening of links for some third-party applications, thereby reducing the power consumption of electronic devices without affecting the data transmission of some applications that have special requirements for data transmission links.

[0006] In the first aspect, some embodiments of the present application provide a data transmission method. The data transmission method may include: when a first application in an electronic device transmits data through a first network link, the first application may request the electronic device to open a second network link; when a first preset condition is met and the first application meets a second preset condition, the electronic device may respond to the request and open the second network link, and then the first application may transmit data through the first network link and the second network link; when the first preset condition is met and the first application does not meet the second preset condition, the electronic device may not respond to the request, and then the first application may only transmit data through the first network link. Wherein, the first preset condition is related to the temperature of the electronic device and / or the network quality of the first network link and / or the power of the electronic device, and the first network link and the second network link are data transmission links corresponding to different types of networks.

[0007] In the solution provided by the above embodiment, the third-party application in the electronic device can also request to open the second network link when transmitting data through the first network link. When the first preset condition is met, the electronic device can restrict some applications from opening the second network link. Specifically, the third-party application that meets the second preset condition is not restricted from opening the second network link, while the third-party application that does not meet the second preset condition is restricted from opening the second network link. Among them, the first preset condition can be related to the temperature of the electronic device and / or the network quality of the first network link and / or the power of the electronic device. That is to say, the electronic device can restrict some applications from opening another link based on scenarios related to temperature, network quality and power. This method can allow some applications to open the second network link. This part of the application can transmit data through two links at the same time, and can also cope with some privacy information transmission scenarios. Users can get a good experience when using this part of the application. At the same time, this method can also restrict some applications from opening the second network link, reducing the power consumption of the electronic device.

[0008] It is understandable that the first application requests the electronic device to open the second network link, which may specifically include: the first application sends a request to the CS to open the second network link (as shown in step S506).

[0009] It can be understood that the first preset condition is related to the temperature of the electronic device and / or the network quality of the first network link and / or the power of the electronic device. Specifically, it can mean that the types of parameters involved in the first preset condition can include at least one of the following: the temperature of the electronic device, the network quality of the first network link, and the power of the electronic device.

[0010] It can be understood that the first application transmits data only through the first network link, which specifically means that the first application can transmit data through the first network link but not through the second network link.

[0011] It is understandable that the first application is a third-party application (eg, a video application, a game application, etc.) The relevant description of the third-party application can be found in the following text and related technical documents, and will not be elaborated here.

[0012] It is understandable that the temperature of an electronic device may refer to the temperature of the entire electronic device, or may refer to the temperature of a back shell or a chip of the electronic device, etc. This application does not impose any restrictions on this.

[0013] It is understandable that the network quality of a network link can be determined based on parameters such as the data transmission rate, delay, and bit error rate of the network link. For details, please refer to the following text and will not be repeated here.

[0014] In some embodiments of the present application, the first network link may be a Wi-Fi link, and the second network link may be a mobile data link.

[0015] In some other embodiments of the present application, the first network link may be a mobile data link, and the second network link may be a Wi-Fi link.

[0016] In some embodiments of the present application, when an electronic device turns on a network link, it may specifically refer to: the electronic device establishes a network link. Correspondingly, when an electronic device turns off a network link, it may specifically refer to: the electronic device releases the network link. For example, when an electronic device turns on a Wi-Fi link, it may specifically include: the Wi-Fi link management module may send a request to the wireless communication module to establish a Wi-Fi link, and the wireless communication module may trigger and execute the corresponding process of establishing a Wi-Fi link, thereby achieving the establishment of the Wi-Fi link. For example, when an electronic device turns on a mobile data link, it may specifically include: the Telephony FWK may send a request to the mobile communication module to establish a mobile data link, and the mobile communication module may trigger and execute the corresponding process of establishing a mobile data link, thereby achieving the establishment of the mobile data link.

[0017] In some embodiments of the present application, when an electronic device enables a network link, it may specifically mean that the electronic device can transmit data via the network link. Correspondingly, when an electronic device disables a network link, it may specifically mean that the electronic device cannot transmit data via the network link.

[0018] In conjunction with the first aspect, in one possible implementation, the first application satisfies the second preset condition, which may specifically include: the first application is a preset application. The first application being a preset application may include: the first application is an application in a preset application list, or the first application is an application of a preset category.

[0019] In some embodiments of the present application, the electronic device may not restrict the applications in the preset application list from opening the second network link. This method can reduce the power consumption of the electronic device while also meeting the special requirements of some applications for network links to transmit data.

[0020] It is understood that the preset application list can be set according to actual needs and is not limited in this application. For example, the preset application list may include game applications, shopping applications, and video applications. For another example, the preset applications may include application A1, application A2, application A3, application A4, and application A5. It is understood that the categories of application A1, application A2, application A3, application A4, and application A5 can be the same or different.

[0021] In some embodiments of the present application, the electronic device may not restrict the opening of the second network link for applications of a preset category. This method can reduce the power consumption of the electronic device while also meeting the special requirements of special applications for network links for transmitting data.

[0022] In conjunction with the first aspect, in a possible implementation, the preset category of applications includes applications whose security requirements meet preset conditions.

[0023] In the solutions provided in some embodiments of the present application, for applications whose security requirements meet preset conditions, the electronic device may not restrict them from opening a second network link. The second network link may be a mobile data link. It is understandable that the security of a Wi-Fi link is not as high as the security of a mobile data link. For applications whose security requirements meet preset conditions, the electronic device may not restrict them from opening a mobile data link. These applications can transmit some private information (for example, financial information and passwords, etc.) based on the more secure mobile data link.

[0024] In conjunction with the first aspect, in one possible implementation, the preset category of applications includes applications that require authentication through a user identity module (SIM) card of the electronic device when opened. The first network link may be a Wi-Fi link, and the second network link may be a mobile data link.

[0025] In the solutions provided in some embodiments of the present application, for applications that require identity authentication through the SIM card of the electronic device when turned on, the electronic device may not restrict the application from turning on the second network link. The second network link may be a mobile data link. SIM card identification technology needs to be based on a mobile data link. Applications that require identity authentication through the SIM card of the electronic device when turned on may not be restricted from turning on the mobile data link. These applications can implement SIM card identification based on the mobile data link to complete identity authentication without having to enter an account password for identity authentication. In addition, the security of the mobile data link is also higher, which not only ensures security but also makes operation more convenient.

[0026] In conjunction with the first aspect, in a possible implementation, the preset category of applications includes delay-sensitive applications. Delay-sensitive applications are applications that require a data transmission delay less than a preset delay when in use.

[0027] In the solutions provided in some embodiments of the present application, electronic devices may not restrict the activation of a second network link for latency-sensitive applications. The second network link can be a mobile data link or a Wi-Fi link. SIM card identification technology requires the use of a mobile data link. Latency-sensitive applications are not restricted from activating a mobile data link. These applications can transmit data over two network links, shortening data transmission latency and providing users with a better experience when using these applications.

[0028] It is understandable that the relevant description of the preset categories can be found in the following text and will not be elaborated here.

[0029] It is worth noting that in some embodiments of the present application, some applications have higher transmission requirements for Wi-Fi links. Therefore, when the mobile data link is turned on and the Wi-Fi link is turned off, these applications may not be restricted from turning on the Wi-Fi link. The specific implementation method can be referred to below and will not be explained in detail here.

[0030] In conjunction with the first aspect, in one possible implementation, before the first application requests the electronic device to enable the second network link, the data transmission method may further include: the electronic device determining whether a first preset condition is satisfied. After the first application requests the electronic device to enable the second network link, the data transmission method may further include: if the first preset condition is satisfied, the electronic device determining whether the first application satisfies a second preset condition.

[0031] In the solutions provided in some embodiments of the present application, the electronic device can transmit data only through one link (for example, a Wi-Fi link). At this time, the electronic device can first determine whether the first preset condition is met. If the first preset condition is met, the electronic device can prohibit applications that do not meet the second preset condition from opening another link (for example, a mobile data link). Through this method, the electronic device can first obtain an instruction to restrict some applications from opening another link. After the third-party application initiates a request to open another link, the electronic device determines whether the third-party application is a restricted application. This means that the electronic device does not have to determine whether it is necessary to restrict some applications from opening another link after the third-party application initiates the request. In this way, the time for responding to the request can be saved, so that the unrestricted third-party application can quickly use the other opened link to transmit data.

[0032] With reference to the first aspect, in one possible implementation, satisfying the first preset condition may specifically include: the temperature of the electronic device being greater than a first temperature threshold, and / or the network quality of the first network link satisfying a first network quality condition. Satisfying the first network quality condition may specifically include a data transmission rate of the first network link being greater than a first data transmission rate.

[0033] In some embodiments of the present application, satisfying the first preset condition may specifically include: the temperature of the electronic device is greater than a first temperature threshold. In some embodiments of the present application, satisfying the first preset condition may specifically include: the network quality of the first network link satisfies a first network quality condition. In some embodiments of the present application, satisfying the first preset condition may specifically include: the power of the electronic device is less than a preset power. In some embodiments of the present application, satisfying the first preset condition may specifically include: the temperature of the electronic device is greater than a first temperature threshold, and the network quality of the first network link satisfies the first network quality condition. In some embodiments of the present application, satisfying the first preset condition may specifically include: the power of the electronic device is less than a preset power, and the network quality of the first network link satisfies the first network quality condition. In some embodiments of the present application, satisfying the first preset condition may specifically include: the power of the electronic device is less than a preset power, and the temperature of the electronic device is greater than a first temperature threshold. In some embodiments of the present application, satisfying the first preset condition may specifically include: the power of the electronic device is less than a preset power, and the temperature of the electronic device is greater than a first temperature threshold, and the network quality of the first network link satisfies the first network quality condition.

[0034] It is understandable that the first temperature threshold may be temperature threshold_1. The network quality of the first network link satisfies the first network quality condition, which may specifically mean that the Wi-Fi link quality related information satisfies preset condition_1.

[0035] It is understood that the first data transmission rate can be set according to actual needs, and this application does not impose any restrictions on this. It should be noted that the network quality of the first network link can also be determined based on parameters such as the delay and bit error rate of the first network link. For details, please refer to the following (such as step S505) and will not be explained here.

[0036] In conjunction with the first aspect, in one possible implementation, before the first application requests the electronic device to enable the second network link, the data transmission method may further include: the electronic device may display a first interface, the first interface may include a first icon corresponding to the second network link, and the first icon is in a first state. After the electronic device responds to the request and enables the second network link, the data transmission method may further include: the electronic device may display a second interface, the second interface may include the first icon, and the first icon is in a second state.

[0037] In some embodiments of the present application, after the electronic device responds to the request and opens the second network link, the first icon displayed by the electronic device can change from the first state to the second state. This method can more intuitively allow the user to perceive the change in the current network link state.

[0038] In some embodiments of the present application, the first icon may be icon 1. The first state may be state 1. The second state may be state 2. The first interface may be user interface 100 shown in FIG. 2A or user interface 200 shown in FIG. 2B. The second interface may be user interface 300 shown in FIG. 2C.

[0039] In conjunction with the first aspect, in one possible implementation, the data transmission method may further include: when the electronic device is transmitting data via a first network link and a second network link, if a third preset condition is satisfied, the electronic device may shut down the first network link, or if a fourth preset condition is satisfied, the electronic device may shut down the second network link, or if both the third and fourth preset conditions are satisfied, the electronic device may shut down the first network link or the second network link, if the third preset condition is satisfied but the fourth preset condition is not satisfied, the electronic device may shut down the first network link, and if the fourth preset condition is satisfied but the third preset condition is not satisfied, the electronic device may shut down the second network link. The third preset condition may include at least one of the following: the temperature of the electronic device is greater than a second temperature threshold, the power level of the electronic device is less than a first power level, the amount of data transmitted by the first network link is less than the first amount of data, the network quality of the second network link satisfies a second network quality condition, and the network quality of the first network link satisfies a third network quality condition. The fourth preset condition may include at least one of the following: the temperature of the electronic device is greater than a second temperature threshold, the power level of the electronic device is less than the first power level, the amount of data transmitted by the second network link is less than the second amount of data, the network quality of the second network link satisfies a fourth network quality condition, and the network quality of the first network link satisfies a fifth network quality condition.

[0040] In some embodiments of the present application, when an electronic device transmits data via a first network link and a second network link, if a third preset condition is met, the electronic device may close the first network link. In this case, closing the second network link is not necessary.

[0041] In some embodiments of the present application, when the electronic device transmits data via the first network link and the second network link, if the fourth preset condition is met, the electronic device can close the second network link. In this case, it is not necessary to consider closing the first network link.

[0042] In some embodiments of the present application, when an electronic device transmits data via a first network link and a second network link, if both a third preset condition and a fourth preset condition are satisfied, the electronic device may shut down the first network link or the second network link. If the third preset condition is satisfied and the fourth preset condition is not satisfied, the electronic device may shut down the first network link. If the fourth preset condition is satisfied and the third preset condition is not satisfied, the electronic device may shut down the second network link.

[0043] It is understood that when the network quality of the second network link meets the second network quality condition, the network quality of the second network link is good. The network quality of the second network link can be determined based on the data transmission rate, latency, and bit error rate of the second network link. For the relevant description of whether the network quality of the second network link meets the second network quality condition, please refer to the relevant description of the first network quality condition, and may also refer to the relevant description below, and will not be elaborated here.

[0044] Similarly, when the network quality of the first network link meets the fifth network quality condition, the network quality of the first network link is good. For details, please refer to the relevant descriptions of the first network quality condition and the second network quality condition, and may also refer to the relevant descriptions later, which will not be elaborated here.

[0045] It is understood that when the network quality of the first network link meets the third network quality condition, the network quality of the first network link is poor. The network quality of the first network link can be determined based on the data transmission rate, latency, and bit error rate of the first network link. The relevant description of whether the network quality of the first network link meets the third network quality condition is provided below and is not further explained here.

[0046] Similarly, when the network quality of the second network link meets the fourth network quality condition, the network quality of the first network link is poor. For details, please refer to the relevant description below and will not be elaborated here.

[0047] It is understood that when the first network link is a mobile data link, the first data amount may be the preset data amount mentioned below. And when the second network link is a mobile data link, the second data amount may be the preset data amount mentioned below.

[0048] It is understood that when the first network link is a Wi-Fi link, the network quality of the first network link satisfies the fifth network quality condition, which specifically refers to whether the Wi-Fi link quality-related information satisfies preset condition 2. And when the second network link is a Wi-Fi link, the network quality of the second network link satisfies the second network quality condition, which specifically refers to whether the Wi-Fi link quality-related information satisfies preset condition 2.

[0049] It is understood that the third preset condition may include the amount of data transmitted by the first network link being less than the first amount of data, and the network quality of the second network link meeting the second network quality condition. In this case, the electronic device may shut down the first network link if the network quality of the second network link is good and the data flow transmitted by the first network link is small. In this case, the network quality of the first network link is not necessarily poor.

[0050] Similarly, the fourth preset condition may include the amount of data transmitted by the second network link being less than the second amount of data, and the network quality of the first network link meeting the fifth network quality condition. In this case, the electronic device may shut down the second network link if the network quality of the first network link is good and the data flow transmitted by the second network link is small. In this case, the network quality of the second network link is not necessarily poor.

[0051] It is understandable that the second temperature threshold may be temperature threshold_2, and the first power level may be preset power level_1.

[0052] In conjunction with the first aspect, in one possible implementation, the data transmission method may further include: after the electronic device closes the first network link, the electronic device may open the first network link if a fifth preset condition is satisfied; or, after the electronic device closes the second network link, the electronic device may open the second network link if a sixth preset condition is satisfied. The fifth preset condition may include at least one of the following: the network quality of the second network link meets the sixth network quality condition, the temperature of the electronic device is less than the third temperature threshold, and the power of the electronic device is greater than the second power. The sixth preset condition may include at least one of the following: the network quality of the first network link meets the seventh network quality condition, the temperature of the electronic device is less than the third temperature threshold, and the power of the electronic device is greater than the second power.

[0053] In some embodiments of the present application, after the electronic device turns off the first network link, that is, the electronic device changes from a state where both the first network link and the second network link are turned on at the same time to a state where only the second network link is turned on, the electronic device can turn on the first network link if the fifth preset condition is met.

[0054] In some embodiments of the present application, after the electronic device turns off the second network link, that is, the electronic device changes from a state where both the first network link and the second network link are turned on simultaneously to a state where only the first network link is turned on, the electronic device can turn on the second network link if the sixth preset condition is met.

[0055] It is understandable that the third temperature threshold may be temperature threshold_3, and the second power level may be preset power level_2.

[0056] It is understandable that when the network quality of the second network link meets the sixth network quality condition, the network quality of the second network link is poor. The relevant description of the network quality of the second network link meeting the sixth network quality condition can be found later and will not be elaborated here.

[0057] Similarly, when the network quality of the first network link meets the seventh network quality condition, the network quality of the first network link is poor. The relevant description of whether the network quality of the first network link meets the seventh network quality condition can be found later and will not be elaborated here.

[0058] It can be understood that when the second network link is a Wi-Fi link, the network quality of the second network link meets the sixth network quality condition, which can specifically mean that the Wi-Fi link quality-related information meets preset condition_3. And when the first network link is a Wi-Fi link, the network quality of the first network link meets the seventh network quality condition, which can specifically mean that the Wi-Fi link quality-related information meets preset condition_3.

[0059] In combination with the first aspect, in one possible implementation, the types of parameters involved in the third preset condition are fewer than the types of parameters involved in the fifth preset condition or the types of parameters involved in the sixth preset condition, and the types of parameters involved in the fourth preset condition are fewer than the types of parameters involved in the fifth preset condition or the types of parameters involved in the sixth preset condition.

[0060] The number of parameter types involved in the third preset condition is less than the number of parameter types involved in the fifth preset condition or the number of parameter types involved in the sixth preset condition, and the number of parameter types involved in the fourth preset condition is less than the number of parameter types involved in the fifth preset condition or the number of parameter types involved in the sixth preset condition, which may include the following three situations: (1) When the electronic device closes the first network link based on the third preset condition and opens the first network link based on the fifth preset condition, the number of condition items included in the third preset condition is less than the number of condition items included in the fifth preset condition; (2) When the electronic device closes the second network link based on the fourth preset condition and opens the second network link based on the sixth preset condition, the number of condition items included in the fourth preset condition is less than the number of condition items included in the sixth preset condition; (3) When the electronic device closes the first network link or the second network link based on the third and fourth preset conditions and opens the first network link based on the fifth preset condition or opens the second network link based on the sixth preset condition, the sum of the number of condition items included in the third preset condition and the fourth preset condition used by the electronic device when making the decision to close the link is less than the number of condition items included in the fifth preset condition or the sixth preset condition used by the electronic device when making the decision to close the link.

[0061] In some embodiments of the present application, the conditions for closing a link are less stringent than those for opening a link. This approach allows the electronic device to increase the requirement for opening two network links simultaneously, making it less likely that the electronic device will open two network links simultaneously, thereby reducing the power consumption of the electronic device to a certain extent.

[0062] In combination with the first aspect, in one possible implementation, the third preset condition is that the temperature of the electronic device is greater than the second temperature threshold, and the fifth preset condition is: the network quality of the second network link meets the sixth network quality condition, and the temperature of the electronic device is less than the third temperature threshold.

[0063] It is understood that when an electronic device shuts down the first network link based on the third preset condition and opens the first network link based on the fifth preset condition, the third preset condition includes fewer condition items than the fifth preset condition. In one possible implementation, the third preset condition may include any one of the following: the temperature of the electronic device is greater than the second temperature threshold, the battery level of the electronic device is less than the first battery level, the amount of data transmitted by the first network link is less than the first data level, the network quality of the second network link satisfies the second network quality condition, and the network quality of the first network link satisfies the third network quality condition. In this case, the fifth preset condition includes at least two of the following: the network quality of the second network link satisfies the sixth network quality condition, the temperature of the electronic device is less than the third temperature threshold, and the battery level of the electronic device is greater than the second battery level. In one possible implementation, the third preset condition may include any two of the following: the temperature of the electronic device is greater than the second temperature threshold, the battery level of the electronic device is less than the first battery level, the amount of data transmitted by the first network link is less than the first data level, the network quality of the second network link satisfies the second network quality condition, and the network quality of the first network link satisfies the third network quality condition. In this case, the fifth preset condition includes: the network quality of the second network link satisfies the sixth network quality condition, the temperature of the electronic device is less than the third temperature threshold, and the battery level of the electronic device is greater than the second battery level.

[0064] Similarly, when the electronic device shuts down the second network link based on the fourth preset condition and opens the second network link based on the sixth preset condition, the fourth preset condition includes fewer condition items than the sixth preset condition. In one possible implementation, the fourth preset condition may include any one of the following: the temperature of the electronic device is greater than the second temperature threshold, the battery level of the electronic device is less than the first battery level, the amount of data transmitted by the second network link is less than the second data level, the network quality of the second network link satisfies the fourth network quality condition, and the network quality of the first network link satisfies the fifth network quality condition. In this case, the sixth preset condition may include any two of the following: the network quality of the first network link satisfies the seventh network quality condition, the temperature of the electronic device is less than the third temperature threshold, and the battery level of the electronic device is greater than the second battery level. In one possible implementation, the fourth preset condition may include any two of the following: the temperature of the electronic device is greater than the second temperature threshold, the battery level of the electronic device is less than the first battery level, the amount of data transmitted by the second network link is less than the second data level, the network quality of the second network link satisfies the fourth network quality condition, and the network quality of the first network link satisfies the fifth network quality condition. In this case, the sixth preset condition may include any two of the following: the network quality of the first network link satisfies the seventh network quality condition, the temperature of the electronic device is less than the third temperature threshold, and the battery level of the electronic device is greater than the second battery level.

[0065] In a second aspect, some embodiments of the present application provide a data transmission method. The data transmission method may include: when an electronic device performs data transmission via a first network link and a second network link, if a third preset condition is satisfied, the electronic device may shut down the first network link, or if a fourth preset condition is satisfied, the electronic device may shut down the second network link, or if both the third and fourth preset conditions are satisfied, the electronic device may shut down the first network link or the second network link, if the third preset condition is satisfied and the fourth preset condition is not satisfied, the electronic device may shut down the first network link, and if the fourth preset condition is satisfied and the third preset condition is not satisfied, the electronic device may shut down the second network link. The third preset condition may include at least one of the following: the temperature of the electronic device is greater than a second temperature threshold, the power level of the electronic device is less than a first power level, the amount of data transmitted by the first network link is less than the first amount of data, the network quality of the second network link satisfies a second network quality condition, and the network quality of the first network link satisfies a third network quality condition. The fourth preset condition may include at least one of the following: the temperature of the electronic device is greater than a second temperature threshold, the power level of the electronic device is less than the first power level, the amount of data transmitted by the second network link is less than the second amount of data, the network quality of the second network link satisfies a fourth network quality condition, and the network quality of the first network link satisfies a fifth network quality condition.

[0066] In conjunction with the second aspect, in one possible implementation, the data transmission method may further include: after the electronic device closes the first network link, the electronic device may open the first network link if a fifth preset condition is satisfied; or, after the electronic device closes the second network link, the electronic device may open the second network link if a sixth preset condition is satisfied. The fifth preset condition may include at least one of the following: the network quality of the second network link meets the sixth network quality condition, the temperature of the electronic device is less than the third temperature threshold, and the power of the electronic device is greater than the second power. The sixth preset condition may include at least one of the following: the network quality of the first network link meets the seventh network quality condition, the temperature of the electronic device is less than the third temperature threshold, and the power of the electronic device is greater than the second power.

[0067] In combination with the second aspect, in one possible implementation, the types of parameters involved in the third preset condition are fewer than the types of parameters involved in the fifth preset condition or the types of parameters involved in the sixth preset condition, and the types of parameters involved in the fourth preset condition are fewer than the types of parameters involved in the fifth preset condition or the types of parameters involved in the sixth preset condition.

[0068] In combination with the second aspect, in a possible implementation, the data transmission method may include at least one of the following: the third preset condition is that the temperature of the electronic device is greater than the second temperature threshold; the fifth preset condition is: the network quality of the second network link satisfies the sixth network quality condition, and the temperature of the electronic device is less than the third temperature threshold; the first network link is a Wi-Fi link, and the second network link is a mobile data link; before the first application requests the electronic device to open the second network link, the electronic device can display a first interface, the first interface includes a first icon corresponding to the second network link, and the first icon is in a first state; after the electronic device responds to the request of the first application and opens the second network link, the electronic device displays a second interface, the second interface includes the first icon, and the first icon is in a second state.

[0069] It can be understood that the beneficial effects that can be achieved by the method described in the above-mentioned second aspect or any implementation of the second aspect can refer to the beneficial effects of any possible implementation of the above-mentioned first aspect, and will not be repeated here.

[0070] In a third aspect, the present application provides an electronic device. The electronic device includes: one or more processors and one or more memories; the one or more memories are coupled to the one or more processors, the memories are used to store computer program code, the computer program code including computer instructions, and the one or more processors invoke the computer instructions to cause the electronic device to perform the method described in the first aspect or any one of the implementations of the first aspect.

[0071] In a fourth aspect, the present application provides an electronic device. The electronic device includes: one or more processors and one or more memories; the one or more memories are coupled to the one or more processors, the memories are used to store computer program code, the computer program code including computer instructions, and the one or more processors invoke the computer instructions to cause the electronic device to perform the method described in the second aspect or any one of the implementations of the second aspect.

[0072] In a fifth aspect, the present application provides a computer storage medium comprising computer instructions, which, when executed on an electronic device, cause the electronic device to execute the method described in the first aspect or any one of the implementations of the first aspect.

[0073] In a sixth aspect, the present application provides a computer storage medium comprising computer instructions, which, when executed on an electronic device, cause the electronic device to execute the method described in the second aspect or any one of the implementations of the second aspect.

[0074] In a seventh aspect, an embodiment of the present application provides a chip. The chip can be applied to an electronic device, and the chip includes one or more processors, the processors being configured to invoke computer instructions to cause the electronic device to execute the method described in the first aspect or any one of the implementations of the first aspect.

[0075] In an eighth aspect, an embodiment of the present application provides a chip. The chip can be applied to an electronic device, and the chip includes one or more processors, the processors being configured to invoke computer instructions to cause the electronic device to execute the method described in the second aspect or any one of the implementations of the second aspect.

[0076] In a ninth aspect, an embodiment of the present application provides a computer program product comprising instructions. When the computer program product is run on an electronic device, the electronic device executes the method described in the first aspect or any one of the implementations of the first aspect.

[0077] In a tenth aspect, an embodiment of the present application provides a computer program product comprising instructions. When the computer program product is run on an electronic device, the electronic device executes the method described in the second aspect or any one of the implementations of the second aspect.

[0078] It can be understood that the electronic device provided in the third aspect, the computer storage medium provided in the fifth aspect, the chip provided in the seventh aspect, and the computer program product provided in the ninth aspect are all used to execute the method described in the first aspect or any one of the implementations of the first aspect. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects of any possible implementation method in the first aspect, and will not be repeated here. The electronic device provided in the fourth aspect, the computer storage medium provided in the sixth aspect, the chip provided in the eighth aspect, and the computer program product provided in the tenth aspect are all used to execute the method described in the second aspect or any one of the implementation methods of the second aspect. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects of any possible implementation method in the second aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0079] 1A-1C are schematic diagrams of a set of data transmission architectures provided in an embodiment of the present application;

[0080] Figures 2A-2H are a set of user interface schematic diagrams provided in an embodiment of the present application;

[0081] FIG3A is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;

[0082] FIG3B is a schematic diagram of the software structure of an electronic device provided in an embodiment of the present application;

[0083] FIG4 is a schematic diagram of software and hardware interaction provided in an embodiment of the present application;

[0084] FIG5 is a flowchart of a data transmission method provided in an embodiment of the present application;

[0085] FIG6 is a flowchart of another data transmission method provided in an embodiment of the present application;

[0086] FIG7 is a flowchart of another data transmission method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0087] The following will be combined with the accompanying drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.

[0088] It should be understood that the terms "first," "second," and the like in the specification, claims, and drawings of this application are used to distinguish between different objects, rather than to describe a particular order. Furthermore, the terms "including," "having," and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus comprising a series of steps or elements is not limited to the listed steps or elements, but may optionally include steps or elements not listed, or may optionally include other steps or elements inherent to the process, method, product, or apparatus.

[0089] References to "embodiments" in this application mean that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described in this application may be combined with other embodiments.

[0090] With the advancement of communication technology, electronic devices such as mobile phones not only meet users' communication needs but also provide them with access to external information and a variety of entertainment options. These electronic devices can connect to Wi-Fi networks, enabling data transmission over Wi-Fi links. However, to maintain a good online experience, electronic devices may transmit data over both Wi-Fi and mobile data links. This simultaneous use of two links for data transmission increases the power consumption of electronic devices.

[0091] Embodiments of the present application provide a data transmission method and related devices. According to the data transmission method provided in some embodiments, in response to scenarios such as excessively high / low temperature, low / high battery power, and / or good / poor link quality, an electronic device can enable / disable corresponding links, restrict certain third-party applications from enabling links, and reduce the power consumption of the electronic device while ensuring a good online experience.

[0092] First, the Wi-Fi link and mobile data link involved in this application are explained.

[0093] The Wi-Fi link involved in the embodiments of this application refers to the data transmission channel corresponding to the Wi-Fi network. The Wi-Fi network provides Internet access to connected electronic devices (i.e., Wi-Fi devices) based on radio waves. It is understood that each Wi-Fi device can connect to a wireless local area network (WLAN) to access the Internet and a wireless access point (AP).

[0094] The mobile data link referred to in the embodiments of this application refers to the data transmission channel corresponding to the data service of the cellular network. A cellular network is a mobile network used over a wide area. The cellular network uses an air interface with physical and link layer protocols to connect electronic devices to its base station. Each base station is connected to a mobile switching center, which enables electronic devices to connect to the wide area network, facilitating call and mobility network establishment.

[0095] The following describes the data transmission system architecture provided by the embodiments of the present application.

[0096] An electronic device can simultaneously transmit data through a Wi-Fi link and a mobile data link. As shown in FIG1A , after the electronic device establishes a Wi-Fi link and a mobile data link, both the Wi-Fi link and the mobile data link are in an on state, and the electronic device can simultaneously transmit data through the Wi-Fi link and the mobile data link. The electronic device can also shut down any one of the Wi-Fi link and the mobile data link and transmit data only through the unclosed link. As shown in FIG1B , the electronic device can shut down the mobile data link. At this time, the Wi-Fi link is still in an on state, and the electronic device can transmit data only through the Wi-Fi link. In the case where only one of the Wi-Fi link and the mobile data link is in an on state, the electronic device can turn on the other unturned link, thereby achieving simultaneous data transmission through the Wi-Fi link and the mobile data link. As shown in FIG1C , in the case where the electronic device only turns on the Wi-Fi link and only transmits data through the Wi-Fi link, the electronic device can turn on the mobile data link and transmit data through the Wi-Fi link and the mobile data link at the same time.

[0097] The following introduces some data transmission scenarios provided by this application.

[0098] It is understood that the terms "interface" and "user interface" in the specification, claims, and drawings of this application refer to the media interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. A common form of user interface is a graphical user interface (GUI), which refers to a user interface related to computer operations that is displayed in a graphical manner. It can be an interface element such as an icon, window, or control displayed on the display screen of an electronic device, where a control can include visual interface elements such as icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and widgets.

[0099] 1. Transmit data simultaneously via Wi-Fi link and mobile data link (as shown in Figure 2A)

[0100] Three-party applications in electronic devices can simultaneously transmit data through Wi-Fi links and mobile data links.

[0101] Exemplarily, a video application in an electronic device can transmit data through a Wi-Fi link and a mobile data link. As shown in FIG2A , the electronic device is currently connected to Wi-Fi and has access to a 5G network. In other words, the mobile data link used by the electronic device at this time is the mobile data link corresponding to the 5G network, and the mobile data link corresponding to the 4G network is not used. It is understandable that in the event that access to the 5G network fails, the electronic device can try to access the 4G network. As shown in FIG2A , the video application in the electronic device can play a video and display a user interface 100. The user interface 100 may include an icon 1, and the state of the icon 1 is state 1. It is understandable that when the mobile data link is turned on, the icon 1 is in state 1.

[0102] 2. Close one of the Wi-Fi link and the mobile data link (as shown in Figure 2B-2C)

[0103] When three applications in an electronic device transmit data simultaneously through a Wi-Fi link and a mobile data link, the electronic device can make corresponding decisions to shut down the link in response to scenarios such as high temperature, low battery, and poor link quality.

[0104] In some embodiments of the present application, the electronic device may close the link based on the decision to close the link.

[0105] In some further embodiments of the present application, in response to a user operation performed on the electronic device, the electronic device may close the link based on the link closing decision.

[0106] For example, when the temperature of the electronic device is too high, the electronic device can turn off the mobile data link. As shown in Figure 2B, the electronic device can display a user interface 200. The status of icon 1 in the user interface 200 is status 1. That is, the current mobile data link is in the on state. The user interface 200 may include a prompt area 201. The prompt area 201 may display "The current temperature is too high, and the mobile data link will be turned off soon." The prompt area 201 may include a cancel control and a confirm control. The cancel control is used to trigger the cancellation of the mobile data link closing operation, and the confirm control is used to trigger the closing of the mobile data link. The electronic device can detect a user operation on the confirm control on the prompt area 201. In response to the user operation, the electronic device can turn off the mobile data link and display a user interface 300 as shown in Figure 2C. The status of icon 1 in the user interface 300 is status 2. It can be understood that when the mobile data link is turned off, icon 1 is in status 2.

[0107] 3. Restrict third-party applications from opening unopened links in Wi-Fi links and mobile data links (as shown in Figures 2D-2F)

[0108] When a third-party application in an electronic device transmits data only through a Wi-Fi link or a mobile data link, the electronic device can restrict the third-party application from opening another link in scenarios such as high temperature, low battery, or good quality of the currently opened link.

[0109] For example, when the current Wi-Fi link quality is good, the electronic device can restrict some applications from opening the mobile data link. As shown in Figure 2D, the video application in the electronic device can transmit data only through the Wi-Fi link and display the user interface 400. The status of icon 1 in the user interface 400 is status 2. That is, the current mobile data link is in a closed state. The user interface 400 may also include a prompt area 401. The prompt area 401 may display "The current Wi-Fi link quality is good, and some applications will be restricted from opening the mobile data link." The prompt area 401 may include a cancel control and a confirmation control. The electronic device can detect a user operation on the confirmation control on the prompt area 401. In response to the user operation, the electronic device can restrict some third-party applications from opening the mobile data link.

[0110] For example, the video application in the electronic device is restricted from opening the mobile data link. As shown in FIG2E , the electronic device may display a user interface 500. The state of icon 1 in the user interface 500 is state 2. That is, the current mobile data link is closed.

[0111] For example, the banking application in the electronic device is not restricted from opening the mobile data link. As shown in FIG2F , after the electronic device starts the banking application, a user interface 600 may be displayed. The state of icon 1 in the user interface 600 is state 1. In other words, the current mobile data link is open.

[0112] 4. Restore the closed links in the Wi-Fi link and mobile data link (as shown in Figure 2G-2H)

[0113] When third-party applications in electronic devices transmit data only through Wi-Fi links or mobile data links, the electronic device can restore another closed link in scenarios such as temperature drop, power increase, and poor quality of the currently open link.

[0114] Exemplarily, when the electronic device displays the user interface 500, data is transmitted only through the Wi-Fi link. When the Wi-Fi link deteriorates, the electronic device may display a user interface 700 as shown in FIG2G . The state of icon 1 in the user interface 700 is state 2. That is, the current mobile data link is in a closed state. The user interface 700 may further include a prompt area 701. The prompt area 701 may display "The current Wi-Fi link quality is poor, and the mobile data link is about to be turned on." The prompt area 701 may include a cancel control and a confirmation control. The electronic device may detect a user operation acting on the confirmation control on the prompt area 701. In response to the user operation, the electronic device may turn on the mobile data link and display a user interface 800 as shown in FIG2H . The state of icon 1 in the user interface 800 is state 1.

[0115] It is understandable that the user operations mentioned in this application can be specifically touch, gesture, voice and other operation methods, and this application does not limit this.

[0116] It is understandable that the specific implementation methods of opening / closing links in different scenarios and restricting applications from opening links can be found in the following text and will not be elaborated here.

[0117] The following describes the device involved in the embodiments of the present application.

[0118] FIG3A is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application.

[0119] The electronic device may include a processor, an external memory interface, an internal memory, an audio module, a speaker, a receiver, a microphone, an earphone interface, a display screen, a mobile communication module, a wireless communication module, and a temperature sensor.

[0120] The structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device. In some embodiments of the present application, the electronic device may include more components than those shown in the figure. For example, the electronic device may include other types of sensors such as a touch sensor, an acceleration sensor, and a gyroscope sensor. In some embodiments of the present application, the electronic device may include fewer components than those shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The illustrated components can be implemented in hardware, software, or a combination of software and hardware. The interface connection relationship between the modules illustrated in the embodiments of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device.

[0121] Electronic devices can implement display functions through a graphics processing unit (GPU), a display screen, and an application processor. A GPU is a microprocessor for image processing that connects the display screen and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. A processor may include one or more GPUs that execute program instructions to generate or change display information. The display screen is used to display images, videos, etc. In some embodiments of the present application, the electronic device may include one or more display screens.

[0122] In some embodiments of the present application, the ability of the electronic device to display a user interface depends on the display functions provided by the aforementioned GPU, display screen, and application processor.

[0123] In some embodiments of the present application, the ability of the electronic device to display the user interface shown in Figures 2A-2H depends on the display functions provided by the above-mentioned GPU, display screen, and application processor.

[0124] The mobile communication module can provide wireless communication solutions including 2G / 3G / 4G / 5G applied in electronic devices.

[0125] In some embodiments of the present application, the mobile communication module is a hardware module in an electronic device for establishing a mobile data link, which can be used to specifically implement the establishment and release of the mobile data link. The data transmitted via the mobile data link mentioned in the present application can be sent or received by the mobile communication module.

[0126] The wireless communication module can provide wireless communication solutions including WLAN (for example, Wi-Fi network), BT, Global Navigation Satellite System (GNSS), Frequency Modulation (FM), NFC, infrared technology (IR), etc. applied to electronic devices. The wireless communication module can be one or more devices integrating at least one communication processing module. The wireless communication module can receive electromagnetic waves via antenna 2, or convert signals into electromagnetic waves for radiation. In some embodiments of the present application, the electronic device can establish a wireless connection with other devices through the wireless communication module.

[0127] In some embodiments of the present application, antenna 1 can be coupled to a mobile communication module, and antenna 2 can be coupled to a wireless communication module, so that the electronic device can communicate with the network and other devices through wireless communication technology.

[0128] In some embodiments of this application, the wireless communication module is a hardware module in an electronic device used to establish a Wi-Fi link. It can be used to specifically implement the establishment and release of the Wi-Fi link. The data transmitted via the Wi-Fi link mentioned in this application can be sent or received through the wireless communication module.

[0129] The temperature sensor is used to detect temperature. In some embodiments of the present application, the electronic device can use a temperature sensor to detect its own entire temperature.

[0130] FIG3B is a schematic diagram of the software structure of an electronic device provided in an embodiment of the present application.

[0131] The software system of the electronic device can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a microservice architecture, or a cloud architecture. The embodiment of the present application takes the Android system with a layered architecture as an example to illustrate the software structure of the electronic device.

[0132] A layered architecture divides software into several layers, each with distinct roles and responsibilities. Layers communicate with each other via software interfaces. As shown in Figure 3B, the software framework of an electronic device may include an application layer, an application framework layer, a system library, a runtime, a hardware abstraction layer (HAL), and a kernel layer.

[0133] The application layer can include a series of application packages. Generally speaking, the application layer can include system applications and third-party applications. System applications are a series of core applications that come with the Android system. For example, system applications may include applications such as Gallery, Calendar, Bluetooth, and WLAN. Third-party applications are applications that users can choose to install. In some embodiments of this application, users can download and install third-party applications from the app store.

[0134] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes predefined functions and can include a range of system services. System services are modular components that focus on specific functions. Functions provided by the application framework API communicate with system services to access the underlying hardware.

[0135] As shown in Figure 3B, the application framework layer may also include a network connection management service (Connectivity Service, CS), a telephone communication framework (Telephony FWK) and a Wi-Fi link management module. Among them, CS can provide data connection management services, responsible for managing several major types of network connections such as mobile, Wi-Fi, BT and Ethernet, and also provide virtual private network (VPN) and tethering services. Tethering refers to connecting a mobile phone to a computer via a Universal Serial Bus (USB) interface, Bluetooth or Wi-Fi, and using the mobile phone's Internet connection to provide a connection to the computer. Telephony FWK is the framework layer module of Android Telephony. Telephony FWK can control the opening (i.e., connection) and closing (i.e., disconnection) of the mobile data link. Android Telephony is the core module for implementing communication functions in the Android system. Android Telephony mainly provides functions such as voice, SMS, data link, Subscriber Identity Module (SIM) card management and phone book. The Wi-Fi link management module can obtain quality-related information such as the data transmission rate, delay, and bit error rate of the Wi-Fi link, and can also control the opening and closing of the Wi-Fi link.

[0136] The application framework layer may also include a window manager and a view system, etc. The specific meanings and functions of these functional modules can be found in the relevant technical documentation and will not be described in detail here.

[0137] The system library can include multiple functional modules. For example, the Surface Manager, Media Libraries, 3D graphics processing library (e.g., OpenGL ES), 2D graphics engine (e.g., SGL), etc. The specific meanings and functions of these functional modules can be found in the relevant technical documentation and will not be explained in detail here.

[0138] The runtime is responsible for system scheduling and management. The runtime includes the core library and the virtual machine.

[0139] The Hardware Abstraction Layer (HAL) is an interface layer between the operating system kernel and upper-level software. Its purpose is to abstract the hardware. The HAL is an abstract interface driven by the device kernel, used to implement an application programming interface that provides access to the underlying device to higher-level Java API frameworks. The HAL provides a standard interface that exposes device hardware capabilities to higher-level Java API frameworks. The HAL consists of multiple library modules, such as the Camera HAL and the Audio HAL. Each library module implements an interface for a specific type of hardware component. When the system framework API requests access to the portable device's hardware, the operating system loads the library module for that hardware component.

[0140] The kernel layer is the layer between hardware and software. It forms the foundation of the Android operating system. It is responsible for hardware drivers, networking, power, system security, and memory management. As an intermediate layer between hardware and software, the kernel layer passes application requests to the hardware. The kernel layer may include display drivers, camera drivers, audio drivers, and sensor drivers.

[0141] It should be noted that the software architecture diagram of the electronic device shown in FIG3B provided in this application is merely an example and does not limit the specific module divisions within the different layers of the Android operating system. For details, please refer to the introduction of the Android operating system software architecture in conventional technology. In addition, the data transmission method provided in this application can also be implemented based on other operating systems, and this application will not further illustrate them one by one.

[0142] Based on the software and hardware structure of the electronic device shown in Figures 3A and 3B, a data transmission method provided by an embodiment of the present application is introduced from the perspective of software and hardware interaction.

[0143] Please refer to FIG4 , which is a schematic diagram of software and hardware interaction provided in an embodiment of the present application.

[0144] As shown in Figure 4, the three-party application can send a request to the CS to open / close the link (i.e., the Wi-Fi link and the mobile data link). After receiving the request to open / close the link, the CS can send an instruction to open / close the mobile data link to the Telephony FWK, or it can send an instruction to open / close the Wi-Fi link to the Wi-Fi link management module. After receiving the instruction to open / close the mobile data link, the Telephony FWK can open / close the mobile data link and send a prompt message to the CS and the control module indicating that the mobile data link has been opened / closed. After receiving the instruction to open / close the Wi-Fi link, the Wi-Fi link management module can open / close the Wi-Fi link and send a prompt message to the CS and the control module indicating that the Wi-Fi link has been opened / closed.

[0145] In some embodiments of the present application, when a third-party application in an electronic device transmits data only through one of a Wi-Fi link and a mobile data link, the electronic device can restrict the third-party application from opening another link in scenarios such as excessively high temperature, low battery, or good quality of the currently open link. For example, a temperature sensor can send the entire device temperature to a control module, and the control module can determine whether to restrict the third-party application from opening another link based on the entire device temperature.

[0146] In some embodiments of the present application, when three applications in an electronic device are simultaneously transmitting data via a Wi-Fi link and a mobile data link, the electronic device can make corresponding decisions to shut down the link in response to scenarios such as excessively high temperature, low battery, or poor link quality. For example, a temperature sensor can send the entire device temperature to a control module, which can then determine whether to shut down the Wi-Fi link and the mobile data link based on the entire device temperature.

[0147] When three-party applications in an electronic device transmit data using only one of the Wi-Fi and mobile data links, the electronic device can make a decision to restore the link in response to scenarios such as reduced temperature, increased battery life, and improved link quality. For example, a temperature sensor can send the entire device's temperature to the control module, which can then determine whether to restore the disabled link between the Wi-Fi and mobile data links based on the entire device's temperature.

[0148] It is understandable that data transmitted in the electronic device via a Wi-Fi link can be sent or received through the wireless communication module, and data transmitted in the electronic device via a mobile data link can be sent or received through the mobile communication module.

[0149] The specific implementation of the above embodiment will be described below with reference to FIG5 to FIG7 .

[0150] 1. When data is transmitted through one of the Wi-Fi link and the mobile data link, the electronic device restricts the third-party application from opening the other link (as shown in FIG5 ).

[0151] When a third-party application in an electronic device transmits data through only one of the Wi-Fi link and the mobile data link, the electronic device can restrict the third-party application from opening another link in scenarios such as high temperature, low battery, and good quality of the currently opened link.

[0152] 5 , a specific implementation method of restricting the opening of a mobile data link when a Wi-Fi link is opened will be exemplified below.

[0153] S501: The control module registers a Wi-Fi link quality acquisition function.

[0154] The control module can register a Wi-Fi link quality acquisition function. The Wi-Fi link quality acquisition function is used to obtain information related to Wi-Fi link quality. It is understood that the information related to Wi-Fi link quality may include the data transmission rate, bit error rate, and latency of the Wi-Fi link.

[0155] In some embodiments of the present application, after the electronic device is powered on, the control module may register the Wi-Fi link quality acquisition function. That is, when the electronic device executes step S501, the Wi-Fi link may not be enabled.

[0156] In some embodiments of the present application, when the Wi-Fi link is in an on state, the control module may register a Wi-Fi link quality acquisition function. That is, when the electronic device executes step S501, the Wi-Fi link is already on, and the electronic device may transmit data only via the Wi-Fi link.

[0157] S502: The Wi-Fi link management module sends Wi-Fi link quality related information to the control module.

[0158] After the control module registers the Wi-Fi link quality acquisition function, the Wi-Fi link management module may send Wi-Fi link quality related information to the control module.

[0159] In some embodiments of the present application, after the control module registers the Wi-Fi link quality acquisition function, the Wi-Fi link management module sends Wi-Fi link quality-related information to the control module every t1. It is understood that t1 can be set according to actual needs (for example, t1 can be 5 seconds), and this application does not impose any restrictions on it.

[0160] In some embodiments of the present application, the control module registers the Wi-Fi link quality acquisition function after the electronic device is turned on. In this case, after the Wi-Fi link is turned on, the Wi-Fi link management module sends information related to the Wi-Fi link quality to the control module. That is, when the electronic device executes step S502, the Wi-Fi link may not be turned on. In some embodiments of the present application, the control module registers the Wi-Fi link quality acquisition function when the Wi-Fi link is in the on state. In this case, since the Wi-Fi link is originally in the on state, the Wi-Fi link management module can send information related to the Wi-Fi link quality to the control module immediately after the function registration is completed. That is to say, when the electronic device executes step S502, the Wi-Fi link is already turned on, and the electronic device can transmit data only through the Wi-Fi link.

[0161] Correspondingly, the control module may receive Wi-Fi link quality related information sent by the Wi-Fi link management module.

[0162] S503: The temperature sensor detects the entire temperature of the electronic device and sends the entire temperature of the electronic device to the control module.

[0163] It is understandable that the temperature sensor can detect the entire temperature of the electronic device and send the detected entire temperature of the electronic device to the control module.

[0164] In some embodiments of the present application, the temperature sensor detects the entire temperature of the electronic device once every t2 and sends the entire temperature of the electronic device to the control module once every t3. It is understood that t2 and t3 can be the same (for example, t2 and t3 are both 5 seconds) or different (for example, t2 is 5 seconds and t3 is 10 seconds). The specific values ​​of t2 and t3 can be set according to actual needs and are not limited by this application.

[0165] In some embodiments of the present application, after the electronic device is turned on, the temperature sensor can detect the entire temperature of the electronic device and send the entire temperature of the electronic device to the control module. In other words, when the electronic device executes step S503, the Wi-Fi link may not be turned on.

[0166] In some embodiments of the present application, the temperature sensor detects the entire temperature of the electronic device and sends the entire temperature of the electronic device to the control module only when the Wi-Fi link is in an on state. That is, when the electronic device executes step S503, the Wi-Fi link is already on.

[0167] Correspondingly, the control module can receive the entire temperature of the electronic device sent by the temperature sensor.

[0168] S504: The control module determines whether the entire temperature of the electronic device is greater than a temperature threshold_1, and determines whether the Wi-Fi link quality related information satisfies a preset condition_1.

[0169] After receiving the entire electronic device temperature from the temperature sensor, the control module can determine whether the entire electronic device temperature is greater than temperature threshold_1. It is understood that temperature threshold_1 can be set according to actual needs and is not limited in this application. For example, temperature threshold_1 can be 40 degrees Celsius. For another example, temperature threshold_1 can be between 40 degrees Celsius and 55 degrees Celsius. For another example, temperature threshold_1 can be no more than 50 degrees Celsius.

[0170] Similarly, after receiving the Wi-Fi link quality related information sent by the Wi-Fi link management module, the control module can determine whether the Wi-Fi link quality related information meets the preset condition 1. If the Wi-Fi link quality related information meets the preset condition 1, the Wi-Fi link quality is good.

[0171] It is understood that the Wi-Fi link quality-related information meeting the preset condition_1 specifically refers to that some or all parameters in the Wi-Fi link quality-related information meet the preset range requirements. The following example uses the Wi-Fi link quality-related information including the three parameters of the Wi-Fi link: data transmission rate, bit error rate, and latency.

[0172] In one possible implementation, the Wi-Fi link quality-related information satisfies preset condition_1, which may specifically include: a data transmission rate of the Wi-Fi link is greater than data transmission rate_1, a bit error rate of the Wi-Fi link is less than bit error rate_1, and a delay of the Wi-Fi link is less than delay_1.

[0173] In a possible implementation, the Wi-Fi link quality-related information satisfies preset condition_1, which may specifically include: a data transmission rate of the Wi-Fi link is greater than data transmission rate_1, or a bit error rate of the Wi-Fi link is less than bit error rate_1, or a delay of the Wi-Fi link is less than delay_1.

[0174] In a possible implementation, the Wi-Fi link quality-related information satisfies preset condition_1, which may specifically include: a data transmission rate of the Wi-Fi link is greater than data transmission rate_1 and a bit error rate of the Wi-Fi link is less than bit error rate_1; or, a data transmission rate of the Wi-Fi link is greater than data transmission rate_1 and a delay of the Wi-Fi link is less than delay_1; or, a bit error rate of the Wi-Fi link is less than bit error rate_1 and a delay of the Wi-Fi link is less than delay_1.

[0175] It is understandable that the data transmission rate_1, bit error rate_1 and delay_1 can be set according to actual needs, and this application does not impose any restrictions on this.

[0176] Of course, the Wi-Fi link quality related information meeting the preset condition_1 can also be achieved through other methods, and this application does not limit this.

[0177] S505: When the temperature of the electronic device is greater than the temperature threshold_1, or the Wi-Fi link quality information satisfies the preset condition_1, the control module sends an instruction to the CS to restrict the application from opening the mobile data link.

[0178] If the temperature of the electronic device is greater than temperature threshold_1, or if the Wi-Fi link quality information satisfies preset condition_1, the control module sends an instruction to the CS to restrict applications from opening mobile data links. That is, if the temperature of the electronic device is greater than temperature threshold_1, the control module can send an instruction to the CS to restrict applications from opening mobile data links. If the Wi-Fi link quality information satisfies preset condition_1, the control module can also send an instruction to the CS to restrict applications from opening mobile data links.

[0179] In some embodiments of the present application, when the temperature of the electronic device is greater than the temperature threshold_1 and the Wi-Fi link quality related information meets the preset condition_1, the control module can send an instruction to the CS to restrict the application from opening the mobile data link.

[0180] In some embodiments of the present application, the control module may send an instruction to the CS to restrict the application from opening the mobile data link only when the temperature of the electronic device is greater than the temperature threshold_1. In this case, the control module does not need to consider the Wi-Fi link quality.

[0181] In some other embodiments of the present application, the control module sends an instruction to the CS to restrict the application from opening the mobile data link only when the Wi-Fi link quality related information meets the preset condition 1. In this case, the control module does not need to consider the temperature of the electronic device.

[0182] In some embodiments of the present application, if the battery level of the electronic device is less than a preset level, the control module may send an instruction to the CS to restrict the application from enabling the mobile data link. It is understood that the preset level can be set based on actual needs and is not limited by this application. For example, the preset level may be 20%.

[0183] In some embodiments of the present application, when the temperature of the electronic device is greater than the temperature threshold_1 and the power of the electronic device is less than a preset power, the control module sends an instruction to the CS to restrict the application from opening the mobile data link.

[0184] In some embodiments of the present application, when the Wi-Fi link quality related information meets the preset condition_1 and the power of the electronic device is less than the preset power, the control module sends an instruction to the CS to restrict the application from opening the mobile data link.

[0185] In some embodiments of the present application, when the temperature of the electronic device is greater than the temperature threshold_1, the Wi-Fi link quality related information meets the preset condition_1, and the power of the electronic device is less than the preset power, the control module sends an instruction to the CS to restrict the application from opening the mobile data link.

[0186] Correspondingly, the CS may receive an instruction from the control module to restrict applications from opening a mobile data link.

[0187] S506: The third-party application sends a request to the CS to open a mobile data link.

[0188] The third-party application can send a request to the CS to open a mobile data link.

[0189] Correspondingly, the CS may receive a request for opening a mobile data link sent by the third-party application.

[0190] S507: The CS determines whether the third-party application that sends the request to open the mobile data link is an application of a preset category.

[0191] After receiving the instruction from the control module to restrict applications from opening the mobile data link, if the CS receives a request from a third-party application to open the mobile data link, it can determine whether the third-party application that sent the request to open the mobile data link is an application of a preset category.

[0192] In some embodiments of the present application, applications of preset categories may include applications whose security requirements meet preset conditions. In one possible implementation, applications whose security requirements meet preset conditions refer to applications that require a proprietary link (for example, a mobile data link) for identity authentication when turned on. It is understandable that the identity authentication method may include identity authentication methods such as entering an account number and password. In one possible implementation, applications whose security requirements meet preset conditions refer to applications involving important privacy information such as funds (for example, banking applications, financial management applications, etc.). In one possible implementation, applications whose security requirements meet preset conditions refer to applications with higher security requirements set by users themselves.

[0193] The security of mobile data links is higher than that of Wi-Fi links. For applications with higher security requirements, some privacy-related data (such as account passwords, funds, etc.) can be transmitted through mobile data links. This can reduce the power consumption of electronic devices while ensuring the privacy of users.

[0194] In some embodiments of the present application, a preset category of applications may include applications that require identity authentication via a Subscriber Identity Module (SIM) card when opened. In one possible implementation, for registered users, the application can identify a number through the SIM card of the electronic device and determine whether the number is registered with the application. If the number is registered with the application, the application can successfully match and complete identity authentication. In one possible implementation, for unregistered users, the application can identify a number through the SIM card and determine whether the number meets the object-oriented requirements of the application type, that is, determine whether the application can provide services for the number. If the number meets the object-oriented requirements of the application, identity authentication is successful. For example, if the application is only for users in a specific area, the application can only provide services to users in that specific area and cannot provide services to users in other areas. In this case, if the application determines that the number corresponding to the SIM card in the electronic device is a number for the specific area, the application can provide services to the electronic device.

[0195] SIM cards are user identification cards used by mobile network users. Mobile networks involve mobile data links, so SIM card identification technology involves mobile data links. For applications that require SIM card authentication upon activation, SIM card-related data can be transmitted over mobile data links. Furthermore, because mobile data links are more secure than Wi-Fi links, SIM card identification over mobile data links can better protect user privacy, such as mobile phone numbers.

[0196] In some embodiments of the present application, the preset categories of applications may include latency-sensitive applications. Latency-sensitive applications are applications that require data transmission delays less than a preset delay during use. Examples include gaming applications, acceleration applications, and live streaming applications. It is understood that the preset delay can be set based on actual needs, and this application does not impose any restrictions on this. For example, the preset delay may be 5 milliseconds.

[0197] In some embodiments of the present application, the preset category of applications may also include applications that are frequently used by users.

[0198] In some embodiments of the present application, the preset category of applications may also include several applications set by the user.

[0199] It is understood that in some embodiments of the present application, the electronic device may set an application list, which may include the above-mentioned preset categories of applications. It is understood that the CS may determine whether the third-party application that sends the request to open the mobile data link is an application in the application list.

[0200] S508: When the third-party application that sends the request to open the mobile data link is not an application of the preset category, the CS does not respond to the request to open the mobile data link sent by the third-party application.

[0201] It is understandable that if the third-party application that sends the request to open the mobile data link is not an application of the preset category, the CS does not respond to the request to open the mobile data link sent by the third-party application.

[0202] In some embodiments of the present application, if the third-party application that sends a request to open a mobile data link to the CS is not an application of a preset category, the CS may discard the request to open a mobile data link sent by the third-party application.

[0203] In some embodiments of the present application, if the third-party application that sends a request to open a mobile data link to the CS is not an application of a preset category, the CS may return a rejection message, thereby rejecting the request to open a mobile data link sent by the third-party application.

[0204] S509: In a case where the third-party application that sends the request to open the mobile data link is an application of a preset category, the CS sends an instruction to open the mobile data link to the Telephony FWK.

[0205] It can be understood that if the third-party application that sends the request to open the mobile data link is an application of a preset category, the CS sends an instruction to open the mobile data link to the Telephony FWK.

[0206] Accordingly, the Telephony FWK can receive the instruction to start the mobile data link sent by the CS.

[0207] S510: Telephony FWK opens the mobile data link.

[0208] After receiving the instruction to start the mobile data link from the CS, the Telephony FWK may start the mobile data link. In some embodiments of the present application, the Telephony FWK may call an interface (eg, setInternalDataEnabled) to start the mobile data link.

[0209] S511: The Telephony FWK sends a prompt message to the control module indicating that the mobile data link has been opened.

[0210] After the Telephony FWK starts the mobile data link, it may send a prompt message indicating that the mobile data link has been started to the control module.

[0211] Correspondingly, the control module may receive the prompt information sent by the Telephony FWK indicating that the mobile data link has been opened.

[0212] It should be noted that the control module can register a link connection status callback function. After registering the link connection status callback function, the control module can obtain the connection status of the Wi-Fi link and the mobile data link. Specifically, if the connection status of the Wi-Fi link changes, the Wi-Fi link management module can send the changed Wi-Fi link connection status to the control module. Similarly, if the connection status of the mobile data link changes, the Telephony FWK can send the changed mobile data link connection status to the control module.

[0213] In some embodiments of the present application, the control module in the electronic device may register a link connection status callback function after the electronic device is powered on.

[0214] In some embodiments of the present application, the control module can save the current connection status of the Wi-Fi link and the mobile data link, and update the current connection status when the current connection status of the Wi-Fi link and / or the mobile data link changes. In this case, after receiving the prompt information sent by the Telephony FWK that the mobile data link has been enabled, the control module can update the current connection status of the mobile data link from the closed state to the open state.

[0215] S512: The Telephony FWK sends a prompt message to the CS indicating that the mobile data link has been opened.

[0216] After the Telephony FWK starts the mobile data link, it can send a prompt message to the CS indicating that the mobile data link has been started.

[0217] Correspondingly, the CS can receive the prompt information sent by the Telephony FWK that the mobile data link has been opened.

[0218] S513: The CS sends a prompt message to the third-party application indicating that the mobile data link has been opened.

[0219] After receiving the prompt message indicating that the mobile data link has been opened from the Telephony FWK, the CS may send a prompt message indicating that the mobile data link has been opened to the third-party application to notify the third-party application that the mobile data link has been opened.

[0220] Correspondingly, the third-party application can receive the prompt information sent by the CS that the mobile data link has been opened.

[0221] S514: The third-party application transfers all or part of the data flow on the Wi-Fi link to the mobile data link for transmission.

[0222] After receiving the prompt information sent by the CS that the mobile data link has been opened, the third-party application can transfer all or part of the data flow on the Wi-Fi link to the mobile data link for transmission.

[0223] It is understandable that this application does not limit the order of step S502 and step S503.

[0224] It is understandable that, when the control module does not send an instruction to restrict applications from opening a mobile data link to the CS, after the CS receives the request to open a mobile data link sent by the third-party application (such as step S506), it can send an instruction to open the mobile data link to the Telephony FWK. Correspondingly, after the Telephony FWK receives the instruction to open the mobile data link, it can continue to execute steps S510-S512.

[0225] It is understandable that when the Wi-Fi link is closed and the mobile data link is open, the electronic device can also use a method similar to that shown in Figure 5 to restrict third-party applications from opening the Wi-Fi link.

[0226] Second, when data is transmitted via a Wi-Fi link and a mobile data link, one of the links is closed (as shown in FIG6 ).

[0227] When three-party applications in an electronic device transmit data through a Wi-Fi link and a mobile data link at the same time, the electronic device can make corresponding decisions to shut down the link in response to scenarios such as excessively high temperature, low battery, and poor link quality.

[0228] The following describes one specific implementation of the link closing decision with reference to FIG6 .

[0229] S601: The control module registers a link connection status callback function.

[0230] The control module can register a link connection status callback function. After registering the link connection status callback function, the control module can obtain the connection status of the Wi-Fi link and the mobile data link. For details, please refer to the above and will not be repeated here.

[0231] In some embodiments of the present application, after the electronic device is powered on, the control module can register the link connection status callback function. That is, when the electronic device executes step S601, the Wi-Fi link and the mobile data link may not be turned on.

[0232] In some embodiments of the present application, when both the Wi-Fi link and the mobile data link are enabled, the control module may register a link connection status callback function. That is, when the electronic device executes step S601, the Wi-Fi link and the mobile data link are already enabled, and the electronic device can transmit data via both the Wi-Fi link and the mobile data link simultaneously.

[0233] S602: The temperature sensor detects the temperature of the electronic device and sends the temperature of the electronic device to the control module.

[0234] It is understandable that the specific implementation of step S602 can refer to step S503 and will not be repeated here.

[0235] S603: The control module obtains the amount of data transmitted by the electronic device via the mobile data link.

[0236] The control module can obtain the amount of data transmitted by the electronic device via the mobile data link. In some embodiments of the present application, the control module can obtain the amount of data transmitted via the mobile data link via an underlying module related to the network card.

[0237] In some embodiments of the present application, when the electronic device executes step S602 and step S603, the Wi-Fi link and the mobile data link may not both be in an enabled state. In still other embodiments of the present application, when the electronic device executes step S602 and step S603, the Wi-Fi link and the mobile data link are both in an enabled state, and the electronic device can transmit data through the Wi-Fi link and the mobile data link simultaneously.

[0238] S604: The control module determines whether the entire temperature of the electronic device is greater than the temperature threshold_2, and determines whether the amount of data transmitted by the electronic device through the mobile data link is less than a preset data amount.

[0239] After the control module receives the temperature of the entire electronic device sent by the temperature sensor, it can determine whether the temperature of the entire electronic device is greater than the temperature threshold_2. It is understandable that the temperature threshold_2 can be set according to actual needs, and this application does not limit this. The temperature threshold_2 can be the same as the temperature threshold_1, or it can be different from the temperature threshold_1. For example, the temperature threshold_1 can be 40 degrees Celsius, and the temperature threshold_2 can be 50 degrees Celsius. Similar to the temperature threshold_1, the temperature threshold_2 can also be set within a specific temperature range (for example, 40 degrees Celsius to 50 degrees Celsius).

[0240] After the control module obtains the information related to the mobile data link quality, it can also determine whether the amount of data transmitted by the electronic device via the mobile data link is less than the preset data amount. It is understood that the preset data amount can be set according to actual needs and this application does not limit this.

[0241] S605: When the temperature of the electronic device is greater than the temperature threshold_2, or the amount of data transmitted by the electronic device through the mobile data link is less than a preset amount of data, the control module sends an instruction to close the mobile data link to the CS.

[0242] If the temperature of the electronic device is greater than temperature threshold_2, or the amount of data transmitted via the mobile data link is less than a preset amount, the control module sends an instruction to the CS to close the mobile data link. That is, if the temperature of the electronic device is greater than temperature threshold_2, the control module may send an instruction to the CS to close the mobile data link. If the amount of data transmitted via the mobile data link is less than a preset amount, the control module may also send an instruction to the CS to close the mobile data link.

[0243] In some embodiments of the present application, the control module may send an instruction to the CS to close the mobile data link only when the temperature of the electronic device is greater than the temperature threshold_2. In this case, the control module does not need to consider the amount of data transmitted via the mobile data link.

[0244] In some embodiments of the present application, the control module may send an instruction to the CS to close the mobile data link only when the amount of data transmitted by the electronic device via the mobile data link is less than a preset amount of data. In this case, the control module does not need to consider the temperature of the entire electronic device.

[0245] In some embodiments of the present application, when the temperature of the electronic device is greater than the temperature threshold_2 and the amount of data transmitted through the mobile data link is less than the preset data amount, the control module sends an instruction to the CS to close the mobile data link.

[0246] In some embodiments of the present application, if the amount of data transmitted by the electronic device via the mobile data link is less than a preset amount of data, and the Wi-Fi link quality-related information satisfies preset condition 2, the control module may send an instruction to the CS to shut down the mobile data link. In this case, the control module does not need to consider the overall temperature of the electronic device.

[0247] In some embodiments of the present application, when the amount of data transmitted by the electronic device through the mobile data link is less than a preset data amount and the Wi-Fi link quality-related information satisfies preset condition_2, the control module may send an instruction to the CS to close the mobile data link. Moreover, when the entire temperature of the electronic device is greater than the temperature threshold_2, the control module may also send an instruction to the CS to close the mobile data link.

[0248] In some embodiments of the present application, when the temperature of the electronic device is greater than temperature threshold_2, the amount of data transmitted through the mobile data link is less than the preset data amount, and the information related to the Wi-Fi link quality meets preset condition_2, the control module sends an instruction to the CS to close the mobile data link.

[0249] It is understandable that the electronic device can also be determined based on parameters such as the power of the electronic device, the network quality of the mobile data link (for example, information related to the quality of the mobile data link), etc. For details, please refer to the above and will not be explained in detail here.

[0250] It is understood that if the Wi-Fi link quality related information meets preset condition_2, the Wi-Fi link quality is good. Preset condition_2 can be the same as preset condition_1 or different from preset condition_1.

[0251] For example, if the Wi-Fi link quality-related information satisfies preset condition_1, it may specifically include: the data transmission rate of the Wi-Fi link is greater than data transmission rate_1, and if the Wi-Fi link quality-related information satisfies preset condition_2, it may specifically include: the data transmission rate of the Wi-Fi link is greater than data transmission rate_2. Data transmission rate_1 may be the same as data transmission rate_2 or different from data transmission rate_2.

[0252] Of course, preset condition_2 may also include range requirements for other types of parameters (such as bit error rate and latency) in the Wi-Fi link quality related information. For details, please refer to the description of preset condition_1 above and will not be elaborated here.

[0253] Correspondingly, the CS may receive an instruction from the control module to close the mobile data link.

[0254] S606: The CS sends an instruction to the Telephony FWK to close the mobile data link.

[0255] After receiving the instruction to close the mobile data link sent by the control module, the CS may send an instruction to close the mobile data link to the Telephony FWK.

[0256] Accordingly, the Telephony FWK may receive an instruction from the CS to close the mobile data link.

[0257] S607: The Telephony FWK closes the mobile data link.

[0258] After receiving the instruction to close the mobile data link sent by the CS, the Telephony FWK may close the mobile data link. In some embodiments of the present application, the Telephony FWK may call an interface (eg, setInternalDataEnabled) to close the mobile data link.

[0259] S608: The Telephony FWK sends a prompt message to the control module indicating that the mobile data link has been closed.

[0260] It is understandable that since the control module has registered the link connection status callback function, after Telephony FWK closes the mobile data link, it can send a prompt message indicating that the mobile data link has been closed to the control module to notify the control module that the connection status of the mobile data link has changed.

[0261] Correspondingly, the control module may receive the prompt information sent by the Telephony FWK indicating that the mobile data link has been closed.

[0262] S609: The Telephony FWK sends a prompt message to the CS indicating that the mobile data link has been closed.

[0263] After the Telephony FWK closes the mobile data link, it may send a prompt message indicating that the mobile data link has been closed to the CS.

[0264] Correspondingly, the CS can receive the prompt information of the closed mobile data link sent by the Telephony FWK.

[0265] S610: The CS sends a prompt message to the third-party application that the mobile data link has been closed.

[0266] After receiving the prompt information of the closed mobile data link sent by the Telephony FWK, the CS may send the prompt information of the closed mobile data link to the third-party application.

[0267] Correspondingly, the third-party application can receive the prompt information sent by the CS that the mobile data link has been closed.

[0268] S611: The third-party application transfers all data streams on the mobile data link to the Wi-Fi link for transmission.

[0269] After receiving the prompt message sent by the CS that the mobile data link has been closed, the third-party application can transfer all data streams on the mobile data link to the Wi-Fi link for transmission.

[0270] It is understandable that this application does not limit the order of step S602 and step S603.

[0271] It is understandable that, in addition to the link closing decision shown in FIG6 , the electronic device may also make other link closing decisions for scenarios such as excessively high temperature, low battery, and poor link quality.

[0272] In some embodiments of the present application, when the temperature of the electronic device exceeds a temperature threshold_2, the electronic device may shut down either the Wi-Fi link or the mobile data link. Specifically, a control module in the electronic device may obtain the temperature of the electronic device. When the temperature of the electronic device is greater than the temperature threshold_2, the control module may determine to shut down the Wi-Fi link and send an instruction to shut down the Wi-Fi link to the CS. The CS then sends the instruction to shut down the Wi-Fi link to the Wi-Fi link management module. The Wi-Fi link management module may shut down the Wi-Fi link and return a prompt message indicating that the Wi-Fi link has been shut down. Alternatively, when the temperature of the electronic device is greater than the temperature threshold_2, the control module may determine to shut down the mobile data link and send an instruction to shut down the mobile data link to the CS. The CS then sends the instruction to shut down the mobile data link to the Telephony FWK. The Telephony FWK may shut down the mobile data link and return a prompt message indicating that the mobile data link has been shut down.

[0273] In some embodiments of the present application, when the temperature of the electronic device exceeds temperature threshold_2, the electronic device may further determine which link to shut down based on the Wi-Fi link quality and the mobile data link quality. In one possible implementation, when the temperature of the electronic device exceeds temperature threshold_2, if the difference between the Wi-Fi link quality and the mobile data link quality is not significant, the electronic device may shut down the mobile data link. In another possible implementation, when the temperature of the electronic device exceeds temperature threshold_2, if the difference between the Wi-Fi link quality and the mobile data link quality is significant, the electronic device may shut down the link with the worse quality between the Wi-Fi link and the mobile data link.

[0274] It is understood that the difference between the Wi-Fi link quality and the mobile data link quality is not large, which may specifically include: the difference between some or all parameters of the same type in the two pieces of link quality related information (i.e., the Wi-Fi link quality related information and the mobile data link quality related information) is less than the preset threshold_1. It is understood that the preset threshold_1 corresponding to the difference between different types of parameters can be the same or different.

[0275] For example, the quality of the Wi-Fi link and the quality of the mobile data link are not much different, which can specifically include: the difference between the data transmission rate of the Wi-Fi link and the data transmission rate of the mobile data link is less than Y1. It is understood that Y1 can be set according to actual needs and this application does not impose any restrictions on this.

[0276] Similarly, a significant difference between the Wi-Fi link quality and the mobile data link quality may specifically include: the difference between some or all parameters of the same type in the two pieces of link quality-related information (i.e., the Wi-Fi link quality-related information and the mobile data link quality-related information) is greater than a preset threshold_2. It is understood that the preset threshold_2 corresponding to the difference between different types of parameters may be the same or different.

[0277] For example, the difference between the Wi-Fi link quality and the mobile data link quality may be greater than Y2. It is understood that Y2 can be set according to actual needs and is not limited in this application.

[0278] It is understandable that for the same type of parameters in the Wi-Fi link quality related information and the mobile data link quality related information, the preset threshold value _1 corresponding to the difference is smaller than the preset threshold value _2 corresponding to the difference. For example, Y1 is smaller than Y2.

[0279] It is understandable that a link with worse quality refers to a link with lower data transmission rate, higher bit error rate, and greater latency.

[0280] In some embodiments of the present application, electronic devices can prioritize different types of parameters in link quality-related information. For example, the priorities, from high to low, can be: data transmission rate, bit error rate, and latency. If the link with the worse quality obtained for different parameter types is inconsistent, the electronic device may use the link with the worse quality obtained for the parameter type with the higher priority as the reference.

[0281] For example, if the data transmission rate of the Wi-Fi link is greater than the data transmission rate of the mobile data link, the electronic device may determine that the quality of the mobile data link is worse based on the data transmission rate. If the bit error rate of the Wi-Fi link is greater than the bit error rate of the mobile data link, the electronic device may determine that the quality of the Wi-Fi link is worse based on the bit error rate. If the latency of the Wi-Fi link is greater than the latency of the mobile data link, the electronic device may determine that the quality of the Wi-Fi link is worse based on the latency. Since the data transmission rate has a higher priority than the bit error rate, and the bit error rate has a higher priority than the latency, the electronic device will use the result determined based on the data transmission rate as the basis, i.e., the electronic device may determine that the quality of the mobile data link is worse.

[0282] In some embodiments of the present application, if the Wi-Fi link quality and / or the mobile data link quality meet certain conditions, the electronic device may shut down the Wi-Fi link or the mobile data link. In one possible implementation, if the Wi-Fi link quality is poor (for example, the data transmission rate of the Wi-Fi link is less than Data Transmission Rate_3), the electronic device shuts down the Wi-Fi link. In one possible implementation, if the mobile data link quality is poor (for example, the data transmission rate of the mobile data link is less than Data Transmission Rate_4), the electronic device shuts down the mobile data link. In one possible implementation, if the Wi-Fi link quality is poor and the mobile data link quality is good (for example, the data transmission rate of the Wi-Fi link is less than Data Transmission Rate_3 and the data transmission rate of the mobile data link is greater than Data Transmission Rate_5), the electronic device shuts down the Wi-Fi link. In one possible implementation, if the mobile data link quality is poor and the Wi-Fi link quality is good (for example, the data transmission rate of the mobile data link is less than Data Transmission Rate_2 and the data transmission rate of the Wi-Fi link is greater than Data Transmission Rate_1), the electronic device shuts down the mobile data link.

[0283] It is understood that data rate_3 can be the same as data rate_1 or different from data rate_1. Data rate_4 can be the same as data rate_2 or different from data rate_2. Data rate_3, data rate_4, and data rate_5 can be set according to actual needs and are not limited in this application.

[0284] In some embodiments of the present application, when the battery level of an electronic device falls below a preset battery level_1, the electronic device may shut down the Wi-Fi link or mobile data link. The specific implementation method can be found above and will not be described in detail here. It is understood that the preset battery level_1 may range from [0%, 100%], and its specific value may be set based on actual needs, and this application does not impose any restrictions on this. For example, the preset battery level_1 may be 20%.

[0285] 3. The data transmission is restored from being transmitted through one of the Wi-Fi link and the mobile data link to being transmitted through the Wi-Fi link and the mobile data link (as shown in FIG7 ).

[0286] When a third-party application in an electronic device transmits data through only one of the Wi-Fi link and the mobile data link, the electronic device can make a new decision to open the link in response to scenarios such as lower temperature, increased battery power, and poor quality of the currently opened link.

[0287] The following describes one specific implementation method of link opening decision by way of example with reference to FIG. 7 .

[0288] S701: The control module registers a Wi-Fi link quality acquisition function.

[0289] S702: The Wi-Fi link management module sends Wi-Fi link quality related information to the control module.

[0290] It is understandable that the specific implementation of step S701 and step S702 can refer to step S501 and step S502, and will not be repeated here.

[0291] It is understood that the control module can also register a link connection status callback function (such as step S601). This application does not limit the order of registering the link connection status callback function and registering the Wi-Fi link quality acquisition function. The relevant description of registering the link connection status callback function can be referred to above and will not be repeated here.

[0292] S703: The temperature sensor detects the temperature of the electronic device and sends the temperature of the electronic device to the control module.

[0293] It is understandable that the specific implementation of step S703 can refer to step S503 and step S602, which will not be repeated here.

[0294] Similar to the above, in some embodiments of the present application, when the electronic device executes steps S701-S703, the Wi-Fi link may not be enabled. In still other embodiments of the present application, when the electronic device executes steps S701-S703, the Wi-Fi link is enabled, and the electronic device may transmit data only via the Wi-Fi link.

[0295] S704: The control module determines whether the entire temperature of the electronic device is less than a temperature threshold_3, and determines whether the Wi-Fi link quality related information satisfies a preset condition_3.

[0296] After the control module receives the temperature of the entire electronic device sent by the temperature sensor, it can determine whether the temperature of the entire electronic device is less than the temperature threshold _3. It is understandable that the temperature threshold _3 can be set according to actual needs, and this application does not limit this. For example, the temperature threshold _3 can be 40 degrees Celsius. Similar to the temperature threshold _1 and the temperature threshold _2, the temperature threshold _3 can also be set within a specific temperature range (for example, 39 degrees Celsius to 40 degrees Celsius). It is understandable that the temperature threshold _3 is not greater than the temperature threshold _2. Preferably, the temperature threshold _3 is less than the temperature threshold _2.

[0297] After obtaining the Wi-Fi link quality related information, the control module may also determine whether the Wi-Fi link quality related information meets preset condition 3. If the Wi-Fi link quality related information meets preset condition 3, the Wi-Fi link quality is poor.

[0298] It can be understood that the Wi-Fi link quality related information satisfies the preset condition_3 specifically means that some or all parameters in the Wi-Fi link quality related information meet the preset range requirements.

[0299] Taking the Wi-Fi link quality related information including the data transmission rate of the Wi-Fi link as an example, the Wi-Fi link quality related information satisfies preset condition_3, which may specifically include: the data transmission rate of the Wi-Fi link is less than data transmission rate_3.

[0300] Of course, in addition to the data transmission rate, the electronic device can also determine preset condition_3 in combination with parameters included in the Wi-Fi link quality related information such as bit error rate and latency. It is understood that the description of preset condition_3 can refer to the description of preset condition_1 in step S504, and will not be elaborated here.

[0301] S705: When the temperature of the electronic device is lower than the temperature threshold_3 and the Wi-Fi link quality information satisfies the preset condition_3, the control module sends an instruction to the CS to start the mobile data link.

[0302] When the temperature of the electronic device is lower than the temperature threshold_3 and the Wi-Fi link quality information satisfies the preset condition_3, the control module may send an instruction to the CS to start the mobile data link. Correspondingly, the CS may receive the instruction sent by the control module to start the mobile data link.

[0303] It is understood that when the Wi-Fi link quality related information meets preset condition 3, the network quality of the Wi-Fi link is poor. The description of preset condition 3 can refer to the description of preset condition 1 and preset condition 2 above, and will not be elaborated here.

[0304] S706: The CS sends an instruction to the Telephony FWK to open the mobile data link.

[0305] After receiving the instruction to start the mobile data link sent by the control module, the CS may send an instruction to start the mobile data link to the Telephony FWK.

[0306] Accordingly, the Telephony FWK can receive the instruction to start the mobile data link sent by the CS.

[0307] S707: Telephony FWK opens the mobile data link.

[0308] S708: The Telephony FWK sends a prompt message to the control module indicating that the mobile data link has been opened.

[0309] S709: The Telephony FWK sends a prompt message to the CS indicating that the mobile data link has been opened.

[0310] S710: The CS sends a prompt message to the third-party application indicating that the mobile data link has been opened.

[0311] It is understandable that the specific implementation of step S707 and step S710 can refer to step S510 and step S513, and will not be repeated here.

[0312] S711: The third-party application transfers all or part of the data flow on the Wi-Fi link to the mobile data link for transmission.

[0313] In some embodiments of the present application, after the third-party application receives the prompt information sent by the CS that the mobile data link has been opened, the third-party application can transfer part of the data stream originally transmitted on the Wi-Fi link to the mobile data link for transmission.

[0314] For example, data stream D1 and data stream D2 in a three-party application are originally transmitted on a Wi-Fi link. After the three-party application receives the prompt information sent by the CS that the mobile data link has been opened, it can transmit data stream D1 through the mobile data link and transmit data stream D2 through the Wi-Fi link.

[0315] In some embodiments of the present application, if the quality of the Wi-Fi link is very low (for example, the data transmission rate of the Wi-Fi link is less than data transmission rate_6, data transmission rate_6 is less than data transmission rate_3, and the absolute value of the difference between data transmission rate_6 and data transmission rate_3 is less than a preset value), the third-party application can transfer all data streams originally transmitted on the Wi-Fi link to the mobile data link for transmission. It is understood that the third-party application can obtain information related to the Wi-Fi link quality through the Wi-Fi link management module to determine the quality of the Wi-Fi link.

[0316] For example, data streams D1 and D2 in a third-party application are originally transmitted over a Wi-Fi link. After the third-party application receives a prompt message from the CS indicating that the mobile data link has been enabled, if the data transmission rate of the Wi-Fi link is less than data transmission rate_6, the third-party application can transmit data streams D1 and D2 over the mobile data link.

[0317] In some embodiments of the present application, based on the above steps, the electronic device may also determine whether to shut down the Wi-Fi link based on the current Wi-Fi link quality. Specifically, steps S712 to S723 are as follows:

[0318] S712: When the Wi-Fi link quality related information meets the preset condition_4, the control module sends an instruction to the CS to open the mobile data link and close the Wi-Fi link.

[0319] If the Wi-Fi link quality information satisfies preset condition 4, the control module may send an instruction to the CS to enable the mobile data link and disable the Wi-Fi link. It is understood that the Wi-Fi link quality when the Wi-Fi link quality information satisfies preset condition 4 is worse than the Wi-Fi link quality when the Wi-Fi link quality information satisfies preset condition 3.

[0320] For example, if the Wi-Fi link quality-related information satisfies preset condition_3, it may specifically include: the data transmission rate of the Wi-Fi link is less than data transmission rate_3. If the Wi-Fi link quality-related information satisfies preset condition_4, it may specifically include: the data transmission rate of the Wi-Fi link is less than data transmission rate_6. Data transmission rate_6 is less than data transmission rate_3, and the absolute value of the difference between data transmission rate_6 and data transmission rate_3 is less than a preset value.

[0321] Of course, the Wi-Fi link quality-related information satisfies preset condition 3 and the Wi-Fi link quality-related information satisfies preset condition 4. The Wi-Fi link quality-related information may also involve parameters such as bit error rate and latency in the Wi-Fi link quality-related information. For details, please refer to the above and will not be explained here.

[0322] Correspondingly, the CS may receive instructions from the control module to start the mobile data link and to shut down the Wi-Fi link.

[0323] S713: The CS sends an instruction to the Telephony FWK to open the mobile data link.

[0324] S714: The CS sends an instruction to close the Wi-Fi link to the Wi-Fi link management module.

[0325] After receiving the instruction to close the Wi-Fi link sent by the control module, the CS may send an instruction to close the Wi-Fi link to the Wi-Fi link management module.

[0326] Correspondingly, the Wi-Fi link management module may receive an instruction to close the Wi-Fi link sent by the CS.

[0327] S715: The Wi-Fi link management module closes the Wi-Fi link.

[0328] After receiving the instruction to close the Wi-Fi link sent by the CS, the Wi-Fi link management module may close the Wi-Fi link.

[0329] S716: The Wi-Fi link management module sends a prompt message indicating that the Wi-Fi link has been closed to the control module.

[0330] After the Wi-Fi link management module closes the Wi-Fi link, it may send a prompt message indicating that the Wi-Fi link has been closed to the control module, so as to notify the control module that the Wi-Fi link has been closed.

[0331] Accordingly, the control module may receive a prompt message from the Wi-Fi link management module indicating that the Wi-Fi link has been closed. In some embodiments of the present application, after receiving the prompt message, the control module may update the current connection state of the saved Wi-Fi link from an open state to a closed state.

[0332] S717: The Wi-Fi link management module sends a prompt message indicating that the Wi-Fi link has been closed to the CS.

[0333] After the Wi-Fi link management module closes the Wi-Fi link, it may send a prompt message indicating that the Wi-Fi link has been closed to the CS, so as to notify the CS that the Wi-Fi link has been closed.

[0334] Correspondingly, the CS may receive the prompt information of the closed Wi-Fi link sent by the Wi-Fi link management module.

[0335] S718: The CS sends a prompt message to the third-party application that the Wi-Fi link has been closed.

[0336] After receiving the prompt information of the closed Wi-Fi link sent by the Wi-Fi link management module, the CS may send the prompt information of the closed Wi-Fi link to the third-party application.

[0337] Correspondingly, the third-party application can receive the prompt information sent by the CS that the Wi-Fi link has been closed.

[0338] S719: Telephony FWK opens the mobile data link.

[0339] S720: The Telephony FWK sends a prompt message to the control module indicating that the mobile data link has been opened.

[0340] S721: The Telephony FWK sends a prompt message to the CS indicating that the mobile data link has been opened.

[0341] S722: The CS sends a prompt message to the third-party application indicating that the mobile data link has been opened.

[0342] It is understandable that the specific implementation of step S713 and step S719-step S722 can refer to step S509-step S513, and step S706-step S710, which will not be repeated here.

[0343] S723: The third-party application transfers all data streams on the Wi-Fi link to the mobile data link for transmission.

[0344] It is understandable that after the third-party application receives the prompt information sent by the Wi-Fi link management module that the Wi-Fi link has been closed, and receives the prompt information sent by the Telephony FWK that the mobile data link has been opened, it can transfer all data streams originally transmitted through the Wi-Fi link to the mobile data link for transmission.

[0345] It is understandable that this application does not limit the order of step S702 and step S703, and does not limit the order of step S713 and step S714.

[0346] It is understandable that when the Wi-Fi link is in the off state and the mobile data link is in the on state, the electronic device may also use a link opening decision similar to that shown in FIG. 7 to determine whether to open the Wi-Fi link.

[0347] It is understandable that, in addition to the link opening decision shown in FIG. 7 , the electronic device may also make other link opening decisions for scenarios such as temperature reduction, power increase, and poor quality of the currently opened link.

[0348] In some embodiments of the present application, when the temperature of the electronic device is lower than the temperature threshold_3, the electronic device may turn on the closed link between the Wi-Fi link and the mobile data link without considering the quality of the link.

[0349] In some embodiments of the present application, when the temperature of the electronic device is less than the temperature threshold_3, the electronic device may determine whether to open the link based on the Wi-Fi link quality and the mobile data link quality. In one possible implementation, the Wi-Fi link is in the open state and the mobile data link is in the closed state. When the temperature of the electronic device is less than the temperature threshold_3, if the quality of the mobile data link is good (for example, the data transmission rate of the mobile data link is greater than the data transmission rate_1), the electronic device may open the mobile data link. Similarly, when the Wi-Fi link is in the closed state and the mobile data link is in the open state, the electronic device may also determine whether to open the Wi-Fi link using the above method.

[0350] In some embodiments of the present application, when the Wi-Fi link quality and / or the mobile data link quality meet certain conditions, the electronic device can enable the Wi-Fi link or the mobile data link. In one possible implementation, the Wi-Fi link is in an on state and the mobile data link is in a off state. If the mobile data link quality is good (for example, the data transmission rate of the mobile data link is greater than data transmission rate_1) and the Wi-Fi link quality is poor (for example, the data transmission rate of the Wi-Fi link is less than data transmission rate_3), the electronic device can enable the mobile data link. Similarly, when the Wi-Fi link is in a off state and the mobile data link is in an on state, if the Wi-Fi link quality is good (for example, the data transmission rate of the Wi-Fi link is greater than data transmission rate_1) and the mobile data link quality is poor (for example, the data transmission rate of the mobile data link is less than data transmission rate_2), the electronic device can enable the Wi-Fi link. In one possible implementation, the Wi-Fi link is in an on state and the mobile data link is in a off state. If the Wi-Fi link quality is poor, the electronic device can enable the mobile data link. Similarly, when the Wi-Fi link is in a closed state and the mobile data link is in an open state, if the quality of the mobile data link is poor, the electronic device may open the Wi-Fi link.

[0351] In some embodiments of the present application, when the battery level of an electronic device exceeds a preset battery level_2, the electronic device may shut down the Wi-Fi link or mobile data link. The specific implementation method can be found above and will not be described in detail here. It is understood that the preset battery level_2 may range from [0%, 100%], and its specific value may be set based on actual needs, and this application does not impose any restrictions on this. For example, the preset battery level_2 may be 90%.

[0352] Some embodiments of the present application provide an electronic device, a computer storage medium, a chip or a computer program product, which can enable the electronic device to execute any of the methods in the above-mentioned method embodiments. For details, please refer to the above-mentioned method embodiments and will not be repeated here.

[0353] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A data transmission method, characterized in that: The method comprises: When a first application in an electronic device transmits data via a first network link, the first application requests the electronic device to open a second network link; When a first preset condition is met and the first application meets a second preset condition, the electronic device responds to the request and opens the second network link, so that the first application transmits data through the first network link and the second network link; the first preset condition is related to the temperature of the electronic device and / or the network quality of the first network link and / or the power of the electronic device; When the first preset condition is met and the first application does not meet the second preset condition, the electronic device does not respond to the request, and the first application transmits data only through the first network link; The first network link and the second network link are data transmission links corresponding to different types of networks.

2. The method according to claim 1, characterized in that The first application satisfies the second preset condition, which specifically includes: the first application is a preset application; wherein the first application being a preset application includes: the first application is an application in a preset application list, or the first application is an application of a preset category.

3. The method according to claim 2, characterized in that The preset category of applications includes applications whose security requirements meet preset conditions.

4. The method according to claim 2 or 3, characterized in that The preset category of applications includes applications that require identity authentication through a user identity module SIM card of the electronic device when opened, the first network link is a Wi-Fi link, and the second network link is a mobile data link.

5. The method according to any one of claims 2 to 4, characterized in that: The preset category of applications includes delay-sensitive applications; the delay-sensitive applications are applications that require a data transmission delay less than a preset delay when in use.

6. The method according to any one of claims 1 to 5, characterized in that Before the first application requests the electronic device to open the second network link, the method further includes: Determining, by the electronic device, whether the first preset condition is met; After the first application requests the electronic device to open the second network link, the method further includes: If the first preset condition is met, the electronic device determines whether the first application meets the second preset condition.

7. The method according to any one of claims 1 to 6, characterized in that The satisfying of the first preset condition specifically includes: The temperature of the electronic device is greater than a first temperature threshold, and / or the network quality of the first network link satisfies a first network quality condition; the network quality of the first network link satisfies the first network quality condition including that the data transmission rate of the first network link is greater than a first data transmission rate.

8. The method according to any one of claims 1 to 7, characterized in that Before the first application requests the electronic device to open the second network link, the method further includes: the electronic device displays a first interface, the first interface includes a first icon corresponding to the second network link, and the first icon is in a first state; After the electronic device responds to the request and opens the second network link, the method further includes: the electronic device displays a second interface, the second interface includes the first icon, and the first icon is in a second state.

9. The method according to any one of claims 1 to 8, characterized in that The method further includes: when the electronic device performs data transmission via the first network link and the second network link, If a third preset condition is met, the electronic device closes the first network link; or, If a fourth preset condition is met, the electronic device closes the second network link; or, If the third preset condition and the fourth preset condition are met at the same time, the electronic device closes the first network link or the second network link; if the third preset condition is met and the fourth preset condition is not met, the electronic device closes the first network link; if the fourth preset condition is met and the third preset condition is not met, the electronic device closes the second network link; The third preset condition includes at least one of the following: the temperature of the electronic device is greater than the second temperature threshold, the power of the electronic device is less than the first power, the amount of data transmitted by the first network link is less than the first amount of data, the network quality of the second network link meets the second network quality condition, and the network quality of the first network link meets the third network quality condition; The fourth preset condition includes at least one of the following: the temperature of the electronic device is greater than the second temperature threshold, the power of the electronic device is less than the first power, the amount of data transmitted by the second network link is less than the second amount of data, the network quality of the second network link satisfies the fourth network quality condition, and the network quality of the first network link satisfies the fifth network quality condition.

10. The method according to any one of claims 1 to 9, characterized in that The method further comprises: After the electronic device turns off the first network link, if a fifth preset condition is met, the electronic device turns on the first network link; or, After the electronic device turns off the second network link, if a sixth preset condition is met, the electronic device turns on the second network link; The fifth preset condition includes at least one of the following: the network quality of the second network link meets the sixth network quality condition, the temperature of the electronic device is less than the third temperature threshold, and the power of the electronic device is greater than the second power; The sixth preset condition includes at least one of the following: the network quality of the first network link satisfies the seventh network quality condition, the temperature of the electronic device is lower than the third temperature threshold, and the power of the electronic device is higher than the second power.

11. The method according to claim 10, characterized in that The parameter types involved in the third preset condition are less than the parameter types involved in the fifth preset condition or the parameter types involved in the sixth preset condition, and the parameter types involved in the fourth preset condition are less than the parameter types involved in the fifth preset condition or the parameter types involved in the sixth preset condition.

12. The method according to claim 10 or 11, characterized in that The third preset condition is that the temperature of the electronic device is greater than the second temperature threshold; the fifth preset condition is that the network quality of the second network link satisfies the sixth network quality condition, and the temperature of the electronic device is less than the third temperature threshold.

13. A data transmission method, characterized in that: The method comprises: The electronic device performs data transmission via the first network link and the second network link; If a third preset condition is met, the electronic device closes the first network link; or, If a fourth preset condition is met, the electronic device closes the second network link; or, If the third preset condition and the fourth preset condition are met at the same time, the electronic device closes the first network link or the second network link; if the third preset condition is met and the fourth preset condition is not met, the electronic device closes the first network link; if the fourth preset condition is met and the third preset condition is not met, the electronic device closes the second network link; The third preset condition includes at least one of the following: the temperature of the electronic device is greater than the second temperature threshold, the power of the electronic device is less than the first power, the amount of data transmitted by the first network link is less than the first amount of data, the network quality of the second network link meets the second network quality condition, and the network quality of the first network link meets the third network quality condition; The fourth preset condition includes at least one of the following: the temperature of the electronic device is greater than the second temperature threshold, the power of the electronic device is less than the first power, the amount of data transmitted by the second network link is less than the second amount of data, the network quality of the second network link satisfies the fourth network quality condition, and the network quality of the first network link satisfies the fifth network quality condition.

14. The method according to claim 13, characterized in that The method further comprises: After the electronic device turns off the first network link, if a fifth preset condition is met, the electronic device turns on the first network link; or, After the electronic device turns off the second network link, if a sixth preset condition is met, the electronic device turns on the second network link; The fifth preset condition includes at least one of the following: the network quality of the second network link meets the sixth network quality condition, the temperature of the electronic device is less than the third temperature threshold, and the power of the electronic device is greater than the second power; The sixth preset condition includes at least one of the following: the network quality of the first network link satisfies the seventh network quality condition, the temperature of the electronic device is less than a third temperature threshold, and the power of the electronic device is greater than a second power.

15. The method according to claim 14, characterized in that The types of parameters involved in the third preset condition are less than the types of parameters involved in the fifth preset condition or the types of parameters involved in the sixth preset condition, and the types of parameters involved in the fourth preset condition are less than the types of parameters involved in the fifth preset condition or the types of parameters involved in the sixth preset condition.

16. The method according to claim 14 or 15, characterized in that The method further comprises at least one of the following: The third preset condition is that the temperature of the electronic device is greater than the second temperature threshold; The fifth preset condition is that the network quality of the second network link satisfies the sixth network quality condition, and the temperature of the electronic device is less than the third temperature threshold; The first network link is a Wi-Fi link, and the second network link is a mobile data link; Before the first application requests the electronic device to open the second network link, the electronic device displays a first interface, the first interface includes a first icon corresponding to the second network link, and the first icon is in a first state; After the electronic device responds to the request of the first application and opens the second network link, the electronic device displays a second interface, where the second interface includes the first icon, and the first icon is in a second state.

17. An electronic device, comprising one or more memories and one or more processors, characterized in that: The memory is used to store a computer program; the processor is used to call the computer program so that the electronic device executes the method described in any one of claims 1-12 or 13-16.

18. A computer storage medium, characterized in that: include: Computer instructions; when the computer instructions are executed on an electronic device, the electronic device executes the method described in any one of claims 1-12 or 13-16.

19. A data transmission method, characterized in that: The method comprises: When the electronic device transmits data via the first network link, if a first preset condition is met, the electronic device restricts the application from opening the second network link; When a first application in the electronic device transmits data through the first network link, the first application requests the electronic device to open the second network link; If the electronic device restricts the application from opening the second network link, when the first application meets a second preset condition, the electronic device responds to the request and opens the second network link, so that the first application transmits data through the first network link and the second network link; the first preset condition is related to the temperature of the electronic device and / or the network quality of the first network link and / or the power of the electronic device; If the electronic device restricts applications from opening the second network link, and if the first application does not meet the second preset condition, the electronic device does not respond to the request, and the first application transmits data only through the first network link; The first network link and the second network link are data transmission links corresponding to different types of networks; The first application satisfies the second preset condition, specifically including: the first application is a preset application; wherein the first application being a preset application includes: the first application is an application in a preset application list, or the first application is an application of a preset category; The preset category of applications includes at least one of the following: applications whose security requirements meet preset conditions, and applications that require identity authentication through the user identity module SIM card of the electronic device when turned on; when the first application is an application of the preset category, the first network link is a Wi-Fi link, and the second network link is a mobile data link.

20. The method of claim 19, wherein: The preset category of applications includes delay-sensitive applications; the delay-sensitive applications are applications that require a data transmission delay less than a preset delay when in use.

21. The method according to claim 19 or 20, characterized in that Before the first application requests the electronic device to open the second network link, the method further includes: Determining, by the electronic device, whether the first preset condition is met; After the first application requests the electronic device to open the second network link, the method further includes: If the first preset condition is met, the electronic device determines whether the first application meets the second preset condition.

22. The method according to any one of claims 19 to 21, characterized in that The satisfying of the first preset condition specifically includes: The temperature of the electronic device is greater than a first temperature threshold, and / or the network quality of the first network link satisfies a first network quality condition; the network quality of the first network link satisfies the first network quality condition including that the data transmission rate of the first network link is greater than a first data transmission rate.

23. The method according to any one of claims 19 to 22, characterized in that Before the first application requests the electronic device to open the second network link, the method further includes: the electronic device displays a first interface, the first interface includes a first icon corresponding to the second network link, and the first icon is in a first state; After the electronic device responds to the request and opens the second network link, the method further includes: the electronic device displays a second interface, the second interface includes the first icon, and the first icon is in a second state.

24. The method according to any one of claims 19 to 23, characterized in that The method further includes: when the electronic device performs data transmission via the first network link and the second network link, If a third preset condition is met, the electronic device closes the first network link; or, If a fourth preset condition is met, the electronic device closes the second network link; or, If the third preset condition and the fourth preset condition are met at the same time, the electronic device closes the first network link or the second network link; if the third preset condition is met and the fourth preset condition is not met, the electronic device closes the first network link; if the fourth preset condition is met and the third preset condition is not met, the electronic device closes the second network link; The third preset condition includes at least one of the following: the temperature of the electronic device is greater than the second temperature threshold, the power of the electronic device is less than the first power, the amount of data transmitted by the first network link is less than the first amount of data, the network quality of the second network link meets the second network quality condition, and the network quality of the first network link meets the third network quality condition; The fourth preset condition includes at least one of the following: the temperature of the electronic device is greater than the second temperature threshold, the power of the electronic device is less than the first power, the amount of data transmitted by the second network link is less than the second amount of data, the network quality of the second network link satisfies the fourth network quality condition, and the network quality of the first network link satisfies the fifth network quality condition.

25. The method according to any one of claims 19 to 24, characterized in that The method further comprises: After the electronic device turns off the first network link, if a fifth preset condition is met, the electronic device turns on the first network link; or, After the electronic device turns off the second network link, if a sixth preset condition is met, the electronic device turns on the second network link; The fifth preset condition includes at least one of the following: the network quality of the second network link meets the sixth network quality condition, the temperature of the electronic device is less than the third temperature threshold, and the power of the electronic device is greater than the second power; The sixth preset condition includes at least one of the following: the network quality of the first network link meets the seventh network quality condition, the temperature of the electronic device is lower than the third temperature threshold, the power of the electronic device is higher than the second Battery level.

26. The method of claim 25, wherein: The parameter types involved in the third preset condition are less than the parameter types involved in the fifth preset condition or the parameter types involved in the sixth preset condition, and the parameter types involved in the fourth preset condition are less than the parameter types involved in the fifth preset condition or the parameter types involved in the sixth preset condition.

27. The method according to claim 25 or 26, characterized in that The third preset condition is that the temperature of the electronic device is greater than the second temperature threshold; the fifth preset condition is that the network quality of the second network link satisfies the sixth network quality condition, and the temperature of the electronic device is less than the third temperature threshold.

Citation Information

Patent Citations

  • A data transmission method and related equipment

    CN116347570B

  • Data transmission method and data transmission device

    CN105764079A

  • Network switching method and device, storage medium and electronic equipment

    CN112333800A

  • Connection management method and related equipment

    CN113316199A

  • Data transmission method and related equipment

    CN116347570A