Method and apparatus for adjusting working mode, terminal, medium and product

By monitoring the screen projection traffic and adjusting the operating mode of the radio frequency components, the problem of high power consumption of wireless screen projection devices under low traffic conditions was solved, thus reducing power consumption.

CN115883807BActive Publication Date: 2026-11-20BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211567115.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-07
Publication Date
2026-11-20
Estimated Expiration
2042-12-07

AI Technical Summary

Technical Problem

Wireless screen mirroring devices need to maintain high power operation even when the screen mirroring traffic is low, which leads to increased power consumption.

Method used

By monitoring the screen projection traffic of the terminal, the operating mode of the radio frequency components can be adjusted, especially switching to a lower power consumption operating mode under low traffic conditions.

Benefits of technology

It effectively reduces power consumption during wireless screen mirroring, avoiding the continued use of high-power-consuming modes under low data usage conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115883807B_ABST
    Figure CN115883807B_ABST
Patent Text Reader

Abstract

The application discloses a working mode adjusting method and device, a terminal, a medium and a product, and belongs to the technical field of screen projection. The method is executed by a terminal supporting screen projection, and comprises the following steps: monitoring screen projection flow of the terminal; and adjusting a working mode of a radio frequency component of the terminal based on the screen projection flow. According to the method, the working mode of the radio frequency component of the terminal is adjusted according to the screen projection flow by monitoring the screen projection flow of the terminal, so that the terminal can be adjusted to a working mode with a smaller power consumption in the case that the screen projection flow is small, and the power consumption is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of screen projection technology, and in particular to a method, device, terminal, medium and product for adjusting working modes. Background Technology

[0002] Wireless screen mirroring technology is a technology that connects a mobile terminal to a display device and transmits multimedia information such as videos, music, and pictures from the mobile terminal to the display device for display.

[0003] In related technologies, wireless screen projection requires screen recording, video compression, and then wireless transmission to transmit data point-to-point to the receiver. Typically, the radio frequency components need to operate in wireless point-to-point (WIFI P2P) mode for a relatively long period of time within a unit of time to ensure relatively high data throughput and low latency.

[0004] However, in the above solution, the mobile terminal that supports wireless screen projection needs to keep running at full power, which results in power consumption even when the projection traffic is small. Summary of the Invention

[0005] This application provides a method, apparatus, terminal, medium, and product for adjusting a working mode. The technical solution is as follows:

[0006] According to one aspect of this application, a method for adjusting a working mode is provided, the method being performed by a terminal that supports screen projection, the method comprising:

[0007] Monitor the screen mirroring traffic of the terminal;

[0008] Based on the screen projection traffic, adjust the operating mode of the terminal's radio frequency components.

[0009] According to another aspect of this application, an adjustment device for an operating mode is provided, the device comprising:

[0010] The monitoring module is used to monitor screen mirroring traffic;

[0011] The adjustment module is used to adjust the operating mode of the radio frequency components based on the projection traffic.

[0012] According to another aspect of this application, a terminal is provided, the terminal comprising: a processor and a memory, the memory storing at least one computer program, the at least one computer program being loaded and executed by the processor to implement the method for adjusting the working mode as described above.

[0013] According to another aspect of this application, a computer-readable storage medium is provided that stores at least one instruction, at least one program, code set, or instruction set, wherein the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by a processor to implement the method for adjusting the operating mode as described above.

[0014] According to another aspect of this application, a computer program product is provided, the computer program product comprising at least one program segment stored in a computer-readable storage medium; a processor of a terminal reads the at least one program segment from the computer-readable storage medium, the processor executing the at least one program segment to cause the terminal to perform the operating mode adjustment method as described above.

[0015] The beneficial effects of the technical solution provided in this application include at least the following:

[0016] By monitoring the screen projection traffic of the terminal, the operating mode of the terminal's radio frequency components is adjusted according to the screen projection traffic. This allows the terminal to adaptively adjust the operating mode of the radio frequency components based on the screen projection traffic. For example, when the screen projection traffic is low, it can be adjusted to a lower power consumption operating mode, thereby reducing power consumption. Attached Figure Description

[0017] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0018] Figure 1 This is a structural block diagram of a network environment provided in an exemplary embodiment of this application;

[0019] Figure 2 This is a flowchart of a method for adjusting a working mode provided in an exemplary embodiment of this application;

[0020] Figure 3 This is a flowchart of a method for adjusting a working mode provided in an exemplary embodiment of this application;

[0021] Figure 4 This is a flowchart of a method for adjusting a working mode provided in an exemplary embodiment of this application;

[0022] Figure 5 This is a flowchart of a method for adjusting a working mode provided in an exemplary embodiment of this application;

[0023] Figure 6This is a flowchart of a method for adjusting a working mode provided in an exemplary embodiment of this application;

[0024] Figure 7 This is a block diagram of an adjustment device based on screen projection provided in an exemplary embodiment of this application;

[0025] Figure 8 This is a schematic diagram of the device structure of a terminal provided in an exemplary embodiment of this application. Detailed Implementation

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

