Same-screen pairing method, same-screen device and same-screen pairing system

By storing the UUID of the tablet in the same screen device and generating unique identifiers using CPUID, MAC address, and EMMC ID, the inconvenience of pairing on the same screen caused by IP address changes in the prior art is solved, and automatic identification and recognizing after network changes is achieved Connecting the device improves the convenience and stability of pairing.

CN114143582BActive Publication Date: 2024-12-17SHENZHEN HAOLI SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111515510.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-10
Publication Date
2024-12-17
Estimated Expiration
2041-12-10

AI Technical Summary

Technical Problem

The existing same-screen pairing method is bound to the IP address of the tablet, which causes re-pairing when the IP address is changed, which is inconvenient to use.

Method used

By storing the UUID of the tablet in the same screen device, and generating unique identifiers using CPUID, MAC address, and EMMC ID to match and connect pairing, avoiding the repairing problem caused by IP address changes.

Benefits of technology

It realizes that the same-screen receiving device that was originally paired without re-pairing after network changes is achieved, which improves the convenience and stability of same-screen pairing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114143582B_ABST
    Figure CN114143582B_ABST
Patent Text Reader

Abstract

The present invention discloses a same-screen pairing method, a same-screen device and a same-screen pairing system. When the same-screen device is paired and connected with a same-screen receiving device, a unique identifier of the same-screen receiving device is stored; when the same-screen device is connected with a user terminal, a unique identifier of each same-screen receiving device in the current network is obtained and matched with the stored unique identifier; based on the matching result, a target same-screen receiving device in the current network is determined, and connected and paired with the target same-screen receiving device; an embodiment of the present invention exchanges unique identifiers during initial pairing, and uniquely identifies the same-screen receiving device through the unique identifier. In the subsequent reconnection and pairing, the same-screen receiving device that has been initially paired can be directly connected by identifying the unique identifier, thereby avoiding the problem of the need for re-pairing due to the change of IP address after changing the network, resulting in inconsistency of identifiers between the same-screen device and the same-screen receiving device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of same-screen pairing, and in particular to a same-screen pairing method, a same-screen device and a same-screen pairing system. Background Art

[0002] The existing same-screen pairing method is generally bound to the IP address of the tablet. When the IP address of the tablet changes (for example, the DHCP method used to connect to the router cannot guarantee that the tablet IP is the same every time, the hotspot IP address is randomly generated for security reasons, etc.), the adaptation action must be re-executed before use to write the new tablet IP address information, which is inconvenient to use. Summary of the invention

[0003] The purpose of the present invention is to provide a same-screen pairing method, a same-screen device and a same-screen pairing system, aiming to solve the problem of inconvenient same-screen pairing in the prior art. When the same-screen device is inserted into a tablet for pairing, the UUID of the tablet is written into the same-screen device.

[0004] In a first aspect, an embodiment of the present invention provides a same-screen pairing method, including a same-screen device, a same-screen receiving device and a user terminal.

[0005] When the same-screen device is paired with the same-screen receiving device, a unique identifier of the same-screen receiving device is stored;

[0006] When the screen sharing device is connected to the user terminal, the unique identifier of each screen sharing receiving device in the current network is obtained and matched with the stored unique identifier;

[0007] Determine the target same-screen receiving device in the current network based on the matching result, and connect and pair with the target same-screen receiving device;

[0008] The unique identifier is generated by CPUID, MAC address and EMMC ID.

[0009] In a second aspect, an embodiment of the present invention provides a same-screen device, which executes the same-screen pairing method, including:

[0010] A storage unit, used to store a unique identifier of a same-screen receiving device when paired with the same-screen receiving device;

[0011] A matching unit, used to obtain a unique identifier of each same-screen receiving device in the current network when connecting to a user terminal, and match it with the stored unique identifier;

[0012] The connection unit is used to determine the target same-screen receiving device in the current network based on the matching result, and to connect and pair with the target same-screen receiving device.

[0013] In a third aspect, an embodiment of the present invention provides a same-screen pairing system, including a same-screen device, the same-screen device executes the same-screen pairing method, and also includes a user terminal and a same-screen receiving device;

[0014] The same-screen device can be connected to the user terminal and the same-screen receiving device respectively. When paired with the same-screen receiving device, the same-screen device stores a unique identifier of the same-screen receiving device;

[0015] When connected to a user terminal, the screen sharing device is used to obtain the unique identifier of each screen sharing receiving device in the current network and match it with the stored unique identifier, determine the target screen sharing receiving device in the current network based on the matching result, and connect and pair with the target screen sharing receiving device.

