Content transmission method and electronic device

By adjusting the transmission rate and role of communication devices in electronic devices, the problem of excessive temperature in electronic devices during the transmission of large amounts of content was solved, achieving rapid and effective cooling and power consumption control, thereby improving the execution efficiency of content transmission services and user experience.

WO2025261243A1PCT designated stage Publication Date: 2025-12-26HUAWEI TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/100525
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-06-18
Filing Date
2025-06-11
Publication Date
2025-12-26

AI Technical Summary

Technical Problem

When electronic devices transmit large amounts of content, the high power consumption and heat can cause the device temperature to rise, affecting business operations and normal operation. Existing methods for reducing CPU load are not very effective.

Method used

By reducing the transmission rate and communication metrics of electronic devices, such as channel bandwidth and the number of antennas, the device role is adjusted to optimize power consumption, achieving rapid and effective cooling and power control.

Benefits of technology

It effectively reduces device temperature rise, prevents content transmission between devices from being affected, and improves business execution efficiency and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025100525_26122025_PF_FP_ABST
    Figure CN2025100525_26122025_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the present application are a content transmission method and an electronic device. The method is applied to a first electronic device. The method comprises: transmitting content to a second electronic device, wherein the content corresponds to a first service; and when it is determined that the temperature of the first electronic device meets a first condition, or, in response to a first indication from the second electronic device, reducing the rate of transmitting the content to the second electronic device. The method can mitigate or avoid the problem of an increase in the temperature of a device affecting the execution of a content transmission service between devices and the normal operation of the device, thereby facilitating the smooth and efficient execution of the content transmission service.
Need to check novelty before this filing date? Find Prior Art

Description

A content transmission method and electronic device

[0001] Cross-references to related applications

[0002] This application claims priority to Chinese Patent Application No. 202410793695.7, filed on June 18, 2024, entitled "A Content Transmission Method and Electronic Device", the entire contents of which are incorporated herein by reference. Technical Field

[0003] This application relates to the field of electronic device technology, and in particular to a content transmission method and electronic device. Background Technology

[0004] Currently, some electronic devices can establish peer-to-peer (P2P) communication with other electronic devices to transfer content, such as performing cloning or content sharing. In scenarios involving large-scale content transfers, the power consumption of these devices is typically high, resulting in significant heat generation. This can easily lead to overheating, affecting service execution and normal operation. One current approach to address this is to reduce the load on the central processing unit (CPU) to decrease CPU power consumption, thereby reducing heat generation and mitigating temperature increases. However, this method is relatively ineffective, and the problem of overheating still potentially impacting service execution and normal operation remains. Summary of the Invention

[0005] This application provides a content transmission method and electronic device to mitigate or avoid the problem of device temperature rise affecting the execution of content transmission services between devices and the normal operation of devices, thereby promoting the smooth and efficient execution of content transmission services.

[0006] In a first aspect, embodiments of this application provide a content transmission method applied to a first electronic device. The method includes: transmitting content to a second electronic device; wherein the content corresponds to a first service; and, when it is determined that the temperature of the first electronic device meets a first condition, or, in response to a first instruction from the second electronic device, reducing the rate at which content is transmitted to the second electronic device. Optionally, the first instruction is used to instruct the first electronic device to reduce the rate at which content is transmitted to the second electronic device.

[0007] In this method, the first electronic device reduces the power consumption and heat generated by its communication device by lowering the content transmission rate, thereby mitigating the temperature rise or achieving cooling. Since the communication device generates significant heat during content transmission, reducing this heat effectively slows down the temperature rise or cools the first electronic device, resulting in better temperature control. After reducing the content transmission rate of the first electronic device, the content receiving end, the second electronic device, can also reduce its content reception rate, thus lowering the power consumption of its communication device and further mitigating the temperature rise or cooling the second electronic device, achieving even better temperature control. Furthermore, the first electronic device can adjust the content transmission rate based on its own temperature or an indication from the second electronic device, making it easier to meet the cooling needs of both ends and ensuring effective cooling at both ends, thus demonstrating high practicality.

[0008] In one possible design, the first electronic device includes a communication device for transmitting content to the second electronic device; the reduction of the rate of transmitting content to the second electronic device includes: reducing the rate of transmitting content to the second electronic device by reducing the communication parameters of the communication device; wherein the communication parameters include at least one of the following: channel bandwidth, number of antennas, and power.

[0009] In this method, the first electronic device can quickly and effectively reduce the rate at which it transmits content to the second electronic device by lowering the specific communication parameters of the communication device, thereby achieving a rapid and effective cooling effect.

[0010] In one possible design, the method further includes: if the communication metrics include the channel bandwidth and / or the number of antennas, sending a second indication to the second electronic device; wherein the second indication is used to indicate a target communication metric, the target communication metric being used as a reduced communication metric of the communication device.

[0011] In this method, after the first electronic device lowers the performance of the communication device, it instructs the second electronic device to make corresponding adjustments. This ensures that the communication devices of the first electronic device and the second electronic device maintain the same configuration, thereby ensuring that the two communication devices can communicate smoothly.

[0012] In one possible design, the first condition includes: the temperature of the first electronic device is greater than or equal to a first temperature threshold; or, the temperature of the first electronic device falls within a set first temperature range. Optionally, the lower limit of the first temperature range may be greater than or equal to a set temperature.

[0013] Based on this method, the first electronic device can reduce the content transmission rate (i.e., content sending rate) when the temperature is too high, thereby achieving the effect of cooling or preventing the temperature from rising further, and thus reducing or avoiding the impact of temperature rise on content transmission services between devices or the normal operation of the devices.

[0014] In one possible design, after reducing the rate at which content is transmitted to the second electronic device, the method further includes: increasing the rate at which content is transmitted to the second electronic device when the temperature of the first electronic device meets a second condition, or in response to a third instruction from the second electronic device. Optionally, the third instruction is used to instruct the first electronic device to increase the rate at which content is transmitted to the second electronic device.

[0015] In this method, the first electronic device can improve the efficiency of content transmission services by increasing the rate at which it transmits content to the second electronic device. Furthermore, the first electronic device can adjust the content transmission rate based on its own temperature or on indications from the second electronic device, making it easier to meet the rate requirements of both ends and thus highly practical.

[0016] In one possible design, increasing the rate of content transmission to the second electronic device includes: increasing the rate of content transmission to the second electronic device by improving the communication performance of the communication devices of the first electronic device.

[0017] In one possible design, the method further includes: if the communication metrics include the channel bandwidth and / or the number of antennas, sending a fifth indication to the second electronic device; wherein the fifth indication is used to indicate the improved communication metrics of the communication device.

[0018] In this method, the first electronic device can quickly and effectively increase the rate at which it transmits content to the second electronic device by improving the specific communication indicators of the communication device.

[0019] In one possible design, the second condition includes: the temperature of the first electronic device is less than or equal to a second temperature threshold; or, the temperature of the first electronic device falls within a predetermined second temperature range. Based on this method, the first electronic device can increase its content transmission rate at lower temperatures, thereby improving the efficiency of content transmission services while avoiding the impact of excessively high temperatures on inter-device content transmission or normal device operation.

[0020] In one possible design, before transmitting content to the second electronic device, the method further includes: establishing peer-to-peer (P2P) communication with the second electronic device; determining the device roles of the first electronic device and / or the second electronic device based on the first service; wherein the device role of either electronic device is either the manager (GO) of the P2P communication or the managed (GC) of the P2P communication; and sending a fourth indication to the second electronic device, the fourth indication being used to indicate the device roles of the first electronic device and / or the second electronic device. Optionally, determining the device roles of the first electronic device and / or the second electronic device based on the first service includes: determining the device roles of the first electronic device and / or the second electronic device based on the power consumption of the first electronic device performing the first service and the power consumption of the second electronic device performing the first service. Wherein, when the power consumption of the first electronic device performing the first service is lower than the power consumption of the second electronic device performing the first service, the device role of the first electronic device can be the GO, and the device role of the second electronic device can be the GC. When the power consumption of the first electronic device performing the first service is higher than the power consumption of the second electronic device performing the first service, the device role of the first electronic device can be the GC, and the device role of the second electronic device can be the GO. The GO can also be replaced by a master device, and the GC can also be replaced by a non-master device.

[0021] Based on this method, the first electronic device can configure the device roles of the first electronic device and the second electronic device during the content transmission process based on the required content transmission service (i.e., the first service). This helps to avoid high-power processing being concentrated on the same device, thereby reducing the risk of excessive power consumption of the device and ensuring optimal overall power consumption during the content transmission process.

[0022] In one possible design, when the first service is a cloning service, the first electronic device acts as the GC (GC); or, when the first service is a file-sharing service, the first electronic device acts as the GO (Go). The cloning service involves copying some or all of the content from the first electronic device to a second electronic device. The file-sharing service involves sharing files from the first electronic device to the second electronic device, where the file size is greater than or equal to a predetermined data size.

[0023] In this method, during the cloning process, the load on the sending end (the first electronic device) is significantly higher than the load on the receiving end (the second electronic device). Therefore, in the cloning scenario, deploying the power-intensive GO role on the receiving end and the power-efficient GC role on the sending end avoids concentrating high-power processing on the sending end, thereby reducing the risk of excessive power consumption on the sending end and helping to ensure the smooth and efficient execution of the cloning process. Similarly, during the file-sharing process, the load on the receiving end (the second electronic device) is significantly higher than the load on the sending end (the first electronic device). Therefore, in the file-sharing scenario, deploying the power-intensive GO role on the sending end and the power-efficient GC role on the receiving end avoids concentrating high-power processing on the sending end, thereby reducing the risk of excessive power consumption on the sending end and helping to ensure the smooth and efficient execution of the file-sharing process.

[0024] In one possible design, the method further includes: when a communication connection between the first electronic device and the second electronic device is detected to be disconnected, generating and saving transmission progress information corresponding to the first service; wherein the transmission progress information is used to indicate the transmission progress of the content corresponding to the first service; after a communication connection between the first electronic device and the second electronic device is detected to be re-established, determining the transmission progress of the content corresponding to the first service based on the transmission progress information, and continuing to transmit the content corresponding to the first service to the second electronic device based on the transmission progress of the content corresponding to the first service.

[0025] In this method, after the connection between the first electronic device and the second electronic device is broken, the first electronic device can save the breakpoint information of the content transmission service, and can continue to execute the content transmission service from the breakpoint after re-establishing the connection with the second electronic device, thereby realizing breakpoint resume transmission. Therefore, retransmission can be avoided, thereby improving the overall processing efficiency.

[0026] In one possible design, reducing the rate at which content is transmitted to the second electronic device includes: reducing the rate at which content is transmitted to the second electronic device to a target rate; wherein the target rate is the product of a reference rate and a target ratio, the reference rate is the current rate at which content is transmitted to the second electronic device or the maximum transmission rate of the first electronic device, and the target ratio is greater than 0 and less than 1.

[0027] Based on this method, the first electronic device can reduce the content transmission rate by referring to the current content transmission rate or the maximum content transmission rate, which provides high flexibility.

[0028] In one possible design, the first indication is further used to indicate the target ratio, which is used by the first electronic device to determine the target rate. Based on this method, the first electronic device can reduce the content transmission rate to a level desired by the second electronic device.

