Projection screen connection method and device, terminal equipment and computer program product

Automatically verify and re-establish the screencasting connection through server signals and flags, solving the problem of cumbersome operations after the screencasting connection is abnormally disconnected, achieving automatic recovery and high accuracy, and improving user experience and security.

CN118803333APending Publication Date: 2024-10-18CHINA MOBILE COMM GRP TERMINAL +1
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410294093.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-14
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

After the screen mirroring connection between the two terminals is abnormally disconnected, the user needs to reinitiate the screen mirroring connection request, which makes the operation cumbersome and affects the user experience.

Method used

By sending signals and flags through the server, the terminal device automatically verifies and re-establishes the screen projection connection, simplifying user operations, and uses unique terminal identification information for reconnection verification to improve accuracy and security.

Benefits of technology

When the screencasting connection is abnormally disconnected, the screencasting connection is automatically restored without user participation, simplifying operations, improving user experience, and improving reconnection accuracy and security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118803333A_ABST
    Figure CN118803333A_ABST
Patent Text Reader

Abstract

The invention discloses a projection screen connection method and device, terminal equipment and a computer program product, and belongs to the technical field of terminals. The projection screen connection method comprises the steps that under the condition that a first signal sent by a server is received, a first mark and identification information of a first terminal are sent to a second terminal through the server, the first signal is used for indicating that projection screen connection between the first terminal and the second terminal is disconnected abnormally, and the first mark is used for indicating that the projection screen connection between the first terminal and the second terminal is disconnected abnormally. The first mark is used for screen projection reconnection verification; and under the condition that the second terminal passes the verification of the first mark and the identification information of the first terminal, reestablishing the projection screen connection with the second terminal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to a screen projection connection method, device, terminal equipment and computer program product. Background Art

[0002] Multi-screen interaction is the core of the Internet of Everything. Multi-screen interaction refers to the function of sharing services and wireless screen projection for multimedia content. Through the connection of wireless network, multimedia content can be transmitted, analyzed and displayed. The content can be shared and displayed on different terminal devices to realize media sharing, entertainment and interaction.

[0003] In the related art, when the screen projection connection between two terminals is abnormally disconnected, in order to restore the screen projection, the user needs to re-initiate the screen projection connection request and repeat the operation of the first screen projection connection. The user operation is cumbersome and affects the user experience. Summary of the invention

[0004] The present application discloses a screen projection connection method, apparatus, terminal device and computer program product, which can simplify the user operation of restoring screen projection when the screen projection connection between two terminals is abnormally disconnected, thereby improving the user experience.

[0005] In order to solve the above problems, this application adopts the following technical solutions:

[0006] In a first aspect, an embodiment of the present application discloses a screen projection connection method, which is applied to a first terminal, comprising: when a first signal sent by a server is received, a first flag and identification information of the first terminal are sent to a second terminal through the server, wherein the first signal is used to indicate that the screen projection connection between the first terminal and the second terminal is abnormally disconnected, and the first flag is used to perform screen projection reconnection verification; when the second terminal successfully verifies the first flag and the identification information of the first terminal, the screen projection connection with the second terminal is re-established.

[0007] In a second aspect, an embodiment of the present application discloses a screen projection connection method, which is applied to a second terminal, including: receiving a first flag sent by a first terminal through a server and identification information of the first terminal, wherein the first flag is used for screen projection reconnection verification; based on a preset flag and initial identification information, verifying the first flag and the identification information of the first terminal, wherein the preset flag is a reference flag pre-set in the second terminal for identifying the first flag, and the initial identification information is the identification information of a terminal connected to the second terminal before the screen projection connection is abnormally disconnected; when the verification of the first flag and the identification information of the first terminal is passed, re-establishing the screen projection connection with the first terminal.

[0008] In the third aspect, an embodiment of the present application discloses a screen projection connection device, comprising: a sending module, which is used to send a first flag and identification information of a first terminal to a second terminal through the server when a first signal sent by a server is received, wherein the first signal is used to indicate that the screen projection connection between the first terminal and the second terminal is abnormally disconnected, and the first flag is used to perform screen projection reconnection verification; an establishing module, which is used to re-establish the screen projection connection with the second terminal when the second terminal verifies the first flag and the identification information of the first terminal.

[0009] In a fourth aspect, an embodiment of the present application discloses a screen projection connection device, comprising: a receiving module, used to receive a first flag and identification information of the first terminal sent by a first terminal through a server, wherein the first flag is used for screen projection reconnection verification; a verification module, used to verify the first flag and the identification information of the first terminal based on a preset flag and initial identification information, wherein the preset flag is a reference flag pre-set in the second terminal for identifying the first flag, and the initial identification information is the identification information of the terminal connected to the second terminal before the screen projection connection is abnormally disconnected; an establishing module, used to re-establish the screen projection connection with the first terminal when the verification of the first flag and the identification information of the first terminal is passed.

