Data transmission method and electronic device

By identifying the target scenario and adjusting the transmission parameters when transmitting large amounts of data between electronic devices, the problem of device overheating caused by high power consumption is solved, ensuring the stability of data transmission and user experience.

WO2026130372A1PCT designated stage Publication Date: 2026-06-25HUAWEI TECH CO LTD

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
HUAWEI TECH CO LTD
Filing Date
2025-12-16
Publication Date
2026-06-25

AI Technical Summary

Technical Problem

When transferring large amounts of data between electronic devices, high power consumption causes the devices to heat up rapidly, which may force the data transmission process to shut down, affecting the user experience.

Method used

By identifying the target scene, the temperature control function is activated, and transmission parameters such as transmission power, transmission antenna, and bandwidth are adjusted to reduce power consumption and lower device temperature.

Benefits of technology

This effectively avoids forced shutdowns caused by overheating of the device, ensuring data transmission stability and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025143008_25062026_PF_FP_ABST
    Figure CN2025143008_25062026_PF_FP_ABST
Patent Text Reader

Abstract

The present application provides a data transmission method and an electronic device. The method comprises: a first electronic device identifies a target scenario, and enables a temperature control function of the first electronic device; the first electronic device acquires temperature information; and upon determining, on the basis of the temperature information, that the temperature of the first electronic device is greater than or equal to a first preset threshold, the first electronic device performs temperature control management on the first electronic device on the basis of a transmission parameter of the first electronic device, the transmission parameter comprising at least one of a transmit power, a transmit antenna, and a bandwidth. By means of this solution, a first electronic device can, upon identifying a target scenario, enable a temperature control function, and after the first electronic device enables the temperature control function, if the temperature of the first electronic device is abnormal, the first electronic device can adjust at least one of a plurality of transmission parameters to reduce data transmission power consumption of the first electronic device, thereby reducing the temperature of the first electronic device and preventing the problem of forced process shutdown caused by overheating of the first electronic device.
Need to check novelty before this filing date? Find Prior Art

Description

A data transmission method and electronic device

[0001] Cross-references to related applications

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

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

[0004] Sharing pictures or transferring files between electronic devices is a common business scenario for users in their daily lives and work. For example, electronic devices can transfer data through multi-device collaboration functions.

[0005] In some scenarios, the amount of data transmitted between electronic devices is large, which requires a lot of the electronic devices' transmission resources and has a significant impact on their power consumption. High power consumption can cause electronic devices to heat up rapidly. When the temperature of an electronic device is too high, it will forcibly shut down the data transmission process, resulting in data transmission service failure and affecting user experience. Summary of the Invention

[0006] This application provides a data transmission method and an electronic device for providing a temperature control management scheme during data transmission.

[0007] In a first aspect, this application provides a data transmission method, which can be executed by a first electronic device. In this method, the first electronic device identifies a target scene and activates the temperature control function of the first electronic device. The target scene is related to a first data transmission service of the first electronic device. The first electronic device obtains temperature information of the first electronic device. When it is determined that the temperature of the first electronic device is greater than or equal to a first preset threshold based on the temperature information, the first electronic device performs temperature control management on the first electronic device according to the transmission parameters of the first electronic device. The transmission parameters include at least one of transmission power, transmission antenna, and bandwidth.

[0008] In the above method, the first electronic device can activate the temperature control function after identifying the target scene. When the first electronic device activates the temperature control function, if the temperature of the first electronic device is abnormal, the first electronic device can adjust at least one of the multiple transmission parameters to reduce the data transmission power consumption of the first electronic device, thereby reducing the temperature of the first electronic device and avoiding the problem of forced shutdown of the process due to excessive temperature of the first electronic device.

[0009] In one possible design, identifying the target scenario includes: determining that the data volume of the first data transmission service is greater than a preset data volume threshold, and / or determining that the distance between the first electronic device and the second electronic device is less than a preset distance threshold, wherein the second electronic device is the receiving end device of the first data transmission service. With this design, the first electronic device can activate its temperature control function when it detects a large data volume in the first data transmission service, and / or when the first electronic device and the second electronic device are in a near-field communication scenario, thereby enabling timely temperature monitoring for service scenarios that may lead to increased temperature in the electronic devices.

[0010] In one possible design, when the transmission parameters include the transmit power, the temperature control management of the electronic device based on the transmission parameters includes: determining a target transmit power value based on the distance between the first and second electronic devices and a pre-stored correspondence between multiple transmit power values ​​and signal coverage ranges; and adjusting the transmit power based on the target transmit power value. The second electronic device is the receiving device for the first data transmission service. Through this design, the first electronic device can reduce its TxPower based on the distance between the first and second electronic devices, thereby reducing its power consumption and ultimately lowering its temperature while ensuring normal communication between them.

[0011] In one possible design, before determining the target transmission power value based on the distance between the first electronic device and the second electronic device and a pre-stored correspondence between multiple transmission power values ​​and signal coverage ranges, the method further includes: acquiring the location information of the second electronic device; and determining the distance between the first electronic device and the second electronic device based on the location information of the second electronic device.

[0012] In one possible design, determining the target transmission power value based on the distance between the first electronic device and the second electronic device and a pre-stored correspondence between multiple transmission power values ​​and signal coverage areas includes: determining the target transmission power value based on the distance between the first electronic device and the second electronic device, the distance between the first electronic device and the third electronic device, and the pre-stored correspondence between multiple transmission power values ​​and signal coverage areas; the third electronic device is another electronic device connected to the first electronic device. With this design, when other concurrent services exist within the first electronic device, the first electronic device can refer to the distance between itself and the third electronic device when adjusting TxPower, thereby preventing adjustments to TxPower from affecting other services between the first and third electronic devices.

[0013] In one possible design, adjusting the transmission power according to the target transmission power value includes: adjusting the transmission power of the first electronic device from its current value to the target transmission power value; or performing multiple adjustments to the transmission power of the first electronic device according to at least one preset adjustment range until the temperature of the first electronic device is lower than the first preset threshold, or until the transmission power of the first electronic device is the target transmission power value. With this design, the first electronic device can directly adjust TxPower to the target value, thereby quickly reducing TxPower to decrease power consumption and ensuring normal communication between the electronic device and the receiving electronic device; or the first electronic device can adjust TxPower multiple times, gradually adjusting it to the target value, thereby reducing power consumption to cool the electronic device while minimizing the impact of reduced signal coverage.

