Content transmission method and electronic equipment

By reducing the transmission rate of communication devices in electronic equipment and configuring the device role, the problem of excessively high device temperature affecting business operations was solved, achieving better temperature control and business efficiency.

CN121194262APending Publication Date: 2025-12-23HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410793695.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2025-12-23

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

Effective cooling and power consumption control can be achieved by reducing the transmission rate and communication specifications of electronic devices, such as channel bandwidth and number of antennas, in conjunction with device role configuration.

Benefits of technology

It effectively reduces equipment temperature rise, ensures smooth execution of content transmission services, and improves equipment operating efficiency and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121194262A_ABST
    Figure CN121194262A_ABST
Patent Text Reader

Abstract

The invention provides a content transmission method and electronic equipment, the method is applied to first electronic equipment, and the method comprises the following steps: transmitting content to second electronic equipment; wherein the content corresponds to a first service; when it is determined that the temperature of the first electronic device meets a first condition, or in response to a first instruction from a second electronic device, the rate of content transmission to the second electronic device is reduced. The method can slow down or avoid the problem that the execution of the content transmission service between the devices and the normal operation of the devices are influenced by the temperature rise of the devices, thereby promoting the smooth and efficient execution of the content transmission service.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of electronic devices, and in particular, to a content transmission method and an electronic device. BACKGROUND

[0002] Currently, some electronic devices can perform content transmission with other electronic devices based on peer-to-peer (P2P) communication after establishing P2P communication with the other electronic devices, such as performing cloning or content sharing services. In a scenario in which a large amount of content transmission is performed by an electronic device, the power consumption of the electronic device is usually large, and the power consumption heat generated thereby is high, so that the temperature of the electronic device is prone to be too high, which affects the execution of the service and the normal operation of the electronic device. To address this problem, the current method can reduce the CPU power consumption by reducing the CPU load of the electronic device, thereby reducing the power consumption heat and slowing down the temperature rise. However, this method has poor effect on slowing down the temperature rise, so that the problem of device temperature rise affecting the execution of the service and the normal operation of the electronic device still exists. SUMMARY

[0003] The present application provides a content transmission method and an electronic device, which can slow down or avoid the problem of device temperature rise affecting the execution of the content transmission service between devices and the normal operation of the device, thereby promoting the smooth and efficient execution of the content transmission service.

[0004] In a first aspect, an embodiment of the present application provides a content transmission method applied to a first electronic device, and the method comprises: transmitting content to a second electronic device; wherein the content corresponds to a first service; and determining 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. Optionally, the first indication is used to instruct the first electronic device to reduce the rate of transmitting the content to the second electronic device.

[0005] In the method, the first electronic device can reduce the power consumption heat of the communication device of the first electronic device by reducing the rate of transmitting the content, and thus can slow down the temperature rise of the first electronic device or achieve temperature reduction. Since the power consumption heat of the communication device is high during the content transmission, the temperature rise of the first electronic device or the first electronic device can be slowed down or cooled more effectively by reducing the power consumption heat of the communication device of the first electronic device, and thus a better temperature control effect can be obtained. After the rate of transmitting the content of the first electronic device is reduced, the rate of receiving the content of the communication device of the second electronic device can be reduced accordingly, so that the power consumption of the communication device of the second electronic device can be reduced, and thus the temperature rise of the second electronic device or the second electronic device can be slowed down or cooled more effectively, and a better temperature control effect can be obtained. In addition, the first electronic device can adjust the content transmission rate based on the temperature of the first electronic device or based on the indication of the second electronic device, so that the temperature reduction demand of both ends can be more easily met, the temperature reduction effect of both ends can be ensured, and the practicability is higher.

[0006] In a possible design, the first electronic device includes a communication device, and the communication device is configured to transmit content to the second electronic device. The method further includes: reducing the rate of transmitting the content to the second electronic device by reducing a communication index of the communication device. The communication index includes at least one of the following: a channel bandwidth, a number of antennas, and power.

[0007] In the method, the first electronic device can quickly and effectively reduce the rate of transmitting the content to the second electronic device by reducing the specific communication index of the communication device, and thus a quick and effective temperature reduction effect can be achieved.

[0008] In a possible design, the method further includes: if the communication index includes the channel bandwidth and / or the number of antennas, sending a second indication to the second electronic device. The second indication is used to indicate a target communication index, and the target communication index is used as the communication index of the communication device after the reduction.

[0009] In the method, after the first electronic device reduces the index of the communication device, the first electronic device can instruct the second electronic device to make corresponding adjustments, so that the same configuration can be maintained between the communication device of the first electronic device and the communication device of the second electronic device, and thus the communication between the communication devices of the two ends can be smoothly performed.

[0010] In a possible design, the first condition includes that 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. Optionally, the lower limit of the first temperature interval can be greater than or equal to a set temperature.

[0011] Based on the method, the first electronic device can reduce the content transmission rate (i.e., the content sending rate) when the temperature is too high, so as to achieve the effect of reducing the temperature or avoiding the temperature from continuing to rise, and thus the influence of the temperature rise on the content transmission service between devices or the normal operation process of the device can be reduced or avoided.

[0012] In a possible design, after the rate of transmitting the content to the second electronic device is reduced, the method further includes: increasing the rate of transmitting the content to the second electronic device when the temperature of the first electronic device meets a second condition, or in response to a third indication from the second electronic device. Optionally, the third indication is used to instruct the first electronic device to increase the rate of transmitting the content to the second electronic device.

[0013] In the method, the first electronic device can improve the efficiency of performing the content transmission service by increasing the rate of transmitting the content to the second electronic device. The first electronic device can adjust the content transmission rate based on the temperature of the first electronic device or based on the indication of the second electronic device, which is more likely to meet the rate requirement of both ends and has higher practicability.

[0014] In a possible design, the increasing the rate of transmitting the content to the second electronic device includes: increasing the rate of transmitting the content to the second electronic device by increasing a communication index of a communication device of the first electronic device.

[0015] In a possible design, the method further includes: if the communication index includes the channel bandwidth and / or the number of antennas, sending a fifth indication to the second electronic device, where the fifth indication is used to instruct the communication index of the communication device after the increase.

[0016] In the method, the first electronic device can quickly and effectively increase the rate of transmitting the content to the second electronic device by increasing the specific communication index of the communication device.

[0017] In a 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 belongs to a second set temperature interval. Based on the method, the first electronic device can increase the content transmission rate when the temperature is relatively low, so as to improve the execution efficiency of the content transmission service while avoiding the influence of the temperature being too high on the content transmission service between devices or the normal operation process of the device.

[0018] In a possible design, before transmitting the content to the second electronic device, the method further includes: 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; where the device role of any electronic device is a manager (GO) of the P2P communication or a managed device (GC) of the P2P communication; and sending a fourth indication to the second electronic device, where the fourth indication is used to indicate the device role of the first electronic device and / or the second electronic device. Optionally, the determining the device role of the first electronic device and / or the second electronic device according to the first service includes: determining the device role of the first electronic device and / or the second electronic device according to power consumption of the first electronic device in performing the first service and power consumption of the second electronic device in performing the first service. When the power consumption of the first electronic device in performing the first service is lower than the power consumption of the second electronic device in 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 in performing the first service is higher than the power consumption of the second electronic device in 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.

[0019] Based on the method, the first electronic device can configure the device roles of the first electronic device and the second electronic device in the content transmission process based on the content transmission service (i.e., the first service) to be performed, which helps to avoid high-power processing from being concentrated on the same device, thereby reducing the risk of excessively high power consumption of the device and ensuring optimal overall power consumption in the content transmission process.

[0020] In a possible design, when the first service is a cloning service, the first electronic device is configured to serve as the GC; or when the first service is a file sharing service, the first electronic device is configured to serve as the GO. The cloning service is a service of copying part or all of the content in the first electronic device to the second electronic device. The file sharing service is a service of sharing a file in the first electronic device to the second electronic device, where the data amount of the file is greater than or equal to a set data amount.

[0021] In the method, during execution of the cloning service, the load of the sending end, i.e., the first electronic device, is much higher than the load of the receiving end, i.e., the second electronic device. Therefore, in the cloning scenario, the GO role with higher power consumption is deployed on the receiving end, and the GC role with lower power consumption is deployed on the sending end, which can avoid the situation that high-power processing is concentrated on the sending end, and further reduce the risk of excessively high power consumption of the sending end, and help to ensure smooth and efficient execution of the cloning service. During execution of the file sharing service, the load of the receiving end, i.e., the second electronic device, is much higher than the load of the sending end, i.e., the first electronic device. Therefore, in the file sharing scenario, the GO role with higher power consumption is deployed on the sending end, and the GC role with lower power consumption is deployed on the receiving end, which can avoid the situation that high-power processing is concentrated on the sending end, and further reduce the risk of excessively high power consumption of the sending end, and help to ensure smooth and efficient execution of the file sharing service.

[0022] In a possible design, the method further includes: when it is detected that the communication connection between the first electronic device and the second electronic device is disconnected, generating transmission progress information corresponding to the first service and saving the transmission progress information; the transmission progress information is used to indicate the transmission progress of the content corresponding to the first service; after it is detected that the communication connection between the first electronic device and the second electronic device is 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.

[0023] In the method, after the connection between the first electronic device and the second electronic device is disconnected, 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 the connection with the second electronic device is re-established, thereby realizing breakpoint resuming, and thus avoiding retransmission and further improving overall processing efficiency.

[0024] In a possible design, the method further includes: reducing the rate of transmitting the content to the second electronic device to a target rate; the target rate is a product of a reference rate and a target proportion, the reference rate is the current rate of transmitting the content to the second electronic device or the maximum transmission rate of the first electronic device, and the target proportion is greater than 0 and less than 1.

[0025] Based on the method, the first electronic device can refer to the current content transmission rate or the maximum content transmission rate to reduce the content transmission rate, and the flexibility is relatively high.

[0026] In a possible design, the first indication is further used to indicate the target ratio, and the target ratio 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 degree expected by the second electronic device.

[0027] In a second aspect, an embodiment of the present application provides a content transmission method, applied to a second electronic device, and the method comprises the following steps.

[0028] In the method, the second electronic device can trigger the first electronic device to reduce the content transmission rate in the process of receiving the content from the first electronic device, which can reduce the power consumption heat caused by the communication device of the first electronic device, and further can slow down or reduce the temperature of the first electronic device. Since the power consumption heat of the communication device is very high in the content transmission process, reducing the power consumption heat caused by the communication device of the first electronic device can more effectively slow down or reduce the temperature of the first electronic device, and further can obtain a better temperature control effect. On the other hand, the content transmission rate of the first electronic device is reduced, which can reduce the content receiving rate of the communication device of the second electronic device, and thus can reduce the power consumption of the communication device of the second electronic device, and further can more effectively slow down or reduce the temperature of the second electronic device, and thus can obtain a better temperature control effect.