[0010] In a fifth aspect, an embodiment of the present application provides a terminal device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect or the second aspect are implemented.

[0011] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method described in the first aspect or the second aspect are implemented.

[0012] In the seventh aspect, an embodiment of the present application provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions, which, when executed by a computer, cause the computer to execute: the steps of the method described in the first aspect or the second aspect.

[0013] An embodiment of the present application provides a screen projection connection method. When the first terminal receives a first signal sent by a server, the first terminal sends a first flag and identification information of the first terminal to the second terminal through the server. The first signal is used to indicate that the screen projection connection between the first terminal and the second terminal is abnormally disconnected. The first flag is used to perform screen projection reconnection verification. When the second terminal verifies the first flag and the identification information of the first terminal, the screen projection connection with the second terminal is re-established. By adopting the screen projection connection method disclosed in the present application, when the screen projection connection between the first terminal and the second terminal is abnormally disconnected, the process of restoring the screen projection (i.e., reconnecting the screen projection) does not require user participation, which can simplify the user operation of restoring the screen projection, thereby improving the user experience. In addition, the present application uses the unique identification information of the first terminal for reconnection verification, which can improve accuracy and security. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 A flowchart of a screen projection connection method disclosed in an embodiment of the present application;

[0015] Figure 2 A schematic diagram of a flow chart of another screen projection connection method disclosed in an embodiment of the present application;

[0016] Figure 3 A schematic diagram of the structure of a screen projection connection system disclosed in an embodiment of the present application;

[0017] Figure 4 A schematic diagram of the structure of a screen projection connection device disclosed in an embodiment of the present application;

[0018] Figure 5 This is a structural schematic diagram of another screen projection connection device disclosed in an embodiment of the present application;

[0019] Figure 6 A schematic diagram of the structure of a terminal device disclosed in an embodiment of the present application. DETAILED DESCRIPTION

[0020] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0021] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the electrically connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0022] In the present application, the first terminal is a source device, and exemplarily, the first terminal may be a mobile terminal such as a mobile phone or a tablet. The second terminal is a target device, and exemplarily, the second terminal may be a TV terminal. The server may be a proxy server.

[0023] The screen projection connection method, device, terminal device and computer program product disclosed in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.

[0024] The present application discloses a screen projection connection method, which is applied to a first terminal. Figure 1 Schematic diagram of a screen projection connection method disclosed in an embodiment of the present application. Figure 1 As shown, the method comprises the following steps:

[0025] S120. When a first signal sent by a server is received, a first flag and identification information of the first terminal are sent to the second terminal through the server, wherein the first signal is used to indicate that the screen projection connection between the first terminal and the second terminal is abnormally disconnected, and the first flag is used to perform screen projection reconnection verification.

[0026] When the first terminal and the second terminal are in a screen projection connection, the server can determine whether the screen projection connection between the first terminal and the second terminal is abnormally disconnected based on the heartbeat mechanism. When the server determines that the screen projection connection between the first terminal and the second terminal is abnormally disconnected, the server sends a first signal to the first terminal, and the first signal is used to indicate that the screen projection connection between the first terminal and the second terminal is abnormally disconnected.

[0027] When the first terminal receives the first signal sent by the server, the first terminal automatically sends the first flag and the identification information of the first terminal to the second terminal through the server, and the first flag indicates that the screen projection connection between the first terminal and the second terminal is abnormally disconnected, and the first flag is used for screen projection reconnection verification. Exemplarily, the first flag is True.

[0028] It should be noted that the first terminal and the second terminal are connected through a server. The abnormal disconnection of the projection connection between the first terminal and the second terminal may be caused by network fluctuations and the like. When the network fluctuations cause the abnormal disconnection of the projection connection between the first terminal and the second terminal, and after the network is restored, the IP address of the first terminal may change. The abnormal disconnection of the projection connection between the first terminal and the second terminal may specifically be the disconnection of the connection between the first terminal and the server.

[0029] S140. When the second terminal successfully verifies the first flag and the identification information of the first terminal, re-establish the screen projection connection with the second terminal.

[0030] In the present application, when the second terminal receives the first mark and the identification information of the first terminal sent by the first terminal through the server, the second terminal verifies the received first mark and the identification information of the first terminal, and when the second terminal successfully verifies the first mark and the identification information of the first terminal, the first terminal re-establishes the screen projection connection with the second terminal. Alternatively, when the second terminal receives the first mark and the identification information of the first terminal sent by the first terminal through the server, the second terminal verifies the received first mark and the identification information of the first terminal, and when the second terminal successfully verifies the first mark and the identification information of the first terminal, the second terminal can send a verification pass signal to the first terminal through the server, and when the first terminal receives the verification pass signal sent by the second terminal through the server, the first terminal re-establishes the screen projection connection with the second terminal, that is, restores the screen projection connection between the first terminal and the second terminal.