[0029] Secondly, embodiments of this application provide a content transmission method applied to a second electronic device. The method includes: receiving content transmitted by a first electronic device; wherein the content corresponds to a first service; when the temperature of the second electronic device meets a first condition, sending a first instruction to the first electronic device; wherein the first instruction is used to instruct the first electronic device to reduce the rate at which it transmits content to the second electronic device; and reducing the rate at which it receives content transmitted by the first electronic device.

[0030] In this method, during the process of receiving content from the first electronic device, the second electronic device can trigger the first electronic device to reduce the rate at which it transmits content. On one hand, this reduces the heat generated by the power consumption of the communication devices in the first electronic device, thereby mitigating the temperature rise or achieving cooling. Since the power consumption of the communication devices during content transmission is significant, reducing this heat generation effectively slows down the temperature rise or cools the first electronic device, resulting in better temperature control. On the other hand, the reduced transmission rate of the first electronic device causes a corresponding reduction in the rate at which the communication devices in the second electronic device receive content. This further reduces the power consumption of the communication devices in the second electronic device, effectively mitigating the temperature rise or cooling it, thus achieving better temperature control.

[0031] In one possible design, the second electronic device includes a communication device for receiving content transmitted by the first electronic device; the reduction in the rate of receiving the content transmitted by the first electronic device includes: reducing the rate of receiving the content transmitted by the first electronic device by reducing the power of the communication device; and / or reducing the rate of receiving the content transmitted by the first electronic device by reducing the communication parameters of the communication device in response to a second instruction from the first electronic device; wherein the communication parameters include channel bandwidth and / or the number of antennas.

[0032] In this method, the second electronic device can quickly and effectively reduce the rate at which it receives content transmitted from the first electronic device by lowering the specific communication parameters of the communication device, thereby achieving a rapid and effective cooling effect.

[0033] In one possible design, the second indication is used to indicate a target communication indicator, which is used as a reduced communication indicator of the communication device; the reduction of the communication indicator of the communication device in response to the second indication from the first electronic device includes: reducing the communication indicator of the communication device to the target communication indicator.

[0034] Based on this method, the second electronic device can adjust the communication device in the same way as the first electronic device according to the instructions of the first electronic device, which can ensure that the communication device of the second electronic device and the communication device of the first electronic device maintain the same configuration, thereby ensuring that the two communication devices can communicate smoothly.

[0035] In one possible design, the first condition includes: the temperature of the second electronic device is greater than or equal to a first temperature threshold; or, the temperature of the second electronic device falls within a set first temperature range. Optionally, the lower limit of the first temperature range may be greater than or equal to a set temperature.

[0036] Based on this method, the second electronic device can reduce the content transmission rate (i.e., content reception rate) when the temperature is too high, thereby achieving the effect of cooling or preventing the temperature from rising further. This can reduce or avoid the impact of temperature rise on content transmission services between devices or the normal operation of the devices.

[0037] In one possible design, in reducing the rate at which the first electronic device receives content transmitted from it, the method further includes: sending a third instruction to the first electronic device when the temperature of the second electronic device meets a second condition; wherein the third instruction is used to instruct the first electronic device to increase the rate at which it transmits content to the second electronic device.

[0038] In this method, the second electronic device can instruct the first electronic device to adjust the content transmission rate, thereby driving the second electronic device to adjust the content transmission rate, and thus achieving the effect of controlling the temperature of the second electronic device.

[0039] In one possible design, increasing the rate of receiving content transmitted by the first electronic device includes: increasing the power of the communication device to increase the rate of receiving content transmitted by the first electronic device; and / or, increasing the communication performance of the communication device in response to a fifth instruction from the first electronic device to increase the rate of receiving content transmitted by the first electronic device. Optionally, the fifth instruction is used to indicate the improved communication performance of the communication device; increasing the communication performance of the communication device in response to the fifth instruction from the first electronic device includes: increasing the communication performance of the communication device to the communication performance indicated by the fifth instruction.

[0040] In this method, the second electronic device can quickly and effectively increase the rate at which it receives content from the first electronic device by improving the specific communication indicators of the communication device.

[0041] In one possible design, the second condition includes: the temperature of the second electronic device is less than or equal to a second temperature threshold; or, the temperature of the second electronic device falls within a set second temperature range. In this method, the second electronic device can increase the content transmission rate at lower temperatures, thereby improving the efficiency of content transmission services while avoiding excessively high temperatures that could affect inter-device content transmission or normal device operation.

[0042] In one possible design, before receiving content transmitted by the first electronic device, the method further includes: establishing peer-to-peer (P2P) communication with the first electronic device; receiving a fourth indication from the first electronic device, the fourth indication indicating the device role of the first electronic device and / or the second electronic device; wherein the device role of either electronic device is either the manager (GO) of the P2P communication or the managed (GC) of the P2P communication; and determining the device role of the second electronic device based on the fourth indication. Specifically, when the power consumption of the first electronic device performing the first service is lower than the power consumption of the second electronic device performing the first service, the device role of the first electronic device can be the GO, and the device role of the second electronic device can be the GC. When the power consumption of the first electronic device performing the first service is higher than the power consumption of the second electronic device performing the first service, the device role of the first electronic device can be the GC, and the device role of the second electronic device can be the GO. The GO can also be replaced by a master device, and the GC can also be replaced by a non-master device.

[0043] Based on this method, by reasonably configuring the device roles of the first electronic device and the second electronic device during content transmission, it is helpful to avoid high-power processing being concentrated on the same device, thereby reducing the risk of excessive power consumption of the device and ensuring optimal overall power consumption during content transmission.

[0044] In one possible design, when the first service is a cloning service, the second electronic device is used as the GO; or, when the first service is a file sharing service, the second electronic device is used as the GC.

[0045] In one possible design, the method further includes: when the communication connection between the second electronic device and the first electronic device is detected to be disconnected, saving the content corresponding to the first service received from the first electronic device; and after the communication connection between the second electronic device and the first electronic device is detected to be re-established, continuing to receive the content corresponding to the first service transmitted by the first electronic device.

[0046] In this method, after the connection between the second electronic device and the first electronic device is broken, the second electronic device can save the content received from the first electronic device, and can continue to receive the content from the first electronic device after re-establishing the connection with the first electronic device, thereby realizing breakpoint resume transmission, thus avoiding retransmission and improving the overall processing efficiency.

[0047] In one possible design, the first indication is further used to indicate a target ratio, which is used by the first electronic device to determine a reduced rate at which content is transmitted to the second electronic device, the target ratio being greater than 0 and less than 1.

[0048] Based on this method, the second electronic device can determine the degree to reduce the content transmission rate by referring to the current content transmission rate or the maximum content transmission rate, which provides high flexibility.

[0049] Thirdly, this application provides an electronic device, the electronic device including a memory and one or more processors; wherein the memory is used to store computer program code, the computer program code including computer instructions; when the computer instructions are executed by the one or more processors, the electronic device causes the electronic device to perform the method described in the first aspect or any possible design of the first aspect, or to perform the method described in the second aspect or any possible design of the second aspect.

[0050] Fourthly, this application provides a computer-readable storage medium storing a computer program that, when run on an electronic device, causes the electronic device to perform the method described in the first aspect or any possible design of the first aspect, or to perform the method described in the second aspect or any possible design of the second aspect.

[0051] Fifthly, this application provides a computer program product comprising a computer program or instructions that, when executed on an electronic device, cause the electronic device to perform the method described in the first aspect or any possible design of the first aspect, or to perform the method described in the second aspect or any possible design of the second aspect.

[0052] Sixthly, this application provides a chip system including a processor and a memory, wherein the memory stores instructions; when the instructions are executed by the processor, they implement the methods described in the first aspect or any possible design of the first aspect, or implement the methods described in the second aspect or any possible design of the second aspect. The chip system may be composed of chips or may include chips and other discrete devices.

[0053] The beneficial effects of the third to sixth aspects mentioned above can be found in the beneficial effects of the first or second aspects mentioned above, and will not be repeated here. Attached Figure Description

[0054] Figure 1 is a schematic diagram of the hardware architecture of an electronic device provided in an embodiment of this application;

[0055] Figure 2 is a schematic diagram of the software architecture of an electronic device provided in an embodiment of this application;

[0056] Figure 3 is a schematic diagram of the architecture of a communication system provided in an embodiment of this application;

[0057] Figure 4 is a flowchart illustrating a role negotiation method provided in an embodiment of this application;

[0058] Figure 5 is a schematic diagram comparing the power consumption of various devices in an electronic device during content transmission according to an embodiment of this application;

[0059] Figure 6 is a schematic diagram of different processing stages of an electronic device provided in an embodiment of this application;

[0060] Figure 7 is a schematic diagram of a rate adjustment method provided in an embodiment of this application;

[0061] Figure 8 is a schematic diagram of a rate adjustment method provided in an embodiment of this application;

[0062] Figure 9 is a schematic diagram of a content transmission method provided in an embodiment of this application;

[0063] Figure 10 is a schematic diagram of a content transmission method provided in an embodiment of this application;

[0064] Figure 11 is a schematic diagram of a content transmission method provided in an embodiment of this application;

[0065] Figure 12 is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0066] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the embodiments of this application will be further described in detail below with reference to the accompanying drawings.

[0067] In the description of the embodiments of this application, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, a feature defined with "first" and "second" may explicitly or implicitly include one or more of that feature.

[0068] For ease of understanding, exemplary descriptions of concepts related to this application are provided for reference.

[0069] 1) Wireless Fidelity (WiFi) peer-to-peer (P2P), also known as WiFi Direct or simply P2P, is a technology that uses WiFi to enable direct connections between devices. With WiFi P2P, devices can communicate one-to-one or one-to-many without the need for a local area network (LAN) or access point (AP).

[0070] In WiFi P2P networking, there are two device roles: group owner (GO) and group client (GC). The GO is used to connect the GC to the wireless network. The GO enables communication between the wireless and wired networks and is the core device for building a wireless LAN. The GC is a client device that can connect to the GO.

[0071] GO can also be called group server, group manager, manager, or management terminal, etc., and GC can also be called managed, managed within a group, managed, or managed terminal, etc. In this application embodiment, the names of GO and GC are not limited.

[0072] The device form of GO and GC can be terminal devices or other devices, and no specific restrictions are made in the embodiments of this application.

[0073] In some embodiments of this application, the terminal device may be a portable terminal device (e.g., mobile phone, tablet computer, laptop computer, ultra-mobile personal computer (UMPC), netbook, etc.), a wearable device with wireless communication function (e.g., watch, bracelet, etc.), an in-vehicle terminal device, an augmented reality (AR) / virtual reality (VR) device, a personal digital assistant (PDA), a smart home device (e.g., smart TV, smart speaker, etc.), a smart robot, workshop equipment, a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in a smart grid, a wireless terminal in transportation safety, a wireless terminal in a smart city, or a wireless terminal in a smart home, or a flying device (e.g., a smart robot, drone, airplane), etc.

