Screen transmission link adaptive selection method and device, equipment and storage medium
By determining the status of the transmission screen link and the link quality information, select the best screen link to pass the screen, solve the problem of passing restrictions caused by the choice of too simply selection in the existing technology, and improve the quality of the screen of the screen. And effect.
Patent Information
- Application Number
- CN202310883932.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-18
- Publication Date
- 2025-01-21
AI Technical Summary
The existing screen transmission link selection scheme is relatively simple. Usually, the screen transmitter link is used by default without considering other links, which leads to screen transmission restrictions between devices and affects the screen transmission effect.
Determine the alternative screen transmission link by determining the status of the screen transmission link between the current device and the target screen transmission device, including screen transmission code transmission status, LAN connection status, WAN connection status and screen transmission device connection status, and determine the alternative screen transmission link according to the link The quality information selects the optimal screen transmission link for screen transmission.
By selecting the high -screen transmission link with a better network quality, avoid the screen stuck and interruption caused by a single link abnormality, and improve the quality of the screen and optimize the screen effect.
Smart Images

Figure CN119342548A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of communication technology, and in particular to a method, device, equipment and storage medium for adaptively selecting a screen transmission link. Background Art
[0002] At present, in the device screen transmission scenario, a variety of different screen transmission links can be used for transmission, such as local point-to-point transmission, local area network transmission, or wide area network transmission. Taking the screen transmission scenario between a computer and an interactive tablet as an example, generally speaking, according to different situations such as network status, network type, and whether a screen transmitter is used, the corresponding screen transmission link is selected according to the set screen transmission strategy to transmit the audio and video stream.
[0003] However, the relevant screen transmission link selection scheme is relatively simple. Usually, when the user uses a screen transmission device, the screen transmission link established between the screen transmission device and the large board is used by default, and other transmission links are not considered. If the device is in the corresponding network transmission mode, other transmission links will not be considered. This will increase the screen transmission restrictions between devices and affect the screen transmission effect. Summary of the invention
[0004] The embodiments of the present application provide a method, device, equipment and storage medium for adaptively selecting a screen transmission link, which can adaptively optimize the screen transmission link, improve the screen transmission quality, and solve the technical problem that a single screen transmission link limits the screen transmission quality.
[0005] In a first aspect, an embodiment of the present application provides a method for adaptively selecting a screen transmission link, including:
[0006] Determine the screen transmission link status between the current device and the target screen transmission device, wherein the screen transmission link status includes one or more of screen transmission code transmission status information, local area network connection status information, wide area network connection status information, and screen transmission device connection status information;
[0007] Determine an alternative screen transmission link between the current device and the target screen transmission device based on the screen transmission link status;
[0008] In the case where there are multiple alternative screen transmission links, the link quality information of each of the alternative screen transmission links is determined, and based on the link quality information, a target screen transmission link between the current device and the target screen transmission device is selected from each of the alternative screen transmission links.
[0009] In a second aspect, an embodiment of the present application provides a screen transmission link adaptive selection device, including:
[0010] A status determination module is used to determine the screen transmission link status between the current device and the target screen transmission device, wherein the screen transmission link status includes one or more of screen transmission code transmission status information, local area network connection status information, wide area network connection status information, and screen transmission device connection status information;
[0011] A link determination module, used to determine an alternative screen transmission link between the current device and the target screen transmission device based on the screen transmission link status;
[0012] The link selection module is used to determine the link quality information of each of the alternative screen transmission links when there are multiple alternative screen transmission links, and select the target screen transmission link between the current device and the target screen transmission device from each of the alternative screen transmission links based on the link quality information.
[0013] In a third aspect, an embodiment of the present application provides an electronic device, including:
[0014] memory and one or more processors;
[0015] The memory is used to store one or more programs;
[0016] When the one or more programs are executed by the one or more processors, the one or more processors implement the screen transmission link adaptive selection method as described in the first aspect.
[0017] In a fourth aspect, an embodiment of the present application provides a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute the screen transmission link adaptive selection method as described in the first aspect.
[0018] The embodiment of the present application determines the screen transmission link status between the current device and the target screen transmission device, wherein the screen transmission link status includes one or more of the screen transmission code transmission status information, the local area network connection status information, the wide area network connection status information, and the screen transmitter connection status information; based on the screen transmission link status, determines the alternative screen transmission link between the current device and the target screen transmission device; in the case where there are multiple alternative screen transmission links, determines the link quality information of each of the alternative screen transmission links, and selects the target screen transmission link between the current device and the target screen transmission device from each of the alternative screen transmission links based on the link quality information. Using the above-mentioned technical means, the alternative screen transmission link is determined by the screen transmission link status between the devices, and then the link quality is evaluated according to each alternative screen transmission link, and the alternative screen transmission link with the best link quality is selected as the target screen transmission link for screen transmission between devices. In this way, a screen transmission link with better network quality can be selected for screen transmission, avoiding the situation where the screen transmission is stuck or interrupted due to link abnormality in a single screen transmission link, thereby improving the screen transmission quality and optimizing the screen transmission effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 It is a flowchart of a screen transmission link adaptive selection method provided in Example 1 of the present application;
[0020] Figure 2This is a flow chart for determining and evaluating the alternative screen transmission links in the first embodiment of the present application;
[0021] Figure 3 is a switching flow chart of the standby link in the first embodiment of the present application;
[0022] Figure 4 It is a structural schematic diagram of a screen transmission link adaptive selection device provided in Example 2 of the present application;
[0023] Figure 5 It is a structural schematic diagram of an electronic device provided in Example 3 of the present application. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical scheme and advantages of the present application clearer, the specific embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. It is understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for the convenience of description, only the part related to the present application but not all the contents are shown in the accompanying drawings. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow chart describes each operation (or step) as a sequential process, many of the operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of each operation can be rearranged. The process can be terminated when its operation is completed, but it can also have additional steps not included in the accompanying drawings. The process can correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.
[0025] The adaptive screen transmission link selection method provided in the present application aims to determine the alternative screen transmission links through the screen transmission link status between devices, and then perform link quality evaluation based on each alternative screen transmission link, and select the alternative screen transmission link with the best link quality as the target screen transmission link for screen transmission between devices, so as to improve the screen transmission quality and optimize the screen transmission effect.
[0026] The related screen transmission solutions include the following screen transmission methods:
[0027] Local point-to-point transmission: refers to the screen transmission link established between the current device through the screen transmission device wireless module or the current device's own wireless module and the target screen transmission device's wireless module.
[0028] LAN screen transmission: The wireless module of the current device and the wireless module of the target screen transmission device are in the same LAN to build a screen transmission link (for example, both are connected to the same hotspot or router).
[0029] WAN screen transmission: The current device and the target screen transmission device are not in the local area network, and the screen transmission link is established by connecting through the public network.
[0030] Referring to the above-mentioned screen transmission method, generally speaking, the device will choose a fixed screen transmission method for screen transmission. Its screen transmission strategy is relatively simple. For example, as long as the user uses a screen transmitter, the screen transmission link established between the screen transmitter and the target screen transmission device is used by default for screen transmission, without considering the local area network or even the wide area network to build a link. In the local area network transmission mode, the local point-to-point transmission method is not considered. Moreover, if the current device is not connected to the Internet and the screen transmitter is not used, the screen cannot be transmitted. A single screen transmission link cannot guarantee a better screen transmission quality in real time. Moreover, when the screen transmission quality of other links is better, maintaining the original link for screen transmission will waste the better screen transmission link resources. Based on this, a screen transmission link adaptive selection method of an embodiment of the present application is provided to solve the technical problem that a single screen transmission link limits the screen transmission quality.
[0031] Embodiment 1:
[0032] Figure 1 A flow chart of a screen transmission link adaptive selection method provided in the first embodiment of the present application is given. The screen transmission link adaptive selection method provided in this embodiment can be executed by a screen transmission link adaptive selection device, which can be implemented by software and / or hardware. The screen transmission link adaptive selection device can be composed of two or more physical entities, or it can be composed of one physical entity. Generally speaking, the screen transmission link adaptive selection device can be a terminal device such as a computer, a mobile phone, a tablet, an interactive tablet, etc.
[0033] The following describes the screen transmission link adaptive selection method of the application embodiment, taking a laptop as the current device and a smart board as the target screen transmission device. The current device is the subject of the screen transmission link adaptive selection method. Figure 1 , the screen transmission link adaptive selection method specifically includes:
[0034] S110, determining the screen transmission link status between the current device and the target screen transmission device, wherein the screen transmission link status includes one or more of screen transmission code transmission status information, local area network connection status information, wide area network connection status information, and screen transmission device connection status information;
[0035] S120, determining an alternative screen transmission link between the current device and the target screen transmission device based on the screen transmission link status;
[0036] S130. When there are multiple alternative screen transmission links, determine the link quality information of each of the alternative screen transmission links, and select a target screen transmission link between the current device and the target screen transmission device from each of the alternative screen transmission links based on the link quality information.
[0037] When selecting a screen transmission link, the status of each screen transmission link between the notebook and the large board is determined. According to the network settings of the notebook and the large board, the two include a screen transmission code screen transmission link, a screen transmission device screen transmission link, and a wireless module screen transmission link. The screen transmission code screen transmission link communicates based on the LAN connection or WAN connection between the two, and verifies by transmitting the screen transmission code to build a screen transmission link; the screen transmission device screen transmission link is based on the screen transmission device connected to the notebook and the large board to build a screen transmission link; the wireless module screen transmission link is built through the notebook's wireless module (such as a WiFi module) and the large board's wireless module connection to build a screen transmission link.
[0038] Based on the above-mentioned screen transmission code screen transmission link, screen transmission device screen transmission link and wireless module screen transmission link, the laptop obtains the screen transmission link status between the laptop and the large board through the screen transmission software. The screen transmission link status includes one or more of the screen transmission code transmission status information, the local area network connection status information, the wide area network connection status information and the screen transmission device connection status information. Through the above-mentioned screen transmission link status information, it can be determined whether the corresponding screen transmission link is valid, and then the valid screen transmission link is determined as the alternative screen transmission link. By evaluating the link quality of the alternative screen transmission link, it is finally determined which screen transmission link has the best screen transmission quality, and this link is the target screen transmission link. Use the target screen transmission link to transmit the screen to improve the screen transmission quality.
[0039] It should be noted that, in actual applications, depending on the actual network settings between the notebook and the large board, the above-mentioned screen transmission link status information can be one or more. In the case of obtaining only one type of screen transmission link status information, since the notebook and the large board can directly perform point-to-point screen transmission through the wireless module, there is at least one screen transmission link. Therefore, combining a screen transmission link status information can also determine at least one backup screen transmission link. The embodiment of the present application does not impose fixed restrictions on the specific type of screen transmission link status information acquisition, which will not be repeated here.
[0040] Specifically, when the screen transmission link status includes screen transmission code transmission status information, local area network connection status information, wide area network connection status information, and screen transmission device connection status information, determining the alternative screen transmission link between the current device and the target screen transmission device based on the screen transmission link status includes:
[0041] Based on the screen transmission code transmission status information, determine whether the screen transmission code screen transmission link is valid. If the screen transmission code screen transmission link is invalid, determine an alternative screen transmission link between the current device and the target screen transmission device based on the screen transmission device connection status information;
[0042] When the screen transmission link of the screen transmission code is invalid, an alternative screen transmission link between the current device and the target screen transmission device is determined based on the local area network connection status information, the wide area network connection status information and the screen transmission device connection status information.
[0043] It should be noted that when using the screen transmission code for screen transmission, the large board is required to be connected to the Internet to generate the screen transmission code. There are two types of screen transmission codes, one is a screen transmission code containing a local area network IP and a port number, and the other is a screen transmission code containing a public network IP (wide area network IP) and a port number. Based on the screen transmission code, the notebook connects to the large board through a local area network or a wide area network. Therefore, by judging the transmission status information of the screen transmission code, it can be determined whether the screen transmission code screen transmission link is valid. Among them, the screen transmission code transmission status information includes the networking status of the notebook and the networking status of the large board. If either of them is not connected to the Internet (local area network or wide area network), the screen code screen transmission link is invalid. The screen code screen transmission link is only valid when both are connected to the same network (local area network or wide area network). Based on this, by first obtaining the networking status of the notebook and the networking status of the large board, the alternative screen transmission link can be quickly determined, thereby improving the efficiency of determining the alternative screen transmission link. In actual applications, according to the determination logic of the alternative screen transmission link, the judgment priority of the screen transmission code transmission status information, local area network connection status information, and wide area network connection status information can also be adaptively selected to determine the alternative link.
[0044] Among them, the determining of the alternative screen transmission link between the current device and the target screen transmission device based on the connection status information of the screen transmission device includes: judging whether the screen transmission link of the screen transmission device is valid based on the connection status information of the screen transmission device, and when the screen transmission link of the screen transmission device is valid, determining the screen transmission link of the screen transmission device and the wireless module screen transmission link as the alternative screen transmission link, and the wireless module screen transmission link is built based on the wireless module of the current device and the wireless module of the target screen transmission device; when the screen transmission link of the screen transmission device is invalid, determining the wireless module screen transmission link as the alternative screen transmission link. On the other hand, based on the LAN connection status information, the WAN connection status information and the screen transmitter connection status information, determining the alternative screen transmission link between the current device and the target screen transmission device, including: selecting an available network from the LAN and the WAN to build the screen transmission code link based on the LAN connection status information and the WAN connection status information, and judging whether the screen transmission link of the screen transmitter is valid based on the screen transmitter connection status information; when the screen transmission link of the screen transmitter is valid, determining the screen transmission code link, the screen transmission link of the screen transmitter and the wireless module screen transmission link as the alternative screen transmission links, and the wireless module screen transmission link is built based on the wireless module of the current device and the wireless module of the target screen transmission device; when the screen transmission link of the screen transmitter is invalid, determining the screen transmission code link and the wireless module link as the alternative screen transmission links.
[0045] Corresponding to the different judgment results of the above-mentioned screen transmission code transmission status information, local area network connection status information, and wide area network connection status information, the alternative screen transmission links described in Table 1 below are obtained:
[0046] Table 1: Examples of alternative screen transmission links
[0047]
[0048] Reference Figure 2 If the large board is not connected to the Internet, the screen transmission code will not be generated, and there will be a prompt such as "network unavailable". At this time, the screen transmission code screen transmission link is invalid. Whether the large board has a screen transmission code is entirely determined by the user, that is, the user enters the screen transmission code in the screen transmission software on the laptop, indicating that the large board is connected to the Internet. If the user does not enter the screen transmission code, it means that the large board is not connected to the Internet. In addition, even if the large board is connected to the Internet and generates a screen transmission code, but the user does not enter the screen transmission code, the software screen transmission logic will still follow the logic of the large board not being connected to the Internet, that is, the screen transmission code screen transmission link is still invalid at this time. In this case, whether the user's laptop is connected to the Internet or not does not affect the software process and the screen transmission link, and it only depends on whether the user uses a screen transmission device. If the user does not use a screen transmission device, the laptop's screen transmission software will connect to the large board WiFi through the laptop WiFi (i.e., wireless module) to build a wireless module screen transmission link. If the user uses a screen transmission device, there are two types of screen transmission links: the screen transmission link of the screen transmission device and the wireless module screen transmission link. At this time, these two links are used as alternative screen transmission links, and the target screen transmission link is selected according to the link quality information of the alternative screen transmission links.
[0049] If the board is connected to the Internet, it will generate a screen transmission code. There are two types of screen transmission codes: one is the screen transmission code containing the LAN IP and port number, and the other is the screen transmission code containing the public network IP (WAN IP) and port number. The screen transmission code information will be broadcast through the Beacon frame of the board's WiFi or sent to the device that requested (Probe Request) through the Probe Response frame. It should be noted that the board has at least two wireless WiFi modules, one as STA for the board's wireless Internet access. When the user's laptop and the board are transmitting the screen through the LAN or WAN, the video stream is transmitted in the connection established by the laptop's network card and the board's STA network card through the router. The other is used to connect to the laptop screen transmitter for screen transmission.
[0050] In this case, if the user's laptop is not connected to the Internet, the final screen transmission link will refer to the above-mentioned situation where the large board is not connected to the Internet, and it is only related to whether the user uses a screen transmission device. It should be noted that since the screen transmission software can receive the screen transmission code (LAN screen transmission code and WAN screen transmission code) sent by the large board when the large board is connected to the Internet, the screen transmission software will parse out the IP and port number, and perform network accessibility judgment respectively. If the network is not accessible, it will enter the alternative screen transmission link determination process when the screen transmission code screen transmission link is invalid.
[0051] If the mainboard and the laptop are connected to the Internet, the laptop screen transmission software will parse the IP and port number and then determine the network reachability. At this time, there will be 3 states: 1. LAN is reachable and WAN is reachable; 2. LAN is reachable and WAN is not reachable; 3. LAN is not reachable and WAN is reachable. In states 1 and 2, the LAN channel will be selected to build the screen transmission code link. It can be understood that, in general, LAN communication is more stable than WAN communication. Therefore, in state 1, directly select the LAN to build the screen transmission code link. In state 3, select the WAN channel to build the screen transmission code link.
[0052] Furthermore, in the case of a screen transmission link built through a local area network, if a screen transmitter is used, there are 3 available screen transmission links. They are: the screen transmission link built through the local area network, the screen transmission link of the screen transmitter, and the screen transmission link of the wireless module. If a screen transmitter is not used, there are 2 available screen transmission links, namely: the screen transmission link built through the local area network and the screen transmission link of the wireless module.
[0053] In the case of a screen transmission link using a screen transmission code established through a local area network, if a screen transmission device is used, there are 3 available screen transmission links. They are: the screen transmission code link established through a wide area network, the screen transmission device link, and the wireless module link. If a screen transmission device is not used, there are 2 available screen transmission links. They are: the screen transmission code link established and the wireless module link.
[0054] Furthermore, based on the alternative screen transmission links determined above, the corresponding link quality information is determined to select the target screen transmission link.
[0055] Wherein, the determining of link quality information of each of the candidate screen transmission links includes:
[0056] Determine the link quality information of the screen transmission link of the screen transmission device based on the network card version, supported rate, receiving sensitivity and hard-coded information of the screen transmission device;
[0057] Determine the link quality information of the wireless module screen transmission link based on the wireless module version, supported rate and receiving sensitivity of the current device and the target screen transmission device;
[0058] The link quality information of the screen transmission link of the screen transmission code is determined based on the network bandwidth and stability information detection results of the local area network or wide area network.
[0059] For the wireless module screen transmission link, the notebook screen transmission assistant software will use WiFi performance parameters such as WiFi version, supported speed, receiving sensitivity and other information as its link quality information. For the screen transmission link of the screen transmitter, the notebook will use the WiFi version, supported speed, receiving sensitivity of the screen transmitter, combined with the video hard coding capability of the screen transmitter as its link quality information. In addition, the notebook screen transmission software logic will evaluate the network quality of the screen transmission code link. For the local area network and wide area network, the network bandwidth and stability will be detected, such as using ping or iperf, so as to obtain the link quality information of the screen transmission code link.
[0060] Afterwards, the link quality scores of the candidate screen transmission links are weightedly calculated based on the link quality information, and the candidate screen transmission link with the highest link quality score is selected as the target screen transmission link between the current device and the target screen transmission device.
[0061] Exemplarily, for the different types of link quality information collected above, the embodiments of the present application calculate each type of link quality information using a corresponding weighting factor according to its impact on the link quality, so that the type of link quality information can be quantified into a corresponding link score. Then, the link scores of each link quality information are superimposed to obtain the corresponding link quality score. For example, for the wireless module screen transmission link, the WiFi version, supported rate, receiving sensitivity, etc. are quantified into corresponding link scores by using corresponding weighting factors, where different WiFi versions are fixedly configured with corresponding initial parameter values. Then, the link scores are superimposed to obtain the link quality score of the wireless module screen transmission link. Similarly, according to the type of actual alternative screen transmission link, the link quality scores of each alternative screen transmission link are calculated, and the alternative screen transmission link with the highest link quality score is selected as the target screen transmission link between the notebook and the large board. In this way, it is possible to ensure that the notebook and the large board maintain good communication quality and optimize the screen transmission effect.
[0062] Optionally, after selecting the target screen transmission link between the current device and the target screen transmission device from each of the alternative screen transmission links based on the link quality information, it also includes: using the unselected alternative screen transmission link as the backup link, and when the target screen transmission link is in a set state, switching the backup link as the screen transmission link between the current device and the target screen transmission device.
[0063] Reference Figure 3, since the network status of the screen transmission link is affected by various factors at different time periods, its screen transmission quality will fluctuate. Therefore, in the embodiment of the present application, by setting the unselected alternative screen transmission link as a standby link, when the target screen transmission link is in the set state, such as the screen transmission rate of the target screen transmission link is lower than the threshold, the screen transmission screen is stuck, etc., the standby link can be switched for screen transmission. And, in the case of multiple standby links, referring to the calculation process of the link quality score above, the standby link with the highest score can be selected for screen transmission according to the real-time link quality scores of each standby link.
[0064] In one embodiment, the notebook also periodically calculates the real-time link quality scores of each candidate screen transmission link, switches the target screen transmission link according to the link quality scores, and reselects a candidate screen transmission link with the highest link quality score from all candidate links as the target screen transmission link. By periodically updating the target screen transmission link, the screen transmission quality can be further guaranteed to avoid the situation where the screen transmission effect is reduced due to network fluctuations.
[0065] In the above, by determining the screen transmission link status between the current device and the target screen transmission device, the screen transmission link status includes one or more of the screen transmission code transmission status information, the local area network connection status information, the wide area network connection status information and the screen transmission device connection status information; based on the screen transmission link status, determine the alternative screen transmission link between the current device and the target screen transmission device; in the case where there are multiple alternative screen transmission links, determine the link quality information of each of the alternative screen transmission links, and select the target screen transmission link between the current device and the target screen transmission device from each of the alternative screen transmission links based on the link quality information. Using the above technical means, the alternative screen transmission link is determined by the screen transmission link status between the devices, and then the link quality is evaluated according to each alternative screen transmission link, and the alternative screen transmission link with the best link quality is selected as the target screen transmission link for screen transmission between devices. In this way, a screen transmission link with better network quality can be selected for screen transmission, avoiding the situation where the screen transmission is stuck or interrupted due to link abnormality in a single screen transmission link, improving the screen transmission quality, and optimizing the screen transmission effect.
[0066] Embodiment 2:
[0067] Based on the above embodiments, Figure 4 This is a schematic diagram of the structure of a screen transmission link adaptive selection device provided in Example 2 of the present application. Figure 4 The screen transmission link adaptive selection device provided in this embodiment specifically includes: a state determination module 21, a link determination module 22 and a link selection module 23.
[0068] Among them, the status determination module is used to determine the screen transmission link status between the current device and the target screen transmission device, and the screen transmission link status includes one or more of the screen transmission code transmission status information, the local area network connection status information, the wide area network connection status information and the screen transmission device connection status information;
[0069] A link determination module, used to determine an alternative screen transmission link between the current device and the target screen transmission device based on the screen transmission link status;
[0070] The link selection module is used to determine the link quality information of each of the alternative screen transmission links when there are multiple alternative screen transmission links, and select the target screen transmission link between the current device and the target screen transmission device from each of the alternative screen transmission links based on the link quality information.
[0071] In the above, by determining the screen transmission link status between the current device and the target screen transmission device, the screen transmission link status includes one or more of the screen transmission code transmission status information, the local area network connection status information, the wide area network connection status information and the screen transmission device connection status information; based on the screen transmission link status, determine the alternative screen transmission link between the current device and the target screen transmission device; in the case where there are multiple alternative screen transmission links, determine the link quality information of each of the alternative screen transmission links, and select the target screen transmission link between the current device and the target screen transmission device from each of the alternative screen transmission links based on the link quality information. Using the above technical means, the alternative screen transmission link is determined by the screen transmission link status between the devices, and then the link quality is evaluated according to each alternative screen transmission link, and the alternative screen transmission link with the best link quality is selected as the target screen transmission link for screen transmission between devices. In this way, a screen transmission link with better network quality can be selected for screen transmission, avoiding the situation where the screen transmission is stuck or interrupted due to link abnormality in a single screen transmission link, improving the screen transmission quality, and optimizing the screen transmission effect.
[0072] Specifically, when the screen transmission link status includes screen transmission code transmission status information, local area network connection status information, wide area network connection status information, and screen transmission device connection status information, determining the alternative screen transmission link between the current device and the target screen transmission device based on the screen transmission link status includes:
[0073] Based on the screen transmission code transmission status information, determine whether the screen transmission code screen transmission link is valid. If the screen transmission code screen transmission link is invalid, determine an alternative screen transmission link between the current device and the target screen transmission device based on the screen transmission device connection status information;
[0074] When the screen transmission link of the screen transmission code is invalid, an alternative screen transmission link between the current device and the target screen transmission device is determined based on the local area network connection status information, the wide area network connection status information and the screen transmission device connection status information.
[0075] The step of determining an alternative screen transmission link between the current device and the target screen transmission device based on the screen transmission device connection status information includes:
[0076] Based on the connection status information of the screen transmitter, determine whether the screen transmission link of the screen transmitter is valid. If the screen transmission link of the screen transmitter is valid, determine the screen transmission link of the screen transmitter and the wireless module screen transmission link as the alternative screen transmission link, and the wireless module screen transmission link is built based on the wireless module of the current device and the wireless module of the target screen transmission device;
[0077] When the screen transmission link of the screen transmitter is invalid, the screen transmission link of the wireless module is determined as the alternative screen transmission link.
[0078] Determining an alternative screen transmission link between the current device and the target screen transmission device based on the local area network connection status information, the wide area network connection status information, and the screen transmission device connection status information includes:
[0079] Based on the local area network connection status information and the wide area network connection status information, select an available network from the local area network and the wide area network to build the screen transmission link of the screen transmission code, and based on the screen transmission device connection status information, determine whether the screen transmission link of the screen transmission device is valid;
[0080] When the screen transmission link of the screen transmission device is valid, the screen transmission code screen transmission link, the screen transmission link of the screen transmission device and the wireless module screen transmission link are determined as the alternative screen transmission links, and the wireless module screen transmission link is built based on the wireless module of the current device and the wireless module of the target screen transmission device;
[0081] When the screen transmission link of the screen transmitter is invalid, the screen transmission code link and the wireless module link are determined as the alternative screen transmission links.
[0082] Specifically, the alternative screen transmission link includes at least one of a screen transmission code screen transmission link, a screen transmission device screen transmission link and a wireless module screen transmission link;
[0083] The determining of link quality information of each of the candidate screen transmission links includes:
[0084] Determine the link quality information of the screen transmission link of the screen transmission device based on the network card version, supported rate, receiving sensitivity and hard-coded information of the screen transmission device;
[0085] Determine the link quality information of the wireless module screen transmission link based on the wireless module version, supported rate and receiving sensitivity of the current device and the target screen transmission device;
[0086] The link quality information of the screen transmission link of the screen transmission code is determined based on the network bandwidth and stability information detection results of the local area network or wide area network.
[0087] Wherein, selecting a target screen transmission link between the current device and the target screen transmission device from each of the candidate screen transmission links based on the link quality information includes:
[0088] The link quality scores of the candidate screen transmission links are weightedly calculated based on the link quality information, and the candidate screen transmission link with the highest link quality score is selected as the target screen transmission link between the current device and the target screen transmission device.
[0089] Specifically, after selecting a target screen transmission link between the current device and the target screen transmission device from each of the candidate screen transmission links based on the link quality information, the method further includes:
[0090] The unselected alternative screen transmission link is used as the backup link. When the target screen transmission link is in the set state, the backup link is switched as the screen transmission link between the current device and the target screen transmission device.
[0091] The screen transmission link adaptive selection device provided in the second embodiment of the present application can be used to execute the screen transmission link adaptive selection method provided in the above-mentioned first embodiment, and has corresponding functions and beneficial effects.
[0092] Embodiment three:
[0093] Embodiment 3 of the present application provides an electronic device, referring to Figure 5 The electronic device includes: a processor 31, a memory 32, a communication module 33, an input device 34 and an output device 35. The number of processors in the electronic device can be one or more, and the number of memories in the electronic device can be one or more. The processor, memory, communication module, input device and output device of the electronic device can be connected via a bus or other means.
[0094] As a computer-readable storage medium, the memory can be used to store software programs, computer executable programs and modules, such as the program instructions / modules corresponding to the screen transmission link adaptive selection method described in any embodiment of the present application (for example, the state determination module, link determination module and link selection module in the screen transmission link adaptive selection device). The memory may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the device, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network and a combination thereof.
[0095] The communication module is used for data transmission.
[0096] The processor executes various functional applications and data processing of the device by running software programs, instructions and modules stored in the memory, thereby realizing the above-mentioned screen transmission link adaptive selection method.
[0097] The input device can be used to receive input digital or character information and generate key signal input related to user settings and function control of the device. The output device can include display devices such as display screens.
[0098] The electronic device provided above can be used to execute the screen transmission link adaptive selection method provided in the above embodiment 1, and has corresponding functions and beneficial effects.
[0099] Embodiment 4:
[0100] An embodiment of the present application also provides a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to execute a method for adaptively selecting a screen transmission link, the method comprising: determining a screen transmission link status between a current device and a target screen transmission device, the screen transmission link status comprising one or more of screen transmission code transmission status information, local area network connection status information, wide area network connection status information, and screen transmitter connection status information; determining an alternative screen transmission link between the current device and the target screen transmission device based on the screen transmission link status; in the case where there are multiple alternative screen transmission links, determining link quality information of each of the alternative screen transmission links, and selecting a target screen transmission link between the current device and the target screen transmission device from each of the alternative screen transmission links based on the link quality information.
[0101] Storage medium - any of various types of memory devices or storage devices. The term "storage medium" is intended to include: installation media, such as CD-ROM, floppy disk or tape device; computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc.; non-volatile memory, such as flash memory, magnetic media (such as hard disk or optical storage); registers or other similar types of memory elements, etc. Storage media may also include other types of memory or combinations thereof. In addition, the storage medium may be located in the first computer system in which the program is executed, or may be located in a different second computer system, which is connected to the first computer system via a network (such as the Internet). The second computer system can provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media residing in different locations (for example, in different computer systems connected by a network). The storage medium may store program instructions (for example, embodied as a computer program) that can be executed by one or more processors.
[0102] Of course, the storage medium containing computer executable instructions provided in an embodiment of the present application is not limited to the screen transmission link adaptive selection method described above, and can also execute related operations in the screen transmission link adaptive selection method provided in any embodiment of the present application.
[0103] The screen transmission link adaptive selection device, storage medium and electronic device provided in the above embodiments can execute the screen transmission link adaptive selection method provided in any embodiment of the present application. For technical details not described in detail in the above embodiments, please refer to the screen transmission link adaptive selection method provided in any embodiment of the present application.
[0104] The above are only preferred embodiments of the present application and the technical principles used. The present application is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions that can be made by those skilled in the art will not deviate from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the claims.
Claims
1. A screen transmission link adaptive selection method, characterized in that: include: Determine the screen transmission link status between the current device and the target screen transmission device, wherein the screen transmission link status includes one or more of screen transmission code transmission status information, local area network connection status information, wide area network connection status information, and screen transmission device connection status information; Determine an alternative screen transmission link between the current device and the target screen transmission device based on the screen transmission link status; In the case where there are multiple alternative screen transmission links, the link quality information of each of the alternative screen transmission links is determined, and based on the link quality information, a target screen transmission link between the current device and the target screen transmission device is selected from each of the alternative screen transmission links.
2. The screen transmission link adaptive selection method according to claim 1 is characterized in that: In the case where the screen transmission link status includes screen transmission code transmission status information, local area network connection status information, wide area network connection status information, and screen transmission device connection status information, determining an alternative screen transmission link between the current device and the target screen transmission device based on the screen transmission link status includes: Based on the screen transmission code transmission status information, determine whether the screen transmission code screen transmission link is valid. If the screen transmission code screen transmission link is invalid, determine an alternative screen transmission link between the current device and the target screen transmission device based on the screen transmission device connection status information; When the screen transmission link of the screen transmission code is invalid, an alternative screen transmission link between the current device and the target screen transmission device is determined based on the local area network connection status information, the wide area network connection status information and the screen transmission device connection status information.
3. The screen transmission link adaptive selection method according to claim 2 is characterized in that: The determining, based on the connection status information of the screen transmitter, an alternative screen transmission link between the current device and the target screen transmission device includes: Based on the connection status information of the screen transmitter, determine whether the screen transmission link of the screen transmitter is valid. If the screen transmission link of the screen transmitter is valid, determine the screen transmission link of the screen transmitter and the wireless module screen transmission link as the alternative screen transmission link, and the wireless module screen transmission link is built based on the wireless module of the current device and the wireless module of the target screen transmission device; When the screen transmission link of the screen transmitter is invalid, the screen transmission link of the wireless module is determined as the alternative screen transmission link.
4. The screen transmission link adaptive selection method according to claim 2 is characterized in that: Determining an alternative screen transmission link between the current device and the target screen transmission device based on the local area network connection status information, the wide area network connection status information, and the screen transmission device connection status information includes: Based on the local area network connection status information and the wide area network connection status information, select an available network from the local area network and the wide area network to build the screen transmission link of the screen transmission code, and based on the screen transmission device connection status information, determine whether the screen transmission link of the screen transmission device is valid; When the screen transmission link of the screen transmission device is valid, the screen transmission code screen transmission link, the screen transmission link of the screen transmission device and the wireless module screen transmission link are determined as the alternative screen transmission links, and the wireless module screen transmission link is built based on the wireless module of the current device and the wireless module of the target screen transmission device; When the screen transmission link of the screen transmitter is invalid, the screen transmission code link and the wireless module link are determined as the alternative screen transmission links.
5. The screen transmission link adaptive selection method according to claim 1, characterized in that: The alternative screen transmission link includes at least one of a screen transmission code screen transmission link, a screen transmission device screen transmission link and a wireless module screen transmission link; The determining of link quality information of each of the candidate screen transmission links includes: Determine the link quality information of the screen transmission link of the screen transmission device based on the network card version, supported rate, receiving sensitivity and hard-coded information of the screen transmission device; Determine the link quality information of the wireless module screen transmission link based on the wireless module version, supported rate and receiving sensitivity of the current device and the target screen transmission device; The link quality information of the screen transmission link of the screen transmission code is determined based on the network bandwidth and stability information detection results of the local area network or wide area network.
6. The screen transmission link adaptive selection method according to claim 5, characterized in that: Selecting a target screen transmission link between the current device and the target screen transmission device from each of the candidate screen transmission links based on the link quality information includes: The link quality scores of the candidate screen transmission links are weightedly calculated based on the link quality information, and the candidate screen transmission link with the highest link quality score is selected as the target screen transmission link between the current device and the target screen transmission device.
7. The screen transmission link adaptive selection method according to claim 1, characterized in that: After selecting a target screen transmission link between the current device and the target screen transmission device from each of the candidate screen transmission links based on the link quality information, the method further includes: The unselected alternative screen transmission link is used as the backup link. When the target screen transmission link is in the set state, the backup link is switched as the screen transmission link between the current device and the target screen transmission device.
8. A screen transmission link adaptive selection device, characterized in that: include: A status determination module is used to determine the screen transmission link status between the current device and the target screen transmission device, wherein the screen transmission link status includes one or more of screen transmission code transmission status information, local area network connection status information, wide area network connection status information, and screen transmission device connection status information; A link determination module, used to determine an alternative screen transmission link between the current device and the target screen transmission device based on the screen transmission link status; The link selection module is used to determine the link quality information of each of the alternative screen transmission links when there are multiple alternative screen transmission links, and select the target screen transmission link between the current device and the target screen transmission device from each of the alternative screen transmission links based on the link quality information.
9. An electronic device, characterized in that: include: memory and one or more processors; The memory is used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the screen transmission link adaptive selection method as described in any one of claims 1-7.
10. A storage medium containing computer executable instructions, characterized in that: The computer executable instructions, when executed by a computer processor, are used to execute the screen transmission link adaptive selection method as described in any one of claims 1-7.