[0031] It should be noted that, when the first terminal receives the first signal sent by the server and the verification signal sent by the second terminal through the server, the first terminal may not prompt the user. The prompt may include displaying a pop-up window, vibration, ringing, etc. corresponding to the received signal on the display screen. That is, when the screen projection connection between the first terminal and the second terminal is abnormally disconnected, the process of restoring the screen projection (i.e., reconnecting the screen projection) is invisible to the user, does not require user participation in the operation, and can automatically restore the reconnection.

[0032] In addition, since the terminal identification (UserId) is unique and cannot be forged, the present application uses the identification information of the first terminal for reconnection verification, which can improve accuracy and security.

[0033] An embodiment of the present application provides a screen projection connection method. When the first terminal receives a first signal sent by a server, the first terminal sends a first flag and identification information of the first terminal to the second terminal through the server. The first signal is used to indicate that the screen projection connection between the first terminal and the second terminal is abnormally disconnected. The first flag is used to perform screen projection reconnection verification. When the second terminal verifies the first flag and the identification information of the first terminal, the screen projection connection with the second terminal is re-established. By adopting the screen projection connection method disclosed in the present application, when the screen projection connection between the first terminal and the second terminal is abnormally disconnected, the process of restoring the screen projection (i.e., reconnecting the screen projection) does not require user participation, which can simplify the user operation of restoring the screen projection, thereby improving the user experience. In addition, the present application uses the unique identification information of the first terminal for reconnection verification, which can improve accuracy and security.

[0034] In addition, since the terminal identification is unique, and the IP address of the first terminal may change before and after the screen projection connection between the first terminal and the second terminal is abnormally disconnected, the scheme of reconnection verification through the identification information of the first terminal disclosed in this application can improve the accuracy of screen projection reconnection.

[0035] In the embodiment of the present application, when receiving the first signal sent by the server, sending the first flag and the identification information of the first terminal to the second terminal through the server may include: when receiving the first signal sent by the server, setting the flag bit to the first flag, and sending the first flag and the identification information of the first terminal to the second terminal through the server. That is, the first flag may be the value assigned to the flag bit of the first terminal when the first terminal receives the first signal sent by the server.

[0036] In an embodiment of the present application, when a first signal sent by the server is received, before the first flag and the identification information of the first terminal are sent to the second terminal through the server, it may also include: sending a screen projection request to the server, wherein the screen projection request carries the address information of the first terminal and the identification information of the first terminal; when target data is obtained from the second terminal, sending verification data to the server, wherein the target data is data generated by the second terminal based on the terminal data received from the server, the terminal data includes the address information of the first terminal and the identification information of the first terminal, and the verification data includes the identification information of the first terminal; when a second signal sent by the server is received, establishing a screen projection connection with the second terminal, wherein the second signal is used to instruct the server to verify the verification data according to the identification information of the first terminal carried by the screen projection request.

[0037] In the present application, the first terminal may send a screen projection request to the server in response to an external input, where the external input may be an operation performed by a user. The address information of the first terminal may be an Internet Protocol Address (IP address) of the first terminal.

[0038] The target data may be a QR code generated by the second terminal based on the address information of the first terminal and the identification information of the first terminal received from the server, or may be a string of numbers generated by the second terminal based on the address information of the first terminal and the identification information of the first terminal received from the server. The present application does not specifically limit the specific form of the target data. In the case where the target data is a QR code generated by the second terminal based on the address information of the first terminal and the identification information of the first terminal received from the server, the first terminal obtains the target data from the second terminal, that is, the first terminal scans the QR code displayed on the display screen of the second terminal.

[0039] It should be noted that, whether the target data is a QR code or a string of numbers, the target data can be generated using an existing algorithm. In addition, the verification data is not data obtained from the target data, and the verification data is the identification information of the first terminal sent to the server for the second time by the first terminal.

[0040] The server verifies the verification data based on the identification information of the first terminal carried in the screen projection request. If the verification data is successful, that is, the identification information of the first terminal carried in the screen projection request is the same as the identification information of the first terminal in the verification data, otherwise, the verification fails and the server sends a message to the first terminal rejecting the screen projection request.