[0074] Exemplary embodiments of the portable terminal device include, but are not limited to, carrying... Alternatively, it can be a portable terminal device with another operating system. The aforementioned portable terminal devices can also be other portable terminal devices, such as laptops with touch-sensitive surfaces (e.g., touch panels). Wearable devices are portable devices that users can wear directly on their bodies or integrate into their clothing or accessories.

[0075] 2) Access point (AP), also known as wireless access point or hotspot, is a device used to connect user equipment to a wireless network; AP enables communication between wireless and wired networks and is the core device for building a wireless local area network.

[0076] An access point (AP) can be an access point in a Wi-Fi system, or a module or unit that performs some of the functions of an access point. For example, it can be a centralized unit (CU) or a distributed unit (DU); it can also be a router, bridge, or wireless gateway. This application does not limit the specific technology or device form used in the AP.

[0077] 3) A station (STA), also known as a wireless terminal or wireless workstation, refers to a device connected to a wireless network. These devices can communicate with other devices within the wireless network or with the outside of the wireless network through an access point. The form of an STA can be a terminal device or other devices, etc., and no specific limitation is made in this embodiment.

[0078] 4) Spatial streams, also known as the number of spatial streams. When an electronic device transmits multiple signals simultaneously via radio, each signal is a spatial stream. Electronic devices can use transmitters and antennas to send spatial streams, and different spatial streams reach the receiver via different paths. The more spatial streams, the higher the transmission rate. The number of spatial streams an electronic device can send / receive simultaneously is positively correlated with the number of antennas used by the electronic device. The larger the number of antennas, the greater the number of spatial streams.

[0079] It should be understood that in the embodiments of this application, "at least one" means one or more, and "more than one" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, a and b, a and c, b and c, or a, b, and c, where a, b, and c can be single or multiple.

[0080] Wi-Fi P2P technology or similar direct-connection communication technologies are widely used in short-range communication scenarios, especially those requiring large amounts of data transmission (such as large file sharing, screen mirroring, cloning, etc.), due to their high transmission rates and independence from local area networks.

[0081] Currently, in short-range communication scenarios based on this type of technology, the roles of GO and GC are generally randomly determined, or the sender is assumed to be the GO and the receiver to be the GC by default. In short-range communication scenarios requiring the transmission of large amounts of data, this approach may pose a risk of excessive power consumption at one end (e.g., the sender), which could affect the content transmission service (e.g., reduced service quality or service failure).

[0082] In short-range communication scenarios requiring the transmission of large amounts of content, rising device temperatures during communication can cause some processes to shut down, affecting content transmission and potentially even causing service interruption. For example, when any device temperature becomes too high (e.g., reaching safety limits), it may shut down short-range communication connections and foreground applications, leading to content transmission interruption. In these scenarios, the temperature increase is primarily caused by power consumption heat. Currently, reducing the load on the device's Central Processing Unit (CPU) can lower power consumption and thus mitigate temperature increases. However, this method is relatively ineffective, so the problem of rising device temperatures affecting content transmission persists.

[0083] Furthermore, in short-range communication scenarios that require the transmission of large amounts of content, when the content transmission service between devices is interrupted (e.g., due to excessively high temperature or the devices being too far apart), the content transmission service can only be re-executed after the connection between the devices is re-established, resulting in low service processing efficiency and affecting the user experience.

[0084] In view of the above problems, embodiments of this application provide a content transmission method and an electronic device. This method can reduce the risk of excessive power consumption at the sending end during content transmission by reasonably setting the GO / GC roles of the electronic device. The method can also achieve better cooling effects by reasonably controlling the power consumption of the communication components of the electronic device, thereby promoting the smooth and efficient execution of content transmission services. Furthermore, this method can improve the processing efficiency of content transmission services and enhance the user experience by enabling breakpoint resumption.

[0085] The technical solutions provided in this application can be executed by any electronic device with processing and communication capabilities, or by a system composed of multiple electronic devices with processing and communication capabilities. The performance descriptions of the electronic devices can be found in the above conceptual description or in the related descriptions below.

[0086] The following description uses the application of the technical solution of this application in electronic devices or in a system containing multiple electronic devices as an example. The implementation process in other scenarios is similar and will not be repeated.

[0087] Referring to Figure 1 below, the structure of the electronic device to which the method provided in the embodiments of this application is applicable will be described.

[0088] As shown in Figure 1, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a USB interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a SIM card interface 195, etc.

[0089] The sensor module 180 may include a gyroscope sensor, an accelerometer, a proximity sensor, a fingerprint sensor, a touch sensor, a temperature sensor, a pressure sensor, a distance sensor, a magnetic sensor, an ambient light sensor, a barometric pressure sensor, a bone conduction sensor, etc.

[0090] It is understood that the electronic device 100 shown in Figure 1 is merely an example and does not constitute a limitation on the electronic device. Furthermore, the electronic device may have more or fewer components than those shown in the figure, may combine two or more components, or may have different component configurations. The various components shown in Figure 1 can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application-specific integrated circuits (ASICs).

[0091] Processor 110 may include one or more processing units, such as a CPU, application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors. The controller may serve as the central nervous system and command center of electronic device 100. The controller can generate operation control signals based on instruction opcodes and timing signals to control instruction fetching and execution.

[0092] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0093] The execution of the content transmission method provided in this application embodiment can be controlled by the processor 110 or by calling other components. For example, it can call the processing program of this application embodiment stored in the internal memory 121, or call the processing program of this application embodiment stored in a third-party device through the external memory interface 120 to control the wireless communication module 160 to perform data communication with other devices, thereby improving the intelligence and convenience of the electronic device 100 and enhancing the user experience. The processor 110 may include different devices. For example, when integrating a CPU and a GPU, the CPU and GPU can cooperate to execute the content transmission method provided in this application embodiment. For example, some algorithms in the content transmission method can be executed by the CPU, and other algorithms can be executed by the GPU to achieve faster processing efficiency.

[0094] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Miniled LED, a MicroLED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, electronic device 100 may include one or N displays screens 194, where N is a positive integer greater than 1. Display screen 194 can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces (GUIs). For example, display screen 194 can display photos, videos, web pages, or documents, etc.

[0095] In this embodiment of the application, the display screen 194 can be a single flexible display screen, or it can be a splicing display screen composed of two rigid screens and a flexible screen located between the two rigid screens.

[0096] Camera 193 (a front-facing camera or a rear-facing camera, or a single camera that can function as both) is used to capture still images or videos. Typically, camera 193 may include a photosensitive element such as a lens assembly and an image sensor. The lens assembly includes multiple lenses (convex or concave lenses) for collecting light signals reflected from the object being photographed and transmitting these signals to the image sensor. The image sensor generates a raw image of the object being photographed based on the light signals.

[0097] The internal memory 121 can be used to store computer executable program code, which includes instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. The program storage area can store the operating system, application program code (such as the functions corresponding to the scheme in this application), etc. The data storage area can store data created during the use of the electronic device 100.

[0098] The internal memory 121 may also store one or more computer programs corresponding to the algorithm of this application. The one or more computer programs are stored in the internal memory 121 and configured to be executed by one or more processors 110. The one or more computer programs include instructions that can be used to perform the various steps in the following embodiments.

[0099] In addition, the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.

[0100] Of course, the algorithm code of the embodiment of this application can also be stored in external memory. In this case, the processor 110 can run the algorithm code of the embodiment of this application stored in external memory through the external memory interface 120.

[0101] A touch sensor, also known as a "touch panel," can be located on the display screen 194. The touch sensor and display screen 194 together form a touch display screen, also called a "touch screen." The touch sensor detects touch operations applied to or near it. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor may also be located on the surface of the electronic device 100, in a different position than the display screen 194.

[0102] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.

[0103] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with tuning switches.

[0104] The mobile communication module 150 can provide solutions for wireless communication, including second-generation (2G), third-generation (3G), fourth-generation (4G), fifth-generation (5G), and sixth-generation (6G) wireless communication, applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low-noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device. In this embodiment of the application, the mobile communication module 150 can also be used to interact with other devices.

[0105] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through an audio device (not limited to speaker 170A, receiver 170B, etc.) or displays images or videos through the display screen 194. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and may be housed in the same device as the mobile communication module 150 or other functional modules.

[0106] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLAN) (such as WiFi), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR). The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signal, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2. In this embodiment, the wireless communication module 160 can be used to establish connections with other electronic devices for data interaction. Alternatively, the wireless communication module 160 can be used to access access point devices, send control commands to other electronic devices, or receive data from other electronic devices.

[0107] In addition, the electronic device 100 can implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, and an application processor, such as music playback and recording. The electronic device 100 can receive input from buttons 190, generating key signal inputs related to user settings and function control. The electronic device 100 can use a motor 191 to generate vibration alerts (such as vibration alerts for incoming calls). The indicator 192 in the electronic device 100 can be an indicator light, used to indicate charging status, battery level changes, messages, missed calls, notifications, etc. The SIM card interface 195 in the electronic device 100 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to achieve contact and separation with the electronic device 100.

[0108] It should be understood that in practical applications, the electronic device 100 may include more or fewer components than those shown in FIG. 1, and the embodiments of this application are not limited thereto. The illustrated electronic device 100 is merely an example, and the electronic device 100 may have more or fewer components than shown in the figure, may combine two or more components, or may have different component configurations. The various components shown in the figure may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application-specific integrated circuits.

[0109] The software system of electronic device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. A layered architecture divides the software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. For example, as shown in Figure 2, this software architecture can be divided into four layers, from top to bottom: the application layer, the application framework layer (framework, FWK), the runtime and system libraries, and the (Linux) kernel layer.

[0110] The application layer is the top layer of the operating system, including native applications and third-party applications. For example, the application layer may include cloned applications, near-field file transfer applications, and other applications. The applications discussed in this application are referred to as applications (APPs), which are software programs capable of performing one or more specific functions. Typically, multiple applications can be installed on an electronic device, such as camera applications, gallery applications, and calendar applications. The applications mentioned herein can be system applications pre-installed on the electronic device at the factory, or third-party applications downloaded by the user from the network or obtained from other electronic devices during the use of the electronic device.

[0111] Of course, for developers, they can write applications and install them into this layer. In one possible implementation, the application can be developed using the Java language, by calling the application programming interface (API) provided by the application framework layer. Developers can then interact with the underlying operating system (such as the kernel layer) through the application framework to develop their own applications.

[0112] The application framework layer provides the API and programming framework for the application layer. It can include predefined functions. The application framework layer may include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.

[0113] The window manager manages window programs. It can obtain the screen size, determine if a status bar is present, lock the screen, and capture the display. The content provider stores and retrieves data, making it accessible to applications. This data can include files (documents, videos, images, audio), text, and other information. The view system includes visual controls, such as those for displaying text, images, documents, etc. The view system can be used to build applications. The interface in a display window can consist of one or more views. For example, a display interface including a text message notification icon can include a view displaying text and a view displaying images. The phone manager provides communication functionality for electronic devices. The notification manager allows applications to display notification information in the status bar, which can be used to convey informational messages and can disappear automatically after a short pause without user interaction.