[0016] The embodiment of the present invention exchanges unique identifiers during the initial pairing, and uniquely identifies the same-screen receiving device through the unique identifier. In the subsequent reconnection pairing, the initially paired same-screen receiving device can be directly connected by identifying the unique identifier, thereby avoiding the problem that the identifier of the same same-screen receiving device stored in the same-screen device is inconsistent with the identifier of the same-screen receiving device after the network is changed due to the change of the IP address after the network is changed, and the need for re-pairing is required. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.

[0018] Figure 1 A flowchart of a same-screen pairing method provided by an embodiment of the present invention;

[0019] Figure 2 A flowchart of step S101 provided in an embodiment of the present invention;

[0020] Figure 3 A flowchart of step S102 provided in an embodiment of the present invention;

[0021] Figure 4 A schematic block diagram of a screen sharing device provided by an embodiment of the present invention;

[0022] Figure 5 A schematic block diagram of a same-screen pairing system provided by an embodiment of the present invention;

[0023] Figure 6 A schematic block diagram of pairing a same-screen device with a same-screen receiving device provided in an embodiment of the present invention;

[0024] Figure 7 A schematic block diagram of connecting a screen sharing device provided in an embodiment of the present invention to a user terminal for performing screen sharing operations. DETAILED DESCRIPTION

[0025] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0026] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0027] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0028] It should be further understood that the term "and / or" used in the present description and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.

[0029] See also Figure 1 A same-screen pairing method includes a same-screen device, a same-screen receiving device and a user terminal, and the steps include S101-S103.

[0030] S101: When the same-screen device is paired with the same-screen receiving device, a unique identifier of the same-screen receiving device is stored;

[0031] S102: When the screen sharing device is connected to the user terminal, a unique identifier of each screen sharing receiving device in the current network is obtained, and the unique identifier is matched with the stored unique identifier;

[0032] S103: Determine a target same-screen receiving device in the current network based on the matching result, and connect and pair with the target same-screen receiving device.

[0033] In this embodiment, unique identifiers are exchanged during the initial pairing (i.e., unique identifiers pre-stored in the screen sharing device), and the screen sharing receiving device is uniquely identified by the unique identifier. In the subsequent reconnection pairing, the initially paired screen sharing receiving device can be directly connected by identifying the unique identifier, thereby avoiding the problem of inconsistency in identifiers between the screen sharing device and the screen sharing receiving device due to changes in the IP address after changing the network, which requires re-pairing.

[0034] The unique identifier is generated by CPUID, MAC address and EMMC ID.

[0035] Specifically, the process of generating the unique identifier includes:

[0036] Taking any one or more of the CPUID, MAC address, and EMMC ID of the same-screen receiving device, and combining and splicing them to obtain first spliced ​​data;

[0037] Obtaining the power-on time of the same-screen receiving device, and splicing the power-on time as a time character string into the first spliced ​​data to obtain second spliced ​​data;

[0038] A hash algorithm is used on the second concatenated data to obtain the unique identifier.

[0039] Specifically, the encryption algorithm may be SHA1, SHA0, MD5, etc.

[0040] For example, use the following steps to obtain:

[0041] 1. Take one (for example, CPUID) or multiple (for example, CPUID+MAC or CPUID+MAC+EMMC ID) of CPUID, MAC address, and EMMC ID and concatenate them to obtain first concatenated data;

[0042] 2. Add the startup time variable to obtain the second splicing data (CPUID+STARTTIME or CPUID+MAC+STARTTIME or CPUID+MAC+EMMC ID+STARTTIME);

[0043] 3. A hash algorithm is used on the second concatenated data to obtain a 40-byte ID, which can be used as a unique identifier.

[0044] In one embodiment, the second splicing data is obtained by using the SHA1 algorithm; the power-on time of the same-screen receiving device is the time recorded when the same-screen receiving device is initialized.

[0045] Click to start the reset function of the same-screen receiving device. The same-screen receiving device will be reinitialized and the time of completion of initialization will be recorded. It is not important whether this time is accurate. You can also let the same-screen receiving device form a random sequence after initialization and add the unique identifier generated above.

[0046] In this embodiment, the encryption algorithm used is SHA1. Although there is a possibility that the second spliced ​​data is different but the encryption result is the same, this situation is usually impossible in the actual user usage scenario. Based on cost considerations and cracking difficulty, using SHA1 to generate a unique identifier has great advantages in security and practicality.

