Temperature control methods and related devices
By reducing the frame rate of the camera images and the bit rate of the transmitted images, the problem of device temperature rise was solved, achieving temperature control without affecting the user experience and improving the device's temperature management effect.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HONOR DEVICE CO LTD
- Filing Date
- 2023-07-11
- Publication Date
- 2026-05-26
AI Technical Summary
In scenarios such as video conferencing or video teaching, using the camera on another device may cause the device temperature to rise, affecting the user experience.
By reducing the frame rate of images captured by the camera and the bit rate of images transmitted by the electronic device, the temperature is adaptively adjusted to control the device temperature and reduce the probability of overheating.
Effectively control device temperature without significantly impacting user experience, reducing the probability of overheating and improving user experience.
Smart Images

Figure CN117707242B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of terminal technology, and in particular to temperature control methods and related devices. Background Technology
[0002] In scenarios such as video conferencing or video teaching, users can use the camera of electronic device B on electronic device A. This scenario can be called a shared camera scenario.
[0003] However, when electronic device A uses the camera of electronic device B, it increases the system load of electronic device B, which may cause the temperature of electronic device B to rise and reduce the user experience. Summary of the Invention
[0004] The temperature control method and related apparatus provided in this application can reduce the frame rate of the camera capturing images and the bit rate of the electronic device transmitting images when the temperature of the electronic device using the camera rises, so that the temperature of the electronic device will not be too high.
[0005] In a first aspect, the temperature control method provided in this application includes: a first electronic device calling a camera device of a second electronic device; the second electronic device using the camera device to acquire images and transmitting the images to the first electronic device; wherein, during the process of the second electronic device acquiring images using the camera device, when the temperature of the second electronic device rises to a first preset value, if the first frame rate of the image acquired by the camera device is greater than a target frame rate, the second electronic device reduces the frame rate of the image acquired by the camera device; otherwise, if the first frame rate is less than or equal to the target frame rate, the second electronic device reduces the bit rate of the transmitted image. In this way, the frame rate of the image acquired by the camera and the bit rate of the image transmitted by the electronic device can be adaptively adjusted based on a baseline frame rate, a baseline bit rate, and temperature levels without significantly affecting the user experience, thereby regulating the temperature of the electronic device and reducing the probability of the electronic device overheating.
[0006] In one possible implementation, during the process of the second electronic device acquiring images using a camera: at a first moment, the temperature of the second electronic device is a first temperature, and the frame rate of the image acquired by the camera is a first frame rate, which is greater than the target frame rate; at a second moment, the temperature of the second electronic device is a second temperature, and the frame rate of the image acquired by the camera is a second frame rate, wherein the second moment is later than the first moment, the second temperature is greater than the first temperature, the second frame rate is less than the first frame rate, and the second frame rate is greater than the target frame rate; at a third moment, the temperature of the second electronic device is a third temperature, and the frame rate of the image acquired by the camera is a third frame rate, wherein the third moment is later than the second moment, the third temperature is greater than the second temperature, the third frame rate is less than the second frame rate, and the third frame rate is greater than or equal to the target frame rate. This achieves a gradual reduction in the frame rate, ensuring that the decrease in frame rate is not significant, the interface display is not overly choppy, and the user experience is minimized.
[0007] In one possible implementation, between the second and third time points, the temperature of the second electronic device is a fourth temperature, and the frame rate at which the camera captures images is a second frame rate. The fourth temperature is greater than the second temperature and less than the third temperature, and both the fourth and second temperatures fall within a first preset temperature range. This eliminates the need for frequent frame rate adjustments based on temperature changes, allowing the second electronic device to transmit images to the first electronic device at a relatively stable frame rate.
[0008] In one possible implementation, the temperature level corresponding to the first temperature is designated as Level 1, the temperature level corresponding to the second temperature is designated as Level 2, the temperature level corresponding to the third temperature is designated as Level 3, and the temperature level corresponding to the fourth temperature is designated as Level 2. This reduces the number of steps involved in adjusting the frame rate, thereby reducing memory resource usage.
[0009] In one possible implementation, during the process of the second electronic device acquiring images using a camera: at the fourth moment, the temperature of the second electronic device is the fifth temperature, the frame rate of the image acquired by the camera is the first frame rate, and the bit rate of the image transmitted by the second electronic device is the first bit rate, which is greater than the target frame rate; at the fifth moment, the temperature of the second electronic device is the sixth temperature, the frame rate of the image acquired by the camera is the target frame rate, and the bit rate of the image transmitted by the second electronic device is the second bit rate, wherein the fifth moment is later than the fourth moment, the sixth temperature is greater than the fifth temperature, and the second bit rate is less than the first bit rate; at the sixth moment, the temperature of the second electronic device is the seventh temperature, the frame rate of the image acquired by the camera is the target frame rate, and the bit rate of the image transmitted by the second electronic device is the third bit rate, wherein the sixth moment is later than the fifth moment, the seventh temperature is greater than the sixth temperature, and the third bit rate is less than the second bit rate. In this way, the second electronic device first reduces the frame rate and then reduces the bit rate. Since the bit rate also decreases when the frame rate decreases, the probability of interface stuttering and / or blurring can be reduced.
[0010] In one possible implementation, between the fifth and sixth moments, the temperature of the second electronic device is an eighth temperature, the frame rate of the image captured by the camera device is the target frame rate, and the bit rate of the image transmitted by the second electronic device is a second bit rate. The eighth temperature is greater than the sixth temperature and less than the seventh temperature, and both the eighth and sixth temperatures fall within a second preset temperature range. This eliminates the need for frequent bit rate adjustments based on temperature changes, allowing the second electronic device to transmit images to the first electronic device at a relatively stable bit rate.
[0011] In one possible implementation, during the process of the second electronic device acquiring images using a camera: at the seventh moment, the temperature of the second electronic device is the ninth temperature, the frame rate of the image acquired by the camera is the first frame rate, and the bit rate of the image transmitted by the second electronic device is the first bit rate, where the first frame rate is less than or equal to the target frame rate; at the eighth moment, the temperature of the second electronic device is the tenth temperature, the frame rate of the image acquired by the camera is the target frame rate, and the bit rate of the image transmitted by the second electronic device is the fourth bit rate, wherein the eighth moment is later than the seventh moment, the tenth temperature is greater than the ninth temperature, and the fourth bit rate is less than the first bit rate; at the ninth moment, the temperature of the second electronic device is the eleventh temperature, the frame rate of the image acquired by the camera is the target frame rate, and the bit rate of the image transmitted by the second electronic device is the fifth bit rate, wherein the ninth moment is later than the eighth moment, the eleventh temperature is greater than the tenth temperature, and the fifth bit rate is less than the fourth bit rate. In this way, the decrease in bit rate value will not be significant, the display effect of the interface will not be too blurry, and the user experience can be minimized.
[0012] In one possible implementation, during the process of the second electronic device acquiring images using the camera device, when the temperature of the second electronic device drops to a second preset value, if the frame rate of the image acquired by the camera device is less than a first frame rate, the second electronic device increases the frame rate. This increases the frame rate of the image acquired by the camera, thereby improving the image quality.
[0013] In one possible implementation, the second electronic device increases the frame rate by: increasing the frame rate to a first frame rate; or, increasing the frame rate to a fourth frame rate, where the fourth frame rate is lower than the first frame rate, and when the temperature of the second electronic device drops to a third preset value, increasing the fourth frame rate back to the first frame rate, where the third preset value and the second preset value belong to different temperature ranges; or, increasing the frame rate to a fourth frame rate; and when the temperature of the second electronic device is less than or equal to the second preset value within a first preset time period, increasing the fourth frame rate back to the first frame rate. In this way, after the second electronic device increases its frame rate, the frame rate of the image data received by the first electronic device also increases, thereby improving the user experience.
[0014] In one possible implementation, during the process of the second electronic device acquiring images using the camera, if the temperature of the second electronic device drops to a fourth preset value and the bit rate of the transmitted image is lower than the first bit rate, the second electronic device increases the bit rate. This increases the bit rate of the image acquired by the camera, thereby improving the image quality.
[0015] In one possible implementation, the second electronic device increases the bitrate, including: the second electronic device increasing the bitrate to a first bitrate; or, the second electronic device increasing the bitrate to a sixth bitrate, where the sixth bitrate is lower than the first bitrate, and when the temperature of the second electronic device drops to a fifth preset value, the second electronic device increases the sixth bitrate back to the first bitrate, where the fifth preset value and the fourth preset value belong to different temperature ranges; or, the second electronic device increasing the bitrate to a sixth bitrate, and when the temperature of the second electronic device is less than or equal to the fourth preset value within a second preset time period, the second electronic device increases the sixth bitrate back to the first bitrate. In this way, after the second electronic device increases its bitrate, the bitrate of the image data received by the first electronic device also increases, thereby improving the user experience.
[0016] In one possible implementation, before the first electronic device invokes the camera device of the second electronic device, the method further includes: the first electronic device displaying an interface of a target application, the interface including identifiers of one or more cameras; the identifiers of the one or more cameras including an identifier of the camera device of the second electronic device; the first electronic device invoking the camera device of the second electronic device includes: the first electronic device invoking the camera device of the second electronic device in response to a selection operation on the identifier of the camera device of the second electronic device. In this way, users can use the camera device of the second electronic device on the first electronic device for video conferencing or video teaching, thus improving the user experience.
[0017] Secondly, embodiments of this application provide a communication system, which includes a first electronic device and a second electronic device. The first electronic device is used to execute the method performed by the first electronic device in the first aspect or any possible implementation thereof. The second electronic device is used to execute the method performed by the second electronic device in the first aspect or any possible implementation thereof.
[0018] For example, the first electronic device is used to invoke the camera device of the second electronic device and to display the interface of the target application, specifically in response to a selection operation of the identifier of the camera device of the second electronic device.
[0019] The second electronic device is used to capture images using a camera device, and also to transmit images to the first electronic device, and to reduce the frame rate of the images captured by the camera device, and specifically to reduce the bit rate of the transmitted images.
[0020] The second electronic device is also used to increase the frame rate and the bit rate.
[0021] Thirdly, embodiments of this application provide an electronic device, including a processor and a memory, wherein the memory is used to store code instructions, and the processor is used to run the code instructions to execute the method executed by the first electronic device in the first aspect or any possible implementation of the first aspect, or to execute the method executed by the second electronic device in the first aspect or any possible implementation of the first aspect.
[0022] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program or instructions that, when executed on a computer, cause the computer to perform the method executed by a first electronic device in the first aspect or any possible implementation of the first aspect, or to perform the method executed by a second electronic device in the first aspect or any possible implementation of the first aspect.
[0023] Fifthly, embodiments of this application provide a computer program product including a computer program, which, when run on a computer, causes the computer to perform the method executed by the first electronic device in the first aspect or any possible implementation of the first aspect, or to perform the method executed by the second electronic device in the first aspect or any possible implementation of the first aspect.
[0024] Sixthly, this application provides a chip or chip system including at least one processor and a communication interface. The communication interface and the at least one processor are interconnected via a circuit. The at least one processor is used to run computer programs or instructions to execute the method performed by a first electronic device in the first aspect or any possible implementation of the first aspect, or to execute the method performed by a second electronic device in the first aspect or any possible implementation of the first aspect. The communication interface in the chip can be an input / output interface, pins, or circuits, etc.
[0025] In one possible implementation, the chip or chip system described above in this application further includes at least one memory storing instructions. The memory can be an internal storage unit of the chip, such as a register or cache, or it can be a storage unit of the chip itself (e.g., read-only memory, random access memory, etc.).
[0026] It should be understood that the second to sixth aspects of this application correspond to the technical solutions of the first aspect of this application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation are similar, and will not be repeated here. Attached Figure Description
[0027] Figure 1 This is a schematic diagram of a shared camera scenario provided in an embodiment of this application;
[0028] Figure 2 A schematic diagram illustrating the function of a camera provided in an embodiment of this application;
[0029] Figure 3 This is a schematic diagram of the structure of a first electronic device provided in an embodiment of this application;
[0030] Figure 4 This is a schematic diagram of the structure of a second electronic device provided in an embodiment of this application;
[0031] Figure 5 A schematic diagram of the software structure of an electronic device provided in an embodiment of this application;
[0032] Figure 6 A software module interaction diagram between a computer and a mobile phone is provided as an embodiment of this application;
[0033] Figure 7 An interactive schematic diagram of a temperature control method provided in an embodiment of this application;
[0034] Figure 8 A schematic diagram of a temperature control method provided in an embodiment of this application;
[0035] Figure 9 This is a schematic diagram of the structure of a chip provided in an embodiment of this application. Detailed Implementation
[0036] To facilitate a clear description of the technical solutions in the embodiments of this application, some terms and technologies involved in the embodiments of this application will be briefly introduced below:
[0037] 1. Terminology
[0038] In the embodiments of this application, terms such as "first" and "second" are used to distinguish identical or similar items with substantially the same function and purpose. For example, "first chip" and "second chip" are used only to distinguish different chips and do not limit their order of execution. Those skilled in the art will understand that terms such as "first" and "second" do not limit the quantity or execution order, and that "first" and "second" do not necessarily imply that they are different.
[0039] It should be noted that, in the embodiments of this application, the terms "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design scheme described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.
[0040] In this application embodiment, "at least one" refers to one or more, and "more than one" refers to 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, ab, a--c, bc, or abc, where a, b, and c can be single or multiple.
[0041] In scenarios such as video conferencing or video lectures, users can use the camera of electronic device B on electronic device A. This scenario can be called a shared camera scenario. The following example uses a computer as electronic device A and a mobile phone as electronic device B to illustrate a video conferencing scenario where a user uses a mobile phone camera on a computer.
[0042] like Figure 1 As shown, computer 100 can establish a connection with mobile phone 101. Computer 100 can display the interface 1001 of a certain application, which can conduct video conferencing. The interface 1001 of this application can include video conferencing-related functions, such as mute function, camera function 1002, interactive function, more functions, sharing function, etc. The interface 1001 may also include an end-sharing button and an end-live button. It is understood that the application can provide functions such as camera on / off, but the content displayed on the interface 1001 of different applications may vary, and this embodiment does not limit the scope of the application.
[0043] The camera function 1002 may include enabling and disabling the camera, and may also have a corresponding camera selection menu 1003. For example, the camera function may be as follows: Figure 2 As shown, the application interface can display an icon and text indicating that the camera 200 is turned on. In response to the user's operation of turning on the camera, the application interface can display an icon and text indicating that the camera 201 is turned off.
[0044] Furthermore, in response to the user clicking the drop-down arrow 202, the application interface can also display a camera selection menu 203. The camera selection menu 203 can include different types of cameras such as the device's own camera, the front-facing camera 204, and the rear-facing camera 205. The camera selection menu 203 can also provide functions such as beautification, virtual backgrounds, and video settings. It is understood that the content and functions displayed in the camera selection menu 203 may differ between different applications, and this embodiment does not limit the scope of the application.
[0045] In response to the user's selection of the front-facing camera 204, the selected front-facing camera 206 can be displayed in the application interface. The display method of the selected front-facing camera 206 can be customized by the application, and this embodiment does not impose any limitations on it.
[0046] As mentioned above Figure 1 As shown, when the computer 100 responds to the user's selection of the front-facing camera on the mobile phone, the mobile phone 101 can turn on the front-facing camera and use it to conduct a video conference with the computer 100.
[0047] However, using a mobile phone camera on a computer increases the system load on the phone, which may cause the phone to overheat and reduce the user experience.
[0048] In view of this, the temperature control method provided in this application embodiment can reduce the frame rate of the camera capturing images and the bit rate of the electronic device transmitting images when the temperature of the electronic device using the camera rises, so that the temperature of the electronic device will not be too high.
[0049] The temperature control method provided in this application embodiment can be applied to a communication system, which may include a first electronic device and a second electronic device.
[0050] The first electronic device and the second electronic device can be of the same type or different types. For example, both the first electronic device and the second electronic device can be any of the following electronic devices: mobile phone, tablet computer, PDA, laptop computer, personal computer (PC), mobile internet device (MID), wearable device, virtual reality (VR) device, augmented reality (AR) device, wireless terminal in industrial control, wireless terminal in self-driving, wireless terminal in remote medical surgery, wireless terminal in smart grid, wireless terminal in transportation safety, wireless terminal in smart city, wireless terminal in smart home, cellular phone, cordless phone, session initiation protocol (SIP) phone, wireless local loop (WLL) station, personal digital assistant (PDA). The embodiments of this application do not limit this to personal assistants (PDAs), handheld devices with wireless communication capabilities, computing devices or other processing devices connected to a wireless modem, in-vehicle devices, wearable devices, electronic devices in 5G networks or electronic devices in future evolved public land mobile networks (PLMNs).
[0051] By way of example and not limitation, in this embodiment, the electronic device can also be a wearable device. Wearable devices, also known as wearable smart devices, are a general term for devices that utilize wearable technology to intelligently design and develop everyday wearables, such as glasses, gloves, watches, clothing, and shoes. Wearable devices are portable devices that are worn directly on the body or integrated into the user's clothing or accessories. Wearable devices are not merely hardware devices, but also achieve powerful functions through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include those that are feature-rich, large in size, and can achieve complete or partial functions without relying on a smartphone, such as smartwatches or smart glasses, as well as those that focus on a specific type of application function and require the use of other devices such as smartphones, such as various smart bracelets and smart jewelry for vital sign monitoring.
[0052] Furthermore, in this application embodiment, the electronic device can also be an electronic device in the Internet of Things (IoT) system. IoT is an important part of the future development of information technology. Its main technical feature is to connect objects to the network through communication technology, thereby realizing an intelligent network of human-machine interconnection and object-to-object interconnection.
[0053] The electronic equipment in the embodiments of this application may also be referred to as: user equipment (UE), mobile station (MS), mobile terminal (MT), access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication equipment, user agent, or user device, etc.
[0054] In this embodiment, the electronic device or various network devices include a hardware layer, an operating system layer running on top of the hardware layer, and an application layer running on top of the operating system layer. The hardware layer includes hardware such as a central processing unit (CPU), a memory management unit (MMU), and memory (also called main memory). The operating system can be any one or more computer operating systems that implement business processing through processes, such as Linux, Unix, Android, iOS, or Windows. The application layer includes applications such as browsers, address books, word processing software, and instant messaging software.
[0055] For example, the first electronic device may include the above-described Figure 1 The computer 100 in the middle, the second electronic device may include the above-mentioned Figure 1 The mobile phone 101 in the example can also be a tablet or other electronic device, and this application embodiment does not limit the scope of the device. It is understood that this example does not constitute a limitation on the first and second electronic devices.
[0056] For example, Figure 3 A schematic diagram of the structure of a first electronic device according to an embodiment of this application is shown.
[0057] The first electronic device 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, a wireless communication module 150, an audio module 160, a speaker 160A, a receiver 160B, a microphone 160C, a headphone jack 160D, buttons 170, an indicator 171, a camera 172, and a display screen 173, etc.
[0058] It is understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the first electronic device. In other embodiments of this application, the first electronic device may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0059] Processor 110 may include one or more processing units, such as application processors (APs), modem processors, graphics processing units (GPUs), image signal processors (ISPs), controllers, video codecs, digital signal processors (DSPs), baseband processors, and / or neural network processing units (NPUs). Different processing units may be independent devices or integrated into one or more processors. The controller may be the central nervous system and command center of the first electronic device. The controller can generate operation control signals based on instruction opcodes and timing signals to control instruction fetching and execution.
[0060] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the aforementioned memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0061] In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a USB interface, etc.
[0062] It is understood that the interface connection relationships between the modules illustrated in the embodiments of the present invention are merely illustrative and do not constitute a structural limitation on the first electronic device. In other embodiments of this application, the first electronic device may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.
[0063] Internal memory 121 can be used to store executable program code, including instructions. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of the first electronic device (such as audio data, phonebook, 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. Processor 110 executes various functional applications and data processing of the first electronic device by running instructions stored in internal memory 121 and / or instructions stored in memory located within the processor.
[0064] Camera 172 is used to capture still images or videos. In some embodiments, the electronic device may include one or N cameras 172, where N is a positive integer greater than 1.
[0065] The first electronic device implements display functions through a GPU, a display screen 173, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 173 and the application processor. The GPU performs mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information. The first electronic device can implement shooting functions through an ISP, a camera 172, a video codec, a GPU, a display screen 173, and an application processor.
[0066] For example, Figure 4 A schematic diagram of the second electronic device is shown.
[0067] The second electronic device may include a processor 210, an external memory interface 220, an internal memory 221, a USB interface 230, a charging management module 240, a power management module 241, a battery 242, an antenna 1, an antenna 2, a mobile communication module 250, a wireless communication module 260, an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, a headphone jack 270D, a sensor module 280, a button 290, a motor 291, an indicator 292, a camera 293, a display screen 294, and a subscriber identification module (SIM) card interface 295, etc. The sensor module 280 may include a pressure sensor 280A, a gyroscope sensor 280B, a barometric pressure sensor 280C, a magnetic sensor 280D, an accelerometer sensor 280E, a distance sensor 280F, a proximity sensor 280G, a fingerprint sensor 280H, a temperature sensor 280J, a touch sensor 280K, an ambient light sensor 280L, a bone conduction sensor 280M, etc.
[0068] It is understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the second electronic device. In other embodiments of this application, the second electronic device may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0069] Processor 210 may include one or more processing units, such as an access point (AP), a modem processor, a GPU, an ISP, a controller, a video codec, a DSP, a baseband processor, and / or an NPU. These different processing units may be independent devices or integrated into one or more processors.
[0070] The controller can generate operation control signals based on the instruction opcode and timing signals to complete the control of instruction fetching and execution.
[0071] The processor 210 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. This memory can store instructions or data that the processor 210 has just used or that are used repeatedly. If the processor 210 needs to use the instruction or data again, it can directly retrieve it from the aforementioned memory. This avoids repeated accesses, reduces the waiting time of the processor 210, and thus improves the efficiency of the system.
[0072] In some embodiments, the processor 210 may include one or more interfaces. Interfaces may include I2C, I2S, PCM, UART, MIPI, GPIO, SIM card, and / or USB interfaces, etc.
[0073] It is understood that the interface connection relationships between the modules illustrated in the embodiments of the present invention are merely illustrative and do not constitute a structural limitation on the second electronic device. In other embodiments of this application, the second electronic device may also employ different interface connection methods or a combination of multiple interface connection methods as described in the above embodiments.
[0074] Internal memory 221 can be used to store computer executable program code, including instructions. Internal memory 221 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of the second electronic device (such as audio data, phonebook, etc.). Furthermore, internal memory 221 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, UFS, etc. Processor 210 executes various functional applications and data processing of the second electronic device by running instructions stored in internal memory 221 and / or instructions stored in memory disposed in the processor. For example, the methods of the embodiments of this application may be executed.
[0075] Camera 293 is used to capture still images or videos. In some embodiments, the second electronic device may include one or N cameras 293, where N is a positive integer greater than 1.
[0076] Display screen 294 is used to display images, videos, etc. Display screen 294 includes a display panel. In some embodiments, the second electronic device may include one or N displays screens 294, where N is a positive integer greater than 1. The second electronic device implements display functions through a GPU, display screen 294, and application processor, etc. The GPU is a microprocessor for image processing, connected to the display screen 294 and the application processor.
[0077] The second electronic device implements display functions through a GPU, a display screen 294, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 294 and the application processor. The GPU performs mathematical and geometric calculations and is used for graphics rendering. The processor 210 may include one or more GPUs, which execute program instructions to generate or modify display information. The second electronic device can implement shooting functions through an ISP, a camera 293, a video codec, a GPU, a display screen 294, and an application processor.
[0078] It is understood that some of the details presented above regarding the first electronic device and the second electronic device may be unnecessary, and the embodiments of this application do not limit the specific structure of the first electronic device and the second electronic device.
[0079] In the embodiments of this application, the first electronic device and the second electronic device may use the same operating system or different operating systems. The operating system may include, for example, any of the following operating systems: Linux operating system, Unix operating system, Android operating system, iOS operating system, or Windows operating system, etc.
[0080] For example, Figure 5 Taking the Android system as an example, a partial software architecture of the electronic device is illustrated. This software system can employ a layered architecture, event-driven architecture, microkernel architecture, microservices architecture, or cloud architecture.
[0081] A layered architecture divides software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into five layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system libraries, the hardware abstraction layer, and the kernel layer.
[0082] The application layer can include a series of application packages. Application packages can include applications such as phone, music, calendar, camera, games, notes, and video. Applications can include system applications and third-party applications.
[0083] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.
[0084] The application framework layer may include a window manager, resource manager, notification manager, content provider, and view system, etc. In this embodiment, the application framework layer may also include a shared camera service, a temperature control service, a virtualization service, a communication service, etc.
[0085] 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, allow screen touch, drag the screen, and capture the screen, among other things.
[0086] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.
[0087] Content providers enable data sharing between different applications, allowing one application to access data in another while ensuring the security of the accessed data.
[0088] The view system can be responsible for drawing the application's interface and handling events.
[0089] The shared camera service can be used to perform camera-related business processes. For example, the shared camera service can interact with communication services through signaling, such as issuing signaling to start or stop the camera. The shared camera service can also enable the camera through virtualization services and synchronize the camera status.
[0090] Temperature control services provide an interface for temperature changes, allowing electronic devices to revert to their original temperature and / or temperature level when the temperature rating changes. Temperature control services can also be called temperature management services.
[0091] Virtualization services can be used to enable the sharing of cameras between devices. They can also be used to adjust the frame rate of images captured by cameras and the bit rate of images transmitted by electronic devices based on temperature adjustment information issued by the shared camera service. Furthermore, virtualization services can interact with communication services to transmit camera data and exchange signaling.
[0092] The communication service can transmit camera data between two devices. For example, camera data may include the frame rate of the image captured by the camera, the bit rate of the image transmitted by the electronic device, and the content captured by the camera. The communication service can also interact with the shared camera service and / or virtualization service through signaling. For example, the signaling interaction between the communication service and the shared camera service may include turning the camera on or off, and the signaling interaction between the communication service and the virtualization service may include parameter negotiation.
[0093] The Android runtime consists of core libraries and a virtual machine. The Android runtime is responsible for scheduling and managing the Android system.
[0094] The core library consists of two parts: one part is the functionalities that need to be called by the Java language, and the other part is the Android core library.
[0095] The application layer and application framework layer run in a 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. For example, in the embodiments of this application, the virtual machine can be used to perform functions such as turning the camera on or off, detecting the temperature of the electronic device, and adjusting the frame rate and / or bit rate of the image captured by the camera.
[0096] System libraries, also known as the native layer, can include multiple functional modules. Examples include media libraries, function libraries, and graphics processing libraries (such as OpenGL ES).
[0097] 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.
[0098] The function library provides developers with API interfaces for various services, making it easy for them to quickly integrate and implement various functions.
[0099] The graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0100] The Hardware Abstraction Layer (HAL) is a layer of abstraction located between the kernel layer and the Android runtime. The HAL can be a wrapper around hardware drivers, providing a unified interface for calls from upper-layer applications.
[0101] The kernel layer is the layer between hardware and software. The kernel layer can include Bluetooth drivers, Wi-Fi drivers, display drivers, camera drivers, audio drivers, battery drivers, CPU drivers, USB drivers, and more.
[0102] It should be noted that the embodiments of this application are only illustrated using the Android system. In other operating systems (such as Windows system, iOS system, etc.), as long as the functions implemented by each functional module are similar to those in the embodiments of this application, the solution of this application can also be implemented.
[0103] For ease of description, this application uses a shared camera scenario where a user uses a mobile phone camera on a computer as an example to illustrate the temperature control method.
[0104] In this context, the computer side can be referred to as the user, and the mobile phone side can be referred to as the user. Both the user and the user can include various functional modules that enable camera sharing, such as camera sharing services, virtualization services, communication services, and temperature control services.
[0105] For ease of description, the user's shared camera service will be referred to as the first shared camera service, the user's virtualization service as the first virtualization service, and the user's communication service as the first communication service. The user's shared camera service will be referred to as the second shared camera service, the user's virtualization service as the second virtualization service, and the user's communication service as the second communication service.
[0106] Figure 6 The diagram illustrates the interaction between software modules on a computer and a mobile phone.
[0107] The user's application layer can include several third-party applications capable of video conferencing, where users can select the camera of the party being used. For example, if a user selects the front-facing camera of the party being used, when the user responds to the user's action of turning on the front-facing camera, the user can pass the information about turning on the front-facing camera to the first shared camera service in the application framework layer.
[0108] After receiving information that the front-facing camera of the user is turned on, the first shared camera service can enable and synchronize the status of the user's camera through the first virtualization service.
[0109] Camera enabling can include enabling the user's camera and enabling the user's camera. Camera enabling can be understood as the first virtualization service's identification and mounting of the camera. When the first virtualization service identifies the user's or user's camera and mounts the camera to the user, it means that the camera has the ability to be used.
[0110] The first virtualization service can transmit camera enabling data to the second virtualization service through the data channel established between the first and second communication services. Once the second virtualization service successfully enables the camera, it can transmit this success information back to the first virtualization service through the same data channel. The first virtualization service can then return a callback message indicating successful camera enabling to the first shared camera service. This callback message can be returned to the third-party application, allowing the application's interface to display the camera of the user. For example, the camera displayed on the third-party application's interface could include the aforementioned... Figure 2 The phone's front-facing camera 204 and rear-facing camera 205.
[0111] The synchronization of camera status can include the synchronization of camera enable status, as well as the synchronization of camera status during use, such as camera on, camera in the process of opening, camera successfully opening, camera successfully closing, etc.
[0112] On the other hand, the first shared camera service can transmit control signaling to the first communication service. This control signaling may include selecting a front or rear camera, turning the camera on or off, etc. For example, the first shared camera service can transmit information about turning on the user's front camera to the first communication service.
[0113] The first communication service can transmit camera data between the user and the user. The first communication service can transmit the information of the user's front-facing camera to the user's second communication service through the Bluetooth or Wi-Fi module of the hardware abstraction layer and the Bluetooth or Wi-Fi driver of the kernel layer.
[0114] Within the application framework layer of the user, the second communication service can report information about the user's front-facing camera being turned on to the second shared camera service. The second shared camera service can then pass this information to the second virtualization service, which in turn starts the camera driver by calling the camera enable interface of the hardware abstraction layer. Once the user's camera is turned on, the second virtualization service can transmit the result of the camera being turned on to the second communication service through the second shared camera service.
[0115] The second communication service can transmit camera data between the user and the user, and return the camera activation result to the user's first communication service. The first communication service can report this result to the first shared camera service, which can then return the result to the third-party application. The third-party application can then display the camera activation icon and text information on its interface.
[0116] Understandably, the second virtualization service can also pass the camera activation result to the second communication service, which then returns the camera activation result to the first communication service. The first communication service can then report the camera activation result to the first virtualization service. In other words, the first virtualization service and the first communication service can transmit camera data and exchange signaling without going through the first shared camera service. The transmitted camera data may include the frame rate of the images captured by the camera, the bit rate of the images transmitted by the user, and the content captured by the camera. The exchanged signaling may include parameter negotiation, camera selection, and camera capability activation.
[0117] Understandably, when the third-party application starts, the first shared camera service, the first virtualization service, the first communication service, the second virtualization service, and the second communication service can all start and run, enabling the camera of the user or the device being used. When the third-party application's interface displays a camera icon and / or camera text, it indicates that the camera has been successfully enabled and is capable of being used. When the device being used receives the message to open the camera, the second shared camera service and the temperature control service can start and run. In this way, the second shared camera service and the temperature control service only start and run when the camera is being used, saving power consumption for the device being used.
[0118] When the user receives a message to turn off the camera, the second shared camera service and the temperature control service can stop running. This way, the second shared camera service and the temperature control service operate while the camera is in use, saving power for the user. When the third-party application is closed, the first shared camera service, the first virtualization service, the first communication service, the second virtualization service, and the second communication service can all stop running.
[0119] The following is combined Figure 7 This paper describes the implementation flow of the temperature control method according to embodiments of this application. It should be noted that the computer and mobile phone interact with each other via a communication channel between a first communication service and a second communication service. Figure 7 The implementation process does not currently reflect the interaction between the first and second communication services.
[0120] 1. Enable camera sharing service.
[0121] When a user uses a mobile phone's camera in a third-party application on their computer, the application can send camera usage information to the phone through the computer's primary camera sharing service and primary communication service. Upon receiving this message, the phone can activate a secondary camera sharing service. The specific process of the computer sending camera usage information to the phone can be found above. Figure 6 The descriptions in the corresponding embodiments will not be repeated here.
[0122] 2. Report the camera's initial frame rate and initial resolution.
[0123] After the second camera sharing service is started, third-party applications can report the camera initial frame rate and camera initial resolution to the first virtualization service through the first camera sharing service. It is understandable that different applications may have different camera initial frame rates and camera initial resolutions.
[0124] The first virtualization service, based on the communication channel between the first and second communication services, transmits the camera's initial frame rate and initial resolution to the second virtualization service. The second virtualization service can then report the camera's initial frame rate and initial resolution to the second camera sharing service. It is understood that the second camera sharing service can convert the camera's initial resolution into an initial bitrate, and subsequently, it can save the initial frame rate and initial bitrate for later use. The initial frame rate can also be referred to as the baseline frame rate or base frame rate, and the initial bitrate can also be referred to as the baseline bitrate or base bitrate.
[0125] For example, the camera initialization frame rate can be 30 frames per second (fps), and the camera initialization resolution can be 1080P. The second camera sharing service can convert the camera initialization resolution into the camera initialization bitrate, for example, the camera initialization bitrate can be 5 megabits per second (Mbps).
[0126] 3. Register temperature monitoring callback.
[0127] To adjust the frame rate of the camera or the bit rate of the image transmitted by the phone in a timely manner when the phone's temperature rises or falls, the second camera sharing service can register a temperature monitoring callback interface with the temperature control service. When the temperature of the phone's casing changes, the second camera sharing service can obtain the temperature and / or temperature level of the phone's casing through this callback interface. In this embodiment, the phone casing temperature can be understood as the phone's surface temperature, also referred to as the shell temperature or front shell temperature; the frame rate of the camera's image acquisition can be simply referred to as the frame rate; and the bit rate of the image transmitted by the phone can be simply referred to as the bit rate.
[0128] In possible implementations of the temperature control service to obtain the shell temperature, the phone's temperature sensor can report the shell temperature to the temperature control service, or the temperature control service can periodically call relevant interfaces to detect the shell temperature. This application embodiment does not limit this.
[0129] It is understandable that the temperature control service can adjust the corresponding temperature level according to different temperature changes. For example, Table 1 below can show the correspondence between shell temperature and temperature level.
[0130] Table 1
[0131] Entering temperature retreat temperature Temperature rating Shell temperature 37℃ Front shell temperature 35℃ 1 Shell temperature 40℃ Front shell temperature 38℃ 2 Shell temperature 43℃ Front shell temperature 41℃ 3 Shell temperature 48℃ Front shell temperature 46℃ 4
[0132] The "entry temperature" can be understood as the temperature level increasing as the casing temperature rises to a certain level. For example, when the casing temperature rises to 37℃, the corresponding temperature level is 1; when the casing temperature rises to 40℃, the corresponding temperature level increases to 2. When the casing temperature is below 37℃, the corresponding temperature level is 0, which can be understood as the default temperature level for the phone.
[0133] The temperature drop-off can be understood as the temperature level decreasing when the shell temperature drops to a certain level. For example, when the shell temperature drops to 41℃, the corresponding temperature level is 2, meaning the shell temperature has dropped to a lower temperature level; similarly, when the shell temperature drops to 38℃, the corresponding temperature level drops to 1.
[0134] It is understood that the entry temperature, exit temperature, and temperature level can all be customized by the temperature control service, and the specific values of the entry temperature, exit temperature, and temperature level are not limited in this embodiment. Furthermore, the change in shell temperature and the change in temperature level may not be positively correlated; for example, as the shell temperature increases, the temperature level may decrease accordingly, and as the shell temperature decreases, the temperature level may increase accordingly. The specific relationship between shell temperature and temperature level is not limited in this embodiment.
[0135] 4. Adjust the temperature level to 3.
[0136] When the second camera sharing service receives a temperature level 3 callback, the corresponding casing temperature rises to 43℃, indicating that the current phone temperature is relatively high and may affect the user experience. Therefore, the second camera sharing service can activate a temperature level 3 cooling strategy.
[0137] 5. Activate the temperature level 3 cooling strategy.
[0138] In possible implementations, cooling strategies may include (1) reducing the frame rate and / or (2) reducing the bit rate.
[0139] (1) Reduce the frame rate.
[0140] The second camera sharing service can reduce the frame rate. Specifically, when the base frame rate is greater than a preset minimum frame rate, the second camera sharing service can reduce the frame rate to 2 / 3 of the base frame rate. If the temperature level continues to rise, the second camera sharing service can reduce the frame rate to 1 / 2 of the base frame rate. Different electronic devices can have different preset minimum frame rate values; for example, the preset minimum frame rate can be 15 fps. This application embodiment does not limit the value of the preset minimum frame rate.
[0141] It should be noted that the reduced frame rate value must not be lower than the preset minimum frame rate. In other words, if the reduced frame rate is lower than the preset minimum frame rate, the second camera sharing service can set the frame rate to the preset minimum frame rate. This can basically maintain the smoothness of the image, thus ensuring that the user experience is not too bad.
[0142] For example, with a base frame rate of 30fps and a preset minimum frame rate of 15fps, when the second camera sharing service detects that the temperature level has risen from temperature level 2 to temperature level 3, a cooling strategy can be implemented. Since the base frame rate is greater than the preset minimum frame rate, the second camera sharing service can reduce the frame rate to around 20fps. If the temperature level continues to rise, from temperature level 3 to temperature level 4, the second camera sharing service can reduce the frame rate to around 15fps.
[0143] (2) Reduce bit rate.
[0144] When the frame rate is less than or equal to a preset minimum frame rate, the second camera sharing service can reduce the bitrate. Situations where the frame rate is less than or equal to the preset minimum frame rate may include (a) the base frame rate is less than or equal to the preset minimum frame rate; and (b) the second camera sharing service reduces the frame rate to the preset minimum frame rate.
[0145] (a) The baseline frame rate is less than or equal to the preset minimum frame rate.
[0146] When the baseline frame rate is less than or equal to the preset minimum frame rate, the second camera sharing service can maintain the frame rate and reduce the bitrate to 2 / 3 of the baseline bitrate. If the temperature level continues to rise, the second camera sharing service can reduce the bitrate to 1 / 2 of the baseline bitrate.
[0147] For example, with a base frame rate of 15fps, a preset minimum frame rate of 15fps, and a base bitrate of 2.5Mbps, when the second camera sharing service detects that the temperature level has risen from temperature level 2 to temperature level 3, a cooling strategy can be implemented. Since the base frame rate equals the preset minimum frame rate, the second camera sharing service can maintain the frame rate while reducing the bitrate to approximately 1.7Mbps. If the temperature level continues to rise, from temperature level 3 to temperature level 4, the second camera sharing service can reduce the bitrate to approximately 1.2Mbps.
[0148] (b) The second camera sharing service will reduce the frame rate to the preset minimum frame rate.
[0149] When the second camera sharing service reduces the frame rate to a preset minimum frame rate, but the temperature level continues to rise or the shell temperature continues to rise within a first preset time period, the second camera sharing service can maintain the frame rate unchanged and reduce the bitrate to 2 / 3 of the base bitrate. If the shell temperature continues to rise within the first preset time period, the second camera sharing service can reduce the bitrate to 1 / 2 of the base bitrate. The first preset time period can be customized by the second camera sharing service; for example, it can be 5 minutes. This application embodiment does not limit the value of the first preset time period.
[0150] For example, with a base frame rate of 30fps, a preset minimum frame rate of 15fps, a base bitrate of 5Mbps, and a first preset time period of 5 minutes, when the temperature level rises from temperature level 3 to temperature level 4, the second camera sharing service will reduce the frame rate to 15fps. Since a lower frame rate leads to a corresponding decrease in bitrate, the bitrate can be reduced to approximately 2.5Mbps. If the housing temperature continues to rise within 5 minutes, the second camera sharing service can reduce the bitrate to approximately 1.7Mbps. If the housing temperature continues to rise within 5 minutes, the second camera sharing service can reduce the bitrate to approximately 1.2Mbps.
[0151] It is understood that the aforementioned second camera sharing service reducing the frame rate to 2 / 3 or 1 / 2 of the base frame rate and reducing the bit rate to 2 / 3 or 1 / 2 of the base bit rate can be set by experience. The second camera sharing service can also reduce the frame rate or bit rate to other values respectively. This application embodiment does not limit this.
[0152] The second camera sharing service first reduces the frame rate to 2 / 3 of the base frame rate, then to 1 / 2 of the base frame rate, and / or the second camera sharing service first reduces the bit rate to 2 / 3 of the base bit rate, then to 1 / 2 of the base bit rate. This can achieve the effect of gradually reducing the frame rate or bit rate. In this way, the decrease in frame rate or bit rate will not be too large, and the display effect of the interface will not be too laggy and / or too blurry, so as to minimize the impact on the user experience.
[0153] Of course, the temperature control method in this application embodiment can also reduce the frame rate to a minimum value all at once, for example, reduce the frame rate to half of the base frame rate, and / or reduce the bit rate to a minimum value all at once, for example, reduce the bit rate to half of the base bit rate. The temperature control method in this application embodiment can also reduce the frame rate and bit rate more times, without limitation.
[0154] In the above implementation, when the frame rate cannot be reduced further, the bitrate can be reduced. This is because the bitrate also decreases when the frame rate decreases, so it is not necessary to reduce the bitrate at the same time. If both the frame rate and bitrate are reduced simultaneously, the interface is likely to experience stuttering and / or blurry display effects, resulting in a poor user experience.
[0155] Of course, the temperature control method in this application embodiment can also simultaneously reduce the frame rate and bit rate, or reduce the bit rate first and then the frame rate, without limitation. After the second camera sharing service executes the cooling strategy, the second virtualization service can reduce the encoder load and the amount of data transmitted. In this way, the frame rate and bit rate of the image data received by the computer side also decrease, thereby reducing the temperature of the mobile phone.
[0156] When the temperature of the mobile phone decreases, the temperature control method of this application embodiment can also increase the frame rate of the image captured by the camera and the bit rate of the image transmitted by the mobile phone, thereby improving the image quality.
[0157] 6. Adjust back to temperature level 2.
[0158] When the second camera sharing service receives the callback information that the temperature level has fallen back to 2, the corresponding shell temperature drops to 41°C, indicating that the phone temperature is not too high. Therefore, the second camera sharing service can (1) increase the frame rate and / or (2) increase the bit rate.
[0159] 7. Lower temperature increases frame rate and bit rate.
[0160] (1) Increase frame rate.
[0161] If the second camera sharing service used a method to reduce the frame rate before increasing the frame rate, then the second camera sharing service can increase the frame rate.
[0162] In one possible implementation to improve the frame rate, the second camera sharing service can first increase the frame rate to 2 / 3 of the base frame rate, and if the temperature level continues to drop, the second camera sharing service can increase the frame rate back to the base frame rate.
[0163] For example, with a base frame rate of 30fps and a current frame rate of 15fps, if the temperature level decreases, for instance, from temperature level 3 to temperature level 2, the second camera sharing service can increase the frame rate from 15fps to approximately 20fps. If the temperature level continues to decrease, from temperature level 2 to temperature level 1, the second camera sharing service can increase the frame rate from 20fps to 30fps.
[0164] Another possible implementation to improve the frame rate is the second camera sharing service, which can boost the frame rate to the baseline frame rate in one go.
[0165] For example, with a base frame rate of 30fps and a current frame rate of 15fps, if the temperature level drops, for example from temperature level 3 to temperature level 2, the second camera sharing service can increase the frame rate from 15fps to 30fps.
[0166] In another possible implementation of frame rate enhancement, after the second camera sharing service increases the frame rate to 2 / 3 of the base frame rate, if the shell temperature does not rise within a second preset time period, the second camera sharing service can then increase the frame rate back to the base frame rate. The second preset time period can be customized by the second camera sharing service; for example, it can be 3 minutes. The first and second preset time periods can be the same or different. In this embodiment, the value of the second preset time period is not limited.
[0167] For example, with a base frame rate of 30fps, a current frame rate of 15fps, and a second preset time period of 3 minutes, if the temperature level decreases, for example from temperature level 3 to temperature level 2, the second camera sharing service can increase the frame rate from 15fps to approximately 20fps. If the casing temperature does not rise within 3 minutes, then after 3 minutes, the second camera sharing service can increase the frame rate from 20fps to 30fps.
[0168] (2) Increase the bit rate.
[0169] If the second camera sharing service used a method to reduce the bitrate before increasing the bitrate, then the second camera sharing service can increase the bitrate.
[0170] In one possible implementation to increase the bitrate, the second camera sharing service can first increase the bitrate to 2 / 3 of the base bitrate, and if the temperature level continues to rise, the second camera sharing service can increase the bitrate to the base bitrate.
[0171] For example, with a base bitrate of 5 Mbps and a current bitrate of 2.5 Mbps, if the temperature level decreases, for instance, from temperature level 3 to temperature level 2, the second camera sharing service can increase the bitrate from 2.5 Mbps to approximately 3.3 Mbps. If the temperature level continues to decrease, from temperature level 2 to temperature level 1, the second camera sharing service can increase the bitrate from 3.3 Mbps to 5 Mbps.
[0172] Another possible way to increase the bitrate is through a second camera sharing service, which can boost the bitrate to the baseline bitrate in one go.
[0173] For example, with a base bitrate of 5Mbps and a current bitrate of 2.5Mbps, if the temperature level drops, for example from temperature level 3 to temperature level 2, the second camera sharing service can increase the bitrate from 2.5Mbps to 5Mbps.
[0174] In another possible implementation of increasing the bitrate, after the second camera sharing service increases the bitrate to 2 / 3 of the base bitrate, if the shell temperature does not rise within a second preset time period, the second camera sharing service can increase the bitrate to the base bitrate.
[0175] For example, with a base bitrate of 5Mbps, a current bitrate of 2.5Mbps, and a second preset time period of 3 minutes, if the temperature level decreases, for example from temperature level 3 to temperature level 2, the second camera sharing service can increase the bitrate from 2.5Mbps to approximately 3.3Mbps. If the casing temperature does not rise within 3 minutes, then after 3 minutes, the second camera sharing service can increase the bitrate from 3.3Mbps to 5Mbps.
[0176] It is understood that the temperature control method in this application embodiment can increase the frame rate first, and then increase the bit rate. This is because when the frame rate increases, the bit rate also increases accordingly, so it is not necessary to increase the bit rate at the same time as increasing the frame rate. If both the frame rate and the bit rate are increased simultaneously, the phone temperature may rise more quickly. Of course, the temperature control method in this application embodiment can also increase the frame rate and bit rate simultaneously, or increase the bit rate first and then increase the frame rate; there is no limitation.
[0177] After the second camera sharing service increases the frame rate and / or bit rate, the second virtualization service can increase the encoder load and the amount of data transmitted. As a result, the frame rate and bit rate of the image data received by the computer side also increase, thereby improving the user experience.
[0178] It is understandable that when the second camera sharing service obtains a temperature level of 3 again, the above cooling strategy can be re-executed, which will not be elaborated further.
[0179] In summary, the embodiments of this application can adaptively adjust the frame rate of the camera capturing images and the bit rate of the electronic device transmitting images based on the baseline frame rate, baseline bit rate, temperature level, etc., without significantly affecting the user experience, thereby adjusting the temperature of the electronic device and reducing the probability of the electronic device overheating.
[0180] The methods of this application will be described in detail below through specific embodiments. The following embodiments can be combined with each other or implemented independently, and the same or similar concepts or processes may not be described again in some embodiments.
[0181] Figure 8 A temperature control method according to an embodiment of this application is illustrated. The method includes:
[0182] S801, The first electronic device calls the camera device of the second electronic device.
[0183] In this embodiment, the first electronic device and the second electronic device can be the same type of device or different types of devices. For example, the first electronic device may include the aforementioned... Figure 1 In the corresponding embodiment, the computer 100 and the second electronic device may include the aforementioned Figure 1 In the corresponding embodiment, the mobile phone 101 and the second electronic device may also include a tablet or other electronic devices. This application embodiment does not limit the first electronic device and the second electronic device.
[0184] S802, The second electronic device uses a camera device to capture images and transmits the images to the first electronic device.
[0185] In this embodiment of the application, the process of the second electronic device transmitting an image to the first electronic device can be referred to the above. Figure 7 The relevant descriptions in the corresponding embodiments will not be repeated here.
[0186] S803. During the process of the second electronic device acquiring images using the camera device, when the temperature of the second electronic device rises to a first preset value, if the first frame rate of the image acquired by the camera device is greater than the target frame rate, the second electronic device reduces the frame rate of the image acquired by the camera device; otherwise, if the first frame rate is less than or equal to the target frame rate, the second electronic device reduces the bit rate of the transmitted image.
[0187] In this embodiment, the first preset value can be understood as a value indicating a relatively high temperature of the second electronic device. For example, the first preset value can be understood as the aforementioned... Figure 7 In the corresponding embodiment, the temperature range value corresponding to temperature level 3 can also be understood as the temperature range value corresponding to level 4, without limitation.
[0188] The first frame rate can be understood as the initial frame rate at which the camera device captures images. For example, the first frame rate can be understood as the above... Figure 7 The baseline frame rate in the corresponding embodiment.
[0189] The target frame rate can be understood as the frame rate that can basically maintain the smoothness of the picture. For example, the target frame rate can be understood as the above. Figure 7 The preset minimum frame rate in the corresponding embodiment, for example, the target frame rate can be 15fps. The specific value of the target frame rate is not limited in the embodiments of this application.
[0190] The methods used by the second electronic device to reduce the frame rate of the images captured by the camera device, and to reduce the bit rate of the transmitted images, can both refer to the above. Figure 7 The relevant descriptions in the corresponding embodiments will not be repeated here.
[0191] The embodiments of this application can adaptively adjust the frame rate of the camera capturing images and the bit rate of the electronic device transmitting images based on the baseline frame rate, baseline bit rate, temperature level, etc., without significantly affecting the user experience, thereby adjusting the temperature of the electronic device and reducing the probability of the electronic device overheating.
[0192] Optional, in Figure 8 Based on the corresponding embodiment, during the process of the second electronic device acquiring images using the camera device: at a first moment, the temperature of the second electronic device is a first temperature, and the frame rate of the image acquired by the camera device is a first frame rate, which is greater than the target frame rate; at a second moment, the temperature of the second electronic device is a second temperature, and the frame rate of the image acquired by the camera device is a second frame rate, wherein the second moment is later than the first moment, the second temperature is greater than the first temperature, the second frame rate is less than the first frame rate, and the second frame rate is greater than the target frame rate; at a third moment, the temperature of the second electronic device is a third temperature, and the frame rate of the image acquired by the camera device is a third frame rate, wherein the third moment is later than the second moment, the third temperature is greater than the second temperature, the third frame rate is less than the second frame rate, and the third frame rate is greater than or equal to the target frame rate.
[0193] In this embodiment, the first moment can be understood as the moment when the temperature of the second electronic device is not too high and the second electronic device has not reduced its frame rate. The second moment can be understood as the moment when the temperature of the second electronic device rises and the second electronic device reduces its frame rate. The third moment can be understood as the moment when the temperature of the second electronic device continues to rise and the second electronic device reduces its frame rate again.
[0194] The first temperature can be understood as a temperature value that is not too high for the second electronic device. When the temperature of the second electronic device is the first temperature, the second electronic device does not need to reduce the frame rate. For example, the first temperature can be a temperature value lower than a first preset value.
[0195] The second temperature can be understood as the temperature value of the second electronic device after its temperature has increased. When the temperature of the second electronic device reaches the second temperature, the second electronic device can reduce the frame rate. For example, the second temperature can be understood as the above. Figure 7 The corresponding temperature range value for temperature level 3 in the example.
[0196] The third temperature can be understood as the temperature value after the temperature of the second electronic device continues to rise. When the temperature of the second electronic device reaches the third temperature, the second electronic device can reduce the frame rate again. For example, the third temperature can be understood as the above. Figure 7The corresponding temperature range value for temperature level 4 in the example.
[0197] The second frame rate can be understood as the frame rate of the second electronic device after reducing the frame rate at the second temperature. For example, the second frame rate can be understood as the above. Figure 7 In the corresponding embodiment, 2 / 3 of the base frame rate can also be any other frame rate value smaller than the base frame rate, without limitation. The third frame rate can be understood as the frame rate after the second electronic device further reduces the frame rate at the third temperature. For example, the third frame rate can be understood as the aforementioned... Figure 7 In the corresponding embodiment, half of the base frame rate can also be any other frame rate value less than the second frame rate, and there is no limitation.
[0198] In this embodiment, the second electronic device first reduces the frame rate to the second frame rate, and then to the third frame rate, which can achieve the effect of gradually reducing the frame rate. In this way, the decrease in frame rate value will not be too large, and the display effect of the interface will not be too laggy, so as to minimize the impact on user experience.
[0199] Optional, in Figure 8 Based on the corresponding embodiment, between the second time and the third time, the temperature of the second electronic device is the fourth temperature, and the frame rate of the image captured by the camera device is the second frame rate. The fourth temperature is greater than the second temperature and less than the third temperature. Both the fourth temperature and the second temperature belong to the first preset temperature range.
[0200] In this embodiment of the application, the first preset temperature range can be understood as described above. Figure 7 In the corresponding embodiment, the temperature range value corresponding to temperature level 3 can also be the temperature range value corresponding to other temperature levels, without limitation.
[0201] Although the fourth temperature is higher than the second temperature, causing the temperature of the second electronic device to rise, the second electronic device does not need to reduce its frame rate because both the fourth and second temperatures fall within the same preset temperature range. This means the second electronic device does not need to frequently adjust its frame rate based on temperature changes, allowing it to transmit images to the first electronic device at a relatively stable frame rate.
[0202] Optional, in Figure 8 Based on the corresponding embodiments, the temperature level corresponding to the first temperature is the first level, the temperature level corresponding to the second temperature is the second level, the temperature level corresponding to the third temperature is the third level, and the temperature level corresponding to the fourth temperature is the second level.
[0203] In this embodiment of the application, the first level can be understood as described above. Figure 7 In the corresponding embodiments, temperature level 1 or temperature level 2, the second level can be understood as described above. Figure 7In the corresponding embodiment, temperature level 3, the third level can be understood as the above. Figure 7 The corresponding embodiment has a temperature level of 4.
[0204] The second electronic device can adjust the frame rate based on changes in temperature levels. This eliminates the need for frequent frame rate adjustments based on temperature changes, reducing the frame rate adjustment process and thus minimizing memory usage.
[0205] Optional, in Figure 8 Based on the corresponding embodiment, during the process of the second electronic device acquiring images using the camera device: at the fourth moment, the temperature of the second electronic device is the fifth temperature, the frame rate of the image acquired by the camera device is the first frame rate, the bit rate of the image transmitted by the second electronic device is the first bit rate, and the first frame rate is greater than the target frame rate; at the fifth moment, the temperature of the second electronic device is the sixth temperature, the frame rate of the image acquired by the camera device is the target frame rate, and the bit rate of the image transmitted by the second electronic device is the second bit rate, wherein the fifth moment is later than the fourth moment, the sixth temperature is greater than the fifth temperature, and the second bit rate is less than the first bit rate; at the sixth moment, the temperature of the second electronic device is the seventh temperature, the frame rate of the image acquired by the camera device is the target frame rate, and the bit rate of the image transmitted by the second electronic device is the third bit rate, wherein the sixth moment is later than the fifth moment, the seventh temperature is greater than the sixth temperature, and the third bit rate is less than the second bit rate.
[0206] In this embodiment, the fourth moment can be understood as the moment when the temperature of the second electronic device is not too high and the second electronic device does not reduce the frame rate or the bit rate. The fifth moment can be understood as the moment when the temperature of the second electronic device rises and the second electronic device reduces the frame rate. The sixth moment can be understood as the moment when the temperature of the second electronic device continues to rise and the second electronic device reduces the bit rate.
[0207] The fifth temperature can be understood as a temperature value that is not too high for the second electronic device. When the temperature of the second electronic device is the fifth temperature, the second electronic device does not need to reduce the frame rate or the bit rate. For example, the fifth temperature can be a temperature value lower than the first preset value. The fifth temperature and the first temperature can be the same or different, without limitation.
[0208] The sixth temperature can be understood as the temperature value of the second electronic device after its temperature has increased. When the temperature of the second electronic device reaches the sixth temperature, the second electronic device can reduce its frame rate. For example, the sixth temperature can be understood as the above... Figure 7 The corresponding temperature range value for temperature level 3 in the relevant embodiment. The sixth temperature and the second temperature may be the same or different, and are not limited thereto.
[0209] The seventh temperature can be understood as the temperature value after the temperature of the second electronic device continues to rise. When the temperature of the second electronic device reaches the seventh temperature, the second electronic device can reduce the bit rate. For example, the seventh temperature can be understood as the above... Figure 7 The corresponding temperature range value for temperature level 4 in the relevant embodiment. The seventh temperature and the third temperature may be the same or different; there is no limitation.
[0210] The first bitrate can be understood as the initial bitrate for transmitting the image. For example, the first bitrate can be understood as the above. Figure 7 The baseline bit rate in the corresponding embodiment.
[0211] The second bitrate can be understood as the bitrate after the second electronic device reduces the frame rate at the sixth temperature, and the bitrate is reduced accordingly.
[0212] The third bitrate can be understood as the bitrate of the second electronic device after reducing the bitrate at the seventh temperature. For example, the third bitrate can be understood as the above. Figure 7 In the corresponding embodiments, 2 / 3 or 1 / 2 of the base bitrate can be used, or other bitrate values smaller than the base bitrate, without limitation.
[0213] In this embodiment of the application, the second electronic device first reduces the frame rate and then reduces the bit rate. Since the bit rate also decreases when the frame rate decreases, the probability of the interface stuttering and / or blurring can be reduced.
[0214] Optional, in Figure 8 Based on the corresponding embodiment, between the fifth and sixth moments, the temperature of the second electronic device is the eighth temperature, the frame rate of the image captured by the camera device is the target frame rate, and the bit rate of the image transmitted by the second electronic device is the second bit rate. The eighth temperature is greater than the sixth temperature and less than the seventh temperature. Both the eighth temperature and the sixth temperature belong to the second preset temperature range.
[0215] In this embodiment of the application, the second preset temperature range can be understood as described above. Figure 7 In the corresponding embodiment, the temperature range value corresponding to temperature level 3 can also be the temperature range value corresponding to other temperature levels. The second preset temperature range and the first preset temperature range can be the same or different, and there is no limitation.
[0216] Although the eighth temperature is higher than the sixth temperature, causing the temperature of the second electronic device to rise, the second electronic device does not need to reduce its bit rate because both temperatures fall within the same preset temperature range. This allows the second electronic device to transmit images to the first electronic device at a relatively stable bit rate without frequently adjusting its bit rate based on temperature changes.
[0217] Optional, in Figure 8Based on the corresponding embodiment, during the process of the second electronic device acquiring images using the camera device: at the seventh moment, the temperature of the second electronic device is the ninth temperature, the frame rate of the image acquired by the camera device is the first frame rate, the bit rate of the image transmitted by the second electronic device is the first bit rate, and the first frame rate is less than or equal to the target frame rate; at the eighth moment, the temperature of the second electronic device is the tenth temperature, the frame rate of the image acquired by the camera device is the target frame rate, and the bit rate of the image transmitted by the second electronic device is the fourth bit rate, wherein the eighth moment is later than the seventh moment, the tenth temperature is greater than the ninth temperature, and the fourth bit rate is less than the first bit rate; at the ninth moment, the temperature of the second electronic device is the eleventh temperature, the frame rate of the image acquired by the camera device is the target frame rate, and the bit rate of the image transmitted by the second electronic device is the fifth bit rate, wherein the ninth moment is later than the eighth moment, the eleventh temperature is greater than the tenth temperature, and the fifth bit rate is less than the fourth bit rate.
[0218] In this embodiment, the seventh moment can be understood as the moment when the temperature of the second electronic device is not too high and the second electronic device has not reduced the bit rate. The eighth moment can be understood as the moment when the temperature of the second electronic device rises and the second electronic device reduces the bit rate. The ninth moment can be understood as the moment when the temperature of the second electronic device continues to rise and the second electronic device reduces the bit rate again.
[0219] The ninth temperature can be understood as a temperature value that is not too high for the second electronic device. When the temperature of the second electronic device is the ninth temperature, the second electronic device does not need to reduce the bit rate. For example, the ninth temperature can be a temperature value lower than the first preset value. The ninth temperature and the fifth temperature can be the same or different, without limitation.
[0220] The tenth temperature can be understood as the temperature value of the second electronic device after its temperature has increased. When the temperature of the second electronic device reaches the tenth temperature, the second electronic device can reduce its bit rate. For example, the tenth temperature can be understood as the above... Figure 7 The corresponding temperature range value for temperature level 3 in the embodiment. The tenth temperature and the sixth temperature may be the same or different, and are not limited thereto.
[0221] The eleventh temperature can be understood as the temperature value after the temperature of the second electronic device continues to rise. When the temperature of the second electronic device reaches the eleventh temperature, the second electronic device can reduce the bit rate again. For example, the eleventh temperature can be understood as the above... Figure 7 The corresponding temperature range value for temperature level 4 in the relevant embodiment. The eleventh temperature and the seventh temperature may be the same or different; there is no limitation.
[0222] The fourth bitrate can be understood as the bitrate of the second electronic device after reducing the bitrate at the tenth temperature. For example, the fourth bitrate can be understood as the above. Figure 7In the corresponding embodiment, 2 / 3 of the base bitrate can also be any other bitrate value smaller than the base bitrate, and there is no limitation.
[0223] The fifth bitrate can be understood as the bitrate after the second electronic device reduces the bitrate at the eleventh temperature. For example, the fifth bitrate can be understood as the above. Figure 7 In the corresponding embodiment, half of the base code rate can also be any other code rate value less than the fourth code rate, without limitation.
[0224] In this embodiment, the second electronic device first reduces the bit rate to the fourth bit rate, and then to the fifth bit rate, which can achieve the effect of gradually reducing the bit rate. In this way, the decrease in bit rate value will not be too large, and the display effect of the interface will not be too blurry, so as to minimize the impact on the user experience.
[0225] Optional, in Figure 8 Based on the corresponding embodiment, during the process of the second electronic device acquiring images using the camera device, when the temperature of the second electronic device drops to a second preset value, if the frame rate of the image acquired by the camera device is less than the first frame rate, the second electronic device increases the frame rate.
[0226] In this embodiment, the second preset value can be understood as a value indicating a relatively low temperature of the second electronic device. For example, the second preset value can be understood as the aforementioned... Figure 7 In the corresponding embodiment, the temperature range value corresponding to temperature level 2 can also be understood as the temperature range value corresponding to level 1, without limitation.
[0227] When the temperature of the second electronic device decreases, the embodiments of this application can increase the frame rate of the images captured by the camera, thereby improving the image quality.
[0228] Optional, in Figure 8 Based on the corresponding embodiments, increasing the frame rate of the second electronic device may include: the second electronic device increasing the frame rate to a first frame rate; or, the second electronic device increasing the frame rate to a fourth frame rate, where the fourth frame rate is lower than the first frame rate, and when the temperature of the second electronic device drops to a third preset value, the second electronic device increasing the fourth frame rate back to the first frame rate, where the third preset value and the second preset value belong to different temperature ranges; or, the second electronic device increasing the frame rate to a fourth frame rate; and when the temperature of the second electronic device is less than or equal to the second preset value within a first preset time period, the second electronic device increasing the fourth frame rate back to the first frame rate.
[0229] In this embodiment, the fourth frame rate can be understood as the frame rate of the second electronic device after the temperature of the second electronic device drops to the second preset value, and the frame rate of the second electronic device is increased. For example, the fourth frame rate can be understood as the above. Figure 7 In the corresponding embodiment, 2 / 3 of the base frame rate can also be any other frame rate value less than the first frame rate, without limitation.
[0230] The third preset value can be understood as a value where the temperature of the second electronic device is relatively low. The third preset value can be lower than the second preset value. For example, the third preset value can be understood as the above. Figure 7 In the corresponding embodiment, the temperature range value corresponding to temperature level 1 is not limited.
[0231] The first preset time period can be understood as the preset time period of the second electronic device. For example, the first preset time period can be understood as the above. Figure 7 In the corresponding embodiment, the second preset time period, for example, the first preset time period can be 3 minutes, or other time periods, without limitation.
[0232] The method for increasing the frame rate of the second electronic device can be referred to the above. Figure 7 The relevant description of improving the frame rate in (1) of the corresponding embodiment will not be repeated here.
[0233] After the second electronic device increases its frame rate, the frame rate of the image data received by the first electronic device also increases, thereby improving the user experience.
[0234] Optional, in Figure 8 Based on the corresponding embodiment, during the process of the second electronic device acquiring images using the camera device, when the temperature of the second electronic device drops to a fourth preset value, if the bit rate of the image transmitted by the second electronic device is less than the first bit rate, the second electronic device increases the bit rate.
[0235] In this embodiment, the fourth preset value can be understood as a value where the temperature of the second electronic device is relatively low. For example, the fourth preset value can be understood as the above. Figure 7 In the corresponding embodiment, the temperature range value corresponding to temperature level 2 can also be understood as the temperature range value corresponding to level 1. The fourth preset value and the second preset value can be the same or different, and are not limited.
[0236] When the temperature of the second electronic device decreases, the embodiments of this application can increase the bit rate of the images captured by the camera, thereby improving the image quality.
[0237] Optional, in Figure 8 Based on the corresponding embodiments, increasing the bit rate of the second electronic device may include: the second electronic device increasing the bit rate to a first bit rate; or, the second electronic device increasing the bit rate to a sixth bit rate, where the sixth bit rate is lower than the first bit rate, and when the temperature of the second electronic device drops to a fifth preset value, the second electronic device increasing the sixth bit rate to the first bit rate, where the fifth preset value and the fourth preset value belong to different temperature ranges; or, the second electronic device increasing the bit rate to a sixth bit rate, and when the temperature of the second electronic device is less than or equal to the fourth preset value within a second preset time period, the second electronic device increasing the sixth bit rate to the first bit rate.
[0238] In this embodiment, the sixth bit rate can be understood as the bit rate of the second electronic device after its temperature drops to a second preset value, and the bit rate is increased. For example, the sixth bit rate can be understood as the aforementioned... Figure 7 In the corresponding embodiment, 2 / 3 of the base code rate can also be any other code rate value less than the first code rate, and there is no limitation.
[0239] The fifth preset value can be understood as a value where the temperature of the second electronic device is relatively low. The fifth preset value can be lower than the fourth preset value. For example, the fifth preset value can be understood as the above. Figure 7 In the corresponding embodiment, the temperature range value corresponding to temperature level 1, the fifth preset value and the third preset value can be the same or different, and are not limited.
[0240] The second preset time period can be understood as a preset time period of the second electronic device. For example, the second preset time period can be understood as the above. Figure 7 In the corresponding embodiment, the second preset time period can be, for example, 3 minutes or other time periods. The second preset time period and the first preset time period can be the same or different, without limitation.
[0241] The method for increasing the bit rate in the second electronic device can be referred to the above. Figure 7 The relevant description of increasing the bit rate in (2) of the corresponding embodiment will not be repeated here.
[0242] After the second electronic device increases the bit rate, the bit rate of the image data received by the first electronic device also increases, thereby improving the user experience.
[0243] Optional, in Figure 8 Based on the corresponding embodiments, before the first electronic device invokes the camera device of the second electronic device, it may further include: the first electronic device displaying an interface of the target application, the interface including the identifiers of one or more cameras; the identifiers of the one or more cameras including the identifier of the camera device of the second electronic device; the first electronic device invoking the camera device of the second electronic device includes: the first electronic device invoking the camera device of the second electronic device in response to a selection operation on the identifier of the camera device of the second electronic device.
[0244] In this embodiment, the target application can be understood as an application capable of accessing the camera device function of a second electronic device. For example, the target application may include an application capable of conducting video conferencing. The target application can be understood as described above. Figure 1 The application displayed on computer 100 in the corresponding embodiment.
[0245] The identifier for one or more cameras can be understood as referring to different types of cameras provided by the target application interface. For example, the identifier for one or more cameras can be understood as described above. Figure 1 The corresponding embodiments, such as the local camera, the front camera 204, and the rear camera 205, will not be described in detail again.
[0246] The target application's interface includes identifiers for one or more cameras, providing users with camera-sharing functionality. This allows users to use the camera device of a second electronic device on a first electronic device for video conferencing or video lectures, thus enhancing the user experience.
[0247] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and corresponding operation portals are provided for users to choose to authorize or refuse.
[0248] The foregoing primarily describes the solutions provided by the embodiments of this application from a methodological perspective. To achieve the aforementioned functions, it includes corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, based on the method steps of the examples described in conjunction with the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0249] This application embodiment can divide the apparatus for implementing the method into functional modules based on the above method examples. For example, each function can be divided into its own functional modules, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or as a software functional module. It should be noted that the module division in this application embodiment is illustrative and only represents one logical functional division; other division methods may be used in actual implementation.
[0250] like Figure 9 The diagram shows a chip structure according to an embodiment of this application. The chip 900 includes one or more processors 901, communication lines 902, communication interfaces 903, and memory 904.
[0251] In some implementations, memory 904 stores elements such as executable modules or data structures, or subsets thereof, or extended sets thereof.
[0252] The methods described in the embodiments of this application can be applied to, or implemented by, processor 901. Processor 901 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above methods can be completed by integrated logic circuits in the hardware of processor 901 or by instructions in software form. Processor 901 may be a general-purpose processor (e.g., a microprocessor or conventional processor), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gates, transistor logic devices, or discrete hardware components. Processor 901 can implement or execute the various processing-related methods, steps, and logic block diagrams disclosed in the embodiments of this application.
[0253] The steps of the method disclosed in the embodiments of this application can be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules can be located in mature storage media in the art, such as random access memory, read-only memory, programmable read-only memory, or electrically erasable programmable read-only memory (EEPROM). This storage medium is located in memory 904, and processor 901 reads the information in memory 904 and, in conjunction with its hardware, completes the steps of the above method.
[0254] The processor 901, memory 904 and communication interface 903 can communicate with each other via communication line 902.
[0255] In the above embodiments, the instructions stored in the memory for execution by the processor can be implemented in the form of a computer program product. This computer program product can be pre-written into the memory, or it can be downloaded and installed into the memory as software.
[0256] This application also provides a computer program product including one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the flow or function according to the embodiments of this application is generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or data center that integrates one or more available media. For example, available media may include magnetic media (e.g., floppy disk, hard disk, or magnetic tape), optical media (e.g., digital versatile disc (DVD)), or semiconductor media (e.g., solid-state disk (SSD)).
[0257] This application also provides a computer-readable storage medium. The methods described in the above embodiments can be implemented, in whole or in part, by software, hardware, firmware, or any combination thereof. The computer-readable medium may include computer storage media and communication media, and may also include any medium capable of transferring a computer program from one place to another. The storage medium can be any target medium accessible by a computer.
[0258] As one possible design, computer-readable media may include compact disc read-only memory (CD-ROM), RAM, ROM, EEPROM, or other optical disc storage; computer-readable media may also include disk storage or other disk storage devices. Furthermore, any connecting cable may also be appropriately referred to as computer-readable media. For example, if software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave, then coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of media. As used herein, disks and optical discs include optical discs (CD), laser discs, optical discs, digital versatile discs (DVD), floppy disks, and Blu-ray discs, where disks typically reproduce data magnetically, while optical discs optically reproduce data using lasers.
[0259] This application describes embodiments with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of 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 processing unit 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 processing unit of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
Claims
1. A temperature control method, characterized in that, The method is used in a communication system, the system including a first electronic device and a second electronic device, the second electronic device including a camera device, the method comprising: The first electronic device displays an interface of a target application, the interface including the identifiers of one or more cameras; the identifiers of the one or more cameras include the identifier of the camera device of the second electronic device; In response to a selection operation on the identifier of the camera device of the second electronic device, the first electronic device invokes the camera device of the second electronic device based on the first shared camera service, the first virtualization service, and the first communication service in the first electronic device, and the second shared camera service, the second virtualization service, and the second communication service in the second electronic device; wherein, the second virtualization service is used to transmit the camera initialization frame rate and camera initialization resolution corresponding to the target application to the second shared camera service, and the camera initialization frame rate and camera initialization resolution are transmitted by the first shared camera service through the first virtualization service, the first communication service, and the second communication service; the second shared camera service is used to convert the camera initialization resolution into a camera initialization bitrate; The second electronic device acquires images using the camera device based on a first frame rate, a first bit rate, the second shared camera service, and a temperature control service, and transmits the images to the first electronic device; wherein, the second shared camera service is further used to adjust the frame rate and / or bit rate of the second electronic device according to the temperature level fed back by the temperature control service; the first frame rate is the camera's initial frame rate, and the first bit rate is the camera's initial bit rate; During the process of the second electronic device acquiring images using the camera device based on the first frame rate, the first bit rate, the second shared camera service, and the temperature control service, when the temperature of the second electronic device rises to a first preset value, if the first frame rate of the image acquired by the camera device is greater than the target frame rate, the second electronic device reduces the frame rate of the image acquired by the camera device; if the first frame rate is less than or equal to the target frame rate, the second electronic device reduces the bit rate of the transmitted image; when the temperature of the second electronic device drops to a fourth preset value, if the bit rate of the transmitted image by the second electronic device is less than the first bit rate, the second electronic device increases the bit rate to a sixth bit rate, the sixth bit rate being less than the first bit rate; when the temperature of the second electronic device drops to a fifth preset value, the second electronic device increases the sixth bit rate to the first bit rate, the fifth preset value and the fourth preset value belonging to different temperature ranges; Wherein, when the temperature of the second electronic device rises to a first preset value, if the first frame rate of the image captured by the camera device is greater than the target frame rate, the second electronic device reduces the frame rate of the image captured by the camera device; if the first frame rate is less than or equal to the target frame rate, the second electronic device reduces the bit rate of the transmitted image, including: when the temperature of the second electronic device rises from a first temperature to a second temperature, if the first frame rate is greater than the target frame rate, then the first frame rate is reduced to the second frame rate; When the temperature of the second electronic device continues to rise, if the temperature level corresponding to the temperature rise remains unchanged, the second frame rate remains unchanged; if the temperature level corresponding to the temperature rise changes, the second frame rate is reduced when the second frame rate is greater than the target frame rate; when the frame rate of the image captured by the camera device is less than or equal to the target frame rate, the second electronic device reduces the bit rate of the transmitted image. When the temperature of the second electronic device continues to rise, if the temperature level corresponding to the increased temperature remains unchanged, the bit rate of the transmitted image remains unchanged; if the temperature level corresponding to the increased temperature changes and the bit rate of the transmitted image is greater than the minimum bit rate, the bit rate of the transmitted image continues to decrease until the bit rate is reduced to the minimum bit rate.
2. The method according to claim 1, characterized in that, During the process of the second electronic device acquiring images using the camera device based on the first frame rate, the first bit rate, the second shared camera service, and the temperature control service: At the first moment, the temperature of the second electronic device is a first temperature, and the frame rate of the image captured by the camera device is the first frame rate, which is greater than the target frame rate; At a second moment, the temperature of the second electronic device is a second temperature, and the frame rate of the image captured by the camera device is a second frame rate. The second moment is later than the first moment, the second temperature is greater than the first temperature, the second frame rate is less than the first frame rate, and the second frame rate is greater than the target frame rate. At the third moment, the temperature of the second electronic device is the third temperature, and the frame rate of the image captured by the camera device is the third frame rate. The third moment is later than the second moment, the third temperature is greater than the second temperature, the third frame rate is less than the second frame rate, and the third frame rate is greater than or equal to the target frame rate. The first temperature, the second temperature, and the third temperature correspond to different temperature levels.
3. The method according to claim 2, characterized in that, Between the second time point and the third time point The temperature of the second electronic device is a fourth temperature, the frame rate of the image captured by the camera device is the second frame rate, wherein the fourth temperature is greater than the second temperature, the fourth temperature is less than the third temperature, and the fourth temperature corresponds to the same temperature level as the second temperature.
4. The method according to claim 1, characterized in that, During the process of the second electronic device acquiring images using the camera device based on the first frame rate, the first bit rate, the second shared camera service, and the temperature control service: At the fourth moment, the temperature of the second electronic device is the fifth temperature, the frame rate of the image captured by the camera device is the first frame rate, the bit rate of the image transmitted by the second electronic device is the first bit rate, and the first frame rate is greater than the target frame rate; At the fifth moment, the temperature of the second electronic device is the sixth temperature, the frame rate of the image captured by the camera device is the target frame rate, and the bit rate of the image transmitted by the second electronic device is the second bit rate. The fifth moment is later than the fourth moment, the sixth temperature is greater than the fifth temperature, and the second bit rate is less than the first bit rate. At the sixth moment, the temperature of the second electronic device is the seventh temperature, the frame rate of the image captured by the camera device is the target frame rate, and the bit rate of the image transmitted by the second electronic device is the third bit rate. The sixth moment is later than the fifth moment, the seventh temperature is greater than the sixth temperature, and the third bit rate is less than the second bit rate. The fifth temperature, the sixth temperature, and the seventh temperature correspond to different temperature levels.
5. The method according to claim 4, characterized in that, Between the fifth time point and the sixth time point, The temperature of the second electronic device is the eighth temperature, the frame rate of the image captured by the camera device is the target frame rate, the bit rate of the image transmitted by the second electronic device is the second bit rate, wherein the eighth temperature is greater than the sixth temperature, the eighth temperature is less than the seventh temperature, and the eighth temperature corresponds to the same temperature level as the sixth temperature.
6. The method according to claim 1, characterized in that, During the process of the second electronic device acquiring images using the camera device based on the first frame rate, the first bit rate, the second shared camera service, and the temperature control service: At the seventh moment, the temperature of the second electronic device is the ninth temperature, the frame rate of the image captured by the camera device is the first frame rate, the bit rate of the image transmitted by the second electronic device is the first bit rate, and the first frame rate is less than or equal to the target frame rate. At the eighth moment, the temperature of the second electronic device is the tenth temperature, the frame rate of the image captured by the camera device is the target frame rate, and the bit rate of the image transmitted by the second electronic device is the fourth bit rate. The eighth moment is later than the seventh moment, the tenth temperature is greater than the ninth temperature, and the fourth bit rate is less than the first bit rate. At the ninth moment, the temperature of the second electronic device is the eleventh temperature, the frame rate of the image captured by the camera device is the target frame rate, and the bit rate of the image transmitted by the second electronic device is the fifth bit rate. The ninth moment is later than the eighth moment, the eleventh temperature is greater than the tenth temperature, and the fifth bit rate is less than the fourth bit rate. The ninth temperature, the tenth temperature, and the eleventh temperature correspond to different temperature levels.
7. The method according to any one of claims 1-6, characterized in that, During the process of the second electronic device acquiring images using the camera device based on the first frame rate, the first bit rate, the second shared camera service, and the temperature control service, when the temperature of the second electronic device drops to a second preset value, if the frame rate of the images acquired by the camera device is less than the first frame rate, the second electronic device increases the frame rate.
8. The method according to claim 7, characterized in that, The second electronic device increases the frame rate by: The second electronic device increases the frame rate to the first frame rate; Alternatively, the second electronic device increases the frame rate to a fourth frame rate, which is lower than the first frame rate. When the temperature of the second electronic device drops to a third preset value, the second electronic device increases the fourth frame rate to the first frame rate. The third preset value and the second preset value belong to different temperature levels. Alternatively, the second electronic device increases the frame rate to the fourth frame rate; when the temperature of the second electronic device is less than or equal to the second preset value within the first preset time period, the second electronic device increases the fourth frame rate to the first frame rate.
9. An electronic device, characterized in that, include: A memory and a processor, the memory for storing a computer program and the processor for executing the computer program to perform the method as described in any one of claims 1-8.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed, cause a computer to perform the method as described in any one of claims 1-8.
11. A computer program product, characterized in that, Includes a computer program that, when run, causes an electronic device to perform the method as described in any one of claims 1-8.
12. A communication system, characterized in that, include: A first electronic device and a second electronic device, wherein the first electronic device is configured to perform the method as described in any one of claims 1-8.