Method for adjusting interface balance and electronic device
Patent Information
- Application Number
- CN202111165894.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-30
- Publication Date
- 2026-08-21
- Estimated Expiration
- 2041-09-30
AI Technical Summary
[0005]本申请实施例提供调节界面平衡的方法及电子设备,用于解决现有技术中,为电子设备降温时,可能导致电子设备的界面出现卡顿,甚至掉线的问题
[0028]需要说明的是,上述第二方面至第六方面中任一设计所带来的技术效果可以参见第一方面中对应设计所带来的技术效果,此处不再赘述。
Smart Images

Figure CN115915308B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of terminal technology, and in particular to methods and electronic devices for adjusting interface balance. Background Technology
[0002] With the development of mobile communication technology, data services on electronic devices are now mainly carried on fourth-generation (4G) networks or fifth-generation (5G) networks.
[0003] In particular, the power consumption of electronic devices for data services is higher under 5G networks than under 4G networks. For example, the power consumption generated when users play games or watch videos on electronic devices under 5G networks is usually higher, making the devices more prone to overheating. When the temperature of electronic devices rises to a preset threshold under 5G networks, the current cooling methods adopted by various manufacturers are mainly to trigger the electronic devices to fall back from 5G networks to 4G networks. If the overheating problem of electronic devices still cannot be resolved, then smoothness parameters, such as resolution, system-on-chip (SoC) frequency, frame rate, or screen brightness, may be reduced.
[0004] However, given that 4G network latency is higher than 5G network latency, current technologies that fall back from 5G to 4G can cause electronic devices to experience lag or even disconnection. Summary of the Invention
[0005] This application provides a method and electronic device for adjusting interface balance, which solves the problem in the prior art that when cooling down an electronic device, the interface of the electronic device may lag or even disconnect.
[0006] To achieve the above objectives, this application adopts the following technical solution:
[0007] In a first aspect, this application provides a method for adjusting interface balance, applied to an electronic device with a display screen. The method includes: in response to a user's operation to initiate a first data service, the electronic device detects the current network. If the current network is a first network, the electronic device acquires a first service latency for running the first data service under the first network and continuously monitors a first temperature of the electronic device. When the first temperature is greater than a first preset temperature, the electronic device triggers a switch from the first network to a second network and acquires a second service latency for running the first data service under the second network. The network performance of the first network is higher than that of the second network. The electronic device determines a network switching strategy based on the first service latency and the second service latency.
[0008] Based on the above technical solution, when an electronic device experiences heat generation while running a first data service on a first network, the device can determine a network switching strategy based on the latency of running the first data service on both the first and second networks. Compared to the existing technology that first downgrades the first network to the second network and then considers reducing smoothness parameters, the interface balancing method provided in this application can determine whether to switch to a lower-performance network based on the latency of running the first data service on both the first and second networks. This effectively avoids the increased network latency caused by downgrading the first network to the second network when the latency of the first network is lower than that of the second network, thus preventing the electronic device's interface from lagging or even disconnecting.
[0009] In conjunction with the first aspect mentioned above, one possible implementation includes a network switching strategy that prioritizes network connectivity. The method further includes: the electronic device triggers a switch from a second network to a first network based on the network priority mechanism, and adjusts smoothness parameters. Based on this design, when the network switching strategy is a network priority mechanism, the electronic device triggers a switch back to the first network with lower latency, thereby preventing lag or disconnections on the electronic device's interface. Simultaneously, the electronic device addresses overheating by adjusting smoothness parameters, preventing continuous temperature increases.
[0010] In conjunction with the first aspect mentioned above, in one possible implementation, the electronic device triggers a switch from the second network to the first network based on a network priority mechanism and adjusts the smoothness parameters. This includes: if the latency of the first service is at a first-level latency and the latency of the second service is at a second-level or third-level latency, the electronic device triggers a switch from the second network to the first network based on the network priority mechanism and adjusts the smoothness parameters. Alternatively, if the latency of the first service is at a second-level latency and the latency of the second service is at a third-level latency, the electronic device triggers a switch from the second network to the first network based on the network priority mechanism and adjusts the smoothness parameters.
[0011] In conjunction with the first aspect mentioned above, in one possible implementation, the electronic device has preset latency levels including a first-level latency, a second-level latency, or a third-level latency. The maximum latency value of the first-level latency is less than the minimum latency value of the second-level latency, and the maximum latency value of the second-level latency is less than the minimum latency value of the third-level latency. Based on this design, different latency intervals are defined according to the magnitude of the latency, including first-level latency, second-level latency, or third-level latency, thereby enabling the determination of network handover strategies based on the latency level to which the first and second service latency belong.
[0012] In conjunction with the first aspect above, in one possible implementation, the electronic device triggers a switch from the second network to the first network according to a network priority mechanism and adjusts the smoothness parameters, including: if the latency of the first service is lower than the latency of the second service, and the difference between the latency of the second service and the latency of the first service is greater than or equal to a first threshold, the electronic device triggers a switch from the second network to the first network according to the network priority mechanism and adjusts the smoothness parameters.
[0013] Based on this design, the purpose of setting the first threshold is to ensure that the electronic device executes the network priority mechanism only when the latency of the first service is lower than that of the second service, and the two latencies fall within different latency ranges corresponding to different user experiences. Conversely, even if the latency of the first service is lower than that of the second service, but the two latencies fall within the same latency range corresponding to the same user experience, the electronic device does not need to execute the network priority mechanism, nor does it need to perform subsequent network switching from the second network to the first network, thus avoiding frequent network switching without affecting the user experience.
[0014] In conjunction with the first aspect described above, in one possible implementation, the method further includes: after the electronic device switches from the second network to the first network based on a network priority mechanism, the electronic device continuously monitors its second temperature. When the second temperature exceeds a second preset temperature, the electronic device adjusts its smoothness parameters. Based on this design, when the electronic device returns to the first network to run the first data service, if the temperature still rises and exceeds the second preset temperature, the electronic device addresses the overheating issue by adjusting its smoothness parameters, preventing the electronic device from continuously overheating.
[0015] In conjunction with the first aspect described above, in one possible implementation, the method further includes: after the electronic device triggers a switch from the second network to the first network based on a network priority mechanism, the electronic device continuously monitors its second temperature. When the second temperature is greater than a second preset temperature but less than a third preset temperature, the electronic device adjusts its smoothness parameters. Alternatively, when the second temperature is greater than or equal to the third preset temperature, the electronic device triggers a switch from the first network to the second network; or, the electronic device triggers a switch from the first network to the second network and adjusts its smoothness parameters. Based on this design, when the electronic device returns to the first network to run the first data service, if the temperature still rises and is higher than or equal to the third preset temperature after multiple adjustments to the smoothness parameters, the electronic device triggers a switch from the first network to the second network to effectively cool down the electronic device.
[0016] In conjunction with the first aspect mentioned above, one possible implementation includes a network switching strategy that prioritizes fluency. The method further includes: the electronic device running the first data service on the second network according to the fluency-priority mechanism. Based on this design, after the electronic device determines the network switching strategy as fluency-priority, it remains on the second network with lower latency, thereby preventing lag or disconnections on the electronic device's interface.
[0017] In conjunction with the first aspect above, in one possible implementation, if the second service latency belongs to the first level of latency, and the first service latency belongs to the second or third level of latency, the electronic device operates the first data service under the second network according to the fluency priority mechanism; or, if the second service latency belongs to the second level of latency and the first service latency belongs to the third level of latency, the electronic device operates the first data service under the second network according to the fluency priority mechanism.
[0018] In conjunction with the first aspect above, in one possible implementation, the electronic device operates the first data service under the second network according to the fluency priority mechanism, including: if the latency of the first service is higher than the latency of the second service, and the difference between the latency of the first service and the latency of the second service is greater than or equal to a first threshold, the electronic device operates the first data service under the second network according to the fluency priority mechanism.
[0019] In conjunction with the first aspect described above, in one possible implementation, the method further includes: when the electronic device is running a first data service on a second network according to a fluency priority mechanism, the electronic device continuously monitors a third temperature. When the third temperature exceeds a fourth preset temperature, the electronic device adjusts its fluency parameters. Based on this design, after the network switching strategy determined by the electronic device is a fluency priority mechanism, the electronic device remains on the second network with lower latency to run the first data service. If the temperature still rises and exceeds the fourth preset temperature, the electronic device effectively cools down by adjusting its fluency parameters.
[0020] In conjunction with the first aspect mentioned above, one possible implementation involves adjusting the fluency parameter by reducing its value.
[0021] In conjunction with the first aspect above, in one possible implementation, the smoothness parameter includes at least one of the frame rate corresponding to the interface of the first data service, the video resolution corresponding to the interface of the first data service, or the frequency of the processor of the electronic device.
[0022] In conjunction with the first aspect mentioned above, one possible implementation involves a network switching strategy that includes either a network priority mechanism or a fluency priority mechanism. The method further includes displaying a pop-up window on the electronic device to remind the user to select either the network priority mechanism or the fluency priority mechanism. Based on this design, human-computer interaction can be increased, thereby improving the user experience.
[0023] In a second aspect, embodiments of this application provide an electronic device, including: a processor, a memory, and a display screen. The memory and the display screen are coupled to the processor. The memory is used to store computer program code, which includes computer instructions. When the processor reads the computer instructions from the memory, the electronic device executes the method described in the first aspect and any of the designs therein.
[0024] Thirdly, embodiments of this application provide an electronic device that has the function of implementing the method described in the first aspect and any of the designs described above. This function can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-described function.
[0025] 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 methods described in the first aspect and any of the designs herein.
[0026] Fifthly, a chip system is provided, comprising a processor and a memory, wherein computer program code is stored in the memory; when the computer program code is executed by the processor, it implements the method as described in any possible implementation of the first aspect. The chip system may be composed of chips or may include chips and other discrete devices.
[0027] In a sixth aspect, embodiments of this application provide a computer program product comprising: a computer program or instructions that, when executed on a computer, cause the computer to perform the method described in the first aspect and any of the designs herein.
[0028] It should be noted that the technical effects of any of the designs in the second to sixth aspects mentioned above can be found in the technical effects of the corresponding designs in the first aspect, and will not be repeated here. Attached Figure Description
[0029] Figure 1 A schematic diagram of the structure of an electronic device provided in this application embodiment. Figure 1 ;
[0030] Figure 2 A schematic diagram of the structure of an electronic device provided in this application embodiment. Figure 2 ;
[0031] Figure 3 A flowchart of a method for adjusting interface balance provided in this application embodiment Figure 1 ;
[0032] Figure 4A This application provides an illustration of an application scenario for a method for adjusting interface balance. Figure 1 ;
[0033] Figure 4B This application provides an illustration of an application scenario for a method for adjusting interface balance. Figure 2 ;
[0034] Figure 5A This application provides an illustration of an application scenario for a method for adjusting interface balance. Figure 3 ;
[0035] Figure 5B A schematic diagram of an application scenario for a method for adjusting interface balance provided in this application embodiment is shown in Figure 4.
[0036] Figure 6A This application scenario diagram five illustrates a method for adjusting interface balance provided in this embodiment of the application.
[0037] Figure 6B A schematic diagram of an application scenario for a method for adjusting interface balance provided in this application embodiment is shown in Figure 6.
[0038] Figure 6C Schematic diagram seven illustrating an application scenario of a method for adjusting interface balance provided in this application embodiment;
[0039] Figure 7A A flowchart of a method for adjusting interface balance provided in this application embodiment Figure 2 ;
[0040] Figure 7B A flowchart of a method for adjusting interface balance provided in this application embodiment Figure 3 ;
[0041] Figure 8A Eighth illustration of an application scenario for a method for adjusting interface balance provided in this application embodiment;
[0042] Figure 8B This application provides an illustration of an application scenario for a method for adjusting interface balance. Figure 9 ;
[0043] Figure 8C A schematic diagram of an application scenario for a method for adjusting interface balance provided in this application embodiment is shown in Figure 10.
[0044] Figure 9 Flowchart four of a method for adjusting interface balance provided in this application embodiment;
[0045] Figure 10A This application provides an illustration of an application scenario for a method for adjusting interface balance. Figure 11 ;
[0046] Figure 10B This application provides an illustration of an application scenario for a method for adjusting interface balance. Figure 12 ;
[0047] Figure 11 This application provides an illustration of an application scenario for a method for adjusting interface balance. Figure 13 ;
[0048] Figure 12 Schematic diagram fourteen illustrating an application scenario of a method for adjusting interface balance provided in this application embodiment;
[0049] Figure 13 A schematic diagram of the structure of an electronic device provided in this application embodiment. Figure 3 . Detailed Implementation
[0050] The method and electronic device for adjusting interface balance provided in the embodiments of this application will be described in detail below with reference to the accompanying drawings.
[0051] The terms “comprising” and “having”, and any variations thereof, used in the description of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the steps or units listed, but may optionally include other steps or units not listed, or may optionally include other steps or units inherent to such process, method, product, or apparatus.
[0052] It should be noted that in the embodiments of this application, the words "exemplary" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of the words "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.
[0053] In the description of this application, unless otherwise stated, "multiple" means two or more. "And / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone.
[0054] It should be noted that, in this embodiment, interface balance refers to the visual smoothness, clarity, and comfort of the interface, which can be characterized by parameters such as network latency, image quality, resolution, screen brightness, processor frequency, and frame rate. Smoothness parameters refer to parameters of the electronic device related to interface smoothness, such as image quality, resolution, screen brightness, processor frequency, and frame rate. This will be explained uniformly here and will not be repeated below.
[0055] It should be noted that in this embodiment, the fluency priority mechanism first switches the network from a first network with higher network performance to a second network with lower network performance, and then considers adjusting the fluency parameters. The network priority mechanism adjusts the fluency parameters first, and then considers switching the network from the first network to the second network. Because electronic devices prioritize running services on the first network with higher network performance in the network priority mechanism, it can also be called the network performance priority mechanism or the first network priority mechanism. This will be explained uniformly here and will not be repeated below.
[0056] As described in the background section, existing technologies address the overheating problem of electronic devices by prioritizing smoothness. However, due to differences in 5G and 4G network base station deployment—meaning there are environments where 4G network latency is higher than 5G latency, and vice versa—the smoothness-first mechanism increases network latency in environments where 4G latency is higher than 5G latency. This can cause stuttering in games or videos on electronic devices, or even prevent continued gameplay or video playback, thus negatively impacting user experience.
[0057] Therefore, to solve the above-mentioned technical problems, this application provides a method and electronic device for adjusting interface balance. The method includes: in response to a user's operation to initiate a first data service, the electronic device detects the current network; if the current network is the first network, the electronic device obtains a first service latency of the electronic device running the first data service under the first network, and continuously monitors a first temperature of the electronic device; when the first temperature is greater than a first preset temperature, the electronic device triggers a switch from the first network to a second network, and obtains a second service latency of the electronic device running the first data service under the second network; the network performance of the first network is higher than the network performance of the second network; the electronic device determines a network switching strategy based on the first service latency and the second service latency. The specific implementation and technical effects of this solution will be described in detail in subsequent method embodiments, and will not be repeated here.
[0058] As described above, the method for adjusting interface balance provided in this application embodiment can be applied to electronic device 100, or to a system including electronic device 100.
[0059] Optionally, the electronic device 100 may be a mobile phone, tablet computer, desktop computer, laptop computer, handheld computer, notebook computer, ultra-mobile personal computer (UMPC), netbook, as well as cellular phone, personal digital assistant (PDA), augmented reality (AR) device, virtual reality (VR) device, artificial intelligence (AI) device, or wearable device. This application embodiment does not impose any limitation on the specific type of electronic device 100.
[0060] The following explanation uses a mobile phone as an example of electronic device 100.
[0061] For example, Figure 1 A schematic diagram of a hardware structure of an electronic device 100 is shown. For example... Figure 1 As shown, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, etc.
[0062] It is understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the mobile phone. In other embodiments of this application, the mobile phone 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.
[0063] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0064] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0065] The wireless communication function of a mobile phone can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor, and baseband processor.
[0066] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the mobile phone can be used to cover one or more communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with a tuning switch.
[0067] The mobile communication module 150 can provide solutions for wireless communication applications in mobile phones, including 2G / 3G / 4G / 5G. The mobile communication module 150 may include at least one filter, switch, power amplifier, low-noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.
[0068] The wireless communication module 160 can provide solutions for wireless communication applications in mobile phones, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.
[0069] In some embodiments, antenna 1 of the mobile phone is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling the mobile phone to communicate with networks and other devices via wireless communication technology. The wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time-Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).
[0070] The mobile phone implements its display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0071] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniature LED, a microLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the mobile phone may include one or N displays 194, where N is a positive integer greater than 1.
[0072] Mobile phones can achieve shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.
[0073] The ISP (Image Signal Processor) is used to process data fed back from the camera 193. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing, transforming it into an image visible to the naked eye. The ISP can also perform algorithmic optimization of image noise, brightness, and skin tone. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 193.
[0074] Camera 193 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In some embodiments, the mobile phone may include one or N cameras 193, where N is a positive integer greater than 1.
[0075] Digital signal processors (DSPs) are used to process digital signals. Besides digital image signals, they can also process other digital signals. For example, when a mobile phone is selecting a frequency, the DSP performs Fourier transforms on the frequency energy.
[0076] Video codecs are used to compress or decompress digital video. A mobile phone can support one or more video codecs. This allows the phone to play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0077] The external storage interface 120 can be used to connect an external storage card, such as a Micro SD card, to expand the phone's storage capacity. The external storage card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external storage card.
[0078] Internal memory 121 can be used to store computer executable program code, which includes instructions. Processor 110 executes various mobile phone functions and data processing by running the instructions stored in internal memory 121. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, 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 mobile phone use (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.
[0079] Mobile phones can perform audio functions, such as music playback and recording, through components like the audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.
[0080] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 may be located in the processor 110, or some functional modules of the audio module 170 may be located in the processor 110.
[0081] The speaker 170A, also known as a "loudspeaker," is used to convert audio electrical signals into sound signals. Mobile phones can use the speaker 170A to listen to music or make hands-free calls.
[0082] The receiver 170B, also known as the "earpiece," is used to convert audio electrical signals into sound signals. When answering a phone call or voice message, the receiver 170B can be brought close to the user's ear to hear the voice.
[0083] Microphone 170C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can speak by bringing their mouth close to microphone 170C, inputting the sound signal into microphone 170C. A mobile phone can have at least one microphone 170C. In some embodiments, a mobile phone can have two microphones 170C, which, in addition to collecting sound signals, can also perform noise reduction. In other embodiments, a mobile phone can have three, four, or more microphones 170C, enabling sound signal collection, noise reduction, sound source identification, and directional recording, among other functions.
[0084] The 170D headphone jack is used to connect wired headphones. The 170D headphone jack can be a USB 130 interface or a 3.5mm Open Mobile Terminal Platform (OMTP) standard interface, a CTIA (Cellular Telecommunications Industry Association of the USA) standard interface.
[0085] The sensor module 180 may include pressure sensors, gyroscope sensors, barometric pressure sensors, magnetic sensors, accelerometers, distance sensors, proximity sensors, fingerprint sensors, temperature sensors, touch sensors, ambient light sensors, bone conduction sensors, etc.
[0086] Of course, the mobile phone may also include a charging management module, a power management module, a battery, buttons, indicators, and one or more SIM card interfaces, etc., and this application embodiment does not impose any restrictions on this.
[0087] The software system of the aforementioned electronic device can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. For example, the operating system of a smartphone can be Android, iOS, Symbian, HarmonyOS, or other terminal operating systems. This application embodiment only uses the layered architecture Android system as an example to illustrate the software structure of the electronic device. The software architecture illustrated below does not constitute a specific limitation on the electronic device.
[0088] For example, Figure 2 A schematic diagram of a software architecture for an electronic device 100 is shown. The layered architecture divides the 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 four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.
[0089] The application layer can include a series of application packages. For example... Figure 2 As shown, the application package can include applications such as games, videos, maps, music, camera, gallery, calls, navigation, calendar, WLAN, Bluetooth, video, and SMS.
[0090] 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.
[0091] like Figure 2 As shown, the application framework layer may include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.
[0092] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.
[0093] The notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of completed downloads or message alerts. The notification manager can also display notifications as icons or scrolling text in the top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the status bar, emitting sounds, vibrating electronic devices, and flashing indicator lights.
[0094] The window manager is used to manage windowed applications. It can retrieve screen size, determine the presence of a status bar, lock the screen, and capture screenshots, among other things.
[0095] The network manager is used to determine which network standard an electronic device is operating on, such as whether the electronic device is operating on a 5G network, a 4G network, or a 3G network.
[0096] The resource manager provides applications with various resources, such as localized strings, icons, images, layout files, video files, and so on. The resource manager is also used for judgment and decision-making functions. The content provider stores and retrieves data, making this data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.
[0097] The Android Runtime consists of the core libraries and the virtual machine. The Android runtime is responsible for the scheduling and management of the Android system. The core libraries consist of two parts: one part contains the functionalities that the Java language needs to call, and the other part contains the core Android libraries.
[0098] 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.
[0099] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), etc.
[0100] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.
[0101] 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.
[0102] 3D graphics processing libraries are used to implement 3D graphics drawing, image rendering, compositing, and layer processing. 2D graphics engines are drawing engines for 2D graphics.
[0103] The kernel layer is the layer between hardware and software. The kernel layer includes at least display drivers, sensor drivers, Wi-Fi drivers, camera drivers, and audio drivers.
[0104] The methods in the following embodiments can all be implemented in the above-described... Figure 1 The hardware structure and Figure 2 The software structure shown is implemented in the electronic device 100. Next, we will discuss the above... Figure 1 and Figure 2This application provides a detailed description of the interface balance adjustment method provided in the embodiments.
[0105] like Figure 3 As shown in the embodiment of this application, a method for adjusting interface balance is provided, which includes the following steps:
[0106] S301. In response to the user's operation to initiate the first data service, the electronic device detects the current network. Taking the first data service as an example, the user's operation to initiate the first data service could be as follows: Figure 4A As shown, the user clicks the game software icon 400. The electronic device enters... Figure 4B The interface shown may include the game software's trademark (logo type, logo), username, and "Start Game" button 401.
[0107] In some embodiments of this application, the operation of a user activating the first data service can be as follows: Figure 5A As shown, the user clicks Figure 5A The "Start Game" button 401 appears in the system. The electronic device enters... Figure 5B The interface shown may include a username, user level, network latency, a game floating window, an icon to collapse the game floating window, a "First Game Mode" button 500, and / or a "Second Game Mode" button 501. Network latency is measured in milliseconds (ms), and not every game will display the network latency value on the game interface. The game floating window may include icons for message do-not-disturb, brightness lock, screenshot, screen recording, network acceleration, all services, and icons for chat software, dialer, or all applications. The interface may display two game modules for the user to choose from. The interface may also provide a single game module or two or more game modes; this embodiment does not impose any limitations on this.
[0108] In some embodiments of this application, such as Figure 6A As shown, the user clicks Figure 6A The "First Game Mode" button 500 is located in the device. Users can use the electronic device to set up teams, select the number of members per team, etc. For example, such as... Figure 6B As shown, users can select friends, recently teamed teammates, and / or other nearby players on the right side of the interface to fill the four empty slots in the center of the screen, forming a 5-person team. Users enter... Figure 6C The game interface shown allows users to control the character's movement direction using icon 601 with their left hand, and to swing a sword or shoot using icon 602 with their right hand. The user can also initiate the first data service by entering... Figure 6CThe final setup operation before the game interface shown is, for example, the user clicking the "Start Matchmaking" button 600. This application embodiment does not specifically limit this step.
[0109] It should be noted that the electronic device's detection of the current network can be triggered either by the user initiating the first data service or during the execution of the first data service. For example, in Figure 6B The event may be triggered during the game or while playing a video, but this application embodiment does not impose any limitations on this.
[0110] Combination Figure 1 and Figure 2 Step S301 can be achieved by receiving the user's operation to initiate the first data service through the touch sensor in the sensor module, and by the mobile communication module detecting the current network.
[0111] S302. The electronic device detects that the current network is the first network, obtains the first service latency of the electronic device running the first data service under the first network, and continuously monitors the first temperature of the electronic device. In this embodiment, the temperature of the electronic device can be the case temperature, system temperature, central processing unit (CPU) temperature, screen temperature, or chip temperature, etc., and this embodiment does not limit it in any way.
[0112] In some embodiments of this application, the electronic device may also obtain the identity (ID) of the first network cell where the electronic device is currently located.
[0113] Combination Figure 1 and Figure 2 Step S302 can be implemented as follows: The mobile communication module sends the collected network information to the network manager, which then determines the current network as the first network. The mobile communication module acquires the first service latency, and can also send the acquired first service latency to the game application to display it on the game interface. The temperature sensor in the sensor module continuously monitors the first temperature of the electronic device.
[0114] S303. When the first temperature is greater than the first preset temperature, the electronic device triggers a switch from the first network to the second network, and obtains the second service latency of the electronic device running the first data service in the second network; the network performance of the first network is higher than that of the second network. In some embodiments of this application, the electronic device can also obtain the ID of the second network cell where the electronic device is currently located.
[0115] In this embodiment, the first network can be an evolution of the second network. For example, the first network is a 5G network, and the second network is a 4G network. Alternatively, the first network can be another future network, and the second network can be a 5G network. The network performance of the first network is superior to that of the second network.
[0116] In this embodiment, the electronic device can acquire the second service latency within a certain time period after switching to the second network. To avoid excessive resource consumption during latency measurement affecting overall device performance, the time period cannot be too long. Conversely, to ensure accurate latency measurement, the time period cannot be too short. For example, the time period can be 2 minutes.
[0117] Combination Figure 1 and Figure 2 Step S303 can be implemented as follows: The temperature sensor sends the monitored first temperature to the resource manager, which then determines the relationship between the first temperature and a first preset temperature. When the first temperature is greater than the first preset temperature, the resource manager sends a control command to the mobile communication module through the network management manager to trigger network switching. The mobile communication module obtains the second service latency, and can also send the obtained second service latency to the game application to display the second service latency on the game interface.
[0118] S304. Electronic devices determine network handover strategies based on the first service latency and the second service latency. (Combined with...) Figure 1 and Figure 2 Step S304 can be implemented as follows: The resource manager determines the network handover strategy based on the first service delay and the second service delay from the mobile communication module.
[0119] In the interface balancing method provided in this application embodiment, when an electronic device experiences a temperature rise while running a first data service under a first network, the electronic device can determine a network switching strategy based on the latency of running the first data service under both the first and second networks. Compared to the prior art approach of first downgrading the first network to the second network and then considering reducing smoothness parameters, the interface balancing method provided in this application embodiment can determine whether to switch to a lower-performance network based on the latency of running the first data service under both the first and second networks. This effectively avoids the increased network latency caused by downgrading the first network to the second network when the latency of the first network is lower than that of the second network, which could lead to lag or even disconnection of the electronic device's interface.
[0120] In some embodiments of this application, the network handover strategy may include a network priority mechanism or a fluency priority mechanism. The following example illustrates a case where the electronic device determines a network priority mechanism as the network handover strategy.
[0121] In some embodiments of this application, if the first service delay belongs to the first level of delay, and the second service delay belongs to the second level of delay or the third level of delay; or, if the first service delay belongs to the second level of delay and the second service delay belongs to the third level of delay, the network handover strategy determined by the electronic device is a network priority mechanism.
[0122] In embodiments of this application, the first level latency, the second level latency, or the third level latency can be preset by the electronic device. The maximum latency value of the first level latency is less than the minimum latency value of the second level latency, and the maximum latency value of the second level latency is less than the minimum latency value of the third level latency. In embodiments of this application, different latency intervals are divided according to the magnitude of the latency, including the first level latency, the second level latency, or the third level latency, thereby enabling the determination of network handover strategies based on the latency level to which the first service latency and the second service latency belong.
[0123] Taking gaming as an example, the relationship between game latency and gaming experience is shown in Table 1.
[0124] Table 1
[0125] Game latency range Game experience Greater than 1ms and less than or equal to 60ms Excellent, the human-computer interaction is smooth, and users can hardly perceive any delay. Greater than 60ms and less than or equal to 100ms Okay, advanced users will be able to perceive a certain degree of latency. Greater than 100ms and less than or equal to 200ms In competitive games, there will be noticeable lag and occasional disconnections. Greater than 200ms and less than 460ms Poor performance, noticeable lag and stuttering, frequent disconnections. 460ms and above Very bad, keeps disconnecting, unable to play the game.
[0126] Referring to Table 1, for example, the electronic device can preset a first-level latency, a second-level latency, or a third-level latency. As shown in Table 2, the first-level latency can be a game latency greater than 1ms and less than or equal to 100ms, the second-level latency can be a game latency greater than 100ms and less than or equal to 200ms, and the third-level latency can be a game latency greater than 200ms.
[0127] Table 2
[0128] Latency level Game latency range The level of gaming experience Level 1 latency Greater than 1ms and less than or equal to 100ms good Level 2 latency Greater than 100ms and less than or equal to 200ms middle Level 3 latency Greater than 200ms Difference
[0129] In some embodiments of this application, if the latency of the first service is lower than the latency of the second service, and the difference between the latency of the second service and the latency of the first service is greater than or equal to a first threshold, the network switching strategy determined by the electronic device is a network priority mechanism.
[0130] For example, the first threshold can be set to 100ms. In this embodiment, the purpose of setting the first threshold is to ensure that the electronic device determines to execute the network priority mechanism only when the first service latency is lower than the second service latency and the two latencies are located in different latency intervals corresponding to different user experiences, such as the different game latency intervals shown in the first column of Table 1. Conversely, even if the first service latency is lower than the second service latency, but the two latencies are located in the same latency interval corresponding to the same user experience, such as the same game latency interval shown in the first column of Table 1, the electronic device does not need to execute the network priority mechanism, nor does it need to perform subsequent network switching from the second network to the first network, thus avoiding frequent network switching without affecting the user experience.
[0131] Combination Figure 3 In some embodiments of this application, such as Figure 7A As shown, in the second network, when the network handover strategy determined by the electronic device based on the first service delay and the second service delay is a network priority mechanism, the specific network handover process is described as follows:
[0132] S701. The electronic device triggers a switch from the second network to the first network according to the network priority mechanism, and adjusts the smoothness parameters. In this embodiment, when the network switching strategy is a network priority mechanism, the electronic device triggers a switch back to the first network with lower latency, thereby avoiding lag or disconnection of the electronic device's interface. Furthermore, the electronic device addresses the overheating issue by adjusting the smoothness parameters, preventing the electronic device from continuously overheating.
[0133] In some embodiments of this application, adjusting the smoothness parameter can, for example, prevent the electronic device from continuously overheating by reducing the value of the smoothness parameter.
[0134] Taking the first data service as a gaming service, the first network as a 5G network, and the second network as a 4G network as an example, this will be explained accordingly. Figure 8A As shown, when a user plays a game on a 5G network, a 5G icon (801) is displayed in the upper left corner of the interface, and the measured network latency is 51ms in the upper right corner. As described in step S303, when the electronic device's temperature exceeds a first preset temperature, the electronic device triggers a switch from the 5G network to the 4G network. The measured 4G network latency is 196ms, and the interface displayed on the electronic device is as follows. Figure 8BAs shown, the 4G icon 802 is displayed in the upper left corner of the interface. This means that in this example, the latency for the first service is 51ms, and the latency for the second service is 196ms. Referring to Table 2, by determining that 51ms belongs to the first level of latency and 196ms belongs to the second level of latency, or by determining that 196ms is greater than 51ms, and the difference between 196ms and 51ms is 145ms, which is greater than the first threshold of 100ms, the electronic device determines the network switching strategy as a network priority mechanism. Therefore, the electronic device triggers a switch from the 4G network to the 5G network according to the network priority mechanism and adjusts the smoothness parameters. For example, if the current resolution is 1080P, the current resolution will be reduced to 720P. If the current resolution is lower than 1080P, the current processor frequency will be reduced. Reducing the current processor frequency includes reducing the current CPU frequency by 300MHz, or reducing the current GPU frequency by 100MHz, or simultaneously reducing the current CPU frequency by 300MHz and the current GPU frequency by 100MHz. For example, if the current CPU frequency is 2.4GHz, then the CPU frequency is reduced to 2.1GHz; if the current GPU frequency is 550MHz, then the GPU frequency is reduced to 450MHz. The interface displayed on the electronic device at this time would look like this: Figure 8C As shown, the 5G icon 803 is displayed in the upper left corner of the interface.
[0135] It should be noted that, Figure 8A and Figure 8C The system shows a full 5G signal, while Figure 8B The system displays a 4G signal that is not at full strength. The number of signal bars depends on the quality of wireless communication between the electronic device and the network, such as latency or signal strength. In this application, network latency refers to the latency between the electronic device and the server. That is, a higher signal bar count does not necessarily mean lower network latency. A higher signal bar count only indicates lower latency between the electronic device and the network, while the latency between the network and the server may be higher. Conversely, lower network latency indicates a higher signal bar count, because lower network latency means lower latency both between the electronic device and the network and the server, and lower latency between the electronic device and the network implies a higher signal bar count.
[0136] Combination Figure 1 and Figure 2Step S701 can be implemented as follows: The resource manager sends a control command to the mobile communication module through the network manager to trigger network switching. When the smoothness parameter is adjusted to reduce the CPU frequency, the resource manager sends a control command to the CPU to reduce its operating frequency; when the smoothness parameter is adjusted to reduce the GPU frequency, the resource manager sends a control command to the GPU to reduce its operating frequency; when the smoothness parameter is adjusted to reduce image quality, resolution, or screen brightness, the resource manager sends a control command to the display screen to reduce the image quality, resolution, or screen brightness; when the smoothness parameter is adjusted to reduce the frame rate, the resource manager reduces the frame rate and notifies the display screen to update the refresh rate, for example, from refreshing once every 8ms to refreshing once every 16ms, corresponding to a frame rate reduction from 120 frames per second to 60 frames per second.
[0137] S702, Electronic equipment continuously monitors the second temperature of the electronic equipment.
[0138] Combination Figure 1 and Figure 2 Step S702 can be achieved by continuously monitoring the second temperature of the electronic device through the temperature sensor in the sensor module.
[0139] S703a: When the second temperature is greater than the second preset temperature, the electronic device adjusts the smoothness parameter.
[0140] In some embodiments of this application, when the electronic device returns to the first network to run the first data service, if the temperature still rises and exceeds the second preset temperature, the electronic device solves the problem of overheating by adjusting the smoothness parameter, thereby preventing the electronic device from continuously heating up.
[0141] In embodiments of this application, for example, the electronic device can adjust smoothness parameters by adjusting the current processor frequency or the current frame rate. For example, the current processor frequency can be reduced, or the current frame rate can be reduced by 30 frames per second. Reducing the current processor frequency includes reducing the current CPU frequency by 300MHz, or reducing the current GPU frequency by 100MHz, or simultaneously reducing the CPU frequency by 300MHz and the GPU frequency by 100MHz. For example, if the current CPU frequency is 2.1GHz, then the CPU frequency is reduced to 1.8GHz; if the current GPU frequency is 450MHz, then the GPU frequency is reduced to 350MHz; if the current frame rate is 120 frames per second, then the frame rate is reduced to 90 frames per second.
[0142] Combination Figure 1 and Figure 2Step S703 can be implemented as follows: the temperature sensor sends the monitored second temperature to the resource manager, which then determines the relationship between the second temperature and the second preset temperature. The specific implementation of adjusting the smoothness parameter can be found in step S701 above, and will not be repeated here. It should be noted that after executing step S703a, step S702 can be executed repeatedly to continuously monitor the temperature of the electronic device. During the repeated execution of step S702, the second temperature of the electronic device can continuously change. Due to the repeated execution of step S702, step S703a may be executed multiple times, thus allowing for multiple adjustments of the smoothness parameter.
[0143] In the embodiments of this application, such as Figure 7B As shown, after step S702, the electronic device continuously monitors its temperature. The electronic device adjusts its smoothness parameters based on the monitored changes in the second temperature. The specific adjustment method is described below.
[0144] S703b: When the second temperature is greater than the second preset temperature and less than the third preset temperature, the electronic device adjusts the smoothness parameter.
[0145] In the embodiments of this application, for example, the electronic device can adjust the smoothness parameters by adjusting the current processor frequency or the current frame rate. An example of adjusting the smoothness parameters in step S703b can be found in the example of adjusting the smoothness parameters in step S703a described above, and will not be repeated here.
[0146] In some embodiments of this application, when the electronic device returns to the first network to run the first data service, if the temperature still rises and is between the second preset temperature and the third preset temperature, the electronic device solves the problem of overheating by adjusting the smoothness parameter, thereby preventing the electronic device from continuously heating up.
[0147] Combination Figure 1 and Figure 2 Step S703b can be implemented as follows: the temperature sensor sends the monitored second temperature to the resource manager, which then determines the relationship between the second temperature, the second preset temperature, and the third preset temperature. The specific implementation method for adjusting the smoothness parameters can be found in the implementation method of step S701 above, and will not be repeated here.
[0148] S703c: When the second temperature is greater than or equal to the third preset temperature, the electronic device triggers a switch from the first network to the second network; or, the electronic device triggers a switch from the first network to the second network and adjusts the smoothness parameters. In this embodiment, when the electronic device returns to the first network to run the first data service, if the temperature still rises and is higher than or equal to the third preset temperature after multiple adjustments to the smoothness parameters, the electronic device triggers a switch from the first network to the second network to effectively cool down the electronic device.
[0149] In embodiments of this application, for example, an electronic device can adjust the current frame rate by adjusting smoothness parameters. For instance, the current frame rate can be reduced by 30 frames per second. For example, if the current frame rate is 90 frames per second, then the frame rate can be reduced to 60 frames per second.
[0150] Combination Figure 1 and Figure 2 Step S703c can be implemented as follows: The temperature sensor sends the monitored second temperature to the resource manager, which then determines the relationship between the second temperature and the third preset temperature. When the second temperature is greater than or equal to the third preset temperature, the resource manager sends a control command to the mobile communication module through the network manager to trigger network switching. The specific implementation method for adjusting the smoothness parameters can be found in the implementation method of step S701 above, and will not be repeated here.
[0151] It should be noted that after executing step S703b, step S702 can be executed repeatedly to continuously monitor the temperature of the electronic device. On one hand, during the repeated execution of step S702, the second temperature of the electronic device is constantly changing. On the other hand, due to the repeated execution of step S702, step S703b may be executed multiple times, thus allowing for multiple adjustments to the smoothness parameter. Furthermore, step S703c may be executed after one or more repeated executions of step S703b.
[0152] Combination Figure 3 In some embodiments of this application, such as Figure 9 As shown, in the second network, when the network handover strategy determined by the electronic device based on the first service delay and the second service delay is a smoothness-first mechanism, the specific network handover method is described as follows:
[0153] S901, Electronic devices run the first data service under the second network according to the fluency priority mechanism.
[0154] Combination Figure 1 and Figure 2 Step S901 can be achieved as follows: the resource manager sends a message to the network manager so that the network manager determines to run the first data service under the second network.
[0155] In this embodiment of the application, after the electronic device determines that the network switching strategy is a smoothness priority mechanism, the electronic device stays on the second network with lower latency, thereby avoiding lag or disconnection of the electronic device's interface.
[0156] Let's take the example of the first data service being gaming, the first network being a 5G network, and the second network being a 4G network. Figure 10A As shown, when a user plays a game on a 5G network, the 5G icon 1001 is displayed in the upper left corner of the interface, and the measured network latency of 180ms is displayed in the upper right corner. As described in step S303, when the electronic device's temperature exceeds a first preset temperature, the electronic device triggers a switch from the 5G network to the 4G network. The measured 4G network latency is 60ms, and the interface displayed by the electronic device at this time is as follows. Figure 10B As shown, the 4G icon 1002 is displayed in the upper left corner of the interface. This means that in this example, the latency for the first service is 180ms, and the latency for the second service is 60ms. Referring to Table 2, by determining that 180ms belongs to the second level of latency and 60ms belongs to the first level of latency, or by determining that 180ms is greater than 60ms, and the difference between 180ms and 60ms is 120ms, which is greater than the first threshold of 100ms, the electronic device determines a network switching strategy prioritizing smoothness. Therefore, the electronic device remains on the 4G network for gaming, and the interface displayed on the electronic device remains as shown... Figure 10B As shown.
[0157] S902, Electronic equipment continuously monitors the third temperature of the electronic equipment.
[0158] Combination Figure 1 and Figure 2 Step S902 can be achieved by continuously monitoring the third temperature of the electronic device through the temperature sensor in the sensor module.
[0159] S903. When the third temperature is greater than the fourth preset temperature, the electronic device adjusts the smoothness parameter.
[0160] Combination Figure 1 and Figure 2 Step S903 can be implemented as follows: the temperature sensor sends the detected third temperature to the resource manager, which then determines the relationship between the third temperature and the fourth preset temperature. The specific implementation method for adjusting the smoothness parameters can be found in step S701 above, and will not be repeated here.
[0161] In this embodiment, after the electronic device determines that the network switching strategy is a smoothness priority mechanism, the electronic device stays on the second network with lower latency to run the first data service. If the temperature still rises and exceeds the fourth preset temperature, the electronic device can effectively cool down the electronic device by adjusting the smoothness parameter.
[0162] In embodiments of this application, for example, the electronic device can adjust smoothness parameters by adjusting the current processor frequency, the current frame rate, or the current screen brightness. For example, the current processor frequency can be reduced, or the current frame rate can be reduced by 30 frames per second, or the current screen brightness can be reduced by 200 nits. Reducing the current processor frequency includes reducing the current CPU frequency by 300MHz, or reducing the current GPU frequency by 100MHz, or simultaneously reducing the current CPU frequency by 300MHz and the current GPU frequency by 100MHz. For example, if the current CPU frequency is 2.1GHz, then the CPU frequency is reduced to 1.8GHz; if the current GPU frequency is 450MHz, then the GPU frequency is reduced to 350MHz; if the current frame rate is 120 frames per second, then the frame rate is reduced to 90 frames per second; if the current screen brightness is 1000 nits, then the frame rate is reduced to 800 nits.
[0163] It should be noted that after executing step S903, step S902 can be executed repeatedly to continuously monitor the temperature of the electronic device. During the repeated execution of step S902, the third temperature of the electronic device can continuously change. Furthermore, due to the repeated execution of step S902, step S903 may be executed multiple times, thus allowing for multiple adjustments to the smoothness parameter.
[0164] The above Figure 7A , Figure 7B and Figure 9 The illustrated embodiment demonstrates how an electronic device automatically determines and executes a network switching strategy based on latency under different networks. In some embodiments of this application, the electronic device may also display a pop-up window to remind the user to select a network priority mechanism or a smoothness priority mechanism, thereby increasing human-computer interaction and improving user experience, such as... Figure 11 As shown.
[0165] Combination Figure 1 and Figure 2 The above steps can be achieved as follows: a pop-up window is displayed on the screen, and the touch sensor in the sensor module receives the user's selection. Alternatively, it can be combined with... Figure 8BAfter the electronic device sets the network switching strategy to network priority, a pop-up window may appear stating, "4G network is poor. Switching to 5G network will make the game smoother, but it will affect the image quality. Please select whether to switch networks." Figure 12 As shown. If the user selects "Yes", then execute. Figure 7A or Figure 7B In the example shown, if the user selects "No", then execution is performed. Figure 9 The example shown.
[0166] Taking a game as the first data service, a mobile phone as the electronic device, a 5G network as the first network, and a 4G network as the second network, as an example, the following is a specific example of a method for adjusting interface balance provided by an embodiment of this application. The example includes: the mobile phone starts a game under a 5G network, and correspondingly, the mobile phone detects that the current network is a 5G network. The mobile phone obtains the game latency under the 5G network. When the mobile phone temperature exceeds 40 degrees Celsius, the mobile phone triggers a switch from the 5G network to the 4G network. The mobile phone obtains the game latency under the 4G network. Based on the game latency obtained under the 5G network and the 4G network, the mobile phone determines a network switching strategy.
[0167] If the network switching strategy prioritizes the network, the phone will switch back from 4G to 5G and reduce the resolution or processor frequency. The phone continuously monitors its temperature; when the temperature exceeds 45 degrees Celsius, it will reduce the processor frequency or frame rate. When the temperature exceeds 48 degrees Celsius, the phone will switch back from 5G to 4G.
[0168] If the network switching strategy is a smoothness-first mechanism, the phone will run the game on a 4G network and continuously monitor its own temperature. If the phone temperature exceeds 47 degrees Celsius, the processor frequency, frame rate, or screen brightness will be reduced.
[0169] This application discloses an electronic device, including a processor, a memory, an input device, and an output device connected to the processor. The input and output devices can be integrated into a single device; for example, a touch sensor (or touch panel) can be used as the input device, a display screen as the output device, and the touch sensor and display screen can be integrated into a touch screen.
[0170] like Figure 13As shown, the above-mentioned electronic device may include: a touch screen 1301, which includes a touch sensor 1306 and a display screen 1307; one or more processors 1302; a memory 1303; one or more application programs (not shown); and one or more computer programs 1304. All of the above devices can be connected via one or more communication buses 1305. Of course, the electronic device may also include other components such as a communication module.
[0171] The aforementioned one or more computer programs 1304 are stored in the aforementioned memory 1303 and configured to be executed by the aforementioned one or more processors 1302. The one or more computer programs 1304 include instructions that can be used to perform the various steps in the above embodiments. All relevant content regarding the steps involved in the above method embodiments can be referenced from the functional descriptions of the corresponding physical devices, and will not be repeated here.
[0172] Through the above description of the embodiments, those skilled in the art will clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device, and unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0173] In the embodiments of this application, the functional units can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0174] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, essentially, or the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as flash memory, portable hard disk, read-only memory, random access memory, magnetic disk, or optical disk.
[0175] The above description is merely a specific implementation of the embodiments of this application, but the protection scope of the embodiments of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the embodiments of this application should be covered within the protection scope of the embodiments of this application. Therefore, the protection scope of the embodiments of this application should be determined by the protection scope of the claims.
Claims
1. A method for adjusting interface balance, the method being applied in an electronic device, characterized in that, include: In response to the user's initiation of the first data service, the electronic device detects the current network; If the current network is the first network, the electronic device obtains the first service latency of the electronic device running the first data service under the first network, and continuously monitors the first temperature of the electronic device; When the first temperature is greater than the first preset temperature, the electronic device triggers a switch from the first network to the second network, and obtains the second service latency of the electronic device running the first data service under the second network; the network performance of the first network is higher than that of the second network. The electronic device determines a network handover strategy based on the first service delay and the second service delay; the network handover strategy includes a network priority mechanism. If the latency of the first service is classified as first-level latency, and the latency of the second service is classified as second-level or third-level latency, the electronic device triggers a switch from the second network to the first network according to the network priority mechanism, and adjusts the smoothness parameters. or, If the latency of the first service belongs to the second level of latency, and the latency of the second service belongs to the third level of latency, the electronic device triggers a switch from the second network to the first network according to the network priority mechanism, and adjusts the smoothness parameter.
2. The method according to claim 1, characterized in that, The preset latency levels of the electronic device include a first latency level, a second latency level, or a third latency level, wherein the maximum latency value of the first latency level is less than the minimum latency value of the second latency level, and the maximum latency value of the second latency level is less than the minimum latency value of the third latency level.
3. The method according to claim 1, characterized in that, The method further includes: If the latency of the first service is lower than the latency of the second service, and the difference between the latency of the second service and the latency of the first service is greater than or equal to a first threshold, the electronic device triggers a switch from the second network to the first network according to the network priority mechanism, and adjusts the smoothness parameter.
4. The method according to any one of claims 1-3, characterized in that, The method further includes: After the electronic device triggers a switch from the second network to the first network according to the network priority mechanism, the electronic device continuously monitors the second temperature of the electronic device; When the second temperature is greater than the second preset temperature, the electronic device adjusts the smoothness parameter.
5. The method according to any one of claims 1-3, characterized in that, The method further includes: After the electronic device triggers a switch from the second network to the first network according to the network priority mechanism, the electronic device continuously monitors the second temperature of the electronic device; When the second temperature is greater than the second preset temperature and less than the third preset temperature, the electronic device adjusts the smoothness parameter; or... When the second temperature is greater than or equal to the third preset temperature, the electronic device triggers a switch from the first network to the second network; or, the electronic device triggers a switch from the first network to the second network and adjusts the smoothness parameter.
6. The method according to claim 1, characterized in that, The network handover strategy also includes a fluency priority mechanism, and the method further includes: The electronic device runs the first data service on the second network according to the smoothness priority mechanism.
7. The method according to claim 6, characterized in that, The electronic device operates the first data service on the second network according to the fluency priority mechanism, including: If the latency of the second service belongs to the first level of latency, and the latency of the first service belongs to the second or third level of latency, the electronic device runs the first data service under the second network according to the fluency priority mechanism; or... If the second service latency belongs to the second level of latency and the first service latency belongs to the third level of latency, the electronic device runs the first data service under the second network according to the smoothness priority mechanism.
8. The method according to claim 7, characterized in that, The preset latency levels of the electronic device include a first latency level, a second latency level, or a third latency level, wherein the maximum latency value of the first latency level is less than the minimum latency value of the second latency level, and the maximum latency value of the second latency level is less than the minimum latency value of the third latency level.
9. The method according to claim 6, characterized in that, The electronic device operates the first data service on the second network according to the fluency priority mechanism, including: If the latency of the first service is higher than the latency of the second service, and the difference between the latency of the first service and the latency of the second service is greater than or equal to a first threshold, the electronic device runs the first data service in the second network according to the smoothness priority mechanism.
10. The method according to any one of claims 6-9, characterized in that, The method further includes: When the electronic device runs the first data service under the second network according to the smoothness priority mechanism, the electronic device continuously monitors the third temperature of the electronic device; When the third temperature is greater than the fourth preset temperature, the electronic device adjusts the smoothness parameter.
11. The method according to any one of claims 1-3, characterized in that, The adjustment of the smoothness parameter includes reducing the value of the smoothness parameter.
12. The method according to any one of claims 1-3, characterized in that, The smoothness parameter includes at least one of the frame rate corresponding to the interface of the first data service, the video resolution corresponding to the interface of the first data service, or the frequency of the processor of the electronic device.
13. The method according to any one of claims 1-3, characterized in that, The network handover strategy includes a network priority mechanism or a smoothness priority mechanism; the method further includes: The electronic device displays a pop-up window to remind the user to select either the network priority mechanism or the fluency priority mechanism.
14. An electronic device, characterized in that, include: The electronic device includes a processor, a memory, and a display screen, the memory and the display screen being coupled to the processor, the memory storing computer program code including computer instructions, which, when read from the memory by the processor, cause the electronic device to perform the method as described in any one of claims 1-13.
15. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program or instructions that, when executed on a computer, cause the computer to perform the method as described in any one of claims 1-13.
16. A chip system, characterized in that, The chip system includes a processing circuit and a storage medium, wherein the storage medium stores computer program code; when the computer program code is executed by the processing circuit, it implements the method as described in any one of claims 1-13.
17. A computer program product, characterized in that, The computer program product includes: a computer program or instructions that, when run on a computer, cause the computer to perform the method as described in any one of claims 1-13.
Citation Information
Patent Citations
Facilitating intelligent radio access control
US20150087307A1
Mitigating user equipment overheating for 5g or other next generation network
US20200351746A1