[0041] In the present application, the first terminal sends a screen projection request to the server, and the screen projection request carries the address information of the first terminal and the identification information of the first terminal. When the first terminal obtains the target data from the second terminal, the first terminal sends verification data to the server, and the verification data includes the identification information of the first terminal. When the server verifies the verification data according to the identification information of the first terminal carried in the screen projection request, the server sends a second signal to the first terminal, and the second signal is used to indicate that the server verifies the verification data according to the identification information of the first terminal carried in the screen projection request. When the first terminal receives the second signal sent by the server, it establishes a screen projection connection with the second terminal to realize the screen projection connection between the first terminal and the second terminal.

[0042] In this embodiment, the verification data is verified by the identification information of the first terminal carried in the screen projection request. If the verification is successful, the first terminal establishes a screen projection connection with the second terminal, which can ensure that the terminal that initiates the screen projection request and the terminal that is finally connected to the second terminal for screen projection are the same terminal, that is, terminal A initiates a screen projection request to the server, and finally terminal A is connected to the second terminal for screen projection. In addition, since the identification information of the first terminal is unique and the IP address is easy to be forged, the solution of verifying through the identification information of the first terminal in this application can reduce the risk of screen projection connection and improve the security of screen projection connection compared to the solution of verifying through the terminal IP address.

[0043] In one implementation, when a first signal sent by a server is received, before the first flag and the identification information of the first terminal are sent to the second terminal through the server, it may also include: sending a screen projection request to the server, wherein the screen projection request carries the identification information of the first terminal; when target data is obtained from the second terminal, sending verification data to the server, wherein the target data is data generated by the second terminal based on the identification information of the first terminal sent by the server, and the verification data includes the identification information of the first terminal; when a second signal sent by the server is received, establishing a screen projection connection with the second terminal, wherein the second signal is used to instruct the server to verify the verification data based on the identification information of the first terminal carried by the screen projection request.

[0044] In this embodiment, the verification data is verified by the identification information of the first terminal carried in the screen projection request. If the verification is successful, the first terminal establishes a screen projection connection with the second terminal, which can ensure that the terminal that initiates the screen projection request and the terminal that is finally connected to the second terminal for screen projection are the same terminal, that is, terminal A initiates a screen projection request to the server, and finally terminal A is connected to the second terminal for screen projection. In addition, since the identification information of the first terminal is unique, this application can reduce the risk of screen projection connection and improve the security of screen projection connection by verifying the identification information of the first terminal.

[0045] In an embodiment of the present application, after the first terminal establishes a screen projection connection with the second terminal, the flag bit of the first terminal can be set to a second flag. Exemplarily, the second flag can be False.

[0046] In one implementation, upon receiving the first signal sent by the server, sending the first mark and the identification information of the first terminal to the second terminal through the server may include: upon receiving the first signal sent by the server, encrypting the first mark and the identification information of the first terminal using a preset encryption algorithm to obtain encrypted data, and sending the encrypted data to the second terminal through the server. Correspondingly, upon receiving the encrypted data sent by the first terminal through the server, the second terminal decrypts the encrypted data using a preset decryption algorithm corresponding to the preset encryption algorithm to obtain the first mark and the identification information of the first terminal.

[0047] When the server receives a screen projection request sent by the first terminal, the server saves the address information of the first terminal and the identification information of the first terminal carried in the screen projection request, and uses a preset encryption algorithm to encrypt the address information of the first terminal and the identification information of the first terminal to obtain encrypted data, and then sends the encrypted data to the second terminal, and the second terminal generates target data based on the encrypted data.

[0048] In the above scheme, by encrypting data during transmission, the security of data transmission and the security of the screen projection connection can be improved.

[0049] In this application, the server mainly forwards data without doing any substantial processing. By using the server to forward data, the screen projection connection of this solution can be operated across networks, which can break through the limitation that the screen projection connection can only be performed in the local area network in the existing technology. In addition, the server is also implemented internally, and the security performance is guaranteed to a certain extent.

[0050] The present application discloses a screen projection connection method, which is applied to a second terminal. Figure 2 FIG. 1 is a flow chart of another screen projection connection method disclosed in an embodiment of the present application. Figure 2 As shown, the method comprises the following steps:

[0051] S220. Receive a first flag and identification information of the first terminal sent by the first terminal through the server, wherein the first flag is used for screen projection reconnection verification.

[0052] In the present application, the identification information of the first terminal is unique. The first flag indicates that the screen projection connection between the first terminal and the second terminal is abnormally disconnected, and the first flag is used for screen projection reconnection verification. Exemplarily, the first flag can be True.

[0053] It should be noted that the first terminal and the second terminal are connected through a server. The abnormal disconnection of the projection connection between the first terminal and the second terminal may be caused by network fluctuations and the like. The abnormal disconnection of the projection connection between the first terminal and the second terminal may specifically be the disconnection of the connection between the first terminal and the server.