[0027] First, a brief introduction to the terms used in the embodiments of this application:

[0028] Wireless screen mirroring refers to the ability to project meeting content, multimedia files, game footage, movies, videos, etc., from a mobile device onto a projection screen without the need for a connecting cable.

[0029] Traffic: It can be understood as data flow, which is a digital record, specifically referring to the amount of network data generated when mobile terminal devices transmit or exchange data.

[0030] A Wi-Fi Station (WIFI STA) is any device that connects to a wireless access point. Specifically, it can be considered a device connected to a router.

[0031] WiFi P2P: This refers to a technology that exchanges information only through wireless access points without requiring a central server. Each wireless access point functions as both a terminal device and a server.

[0032] This application provides a technical solution for reducing power consumption during screen mirroring. This application uses wireless screen mirroring as an example for illustration. Based on the actual screen mirroring traffic during the wireless screen mirroring process, the actual operating mode of the radio frequency components is adjusted to avoid continuing to use the high-power-consuming operating mode when the screen mirroring traffic is low, thereby reducing power loss during wireless screen mirroring.

[0033] Figure 1This diagram illustrates a structural block diagram of a network environment 100 provided in an exemplary embodiment of this application. The network environment 100 includes: a mobile terminal 101 supporting wireless screen projection, a large-screen device 102 supporting screen projection playback, and a router device 103. Both the mobile terminal 101 supporting wireless screen projection and the large-screen device 102 supporting screen projection playback support Wi-Fi P2P and Bluetooth Network Encapsulation Protocol (BNEP). In this embodiment, the mobile terminal 101 supporting wireless screen projection is the terminal used to execute the working mode adjustment method.

[0034] The mobile terminal 101 supporting wireless screen projection and the large-screen device 102 supporting screen projection playback are connected via network 104 in Wi-Fi P2P mode. The mobile terminal 101 supporting wireless screen projection and the router device 103 are connected via network 105 in Wi-Fi STA mode. Both network 104 in Wi-Fi P2P mode and network 105 in Wi-Fi STA mode use multi-channel concurrency (MCC) technology.

[0035] After a mobile terminal 101 supporting wireless screen projection transmits multimedia content such as videos, music, and pictures to a large-screen device 102 that supports screen projection, the mobile terminal 101 monitors the data usage. If low data usage is detected, the mobile terminal 101 enters a low-data-usage mode for data transmission, adjusting the time-sharing ratio between Wi-Fi STA mode and Wi-Fi P2P mode.

[0036] The mobile terminal 101 supporting wireless screen projection includes at least one of the following: smartphones, smart TVs, tablets, laptops, and desktop computers. This application embodiment does not limit the type of device for the mobile terminal 101 supporting wireless screen projection.

[0037] Figure 2 This is a flowchart illustrating a method for adjusting a working mode according to an exemplary embodiment of this application. The method can be performed by, for example... Figure 1 The method is executed by terminal 101 in the network environment 100 shown. The method includes:

[0038] Step 220: Monitor the screen mirroring traffic of the terminal;

[0039] Screen casting traffic is generated when a terminal that supports screen casting sends screen casting data to a display device that supports screen casting. The amount of screen casting traffic depends on the size of the screen casting data.

[0040] Based on the amount of screen-casting data transmitted in real time by terminals that support screen casting, monitor the screen casting traffic of the terminals. This screen casting traffic can be recorded in real time or statistically analyzed according to a certain period, such as the preset traffic statistics period of the terminals being 200ms or 300ms.

[0041] Step 240: Adjust the operating mode of the terminal's radio frequency components based on the screen projection traffic.

[0042] In some embodiments, the operating mode of the terminal's radio frequency (RF) component is adjusted based on the screen projection traffic obtained from the monitoring described above. It is understood that the RF component in this terminal can be a wireless RF component, which is a functional module used for receiving and transmitting signals.

[0043] Based on real-time recordings or periodically statistical analysis of screen-projection traffic, the real-time operating mode or the operating mode within a certain period of time of the terminal's RF components can be determined. The operating mode of the terminal's RF components determined based on the screen-projection traffic is compared with the current operating mode of the terminal's RF components to determine if they are consistent. If the operating mode of the terminal's RF components determined based on the screen-projection traffic is inconsistent with the current operating mode of the terminal's RF components, the current operating mode of the terminal's RF components is adjusted to the operating mode determined by the screen-projection traffic.

[0044] In summary, the method provided in this embodiment monitors the screen projection traffic of the terminal and adjusts the operating mode of the terminal's radio frequency components based on the screen projection traffic. This enables the terminal to accurately adjust the operating mode required by the terminal's radio frequency components according to the screen projection traffic. It can adjust to a lower power consumption operating mode when the screen projection traffic is low, thereby reducing power consumption and avoiding a mismatch between the operating mode and the screen projection traffic.

[0045] In some embodiments, step 240 above further includes the following sub-steps 241-243, such as... Figure 3 As shown:

[0046] Step 241: Determine the target working mode based on the screen projection traffic;

[0047] In some embodiments, a target operating mode is determined based on the terminal's screen mirroring traffic. This target operating mode is the actual operating mode of the terminal determined by the terminal's screen mirroring traffic.