[0014] In one possible design, the step of performing multiple adjustments to the transmit power of the first electronic device based on at least one preset adjustment range includes: performing the next adjustment when, after one adjustment, the temperature of the first electronic device is greater than or equal to the first preset threshold, and / or the temperature drop of the first electronic device is less than or equal to a second preset threshold. With this design, the first electronic device can determine whether to perform the next adjustment based on temperature changes after one adjustment, thereby gradually adjusting TxPower to ensure both effective temperature control and a wide signal coverage range.

[0015] In one possible design, when the transmission parameters include a transmitting antenna, the temperature control management of the first electronic device based on the transmission parameters includes: determining at least one target antenna from a plurality of antennas of the first electronic device based on a first antenna used to perform the first data transmission service, the at least one target antenna including antennas not used for the first data transmission service; and disabling the service of the at least one target antenna. With this design, the first electronic device can disable the service of at least one target antenna (excluding the first antenna) from the plurality of antennas, thereby reducing power consumption caused by the service on the target antenna and thus lowering the temperature of the first electronic device.

[0016] In one possible design, shutting down the services of the at least one target antenna includes shutting down the data transmission and reception services and the scanning services of the at least one target antenna.

[0017] In one possible design, determining at least one target antenna from a plurality of antennas of the first electronic device based on a first antenna used to perform the first data transmission service includes: determining the at least one target antenna from the plurality of antennas based on the first antenna used to perform the first data transmission service and a second antenna used to perform a second data transmission service. The at least one target antenna includes antennas from the plurality of antennas that are not used for the first data transmission service and those that are not used for the second data transmission service. The second data transmission service is other data transmission services performed by the first electronic device while performing the first data transmission service. With this design, if other concurrent services exist while the first electronic device is performing the first data transmission service, when the first electronic device instructs to shut down antenna services, it does not need to instruct the antennas corresponding to other concurrent services to shut down services, thereby ensuring that other concurrent services in the first electronic device can also operate normally.

[0018] In one possible design, when the transmission parameters include bandwidth, the temperature control management of the first electronic device based on its transmission parameters includes: adjusting the bandwidth of the first electronic device from a first bandwidth to a second bandwidth, wherein the first bandwidth is the current bandwidth of the first electronic device, the second bandwidth is smaller than the first bandwidth, and the transmission resources of the second bandwidth do not include the interference-affected transmission resources of the first bandwidth. Through this design, the first electronic device can reduce power consumption by lowering the bandwidth, and the first electronic device can select transmission resources that do not include interference-affected transmission resources for data transmission services. Compared to random access, this improves the data transmission efficiency of transmission resources and reduces transmission overhead.

[0019] In one possible design, the temperature control management of the first electronic device based on its transmission parameters includes: adjusting a first transmission parameter of the first electronic device, wherein the first transmission parameter is any one of transmission power, transmission antenna, or bandwidth; and adjusting a second transmission parameter when the temperature of the first electronic device is greater than or equal to a first preset threshold after adjusting the first transmission parameter, or when the temperature drop of the first electronic device is less than or equal to a second preset threshold, wherein the second transmission parameter is any transmission parameter other than the first transmission parameter. Through this design, when performing temperature control management, the first electronic device can sequentially adjust multiple transmission parameters, thereby gradually reducing the power consumption of the first electronic device and achieving the purpose of temperature control.

[0020] In one possible design, before adjusting the first transmission parameter of the first electronic device, the method further includes: determining the first transmission parameter and the second transmission parameter based on the device performance of the first electronic device and / or the service scenario of the first electronic device, and determining the adjustment order of the first transmission parameter and the second transmission parameter. Through this design, the first electronic device can also determine the transmission parameters that need to be adjusted and the order of adjustment based on its device performance and / or the service scenario, thereby making the temperature control scheme more suitable for the first electronic device, ensuring temperature control effectiveness while avoiding affecting the normal operation of the first electronic device.

[0021] In one possible design, after performing temperature control management on the electronic device based on its transmission parameters, the method further includes: restoring the adjusted transmission parameters to preset values ​​when the temperature of the electronic device is lower than the first preset threshold, and / or after the target data transmission service has ended. With this design, the first electronic device can promptly restore its transmission parameters to preset values ​​after the temperature control management ends, thereby restoring the first electronic device to its normal operating state.

[0022] Secondly, this application provides an electronic device comprising multiple functional modules; the multiple functional modules interact to implement the methods executed by the first electronic device in any of the above aspects and their respective embodiments. The multiple functional modules can be implemented based on software, hardware, or a combination of software and hardware, and the multiple functional modules can be arbitrarily combined or divided based on specific implementations.

[0023] Thirdly, this application provides an electronic device including at least one processor and at least one memory, wherein the at least one memory stores computer program instructions, and when the electronic device is running, the at least one processor executes any of the above aspects and the methods executed by the first electronic device in its various embodiments.

[0024] Fourthly, this application also provides a computer program product containing instructions that, when the computer program product is run on a computer, cause the computer to perform the method executed by the electronic device in any of the above aspects and embodiments.

[0025] Fifthly, this application also provides a computer-readable storage medium storing a computer program that, when executed by a computer, causes the computer to perform the method executed by the electronic device in any of the above aspects and embodiments.

[0026] Sixthly, this application also provides a chip for reading a computer program stored in a memory and executing the method executed by the electronic device in any of the above aspects and embodiments.

[0027] Seventhly, this application also provides a chip system including a processor for supporting a computer device in implementing the methods executed by electronic devices in any of the above aspects and embodiments. In one possible design, the chip system further includes a memory for storing programs and data necessary for the computer device. The chip system may be composed of chips or may include chips and other discrete devices. Attached Figure Description

[0028] Figure 1 is a schematic diagram of a scenario in which a data transmission method provided in an embodiment of this application is applicable;