[0029] In a possible design, the second electronic device comprises a communication device, and the communication device is used to receive the content transmitted by the first electronic device. The method of reducing the content receiving rate of the first electronic device comprises the following steps: reducing the content receiving rate of the first electronic device by reducing the power of the communication device; and / or reducing the content receiving rate of the first electronic device by reducing the communication index of the communication device in response to a second indication from the first electronic device; wherein the communication index comprises a channel bandwidth and / or an antenna number.

[0030] In the method, the second electronic device can quickly and effectively reduce the content receiving rate from the first electronic device by reducing the above-mentioned specific communication index of the communication device, and thus can obtain a quick and effective temperature reduction effect.

[0031] In a possible design, the second indication is used to indicate a target communication index of the communication device, where the target communication index is used as the reduced communication index of the communication device; and the reducing the communication index of the communication device in response to the second indication from the first electronic device includes reducing the communication index of the communication device to the target communication index.

[0032] Based on the method, the second electronic device can adjust the communication device according to the indication from the first electronic device, and the same configuration can be maintained between the communication device of the second electronic device and the communication device of the first electronic device, so that the communication between the two communication devices can be smoothly performed.

[0033] In a possible design, the first condition includes that 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 belongs to a set first temperature range. Optionally, the lower limit of the first temperature range can be greater than or equal to a set temperature.

[0034] Based on the method, the second electronic device can reduce the content transmission rate (i.e., the content receiving rate) when the temperature is too high, so as to achieve the effect of reducing the temperature or avoiding the temperature from continuously rising, and then the influence of the temperature rising on the content transmission service between devices or the normal operation of the device can be reduced or avoided.

[0035] In a possible design, after the rate of receiving the content transmitted by the first electronic device is reduced, the method further includes: sending a third indication to the first electronic device when the temperature of the second electronic device meets a second condition; and the third indication is used to instruct the first electronic device to increase the rate of transmitting the content to the second electronic device.

[0036] In the method, the second electronic device can instruct the first electronic device to adjust the content transmission rate, so as to drive the second electronic device to adjust the content transmission rate, and then the effect of controlling the temperature of the second electronic device can be achieved.

[0037] In a possible design, the increasing the rate of receiving the content transmitted by the first electronic device includes: increasing the rate of receiving the content transmitted by the first electronic device by increasing the power of the communication device, and / or increasing the rate of receiving the content transmitted by the first electronic device by increasing the communication index of the communication device in response to a fifth indication from the first electronic device. Optionally, the fifth indication is used to indicate a target communication index of the communication device; and the increasing the communication index of the communication device in response to the fifth indication from the first electronic device includes increasing the communication index of the communication device to the communication index indicated by the fifth indication.

[0038] In the method, the second electronic device can quickly and effectively improve the rate of receiving the content from the first electronic device by improving the specific communication index of the communication device.

[0039] In a 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 belongs to a set second temperature interval. In the method, the second electronic device can improve the content transmission rate when the temperature is low, and can improve the execution efficiency of the content transmission service while avoiding the temperature being too high to affect the content transmission service between devices or the normal operation of the device.

[0040] In a possible design, before receiving the content transmitted by the first electronic device, the method further includes: establishing a point-to-point (P2P) communication with the first electronic device; receiving a fourth indication from the first electronic device, where the fourth indication is used to indicate the device role of the first electronic device and / or the second electronic device; and determining the device role of the second electronic device according to the fourth indication, where 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. When the power consumption of the first electronic device for executing the first service is lower than the power consumption of the second electronic device for executing 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 for executing the first service is higher than the power consumption of the second electronic device for executing 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 be replaced by a master device, and the GC can be replaced by a non-master device.

[0041] Based on the method, by reasonably configuring the device roles of the first electronic device and the second electronic device in the content transmission process, it is helpful to avoid high power consumption processing being concentrated on the same device, thereby reducing the risk of excessively high power consumption of the device and ensuring the overall power consumption in the content transmission process to be optimal.

[0042] In a possible design, when the first service is a cloning service, the second electronic device is configured to serve as the GO; or when the first service is a file sharing service, the second electronic device is configured to serve as the GC.

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

[0044] In the method, the second electronic device can save the received content from the first electronic device after the connection between the second electronic device and the first electronic device is disconnected, and can continue to receive the content from the first electronic device after the connection between the second electronic device and the first electronic device is re-established, thereby realizing the resumption of the breakpoint, and thus avoiding retransmission and improving the overall processing efficiency.

[0045] In a possible design, the first indication further indicates a target ratio, where the target ratio is used by the first electronic device to determine the reduced rate of transmitting the content to the second electronic device, and the target ratio is greater than 0 and less than 1.

[0046] Based on the method, the second electronic device can determine the degree of reducing the content transmission rate with reference to the current content transmission rate or the maximum content transmission rate, and the flexibility is relatively high.

[0047] In a third aspect, the present application provides an electronic device, including a memory and one or more processors; the memory is configured to store computer program codes, the computer program codes include computer instructions; when the computer instructions are executed by the one or more processors, the electronic device executes the method described in the first aspect or any possible design of the first aspect, or executes the method described in the second aspect or any possible design of the second aspect.

[0048] In a fourth aspect, the present application provides a computer readable storage medium, which stores a computer program, when the computer program is run on an electronic device, the electronic device executes the method described in the first aspect or any possible design of the first aspect, or executes the method described in the second aspect or any possible design of the second aspect.

[0049] In a fifth aspect, the present application provides a computer program product, which includes a computer program or instructions, when the computer program or instructions are run on an electronic device, the electronic device executes the method described in the first aspect or any possible design of the first aspect, or executes the method described in the second aspect or any possible design of the second aspect.

[0050] In a sixth aspect, the present application provides a chip system, which comprises a processor and a memory, and the memory stores instructions; when the instructions are executed by the processor, the method described in the first aspect or any possible design of the first aspect, or the method described in the second aspect or any possible design of the second aspect is implemented. The chip system can be composed of a chip, or can comprise a chip and other discrete devices.

[0051] The beneficial effects of the third aspect to the sixth aspect can refer to the beneficial effects of the first aspect or the second aspect, which will not be repeated here. BRIEF DESCRIPTION OF DRAWINGS

[0052] Figure 1 A hardware architecture schematic diagram of an electronic device provided by an embodiment of the present application is shown in FIG. 1;

[0053] Figure 2 A software architecture schematic diagram of an electronic device provided by an embodiment of the present application is shown in FIG. 2;

[0054] Figure 3 An architecture schematic diagram of a communication system provided by an embodiment of the present application is shown in FIG. 3;

[0055] Figure 4 A flowchart of a role negotiation method provided by an embodiment of the present application is shown in FIG. 4;

[0056] Figure 5 A schematic diagram of power consumption comparison of various devices in an electronic device in a content transmission process provided by an embodiment of the present application is shown in FIG. 5;

[0057] Figure 6 A schematic diagram of different processing stages of an electronic device provided by an embodiment of the present application is shown in FIG. 6;

[0058] Figure 7 A schematic diagram of a rate adjustment method provided by an embodiment of the present application is shown in FIG. 7;

[0059] Figure 8 A schematic diagram of a rate adjustment method provided by an embodiment of the present application is shown in FIG. 8;

[0060] Figure 9 A schematic diagram of a content transmission method provided by an embodiment of the present application is shown in FIG. 9;

[0061] Figure 10 A schematic diagram of a content transmission method provided by an embodiment of the present application is shown in FIG. 10;

[0062] Figure 11 A schematic diagram of a content transmission method provided by an embodiment of the present application is shown in FIG. 11;

[0063] Figure 12 A structure schematic diagram of an electronic device provided by an embodiment of the present application is shown in FIG. 12. DETAILED DESCRIPTION

[0064] In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the drawings.

[0065] In the description of the embodiments of the present application, the terms "first", "second" are used only for the purpose of description, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined with "first", "second" can explicitly or implicitly include one or more of the features.

[0066] For the convenience of understanding, the description of the related concepts of the present application is exemplarily given for reference.

[0067] 1) Wireless Fidelity (WiFi) peer-to-peer (P2P), which can also be referred to as WiFi Direct, or can be simply referred to as P2P, is a technology for directly connecting devices by using WiFi technology. Through WiFi P2P, one-to-one or one-to-many communication can be performed between devices without the help of a local area network or an access point (AP).

[0068] There are two device roles in the WiFi P2P networking, which are a group owner (GO) and a group client (GC). The GO is a device for connecting the GC to a wireless network, and the GO can realize communication between a wireless network and a wired network, and is a core device for building a wireless local area network. The GC is a client device that can be connected to the GO.

[0069] The GO can also be referred to as a group server or a group manager or a manager or a management end, and the GC can also be referred to as a managed or a group-in-managed or a managed or a management end, and the names of the GO and the GC are not limited in the embodiments of the present application.

[0070] The device form of the GO and the GC can be a terminal device or other devices, and the embodiments of the present application do not make specific limitations.

[0071] In some embodiments of the present application, the terminal device can be a portable terminal device (e.g., a mobile phone, a tablet computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, etc.), a wearable device with wireless communication function (e.g., a watch, a bracelet, etc.), a vehicle-mounted terminal device, an augmented reality (AR) / virtual reality (VR) device, a personal digital assistant (PDA), a smart home device (e.g., a smart television, a smart speaker, etc.), a smart robot, a plant device, 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, a flight device (e.g., a smart robot, a drone, an airplane), etc.

[0072] Exemplary embodiments of the portable terminal device include, but are not limited to, a portable terminal device equipped with an operating system such as Android, iOS, Windows Phone, Symbian, or other operating systems. The portable terminal device described above can also be other portable terminal devices such as a laptop with a touch-sensitive surface (e.g., a touch panel), etc. The wearable device is a portable device that can be directly worn on the body of a user or integrated into a garment or accessory of the user.

[0073] 2) An access point (AP), also referred to as a wireless access point or a hotspot, etc., is a device used to access a wireless network by a user device; the AP can enable communication between a wireless network and a wired network and is a core device for building a wireless local area network.

