Method, system and product for interconnection of multiple terminal devices
Through broadcast signal scanning and pairing connection, and token generation and verification mechanisms, the interconnection of multiple terminal devices and vehicle machines is realized, solving the problem of only supporting the interconnection of single terminals and vehicle machines in the prior art, and improving the user's interactive experience.
Patent Information
- Application Number
- CN202510094746.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-21
- Publication Date
- 2025-04-29
AI Technical Summary
The existing in-vehicle terminal and mobile terminal interconnection solutions only support the interconnection of a single terminal and a vehicle machine, and cannot achieve the interconnection of multiple devices and a vehicle machine, limiting the user's interactive experience.
Through broadcast signal scanning and pairing connection, the token generation and verification mechanism is used to realize direct and indirect interconnection of multiple terminal devices. The specific steps include: determining whether the terminal device is a designated device based on the identification in the broadcast signal, initiating a pairing connection, generating a token for authentication, and registering the terminal device to interconnect in the soft bus after the verification is passed.
It realizes the interconnection between car machines and multi-terminal devices, improves the user's interactive experience, allows direct or indirect interconnection between multiple devices, and expands the functionality of on-board scenarios.
Smart Images

Figure CN119907144A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of device interconnection, and in particular to a method, system and product for interconnecting multiple terminal devices. Background Art
[0002] As the development of vehicle-mounted scenarios becomes faster and faster, people's demand for the Internet of Vehicles is becoming more and more obvious. The existing vehicle-mounted terminal and mobile terminal interconnection solutions are divided into wired and wireless. Wired connections are interconnected through USB data cables, etc., while the so-called wireless interconnection method is a more powerful connection capability achieved by using software technologies such as Bluetooth and WIFI. However, whether it is wired or wireless interconnection, most of them only support the interconnection between a single terminal and the vehicle computer, and cannot achieve the interconnection between multiple devices and the vehicle computer. Summary of the invention
[0003] In view of this, the present application provides a method, system and product for interconnecting multiple terminal devices, aiming to realize the interconnection between a vehicle computer and multiple terminal devices and enhance the user interaction experience.
[0004] In a first aspect, the present application provides a method for interconnecting multiple terminal devices, which is applied to a terminal device that performs broadcast signal scanning. The method includes:
[0005] Determining, according to a first identifier in the scanned broadcast signal, whether a terminal device broadcasting the broadcast signal is a designated terminal device;
[0006] In a case where the terminal device broadcasting the broadcast signal is a designated terminal device, initiating a pairing connection to the terminal device broadcasting the broadcast signal based on the second identifier in the broadcast signal;
[0007] In case of successful connection, a first token is generated according to its own first identification and current timestamp and sent to the terminal device broadcasting the broadcast signal for identity authentication;
[0008] In case of passing the verification, the terminal device receiving the broadcast signal sends a second token based on its own first identification and current timestamp;
[0009] According to the second token received, the terminal device broadcasting the broadcast signal is registered in its own soft bus for direct device interconnection, and the soft bus of the terminal device in its own soft bus and the terminal device not registered in its own soft bus in the indirect interconnection table are obtained and recorded in its own indirect interconnection table for indirect device interconnection.
[0010] A second aspect of the present application provides a method for interconnecting multiple terminal devices, which is applied to a terminal device that broadcasts a broadcast signal, and the method includes:
[0011] Broadcasting a broadcast signal, wherein the broadcast signal includes a first identifier and a second identifier, wherein the first identifier is used to verify whether the terminal device is a designated terminal device, and the second identifier is used to perform a pairing connection;
[0012] In the case where the terminal device that scans the broadcast signal passes the verification, receiving a pairing connection initiated by the terminal device that scans the broadcast signal;
[0013] Performing a pairing connection with the terminal device that initiates the pairing connection according to the received pairing connection;
[0014] In the case of a successful connection, receiving a first token sent by the terminal device initiating the pairing connection, wherein the first token includes a first identifier of the terminal device initiating the pairing connection and a timestamp of generating the first token;
[0015] authenticating the terminal device initiating the pairing connection according to the first token;
[0016] If the verification is successful, the terminal device initiating the pairing connection will be registered in its own soft bus for direct device interconnection, and the soft bus of the terminal device in its own soft bus and the terminal device not registered in its own soft bus in the indirect interconnection table will be obtained and recorded in its own indirect interconnection table for indirect device interconnection, and based on its own first identification and current timestamp, a second token will be generated and sent to the terminal device initiating the pairing connection.
[0017] A third aspect of the present application provides a method for interconnecting multiple terminal devices, which is applied to a terminal device, wherein the terminal device is a terminal device including a soft bus and an indirect interconnection table in a method for interconnecting multiple terminal devices provided in the first aspect or the second aspect of the present application, and the method includes:
[0018] Determine the interconnection attribute of the target terminal device pointed to by the interconnection request, wherein the interconnection attribute includes direct interconnection and indirect interconnection;
[0019] According to the interconnection attribute of the target terminal device, sending a corresponding interconnection request to the target terminal device through a target request strategy corresponding to the interconnection attribute;
[0020] According to the interconnection request, data acquired by the target terminal device based on the interconnection request is received.
[0021] Optionally, according to the interconnection attribute of the target terminal device, sending a corresponding interconnection request to the target terminal device through a target request policy corresponding to the interconnection attribute includes:
[0022] In the case where the interconnection attribute of the target terminal device is direct interconnection, directly initiating an interconnection request to the target terminal device;
[0023] In the case where the interconnection attribute of the target terminal device is indirect interconnection, determining the shortest transmission link connected to the target device through a shortest path search algorithm;
[0024] An interconnection request is initiated to the target terminal device via the shortest transmission link.
[0025] Optionally, the interconnection request includes a token and an identifier of the target terminal device and a token of the terminal device initiating the interconnection request;
[0026] The token of the target terminal device is used to verify whether the interconnection request is initiated to a legitimate terminal device;
[0027] The identifier of the target terminal device is used by the target terminal device to verify whether to make an interconnection request to itself;
[0028] The token of the terminal device that initiates the interconnection request is used to verify the identity and authority of the terminal device that initiates the interconnection request.
[0029] Optionally, receiving, according to the interconnection request, data acquired by the target terminal device based on the interconnection request includes:
[0030] When the interconnection attribute of the target terminal device is direct interconnection, according to the interconnection request, through direct interconnection with the target terminal device, receiving data acquired by the target terminal device based on the interconnection request;
[0031] When the interconnection attribute of the target terminal device is indirect interconnection, creating a temporary transmission channel with the target terminal device according to the interconnection request;
[0032] The data acquired by the target terminal device based on the interconnection request is received through the temporary transmission channel.
[0033] Optionally, in a case where the device interconnection is to request the terminal device to perform screen mirroring, receiving data acquired by the target terminal device based on the interconnection request according to the interconnection request includes:
[0034] According to the interconnection request, control the target device to perform screen recording and determine a target transmission protocol and a target image quality frame rate corresponding to the current network speed;
[0035] Receive screen recording video frames at a target picture quality frame rate transmitted by the target terminal device using the target transmission protocol.
[0036] Optionally, the method further includes:
[0037] At preset time intervals, determining whether the soft bus and indirect interconnection table of the terminal device in its own soft bus are updated;
[0038] In the case of updating, the indirect interconnection table of the own device is updated based on the soft bus and the indirect interconnection table of the terminal device updated in the soft bus of the own device.
[0039] A fourth aspect of the present application provides a system for interconnecting multiple terminal devices, the system being applied to a terminal device that performs broadcast signal scanning, the system comprising:
[0040] A broadcast signal scanning module, used for scanning broadcast signals;
[0041] a designated terminal device determining module, configured to determine whether a terminal device broadcasting the broadcast signal is a designated terminal device according to a first identifier in the scanned broadcast signal;
[0042] a pairing connection module, configured to initiate a pairing connection to the terminal device broadcasting the broadcast signal based on the second identifier in the broadcast signal when the terminal device broadcasting the broadcast signal is a designated terminal device;
[0043] A token generation and sending module, used for generating a first token according to its own first identification and current timestamp and sending the first token to the terminal device broadcasting the broadcast signal for identity authentication when the connection is successful;
[0044] A token receiving module, configured to receive, when verification is passed, a second token sent by the terminal device that broadcasts the broadcast signal based on its own first identification and current timestamp;
[0045] The terminal device registration and recording module is used to register the terminal device broadcasting the broadcast signal into its own soft bus for direct device interconnection according to the received second token, and to obtain the soft bus of the terminal device in its own soft bus and the terminal device not registered in its own soft bus in the indirect interconnection table and record it in its own indirect interconnection table for indirect device interconnection.
[0046] A fifth aspect of the present application provides a system for interconnecting multiple terminal devices, the system being applied to a terminal device that broadcasts a broadcast signal, the system comprising:
[0047] A broadcast module, used to broadcast a broadcast signal, wherein the broadcast signal includes a first identifier and a second identifier, wherein the first identifier is used to verify whether the terminal device is a designated terminal device, and the second identifier is used to perform a pairing connection;
[0048] A pairing signal receiving module, configured to receive a pairing connection initiated by a terminal device that scans the broadcast signal, if the terminal device that scans the broadcast signal passes verification;
[0049] A pairing connection module, used to perform a pairing connection with a terminal device initiating the pairing connection according to the received pairing connection;
[0050] A token receiving module, configured to receive, when the connection is successful, a first token sent by a terminal device initiating a pairing connection, wherein the first token includes a first identifier of the terminal device initiating the pairing connection and a timestamp of generating the first token;
[0051] An identity authentication module, used to authenticate the terminal device initiating the pairing connection according to the first token;
[0052] The terminal device registration and recording module is used to register the terminal device initiating the pairing connection into its own soft bus for direct device interconnection when the verification is passed, and to obtain the soft bus of the terminal device in its own soft bus and the terminal device not registered in its own soft bus in the indirect interconnection table and record it in its own indirect interconnection table for indirect device interconnection, and to generate a second token based on its own first identification and current timestamp and send it to the terminal device initiating the pairing connection.
[0053] The sixth aspect of the present application provides an electronic device, comprising: a processor, a memory, and a computer program stored in the memory and running on the processor, wherein when the computer program is executed by the processor, the steps in a method for interconnecting multiple terminal devices as described in any one of the first to third aspects of the present application are implemented.
[0054] The fourth aspect of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps in a method for interconnecting multiple terminal devices as described in any one of the first to third aspects of the present application are implemented.
[0055] The method for interconnecting multiple terminal devices provided by the present application has the following advantages:
[0056] A method for interconnecting multiple terminal devices provided in an embodiment of the present application is applied to a terminal device that performs broadcast signal scanning. First, based on a first identifier in the scanned broadcast signal, it is determined whether the terminal device broadcasting the broadcast signal is a designated terminal device; if the terminal device broadcasting the broadcast signal is the designated terminal device, based on a second identifier in the broadcast signal, a pairing connection is initiated to the terminal device broadcasting the broadcast signal; if the connection is successful, a first token is generated based on its own first identifier and a current timestamp and sent to the terminal device broadcasting the broadcast signal for identity authentication; if the verification is successful, the terminal device that broadcasts the broadcast signal receives a second token sent based on its own first identifier and a current timestamp; based on the received second token, the terminal device broadcasting the broadcast signal is registered in its own soft bus for direct device interconnection, and the soft bus of the terminal device in its own soft bus and the terminal device not registered in its own soft bus in the indirect interconnection table are obtained and recorded in its own indirect interconnection table for indirect device interconnection. Therefore, the present application broadcasts a broadcast signal, wherein the broadcast signal includes a first identifier and a second identifier, wherein the first identifier is used to verify whether it is a designated terminal device, and the second identifier is used to perform pairing connection and scanning of the broadcast signal, and the terminal devices that have passed the mutual verification are stored in their respective soft buses for interconnection. At the same time, an indirect interconnection table is also provided for each terminal device, and the table is used to record the terminal devices that can be indirectly interconnected with the terminal devices corresponding to the table in the entire interconnection system, so that the terminal devices can be directly interconnected based on the terminal devices recorded in their own soft buses, and can be indirectly interconnected with the terminal devices via other terminal devices based on the terminal devices recorded in their own indirect interconnection table, thereby realizing the interconnection of multiple terminal devices to enhance the user's interactive experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor.
[0058] Figure 1 A flowchart of a method for interconnecting multiple terminal devices according to an embodiment of the present application;
[0059] Figure 2 A schematic diagram of the structure of a terminal device in a method for interconnecting multiple terminal devices according to an embodiment of the present application;
[0060] Figure 3 A flowchart of broadcast interconnection of terminal devices in a method for interconnecting multiple terminal devices according to an embodiment of the present application;
[0061] Figure 4 A schematic diagram of device registration and recording by a terminal device in a method for interconnecting multiple terminal devices according to an embodiment of the present application;
[0062] Figure 5 A schematic diagram of hardware resource sharing by terminal devices in a method for interconnecting multiple terminal devices according to an embodiment of the present application;
[0063] Figure 6 A schematic diagram of screen mirroring of terminal devices in a method for interconnecting multiple terminal devices according to an embodiment of the present application;
[0064] Figure 7 A schematic diagram of a system for interconnecting multiple terminal devices according to an embodiment of the present application. DETAILED DESCRIPTION
[0065] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0066] refer to Figure 1 , Figure 1 This is a schematic diagram of a method for interconnecting multiple terminal devices according to an embodiment of the present application, which is applied to a terminal device that performs broadcast signal scanning. Figure 1 As shown, the method includes:
[0067] Step S1: determining whether a terminal device broadcasting the broadcast signal is a designated terminal device according to a first identifier in the scanned broadcast signal.
[0068] In this embodiment, the broadcast signal may be broadcasted by the vehicle terminal, and the broadcast signal includes a first identifier and a second identifier, the first identifier is used to verify whether it is a designated terminal device, and the second identifier is used to perform pairing connection, or the vehicle terminal may scan the broadcast signal. In the process of creating device interconnection, terminal devices that broadcast broadcast signals and terminal devices that scan broadcast signals will be included. For terminal devices that can be interconnected by a method for interconnecting multiple terminal devices provided by this application, multiple modules will be constructed in the soft bus of the terminal device at the bus layer, and the multiple modules at least include: a device module, a network module, a codec module and an abstract protocol layer, and a user-oriented application is developed in the HMI layer of the terminal device to provide an interactive UI window. Among them, the device module is used to register and manage the terminal device requesting device interconnection through the soft bus, and provide the registered and managed terminal device to other modules for use. The network module is used to establish interconnection between terminal devices based on WIFI, Bluetooth and other technologies through Mircast, Dlna, P2P and other methods, and use TCP, UDP, HTTP, RTSP, RTMP and other transmission protocols to build a network transmission channel. The codec module is used to build the underlying codec capabilities based on FFmpeg, MediaCodec and other technologies to support codec formats such as H264, H265, MPEG, and ACC. The abstract protocol layer is used to encapsulate and implement mainstream transmission protocols such as Mircast, Dlna, AirPlay, TCP, and HTTP, covering the transmission requirements of almost all scenarios. Figure 2 As shown, Figure 2 A schematic diagram of the structure of the terminal device involved in a method for interconnecting multiple terminal devices provided in this application, wherein the terminal devices include but are not limited to vehicle terminals, mobile terminals, and PADs. A user-oriented application is developed and set up at the HMI layer of the terminal device, and the SDK layer of the terminal device provides an interconnection API interface to the upper (HMI layer) and encapsulates specific technical implementations to achieve decoupling of business and technical capabilities. It can provide APIs for multiple capabilities such as device discovery, device connection, data transmission, control instruction transmission, and automatic networking. The HMI layer is connected to the SDK layer through an interconnection API interface.
[0069] In this embodiment, when the terminal device wants to request to interconnect with other terminal devices, a broadcast signal will be broadcast, wherein an optional implementation method for the broadcast signal is to customize low-power Bluetooth broadcast. The terminal device that is willing to interconnect with other terminal devices will scan the broadcast signal. Since there are many broadcast signals, and not all terminal devices that send broadcast signals support interconnection through the method for interconnecting multiple terminal devices provided in this application, therefore, after scanning the broadcast signal, the terminal device parses the broadcast signal and determines the first identifier recorded therein, which is used to determine whether the terminal device corresponding to the broadcast signal where the first identifier is located is interconnected by the method for interconnecting multiple terminal devices provided in this application, that is, based on the first identifier, it is determined whether the terminal device broadcasting the broadcast signal where the first identifier is located is a designated terminal device that supports the method for interconnecting multiple terminal devices provided in this application. If it is determined based on the first identifier that the terminal device corresponding to the scanned broadcast signal is not a designated terminal device, the subsequent interconnection operation is terminated. If it is determined based on the first identifier that the terminal device corresponding to the scanned broadcast signal is a designated terminal device, the subsequent interconnection operation continues. Among them, when the broadcast signal is a customized low-power Bluetooth broadcast, the first identifier is UUID (Universally Unique Identifier), and the terminal device that supports the method for interconnecting multiple terminal devices provided in this application will be able to obtain all UUIDs that support the method for interconnecting multiple terminal devices provided in this application.
[0070] Step S2: In the case where the terminal device broadcasting the broadcast signal is a designated terminal device, a pairing connection is initiated to the terminal device broadcasting the broadcast signal based on the second identifier in the broadcast signal.
[0071] In this embodiment, when it is determined that the terminal device corresponding to the broadcast signal scanned by itself is a designated terminal device, based on the second identifier in the broadcast signal (that is, the device identifier of the terminal device corresponding to the broadcast signal), it is determined which terminal device broadcasts the broadcast signal, and then a pairing connection is initiated to the terminal device.
[0072] Step S3: When the connection is successful, a first token is generated according to its own first identification and current timestamp and sent to the terminal device that broadcasts the broadcast signal for identity verification.
[0073] In this embodiment, after successfully connecting to a terminal device that broadcasts a broadcast signal (such as a successful Bluetooth connection), a first token (i.e., token) is generated based on its own first identifier and current timestamp, and then the token is sent to the terminal device that broadcasts the broadcast signal. The terminal device that broadcasts the broadcast signal verifies the legitimacy of the first identifier in the first token. When it is determined that the first identifier is legal and the time length between the timestamp in the first token and the time length when the terminal device that broadcasts the broadcast signal receives the first token does not exceed the set time length, that is, when these two conditions are met at the same time, the terminal device that broadcasts the broadcast signal determines that the identity of the terminal device that sends the first token to itself is legal, and at this time it is determined that the identity authentication is successful.
[0074] Step S4: When the verification is successful, the terminal device receiving the broadcast signal sends a second token based on its own first identification and current timestamp.
[0075] In this embodiment, after the terminal device that broadcasts the broadcast signal verifies the received first token, the terminal device that broadcasts the broadcast signal will generate a second token based on its own first identifier and current timestamp, and send the second token to the terminal device that sent the first token, and the terminal device that sent the first token will receive the second token.
[0076] Step S5: According to the received second token, the terminal device that broadcasts the broadcast signal is registered in its own soft bus for direct device interconnection, and the soft bus of the terminal device in its own soft bus and the terminal device not registered in its own soft bus in the indirect interconnection table are obtained and recorded in its own indirect interconnection table for indirect device interconnection.
[0077] In this embodiment, after the terminal device receives the second token, it will also verify the second token to determine whether the first identifier in the second token is legal. At the same time, when the time between the timestamp in the second token and the time when the terminal device receives the second token does not exceed the set time, it will determine that the identity of the terminal device that sent the second token to itself is legal, and at this time it is determined that the identity verification is successful. After the identity verification is successful, the terminal device that receives the second token will register the terminal device that broadcasts the broadcast signal to the device module of its own soft bus for management, so as to be used for subsequent direct interconnection between each other.
[0078] In this embodiment, each terminal device also includes an indirect interconnection table, which records terminal devices that have not undergone identity authentication to establish a direct device interconnection relationship, but other terminal devices that can be indirectly interconnected through the terminal device directly interconnected with itself. The implementation method of recording the corresponding terminal devices that can be indirectly interconnected in the indirect interconnection table of the terminal device is as follows: the first terminal device (the first terminal device can be any terminal device with a soft bus and an indirect interconnection table) obtains all terminal devices registered in its own soft bus, and then for each registered terminal device, determines its soft bus and the registration number and which terminal devices are recorded in the indirect interconnection table, and records the terminal devices among these terminal devices that are not registered in the first terminal device in the indirect interconnection table of the first terminal device for indirect device interconnection.
[0079] For example, Figure 4 As shown in the figure, the entire interconnected cluster includes terminal devices A, B, C, D, and E. The directly interconnected terminal devices can be intuitively understood from the figure, and only the indirect interconnection is explained here. Figure 4 In the interconnection cluster shown, when terminal device A is directly interconnected only with terminal devices B and C respectively, terminal devices B and C will be registered in the soft bus of terminal device A. At this time, the indirect interconnection table of terminal device A is empty because the current terminal devices B and C are directly interconnected with terminal device A; at this time, terminal device A will be registered in the soft bus of terminal device B, and based on the terminal devices B and C registered in the soft bus of terminal device A, C will be recorded in the indirect interconnection table of terminal device B; at this time, terminal device A will be registered in the soft bus of terminal device C, and based on the terminal devices B and C registered in the soft bus of terminal device A, terminal device B will be recorded in the indirect interconnection table of terminal device C.
[0080] When terminal device B is directly interconnected with terminal devices D and E respectively, terminal devices A, D and E will be registered in the soft bus of terminal device B; at this time, based on the terminal devices A, D and E registered in the soft bus of terminal device B, the indirect interconnection table of terminal device A will update the records of terminal devices D and E (because the two are located in the soft bus and indirect interconnection table of terminal device B that is directly interconnected with terminal device A, but do not exist in the soft bus of terminal device A); at this time, based on the terminal devices D and E recorded in the indirect interconnection table of terminal device A, the indirect interconnection table of terminal device A will update the records of terminal devices D and E. The indirect interconnection table of terminal device C will update and record terminal devices B, D and E; at this time, terminal device B will be registered in the soft bus of terminal device D, and based on the soft bus of terminal device B and terminal devices A, C, D and E in the indirect interconnection table, terminal device D will record terminal devices A, C and E in the indirect interconnection table; at this time, terminal device B will be registered in the soft bus of terminal device E, and based on the soft bus of terminal device B and terminal devices A, C, D and E in the indirect interconnection table, terminal device E will record terminal devices A, C and D in the indirect interconnection table. That is to say, in this way, in a total interconnection cluster where there is no independent terminal device, a terminal device will be directly or indirectly interconnected with all terminal devices in the total interconnection cluster.
[0081] In this embodiment, a method for interconnecting multiple terminal devices provided by this application is described by taking a broadcast signal that is a customized low-power Bluetooth broadcast as an example. Figure 3As shown, the device terminal broadcasts the broadcast signal of the customized low-power Bluetooth broadcast, and other terminal devices perform background Bluetooth scanning. For the scanned broadcast signal, it is determined whether the UUID in the broadcast signal is a designated terminal device. If not, the subsequent registration to its own soft bus is filtered out. In the case of determining that the UUID in the broadcast signal is a designated terminal device, the additional data in the broadcast is obtained, and then it is decrypted to obtain the Bluetooth MAC address of the terminal device broadcasting the broadcast signal, and then a pairing connection is initiated to the terminal device corresponding to the MAC address. After the connection is successful, a first token (i.e., token) is generated according to its own UUID and the timestamp corresponding to the current moment of generating the token, and then the first token is sent to the terminal device broadcasting the broadcast signal through the RFcomm protocol. The terminal device broadcasting the broadcast signal verifies the first token. After the verification is passed, the terminal device that scans the broadcast signal is registered to the soft bus of the terminal device broadcasting the broadcast signal. At the same time, the terminal device that broadcasts the broadcast signal will generate a second token (also a token) based on its own UUID and the timestamp corresponding to the current moment when the token is to be generated, and then send the second token to the terminal device that scans the broadcast signal through the RFcomm protocol. The terminal device verifies the received second token. After the verification is passed, the terminal device that broadcasts the broadcast signal is registered in the soft bus of the terminal device that scans the broadcast signal.
[0082] A method for interconnecting multiple terminal devices provided in an embodiment of the present application is applied to a terminal device that performs broadcast signal scanning. First, based on a first identifier in the scanned broadcast signal, it is determined whether the terminal device broadcasting the broadcast signal is a designated terminal device; if the terminal device broadcasting the broadcast signal is the designated terminal device, based on a second identifier in the broadcast signal, a pairing connection is initiated to the terminal device broadcasting the broadcast signal; if the connection is successful, a first token is generated based on its own first identifier and a current timestamp and sent to the terminal device broadcasting the broadcast signal for identity authentication; if the verification is successful, the terminal device that broadcasts the broadcast signal receives a second token sent based on its own first identifier and a current timestamp; based on the received second token, the terminal device broadcasting the broadcast signal is registered in its own soft bus for direct device interconnection, and the soft bus of the terminal device in its own soft bus and the terminal device not registered in its own soft bus in the indirect interconnection table are obtained and recorded in its own indirect interconnection table for indirect device interconnection. Therefore, the present application broadcasts a broadcast signal, wherein the broadcast signal includes a first identifier and a second identifier, wherein the first identifier is used to verify whether it is a designated terminal device, and the second identifier is used to perform pairing connection and scanning of the broadcast signal, and the terminal devices that have passed the mutual verification are stored in their respective soft buses for interconnection. At the same time, an indirect interconnection table is also provided for each terminal device, and the table is used to record the terminal devices that can be indirectly interconnected with the terminal devices corresponding to the table in the entire interconnection system, so that the terminal devices can be directly interconnected based on the terminal devices recorded in their own soft buses, and can be indirectly interconnected with the terminal devices via other terminal devices based on the terminal devices recorded in their own indirect interconnection table, thereby realizing the interconnection of multiple terminal devices to enhance the user's interactive experience.
[0083] Based on the same inventive concept, the present application provides a method for interconnecting multiple terminal devices, which is applied to a terminal device that broadcasts a broadcast signal, and the method includes:
[0084] Step S01: broadcasting a broadcast signal, wherein the broadcast signal includes a first identifier and a second identifier, wherein the first identifier is used to verify whether the terminal device is a designated terminal device, and the second identifier is used to perform a pairing connection.
[0085] In this embodiment, the terminal device broadcasts a broadcast signal, and the broadcast signal includes a first identifier and a second identifier, wherein the first identifier is used to verify whether it is a designated terminal device and the second identifier is used to perform a pairing connection.
[0086] Step S02: When the terminal device that scans the broadcast signal passes verification, a pairing connection initiated by the terminal device that scans the broadcast signal is received.
[0087] In this embodiment, the terminal device that scans the broadcast signal will determine that the terminal device corresponding to the broadcast signal is not a designated terminal device based on the first identifier in the broadcast signal, and then terminate the subsequent interconnection operation. If the terminal device corresponding to the broadcast signal is determined to be a designated terminal device based on the first identifier, a pairing connection request is initiated to the terminal device corresponding to the broadcast signal based on the second identifier in the broadcast signal.
[0088] Step S03: According to the received pairing connection, a pairing connection is established with the terminal device that initiates the pairing connection.
[0089] In this embodiment, after the terminal device corresponding to the broadcast signal receives the pairing connection request, it performs a pairing connection with the terminal device that initiates the pairing connection.
[0090] Step S04: When the connection is successful, a first token sent by the terminal device that initiates the pairing connection is received, where the first token includes a first identifier of the terminal device that initiates the pairing connection and a timestamp of generating the first token.
[0091] In this embodiment, after the pairing connection is successful, the terminal device that scans the broadcast signal will generate a first token based on its own first identification and the timestamp of the token generation time, and then send it to the terminal device corresponding to the broadcast signal.
[0092] Step S05: Authenticate the identity of the terminal device that initiates the pairing connection based on the first token.
[0093] In this embodiment, the terminal device corresponding to the broadcast signal verifies the legitimacy of the first identifier in the first token. When it is determined that the first identifier is legal and the time length between the timestamp in the first token and the time length between the terminal device corresponding to the broadcast signal receiving the first token does not exceed the set time length, that is, when these two conditions are met at the same time, the terminal device corresponding to the broadcast signal determines that the identity of the terminal device sending the first token to itself is legal, and at this time it is determined that the identity authentication is passed.
[0094] Step S06: If the verification is passed, the terminal device initiating the pairing connection is registered in its own soft bus for direct device interconnection, and the soft bus of the terminal device in its own soft bus and the terminal device not registered in its own soft bus in the indirect interconnection table are obtained and recorded in its own indirect interconnection table for indirect device interconnection, and based on its own first identifier and current timestamp, a second token is generated and sent to the terminal device initiating the pairing connection.
[0095] In this embodiment, after the terminal device corresponding to the broadcast signal verifies the first token, the terminal device corresponding to the broadcast signal will also register the terminal device of the first token to the device module of its own soft bus for management, so as to be used for subsequent direct interconnection between each other. Similarly, the terminal device corresponding to the broadcast will obtain all the terminal devices registered in its own soft bus, and then determine the registration number and which terminal devices are recorded in its soft bus and indirect interconnection table for each registered terminal device, and record the terminal devices among these terminal devices that are not registered in the terminal device corresponding to the broadcast signal in the indirect interconnection table of the terminal device corresponding to the broadcast signal for indirect device interconnection.
[0096] Based on the same inventive concept, the present application provides a method for interconnecting multiple terminal devices, the method being applied to a terminal device, the terminal device being a terminal device including a soft bus and an indirect interconnection table in a method for interconnecting multiple terminal devices provided in the first aspect or the second aspect of the present application. The method comprises: determining the interconnection attribute of the target terminal device pointed to by the interconnection request, the interconnection attribute comprising direct interconnection and indirect interconnection; according to the interconnection attribute of the target terminal device, sending a corresponding interconnection request to the target terminal device through a target request strategy corresponding to the interconnection attribute; according to the interconnection request, receiving data obtained by the target terminal device based on the interconnection request.
[0097] In this embodiment, when a terminal device requests interconnection from other terminal devices to obtain data resource sharing or hardware resource sharing from other terminal devices, the terminal device will send an interconnection request to the other terminal device. For the convenience of description, the other terminal device is referred to as a target terminal device. Among them, the target terminal device requested by the terminal device belongs to the terminal device registered in the device module of the soft bus of the terminal device itself or the terminal device recorded in its own indirect interconnection relationship table. Based on the specific location from which the requested target terminal device comes (such as the device module of the soft bus of the terminal device or the indirect interconnection relationship table of the terminal device), the interconnection attribute of the target terminal device pointed to by the corresponding interconnection request will be different, that is, whether it is a direct interconnection or an indirect interconnection. At this time, the terminal device will initiate a corresponding interconnection request to the target terminal device based on the interconnection attribute of the target terminal device pointed to by the interconnection request, through the target request strategy corresponding to the interconnection attribute. That is, when the target terminal device comes from the device module of the soft bus of the terminal device to be issued, the interconnection attribute is direct interconnection. At this time, a request strategy corresponding to direct interconnection will be adopted to initiate an interconnection request to the target terminal device. When the target terminal device comes from the indirect interconnection table of the terminal device to which the interconnection request is to be issued, the interconnection attribute is indirect interconnection. At this time, a request strategy corresponding to indirect interconnection will be adopted to initiate an interconnection request to the target terminal device.
[0098] In this embodiment, based on the interconnection request initiated to the target terminal device, after the target terminal receives the interconnection request, it will obtain corresponding data and send the obtained data to the terminal device that initiated the interconnection request, and the terminal device that initiated the interconnection request will receive the obtained data.
[0099] In combination with the above embodiments, in one implementation, the embodiment of the present application also provides a method for interconnecting multiple terminal devices. In the method for interconnecting multiple terminal devices, according to the interconnection attribute of the target terminal device, a corresponding interconnection request is sent to the target terminal device through a target request strategy corresponding to the interconnection attribute, including: when the interconnection attribute of the target terminal device is direct interconnection, directly initiating an interconnection request to the target terminal device; when the interconnection attribute of the target terminal device is indirect interconnection, determining the shortest transmission link connected to the target device through a shortest path search algorithm; initiating an interconnection request to the target terminal device through the shortest transmission link.
[0100] In this embodiment, when the target terminal device comes from the device module of the soft bus of the terminal device that initiates the interconnection request, the interconnection attribute is direct interconnection. At this time, the terminal device can directly send an interconnection request to the target terminal device to request data resource sharing or hardware resource sharing of the target terminal device (such as calling the camera of the target terminal device to acquire data, and displaying the image data acquired in real time by the camera of the target terminal device on the terminal device side).
[0101] In this embodiment, when the target terminal device is from the indirect interconnection table of the terminal device that initiates the interconnection request, the interconnection attribute is indirect interconnection. At this time, the terminal device will determine the shortest transmission link for data transmission between the terminal device and the target terminal device in the total interconnection cluster through the shortest path search algorithm. Then the terminal device initiates an interconnection request to the target terminal device through the determined shortest transmission link to request data resource sharing or hardware resource sharing of the target terminal device (such as calling the camera of the target terminal device to obtain data, and displaying the image data obtained by the camera of the target terminal device in real time on the terminal device side).
[0102] In this embodiment, if Figure 5 As shown, Figure 5 The figure shows the interactive process of camera hardware resource sharing between terminal devices based on interconnection. The terminal device (the car computer in the figure) requests camera sharing from the terminal device (the mobile device in the figure) through the network IO channel based on the corresponding protocol. The terminal device starts the camera interface based on the received request, turns on the camera, obtains the corresponding real-time camera data, and returns it to the terminal device that initiated the request.
[0103] In combination with the above embodiments, in one implementation, the embodiment of the present application also provides a method for interconnecting multiple terminal devices. In the method for interconnecting multiple terminal devices, the interconnection request includes the token and identification of the target terminal device and the token of the terminal device that initiates the interconnection request; the token of the target terminal device is used to verify whether the interconnection request is initiated to a legitimate terminal device; the identification of the target terminal device is used by the target terminal device to verify whether the interconnection request is made to itself; the token of the terminal device that initiates the interconnection request is used to verify the identity and authority of the terminal device that initiates the interconnection request.
[0104] In this embodiment, when a terminal device sends an interconnection request to a target terminal device, the interconnection request includes at least specific request content (such as requesting to share the interface display of the target terminal device, such as requesting to share the hardware resources of the target terminal device, etc.), the token and identification of the target terminal device, and the token of the terminal device that initiates the interconnection request. The token of the target terminal device is used to verify whether the terminal device that initiates the interconnection request is initiating an interconnection request to a legitimate terminal device. Only when a legitimate terminal device initiates an interconnection request will the interconnection request be sent to the target terminal device. The identification of the target terminal device is used by the target terminal device to determine whether the terminal device that initiates the interconnection request is making an interconnection request to itself based on the received interconnection request. The token of the terminal device that initiates the interconnection request is used to verify the identity and authority of the terminal device that initiates the interconnection request. Only when the identity is legitimate and the authority meets the conditions, the target terminal device will share resources with it.
[0105] In combination with the above embodiments, in one implementation, the embodiment of the present application also provides a method for interconnecting multiple terminal devices. In the method for interconnecting multiple terminal devices, according to the interconnection request, receiving the data obtained by the target terminal device based on the interconnection request, including: when the interconnection attribute of the target terminal device is direct interconnection, according to the interconnection request, receiving the data obtained by the target terminal device based on the interconnection request through the direct interconnection with the target terminal device; when the interconnection attribute of the target terminal device is indirect interconnection, creating a temporary transmission channel with the target terminal device according to the interconnection request; receiving the data obtained by the target terminal device based on the interconnection request through the temporary transmission channel.
[0106] In this embodiment, when the target terminal device and the terminal device that initiates the interconnection request are directly interconnected, the target terminal device and the terminal device can already be directly interconnected with each other. At this time, according to the interconnection request, the data obtained by the target terminal device based on the interconnection request will be received directly through the direct interconnection relationship between the terminal device and the target terminal device. In the case that the target terminal device and the terminal device that initiates the interconnection request are indirectly interconnected, at this time, the target terminal device will create a temporary transmission channel with the terminal device that initiates the interconnection request based on the received interconnection request; then the terminal device that initiates the interconnection request receives the data obtained by the target terminal device based on the interconnection request through the created temporary transmission channel.
[0107] In combination with the above embodiments, in one implementation, the embodiment of the present application also provides a method for interconnecting multiple terminal devices. In the method for interconnecting multiple terminal devices, when the device interconnection is to request the terminal device to perform screen mirroring on the same screen, according to the interconnection request, the data obtained by the target terminal device based on the interconnection request is received, including: according to the interconnection request, controlling the target device to perform screen recording and determining the target transmission protocol and target image quality frame rate corresponding to the current network speed; receiving the screen recording video frame of the target image quality frame rate transmitted by the target terminal device using the target transmission protocol.
[0108] In this embodiment, when the terminal device that initiates the interconnection request requests the target terminal device to mirror the screen with itself, the target terminal device will start screen recording after receiving the interconnection request and verifying it. At the same time, in order to ensure the real-time performance of screen mirroring, the target terminal device will select a corresponding transmission protocol as the target transmission protocol based on its current network speed, and select a corresponding image quality frame rate as the target image quality frame rate. Then the target terminal device transmits the screen video frames recorded in real time to the terminal device that initiates the interconnection request at the target transmission and target image quality frame rate. The terminal device that initiates the interconnection request will receive the screen video frames transmitted by the target terminal device and render and display them through the corresponding wireless display protocol.
[0109] In this embodiment, if Figure 6 As shown, Figure 6It shows screen mirroring between terminal devices. The terminal devices have been interconnected with each other, and then the screen mirroring connection is made. After the connection is successful, the corresponding target transmission protocol and target image quality frame rate are determined based on the current network speed, and then the screen is recorded. The video frames of the screen recording are collected and encoded and decoded by the codec module in its own soft bus. Then the encoded and decoded video frames are pushed to another terminal device. After the other terminal device receives the pushed screen projection data, it unpacks and decodes the message, and renders and displays the decoded video frames to realize screen mirroring.
[0110] In combination with the above embodiments, in one implementation, the embodiment of the present application further provides a method for interconnecting multiple terminal devices. In the method for interconnecting multiple terminal devices, the method further includes: determining whether the soft bus and indirect interconnection table of the terminal device in its own soft bus are updated at preset intervals; if updated, updating its own indirect interconnection table based on the soft bus and indirect interconnection table of the terminal device that has been updated in its own soft bus.
[0111] In this embodiment, in the entire total interconnected cluster, new terminal devices may establish direct interconnection relationships with terminal devices in the interconnected cluster at any time. In this process, the terminal devices in the interconnected cluster will be updated, and the terminal devices registered on the soft bus of the terminal devices will also change, and the indirect interconnection table of the corresponding device terminals will also change accordingly. Therefore, in order to ensure the accuracy of the terminal devices registered in the soft bus of each terminal device in the total interconnected cluster and the terminal devices recorded in the indirect interconnection table, the present application will update the terminal devices registered on the soft bus of each terminal device in the total interconnected cluster and the terminal devices recorded in the indirect interconnection table in real time. Specifically, each terminal device in the interconnected cluster obtains the soft bus and indirect interconnection relationship table of all terminal devices registered in its own soft bus at preset time intervals, and then determines which terminal devices that do not exist in its own soft bus and indirect interconnection relationship table appear, and then records these non-existent terminal devices in its own indirect interconnection relationship table to achieve the purpose of updating. The preset time can be set according to the actual application scenario, and is not specifically limited here, such as 10ms, 50ms, etc.
[0112] like Figure 4As shown, the original interconnection cluster only involves terminal devices A, B, C, D, and E. At a certain moment, a new terminal device F enters and creates a direct interconnection relationship with terminal device C. At this time, terminal device C will be registered in the soft bus of terminal device F. Based on the soft bus and indirect interconnection table of terminal device C, it can be determined that its indirect interconnection table will record terminal devices A, B, D, and E, and terminal device F will be registered in the soft bus of terminal device C. Since the terminal devices registered in the soft bus of C have changed and a new terminal device F has been registered, when each terminal device updates its own indirect interconnection table, terminal device A will first update its indirect interconnection table and add terminal device F, and then terminal devices B, D, and E will update their own indirect interconnection tables and add terminal device F. At the same time, when a terminal device (represented by terminal device 2) establishes a direct interconnection relationship with a terminal device in the interconnected cluster, the terminal device in the interconnected cluster can be informed that it (terminal device 2) only establishes a direct interconnection relationship with the terminal device, and does not establish an indirect interconnection relationship with other terminal devices in the interconnected cluster. When other terminal devices in the corresponding interconnected cluster update their own indirect interconnection tables, the terminal device will hide the terminal device 2, so that other terminal devices cannot obtain the terminal device 2 registered in the general software of the terminal device.
[0113] Based on the same inventive concept, an embodiment of the present application provides a system for interconnecting multiple terminal devices, such as Figure 7 As shown, the system 700 includes:
[0114] A broadcast signal scanning module 701, used to scan broadcast signals;
[0115] The designated terminal device determining module 702 is used to determine whether the terminal device broadcasting the broadcast signal is a designated terminal device according to the first identifier in the scanned broadcast signal;
[0116] A pairing connection module 703, configured to initiate a pairing connection to the terminal device broadcasting the broadcast signal based on the second identifier in the broadcast signal when the terminal device broadcasting the broadcast signal is a designated terminal device;
[0117] The token generation and sending module 704 is used to generate a first token according to its own first identification and current timestamp and send it to the terminal device broadcasting the broadcast signal for identity authentication when the connection is successful;
[0118] The token receiving module 705 is used to receive, when the verification is passed, a second token sent by the terminal device that broadcasts the broadcast signal based on its own first identification and current timestamp;
[0119] The terminal device registration and recording module 706 is used to register the terminal device broadcasting the broadcast signal into its own soft bus for direct device interconnection according to the received second token, and to obtain the soft bus of the terminal device in its own soft bus and the terminal device not registered in its own soft bus in the indirect interconnection table and record it in its own indirect interconnection table for indirect device interconnection.
[0120] Based on the same inventive concept, an embodiment of the present application provides a system for interconnecting multiple terminal devices, the system comprising:
[0121] A signal broadcast module, used to broadcast a broadcast signal, wherein the broadcast signal includes a first identifier and a second identifier, wherein the first identifier is used to verify whether the terminal device is a designated terminal device, and the second identifier is used to perform a pairing connection;
[0122] A receiving module, configured to receive a pairing connection initiated by a terminal device that scans the broadcast signal when the terminal device that scans the broadcast signal passes verification;
[0123] A pairing connection module, used to perform a pairing connection with a terminal device initiating the pairing connection according to the received pairing connection;
[0124] A token receiving module, configured to receive, when the connection is successful, a first token sent by a terminal device initiating a pairing connection, wherein the first token includes a first identifier of the terminal device initiating the pairing connection and a timestamp of generating the first token;
[0125] An identity authentication module, used to authenticate the terminal device initiating the pairing connection according to the first token;
[0126] The registration module is used to register the terminal device initiating the pairing connection into its own soft bus for direct device interconnection when the verification is passed, and to obtain the soft bus of the terminal device in its own soft bus and the terminal device not registered in its own soft bus in the indirect interconnection table and record it in its own indirect interconnection table for indirect device interconnection, and to generate a second token based on its own first identification and current timestamp and send it to the terminal device initiating the pairing connection.
[0127] Based on the same inventive concept, an embodiment of the present application provides a system for interconnecting multiple terminal devices, the terminal devices applied by the system are terminal devices including a soft bus and an indirect interconnection table in the above two systems for interconnecting multiple terminal devices of the present application, and the system includes:
[0128] An interconnection attribute determination module, used to determine the interconnection attribute of the target terminal device pointed to by the interconnection request, wherein the interconnection attribute includes direct interconnection and indirect interconnection;
[0129] An interconnection request sending module, configured to send a corresponding interconnection request to the target terminal device according to the interconnection attribute of the target terminal device and through a target request strategy corresponding to the interconnection attribute;
[0130] The data receiving module is used to receive data acquired by the target terminal device based on the interconnection request according to the interconnection request.
[0131] Optionally, the interconnection request sending module includes:
[0132] A first interconnection request sending module, configured to directly initiate an interconnection request to the target terminal device when the interconnection attribute of the target terminal device is direct interconnection;
[0133] A search module, used to determine the shortest transmission link connected to the target device by a shortest path search algorithm when the interconnection attribute of the target terminal device is indirect interconnection;
[0134] The second interconnection request sending module is used to initiate an interconnection request to the target terminal device through the shortest transmission link.
[0135] Optionally, the interconnection request sent by the interconnection request sending module in the system includes the token and identification of the target terminal device, and the token of the terminal device that initiates the interconnection request; the token of the target terminal device is used to verify whether the interconnection request is initiated to a legitimate terminal device; the identification of the target terminal device is used by the target terminal device to verify whether the interconnection request is made to itself; the token of the terminal device that initiates the interconnection request is used to verify the identity and authority of the terminal device that initiates the interconnection request.
[0136] Optionally, a data receiving module includes:
[0137] A first data receiving module is used to receive data acquired by the target terminal device based on the interconnection request through direct interconnection with the target terminal device according to the interconnection request when the interconnection attribute of the target terminal device is direct interconnection;
[0138] A channel creation module, configured to create a temporary transmission channel with the target terminal device according to the interconnection request when the interconnection attribute of the target terminal device is indirect interconnection;
[0139] The second data receiving module is used to receive data obtained by the target terminal device based on the interconnection request through the temporary transmission channel.
[0140] Optionally, a data receiving module includes:
[0141] A control module, for controlling the target device to perform screen recording and determining a target transmission protocol and a target image quality frame rate corresponding to a current network speed according to the interconnection request when the device interconnection is to request the terminal device to perform screen mirroring on the same screen;
[0142] The data receiving submodule is used to receive screen recording video frames of the target picture quality frame rate transmitted by the target terminal device using the target transmission protocol.
[0143] Optionally, the system further includes:
[0144] An update determination module, used to determine whether the soft bus and indirect interconnection table of the terminal device in its own soft bus are updated at preset time intervals;
[0145] The updating module is used to update its own indirect interconnection table based on the soft bus and indirect interconnection table of the terminal device updated in its own soft bus when updating.
[0146] Based on the same inventive concept, an embodiment of the present application provides an electronic device, comprising: a processor, a memory, and a computer program stored in the memory and running on the processor. When the computer program is executed by the processor, it implements the steps in a method for interconnecting multiple terminal devices as described in the first aspect of the present application.
[0147] Based on the same inventive concept, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps in a method for interconnecting multiple terminal devices as described in the first aspect of the present application are implemented.
[0148] As for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0149] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present application are not limited by the described order of actions, because according to the embodiments of the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present application.
[0150] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0151] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the embodiments of the present application may adopt the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the embodiments of the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0152] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0153] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0154] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0155] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.
[0156] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0157] The above is a detailed introduction to a method, system and product for interconnecting multiple terminal devices provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for interconnecting multiple terminal devices, characterized in that: Applicable to a terminal device for performing broadcast signal scanning, the method comprising: Determining, according to a first identifier in the scanned broadcast signal, whether a terminal device broadcasting the broadcast signal is a designated terminal device; In a case where the terminal device broadcasting the broadcast signal is a designated terminal device, initiating a pairing connection to the terminal device broadcasting the broadcast signal based on the second identifier in the broadcast signal; In case of successful connection, a first token is generated according to its own first identification and current timestamp and sent to the terminal device broadcasting the broadcast signal for identity authentication; In case of passing the verification, the terminal device receiving the broadcast signal sends a second token based on its own first identification and current timestamp; According to the second token received, the terminal device broadcasting the broadcast signal is registered in its own soft bus for direct device interconnection, and the soft bus of the terminal device in its own soft bus and the terminal device not registered in its own soft bus in the indirect interconnection table are obtained and recorded in its own indirect interconnection table for indirect device interconnection.
2. A method for interconnecting multiple terminal devices, characterized in that: Applied to a terminal device for broadcasting a broadcast signal, the method comprises: Broadcasting a broadcast signal, wherein the broadcast signal includes a first identifier and a second identifier, wherein the first identifier is used to verify whether the terminal device is a designated terminal device, and the second identifier is used to perform a pairing connection; In the case where the terminal device that scans the broadcast signal passes the verification, receiving a pairing connection initiated by the terminal device that scans the broadcast signal; Performing a pairing connection with the terminal device that initiates the pairing connection according to the received pairing connection; In the case of a successful connection, receiving a first token sent by the terminal device initiating the pairing connection, wherein the first token includes a first identifier of the terminal device initiating the pairing connection and a timestamp of generating the first token; authenticating the terminal device initiating the pairing connection according to the first token; If the verification is successful, the terminal device initiating the pairing connection will be registered in its own soft bus for direct device interconnection, and the soft bus of the terminal device in its own soft bus and the terminal device not registered in its own soft bus in the indirect interconnection table will be obtained and recorded in its own indirect interconnection table for indirect device interconnection, and based on its own first identification and current timestamp, a second token will be generated and sent to the terminal device initiating the pairing connection.
3. A method for interconnecting multiple terminal devices, characterized in that: Applied to a terminal device, the terminal device is a terminal device including a soft bus and an indirect interconnection table in a method for interconnecting multiple terminal devices according to claim 1 or 2, the method comprising: Determine the interconnection attribute of the target terminal device pointed to by the interconnection request, wherein the interconnection attribute includes direct interconnection and indirect interconnection; According to the interconnection attribute of the target terminal device, sending a corresponding interconnection request to the target terminal device through a target request strategy corresponding to the interconnection attribute; According to the interconnection request, data acquired by the target terminal device based on the interconnection request is received.
4. A method for interconnecting multiple terminal devices according to claim 3, characterized in that: According to the interconnection attribute of the target terminal device, sending a corresponding interconnection request to the target terminal device through a target request strategy corresponding to the interconnection attribute includes: In the case where the interconnection attribute of the target terminal device is direct interconnection, directly initiating an interconnection request to the target terminal device; In the case where the interconnection attribute of the target terminal device is indirect interconnection, determining the shortest transmission link connected to the target device through a shortest path search algorithm; An interconnection request is initiated to the target terminal device via the shortest transmission link.
5. A method for interconnecting multiple terminal devices according to claim 3, characterized in that: The interconnection request includes the token and identification of the target terminal device and the token of the terminal device initiating the interconnection request; The token of the target terminal device is used to verify whether the interconnection request is initiated to a legitimate terminal device; The identifier of the target terminal device is used by the target terminal device to verify whether to make an interconnection request to itself; The token of the terminal device that initiates the interconnection request is used to verify the identity and authority of the terminal device that initiates the interconnection request.
6. A method for interconnecting multiple terminal devices according to claim 3, characterized in that: Receiving data acquired by the target terminal device based on the interconnection request according to the interconnection request includes: When the interconnection attribute of the target terminal device is direct interconnection, according to the interconnection request, through direct interconnection with the target terminal device, receiving data acquired by the target terminal device based on the interconnection request; When the interconnection attribute of the target terminal device is indirect interconnection, creating a temporary transmission channel with the target terminal device according to the interconnection request; The data acquired by the target terminal device based on the interconnection request is received through the temporary transmission channel.
7. A method for interconnecting multiple terminal devices according to claim 3, characterized in that: In the case where the device interconnection is to request the terminal device to perform screen mirroring, receiving data acquired by the target terminal device based on the interconnection request according to the interconnection request includes: According to the interconnection request, control the target device to perform screen recording and determine a target transmission protocol and a target image quality frame rate corresponding to the current network speed; Receive screen recording video frames at a target picture quality frame rate transmitted by the target terminal device using the target transmission protocol.
8. A method for interconnecting multiple terminal devices according to claim 3, characterized in that: The method further comprises: At preset time intervals, determining whether the soft bus and indirect interconnection table of the terminal device in its own soft bus are updated; In the case of updating, the indirect interconnection table of the own device is updated based on the soft bus and the indirect interconnection table of the terminal device updated in the soft bus of the own device.
9. A system for interconnecting multiple terminal devices, characterized in that: The system is applied to a terminal device for performing broadcast signal scanning, and the system comprises: A broadcast signal scanning module, used for scanning broadcast signals; a designated terminal device determining module, configured to determine whether a terminal device broadcasting the broadcast signal is a designated terminal device according to a first identifier in the scanned broadcast signal; a pairing connection module, configured to initiate a pairing connection to the terminal device broadcasting the broadcast signal based on the second identifier in the broadcast signal when the terminal device broadcasting the broadcast signal is a designated terminal device; A token generation and sending module, used for generating a first token according to its own first identification and current timestamp and sending the first token to the terminal device broadcasting the broadcast signal for identity authentication when the connection is successful; A token receiving module, configured to receive, when verification is passed, a second token sent by the terminal device that broadcasts the broadcast signal based on its own first identification and current timestamp; The terminal device registration and recording module is used to register the terminal device broadcasting the broadcast signal into its own soft bus for direct device interconnection according to the received second token, and to obtain the soft bus of the terminal device in its own soft bus and the terminal device not registered in its own soft bus in the indirect interconnection table and record it in its own indirect interconnection table for indirect device interconnection.
10. A system for interconnecting multiple terminal devices, characterized in that: The system is applied to a terminal device that broadcasts a broadcast signal, and the system includes: A broadcast module, used to broadcast a broadcast signal, wherein the broadcast signal includes a first identifier and a second identifier, wherein the first identifier is used to verify whether the terminal device is a designated terminal device, and the second identifier is used to perform a pairing connection; A pairing signal receiving module, configured to receive a pairing connection initiated by a terminal device that scans the broadcast signal, if the terminal device that scans the broadcast signal passes verification; A pairing connection module, used to perform a pairing connection with a terminal device initiating the pairing connection according to the received pairing connection; A token receiving module, configured to receive, when the connection is successful, a first token sent by a terminal device initiating a pairing connection, wherein the first token includes a first identifier of the terminal device initiating the pairing connection and a timestamp of generating the first token; An identity authentication module, used to authenticate the terminal device initiating the pairing connection according to the first token; The terminal device registration and recording module is used to register the terminal device initiating the pairing connection into its own soft bus for direct device interconnection when the verification is passed, and to obtain the soft bus of the terminal device in its own soft bus and the terminal device not registered in its own soft bus in the indirect interconnection table and record it in its own indirect interconnection table for indirect device interconnection, and to generate a second token based on its own first identification and current timestamp and send it to the terminal device initiating the pairing connection.
11. An electronic device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and running on the processor, wherein when the computer program is executed by the processor, the steps in the method for interconnecting multiple terminal devices as described in claims 3 to 8 are implemented.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the steps in the method for interconnecting multiple terminal devices as described in claims 3 to 8 are implemented.