[0029] Figure 2 is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;

[0030] Figure 3 is a software structure block diagram of an electronic device provided in an embodiment of this application;

[0031] Figure 4 is a schematic diagram of adjusting TxPower in an electronic device according to an embodiment of this application;

[0032] Figure 5 is a schematic diagram of the architecture of an electronic device provided in an embodiment of this application;

[0033] Figure 6 is a flowchart of a data transmission method provided in an embodiment of this application;

[0034] Figure 7 is a flowchart of a data transmission method provided in an embodiment of this application. Detailed Implementation

[0035] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the embodiments of this application will be further described in detail below with reference to the accompanying drawings. In the description of the embodiments of this application, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, a feature defined with "first" and "second" may explicitly or implicitly include one or more of that feature.

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

[0037] When using electronic devices, users can transfer files, pictures, and other data to other devices. Multiple devices can transmit data using multi-device collaboration features and near-field communication (NFC) technology. In some scenarios, the amount of data transferred between devices is large. For example, when a user switches phones and copies files and settings from the old phone to the new one, the new phone needs to receive a significant amount of data from the old phone. When the amount of data transferred between electronic devices is large, it consumes a significant amount of the devices' transmission resources, significantly impacting power consumption. High power consumption leads to rapid temperature increases in electronic devices. If the temperature becomes too high, the device will implement temperature control measures, such as forcibly shutting down the data transmission process. This will cause data transmission to fail, affecting the user experience.

[0038] In some implementations, when an electronic device is performing data transmission services, if the temperature of the electronic device is too high, the application performing the data transmission service can adjust the data packet size to reduce power consumption. However, this method requires the electronic device to switch transmission strategies to adapt to the data packet size, which incurs significant overhead and results in slow data transmission speed. This increases the time required for data transmission services and negatively impacts the user experience.

[0039] To address the aforementioned issues, this application provides a data transmission method that can be executed by an electronic device. For example, Figure 1 illustrates a scenario applicable to the data transmission method provided in this application. Referring to Figure 1, the scenario applicable to the data transmission method provided in this application may include at least two electronic devices. As shown in Figure 1, taking a first electronic device and a second electronic device as examples, when the first electronic device has a first data transmission service (transmitting data to the second electronic device), the first electronic device identifies the target scenario and activates a temperature control function, where the target scenario is related to the first data transmission service. The first electronic device acquires its temperature information. Based on the temperature information, if the temperature of the first electronic device is greater than or equal to a first preset threshold, the first electronic device can perform temperature control management based on its transmission parameters. These transmission parameters include at least one of transmission power, transmission antenna, and bandwidth. Through this scheme, when the electronic device activates its temperature control function, if the temperature of the electronic device is abnormal, the electronic device can adjust at least one of multiple transmission parameters to reduce the data transmission power consumption, thereby lowering the temperature of the electronic device and avoiding the problem of forced shutdown due to excessively high temperature.

[0040] The following describes an electronic device and embodiments for using such an electronic device. The electronic device in this application embodiment includes a touchscreen, such as a foldable full-touchscreen laptop, tablet, mobile phone, in-vehicle device, augmented reality (AR) / virtual reality (VR) device, ultra-mobile personal computer (UMPC), netbook, personal digital assistant (PDA), wearable device, etc. This application embodiment does not limit the specific type of electronic device.

[0041] In some embodiments of this application, the electronic device may also be a portable terminal device that includes other functions such as a personal digital assistant and / or a music player. Exemplary embodiments of the portable terminal device include, but are not limited to, devices equipped with... Or portable terminal devices with other operating systems.

[0042] Figure 2 is a schematic diagram of the structure of an electronic device 100 provided in an embodiment of this application. As shown in Figure 2, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.

[0043] Processor 110 may include one or more processing units, such as an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors. The controller may serve as the central nervous system and command center of the electronic device 100. The controller can generate operation control signals based on instruction opcodes and timing signals to control instruction fetching and execution. Processor 110 may also include memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that processor 110 has recently used or is repeatedly used. If processor 110 needs to reuse an instruction or data, it can directly retrieve it from the memory. This avoids repeated access, reduces the waiting time of processor 110, and thus improves system efficiency.

[0044] USB interface 130 is a USB standard compliant interface, specifically a Mini USB interface, Micro USB interface, USB Type-C interface, etc. USB interface 130 can be used to connect a charger to charge electronic device 100, and can also be used for data transfer between electronic device 100 and peripheral devices. Charging management module 140 receives charging input from the charger. Power management module 141 connects battery 142, charging management module 140, and processor 110. Power management module 141 receives input from battery 142 and / or charging management module 140, providing power to processor 110, internal memory 121, external memory, display 194, camera 193, and wireless communication module 160, etc.

[0045] The wireless communication function of electronic device 100 can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor, and baseband processor. Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover one or more communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in conjunction with a tuning switch. In the embodiments of this application, antenna 1 or antenna 2 can receive a shutdown command. After receiving the shutdown command, antenna 1 or antenna 2 can shut down services, such as shutting down the antenna's data transmission and / or scanning services.

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

[0047] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.

[0048] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling electronic device 100 to communicate with networks and other devices via wireless communication technology. The wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time-Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).

[0049] The display screen 194 is used to display the display interface of an application, such as the display page of an application installed on the electronic device 100. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include one or N display screens 194, where N is a positive integer greater than 1.

[0050] Camera 193 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In some embodiments, the electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.

[0051] Internal memory 121 can be used to store computer executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of electronic device 100 by running the instructions stored in internal memory 121. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system and software code for at least one application program. The data storage area may store data generated during the use of electronic device 100 (e.g., captured images, recorded videos, etc.). Furthermore, internal memory 121 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.

[0052] The external storage interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, images, videos, and other files can be saved on the external memory card.

[0053] Electronic device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.

[0054] The sensor module 180 may include a pressure sensor 180A, an acceleration sensor 180B, a touch sensor 180C, etc.

[0055] The pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194.

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

