Method and device for improving screen projection stability and storage medium
By monitoring and processing network status data, and using signal enhancement algorithms and network switching mechanisms, the signal fluctuations and lags caused by the network environment during screen projection are solved, and the stability and continuity of screen projection are achieved.
Patent Information
- Application Number
- CN202411176246.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-26
- Publication Date
- 2024-11-26
AI Technical Summary
During the screen projection process, due to the influence of the network environment, it is easy to cause signal fluctuations, lags and screen loss. The existing technology lacks effective measures to ensure the stability of screen projection.
By monitoring the network status data of the target terminal, the signal enhancement algorithm is used to process when determining poor signal quality, and in a multi-network environment, the network switching mechanism is used to select the network with the highest comprehensive performance for seamless switching, ensuring the continuity of the projection and stability.
It effectively improves the stability of the screen projection, ensures the continuity of data transmission and signal stability during the screen projection process, and solves the problem of instability of screen projection under the influence of the network environment.
Smart Images

Figure CN119031173A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of information screen projection, and in particular to a method, device and storage medium for improving the stability of screen projection. Background Art
[0002] At present, during the screen projection process, the screen projection is easily unstable due to the influence of the network environment. For example, due to the influence of signal fluctuations, it is easy to have unstable screen projection such as freezing or picture loss. In addition, the traditional screen projection method lacks effective measures to solve the problem of signal fluctuations and cannot guarantee the stability of screen projection.
[0003] Therefore, it is necessary to provide a solution that can effectively improve the stability of screen projection. Summary of the invention
[0004] The embodiments of the present application provide a method, device and storage medium for improving the stability of screen projection to solve the problems existing in the related technologies. The technical solutions are as follows:
[0005] In a first aspect, an embodiment of the present application provides a method for improving screen projection stability, including:
[0006] Monitoring network status data of a target terminal, where the target terminal is a terminal that starts screen projection, and the network status data includes various network parameters of a first available network currently used by the target terminal;
[0007] When it is determined according to the network status data that the signal quality of the first available network is poor, a designated signal enhancement algorithm is used to perform signal enhancement processing on the first available network.
[0008] In one embodiment, using a specified signal enhancement algorithm to perform signal enhancement processing on the first available network includes:
[0009] The signal enhancement processing of the first available network is performed by using one of a signal enhancement algorithm, an interference suppression algorithm, an error correction algorithm, and a data retransmission mechanism algorithm.
[0010] In one implementation, the network status data further includes various network parameters of other available networks of the target terminal; and the method further includes:
[0011] According to the network status data, a performance evaluation is performed on each available network of the target terminal to obtain a comprehensive performance score of each available network;
[0012] Selecting a second available network with the highest comprehensive performance score from each of the available networks;
[0013] When it is determined that the difference between the comprehensive performance score of the first available network and the comprehensive performance score of the second available network is greater than a preset difference, the network currently used by the target terminal is seamlessly switched from the first available network to the second available network according to a specified network switching mechanism.
[0014] In one implementation, performing performance evaluation on each available network of the target terminal according to the network status data to obtain a comprehensive performance score of each available network includes:
[0015] According to the network status data, various status parameters of each available network are standardized to obtain various processed status parameters;
[0016] According to the processed state parameters, calculation is performed according to a specified formula to obtain a comprehensive performance score of each available network.
[0017] In one implementation, seamlessly switching the network currently used by the target terminal from the first available network to the second available network according to a specified network switching mechanism includes:
[0018] Pre-establishing a connection relationship between the target terminal and the second available network;
[0019] Importing the data stream transmitted by the target terminal into a buffer;
[0020] The first available network is disconnected, and the second available network is immediately enabled, and then the data flow in the buffer is directed to the second available network.
[0021] In one implementation, after pre-establishing a connection relationship between the target terminal and the second available network, the method further includes:
[0022] A connection test is performed on the second available network to obtain a test result, wherein the test result includes an evaluation result of the availability and stability of the second available network.
[0023] In one embodiment, the method further comprises:
[0024] When it is determined based on the test result that the availability or stability of the second available network is poor, the third available network is replaced by the second available network, and the process of pre-establishing a connection relationship between the target terminal and the second available network is returned to, wherein the comprehensive performance score of the third available network is ranked after the comprehensive performance score of the second available network.
[0025] In a second aspect, an embodiment of the present application further provides an electronic device for improving screen projection stability, including:
[0026] A monitoring unit, configured to monitor network status data of a target terminal, wherein the target terminal is a terminal that starts screen projection, and the network status data includes various network parameters of a first available network currently used by the target terminal;
[0027] The processing unit is configured to, when determining, based on the network status data, that the signal quality of the first available network is poor, perform signal enhancement processing on the first available network using a specified signal enhancement algorithm.
[0028] In one implementation, when the processing unit is used to perform signal enhancement processing on the first available network using a specified signal enhancement algorithm, it is specifically used to:
[0029] The signal enhancement processing of the first available network is performed by using one of a signal enhancement algorithm, an interference suppression algorithm, an error correction algorithm, and a data retransmission mechanism algorithm.
[0030] In one implementation, the network status data further includes various network parameters of other available networks of the target terminal; and the processing unit is further configured to:
[0031] According to the network status data, a performance evaluation is performed on each available network of the target terminal to obtain a comprehensive performance score of each available network;
[0032] Selecting a second available network with the highest comprehensive performance score from each of the available networks;
[0033] When it is determined that the difference between the comprehensive performance score of the first available network and the comprehensive performance score of the second available network is greater than a preset difference, the network currently used by the target terminal is seamlessly switched from the first available network to the second available network according to a specified network switching mechanism.
[0034] In one implementation, the processing unit, when used to perform performance evaluation on each available network of the target terminal according to the network status data to obtain a comprehensive performance score of each available network, is specifically used to:
[0035] According to the network status data, various status parameters of each available network are standardized to obtain various processed status parameters;
[0036] According to the processed state parameters, calculation is performed according to a specified formula to obtain a comprehensive performance score of each available network.
[0037] In one implementation, when the processing unit is used to seamlessly switch the network currently used by the target terminal from the first available network to the second available network according to the specified network switching mechanism, it is specifically used to:
[0038] Pre-establishing a connection relationship between the target terminal and the second available network;
[0039] Importing the data stream transmitted by the target terminal into a buffer;
[0040] The first available network is disconnected, and the second available network is immediately enabled, and then the data flow in the buffer is directed to the second available network.
[0041] In one implementation, after being used to pre-establish a connection relationship between the target terminal and the second available network, the processing unit is further used to:
[0042] A connection test is performed on the second available network to obtain a test result, wherein the test result includes an evaluation result of the availability and stability of the second available network.
[0043] In one embodiment, the processing unit is further configured to:
[0044] When it is determined based on the test result that the availability or stability of the second available network is poor, the third available network is replaced by the second available network, and the process of pre-establishing a connection relationship between the target terminal and the second available network is returned to, wherein the comprehensive performance score of the third available network is ranked after the comprehensive performance score of the second available network.
[0045] In a third aspect, an embodiment of the present application further provides a computer device, comprising: a memory and a processor, wherein the memory stores instructions, and the instructions are loaded and executed by the processor to implement a method in any one of the above-mentioned aspects, wherein the memory and the processor communicate with each other through an internal connection path.
[0046] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program runs on a computer, the method in any one of the above-mentioned embodiments is implemented.
[0047] The advantages or beneficial effects of the above technical solution include at least:
[0048] In the present application, when the signal quality of the first available network currently used by the target terminal is detected to be poor, the signal of the first available network can be enhanced through signal enhancement measures to solve the problem of unstable screen projection due to the influence of the network environment in the prior art, and the stability of the screen projection of the target terminal is effectively improved. In addition, in a multi-network environment, the continuity and stability of the screen projection of the target terminal can be ensured by combining the network switching mechanism with the signal enhancement measures, which effectively improves the stability of the screen projection of the target terminal.
[0049] The above summary is for illustrative purposes only and is not intended to be limiting in any way. In addition to the illustrative aspects, embodiments and features described above, further aspects, embodiments and features of the present application will be readily apparent by reference to the accompanying drawings and the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the multiple drawings represent the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments disclosed in the present application and should not be regarded as limiting the scope of the present application.
[0051] Figure 1 A flowchart of a method for improving screen projection stability provided in an embodiment of the present application;
[0052] Figure 2 A flowchart of another method for improving screen projection stability provided in an embodiment of the present application;
[0053] Figure 3 A structural block diagram of an electronic device for improving screen projection stability provided in an embodiment of the present application;
[0054] Figure 4 A structural block diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0055] In the following, only some exemplary embodiments are briefly described. As those skilled in the art will appreciate, the described embodiments may be modified in various ways without departing from the spirit or scope of the present application. Therefore, the drawings and descriptions are considered to be exemplary and non-restrictive in nature.
[0056] Figure 1 A flow chart of a method for improving screen projection stability according to an embodiment of the present application is shown. Figure 1 As shown, the method may include the following steps:
[0057] S110: Monitor network status data of the target terminal.
[0058] In one embodiment, the target terminal is the terminal that starts the screen projection. The network status data includes various network parameters of the first available network currently used by the target terminal. Among them, the first available network can be one of Wi-Fi, Bluetooth and mobile data network. The various network parameters of the first available network may include but are not limited to: signal strength, network delay, bandwidth and packet loss rate.
[0059] As an example, various network parameters of the first available network may be stored in the form of a data table.
[0060] As an example, for monitoring the network status data of the target terminal, in a Linux system, the iwconfig or nmcli command can be used to obtain the signal strength of the first available network, and the ping command can be used to test the delay between the target terminal and the target server.
[0061] As an example, the first available network may be manually selected by the user, or may be automatically selected by the target terminal according to a preset rule, which is not limited in the present embodiment. For example, the preset rule may be that the target terminal first uses a preset default network each time.
[0062] In one implementation, the network status data of the target terminal may be monitored periodically (eg, every second) and saved in a cache.
[0063] In the embodiment of the present application, by executing step S110, basic data can be provided for subsequent signal enhancement and network evaluation.
[0064] S120: When it is determined according to the network status data that the signal quality of the first available network is poor, a designated signal enhancement algorithm is used to perform signal enhancement processing on the first available network.
[0065] In one embodiment, when the signal strength, network delay, bandwidth or packet loss rate of the first available network is lower than the corresponding preset threshold, it can be determined that the signal quality of the first available network is poor. The preset thresholds corresponding to the various network parameters can be set according to actual needs, and the embodiments of the present application are not limited to this.
[0066] In one implementation, one of a signal enhancement algorithm, an interference suppression algorithm, an error correction algorithm, and a data retransmission mechanism algorithm may be used to perform signal enhancement processing on the first available network.
[0067] As an example, when the signal enhancement algorithm is used to perform signal enhancement processing on the first available network, the signal amplifier may be enabled and the gain of the signal amplifier may be adjusted to improve the signal strength (RSSI) of the first available network.
[0068] As another example, when the first available network is subjected to signal enhancement processing using an interference suppression algorithm, the radio spectrum of the first available network can be monitored to detect whether there is an interference source in the first available network. When an interference source is detected in the first available network, a filter or a spectrum analysis tool is used to suppress the interference signal. For example, a filter or a spectrum analysis tool is used to identify and classify the interference type (such as co-channel interference, adjacent channel interference, etc.) of the interference source, and the operating frequency or channel of the target terminal is adjusted to avoid interference from interference signals corresponding to these interference types.
[0069] In a specific implementation, by performing signal enhancement processing on the first available network, it is possible to prevent the signal fluctuation of the first available network from affecting the stability of the screen projection of the target terminal.
[0070] In an embodiment of the present application, by executing step S120, when it is detected that the signal of the first available network is weak, the signal of the first available network can be enhanced in time, thereby ensuring the signal stability of the first available network, thereby effectively improving the stability of the screen projection of the target terminal.
[0071] In actual applications, in a multi-network environment, after the terminal starts screen projection, if the network signal currently used by the terminal is poor, the user usually manually switches the network. However, during the network switching process, the terminal usually disconnects the screen projection, and the continuity of the screen projection cannot be achieved, resulting in unstable screen projection.
[0072] Based on this, the present application provides a network switching solution that can effectively ensure the continuity of screen projection, so as to ensure that the stability of screen projection is effectively improved.
[0073] The network switching solution provided in the embodiment of the present application will be introduced in detail below.
[0074] Combination Figure 1-2 As shown, the method for improving the stability of screen projection provided by the embodiment of the present application may also include the following steps:
[0075] S130: Perform performance evaluation on each available network of the target terminal according to the network status data to obtain a comprehensive performance score of each available network.
[0076] In one embodiment, the network status data may also include various network parameters of other available networks (excluding the first available network) of the target terminal. It can be understood that in a multi-network scenario, the network status data may include various network parameters of each available network of the target terminal.
[0077] It should be understood that each other available network may also be one of Wi-Fi, Bluetooth, and a mobile data network.
[0078] In one implementation, the implementation process of step S130 may include the following steps:
[0079] S131. According to the network status data, various status parameters of each available network are standardized to obtain various processed status parameters.
[0080] In one implementation, various status parameters of each available network may include, but are not limited to: signal strength, network delay, bandwidth, and packet loss rate.
[0081] In one implementation, the signal strength, network delay, bandwidth and packet loss rate of each available network may be normalized according to the network status data to obtain processed signal strength, processed network delay, processed bandwidth and processed packet loss rate.
[0082] S132. Calculate the state parameters after processing according to a specified formula to obtain a comprehensive performance score of each available network.
[0083] In one implementation, the specified formula can be expressed as:
[0084] Comprehensive performance score = w1×signal strength + w2×network delay + w3×bandwidth + w4×packet loss rate;
[0085] Among them, w1, w2, w3, and w4 are weight coefficients.
[0086] In specific implementation, w1, w2, w3, and w4 can be adjusted according to specific application scenarios, and this embodiment of the present application does not limit this.
[0087] For example, video conferencing scenarios require low network latency, high bandwidth, and stable signal strength to ensure audio and video synchronization and a smooth interactive experience; then, in video conferencing scenarios, priority can be given to adjusting the weight coefficients of network latency, bandwidth, and signal strength. Online gaming scenarios require very low network latency and stable signal strength to ensure the responsiveness of the game and the player experience; then, in online gaming scenarios, priority can be given to adjusting the weight coefficients of network latency and signal strength. Voice call scenarios require low network latency and stable signal strength to ensure the synchronization and clarity of voice; then, in voice call scenarios, priority can be given to adjusting the weight coefficients of network latency and signal strength. File download and upload scenarios require high bandwidth and stable signal strength to ensure the speed and reliability of data transmission. Then, in file download and upload scenarios, priority can be given to adjusting the weight coefficients of bandwidth and signal strength.
[0088] In the embodiment of the present application, by executing step S130, a performance evaluation basis can be provided for subsequent network switching selection.
[0089] S140: Select a second available network with the highest comprehensive performance score from each available network.
[0090] In one implementation, the comprehensive performance scores of each available network may be ranked, and then the second available network with the highest comprehensive performance score may be selected.
[0091] In the embodiment of the present application, by executing step S140, the selected second available network can be used as a preferred network (ie, the current best network), and an alternative target network can be provided for subsequent network switching.
[0092] S150: When the difference between the comprehensive performance score of the first available network and the comprehensive performance score of the second available network is greater than a preset difference, seamlessly switch the network currently used by the target terminal from the first available network to the second available network according to a specified network switching mechanism.
[0093] In one embodiment, the difference between the comprehensive performance score of the first available network and the comprehensive performance score of the second available network can be compared with the preset difference, and then it is determined whether the target terminal needs to switch networks based on the comparison result to ensure that when necessary, the first available network currently used by the target terminal is promptly switched to a network with better performance.
[0094] For example, when the difference between the comprehensive performance score of the first available network and the comprehensive performance score of the second available network is greater than the preset difference, it means that the first available network may not meet the stability requirements of screen projection after signal enhancement. At this time, it is necessary to switch the first available network currently used by the target terminal to a network with better performance.
[0095] In one implementation, seamlessly switching the network currently used by the target terminal from the first available network to the second available network according to the specified network switching mechanism may include the following steps:
[0096] S151. Pre-establish a connection relationship between a target terminal and a second available network.
[0097] In specific implementation, after determining the second available network, a connection relationship between the target terminal and the second available network may be established in advance to prepare for network switching and facilitate seamless network switching.
[0098] In an embodiment of the present application, by executing step S151, preparations can be made for seamless switching of subsequent networks, ensuring the continuity of data transmission during network switching, so that the data flow will not be interrupted during subsequent network switching, thereby facilitating the continuity of screen projection on the target terminal.
[0099] S152: Import the data stream transmitted by the target terminal into the buffer.
[0100] In specific implementation, the data stream transmitted by the target terminal can be temporarily imported into the buffer, so that the data stream can be buffered at the moment of network switching to prevent data loss.
[0101] S153: disconnect the first available network, immediately enable the second available network, and then import the data stream in the buffer into the second available network.
[0102] In an embodiment of the present application, by executing step S153, the continuity of data transmission during network switching can be ensured through the relay mechanism, thereby achieving the continuity of screen projection of the target terminal, and effectively improving the stability of screen projection of the target terminal.
[0103] In one implementation, after step S153, the state of the second available network may also be monitored to further ensure that the network currently used by the target terminal is successfully switched to the second available network.
[0104] In an embodiment of the present application, by executing step S150, when the signal of the first available network is poor, it is possible to seamlessly switch to the second available network with the best network performance, that is, seamless network switching can be achieved during the screen projection process, thereby ensuring the continuity of data transmission of the target terminal during the screen projection process, thereby improving the stability of the screen projection of the target terminal.
[0105] In an applicable scenario provided by an embodiment of the present application, after executing step S151, a connection test can be performed on the second available network without affecting the current data transmission of the target terminal, and a test result can be obtained, wherein the test result includes an evaluation result of the availability and stability of the second available network. In this way, the availability and stability of the connection between the target terminal and the second available network can be ensured to ensure the stability of subsequent network switching.
[0106] In one embodiment, in the above applicable scenario, when it is determined based on the test result that the availability or stability of the second available network is poor, the third available network can be replaced by the second available network, and the connection relationship between the target terminal and the second available network is pre-established, wherein the comprehensive performance score of the third available network is ranked after the comprehensive performance score of the second available network. In this way, the third available network with the second highest comprehensive performance score can be selected from the remaining available networks as an alternative new target network, thereby further ensuring the continuity of data transmission of the target terminal during the screen projection process, thereby improving the stability of the screen projection of the target terminal.
[0107] As an example, in the above applicable scenarios, various indicators can be set, for example, signal strength is not less than -70dBm, network delay is not higher than 50ms, bandwidth is not less than 5Mbps, packet loss rate is not higher than 1%, and jitter is not higher than 10ms.
[0108] For example, during the connection test of the second available network, the network parameters of the second available network can be compared with the above indicators respectively, and combined with the jitter indicator to evaluate the availability and stability of the second available network. At the same time, the unavailable or unstable test results of the second available network can also be recorded in the log.
[0109] For example, when the signal strength of the second available network is lower than -70dBm, or the network delay is higher than 50ms, or the bandwidth is lower than 5Mbps, the availability of the second available network can be evaluated as poor. When the packet loss rate of the second available network is higher than 1% or the jitter is not higher than 10ms, the stability of the second available network can be evaluated as poor.
[0110] In an embodiment of the present application, the availability and stability of the target terminal's network connection can be ensured during the network switching process, further ensuring the continuity of data transmission of the target terminal during the screen projection process, thereby improving the stability of the target terminal's screen projection.
[0111] In another applicable scenario provided by an embodiment of the present application, after executing step S150, the execution can return to step S110 to ensure that the target terminal can always use a network with a stable signal during the screen projection process, thereby further effectively improving the stability of the screen projection of the target terminal.
[0112] In summary, the method for improving the stability of screen projection provided by the embodiment of the present application can solve the problem of unstable screen projection caused by the influence of the network environment in the prior art by performing signal enhancement processing on the first available network when the signal quality of the first available network currently used by the target terminal is detected to be poor, and effectively improve the stability of the screen projection of the target terminal. In addition, in a multi-network environment, the continuity and stability of the screen projection of the target terminal can be ensured by combining the network switching mechanism with the signal enhancement measures, which effectively improves the stability of the screen projection of the target terminal.
[0113] Figure 3 FIG. 1 is a block diagram showing a structure of an electronic device for improving screen projection stability according to an embodiment of the present application. Figure 3 As shown, the electronic device may include:
[0114] A monitoring unit 210 is used to monitor network status data of a target terminal, where the target terminal is a terminal that starts screen projection, and the network status data includes various network parameters of a first available network currently used by the target terminal;
[0115] The processing unit 220 is configured to use a specified signal enhancement algorithm to perform signal enhancement processing on the first available network when it is determined that the signal quality of the first available network is poor according to the network status data.
[0116] In one implementation, when the processing unit 220 is used to perform signal enhancement processing on the first available network using a specified signal enhancement algorithm, it is specifically used to:
[0117] The signal enhancement processing is performed on the first available network by using one of a signal enhancement algorithm, an interference suppression algorithm, an error correction algorithm, and a data retransmission mechanism algorithm.
[0118] In one implementation, the network status data further includes various network parameters of other available networks of the target terminal; the processing unit 220 is further configured to:
[0119] Based on the network status data, the performance of each available network of the target terminal is evaluated to obtain a comprehensive performance score of each available network;
[0120] Select the second available network with the highest comprehensive performance score from each available network;
[0121] When it is determined that the difference between the comprehensive performance score of the first available network and the comprehensive performance score of the second available network is greater than a preset difference, the network currently used by the target terminal is seamlessly switched from the first available network to the second available network according to a specified network switching mechanism.
[0122] In one implementation, the processing unit 220, when used to perform performance evaluation on each available network of the target terminal according to the network status data to obtain a comprehensive performance score of each available network, is specifically used to:
[0123] According to the network status data, various status parameters of each available network are standardized to obtain various processed status parameters;
[0124] According to the state parameters after each processing, the specified formula is used for calculation to obtain the comprehensive performance score of each available network.
[0125] In one implementation, when the processing unit 220 is used to seamlessly switch the network currently used by the target terminal from the first available network to the second available network according to the specified network switching mechanism, it is specifically used to:
[0126] Pre-establishing a connection relationship between the target terminal and the second available network;
[0127] Import the data stream transmitted by the target terminal into the buffer;
[0128] The first available network is disconnected, and the second available network is immediately enabled, and then the data stream in the buffer is directed to the second available network.
[0129] In one implementation, after being used to pre-establish a connection relationship between the target terminal and the second available network, the processing unit 220 is further used to:
[0130] A connection test is performed on the second available network to obtain a test result, wherein the test result includes an evaluation result of the availability and stability of the second available network.
[0131] In one implementation, the processing unit 220 is further configured to:
[0132] When it is determined based on the test results that the availability or stability of the second available network is poor, the third available network is replaced with the second available network, and the process of pre-establishing a connection relationship between the target terminal and the second available network is returned, wherein the comprehensive performance score of the third available network is ranked after the comprehensive performance score of the second available network.
[0133] The functions of each unit in the above electronic device can refer to the corresponding description in the above method, which will not be repeated here.
[0134] Figure 4 FIG. 2 shows a block diagram of a computer device according to an embodiment of the present application. Figure 4 As shown, the computer device includes: a memory 310 and a processor 320. The memory 310 stores instructions, and the instructions are loaded and executed by the processor 320 to implement the method for improving the stability of screen projection in the above embodiment. The number of the memory 310 and the processor 320 can be one or more.
[0135] The computer device also includes:
[0136] The communication interface 330 is used to communicate with external devices and perform data exchange transmission.
[0137] If the memory 310, the processor 320 and the communication interface 330 are implemented independently, the memory 310, the processor 320 and the communication interface 330 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0138] Optionally, in a specific implementation, if the memory 310, the processor 320 and the communication interface 330 are integrated on a chip, the memory 310, the processor 320 and the communication interface 330 can communicate with each other through an internal interface.
[0139] An embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program runs on a computer, the method provided in the embodiment of the present application is implemented.
[0140] An embodiment of the present application also provides a chip, which includes a processor for calling and executing instructions stored in a memory, so that a communication device equipped with the chip executes the method provided by the embodiment of the present application.
[0141] An embodiment of the present application also provides a chip, including: an input interface, an output interface, a processor and a memory, wherein the input interface, the output interface, the processor and the memory are connected via an internal connection path, and the processor is used to execute the code in the memory. When the code is executed, the processor is used to execute the method provided in the embodiment of the application.
[0142] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. It is worth noting that the processor may be a processor supporting the Advanced RISC Machines (ARM) architecture.
[0143] Further, optionally, the above-mentioned memory may include a read-only memory and a random access memory, and may also include a non-volatile random access memory. The memory may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may include a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may include a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available. For example, static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct rambus RAM (DR RAM).
[0144] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium.
[0145] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine different embodiments or examples described in this specification and the features of different embodiments or examples, unless they are contradictory.
[0146] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0147] Any process or method description in the flow chart or otherwise described herein can be understood to represent a module, fragment or portion of a code including one or more executable instructions for implementing the steps of a specific logical function or process. And the scope of the preferred embodiment of the present application includes other implementations, in which the functions may not be performed in the order shown or discussed, including in a substantially simultaneous manner or in a reverse order according to the functions involved.
[0148] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, which can be embodied in any computer-readable medium for use by an instruction execution system, apparatus or device (such as a computer-based system, a system including a processor or other system that can fetch instructions from an instruction execution system, apparatus or device and execute instructions), or used in combination with these instruction execution systems, apparatuses or devices.
[0149] It should be understood that the various parts of the present application can be implemented with hardware, software, firmware or a combination thereof. In the above embodiments, multiple steps or methods can be implemented with software or firmware stored in a memory and executed by a suitable instruction execution system. All or part of the steps of the above embodiment method can be completed by instructing the relevant hardware through a program, which can be stored in a computer-readable storage medium, and when the program is executed, it includes one of the steps of the method embodiment or a combination thereof.
[0150] In addition, each functional unit in each embodiment of the present application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of a software functional module. If the above-mentioned integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. The storage medium can be a read-only memory, a disk or an optical disk, etc.
[0151] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for improving screen projection stability. It is characterized in that include: Monitoring network status data of a target terminal, where the target terminal is a terminal that starts screen projection, and the network status data includes various network parameters of a first available network currently used by the target terminal; When it is determined according to the network status data that the signal quality of the first available network is poor, a designated signal enhancement algorithm is used to perform signal enhancement processing on the first available network.
2. The method according to claim 1, It is characterized in that The step of performing signal enhancement processing on the first available network by using a specified signal enhancement algorithm includes: The signal enhancement processing of the first available network is performed by using one of a signal enhancement algorithm, an interference suppression algorithm, an error correction algorithm, and a data retransmission mechanism algorithm.
3. The method according to claim 1 or 2, It is characterized in that The network status data also includes various network parameters of other available networks of the target terminal; the method also includes: According to the network status data, a performance evaluation is performed on each available network of the target terminal to obtain a comprehensive performance score of each available network; Selecting a second available network with the highest comprehensive performance score from each of the available networks; When it is determined that the difference between the comprehensive performance score of the first available network and the comprehensive performance score of the second available network is greater than a preset difference, the network currently used by the target terminal is seamlessly switched from the first available network to the second available network according to a specified network switching mechanism.
4. The method according to claim 3, It is characterized in that According to the network status data, a performance evaluation is performed on each available network of the target terminal to obtain a comprehensive performance score of each available network, including: According to the network status data, various status parameters of each available network are standardized to obtain various processed status parameters; According to the processed state parameters, calculation is performed according to a specified formula to obtain a comprehensive performance score of each available network.
5. The method according to claim 3, It is characterized in that Seamlessly switching the network currently used by the target terminal from the first available network to the second available network according to the specified network switching mechanism includes: Pre-establishing a connection relationship between the target terminal and the second available network; Importing the data stream transmitted by the target terminal into a buffer; The first available network is disconnected, and the second available network is immediately enabled, and then the data flow in the buffer is directed to the second available network.
6. The method according to claim 5, It is characterized in that After pre-establishing a connection relationship between the target terminal and the second available network, the method further includes: A connection test is performed on the second available network to obtain a test result, wherein the test result includes an evaluation result of the availability and stability of the second available network.
7. The method according to claim 6, It is characterized in that The method further comprises: When it is determined based on the test result that the availability or stability of the second available network is poor, the third available network is replaced by the second available network, and the process of pre-establishing a connection relationship between the target terminal and the second available network is returned to, wherein the comprehensive performance score of the third available network is ranked after the comprehensive performance score of the second available network.
8. An electronic device for improving the stability of screen projection, It is characterized in that include: A monitoring unit, configured to monitor network status data of a target terminal, wherein the target terminal is a terminal that starts screen projection, and the network status data includes various network parameters of a first available network currently used by the target terminal; The processing unit is configured to, when determining, based on the network status data, that the signal quality of the first available network is poor, perform signal enhancement processing on the first available network using a specified signal enhancement algorithm.
9. A computer device, It is characterized in that include: A memory and a processor, wherein the memory stores instructions, and the instructions are loaded and executed by the processor to implement the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed on a computer, the method according to any one of claims 1 to 7 is implemented.