[0048] For example, such as Figure 4 As shown, the steps for determining the target working mode based on screen projection traffic include the following sub-steps:

[0049] Step 2411: Check if the flow threshold is exceeded;

[0050] The screen projection traffic obtained from the monitoring of the terminal can be recorded in real time or statistically analyzed at a certain period, such as a preset traffic statistics period of 200ms or 300ms. In this embodiment, the screen projection traffic is analyzed according to a certain period.

[0051] For example, a statistical period for the terminal's screen mirroring traffic is set to 300ms, and the terminal's screen mirroring traffic is statistically analyzed within each period. The system checks whether the statistically analyzed screen mirroring traffic exceeds a traffic threshold. This traffic threshold is used to determine the status of the terminal's screen mirroring traffic within the period, and is usually preset in advance, such as 100k, 200k, or 300k, or may be adjusted in real time based on the actual data transmission during screen mirroring. In this embodiment, the example is that the traffic threshold is preset in advance, such as setting the traffic threshold to 300k.

[0052] Those skilled in the art will understand that the phrase "exceeding the flow threshold" in the embodiments of this application can be understood as "greater than the flow threshold," and "not exceeding the flow threshold" can be understood as "less than or equal to the flow threshold."

[0053] If the screen-casting traffic of the terminal is less than or equal to the traffic threshold, proceed to step 2412; if the screen-casting traffic of the terminal is greater than the traffic threshold, proceed to step 2413.

[0054] Step 2412: Determine the target working mode as the first mode;

[0055] If the screen projection traffic is less than or equal to the traffic threshold, the target working mode is determined to be the first mode.

[0056] In some embodiments, the screen projection traffic of the terminal is compared with the traffic threshold (300k). If the screen projection traffic is less than or equal to the traffic threshold (300k), such as if the screen projection traffic of the terminal is 250k and 250k is less than 300k, the target working mode is determined to be the first mode.

[0057] Step 2413: Determine the target working mode as the second mode;

[0058] If the screen mirroring traffic exceeds the traffic threshold, the target working mode is determined to be the second mode.

[0059] In some embodiments, the screen projection traffic of the terminal is compared with the traffic threshold (300k). If the screen projection traffic exceeds the traffic threshold (300k), such as if the screen projection traffic of the terminal is 400k, and 400 is greater than 300, the target working mode is determined to be the second mode and the system continues to wait for the statistics of the terminal's screen projection traffic in the next cycle.

[0060] Those skilled in the art will understand that the aforementioned first mode and second mode are only used to refer to situations where the screen projection traffic exceeds and does not exceed the traffic threshold, and are not used for sorting. The first mode can also be understood as a low-traffic mode, and the second mode can also be understood as a high-traffic mode. The screen projection power consumption of the first mode is less than that of the second mode.

[0061] In some embodiments, the target operating mode determined based on the projection traffic is compared with the current operating mode of the radio frequency component to determine whether the target operating mode determined based on the projection traffic and the current operating mode of the radio frequency component are consistent.

[0062] Step 242: If the target operating mode is consistent with the current operating mode of the RF component, keep the current operating mode of the RF component unchanged;

[0063] If the target operating mode of the screen projection traffic is consistent with the current operating mode of the terminal's radio frequency components, the current operating mode of the terminal's radio frequency components should remain unchanged.

[0064] If the target operating mode determined by the screen projection traffic is mode one, and the current operating mode of the terminal's RF component is mode one, then the current operating mode of the terminal's RF component remains unchanged as mode one. Alternatively, if the target operating mode determined by the screen projection traffic is mode two, and the current operating mode of the terminal's RF component is mode two, then the current operating mode of the terminal's RF component remains unchanged as mode two.

[0065] Step 243: If the target operating mode is inconsistent with the current operating mode of the RF component, adjust the current operating mode of the RF component.

[0066] If the target operating mode of the screen projection traffic is inconsistent with the current operating mode of the terminal's radio frequency components, the current operating mode of the terminal's radio frequency components will be adjusted.

[0067] If the target operating mode determined by the screen projection traffic is mode one, and the current operating mode of the terminal's RF component is mode two, then the current operating mode of the terminal's RF component will be adjusted to mode one. Alternatively, if the target operating mode determined by the screen projection traffic is mode two, and the current operating mode of the terminal's RF component is mode one, then the current operating mode of the terminal's RF component will be adjusted to mode two.

[0068] In some embodiments, the network time-division ratios corresponding to the first mode and the second mode are different, and the current operating mode of the radio frequency component is adjusted, that is, the network time-division ratios corresponding to the first mode and the second mode are adjusted.

[0069] If the target operating mode for the screen projection traffic is inconsistent with the current operating mode of the terminal's RF components, the network time-sharing ratio corresponding to the current operating mode of the terminal's RF components will be adjusted to match the network time-sharing ratio corresponding to the target operating mode for the screen projection traffic. This network time-sharing ratio is the percentage of time the terminal's RF components operate in WIFI STA mode and WIFI P2P mode within a unit of time.