[0054] S240. Based on a preset flag and initial identification information, verify the first flag and the identification information of the first terminal, wherein the preset flag is a reference flag pre-set in the second terminal for identifying the first flag, and the initial identification information is the identification information of the terminal connected to the second terminal for screen projection before the screen projection connection is abnormally disconnected.

[0055] In the present application, the preset flag may indicate that the projection connection between the first terminal and the second terminal is abnormally disconnected. Exemplarily, before the projection connection is abnormally disconnected, terminal A is connected to the second terminal for projection, and terminal A is the source device, then the initial identification information is the identification information of terminal A.

[0056] S260. When the first flag and the identification information of the first terminal are verified, re-establish the screen projection connection with the first terminal.

[0057] When the second terminal successfully verifies the first mark and the identification information of the first terminal, the second terminal re-establishes the screen projection connection with the first terminal. Alternatively, when the second terminal successfully verifies the first mark and the identification information of the first terminal, the second terminal sends a verification pass signal to the first terminal through the server and re-establishes the screen projection connection with the first terminal, that is, restores the screen projection connection between the first terminal and the second terminal, and the verification pass signal is used to indicate that the second terminal has successfully verified the first mark and the identification information of the first terminal.

[0058] Since the terminal identification (UserId) is unique and cannot be forged, the present application uses the identification information of the first terminal for reconnection verification, which can improve accuracy and security.

[0059] The embodiment of the present application provides a screen projection connection method, in which a second terminal receives a first flag and identification information of the first terminal sent by the first terminal through a server, the first flag is used for screen projection reconnection verification, and the second terminal verifies the first flag and the identification information of the first terminal based on a preset flag and initial identification information, the preset flag is a reference flag pre-set in the second terminal to identify the first flag, and the initial identification information is the identification information of the terminal connected to the second terminal before the screen projection connection is abnormally disconnected, and when the second terminal verifies the first flag and the identification information of the first terminal, the screen projection connection with the first terminal is reestablished. The present application uses the unique identification information of the first terminal for reconnection verification, which can improve accuracy and security.

[0060] In an embodiment of the present application, the re-establishment of the screen projection connection with the first terminal when the first mark and the identification information of the first terminal are verified, may include: when it is determined that the first mark is the preset mark and the identification information of the first terminal is the same as the initial identification information, the verification of the first mark and the identification information of the first terminal is passed; and the screen projection connection with the first terminal is re-established. That is, when the second terminal determines that the screen projection connection between the first terminal and the second terminal is abnormally disconnected according to the first mark, and the identification information of the first terminal is the same as the identification information of the terminal that was connected to the second terminal before the screen projection connection was abnormally disconnected, the second terminal verifies the first mark and the identification information of the first terminal and re-establishes the screen projection connection with the first terminal.

[0061] In an embodiment of the present application, before receiving the first flag sent by the first terminal through the server and the identification information of the first terminal, it may also include: receiving the address information of the first terminal and the identification information of the first terminal sent by the server; generating target data based on the address information of the first terminal and the identification information of the first terminal.

[0062] In the present application, the address information of the first terminal may be an Internet Protocol Address (IP address) of the first terminal.

[0063] The target data may be a QR code generated by the second terminal based on the address information of the first terminal and the identification information of the first terminal received from the server, or may be a string of numbers generated by the second terminal based on the address information of the first terminal and the identification information of the first terminal received from the server. The present application does not specifically limit the specific form of the target data. It should be noted that after generating the target data, the second terminal may display the target data on the display screen of the second terminal.

[0064] In another implementation, before receiving the first flag and identification information of the first terminal sent by the first terminal through the server, the method may further include: receiving identification information of the first terminal sent by the server; and generating target data based on the identification information of the first terminal.

[0065] The target data may be a QR code generated by the second terminal based on the identification information of the first terminal sent by the server, or a string of numbers generated by the second terminal based on the identification information of the first terminal sent by the server. The present application does not specifically limit the specific form of the target data. It should be noted that after generating the target data, the second terminal may display the target data on the display screen of the second terminal.

[0066] In the embodiment of the present application, before receiving the address information of the first terminal and the identification information of the first terminal sent by the server, it may also include: connecting to the server and sending the address information of the second terminal to the server. The address information of the second terminal may be the IP address of the second terminal. After receiving the IP address of the second terminal, the server may subsequently send data to the second terminal according to the IP address of the second terminal.

[0067] like Figure 3 As shown, the present application discloses a screen projection connection system, which includes a first terminal, a second terminal and a server. The screen projection connection system performs a screen projection connection operation according to the following steps.

[0068] S301: A second terminal connects to a server and sends address information of the second terminal to the server.