[0114] In some embodiments of this application, the application framework layer may include a device discovery service, a connectivity service, and a content delivery service. The device discovery service can be used to control an electronic device to discover other nearby electronic devices. The connectivity service can be used to control the electronic device to establish communication connections with other discovered nearby electronic devices. The content delivery service can be used to control the electronic device to perform content delivery with other electronic devices. The content delivery service can also control the device discovery service and the connectivity service to perform corresponding functions. Optionally, the application framework layer may also include a temperature detection service. The temperature detection service can be used to detect the temperature of the electronic device and report the detected temperature to the content delivery service.

[0115] Applications in the application layer can communicate with services such as device discovery services, connectivity services, and content delivery services in the application framework layer through interfaces, enabling these services to determine and execute the relevant processing of content delivery services initiated by applications in the application layer.

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

[0117] The system's core library consists of two parts: one part contains the functionalities that the Java language needs to call, and the other part is the system's core library. The application layer and application framework layer run in a virtual machine. Taking Java as an example, the virtual machine executes the Java files in the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.

[0118] The system library can include multiple functional modules. Examples include: a surface manager, a media library, a 3D graphics processing library (e.g., OpenGL ES), a 2D graphics engine (e.g., SGL), and an image processing library. The surface manager manages the display subsystem and provides fusion of 2D and 3D layers for multiple applications. The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.564, MP3, AAC, AMR, JPG, and PNG. The 3D graphics processing library implements 3D graphics drawing, image rendering, compositing, and layer processing. The 2D graphics engine is the drawing engine for 2D graphics.

[0119] The kernel layer provides core system services for the operating system, such as security, memory management, process management, network protocol stacks, and driver models, all of which are implemented based on the kernel layer. The kernel layer also serves as an abstraction layer between the hardware and software stacks. This layer contains many drivers related to electronic devices, including: display drivers; keyboard drivers as input devices; Flash drivers for memory-based devices; camera drivers; audio drivers; Bluetooth drivers; and WiFi drivers. These drivers can be used to drive corresponding hardware devices to perform corresponding processing. For example, a Bluetooth driver can be used to drive the Bluetooth device in an electronic device for Bluetooth communication, and a WiFi driver can be used to drive the WiFi communication device in an electronic device for WiFi communication, and so on.

[0120] It is important to understand that the functional services described above are just an example. In practical applications, electronic devices may be divided into more or fewer functional services based on other factors, or the functions of each service may be divided in other ways, or they may not be divided into functional services but work as a whole.

[0121] The solutions provided in the embodiments of this application will be described in detail below.

[0122] The solution provided in this application can be applied to a communication system comprising multiple electronic devices. These multiple electronic devices include at least a first electronic device and a second electronic device. The first electronic device and the second electronic device can directly establish a communication connection and communicate with each other. For example, the communication method between the first electronic device and the second electronic device can be a short-range communication method such as Bluetooth, WiFi P2P, or magneto link. This application does not limit the specific communication method between the first electronic device and the second electronic device.

[0123] In this communication system, the first electronic device and the second electronic device can perform content transmission services using the scheme provided in the embodiments of this application. For details, please refer to the relevant description below, which will not be elaborated here.

[0124] In one example, when the first electronic device and the second electronic device communicate via WiFi P2P, as shown in Figure 3, the first electronic device can act as one P2P device, and the second electronic device can act as another P2P device. The first and second electronic devices can form a P2P group. In this P2P group, one of the first and second electronic devices can act as a GO (Go) and the other can act as a GC (GC). Of course, the P2P group can also include other devices that act as GCs and can communicate with the electronic device acting as a GO; this embodiment does not impose specific limitations.

[0125] Optionally, electronic devices supporting P2P mode (e.g., the first and second electronic devices) can operate in concurrent mode, meaning P2P and STA modes can run concurrently. In concurrent mode, a P2P device can connect to an access point (AP). Taking the first electronic device in concurrent mode as shown in Figure 3 as an example, as shown in Figure 3, the first electronic device can also connect to an AP and form a basic service set (BSS) for a wireless local area network (WLAN). In this WLAN BSS, the first electronic device can act as a WLAN STA. Based on the above method, the first electronic device can communicate with the second electronic device as a P2P device, or communicate with the AP as a STA.

[0126] Optionally, the hardware structure of the first electronic device and the second electronic device can adopt the structure shown in Figure 1 above.

[0127] Optionally, the software architecture of the first electronic device and the second electronic device can adopt the software architecture shown in Figure 2 above.

[0128] It should be understood that the architecture of the communication system described above is only an example. In practical applications, some devices can be added or removed from the communication system, and no specific restrictions are imposed in this application.

[0129] The following describes in detail the content transmission method provided in the embodiments of this application, taking the above-mentioned communication system as an example.

[0130] For ease of description, in this application, the application installed in the first electronic device for performing content transmission services is referred to as the first application, the content transmission service in the first electronic device is referred to as the first content transmission service, the communication device of the first electronic device is referred to as the first communication device, and the temperature detection service of the first electronic device is referred to as the first temperature detection service; the application installed in the second electronic device for performing content transmission services is referred to as the second application, the content transmission service in the second electronic device is referred to as the second content transmission service, the communication device of the second electronic device is referred to as the second communication device, and the temperature detection service of the second electronic device is referred to as the second temperature detection service. For example, the first application and the second application can be cloned applications or other applications, etc., and no specific limitations are made in the embodiments of this application.

[0131] In some content transmission scenarios, the sending end needs to perform extensive packet processing and send content while packetizing, while the receiving end only needs to receive and store the content, and then decompress and process it uniformly after reception. Therefore, during content transmission, the sending end consumes more power than the receiving end. In scenarios requiring the deployment of GO and GC roles, the power consumption of the GO side is much higher than that of the GC side because the GO needs to perform networking and other processing (for example, in P2P scenarios, the power consumption of the GO side is generally around 120mA, while the power consumption of the GC side is generally less than 10mA). Therefore, in the above content transmission scenarios, if the sending end is defaulted to be the GO, or if a randomly selected GO is chosen as the sending end, the power consumption of the sending end will be further increased, leading to the risk of excessive power consumption on the sending end.

[0132] Based on this, in one embodiment, considering the inequality in processing and power consumption at both ends during content transmission, before content transmission, management roles with higher power consumption (such as network management and device management, which can also be understood as master device roles) can be deployed to electronic devices with lower power consumption for content transmission, while managed roles with lower power consumption (such as non-master device roles) can be deployed to electronic devices with higher power consumption for content transmission. This reduces the risk of excessive power consumption at one end and ensures optimal overall power consumption during content transmission. The following embodiment will provide a detailed description of this solution. In this embodiment, the device role of any electronic device can be a manager (e.g., GO, soft AP, etc.) or a managed device (e.g., GC, STA, etc.). A manager can also be called a master device, which has higher power consumption for processing other than content transmission (e.g., power consumption for network management, device management, etc.). A managed device can also be called a non-master device, which has lower power consumption for processing other than content transmission. The following example uses a scenario where device roles include GO and GC to illustrate the role negotiation method provided in this embodiment. Role negotiation processes in other direct communication scenarios can be implemented using the following methods, which will not be listed individually in this embodiment.

[0133] In content transmission scenarios that require the deployment of GO and GC, in the first electronic device and the second electronic device, the device role of one electronic device can be deployed as GO, and the device role of the other electronic device can be deployed as GC.

[0134] Example 1

[0135] In some embodiments of this application, the device roles of the first electronic device and the second electronic device performing content transmission may be configured differently for different content transmission services (which can also be understood as different content transmission scenarios). For any content transmission service, the device roles of the first electronic device and the second electronic device performing content transmission may be pre-configured.

[0136] In one example, the content delivery service can be a cloning service (the corresponding content delivery scenario is a cloning scenario). Cloning refers to migrating data content from one electronic device to another. The role configuration for the cloning service could be: the sender acts as the GC (Garbage Collector), and the receiver acts as the GO (Goal Collector). In the cloning scenario, the sender needs to perform numerous packing operations and needs to send while packing, while the receiver only needs to receive and store the content, performing unified decompression, recovery, and processing only after all reception is complete. Therefore, during the cloning process, the load on the sender is much higher than the load on the receiver. Therefore, in the cloning scenario, the GO role, which has higher power consumption, can be deployed on the receiver, and the GC role, which has lower power consumption, can be deployed on the sender. This avoids concentrating high-power processing on the sender, reduces the risk of excessive power consumption on the sender, and helps ensure the smooth and efficient execution of the cloning service.

[0137] In another example, the content transfer service can be a large file sharing service (the corresponding content transfer scenario is a large file sharing scenario). Here, a large file refers to a file with a large data volume. Specifically, a large file can be a set file size, or a file with a data volume greater than the set data volume; no specific limitations are made in this embodiment. The role configuration for the large file sharing service can be: the sender acts as the GO (Goal Controller) and the receiver acts as the GC (Garbage Collector). In the large file sharing scenario, the sender does not need to package the file; it can directly read the file content and send it. The receiver, however, needs to receive and identify the file content and import different file contents into corresponding locations (e.g., gallery, file manager, etc.). That is, the receiver needs to process the content while receiving it. Therefore, during large file sharing, the load on the receiver is much higher than the load on the sender. Therefore, in the large file sharing scenario, the GO role, which has higher power consumption, can be deployed on the sender, and the GC role, which has lower power consumption, can be deployed on the receiver. This avoids concentrating high-power processing on the sender, reduces the risk of excessive power consumption on the sender, and helps ensure the smooth and efficient execution of the large file sharing service.

[0138] In some embodiments of this application, different content transmission services and their corresponding role configuration information can be pre-configured in the first electronic device and the second electronic device. The role configuration information corresponding to the content transmission service is used to indicate the GO and GC roles at both the sending and receiving ends performing the content transmission service.

[0139] As an optional implementation, the first electronic device and the second electronic device can determine their respective GO or GC roles based on the required content transmission services and corresponding role configuration information during the connection establishment process, and perform corresponding processing according to their respective roles.

[0140] As another optional implementation, during the connection establishment process between the first electronic device and the second electronic device, the first or second electronic device can determine its own and the peer device's GO and GC roles based on the content transmission service to be executed and the corresponding role configuration information, and negotiate with the peer device to further determine its own and the peer device's GO and GC roles. The specific implementation process of this method will be described in detail below with reference to Figure 4.

[0141] Referring to Figure 4, taking a first electronic device as the transmitter and a second electronic device as the receiver as an example, the flow of a role negotiation method provided in this application embodiment may include:

[0142] S401: The first content delivery service determines the first target device (GO) in the first electronic device and the second electronic device based on the content delivery service to be executed.

[0143] In this context, the device in the first electronic device and the second electronic device that is not used as a GO (Go) is the device used as a GC (GC). Optionally, the first content delivery service may also determine the device in the first electronic device and the second electronic device used as a GC based on the content delivery service to be executed.

[0144] The content transfer service to be performed can be a service that transfers content from a first electronic device to a second electronic device. For example, the content transfer service can be the cloning service or the large file sharing service mentioned above. The first target device can be either the first electronic device or the second electronic device. For example, when the content transfer service is the cloning service mentioned above, the first target device can be the second electronic device. When the content transfer service is the large file sharing service mentioned above, the first target device can be the first electronic device.