[0047] See also Figure 2 In one embodiment, step S101 includes:

[0048] S201: When the same-screen device detects an operation of pairing with the same-screen receiving device, hotspot information and a unique identifier of the same-screen receiving device are obtained;

[0049] S202: Write the acquired hotspot information into the pairing data storage area of ​​the on-screen device, and save the unique identifier into the identifier list of the on-screen device.

[0050] In this embodiment, when the initial pairing between the same-screen receiving device and the same-screen device is performed, the same-screen device will obtain the hotspot information and unique identifier in the same-screen receiving device, and store them in the identifier list in the same-screen device. At this time, there will be a matching connection bridge between the same-screen device and the same-screen receiving device - the unique identifier.

[0051] See also Figure 3 In one embodiment, step S102 includes:

[0052] S301: When the screen sharing device detects an operation of connecting to a user terminal, it detects network device information in the environment where the user terminal is located;

[0053] S302: Obtaining a unique identifier of each same-screen receiving device in the current network based on the detected network device information;

[0054] S303: Compare the obtained unique identifier of each same-screen receiving device with the pre-stored unique identifier to determine a matching same-screen receiving device in the current network.

[0055] In this embodiment, when the screen sharing device is connected to a user terminal, the screen sharing device will perform a device information acquisition operation on the screen sharing receiving device in the network environment where the user terminal is located, obtain a unique identifier for each screen sharing receiving device, and compare these obtained unique identifiers with the unique identifiers pre-stored in the identifier list to determine which screen sharing receiving devices have been paired with the screen sharing device (only the unique identifiers of the screen sharing receiving devices that have been paired with the screen sharing device will be stored in the identifier list in the screen sharing device).

[0056] In one embodiment, step S103 includes:

[0057] When the matching result is a plurality of matching same-screen receiving devices, the terminal information of the plurality of matching same-screen receiving devices is sent to the user terminal and displayed, and when the user's selection instruction is received, the selected same-screen receiving device is used as the target same-screen receiving device, and connected and paired with the target same-screen receiving device.

[0058] In this embodiment, in the network environment where the user terminal is located, when there are multiple same-screen receiving devices that can match the identifier list (unique identifier) ​​in the same-screen device, the same-screen device will display these matching same-screen receiving devices on the user terminal, and the user can select the same-screen receiving device he wants to connect to. After the same-screen device obtains the user's selection instruction, it connects to the target same-screen receiving device selected by the user and connects and pairs with the same-screen receiving device.

[0059] The terminal information may include: nickname, unique identification code on the mobile phone, etc.

[0060] Specifically, in the network environment where the user terminal is located, when there is only one same-screen receiving device that matches the identifier list (unique identifier) ​​in the same-screen device, the same-screen device connects and pairs with the same-screen receiving device by default, and projects the screen of the user terminal onto the same-screen receiving device.

[0061] Specifically, in the network environment where the user terminal is located, when there is no same-screen receiving device that matches the identifier list (unique identifier) ​​in the same-screen device, the same-screen device is inserted into the same-screen receiving device to be connected to the same-screen for pre-matching, and the unique identifier of the same-screen receiving device is pre-stored, and then the same-screen device is inserted into the user terminal for matching and connection.

[0062] In one embodiment, step S103 includes:

[0063] When the matching result is a plurality of matching same-screen receiving devices, the most recently paired same-screen receiving device in the same-screen device is automatically used as the target same-screen receiving device, and is connected and paired with the target same-screen receiving device.

[0064] This embodiment is another embodiment of the previous embodiment. When there are multiple same-screen receiving devices that can match the identifier list (unique identifier) ​​in the same-screen device, the same-screen device will select the most recently paired same-screen receiving device among these same-screen receiving devices for pairing, which will be more friendly to users who need to use the same-screen device frequently.

[0065] Specifically, each time a same-screen receiving device is successfully connected and paired with the same-screen device, the time information of the corresponding unique identification code will be updated in the identification code list of the same-screen device. When it is necessary to select the most recently paired same-screen receiving device, it is only necessary to compare the time information.

[0066] In one embodiment, the connection between the screen sharing device and the user terminal is a wireless or wired connection, and the connection between the screen sharing device and the screen sharing receiving device when paired is a wireless or wired connection.

[0067] In this embodiment, the wireless connection may be a wifi in a local area network; the wired connection may be a USB or HDMI connection.