[0057] Buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch buttons. Electronic device 100 can receive button inputs and generate key signal inputs related to user settings and function control. Motor 191 can generate vibration alerts. Motor 191 can be used for incoming call vibration alerts or for touch vibration feedback. For example, touch operations applied to different applications (such as taking photos, audio playback, etc.) can correspond to different vibration feedback effects. Touch vibration feedback effects can also be customized. Indicator 192 can be an indicator light, used to indicate charging status, battery level changes, or to indicate messages, missed calls, notifications, etc. SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to achieve contact and separation with electronic device 100.

[0058] It is understood that the components shown in Figure 2 do not constitute a specific limitation on the electronic device 100. The electronic device may include more or fewer components than shown, or combine some components, or separate some components, or have different component arrangements. Furthermore, the combination / connection relationships between the components in Figure 2 can also be adjusted and modified.

[0059] Figure 3 is a software structure block diagram of an electronic device provided in an embodiment of this application. As shown in Figure 3, the software structure of the electronic device can be a layered architecture. For example, the software can be divided into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the operating system is divided into four layers, from top to bottom: the application layer, the application framework layer (framework, FWK), the runtime and system libraries, and the kernel layer.

[0060] The application layer can include a series of application packages. As shown in Figure 3, the application layer can include camera, settings, skin modules, user interface (UI), third-party applications, etc. Third-party applications can include gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, SMS, etc.

[0061] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer can include some predefined functions. As shown in Figure 3, the application framework layer can include a window manager, content provider, view system, phone manager, resource manager, notification manager, temperature control system, and transmission parameter control module.

[0062] The window manager is used to manage windowed applications. It can obtain the screen size, determine if a status bar is present, lock the screen, and capture screenshots. The content provider stores and retrieves data, making this data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.

[0063] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.

[0064] A phone manager is used to provide communication functions for electronic devices. For example, it manages call status (including connection and disconnection).

[0065] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.

[0066] The notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of completed downloads or message alerts. The notification manager can also display notifications as icons or scrolling text in the top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the status bar, emitting sounds, vibrating electronic devices, and flashing indicator lights.

[0067] Temperature control systems are used to obtain temperature information from electronic devices.

[0068] The transmission parameter control module is used to determine the adjustment method of at least one of the transmission parameters of the electronic device, namely TxPower, transmitting antenna and bandwidth, when the temperature of the electronic device is greater than or equal to a first preset threshold.

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

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

[0071] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), image processing libraries, etc.

[0072] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.

[0073] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.

[0074] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0075] A 2D graphics engine is a graphics engine for 2D drawing.

[0076] The kernel layer is the layer between hardware and software. The kernel layer contains at least the display driver, camera driver, audio driver, and sensor driver.

[0077] The hardware layer can include various types of sensors, such as accelerometers, gyroscopes, and touch sensors.

[0078] It should be noted that the structures shown in Figures 2 and 3 are merely examples of electronic devices provided in the embodiments of this application, and cannot be used to limit the electronic devices provided in the embodiments of this application. In specific implementations, electronic devices may have more or fewer devices or modules than those shown in Figures 2 or 3.

[0079] The data transmission method provided in the embodiments of this application is described below.

[0080] The data transmission method provided in this application can be used in scenarios where electronic devices have a large amount of data transmission services, such as when an electronic device sends a large file to another electronic device or when a user uses a new mobile phone to copy data from an old mobile phone. In the above scenarios, the electronic device may experience increased power consumption due to the transmission of a large amount of data, which may further increase the temperature of the electronic device. The data transmission method provided in this application can be used to control the temperature of the electronic device in the data transmission scenario.

[0081] In this embodiment, the example of a first electronic device performing a first data transmission service with a second electronic device is used for illustration. The first electronic device can activate a temperature control function after identifying a target scene. The target scene is a scene related to the first data transmission service, including a target service scene and / or a target communication scene. The target service scene can be that the first electronic device detects that the data volume of the first data transmission service is greater than a preset data volume threshold. Optionally, the first electronic device can determine the data volume of the first data transmission service based on the expected data volume and / or bandwidth. The target communication scene can include a near-field communication scene. Optionally, the first electronic device can obtain the distance between itself and the second electronic device. When the distance between the first electronic device and the second electronic device is less than a preset distance threshold, the first electronic device can determine that the current communication scene is a near-field communication scene. Alternatively, the first electronic device can determine that the current communication scene is a near-field communication scene based on the communication protocol with the second electronic device being a short-range communication protocol.

[0082] In some examples, the first electronic device can also enable the temperature control function according to user operation. For example, the settings interface of the first electronic device may include an enable control for the temperature control function. When the user triggers the enable operation with the enable control for the temperature control function, the first electronic device can respond to the operation and enable the temperature control function.

[0083] In the data transmission method provided in this application embodiment, when the first electronic device activates its temperature control function, the first electronic device can monitor its temperature. Optionally, the first electronic device can acquire its temperature information based on a preset period and determine whether temperature control management is required based on the acquired temperature information and a first preset threshold. For example, when the first electronic device determines that the temperature is greater than or equal to the first preset threshold, it can perform temperature control management based on its transmission parameters. Optionally, the first preset threshold can be an empirical value set by a technician, or it can be a value determined based on the device performance and service type of the first electronic device. This application embodiment does not limit this.

[0084] In this embodiment, the first electronic device performing temperature control management may include adjusting at least one of the following transmission parameters: transmit power, transmit antenna, or bandwidth. Transmit power (TxPower) is the power intensity used by the electronic device when transmitting signals. Since the signal needs to undergo spatial attenuation before reaching the receiving device, a higher TxPower results in a longer communication distance. The following further describes several methods for temperature control management of the first electronic device in this embodiment:

[0085] 1. The first electronic device adjusts TxPower.

[0086] In one optional implementation, the first electronic device can adjust its TxPower according to a preset set of multiple transmission power levels. Optionally, the first electronic device can obtain the distance between itself and the second electronic device. For example, the first electronic device can obtain the location information of the second electronic device and determine the distance between them based on that information. The first electronic device can pre-store multiple correspondences between TxPower values ​​and signal coverage areas. Based on the distance between the first and second electronic devices and the pre-stored correspondences, a target TxPower value is determined. The first electronic device can then adjust its TxPower according to this target value. Therefore, when the distance between the first and second electronic devices is greater, the target TxPower value can be relatively larger; when the distance is shorter, the target TxPower value can be relatively smaller. This avoids TxPower redundancy that could cause the temperature of the first electronic device to rise.