[0145] In this method, the first content delivery service can determine the role configuration information corresponding to the content delivery service to be executed based on the role configuration information corresponding to different pre-set content delivery services, and determine the first target device in the first electronic device and the second electronic device to be used as GO based on the role configuration information corresponding to the content delivery service to be executed.

[0146] S402: The first content transmission service sends first indication information to the first communication device; wherein the first indication information is used to indicate the first target device in the first electronic device and the second electronic device as the GO.

[0147] S403: The first communication device sends a first instruction message to the second communication device.

[0148] S404: The second communication device sends the received first instruction information to the second content transmission service.

[0149] S405: In response to the first indication information, the second content transmission service sends first feedback information to the second communication device; wherein the first feedback information is used to confirm the first target device, or the first feedback information is used to re-indicate the second target device used as GO in the first electronic device and the second electronic device.

[0150] Wherein, after receiving the first instruction information, if the second content transmission service confirms (or agrees) to use the first target device as the GO, it can generate the first instruction information for confirming the first target device; if it confirms not to use the first target device as the GO, it can generate the first instruction information for indicating the second target device as the GO.

[0151] S406: The second communication device sends the first feedback information to the first communication device.

[0152] S407: The first communication device sends the received first feedback information to the first content transmission service.

[0153] S408: The first content delivery service determines the device roles of the first electronic device and the second electronic device based on the first feedback information.

[0154] Specifically, when the first feedback information is used to confirm the first target device, the first content delivery service can determine that the first target device in the first electronic device and the second electronic device is designated as the GO, and the other device (i.e., the device in the first electronic device and the second electronic device other than the first target device) is designated as the GC. When the first feedback information is used to re-indicate the second target device in the first electronic device and the second electronic device as the GO, the first content delivery service can determine that the second target device in the first electronic device and the second electronic device is designated as the GO, and the other device (i.e., the device in the first electronic device and the second electronic device other than the second target device) is designated as the GC.

[0155] The above method uses the first electronic device as the initiator of role negotiation as an example to illustrate the role negotiation method provided in this application embodiment. The role negotiation method using the second electronic device as the initiator of role negotiation is similar to the above method, and can be implemented with reference to the above method. It will not be described in detail in this application.

[0156] Optionally, the role negotiation method described in steps S401 to S408 can be executed during content transmission. Based on this, taking the first electronic device as the initiator of the content transmission service as an example, the following steps S400a to S400b may also be included before step S401:

[0157] S400a: The first application sends first information to the first content transmission service; wherein the first information is used to instruct the transmission of content to the second electronic device.

[0158] In this method, the first information can be used to initiate the content transmission service to be executed.

[0159] S400b: The first application sends the service content to be transmitted to the first content transmission service.

[0160] The steps S409 to S412 may also be included after step S408:

[0161] S409: The first content transmission service sends service content from the first application to the first communication device.

[0162] S410: The first communication device sends the received service content to the second communication device.

[0163] S411: The second communication device sends the received service content to the second content transmission service.

[0164] S412: The second content delivery service sends the received service content to the second application.

[0165] The second application can perform subsequent processing on the received service content.

[0166] Using the above method, during the execution of content transmission services, the first electronic device can rationally allocate the device roles of the first electronic device and the second electronic device based on the content transmission service. By executing the content transmission service according to the device role allocated by the first electronic device, high-power processing can be minimized by avoiding concentration on the same device (e.g., the first electronic device acting as the sender), thereby reducing the risk of excessive power consumption and ensuring optimal overall power consumption during content transmission.

[0167] Figure 5 is a schematic diagram comparing the power consumption of various components in an electronic device during content transmission. As shown in Figure 5, the CPU of the electronic device consumes relatively little power during content transmission, and correspondingly, the actual heat generated by the CPU is relatively low. Therefore, reducing the CPU load is not a very effective way to cool it down.

[0168] As shown in Figure 5, during content transmission, the communication device of the electronic device consumes the most power, significantly more than other devices. Correspondingly, the heat generated by the communication device is also relatively high. Therefore, reducing the power consumption of the communication device can achieve a significant cooling effect. Based on this, this application embodiment also provides a scheme to improve the cooling effect by reducing the power consumption of the communication device during content transmission, thereby ensuring the smooth execution of the content transmission process. The relevant content of this scheme will be described in detail below with reference to Embodiment 2.

[0169] Example 2

[0170] In this embodiment, the first electronic device is used as the transmitter and the second electronic device is used as the receiver.

[0171] In scenarios involving the transmission of large amounts of data, a crucial factor affecting the power consumption of communication devices in electronic devices is the data transmission rate. Generally, a higher data transmission rate results in higher power consumption, while a lower data transmission rate results in lower power consumption. Therefore, by adjusting the data transmission rate of communication devices, it is possible to effectively regulate their power consumption and, consequently, their temperature.

[0172] Based on this, in one embodiment, when the temperature of the electronic device performing content transmission services is low, the communication device of the electronic device can transmit services at a higher transmission rate (e.g., the transmission rate required for performing content transmission services), thereby ensuring or improving the execution efficiency of the content transmission services. When the temperature of the electronic device performing content transmission services is high, the transmission rate of the communication device can be appropriately reduced, thereby reducing the power consumption and heat of the communication device, and thus lowering the temperature of the electronic device, preventing excessive temperature from affecting or interrupting the execution of content transmission services. After the temperature of the electronic device performing content transmission services decreases from a high temperature to a low temperature, the transmission rate of the communication device can be appropriately increased again, thereby ensuring service execution efficiency while avoiding excessive temperature of the electronic device. When the temperature of the electronic device is too high, the connection with the other end can be disconnected, thereby interrupting the execution of content transmission services and preventing the temperature from continuing to rise, which could affect the lifespan of the electronic device.

[0173] Optionally, in the above methods, the electronic device can directly reduce or increase the transmission rate of the communication device, or it can reduce or increase the transmission rate of the communication device by adjusting the working mode of the communication device.

[0174] It should be noted that, in the embodiments of this application, the reduction or increase of the transmission rate of the communication device by the electronic device can be linear or non-linear. For example, the adjustment of the transmission rate of the communication device by the electronic device through adjusting the operating mode of the communication device is a non-linear adjustment.

[0175] For example, in one possible scenario, as shown in Figure 6, the stage that any electronic device may be in during a content transmission scenario may include:

[0176] Phase 1, Maintenance Phase

[0177] This stage can be when the electronic device's temperature is within a low range, posing no risk of overheating and allowing for sustained transmission rates. During this stage, the electronic device can prioritize service efficiency when performing content transmission. For example, the electronic device can determine the required transmission rate based on the content transmission service being performed and transmit content accordingly.

[0178] Phase 2, Adjustment Phase

[0179] This stage can be the stage where electronic devices adjust their transmission rates according to temperature. In this stage, the electronic device can rationally adjust the transmission rate when performing content transmission services based on the detected temperature, thereby controlling the temperature. For example, in this stage, when the temperature of the electronic device is in a high temperature range, due to the risk of overheating, the electronic device can reduce the transmission rate of the communication devices to prevent the temperature from rising further or to achieve cooling. When the temperature of the electronic device drops to a lower temperature range, since there is no longer a risk of overheating, the electronic device can appropriately increase the transmission rate of the communication devices, thereby improving service execution efficiency.

[0180] Optionally, during this stage, when the temperature of the electronic device is in a high temperature range, as shown in Figure 6, as an optional implementation, the electronic device can maintain its temperature at the current temperature and prevent it from rising further by slightly reducing the transmission rate of the communication device (e.g., reducing the transmission rate by a small percentage, which may be a value lower than or equal to a set percentage). Alternatively, the electronic device can significantly reduce the transmission rate of the communication device (e.g., reducing the transmission rate by a large percentage, which may be a value higher than a set percentage) to lower the current temperature of the electronic device to a lower temperature.

[0181] Phase 3, Disconnection Phase

[0182] This stage can be the stage where electronic devices interrupt content transmission due to excessively high temperatures. Specifically, when the temperature of an electronic device reaches or exceeds a set temperature threshold, the electronic device can disconnect from the peer device, thereby interrupting content transmission and preventing or slowing down further temperature increases.

[0183] Optionally, in this scenario, the electronic device can implement a breakpoint resume scheme, as detailed in the following embodiment three, which will not be elaborated here.

[0184] In one example, an electronic device can be pre-configured with multiple different temperature settings, each corresponding to a different temperature range. When performing content transmission services, the electronic device can determine the current temperature setting based on its current temperature and the pre-configured temperature settings, and then determine whether to adjust the data rate or disconnect from the peer device based on that temperature setting.

[0185] In one example, multiple different temperature settings and their corresponding temperature ranges can be found in Table 1 below.

[0186] Table 1. Correspondence between different temperature settings and temperature ranges

[0187] As shown in Table 1 above, electronic devices can be pre-configured with 8 different temperature settings and corresponding temperature ranges.

[0188] In one example, during content transmission, in one possible scenario, when the electronic device's temperature is at a lower temperature level, such as temperature levels 0-2 as shown in Table 1, the electronic device can transmit content at a higher transmission rate. In another possible scenario, when the electronic device's temperature is at a higher temperature level, such as temperature levels 3-5 as shown in Table 1, the electronic device can reduce the transmission rate. Subsequently, when the electronic device's temperature drops to a lower temperature level, such as temperature levels 0-2 as shown in Table 1, the electronic device can increase the transmission rate again. In one possible scenario, when the electronic device's temperature is at an excessively high temperature level, such as temperature levels 6 or 7 as shown in Table 1, the electronic device can disconnect from the peer device, thereby interrupting the content transmission service.

[0189] Based on the above method, during the content transmission process between the first electronic device and the second electronic device, the first electronic device or the second electronic device can reasonably adjust the transmission rate of the content transmission between the first electronic device and the second electronic device according to the change of its own temperature, so as to achieve the effect of quickly adjusting the power consumption of the communication device and thus quickly adjusting the device temperature.

[0190] In some embodiments of this application, the first electronic device or the second electronic device can adjust the transmission rate of the communication device of the electronic device by adjusting at least one of the following communication indicators 1 to 3:

[0191] Communication Indicator 1: Channel bandwidth used by communication devices.

[0192] By adjusting the channel bandwidth used by the communication device, the operating mode of the device can be adjusted, thereby affecting its transmission rate. A wider channel bandwidth results in a higher transmission rate, while a narrower channel bandwidth results in a lower transmission rate. Therefore, reducing the channel bandwidth used by the communication device decreases the transmission rate, while increasing it increases the transmission rate.

[0193] In this embodiment, reducing the channel bandwidth used by the communication device can also be understood as switching the channel used by the communication device from a channel with a larger bandwidth to a channel with a smaller bandwidth. For example, switching from a channel using 160 MHz to a channel using 80 MHz. Conversely, increasing the channel bandwidth used by the communication device can also be understood as switching the channel used by the communication device from a channel with a smaller bandwidth to a channel with a larger bandwidth. For example, switching from a channel using 80 MHz to a channel using 160 MHz.

[0194] In one example, the power consumption comparison of communication devices under different channel bandwidth scenarios can be seen in Table 2 below.

[0195] Table 2 Comparison of power consumption of communication devices under different channel bandwidths