[0070] The WIFI STA mode is used for terminals to obtain content data from data sources, including clients that provide reading or video data or servers that provide data download services. The content data includes text data, video data, and other content that can be displayed on the screen.

[0071] This WIFI P2P mode is used for the terminal to send screen projection data to the display device, which is a device that can display the screen projection data sent by the terminal. The screen projection data is obtained by the terminal processing the content data, such as compressing video data.

[0072] In some embodiments, when the terminal enters a locked screen state, the operating mode of the radio frequency component is adjusted to a first mode.

[0073] In some embodiments, the network time-sharing ratio corresponding to the first mode is such that the time the radio frequency component operates in WIFI STA mode is greater than the time it operates in WIFI P2P mode within a unit time period. For example, within a unit time of 250ms, the network time-sharing ratio WIFI STA:WIFI P2P is 220:30, or within a unit time of 300ms, the network time-sharing ratio WIFI STA:WIFI P2P is 250:50.

[0074] In some embodiments, the network time-sharing ratio corresponding to the second mode is that the time the radio frequency component operates in WIFI STA mode is less than the time it operates in WIFI P2P mode within a unit time period. For example, within a unit time of 250ms, the network time-sharing ratio WIFI STA:WIFI P2P is 50:200, or within a unit time of 300ms, the network time-sharing ratio WIFI STA:WIFI P2P is 20:280.

[0075] When the target working mode for screen projection traffic is determined to be the first mode, and the current working mode of the terminal's radio frequency component is the second mode, the current working mode of the terminal's radio frequency component is adjusted to the first mode, and the network time-sharing ratio is adjusted from the network time-sharing ratio corresponding to the second mode to the network time-sharing ratio corresponding to the first mode.

[0076] With the target operating mode for screen projection traffic determined to be the second mode, and the current operating mode of the terminal's radio frequency components being the first mode, the current operating mode of the terminal's radio frequency components is adjusted to the second mode, and the network time-sharing ratio is adjusted from the network time-sharing ratio corresponding to the first mode to the network time-sharing ratio corresponding to the second mode.

[0077] In summary, the method provided in this embodiment monitors the screen projection traffic of the terminal to determine whether the actual working mode of the terminal's radio frequency components is consistent with the current working mode. If the actual working mode of the terminal's radio frequency components is inconsistent with the current working mode, the current working mode of the terminal is adjusted, and the network time-sharing ratio is adjusted to make the terminal adopt a working mode that matches the screen projection traffic. This avoids the terminal from continuing to use a high-power-consuming working mode when the screen projection traffic is low, thereby reducing power consumption.

[0078] In some embodiments, a statistical period for the terminal's screen-casting traffic is set to 300ms, and the screen-casting traffic of the terminal is statistically analyzed within each period. The statistically analyzed screen-casting traffic of the terminal is compared with a traffic threshold. Assuming that the screen-casting traffic of the terminal in the i-th period is currently being analyzed, if the screen-casting traffic in the i-th period is less than or equal to the traffic threshold, it is checked whether the target number of periods is greater than or equal to the statistical threshold. The target number of periods is the number of periods from the i-th period where the screen-casting traffic is less than or equal to the traffic threshold. If the target number of periods is greater than or equal to the statistical threshold, the target working mode is determined to be the first mode. i is a positive integer. For example, as shown... Figure 5 As shown:

[0079] Step 24110: Detect whether the number of cycles that do not exceed the flow threshold exceeds the statistical threshold;

[0080] This statistical threshold is used to improve the accuracy of determining the target working mode. It is usually preset in advance, and can be 3, 5, or 10 times, or it may be adjusted in real time according to the data transmission situation during actual screen projection. In this embodiment, the statistical threshold is preset in advance as an example, such as setting the statistical threshold to 5.

[0081] Taking a traffic threshold of 300k as an example, if the detected screen projection traffic is less than or equal to the traffic threshold (300k), and the counted screen projection traffic of the terminal is 250k, and 250k is less than 300k, then continue to check whether the number of cycles less than or equal to the traffic threshold exceeds the statistical threshold (5). If the number of cycles less than or equal to the traffic threshold does not exceed the statistical threshold, and the count of cycles not exceeding the traffic threshold is 3, and 3k is less than 5, then continue to wait for the count of the terminal's screen projection traffic in the next cycle. If the number of cycles not exceeding the traffic threshold exceeds the statistical threshold, and the count of cycles not exceeding the traffic threshold is 8, and 8k is greater than 5, then determine the target working mode as the first mode and continue to wait for the count of the terminal's screen projection traffic in the next cycle.

[0082] Those skilled in the art will understand that the phrase "exceeding the flow threshold" in the embodiments of this application can be understood as "greater than the flow threshold," and "not exceeding the flow threshold" can be understood as "less than or equal to the flow threshold."

[0083] The target operating mode is determined based on the terminal's screen projection traffic within the i-th cycle. The current operating mode of the terminal is obtained, and it is determined whether the target operating mode determined by the terminal's screen projection traffic within the i-th cycle is consistent with the current operating mode.