[0087] Optionally, the first electronic device can determine a target TxPower value that can guarantee data transmission between the first electronic device and the second electronic device based on the distance between the first electronic device and the second electronic device and the correspondence between multiple pre-stored TxPower values ​​and signal coverage ranges. The target TxPower value can be the minimum TxPower value for communication between the first electronic device and the second electronic device.

[0088] In one optional implementation, the first electronic device can adjust its current TxPower value to a target TxPower value. In this way, TxPower can be quickly reduced to decrease power consumption, while ensuring normal communication between the electronic device and the receiving electronic device.

[0089] In another optional implementation, the first electronic device can perform multiple adjustments to its TxPower based on at least one preset adjustment range until the temperature of the first electronic device is lower than a first preset threshold, or until the TxPower value of the first electronic device is a target TxPower value. For example, the first electronic device can store multiple preset TxPower values, and can gradually adjust from the current TxPower value to the target TxPower value. For example, Figure 4 is a schematic diagram of an electronic device adjusting TxPower according to an embodiment of this application. Referring to Figure 4, different TxPower values ​​correspond to different coverage ranges. Assuming that the first electronic device determines that the distance between the first electronic device and the second electronic device is 1m, the first electronic device can first adjust the TxPower from the TxPower value corresponding to a signal coverage range of 20m to the TxPower value corresponding to a signal coverage range of 10m. If the first electronic device detects that the temperature has not decreased, or the temperature decrease is less than or equal to the second preset threshold, referring to Figure 4, the first electronic device can continue to adjust the TxPower from the TxPower value corresponding to a signal coverage range of 10m to the TxPower value corresponding to a signal coverage range of 5m. If the temperature detected by the first electronic device does not decrease, or the temperature decrease is less than or equal to the second preset threshold, referring to Figure 4, the first electronic device can continue to adjust the TxPower from the TxPower value corresponding to a signal coverage range of 5m to the TxPower value corresponding to a signal coverage range of 1m. In this way, the electronic device can gradually adjust the TxPower value, thereby reducing power consumption to cool down the electronic device while minimizing the impact of the reduced signal coverage range of the electronic device.

[0090] Optionally, during the execution of data transmission services, the first electronic device can dynamically adjust TxPower based on the distance between the first electronic device and the second electronic device. For example, if the distance between the first electronic device and the second electronic device changes after the first electronic device adjusts TxPower, and the signal coverage range corresponding to the adjusted TxPower cannot cover the second electronic device, the first electronic device can adjust TxPower to a larger level based on the distance between the first electronic device and the second electronic device to ensure that the data transmission service between the first electronic device and the second electronic device can proceed normally.

[0091] In some embodiments, when the first electronic device performs a first data transmission service, other concurrent services exist within the first electronic device, such as the first electronic device establishing a connection with a second electronic device while simultaneously establishing a connection with a third electronic device, or a second data transmission service existing between the first and third electronic devices. When the first electronic device adjusts TxPower based on a first distance between itself and the second electronic device, it also needs to obtain a second distance between itself and the third electronic device and adjust TxPower accordingly. For example, the target TxPower value determined by the first electronic device can be the minimum TxPower value that allows the signal coverage area to cover both the second and third electronic devices.

[0092] Optionally, if the first electronic device has adjusted TxPower based on the first distance between the first electronic device and the second electronic device, and the first electronic device establishes a connection with the third electronic device, and the signal coverage range corresponding to the current TxPower of the first electronic device cannot cover the third electronic device, then the first electronic device can readjust TxPower based on the second distance between the first electronic device and the third electronic device. For example, the target value of the readjusted TxPower can be the minimum TxPower value that the signal coverage range can cover the second electronic device and the third electronic device.

[0093] 2. The first electronic device adjusts the transmitting antenna.

[0094] In this embodiment of the application, the first electronic device may also adjust the transmitting antenna to reduce power consumption. The first electronic device may determine a first antenna for performing the first data transmission service from a plurality of antennas, determine at least one target antenna from the plurality of antennas based on the first antenna, and shut down the service of at least one target antenna.

[0095] In some embodiments, when the electronic device includes multiple antennas, each of the multiple antennas may have data transmission and reception services or scanning services. The electronic device can determine a first antenna among the multiple antennas used to perform a first data transmission service. The electronic device can shut down the data transmission and reception services and scanning services of at least one target antenna among the multiple antennas other than the first antenna, thereby reducing the power consumption caused by the services on the target antenna.

[0096] Optionally, the electronic device can send a shutdown command to at least one target antenna. Upon receiving the shutdown command, the at least one target antenna can shut down its data transmission and reception services and scanning services. Compared to the scheme where the antenna shuts down after identifying the service scenario, this application provides a hardware-software combined antenna shutdown scheme. Since the scheme where the antenna shuts down after identifying the service scenario itself has a lag, low accuracy, and high overhead, the hardware-software combined antenna shutdown scheme provided in this application can control the antenna shutdown more efficiently, with higher coordination efficiency, thereby more effectively reducing the power consumption of the electronic device and achieving the goal of reducing the temperature of the electronic device.

[0097] In some examples, if other concurrent services exist when the electronic device is performing the first data transmission service, such as the first electronic device also having a second data transmission service with a third electronic device, then when the first electronic device determines at least one target antenna, it can also determine at least one target antenna from the multiple antennas of the first electronic device based on the first antenna corresponding to the first data transmission service and the second antenna corresponding to the second data transmission service. The determined at least one target antenna includes antennas that are not used for the first data transmission service and antennas that are not used for the second data transmission service.

[0098] If the first electronic device shuts down at least one target antenna and then receives other services that require antennas, such as other data transmission services, the first electronic device can determine the antenna identifier corresponding to the service based on the pre-stored correspondence between antenna identifiers and services. If the antenna corresponding to that antenna identifier is in a closed state, the first electronic device can turn that antenna back on to ensure that other services of the first electronic device can also proceed normally.