[0196] As shown in Table 2, in the test scenario using a 160MHz bandwidth channel, the power consumption of the communication device when transmitting content at maximum power is 187mA. In the test scenario using an 80MHz bandwidth channel, the power consumption of the communication device when transmitting content at maximum power is 141mA. The power consumption of the communication device differs significantly between these two scenarios. Therefore, reducing the channel bandwidth used by the communication device can significantly reduce power consumption.

[0197] Communication Indicator 2: Number of antennas used in communication devices.

[0198] In this system, adjusting the number of antennas on a communication device can regulate its operating mode and, consequently, its transmission rate. A higher number of antennas results in a higher transmission rate, while a lower number of antennas results in a lower transmission rate. Therefore, reducing the number of antennas used by the communication device decreases the transmission rate, while increasing the number of antennas increases the transmission rate.

[0199] In this embodiment, the number of antennas used by the communication device can also be replaced by the spatial stream or the number of spatial streams of the communication device.

[0200] 3. Communication Indicator: Power of Communication Devices.

[0201] The higher the power of a communication device, the higher the transmission rate; conversely, the lower the power, the lower the transmission rate. Therefore, reducing the power of the communication device decreases the transmission rate, while increasing it increases the transmission rate.

[0202] Furthermore, in content transmission scenarios, since the receiving end typically receives content at a rate matching the sending end's transmission rate, a decrease in the sending end's transmission rate (i.e., the sending rate) can be matched by a decrease in the receiving end's transmission rate (i.e., the receiving rate), and vice versa. Therefore, if either the sending or receiving end experiences excessively high temperatures, reducing the sending end's transmission rate can effectively cool the device. Conversely, increasing the sending end's transmission rate can improve service efficiency when either the sending or receiving end experiences low temperatures.

[0203] Based on the above method, the first electronic device can adjust its content transmission rate by regulating at least one of its communication parameters according to its own temperature changes. Correspondingly, the content transmission rate of the second electronic device changes accordingly. Alternatively, the second electronic device can instruct the first electronic device to adjust at least one of its communication parameters according to its own temperature changes, thereby reasonably adjusting the content transmission rate of the first electronic device. In this case, the first electronic device can instruct the second electronic device to perform the same communication parameter adjustment, thus achieving the effect of reasonably adjusting the content transmission rate of the second electronic device.

[0204] The following example illustrates the scheme for adjusting the rate of the first electronic device according to temperature, using a scenario where the first electronic device initiates rate adjustment at a high temperature.

[0205] Referring to Figure 7, a rate adjustment method provided in this application embodiment may include:

[0206] S701: During the process of transmitting service content from the first application to the second application, the first temperature detection service detects the temperature of the first electronic device and instructs the first content transmission service on the detected first temperature.

[0207] The process of transmitting service content from the first application to the second application can refer to the content transmission process shown in Figure 4 above. For example, the method described in steps S400b and S409 to S412 shown in Figure 4 can be referred to, and will not be described in detail here.

[0208] S702: When the first content transmission service determines that the first temperature meets the set speed reduction trigger condition, it reduces the transmission rate of the first communication device.

[0209] As an optional implementation, the rate reduction trigger condition can be a first temperature greater than or equal to a first set temperature and less than a second set temperature. The second set temperature is greater than the first set temperature. For example, the first set temperature can be 40 degrees Celsius, and the second set temperature can be 48 degrees Celsius. As another optional implementation, the rate reduction trigger condition can be that the first temperature range belongs to a set temperature range where the transmission rate needs to be reduced. For example, the set temperature ranges where the transmission rate needs to be reduced can include ranges 3 to 5 shown in Table 1 above.

[0210] In some embodiments of this application, the method by which the first content transmission service reduces the transmission rate of the first communication device may specifically be: reducing the transmission rate of the first communication device from the current rate to a first target rate, or reducing the transmission rate of the first communication device from the current rate to a second target rate. Wherein, the first target rate is less than the second target rate.

[0211] In some embodiments of this application, in the above method, the first content transmission service may reduce the transmission rate of the first communication device from the current rate to a first target rate within a first duration. The first content transmission service may reduce the transmission rate of the first communication device from the current rate to a second target rate within a second duration. Optionally, the first duration may be less than or equal to the second duration.

[0212] The method of reducing the transmission rate of the first communication device from the current rate to the first target rate can be called a rapid reduction (or quick reduction) method. Based on this method, the first content transmission service can significantly reduce the transmission rate of the first communication device, thereby achieving a substantial degree of cooling. The method of reducing the transmission rate of the first communication device from the current rate to the second target rate can be called a gradual reduction method. Based on this method, the first content transmission service can slightly reduce the transmission rate of the first communication device, thereby achieving a slight degree of cooling or keeping the temperature from rising.

[0213] In some embodiments of this application, in the above method, the first target rate can be the product of the current rate or a set maximum transmission rate and a first proportion, and the second target rate can be the product of the current rate or a set maximum transmission rate and a second proportion. The second proportion is greater than the first proportion. For example, the first proportion can be 20%, and the second proportion can be 80%. Optionally, the first proportion can be greater than 0 and less than or equal to a first set value, and the second proportion can be greater than the first set value and less than 1.

[0214] The first or second ratio mentioned above may be a preset value, or it may be a value configured by the first content transmission service based on temperature or business execution status. No limitation is made in this application embodiment.

[0215] In some embodiments of this application, when the first content delivery service selects between a rapid descent mode and a gradual descent mode, it may employ any of the following methods:

[0216] 1) Select based on current temperature. For example, if the current temperature is greater than or equal to the third set temperature, select the rapid descent mode; if the current temperature is less than the third set temperature, select the slow descent mode.

[0217] Optionally, the third set temperature can be greater than the first set temperature and less than the second set temperature, or the third set temperature can be greater than the lower limit of the first temperature setting and less than the upper limit of the first temperature setting.

[0218] 2) Random selection.

[0219] 3) Based on scenario selection, the scenario may include the currently executed content transmission service, device role, temperature, etc., and no specific restrictions are imposed in this embodiment.

[0220] In one possible scenario, the first content delivery service can achieve a sharp or gradual decrease in transmission rate by reducing at least one communication specification of the first communication device. In another possible scenario, the first content delivery service can achieve a sharp decrease in transmission rate by reducing the channel bandwidth and / or the number of antennas used by the first communication device. The first content delivery service can achieve a gradual decrease in transmission rate by reducing the power of the first communication device. In yet another possible scenario, the first content delivery service can achieve a sharp decrease in transmission rate by reducing multiple communication specifications of the first communication device. The first content delivery service can achieve a gradual decrease in transmission rate by reducing any one of the communication specifications of the first communication device.

[0221] Optionally, after step S702, the following steps S703 to S704 may also be included.

[0222] S703: The first temperature detection service continues to detect the temperature of the first electronic device and instructs the first content transmission service to detect the second temperature.

[0223] S704: When the first content transmission service determines that the second temperature meets the speed-up triggering condition, it increases the transmission rate of the first communication device.

[0224] As an optional implementation, the speed-up trigger condition can be that the second temperature is less than or equal to the fourth set temperature. For example, the fourth set temperature can be 40 degrees or 43 degrees. As another optional implementation, the speed-up trigger condition can be that the second temperature range to which the second temperature belongs belongs to a set temperature range that allows for increased transmission rate. For example, the set temperature range that allows for increased transmission rate can include ranges 0 to 2 shown in Table 1 above.

[0225] In some embodiments of this application, the method by which the first content transmission service increases the transmission rate of the first communication device may specifically be: increasing the transmission rate of the first communication device from the current rate to a third target rate, or increasing the transmission rate of the first communication device from the current rate to a fourth target rate. Wherein, the third target rate is greater than or equal to the fourth target rate.

[0226] In some embodiments of this application, in the above method, the first content delivery service may increase the transmission rate of the first communication device from the current rate to a third target rate within a third duration. The first content delivery service may increase the transmission rate of the first communication device from the current rate to a fourth target rate within a fourth duration. Optionally, the third duration may be less than or equal to the fourth duration.

[0227] The method described above for increasing the transmission rate of the first communication device from the current rate to the third target rate can be called a rapid increase (or fast increase) method. Based on this method, the first content transmission service can significantly increase the transmission rate of the first communication device, thereby improving transmission efficiency to a considerable extent while avoiding excessive temperature. The method described above for increasing the transmission rate of the first communication device from the current rate to the fourth target rate can be called a gradual increase method. Based on this method, the first content transmission service can slightly increase the transmission rate of the first communication device, thereby appropriately improving transmission efficiency while avoiding excessive temperature.

[0228] In some embodiments of this application, as an optional implementation, the third target transmission rate can be equal to the fourth target transmission rate, and both the third and fourth target rates can be the rates before the transmission rate reduction. As another optional implementation, the third target transmission rate can be greater than the fourth target transmission rate. The third target rate can be the product of a reference rate and a third ratio, and the fourth target rate can be the product of the reference rate and a fourth ratio. The reference rate can be the current rate or a set maximum transmission rate, and the third ratio is greater than the fourth ratio. Optionally, when the reference rate is the current rate, both the third and fourth ratios can be values ​​greater than 1. When the reference rate is the set maximum transmission rate, the third ratio can be greater than or equal to a second set value and less than or equal to 1, and the fourth ratio can be greater than or equal to the third set value and less than the second set value.

[0229] The aforementioned third or fourth ratio may be a preset value, or it may be a value configured by the first content delivery service based on temperature or business execution status. No restrictions are imposed in this embodiment.

[0230] In some embodiments of this application, when the first content delivery service selects between a rapid escalation mode and a gradual escalation mode, it may employ any of the following methods:

[0231] 1) Select based on current temperature. For example, if the current temperature is less than or equal to the fifth set temperature, select the rapid rise mode; if the current temperature is greater than the fifth set temperature, select the gradual rise mode.

[0232] Optionally, the fifth set temperature can be lower than the fourth set temperature, or the fifth set temperature can be higher than the lower limit of the second temperature setting and lower than the upper limit of the second temperature setting.

[0233] 2) Random selection.

[0234] 3) Based on scenario selection, the scenario may include the currently executed content transmission service, device role, temperature, etc., and no specific restrictions are imposed in this embodiment.

[0235] In one possible scenario, the first content delivery service can achieve a rapid or gradual increase in transmission rate by increasing at least one communication parameter of the first communication device. In another possible scenario, the first content delivery service can achieve a rapid increase in transmission rate by increasing the channel bandwidth and / or the number of antennas used by the first communication device. The first content delivery service can achieve a gradual increase in transmission rate by increasing the power of the first communication device. In yet another possible scenario, the first content delivery service can achieve a rapid increase in transmission rate by increasing multiple communication parameters of the first communication device. The first content delivery service can achieve a gradual increase in transmission rate by increasing any one of the communication parameters of the first communication device.

[0236] In the above method, after adjusting at least one communication parameter of the first communication device, the first content delivery service can instruct the second content delivery service to make corresponding adjustments to the second communication device. For example, after the first content delivery service switches the first communication device from a 160MHz bandwidth channel to an 80MHz bandwidth channel, it can instruct the second content delivery service to switch the second communication device from a 160MHz bandwidth channel to an 80MHz bandwidth channel, thereby ensuring smooth communication.