[0069] The address information of the second terminal may be an IP address of the second terminal. The server subsequently sends data to the second terminal according to the address information of the second terminal.

[0070] S302. The first terminal sends a screen projection request to the server, wherein the screen projection request carries the address information of the first terminal and the identification information (UserId) of the first terminal.

[0071] The address information of the first terminal may be an IP address of the first terminal.

[0072] S303. The server receives a screen projection request sent by the first terminal, saves the address information of the first terminal and the identification information of the first terminal carried in the screen projection request, and uses a preset encryption algorithm to encrypt the address information of the first terminal and the identification information of the first terminal to obtain first encrypted data, and then sends the first encrypted data to the second terminal. The second terminal generates target data based on the first encrypted data and displays it.

[0073] The target data may be a QR code corresponding to the first encrypted data, or a string of numbers corresponding to the first encrypted data. In addition, after receiving the first encrypted data, the second terminal may decrypt the first encrypted data using a decryption algorithm corresponding to a preset encryption algorithm to obtain decrypted data and determine the address information of the first terminal that initiated the screen projection request and the identification information of the first terminal.

[0074] S304: The first terminal obtains target data from the second terminal.

[0075] When the target data is a QR code, the first terminal obtains the target data from the second terminal. Specifically, the first terminal can scan the QR code. After scanning the QR code, the first terminal can also decrypt the first encrypted data using a decryption algorithm corresponding to the preset encryption algorithm to obtain decrypted data.

[0076] S305. After the first terminal obtains the target data from the second terminal, it sends verification data to the server, where the verification data includes the identification information of the first terminal; the server verifies the verification data according to the identification information of the first terminal carried in the screen projection request, if they are the same, the verification succeeds, otherwise, the verification fails.

[0077] It should be noted that the verification data is not data obtained through the target data, and the verification data is identification information of the first terminal sent by the first terminal to the server for the second time.

[0078] S306. The server sends the verification result to the first terminal. If the verification result is verification passed, the first terminal establishes a screen projection connection with the second terminal, that is, the first terminal and the second terminal enter the screen projection state, and the first terminal sets the flag to the second flag, and the second flag is used to indicate that the first terminal and the second terminal are in the screen projection state. If the verification result is verification failed, the server rejects the screen projection request of the first terminal.

[0079] S307. When the first terminal and the second terminal are in the screen projection state, if the screen projection channel (screen projection connection) is abnormally disconnected due to network fluctuations or other situations, the server sends a message of the abnormal disconnection of the screen projection channel to the first terminal.

[0080] S308. The first terminal sets the flag bit to the first flag, and the first flag is used for screen projection reconnection verification; and, using a preset encryption algorithm, encrypts the first flag and the identification information of the first terminal to obtain second encrypted data, and sends the second encrypted data to the server.

[0081] S309: The server forwards the second encrypted data to the second terminal without performing any special processing.

[0082] The second terminal decrypts the second encrypted data by using a decryption algorithm corresponding to the preset encryption algorithm to obtain the first mark and the identification information of the first terminal. When it is determined that the first mark is the preset mark and the identification information of the first terminal is the same as the initial identification information, the first mark and the identification information of the first terminal are verified, and the screen projection connection with the first terminal is re-established.

[0083] The preset mark is a reference mark pre-set in the second terminal for identifying the first mark, and the initial identification information is the identification information of the terminal connected to the second terminal for screen projection before the screen projection connection is abnormally disconnected.

[0084] By adopting the above-mentioned screen projection connection system, the verification data is verified by the identification information of the first terminal carried in the screen projection request. When the verification is successful, the first terminal establishes a screen projection connection with the second terminal, which can ensure that the terminal that initiates the screen projection request and the terminal that is finally connected to the second terminal for screen projection are the same terminal. In addition, since the identification information of the terminal is unique and the IP address is easy to be forged, the solution of the present application that verifies through the identification information of the first terminal can reduce the risk of screen projection connection and improve the security of screen projection connection compared to the solution of verification through the terminal IP address.

[0085] In addition, by using the above-mentioned screen projection connection system, when the screen projection connection between the first terminal and the second terminal is abnormally disconnected, the process of restoring the screen projection (i.e., reconnecting the screen projection) does not require user participation, which can simplify the user operation of restoring the screen projection, thereby improving the user experience. In addition, the application uses the unique identification information of the first terminal for reconnection verification, which can improve accuracy and security.

[0086] Moreover, the above-mentioned screen projection connection system adopts a server to forward data. Therefore, the screen projection connection of this solution can be operated across networks, which can break through the limitation of the prior art that the screen projection connection can only be performed in the local area network.