[0074] The AP can be an access point in a wireless fidelity (WiFi) system, etc., or a module or unit that completes part of the function of an access point, for example, a central unit (CU) or a distributed unit (DU); it can also be a router, a network bridge, a wireless gateway, etc. The present application does not limit the specific technology and specific device form of the AP.

[0075] 3) Station (STA), also known as wireless terminal or wireless workstation, etc., STA refers to a device connected to a wireless network, which can communicate with other devices inside the wireless network or outside the wireless network through an access point. The device form of STA can be a terminal device or other devices, etc., which is not specifically limited in the embodiments of the present application.

[0076] 4) Spatial stream, which can also be referred to as the number of spatial streams. The electronic device transmits multiple signals at the same time through radio, and each signal is a spatial stream. The electronic device can transmit spatial streams using a transmitter and an antenna, and different spatial streams reach the receiving end through different paths. The more spatial streams, the higher the transmission rate. The number of spatial streams that the electronic device can transmit / receive at the same time is positively related to the number of antennas used by the electronic device. The larger the number of antennas, the greater the number of spatial streams.

[0077] It should be understood that "at least one" in the embodiments of the present application refers to one or more, and "multiple" refers to two or more. "And / or" describes the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B can represent: A exists alone, A and B exist together, and B exists alone, where A and B can be singular or plural. The character " / " generally represents an "or" relationship between the associated objects before and after it. "At least one of the following" or similar expressions means any combination of these items, including any combination of single item or multiple 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.

[0078] Wireless Fidelity (WiFi) P2P technology or similar direct communication technology has been widely used in close-range communication (or short-range communication) scenarios, especially some close-range communication scenarios that require large data volume content transmission (such as large file sharing, screen projection scenarios, cloning, etc.), due to its high transmission rate and independence from local area networks.

[0079] Currently, in close-range communication scenarios implemented based on such technology, the roles of GO and GC are generally randomly determined, or the default sender is GO and the receiver is GC. In close-range communication scenarios that require large data volume content transmission, this method may have the risk of high power consumption of one end (for example, the sender), which affects the content transmission service (for example, the quality of service decreases or the service fails, etc.).

[0080] In a short-range communication scenario requiring large data volume content transmission, during the communication process, the temperature rise of the device can cause some processes to be closed, affecting the content transmission service, and even can cause service interruption. For example, when the temperature of any device is too high (for example, reaches the regulatory temperature), the device will close the short-range communication connection and foreground application, etc., which will cause the interruption of the content transmission service. In the above scenario, the temperature rise of the device is mainly caused by power consumption heat. At present, the power consumption can be reduced by reducing the Central Processing Unit (CPU) load of the device, thereby slowing down the temperature rise. However, the cooling effect of this method is poor, so there is still a problem that the temperature rise of the device will affect the content transmission service.

[0081] In addition, in a short-range communication scenario requiring large data volume content transmission, after the content transmission service between devices is interrupted (for example, transmission interruption caused by too high temperature or device moving away, etc.), the content transmission service can only be re-executed after the connection between the devices is established again, resulting in low service processing efficiency and affecting the user experience.

[0082] In view of the above problems, the embodiments of the present application provide a content transmission method and an electronic device. The method can reduce the risk of high power consumption of the sending end in the content transmission process by reasonably setting the GO / GC role of the electronic device. The method can also achieve better cooling effect by reasonably controlling the power consumption of the communication device of the electronic device, thereby promoting the smooth and efficient execution of the content transmission service. The method can also improve the processing efficiency of the content transmission service and improve the user experience by implementing breakpoint resume.

[0083] The technical scheme provided by the embodiments of the present application can be executed by any electronic device with processing and communication capabilities, or can be executed by a system composed of multiple electronic devices with processing and communication capabilities. The performance of the electronic device can be referred to the description in the above concept description or the related description below.

[0084] In the following, the technical scheme of the present application is applied in an electronic device or a system composed of multiple electronic devices, and the implementation process in other scenarios is similar and will not be repeated.

[0085] The following refers to Figure 1 The structure of the electronic device to which the method provided by the embodiments of the present application is applicable is introduced.

[0086] As Figure 1As shown in FIG. 1, the electronic device 100 can include a processor 110, an external memory interface 120, an internal memory 121, a USB interface 130, a charge 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, a key 190, a motor 191, an indicator 192, a camera 193, a display 194, and a SIM card interface 195, etc.

[0087] The sensor module 180 can include a gyro sensor, an acceleration sensor, a proximity light sensor, a fingerprint sensor, a touch sensor, a temperature sensor, a pressure sensor, a distance sensor, a magnetic sensor, an ambient light sensor, an air pressure sensor, a bone conduction sensor, etc.

[0088] It can be understood that, Figure 1 The electronic device 100 shown in FIG. 1 is merely an example and does not constitute a limitation on the electronic device, and the electronic device can have more or fewer components than those shown in the figure, can combine two or more components, or can have a different component configuration. Figure 1 The various components shown in FIG. 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.

[0089] The processor 110 can include one or more processing units, for example: the processor 110 can include a CPU, an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units can be independent devices, or can be integrated in one or more processors. Among them, the controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to instruction operation codes and timing signals, complete the control of fetching instructions and executing instructions.

[0090] The processor 110 can also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory can hold instructions or data that the processor 110 has just used or cycled through. If the processor 110 needs to use the instructions or data again, it can be called directly from the memory. This avoids repeated access and reduces the waiting time of the processor 110, thus improving the efficiency of the system.

[0091] The execution of the content transmission method provided in the embodiments of the present application can be controlled by the processor 110 or other components, such as calling the processing program of the embodiments of the present application stored in the internal memory 121, or calling the processing program of the embodiments of the present application stored in the third party device through the external memory interface 120, to control the wireless communication module 160 to communicate data with other devices, improve the intelligence and convenience of the electronic device 100, and improve the user experience. The processor 110 can include different devices, such as integrated CPU and GPU, which can cooperate to execute the content transmission method provided in the embodiments of the present application, such as part of the algorithm in the content transmission method is executed by the CPU and another part of the algorithm is executed by the GPU, to obtain faster processing efficiency.

[0092] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can adopt 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, a MicroLed, a Micro-oLed, a quantum dot light emitting diode (QLED), etc. In some embodiments, the electronic device 100 can include 1 or N display screens 194, and N is a positive integer greater than 1. The 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, the display screen 194 can display photos, videos, web pages, or files, etc.

[0093] In the embodiments of the present application, the display screen 194 can be a flexible display screen as a whole, or can be a spliced display screen composed of two rigid screens and a flexible screen between the two rigid screens.

[0094] The camera 193 (front-facing camera or rear-facing camera, or one camera that can serve as both front-facing and rear-facing camera) is used to capture still images or videos. Generally, the camera 193 can include a light-sensing element such as a lens group and an image sensor, where the lens group includes multiple lenses (convex or concave) for collecting light signals reflected by an object to be photographed and transmitting the collected light signals to the image sensor. The image sensor generates a raw image of the object to be photographed according to the light signals.

[0095] The internal memory 121 can be used to store computer executable program codes including instructions. The processor 110 performs 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 can include a program storage area and a data storage area. The program storage area can store an operating system, codes of application programs (such as functions corresponding to the scheme of the present application, etc.), and the like. The data storage area can store data created during the use of the electronic device 100, and the like.

[0096] The internal memory 121 can also store one or more computer programs corresponding to the algorithm of the scheme of the present application. The one or more computer programs stored in the above-mentioned internal memory 121 and configured to be executed by the one or more processors 110 include instructions that can be used to perform each step in the following embodiments.

[0097] In addition, the internal memory 121 can include a high-speed random access memory, and can also include a non-volatile memory, for example, at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), and the like.

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

[0099] The touch sensor, also known as a "touch panel". The touch sensor can be disposed on the display screen 194, and the touch sensor and the display screen 194 form a touch display screen, also known as a "touch screen". The touch sensor is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the touch event type. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor can also be disposed on the surface of the electronic device 100, which is different from the position where the display screen 194 is located.

[0100] The wireless communication function of the electronic device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor, etc.

[0101] The antenna 1 and the antenna 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example, the antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In some other embodiments, the antennas can be used in combination with a tuning switch.

[0102] The mobile communication module 150 can provide a solution for wireless communication including the 2th generation (2G), the 3th generation (3G), the 4th generation (4G), the 5th generation (5G), the 6th generation (6G), etc. applied to the electronic device 100. The mobile communication module 150 can include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform filtering, amplification, etc. on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert the signals into electromagnetic waves radiated by the antenna 1. In some embodiments, at least part of the functional modules of the mobile communication module 150 can be arranged in the processor 110. In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 can be arranged in the same device. In the embodiments of the present application, the mobile communication module 150 can also be used for information interaction with other devices.

[0103] The modem processor can include a modulator and a demodulator. The modulator is used to modulate a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal processed by the baseband processor is transmitted to the application processor. The application processor outputs the sound signal through the audio device (not limited to the loudspeaker 170A, the receiver 170B, etc.), or displays the image or video through the display screen 194. In some embodiments, the modem processor can be an independent device. In some other embodiments, the modem processor can be independent of the processor 110, and arranged in the same device as the mobile communication module 150 or other functional modules.

[0104] The wireless communication module 160 can provide a solution for wireless communication, including wireless local area networks (WLAN) (e.g., WiFi network), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) technology, etc., which are applied on the electronic device 100. The wireless communication module 160 can be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency-modulates and filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 can also receive signals to be transmitted from the processor 110, frequency-modulate them, amplify them, and radiate them as electromagnetic waves via the antenna 2. In an embodiment of the present application, the wireless communication module 160 can be used to establish a connection with other electronic devices and exchange data with them. Alternatively, the wireless communication module 160 can be used to access an access point device and transmit control instructions to other electronic devices or receive data transmitted from other electronic devices.

[0105] In addition, the electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor, etc. For example, music playback, recording, etc. The electronic device 100 can receive key 190 input and generate key signal input related to user settings and function control of the electronic device 100. The electronic device 100 can generate a vibration prompt (such as an incoming call vibration prompt) using the motor 191. The indicator 192 in the electronic device 100 can be an indicator light that can be used to indicate the charging state, the power change, and can also be used to indicate messages, missed calls, notifications, etc. The SIM card interface 195 in the electronic device 100 is used to connect the 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.

[0106] It should be understood that, in actual applications, the electronic device 100 can include more or fewer components than those shown in FIG. 1, or some of the components can be combined into other components. For example, the electronic device 100 can include a plurality of processors, or a plurality of memory units, etc. Figure 1More or less components are shown, the embodiments of the present application are not limited. The electronic device 100 shown is only an example, and the electronic device 100 can have more or less components than those shown in the figure, can combine two or more components, or can have a different component configuration. The various components shown in the figure 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.