[0099] 3. The first electronic device adjusts the bandwidth.

[0100] In this embodiment of the application, the first electronic device can also adjust the bandwidth to a smaller value to reduce power consumption. For example, when the current bandwidth of the first electronic device is the first bandwidth, the first electronic device can adjust the bandwidth to the second bandwidth, which is smaller than the first bandwidth. Optionally, the first electronic device can store multiple bandwidth levels. When the first electronic device adjusts the bandwidth, it can adjust the bandwidth to a smaller value according to the multiple stored bandwidth levels.

[0101] Optionally, when adjusting the bandwidth, the first electronic device can also select uninterrupted transmission resources from among multiple transmission resources to ensure data transmission efficiency. The first electronic device can determine whether a transmission resource is interfered with based on its load. It can store multiple combinations of transmission resources corresponding to each bandwidth, such as 40Hz, 80Hz, and 160Hz. The first electronic device can determine the center frequency based on the adjusted second bandwidth and the interfered transmission resources, thereby determining the transmission resources after bandwidth adjustment. For example, assuming the current bandwidth of the first electronic device is 160MHz, with interference in a 10MHz band, and the actual bandwidth used for data transmission is 40MHz, the first electronic device can adjust the bandwidth to 80MHz, excluding the aforementioned interfered 10MHz band. Through this scheme, the electronic device can reduce power consumption by lowering the bandwidth, and can select transmission resources that do not interfere with for data transmission services. Compared to random access, this improves data transmission efficiency and reduces transmission overhead.

[0102] In the data transmission method provided in this application embodiment, when the temperature of the first electronic device is greater than or equal to a first preset threshold, the first electronic device can adjust the transmission parameters. These transmission parameters include at least one of TxPower, the transmitting antenna, and bandwidth. Alternatively, the first electronic device can first adjust any one of TxPower, the transmitting antenna, and the bandwidth. If the temperature of the first electronic device remains greater than or equal to the first preset threshold after adjustment, or if the temperature decrease is less than a second preset threshold after adjustment, the first electronic device then adjusts the other transmission parameters respectively. For example, when the temperature of the first electronic device is greater than or equal to the first preset threshold, the first electronic device can adjust TxPower. If the temperature remains greater than or equal to the first preset threshold after adjusting TxPower, or if the temperature decrease is less than or equal to the second preset threshold, the first electronic device can adjust the transmitting antenna. If the temperature remains greater than or equal to the first preset threshold after adjusting the transmitting antenna, or if the temperature decrease is less than or equal to the second preset threshold, the first electronic device can adjust the bandwidth.

[0103] It should be noted that in the scheme where the first electronic device sequentially adjusts any one of TxPower, the transmitting antenna, and the bandwidth, the first electronic device can adjust them in the order of TxPower, transmitting antenna, and bandwidth. Alternatively, the first electronic device can determine which parameters to adjust and the order of adjustment based on its device performance and service scenario. For example, when the device performance of the first electronic device includes a small number of antennas, the first electronic device can choose not to adjust the antennas during temperature control management and instead adjust them sequentially in the order of TxPower and bandwidth to ensure the normal operation of the first electronic device. As another example, when the first electronic device has near-field communication services with multiple electronic devices, adjusting TxPower will reduce the signal coverage area, which may affect the near-field communication services between the first electronic device and other electronic devices. In this case, the first electronic device can choose not to adjust TxPower during temperature control management and instead adjust it sequentially in the order of antenna and bandwidth to ensure the normal operation of the near-field communication services between the first electronic device and multiple electronic devices. In implementation, the method of adjusting TxPower, the transmitting antenna, and the bandwidth of the first electronic device can be found in the above embodiments, and repeated details will not be elaborated further.

[0104] In the data transmission method provided in this application embodiment, after the first electronic device adjusts the transmission parameters to perform temperature control management, if the first electronic device detects that the temperature is less than a first preset threshold, or if the first electronic device determines that the first data transmission service with the second electronic device has ended, the first electronic device can restore the transmission parameters to preset values. The transmission parameters may include at least one of TxPower, transmitting antenna, and bandwidth. For example, the first electronic device can restore TxPower and bandwidth to preset values, and turn on all previously closed antennas.

[0105] In some examples, when the first electronic device detects that the temperature is below a first preset threshold, it can gradually adjust TxPower or bandwidth according to preset levels to prevent a sudden increase in TxPower or bandwidth from causing the first electronic device to overheat again. For example, assuming that the first electronic device adjusts TxPower to the value corresponding to a signal coverage range of 5m when performing temperature control management, it can first adjust TxPower from the value corresponding to a signal coverage range of 5m to the value corresponding to a signal coverage range of 10m when it determines that the temperature is below the first preset threshold. If the first electronic device detects that the temperature has decreased or that the temperature has not changed, it can continue to adjust TxPower from the value corresponding to a signal coverage range of 10m to the value corresponding to a signal coverage range of 20m. For example, suppose that when the first electronic device is performing temperature control management, it adjusts the bandwidth from 160Hz to 40Hz. Then, when the first electronic device determines that the temperature is less than the first preset threshold, it can adjust the bandwidth from 40Hz to 80Hz. If the first electronic device detects that the temperature has dropped or that the temperature has not changed, it can continue to adjust the bandwidth from 80Hz to 160Hz.

[0106] Based on the above embodiments, Figure 5 is a schematic diagram of the architecture of an electronic device provided in this application embodiment. Figure 5 illustrates an example of data transmission between an electronic device and a receiving electronic device via a Wi-Fi connection. Referring to Figure 5, the electronic device may include a first application, a temperature control system, a communication module, a transmission parameter control module, and a Wi-Fi module. The first application is the application that initiates the data transmission service. The temperature control system measures the temperature information of the electronic device and sends this information to the transmission parameter control module. The communication module manages the communication connection between the electronic device and the receiving electronic device. For example, the communication module can call the Wi-Fi module to establish a Wi-Fi connection between the electronic device and the receiving electronic device and transmit data. The transmission parameter control module determines the adjustment method for at least one of the electronic device's TxPower, transmitting antenna, and bandwidth according to the temperature control management method provided in the above embodiments of this application, and sends the determined adjustment method to the Wi-Fi module. The Wi-Fi module can adjust at least one of TxPower, transmitting antenna, and bandwidth according to the received adjustment method. Optionally, the communication module and the transmission parameter control module can be implemented by a soft bus, and the Wi-Fi module can be implemented by a Wi-Fi chip in the electronic device. The electronic device shown in Figure 5 can be used to execute the data transmission method executed by the first electronic device in the above embodiments.