[0087] The screen projection connection method provided in the embodiment of the present application can be executed by a screen projection connection device. In the embodiment of the present application, the screen projection connection method executed by the screen projection connection device is taken as an example to illustrate the screen projection connection device provided in the embodiment of the present application.

[0088] Figure 4 Schematic diagram of the structure of a screen projection connection device disclosed in an embodiment of the present application. Figure 4 As shown, the screen projection connection device 400 includes: a sending module 410 and an establishing module 420.

[0089] In the present application, the sending module 410 is used to send a first flag and identification information of the first terminal to the second terminal through the server when a first signal sent by the server is received, wherein the first signal is used to indicate that the screen projection connection between the first terminal and the second terminal is abnormally disconnected, and the first flag is used to perform screen projection reconnection verification; the establishing module 420 is used to re-establish the screen projection connection with the second terminal when the second terminal verifies the first flag and the identification information of the first terminal.

[0090] In one implementation, the sending module 410, upon receiving a first signal sent by a server, sends a first flag and identification information of the first terminal to a second terminal through the server, including: upon receiving the first signal sent by the server, setting a flag bit to the first flag, and sending the first flag and identification information of the first terminal to the second terminal through the server.

[0091] In one implementation, the sending module 410 is also used to send a screen projection request to the server before sending the first flag and the identification information of the first terminal to the second terminal through the server when the first signal sent by the server is received, wherein the screen projection request carries the address information of the first terminal and the identification information of the first terminal; the sending module 410 is also used to send verification data to the server when the target data is obtained from the second terminal, wherein the target data is data generated by the second terminal based on the terminal data sent by the server, the terminal data includes the address information of the first terminal and the identification information of the first terminal, and the verification data includes the identification information of the first terminal; the establishing module 420 is also used to establish a screen projection connection with the second terminal when the second signal sent by the server is received, wherein the second signal is used to instruct the server to verify the verification data according to the identification information of the first terminal carried by the screen projection request.

[0092] The screen projection connection device provided in the embodiment of the present application can implement each process implemented in the embodiment of the screen projection connection method. To avoid repetition, it will not be repeated here.

[0093] The screen projection connection method provided in the embodiment of the present application can be executed by a screen projection connection device. In the embodiment of the present application, the screen projection connection method executed by the screen projection connection device is taken as an example to illustrate the screen projection connection device provided in the embodiment of the present application.

[0094] Figure 5 FIG. 1 is a schematic diagram of the structure of another screen projection connection device disclosed in an embodiment of the present application. Figure 5 As shown, the screen projection connection device 500 includes: a receiving module 510, a verification module 520 and an establishment module 530.

[0095] In the present application, the receiving module 510 is used to receive a first flag and identification information of the first terminal sent by the first terminal through the server, wherein the first flag is used for screen projection reconnection verification; the verification module 520 is used to verify the first flag and the identification information of the first terminal based on a preset flag and initial identification information, wherein the preset flag is a reference flag pre-set in the second terminal for identifying the first flag, and the initial identification information is the identification information of the terminal connected to the second terminal before the screen projection connection is abnormally disconnected; the establishing module 530 is used to re-establish the screen projection connection with the first terminal when the verification of the first flag and the identification information of the first terminal is passed.

[0096] In one implementation, the establishment module 530 re-establishes the screen projection connection with the first terminal when the first mark and the identification information of the first terminal are verified, including: when it is determined that the first mark is the preset mark and the identification information of the first terminal is the same as the initial identification information, the first mark and the identification information of the first terminal are verified; and the screen projection connection with the first terminal is re-established.

[0097] In one implementation, the above-mentioned screen projection connection device also includes: the receiving module 510, which is also used to receive the address information of the first terminal and the identification information of the first terminal sent by the server before receiving the first flag and the identification information of the first terminal sent by the first terminal through the server; a generating module, which is used to generate target data based on the address information of the first terminal and the identification information of the first terminal.

[0098] The screen projection connection device provided in the embodiment of the present application can implement each process implemented in the embodiment of the screen projection connection method. To avoid repetition, it will not be repeated here.

[0099] Alternatively, if Figure 6 As shown, an embodiment of the present application also provides a terminal device 600, including a processor 601 and a memory 602, and the memory 602 stores a program or instruction that can be executed on the processor 601. When the program or instruction is executed by the processor 601, the various steps of the above-mentioned screen projection connection method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0100] It should be noted that the terminal devices in the embodiments of the present application include mobile terminal devices and non-mobile terminal devices.

[0101] An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the various processes of the above-mentioned screen projection connection method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0102] The processor is the processor in the terminal device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0103] An embodiment of the present application also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes: the steps of the above-mentioned screen projection connection method.