[0084] If the target working mode determined by the screen projection traffic of the terminal in the i-th cycle is consistent with the current working mode, then the current working mode remains unchanged and continues to wait for the screen projection traffic to determine the target working mode in the new cycle; if the target working mode determined by the screen projection traffic of the terminal in the i-th cycle is inconsistent with the current working mode, then the working mode of the radio frequency components of the terminal and the network time-division ratio in the (i+1)-th cycle are adjusted.

[0085] For example, such as Figure 6 As shown, it includes the following steps:

[0086] Step 2414: Determine the target working mode based on the screen projection traffic;

[0087] Based on the screen-casting traffic of the terminal in the i-th period, the target working mode of the terminal in the i-th period is determined. The target working mode is the actual working mode of the terminal determined by the screen-casting traffic of the terminal.

[0088] Step 2415: Obtain the current working mode;

[0089] Obtain the operating mode of the terminal's radio frequency components at the current moment. This operating mode is the mode used by the terminal's radio frequency components to perform screen projection operations at the current moment.

[0090] Step 2416: Determine if they are consistent;

[0091] Determine whether the target operating mode of the screen projection traffic is consistent with the current operating mode of the terminal's radio frequency components.

[0092] If the target operating mode determined by the screen projection traffic is consistent with the current operating mode of the terminal's radio frequency components, then continue to execute step 2414; if the target operating mode determined by the screen projection traffic is inconsistent with the current operating mode of the terminal's radio frequency components, then execute step 2431.

[0093] Step 2431: Adjust the network time-sharing allocation;

[0094] If the target operating mode for the screen projection traffic is inconsistent with the current operating mode of the terminal's RF components, the network time-sharing ratio corresponding to the current operating mode of the terminal's RF components will be adjusted to match the network time-sharing ratio corresponding to the target operating mode for the screen projection traffic. This network time-sharing ratio is the percentage of time the terminal's RF components operate in WIFI STA mode and WIFI P2P mode within a unit of time.

[0095] The WIFI STA mode is used for terminals to obtain content data from data sources, including clients that provide reading or video data or servers that provide data download services. The content data includes text data, video data, and other content that can be displayed on the screen.

[0096] This WIFI P2P mode is used for the terminal to send screen projection data to the display device, which is a device that can display the screen projection data sent by the terminal. The screen projection data is obtained by the terminal processing the content data, such as compressing video data.

[0097] In some embodiments, the higher the time-sharing percentage of the terminal's radio frequency components operating in WIFI STA mode within a unit of time period, the greater the chance of entering sleep mode. Typically, a time threshold is set for the terminal to enter sleep mode if it operates in WIFI STA mode without data for an extended period. This includes situations where the terminal enters sleep mode when the screen is locked and the time without data transmission exceeds the time threshold, or when the terminal's screen is on but the amount of data transmitted is low and the time without data transmission exceeds the time threshold, thus entering sleep mode.

[0098] For example, when the terminal is locked, the WIFI STA mode will enter sleep mode if there is no data within 50ms; when the terminal is on but the data transmission is low, the WIFI STA mode will enter sleep mode if there is no data within 100ms.

[0099] When the terminal is locked or transmitting low data traffic, it does not need or only needs a small amount of data to maintain the consumption of screen projection. In this case, adjusting the time that the radio frequency component works in WIFI STA mode for a unit of time period is longer than the time that works in WIFI IP2P mode, so that the terminal can enter sleep mode faster when there is no data transmission or a small amount of data transmission.

[0100] In summary, the method provided in this embodiment determines the actual working mode and the current working mode by obtaining the screen projection traffic of the terminal, and judges whether the two are consistent. When the actual working mode and the current working mode of the terminal's radio frequency components are inconsistent, the network time-sharing ratio in the current working mode is adjusted so that the terminal can enter the sleep mode as soon as possible when the screen projection traffic is low, thereby reducing power consumption.

[0101] Figure 7 A schematic diagram of an operating mode adjustment device provided in an exemplary embodiment of this application is shown. The device includes:

[0102] The monitoring module 710 is used to monitor screen projection traffic.

[0103] Adjust module 720 to adjust the operating mode of the radio frequency components based on the screen projection traffic.

[0104] The device also includes:

[0105] The determination module 730 is used to determine the target working mode based on the screen projection traffic.

[0106] The adjustment module 720 is also used to adjust the current operating mode of the RF component when the target operating mode is inconsistent with the current operating mode of the RF component.

[0107] The adjustment module 720 is also used to adjust the second mode to the first mode when the target operating mode is the first mode and the operating mode of the radio frequency component is the second mode.

[0108] The adjustment module 720 is also used to adjust the first mode to the second mode when the target operating mode is the second mode and the operating mode of the radio frequency component is the first mode.

[0109] The power consumption of the first screen mirroring mode is less than that of the second screen mirroring mode.

[0110] The determination module 730 is also used to determine the target working mode as the first mode when the screen projection traffic is less than or equal to the traffic threshold.

[0111] The determination module 730 is also used to determine the target working mode as the second mode when the screen projection traffic is greater than the traffic threshold.