[0068] In one embodiment, step S103 further includes:

[0069] S401: Regularly delete unique identifiers in the identifier list in the same-screen device that have exceeded the retention period.

[0070] In this embodiment, considering that the probability of connecting and pairing with a same-screen receiving device that has not been connected and paired for a long time is too small, keeping it saved may affect normal matching. For example, when the tablet is turned on later than the same-screen device, but an earlier tablet has been turned on, the same-screen device will give priority to connecting to the earlier paired tablet that has been turned on, which is different from expectations. Therefore, in order to reduce the occurrence of this situation, the same-screen device will sort out the unique identifiers in the identifier list, calculate the time of the most recent connection and pairing of the same-screen receiving device corresponding to each unique identifier based on the time information corresponding to the unique identifier, and delete the unique identifier in the mark code list whose most recent connection and pairing time exceeds the preset time. At this time, the same-screen receiving device corresponding to the unique identifier needs to be re-paired when casting the screen.

[0071] The preset time here can be a period of time, for example: 30 days.

[0072] In another embodiment, the preset time may not be a fixed period of time, but each time the screen sharing device is turned on.

[0073] See also Figure 4 A screen pairing device 10 executes the above screen pairing method, including:

[0074] The storage unit 11 is used to store the unique identifier of the same-screen receiving device 20 when paired with the same-screen receiving device 20;

[0075] The matching unit 12 is used to obtain the unique identifier of each same-screen receiving device 20 in the current network when connecting to the user terminal 30, and match it with the stored unique identifier;

[0076] The connecting unit 13 is used to determine the target same-screen receiving device 20 in the current network based on the matching result, and connect and pair with the target same-screen receiving device 20.

[0077] In this embodiment, the unique identifier is stored by the storage unit 11, and the matching unit 12 identifies and compares the unique identifier of the same-screen receiving device 20 and the storage unit 11 during connection and pairing. After the identification is passed, the same-screen receiving device 20 is connected and paired through the connection unit.

[0078] See also Figure 5-7 , a same-screen pairing system, comprising a same-screen device 10, the same-screen device executes the above-mentioned same-screen pairing method, and also comprises a user terminal 30 and a same-screen receiving device 20;

[0079] The same-screen device 10 can be connected to the user terminal 30 and the same-screen receiving device 20 respectively. When paired with the same-screen receiving device 20, the same-screen device 10 stores a unique identifier of the same-screen receiving device 20;

[0080] When connected to a user terminal 30, the screen sharing device 10 is used to obtain a unique identifier for each screen sharing receiving device 20 in the current network, and match it with the stored unique identifier, determine the target screen sharing receiving device 20 in the current network based on the matching result, and connect and pair with the target screen sharing receiving device 20.

[0081] In this embodiment, when performing initial pairing, the screen sharing device 10 is connected to the screen receiving device 20. At this time, the unique identifier generated by the screen receiving device 20 will be shared with the screen sharing device 10 and stored in the storage unit 11 by the screen sharing device 10; when it is necessary to project the video information on the user terminal 30 onto the screen receiving device 20, the screen sharing device is connected to the user terminal 30. At this time, the screen sharing device 10 will obtain the unique identifiers of all screen receiving devices 20 in the current network (local area network or the same wireless wifi) (which can be a configuration file with a unique identifier, obtained from the configuration file), and compare these obtained unique identifiers with the unique identifiers stored in the storage unit 11 in the screen sharing device 10 (the unique identifiers of the screen receiving devices 20 that have been initially paired), find out the screen receiving devices 20 corresponding to several unique identifiers that have been successfully matched, select the screen receiving device 20 that needs to be connected from the screen receiving devices 20 and connect them.

[0082] Specifically, the same-screen receiving device 20 is a device for receiving screen projection, such as a tablet, etc.; the user terminal 30 is a destination device for screen projection, such as a PC, etc.