[0104] The above embodiments of the present application focus on describing the differences between the various embodiments. As long as the different optimization features between the various embodiments are not contradictory, they can be combined to form a better embodiment. Considering the simplicity of the text, they will not be repeated here.

[0105] The above is only an embodiment of the present application and is 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 in the scope of the claims of the present application.

Claims

1. A screen projection connection method, characterized in that: Applied to the first terminal, comprising: In the case of receiving a first signal sent by the server, sending a first flag and identification information of the first terminal to the second terminal through the server, wherein the first signal is used to indicate that the screen projection connection between the first terminal and the second terminal is abnormally disconnected, and the first flag is used to perform screen projection reconnection verification; When the second terminal successfully verifies the first flag and the identification information of the first terminal, the screen projection connection with the second terminal is re-established.

2. The screen projection connection method according to claim 1, characterized in that: The method of sending the first flag and the identification information of the first terminal to the second terminal through the server when the first signal sent by the server is received includes: When the first signal sent by the server is received, the flag bit is set to the first flag, and the first flag and identification information of the first terminal are sent to the second terminal through the server.

3. The screen projection connection method according to claim 1 or 2, characterized in that: Before sending the first flag and the identification information of the first terminal to the second terminal through the server in the case of receiving the first signal sent by the server, the method further includes: Sending a screen projection request to a server, wherein the screen projection request carries the address information of the first terminal and the identification information of the first terminal; In the case of acquiring target data from the second terminal, sending verification data to the server, wherein the target data is data generated by the second terminal based on the terminal data sent by the server, the terminal data includes the address information of the first terminal and the identification information of the first terminal, and the verification data includes the identification information of the first terminal; When a second signal sent by the server is received, a screen projection connection is established with the second terminal, wherein the second signal is used to instruct the server to verify the verification data based on the identification information of the first terminal carried in the screen projection request.

4. A screen projection connection method, characterized in that: Applied to the second terminal, including: Receiving a first flag and identification information of the first terminal sent by the first terminal through the server, wherein the first flag is used for screen projection reconnection verification; Based on a preset flag and initial identification information, verify the first flag and the identification information of the first terminal, wherein the preset flag is a reference flag pre-set in the second terminal for identifying the first flag, and the initial identification information is the identification information of the terminal connected to the second terminal for screen projection before the screen projection connection is abnormally disconnected; When the first flag and the identification information of the first terminal are verified, the screen projection connection with the first terminal is re-established.

5. The screen projection connection method according to claim 4, characterized in that: The re-establishing the screen projection connection with the first terminal when the first flag and the identification information of the first terminal are verified successfully includes: If it is determined that the first mark is the preset mark and the identification information of the first terminal is the same as the initial identification information, verifying that the first mark and the identification information of the first terminal are successful; Re-establish the screen projection connection with the first terminal.

6. The screen projection connection method according to claim 4 or 5, characterized in that: Before receiving the first flag and the identification information of the first terminal sent by the first terminal through the server, the method further includes: Receiving address information of a first terminal and identification information of the first terminal sent by a server; Target data is generated based on the address information of the first terminal and the identification information of the first terminal.

7. A screen projection connection device, characterized in that: include: a sending module, configured to send a first flag and identification information of the first terminal to the second terminal through the server when receiving a first signal sent by the server, wherein the first signal is used to indicate that the screen projection connection between the first terminal and the second terminal is abnormally disconnected, and the first flag is used to perform screen projection reconnection verification; An establishing module is used to re-establish a screen projection connection with the second terminal when the second terminal successfully verifies the first flag and the identification information of the first terminal.

8. A screen projection connection device, characterized in that: include: A receiving module, used to receive a first flag and identification information of the first terminal sent by the first terminal through the server, wherein the first flag is used for screen projection reconnection verification; a verification module, configured to verify the first mark and the identification information of the first terminal based on a preset mark and initial identification information, wherein the preset mark is a reference mark pre-set in the second terminal for identifying the first mark, and the initial identification information is the identification information of the terminal connected to the second terminal for screen projection before the screen projection connection is abnormally disconnected; An establishment module is used to re-establish the screen projection connection with the first terminal when the identification information of the first flag and the first terminal is verified.

9. A terminal device, characterized in that: It includes a processor and a memory, the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the screen projection connection method as described in any one of claims 1-6 are implemented.

10. A computer program product, characterized in that The computer program product includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes: the steps of the screen projection connection method as described in any one of claims 1-6.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by the processor, the steps in the screen projection connection method as described in any one of claims 1-6 are implemented.

Citation Information

Cited By

  • Data sharing method, data sharing equipment and electronic equipment

    CN119996478A

  • Data sharing method, data sharing device, and electronic device

    CN119996478B