[0107] It should be noted that the embodiment shown in Figure 5 uses a Wi-Fi module as an example. In practice, the electronic device and the receiving device can transmit data based on other communication technologies. Therefore, the electronic device may also include functional modules corresponding to other communication technologies. This application does not limit this aspect.

[0108] Based on the architecture of the electronic device shown in Figure 5, Figure 6 is a flowchart of a data transmission method provided by an embodiment of this application. The method can be executed by a first electronic device. Referring to Figure 6, the method includes the following steps:

[0109] S601: The first electronic device acquires temperature information.

[0110] Optionally, S601 can be executed by the temperature control system shown in Figure 5. After obtaining the temperature information, the temperature control system can send the temperature information to the transmission parameter control module shown in Figure 5.

[0111] S602: The first electronic device determines that the temperature of the first electronic device is greater than or equal to the first preset threshold based on the temperature information.

[0112] S603: The first electronic device acquires the distance between the first electronic device and the second electronic device.

[0113] The second electronic device is the receiving end electronic device for the first data transmission service of the first electronic device.

[0114] S604: The first electronic device determines the target value of TxPower based on the distance between the first electronic device and the second electronic device and the pre-stored correspondence between multiple TxPower values ​​and signal coverage ranges.

[0115] Optionally, S602-S604 can be executed by the transmission parameter control module shown in Figure 5, which can send the TxPower target value to the Wi-Fi module shown in Figure 5.

[0116] S605: The electronic device adjusts its TxPower according to the target TxPower value.

[0117] Alternatively, S605 can be executed by the Wi-Fi module shown in Figure 5.

[0118] S606: The first electronic device determines that the temperature of the first electronic device is greater than or equal to a first preset threshold, or the temperature drop is less than or equal to a second preset threshold, and the first electronic device determines at least one target antenna from a plurality of antennas based on the first antenna used to perform the first data transmission service.

[0119] Optionally, S606 can be executed by the transmission parameter control module shown in Figure 5, which can send the identifier of the target antenna to the Wi-Fi module shown in Figure 5.

[0120] S607: The first electronic device shuts down service on at least one target antenna.

[0121] Alternatively, S607 can be executed by the Wi-Fi module shown in Figure 5.

[0122] S608: The first electronic device determines that the temperature of the first electronic device is greater than or equal to a first preset threshold, or the temperature drop is less than or equal to a second preset threshold, and determines that the bandwidth adjustment target is the second bandwidth.

[0123] Optionally, S608 can be executed by the transmission parameter control module shown in Figure 5, which can send the value of the second bandwidth to the Wi-Fi module shown in Figure 5.

[0124] S609: The first electronic device adjusts the bandwidth from the first bandwidth to the second bandwidth.

[0125] Wherein, the first bandwidth is the current bandwidth of the first electronic device, and the second bandwidth is smaller than the first bandwidth.

[0126] Alternatively, S609 can be executed by the Wi-Fi module shown in Figure 5.

[0127] It should be noted that the embodiment shown in Figure 6 is only an example of the data transmission method provided in this application and is not a limitation. In specific implementations, the electronic device may also adjust at least one of TxPower, transmitting antenna and bandwidth according to other orders. The adjustment method can be referred to the foregoing embodiments of this application, and repeated parts will not be described again.

[0128] Based on the same concept, this application also provides a data transmission method, which can be executed by a first electronic device. Figure 7 is a flowchart of a data transmission method provided by an embodiment of this application. Referring to Figure 7, the method includes the following steps:

[0129] S701: The first electronic device recognizes the target scene and activates the temperature control function of the first electronic device.

[0130] Optionally, the target scenario is related to the first data transmission service of the first electronic device. The first electronic device identifying the target scenario may include determining that the data volume of the first data transmission service is greater than a preset data volume threshold, and / or determining that the distance between the first electronic device and the second electronic device is less than a preset distance threshold, wherein the second electronic device is the receiving electronic device of the first data transmission service.

[0131] S702: The first electronic device acquires the temperature information of the first electronic device.

[0132] S703: When the first electronic device determines that the temperature of the first electronic device is greater than or equal to a first preset threshold based on the temperature information, the first electronic device performs temperature control management based on the transmission parameters of the first electronic device. The transmission parameters include at least one of the following: transmission power, transmission antenna, and bandwidth.

[0133] It should be noted that the data transmission method shown in Figure 7 of this application can be referred to the above embodiments of this application in specific implementation, and repeated parts will not be described again.

[0134] Based on the above embodiments, this application also provides an electronic device, which includes at least one processor and at least one memory, wherein the at least one memory stores computer program instructions. When the electronic device is running, the at least one processor performs the functions performed by the electronic device in the various methods described in the embodiments of this application. This includes performing the steps of the electronic device in the embodiments shown in FIG6 or FIG7.

[0135] Based on the above embodiments, this application also provides a computer program product containing instructions, which, when run on a computer, causes the computer to execute the methods described in the embodiments of this application.

[0136] Based on the above embodiments, this application also provides a computer-readable storage medium storing a computer program, which, when executed by a computer, causes the computer to perform the methods described in the embodiments of this application.

[0137] Based on the above embodiments, this application also provides a chip for reading computer programs stored in a memory to implement the methods described in the embodiments of this application.

[0138] Based on the above embodiments, this application provides a chip system including a processor for supporting a computer device in implementing the methods described in the embodiments of this application. In one possible design, the chip system further includes a memory for storing necessary programs and data of the computer device. This chip system may be composed of chips or may include chips and other discrete devices.

[0139] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0140] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in one or more blocks of the flowchart illustrations and / or one or more blocks of the block diagrams.