[0237] The following example illustrates the scheme for adjusting the rate of the second electronic device according to temperature, using a scenario where the second electronic device initiates rate adjustment at a high temperature.

[0238] Referring to Figure 8, a rate adjustment method provided in this application embodiment may include:

[0239] S801: During the process of transmitting service content from the first application to the second application, the second temperature detection service detects the temperature of the second electronic device and sends the detected third temperature to the second content transmission service.

[0240] The process of transmitting service content from the first application to the second application can refer to the content transmission process shown in Figure 4 above. For example, the method described in steps S400b and S409 to S412 shown in Figure 4 can be referred to, and will not be described in detail here.

[0241] S802: When the second content transmission service determines that the third temperature meets the set rate reduction trigger condition, it instructs the first content transmission service to reduce the transmission rate of the first communication device.

[0242] The method by which the second content delivery service determines whether the third temperature meets the set speed reduction triggering conditions can refer to the method by which the first content delivery service determines whether the first temperature meets the set speed reduction triggering conditions as described in step S702 above, and will not be described in detail here.

[0243] S803: The first content transmission service reduces the transmission rate of the first communication device.

[0244] For details on the specific implementation of step S803, please refer to the relevant description in step S702 above, which will not be elaborated here.

[0245] In the process of reducing the transmission rate of the first communication device, the first content transmission service may instruct the second content transmission service to make corresponding adjustments to the second communication device after lowering at least one of the communication indicators of the first communication device.

[0246] Optionally, after step S803, the following steps S804 to S806 may also be included.

[0247] S804: The second temperature detection service continues to detect the temperature of the second electronic device and sends the detected fourth temperature to the second content transmission service.

[0248] S805: When the second content transmission service determines that the fourth temperature meets the speed-up trigger condition, it instructs the first content transmission service to increase the transmission rate of the first communication device.

[0249] The method by which the second content delivery service determines whether the fourth temperature meets the set acceleration triggering conditions can refer to the method described in step S704 above for the first content delivery service to determine whether the second temperature meets the set acceleration triggering conditions, and will not be described in detail here.

[0250] S806: The first content transmission service increases the transmission rate of the first communication device.

[0251] For details on the specific implementation of step S806, please refer to the relevant description in step S704 above, which will not be elaborated here.

[0252] In the process of increasing the transmission rate of the first communication device, the first content transmission service may instruct the second content transmission service to make corresponding adjustments to the second communication device after increasing at least one of the communication indicators of the first communication device.

[0253] It should be understood that the solution provided in this embodiment can be executed alone during content transmission, or it can be combined with other temperature regulation methods (such as the above-mentioned method of cooling by reducing CPU load). No limitation is made in this embodiment.

[0254] Example 3

[0255] In the solution provided in this embodiment, if the content transmission service between devices is interrupted during content transmission, the sending device can record and save information such as the location (or node) of the interruption to determine the progress of content transmission. After the sending device and the receiving device re-establish a communication connection, the sending device can determine the progress of content transmission based on the saved information and continue content transmission from the previous interruption point, thereby achieving breakpoint resumption.

[0256] The reasons for the interruption of content transmission between devices may include the distance between devices (such as a user holding one device away from another, causing the communication connection between devices to be interrupted), excessive device temperature, or other reasons. No specific restrictions are made in the embodiments of this application.

[0257] The following example uses a first electronic device as the transmitter and a second electronic device as the receiver to illustrate the solution provided in this embodiment.

[0258] Referring to Figure 9, a possible content transmission method provided in this application embodiment may include:

[0259] S901: The first application transmits service content to the second application.

[0260] The process of transmitting service content from the first application to the second application can refer to the content transmission process shown in Figure 4 above. For example, the method described in steps S400b and S409 to S412 shown in Figure 4 can be referred to, and will not be described in detail here.

[0261] S902: When the second content transmission service determines that the communication connection between the second electronic device and the first electronic device is broken, it sends a connection break notification to the second application.

[0262] The connection disconnection notification is used to indicate that the communication connection between the first electronic device and the second electronic device has been disconnected.

[0263] Optionally, the second content delivery service may determine that the communication connection between the second electronic device and the first electronic device is broken based on feedback or indication from the second communication device.

[0264] S903: When the first content transmission service determines that the communication connection between the first electronic device and the second electronic device is broken, it sends a connection break notification to the first application.

[0265] The connection disconnection notification is used to indicate that the communication connection between the first electronic device and the second electronic device has been disconnected.

[0266] Optionally, the first content delivery service may determine that the communication connection between the first electronic device and the second electronic device is broken based on feedback or indication from the first communication device.

[0267] S904: The first application generates and saves transmission progress information, which is used to indicate the progress of the current transmission service content.

[0268] Optionally, the first application may obtain the current transmission progress from the first content transmission service and generate corresponding transmission progress information.

[0269] S905: After determining that the first electronic device and the second electronic device have re-established their communication connection, the first content delivery service sends a connection restoration notification to the first application.

[0270] The connection restoration notification is used to indicate that the communication connection between the first electronic device and the second electronic device has been restored.

[0271] S906: The first application determines the transmission progress of the service content based on the saved transmission progress information, and continues to send the service content to the first content transmission service based on the transmission progress of the service content.

[0272] Optionally, the first application may send the saved transmission progress information to the first content transmission service so that the first content transmission service can determine the current transmission progress based on the transmission progress information.

[0273] S907: The first content transmission service continues to transmit the business content from the first application to the second application.

[0274] Optionally, the first content delivery service can determine the current delivery progress based on the delivery progress information from the first application, and continue to deliver content from the first application based on the current delivery progress.

[0275] The specific transmission process can be referred to the method described in steps S409 to S412 above, and will not be detailed here.

[0276] In one possible scenario, in the above method, if the communication connection between the first electronic device and the second electronic device is broken due to their distance from each other, after the first application and the second application receive a connection disconnection notification, as an optional implementation, the first application and / or the second application can determine whether the set connection restoration conditions are met based on the current content transmission service. If it is determined that the current content transmission service meets the set connection restoration conditions, a prompt message can be displayed to encourage the user to bring the first device and the second device closer together. After the user brings the first electronic device and the second electronic device closer together, the first and second electronic devices can automatically discover the other end and re-establish the connection, or the first or second electronic device can re-establish the connection with the other end in response to the user's operation, so that the first content transmission service and the second content transmission service can continue to perform content transmission services.

[0277] In another possible scenario, in the above method, if the communication connection between the first and second electronic devices is lost due to excessively high temperatures, as an optional implementation, the first or second electronic device can re-establish a connection with the other end after the temperature drops to a lower temperature (e.g., a set temperature), so that the first and second content transmission services can continue to perform content transmission services. As another optional implementation, the first or second electronic device can display a prompt message after the communication connection with the other end is lost. This prompt message can be used to indicate that content transmission is interrupted due to excessively high temperatures, and can also be used to prompt the user to choose whether to continue content transmission after the temperature drops. If the user indicates that content transmission should continue after the temperature drops, the first or second electronic device can re-establish a connection with the other end and continue performing content transmission services after the temperature drops to a lower temperature (e.g., a set temperature).

[0278] Based on the above method, the first electronic device and the second electronic device can save the breakpoint information of the content transmission service after the connection is broken, and can continue to execute the content transmission service from the breakpoint after the connection is re-established, thereby realizing breakpoint resume transmission and improving overall efficiency.

[0279] It should be understood that the implementation processes provided in the above embodiments are merely illustrative examples of the applicable method processes in the embodiments of this application. The execution order of each step in each embodiment can be adjusted according to actual needs, and other steps can be added or some steps can be removed. The execution order between steps that are not temporally related in each embodiment can be arbitrary. For example, the execution order of steps S902 and S903 above can be arbitrary.

[0280] It should be noted that the application scenarios provided in the above embodiments are merely illustrative examples of the applicable scenarios of the embodiments of this application, and do not limit the applicable scenarios of the solutions of this application. Some methods or the same technical concepts provided in any of the above embodiments can also be applied in other embodiments or other scenarios, or can be combined with the methods provided in other embodiments. Specifically, they can be applied in combination with specific embodiments or specific scenarios, and will not be listed and described one by one in this application.

[0281] Based on the above embodiments and the same technical concept, this application also provides a content transmission method, as shown in FIG10, which may include:

[0282] S1001: The first electronic device transmits content to the second electronic device; wherein, the content corresponds to the first service.

[0283] In one example, the descriptions of the first electronic device and the second electronic device can be referred to in the foregoing embodiments. The first service can be the content transmission service described in the foregoing embodiments, and the content transmitted by the first electronic device to the second electronic device can be the service content of the content transmission service.

[0284] S1002: When the first electronic device determines that the temperature of the first electronic device meets the first condition, it reduces the rate at which it transmits content to the second electronic device.

[0285] For example, the first condition may be the deceleration trigger condition described in the method corresponding to Figure 7 in the foregoing embodiments.

[0286] In some embodiments of this application, the first electronic device includes a communication device for transmitting content to a second electronic device. This communication device is the first communication device described in the foregoing embodiments. A method for the first electronic device to reduce the rate at which it transmits content to the second electronic device may include: the first electronic device reducing the rate at which it transmits content to the second electronic device by lowering the communication parameters of the first communication device; wherein the communication parameters include at least one of the following: channel bandwidth, number of antennas, and power. For details regarding each parameter, refer to the communication parameters 1-3 described in the foregoing embodiments; they will not be elaborated upon here.

[0287] In some embodiments of this application, when the first electronic device reduces the rate at which it transmits content to the second electronic device, it can reduce the rate at which it transmits content to the second electronic device to a target rate. For example, the target rate can be the first target rate or the second target rate described in the foregoing embodiments. The process by which the first electronic device reduces the rate at which it transmits content to the second electronic device to the target rate can be referred to the corresponding method described in the foregoing embodiment two, and will not be detailed here.

[0288] In some embodiments of this application, after reducing the rate at which the first electronic device transmits content to the second electronic device, it may further increase the rate at which it transmits content to the second electronic device when the temperature of the first electronic device meets a second condition, or in response to a third instruction from the second electronic device. For example, the second condition may be the speed-up triggering condition described in the foregoing embodiments. The method by which the first electronic device increases the rate at which it transmits content to the second electronic device can be implemented with reference to the method described in steps S703-S704 or steps S804-806 in the foregoing embodiments, and will not be detailed here.

[0289] In some embodiments of this application, the first electronic device may negotiate device roles before transmitting content to the second electronic device. The specific method described in Embodiment 1 above can be referred to, and will not be described in detail here.

[0290] In some embodiments of this application, when the first electronic device detects a disconnection in the communication connection with the second electronic device, it can generate and save transmission progress information corresponding to the first service; wherein, the transmission progress information is used to indicate the transmission progress of the content corresponding to the first service. After detecting a re-establishment of the communication connection with the second electronic device, the first electronic device can determine the transmission progress of the content corresponding to the first service based on the transmission progress information, and continue to transmit the content corresponding to the first service to the second electronic device according to the transmission progress of the content corresponding to the first service. This process can be referred to the method described in Embodiment 3 above, and will not be detailed here.