[0107] The software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The layered architecture divides the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. For example, the software architecture can be divided into four layers, from top to bottom, application layer, application framework layer (FWK), runtime and system library, and (Linux) kernel layer. Figure 2

[0108] The application layer is the top layer of the operating system, including the native application of the operating system, and can also include third-party applications. For example, the application layer can include clone applications, near-field quick transfer applications, and other applications. The application involved in the embodiments of the present application is referred to as application (APP), which is a software program that can implement one or more specific functions. Generally, multiple applications can be installed in the electronic device, such as camera applications, gallery applications, calendar applications, etc. The application mentioned in this paper can be a system application installed when the electronic device is shipped, or a third-party application downloaded from the network or obtained from other electronic devices during the use of the electronic device.

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

[0110] The application framework layer is the API and programming framework for the application layer. The application framework layer can include some pre-defined functions. The application framework layer can include window managers, content providers, view systems, phone managers, resource managers, notification managers, etc.

[0111] ​The window manager is used to manage windows programs. The window manager can acquire the display screen size, determine whether there is a status bar, lock the display screen (or screen), intercept the display screen, etc. The content provider is used to store and acquire data, and make the data accessible to the application program. The data can include files (such as documents, videos, images, audio), text, etc. The view system includes visual controls, such as controls for displaying text, pictures, documents, etc. The view system can be used to build an application program. The interface in the display window can be composed of one or more views. For example, a display interface including a short message notification icon can include a view for displaying text and a view for displaying pictures. The phone manager is used to provide the communication function of the electronic device. The notification manager enables the application program to display notification information in the status bar, which can be used to convey a notification type of message that can automatically disappear after a short stay without user interaction.

[0112] In some embodiments of the present application, the application framework layer can include a device discovery service, a connection service, and a content transmission service. The device discovery service can be used to control the electronic device to discover other electronic devices in the surrounding. The connection service can be used to control the electronic device to establish a communication connection with the discovered other electronic devices in the surrounding. The content transmission service can be used to control the electronic device to perform content transmission with other electronic devices. The content transmission service can also control the device discovery service and the connection service to perform corresponding functions. Optionally, the application framework layer can 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 transmission service.

[0113] The applications in the application layer can communicate with the device discovery service, the connection service, and the content transmission service, etc. in the application framework layer through an interface, so that these services determine and perform the related processing of the content transmission service initiated by the applications in the application layer.

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

[0115] The core library of the system includes two parts: one part is the function function required to be called by the Java language, and the other part is the core library of the system. The application layer and the application framework layer run in the virtual machine. Taking Java as an example, the virtual machine executes the Java files of the application layer and the application framework layer into binary files. The virtual machine is used to perform the management of object life cycle, stack management, thread management, security and exception management, and garbage collection, etc.

[0116] The system library can include a plurality of functional modules. For example, a surface manager, a media library, a three-dimensional graphics processing library (e.g., OpenGLES), a two-dimensional graphics engine (e.g., SGL), an image processing library, etc. The surface manager is used to manage the display subsystem and provides a fusion of two-dimensional and three-dimensional layers for a plurality of applications. The media library supports a plurality of commonly used audio, video format playback and recording, and static image files, etc. The media library can support a plurality of audio and video encoding formats, such as MPEG4, H.564, MP3, AAC, AMR, JPG, PNG, etc. The three-dimensional graphics processing library is used to implement three-dimensional graphics drawing, image rendering, synthesis, and layer processing, etc. The two-dimensional graphics engine is a drawing engine for two-dimensional drawing.

[0117] The kernel layer provides core system services of the operating system, such as security, memory management, process management, network protocol stack, and a driver model, 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 has many device-related drivers, including display drivers, keyboard drivers as input devices, Flash drivers based on memory technology devices, camera drivers, audio drivers, Bluetooth drivers, WiFi drivers, etc. These drivers can be used to drive corresponding hardware devices to perform corresponding processing. For example, the Bluetooth driver can be used to drive the Bluetooth device of the electronic device to perform Bluetooth communication, the WiFi driver can be used to drive the WiFi communication device of the electronic device to perform WiFi communication, etc.

[0118] It should be understood that the functional services as described above are only examples, and in actual applications, the electronic device can also be divided into more or fewer functional services according to other factors, or the functions of each service can be divided in other ways, or the functional services can not be divided, but work as a whole.

[0119] The scheme provided by the embodiments of the present application will be described in detail below.

[0120] The scheme provided by the embodiments of the present application can be applied to a communication system including a plurality of electronic devices. Among them, the plurality of electronic devices at least includes 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. Exemplarily, the communication mode between the first electronic device and the second electronic device can be a short-range communication mode such as Bluetooth, WiFi P2P, multi-link direct connection (magneto link), etc. The specific communication mode between the first electronic device and the second electronic device is not limited in the embodiments of the present application.

[0121] In the communication system, the first electronic device and the second electronic device can perform a content transmission service using the scheme provided by the embodiments of the present application. The specific implementation can be referred to the related description below, which will not be described here in detail.

[0122] In one example, when the first electronic device and the second electronic device communicate through WiFi P2P mode, as shown in Figure 3 , the first electronic device can be one P2P device, and the second electronic device can be another P2P device. The first electronic device and the second electronic device can form a P2P group. In the P2P group, one of the first electronic device and the second electronic device can be a GO, and the other can be a GC. Of course, the P2P group can also include other devices for being a GC and being able to communicate with the electronic device as a GO, which is not limited in the embodiments of the present application.

[0123] Optionally, the electronic devices (e.g., the first electronic device and the second electronic device) supporting P2P mode can operate in concurrent mode, that is, P2P mode and STA mode operate concurrently. In the concurrent mode, the P2P device can be connected to an AP. Taking the first electronic device operating in concurrent mode as an example, as shown in Figure 3 , the first electronic device can also be connected to the AP and form a wireless local area network (WLAN) basic service set (BSS) with the AP. In the WLAN BSS, the first electronic device can be 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. Figure 3

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

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

[0126] It should be understood that the architecture of the communication system as described above is only an example. In actual applications, some devices can be added or removed in the communication system, which is not limited in the present application.

[0127] The content transmission method provided by the embodiments of the present application will be described in detail below taking the application to the above communication system as an example.

[0128] ​For the convenience of description, in the present application, the application installed in the first electronic device for performing the content transmission service is referred to as a first application, the content transmission service in the first electronic device is referred to as a first content transmission service, the communication device of the first electronic device is referred to as a first communication device, and the temperature detection service of the first electronic device is referred to as a first temperature detection service; the application installed in the second electronic device for performing the content transmission service is referred to as a second application, the content transmission service in the second electronic device is referred to as a second content transmission service, the communication device of the second electronic device is referred to as a second communication device, and the temperature detection service of the second electronic device is referred to as a second temperature detection service. Exemplarily, the first application and the second application can be clone applications or other applications, and the present application embodiments do not make specific limitations.

[0129] In some content transmission scenarios, the sending end needs to perform a large amount of packaging processing, and needs to send the content while packaging, while the receiving end only needs to receive and store the content, and uniformly decompresses and processes after receiving is completed. Therefore, in the content transmission process, the power consumption of the sending end is relatively high, and the power consumption of the receiving end is relatively low. In a scenario in which a GO and a GC need to be deployed, since the GO needs to perform networking and the like, the power consumption of the GO side is much higher than that of the GC side (for example, in a P2P scenario, the power consumption of the GO side is generally about 120 mA, and the power consumption of the GC side is generally less than 10 mA). Therefore, if the sending end is defaulted as the GO in the above content transmission scenario, or the randomly selected GO is the sending end, the power consumption of the sending end will be further increased, which leads to the risk of excessively high power consumption of the sending end.

[0130] Based on this, in a scheme provided by the present embodiment, considering the inequality of processing and power consumption of the two ends in the content transmission process, before the content transmission is performed, the management role (which can also be understood as a master device role) with high power consumption such as networking management and device management can be deployed to the electronic device with low content transmission power consumption, and the managed role (which can also be understood as a non-master device role) with low power consumption can be deployed to the electronic device with high content transmission power consumption, thereby reducing the risk of excessively high power consumption of one end and ensuring the overall power consumption in the content transmission process to be optimal. The role negotiation method provided by the present embodiment is described in detail below in combination with the following embodiment. The device role of any electronic device can be a manager (for example, GO, soft AP, etc.) or a managed device (for example, GC, STA, etc.). The manager can also be referred to as a master device, and the processing power consumption of the device outside the content transmission (for example, the processing power consumption of performing networking management, device management, etc.) is high. The managed device can also be referred to as a non-master device, and the processing power consumption of the device outside the content transmission is low. The role negotiation method provided by the present embodiment is described below taking the scenario in which the device role includes GO and GC as an example. The role negotiation process in other direct communication scenarios can be implemented by referring to the following method, and the present application embodiments do not enumerate them one by one.

[0131] In a content transmission scenario requiring deployment of a GO and a GC, in the first electronic device and the second electronic device, the device role of one electronic device can be deployed as a GO, and the device role of the other electronic device can be deployed as a GC.

[0132] Embodiment One

[0133] In some embodiments of the present application, the configuration of the device roles of the first electronic device and the second electronic device for content transmission can be different 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 for content transmission can be preconfigured.

[0134] In one example, the content transmission service can be a cloning service (corresponding to a cloning scenario). Cloning refers to migrating data content in one electronic device to another electronic device. The role configuration corresponding to the cloning service can be that the sending end is a GC and the receiving end is a GO. In the cloning scenario, the sending end needs to perform a large amount of packaging operations and needs to send while packaging, while the receiving end only needs to receive and store content and will perform unified decompression recovery and processing only after the overall reception is completed. Therefore, in the cloning process, the load of the sending end is much higher than that of the receiving end. Therefore, in the cloning scenario, the GO role with high power consumption can be deployed at the receiving end, and the GC role with low power consumption can be deployed at the sending end, thereby avoiding the situation that high-power processing is concentrated at the sending end, reducing the risk of excessively high power consumption of the sending end, and helping to ensure smooth and efficient execution of the cloning service.

