Wireless screen projection method, device, electronic device and storage medium
By obtaining and utilizing the undirected graph of information on the receiving end at the sending end, a wireless connection path across network segments is established, enabling wireless screencasting between devices in different network segments and solving the problem of inability to cast screens across network segments in the existing technology. .
Patent Information
- Application Number
- CN202110412546.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-16
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-04-16
AI Technical Summary
In the existing technology, the sending end and receiving end located in different network segments cannot implement wireless screen projection, and cannot perform data transmission in different network environments.
By obtaining the undirected graph of the first receiving end information at the sending end, displaying the receiving end list, and establishing a wireless connection path according to user selection, screencasting is achieved across network segments. Specific steps include: the sending end and the first receiving end are located in the same network segment, obtain a path for wireless connection to the target receiving end, and establish a wireless connection with the target receiving end through the path for screen projection.
It realizes wireless screen projection across network segments, solves the problem of being unable to transmit data between devices in different network segments, and expands the application scope of wireless screen projection.
Smart Images

Figure CN115225956B
Abstract
Description
Technical Field
[0001] The present application relates to the field of wireless screen projection technology, and in particular to a wireless screen projection method, device, electronic device and storage medium. Background Art
[0002] Wireless screen transmission refers to the technology of transmitting the image, sound, etc. of one device to another device via a wireless network or wired network and outputting the image, sound, etc. in real time.
[0003] Currently, the sender in the same network segment can transmit wireless screen projection data to the receiver, and the receiver can perform wireless screen projection based on the wireless screen projection data in real time. However, if the sender and the receiver are in different network segments, the sender cannot send wireless screen projection data to the receiver, and wireless screen projection cannot be achieved. Summary of the invention
[0004] The embodiments of the present application provide a wireless screen projection method, device, electronic device and storage medium, which can solve the problem that the transmitter and receiver located in different network segments cannot realize wireless screen projection. The technical solution is as follows:
[0005] In the first aspect, an embodiment of the present application provides a wireless screen projection method, including: a transmitting end obtains an undirected graph of first receiving end information from a first receiving end, the transmitting end and the first receiving end are located in the same network segment, the undirected graph of first receiving end information is used to indicate information of the first receiving end, information of at least one second receiving end that can be wirelessly connected to the first receiving end, and the wireless connection path from the first receiving end to each of the second receiving ends, at least some of the at least one second receiving end are located in a different network segment from the transmitting end.
[0006] The transmitting end displays a receiving end list based on the undirected graph of the first receiving end information; the receiving end list includes information of the first receiving end and information of at least one second receiving end; if the transmitting end receives a selection instruction from the user for a target receiving end, and the target receiving end is a second receiving end located in a different network segment from the transmitting end, the transmitting end obtains a path wirelessly connected to the target receiving end based on the undirected graph of the first receiving end information; the transmitting end establishes a wireless connection with the target receiving end through the path, so as to use the wireless connection to project the screen on the target receiving end.
[0007] Optionally, the first receiving end is the first node on the path; the sending end establishes a wireless connection with the target receiving end through the path, including: the sending end sends a wireless connection request for the target receiving end to the first receiving end, so that the first receiving end sends the wireless connection request to the next node on the path until the next node on the path is the target receiving end.
[0008] Optionally, the transmitting end obtains the first receiving end information undirected graph from the first receiving end, including: the transmitting end receives the first receiving end information undirected graph published by the first receiving end.
[0009] In the second aspect, an embodiment of the present application provides a wireless screen projection method, including: a first receiving end obtains an undirected graph of first receiving end information, wherein the first receiving end information undirected graph is used to indicate information of the first receiving end, information of at least one second receiving end that can be reached by the first receiving end through wireless connection, and a wireless connection path from the first receiving end to each of the second receiving ends, at least some of the at least one second receiving end are located in a different network segment from a transmitting end, and the transmitting end and the first receiving end are located in the same network segment; the first receiving end sends the first receiving end information undirected graph to the transmitting end, and the first receiving end information undirected graph is used to enable the transmitting end to establish a wireless connection with the second receiving end located in a different network segment for screen projection.
[0010] Optionally, the first receiving end obtains the first receiving end information undirected graph, including: the first receiving end receives the second receiving end information undirected graph published by the second receiving end, the first receiving end and the second receiving end are located in the same wireless network, the second receiving end information undirected graph is used to indicate information of the second receiving end, information of at least one third receiving end that can be wirelessly connected to the second receiving end, and the wireless connection path from the second receiving end to each of the third receiving ends, at least some of the at least one third receiving end are located in a different network segment from the first receiving end.
[0011] The first receiving end updates the first receiving end information undirected graph according to the second receiving end information undirected graph to obtain an updated first receiving end information undirected graph; the updated first receiving end information undirected graph includes information of the second receiving end, information of at least one third receiving end, and a wireless connection path from the first receiving end to each of the third receiving ends through the second receiving end.
[0012] Optionally, the first receiving end receives the second receiving end information undirected graph published by the second receiving end, including: the first receiving end receives the publishing data of the second receiving end, the publishing data of the second receiving end includes: the second receiving end information undirected graph, and the publishing type of the second receiving end information undirected graph, the publishing type of the second receiving end information undirected graph is used to indicate changes in the second receiving end information undirected graph.
[0013] The first receiving end updates the first receiving end information undirected graph according to the second receiving end information undirected graph, including: the first receiving end uses the second receiving end information undirected graph to update the first receiving end information undirected graph according to the publication type to obtain the updated first receiving end information undirected graph.
[0014] Optionally, the publishing type includes at least one of the following: adding a new receiving end, updating the information of a receiving end, and deleting a receiving end.
[0015] Optionally, the publication type is adding a new receiving end; the first receiving end uses the second receiving end information undirected graph to update the first receiving end information undirected graph according to the publication type, including: the first receiving end merges the second receiving end information undirected graph with the first receiving end information undirected graph.
[0016] Optionally, the publication type is to update the information of the receiving end; the first receiving end uses the second receiving end information undirected graph to update the first receiving end information undirected graph according to the publication type, including: the first receiving end parses the second receiving end information undirected graph to obtain the updated information of each receiving end, and uses the updated information of each receiving end to replace the corresponding information of each receiving end in the first receiving end information undirected graph.
[0017] Optionally, the publication type is to delete the receiving end; the first receiving end uses the second receiving end information undirected graph to update the first receiving end information undirected graph according to the publication type, including: the first receiving end parses the receiving end list from the second receiving end information undirected graph; the first receiving end deletes the information of the receiving ends that do not exist in the receiving end list from the first receiving end information undirected graph according to the receiving end list, as well as the information of the receiving ends that can be reached through the wireless connection through the non-existent receiving end.
[0018] Optionally, before the first receiving end receives the second receiving end information undirected graph published by the second receiving end, the method also includes: when the first receiving end is started, generating an empty first receiving end information undirected graph; the first receiving end adds the information of the first receiving end to the empty first receiving end information undirected graph to obtain the first receiving end information undirected graph.
[0019] Optionally, the information of the first receiving end includes: an update timestamp, and the method further includes: the first receiving end updating the update timestamp in the first receiving end information undirected graph to obtain an updated first receiving end information undirected graph.
[0020] Optionally, the method also includes: the first receiving end deletes the information of receiving ends whose update periods exceed a preset time length from the first receiving end information undirected graph according to the update timestamps corresponding to the information of each receiving end in the first receiving end information undirected graph, and the information of receiving ends that can be reached by wireless connection through the receiving ends whose update periods exceed the preset time length, to obtain an updated first receiving end information undirected graph.
[0021] Optionally, the method further includes: the first receiving end publishing the updated first receiving end information undirected graph.
[0022] Optionally, the first receiving end publishes the updated first receiving end information undirected graph, including: the first receiving end publishes the publishing data of the first receiving end, the publishing data of the first receiving end includes: the updated first receiving end information undirected graph, and the publishing type of the first receiving end information undirected graph, the publishing type of the first receiving end information undirected graph is used to indicate changes in the receiver information undirected graph of the first receiving end.
[0023] Optionally, after the first receiving end sends the first receiving end information undirected graph to the sending end, the method also includes: the first receiving end receives a wireless connection request for a target receiving end from the sending end, and the target receiving end is a second receiving end located in a different network segment from the sending end; the first receiving end obtains the next node on the path wirelessly connected from the first receiving end to the target receiving end based on the first receiving end information undirected graph; the first receiving end sends the wireless connection request to the next node on the path until the next node on the path is the target receiving end.
[0024] In a third aspect, an embodiment of the present application provides a wireless screen projection device, including:
[0025] A processing module is used to obtain an undirected graph of first receiving end information from a first receiving end, wherein a transmitting end and the first receiving end are located in the same network segment, and the undirected graph of the first receiving end information is used to indicate information of the first receiving end, information of at least one second receiving end that can be wirelessly connected to the first receiving end, and a wireless connection path from the first receiving end to each of the second receiving ends, wherein at least some of the at least one second receiving end are located in a different network segment from the transmitting end.
[0026] The display module is used to display a receiving end list based on the first receiving end information undirected graph; the receiving end list includes the information of the first receiving end and the information of the at least one second receiving end.
[0027] The processing module is also used to:
[0028] If a selection instruction for a target receiving end is received from a user, and the target receiving end is a second receiving end located in a different network segment from the transmitting end, then based on the first receiving end information undirected graph, a path wirelessly connected to the target receiving end is obtained;
[0029] A wireless connection is established with the target receiving end through the path, so as to use the wireless connection to perform screen projection on the target receiving end.
[0030] Optionally, the first receiving end is the first node on the path. The transceiver module is used to send a wireless connection request for the target receiving end to the first receiving end, so that the first receiving end sends the wireless connection request to the next node on the path until the next node on the path is the target receiving end.
[0031] Optionally, the transceiver module is further used to receive the first receiving end information undirected graph published by the first receiving end.
[0032] In a fourth aspect, an embodiment of the present application provides a wireless screen projection device, including:
[0033] A processing module is used to obtain an undirected graph of first receiving end information, wherein the undirected graph of the first receiving end information is used to indicate information of the first receiving end, information of at least one second receiving end that can be wirelessly connected to the first receiving end, and a wireless connection path from the first receiving end to each of the second receiving ends, at least some of the at least one second receiving end are located in a different network segment from a transmitting end, and the transmitting end and the first receiving end are located in the same network segment.
[0034] The transceiver module is used to send the first receiving end information undirected graph to the sending end, and the first receiving end information undirected graph is used to enable the sending end to establish a wireless connection with a second receiving end located in a different network segment for screen projection.
[0035] Optionally, the transceiver module is also used to receive an undirected graph of second receiving end information published by the second receiving end, the first receiving end and the second receiving end are located in the same wireless network, and the undirected graph of second receiving end information is used to indicate information of the second receiving end, information of at least one third receiving end that can be wirelessly connected to the second receiving end, and a wireless connection path from the second receiving end to each of the third receiving ends, and at least some of the at least one third receiving end are located in a different network segment from the first receiving end.
[0036] The processing module is specifically used to update the first receiving end information undirected graph according to the second receiving end information undirected graph to obtain an updated first receiving end information undirected graph; the updated first receiving end information undirected graph includes the information of the second receiving end, the information of the at least one third receiving end, and the wireless connection path from the first receiving end to each of the third receiving ends through the second receiving end.
[0037] Optionally, the transceiver module is specifically used for the first receiving end to receive the published data of the second receiving end, and the published data of the second receiving end includes: the second receiving end information undirected graph, and the publication type of the second receiving end information undirected graph, and the publication type of the second receiving end information undirected graph is used to indicate changes in the second receiving end information undirected graph.
[0038] The processing module is specifically used for the first receiving end to update the first receiving end information undirected graph using the second receiving end information undirected graph according to the publishing type, so as to obtain the updated first receiving end information undirected graph.
[0039] Optionally, the publishing type includes any of the following: adding a new receiving end, updating the information of a receiving end, and deleting a receiving end.
[0040] Optionally, the publishing type is adding a new receiving end. The processing module is specifically configured to merge the second receiving end information undirected graph with the first receiving end information undirected graph.
[0041] Optionally, the publishing type is to update the information of the receiving end. The processing module is specifically used to parse the second receiving end information undirected graph to obtain the updated information of each receiving end, and use the updated information of each receiving end to replace the corresponding information of each receiving end in the first receiving end information undirected graph.
[0042] Optionally, the publishing type is deleting a receiving end. The processing module is specifically used to parse the receiving end list from the second receiving end information undirected graph, and based on the receiving end list, delete the information of the receiving ends that do not exist in the receiving end list from the first receiving end information undirected graph, as well as the information of the receiving ends that can be reached through the wireless connection through the non-existent receiving ends.
[0043] Optionally, the processing module is also used to generate an empty undirected graph of information of the first receiving end when the first receiving end is started, and add the information of the first receiving end to the empty undirected graph of information of the first receiving end to obtain the undirected graph of information of the first receiving end.
[0044] Optionally, the information of the first receiving end includes: an update timestamp. The processing module is further configured to update the update timestamp in the first receiving end information undirected graph to obtain an updated first receiving end information undirected graph.
[0045] Optionally, the processing module is also used to delete the information of receiving ends whose update period exceeds a preset time length and the information of receiving ends that can be reached by wireless connection through the receiving ends whose update period exceeds the preset time length from the first receiving end information undirected graph according to the update timestamps corresponding to the information of each receiving end in the first receiving end information undirected graph, so as to obtain an updated first receiving end information undirected graph.
[0046] Optionally, the transceiver module is also used to publish the updated first receiving end information undirected graph.
[0047] Optionally, the transceiver module is specifically used to publish the publishing data of the first receiving end, and the publishing data of the first receiving end includes: the updated first receiving end information undirected graph, and the publishing type of the first receiving end information undirected graph, and the publishing type of the first receiving end information undirected graph is used to indicate changes in the receiving end information undirected graph of the first receiving end.
[0048] Optionally, the transceiver module is further used to receive a wireless connection request from the sending end for a target receiving end, where the target receiving end is a second receiving end located in a different network segment from the sending end.
[0049] The processing module is further used to obtain the next node on the path wirelessly connected from the first receiving end to the target receiving end according to the undirected graph of the first receiving end information.
[0050] The transceiver module is further used to send the wireless connection request to the next node on the path until the next node on the path is the target receiving end.
[0051] In a fifth aspect, an embodiment of the present application provides a computer storage medium, wherein the computer storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing the above-mentioned method steps.
[0052] In a sixth aspect, an embodiment of the present application provides an electronic device, which may include: a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the steps of the wireless screen projection method provided in the first and second aspects above.
[0053] In the seventh aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the steps of the wireless screen projection method provided in the first and second aspects above.
[0054] The embodiments of the present application provide a wireless screen projection method, device, electronic device and storage medium. The transmitting end can establish a path for wireless screen projection with the second receiving end located in a different network segment based on the first receiving end located in the same network segment as the transmitting end. Then, the transmitting end can send the projection data to the second receiving end through the path to realize wireless screen projection of the second receiving end. The wireless screen projection method provided by the present application can realize wireless screen projection between the transmitting end and the receiving end located in different network segments, which solves the problem in the prior art that the screen cannot be projected between the transmitting end and the receiving end located in different network segments. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0056] Figure 1 This is a schematic diagram of a current wireless screen projection scenario;
[0057] Figure 2 This is a schematic diagram of another scenario of current wireless screen projection;
[0058] Figure 3 A flowchart of a wireless screen projection method provided in an embodiment of the present application;
[0059] Figure 4 A schematic diagram of a scenario applicable to an embodiment of the present application;
[0060] Figure 5 A schematic diagram of a first receiving-end information undirected graph of a receiving-end device A provided in an embodiment of the present application;
[0061] Figure 6 A schematic diagram of an undirected graph of a first receiving end obtaining first receiving end information provided by an embodiment of the present application;
[0062] Figure 7 A schematic diagram of an interface of a sending end provided in an embodiment of the present application;
[0063] Figure 8 A flowchart of another wireless screen projection method provided in an embodiment of the present application;
[0064] Fig. 9 A schematic diagram of an undirected graph of a first receiving end updating first receiving end information provided by an embodiment of the present application;
[0065] Fig.10 A flowchart of another wireless screen projection method provided in an embodiment of the present application;
[0066] Fig.11A Another schematic diagram of the first receiving end updating the first receiving end information undirected graph provided in the embodiment of the present application;
[0067] Fig. 11B Another schematic diagram of the first receiving end updating the first receiving end information undirected graph provided in the embodiment of the present application;
[0068] Fig. 11C Another schematic diagram of the first receiving end updating the first receiving end information undirected graph provided in the embodiment of the present application;
[0069] Fig.12 A flowchart of another wireless screen projection method provided in an embodiment of the present application;
[0070] Fig.13 A schematic diagram of the structure of a wireless screen projection device provided in an embodiment of the present application;
[0071] Fig.14 Another structural schematic diagram of the wireless screen projection device provided in an embodiment of the present application;
[0072] Fig.15 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0073] In order to make the objectives, technical solutions and advantages of the present application more clear, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
[0074] It should be clear that the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0075] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.
[0076] In the description of the present application, it should be understood that the terms "first", "second", "third", etc. are only used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence, nor can they be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances. In addition, in the description of the present application, unless otherwise specified, "multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.
[0077] Figure 1 This is a schematic diagram of a current wireless screen projection scenario. Figure 1 , the scenario may include a sending end 100 and a receiving end 200. Figure 1 In the description, the sending end 100 is a tablet computer PAD and the receiving end 200 is a smart interactive tablet. Figure 1 The sending end 100 and the receiving end 200 shown are located in the same network segment, that is, the sending end 100 and the receiving end 200 are connected to the same network. In one embodiment, multiple network cards can be set in the receiving end 200, so the receiving end 200 can access multiple networks to enable the sending end 100 and the sending end 100 to access the same network. In one embodiment, the receiving end 200 can also have the function of a router, and can issue a hotspot for other devices (which can be other receiving ends or sending ends) to connect, such as the sending end 100 accessing the hotspot network of the receiving end 200 to enable the sending end 100 and the sending end 100 to access the same network. Figure 1 Because the sending end 100 and the receiving end 200 are located in the same network segment, the sending end 100 can be wirelessly connected to the receiving end 200, and then send the screen projection data to the receiving end 200, and the receiving end 200 realizes real-time screen projection based on the screen projection data.
[0078] In one embodiment, the transmitting end 100 may run a transmitting end software, which may enable the transmitting end 100 to capture the projection data on the transmitting end 100 and transmit it to the receiving end 200. The receiving end 200 may run a receiving end software, which may enable the receiving end 200 to implement wireless projection based on the projection data. The specific principles of how the transmitting end 100 and the receiving end 200 implement wireless projection are not described in detail in the embodiment of the present application.
[0079] It should be understood that before the transmitting end 100 and the receiving end 200 perform wireless screen projection, the transmitting end 100 needs to determine to which receiving end the projection data is transmitted, so before the transmitting end 100 and the receiving end 200 perform wireless screen projection, the transmitting end 100 and the receiving end 200 need to be connected. The connection process between the transmitting end 100 and the receiving end 200 can be: the transmitting end connects to the receiving end 200 based on the Internet protocol (IP) address and / or port information of the receiving end 200, and this process can be called device discovery.
[0080] Figure 2 This is another scenario diagram of wireless screen projection. Figure 2 If the transmitter 100 and the receiver 200 are located in different network segments, such as the transmitter 100 is located in network segment A and the receiver 200 is located in network segment B, the transmitter 100 cannot establish a wireless connection with the receiver 200, and the transmitter 100 cannot send projection data to the receiver 200, and thus wireless projection cannot be achieved. It should be understood that Figure 2 In the example, the sending end 100 is connected to the router 1 and the receiving end 200 is connected to the router 2, which indicates that the sending end 100 and the receiving end 200 can be located in different network segments.
[0081] The present application provides a wireless screen projection method. The transmitting end can establish a path for wireless screen projection with the second receiving end based on the first receiving end located in the same network segment as the transmitting end. The transmitting end can then send the projection data to the second receiving end through the path to realize wireless screen projection of the second receiving end. The wireless screen projection method provided by the present application can realize wireless screen projection between the transmitting end and the receiving end located in different network segments.
[0082] It should be understood that the transmitting end 100 in the embodiment of the present application can be, but is not limited to: a mobile phone, a laptop computer, a tablet computer, a personal digital assistant (PDA), a handheld device with a wireless communication function, a computing device or other processing device connected to a wireless modem, a vehicle-mounted device or a wearable device, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in a smart home, etc., which is not specifically limited in the embodiment of the present application.
[0083] The receiving end 200 can be, but is not limited to: a smart interactive tablet, a screen transmission box. In one embodiment, the hardware part of the smart interactive tablet is composed of a touch display module, an intelligent processing system (including a controller), etc., which are combined together by an integral structural member and supported by a dedicated software system. The touch display module includes a display screen, a touch component, and a backlight component. The backlight component is used to provide a backlight source for the display screen. The display screen generally uses a liquid crystal display device for displaying pictures. The touch component is set on the display screen or at the front end of the display screen to collect the user's touch operation data and send the collected touch operation data to the intelligent processing system for processing.
[0084] In actual use, the screen data is displayed on the display screen of the smart interactive tablet. When the user clicks on the content displayed on the display screen with a touch object such as a finger or a stylus, for example, clicks on a graphic button displayed on the display screen, the touch component of the smart interactive tablet will collect the touch data, and the touch component will convert the touch data into coordinate data of the touch point and send it to the intelligent processing system, or send it to the intelligent processing system and convert it into coordinate data of the touch point by the intelligent processing system. After the intelligent processing system obtains the coordinate data of the touch point, it implements the corresponding control operation according to the pre-set program, drives the display content of the display screen to change, and realizes a variety of display and operation effects.
[0085] Touch components can be divided into five basic categories based on technical principles: vector pressure sensing technology touch components, resistance technology touch components, capacitance technology touch components, electromagnetic technology touch screens, infrared technology touch components, and surface acoustic wave technology touch components. According to the working principle of the touch component and the medium for transmitting information, the touch component can be divided into four categories: resistance, capacitance induction, electromagnetic induction, infrared, and surface acoustic wave.
[0086] When the user touches the display screen with a finger or a pen, the touch component can collect data from the touch point and send it to the intelligent processing system, and then use the built-in software of the intelligent processing system to implement different functional applications, thereby realizing touch control of the intelligent processing system.
[0087] The “screen” and “large screen” mentioned in this application refer to the display screen of the smart interactive tablet; the smart interactive tablet displaying a certain interface means that the display screen of the smart interactive tablet displays the interface.
[0088] The following is a detailed description of the technical solutions of the embodiments of the present application in combination with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.
[0089] Reference Figure 3 , is a flow chart of a wireless screen projection method provided in an embodiment of the present application. The method comprises the following steps:
[0090] S301: A first receiving end obtains an undirected graph of first receiving end information.
[0091] The first receiving end information undirected graph is used to indicate information of the first receiving end, information of at least one second receiving end that can be wirelessly connected to the first receiving end, and wireless connection paths from the first receiving end to each second receiving end.
[0092] The information of the first receiving end may be, but is not limited to: the identity document (ID) number, device identification, IP address and timestamp of the first receiving end. In one embodiment, the ID of the first receiving end may be a globally unique identifier (GUID). The first receiving end may generate the GUID of the first receiving end based on an algorithm, and the embodiment of the present application does not limit the algorithm used to generate the GUID of the first receiving end. In one embodiment, the device identification may include, but is not limited to: device name, device model, etc. In one embodiment, the IP address of the first receiving end may include: the IP address of the access device accessed by the first receiving end and the hotspot IP address of the first receiving end. The timestamp may be the time when the first receiving end obtains the first receiving end information undirected graph. It should be understood that the time when the first receiving end obtains the first receiving end information undirected graph may be: the time when the first receiving end updates the first receiving end information undirected graph.
[0093] Exemplarily, the information of the first receiving end may be as shown in Table 1 below. It should be understood that the table is an example of the information of the first receiving end, and the present application does not limit the format of the information of the first receiving end:
[0094] Table 1
[0095]
[0096]
[0097] As shown in Table 1 above, other information may be the telephone number of the first receiving end, information of the user to which it belongs, and the like.
[0098] It should be understood that the first receiving end and the second receiving end can be located in the same network segment or in different network segments. The at least one second receiving end that can be wirelessly connected to the first receiving end can be understood as: the first receiving end can be wirelessly connected to the second receiving end through the network segment where the first receiving end is located, or the first receiving end can be wirelessly connected to the second receiving end through other receiving ends in the network segment where the first receiving end is located. Among them, the information of the second receiving end may include but is not limited to: the ID, device identification, IP address and timestamp of the second receiving end, and the relevant description of the information of the first receiving end can be referred to.
[0099] In the embodiment of the present application, the wireless connection path from the first receiving end to each second receiving end can be understood as: the path taken when the first receiving end can reach each second receiving end by wireless connection. In one embodiment, the first receiving end information undirected graph can be understood as an undirected graph of the first receiving end, and the undirected graph of the first receiving end includes: information of the first receiving end, information of at least one second receiving end that can be reached by the first receiving end by wireless connection, and the wireless connection path from the first receiving end to each second receiving end.
[0100] In the embodiment of the present application, the transmitting end and the first receiving end are located in the same network segment, and at least some of the at least one second receiving end and the transmitting end are located in a different network segment. Figure 4 This is a schematic diagram of a scenario applicable to the embodiment of the present application. Figure 4 , the first receiving end is receiving end device A, the second receiving end is receiving end device B and receiving end device C, and the sending end is Figure 4 The sending end device shown (hereinafter referred to as the sending end). Figure 4 , the sender accesses the hotspot network of the receiver device A and is located in the same network segment as the receiver device A. The receiver devices A and B access router A, and the receiver devices B and C access router B, and then the receiver devices A and B are located in the same network segment, the receiver devices B and C are located in the same network segment, and the receiver devices B and C are located in different network segments from the sender. It should be understood that Figure 4 In the IP address, it is indicated whether the sender and the receiver (or the receiver and the receiver) are located in the same network segment or in different network segments.
[0101] The receiving end device A may obtain the first receiving end information undirected graph of the receiving end device A. Figure 5A schematic diagram of a first receiving end information undirected graph of a receiving end device A provided in an embodiment of the present application. Figure 5 , the first receiving end information undirected graph may include information of receiving end device A, information of receiving end device B and receiving end device C that can be wirelessly connected to receiving end device A, as well as the wireless connection path from receiving end device A to receiving end device B (such as receiving end device A to receiving end device B), and the wireless connection path from receiving end device A to receiving end device C (such as receiving end device A to receiving end device B, and then to receiving end device C). It should be understood that Figure 5 The information of the receiving device A, the information of the receiving device B and the information of the receiving device C are not shown. For details, please refer to the above Table 1. Figure 5 In the figure, letters A, B, and C are used to represent receiving end device A, receiving end device B, and receiving end device C respectively.
[0102] In one embodiment, when the first receiving device is started, it can obtain information about the first receiving device and information about other receiving devices located in the same network segment, thereby constructing an undirected graph of first receiving information. Exemplarily, receiving device A can request information about receiving devices located in the same network segment from router A, thereby constructing an undirected graph of first receiving information. Alternatively, router A can broadcast information about devices connected to router A, and receiving device A can obtain information about other devices located in the same network segment based on the information broadcast by the router, thereby constructing an undirected graph of first receiving information. Figure 6 As shown in a, the receiving device A can obtain the information of the receiving device B located in the same network segment, and then construct a first receiving end information undirected graph.
[0103] In one embodiment, for the second receiving end, the second receiving end information undirected graph may be stored in the second receiving end. For example, the second receiving end information undirected graph of the receiving end device B may refer to Figure 6 The method for obtaining the second receiving end information undirected graph by the second receiving end can refer to the above description of the first receiving end constructing the first receiving end information undirected graph. In one embodiment, Figure 6 The first receiving end information undirected graph in a in the embodiment of the present application can be called the initial first receiving end information undirected graph. In the embodiment of the present application, the first receiving end can obtain the second receiving end information undirected graph from the second receiving end, and then update the initial first receiving end information undirected graph to obtain the first receiving end information undirected graph. Figure 6 It should be understood that the detailed description of the second receiving end information undirected graph can refer to the relevant description of the following embodiment.
[0104] The first receiving end updates the initial first receiving end information undirected graph based on the second receiving end information undirected graph, which can be understood as: the first receiving end adds information included in the second receiving end information undirected graph but not included in the initial first receiving end information undirected graph. Figure 6 As shown in c in FIG. 1 , the information included in the second receiving end information undirected graph but not included in the initial first receiving end information undirected graph may include: information of receiving end device C, and a wireless connection path through which receiving end device B can wirelessly connect to receiving end device C. It should be understood that, with reference to Figure 6 As shown in c, the vertex in the first receiving end information undirected graph is a receiving end, such as receiving end device A, receiving end device B and receiving end device C.
[0105] S302: The first receiving end sends an undirected graph of first receiving end information to the transmitting end.
[0106] After the first receiving end obtains the first receiving end information undirected graph, it can send the first receiving end information undirected graph to the sending end, and correspondingly, the sending end can obtain the first receiving end information undirected graph. The first receiving end information undirected graph is used to enable the sending end to establish a wireless connection for screen projection with the second receiving end located in a different network segment.
[0107] In one embodiment, the first receiving end may publish the first receiving end information undirected graph so that the transmitting end located in the same network segment may receive the first receiving end information undirected graph from the first receiving end. The first receiving end may, but is not limited to, publish the first receiving end information undirected graph by broadcast or multicast. For example, the first receiving end may publish the first receiving end information undirected graph by user datagram protocol (UDP) broadcast or UDP multicast.
[0108] S303: The sending end displays a list of receiving ends based on the undirected graph of the first receiving end information.
[0109] The transmitting end can receive an undirected graph of first receiving end information published by a first receiving end located in the same network segment, and the transmitting end can display a list of receiving ends based on the undirected graph of first receiving end information. The receiving end list includes information of the first receiving end and information of at least one second receiving end. In one embodiment, in order to simplify the receiving end list and facilitate the user to select the second receiving end to which the transmitting end sends the projection data, the receiving end list may include the device identification of the first receiving end and the device identification of at least one second receiving end.
[0110] For example, Figure 7 This is a schematic diagram of an interface of a transmitting end provided in an embodiment of the present application. Figure 7, the transmitting end may display the device identification of the first receiving end, such as A, and the device identification of at least one second receiving end, such as B and C. A, B and C are the device identifications of receiving end device A, receiving end device B and receiving end device C respectively.
[0111] S304, if the transmitting end receives a selection instruction from the user for a target receiving end, and the target receiving end is a second receiving end located in a different network segment from the transmitting end, the transmitting end obtains a path wirelessly connected to the target receiving end based on the first receiving end information undirected graph.
[0112] Reference Figure 7 , the user can select the target receiving end on the interface of the transmitting end, and the target receiving end is the receiving end that wirelessly projects the screen with the transmitting end. Among them, the target receiving end can be any one of the first receiving end or the second receiving end. It should be understood that when the target receiving end is the second receiving end of the first receiving end or the second receiving end that is located in the same network segment as the transmitting end, because the transmitting end and the target receiving end are located in the same network segment, the transmitting end can directly send the projection data to the target receiving end, refer to Figure 1 Related description.
[0113] When the target receiving end is a second receiving end among the second receiving ends that is not located in the same network segment as the sending end, the sending end cannot directly send the projection data to the target receiving end. In this scenario, that is, if the sending end receives a selection instruction from the user for the target receiving end, and the target receiving end is a second receiving end that is located in a different network segment from the sending end, the sending end obtains a path wirelessly connected to the target receiving end based on the undirected graph of the first receiving end information, and then projects the screen on the target receiving end through the path.
[0114] It should be understood that the path for the first receiving end to wirelessly connect to the target receiving end may be: from the transmitting end to the first receiving end located in the same network segment as the transmitting end, and then to the second receiving end located in the same network segment as the first receiving end. Figure 6 In the first receiving end information undirected graph shown in c, illustratively, if the target receiving end is receiving end device B, the path for the first receiving end to be wirelessly connected to the target receiving end is: sending end-receiving end device A-receiving end device B. If the target receiving end is receiving end device C, the path for the first receiving end to be wirelessly connected to the target receiving end is: sending end-receiving end device A-receiving end device B-receiving end device C.
[0115] S305, the transmitting end establishes a wireless connection with the target receiving end through the path, so as to project the screen on the target receiving end using the wireless connection.
[0116] After determining the path for wireless connection to the target receiving end, the sending end can establish a wireless connection with the target receiving end to send screen projection data to the target receiving end using the wireless connection to achieve wireless screen projection between the sending end and the target receiving end.
[0117] In one embodiment, the sending end establishes a wireless connection with the target receiving end through a path in the following manner: the sending end establishes a wireless connection with the first receiving end, and the first receiving end establishes a wireless connection with the second receiving end on the path that is located in the same network segment as the first receiving end, so as to indirectly realize the wireless connection between the sending end and the second receiving end. Exemplarily, if the path is: sending end-receiving end device A-receiving end device B, then the sending end can establish a wireless connection with the receiving end device A, and the receiving end device A can establish a wireless connection with the receiving end device B, so that the sending end can establish a wireless connection with the receiving end device B. In this way, the sending end can send screen projection data to the receiving end device A, and then the receiving end device A can send screen projection data to the receiving end device B, so that the receiving end device B can realize wireless screen projection based on the screen projection data.
[0118] In an embodiment of the present application, the transmitting end can establish a path for wireless screen projection based on a first receiving end located in the same network segment as the transmitting end and a second receiving end located in a different network segment from the transmitting end, and then the transmitting end can send projection data to the second receiving end through the path to achieve wireless screen projection of the second receiving end. The wireless screen projection method provided in the present application can achieve wireless screen projection between a transmitting end and a receiving end located in different network segments, solving the problem in the prior art that screen projection cannot be achieved between a transmitting end and a receiving end located in different network segments.
[0119] The above embodiment introduces a process in which the transmitting end uses the first receiving end information undirected graph from the first receiving end to establish a wireless connection with the second receiving end to achieve wireless screen projection. The following details the technical solution for the first receiving end to obtain the first receiving end information undirected graph.
[0120] Reference Figure 8 In one embodiment, the above S301 may be replaced by:
[0121] S301A, when the first receiving end is started, an empty first receiving end information undirected graph is generated.
[0122] The first receiving end startup can be understood as: the first receiving end switches from a non-working state to a working state. When the first receiving end is started, an empty first receiving end information undirected graph can be generated. The empty first receiving end information undirected graph does not contain any information.
[0123] S301B, the first receiving end adds the information of the first receiving end to an empty first receiving end information undirected graph to obtain the first receiving end information undirected graph.
[0124] The information of the first receiving end may refer to the relevant description of S301 above, which will not be repeated here. In the embodiment of the present application, the first receiving end adds the information of the first receiving end to the empty first receiving end information undirected graph to obtain the first receiving end information undirected graph, such as Fig. 9 As shown in a in .
[0125] S301C, the first receiving end receives the second receiving end information undirected graph published by the second receiving end.
[0126] The second receiving end information undirected graph is used to indicate information of the second receiving end, information of at least one third receiving end that can be wirelessly connected to the second receiving end, and the wireless connection path from the second receiving end to each third receiving end, at least some of the at least one third receiving end are located in a different network segment from the first receiving end.
[0127] For example, refer to the above Figure 4 As shown, the second receiving end may be a receiving end device B, the third receiving end may be a receiving end device C, the second receiving end may be located in the same network segment as at least part of the at least one third receiving end, and the second receiving end may be located in a different network segment from the other part of the at least one third receiving end. Among them, at least part of the at least one third receiving end is located in a different network segment from the first receiving end. Exemplarily, the receiving end device C is located in a different network segment from the receiving end device A. In the following embodiments, the first receiving end is the receiving end device A, the second receiving end may be the receiving end device B, and the third receiving end may be the receiving end device C as an example for explanation.
[0128] It should be understood that in the embodiment of the present application, when the second receiving end is started, it can also perform steps similar to those in S301A-S301B above, and the second receiving end can generate an empty first receiving end information undirected graph, and add the information of the second receiving end to the empty second receiving end information undirected graph to obtain the second receiving end information undirected graph, referring to Fig. 9 The specific process can refer to the first receiving end to obtain the relevant description of the first receiving end information undirected graph.
[0129] It should be understood that in the embodiment of the present application, when the third receiving end is started, it can also perform steps similar to those in S301A-S301B above, and the third receiving end can generate an empty third receiving end information undirected graph, and add the information of the third receiving end to the empty third receiving end information undirected graph to obtain the third receiving end information undirected graph, referring to Fig. 9 The specific process can refer to the first receiving end to obtain the relevant description of the first receiving end information undirected graph.
[0130] It is worth noting that after obtaining the first receiving end information undirected graph, the first receiving end information undirected graph can be published, so that other devices located in the same network segment as the first receiving end can receive the first receiving end information undirected graph. After obtaining the second receiving end information undirected graph, the second receiving end information undirected graph can be published, so that other devices located in the same network segment as the second receiving end can receive the second receiving end information undirected graph. Similarly, after obtaining the third receiving end information undirected graph, the third receiving end can publish the third receiving end information undirected graph, so that other devices located in the same network segment as the third receiving end can receive the third receiving end information undirected graph. Among them, the publishing method can refer to the relevant description of the above embodiment.
[0131] Accordingly, the second receiving end located in the same network segment as the third receiving end can receive the third receiving end information undirected graph, and the first receiving end located in the same network segment as the second receiving end can receive the second receiving end information undirected graph.
[0132] S301D: The first receiving end updates the first receiving end information undirected graph according to the second receiving end information undirected graph to obtain an updated first receiving end information undirected graph.
[0133] Because the second receiving end publishes the second receiving end information undirected graph, the first receiving end located in the same network segment as the second receiving end can receive the second receiving end information undirected graph. Based on this, the first receiving end can update the first receiving end information undirected graph based on the second receiving end information undirected graph to obtain an updated first receiving end information undirected graph. In one embodiment, the updated first receiving end information undirected graph can be the first receiving end information undirected graph in the above embodiment. Based on this, the first receiving end can send the first receiving end information undirected graph to the sending end, and then execute the steps S303-S305 in the above embodiment. Alternatively, in one embodiment, the "first receiving end information undirected graph" in S302-S305 in the above embodiment can be modified to "updated first receiving end information undirected graph" to execute the above S302-S305, refer to Figure 8 shown.
[0134] The updated first receiving end information undirected graph includes information of the second receiving end, information of at least one third receiving end, and a wireless connection path from the first receiving end to each third receiving end via the second receiving end.
[0135] Similarly, the second receiving end can update the second receiving end information undirected graph according to the third receiving end information undirected graph to obtain an updated second receiving end information undirected graph. In one embodiment, the updated second receiving end information undirected graph can be called the second receiving end information undirected graph.
[0136] For example, Fig. 9 In the example, the receiving end device B and the receiving end device C first access the network segment where the router B is located, and then the first receiving end accesses the network segment where the router A is located. Because the receiving end device B and the receiving end device C first access the network segment where the router B is located, the second receiving end can update the network segment based on the third receiving end information undirected graph. Fig. 9 The second receiving end information undirected graph shown in b in FIG. Fig. 9 Similarly, the third receiving end may also update the third receiving end information undirected graph based on the second receiving end information undirected graph published by the second receiving end. Fig. 9 When the first receiving end accesses the network segment where router A is located, the first receiving end can generate the following Fig. 9 The first receiving end information undirected graph shown in a in , and based on the second receiving end information undirected graph published by the second receiving end, the first receiving end information undirected graph is updated, and the updated first receiving end information undirected graph is as follows Fig. 9 As shown in e.
[0137] It should be understood that Fig. 9 In the description, the example is taken that the second receiving end first updates the second receiving end information undirected graph based on the third receiving end information undirected graph, and the first receiving end then updates the first receiving end information undirected graph based on the second receiving end information undirected graph. It can be imagined that there is no distinction in order between the first receiving end updating the first receiving end information undirected graph and the second receiving end updating the second receiving end information undirected graph, and the two can be executed at the same time.
[0138] In one embodiment, the first receiving end may update the first receiving end information undirected graph by adding information that is not included in the first receiving end information undirected graph and is included in the second receiving end information undirected graph to the first receiving end information undirected graph. Exemplarily, the information that is not included in the first receiving end information undirected graph and is included in the second receiving end information undirected graph may include: information of the second receiving end, information of the third receiving end, and a wireless connection path from the first receiving end to each second receiving end, and a wireless connection path from the second receiving end to each third receiving end.
[0139] In an embodiment of the present application, the first receiving end can generate a first receiving end information undirected graph when it is started, and can also update the first receiving end information undirected graph based on the second receiving end information undirected graph published by the second receiving end located in the same network segment as the first receiving end, so that the updated first receiving end information undirected graph can include information of the second receiving end located in a different network segment from the first receiving end, thereby facilitating the sending end to establish a wireless connection with the second receiving end based on the first receiving end information undirected graph.
[0140] In one embodiment, the receiving end and / or the receiving end information in the access network is changing, and accordingly, the receiving end information undirected graph of the receiving end will change accordingly. Exemplarily, if the receiving end device C exits the network segment where the router B is located, the second receiving end information undirected graph of the receiving end device B does not include the information of the receiving end device C, and the wireless connection path through which the receiving end device B can reach the receiving end device C by wireless connection. Exemplarily, if the receiving end device D accesses the hotspot network of the receiving end device C, the third receiving end information undirected graph of the receiving end device C may include: the information of the receiving end device D, and the wireless connection path through which the receiving end device C can reach the receiving end device D by wireless connection. Similarly, the third receiving end information undirected graph of the receiving end device B may include: the information of the receiving end device D, and the wireless connection path through which the receiving end device C can reach the receiving end device D by wireless connection.
[0141] Accordingly, in the embodiment of the present application, the receiving end (the first receiving end, the second receiving end or the third receiving end) can update the receiving end information undirected graph and broadcast or multicast the data when accessing a new network segment or when the receiving end and / or the information of the receiving end in the network segment accessed by the receiving end changes. The following embodiment is described by taking the second receiving end broadcasting or multicasting the data as an example:
[0142] In one embodiment, referring to Fig.10 , after the above S301D, it may also include:
[0143] S301E, the first receiving end receives the published data of the second receiving end, where the published data of the second receiving end includes: the second receiving end information undirected graph, and the publishing type of the second receiving end information undirected graph.
[0144] The second receiving end may send the published data in a broadcast or multicast manner. The published data may include: the second receiving end information undirected graph, and the publishing type of the second receiving end information undirected graph. The publishing type of the second receiving end information undirected graph is used to indicate changes that occur in the second receiving end information undirected graph. In one embodiment, the second receiving end information undirected graph in the published data may be an updated second receiving end information undirected graph based on the publishing type.
[0145] In one embodiment, the publishing type may be, but is not limited to, at least one of the following: adding a new receiving terminal, updating the information of the receiving terminal, and deleting the receiving terminal. The addition of a new receiving terminal indicates that a new third receiving terminal has accessed the network segment where the second receiving terminal is located. The updating of the receiving terminal information indicates that the information of the second receiving terminal has changed, such as the device identification of the second receiving terminal has changed, for example, the user has modified the device identification of the second receiving terminal. The deletion of a receiving terminal indicates that the third receiving terminal located in the same network segment as the second receiving terminal has exited the network segment.
[0146] S301F, the first receiving end uses the second receiving end information undirected graph to update the first receiving end information undirected graph according to the publishing type, and obtains an updated first receiving end information undirected graph.
[0147] After receiving the published data, the first receiving end may use the second receiving end information undirected graph to update the first receiving end information undirected graph according to the publishing type to obtain an updated first receiving end information undirected graph.
[0148] In one embodiment, the publishing type is to add a new receiving end. The first receiving end may merge the second receiving end information undirected graph with the first receiving end information undirected graph. Fig.11A As shown in a in FIG, the second receiving end information undirected graph can be as follows Fig.11A As shown in b in the figure, the newly added receiving end in the second receiving end information undirected graph is receiving end device C. In the embodiment of the present application, receiving end device A can merge the information of receiving end device C newly added in the second receiving end information undirected graph and the wireless connection path from receiving end device B to receiving end device C into the first receiving end information undirected graph to obtain an updated first receiving end information undirected graph, referring to Fig.11A As shown in c.
[0149] In one embodiment, the publishing type is to update the information of the receiving end. The first receiving end can parse the updated information of each receiving end from the second receiving end information undirected graph, and use the updated information of each receiving end to replace the corresponding information of each receiving end in the first receiving end information undirected graph.
[0150] Exemplarily, in order to reflect the change of the receiving end information in the first receiving end information undirected graph, Fig. 11B The information of each receiving end in the first receiving end information undirected graph is shown in FIG. Fig. 11B As shown in a in FIG, the second receiving end information undirected graph can be as follows Fig. 11B As shown in b in the figure, the device identification of the second receiving end in the second receiving end information undirected graph changes from "B" to "B1". In the embodiment of the present application, the receiving end device A can parse the second receiving end information undirected graph, and then obtain the device identification of the second receiving end from "B" to "B1". Based on this, the receiving end device A modifies the device identification of the second receiving end in the first receiving end information undirected graph, that is, replaces the information of each corresponding receiving end in the first receiving end information undirected graph, and obtains the updated first receiving end information undirected graph. Fig. 11B As shown in c.
[0151] In one embodiment, the publishing type is to delete the receiving end. The first receiving end parses the receiving end list from the second receiving end information undirected graph, and then the first receiving end deletes the information of the receiving ends that do not exist in the receiving end list from the first receiving end information undirected graph according to the receiving end list, as well as the information of the receiving ends that can be reached by wireless connection through the non-existent receiving ends. The receiving end list can be each third receiving end included in the second receiving end information undirected graph.
[0152] Exemplarily, the first receiving end information undirected graph of the first receiving end is as follows: Fig. 11C As shown in a in FIG, the second receiving end information undirected graph can be as follows Fig. 11C As shown in b in the figure, the receiving device C in the second receiving device information undirected graph exits the network segment where the receiving device B is located, so the publishing type is to delete the receiving device. In the embodiment of the present application, the receiving device A can parse the second receiving device information undirected graph to obtain a receiving device list, and the receiving device list includes: receiving device B. Because the first receiving device information undirected graph includes receiving device B and receiving device C, the first receiving device determines that the receiving device C exits the network segment where the receiving device B is located, and needs to delete the information of the receiving device C that does not exist in the receiving device list to obtain the updated first receiving device information undirected graph, referring to Fig. 11C As shown in c.
[0153] It can be imagined that in this scenario, if receiving device D is connected to the hotspot network of receiving device C, then receiving device A can reach receiving device D through receiving device B and receiving device C in sequence. Because receiving device C exits the network segment where receiving device B is located, receiving device C does not exist in the receiving terminal list, so receiving device A cannot reach receiving device C through receiving device B, let alone receiving device D. Therefore, receiving device A also needs to delete the information of the receiving terminal (receiving device D) that can be reached by wireless connection through the non-existent receiving terminal (receiving device C) in the first receiving terminal information undirected graph.
[0154] In one embodiment, after updating the first receiving end information undirected graph, the first receiving end may publish the updated first receiving end information undirected graph. In one embodiment, the first receiving end may broadcast or multicast the published data, thereby notifying other receiving ends and transmitting ends that the first receiving end information undirected graph has been updated. Among them, the published data of the first receiving end includes: the updated first receiving end information undirected graph, and the publication type of the first receiving end information undirected graph, and the publication type of the first receiving end information undirected graph is used to indicate the changes that have occurred in the first receiving end information undirected graph of the first receiving end. It should be understood that the published data of the first receiving end can refer to the relevant description of the published data of the second receiving end mentioned above, and other receiving ends can update their own receiving end information undirected graphs when receiving the published data, and the updating method can refer to the relevant description of the first receiving end updating the first receiving end information undirected graph based on the published data from the second receiving end.
[0155] In an embodiment of the present application, the first receiving end can update the first receiving end information undirected graph based on the published data from the second receiving end, so that the first receiving end information undirected graph can represent the latest network topology, which can improve the wireless connection path between the sending end and the target receiving end.
[0156] In one embodiment, S301G and S301H may be included after S301F. It should be understood that Fig.10 S301G and S301H are not shown.
[0157] S301G, the first receiving end updates the update timestamp in the first receiving end information undirected graph to obtain an updated first receiving end information undirected graph.
[0158] The information of the first receiving end includes: an update timestamp. Referring to Table 1 above, the information of the first receiving end includes a timestamp, which may be an update timestamp. The update timestamp may be: a timestamp updated by the first receiving end at a preset time interval. Exemplarily, after the first receiving end generates an empty first receiving end information undirected graph, the timestamp shown in Table 1 may be updated every 10 seconds, that is, the update period of the first receiving end is 10 seconds.
[0159] In an embodiment, the first receiving end may also set the update timestamp to the timestamp when the first receiving end information undirected graph is updated when the first receiving end information undirected graph is updated.
[0160] S301H, the first receiving end deletes the information of receiving ends whose update periods exceed the preset time length and the information of receiving ends that can be reached by wireless connection through receiving ends whose update periods exceed the preset time length from the first receiving end information undirected graph according to the update timestamps corresponding to the information of each receiving end in the first receiving end information undirected graph, to obtain an updated first receiving end information undirected graph.
[0161] In the embodiment of the present application, each receiving end (the second receiving end and the third receiving end) can update the update timestamp in the receiving end information undirected graph. Exemplarily, the second receiving end can update the update timestamp in the second receiving end information undirected graph every 10 seconds, that is, the update period of the second receiving end is 10 seconds. It should be understood that the purpose of the receiving end updating the update timestamp in the receiving end information undirected graph is to indicate to other receiving ends or sending ends that it is in a normal working state.
[0162] In the embodiment of the present application, the first receiving end can receive the second receiving end information undirected graph with updated update timestamp from the second receiving end, so the second receiving end can obtain the update timestamp corresponding to the information of each receiving end in the first receiving end information undirected graph, and then determine whether there is a receiving end whose update cycle exceeds the preset time length, and then treat the receiving end whose update cycle exceeds the preset time length as an abnormal receiving end. The preset time length can be predefined.
[0163] The first receiving end can delete the information of the receiving end whose update period exceeds the preset time length from the first receiving end information undirected graph. Because the receiving end whose update period exceeds the preset time length is abnormal, it will affect the accuracy of the information of other receiving ends connected to it. Therefore, the first receiving end can delete the information of the receiving end that can be reached by wireless connection through the receiving end whose update period exceeds the preset time length from the first receiving end information undirected graph, and obtain an updated first receiving end information undirected graph.
[0164] Exemplarily, the update period of the update timestamps of receiving device A and receiving device B is 10s, the preset duration is 1min, the update timestamp in the first receiving end information undirected graph of receiving device A is 8:01:02, and the update timestamp of receiving device B in the first receiving end information undirected graph is 8:00:00, and the update period of receiving device B is 1min2s, which exceeds the preset duration of 1min. Therefore, receiving device A can determine that receiving device B is abnormal. Therefore, receiving device A can delete the information of receiving device B and the information of receiving device C reachable via receiving device B in the first receiving end information undirected graph.
[0165] In one embodiment, the first receiving end may detect the update period of the update timestamp of each receiving end in the first receiving end information undirected graph every preset time period to detect whether each receiving end is abnormal. The preset time period may be the same as or different from the "update period of the first receiving end", and the embodiment of the present application does not limit this.
[0166] In an embodiment of the present application, the first receiving end can judge whether each receiving end updates the update timestamp normally based on the update period of the update timestamp of each receiving end in the first receiving end information undirected graph, so as to determine whether each receiving end is abnormal. Then, when the receiving end is abnormal, the information of the abnormal receiving end and the information of the receiving end that can be reached through the abnormal receiving end through a wireless connection are deleted to improve the accuracy of the first receiving end information undirected graph.
[0167] The following describes a process in which a transmitting end obtains a path wirelessly connected to a target receiving end based on an undirected graph of information of a first receiving end, and establishes a wireless connection with the target receiving end through the path in an embodiment of the present application.
[0168] In one embodiment, referring to Fig.12 , the above S304 and S305 can be replaced by S304A-S304C, it should be understood that Fig.12 For Figure 3 The example of replacing S304 and S305 is used for explanation. It can be imagined that Fig.12 Also available in Figure 8 or Fig.10 Replace S304 and S305 based on:
[0169] S304A, if the transmitting end receives a selection instruction from the user for a target receiving end, and the target receiving end is a second receiving end located in a different network segment from the transmitting end, the transmitting end sends a wireless connection request for the target receiving end to the first receiving end.
[0170] When the transmitter establishes a wireless connection with the target receiver, the shortest path from the transmitter to the target receiver can be calculated based on the shortest path algorithm. In one embodiment, the shortest path algorithm can be but is not limited to the Dijkstra algorithm.
[0171] In the embodiment of the present application, the first receiving end is the first node on the path where the first receiving end is wirelessly connected to the target receiving end, and the transmitting end can send a wireless connection request for the target receiving end to the first receiving end. After receiving the wireless connection request, the first receiving end can establish a wireless connection with the transmitting end. In the embodiment of the present application, the process of establishing a wireless connection between the transmitting end and the first receiving end is not described in detail.
[0172] S304B: The first receiving end obtains the next node on the path wirelessly connected from the first receiving end to the target receiving end according to the first receiving end information undirected graph.
[0173] The first receiving end may use the shortest path algorithm based on the first receiving end information undirected graph to obtain the next node on the path from the first receiving end to the target receiving end wirelessly connected. Exemplarily, when the target receiving end is receiving end device B, the next node on the path from the first receiving end to the target receiving end wirelessly connected is the target receiving end, that is, receiving end device B.
[0174] S304C: The first receiving end sends a wireless connection request to the next node on the path until the next node on the path is the target receiving end.
[0175] The first receiving end may send a wireless connection request to the next node on the path to establish a wireless connection with the next node. If the next node is the target receiving end, after the first receiving end establishes a wireless connection with the next node, a wireless connection from the transmitting end to the target receiving end is established. Exemplarily, when the target receiving end is receiving end device B, the next node on the path where the first receiving end is wirelessly connected to the target receiving end is the target receiving end, that is, receiving end device B. The transmitting end may be indirectly wirelessly connected to the second receiving end through the wireless connection between the transmitting end and the first receiving end, and the wireless connection between the first receiving end and the second receiving end.
[0176] In one embodiment, if the next node is not the target receiving end, the next node needs to obtain the next node on the path wirelessly connected from the next node to the target receiving end based on the shortest path algorithm, and then send a wireless connection request to the "next node on the path wirelessly connected from the next node to the target receiving end" until the next node on the path is the target receiving end.
[0177] Exemplarily, when the target receiving end is receiving end device C, the next node on the path where the first receiving end is wirelessly connected to the target receiving end may be receiving end device B, and the first receiving end sends a wireless connection request to receiving end device B to establish a wireless connection between the first receiving end and receiving end device B. Receiving end device B may obtain the next node on the path where the receiving end device B is wirelessly connected to the target receiving end based on the shortest path algorithm, such as receiving end device C, i.e., the target receiving end, and receiving end device B may send a wireless connection request to receiving end device C to establish a wireless connection between receiving end device B and receiving end device C, thereby establishing a wireless connection from the sending end to the target receiving end.
[0178] S304D, the transmitting end projects the screen on the target receiving end using a wireless connection.
[0179] For S304D, reference may be made to the related description of the above S305.
[0180] In an embodiment of the present application, when the transmitting end establishes a wireless connection with the target receiving end, the transmitting end can send a wireless connection request to the first node on the path through which the transmitting end is wirelessly connected to the target receiving end, that is, the first receiving end, to establish a wireless connection between the transmitting end and the first receiving end. The first receiving end can continue to send wireless connection requests to the next node on the path until the next node on the path is the target receiving end, thereby establishing a wireless connection from the transmitting end to the target receiving end, so that the transmitting end uses the wireless connection to project the screen on the target receiving end.
[0181] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0182] See also Fig.13 , which shows a structural schematic diagram of a wireless screen projection device provided in an embodiment of the present application. The wireless screen projection device can be implemented as all or part of the sending end through software, hardware or a combination of both. The wireless screen projection device is used to perform the actions performed by the sending end in the above embodiment. The wireless screen projection device 1300 includes: a processing module 1301, a display module 1302 and a transceiver module 1303.
[0183] Processing module 1301 is used to obtain an undirected graph of first receiving end information from the first receiving end, where the transmitting end and the first receiving end are located in the same network segment, and the undirected graph of first receiving end information is used to indicate information of the first receiving end, information of at least one second receiving end that can be wirelessly connected to the first receiving end, and a wireless connection path from the first receiving end to each second receiving end, and at least some of the at least one second receiving end are located in a different network segment from the transmitting end.
[0184] The display module 1302 is used to display a receiving end list based on the first receiving end information undirected graph; the receiving end list includes information of the first receiving end and information of at least one second receiving end.
[0185] The processing module 1301 is further used for:
[0186] If a user selection instruction for a target receiving end is received, and the target receiving end is a second receiving end located in a different network segment from the transmitting end, then based on the first receiving end information undirected graph, a path wirelessly connected to the target receiving end is obtained;
[0187] Through the path, a wireless connection is established with the target receiving end to use the wireless connection to project the screen on the target receiving end.
[0188] Optionally, the first receiving end is the first node on the path. The transceiver module 1303 is configured to send a wireless connection request for a target receiving end to the first receiving end, so that the first receiving end sends a wireless connection request to the next node on the path until the next node on the path is the target receiving end.
[0189] Optionally, the transceiver module 1303 is further configured to receive an undirected graph of first receiving end information published by the first receiving end.
[0190] See also Fig.14 , which shows another structural schematic diagram of the wireless screen projection device provided in an embodiment of the present application. The wireless screen projection device can be implemented as all or part of the transmitting end through software, hardware or a combination of both. The wireless screen projection device is used to perform the actions performed by the first receiving end in the above embodiment. The wireless screen projection device 1400 includes: a processing module 1401 and a transceiver module 1402.
[0191] Processing module 1401 is used to obtain an undirected graph of first receiving end information, where the undirected graph of first receiving end information is used to indicate information of the first receiving end, information of at least one second receiving end that can be wirelessly connected to the first receiving end, and a wireless connection path from the first receiving end to each second receiving end, where at least some of the at least one second receiving end are located in a different network segment from the transmitting end, and the transmitting end and the first receiving end are located in the same network segment.
[0192] The transceiver module 1402 is used to send a first receiving end information undirected graph to the transmitting end, and the first receiving end information undirected graph is used to enable the transmitting end to establish a wireless connection with a second receiving end located in a different network segment for screen projection.
[0193] Optionally, the transceiver module 1402 is also used to receive an undirected graph of second receiving end information published by the second receiving end, the first receiving end and the second receiving end are located in the same wireless network, and the undirected graph of second receiving end information is used to indicate information of the second receiving end, information of at least one third receiving end that can be wirelessly connected to the second receiving end, and a wireless connection path from the second receiving end to each third receiving end, at least some of the at least one third receiving end are located in a different network segment from the first receiving end.
[0194] Processing module 1401 is specifically used to update the first receiving end information undirected graph according to the second receiving end information undirected graph to obtain an updated first receiving end information undirected graph; the updated first receiving end information undirected graph includes information of the second receiving end, information of at least one third receiving end, and the wireless connection path from the first receiving end to each third receiving end through the second receiving end.
[0195] Optionally, the transceiver module 1402 is specifically used for the first receiving end to receive the published data of the second receiving end, and the published data of the second receiving end includes: the second receiving end information undirected graph, and the publication type of the second receiving end information undirected graph, and the publication type of the second receiving end information undirected graph is used to indicate changes in the second receiving end information undirected graph.
[0196] The processing module 1401 is specifically configured for the first receiving end to update the first receiving end information undirected graph using the second receiving end information undirected graph according to the publishing type, so as to obtain the updated first receiving end information undirected graph.
[0197] Optionally, the publishing type includes any of the following: adding a new receiver, updating the receiver's information, and deleting a receiver.
[0198] Optionally, the publishing type is adding a new receiving end. The processing module 1401 is specifically configured to merge the second receiving end information undirected graph with the first receiving end information undirected graph.
[0199] Optionally, the publishing type is to update the information of the receiving end. The processing module 1401 is specifically used to parse the second receiving end information undirected graph to obtain the updated information of each receiving end, and use the updated information of each receiving end to replace the corresponding information of each receiving end in the first receiving end information undirected graph.
[0200] Optionally, the publishing type is to delete the receiving end. The processing module 1401 is specifically used to parse the receiving end list from the second receiving end information undirected graph, and according to the receiving end list, delete the information of the receiving end that does not exist in the receiving end list from the first receiving end information undirected graph, as well as the information of the receiving end that can be reached through the wireless connection through the non-existent receiving end.
[0201] Optionally, the processing module 1401 is further used to generate an empty first receiving end information undirected graph when the first receiving end is started, and add the information of the first receiving end to the empty first receiving end information undirected graph to obtain the first receiving end information undirected graph.
[0202] Optionally, the information of the first receiving end includes: an update timestamp. The processing module 1401 is further configured to update the update timestamp in the undirected graph of the first receiving end information to obtain an updated undirected graph of the first receiving end information.
[0203] Optionally, processing module 1401 is also used to delete, from the first receiving end information undirected graph, information on receiving ends whose update periods exceed a preset time period and information on receiving ends that can be reached through wireless connections after an update period exceeds the preset time period, based on update timestamps corresponding to information on each receiving end in the first receiving end information undirected graph, to obtain an updated first receiving end information undirected graph.
[0204] Optionally, the transceiver module 1402 is further configured to publish an updated first receiving end information undirected graph.
[0205] Optionally, the transceiver module 1402 is specifically used to publish the publishing data of the first receiving end, and the publishing data of the first receiving end includes: an updated first receiving end information undirected graph, and a publishing type of the first receiving end information undirected graph, and the publishing type of the first receiving end information undirected graph is used to indicate changes in the receiving end information undirected graph of the first receiving end.
[0206] Optionally, the transceiver module 1402 is further configured to receive a wireless connection request from the transmitting end for a target receiving end, where the target receiving end is a second receiving end located in a different network segment from the transmitting end.
[0207] The processing module 1401 is further configured to obtain, according to the first receiving end information undirected graph, a next node on a path wirelessly connected from the first receiving end to the target receiving end.
[0208] The transceiver module 1402 is further configured to send a wireless connection request to the next node on the path until the next node on the path is the target receiving end.
[0209] It should be noted that the wireless screen projection device provided in the above embodiment only uses the division of the above functional modules as an example when executing the wireless screen projection method. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure is divided into different functional modules to complete all or part of the functions described above. In addition, the wireless screen projection device provided in the above embodiment and the embodiment of the wireless screen projection method belong to the same concept, and the implementation process thereof is detailed in the method embodiment, which will not be repeated here.
[0210] The technical effects in the embodiments of the present application can refer to the relevant description of the embodiments of the above-mentioned wireless screen projection method.
[0211] The present application also provides a computer storage medium, which can store multiple instructions, which are suitable for being loaded by a processor and executing the method steps of the above embodiment. The specific execution process can be seen in Figure 3 , Figure 8 , Fig.10 and Fig.12 The specific description of the illustrated embodiment will not be repeated here.
[0212] The storage medium may be located at the transmitting end and the first receiving end.
[0213] Reference Fig.15 , is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Fig.15 The electronic device shown may be a transmitting end or a first receiving end. Fig.15 The electronic device is taken as the first receiving end (smart interactive tablet) as an example for explanation. Fig.15 As shown, the electronic device 1000 may include: at least one processor 1001 , at least one network interface 1004 , a user interface 1003 , a memory 1005 , and at least one communication bus 1002 .
[0214] The communication bus 1002 is used to realize the connection and communication between these components.
[0215] The user interface 1003 may include a display screen (Display) and a camera (Camera), and the optional user interface 1003 may also include a standard wired interface and a wireless interface.
[0216] The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0217] Among them, the processor 1001 may include one or more processing cores. The processor 1001 uses various interfaces and lines to connect various parts within the entire electronic device 1000, and executes various functions and processes data of the electronic device 1000 by running or executing instructions, programs, code sets or instruction sets stored in the memory 1005, and calling data stored in the memory 1005. Optionally, the processor 1001 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 1001 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 1001, and it can be implemented separately through a chip.
[0218] Among them, the memory 1005 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 1005 includes a non-transitory computer-readable storage medium. The memory 1005 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 1005 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 1005 may optionally be at least one storage device located away from the aforementioned processor 1001. As Fig.15 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an operating application of the electronic device.
[0219] exist Fig.15 In the electronic device 1000 shown, the user interface 1003 is mainly used to provide an input interface for the user and obtain data input by the user; and the processor 1001 can be used to call the operating application of the electronic device stored in the memory 1005, and specifically execute the steps performed by the above-mentioned processing module 1301. In one embodiment, the processor 1001 can execute the steps performed by the above-mentioned processing module 1401. The details can be referred to the above-mentioned related description, which will not be repeated here.
[0220] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0221] The present application is described with reference to the flowcharts and / or block diagrams of the methods, (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing processor to generate a machine, so that the instructions executed by the computer or other programmable data processing processor generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0222] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0223] These computer program instructions can also be loaded into a computer or other programmable data processor so that a series of operating steps are executed on the computer or other programmable data processor to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable data processor. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0224] In a typical configuration, a computer includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
[0225] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0226] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage or any other non-transmission media that can be used to store information that can be accessed by a computer. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0227] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or a product that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or product. In the absence of more restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity or product that includes the element.
[0228] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A wireless screen projection method, characterized in that: include: The transmitting end obtains a first receiving end information undirected graph from the first receiving end, the transmitting end and the first receiving end are located in the same network segment, the first receiving end information undirected graph is used to indicate information of the first receiving end, information of at least one second receiving end that can be wirelessly connected to the first receiving end, and a wireless connection path from the first receiving end to each of the second receiving ends, and at least some of the at least one second receiving end are located in a different network segment from the transmitting end; The transmitting end displays a receiving end list based on the first receiving end information undirected graph; the receiving end list includes information of the first receiving end and information of the at least one second receiving end; If the transmitting end receives a selection instruction from a user for a target receiving end, and the target receiving end is a second receiving end located in a different network segment from the transmitting end, the transmitting end obtains a path wirelessly connected to the target receiving end based on the first receiving end information undirected graph; The transmitting end establishes a wireless connection with the target receiving end through the path, so as to project the screen on the target receiving end using the wireless connection.
2. The method according to claim 1, characterized in that The first receiving end is the first node on the path; The transmitting end establishes a wireless connection with the target receiving end through the path, including: The transmitting end sends a wireless connection request for the target receiving end to the first receiving end, so that the first receiving end sends the wireless connection request to the next node on the path until the next node on the path is the target receiving end.
3. The method according to claim 1, characterized in that The transmitting end obtains the first receiving end information undirected graph from the first receiving end, including: The sending end receives an undirected graph of the first receiving end information published by the first receiving end.
4. A wireless screen projection method, characterized in that: include: The first receiving end obtains an undirected graph of first receiving end information, where the undirected graph of first receiving end information is used to indicate information of the first receiving end, information of at least one second receiving end that is wirelessly connectable to the first receiving end, and a wireless connection path from the first receiving end to each of the second receiving ends, where at least some of the at least one second receiving end are located in a different network segment from the transmitting end, and the transmitting end and the first receiving end are located in the same network segment; The first receiving end sends the first receiving end information undirected graph to the transmitting end, and the first receiving end information undirected graph is used to enable the transmitting end to establish a wireless connection for screen projection with a second receiving end located in a different network segment.
5. The method according to claim 4, characterized in that The first receiving end obtains the first receiving end information undirected graph, including: The first receiving end receives an undirected graph of second receiving end information published by a second receiving end located in the same wireless network as the first receiving end, wherein the undirected graph of second receiving end information is used to indicate information of the second receiving end, information of at least one third receiving end that is wirelessly connectable to the second receiving end, and a wireless connection path from the second receiving end to each of the third receiving ends, wherein at least some of the at least one third receiving end are located in a different network segment from the first receiving end; The first receiving end updates the first receiving end information undirected graph according to the second receiving end information undirected graph to obtain an updated first receiving end information undirected graph; the updated first receiving end information undirected graph includes information of the second receiving end, information of at least one third receiving end, and a wireless connection path from the first receiving end to each of the third receiving ends through the second receiving end.
6. The method according to claim 5, characterized in that The first receiving end receives an undirected graph of second receiving end information published by the second receiving end, including: The first receiving end receives the published data of the second receiving end, wherein the published data of the second receiving end includes: the second receiving end information undirected graph, and the publishing type of the second receiving end information undirected graph, wherein the publishing type of the second receiving end information undirected graph is used to indicate a change in the second receiving end information undirected graph; The first receiving end updates the first receiving end information undirected graph according to the second receiving end information undirected graph, including: The first receiving end uses the second receiving end information undirected graph to update the first receiving end information undirected graph according to the publishing type, and obtains the updated first receiving end information undirected graph.
7. The method according to claim 6, characterized in that The release type includes at least one of the following: Add a new receiver, update the receiver's information, and delete a receiver.
8. The method according to claim 7, characterized in that The publishing type is adding a new receiving end; The first receiving end updates the first receiving end information undirected graph using the second receiving end information undirected graph according to the publishing type, including: The first receiving end merges the second receiving end information undirected graph with the first receiving end information undirected graph.
9. The method according to claim 7, characterized in that: The publishing type is to update the information of the receiving end; The first receiving end updates the first receiving end information undirected graph using the second receiving end information undirected graph according to the publishing type, including: The first receiving end parses the second receiving end information undirected graph to obtain updated information of each receiving end, and uses the updated information of each receiving end to replace the corresponding information of each receiving end in the first receiving end information undirected graph.
10. The method according to claim 7, characterized in that The publishing type is to delete the receiving end; The first receiving end updates the first receiving end information undirected graph using the second receiving end information undirected graph according to the publishing type, including: The first receiving end parses the second receiving end information undirected graph to obtain a receiving end list; The first receiving end deletes the information of the receiving ends that do not exist in the receiving end list and the information of the receiving ends that can be reached by wireless connection through the non-existent receiving ends from the first receiving end information undirected graph according to the receiving end list.
11. The method according to any one of claims 5 to 10, characterized in that: Before the first receiving end receives the second receiving end information undirected graph published by the second receiving end, the method further includes: When the first receiving end is started, an empty undirected graph of the first receiving end information is generated; The first receiving end adds the information of the first receiving end to the empty first receiving end information undirected graph to obtain the first receiving end information undirected graph.
12. The method according to any one of claims 5 to 10, characterized in that: The information of the first receiving end includes: an update timestamp, and the method further includes: The first receiving end updates an update timestamp in the first receiving end information undirected graph to obtain an updated first receiving end information undirected graph.
13. The method according to claim 12, characterized in that The method further comprises: The first receiving end deletes the information of receiving ends whose update periods exceed a preset time length and the information of receiving ends that can be reached by wireless connection through receiving ends whose update periods exceed the preset time length from the first receiving end information undirected graph based on the update timestamps corresponding to the information of each receiving end in the first receiving end information undirected graph, to obtain an updated first receiving end information undirected graph.
14. The method according to any one of claims 5-10 and 13, characterized in that: The method further comprises: The first receiving end publishes the updated first receiving end information undirected graph.
15. The method according to claim 14, characterized in that The first receiving end publishes the updated first receiving end information undirected graph, including: The first receiving end publishes the publishing data of the first receiving end, and the publishing data of the first receiving end includes: the updated first receiving end information undirected graph, and the publishing type of the first receiving end information undirected graph, and the publishing type of the first receiving end information undirected graph is used to indicate the changes in the receiving end information undirected graph of the first receiving end.
16. The method according to any one of claims 4-10, 13 and 15, characterized in that: After the first receiving end sends the first receiving end information undirected graph to the sending end, the method further includes: The first receiving end receives a wireless connection request from the sending end for a target receiving end, where the target receiving end is a second receiving end located in a different network segment from the sending end; The first receiving end acquires, according to the first receiving end information undirected graph, a next node on a path wirelessly connected from the first receiving end to the target receiving end; The first receiving end sends the wireless connection request to the next node on the path until the next node on the path is the target receiving end.
17. A wireless screen projection device, characterized in that: include: a processing module, configured to obtain an undirected graph of first receiving end information from a first receiving end, wherein a transmitting end and the first receiving end are located in the same network segment, and the undirected graph of the first receiving end information is used to indicate information of the first receiving end, information of at least one second receiving end that can be wirelessly connected to the first receiving end, and a wireless connection path from the first receiving end to each of the second receiving ends, and at least some of the at least one second receiving end are located in a different network segment from the transmitting end; A display module, configured to display a receiving end list based on the first receiving end information undirected graph; the receiving end list includes information of the first receiving end and information of the at least one second receiving end; The processing module is further used for: If a selection instruction for a target receiving end is received from a user, and the target receiving end is a second receiving end located in a different network segment from the transmitting end, then based on the first receiving end information undirected graph, a path wirelessly connected to the target receiving end is obtained; A wireless connection is established with the target receiving end through the path, so as to use the wireless connection to perform screen projection on the target receiving end.
18. A wireless screen projection device, characterized in that: include: a processing module, configured to obtain an undirected graph of first receiving end information, wherein the undirected graph of the first receiving end information is used to indicate information of the first receiving end, information of at least one second receiving end that is wirelessly connectable to the first receiving end, and a wireless connection path from the first receiving end to each of the second receiving ends, wherein at least some of the at least one second receiving end are located in a different network segment from a transmitting end, and the transmitting end and the first receiving end are located in the same network segment; The transceiver module is used to send the first receiving end information undirected graph to the sending end, and the first receiving end information undirected graph is used to enable the sending end to establish a wireless connection with a second receiving end located in a different network segment for screen projection.
19. A computer storage medium, characterized in that: The computer storage medium stores a plurality of instructions, which are suitable for being loaded by a processor and executing the method steps according to any one of claims 1 to 16.
20. An electronic device, characterized in that: include: A processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the method steps as claimed in any one of claims 1 to 16.
21. A computer program product, comprising a computer program, characterized in that When the computer program is executed by the processor, the method steps according to any one of claims 1 to 16 are implemented.