[0112] The monitoring module 710 is also used to monitor the screen projection traffic of the terminal on a periodic basis.

[0113] The determination module 730 is also used to detect whether the target number of cycles is greater than or equal to the statistical threshold when the screen projection traffic in the i-th cycle is less than or equal to the traffic threshold. The target number of cycles is the number of cycles in which the screen projection traffic is less than or equal to the traffic threshold, starting from the i-th cycle.

[0114] The determination module 730 is also used to determine the target working mode as the first mode when the number of target cycles is greater than or equal to the statistical threshold.

[0115] Where i is a positive integer.

[0116] The network time-sharing ratios for the first and second modes are different.

[0117] Network time-sharing ratio is the percentage of time that radio frequency components operate in WIFI STA mode and WIFI P2P mode within a unit of time period.

[0118] WIFI STA mode is used to obtain content data from the data source, while WIFI P2P mode is used to send projection data to the display device. The projection data is obtained by processing the content data.

[0119] The network time-sharing ratio corresponding to the first mode is that the time the radio frequency component works in WIFI STA mode is greater than the time it works in WIFI P2P mode within a unit time period.

[0120] The second mode corresponds to a network time-sharing ratio in which the radio frequency component operates in WIFI STA mode for a shorter time than it operates in WIFI P2P mode within a unit time period.

[0121] The adjustment module 720 is also used to adjust the operating mode of the radio frequency component to the first mode when entering the lock screen state.

[0122] Figure 8 This illustration shows a structural block diagram of a terminal 800 provided in an exemplary embodiment of this application. The terminal 800 may be a portable mobile terminal, such as a smartphone, tablet computer, MP3 player (Moving Picture Experts Group Audio Layer III), or MP4 player (Moving Picture Experts Group Audio Layer IV). The terminal 800 may also be referred to as a user device, portable terminal, or other names.

[0123] Typically, terminal 800 includes a processor 801 and a memory 802.

[0124] Processor 801 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 801 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), and PLA (Programmable Logic Array). Processor 801 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 801 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, processor 801 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.

[0125] The memory 802 may include one or more computer-readable storage media, which may be tangible and non-transitory. The memory 802 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 802 are used to store at least one instruction, which is executed by the processor 801 to implement the operating mode adjustment method provided in the embodiments of this application.

[0126] In some embodiments, the terminal 800 may also optionally include: a peripheral device interface 803 and at least one peripheral device. Specifically, the peripheral device includes at least one of: a radio frequency circuit 804, a touch display screen 805, a camera 806, an audio circuit 807, and a power supply 808.

[0127] Peripheral device interface 803 can be used to connect at least one I / O (Input / Output) related peripheral device to processor 801 and memory 802. In some embodiments, processor 801, memory 802 and peripheral device interface 803 are integrated on the same chip or circuit board; in some other embodiments, any one or two of processor 801, memory 802 and peripheral device interface 803 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.

[0128] The radio frequency (RF) circuit 804 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The RF circuit 804 communicates with communication networks and other communication devices via electromagnetic signals. The RF circuit 804 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals back into electrical signals. Optionally, the RF circuit 804 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc. The RF circuit 804 can communicate with other terminals through at least one wireless communication protocol. This wireless communication protocol includes, but is not limited to: the World Wide Web, metropolitan area networks, intranets, various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and / or Wi-Fi (Wireless Fidelity) networks. In some embodiments, the RF circuit 804 may also include circuitry related to NFC (Near Field Communication), which is not limited in this application.

[0129] The touch display screen 805 is used to display a UI (User Interface). This UI may include graphics, text, icons, videos, and any combination thereof. The touch display screen 805 also has the ability to collect touch signals on or above its surface. These touch signals can be input as control signals to the processor 801 for processing. The touch display screen 805 is used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard. In some embodiments, there may be one touch display screen 805, positioned on the front panel of the terminal 800; in other embodiments, there may be at least two touch display screens, respectively positioned on different surfaces of the terminal 800 or in a folded design; in some embodiments, the touch display screen 805 may be a flexible display screen, positioned on a curved or folded surface of the terminal 800. Furthermore, the touch display screen 805 may be configured as a non-rectangular, irregular shape, i.e., a non-rectangular screen. The touch display screen 805 may be made of materials such as LCD (Liquid Crystal Display) or OLED (Organic Light-Emitting Diode).

[0130] Camera 806 is used to capture images or videos. Optionally, camera 806 includes a front-facing camera and a rear-facing camera. Typically, the front-facing camera is used for video calls or selfies, and the rear-facing camera is used for taking photos or videos. In some embodiments, there are at least two rear-facing cameras, which are any one of a main camera, a depth-sensing camera, and a wide-angle camera, to achieve background blurring by fusion of the main camera and the depth-sensing camera, and panoramic shooting and VR (Virtual Reality) shooting by fusion of the main camera and the wide-angle camera. In some embodiments, camera 806 may also include a flash. The flash can be a single-color temperature flash or a dual-color temperature flash. A dual-color temperature flash is a combination of a warm light flash and a cool light flash, which can be used for light compensation at different color temperatures.