[0135] In another example, the content transmission service can be a large file sharing service (corresponding to a large file sharing scenario), where a large file refers to a file with a large amount of data, and the large file can be a set file or a file with a data amount greater than a set data amount, which is not limited in the embodiments of the present application. The role configuration corresponding to the large file sharing service can be that the sending end is a GO and the receiving end is a GC. In the large file sharing scenario, the sending end does not need to be packaged and can directly read and send file content, while the receiving end needs to receive and identify file content and import different file content to corresponding positions (such as a gallery, a file manager, etc.), that is, the receiving end needs to process while receiving. Therefore, in the large file sharing process, the load of the receiving end is much higher than that of the sending end. Therefore, in the large file sharing scenario, the GO role with high power consumption can be deployed at the sending end, and the GC role with low power consumption can be deployed at the receiving end, thereby avoiding the situation that high-power processing is concentrated at the sending end, reducing the risk of excessively high power consumption of the sending end, and helping to ensure smooth and efficient execution of the large file sharing service.

[0136] In some embodiments of the present application, different content transmission services and corresponding role configuration information can be preconfigured 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 of the two ends of the content transmission service.

[0137] As an optional implementation, the first electronic device and the second electronic device can determine their respective GO or GC roles based on the content transmission service to be performed and the corresponding role configuration information during the process of establishing a connection, and perform corresponding processing according to their respective roles.

[0138] As another optional implementation, during the process of establishing a connection between the first electronic device and the second electronic device, the first electronic device or the second electronic device can determine the GO and GC roles of itself and the opposite device based on the content transmission service to be performed and the corresponding role configuration information, and negotiate with the opposite device to further determine the GO and GC roles of itself and the opposite device. The specific implementation process of this mode will be described in detail below. Figure 4

[0139] Referring to Figure 4 Taking the first electronic device as the sending end and the second electronic device as the receiving end as an example, the process of the role negotiation method provided in the embodiments of the present application can include the following steps.

[0140] S401: The first content transmission service determines a first target device used as a GO from the first electronic device and the second electronic device based on a content transmission service to be performed.

[0141] The device in the first electronic device and the second electronic device that is not used as a GO is used as a GC. Optionally, the first content transmission service can also determine a device used as a GC from the first electronic device and the second electronic device based on the content transmission service to be performed.

[0142] The content transmission service to be performed can be a service of transmitting content from the first electronic device to the second electronic device, for example, the content transmission service can be the cloning service or the large file sharing service described above. The first target device can be the first electronic device or the second electronic device. For example, when the content transmission service is the cloning service described above, the first target device can be the second electronic device. When the content transmission service is the large file sharing service described above, the first target device can be the first electronic device.

[0143] ​In the method, the first content transmission service can determine role configuration information corresponding to the to-be-executed content transmission service based on pre-set role configuration information corresponding to different content transmission services, and determine the first target device for acting as the GO from the first electronic device and the second electronic device according to the role configuration information corresponding to the to-be-executed content transmission service.

[0144] S402: The first content transmission service sends first indication information to the first communication device; the first indication information is used to indicate the first target device for acting as the GO from the first electronic device and the second electronic device.

[0145] S403: The first communication device sends the first indication information to the second communication device.

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

[0147] S405: The second content transmission service sends first feedback information to the second communication device in response to the first indication information; the first feedback information is used to confirm the first target device, or the first feedback information is used to re-indicate a second target device for acting as the GO from the first electronic device and the second electronic device.

[0148] If the second content transmission service confirms (or agrees) to take the first target device as the GO after receiving the first indication information, the first indication information used to confirm the first target device can be generated; if the second content transmission service confirms not to take the first target device as the GO, the first indication information used to indicate the second target device for acting as the GO can be generated.

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

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

[0151] S408: The first content transmission service determines the device role of the first electronic device and the second electronic device based on the first feedback information.

[0152] When the first feedback information is used to confirm the first target device, the first content transmission service can determine the first target device among the first electronic device and the second electronic device as the GO, and determine another device (i.e., a device other than the first target device among the first electronic device and the second electronic device) as the GC. When the first feedback information is used to re-indicate a second target device among the first electronic device and the second electronic device as the GO, the first content transmission service can determine the second target device among the first electronic device and the second electronic device as the GO, and determine another device (i.e., a device other than the second target device among the first electronic device and the second electronic device) as the GC.

[0153] The role negotiation method provided by the embodiment of the present application is described by taking the first electronic device as the initiator of the role negotiation in the above method. The role negotiation method taking the second electronic device as the initiator of the role negotiation is similar to the above method, and can be implemented by referring to the above method. Details are not described herein.

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

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

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

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

[0158] The following steps S409-S412 can be further included after step S408:

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

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

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

[0162] S412: The second content transmission service sends the received service content to the second application.

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

[0164] Through the above method, in the process of performing the content transmission service, the first electronic device can reasonably allocate the device roles of the first electronic device and the second electronic device based on the content transmission service. In the process of performing the content transmission service according to the device role allocated by the first electronic device, it is possible to avoid as much as possible that high-power consumption processing is concentrated in the same device (for example, the first electronic device as the sending end), thereby reducing the risk of excessively high power consumption of the device and ensuring the overall power consumption in the content transmission process.

[0165] Figure 5 A schematic diagram of the power consumption comparison of various devices in the electronic device in the content transmission process. As shown in Figure 5 In the content transmission process, the power consumption of the CPU of the electronic device is relatively low, and accordingly, the actual power consumption heat of the CPU of the electronic device is relatively low. Therefore, the effect of cooling by reducing the CPU load is poor.

[0166] As shown in Figure 5 In the content transmission process, the power consumption of the communication device of the electronic device is the highest and much higher than that of other devices. Accordingly, the actual power consumption heat of the communication device of the electronic device is relatively high. Therefore, by reducing the power consumption of the communication device of the electronic device, a large degree of cooling can be achieved. Based on this, the embodiment of the present application further provides a scheme for improving the cooling effect by reducing the power consumption of the communication device of the electronic device in the content transmission process, thereby ensuring the smooth execution of the content transmission process. The related content of the scheme will be described in detail below in conjunction with Embodiment Two.

[0167] Embodiment Two

[0168] In this embodiment, the first electronic device is taken as the sending end and the second electronic device is taken as the receiving end as an example for description.

[0169] In the content transmission process, the power consumption of the communication device of the electronic device is the highest and much higher than that of other devices. Accordingly, the actual power consumption heat of the communication device of the electronic device is relatively high. Therefore, by reducing the power consumption of the communication device of the electronic device, a large degree of cooling can be achieved. Based on this, the embodiment of the present application further provides a scheme for improving the cooling effect by reducing the power consumption of the communication device of the electronic device in the content transmission process, thereby ensuring the smooth execution of the content transmission process. The related content of the scheme will be described in detail below in conjunction with Embodiment Two.

[0170] Based on this, in one scheme provided in this embodiment, when the temperature of the electronic device performing the content transmission service is low, the communication device of the electronic device can transmit the service at a higher transmission rate (for example, the transmission rate required for performing the content transmission service), thereby ensuring or improving the execution efficiency of the content transmission service. When the temperature of the electronic device performing the content transmission service is high, the transmission rate of the communication device of the electronic device can be appropriately reduced, thereby reducing the power consumption heat of the communication device, and further reducing the temperature of the electronic device, avoiding the situation that the high temperature affects or interrupts the execution of the content transmission service. After the temperature of the electronic device performing the content transmission service is reduced from the high temperature to the low temperature, the transmission rate of the communication device of the electronic device can be appropriately increased again, thereby appropriately ensuring the service execution efficiency while avoiding the high temperature of the electronic device. When the temperature of the electronic device is too high, the connection with the opposite end can be disconnected, thereby interrupting the execution of the content transmission service, avoiding the situation that the continuous execution of the content transmission service leads to the continuous increase of the temperature and affects the service life of the electronic device.

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

[0172] It should be noted that in the embodiments of the present application, the reduction or increase of the transmission rate of the communication device by the electronic device can be linear or nonlinear. For example, the adjustment of the transmission rate of the communication device by the electronic device through adjusting the working mode of the communication device belongs to nonlinear adjustment.

[0173] For example, in one possible scheme, as shown in FIG. 1, the stage in which any electronic device is in the content transmission scenario can include: Figure 6

[0174] Stage 1, maintenance stage

[0175] This stage can be a stage in which the temperature of the electronic device is in a low temperature range, and there is no risk of high temperature, and the transmission rate can be maintained. In this stage, the electronic device can perform the content transmission service with the goal of giving priority to ensuring the service execution efficiency. For example, the electronic device can determine the required transmission rate according to the content transmission service being performed, and perform content transmission at the transmission rate.

[0176] Stage 2, adjustment stage

[0177] ​The stage can be a stage in which the electronic device adjusts the transmission rate according to the temperature. In this stage, the electronic device can adjust the transmission rate when performing the content transmission service according to the detected temperature, so as to control the temperature. For example, in this stage, when the temperature of the electronic device is in a high temperature range, the electronic device can reduce the transmission rate of the communication device to avoid the temperature from rising continuously or to reduce the temperature, because there is a risk of the temperature being too high. When the temperature of the electronic device is in a low temperature range, the electronic device can appropriately increase the transmission rate of the communication device to improve the service execution efficiency, because there is no risk of the temperature being too high temporarily.

[0178] Optionally, in this stage, when the temperature of the electronic device is in a high temperature range, the electronic device can reduce the transmission rate of the communication device by a small amount (for example, reduce the transmission rate by a small proportion, which can be a value less than or equal to a set proportion), so as to maintain the temperature of the electronic device at the current temperature and avoid the temperature from rising, as shown in FIG. 3B. Figure 6 Optionally, in this stage, when the temperature of the electronic device is in a high temperature range, the electronic device can reduce the transmission rate of the communication device by a small amount (for example, reduce the transmission rate by a small proportion, which can be a value less than or equal to a set proportion), so as to maintain the temperature of the electronic device at the current temperature and avoid the temperature from rising, as shown in FIG. 3B.

[0179] Stage 3: Disconnection stage

[0180] The stage can be a stage in which the electronic device interrupts the content transmission service due to the temperature being too high. In this stage, when the temperature of the electronic device reaches or exceeds a set temperature threshold, the electronic device can disconnect the communication connection with the peer device, so as to interrupt the content transmission service and avoid or slow down the temperature from rising continuously.

[0181] Optionally, in this scenario, the electronic device can perform a breakpoint resume scheme, which will be described below in Embodiment Three, and will not be described here in detail.

[0182] In one example, the electronic device can be preconfigured with a plurality of different temperature levels, wherein different temperature levels correspond to different temperature intervals (or temperature ranges). When performing the content transmission service, the electronic device can determine the temperature level to which the current temperature of the electronic device belongs based on the current temperature of the electronic device and the plurality of preconfigured temperature levels, and determine whether to adjust the rate or disconnect the connection with the peer device based on the temperature level.