[0083] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A same-screen pairing method, comprising a same-screen device, a same-screen receiving device and a user terminal, characterized in that: When the same-screen device is paired with the same-screen receiving device, a unique identifier of the same-screen receiving device is stored; When the screen sharing device is connected to the user terminal, the unique identifier of each screen sharing receiving device in the current network is obtained and matched with the stored unique identifier; Determine the target same-screen receiving device in the current network based on the matching result, and connect and pair with the target same-screen receiving device; Regularly delete unique identifiers in the identifier list in the same screen device that have exceeded the retention period; Wherein, the unique identifier is generated by CPUID, MAC address, and EMMC ID; The unique identifier is generated by CPUID, MAC address, and EMMC ID, including: Taking any one or more of the CPUID, MAC address, and EMMC ID of the same-screen receiving device, and combining and splicing them to obtain first spliced ​​data; Obtaining the power-on time of the same-screen receiving device, and splicing the power-on time as a time character string into the first spliced ​​data to obtain second spliced ​​data; Using a hash algorithm on the second concatenated data to obtain the unique identifier; The second splicing data is obtained by using the SHA1 algorithm; the power-on time of the same-screen receiving device is the time recorded when the initialization of the same-screen receiving device is completed.

2. The same-screen pairing method according to claim 1, characterized in that: Storing the unique identifier of the same-screen receiving device includes: When the same-screen device detects an operation of pairing with the same-screen receiving device, hotspot information and a unique identifier of the same-screen receiving device are obtained; The acquired hotspot information is written into the pairing data storage area of ​​the on-screen device, and the unique identifier is saved into the identifier list of the on-screen device.

3. The same-screen pairing method according to claim 1, characterized in that: When connecting to the user terminal, obtaining the unique identifier of each same-screen receiving device in the current network and matching it with the stored unique identifier includes: When the screen sharing device detects an operation of connecting to a user terminal, it detects network device information in the environment where the user terminal is located; Obtaining a unique identifier of each same-screen receiving device in the current network based on the detected network device information; The obtained unique identifier of each same-screen receiving device is compared with the pre-stored unique identifier to determine the matching same-screen receiving device in the current network.

4. The same-screen pairing method according to claim 1, characterized in that: Based on the matching result, the target same-screen receiving device in the current network is determined, and the target same-screen receiving device is connected and paired, including: When the matching result is a plurality of matching same-screen receiving devices, the terminal information of the plurality of matching same-screen receiving devices is sent to the user terminal and displayed, and when the user's selection instruction is received, the selected same-screen receiving device is used as the target same-screen receiving device, and connected and paired with the target same-screen receiving device.

5. The same-screen pairing method according to claim 1, characterized in that: Based on the matching result, the target same-screen receiving device in the current network is determined, and the target same-screen receiving device is connected and paired, including: When the matching result is a plurality of matching same-screen receiving devices, the most recently paired same-screen receiving device in the same-screen device is automatically used as the target same-screen receiving device, and is connected and paired with the target same-screen receiving device.

6. The same-screen pairing method according to claim 1, characterized in that: The connection between the screen sharing device and the user terminal is a wireless or wired connection, and the connection between the screen sharing device and the screen sharing receiving device when paired is a wireless or wired connection.

7. A screen-matching device, executing the screen-matching method according to any one of claims 1 to 6, characterized in that: include: A storage unit, used to store a unique identifier of a same-screen receiving device when paired with the same-screen receiving device; A matching unit, used to obtain a unique identifier of each same-screen receiving device in the current network when connecting to a user terminal, and match it with the stored unique identifier; A connection unit, used to determine a target same-screen receiving device in the current network based on the matching result, and connect and pair with the target same-screen receiving device; Regularly delete unique identifiers in the identifier list in the same screen device that have exceeded the retention period; The unique identifier is generated by CPUID, MAC address, and EMMC ID, including: Taking any one or more of the CPUID, MAC address, and EMMC ID of the same-screen receiving device, and combining and splicing them to obtain first spliced ​​data; Obtaining the power-on time of the same-screen receiving device, and splicing the power-on time as a time character string into the first spliced ​​data to obtain second spliced ​​data; Using a hash algorithm on the second concatenated data to obtain the unique identifier; The second splicing data is obtained by using the SHA1 algorithm; the power-on time of the same-screen receiving device is the time recorded when the initialization of the same-screen receiving device is completed.

8. A same-screen pairing system, characterized in that: The same-screen device comprises the same-screen device according to claim 7, the same-screen device executes the same-screen pairing method according to any one of claims 1 to 6, and further comprises a user terminal and a same-screen receiving device; The same-screen device can be connected to the user terminal and the same-screen receiving device respectively. When paired with the same-screen receiving device, the same-screen device stores a unique identifier of the same-screen receiving device; When connected to a user terminal, the screen sharing device is used to obtain the unique identifier of each screen sharing receiving device in the current network and match it with the stored unique identifier, determine the target screen sharing receiving device in the current network based on the matching result, and connect and pair with the target screen sharing receiving device.