[0291] The specific steps performed by each electronic device in the above method can be found in the relevant descriptions in the foregoing embodiments, and will not be repeated here.

[0292] Based on the above embodiments and the same technical concept, this application also provides a content transmission method, as shown in FIG11, which may include:

[0293] S1101: The first electronic device transmits content to the second electronic device; wherein, the content corresponds to the first service.

[0294] The processing method before the first electronic device transmits content to the second electronic device and the method of transmitting content from the first electronic device to the second electronic device can be referred to the description in the foregoing embodiments, and will not be described in detail here.

[0295] S1102: When the second electronic device determines that the temperature of the second electronic device meets the first condition, it sends a first instruction to the first electronic device; wherein the first instruction is used to instruct the first electronic device to reduce the rate at which it transmits content to the second electronic device.

[0296] For example, the first condition can be the deceleration trigger condition described in the method corresponding to Figure 8 in the foregoing embodiments.

[0297] S1103: In response to a first instruction from the second electronic device, the first electronic device reduces the rate at which it transmits content to the second electronic device.

[0298] The method for the first electronic device to reduce the rate at which it transmits content to the second electronic device, and the subsequent processing method, can be referred to the description in the foregoing embodiments, and will not be described in detail here.

[0299] The specific steps performed by each electronic device in the above method can be found in the relevant descriptions in the foregoing embodiments, and will not be repeated here.

[0300] Based on the above embodiments and the same technical concept, this application also provides an electronic device for implementing the content transmission method for electronic devices, servers, or terminal devices provided in this application. As shown in FIG12, the electronic device 1200 may include: a memory 1201, one or more processors 1202, and one or more computer programs (not shown in the figure). The above-mentioned devices can be coupled through one or more communication buses 1203. Optionally, the electronic device 1200 may also include a display screen 1204.

[0301] The memory 1201 stores one or more computer programs (code), and the one or more computer programs include computer instructions; one or more processors 1202 call the computer instructions stored in the memory 1201, causing the electronic device 1200 to execute the content transmission method for electronic devices, servers or terminal devices provided in the embodiments of this application.

[0302] In a specific implementation, memory 1201 may include high-speed random access memory and may also include non-volatile memory, such as one or more disk storage devices, flash memory devices, or other non-volatile solid-state storage devices. Memory 1201 may store an operating system (hereinafter referred to as the system), such as embedded operating systems like Android, iOS, Windows, or Linux. Memory 1201 can be used to store implementation programs of the embodiments of this application. Memory 1201 may also store network communication programs, which can be used to communicate with one or more additional devices, one or more user devices, or one or more network devices.

[0303] One or more processors 1202 may be a general-purpose CPU, a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits used to control the execution of programs according to the present application.

[0304] Display screen 1204 is used to display application interfaces and other related user interfaces.

[0305] It should be noted that Figure 12 is only one implementation of the electronic device 1200 provided in this application embodiment. In actual applications, the electronic device 1200 may include more or fewer components. For details, please refer to the specific structure and description shown in Figure 1. No limitations are imposed here.

[0306] Based on the above embodiments and the same technical concept, this application also provides a computer-readable storage medium storing a computer program that, when run on a computer, causes the computer to perform the method provided in the above embodiments for use in electronic devices, servers, or terminal devices.

[0307] Based on the above embodiments and the same technical concept, this application also provides a computer program product, which includes a computer program or instructions. When the computer program or instructions are run on a computer, the computer causes the computer to perform the method provided in the above embodiments for use in electronic devices, servers, or terminal devices.

[0308] The methods provided in this application can be implemented, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, they can be implemented, in whole or in part, in the form of a computer program product. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the flow or function according to the embodiments of the present invention is generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user equipment, or other programmable device. Computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, computer instructions can be transmitted from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. A computer-readable storage medium can be any available medium that a computer can access, or a data storage device such as a server or data center that integrates one or more available media. Available media can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., digital video discs (DVDs), or semiconductor media (e.g., SSDs), etc.

[0309] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.

Claims

1. A content transmission method, applied to a first electronic device, characterized in that, The method comprises: transmitting content to a second electronic device; wherein the content corresponds to a first service; when a temperature of the first electronic device meets a first condition, or in response to a first indication from the second electronic device, reducing a rate of transmitting content to the second electronic device.

2. The method of claim 1, wherein, The first electronic device comprises a communication device for transmitting content to the second electronic device; and the reducing of the rate of transmitting content to the second electronic device comprises: reducing the rate of transmitting content to the second electronic device by reducing a communication index of the communication device; wherein the communication index comprises at least one of a channel bandwidth, a number of antennas, and a power.

3. The method of claim 2, wherein, The method further comprises: if the communication index comprises the channel bandwidth and / or the number of antennas, sending a second indication to the second electronic device; wherein the second indication indicates a target communication index, which is used as the communication index of the communication device after the reduction.

4. The method according to any one of claims 1 to 3, characterized in that, The first condition comprises: the temperature of the first electronic device is greater than or equal to a first temperature threshold; or the temperature of the first electronic device belongs to a set first temperature interval.

5. The method according to any one of claims 1 to 4, characterized in that After the reduction of the rate of transmitting content to the second electronic device, the method further comprises: when a temperature of the first electronic device meets a second condition, or in response to a third indication from the second electronic device, increasing the rate of transmitting content to the second electronic device.

6. The method of claim 5, wherein, The second condition comprises: the temperature of the first electronic device is less than or equal to a second temperature threshold; or the temperature of the first electronic device belongs to a set second temperature interval.

7. The method according to any one of claims 1 to 6, characterized in that Before the transmitting of content to the second electronic device, the method further comprises: establishing a point-to-point (P2P) communication with the second electronic device; determining a device role of the first electronic device and / or the second electronic device according to the first service; wherein the device role of any electronic device is either a group owner (GO) of the P2P communication or a group client (GC) of the P2P communication; sending a fourth indication to the second electronic device, the fourth indication indicating the device role of the first electronic device and / or the second electronic device.

8. The method of claim 7, wherein: when the first service is a cloning service, the first electronic device is configured to act as the GC; or when the first service is a file sharing service, the first electronic device is configured to act as the GO.

9. The method according to any one of claims 1 to 8, characterized in that, The method further comprises: when a communication connection between the first electronic device and the second electronic device is detected to be disconnected, generating and saving transmission progress information corresponding to the first service; wherein the transmission progress information indicates a transmission progress of content corresponding to the first service; after a communication connection between the first electronic device and the second electronic device is detected to be re-established, determining the transmission progress of the content corresponding to the first service according to the transmission progress information, and continuing to transmit the content corresponding to the first service to the second electronic device according to the transmission progress of the content corresponding to the first service.

10. The method of any one of claims 1 to 9, wherein, The reducing of the rate of transmitting content to the second electronic device comprises: reducing a rate of transmitting content to the second electronic device to a target rate; wherein the target rate is a product of a reference rate and a target ratio, the reference rate is a current rate of transmitting content to the second electronic device or a maximum transmission rate of the first electronic device, and the target ratio is greater than 0 and less than 1.

11. The method of claim 10, wherein, the first indication is further used to indicate the target ratio, which is used by the first electronic device to determine the target rate. 12.A content transmission method applied to a second electronic device, the method comprising: the method comprises: receiving content transmitted by a first electronic device; wherein the content corresponds to a first service; sending a first indication to the first electronic device when a temperature of the second electronic device meets a first condition; wherein the first indication is used to instruct the first electronic device to reduce a rate of transmitting content to the second electronic device; reducing a rate of receiving content transmitted by the first electronic device.

13. The method of claim 12, wherein, the second electronic device comprises a communication device, which is used to receive content transmitted by the first electronic device; the reducing a rate of receiving content transmitted by the first electronic device comprises: reducing a rate of receiving content transmitted by the first electronic device by reducing a power of the communication device; and / or reducing a rate of receiving content transmitted by the first electronic device by reducing a communication metric of the communication device in response to a second indication from the first electronic device; wherein the communication metric comprises a channel bandwidth and / or a number of antennas.

14. The method of claim 13, wherein, the second indication is used to indicate a target communication metric, which is used as the communication metric of the communication device after being reduced; the reducing a communication metric of the communication device in response to a second indication from the first electronic device comprises: reducing the communication metric of the communication device to the target communication metric.

15. The method of any one of claims 12 to 14, wherein, the first condition comprises: a temperature of the second electronic device is greater than or equal to a first temperature threshold; or a temperature of the second electronic device belongs to a set first temperature interval.

16. The method of any one of claims 12 to 15, wherein, in the reducing a rate of receiving content transmitted by the first electronic device, the method further comprises: sending a third indication to the first electronic device when a temperature of the second electronic device meets a second condition; wherein the third indication is used to instruct the first electronic device to increase a rate of transmitting content to the second electronic device.

17. The method of claim 16, wherein, the second condition comprises: a temperature of the second electronic device is less than or equal to a second temperature threshold; or a temperature of the second electronic device belongs to a set second temperature interval.

18. The method of any one of claims 12 to 17, wherein, in the receiving content transmitted by a first electronic device, the method further comprises: establishing a point-to-point (P2P) communication with the first electronic device; receiving a fourth indication from the first electronic device, the fourth indication is used to indicate a device role of the first electronic device and / or the second electronic device; wherein the device role of any electronic device is a group owner (GO) of the P2P communication or a group client (GC) of the P2P communication; determining a device role of the second electronic device according to the fourth indication.

19. The method of claim 18, wherein, When the first service is a clone service, the second electronic device is configured to act as the GO; or When the first service is a file sharing service, the second electronic device is configured to act as the GC.

20. The method of any one of claims 12 to 19, wherein, The method further comprises: When it is detected that the communication connection between the second electronic device and the first electronic device is disconnected, saving the received content corresponding to the first service from the first electronic device; After detecting that the second electronic device and the first electronic device reestablish the communication connection, continuing to receive the content corresponding to the first service transmitted by the first electronic device.

21. The method of any one of claims 12 to 20, wherein, The first indication is further configured to indicate a target ratio, the target ratio being used by the first electronic device to determine the reduced rate of transmitting content to the second electronic device, the target ratio being greater than 0 and less than 1.

22. An electronic device, comprising: The electronic device comprises a memory and one or more processors; The memory is configured to store computer program code, the computer program code comprising computer instructions; when the computer instructions are executed by the one or more processors, the electronic device is caused to perform the method of any one of claims 1-11, or perform the method of any one of claims 12-21.

23. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, when the computer program is run on the electronic device, the electronic device is caused to perform the method of any one of claims 1-11, or perform the method of any one of claims 12-21.

24. A computer program product, characterised in that, The computer program product comprises a computer program or instructions, when the computer program or instructions are run on the electronic device, the electronic device is caused to perform the method of any one of claims 1-11, or perform the method of any one of claims 12-21.

Citation Information

Patent Citations

  • Electronic device, display device connected with electronic device, and method for operating electronic device

    CN115769185A

  • Temperature control method and related equipment

    CN116709417A

  • WI-FI P2P Connection Method, Electronic Device, Program Product, and Medium

    US20240098816A1

  • Data transmission method and apparatus

    WO2021179970A1

  • Method for establishing wi-fi p2p connection, and electronic device

    WO2022228207A1