[0183] In one example, the plurality of different temperature levels and the corresponding temperature intervals can refer to Table 1 below.

[0184] Table 1: Correspondence between different temperature levels and temperature intervals

[0185]

[0186]

[0187] As shown in Table 1 above, 8 different temperature levels and corresponding temperature intervals can be pre-configured in the electronic device.

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

[0189] Based on the above method, in the process of content transmission 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 first electronic device and the second electronic device for content transmission according to the change of the temperature of the electronic device, so as to achieve the effect of quickly adjusting the power consumption of the communication device and further quickly adjusting the temperature of the device.

[0190] In some embodiments of the present 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-3:

[0191] Communication indicator 1, channel bandwidth used by the communication device.

[0192] Among them, by adjusting the channel bandwidth used by the communication device, the working mode of the communication device can be adjusted, and the transmission rate of the communication device can be adjusted. The larger the channel bandwidth, the greater the transmission rate; the smaller the channel bandwidth, the smaller the transmission rate. Therefore, by adjusting the channel bandwidth used by the communication device, the transmission rate can be reduced, and by adjusting the channel bandwidth used by the communication device, the transmission rate can be increased.

[0193] In the embodiments of the present application, 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 using a 160 megahertz (MHz) channel to using an 80 MHz channel. 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 using an 80 megahertz (MHz) channel to using a 160 MHz channel.

[0194] In one example, the power consumption of the communication device in the scenario of using different channel bandwidths can refer to Table 2 as follows.

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

[0196] Scenario Power consumption of a communication device transmitting at maximum power 160 MHz bandwidth 187 mA 80 MHz bandwidth 141 mA

[0197] As shown in Table 2, in the test scenario of using a 160 MHz bandwidth channel, the power consumption of the communication device when transmitting content at maximum power is 187 mA. In the test scenario of using an 80 MHz bandwidth channel, the power consumption of the communication device when transmitting content at maximum power is 141 mA. The power consumption of the communication device in the above two scenarios is quite different. Therefore, by reducing the channel bandwidth used by the communication device, the power consumption can be greatly reduced.

[0198] Communication indicator 2: the number of antennas used by the communication device.

[0199] The number of antennas used by the communication device can be adjusted to adjust the working mode of the communication device, and then adjust the transmission rate of the communication device. The greater the number of antennas, the greater the transmission rate, and the smaller the number of antennas, the smaller the transmission rate. Therefore, by reducing the number of antennas used by the communication device, the transmission rate can be reduced, and by increasing the number of antennas used by the communication device, the transmission rate can be increased.

[0200] In the embodiments of the present application, 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.

[0201] Communication indicator 3: the power of the communication device.

[0202] The greater the power of the communication device, the greater the transmission rate, and the smaller the power of the communication device, the smaller the transmission rate. Therefore, by reducing the power of the communication device, the transmission rate can be reduced, and by increasing the power of the communication device, the transmission rate can be increased.

[0203] In addition, in the content transmission scenario, since the receiving end usually receives the content sent by the sending end at a rate matching the rate at which the sending end sends the content, when the transmission rate (i.e., the sending rate) of the sending end decreases, the transmission rate (i.e., the receiving rate) of the receiving end can decrease accordingly; when the transmission rate of the sending end increases, the transmission rate of the receiving end can increase accordingly. Therefore, when the temperature of the device at either of the sending end and the receiving end is too high, the effect of cooling down the device with a temperature that is too high can be achieved by controlling the sending end to decrease the transmission rate. When the temperature of the device at either of the sending end and the receiving end is relatively low, the effect of improving the efficiency of service execution can be achieved by controlling the sending end to increase the transmission rate.

[0204] Based on the above method, the first electronic device can adjust the transmission rate of the first electronic device for content transmission by adjusting the at least one communication index of the first electronic device according to the change in the temperature of the first electronic device. Correspondingly, the transmission rate of the second electronic device for content transmission changes. Alternatively, the second electronic device can instruct the first electronic device to adjust the at least one communication index according to the change in the temperature of the second electronic device, so as to adjust the transmission rate of the first electronic device for content transmission. The first electronic device can instruct the second electronic device to adjust the same communication index, so as to adjust the transmission rate of the second electronic device for content transmission.

[0205] The following takes the scenario in which the first electronic device initiates rate adjustment when the temperature is relatively high as an example to exemplarily describe the scheme in which the first electronic device adjusts the rate according to the temperature.

[0206] With reference to Figure 7 , the rate adjustment method provided in the embodiments of the present application can include the following steps.

[0207] S701: In a process in which a first application transmits service content to a second application, a first temperature detection service detects the temperature of a first electronic device, and indicates the detected first temperature to a first content transmission service.

[0208] The process in which the first application transmits service content to the second application can refer to the content transmission process described in the foregoing Figure 4 , for example, can refer to the method described in steps S400b and steps S409-S412 in Figure 4 , which will not be described in detail herein.

[0209] S702: The first content transmission service decreases the transmission rate of the first communication device when the first temperature meets a set speed-down triggering condition.

[0210] As an optional implementation, the speed reduction trigger condition can be that the first temperature is 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, and the second set temperature can be 48 degrees. As another optional implementation, the speed reduction trigger condition can be that the first temperature belongs to a set temperature range in which the transmission rate needs to be reduced. For example, the set temperature range in which the transmission rate needs to be reduced can include temperature ranges 3-5 shown in Table 1.

[0211] In some embodiments of the present application, the manner in which the first content transmission service reduces the transmission rate of the first communication device can be to reduce the transmission rate of the first communication device from the current rate to a first target rate, or to reduce the transmission rate of the first communication device from the current rate to a second target rate. The first target rate is less than the second target rate.

[0212] In some embodiments of the present application, in the above method, the first content transmission service can reduce the transmission rate of the first communication device from the current rate to the first target rate within a first time period. The first content transmission service can reduce the transmission rate of the first communication device from the current rate to the second target rate within a second time period. Optionally, the first time period can be less than or equal to the second time period.

[0213] The manner in which the transmission rate of the first communication device is reduced from the current rate to the first target rate can be referred to as a sharp reduction (or rapid reduction) manner, based on which the first content transmission service can greatly reduce the transmission rate of the first communication device, thereby achieving a large degree of temperature reduction. The manner in which the transmission rate of the first communication device is reduced from the current rate to the second target rate can be referred to as a slow reduction manner, based on which the first content transmission service can slightly reduce the transmission rate of the first communication device, thereby achieving a small degree of temperature reduction or keeping the temperature from rising.

[0214] In some embodiments of the present application, in the above method, the first target rate can be a product of the current rate or a set maximum transmission rate and a first proportion, and the second target rate can be a product of the current rate or the 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.

[0215] The first proportion or the second proportion described above can be a pre-set value, or can be a value configured by the first content transmission service based on temperature or service execution, which is not limited in the embodiments of the present application.

[0216] In some embodiments of the present application, the first content transmission service can employ any of the following methods when selecting the method to be employed in the sharp drop mode and the slow drop mode:

[0217] 1) Selection based on the current temperature. For example, when the current temperature is greater than or equal to a third set temperature, the sharp drop mode is selected; when the current temperature is less than the third set temperature, the slow drop mode is selected.

[0218] 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 value of the first temperature range and less than the upper limit value of the first temperature range.

[0219] 2) Random selection.

[0220] 3) Selection based on the scenario, where the scenario can include the content transmission service currently being executed, the role of the device, the temperature, etc., and the embodiments of the present application do not make specific limitations.

[0221] In one possible case, the first content transmission service can achieve the sharp drop or slow drop of the transmission rate by adjusting at least one communication index of the first communication device. In another possible case, the first content transmission service can achieve the sharp drop of the transmission rate by adjusting the channel bandwidth and / or the number of antennas used by the first communication device. The first content transmission service can achieve the slow drop of the transmission rate by adjusting the power of the first communication device. In yet another possible case, the first content transmission service can achieve the sharp drop of the transmission rate by adjusting multiple communication indexes of the first communication device. The first content transmission service can achieve the slow drop of the transmission rate by adjusting any one communication index of the first communication device.

[0222] Optionally, after step S702, the following steps S703-S704 can also be included.

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

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

[0225] As an optional implementation, the speed-up trigger condition can be that the second temperature is less than or equal to a 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 in which the transmission rate is allowed to be increased. For example, the set temperature range in which the transmission rate is allowed to be increased can include the ranges 0-2 shown in Table 1 above.

[0226] In some embodiments of the present application, the first content transmission service can increase the transmission rate of the first communication device in the following manner: 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. The third target rate is greater than or equal to the fourth target rate.

[0227] In some embodiments of the present application, the first content transmission service can increase the transmission rate of the first communication device in the following manner: 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. The third target rate is greater than or equal to the fourth target rate.

[0228] The above-mentioned manner of increasing the transmission rate of the first communication device from the current rate to the third target rate can be referred to as a rapid increase (or rapid speed increase) manner. Based on this manner, the first content transmission service can greatly increase the transmission rate of the first communication device, thereby greatly improving the transmission efficiency while avoiding excessive temperature. The above-mentioned manner of increasing the transmission rate of the first communication device from the current rate to the fourth target rate can be referred to as a slow increase manner. Based on this manner, the first content transmission service can slightly increase the transmission rate of the first communication device, thereby appropriately improving the transmission efficiency while avoiding excessive temperature.

[0229] In some embodiments of the present application, as an optional implementation, the third target transmission rate can be equal to the fourth target transmission rate, and the third target rate and the fourth target rate can each be the rate before the transmission rate is reduced. 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 the reference rate and the third proportion, and the fourth target rate can be the product of the reference rate and the fourth proportion. The reference rate can be the current rate or a set maximum transmission rate, and the third proportion is greater than the fourth proportion. Optionally, when the reference rate is the current rate, the third proportion and the fourth proportion can be values greater than 1. When the reference rate is the set maximum transmission rate, the third proportion can be greater than or equal to a second set value and less than or equal to 1, and the fourth proportion can be greater than or equal to a third set value and less than the second set value.

[0230] The third proportion or the fourth proportion described above can be a pre-set value, or can be a value configured by the first content transmission service based on the temperature or the service execution condition, which is not limited in the embodiments of the present application.

[0231] In some embodiments of the present application, when the first content transmission service selects the manner to be used from the rapid increase manner and the slow increase manner, any of the following manners can be used:

[0232] 1) based on the current temperature selection. For example, when the current temperature is less than or equal to the fifth set temperature, the rapid rise mode is selected; when the current temperature is greater than the fifth set temperature, the slow rise mode is selected.

[0233] Optionally, the fifth set temperature can be less than the fourth set temperature, or the fifth set temperature can be greater than the lower limit value of the second temperature level and less than the upper limit value of the second temperature level.

[0234] 2) Random selection.

[0235] 3) Based on the scene selection, wherein the scene can include the current content transmission service, device role, temperature, etc., which is not limited in the embodiments of the present application.

[0236] In one possible case, the first content transmission service can achieve the rapid rise or slow rise of the transmission rate by adjusting at least one communication index of the first communication device. In another possible case, the first content transmission service can achieve the rapid rise of the transmission rate by adjusting the channel bandwidth and / or the number of antennas used by the first communication device. The first content transmission service can achieve the slow rise of the transmission rate by adjusting the power of the first communication device. In yet another possible case, the first content transmission service can achieve the rapid rise of the transmission rate by adjusting multiple communication indexes of the first communication device. The first content transmission service can achieve the slow rise of the transmission rate by adjusting any one communication index of the first communication device.

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

[0238] The following will take the scenario of the second electronic device initiating rate adjustment when the temperature is high as an example to exemplarily describe the scheme of the second electronic device adjusting the rate with the temperature.

[0239] Referring to Figure 8 The rate adjustment method provided by the embodiments of the present application can include:

[0240] S801: In the process of the first application transmitting service content to the second application, the second temperature detection service detects the temperature of the second electronic device and indicates the detected third temperature to the second content transmission service.

[0241] Wherein, the process of the first application transmitting service content to the second application can refer to the foregoingFigure 4 The content transmission process shown, for example, can refer to the method described in steps S400b and steps S409-S412 in Figure 4 The method is not described in detail here.

[0242] S802: The second content transmission service instructs the first content transmission service to reduce the transmission rate of the first communication device when the third temperature meets the set speed reduction trigger condition.

[0243] The method for the second content transmission service to determine whether the third temperature meets the set speed reduction trigger condition can refer to the method for the first content transmission service to determine whether the first temperature meets the set speed reduction trigger condition described in the aforementioned step S702, which is not described in detail here.

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

[0245] The specific implementation of step S803 can refer to the relevant description in the aforementioned step S702, which is not described in detail here.

[0246] During the process of reducing the transmission rate of the first communication device, the first content transmission service can instruct the second content transmission service to make corresponding adjustments to the second communication device after adjusting at least one communication indicator of the first communication device.

[0247] Optionally, after step S803, the following steps S804-S806 can also be included.

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

[0249] S805: The second content transmission service instructs the first content transmission service to increase the transmission rate of the first communication device when the fourth temperature meets the set speed increase trigger condition.

[0250] The method for the second content transmission service to determine whether the fourth temperature meets the set speed increase trigger condition can refer to the method for the first content transmission service to determine whether the second temperature meets the set speed increase trigger condition described in the aforementioned step S704, which is not described in detail here.

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

[0252] The specific implementation of step S806 can refer to the relevant description in the aforementioned step S704, which is not described in detail here.

[0253] In the process of improving the transmission rate of the first communication device, the first content transmission service can instruct the second content transmission service to make corresponding adjustment to the second communication device after at least one communication index of the first communication device is adjusted.

[0254] It should be understood that the scheme provided in the embodiment can be executed alone in the content transmission process or in combination with other temperature adjustment methods (for example, the method of reducing the CPU load to reduce the temperature described above), and the embodiment of the present application is not limited.

[0255] Embodiment Three

[0256] In the scheme provided in the embodiment, in the content transmission scenario, if the content transmission service between devices is interrupted, the sending device can record and save the position (or node) where the interruption occurs and other information used to determine the content transmission progress. After the sending device and the receiving device re-establish the communication connection, the sending device can determine the content transmission progress based on the saved information, and continue the content transmission from the position where the interruption occurs previously, thereby realizing the breakpoint resume.

[0257] The reason for the interruption of the content transmission service between devices can be that the devices are far away from each other (for example, the scenario that the user holds one of the devices and causes the communication connection between the devices to be interrupted, and the like), the device temperature is too high, or other reasons, which are not specifically limited in the embodiment of the present application.

[0258] The scheme provided in the embodiment will be exemplarily described below taking the first electronic device as the sending device and the second electronic device as the receiving device as an example.

[0259] With reference to Figure 9 , a possible content transmission method provided in the embodiment can include:

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

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

[0262] S902: When the second content transmission service determines that the communication connection between the second electronic device and the first electronic device is disconnected, the second content transmission service sends a disconnection notification to the second application.

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

[0264] ​Optionally, the second content transmission service can determine that the communication connection between the second electronic device and the first electronic device is disconnected based on the feedback or indication of the second communication device.

[0265] S903: The first content transmission service determines that the communication connection between the first electronic device and the second electronic device is disconnected, and sends a connection disconnection notification to the first application.

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

[0267] Optionally, the first content transmission service can determine that the communication connection between the first electronic device and the second electronic device is disconnected based on the feedback or indication of the first communication device.

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

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

[0270] S905: The first content transmission service sends a connection recovery notification to the first application after determining that the first electronic device and the second electronic device reestablish the communication connection.

[0271] The connection recovery notification is used to indicate that the communication connection between the first electronic device and the second electronic device is recovered.

[0272] 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.

[0273] Optionally, the first application can send the saved transmission progress information to the first content transmission service, so that the first content transmission service determines the current transmission progress according to the transmission progress information.

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

[0275] Optionally, the first content transmission service can determine the current transmission progress according to the transmission progress information from the first application, and continue to transmit the content from the first application based on the current transmission progress.

[0276] The specific transmission process can refer to the method described in the foregoing steps S409-S412, which will not be described in detail here.

[0277] In a possible case, in the method above, in a case where the first electronic device and the second electronic device are mutually far away, causing the communication connection between the first electronic device and the second electronic device to be disconnected, after the first application and the second application receive the disconnection notification, as an optional implementation, the first application and / or the second application can determine whether the set connection recovery condition is met based on the current content transmission service. If it is determined that the current content transmission service meets the set connection recovery condition, prompt information for prompting the user to bring the first device close to the second device can be displayed. After the user brings the first electronic device and the second electronic device close to each other, the first electronic device and the second electronic device can automatically discover the opposite end and re-establish the connection, or the first electronic device or the second electronic device can re-establish the connection with the opposite end in response to the operation performed by the user, so that the first content transmission service and the second content transmission service continue to perform the content transmission service.

[0278] In another possible case, in the method above, in a case where the temperature of the first electronic device or the second electronic device is too high, causing the communication connection between the first electronic device and the second electronic device to be disconnected, as an optional implementation, the first electronic device or the second electronic device can re-establish the connection with the opposite end after the temperature decreases to a lower temperature (for example, a set temperature), so that the first content transmission service and the second content transmission service continue to perform the content transmission service. As another optional implementation, the first electronic device or the second electronic device can display prompt information after the communication connection with the opposite end is disconnected. The prompt information can be used to prompt that the content transmission is interrupted due to the temperature being too high, and can also be used to prompt the user to select whether to continue the content transmission after the temperature decreases. If the user indicates to continue the content transmission after the temperature decreases, the first electronic device or the second electronic device can re-establish the connection with the opposite end after the temperature decreases to a lower temperature (for example, a set temperature), and continue to perform the content transmission service.

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

[0280] It should be understood that the implementation process provided by each of the above embodiments is only an example of the method process applicable to the embodiments of the present application, and the execution order of each step in each embodiment can be adjusted accordingly according to actual needs, and other steps can be added or some steps can be reduced. The execution order between the steps in each embodiment that are not time-correlated can be arbitrary, for example, the execution order of steps S902 and S903 can be arbitrary.

[0281] It should be noted that the application scenarios provided in the above embodiments are only exemplary and do not limit the application scenarios of the embodiments of the present application. The methods or the same technical concepts provided in any of the above embodiments can also be applied to other embodiments or other scenarios, or can be combined with the methods provided in other embodiments. The specific embodiments or specific scenarios can be applied, and the present application will not be described one by one.

[0282] Based on the above embodiments and the same technical concept, the embodiments of the present application also provide a content transmission method, as shown in Figure 10 The method can include:

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

[0284] In one example, the first electronic device and the second electronic device can be respectively referred to the description 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.

[0285] S1002: When the temperature of the first electronic device meets a first condition, the first electronic device reduces the rate of transmitting content to the second electronic device.

[0286] For example, the first condition can be the speed reduction trigger condition described in the foregoing embodiments. Figure 7 Corresponding method.

[0287] In some embodiments of the present application, the first electronic device includes a communication device for transmitting content to the second electronic device. The communication device is the first communication device described in the foregoing embodiments. The method for the first electronic device to reduce the rate of transmitting content to the second electronic device can include: the first electronic device reduces the rate of transmitting content to the second electronic device by reducing the communication index of the first communication device; wherein the communication index includes at least one of the following: channel bandwidth, number of antennas, power. As for each index, the content related to the communication index 1-3 described in the foregoing embodiments can be referred to, and will not be described here.

[0288] In some embodiments of the present application, when the first electronic device reduces the rate of transmitting content to the second electronic device, the rate of transmitting content to the second electronic device can be reduced 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. As for the process of the first electronic device reducing the rate of transmitting content to the second electronic device to the target rate, the corresponding method described in the second embodiment of the foregoing embodiments can be referred to, and will not be described here.

[0289] In some embodiments of the present application, after the first electronic device reduces the rate of transmitting the content to the second electronic device, the first electronic device can also increase the rate of transmitting the content to the second electronic device when the temperature of the first electronic device meets a second condition, or in response to a third indication from the second electronic device. For example, the second condition can be the aforementioned speed-up trigger condition. As to the method for the first electronic device to increase the rate of transmitting the content to the second electronic device, the method described in steps S703-S704 or steps S804-S806 of the aforementioned embodiment can be referred to, and will not be described in detail here.

[0290] In some embodiments of the present application, before the first electronic device transmits the content to the second electronic device, the first electronic device can perform negotiation of the roles of the devices, which can be implemented according to the method described in the aforementioned embodiment one, and will not be described in detail here.

[0291] In some embodiments of the present application, when the first electronic device detects that the communication connection with the second electronic device is disconnected, the first electronic device 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 the first electronic device detects that the communication connection with the second electronic device is re-established, the first electronic device can determine the transmission progress of the content corresponding to the first service according to 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. As to the process, the method described in the aforementioned embodiment three can be referred to, and will not be described in detail here.