[0131] Audio circuit 807 provides an audio interface between the user and terminal 800. Audio circuit 807 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, converting the sound waves into electrical signals that are input to processor 801 for processing, or input to radio frequency circuit 804 for voice communication. For stereo sound acquisition or noise reduction purposes, multiple microphones may be used, each located at a different part of terminal 800. The microphone may also be an array microphone or an omnidirectional microphone. The speaker is used to convert electrical signals from processor 801 or radio frequency circuit 804 into sound waves. The speaker may be a conventional diaphragm speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can convert electrical signals not only into audible sound waves but also into inaudible sound waves for purposes such as distance measurement. In some embodiments, audio circuit 807 may also include a headphone jack.

[0132] Power supply 808 is used to supply power to the various components in terminal 800. Power supply 808 can be AC ​​power, DC power, a disposable battery, or a rechargeable battery. When power supply 808 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery that is charged via a wired line, while a wireless rechargeable battery is a battery that is charged via a wireless coil. The rechargeable battery can also be used to support fast charging technology.

[0133] In some embodiments, the terminal 800 further includes one or more sensors 809. The one or more sensors 809 include, but are not limited to, an accelerometer 810, a gyroscope 811, a pressure sensor 812, an optical sensor 813, and a proximity sensor 814.

[0134] Accelerometer 810 can detect the magnitude of acceleration on the three coordinate axes of a coordinate system established by terminal 800. For example, accelerometer 810 can be used to detect the components of gravitational acceleration on the three coordinate axes. Processor 801 can control touch screen 805 to display the user interface in landscape or portrait view based on the gravitational acceleration signal acquired by accelerometer 810. Accelerometer 810 can also be used for games or for acquiring user motion data.