[0141] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means that implement the functions specified in one or more flowcharts and / or one or more block diagrams.

[0142] These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process, such that the instructions, which execute on the computer or other programmable apparatus, provide steps for implementing the functions specified in one or more flowcharts and / or one or more block diagrams.

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

Claims

1. A data transmission method, characterized in that, Applied to a first electronic device, the method includes: Upon identifying a target scene, the temperature control function of the first electronic device is activated, wherein the target scene is related to the first data transmission service of the first electronic device; Obtain the temperature information of the first electronic device; When the temperature of the first electronic device is determined to be greater than or equal to a first preset threshold based on the temperature information, temperature control management is performed on the first electronic device according to the transmission parameters of the first electronic device, wherein the transmission parameters include at least one of transmission power, transmission antenna, and bandwidth.

2. The method as described in claim 1, characterized in that, The identification of the target scene includes: The data volume of the first data transmission service is determined to be greater than a preset data volume threshold, and / or the distance between the first electronic device and the second electronic device is determined to be less than a preset distance threshold, wherein the second electronic device is the receiving device of the first data transmission service.

3. The method as described in claim 1 or 2, characterized in that, When the transmission parameters include the transmission power, the step of performing temperature control management on the electronic device based on the transmission parameters of the electronic device includes: Based on the distance between the first electronic device and the second electronic device and the pre-stored correspondence between multiple transmission power values ​​and signal coverage ranges, a transmission power target value is determined, and the transmission power is adjusted according to the transmission power target value, wherein the second electronic device is the receiving end device of the first data transmission service.

4. The method as described in claim 3, characterized in that, Before determining the target transmission power value based on the distance between the first electronic device and the second electronic device and a pre-stored correspondence between multiple transmission power values ​​and signal coverage ranges, the method further includes: Obtain the location information of the second electronic device; The distance between the first electronic device and the second electronic device is determined based on the location information of the second electronic device.

5. The method as described in claim 3, characterized in that, The step of determining the target transmission power value based on the distance between the first electronic device and the second electronic device and a pre-stored correspondence between multiple transmission power values ​​and signal coverage ranges includes: The target transmission power value is determined based on the distance between the first electronic device and the second electronic device, the distance between the first electronic device and the third electronic device, and the correspondence between the pre-stored multiple transmission power values ​​and signal coverage ranges; the third electronic device is another electronic device that has established a connection with the first electronic device.

6. The method according to any one of claims 3-5, characterized in that, The step of adjusting the transmission power according to the target transmission power value includes: Adjust the transmission power of the first electronic device from its current value to the target transmission power value; or The transmission power of the first electronic device is adjusted multiple times according to at least one preset adjustment range until the temperature of the first electronic device is less than the first preset threshold, or until the transmission power value of the first electronic device is the target transmission power value.

7. The method as described in claim 6, characterized in that, The step of performing multiple adjustments to the transmission power of the first electronic device according to at least one preset adjustment range includes: When the temperature of the first electronic device is greater than or equal to the first preset threshold after an adjustment, and / or the temperature drop of the first electronic device is less than or equal to the second preset threshold, the next adjustment is performed.

8. The method according to any one of claims 1-7, characterized in that, When the transmission parameters include a transmitting antenna, the step of performing temperature control management on the first electronic device based on the transmission parameters of the first electronic device includes: At least one target antenna is determined from a plurality of antennas of the first electronic device based on a first antenna used to perform the first data transmission service, the at least one target antenna including antennas among the plurality of antennas not used for the first data transmission service; Shut down the service of at least one target antenna.

9. The method as described in claim 8, characterized in that, Shutting down the service of at least one target antenna includes: Shut down the data transmission and scanning services of at least one target antenna.

10. The method as described in claim 8 or 9, characterized in that, The step of determining at least one target antenna from a plurality of antennas of the first electronic device based on a first antenna used to perform the first data transmission service includes: The at least one target antenna is determined from the plurality of antennas based on the first antenna used to perform the first data transmission service and the second antenna used to perform the second data transmission service. The at least one target antenna includes antennas from the plurality of antennas that are not used for the first data transmission service and not used for the second data transmission service. The second data transmission service is other data transmission services performed by the first electronic device when performing the first data transmission service.

11. The method according to any one of claims 1-10, characterized in that, When the transmission parameters include bandwidth, the step of performing temperature control management on the first electronic device based on the transmission parameters of the first electronic device includes: The bandwidth of the first electronic device is adjusted from a first bandwidth to a second bandwidth, wherein the first bandwidth is the current bandwidth of the first electronic device, the second bandwidth is smaller than the first bandwidth, and the transmission resources of the second bandwidth do not include the interference transmission resources of the first bandwidth.

12. The method according to any one of claims 1-11, characterized in that, The step of managing the temperature of the first electronic device based on its transmission parameters includes: The first transmission parameter of the first electronic device is adjusted, wherein the first transmission parameter is any one of transmission power, transmission antenna, or bandwidth; When the temperature of the first electronic device is greater than or equal to the first preset threshold after adjusting the first transmission parameter, or when the temperature drop of the first electronic device is less than or equal to the second preset threshold, the second transmission parameter is adjusted. The second transmission parameter is any transmission parameter other than the first transmission parameter.

13. The method as described in claim 12, characterized in that, Before adjusting the first transmission parameter of the first electronic device, the method further includes: Based on the device performance of the first electronic device and / or the service scenario of the first electronic device, the first transmission parameter and the second transmission parameter are determined, and the adjustment order of the first transmission parameter and the second transmission parameter is determined.

14. The method according to any one of claims 1-13, characterized in that, After performing temperature control management on the electronic device based on its transmission parameters, the method further includes: When the temperature of the electronic device is less than the first preset threshold, and / or after the target data transmission service ends, the adjusted transmission parameters will be restored to the preset value.

15. An electronic device, characterized in that, The method includes at least one processor coupled to at least one memory, the at least one processor being configured to read a computer program stored in the at least one memory to perform the method as described in any one of claims 1-14.

16. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed on a computer, cause the computer to perform the method as described in any one of claims 1-14.