[0292] In the above method, the specific steps performed by each electronic device can be referred to the relevant description in the aforementioned embodiments, and will not be described in detail here.

[0293] Based on the above embodiments and the same technical concept, the embodiments of the present application also provide a content transmission method, as shown in Figure 11 The method can include:

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

[0295] As to the processing method before the first electronic device transmits the content to the second electronic device and the method for the first electronic device to transmit the content to the second electronic device, the description in the aforementioned embodiments can be referred to, and will not be described in detail here.

[0296] S1102: The second electronic device sends a first indication to the first electronic device when the temperature of the second electronic device meets a first condition; wherein the first indication is used to instruct the first electronic device to reduce the rate of transmitting the content to the second electronic device.

[0297] For example, the first condition can be the condition in the foregoing embodiments Figure 8 The speed reduction trigger condition in the corresponding method.

[0298] S1103: The first electronic device reduces the rate of transmitting the content to the second electronic device in response to the first indication from the second electronic device.

[0299] For the method of reducing the rate of transmitting the content to the second electronic device by the first electronic device and the subsequent processing method, refer to the description in the foregoing embodiments, which will not be repeated here.

[0300] In the above method, the specific steps performed by each electronic device can refer to the related description in the foregoing embodiments, which will not be repeated here.

[0301] Based on the above embodiments and the same technical concept, the embodiments of the present application also provide an electronic device for implementing the content transmission method applied to the electronic device or the server or the terminal device provided by the embodiments of the present application. As shown in Figure 12 The electronic device 1200 can include a memory 1201, one or more processors 1202, and one or more computer programs (not shown in the figure). The above devices can be coupled through one or more communication buses 1203. Optionally, the electronic device 1200 can also include a display screen 1204.

[0302] The memory 1201 stores one or more computer programs (codes), and the one or more computer programs include computer instructions; the one or more processors 1202 call the computer instructions stored in the memory 1201, so that the electronic device 1200 executes the content transmission method applied to the electronic device or the server or the terminal device provided by the embodiments of the present application.

[0303] In a specific implementation, the memory 1201 can include a high-speed random access memory, and can also include a non-volatile memory, for example, one or more disk storage devices, flash devices, or other non-volatile solid-state storage devices. The memory 1201 can store an operating system (hereinafter referred to as a system), for example, an ANDROID, IOS, WINDOWS, or LINUX embedded operating system. The memory 1201 can be used to store the implementation program of the embodiments of the present application. The memory 1201 can also store a network communication program, which can be used to communicate with one or more additional devices, one or more user devices, and one or more network devices.

[0304] The one or more processors 1202 can be a general purpose CPU, a microprocessor, an Application-Specific Integrated Circuit (ASIC), or one or more integrated circuits for controlling the execution of programs of the solutions of the present application.

[0305] The display screen 1204 is configured to display an application interface and other related user interfaces.

[0306] It should be noted that, Figure 12 The electronic device 1200 provided in the embodiments of the present application is only one implementation manner, and the electronic device 1200 can further include more or fewer components in actual applications, which can be specifically referred to the specific structure and description shown in Figure 1 The embodiments of the present application are not limited here.

[0307] Based on the above embodiments and the same technical concept, the embodiments of the present application further provide a computer readable storage medium, which stores a computer program, when the computer program runs on a computer, the computer program causes the computer to execute the method applied to the electronic device or the server or the terminal device provided in the above embodiments.

[0308] Based on the above embodiments and the same technical concept, the embodiments of the present application further provide a computer program product, which includes a computer program or instructions, when the computer program or instructions run on a computer, the computer program or instructions causes the computer to execute the method applied to the electronic device or the server or the terminal device provided in the above embodiments.

[0309] The method provided by the embodiments of the present application can be implemented by software, hardware, firmware or any combination thereof, in whole or in part. When implemented by software, the method can be implemented in the form of a computer program product, in whole or in part. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the whole or part of the process or function according to the embodiments of the present application 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 apparatus. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center through a wired (such as coaxial cable, optical fiber, digital subscriber line (DSL) or wireless (such as infrared, wireless, microwave, etc.)) manner. The computer-readable storage medium can be any available medium accessible by a computer or a data storage device such as a server, data center, etc. integrated with one or more available media sets. The available media can be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape), an optical medium (such as a digital video disc (DVD), or a semiconductor medium (such as an SSD), etc.

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

Claims

1. A content transmission method, applied to a first electronic device, characterized in that, The method includes: Transmitting content to a second electronic device; wherein the content corresponds to the first service; When it is determined that the temperature of the first electronic device meets the first condition, or in response to a first instruction from the second electronic device, the rate at which content is transmitted to the second electronic device is reduced.

2. The method as described in claim 1, characterized in that, The first electronic device includes a communication device for transmitting content to the second electronic device; the reduction of the rate at which content is transmitted to the second electronic device includes: By reducing the communication specifications of the communication device, the rate at which content is transmitted to the second electronic device is reduced; wherein the communication specifications include at least one of the following: channel bandwidth, number of antennas, and power.

3. The method as described in claim 2, characterized in that, The method further includes: If the communication metrics include the channel bandwidth and / or the number of antennas, a second indication is sent to the second electronic device; wherein the second indication is used to indicate a target communication metric, which is used as a reduced communication metric for the communication device.

4. The method according to any one of claims 1 to 3, characterized in that, 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.

5. The method according to any one of claims 1 to 4, characterized in that, After reducing the rate at which content is transmitted to the second electronic device, the method further includes: When the temperature of the first electronic device meets the second condition, or in response to a third instruction from the second electronic device, the rate of content transmission to the second electronic device is increased.

6. The method as described in claim 5, characterized in that, The second condition includes: The temperature of the first electronic device is less than or equal to the second temperature threshold; or The temperature of the first electronic device falls within the set second temperature range.

7. The method according to any one of claims 1 to 6, characterized in that, Before transmitting content to the second electronic device, the method further includes: Establish point-to-point (P2P) communication with the second electronic device; The device roles of the first electronic device and / or the second electronic device are determined based on the first service; wherein, the device role of any electronic device is either the manager (GO) of the P2P communication or the managed (GC) of the P2P communication; A fourth instruction is sent to the second electronic device, the fourth instruction being used to indicate the device role of the first electronic device and / or the second electronic device.

8. The method as described in claim 7, characterized in that, When the first service is a cloning service, the first electronic device is used as the GC; or When the first service is a file sharing service, the first electronic device is used as the GO.

9. The method according to any one of claims 1 to 8, characterized in that, The method further includes: When the communication connection between the first electronic device and the second electronic device is detected to be disconnected, transmission progress information corresponding to the first service is generated and saved; wherein, the transmission progress information is used to indicate the transmission progress of the content corresponding to the first service; After detecting that the first electronic device and the second electronic device have re-established a communication connection, the transmission progress of the content corresponding to the first service is determined according to the transmission progress information, and the content corresponding to the first service is continued to be transmitted to the second electronic device according to the transmission progress of the content corresponding to the first service.

10. The method according to any one of claims 1 to 9, characterized in that, The reduction in the rate at which content is transmitted to the second electronic device includes: The rate at which content is transmitted to the second electronic device is reduced 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.

11. The method as described in claim 10, characterized in that, The first indication is also 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, characterized in that, The method includes: Receive content transmitted by a first electronic device; wherein the content corresponds to a first service; When it is determined that the temperature of the second electronic device meets the first condition, a first instruction is sent 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; Reduce the rate at which the content transmitted by the first electronic device is received.

13. The method as described in claim 12, characterized in that, The second electronic device includes a communication device, which is used to receive content transmitted by the first electronic device; The reduction in the rate at which the content transmitted by the first electronic device is received includes: By reducing the power of the communication device, the rate at which the content transmitted by the first electronic device is received is reduced; and / or By reducing the communication metrics of the communication device in response to a second instruction from the first electronic device, the rate at which the content transmitted by the first electronic device is received is reduced; wherein the communication metrics include channel bandwidth and / or the number of antennas.

14. The method as described in claim 13, characterized in that, The second indication is used to indicate a target communication indicator, which serves as the reduced communication indicator of the communication device; The reduction of the communication metrics of the communication device in response to a second instruction from the first electronic device includes: The communication performance of the communication device is reduced to the target communication performance.

15. The method according to any one of claims 12 to 14, characterized in that, The first condition includes: The temperature of the second electronic device is greater than or equal to the first temperature threshold; or The temperature of the second electronic device falls within the set first temperature range.

16. The method according to any one of claims 12 to 15, characterized in that, In reducing the rate at which the content transmitted by the first electronic device is received, the method further includes: When the temperature of the second electronic device meets the second condition, a third instruction is sent to the first electronic device; 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.

17. The method as described in claim 16, characterized in that, The second condition includes: The temperature of the second electronic device is less than or equal to the second temperature threshold; or The temperature of the second electronic device falls within the set second temperature range.

18. The method according to any one of claims 12 to 17, characterized in that, Before receiving the content transmitted by the first electronic device, the method further includes: Establish point-to-point (P2P) communication with the first electronic device; Receive a fourth instruction from the first electronic device, the fourth instruction being used to indicate the device role of the first electronic device and / or the second electronic device; wherein, the device role of either electronic device is the manager (GO) of the P2P communication or the managed (GC) of the P2P communication; The device role of the second electronic device is determined according to the fourth instruction.

19. The method as described in claim 18, characterized in that, 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.

20. The method according to any one of claims 12 to 19, characterized in that, The method further includes: When the communication connection between the second electronic device and the first electronic device is detected to be broken, the content corresponding to the first service received from the first electronic device is saved. After detecting that the second electronic device has re-established a communication connection with the first electronic device, it continues to receive the content corresponding to the first service transmitted by the first electronic device.

21. The method according to any one of claims 12 to 20, characterized in that, The first indication is also used to indicate a target ratio, which is used by the first electronic device to determine the reduced rate at which content is transmitted to the second electronic device, and the target ratio is greater than 0 and less than 1.

22. An electronic device, characterized in that, The electronic device includes a memory and one or more processors; The memory is used to store computer program code, which includes computer instructions; when the computer instructions are executed by the one or more processors, the electronic device performs the method as described in any one of claims 1 to 11, or performs the method as described in any one of claims 12 to 21.

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

24. A computer program product, characterized in that, The computer program product includes a computer program or instructions that, when executed on an electronic device, cause the electronic device to perform the method as described in any one of claims 1 to 11, or to perform the method as described in any one of claims 12 to 21.