[0135] The gyroscope sensor 811 can detect the orientation and rotation angle of the terminal 800. The gyroscope sensor 811, in conjunction with the accelerometer sensor 810, can collect 3D motion data from the user on the terminal 800. Based on the data collected by the gyroscope sensor 811, the processor 801 can perform the following functions: motion sensing (e.g., changing the UI based on the user's tilt), image stabilization during shooting, game control, and inertial navigation.

[0136] The pressure sensor 812 can be disposed on the side bezel of the terminal 800 and / or on the lower layer of the touch display screen 805. When the pressure sensor 812 is disposed on the side bezel of the terminal 800, it can detect the user's grip signal on the terminal 800 and perform left / right hand recognition or quick operation based on the grip signal. When the pressure sensor 812 is disposed on the lower layer of the touch display screen 805, it can control the operable controls on the UI interface based on the user's pressure operation on the touch display screen 805. The operable controls include at least one of button controls, scroll bar controls, icon controls, and menu controls.

[0137] An optical sensor 813 is used to collect ambient light intensity. In one embodiment, the processor 801 can control the display brightness of the touch screen 805 based on the ambient light intensity collected by the optical sensor 813. Specifically, when the ambient light intensity is high, the display brightness of the touch screen 805 is increased; when the ambient light intensity is low, the display brightness of the touch screen 805 is decreased. In another embodiment, the processor 801 can also dynamically adjust the shooting parameters of the camera assembly 806 based on the ambient light intensity collected by the optical sensor 813.

[0138] The proximity sensor 814, also known as a distance sensor, is typically located on the front of the terminal 800. The proximity sensor 814 is used to detect the distance between the user and the front of the terminal 800. In one embodiment, when the proximity sensor 814 detects that the distance between the user and the front of the terminal 800 is gradually decreasing, the processor 801 controls the touchscreen display 805 to switch from a screen-on state to a screen-off state; when the proximity sensor 814 detects that the distance between the user and the front of the terminal 800 is gradually increasing, the processor 801 controls the touchscreen display 805 to switch from a screen-off state to a screen-on state.

[0139] Those skilled in the art will understand that Figure 8 The structure shown does not constitute a limitation on terminal 800 and may include more or fewer components than shown, or combine certain components, or use different component arrangements.

[0140] This application also provides a computer storage medium, which stores at least one computer program. The at least one computer program is loaded and executed by a processor to implement the adjustment method of the working mode provided in the above-described method embodiments.

[0141] This application also provides a computer program product, which includes a computer program stored in a computer-readable storage medium. The computer program is read from the computer-readable storage medium and executed by the processor of a terminal, causing the terminal to perform the working mode adjustment method provided in the above-described method embodiments.

[0142] It should be understood that "multiple" as used in this article 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. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.

[0143] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.

[0144] The above description is merely an optional embodiment of this application and is not intended to limit this application. Any modifications, equivalent switching, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A method for adjusting a working mode, characterized in that, The method is executed by a terminal that supports screen mirroring, and the method includes: Monitor the screen mirroring traffic of the terminal; Determining the target working mode based on the screen projection traffic includes: determining the target working mode as a first mode when the screen projection traffic is less than or equal to a traffic threshold; and determining the target working mode as a second mode when the screen projection traffic is greater than the traffic threshold. If the target operating mode is inconsistent with the current operating mode of the radio frequency component, the current operating mode of the radio frequency component shall be adjusted. The network time-sharing ratios corresponding to the first mode and the second mode are different. The network time-sharing ratio corresponding to the first mode is that the time the radio frequency component works in WIFI STA mode is greater than the time it works in WIFI P2P mode within a unit time period. The network time-sharing ratio corresponding to the second mode is that the time the radio frequency component works in WIFI STA mode is less than the time it works in WIFI P2P mode within a unit time period. The network time-sharing ratio corresponding to the first mode is configured to enable the terminal to enter sleep mode faster than the second mode.

2. The method according to claim 1, characterized in that, When the target operating mode is inconsistent with the current operating mode of the radio frequency component, adjusting the current operating mode of the radio frequency component includes: When the target operating mode is the first mode and the operating mode of the radio frequency component is the second mode, the second mode is adjusted to the first mode; When the target operating mode is the second mode and the operating mode of the radio frequency component is the first mode, the first mode is adjusted to the second mode; wherein the screen projection power consumption of the first mode is less than that of the second mode.

3. The method according to claim 1, characterized in that, The monitoring of the screen projection traffic of the terminal includes: Monitor the screen mirroring traffic of the terminal periodically; When the screen projection traffic is less than or equal to the traffic threshold, the target working mode is determined to be the first mode, including: If the screen projection traffic in the i-th period is less than or equal to the traffic threshold, detect whether the target number of periods is greater than or equal to the statistical threshold. The target number of periods is the number of periods in which the screen projection traffic is less than or equal to the traffic threshold, starting from the i-th period. If the number of target cycles is greater than or equal to the statistical threshold, the target working mode is determined to be the first mode; Where i is a positive integer.

4. The method according to any one of claims 1 to 3, characterized in that, The network time-sharing ratio is the proportion of time that the radio frequency component operates in wireless workstation WIFISTA mode and wireless point-to-point WIFI P2P mode within a unit time period. The WIFI STA mode is used to obtain content data from a data source, and the WIFI P2P mode is used to send projection data to a display device. The projection data is obtained by processing the content data.

5. The method according to any one of claims 1 to 4, characterized in that, The method further includes: When the terminal enters the locked screen state, the operating mode of the radio frequency component is adjusted to the first mode.

6. A device for adjusting a working mode, characterized in that, The device includes: The monitoring module is used to monitor screen mirroring traffic; The determining module is used to determine a target working mode based on the screen projection traffic, including: determining the target working mode as a first mode when the screen projection traffic is less than or equal to a traffic threshold; and determining the target working mode as a second mode when the screen projection traffic is greater than the traffic threshold. An adjustment module is used to adjust the current operating mode of the radio frequency component when the target operating mode is inconsistent with the current operating mode of the radio frequency component. The network time-sharing ratios corresponding to the first mode and the second mode are different. The network time-sharing ratio corresponding to the first mode is that the time the radio frequency component works in WIFI STA mode is greater than the time it works in WIFI P2P mode within a unit time period. The network time-sharing ratio corresponding to the second mode is that the time the radio frequency component works in WIFI STA mode is less than the time it works in WIFI P2P mode within a unit time period. The network time-sharing ratio corresponding to the first mode is configured to enable the terminal to enter sleep mode faster than the second mode.

7. The apparatus according to claim 6, characterized in that, The adjustment module is further configured to adjust the second mode to the first mode when the target operating mode is the first mode and the operating mode of the radio frequency component is the second mode; the adjustment module is further configured to adjust the first mode to the second mode when the target operating mode is the second mode and the operating mode of the radio frequency component is the first mode. The power consumption of the first mode is less than that of the second mode.

8. The apparatus according to claim 6, characterized in that, The monitoring module is also used to monitor the screen projection traffic of the terminal periodically. The determining module is further configured to detect whether the target number of cycles is greater than or equal to a statistical threshold when the screen projection traffic in the i-th cycle is less than or equal to the traffic threshold. The target number of cycles is the number of cycles in which the screen projection traffic is less than or equal to the traffic threshold, starting from the i-th cycle. The determining module is further configured to determine the target working mode as the first mode when the number of target cycles is greater than or equal to the statistical threshold. Where i is a positive integer.

9. A terminal, characterized in that, The terminal includes a processor and a memory, wherein the memory stores at least one computer program, and the at least one computer program is loaded and executed by the processor to implement the adjustment method of the working mode as described in any one of claims 1 to 5.

10. A computer-readable storage medium, characterized in that, The readable storage medium stores at least one program, which is loaded and executed by a processor to implement the method for adjusting the operating mode as described in any one of claims 1 to 5.

11. A computer program product, characterized in that, The computer program product includes at least one program segment stored in a computer-readable storage medium; the processor of the communication device reads the at least one program segment from the computer-readable storage medium, and the processor executes the at least one program segment, causing the communication device to perform the adjustment method of the operating mode as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Wireless screen projection connection method and device

    CN110602319A

  • Method, device and apparatus for determining working mode of WIFI device, and storage medium

    CN111405591A

  • Time slice configuration method and electronic equipment

    CN114598414A