Smart phone screen projection method and device
By monitoring the WIFI environment and dynamically adjusting the frequency band during the smartphone screen, the problem of delayed screen delay in the existing technology has been solved, and more efficient data transmission and better user experience are realized.
Patent Information
- Application Number
- CN202411557183.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-04
- Publication Date
- 2025-01-24
- Estimated Expiration
- 2044-11-04
AI Technical Summary
The existing smartphone screen projection technology mainly transmits data through a single WiFi frequency band, making it difficult to make full use of WiFi link resources, resulting in poor data transmission quality and user experience.
By monitoring the screen device in the current WIFI environment, and when the screen delay is greater than the preset value, the smartphone is enabled to transmit the screen packet through the first and second bands of the WiFi, and dynamically adjust the frequency band. Use to optimize delay.
Optimized screen delay through dual -frequency band transmission, improved the transmission quality and user experience of the screening business, especially in the complex network environment to ensure that the screen screen is smooth and reduce the stuttering phenomenon.
Smart Images

Figure CN119052874B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of mobile phone screen projection, and more particularly to a method and device for smart phone screen projection. Background Art
[0002] With the rapid development of wireless communication technology and multimedia technology, smartphones have become an indispensable tool in people's daily lives. Among them, the screen projection function of smartphones can project the content on the phone screen to large-screen devices such as smart TVs and computers, allowing users to share and watch multimedia content more conveniently.
[0003] Existing smartphone screen projection technology mainly uses WiFi to transmit data to realize screen projection of mobile phone screen content. The smartphone needs to be in the same WiFi network as the device being projected. WiFi can operate in different frequency bands, and different frequency bands have different transmission speeds and stability and different power consumption.
[0004] Existing technologies mainly use one of the WiFi frequency bands for data transmission, such as 5G. Data transmission only on a single frequency band makes it difficult to fully utilize WiFi link resources, and thus it is difficult to better perform data transmission. How to solve this technical problem is a technical challenge that technicians in this field need to overcome. Summary of the invention
[0005] In order to at least partially solve the above technical problems, the present application provides a method and device for smart phone screen projection.
[0006] In a first aspect, a smart phone screen projection method provided in the present application adopts the following technical solution.
[0007] S101, the smart phone monitors the projection devices in the current WiFi environment and displays the projection devices that can be used for connection in a list;
[0008] S102. After the user selects one of the screen projection devices based on the displayed list for connection, a first frequency band is selected for transmission of the screen projection message;
[0009] S103, when the screen projection message is transmitted, recording the time when the screen projection message is sent and the time when the screen projection message is received to obtain the screen projection delay;
[0010] S104, determining whether the screen projection delay is greater than a preset delay; if so, executing S105;
[0011] S105, controlling the network switching module to send a first instruction so that the smart phone transmits the screen projection message through the first frequency band and the second frequency band of WiFi; the frequency of the first frequency band is greater than the frequency of the second frequency band;
[0012] S106. After S105 enables the smartphone to transmit screen projection messages through the first frequency band and the second frequency band of WiFi, if the screen projection delay is less than the preset delay within the preset time, the network switching module is controlled to send a second instruction to enable the smartphone to transmit the screen projection message only through the first frequency band of WiFi, and return to S104.
[0013] By adopting the above technical solution, during the screen projection process, when it is detected that the screen projection delay is greater than the preset delay value, the delay is optimized by enabling dual-band transmission, thereby effectively improving the transmission quality and user experience of the screen projection service.
[0014] Optionally, the method further includes:
[0015] When the smartphone is not in a charging state, obtaining a current power value of the smartphone;
[0016] Obtaining an estimated screen projection duration of the screen projection message based on the attribute information of the screen projection message; the attribute information includes the type of the screen projection message;
[0017] Obtain a list of background programs running on the smartphone, and divide all programs in the list of background programs into basic running programs, screen projection related programs, and other programs;
[0018] The power consumption per unit time of the basic running program is obtained based on the background power management software of the smart phone and recorded as the first power consumption;
[0019] The power consumption per unit time of the screen projection related program obtained based on the background power management software of the smart phone is recorded as the second power consumption; the second power consumption corresponds to the first mode, and in the first mode, the smart phone transmits the screen projection message through the first frequency band and the second frequency band of WiFi;
[0020] The total power consumption per unit time of other programs obtained based on the background power management software of the smart phone is recorded as the third power consumption;
[0021] Based on the current power value, the first power consumption, the second power consumption and the third power consumption, a first estimated standby time of the smart phone is obtained; it is determined whether the estimated screen projection time is less than the first estimated standby time; if so, an interactive button is generated; the interactive button is used to close all the other programs after being touched.
[0022] Optionally, after the interactive key is touched, the method further includes:
[0023] Obtaining a second estimated standby time of the smart phone based on the current power value, the first power consumption, and the second power consumption;
[0024] Determining whether the estimated screen projection duration is less than the second estimated standby duration;
[0025] If it is less than that, the basic running programs and screen projection related programs will be kept running;
[0026] If it is greater than, the total available power of the screen projection related software is obtained based on the estimated standby time, the first power consumption and the current power value;
[0027] Obtaining average power consumption of the screen projection related software based on the total available power and the estimated screen projection duration;
[0028] Based on the average power consumption, the proportion of the first mode and the second mode in the expected screen projection duration is allocated; in the second mode, the smart phone transmits the screen projection message only through the first frequency band of WiFi;
[0029] Based on the ratio of the first mode to the second mode, a first allocated duration for the first mode and a second allocated duration for the second mode are obtained; the sum of the first allocated duration and the second allocated duration is equal to the estimated projection duration;
[0030] During the screen projection process of the smart phone, the duration of running the first mode is the first allocated duration, and the duration of running the second mode is the second allocated duration.
[0031] Optionally, during the screen projection process of the smart phone, the duration of running the first mode is the first allocated duration, and the duration of running the second mode is the second allocated duration, including:
[0032] Obtain hotspot information in the screen projection message;
[0033] Calculate the total duration of all hotspot information;
[0034] Determine whether the total duration is less than the first allocated duration, and if so, readjust the first allocated duration to the total duration and adaptively adjust the second allocated duration;
[0035] During the first allocated time, only the first mode is used for screen projection.
[0036] Optionally, calculate the total duration of all hotspot information, including:
[0037] Set the minimum mode switching time interval t;
[0038] Starting from the first hotspot information, it is determined in turn whether the interval between two adjacent hotspot information is greater than the switching time interval t; if not, the interval is taken as a part of the total time and recorded as the waiting time; if so, the mode is switched after the previous hotspot information of the two adjacent hotspot information is played;
[0039] The total duration of all hotspot information is obtained based on the playing duration of all the hotspot information and all the waiting durations.
[0040] Optionally, the current power value of the smart phone is detected and compared with a warning value; if the current power value is less than the warning value, the smart phone sends a first prompt message; the first prompt message is used to prompt the user to charge; after detecting that the smart phone is recharging, return to S104.
[0041] Optionally, the method further includes:
[0042] Identify the current screen projection scene based on the geographic location information obtained by the smart phone and the network information of the current WiFi; the screen projection scene includes a first scene and a second scene; the first scene represents an office scene, and the second scene represents a private scene;
[0043] When the screen projection scenario is the first scenario, the smart phone performs background application management so that no message box reminder appears during the screen projection process.
[0044] In a second aspect, the present application provides a smart phone screen projection device which adopts the following technical solution.
[0045] A smart phone screen projection device, comprising:
[0046] The first processing module is used for: the smart phone monitors the screen projection devices in the current WiFi environment and displays the screen projection devices that can be used for connection in a list;
[0047] The second processing module is used to: after the user selects one of the screen projection devices for connection based on the displayed list, select the first frequency band to transmit the screen projection message;
[0048] The third processing module is used to: when the screen projection message is transmitted, record the time when the screen projection message is sent and the time when the screen projection message is received to obtain the screen projection delay;
[0049] The fourth processing module is used to: determine whether the screen projection delay is greater than a preset delay;
[0050] A fifth processing module is used to: when the screen projection delay is greater than a preset delay, control the network switching module to send a first instruction so that the smart phone transmits the screen projection message through the first frequency band and the second frequency band of WiFi; the frequency of the first frequency band is greater than the frequency of the second frequency band;
[0051] The sixth processing module is used to: when the screen projection delay is less than the preset delay and is less than the preset delay within a preset time length, control the network switching module to send a second instruction so that the smart phone transmits the screen projection message only through the first frequency band of WiFi.
[0052] In a third aspect, the present application discloses an electronic device, comprising a memory and a processor, wherein the memory stores a computer program that is loaded by the processor and executes any of the above methods.
[0053] In a fourth aspect, the present application discloses a computer-readable storage medium storing a computer program that can be loaded by a processor and execute any of the above methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 This is a flow chart of a method for screen projection of a smart phone according to an embodiment of the present application;
[0055] Figure 2 This is a device block diagram of a smart phone screen projection device according to an embodiment of the present application;
[0056] In the figure, 201 is a first processing module; 202 is a second processing module; 203 is a third processing module; 204 is a fourth processing module; 205 is a fifth processing module; and 206 is a sixth processing module. DETAILED DESCRIPTION
[0057] The following is combined with Figure 1-2 The present application is further described with specific embodiments:
[0058] First of all, it should be noted that in the description of this application, if the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inside", "outside" and other directional words appear, the orientation or position relationship indicated is based on the orientation or position relationship shown in the drawings, which is only for the convenience of description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of this application; in addition, if the terms "first", "second", "third" and other numerical quantifiers appear, they are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in this application, unless otherwise clearly specified and limited, if the terms "installed", "connected", and "connected" appear, they should be understood in a broad sense, for example, it can be a fixed connection, or a detachable connection, a limited connection such as an interference fit, a transition fit, or an integral connection; it can be directly connected or indirectly connected through an intermediate medium; therefore, for ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to the specific circumstances.
[0059] The present application embodiment discloses a method for projecting a screen of a smart phone. Figure 1 As an implementation of a smart phone screen projection method, a smart phone screen projection method includes the following steps:
[0060] Step S101, the smartphone monitors the screen projection devices in the current WiFi environment and displays the screen projection devices that can be used for connection in a list. Specifically, the screen projection device refers to a device that can receive and display the screen content from the smartphone, and common screen projection devices include televisions and projectors.
[0061] Step S102: After the user selects one of the projection devices based on the displayed list for connection, the first frequency band is selected for transmission of the projection message. Specifically, the first frequency band refers to one of the frequency bands in which Wi-Fi works. In this application, the first frequency band is the 5 GHz frequency band, which has a higher data transmission rate and lower interference.
[0062] Step S103: When the screen projection message is transmitted, record the time when the screen projection message is sent and the time when the screen projection message is received to obtain the screen projection delay. Specifically, the screen projection delay refers to the time interval from the sending of the screen projection message to the confirmation of receipt by the projected device. The size of the screen projection delay directly affects the quality of the screen projection experience.
[0063] Step S104, determine whether the screen projection delay is greater than the preset delay; if greater, execute S105.
[0064] Step S105, control the network switching module to send a first instruction so that the smart phone transmits the screen projection message through the first frequency band and the second frequency band of WiFi; the frequency of the first frequency band is greater than the frequency of the second frequency band. Specifically, the second frequency band refers to another frequency band of Wi-Fi operation. In this application, the second frequency band is the 2.4GHz frequency band, which has a better coverage but a lower data transmission rate than the first frequency band.
[0065] Step S106, after S105 enables the smartphone to transmit the screen projection message through the first frequency band and the second frequency band of WiFi, if the screen projection delay is less than the preset delay within the preset time, the network switching module is controlled to send a second instruction to enable the smartphone to transmit the screen projection message only through the first frequency band of WiFi, and return to S104. The above steps S104 to S106 are repeated in a rolling manner.
[0066] The scheme of this application is illustrated below with examples.
[0067] The smartphone starts scanning the screen projection devices in the current WiFi environment and displays the available devices found to the user in the form of a list. The user selects a screen projection device from the displayed device list, such as a smart TV at home, and completes the connection through the interface on the smartphone. After the connection is completed, the smartphone selects the 5GHz frequency band (i.e., the first frequency band) by default to transmit the screen projection message. After the screen projection starts, the smartphone records the sending time and receiving time of each screen projection message, thereby calculating the delay of the screen projection message. The smartphone checks whether the calculated screen projection delay exceeds a preset threshold. Assuming that this threshold is 10ms, if the screen projection delay is greater than 10ms, step S105 is entered; otherwise, if the screen projection delay is less than or equal to 10ms, step S106 is entered. If the screen projection delay is greater than the preset value, the smartphone will send an instruction through the internal network switching module to activate the 2.4GHz frequency band (i.e., the second frequency band), so that the smartphone can use both the 5GHz and 2.4GHz frequency bands to transmit the screen projection message. Reduce the delay through multi-band transmission. Then, the process returns to step S103 and starts monitoring the screen projection delay again. If all delays are lower than the preset value of 10ms within a period of time (for example, 5 consecutive monitoring screen projection delays), the smartphone also sends another instruction through the network switching module to turn off the 2.4GHz frequency band and only keep the 5GHz frequency band for the transmission of screen projection messages. This can save power while maintaining a good screen projection experience.
[0068] In summary, by monitoring the screen projection devices in the current WiFi environment and connecting to the display devices that need to be projected; during the screen projection process, when it is detected that the screen projection delay is greater than the preset value, the delay is optimized by enabling dual-band transmission, thereby effectively improving the transmission quality and user experience of the screen projection service. Especially in complex network environments, this method can dynamically adjust the frequency band usage to ensure smooth projection and reduce the jamming phenomenon. When the network is good, a single frequency band is used for data transmission to reduce the power consumption of the device and the utilization of network transmission resources.
[0069] As a specific implementation of a method for projecting screen on a smart phone, the method further includes:
[0070] When the smartphone is not in a charging state, obtaining a current power value of the smartphone;
[0071] The estimated projection duration of the projection message is obtained based on the attribute information of the projection message; the attribute information includes the type of the projection message. Specifically, the attribute information includes various feature information about the projection message, such as the type of message (video, picture, etc.). For example, if the projection message is a video, the estimated projection duration can be obtained based on the playback duration of the video. If the projection message is a PPT document, the estimated projection duration can be obtained based on the number of pages and the historical presentation duration.
[0072] Obtain a list of background programs running on the smartphone, and divide all programs in the list of background programs into basic running programs, screen projection-related programs, and other programs. Specifically, basic running programs refer to service programs that are essential to the operation of smartphones, such as operating system core services, security protection programs, etc. Such programs are usually not directly closed by users. Screen projection-related programs refer to software or services specifically used to support screen projection functions, such as screen projection applications and WiFi management services. Other programs refer to all applications and services except basic running programs and screen projection-related programs.
[0073] The power consumption per unit time of the basic running program obtained based on the background power management software of the smart phone is recorded as the first power consumption. The power consumption per unit time refers to the power consumed per unit time when the smart phone runs a specific type of program.
[0074] The power consumption per unit time of the screen projection related program obtained based on the background power management software of the smart phone is recorded as the second power consumption; the second power consumption corresponds to the first mode, and in the first mode, the smart phone transmits the screen projection message through the first frequency band and the second frequency band of WiFi;
[0075] The total power consumption per unit time of other programs obtained based on the background power management software of the smart phone is recorded as the third power consumption;
[0076] Based on the current power value, the first power consumption, the second power consumption and the third power consumption, a first estimated standby time of the smart phone is obtained; it is determined whether the estimated screen projection time is less than the first estimated standby time; if so, an interactive button is generated; the interactive button is used to close all the other programs after being touched.
[0077] Specifically, when the smartphone is not in a charging state, the current power value is obtained, and the estimated screen projection time is calculated based on the attribute information of the screen projection message. The smartphone uses the background power management software to divide all background programs into basic running programs, screen projection-related programs and other programs, and obtains their power consumption per unit time respectively. By calculating the current power value and the power consumption of various programs, the first estimated standby time of the smartphone when casting the screen is obtained. If the estimated screen projection time is longer than the first estimated standby time, an interactive button is generated. After the user touches this button, all unnecessary background programs can be closed with one click, thereby extending the standby time and ensuring smooth screen projection.
[0078] As a specific implementation of a method for projecting screen on a smart phone, after the interactive button is touched, the method further includes:
[0079] Obtaining a second estimated standby time of the smart phone based on the current power value, the first power consumption, and the second power consumption;
[0080] Determining whether the estimated screen projection duration is less than the second estimated standby duration;
[0081] If it is less than that, the basic running programs and screen projection related programs will be kept running;
[0082] If it is greater than, the total available power of the screen projection related software is obtained based on the estimated standby time, the first power consumption and the current power value;
[0083] Obtaining average power consumption of the screen projection related software based on the total available power and the estimated screen projection duration;
[0084] Based on the average power consumption, the proportion of the first mode and the second mode in the expected screen projection duration is allocated; in the second mode, the smart phone transmits the screen projection message only through the first frequency band of WiFi;
[0085] Based on the ratio of the first mode to the second mode, a first allocated duration for the first mode and a second allocated duration for the second mode are obtained; the sum of the first allocated duration and the second allocated duration is equal to the estimated projection duration;
[0086] During the screen projection process of the smart phone, the duration of running the first mode is the first allocated duration, and the duration of running the second mode is the second allocated duration.
[0087] Specifically, during the screen projection process of a smartphone, after the user touches the interactive button, the second estimated standby time is recalculated based on the current power value, the first power consumption per unit time of the basic running program, and the second power consumption per unit time of the screen projection related program in the dual-band transmission mode. If the expected screen projection time is less than the second estimated standby time, the normal operation state of the basic running program and the screen projection related program is maintained. If the expected screen projection time is greater than the second estimated standby time, the system will calculate the total available power of the screen projection related software based on the estimated standby time, the first power consumption and the current power value, and derive the average power consumption of the screen projection related software based on the total available power and the expected screen projection time. According to the ratio of the average power consumption allocated to the first mode (dual-band transmission) and the second mode (single-band transmission) in the expected screen projection time, by comparing the ratio of the second power consumption to the fourth power consumption, the first allocated time of the first mode and the second allocated time of the second mode are obtained. Ultimately, during the smartphone screen projection process, the system will run the dual-band transmission mode according to the calculated first allocated duration, and run the single-band transmission mode according to the second allocated duration, thereby ensuring that the entire screen projection process is both efficient and energy-saving, while also ensuring that the smartphone has sufficient power throughout the expected screen projection duration, thereby improving the user experience.
[0088] As a specific implementation of a method for projecting a screen on a smart phone, during the projecting process of the smart phone, the duration of running the first mode is the first allocated duration, and the duration of running the second mode is the second allocated duration, including:
[0089] Obtain hotspot information in the screen casting message. Specifically, the hotspot information in the screen casting message refers to key time points or important event information contained in the screen casting message, such as key time points marked in the video and areas with dense bullet comments.
[0090] Calculate the total duration of all hotspot information;
[0091] Determine whether the total duration is less than the first allocated duration, and if so, readjust the first allocated duration to the total duration and adaptively adjust the second allocated duration;
[0092] During the first allocated time, only the first mode is used for screen projection.
[0093] Specifically, by dynamically adjusting the use time of the dual-band transmission mode, smartphones can fully utilize the advantages of the dual-band during periods when hotspot information is dense and requires fast transmission, thereby improving transmission efficiency and reducing latency. In other periods, the use time of the dual-band mode is appropriately reduced according to actual conditions, and the single-band mode is used instead, thereby effectively saving battery energy and extending the use time of the device while ensuring the quality of screen projection.
[0094] As one implementation of a method for projecting a screen on a smart phone, the total duration of all hotspot information is calculated, including:
[0095] Set the minimum mode switching time interval t;
[0096] Starting from the first hotspot information, it is determined in turn whether the interval between two adjacent hotspot information is greater than the switching time interval t; if not, the interval is taken as a part of the total time and recorded as the waiting time; if so, the mode is switched after the previous hotspot information of the two adjacent hotspot information is played;
[0097] The total duration of all hotspot information is obtained based on the playing duration of all the hotspot information and all the waiting durations.
[0098] Specifically, by setting the minimum mode switching time interval, the importance and continuity of hot information can be identified and distinguished to avoid frequent mode switching. For closely arranged hot information, the system treats them as a continuous hot playback segment and counts the short waiting time in the middle into the total duration, so as to maintain high transmission efficiency; for hot information with a longer interval, the mode is switched after the current hot information is played, reducing the number of unnecessary mode switches.
[0099] As one implementation of a method for projecting screen on a smartphone, the method further includes: detecting a current battery level of the smartphone and comparing the current battery level with a warning value; if the current battery level is less than the warning value, the smartphone issues a first prompt message; the first prompt message is used to prompt a user to charge; after detecting that the smartphone is recharging, returning to S104.
[0100] Specifically, during the screen projection process of a smartphone, the smartphone will periodically detect the current battery level and compare it with the preset warning value. If it is detected that the current battery level is lower than the warning value, the smartphone will issue a first prompt message to remind the user that the battery is low and recommend charging. When the user responds to the prompt and charges the smartphone, the smartphone will return to the previous projection state to continue the projection operation. By monitoring the battery level in real time and reminding the user to charge in a timely manner when the battery level is close to the warning value, the screen projection interruption caused by power exhaustion is effectively prevented, ensuring the continuity and stability of the user experience.
[0101] As one implementation of a method for projecting screen on a smart phone, the method further includes:
[0102] Identify the current screen projection scene based on the geographic location information obtained by the smart phone and the network information of the current WiFi; the screen projection scene includes a first scene and a second scene; the first scene represents an office scene, and the second scene represents a private scene;
[0103] When the screen projection scenario is the first scenario, the smart phone performs background application management so that no message box reminder appears during the screen projection process.
[0104] Specifically, during the screen projection process of a smartphone, the system will identify the current projection scene based on the acquired geographic location information and the current WiFi network information. When the current projection scene is identified as an office scene, the smartphone will automatically manage the background application to ensure that no message box reminders appear during the projection process. By intelligently identifying the projection scene, the system can automatically adjust the behavior of the device in the office environment to avoid unnecessary message reminders interfering with meetings or presentations, thereby improving professionalism and user experience.
[0105] As one implementation of a smart phone screen projection device, the invention comprises:
[0106] The first processing module 201 is used for: the smart phone monitors the screen projection devices in the current WiFi environment and displays the screen projection devices that can be used for connection in a list;
[0107] The second processing module 202 is used to: after the user selects one of the screen projection devices for connection based on the displayed list, select the first frequency band to transmit the screen projection message;
[0108] The third processing module 203 is used to: when the screen projection message is transmitted, record the time when the screen projection message is sent and the time when the screen projection message is received to obtain the screen projection delay;
[0109] The fourth processing module 204 is used to determine whether the screen projection delay is greater than a preset delay;
[0110] The fifth processing module 205 is used to: when the screen projection delay is greater than the preset delay, control the network switching module to send a first instruction so that the smart phone transmits the screen projection message through the first frequency band and the second frequency band of WiFi; the frequency of the first frequency band is greater than the frequency of the second frequency band;
[0111] The sixth processing module 206 is used to: when the screen projection delay is less than the preset delay and is less than the preset delay within the preset time length, control the network switching module to send a second instruction so that the smart phone transmits the screen projection message only through the first frequency band of WiFi.
[0112] The embodiment of the present application also discloses an electronic device.
[0113] Specifically, the device includes a memory and a processor, and the memory stores a computer program that can be loaded by the processor and execute any of the above-mentioned smartphone screen projection methods.
[0114] The embodiment of the present application also discloses a computer-readable storage medium. Specifically, the computer-readable storage medium stores a computer program that can be loaded by a processor and execute any of the above-mentioned smart phone screen projection methods, and the computer-readable storage medium includes, for example: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0115] It should be noted that the above embodiments are only used to illustrate the present application and are not intended to limit the technical solutions described in the present application. Although the present application has been described in detail in this specification with reference to the above embodiments, a person of ordinary skill in the art should understand that a person of ordinary skill in the art can still modify or make equivalent substitutions to the present application, and all technical solutions and improvements thereof that do not depart from the spirit and scope of the present application should be included in the scope of the claims of the present application.
Claims
1. A method for projecting screen of a smart phone, characterized in that: include: S101, the smart phone monitors the projection devices in the current WiFi environment and displays the projection devices that can be used for connection in a list; S102. After the user selects one of the screen projection devices based on the displayed list for connection, a first frequency band is selected for transmission of the screen projection message; S103, when the screen projection message is transmitted, recording the time when the screen projection message is sent and the time when the screen projection message is received to obtain the screen projection delay; S104, determining whether the screen projection delay is greater than a preset delay; if so, executing S105; S105, controlling the network switching module to send a first instruction so that the smart phone transmits the screen projection message through the first frequency band and the second frequency band of WiFi; the frequency of the first frequency band is greater than the frequency of the second frequency band; S106. After the smartphone is enabled to transmit the screen projection message through the first frequency band and the second frequency band of WiFi at S105, if the screen projection delay is less than the preset delay within the preset time, the network switching module is controlled to send a second instruction to enable the smartphone to transmit the screen projection message only through the first frequency band of WiFi, and return to S104; The method further comprises: When the smartphone is not in a charging state, obtaining a current power value of the smartphone; Obtaining an estimated screen projection duration of the screen projection message based on the attribute information of the screen projection message; the attribute information includes the type of the screen projection message; Obtain a list of background programs running on the smartphone, and divide all programs in the list of background programs into basic running programs, screen projection related programs, and other programs; The power consumption per unit time of the basic running program is obtained based on the background power management software of the smart phone and recorded as the first power consumption; The power consumption per unit time of the screen projection related program obtained based on the background power management software of the smart phone is recorded as the second power consumption; the second power consumption corresponds to the first mode, and in the first mode, the smart phone transmits the screen projection message through the first frequency band and the second frequency band of WiFi; The total power consumption per unit time of other programs obtained based on the background power management software of the smart phone is recorded as the third power consumption; Based on the current power value, the first power consumption, the second power consumption and the third power consumption, a first estimated standby time of the smart phone is obtained; judging whether the estimated screen projection time is less than the first estimated standby time; if so, generating an interactive button; the interactive button is used to close all the other programs after being touched; After the interactive key is touched, the method further includes: Obtaining a second estimated standby time of the smart phone based on the current power value, the first power consumption, and the second power consumption; Determining whether the estimated screen projection duration is less than the second estimated standby duration; If it is less than that, the basic running programs and screen projection related programs will be kept running; If it is greater than, the total available power of the screen projection related software is obtained based on the estimated standby time, the first power consumption and the current power value; Obtaining average power consumption of the screen projection related software based on the total available power and the estimated screen projection duration; Based on the average power consumption, the proportion of the first mode and the second mode in the expected screen projection duration is allocated; in the second mode, the smart phone transmits the screen projection message only through the first frequency band of WiFi; Based on the ratio of the first mode to the second mode, a first allocated duration for the first mode and a second allocated duration for the second mode are obtained; the sum of the first allocated duration and the second allocated duration is equal to the estimated projection duration; During the screen projection process of the smart phone, the duration of running the first mode is the first allocated duration, and the duration of running the second mode is the second allocated duration.
2. A method for projecting screen on a smart phone according to claim 1, characterized in that: During the screen projection process of the smart phone, the duration of running the first mode is the first allocated duration, and the duration of running the second mode is the second allocated duration, including: Obtain hotspot information in the screen projection message; Calculate the total duration of all hotspot information; Determine whether the total duration is less than the first allocated duration, and if so, readjust the first allocated duration to the total duration and adaptively adjust the second allocated duration; During the first allocated time, only the first mode is used for screen projection.
3. A smart phone screen projection method according to claim 2, characterized in that: Calculate the total duration of all hotspot information, including: Set the minimum mode switching time interval t; Starting from the first hotspot information, it is determined in turn whether the interval between two adjacent hotspot information is greater than the switching time interval t; if not, the interval is taken as a part of the total time and recorded as the waiting time; if so, the mode is switched after the previous hotspot information of the two adjacent hotspot information is played; The total duration of all hotspot information is obtained based on the playing duration of all the hotspot information and all the waiting durations.
4. A method for projecting screen on a smart phone according to claim 3, characterized in that: The method also includes: detecting the current power value of the smart phone and comparing the current power value with a warning value; if the current power value is less than the warning value, the smart phone sends a first prompt message; the first prompt message is used to prompt the user to charge; after detecting that the smart phone is recharging, returning to S104.
5. A method for projecting screen on a smart phone according to claim 4, characterized in that: The method further comprises: Identify the current screen projection scene based on the geographic location information obtained by the smart phone and the network information of the current WiFi; the screen projection scene includes a first scene and a second scene; the first scene represents an office scene, and the second scene represents a private scene; When the screen projection scenario is the first scenario, the smart phone performs background application management so that no message box reminder appears during the screen projection process.
6. A smart phone screen projection device, characterized in that: include: The first processing module is used for: the smart phone monitors the screen projection devices in the current WiFi environment and displays the screen projection devices that can be used for connection in a list; The second processing module is used to: after the user selects one of the screen projection devices for connection based on the displayed list, select the first frequency band to transmit the screen projection message; The third processing module is used to: when the screen projection message is transmitted, record the time when the screen projection message is sent and the time when the screen projection message is received to obtain the screen projection delay; The fourth processing module is used to: determine whether the screen projection delay is greater than a preset delay; A fifth processing module is used to: when the screen projection delay is greater than a preset delay, control the network switching module to send a first instruction so that the smart phone transmits the screen projection message through the first frequency band and the second frequency band of WiFi; the frequency of the first frequency band is greater than the frequency of the second frequency band; The sixth processing module is used to: when the screen projection delay is less than the preset delay and is less than the preset delay within the preset time length, control the network switching module to send a second instruction so that the smart phone transmits the screen projection message only through the first frequency band of WiFi; Wherein, when the smart phone is not in a charging state, obtaining the current power value of the smart phone; Obtaining an estimated screen projection duration of the screen projection message based on the attribute information of the screen projection message; the attribute information includes the type of the screen projection message; Obtain a list of background programs running on the smartphone, and divide all programs in the list of background programs into basic running programs, screen projection related programs, and other programs; The power consumption per unit time of the basic running program is obtained based on the background power management software of the smart phone and recorded as the first power consumption; The power consumption per unit time of the screen projection related program obtained based on the background power management software of the smart phone is recorded as the second power consumption; the second power consumption corresponds to the first mode, and in the first mode, the smart phone transmits the screen projection message through the first frequency band and the second frequency band of WiFi; The total power consumption per unit time of other programs obtained based on the background power management software of the smart phone is recorded as the third power consumption; Based on the current power value, the first power consumption, the second power consumption and the third power consumption, a first estimated standby time of the smart phone is obtained; judging whether the estimated screen projection time is less than the first estimated standby time; if so, generating an interactive button; the interactive button is used to close all the other programs after being touched; After the interactive key is touched, the method further includes: Obtaining a second estimated standby time of the smart phone based on the current power value, the first power consumption, and the second power consumption; Determining whether the estimated screen projection duration is less than the second estimated standby duration; If it is less than that, the basic running programs and screen projection related programs will be kept running; If it is greater than, the total available power of the screen projection related software is obtained based on the estimated standby time, the first power consumption and the current power value; Obtaining average power consumption of the screen projection related software based on the total available power and the estimated screen projection duration; Based on the average power consumption, the proportion of the first mode and the second mode in the expected screen projection duration is allocated; in the second mode, the smart phone transmits the screen projection message only through the first frequency band of WiFi; Based on the ratio of the first mode to the second mode, a first allocated duration for the first mode and a second allocated duration for the second mode are obtained; the sum of the first allocated duration and the second allocated duration is equal to the estimated projection duration; During the screen projection process of the smart phone, the duration of running the first mode is the first allocated duration, and the duration of running the second mode is the second allocated duration.
Citation Information
Patent Citations
WLAN (Wireless Local Area Network) communication method and related device
CN114567336A
Application preloading method and related equipment thereof
CN115480836A
Screen mirroring method and apparatus, electronic device, and storage medium
WO2024139478A1